/* /styles.css */
:root{color-scheme:dark;--ink:#e7ddc6;--muted:#aaa28f;--gold:#dab36b;--line:#4c4739;--red:#991d1d;--bg:#090e12;--panel:#0b1217;--ui:Arial,'Segoe UI',sans-serif;--serif:Georgia,'Times New Roman',serif}*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:#080c10;color:var(--ink)}body{font:.875rem var(--ui)}button,input,select{font:inherit}button{color:inherit;cursor:pointer}button:disabled{opacity:.43;cursor:not-allowed}button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid #edc97f;outline-offset:3px}button{transition:filter .16s,background .16s}button:hover:not(:disabled){filter:brightness(1.17)}h1,h2,h3,p{margin-top:0}h1,h2,h3{font-family:var(--serif);font-weight:normal}h1{font-size:2rem;color:#f0d399}h2{font-size:1.25rem;color:#e9d4a4}p{line-height:1.55}input,select{background:linear-gradient(#070c10,#10171c);border:1px solid #48525a;border-radius:2px;color:#eadfce;min-width:0;padding:11px 12px;width:100%;outline:none}input::placeholder{color:#817f76}label{display:block;color:#d2c8b3;font-size:.75rem}label>input,label>select,label>.input-with-icon{margin-top:7px}input[type=checkbox]{width:15px;height:15px;accent-color:#b99956;padding:0;margin:0;flex-shrink:0}select{padding:7px 5px;font-size:.75rem}.checkbox-row{display:flex;align-items:center;gap:9px;line-height:1.4;cursor:pointer}.icon{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.icon-button{background:none;border:1px solid #3d423f;padding:8px;display:inline-flex;color:#b7a585}.icon-button .icon{width:20px;height:20px}.eyebrow{font:.625rem var(--ui);letter-spacing:2.5px;color:#c9ad7a;margin-bottom:9px}.micro{font:.625rem/1.5 var(--ui);color:#9e9c8f;letter-spacing:.4px}.small-note,.subtle{color:#b4ad9c;line-height:1.6}.small-note{font-size:.6875rem}.full{width:100%}.success{color:#a8d77b}.warning{color:#ffb2a4}.red-button{background:linear-gradient(#821c19,#a8231a 22%,#8b1614 48%,#5e100d);border:1px solid #bc6a42;box-shadow:inset 0 0 0 2px #3d1411,inset 0 0 0 3px #a33e24,0 2px 7px #0008;color:#ffebc2;padding:13px 16px;border-radius:1px;font:.875rem var(--serif);letter-spacing:.4px}.secondary{background:linear-gradient(#26323a,#141d24);border:1px solid #526069;box-shadow:inset 0 0 0 2px #111a20;padding:10px 12px;border-radius:2px;color:#ddd4bf}.text-button{background:none;border:0;padding:10px 2px;color:#bfa97b;font-size:.6875rem}.button-pair{display:grid;grid-template-columns:1fr 1fr;gap:6px}.button-pair button{font-size:.75rem;padding:10px 3px}.ornate{position:relative;background:linear-gradient(135deg,#131b20ed,#080e12f7 50%,#11181cf2);border:1px solid #565445;box-shadow:inset 0 0 0 4px #0b1117,inset 0 0 0 5px #3c433e,0 6px 22px #0007;padding:18px}.ornate:before,.ornate:after{content:"";position:absolute;width:13px;height:13px;border-color:#aa8b51;pointer-events:none}.ornate:before{left:4px;top:4px;border-top:2px solid #aa8b51;border-left:2px solid #aa8b51}.ornate:after{right:4px;bottom:4px;border-right:2px solid #aa8b51;border-bottom:2px solid #aa8b51}.ornate h2{border-bottom:1px solid #3b423d;padding-bottom:9px;margin-bottom:12px}.nav-divider{height:1px;background:linear-gradient(90deg,transparent,#76603c,transparent);margin:19px 0}.inline-error{font-size:.75rem;color:#ffb9a0;line-height:1.5}.inline-error:empty{display:none}.inline-error:not(:empty){background:#561d1633;padding:10px;margin:10px 0}.wordmark{width:227px;flex-shrink:0;text-align:center;position:relative;color:#f0c27a;font-family:var(--serif);background:linear-gradient(160deg,#131914,#050906);border:1px solid #7d6940;box-shadow:inset 0 0 0 3px #090d0b,inset 0 0 0 4px #51432a,0 1px 6px #000;padding:9px 7px 11px;clip-path:polygon(0 9%,6% 9%,8% 0,17% 5%,41% 5%,50% 0,59% 5%,83% 5%,92% 0,94% 9%,100% 9%,97% 45%,100% 85%,94% 85%,92% 98%,60% 94%,50% 100%,40% 94%,8% 98%,6% 85%,0 85%,3% 45%)}.wordmark .idle{display:block;font-size:.5625rem;letter-spacing:1px;line-height:1}.wordmark strong{display:block;font-size:1.4375rem;line-height:1.14;letter-spacing:-.8px;color:#efca88;text-shadow:0 2px #2b1507,0 0 9px #ffc25222}.wordmark .crest-top{display:none}.wordmark .crest-bottom{position:absolute;bottom:2px;left:49%;font-size:.5rem;color:#a13226;text-shadow:0 0 5px #fd6825}.wordmark.large{width:min(555px,92%);padding:22px 13px 30px;margin:auto;border-color:#b38b4f}.wordmark.large .idle{font-size:1.125rem}.wordmark.large strong{font-size:clamp(2.125rem,4.5vw,3.875rem);letter-spacing:-2px}.wordmark.large .crest-bottom{font-size:1.0625rem;bottom:6px}.topbar{height:75px;background:linear-gradient(#171c1c,#0a1013);border-bottom:2px solid #746449;box-shadow:0 4px 15px #0009;display:flex;align-items:center;gap:20px;padding:8px 14px;position:relative;z-index:500}.topbar nav{display:flex;align-self:stretch;justify-content:center;flex:1}.nav-button{min-width:73px;border:0;border-left:1px solid #343b3622;background:none;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;color:#b2a486;padding:0 15px;font:.6875rem var(--serif)}.nav-button .icon{width:23px;height:23px}.nav-button.active{color:#efd59e;background:radial-gradient(ellipse at bottom,#92753745,transparent 72%);border-bottom:1px solid #aa823f}.account-block{display:flex;gap:12px;align-items:center}.account-name{font-family:var(--serif);min-width:64px}.account-name b{display:block;font-weight:normal}.account-name small{font:.625rem var(--ui);display:block;color:#aaa38e;margin-top:3px}.dev-badge{border:1px solid #88682c;box-shadow:inset 0 0 7px #e8aa1618;padding:8px 13px;color:#e9b66d;font:.75rem var(--serif)}.shell{min-height:100vh;background:radial-gradient(ellipse at 50% 15%,#28302a66,transparent 70%),#0a1014}.auth-page{min-height:100vh;position:relative;display:grid;grid-template-columns:62% 38%;overflow:hidden;isolation:isolate;background:#111a1c}.auth-world{position:absolute;inset:-3%;z-index:-4;background:linear-gradient(90deg,#01081122,#04090daa),linear-gradient(0deg,#070c12e8,transparent 65%),url('/assets/painted/arena.webp') center 28%/cover;filter:blur(2px) saturate(.74)}.auth-page:after{content:"";position:absolute;inset:0;z-index:-3;pointer-events:none;background:radial-gradient(ellipse at 28% 26%,#c4822633,transparent 55%),linear-gradient(90deg,transparent 45%,#04080edb)}.auth-story{height:100vh;min-height:730px;position:relative;padding:45px 35px 0}.story-eyebrow{text-align:center;margin:16px 0 0}.login-heroes{position:absolute;left:0;right:0;top:180px;bottom:100px}.login-hero{position:absolute;bottom:0;width:auto;object-fit:contain;filter:drop-shadow(0 12px 10px #000b);pointer-events:none}.login-hero.h0{height:94%;left:5%;z-index:4}.login-hero.h1{height:100%;left:28%;z-index:2}.login-hero.h2{height:92%;left:44%;z-index:1}.login-hero.h3{height:85%;left:59%;z-index:3}.story-caption{position:absolute;bottom:68px;left:48px;right:0;text-shadow:0 2px 4px #000,0 0 12px #000;z-index:10}.story-caption span{font:.625rem var(--ui);letter-spacing:2.3px;color:#dfca9f}.story-caption h1{font-size:2.1875rem;margin-top:10px;margin-bottom:0;line-height:1.2;color:#f2e4c3}.auth-entry{display:flex;align-items:center;padding:50px 42px 70px 0}.auth-form{max-width:390px;width:100%;margin:0 auto;padding:33px 29px;background:linear-gradient(145deg,#1c2222fa,#080e13fb 48%,#111617fb);border-color:#a1854e;box-shadow:inset 0 0 0 4px #0b1117,inset 0 0 0 5px #6c593c,0 20px 70px #000b}.auth-form .eyebrow{text-align:center}.auth-form h2{text-align:center;font-size:1.5625rem;margin:10px 0 10px;padding:0;border:0}.auth-form>.subtle{text-align:center;font-size:.75rem;margin-bottom:25px}.auth-form label{margin:17px 0}.auth-form input{height:43px}.auth-form input[type=checkbox]{height:15px}.input-with-icon{display:flex;align-items:center;position:relative}.input-with-icon .icon{position:absolute;left:11px;width:17px;height:17px;color:#baac8d}.input-with-icon input{padding-left:38px}.auth-form .checkbox-row{font-size:.75rem}.frame-gem{position:absolute;top:-12px;left:calc(50% - 10px);font-size:1.25rem;color:#c7472c;text-shadow:0 0 9px #ad591e;background:#141815;padding:0 3px}.divider{text-align:center;margin:20px 0;position:relative;height:12px}.divider:before{position:absolute;content:"";height:1px;left:0;right:0;top:7px;background:linear-gradient(90deg,transparent,#85704c,transparent)}.divider span{position:relative;background:#0d1418;font-size:.625rem;color:#a89b7f;padding:0 12px}.local-note{text-align:center;font:.5625rem/1.7 var(--ui);letter-spacing:1px;color:#b29b71;margin:23px 0 0}.local-note span{font-size:.625rem;letter-spacing:0;color:#8e948e}.auth-footer{position:absolute;bottom:20px;left:30px;right:30px;display:flex;justify-content:space-between;gap:20px;color:#b9a888;font:.5625rem var(--ui);letter-spacing:1.2px}.page-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}.page-heading h1{margin-bottom:0}.chapter-note{font:.6875rem var(--serif);color:#b7a787}.creator{padding:26px 32px 30px;max-width:1680px;margin:auto}.creator-grid{display:grid;grid-template-columns:245px minmax(330px,1fr) 308px;gap:20px;min-height:640px;height:calc(100vh - 200px);max-height:900px}.choices{padding:19px 14px}.choices h2{font-size:1.0625rem}.choice{width:100%;background:#0b1319;border:1px solid #3b4445;padding:9px;display:flex;align-items:center;text-align:left;gap:11px;margin-bottom:12px;min-height:89px}.choice.chosen{background:linear-gradient(100deg,#4532187d,#0e1519);border-color:#b38d42;box-shadow:inset 0 0 13px #b47d1b22}.choice img{width:54px;height:64px;object-fit:cover;object-position:center;border:1px solid #5b523d;background:#0a1116}.choice b{display:block;font-family:var(--serif);font-size:1.0625rem}.choice small{display:block;color:#b4a996;font:.6875rem/1.5 var(--ui);margin-top:4px}.choice i{margin-left:auto;color:#a88544;font:1.4375rem var(--serif)}.scope-note{border-top:1px solid #424538;margin-top:20px;padding:15px 4px}.scope-note b{font-family:var(--serif);color:#bbaa83}.scope-note p{font-size:.6875rem;line-height:1.65;color:#90978e;margin:9px 0}.creator-stage,.character-showcase{position:relative;overflow:hidden;border:1px solid #38433d;background:radial-gradient(ellipse at 50% 40%,#5d482034,transparent 62%),linear-gradient(0deg,#081118ed,#080f12bd 18%,#081016a3 70%,#080f12),url('/assets/painted/arena.webp') center/cover;box-shadow:inset 0 0 50px #000c;display:flex;flex-direction:column;align-items:center;justify-content:flex-end}.hero-pedestal{width:100%;height:calc(100% - 124px);position:relative;display:flex;align-items:flex-end;justify-content:center;isolation:isolate;padding:0 12px}.showcase-hero{max-width:100%;width:auto;height:100%;object-fit:contain;filter:drop-shadow(0 7px 10px #000c);z-index:1}.hero-pedestal.mage .showcase-hero{height:113%;transform:translateY(8%)}.hero-pedestal.priest .showcase-hero{height:104%;transform:translateY(2%)}.pedestal-light{position:absolute;bottom:5px;left:12%;width:76%;height:23%;border-radius:50%;background:radial-gradient(ellipse,#a9a48c28,transparent 70%);filter:blur(12px);z-index:-1}.hero-caption{height:124px;text-align:center;position:relative;z-index:2;width:100%;background:linear-gradient(transparent,#080e139c 15%,#080f14ce);padding:18px 20px 14px;display:flex;flex-direction:column;justify-content:center}.hero-caption h2,.hero-caption h1{color:#f0dcc0;margin:0 0 8px}.hero-caption p{font:.75rem/1.5 var(--serif);color:#c3bda9;margin:0 auto;max-width:420px}.hero-caption .eyebrow{font-size:.5625rem;margin-bottom:8px}.creation-details{padding:22px 22px 18px;overflow-y:auto}.creation-details>h2{font-size:1.75rem;margin:15px 0 10px}.role-label{display:flex;align-items:center;gap:7px;font:.5625rem var(--ui);letter-spacing:1.2px;color:var(--tone)}.role-label .icon{width:22px;height:22px}.class-description{font:.8125rem/1.65 var(--serif);color:#c4bea9;margin:16px 0}.skill-list{border-top:1px solid #353e39;padding:13px 0}.skill-list>div{display:flex;align-items:center;gap:10px;margin:8px 0}.skill-list b{font:.8125rem var(--serif)}.skill-icon{width:34px;height:34px;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;position:relative;border:1px solid #8e703b;background:radial-gradient(ellipse at center,#c88b31aa,#321510 70%);box-shadow:inset 0 0 0 2px #070d11,0 0 7px #0008;color:#fff1c0}.skill-icon .icon{width:23px;height:23px;filter:drop-shadow(0 0 3px currentColor);stroke-width:2}.skill-icon.mage{border-color:#559ccb;color:#cff1ff;background:radial-gradient(ellipse,#256eb8,#0c2456 65%,#07101d)}.skill-icon.priest{border-color:#a38a4a;color:#fff3b0;background:radial-gradient(ellipse,#d4a334,#483711 65%,#101410)}.skill-icon.archer{border-color:#6e8835;color:#e1ff8e;background:radial-gradient(ellipse,#537d24,#152a12 65%,#090e09)}.skill-icon.shadow{border-color:#795587;color:#e4c1ff;background:radial-gradient(ellipse,#6c309b,#271438 65%,#0b0d17)}.ascension-hint{display:flex;gap:10px;align-items:flex-start;border-top:1px solid #38403a;border-bottom:1px solid #38403a;padding:14px 0;margin-bottom:23px;color:#bca16a}.ascension-hint span{font:.75rem var(--serif)}.ascension-hint small{display:block;font:.625rem/1.5 var(--ui);color:#979b92;margin-top:5px}#createForm label{font:1.0625rem var(--serif);color:#e9d5af;margin-bottom:10px}#createForm>input{margin-top:0}.name-status{font:.6875rem/1.5 var(--ui);min-height:30px;margin:9px 0 0}#createForm>.micro{font-size:.5625rem;margin-bottom:15px}.character-page{display:grid;grid-template-columns:225px minmax(380px,1fr) 308px;gap:23px;padding:28px 32px;max-width:1650px;margin:auto;min-height:calc(100vh - 75px)}.character-nav{align-self:start}.profile-portrait{width:94px;height:106px;border:1px solid #927346;background:linear-gradient(#1d2423,#090f11);margin-bottom:16px;box-shadow:inset 0 0 0 3px #151e23}.profile-portrait img{height:100%;width:100%;object-fit:cover}.character-nav h2{font-size:1.5rem;padding:0;border:none;margin:0 0 5px}.character-nav p:not(.eyebrow){font-size:.75rem;color:#b0a68e}.character-nav button{display:flex;align-items:center;gap:12px;width:100%;background:none;border:1px solid transparent;padding:12px 8px;font:.875rem var(--serif);margin:5px 0}.character-nav button.chosen{background:linear-gradient(90deg,#76602e5a,transparent);border-color:#816838}.character-nav button .icon{width:18px;height:18px}.character-showcase{min-height:680px}.character-info{display:flex;flex-direction:column;gap:16px;align-self:start}.character-info .ornate{padding:18px}.character-info h2{font-size:1.0625rem}.character-info dl,.skill-card dl{display:grid;grid-template-columns:1fr 1fr;gap:10px;font:.75rem var(--ui);margin:14px 0 0}.character-info dt,.skill-card dt{color:#aaa995}.character-info dd,.skill-card dd{text-align:right;margin:0;color:#e1daca}.progress-track{height:5px;background:#05080a;border:1px solid #373b31;margin-top:16px}.progress-track i{display:block;height:100%;background:#ba933d}.equipment-slot{display:flex;gap:12px;align-items:center}.equipment-slot b{font:.875rem var(--serif)}.equipment-slot small{display:block;font:.625rem var(--ui);color:#8d938b;margin-top:7px}.equipment-slot>.icon{width:37px;height:37px;color:#ceb478}.content-page{max-width:1280px;padding:36px 30px;margin:auto;min-height:calc(100vh - 75px)}.skill-grid{display:grid;grid-template-columns:1fr 1fr;gap:23px;margin-bottom:28px}.skill-card{padding:26px}.skill-card .large-icon{width:60px;height:60px;margin-bottom:20px}.large-icon .icon{width:37px;height:37px}.skill-card p{color:#b9b2a0;line-height:1.7}.party-overview{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.party-show{text-align:center;padding:18px}.party-show>img{width:100%;height:310px;object-fit:contain}.party-show h2{font-size:1.375rem;border:0;margin:0;padding:0}.party-show>p{font:.75rem var(--serif);color:#bbad8f;margin:10px 0}.xp-rates{display:grid;grid-template-columns:repeat(4,1fr);margin:25px 0;gap:16px;text-align:center}.xp-rates strong{display:block;color:#deb969;font:1.75rem var(--serif);margin:10px}.xp-rates b,.xp-rates small{font:.6875rem var(--ui);color:#adac9d}.combat-grid{display:grid;grid-template-columns:15.5% 66.5% 18%;height:calc(100vh - 75px);min-height:650px;background:#0a1012}.party-rail{padding:10px 7px 10px 9px;display:flex;flex-direction:column;min-width:0;background:linear-gradient(90deg,#0c151a,#0c1219f5);border-right:1px solid #655f48;overflow:hidden}.rail-heading{display:flex;justify-content:space-between;padding:3px 2px 10px;color:#c9bc9c;font:.75rem var(--serif);letter-spacing:1px}.rail-heading small{font:.625rem var(--ui);color:#979b8d}.party-card{display:flex;gap:7px;border:1px solid #3e4a4c;background:linear-gradient(100deg,#19232b99,#070e14b8);padding:7px 6px;margin-bottom:8px;min-height:118px}.party-card.fallen{filter:saturate(.15);opacity:.5}.portrait-frame{width:57px;position:relative;border:1px solid var(--tone);background:radial-gradient(ellipse,#55594144,#091019);flex-shrink:0;height:92px;overflow:hidden}.portrait-frame img{width:100%;height:77px;object-fit:cover}.portrait-frame>span{position:absolute;bottom:0;left:0;right:0;text-align:center;font:.625rem var(--ui);background:#090b0fbf;padding:3px 0;color:#eadfc6}.party-info{min-width:0;flex:1}.party-info>b{display:block;font:.8125rem var(--serif);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:1px 0 3px;color:#eee8d6}.party-info>small{display:block;color:#b7b3a7;font:.5625rem var(--ui);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-bottom:6px}.hud-bar{height:11px;margin:3px 0;position:relative;border:1px solid #474d48;background:#03080b;overflow:hidden}.hud-bar>i{display:block;height:100%;background:linear-gradient(#fb4027,#b81714);box-shadow:inset 0 1px #ffb79655}.hud-bar.resource{height:7px;border-color:#355d6b}.hud-bar.resource>i{background:linear-gradient(#3595f7,#1c4dce)}.hud-bar em{position:absolute;inset:0;text-align:center;font:8px/9px var(--ui);font-style:normal;color:#fff7e4;text-shadow:0 1px 1px #000}.party-ability-icons{display:flex;gap:4px;margin-top:7px}.party-ability-icons .skill-icon{width:21px;height:21px}.party-ability-icons .icon{width:15px;height:15px;stroke-width:1.5}.party-xp{display:flex;justify-content:space-between;font-size:.625rem;padding:2px 1px 12px;color:#a3a493}.party-xp b{color:#d6b875}.combat-log{padding:0;display:flex;flex-direction:column;flex:1;min-height:100px;border-color:#4c5150}.combat-log:before,.combat-log:after{display:none}.log-tabs{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #424e50;padding:9px 8px;background:linear-gradient(#202e37,#111b24);font:.6875rem var(--serif)}.log-tabs span{font:.5rem var(--ui);letter-spacing:1px;color:#a9bb98}#combatLog{overflow:auto;padding:10px 7px;min-height:0;font:.625rem/1.45 var(--ui);scrollbar-width:thin;scrollbar-color:#494b3c #0a1218}#combatLog>div{margin-bottom:5px;color:#bdb8a9}#combatLog time{display:inline;color:#768187;margin-right:5px;font-size:.5625rem}#combatLog .log-heal{color:#a9d37f}#combatLog .log-crit{color:#ffc970}#combatLog .log-incoming{color:#d38570}#combatLog .log-aggro,#combatLog .log-taunt{color:#7abedc}.log-empty{color:#7d898a;font:.6875rem/1.6 var(--serif);margin:0}.arena-column{position:relative;min-width:0;overflow:hidden}.battlefield{position:relative;width:100%;height:100%;overflow:hidden;background:#1d2423;isolation:isolate}.arena-background{position:absolute;inset:0;background:url('/assets/painted/arena.webp') center center/cover no-repeat;z-index:0}.arena-vignette{position:absolute;inset:0;background:linear-gradient(0deg,#080c16cc,transparent 26%,#04121a00 76%,#060f1877),radial-gradient(ellipse,#0000 40%,#01071266);z-index:1}.zone-badge{position:absolute;top:18px;left:50%;transform:translateX(-50%);background:linear-gradient(90deg,transparent,#0a121bc7 18%,#0a121bc7 82%,transparent);padding:9px 40px;text-align:center;white-space:nowrap;z-index:310}.zone-badge span{font:1.0625rem var(--serif);color:#f0d7a2;display:block}.zone-badge small{font:.5rem var(--ui);color:#baa985;letter-spacing:2px;display:block;margin-top:6px}#actors{position:absolute;inset:0;z-index:10;pointer-events:none}#effects,#groundEffects{position:absolute;inset:0;pointer-events:none;width:100%;height:100%}#groundEffects{z-index:3}#effects{z-index:200}.aggro-lines{position:absolute;inset:0;width:100%;height:100%;z-index:5;pointer-events:none}.aggro-lines line{stroke:#f34437;stroke-width:1.25;opacity:.78}.unit{position:absolute;width:0;height:0;pointer-events:none}.model-wrap{position:absolute;inset:0}.unit-model{position:absolute;max-width:none;will-change:transform;image-rendering:auto;filter:drop-shadow(0 5px 5px #0006)}.unit-name{position:absolute;left:-64px;width:128px;text-align:center;pointer-events:none;text-shadow:0 1px 3px #000,0 1px 3px #000;font-size:.6875rem}.unit-name b{display:inline;font:.75rem var(--serif);color:#ffedcd;white-space:nowrap}.unit-name small{color:#c3bdaf;font:.5rem var(--ui);display:block;margin:2px 0}.unit-hp{height:6px;background:#070b14;border:1px solid #42494a;margin:3px 23px 0;box-shadow:0 1px 2px #000}.unit-hp>i{display:block;height:100%;background:linear-gradient(#aaee70,#3f993b)}.enemy-unit .unit-hp>i{background:linear-gradient(#fa6740,#c42e1d)}.respawn-clock{position:absolute;top:8px;left:-90px;width:180px;color:#f8dcc0;font:.8125rem var(--serif);text-align:center;text-shadow:0 2px 3px #000}.respawn-clock:empty{display:none}.is-dead .respawn-clock{padding:5px;background:linear-gradient(90deg,transparent,#10151ab8,transparent)}.actionbar{position:absolute;bottom:14px;left:50%;transform:translateX(-50%);height:88px;background:linear-gradient(#202421,#090e10 45%,#101b20);border:1px solid #8b7853;box-shadow:inset 0 0 0 4px #111616,inset 0 0 0 5px #53574b,0 0 22px #000d;z-index:320;display:flex;gap:10px;align-items:center;padding:12px 23px;max-width:92%;white-space:nowrap}.actionbar:before{content:"";position:absolute;top:-10px;left:43%;right:43%;height:16px;background:#211816;border:1px solid #847154;transform:rotate(-3deg);z-index:-1}.bar-gem{font-size:1.6875rem;color:#cf5138;text-shadow:0 0 6px #fe6315;padding:0 6px;margin-top:-28px}.actionbar .skill-icon{width:43px;height:43px}.actionbar .skill-icon .icon{width:29px;height:29px}.ability-tile,.action-key{display:flex;flex-direction:column;align-items:center;gap:4px;flex-shrink:0}.action-key{background:none;border:0;padding:0;color:#eee4ce}.ability-tile>small,.action-key>small{font:.5rem var(--ui);letter-spacing:.8px;color:#c5bc9d}.begin-button{height:45px;margin-left:7px;padding:12px 19px;font-size:.8125rem}.bar-wing{position:absolute;top:-7px;bottom:-7px;width:17px;background:linear-gradient(135deg,#393c31,#15181a);border:1px solid #6d705b}.bar-wing.left{left:-9px;transform:skewY(-22deg)}.bar-wing.right{right:-9px;transform:skewY(22deg)}.arena-help{position:absolute;bottom:118px;left:10%;right:10%;text-align:center;font:.8125rem var(--serif);color:#ecd7b0;z-index:250;text-shadow:0 2px 6px #000}.encounter-status{display:none;position:absolute;left:15%;right:15%;top:36%;z-index:300;padding:18px;border-top:1px solid #98804c;border-bottom:1px solid #98804c;background:#0a0d12dc;color:#edd4a2;text-align:center;font:1.125rem var(--serif);letter-spacing:1px}.encounter-status.show{display:block}.right-rail{padding:9px 8px 12px;display:flex;flex-direction:column;gap:10px;min-width:0;background:linear-gradient(90deg,#10171d,#0c1318);border-left:1px solid #66634e;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#494b3c #0a1218}.right-rail>.ornate{padding:10px 11px}.right-rail h2{font-size:.9375rem;padding-bottom:7px;margin-bottom:8px}.minimap-panel{text-align:center;flex-shrink:0}.minimap{height:132px;position:relative;overflow:hidden;border:2px solid #726749;border-radius:48% 48% 10px 10px;background:linear-gradient(#151d2466,#121e1844),url('/assets/painted/arena.webp') center/cover;box-shadow:inset 0 0 18px #000b;margin-bottom:7px}#minimap{position:absolute;inset:0}.map-dot{position:absolute;width:6px;height:6px;transform:translate(-50%,-50%) rotate(45deg);background:#50d5e7;border:1px solid #dbf9ff;box-shadow:0 0 4px #000}.map-dot.foe{background:#ff4938;border-color:#faa479;border-radius:50%}.minimap-panel>.micro{font-size:.5rem;letter-spacing:.7px}.quest-panel>h2{font-family:var(--serif)}.quest-panel>b{display:block;color:#e1c68b;font:.8125rem var(--serif);margin:5px 0 6px}.quest-panel>span{display:block;font:.6875rem var(--ui);margin-bottom:6px;color:#c4c6b3}.quest-panel>small{font:.5625rem var(--ui);color:#798882}.live-chip{float:right;font:.5rem var(--ui);color:#b7a67a;border:1px solid #5b583d;padding:3px}.dev-panel h2{margin-bottom:8px}.dev-tabs{display:flex;gap:3px;border-bottom:1px solid #414b4f;margin-bottom:12px}.dev-tabs button{background:#0b151c;border:1px solid #3c474d;padding:6px 3px;flex:1;font:.6875rem var(--serif)}.dev-tabs button.active{background:linear-gradient(#364a58,#182a36);border-color:#647784}.ally-editor{margin:9px 0 11px;padding-bottom:10px;border-bottom:1px solid #29363d}.ally-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:6px}.ally-top b{font:.6875rem var(--ui);font-weight:normal}.ally-top>small{font:.5rem var(--ui);color:#7f8d82}.ally-pick{display:flex;gap:5px;margin-bottom:5px}.ally-pick>img{width:25px;height:28px;object-fit:cover;border:1px solid #625b44}.ally-pick select{width:calc(100% - 30px);font-size:.625rem;padding:4px}.ally-editor>input{padding:5px 7px;font-size:.625rem;height:25px}.dev-panel>.micro,#devContent>.micro{font-size:.5rem;color:#a0a690;line-height:1.4;margin-bottom:9px}.dev-panel .full{margin-top:7px}.dev-panel .small-note{font-size:.625rem;margin:11px 0 4px;line-height:1.55}.dev-panel .checkbox-row{font-size:.6875rem;margin:10px 0}.dev-panel .secondary.full{padding:8px;font-size:.6875rem}.dev-panel .red-button.full{padding:10px 6px;font-size:.6875rem}.dev-panel .text-button{padding:4px;margin-top:8px;font-size:.5625rem}.segmented{display:flex;gap:5px;margin:8px 0 12px}.segmented button{flex:1;background:#16232c;border:1px solid #51626b;padding:7px}.segmented button.active{border-color:#a88647;background:#69502766;color:#ffe6b5}.settings-modal{width:370px}.settings-modal .checkbox-row{margin:20px 0}.modal-backdrop{position:fixed;inset:0;z-index:1000;background:#02070ae6;display:grid;place-items:center}.boot{padding:60px 30px;max-width:700px;margin:auto;color:#e7d4ab;text-align:center}#toast{position:fixed;left:50%;bottom:26px;transform:translate(-50%,25px);max-width:80vw;opacity:0;pointer-events:none;background:#14212bf2;border:1px solid #8d7547;box-shadow:0 6px 30px #000a;padding:14px 22px;color:#efe1c1;font:.8125rem var(--ui);z-index:2000;transition:opacity .15s,transform .15s}#connectionState{position:fixed;top:max(6px,env(safe-area-inset-top));left:50%;transform:translateX(-50%);z-index:1990;pointer-events:none;background:#14212be6;border:1px solid #8d7547;border-radius:999px;padding:4px 12px;color:#efe1c1;box-shadow:0 2px 10px #000a;font:.75rem var(--ui);white-space:nowrap}#connectionState[hidden]{display:none}
#toast.visible{opacity:1;transform:translate(-50%,0)}#toast.error{border-color:#ae5743;color:#ffcab5}::-webkit-scrollbar{width:5px}::-webkit-scrollbar-thumb{background:#46504c}::-webkit-scrollbar-track{background:#11191e}
@media(min-width:1700px){.combat-grid{grid-template-columns:15.5% 66.5% 18%}.party-card{min-height:132px;gap:10px;padding:8px}.portrait-frame{width:72px;height:108px}.portrait-frame img{height:93px}.party-info>b{font-size:.9375rem}.party-info>small{font-size:.6875rem}.hud-bar{height:14px}.hud-bar em{font-size:10px;line-height:12px}.party-ability-icons .skill-icon{width:24px;height:24px}.right-rail{padding:12px}.right-rail>.ornate{padding:14px}.minimap{height:160px}.ally-pick select{font-size:.75rem}.dev-panel .small-note{font-size:.6875rem}.ally-editor>input{font-size:.6875rem}.dev-tabs button{font-size:.75rem}.combat-log{font-size:.75rem}#combatLog{font-size:.6875rem}.party-xp{font-size:.75rem}.auth-form{max-width:410px}}
@media(max-width:1279px){.topbar{gap:10px;padding:8px}.topbar .wordmark{width:195px}.wordmark strong{font-size:1.25rem}.nav-button{min-width:57px;padding:0 10px}.account-block{gap:7px}.dev-badge{padding:7px;font-size:.625rem}.account-name{min-width:45px}.combat-grid{grid-template-columns:17% 62% 21%;min-height:650px}.party-card{padding:6px 4px;gap:5px}.portrait-frame{width:48px;height:81px}.portrait-frame img{height:65px}.party-info>b{font-size:.75rem}.party-info>small{font-size:.5rem}.party-ability-icons{gap:3px}.party-ability-icons .skill-icon{width:18px;height:18px}.party-ability-icons .icon{width:13px;height:13px}.party-card{min-height:107px}.creator-grid{grid-template-columns:210px minmax(270px,1fr) 270px;gap:12px}.creator{padding:22px 18px}.choice{gap:8px;padding:7px;min-height:83px}.choice img{width:43px;height:53px}.choice b{font-size:.9375rem}.choice small{font-size:.625rem}.character-page{grid-template-columns:190px minmax(300px,1fr) 270px;padding:22px 18px;gap:14px}.creation-details{padding:18px}.auth-entry{padding-right:22px}.auth-form{padding:26px 22px}.auth-story{padding:35px 22px 0}.wordmark.large strong{font-size:2.875rem}.actionbar{gap:7px;padding:10px 17px}.actionbar .skill-icon{width:36px;height:36px}.begin-button{padding:10px 12px}.bar-gem{padding:0 3px}.story-caption{left:30px}}
@media(max-width:1020px){.auth-page{grid-template-columns:55% 45%}.auth-story{min-height:710px}.login-hero.h0{left:-24%}.login-hero.h1{left:2%}.login-hero.h2{display:none}.login-hero.h3{left:25%}.wordmark.large strong{font-size:2.25rem}.story-caption h1{font-size:1.75rem}.story-caption span{font-size:.5rem}.auth-form{max-width:350px}.topbar nav{gap:0}.dev-badge{display:none}.topbar .wordmark{width:178px}.topbar .wordmark strong{font-size:1.125rem}.creator-grid{grid-template-columns:180px minmax(220px,1fr) 242px;height:auto;min-height:630px}.choice img{width:36px;height:48px}.choices{padding:15px 10px}.choices h2{font-size:.9375rem}.choice small{font-size:.5625rem}.creator-stage{min-height:600px}.hero-pedestal{height:460px}.chapter-note{display:none}.character-page{grid-template-columns:165px minmax(245px,1fr) 242px}.character-info{gap:10px}.character-info .ornate{padding:15px}.character-showcase{min-height:640px}.party-card .portrait-frame{width:35px;height:66px}.portrait-frame img{height:51px}.party-info>small{font-size:.5rem}.party-info>b{font-size:.6875rem}.party-info .hud-bar em{font-size:7px}.party-ability-icons .skill-icon{width:16px;height:16px}.party-rail{padding:8px 4px}.right-rail{padding:7px 5px}.right-rail>.ornate{padding:10px 8px}.right-rail h2{font-size:.8125rem}.minimap{height:108px}.actionbar .skill-icon{width:32px;height:32px}.actionbar .icon{width:23px;height:23px}.actionbar{gap:5px;padding:8px 15px;height:76px}.bar-gem{font-size:1.25rem}.begin-button{padding:9px;font-size:.6875rem}.party-overview{grid-template-columns:1fr 1fr}}
@media(max-width:760px){.topbar{height:66px;justify-content:space-between}.topbar .wordmark{width:165px}.topbar nav{display:none}.account-name{display:none}.account-block .icon-button{padding:6px}.auth-page{display:block}.auth-story{height:330px;min-height:0;padding:22px 20px}.auth-story>.wordmark{width:340px}.wordmark.large strong{font-size:2.25rem}.story-eyebrow{font-size:.5rem}.login-heroes{top:105px;bottom:0;left:2%;right:3%;opacity:.85;mask-image:linear-gradient(#000 80%,transparent)}.login-hero.h0{left:10%;height:100%}.login-hero.h1{left:34%;height:114%}.login-hero.h3{left:61%;height:92%}.story-caption{display:none}.auth-entry{padding:0 20px 70px}.auth-form{max-width:380px;margin-top:-10px;z-index:2;padding:27px}.auth-footer{font-size:.5rem;left:14px;right:14px;bottom:14px;flex-direction:column;text-align:center;gap:8px}.auth-world{filter:blur(1px)}.creator{padding:18px 13px}.page-heading h1{font-size:1.625rem}.creator-grid{display:flex;flex-wrap:wrap;gap:13px;min-height:0;max-height:none}.choices{width:100%}.choices>h2,.choices>.micro,.scope-note{display:none}.choices{display:grid;grid-template-columns:1fr 1fr;gap:7px;padding:12px}.choice{min-height:70px;margin:0}.choice img{width:41px;height:49px}.choice b{font-size:.875rem}.choice small{font-size:.5625rem}.creator-stage{width:100%;min-height:470px;height:470px}.hero-pedestal{height:365px}.hero-caption{height:100px}.creation-details{width:100%;overflow:visible}.character-page{display:flex;flex-direction:column;padding:14px;gap:14px}.character-nav{width:100%;display:none}.character-showcase{min-height:480px;height:480px}.character-showcase .hero-pedestal{height:380px}.character-info{width:100%}.combat-grid{height:auto;display:flex;flex-direction:column;min-height:0}.party-rail{order:0;padding:5px 6px;display:block;border-bottom:1px solid #6f644d;border-right:0}.rail-heading{display:none}#partyCards{display:grid;grid-template-columns:repeat(4,1fr);gap:4px}.party-card{display:block;min-height:0;padding:4px 3px;margin-bottom:0}.party-card .portrait-frame{display:none}.party-info>b{font-size:.625rem}.party-info>small{font-size:.4375rem;min-height:9px}.party-ability-icons{display:none}.party-xp{padding:6px 0 2px;font-size:.5rem}.combat-log{display:none}.arena-column{order:1;height:600px}.right-rail{order:2;display:grid;grid-template-columns:1fr 1fr;overflow:visible;border-top:1px solid #635d48;border-left:0;gap:8px;padding:10px}.dev-panel{grid-column:1/-1}.right-rail h2{font-size:.9375rem}.dev-panel .small-note{font-size:.6875rem}.ally-editor{display:grid;grid-template-columns:80px 1fr 1fr;gap:7px;align-items:center}.ally-top{margin:0}.ally-top>small{display:none}.ally-pick{margin:0}.ally-editor>input{width:100%}.ally-pick select{font-size:.6875rem}.dev-tabs button{padding:9px}.zone-badge{top:11px;font-size:.8125rem;max-width:96%}.zone-badge span{font-size:.9375rem}.actionbar{bottom:12px;gap:5px;padding:8px 12px;max-width:94%;height:73px}.actionbar .skill-icon{width:33px;height:33px}.actionbar .begin-button{padding:9px 11px;margin-left:3px}.bar-gem{font-size:1.0625rem;padding:0}.action-key>small,.ability-tile>small{font-size:.4375rem}.bar-wing{width:10px}.arena-help{font-size:.6875rem;bottom:97px}.unit-name{font-size:.625rem}.unit-name b{font-size:.6875rem}.unit-name small{font-size:.4375rem}.content-page{padding:22px 14px}.skill-grid{grid-template-columns:1fr}.party-overview{gap:10px}.party-show{padding:11px}.party-show>img{height:200px}.party-show h2{font-size:1.125rem}.xp-rates{gap:6px;padding:15px 6px}.xp-rates b,.xp-rates small{font-size:.5625rem}.xp-rates strong{font-size:1.4375rem;margin:8px 0}.page-heading>.red-button,.page-heading>.secondary{font-size:.6875rem;padding:10px}.modal-backdrop{padding:16px}.settings-modal{max-width:100%}.respawn-clock{font-size:.6875rem}#toast{font-size:.75rem;max-width:95vw;width:max-content}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

/* Native-screen review corrections, not a flattened screen overlay. */
.auth-embers{position:absolute;inset:0;z-index:-2;pointer-events:none}.auth-story,.auth-entry{min-width:0}.painted-wordmark{padding:0!important;clip-path:none;background:none;box-shadow:none;border:0}.painted-wordmark img{display:block;width:100%;height:auto;filter:drop-shadow(0 3px 3px #000)}.wordmark.large.painted-wordmark{width:min(520px,95%)}.hero-pedestal.mage .showcase-hero{height:94%;transform:none}.hero-pedestal.priest .showcase-hero{height:100%;transform:none}.wordmark.large img{width:100%;height:auto}

/* Composed hero group and denser rails from the actual viewport review. */
@media(min-width:1021px){.login-hero.h0{left:0%;height:87%;bottom:8px;z-index:3}.login-hero.h1{left:28%;height:84%;bottom:94px;z-index:4}.login-hero.h2{left:47%;height:85%;bottom:45px;z-index:5}.login-hero.h3{left:65%;height:76%;bottom:0;z-index:6}.login-heroes{right:10px}.story-caption{bottom:64px}.auth-story .login-hero{max-width:none}.minimap{height:105px}.ally-editor{margin:7px 0 8px;padding-bottom:7px}.ally-top{margin-bottom:5px}.ally-editor>input{height:22px;padding:3px 6px}.ally-pick{margin-bottom:4px}.right-rail{gap:8px}.quest-panel>small{font-size:.5rem}.right-rail .quest-panel{padding-top:9px;padding-bottom:8px}.dev-panel .text-button{margin-top:4px}}
/* Keep the four faces and logo readable in the final desktop composition. */
@media(min-width:1021px){.login-heroes{top:220px}.login-hero.h1{left:34%}}
@media(min-width:1021px){.auth-story .story-eyebrow{position:absolute;top:208px;left:0;right:0;margin:0}}

/* Golden Slice 2: preserve the approved art and three-column composition. */
.dev-tabs button{min-width:0;flex:1;padding-left:3px;padding-right:3px;font-size:.625rem}
.setup-links{display:flex;justify-content:space-between;gap:4px}.setup-links .text-button{font-size:.625rem}
.orders-panel>label{margin:12px 0}.orders-panel>label select{width:100%}
.focus-order{position:absolute;top:12px;right:12px;z-index:230;background:#101612d9;border:1px solid #9e8550;color:#ffe4a8;padding:7px 10px;font-size:.625rem;letter-spacing:.4px;max-width:260px;pointer-events:none}
.enemy-focus-hitbox{position:absolute;border:0;background:none;pointer-events:auto;cursor:crosshair;padding:0;opacity:0;z-index:2}
.enemy-focus-hitbox:focus-visible{opacity:1;background:#edd28a08;outline:1px dashed #d7bd7b;border-radius:40%;outline-offset:3px}
.enemy-focus-hitbox:disabled{pointer-events:none}.focus-target .unit-name>b{color:#ffe1a0;text-shadow:0 0 6px #805410,0 2px 2px #000}.focus-target .unit-name>b:before{content:'◆ ';font-size:.5625rem}
.unit-name .unit-cast{position:relative;width:112px;height:13px;margin:3px auto 0;border:1px solid #7a6967;background:#1a1023ed;border-radius:2px;overflow:hidden;text-shadow:0 1px 2px #000}
.unit-cast>i{display:block;height:100%;background:linear-gradient(90deg,#503b77,#9168b3);opacity:.7}.hero-unit .unit-cast>i{background:linear-gradient(90deg,#756230,#d1ab58)}
.unit-cast>span{position:absolute;inset:0;display:grid;place-items:center;font:8px Arial,sans-serif;color:#fff5d8}
.unit-status{font:8px Arial,sans-serif;color:#f4a694;margin-top:3px;text-shadow:0 1px 2px #000;min-height:0}
.party-ability-icons .skill-icon{position:relative}.party-ability-icons small[data-attack-timer],.party-ability-icons small[data-heal-timer],.party-ability-icons small[data-taunt-timer]{position:absolute;bottom:0;left:0;right:0;font:bold .5rem/.625rem Arial,sans-serif;text-align:center;background:#080c10bb;color:#fff5ce}.party-ability-icons small:empty{display:none}
.report-modal{width:min(800px,94vw);max-height:90vh;overflow:auto;padding:28px}.report-table-wrap{overflow-x:auto}.report-table{width:100%;border-collapse:collapse;font-size:.75rem}.report-table th{text-align:right;color:#d7bc87;font-size:.625rem;letter-spacing:.5px;padding:10px 8px;border-bottom:1px solid #756745}.report-table th:first-child{text-align:left}.report-table td{padding:14px 8px;border-bottom:1px solid #363c34;text-align:right;white-space:nowrap}.report-table td:first-child{text-align:left}.report-table td small{display:block;color:#a9a18b;font-size:.625rem;margin-top:4px}.report-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}.report-modal .small-note{margin:18px 0}.report-actions button{font-size:.75rem}
@media(max-width:650px){.focus-order{top:44px;font-size:.5625rem;right:8px;max-width:230px}.report-modal{padding:17px}.unit-name .unit-cast{width:102px}}
/* Character sheet (switch off): with no attribute points to spend, the Attributes panel folds into one row so the paper doll comes first. */
.character-attributes-fold{min-width:0;background:#101b22;border:1px solid #66583e;border-radius:5px}
.character-attributes-fold>summary{display:flex;flex-direction:column;gap:2px;min-height:44px;justify-content:center;padding:10px 16px;cursor:pointer;font-family:Cinzel,Georgia,serif;font-size:1.05rem;color:#f0dfb6}
.character-attributes-fold>summary small{font-size:.8rem;color:#bfb08d;font-family:system-ui,sans-serif}
.character-attributes-fold>summary:focus-visible{outline:2px solid #e4c47a;outline-offset:2px}
.character-attributes-fold[open]>summary{border-bottom:1px solid #66583e}
.character-attributes-fold>.attribute-panel{border:0;background:transparent}
/* Spell art (bursts, Pinnacle clips, ward rings, shots) on its own layer just under the numbers (public/app.js effectArt). */
#effectArt{position:absolute;inset:0;pointer-events:none;width:100%;height:100%;z-index:199}
/* Titled notice (regrade, 17 Nov 2026): middle of the screen, gold frame, a heading and one line; above every other message. */
#toast.notice{top:58%!important;bottom:auto!important;transform:translate(-50%,-50%) scale(.97)!important;display:flex;flex-direction:column;gap:6px;width:min(420px,calc(100vw - 32px));max-width:calc(100vw - 32px);padding:16px 22px 18px;border:1px solid #d6b575;border-radius:8px;background:#141a20f7;box-shadow:0 0 0 1px #0009,0 10px 40px #000c;text-align:center;font-size:.9375rem;line-height:1.45;z-index:2600}
#toast.notice.visible{transform:translate(-50%,-50%)!important}
#toast.notice .toast-title{font:600 1.0625rem/1.3 var(--serif);color:#f0ce83;letter-spacing:.02em}
#toast.notice .toast-body{color:#efe1c1}
/* Its own look (regrade, 17 Nov 2026): a gold bar on top, so it never reads as part of a story box; on PC it sits low, above the skill bar, away from the story line at the top of a fight. */
#toast.notice{border-top:4px solid #d6b575;background:linear-gradient(#2a2214f7,#141a20f7 46px)}
@media(min-width:761px){#toast.notice{top:auto!important;bottom:150px!important;transform:translate(-50%,0) scale(.97)!important}#toast.notice.visible{transform:translate(-50%,0)!important}}

/* /veteran.css */
/* Extend the approved interface without changing painted assets or model sizes. */
.mode-select{font-size:.875rem;line-height:1.5}
.mode-select select{font-size:.875rem;padding:9px 6px}





.mechanic-warning[hidden]{display:none}





.mechanic-warning{position:absolute;left:0;right:0;bottom:0;box-sizing:border-box;width:fit-content;max-width:calc(100% - 24px);margin:0 auto 10px;padding:6px 16px;z-index:312;border:1px solid var(--uk-gold-dim,#8f7645);border-top:2px solid var(--uk-gold-hi,#f0ce83);border-radius:var(--uk-radius,4px);background:var(--uk-navy-1,#101a2a);box-shadow:inset 0 0 0 2px var(--uk-navy-0,#0c1723),0 4px 12px #0009;color:var(--uk-gold-text,#ffe1aa);text-align:center;font-size:.875rem;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;pointer-events:none}
/* A one-line plate centred just above the bottom edge of #battlefield (Pat, 21 Oct 2026: the full-width band cut the arena off), over the strip below the party and under the nameplates (units stand between 28% and 80% of the height). It takes no room, so showing or hiding the line never moves the battle. One line at every width, cut with an ellipsis; the full text stays in the element for a screen reader. */
.encounter-status.paused-badge{left:12px;right:auto;top:12px;padding:7px 10px;font:.8125rem Arial;letter-spacing:.6px;border:1px solid #b59b6a;z-index:315}
.report-mode{color:#ebc783;font-size:1rem}
.mechanic-report{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 20px;padding:14px;border:1px solid #5f573f;font-size:.875rem}
.mechanic-report dt,.mechanic-report dd{margin:0}
.mechanic-report dd{color:#f2d799;text-align:right}
@media(max-width:700px){




  .mechanic-warning{font-size:.8125rem}
}
@media(max-width:480px){
  .mechanic-warning{font-size:.75rem;padding:6px 8px}
}
/* Phones and small tablets: the zone overview sits in the bottom right corner (combat-hud.css), so the plate keeps to its left and may take two lines. */
@media(max-width:600px){
  .mechanic-warning{margin:0 auto 8px 8px;max-width:calc(100% - 132px);white-space:normal;text-align:left;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
}
/* Mechanic cues (switch IRP_MECHANIC_CUES_VERSION, lib/mechanic-cues.js): the painted cue (36px, 32-40 in the visual specification), the response verb,
   the line and the real countdown in one row. Shape, word and number carry the meaning, not colour; no pulse, so reduced motion shows the same. */
.mechanic-warning.mw-cued:not([hidden]){display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:nowrap;min-height:44px}
.mechanic-warning.mw-cued>*{flex:none}
.mechanic-warning.mw-cued .mw-text{flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis}
.mechanic-warning.mw-cued .mw-cue{width:36px;height:36px;flex:0 0 36px;object-fit:contain;filter:drop-shadow(0 1px 2px #000a)}
.mechanic-warning.mw-cued .mw-verb{font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--uk-gold-hi,#f0ce83)}
.mechanic-warning.mw-cued .mw-time{min-width:3.2em;padding:1px 6px;border:1px solid #f0ce8366;border-radius:3px;font-variant-numeric:tabular-nums;font-weight:700}
.mechanic-warning.mw-cued .mw-time:empty{display:none}
/* Phones: the line may take two rows so the countdown never covers it. */
@media (max-width:540px){.mechanic-warning.mw-cued:not([hidden]){gap:6px}.mechanic-warning.mw-cued .mw-cue{width:32px;height:32px;flex-basis:32px}.mechanic-warning.mw-cued .mw-text{flex:1 1 auto;white-space:normal;text-align:left;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}}

/* /boss.css */
.boss-brief{margin:14px 0;padding:14px;border:1px solid #826638;background:#171a18}
.boss-brief h3{margin-bottom:10px;font-size:1.125rem;color:#f0cf8e}
.boss-brief p{font-size:.875rem;line-height:1.55;margin-bottom:12px}
.boss-brief p:last-child{margin-bottom:0}
.boss-progress-summary{font-size:.875rem;line-height:1.5;color:#efd29a;margin:12px 0}
.boss-result{position:absolute;z-index:316;left:50%;top:43%;transform:translate(-50%,-50%);width:460px;max-width:92%;max-height:65%;overflow:auto;text-align:center;padding:26px;background:#0b131bf5}
.boss-result[hidden],.unit[hidden]{display:none}
.boss-result h2{font-size:1.75rem;color:#f3d391;margin-bottom:12px}
.boss-result p,.report-result p{font-size:.875rem;line-height:1.5}
.reward-line{display:flex;justify-content:center;flex-wrap:wrap;gap:12px 26px;margin:18px 0;color:#f5d787;font-size:1.25rem}
.result-actions{display:flex;justify-content:center;flex-wrap:wrap;gap:8px;margin-top:18px}
.result-actions button{font-size:.875rem}
.report-result{border:1px solid #826638;padding:16px;margin:14px 0}
.history-modal{width:820px;max-width:94vw;max-height:85vh;overflow:auto}
.history-list{margin:16px 0 22px}
.history-row{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(90px,1fr) minmax(110px,1fr);gap:14px;padding:15px 0;border-bottom:1px solid #4b4b3f;align-items:center;font-size:.875rem}
.history-row b{color:#f2d69d}
.history-row small{display:block;margin-top:6px;font-size:.75rem;color:#bfb8a6;line-height:1.5}
.history-row>span:last-child{text-align:right;color:#efd496}
@media(max-width:600px){
 .boss-result{padding:18px;max-height:58%;top:39%}
 .boss-result h2{font-size:1.5rem}
 .result-actions{gap:6px}
 .history-row{grid-template-columns:minmax(0,1fr) auto;gap:8px}
 .history-row>div{grid-column:1/-1}
}

/* /responsive.css */
/* Standing UI baseline: PC, tablet, Android and iPhone browsers.
   Preserve the painted theme; size the layout from available space, never the user agent. */
:root { --tap: 2.75rem; --page-gap: clamp(.875rem, 2vw, 1.5rem); }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { font-size: 1rem; }
body.dialog-open { overflow: hidden; }
button, a, input, select, summary { touch-action: manipulation; }
button, input:not([type=checkbox]), select, summary { min-height: var(--tap); }
input:not([type=checkbox]), select { font-size: 1rem; }
input[type=checkbox] { width: 1.25rem; height: 1.25rem; }
label, .checkbox-row { font-size: .875rem; }
.checkbox-row { min-height: var(--tap); }
.small-note, .subtle, .inline-error, .name-status { font-size: .875rem; }
.micro, .eyebrow, .chapter-note { font-size: .75rem; }
.shell, .auth-page { min-height: 100vh; min-height: 100svh; }
.shell { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); padding-bottom: env(safe-area-inset-bottom); }
.topbar { height: auto; min-height: 75px; gap: 1rem; }
.topbar nav, .topbar .account-block { min-width: 0; }
.nav-button { font-size: .875rem; padding: .375rem .75rem; min-height: 3.25rem; }
.account-name b { max-width: 9rem; overflow: hidden; text-overflow: ellipsis; }
.account-name small { font-size: .75rem; }
.icon-button { min-width: var(--tap); min-height: var(--tap); justify-content: center; align-items: center; }
.page-heading { gap: 1rem; flex-wrap: wrap; }
.page-heading > div { min-width: 0; }
.page-heading h1, .hero-caption h1, .hero-caption h2, .party-show h2 { overflow-wrap: anywhere; }
.page-heading .subtle { margin: .5rem 0 0; }
.page-heading > button { flex-shrink: 0; }
.character-page { grid-template-columns: 12rem minmax(0, 1fr) minmax(17rem, 21rem); gap: var(--page-gap); padding: 1.5rem clamp(.875rem, 2vw, 2rem); min-height: 0; align-items: start; }
.character-heading { grid-column: 1 / -1; margin-bottom: 0; }
.character-heading h1 { font-size: clamp(1.5rem, 3vw, 2rem); }
.character-nav, .character-info, .character-showcase { min-width: 0; }
.character-nav button { font-size: .875rem; }
.character-nav p:not(.eyebrow) { font-size: .875rem; }
.character-showcase { min-height: 0; height: auto; align-self: start; }
.character-showcase .hero-pedestal { flex: none; width: 100%; height: clamp(16rem, 46vh, 26rem); height: clamp(16rem, 46svh, 26rem); }
.hero-pedestal { min-width: 0; overflow: hidden; }
.hero-pedestal .showcase-hero,
.hero-pedestal.mage .showcase-hero,
.hero-pedestal.priest .showcase-hero { display: block; width: 100%; height: 100%; max-height: 100%; max-width: 100%; object-fit: contain; transform: none; }
.hero-caption { height: auto; min-height: 6.5rem; flex-shrink: 0; padding: 1rem; }
.hero-caption p { font-size: .875rem; }
.hero-caption .eyebrow { font-size: .75rem; }
.character-info dl, .skill-card dl { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); font-size: .875rem; gap: .75rem; }
.character-info dd, .skill-card dd { overflow-wrap: anywhere; }
.equipment-slot { min-width: 0; }
.equipment-slot > div { min-width: 0; }
.equipment-slot b, .equipment-slot small { overflow-wrap: anywhere; }
.equipment-slot small { font-size: .75rem; line-height: 1.5; }
.creator { padding: 1.5rem clamp(.875rem, 2vw, 2rem); }
.creator-grid { grid-template-columns: 14rem minmax(0, 1fr) minmax(17rem, 21rem); height: auto; min-height: 0; max-height: none; gap: var(--page-gap); align-items: start; }
.creator-grid > * { min-width: 0; }
.creator-stage { min-height: 0; }
.creator-stage .hero-pedestal { height: clamp(17rem, 48vh, 29rem); height: clamp(17rem, 48svh, 29rem); flex: none; }
.creation-details { overflow: visible; }
.choice { min-height: 5rem; }
.choice > span { min-width: 0; }
.choice b { font-size: 1rem; }
.choice small { font-size: .75rem; }
.scope-note p, #createForm > .micro, .ascension-hint small { font-size: .75rem; }
.class-description, .skill-list b, .ascension-hint span { font-size: .875rem; }
.auth-form input:not([type=checkbox]) { height: var(--tap); }
.auth-form .checkbox-row, .auth-form > .subtle { font-size: .875rem; }
.local-note, .local-note span, .auth-footer { font-size: .75rem; letter-spacing: .025em; }
.auth-story { min-height: 46rem; }
.party-overview { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.party-show { min-width: 0; }
.party-show > p, .xp-rates b, .xp-rates small { font-size: .875rem; }
.party-show > img { height: clamp(12rem, 28vh, 19rem); }
.skill-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* A dedicated control dock leaves actors and ground warnings unobstructed. */
.combat-grid { grid-template-columns: minmax(12.5rem, 17%) minmax(0, 1fr) minmax(18rem, 23%); height: calc(100vh - 75px); height: calc(100svh - 75px); min-height: 42rem; }
.arena-column { display: flex; flex-direction: column; min-height: 0; }
.arena-heading { flex: none; background: #0b151b; border-bottom: 1px solid #65583e; }
.zone-badge { position: static; transform: none; max-width: none; padding: .625rem; white-space: normal; }
.zone-badge small { font-size: .75rem; letter-spacing: .05em; margin-top: .25rem; display: block; }
/* "Next up" (public/next-up.js): one quiet row under the zone name, so the hero always has a level to aim for. */
.next-up { display: flex; align-items: center; gap: .625rem; width: 100%; max-width: 36rem; margin: .25rem auto 0; padding: .375rem 0 .125rem; box-sizing: border-box; border-top: 1px solid #2a2f2c; color: #d8ccb0; }
/* With the compact expedition bar the heading is a grid: Next up takes its own full-width row under the zone line. */
.arena-heading.ex-bar > #nextUp { grid-column: 1 / -1; grid-row: 4; }
.next-up .next-up-tile { flex: none; width: 32px; height: 32px; }
.next-up-text { flex: 1 1 auto; min-width: 0; display: grid; gap: .125rem; }
.next-up-text small { font-size: .6875rem; letter-spacing: .06em; text-transform: uppercase; color: #a8987a; }
.next-up-text b { font-size: .875rem; font-weight: 600; color: #f1e4c4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-up-bar { display: block; height: 4px; border-radius: 2px; background: #1d2a30; overflow: hidden; }
.next-up-bar u { display: block; height: 100%; background: linear-gradient(90deg, #a8803e, #e2bd6a); text-decoration: none; transition: width .6s ease; }
.next-up-eta { flex: none; font-size: .75rem; color: #a8987a; white-space: nowrap; }
/* One goal (IRP_ONE_GOAL_VERSION, public/one-goal.js): the story step leads the line, the next level unlock under it, one button to go there. */
.next-up-later { font-style: normal; font-size: .6875rem; color: #a8987a; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-up .next-up-go { flex: none; min-height: 44px; margin: 0; padding: 0 .875rem; white-space: nowrap; }
.battlefield { height: auto; flex: 1 1 auto; min-height: 24rem; }
.battle-controls { flex: none; background: #0b151b; border-top: 1px solid #7a6744; padding: .625rem; display: grid; gap: .5rem; }
.battle-controls .actionbar { position: static; transform: none; width: 100%; max-width: none; height: auto; min-height: 4.5rem; padding: .5rem; gap: .5rem; flex-wrap: wrap; justify-content: center; box-shadow: none; }
.battle-controls .actionbar::before, .battle-controls .bar-wing, .battle-controls .bar-gem { display: none; }
.actionbar .action-key { min-width: var(--tap); min-height: var(--tap); padding: .25rem .5rem; }
.actionbar .skill-icon { width: 2rem; height: 2rem; }
.action-label { font-size: .875rem; }
.action-key > small, .ability-tile > small { font-size: .75rem; letter-spacing: 0; }
.actionbar .begin-button { height: auto; min-height: var(--tap); margin: 0; padding: .75rem; font-size: .875rem; }





.arena-heading .mechanic-warning { position: static; transform: none; width: auto; max-width: none; padding: .625rem; margin: 0 .5rem .5rem; font-size: .875rem; }
.battle-controls .focus-order { position: static; display: flex; max-width: none; justify-content: space-between; gap: .5rem; align-items: center; font-size: .875rem; pointer-events: auto; padding: .25rem .5rem; }
.focus-order > span { min-width: 0; overflow-wrap: anywhere; }
.focus-order button { padding: .5rem; flex-shrink: 0; }
.focus-order[hidden], .mechanic-warning[hidden] { display: none; }
.arena-help { bottom: 1rem; left: .75rem; right: .75rem; margin: 0; font-size: .875rem; }
.boss-result { top: 50%; max-height: calc(100% - 2rem); padding: 1.25rem; }
.unit-name b { display: block; font-size: .75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.unit-name small, .unit-status { font-size: .75rem; }
.unit-name .unit-cast { width: 100%; }
.unit-cast > span { font-size: .75rem; }
.unit-name .unit-cast { height: 1.125rem; }
.respawn-clock { font-size: .75rem; width: 6.5rem; left: -3.25rem; }
.party-rail { overflow-y: auto; }
.party-card { min-height: 0; padding: .5rem; gap: .5rem; }
.party-card .portrait-frame { width: 2.75rem; height: 4.5rem; }
.party-card .portrait-frame img { height: 3.25rem; }
.portrait-frame > span { font-size: .75rem; }
.party-info > b { font-size: .875rem; }
.party-info > small { font-size: .75rem; }
.party-info .hud-bar { height: 1.125rem; }
.party-info .hud-bar em { font-size: .75rem; line-height: 1rem; }
.party-info .hud-bar.resource { height: .5rem; }
.party-xp { font-size: .75rem; gap: .5rem; flex-wrap: wrap; }
.combat-log { flex: none; min-height: 0; overflow: hidden; }
.log-tabs { display: list-item; cursor: pointer; font-size: .875rem; padding: .75rem; }
.log-tabs span { float: right; font-size: .75rem; }
#combatLog { max-height: 15rem; font-size: .875rem; line-height: 1.5; }
#combatLog time, .log-empty { font-size: .75rem; }
.right-rail h2 { font-size: 1rem; }
.right-rail .micro, .dev-panel > .micro, #devContent > .micro { font-size: .75rem; }
.quest-panel > b, .quest-panel > span, .quest-panel > small { font-size: .875rem; line-height: 1.5; color: #c4c6b3; }
.dev-tabs button { font-size: .875rem; }
.dev-panel .checkbox-row, .dev-panel .small-note, .dev-panel .secondary.full, .dev-panel .red-button.full, .dev-panel .text-button, .setup-links .text-button { font-size: .875rem; }
.ally-editor > input, .ally-pick select { height: var(--tap); padding: .5rem; font-size: 1rem; }
.ally-pick { align-items: center; }
.ally-pick select { flex: 1; width: 0; min-width: 0; }
.ally-top b { font-size: .875rem; }
.ally-top > small, .live-chip { font-size: .75rem; }
.dev-panel { scroll-margin-top: 1rem; }
.modal-backdrop { padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left)); overflow-y: auto; }
.settings-modal, .report-modal, .history-modal { width: min(100%, 51rem); max-width: 100%; max-height: calc(100vh - 2rem); max-height: calc(100dvh - 2rem); overflow-y: auto; overscroll-behavior: contain; }
.settings-modal { width: min(100%, 26rem); }
.report-table { font-size: .875rem; }
.report-table th, .report-table td small { font-size: .75rem; }
.report-actions button { font-size: .875rem; }
.report-table-wrap { max-width: 100%; }
#toast { max-width: calc(100vw - 2rem); width: max-content; overflow-wrap: anywhere; bottom: max(1rem, env(safe-area-inset-bottom)); font-size: .875rem; }

@media (max-width: 1100px) {
  .topbar { flex-wrap: wrap; gap: .5rem; padding: .5rem .75rem; }
  .topbar > .wordmark { width: 11rem; margin-right: auto; }
  .topbar nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); flex: 0 0 100%; width: 100%; order: 3; }
  .nav-button { min-width: 0; gap: .25rem; }
  .dev-badge { display: none; }
  .character-page { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .character-nav { display: none; }
  .character-showcase .hero-pedestal { height: clamp(15rem, 40vh, 23rem); height: clamp(15rem, 40svh, 23rem); }
  .creator-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .choices { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: .75rem; gap: .5rem; width: auto; }
  .choices > h2, .choices > .micro, .scope-note { display: none; }
  .choice { margin: 0; padding: .5rem; gap: .5rem; }
  .choice img { width: 2.5rem; height: 3rem; }
  .choice i { display: none; }
  .creator-stage { width: auto; height: auto; }
  .creation-details { width: auto; }
  .combat-grid { height: auto; min-height: 0; display: flex; flex-direction: column; }
  .party-rail { order: 0; padding: .5rem; border-right: 0; border-bottom: 1px solid #655f48; display: block; }
  .rail-heading { display: none; }
  #partyCards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; }
  .party-card { margin: 0; }
  .party-card .portrait-frame { display: none; }
  .party-ability-icons { display: none; }
  .party-xp { padding: .5rem 0; }
  .combat-log { display: block; }
  .arena-column { order: 1; height: auto; }
  .battlefield { flex: none; height: clamp(24rem, 55vh, 34rem); height: clamp(24rem, 55svh, 34rem); }
  .right-rail { order: 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); overflow: visible; border-left: 0; padding: .75rem; gap: .75rem; }
  .dev-panel { grid-column: 1 / -1; }
  .ally-editor { display: grid; grid-template-columns: 6rem minmax(0, 1fr) minmax(0, 1fr); gap: .75rem; align-items: center; }
  .ally-top, .ally-pick { margin: 0; }
  .ally-top > small { display: none; }
  .party-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .topbar { padding-top: max(.5rem, env(safe-area-inset-top)); }
  .account-name { display: none; }
  .topbar .account-block { gap: .375rem; }
  .topbar .account-block .icon-button { padding: .5rem; }
  .auth-page { display: flex; flex-direction: column; overflow: hidden; }
  .auth-story { height: auto; min-height: 0; padding: 1.25rem 1rem; }
  .auth-story > .wordmark { width: min(20rem, 100%); }
  .story-eyebrow { font-size: .75rem; margin-top: .75rem; }
  .login-heroes, .story-caption { display: none; }
  .auth-entry { width: 100%; padding: .5rem 1rem 1.5rem; }
  .auth-form { max-width: 26rem; margin: 0 auto; padding: 1.5rem; }
  .auth-footer { position: static; flex-direction: column; text-align: center; padding: 0 1rem max(1rem, env(safe-area-inset-bottom)); gap: .5rem; }
  .creator, .content-page, .character-page { padding: 1rem .875rem; }
  .character-page { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .character-heading, .page-heading { align-items: flex-start; }
  .character-heading > button { width: 100%; }
  .character-showcase, .creator-stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); height: auto; min-height: 0; align-items: center; }
  .character-showcase .hero-pedestal, .creator-stage .hero-pedestal { height: clamp(12rem, 32vh, 16rem); height: clamp(12rem, 32svh, 16rem); padding: .5rem 0; }
  .hero-caption { width: 100%; padding: .75rem; min-height: 0; background: transparent; }
  .hero-caption h2 { font-size: 1.25rem; }
  .hero-caption p { font-size: .875rem; }
  .character-info { gap: 1rem; }
  .creator-grid { grid-template-columns: minmax(0, 1fr); }
  .choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .creator-stage { width: 100%; }
  .creation-details { padding: 1.25rem; }
  .skill-grid { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .skill-card { padding: 1.25rem; }
  .party-show > img { height: 12rem; }
  .xp-rates { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
  .xp-rates b, .xp-rates small { font-size: .875rem; }
  #partyCards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .party-card { display: flex; padding: .5rem; }
  .party-info > b { font-size: .875rem; }
  .party-info > small { font-size: .75rem; min-height: auto; }
  .battle-controls .actionbar { gap: .375rem; }
  .actionbar .ability-tile { display: none; }
  .actionbar .action-key { flex: 1 1 3rem; }
  .actionbar .begin-button { flex: 1 1 4rem; }


  .battlefield { height: clamp(24rem, 50vh, 30rem); height: clamp(24rem, 50svh, 30rem); }
  .right-rail { grid-template-columns: minmax(0, 1fr); }
  .minimap-panel { display: block; order: 2; }
  .quest-panel { order: 0; }
  .dev-panel { order: 1; }
  .ally-editor { grid-template-columns: 5.5rem minmax(0, 1fr); }
  .ally-editor > input { grid-column: 2; width: 100%; }
  .dev-tabs button { font-size: .875rem; padding: .5rem .25rem; }
  .boss-result { top: 50%; max-height: calc(100% - 1.5rem); max-width: calc(100% - 1.5rem); padding: 1rem; }
  .boss-result h2 { font-size: 1.5rem; }
  .result-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .result-actions > :first-child { grid-column: 1 / -1; }
  .mechanic-report { grid-template-columns: minmax(0, 1fr) auto; gap: .75rem; padding: .75rem; }
  .history-row { grid-template-columns: minmax(0, 1fr) auto; gap: .5rem; }
  .history-row > div { grid-column: 1 / -1; }
  .report-modal { padding: 1rem; }
  .report-actions > button { flex: 1 1 8rem; }
}

@media (max-width: 380px) {
  .topbar > .wordmark { width: 9rem; }
  .choice { gap: .375rem; padding: .375rem; }
  .choice img { width: 2rem; }
  .choice b { font-size: .875rem; }
  .hero-caption { padding: .5rem; }
  .character-showcase, .creator-stage { grid-template-columns: 45% minmax(0, 1fr); }

}

@media (max-height: 540px) and (max-width: 1100px) and (orientation: landscape) {
  .topbar nav { gap: .25rem; }
  .nav-button { flex-direction: row; min-height: var(--tap); }
  .battlefield { height: 24rem; }
}

/* Next up at phone width: the line may wrap to two rows instead of cutting the unlock off. */
@media (max-width: 480px) {
  .next-up { gap: .5rem; }
  .next-up .next-up-tile { width: 28px; height: 28px; }
  .next-up-text b { white-space: normal; font-size: .8125rem; line-height: 1.25; }
  .next-up-eta { font-size: .6875rem; }
}

/* /movement.css */
.formation-status { margin: 0; padding: .5rem .75rem; border-bottom: 1px solid #514932; color: #dec698; font-size: .875rem; line-height: 1.5; text-align: center; overflow-wrap: anywhere; }
.move-button { font-size: .875rem; padding: .625rem; }
.move-button[aria-expanded=true] { border-color: #e5c27e; background: #39452f; }
.move-controls { border: 1px solid #776849; padding: .75rem; background: #111c23; }
.move-controls p { font-size: .875rem; margin-bottom: .75rem; }
.move-controls > button { margin-top: .5rem; width: 100%; font-size: .875rem; }
.move-directions { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: .5rem; }
.move-directions button { font-size: .875rem; min-width: 0; padding: .5rem; }
.choosing-destination { cursor: crosshair; outline: 2px solid #d6b16d; outline-offset: -2px; }
.battlefield { touch-action: pan-y pinch-zoom; }
.destination-marker { position: absolute; z-index: 220; width: 1.5rem; height: 1.5rem; border: 2px solid #e7d598; border-radius: 50%; transform: translate(-50%,-50%); box-shadow: 0 0 0 3px #101a25bb; pointer-events: none; }
.destination-marker::before { content: ''; position: absolute; inset: .3rem; border-radius: 50%; background: #e7d598; }
.destination-marker span { position: absolute; top: 1.75rem; left: 50%; transform: translateX(-50%); font-size: .75rem; padding: .2rem .4rem; background: #101a25ed; color: #fff0cd; }
.destination-marker[hidden], .move-controls[hidden] { display: none; }
@media(max-width:760px) {
 .actionbar .move-button { flex: 1 1 5rem; }
 .formation-status { font-size: .875rem; text-align: left; }
 .move-directions { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

/* Expanding destination controls must not clip the arena or the controls below it. */
.combat-grid.movement-open { height: auto; }
.combat-grid.movement-open .arena-column { overflow: visible; }

/* /review.css */
/* Combat review follows the existing painted frame, with readable phone cards. */
.report-modal { width: min(100%, 58rem); }
.review-section { margin-block: 1.5rem; }
.review-section h3, .review-member h4 { margin: 0; color: #f1d8a2; }
.review-observations { padding-left: 1.25rem; }
.review-observations li { margin-block: .85rem; padding-left: .25rem; }
.review-observations p { margin-block: .25rem; line-height: 1.55; }
.review-tip { color: #d3c5af; }
.review-party-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.review-member { min-width: 0; padding: 1rem; border: 1px solid #655039; background: #171510; border-radius: .35rem; }
.review-member-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .4rem; }
.review-member h4 { font-size: 1.1rem; overflow-wrap: anywhere; }
.review-member-heading span, .review-member > p { font-size: .85rem; color: #d3c5af; }
.review-member > p { margin-block: .35rem .9rem; }
.review-member dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem .5rem; margin: 0; }
.review-member dl > div { min-width: 0; }
.review-member dt { color: #d3c5af; font-size: .8rem; }
.review-member dd { margin: .25rem 0 0; font-size: 1rem; color: #fff0d3; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.review-sources { padding: 0; list-style: none; }
.review-sources li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .75rem; padding-block: .85rem; border-bottom: 1px solid #514332; }
.review-sources li > div:last-child { text-align: right; }
.review-sources small, .review-timeline small { display: block; margin-top: .3rem; color: #d3c5af; line-height: 1.4; }
.review-death, .review-details { border: 1px solid #655039; border-radius: .3rem; margin-block: .65rem; padding-inline: .85rem; }
.combat-review summary { min-height: 44px; padding-block: .8rem; cursor: pointer; line-height: 1.5; overflow-wrap: anywhere; }
.review-death summary small { display: block; color: #d3c5af; margin-top: .3rem; }
.review-timeline { padding: 0; list-style: none; }
.review-timeline li { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: .5rem; padding-block: .6rem; border-bottom: 1px solid #44382a; line-height: 1.5; }
.review-timeline time { color: #ead2a0; font-variant-numeric: tabular-nums; }
.combat-review, .review-empty, .report-error { overflow-wrap: anywhere; }
.review-empty, .report-error { padding: 1rem; border: 1px solid #655039; line-height: 1.6; }
.report-actions { position: sticky; bottom: -.1rem; padding-block: .75rem; background: #191710; border-top: 1px solid #655039; z-index: 1; }
.history-row .review-open { grid-column: 1 / -1; justify-self: start; min-height: 44px; }
@media (max-width: 600px) {
  .review-party-grid { grid-template-columns: minmax(0, 1fr); }
  .review-member dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .review-sources li { grid-template-columns: minmax(0, 1fr); gap: .35rem; }
  .review-sources li > div:last-child { text-align: left; }
  .report-actions { position: static; }
  .history-row .review-open { justify-self: stretch; }
}
@media (max-height: 500px) { .report-actions { position: static; } }

@media(max-width:700px){.modal-backdrop .report-modal button{min-height:44px}}
/* Keep closing and refreshing available while long raid reports scroll. */
.modal-backdrop .report-modal{display:flex;flex-direction:column;max-height:calc(100dvh - 32px);overflow:hidden;box-sizing:border-box}
.report-scroll{flex:1 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain;padding-right:5px}
.report-modal>.report-actions{position:static;flex:none;display:flex;flex-wrap:wrap;gap:8px;margin-top:10px;padding-bottom:0;background:transparent}
.report-modal>.report-actions>button{min-height:44px;margin:0}
@media(max-width:600px){.report-modal>.report-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.report-modal>.report-actions>button{min-width:0;white-space:normal}.report-modal>.report-actions>[data-action="close-report"]{grid-column:1/-1}}
/* Wipe note (9 Oct): after a party wipe, one line on why, one next step and Review fight. Also the Boss Hunt loss reason and Welcome Back's best find. */
.wipe-note{margin:8px auto 2px;max-width:46rem;padding:8px 12px;border:1px solid #9a4a3c99;border-radius:6px;background:#1d0d0bd9;color:#eadcc2;text-align:center;font:400 .875rem/1.45 var(--ui,system-ui);white-space:normal}
.wipe-note p{margin:0 0 6px}.wipe-note strong{color:#f0b9a2}
.wipe-note-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:8px}
.report-modal .wipe-note-review{margin:0 0 12px;max-width:none}
.wipe-note-actions>button{min-height:44px;margin:0;padding:6px 14px}
.wipe-note-actions>.text-button{min-width:44px;background:none;border:0;color:#c9bda4;text-decoration:underline}
.hunt-loss-reason{margin:6px 0 8px;color:#eadcc2}
.return-best strong.rarity-epic{color:#c48cf0}.return-best strong.rarity-rare{color:#e8cf68}.return-best strong.rarity-magic{color:#79a6f0}.return-best strong.rarity-legendary,.return-best strong.rarity-unique{color:#f0a35a}
@media(max-width:600px){.wipe-note{margin:6px 0 2px;padding:7px 8px}.wipe-note-actions{flex-wrap:nowrap}.wipe-note-actions>button{flex:1 1 0;min-width:0;padding:6px 8px}.wipe-note-actions>.text-button{flex:0 0 auto}}
.hunt-loss-reason+.result-actions{margin-bottom:10px}
.return-next{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.return-next>button{min-height:44px;margin:0}
/* One goal (IRP_ONE_GOAL_VERSION): Welcome back opens with the next step the battle line, Map and Quests name. */
.return-goal{display:grid;grid-template-columns:1fr auto;gap:2px 12px;align-items:center;margin:0 0 12px;padding:10px 12px;border:1px solid #8f764566;border-radius:8px;background:#0b1220b3}.return-goal small{grid-column:1;font-size:.6875rem;letter-spacing:.08em;text-transform:uppercase;color:#a8987a}.return-goal strong{grid-column:1;color:#f1e4c4}.return-goal span{grid-column:1;font-size:.875rem;color:#d8ccb0}.return-goal button{grid-column:2;grid-row:1/span 3;min-height:44px;margin:0}@media (max-width:520px){.return-goal{grid-template-columns:1fr}.return-goal button{grid-column:1;grid-row:auto;justify-self:start}}
/* First win of the day (lib/first-win.js): a gold line in Welcome back while today's is waiting. */
.return-first-win{margin:10px 0;padding:10px 14px;border:1px solid #b08a3e;border-radius:6px;color:#f1dfb4;line-height:1.5;background:#4a381844}.return-first-win strong{color:#ffd66e}

/* /azdom.css */
.azdom-page { max-width: 1440px; margin: auto; padding: 1.5rem clamp(.8rem, 3vw, 3rem) 3rem; font-size: 1rem; line-height: 1.55; }
.azdom-page h1 { font-size: clamp(1.8rem, 3vw, 3rem); }
.azdom-page h2 { font-size: 1.5rem; margin: 0 0 .65rem; }
.azdom-page h3 { font-size: 1.2rem; margin: .35rem 0 .6rem; color: #f1d7a6; }
.azdom-page h4 { font-size: 1rem; margin: .5rem 0; }
.azdom-page p { margin: .5rem 0 1rem; }
.azdom-page small, .azdom-page .small-note, .azdom-page .eyebrow { font-size: .875rem; }
.azdom-page button { font-size: .9rem; min-height: 44px; padding: .65rem 1rem; white-space: normal; line-height: 1.4; }
.azdom-page button:disabled { opacity: .48; cursor: not-allowed; }
.azdom-page [aria-busy=true] button { cursor: progress; }
.az-wallet { text-align: right; color: #d3c2a7; }
.az-wallet strong { display: block; color: #f2d69d; font-size: 1.2rem; }
.az-tabs { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: .4rem; padding: .5rem; margin-bottom: 1.3rem; background: #151817; border: 1px solid #62553c; border-radius: .35rem; }
.az-tabs button { border: 1px solid transparent; background: transparent; color: #d1c6b1; }
.az-tabs button.chosen { color: #fff1cc; border-color: #8e7448; background: #39321e; }
.az-live, .az-intro { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-block: 1rem 1.5rem; }
.az-intro > div { flex: 1 1 28rem; }
.az-live { border: 1px solid #708752; background: #253324; padding: 1rem; border-radius: .35rem; }
.az-live > div, .az-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.az-actions { margin-block: 1rem .4rem; }
.az-region { margin-block: 2rem; }
.az-zone-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; }
.az-card-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,17rem),1fr)); gap: 1rem; margin-block: 1rem; }
.az-zone.ornate { padding: 0; overflow: hidden; }
.az-scenery { height: 13rem; background-repeat: no-repeat; border-bottom: 1px solid #746344; }
.az-zone-content { padding: 1.1rem; }
.az-zone-content h3 { min-height: 1.4em; }
.az-zone .az-actions > button { flex: 1 1 9rem; }
.az-card.ornate, .az-summary.ornate { margin-block: 1.25rem; padding: clamp(1rem,2vw,1.5rem); }
.az-member, .az-item { min-width: 0; border: 1px solid #62533c; border-radius: .3rem; padding: 1rem; background: #191b18; overflow-wrap: anywhere; }
.az-member > button { margin-top: .5rem; }
.az-item.rarity-unique { border-color: #a17fbd; }
.az-item.rarity-legendary { border-color: #dbab59; }
.az-party-code { display: flex; gap: 1rem; align-items: baseline; flex-wrap: wrap; }
.az-party-code strong { font-family: monospace; font-size: 1.3rem; letter-spacing: .12em; color: #f1d8a2; }
.az-summary dl, .az-materials { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1rem; }
.az-summary dt, .az-materials dt { font-size: .875rem; color: #c4baa7; }
.az-summary dd, .az-materials dd { margin: .25rem 0 0; font-size: 1.3rem; color: #f5dfb1; overflow-wrap: anywhere; }
.az-summary .az-loot { max-height: 12rem; overflow-y: auto; padding-left: 1.2rem; }
.az-inline-form { display: flex; align-items: end; flex-wrap: wrap; gap: .75rem; margin-block: 1.25rem .5rem; }
.az-inline-form label { flex: 1 1 9rem; min-width: 0; font-size: .875rem; }
.az-inline-form input { width: 100%; margin-top: .35rem; min-height: 44px; font-size: 1rem; background: #101510; color: #f3e3c7; border: 1px solid #81704f; border-radius: .25rem; padding: .7rem; }
.az-talent { border-top: 1px solid #514b37; padding-block: .75rem; }
.az-member progress { display: block; width: 100%; height: 1rem; accent-color: #b19454; margin-top: .6rem; }
.az-town.ornate { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.6fr); gap: 1.5rem; padding: 1rem; }
.az-town-art { min-height: 17rem; background-repeat: no-repeat; border-radius: .2rem; }
.az-error { padding: 1rem; color: #ffe0d3; background: #4d241c; border: 1px solid #af7861; }
.az-busy { color: #f7ddb0; }
.az-journal-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; border-bottom: 1px solid #544a36; padding-block: 1rem; }
.azdom-page [data-realm], .azdom-page [data-az-tab] { touch-action: manipulation; }
@media (max-width: 1000px) { .az-zone-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 760px) {
 .topbar nav { grid-template-columns: repeat(5,minmax(0,1fr)); }
 .topbar .nav-button { padding-inline: .2rem; min-width: 0; }
 .topbar .nav-button span { font-size: .75rem; }
 .azdom-page { padding-inline: .75rem; }
 .azdom-page .page-heading { align-items: start; gap: .75rem; }
 .az-wallet { text-align: left; }
 .az-tabs { grid-template-columns: repeat(3,minmax(0,1fr)); }
 .az-zone-grid { grid-template-columns: minmax(0,1fr); }
 .az-summary dl, .az-materials { grid-template-columns: repeat(2,minmax(0,1fr)); }
 .az-town.ornate { grid-template-columns: minmax(0,1fr); }
 .az-town-art { min-height: 12rem; }
 .az-journal-row { flex-wrap: wrap; }
 .az-actions > button { flex: 1 1 8rem; }
 .azdom-page { padding-bottom: max(2rem,env(safe-area-inset-bottom)); }
}

/* Refinement: clear readiness and compact secondary details at every width. */
.az-readiness { font-size: .875rem; padding: .6rem .75rem; border-left: 3px solid; background: #111c18; overflow-wrap: anywhere; }
.az-readiness.ready { color: #c4ddb2; border-color: #809d62; }
.az-readiness.blocked { color: #f0cbb0; border-color: #a57c56; background: #271f1b; }
.az-reward-note { color: #d1c1a8; }
.az-recommendation { display: inline-block; margin: .35rem 0 .1rem .5rem; padding: .15rem .45rem; border: 1px solid #829866; border-radius: .25rem; font: .875rem var(--ui); color: #d1e4b8; }
.az-summary-disclosure.ornate { padding: .5rem 1rem; }
.az-summary-disclosure > summary, .az-item-options > summary { min-height: 44px; padding: .7rem .2rem; cursor: pointer; line-height: 1.5; font-size: 1rem; }
.az-summary-disclosure > summary span { display: inline-block; margin-left: .6rem; color: #c5b594; font-size: .875rem; }
.az-summary-disclosure .az-summary.ornate { margin: 0; padding: .5rem 0; box-shadow: none; border: 0; background: none; }
.az-summary-disclosure .az-summary.ornate::before, .az-summary-disclosure .az-summary.ornate::after { display: none; }
.az-comparison { border-top: 1px solid #5f533d; padding-top: .5rem; font-size: .875rem; }
.az-comparison p, .az-comparison ul { margin: .35rem 0; }
.az-comparison ul { padding-left: 1.1rem; }
.az-comparison .gain { color: #c4ddb2; }
.az-comparison .loss { color: #efbfb1; }
.az-equipped { color: #d2e7b9; font-weight: bold; }
.az-item-options { margin-top: .75rem; border-top: 1px solid #5f533d; }
.orders-status { color: #ebd199; font-size: .875rem; min-height: 1.5em; }
.azdom-page summary:focus-visible { outline: 2px solid #edc97f; outline-offset: 3px; }
@media (max-width: 760px) {
 .topbar nav { grid-template-columns: repeat(5,minmax(0,1fr)); }
 .topbar .nav-button { flex-direction: column; }
 .topbar .nav-button span { font-size: .875rem; overflow-wrap: anywhere; }
 .az-summary-disclosure > summary span { display: block; margin-left: 0; }
 .az-recommendation { margin-left: 0; display: table; }
 .az-item-options .az-actions { display: grid; grid-template-columns: minmax(0,1fr); }
}
@media (min-width: 761px) and (max-width: 1100px) {
 .topbar nav { grid-template-columns: repeat(5,minmax(0,1fr)); }
}
@media (max-width: 380px) {
 .topbar nav { grid-template-columns: repeat(3,minmax(0,1fr)); }
 .topbar .nav-button { flex-direction: row; }
}

/* Story opening and top-level destinations. Columns follow the viewport, never the device. */
.topbar { flex-wrap: wrap; gap: 1rem; }
.topbar nav { display: grid; grid-template-columns: repeat(8,minmax(0,1fr)); width: 100%; flex: 1 0 100%; order: 3; gap: .35rem; }
.topbar .nav-button { min-width: 0; min-height: 48px; padding: .6rem .4rem; justify-content: center; }
.topbar .nav-button span { white-space: normal; overflow-wrap: anywhere; font-size: .9375rem; }
.topbar .account-block { margin-left: auto; }
.az-town-welcome.ornate { padding: 0; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.25fr); overflow: hidden; }
.az-mayor-stage { min-height: 28rem; position: relative; isolation: isolate; background: linear-gradient(0deg,#111a1a80,transparent 55%),url('/assets/story/azdom-town-square.webp') center/cover; }
.az-mayor-stage img { display: block; width: 100%; height: 100%; max-height: 37rem; position: absolute; inset: 0; padding: 1.5rem .75rem 0; object-fit: contain; object-position: bottom; filter: drop-shadow(0 0 1.2rem #131911b0); }
.az-mayor-dialogue { padding: clamp(1.2rem,3vw,2.5rem); min-width: 0; align-self: center; }
.az-mayor-dialogue p { max-width: 58ch; }
.az-tutorial { padding-left: 1.3rem; color: #dfcea8; }
.az-tutorial li { margin-block: .55rem; }
.az-quest-lead.ornate { padding: clamp(1rem,3vw,2rem); border-color: #a58a50; background: linear-gradient(115deg,#303425,#15211d); }
.az-quest-lead p { max-width: 75ch; }
.az-quest-lead progress { display: block; width: min(100%,40rem); margin-block: .65rem; height: 1rem; accent-color: #c5a460; }
.az-objective { color: #ecd194; font-weight: bold; }
.az-journey-note { max-width: 80ch; color: #d4c6ad; }
.az-progression-details.ornate, .az-challenges.ornate { margin-block: 1.5rem; padding: .7rem clamp(.8rem,2vw,1.5rem); }
.az-progression-details > summary, .az-challenges > summary { min-height: 48px; padding: .65rem 0; cursor: pointer; font-size: 1.1rem; color: #efdbb2; }
.az-tree-root { margin: 1.7rem auto 0; padding: 1rem; width: min(100%,22rem); text-align: center; border: 1px solid #c5a460; border-radius: .4rem; background: #283226; }
.az-tree-root strong, .az-tree-root small { display: block; }
.az-tree-root > span { font-size: 1.5rem; color: #e7c783; }
.az-skill-tree { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1.5rem; margin-block: 1.2rem 2rem; }
.az-skill-branch { min-width: 0; border-top: 2px solid #70613f; padding-top: .75rem; }
.az-skill-branch h3 { text-align: center; }
.az-skill-branch ol { margin: 1rem 0 0; padding: 0 0 0 .85rem; list-style: none; border-left: 2px solid #665d3d; }
.az-skill-node { position: relative; padding: 1rem; margin-block: 0 1.25rem; border: 1px solid #686049; border-radius: .45rem; background: #171f1c; overflow-wrap: anywhere; }
.az-skill-node::before { content: ''; position: absolute; left: -1.15rem; top: 1.7rem; width: .5rem; height: .5rem; background: #a5905c; border: 1px solid #ddd0a5; border-radius: 50%; }
.az-skill-node h4 { font-size: 1.1rem; color: #f1dfb7; }
.az-skill-node p, .az-skill-node .az-prerequisite { font-size: .9375rem; }
.az-skill-node.available { border-color: #c7a665; box-shadow: 0 0 0 1px #7e673938; }
.az-skill-node.learned { border-color: #91a96e; background: #233024; }
.az-skill-node.locked { background: #191c1b; }
.az-skill-node .az-prerequisite { border-top: 1px solid #454532; padding-top: .6rem; color: #c9bb9c; }
.az-skill-node button { width: 100%; }


.skill-locked { opacity: .5; }
.ward-label { font: inherit; }
.az-empty-battle { margin: 2rem auto; max-width: 52rem; }
.az-empty-battle button { margin: .5rem; min-height: 48px; white-space: normal; }
@media (max-width: 1100px) {
 .topbar nav { grid-template-columns: repeat(4,minmax(0,1fr)); }
 .topbar .nav-button { flex-direction: row; }
}
@media (max-width: 760px) {
 .topbar nav { grid-template-columns: repeat(4,minmax(0,1fr)); gap: .25rem; }
 .topbar .nav-button { flex-direction: column; padding: .5rem .15rem; }
 .topbar .nav-button span { font-size: .875rem; }
 .az-town-welcome.ornate { grid-template-columns: minmax(0,1fr); }
 .az-mayor-stage { min-height: 16rem; height: clamp(16rem,55vw,22rem); }
 .az-mayor-stage img { padding-top: 1rem; }
 .az-mayor-dialogue { padding: 1.1rem; }
 .az-skill-tree { grid-template-columns: minmax(0,1fr); gap: 1rem; }
 .az-skill-node { padding: .85rem; }
 .az-tree-root { margin-top: 1rem; }
 .az-quest-lead label { display: block; }
 .az-empty-battle { margin: 1rem .75rem; }
}
@media (max-width: 380px) {
 .topbar .nav-button span { font-size: .875rem; }
 .topbar .nav-button svg { width: 1rem; height: 1rem; }
 .azdom-page .page-heading { flex-direction: column; }
}
@media (max-height: 540px) and (orientation: landscape) {
 .az-mayor-stage { min-height: 13rem; height: 13rem; }
 .topbar .nav-button { flex-direction: row; }
}
@media (max-width: 300px) {
 .topbar nav { grid-template-columns: repeat(2,minmax(0,1fr)); }
 .topbar .account-block { flex-wrap: wrap; justify-content: flex-start; }
}

/* Class accents, explicit skill states and existing painted creature previews. */
.az-skill-header { --calling: #d7b786; }
.az-skill-header[data-archetype="Mage"] { --calling: #bbb8ec; }
.az-skill-header[data-archetype="Priest"] { --calling: #e6d6a4; }
.az-skill-header[data-archetype="Archer"] { --calling: #bad194; }
.az-skill-kind { display: inline-block; margin-block: .35rem 0; padding: .2rem .5rem; color: var(--calling); border: 1px solid currentColor; border-radius: .2rem; font-size: .875rem; }
.az-skill-node.available { border-color: var(--calling); }
.az-skill-node.learned .az-skill-kind { color: #c9dfa9; }
.az-skill-node.locked .az-skill-kind { color: #c2bead; }
.az-scenery { position: relative; isolation: isolate; }
.az-creature-preview { position: absolute; bottom: .3rem; right: .5rem; width: 9rem; height: 9rem; max-width: 48%; object-fit: contain; filter: drop-shadow(0 .4rem .4rem #131710aa); }
.rare-unit .unit-name { border-bottom: 1px solid #b29a67; background: #182019cf; border-radius: .25rem; padding: .2rem; }
.rare-unit .unit-name small { color: #e5c486; }
.unit-status { max-width: 100%; line-height: 1.25; overflow-wrap: anywhere; }
@media (max-width: 760px) { .az-creature-preview { width: 8rem; height: 8rem; } }

/* Menu pass 21 Oct: Combat records on the UI kit head; each fight row leads with a Won/Lost chip. */
.az-records-page{max-width:1400px;margin:auto;padding:24px clamp(14px,2.5vw,36px) 96px;display:grid;gap:14px}
.az-records{padding:14px 18px}
.az-records .az-journal-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px}
.az-records .az-journal-row h3{margin:0 0 2px;font-size:1.05rem}
.az-records .az-journal-row p{margin:0;color:var(--uk-ivory-dim,#c9c3b4);font-size:.85rem}
.az-records .uk-chip{padding-inline:10px;justify-content:center;min-width:58px}
.az-records .uk-chip.is-won{border-color:#6fae7a;color:#bfe8c4}
.az-records .uk-chip.is-lost{border-color:#b0605a;color:#f1c0b8}
.az-story-leads>summary{min-height:44px}
@media(max-width:600px){.az-records-page{padding:12px 10px 96px}.az-records{padding:12px}.az-records .az-journal-row{grid-template-columns:auto minmax(0,1fr)}.az-records .az-journal-row>button{grid-column:1/-1}}
/* Menu audit 23 Oct: the adventure summary on Combat records is a kit frame like Recent fights above it. */
.az-summary.uk-frame{margin-block:16px}.az-summary.uk-frame .az-summary-where{margin:0 0 12px}

/* /appearance.css */
/* Cropped views reuse the sprite without editing the artwork or loading another PNG. */
.outfit-portrait { display:block; position:relative; flex:none; width:100%; height:100%; overflow:hidden; font-style:normal; }
.outfit-portrait > img { display:block; width:100%; height:100%; object-fit:cover; border:0; background:none; }
.outfit-portrait.cropped > img { position:absolute; width:var(--portrait-width); max-width:none; height:auto; left:var(--portrait-left); top:var(--portrait-top); object-fit:initial; }
.choice .outfit-portrait { display:block; width:3rem; height:3rem; border:1px solid #5b523d; }
.choice .outfit-portrait > img, .ally-pick .outfit-portrait > img { width:100%; height:100%; }
.choice .outfit-portrait.cropped > img, .ally-pick .outfit-portrait.cropped > img { width:var(--portrait-width); height:auto; }
.ally-pick .outfit-portrait { width:2.5rem; height:2.5rem; }
.party-card .portrait-frame .outfit-portrait { height:3.25rem; }
.party-card .portrait-frame .outfit-portrait > img { height:100%; }
.party-card .portrait-frame .outfit-portrait.cropped > img { height:auto; }
.outfit-label { color:#e8ce98; font-size:1rem; line-height:1.5; overflow-wrap:anywhere; }
.outfit-stages { list-style:none; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:.75rem; padding:0; margin:1.25rem 0; }
.outfit-stages li { display:flex; flex-direction:column; align-items:center; padding:.75rem; min-width:0; border:1px solid #444b47; background:#0a1116; text-align:center; }
.outfit-stages li.current { border-color:#c8a568; background:#22251e; }
.outfit-stages img { display:block; width:100%; height:10rem; object-fit:contain; margin-bottom:.5rem; }
.outfit-stages b { font-size:1rem; overflow-wrap:anywhere; }
.outfit-stages span { font-size:.875rem; color:#bfb6a3; margin-top:.375rem; }
@media(max-width:600px) { .outfit-stages { grid-template-columns:repeat(2,minmax(0,1fr)); gap:.5rem; } .outfit-stages img { height:8rem; } .choice .outfit-portrait { width:2.5rem; height:2.5rem; } }
@media(max-width:359px) { .choice .outfit-portrait { width:2rem; height:2rem; } }

/* /equipment.css */
/* Painted fantasy equipment. Content remains readable as space and text size change. */
.salvage-backdrop { z-index:1100; }
.salvage-confirmation { width:min(420px,calc(100vw - 32px)); max-height:calc(100dvh - 32px); overflow:auto; box-sizing:border-box; padding:24px; }
.salvage-confirmation h2 { margin:0 0 16px; }
.salvage-confirmation p { line-height:1.5; margin:0 0 24px; }
.salvage-confirmation .az-actions { display:flex; justify-content:flex-end; gap:12px; flex-wrap:wrap; }
.gear-title { display:flex; align-items:center; justify-content:space-between; gap:1rem; flex-wrap:wrap; }
.gear-title>div { min-width:0; }
.gear-title h2 { margin:.2rem 0; overflow-wrap:anywhere; }
.gear-title p { margin:.4rem 0; }
.gear-title .eyebrow { letter-spacing:.12em; }
.gear-character-intro { display:grid; grid-template-columns:minmax(180px,.8fr) minmax(0,1.2fr); gap:clamp(1rem,3vw,2.5rem); align-items:center; margin-top:1.25rem; }
.gear-portrait { margin:0; display:flex; align-items:center; justify-content:center; flex-direction:column; border:1px solid #51584a; border-radius:.4rem; padding:1rem; background:radial-gradient(ellipse at 50% 55%,#807b3430,transparent 62%),linear-gradient(180deg,#172421,#0c1419); }
.gear-portrait>img { display:block; height:270px; width:100%; object-fit:contain; filter:drop-shadow(0 .4rem .6rem #0008); }
.gear-portrait figcaption { color:#e6cf9a; text-align:center; margin:.75rem 0 0; font-family:var(--serif); font-size:1.1rem; }
.gear-portrait small { display:block; color:#bdc7bd; margin:.4rem 0 0; font-family:var(--ui); }
.gear-build-overview { min-width:0; }
.gear-essentials { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; margin:1rem 0; }
.gear-essentials>div { border-bottom:1px solid #48564e; padding:.5rem 0 .8rem; min-width:0; }
.gear-essentials dt { font-size:.875rem; color:#c2cbbf; }
.gear-essentials dd { margin:.3rem 0 0; color:#f4dda5; font:1.8rem var(--serif); overflow-wrap:anywhere; font-variant-numeric:tabular-nums; }
.gear-quick-attributes { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:.5rem; margin:1.25rem 0; }
.gear-quick-attributes>div { min-width:0; padding:.65rem .3rem; border:1px solid #4b5a55; border-radius:.25rem; background:#14211f; text-align:center; }
.gear-quick-attributes dt { font-size:.8rem; color:#bdc9c0; }
.gear-quick-attributes abbr { text-decoration:none; }
.gear-quick-attributes dd { font-size:1.2rem; color:#efe2be; margin:.25rem 0 0; overflow-wrap:anywhere; }
.gear-slot-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,13rem),1fr)); gap:.8rem; margin:1rem 0; }
.gear-slot { display:flex; flex-direction:column; gap:.65rem; padding:.85rem; border:1px solid #48554d; border-top:2px solid var(--rarity,#acb6b9); border-radius:.3rem; background:linear-gradient(130deg,#1c272b,#101a1f); min-width:0; }
.gear-slot-heading { display:flex; gap:.65rem; align-items:center; }
.gear-slot-heading>div { min-width:0; }
.gear-slot-heading small { color:#e3ddcb; }
.gear-slot-body { min-width:0; flex:1; }
.gear-slot b,.gear-slot-body span,.gear-slot small { display:block; overflow-wrap:anywhere; }
.gear-slot-body b { font-family:var(--serif); font-size:1.05rem; color:var(--rarity,#ecdfbe); margin:0 0 .35rem; font-weight:normal; }
.gear-slot-body span,.gear-slot-state { font-size:.875rem; color:#bcc9c7; line-height:1.5; }
.gear-slot-state { display:block; margin-top:.25rem; }
.gear-slot>button { width:100%; margin:0; }
.gear-slot.is-empty { border-top-style:dashed; border-color:#526257; background:#111c1d; }
.gear-slot.is-empty .gear-icon { filter:grayscale(.9); opacity:.6; }
.gear-slot.is-empty b { color:#c7d0c8; }
.gear-slot.is-empty .text-button { border:1px solid #4c5e55; border-radius:.25rem; color:#e2cea2; }
.gear-icon { display:block; width:64px; height:64px; flex:none; object-fit:contain; border:1px solid #74715a; border-radius:.35rem; background:#10171e; box-shadow:0 2px 6px #0005; }
.gear-rarity { display:inline-flex; align-items:center; max-width:100%; margin:.1rem .4rem .25rem 0; padding:.12rem .45rem; color:var(--rarity,#c6ced2); border:1px solid currentColor; border-radius:.2rem; font-size:.75rem; line-height:1.5; overflow-wrap:anywhere; }
.gear-item-level { color:#c2c9c5; font-size:.8rem; white-space:normal; overflow-wrap:anywhere; }
.gear-attribute-grid { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:.8rem; }
.gear-attribute-grid article { padding:1rem; border:1px solid #44554f; border-top:2px solid #af945d; border-radius:.25rem; background:#152129; min-width:0; overflow-wrap:anywhere; }
.gear-attribute-grid h3 { display:flex; flex-wrap:wrap; justify-content:space-between; gap:.4rem; font-size:1rem; }
.gear-attribute-grid strong { color:#f2db9b; font-size:1.5rem; font-variant-numeric:tabular-nums; }
.gear-attribute-grid p,.gear-attribute-grid small { font-size:.875rem; line-height:1.55; }
.gear-derived { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:1rem; margin:1.5rem 0; }
.gear-derived div { min-width:0; border-bottom:1px solid #46534f; padding-bottom:.6rem; overflow-wrap:anywhere; }
.gear-derived dt { font-size:.875rem; color:#bec9c7; }
.gear-derived dd { font-size:1.2rem; margin:.5rem 0 0; color:#efe5c9; font-variant-numeric:tabular-nums; }
.gear-gain { color:#a1dfb4!important; }.gear-loss { color:#ffc0b0!important; }
.gear-count { display:inline-block; font-family:var(--ui); font-size:1rem; margin-left:.4rem; color:#e6cd97; white-space:nowrap; }
.gear-capacity-label { display:flex; justify-content:space-between; flex-wrap:wrap; gap:.4rem 1rem; margin-top:1rem; color:#c4cdbe; font-size:.875rem; }
.gear-capacity { display:block; appearance:none; -webkit-appearance:none; width:100%; height:.65rem; background:#101a21; border:1px solid #687363; border-radius:1rem; margin:.65rem 0 1.3rem; overflow:hidden; }
.gear-capacity::-webkit-meter-bar { border:0; background:#101a21; border-radius:1rem; height:100%; }
.gear-capacity::-webkit-meter-optimum-value { background:linear-gradient(90deg,#63794b,#adc588); }
.gear-capacity::-webkit-meter-suboptimum-value { background:#d6b36c; }
.gear-capacity::-webkit-meter-even-less-good-value { background:#e29472; }
.gear-capacity::-moz-meter-bar { background:#adc588; }
.gear-capacity:-moz-meter-sub-optimum::-moz-meter-bar { background:#d6b36c; }
.gear-capacity:-moz-meter-sub-sub-optimum::-moz-meter-bar { background:#e29472; }
.gear-supplies { padding:.1rem 1rem 1rem; border:1px solid #536056; border-radius:.3rem; background:#15201f; }
.gear-supplies:not([open]) { padding-bottom:.1rem; }
.gear-supplies>summary { padding:.65rem 0; color:#e9d5a9; cursor:pointer; }
.gear-supplies>summary>span { display:inline-block; margin-left:.5rem; color:#bfcbc3; font-size:.875rem; }
.gear-section-heading { display:flex; justify-content:space-between; align-items:baseline; flex-wrap:wrap; gap:.5rem; margin-top:1.5rem; }
.gear-section-heading h3 { margin:0; }
.gear-section-heading>span { font-size:.875rem; color:#c5cbbd; }
.gear-stacks { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr)); gap:.75rem; margin:1rem 0; }
.gear-stacks>div { display:flex; align-items:center; gap:.65rem; padding:.75rem; border:1px solid #40504b; border-radius:.3rem; background:#101b22; min-width:0; flex-wrap:wrap; }
.gear-stacks span { flex:1; min-width:min(100%,100px); overflow-wrap:anywhere; }
.gear-stacks b,.gear-stacks small { display:block; margin-top:.25rem; }
.gear-stacks b { color:#edd69e; font-weight:normal; font-variant-numeric:tabular-nums; }
.gear-stacks .gear-icon { width:48px; height:48px; }
.gear-bag-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr)); gap:1rem; margin-top:1rem; }
.gear-item { display:flex; flex-direction:column; background:linear-gradient(125deg,#1e2a30,#111b22); border:1px solid #52625c; border-top:3px solid var(--rarity,#acb6b9); border-radius:.4rem; padding:1rem; min-width:0; overflow-wrap:anywhere; }
.gear-item-heading { display:flex; gap:.8rem; align-items:center; padding-bottom:.75rem; border-bottom:1px solid #43544e; }
.gear-item-heading>div { min-width:0; }
.gear-item h3 { color:var(--rarity,#ecdfbe); font-size:1.15rem; margin:.25rem 0 .35rem; }
.gear-item-heading small { color:#c4cfc8; }
.gear-item p,.gear-base { line-height:1.55; font-size:.875rem; }
.gear-label { display:block; color:#c8cdbb; font-size:.8rem; margin-bottom:.45rem; }
.gear-base { margin:1rem 0 .65rem; }
.gear-property-list { display:flex; flex-wrap:wrap; gap:.35rem; }
.gear-property-list>span { padding:.2rem .5rem; border:1px solid #455a54; border-radius:.2rem; color:#e3dfcf; background:#162320; }
.gear-blank { padding:.75rem; border:1px dashed #617262; border-radius:.25rem; background:#111c1b; color:#c2ccc2; }
.gear-blank>span { display:block; color:#e0d3b4; margin-bottom:.25rem; }
.gear-affixes { padding:0; list-style:none; }
.gear-affixes li { color:#d1e0f6; font-size:.9375rem; margin:.5rem 0; }
.gear-affixes span { display:inline-block; text-transform:uppercase; font-size:.75rem; margin-right:.4rem; color:#b8c8c4; }
.gear-affixes b { font-weight:normal; color:#e3eaf9; }
.gear-comparison { padding:.75rem; border-left:2px solid #798874; background:#101b1f; }
.gear-comparison>strong { display:block; font-weight:normal; color:#e2d1aa; }
.gear-replacing { display:block; color:#c0cbc6; margin:.25rem 0; }
.gear-item>.az-actions { margin-top:auto; padding-top:.5rem; }
.gear-item>.az-actions>button { flex:1 1 7rem; }
.gear-item>details { margin-top:.75rem; border-top:1px solid #4b5e54; padding-top:.25rem; }
.gear-item>details>summary { padding:.65rem 0; cursor:pointer; color:#d6c5a1; }
.gear-item>details>button { margin:.5rem .3rem .5rem 0; }
.gear-empty-state { grid-column:1/-1; padding:1.5rem; text-align:center; border:1px dashed #65755c; border-radius:.4rem; background:radial-gradient(ellipse at top,#33422c66,#121d21); }
.gear-empty-state>button { margin:.3rem; }
.rarity-normal { --rarity:#c6ced2; }.rarity-magic { --rarity:#9ae867; }.rarity-rare { --rarity:#76bdff; }.rarity-epic { --rarity:#f2c865; }.rarity-legendary,.rarity-mythic { --rarity:#ff808e; }
.gear-service-status { padding:.4rem .65rem; border:1px solid #7b8662; border-radius:.25rem; font-size:.875rem; color:#d6dfbc; background:#1f2b22; }
.gear-craft-steps { counter-reset:craft; display:flex; flex-wrap:wrap; gap:.75rem 1.5rem; padding:1rem 0; margin:1rem 0; list-style:none; border-block:1px solid #58604d; }
.gear-craft-steps li { counter-increment:craft; display:flex; align-items:center; gap:.5rem; font-size:.875rem; color:#e8d8b9; }
.gear-craft-steps li::before { content:counter(craft); display:grid; place-items:center; flex:none; width:1.7rem; height:1.7rem; border:1px solid #998257; border-radius:50%; color:#ecd098; background:#293023; }
.gear-workpiece { border:1px solid #53625c; border-left:3px solid var(--rarity); border-radius:.3rem; margin:1rem 0; padding:1rem; background:linear-gradient(120deg,#17252a,#101b21); }
.gear-workpiece>summary { display:flex; gap:.8rem; align-items:center; color:var(--rarity); font-family:var(--serif); font-size:1.15rem; min-height:48px; cursor:pointer; list-style:none; }
.gear-workpiece>summary::-webkit-details-marker { display:none; }
.gear-workpiece summary span { flex:1; min-width:0; overflow-wrap:anywhere; }
.gear-workpiece summary small { display:block; color:#c3cec9; font: .875rem/1.5 var(--ui); margin-top:.25rem; }
.gear-workpiece summary::after { content:'+'; font-size:1.5rem; flex:none; width:1.5rem; text-align:center; }
.gear-workpiece[open]>summary { padding-bottom:1rem; border-bottom:1px solid #47564f; }
.gear-workpiece[open]>summary::after { content:'−'; }
.gear-affix-capacity { display:flex; flex-wrap:wrap; gap:.6rem; margin:1rem 0; }
.gear-affix-capacity>span { background:#162520; padding:.4rem .6rem; border:1px solid #54634d; border-radius:.25rem; color:#cbd3bf; font-size:.875rem; }
.gear-affix-capacity b { color:#f0dca5; font-weight:normal; margin-left:.3rem; white-space:nowrap; }
.gear-crafting-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr)); gap:1rem; }
.gear-enchant-form { display:flex; flex-direction:column; padding:1rem; min-width:0; border:1px solid #566354; border-radius:.3rem; background:linear-gradient(155deg,#24302e,#152129); overflow-wrap:anywhere; }
.gear-currency-heading { display:flex; align-items:center; gap:.75rem; }
.gear-currency-heading .gear-icon { width:48px; height:48px; }
.gear-currency-heading>div { min-width:0; }
.gear-enchant-form h4 { color:#eed7a1; font-family:var(--serif); font-size:1.15rem; margin:0; }
.gear-currency-heading span { display:block; font-size:.875rem; color:#c9d3c1; margin-top:.2rem; }
.gear-enchant-form p { font-size:.875rem; line-height:1.5; margin-top:.85rem; }
.gear-enchant-form label,.gear-item label { display:block; margin:.4rem 0 .7rem; font-size:.875rem; }
.gear-enchant-form select,.gear-item input { margin-top:.4rem; width:100%; min-height:44px; font-size:1rem; }
.gear-enchant-footer { margin-top:auto; }
.gear-enchant-footer>button { width:100%; }
.gear-cost { color:#eddbb3; }
.gear-craft-reason { color:#f3c8a8; padding:.65rem; border-left:2px solid #bb8c60; background:#271f1b; }
.gear-table-scroll { overflow-x:auto; }
.gear-table-scroll table { width:100%; border-collapse:collapse; font-size:.875rem; }
.gear-table-scroll td,.gear-table-scroll th { text-align:left; padding:.7rem; border-bottom:1px solid #4c595a; min-width:6rem; }
#enchanter>details { margin:1rem 0; }
#enchanter>details>summary { padding:.65rem .4rem; border-bottom:1px solid #4b5d50; cursor:pointer; color:#ead5a5; }
/* Separate the name from the countdown so truncation never consumes the timer. */
.unit>.unit-cast { position:absolute; top:8px; left:-64px; width:128px; height:1.5rem; border:1px solid #ad9669; border-radius:4px; overflow:hidden; background:#111926; box-shadow:0 2px 5px #000a; pointer-events:none; }
.unit>.unit-cast[hidden] { display:none; }
.unit>.unit-cast>i { background:linear-gradient(90deg,#54416c,#917aa6); opacity:.55; }
.hero-unit>.unit-cast>i { background:linear-gradient(90deg,#66532a,#b49c59); }
.unit>.unit-cast>span { display:flex; align-items:center; justify-content:space-between; gap:.3rem; padding:0 .35rem; font:.75rem/1.4 var(--ui); color:#fff5dc; text-shadow:0 1px 2px #000; }
.cast-name { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-weight:normal; }
.cast-countdown { flex:none; font-style:normal; font-variant-numeric:tabular-nums; }
/* Match the top menus to the warm metal edging used throughout the realm. */
.az-wallet { overflow-wrap:anywhere; }
.topbar .nav-button { font-family:var(--ui); border:1px solid #526051; border-radius:.25rem; background:#101b1cb3; color:#d0c7ae; }
.topbar .nav-button.active { border-color:#ba975d; background:linear-gradient(180deg,#50452b,#293024); box-shadow:inset 0 -2px #c9a261; color:#ffe5ad; }
.topbar .nav-button:focus-visible { outline:2px solid #f6d68c; outline-offset:2px; }
@media(hover:hover) { .gear-item:hover,.gear-workpiece:hover { border-color:var(--rarity); } }
@media(max-width:1000px) {
 .gear-attribute-grid,.gear-derived { grid-template-columns:repeat(3,minmax(0,1fr)); }
 .gear-portrait>img { height:240px; }
}
@media(max-width:600px) {
 .gear-character-intro { grid-template-columns:minmax(0,1fr); gap:1.25rem; }
 .gear-portrait { padding:.6rem; }
 .gear-portrait>img { height:190px; }
 .gear-portrait figcaption { margin:.25rem; }
 .gear-slot-grid,.gear-attribute-grid,.gear-derived { grid-template-columns:repeat(2,minmax(0,1fr)); gap:.6rem; }
 .gear-slot { padding:.65rem; }
 .gear-slot-heading { flex-wrap:wrap; }
 .gear-slot .gear-icon { width:48px; height:48px; }
 .gear-slot-body b { font-size:1rem; }
 .gear-attribute-grid article { padding:.75rem; }
 .gear-workpiece { padding:.75rem; }
 .gear-title>button { width:100%; }
 .gear-crafting-grid,.gear-bag-grid { grid-template-columns:minmax(0,1fr); }
 .gear-empty-state { padding:1rem; }
 .gear-empty-state>button { width:100%; margin:.35rem 0; }
}
@media(max-width:380px) {
 .topbar .nav-button { padding-inline:0; }
 .gear-slot-grid { grid-template-columns:minmax(0,1fr); }
 .gear-slot { display:grid; grid-template-columns:minmax(0,1fr); }
 .gear-slot-heading { flex-wrap:nowrap; }
 .gear-quick-attributes { grid-template-columns:repeat(3,minmax(0,1fr)); }
 .gear-essentials dd { font-size:1.5rem; }
 .gear-workpiece .gear-icon { width:48px; height:48px; }
}
@media(max-width:300px) {
 .gear-essentials,.gear-attribute-grid,.gear-derived { grid-template-columns:minmax(0,1fr); }
 .gear-item-heading,.gear-currency-heading { flex-wrap:wrap; }
}

/* Jade distinguishes raid sets from Heroic drops without changing rarity rules. */
.rarity-legendary:has(.raid-set-art){--rarity:#74d9b1}
.gear-icon.raid-set-art{border:2px solid #74d9b1;box-shadow:inset 0 0 0 1px #173b31,0 0 7px #53b99638;background:radial-gradient(ellipse at center,#214437,#0d191b 75%)}
.raid-set-art .item-tier-badge{color:#c1f6dc;border-color:#4c9b7c;background:#103629;font-size:.5625rem;line-height:1.2;letter-spacing:.02em}

/* Curated owned Legendary presentation; the equipment rarity remains Unique. */
.legendary-owned-icon{outline:1px solid #efd18b;outline-offset:2px;box-shadow:0 0 0 4px #3c2a13,0 0 16px #d9aa4938!important;border-color:#d9ae5c!important;border-radius:5px;--model-rarity:#f4d48b!important}
:is(.item-tile,.workshop-item):has(.legendary-owned-icon){border-color:#e3b763!important;background:linear-gradient(135deg,#382b16,#151c22 52%,#392a16)!important;box-shadow:inset 0 0 0 2px #7f63373d,0 0 10px #e3b76320}
:is(.item-details,.workshop-workpiece):has(.legendary-owned-icon) h2{color:#ffe0a0;text-shadow:0 1px 2px #000}
.legendary-effects{position:relative;margin:18px 0;padding:22px 24px;border:1px solid #be984f;border-radius:9px;background:linear-gradient(135deg,#352a1870,#131c24 38%,#282316);box-shadow:inset 0 0 0 4px #101923,inset 0 0 0 5px #96743b70;color:#f2ead8;overflow-wrap:anywhere}
.legendary-effects:before,.legendary-effects:after{content:'◆';position:absolute;left:50%;transform:translateX(-50%);color:#f0ca7d;font-size:.75rem;line-height:1;background:#1c2123;padding:0 8px}
.legendary-effects:before{top:-6px}.legendary-effects:after{bottom:-6px}
.legendary-effects .legendary-kicker{margin:0 0 6px;color:#e5c98b;font-size:.72rem;letter-spacing:.14em;text-transform:uppercase}
.legendary-effects h3{margin:0 0 14px;color:#ffe1a2;font-family:Georgia,serif;font-size:1.2rem;line-height:1.3}
.legendary-effects ol{display:grid;gap:12px;margin:0;padding-left:24px;list-style:upper-roman}
.legendary-effects li{padding-left:6px;line-height:1.55}.legendary-effects li::marker{color:#f1cf83;font-family:Georgia,serif;font-weight:bold}
.legendary-properties{overflow-wrap:anywhere}.legendary-properties>.gear-label{color:#d8be83;margin-top:16px}
@media(max-width:480px){.legendary-effects{margin:16px 0;padding:18px 16px}.legendary-effects h3{font-size:1.08rem}.legendary-effects ol{padding-left:20px;gap:14px}.legendary-effects li{padding-left:3px}}

/* Legendary frame (owner, 15 Oct: Legendaries get their own border). A molten amber double rail with corner studs, distinct from the pale gold
   Tier 0 frame (the class is repeated to outrank the inventory dialog's frameless card rule) (.tier0-item) these weapons used to borrow. The card gets its own padding so no line sits on the rail at 320 px. */
.item-details.legendary-item.legendary-item.legendary-item{position:relative;padding:14px 12px;border:24px solid #3a1d0a;border-image:url(/assets/legendary/frame-v1.webp) 220 / 64px / 0 round;border-radius:0;background:radial-gradient(ellipse at 50% 0,#4a2a1066,transparent 60%),linear-gradient(180deg,#1d1710,#121619 45%);background-clip:padding-box;box-shadow:0 0 22px 2px #ff8c2a40} /* painted forged-iron frame (16 Oct, Higgsfield art): a 9-slice of 220px corners, drawn 64px wide over a 24px border so the rail sits at the content edge */
.item-details.legendary-item.legendary-item.legendary-item:before,.item-details.legendary-item.legendary-item.legendary-item:after{content:none}
.item-details.legendary-item h2{color:#ffc670;text-shadow:0 1px 2px #000,0 0 10px #ff8c2a55}
.item-details.legendary-item .legendary-properties>p:first-child{margin-top:4px}
.item-details.legendary-item .legendary-effects{border-color:#d9903a;box-shadow:inset 0 0 0 4px #101923,inset 0 0 0 5px #c07a2f80}
.item-details.legendary-item .legendary-effects:before,.item-details.legendary-item .legendary-effects:after{color:#ffb85a;background:#171a1c}
:is(.item-tile,.workshop-item).legendary-item{border-color:#e09a3c!important;box-shadow:inset 0 0 0 1px #2a1606,inset 0 0 0 3px #b3702a80,0 0 12px #ff8c2a40!important}
.legendary-item .legendary-owned-icon{outline-color:#ffbf66;--model-rarity:#ffbf66!important}
.legendary-lines{display:grid;gap:10px;margin:6px 0 14px;padding:0;list-style:none}
.legendary-lines li{padding:10px 12px;border:1px solid #9a6227;border-left:3px solid #ffb85a;border-radius:6px;background:linear-gradient(90deg,#3a230f66,#14181b);color:#f2e6cf;line-height:1.5}
.legendary-lines strong{display:block;color:#ffc670;font-family:Georgia,serif;font-weight:normal;font-size:1.02rem}
.legendary-line-chips{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0 0;padding:0}
.legendary-line-chips span{padding:4px 12px;border:1px solid #c07a2f;border-radius:999px;background:#3a230f80;color:#ffc670;font-family:Georgia,serif;font-size:.95rem;line-height:1.4}
.legendary-more>.legendary-properties{padding:2px 14px 12px}.legendary-more>summary{color:#ffc670}
.gear-icon[data-item-tier=LG]{border-color:#e09a3c;box-shadow:inset 0 0 0 1px #2a1606,0 0 10px #ff8c2a55}
@media(max-width:480px){.item-details.legendary-item.legendary-item.legendary-item{padding:10px 6px;border-width:17px;border-image-width:46px}}

/* Preserve Dawnsteel artwork inside the shared material frame. */
.gear-icon.dawnsteel-icon{position:relative;overflow:hidden}.gear-icon.dawnsteel-icon>img{position:absolute;inset:9%;width:82%;height:82%;object-fit:contain;border:0;border-radius:0;background:#0b141b}

/* /expansion.css */
:root{--exp-gold:#d2b576;--exp-border:#625337;--exp-panel:#122026}.exp-page{max-width:1400px;margin:auto;padding:24px 28px 96px;color:#ddd8c9}.exp-page h1,.exp-page h2,.exp-page h3,.inventory-panel h2{font-family:Georgia,serif;color:#f2dfb1;line-height:1.25}.exp-page h1{font-size:clamp(1.8125rem,3vw,2.625rem);margin:6px 0 18px}.exp-page h2{font-size:1.5rem;margin:5px 0 16px}.exp-page h3{font-size:1.1875rem;margin:6px 0}.exp-page p{font-size:1rem;line-height:1.65}.exp-heading{padding:20px 0 4px}.exp-heading .eyebrow{color:var(--exp-gold)}.exp-panel{background:linear-gradient(135deg,#19282e,#101b21);border:1px solid var(--exp-border);border-radius:6px;padding:24px;margin:16px 0;box-shadow:0 9px 30px #0003}.exp-page button,.exp-page select,.exp-page input{min-height:44px}.exp-page select,.exp-page input{font-size:1rem;max-width:100%;width:100%;background:#0b171d;border:1px solid #706142;color:#eee6d0;padding:11px;border-radius:4px}.exp-page label{display:block;font-size:.875rem;line-height:1.7;margin:10px 0}.exp-error{color:#ffb7a1;background:#431f23;border:1px solid #985743;padding:13px 18px;border-radius:4px;font-size:1rem;line-height:1.6}.global-error{max-width:1344px;margin:14px auto}.exp-table{overflow:auto;margin:18px 0;max-width:100%}.exp-table table{border-collapse:collapse;width:100%;font-size:.9375rem;text-align:left;line-height:1.5}.exp-table td,.exp-table th{padding:12px;border-bottom:1px solid #35443f;vertical-align:top}.exp-table th{color:#ead2a0;background:#26302c}.exp-table td:first-child{color:#ddc38e}.equipment-workspace{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:22px;align-items:start}.inventory-panel{background:linear-gradient(145deg,#29291f,#152127 70%);border:1px solid #8a6c3a;border-radius:6px;padding:20px;color:#ddd8c9;min-width:0}.inventory-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}.inventory-heading h2{margin:0;font-size:1.5625rem}.inventory-heading>span{color:#d9c38f;font-size:.9375rem}.inventory-gold{margin:8px 0 20px;color:#e8c578;font-size:.9375rem}.item-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(58px,1fr));gap:7px;align-items:start}.item-tile{aspect-ratio:1;min-height:52px;min-width:0;border:1px solid #67706b;background:radial-gradient(circle at 50% 40%,#30362e,#10191e);border-radius:4px;position:relative;padding:3px;display:grid;place-items:center;cursor:pointer;width:100%;color:#e3cf9b}.item-tile .gear-icon{width:100%;height:100%;max-height:78px;object-fit:contain;filter:drop-shadow(0 3px 3px #0009)}.item-tile:hover,.item-tile:focus-visible{background:#394137;outline:2px solid #d6bd83;outline-offset:1px}.item-tier,.item-quantity{position:absolute;right:3px;bottom:2px;font-size:.75rem;background:#071117dd;padding:0 3px;border-radius:2px}.item-tile.rarity-magic{border-color:#689ad8}.item-tile.rarity-rare{border-color:#dbc465}.item-tile.rarity-epic{border-color:#b38ce3}.item-tile.rarity-legendary{border-color:#e3a65d}.item-tile.rarity-mythic{border-color:#f0828d;box-shadow:inset 0 0 14px #c8506c30}.item-tile.empty{background:#08141988;border-color:#4a483355;cursor:default}.item-tile.empty .gear-icon{opacity:.23;filter:grayscale(1)}.inventory-panel .small-note{font-size:.875rem;line-height:1.6}.inventory-drawer,.item-inspector{max-width:620px;width:calc(100vw - 24px);max-height:calc(100dvh - 32px);overflow:auto;padding:22px;background:#101c23}.inventory-drawer .inventory-panel{margin-bottom:18px}.item-detail-title{display:flex;align-items:center;gap:16px}.item-detail-title>.gear-icon{width:72px;height:72px;flex-shrink:0}.item-detail-title h2{font:1.5rem Georgia,serif;color:#efdab0;margin:5px 0}.item-detail-title p{font-size:.875rem;line-height:1.5;margin:4px 0}.item-inspector .az-actions{margin:18px 0}.item-details .gear-affixes{font-size:1rem}.item-hover{position:fixed;z-index:80;width:min(355px,calc(100vw - 20px));padding:18px;border:1px solid #b4975d;background:#08151bf7;box-shadow:0 14px 40px #000c;pointer-events:none;max-height:calc(100dvh - 16px);overflow:hidden;color:#ded4bd}.item-hover :is(details,button,.iv-actions,.az-actions){display:none}.item-hover .item-detail-title+.compare-current-summary{margin:10px 0}.item-hover h2{font-size:1.25rem}.item-hover .gear-icon{width:50px;height:50px}.item-hover .item-detail-title{gap:10px}.character-panel{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(240px,1fr);gap:30px;align-items:center}.paper-doll{display:grid;grid-template-columns:70px minmax(120px,1fr) 70px;gap:14px;align-items:center;background:radial-gradient(ellipse at center,#38413966,transparent 65%)}.paper-doll>div{display:grid;gap:13px}.paper-slot>span{display:block;font-size:.75rem;text-align:center;color:#c2b58e;margin-bottom:4px}.paper-slot .item-tile{width:64px;height:64px}.paper-doll figure{margin:0;min-width:0;align-self:stretch;display:flex;flex-direction:column;align-items:center;justify-content:center}.paper-doll figure img{width:100%;height:460px;object-fit:contain;filter:drop-shadow(0 14px 12px #000a)}.paper-doll figcaption{font:.9375rem Georgia,serif;color:#d3b87e;text-align:center}.character-progression h2{font-size:1.8125rem}.character-progression progress{width:100%;height:10px;accent-color:#96bd79}.character-progression button{margin:7px}.town-layout{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:24px;align-items:start}.town-inventory{position:sticky;top:20px;padding-top:35px}.town-services{display:flex;gap:10px;flex-wrap:wrap}.town-services button{flex:1}.town-services .selected{border-color:#d7b676;background:#3d3c2a}.mayor-panel{background:linear-gradient(95deg,#13222aec,#1a292bd9),url('/assets/story/zones/meadow.png') center/cover}.recipe-detail{display:flex;gap:22px;align-items:center;margin-top:20px}.recipe-detail>.gear-icon{width:96px;height:96px;flex-shrink:0}.enchant-operations>details{border:1px solid #435141;background:#0a171e;margin:12px 0;border-radius:4px}.enchant-operations summary{padding:16px;cursor:pointer;color:#d6c296;min-height:48px;font-size:.9375rem}.enchant-operations .gear-enchant-form{margin:0;border:0}.recovery-row{display:flex;gap:16px;align-items:center;justify-content:space-between;padding:12px;border-bottom:1px solid #465043;font-size:.9375rem}.recovery-row small{display:block;line-height:1.6}.auction-entry{padding:16px;border:1px solid #625d40;margin:14px 0}.zone-atlas,.bestiary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.zone-card,.bestiary-card{border:1px solid #78633e;border-radius:7px;overflow:hidden;background:#111e25;box-shadow:0 9px 28px #0004}.zone-image,.beast-image{position:relative;height:230px;background:linear-gradient(0deg,#111e25,transparent 85%),var(--zone-art) center/cover;display:grid;place-items:center}.zone-image img{height:210px;width:100%;object-fit:contain;filter:drop-shadow(0 6px 10px #0008)}.zone-image>div{position:absolute;left:20px;bottom:0;right:10px;text-shadow:0 2px 4px #000}.zone-image h2{font-size:1.625rem}.zone-copy,.beast-copy{padding:4px 22px 22px}.zone-copy progress,.beast-copy progress{width:100%;accent-color:#aab672;height:7px}.party-warning{color:#e4cb8d;font-size:.875rem!important;line-height:1.6}.zone-copy details,.beast-copy details{border-top:1px solid #37443b;margin-top:12px}.zone-copy summary,.beast-copy summary{padding:13px 0;color:#ceb780;cursor:pointer;min-height:46px;font-size:.9375rem}.challenge-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px}.challenge-grid article{padding:18px;background:#0d191f;border:1px solid #4a4d3b}.battle-inventory-access{display:flex;justify-content:flex-end;gap:10px;margin-bottom:10px}.compact{padding:16px}.compact .item-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.compact .item-tile{min-height:46px}.right-rail>#battleInventory{margin-bottom:20px}.lesson-banner{max-width:1344px;margin:14px auto 0;border:1px solid #617057;border-left:3px solid #bb9f63;border-radius:4px;background:linear-gradient(90deg,#20312d,#14242a);color:#e4d6b7}.lesson-banner summary{display:flex;gap:18px;align-items:center;cursor:pointer;padding:12px 18px;min-height:54px}.lesson-banner summary span{font-size:.75rem;color:#c9b680;letter-spacing:.1em}.lesson-banner summary strong{font:1.125rem Georgia,serif}.lesson-banner summary em{font-size:.875rem;font-style:normal}.lesson-banner summary:after{content:'⌄';margin-left:auto}.lesson-banner>div{padding:0 18px 18px;line-height:1.6;font-size:1rem}.lesson-banner button{margin-right:8px}.guide-search{max-width:660px}.guide-search input{margin:8px 0 18px}.guide-article{margin:12px 0;border:1px solid #5c543d;background:linear-gradient(130deg,#1b2b2e,#101c23);border-radius:5px}.guide-article summary{list-style:none;cursor:pointer;padding:20px 48px 20px 24px;position:relative}.guide-article summary:after{content:'+';position:absolute;right:22px;top:20px;font-size:1.5625rem;color:#d0b67b}.guide-article[open] summary:after{content:'−'}.guide-article summary h2{margin:0;font-size:1.4375rem}.guide-article>div{padding:0 24px 24px}.guide-article p{max-width:90ch;line-height:1.8}.field-lessons ol{list-style:none;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.field-lessons li{display:flex;gap:14px;padding:18px;background:#0b181f;border-left:2px solid #988453}.field-lessons li>span{font-size:1.4375rem;color:#cdb77c}.field-lessons li.complete{border-color:#81b78f}.field-lessons li.complete>span{color:#8bc3a0}.field-lessons button{margin:5px}.beast-image img{height:240px;width:100%;object-fit:contain;filter:drop-shadow(0 10px 10px #000a)}.unknown-beast{font:6rem Georgia,serif;color:#d4c59e66}.research-stage{position:absolute;right:12px;top:12px;background:#0b171deb;padding:8px;border:1px solid #917e49;font-size:.8125rem;color:#d6c088}.beast-copy h2{font-size:1.5625rem}.beast-copy .eyebrow{font-size:.75rem}.beast-copy p{font-size:.9375rem}.discovery-locked{color:#a7b3ae;font-style:italic}.expedition-roster{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:20px 0}.expedition-roster article{display:flex;gap:16px;padding:18px;background:#0b1920;border:1px solid #4b553f;align-items:start;border-radius:5px}.expedition-roster article p{font-size:.875rem;margin:5px 0}.expedition-roster article button{margin:5px 5px 5px 0}.role-medallion{border:1px solid #9b7f44;border-radius:50%;width:45px;height:45px;flex-shrink:0;display:grid;place-items:center;color:#e3c988;background:radial-gradient(#444b36,#16232a);font-size:1.5625rem}.role-accepted{color:#92cdaa}.role-pending{color:#d8ba7b}.party-code{letter-spacing:.1em;color:#e2c27a}.party-invite,.loot-roll{padding:18px;border:1px solid #6b5938;margin:14px 0;background:#0e1a20}.loot-roll{border-top:2px solid #d88280}.chat-access{position:fixed;bottom:max(14px,env(safe-area-inset-bottom));right:max(18px,env(safe-area-inset-right));z-index:40}.chat-access button{background:#14252a;border-color:#bc9957;min-height:44px;box-shadow:0 7px 25px #000a}.community-chat{position:fixed;right:18px;bottom:70px;width:min(420px,calc(100vw - 24px));max-height:calc(100dvh - 105px);z-index:41;border:1px solid #a28950;border-radius:7px;background:#0d1a22;box-shadow:0 18px 60px #000c;overflow:auto;color:#ddd6bf}.chat-heading{display:flex;gap:15px;align-items:center;justify-content:space-between;padding:15px 18px;background:linear-gradient(90deg,#2d362a,#16232b);border-bottom:1px solid #716445}.chat-heading h2{font:1.5rem Georgia,serif;color:#ecd5a2;margin:5px 0}.chat-heading .eyebrow{font-size:.75rem}.community-chat form{padding:14px 16px}.chat-routing{display:flex;gap:10px}.community-chat label{font-size:.875rem;min-width:0;flex:1;display:block}.community-chat input,.community-chat select,.community-chat textarea{display:block;width:100%;min-width:0;font-size:1rem;color:#eee4cb;background:#08151c;border:1px solid #5c5840;border-radius:3px;min-height:44px;padding:10px;margin-top:5px}.community-chat textarea{resize:vertical;max-height:120px}.chat-messages{height:min(260px,32dvh);min-height:75px;overflow:auto;overscroll-behavior:contain;overflow-wrap:anywhere;border-top:1px solid #3c473b;border-bottom:1px solid #3c473b;margin:13px 0;padding:5px 0}.chat-message{border-bottom:1px solid #293a39;padding:8px 0}.chat-message header{display:flex;gap:7px;align-items:center;flex-wrap:wrap;font-size:.8125rem;color:#a5b2a8}.chat-message time{margin-left:auto}.chat-message p{font-size:.9375rem;line-height:1.6;margin:5px 0;white-space:pre-wrap}.chat-name{color:#e1c58b;min-height:44px;border:0;background:transparent;font-size:.875rem;font-weight:bold;padding:5px;text-align:left}.chat-message .text-button{min-height:44px;font-size:.8125rem}.chat-send{display:flex;gap:10px;align-items:end;margin-top:8px}.chat-send label{flex:1}.chat-send>button{flex-shrink:0;min-height:44px}.chat-item{border:1px solid #706344;background:#202a22;border-radius:4px;margin:8px 0;font-size:.875rem;line-height:1.6}.chat-item summary{cursor:pointer;min-height:44px;padding:11px;color:#e3c385;overflow-wrap:anywhere}.chat-item>div{padding:0 12px 14px}.chat-privacy{padding:0 16px;font-size:.875rem;line-height:1.6;border-top:1px solid #454534}.chat-privacy summary{padding:13px 0;min-height:44px;cursor:pointer}#chatError{font-size:.875rem;color:#e7b99a;min-height:18px;margin:8px 0 0}.chat-empty{font-size:.9375rem;color:#aebdaf;padding:16px}.shell>.topbar nav{overflow-x:auto;scrollbar-width:thin;min-width:0}.shell>.topbar .nav-button{flex-shrink:0}.exp-page button:focus-visible,.exp-page summary:focus-visible,.community-chat button:focus-visible{outline:2px solid #e5ca91;outline-offset:3px}
@media(max-width:1100px){.zone-atlas,.bestiary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.town-layout{grid-template-columns:minmax(0,1fr) 260px;gap:18px}.character-panel{grid-template-columns:minmax(0,1fr)}.character-progression{border-top:1px solid #5d5b40;padding-top:14px}.lesson-banner,.global-error{margin-left:20px;margin-right:20px}.topbar .account-name{display:none}}
@media(max-width:800px){.town-layout{grid-template-columns:minmax(0,1fr)}.town-inventory{position:static;padding-top:0;order:-1}.town-inventory .inventory-panel{max-width:none}.town-inventory .item-grid{grid-template-columns:repeat(auto-fill,minmax(48px,1fr))}.town-inventory .small-note{display:none}.equipment-workspace{grid-template-columns:minmax(0,1fr)}.expedition-roster{grid-template-columns:minmax(0,1fr)}#battleInventory{display:none}}
@media(max-width:640px){.exp-page{padding:15px 12px 95px}.exp-panel{padding:18px}.zone-atlas,.bestiary-grid,.field-lessons ol{grid-template-columns:minmax(0,1fr)}.paper-doll{grid-template-columns:56px minmax(90px,1fr) 56px;gap:6px}.paper-slot .item-tile{width:52px;height:52px;min-height:52px}.paper-doll figure img{height:365px}.paper-slot>span{font-size:.75rem}.paper-doll>div{gap:9px}.character-panel{padding:12px}.exp-page h1{font-size:1.875rem}.exp-page h2{font-size:1.4375rem}.recipe-detail{align-items:start;gap:12px}.recipe-detail>.gear-icon{width:64px;height:64px}.guide-article summary{padding:18px 42px 18px 18px}.guide-article summary h2{font-size:1.3125rem}.guide-article>div{padding:0 18px 20px}.lesson-banner,.global-error{margin:10px 12px}.lesson-banner summary{flex-wrap:wrap;gap:6px 12px}.lesson-banner summary span{width:100%}.lesson-banner summary strong{font-size:1.0625rem}.lesson-banner button{margin-top:6px}.town-services button{flex-basis:30%;font-size:.875rem;padding:9px}.exp-table td,.exp-table th{padding:9px;font-size:.875rem}.community-chat{right:6px;width:calc(100vw - 12px);bottom:68px;max-height:calc(100dvh - 90px)}.chat-messages{height:25dvh}.chat-heading{padding:11px 14px}.item-inspector{padding:18px}.item-detail-title>.gear-icon{width:56px;height:56px}.item-grid{grid-template-columns:repeat(auto-fill,minmax(52px,1fr))}.expedition-roster article{padding:14px;gap:12px}.exp-page .az-inline-form{flex-wrap:wrap}.exp-page .az-inline-form label{width:100%;min-width:0}.battle-inventory-access{justify-content:flex-start;flex-wrap:wrap}}
@media(max-height:500px){.community-chat{top:6px;bottom:6px;max-height:none}.chat-messages{height:90px}.chat-heading .eyebrow{display:none}}
@media(prefers-reduced-motion:reduce){.exp-page *,.community-chat *{scroll-behavior:auto!important}}

.phone-inventory-button{display:none}@media(max-width:800px){.town-inventory{display:none}.phone-inventory-button{display:inline-flex}}
/* All destinations share one compact, horizontally scrollable navigation row. */
.shell>.topbar nav{display:flex;flex:1 0 100%;width:100%;gap:4px;justify-content:flex-start;overflow-x:auto;padding-bottom:4px;scrollbar-width:thin}
.shell>.topbar .nav-button{flex:1 0 88px;min-height:52px;max-width:none;flex-direction:column;padding:6px 8px;gap:3px}
.shell>.topbar .nav-button span{white-space:nowrap;overflow-wrap:normal;font:.875rem Arial,sans-serif}
.shell>.topbar .nav-button svg{width:20px;height:20px}
@media(max-width:640px){.shell>.topbar{gap:6px}.shell>.topbar .wordmark{width:145px}.shell>.topbar .nav-button{flex:0 0 88px;min-height:52px}}

.mayor-panel{display:flow-root}.mayor-portrait{float:right;width:130px;height:180px;object-fit:contain;margin:0 0 12px 18px;filter:drop-shadow(0 8px 9px #0008)}
@media(max-width:640px){.mayor-portrait{width:90px;height:130px;margin-left:12px}}
/* Relic rarity art and shared comparison/upgrade surfaces. */
.gear-icon.rarity-art{display:inline-block;aspect-ratio:1;width:64px;height:64px;flex:none;background-repeat:no-repeat;background-color:#050606;border-radius:3px;vertical-align:middle}
.item-tile .rarity-art{width:100%;height:100%;max-height:none;filter:none}.item-tile:has(.rarity-art){padding:0;overflow:hidden;border-radius:2px;border-color:var(--rarity)}
.item-tile.rarity-magic{border-color:#8fd653}.item-tile.rarity-rare{border-color:#66b8ff}.item-tile.rarity-epic{border-color:#e8b750}.item-tile.rarity-legendary,.item-tile.rarity-mythic{border-color:#f66b7d}
.item-detail-title>.rarity-art{width:96px;height:96px}.item-tier{color:#fff;font-weight:700}.paper-doll figcaption small{display:block;font:.875rem/1.5 var(--ui);margin-top:6px;color:#e3d7bb}
.gear-affixes li{display:block;margin:10px 0;border-left:2px solid var(--rarity,#80909a);padding:8px 12px;background:#071318}.gear-affixes li small{display:block;color:#bfc9c9;font-size:.875rem;line-height:1.5}.gear-affixes li meter{display:block;width:100%;height:6px;margin-top:7px}.mod-tier{font:700 .75rem var(--ui);padding:3px 5px;border:1px solid #7d8994;border-radius:3px;color:#f0d7a2}
.gear-comparison{display:block;margin:20px 0;padding:14px;background:#071318;border:1px solid #52656a;min-width:0}.gear-comparison h3{font-size:1.125rem;margin-top:0}.compare-items{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.compare-items>div{min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:6px;padding:8px;background:#101d24}.compare-items small{color:#ccd8d8;font-size:.75rem}.compare-items b{font-size:.875rem;line-height:1.4;overflow-wrap:anywhere}.compare-table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:.875rem;margin-top:14px;font-variant-numeric:tabular-nums}.compare-table th,.compare-table td{padding:9px 4px;border-bottom:1px solid #38474b;text-align:right;white-space:normal;overflow-wrap:anywhere}.compare-table th:first-child{width:40%;text-align:left;font-weight:400}.compare-table thead th:first-child{font-weight:700}.compare-table thead th{color:#ead6a7}.gear-gain{color:#9cddac}.gear-loss{color:#ffacac}
.enhance-hero{display:flex;align-items:center;gap:20px;margin:24px 0}.enhance-hero .rarity-art{width:128px;height:128px;box-shadow:0 0 24px #0008}.enhance-hero strong{font:1.75rem Georgia,serif;color:var(--rarity)}.enhance-result{padding:14px;background:#0a171d;border:1px solid currentColor;border-radius:4px}.enhance-odds{padding:16px;border:1px solid #86724e;background:#101d22}.enhance-odds strong{font:1.5rem Georgia,serif;color:#e8d199}.enhance-odds meter{display:block;width:100%;height:15px;margin:10px 0}.enhance-cost{display:flex;flex-wrap:wrap;gap:10px 22px}.random-pool details{padding:10px;border:1px solid #465356}.random-pool summary{min-height:44px;cursor:pointer}.gear-enchant-form select{width:100%;min-width:0;font-size:1rem;min-height:44px}
@media(max-width:430px){.item-detail-title>.rarity-art{width:68px;height:68px}.gear-comparison{padding:8px}.compare-items{gap:7px}.compare-table{font-size:.8125rem}.compare-table th:first-child{width:37%}.enhance-hero{gap:12px}.enhance-hero .rarity-art{width:88px;height:88px}.enhance-hero h3{font-size:1.125rem}}

.attention-badge{display:inline-flex;align-items:center;justify-content:center;min-width:1.1875rem;height:1.1875rem;padding:0 5px;border-radius:20px;background:#b62f39;color:#fff;font:700 .6875rem/1 var(--ui);vertical-align:middle;margin-left:5px;flex:none;border:1px solid #df6870}.nav-button{position:relative}.nav-button>.attention-badge{position:absolute;right:8px;top:6px}.hud-events{min-height:44px;background:#1c252a;border:1px solid #8c794d;color:#f1dfba;padding:8px;font-size:.875rem}.item-new-mark{position:absolute;bottom:2px;left:2px;z-index:2;background:#e4bf6e;color:#1b1509;border:1px solid #fbe3ac;border-radius:3px;box-shadow:0 0 0 1px #0009;font:800 .5rem/1 system-ui;letter-spacing:.03em;padding:1px 2px;writing-mode:horizontal-tb;text-orientation:mixed;pointer-events:none}.item-tile:is(.rarity-charm,.rarity-rune) .item-new-mark{bottom:auto;top:2px;writing-mode:horizontal-tb;padding:0 2px;line-height:1.35}.event-row{display:flex;align-items:start;justify-content:space-between;gap:10px;text-align:left;width:100%;min-height:52px;padding:12px;border:0;border-bottom:1px solid #4d5149;background:#101a20;color:#e9dec7}.event-row span{overflow-wrap:anywhere}.event-row small{white-space:nowrap;color:#bac6bc}.event-row.unread{border-left:3px solid #dfb773}.event-row.read{opacity:.7}.loot-flight{position:fixed;z-index:60;pointer-events:none;width:48px;height:48px;filter:drop-shadow(0 0 9px var(--rarity));will-change:transform,opacity}.loot-flight>.rarity-art{width:48px;height:48px}.loot-flight small{position:absolute;top:52px;left:50%;transform:translateX(-50%);font:700 .75rem/1.3 var(--ui);color:#fff3cf;text-shadow:0 2px 3px #000;background:#081014d9;border-radius:3px;padding:2px 5px;white-space:nowrap}
@media(max-width:600px){.nav-button>.attention-badge{right:4px;top:2px}.event-row{flex-direction:column}.hud-events{padding:7px}}

.enchant-result{padding:12px;margin:16px 0;background:#101b20;border:1px solid #706344}.enchant-result h3{font-size:1.125rem}.compare-scroll{max-width:100%;overflow:auto}.gear-compare-table{table-layout:fixed;width:100%;border-collapse:collapse;font-size:.875rem;line-height:1.5}.gear-compare-table th,.gear-compare-table td{text-align:left;vertical-align:top;overflow-wrap:anywhere;padding:10px 7px;border-bottom:1px solid #344248}.gear-compare-table th{color:#ebd6a5}.enchant-result .small-note{font-size:.8125rem}.auction-entry>.gear-icon{width:72px;height:72px}

.item-grid>p{grid-column:1 / -1;min-width:0}.item-detail-title>div{min-width:0}.item-detail-title h2{overflow-wrap:anywhere}

.compare-base-heading{display:flex;flex-wrap:wrap;gap:4px 12px;align-items:baseline;margin-top:14px;padding-top:12px;border-top:2px solid #b9934e}.compare-base-heading strong{color:#edcf8d}.compare-base-heading span{font-size:.75rem;color:#b9c8ce}.compare-table caption{text-align:left;font-size:.75rem;color:#b9c8ce;padding:4px 0}.compare-enhanced{margin-top:12px;border-top:1px solid #8b7343;padding-top:8px}.compare-enhanced summary{min-height:44px;display:list-item;align-content:center;color:#edcf8d;cursor:pointer}

/* Equipped-stat limits: readable without opening tooltips, including phones. */
.character-stats .stat-effective,.character-stats .stat-limit-label,.character-stats .stat-limit-source{display:block}.character-stats .stat-limit-label{font-size:.6875rem;color:#dfc68f;margin-top:3px}.character-stats .stat-limit-source{font-size:.625rem;color:#aabbce;line-height:1.4;margin-top:3px}.character-stats .stat-limit-source b{color:#edb788;font-weight:500}.stat-limit-track{display:block;height:4px;background:#0a111b;border:1px solid #776643;border-radius:2px;overflow:hidden;margin-top:4px}.stat-limit-track i{display:block;height:100%;background:linear-gradient(90deg,#8c6c2d,#e8c772)}.character-limit-details{border-top:2px solid #92733c;margin-top:18px;padding-top:12px}.character-limit-details>summary{min-height:44px;cursor:pointer;color:#e7ce99}.character-limit-details p{color:#b9c9d6;font-size:.75rem}.character-stats .character-stat dd{min-width:0;overflow-wrap:anywhere}.character-stats .character-stat dt{min-width:0}

.recovery-row>button{flex-shrink:0;white-space:nowrap}.recovery-row>span{min-width:0;overflow-wrap:anywhere}
.recovery-pager{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;margin:10px 0;padding:8px 10px;border:1px solid var(--exp-border);border-radius:6px;background:#0d171c}.recovery-pager>span{flex:1 1 12em;min-width:0;text-align:center;color:var(--exp-gold);font-size:.88rem;overflow-wrap:anywhere}.recovery-pager>button{flex-shrink:0}.recovery-loading{color:var(--exp-gold)}.salvage-card .salvage-area-hint{margin:8px 0 0}

@media(max-width:600px){.recovery-pager>span{order:-1;flex-basis:100%}.recovery-pager>button{flex:1 1 0}.recovery-row{flex-wrap:wrap}.recovery-row>span{flex-basis:100%}.recovery-row>button{white-space:normal}}
/* Hover card (2026-10-08): name line, wear restriction and stat changes only; the click opens the full card. */
.item-hover .item-hover-card .ih-title{margin-bottom:8px}.item-hover .item-hover-card .item-kind{margin:2px 0;font-size:.85rem}
.item-hover .ih-blocked{margin:6px 0;padding:4px 8px;border-left:3px solid #c0614f;color:#f0b7a8;font-size:.9rem}
.item-hover .ih-head{margin:10px 0 4px;color:#e2d1aa;font-size:.9rem}
.item-hover .ih-changes{list-style:none;margin:0;padding:0;display:grid;gap:2px;font-size:.95rem}
.item-hover .ih-changes .ih-more,.item-hover .ih-same,.item-hover .ih-foot{color:#a9a08c;font-size:.82rem}
.item-hover .ih-foot{margin:10px 0 0}
/* Simpler screens #12 (IRP_UI_PLAIN_VERSION): the one summary line at the top of an item card. One line on wide screens, two at most on a 390px phone. */
.item-verdict{margin:6px 0 8px;padding:4px 8px;border-left:3px solid #8a7a55;font-size:.9rem;line-height:1.35;color:#e2d1aa;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow-wrap:anywhere}
.item-verdict strong{color:#f2e3bd}.item-verdict-upgrade{border-left-color:#6fbf86}.item-verdict-upgrade strong{color:#9cddac}.item-verdict-worse{border-left-color:#c0614f}.item-verdict-worse strong{color:#ffacac}.item-verdict-cant-wear{border-left-color:#c0614f}.item-verdict-more{color:#a9a08c}
@media (max-width:359px){.item-verdict{-webkit-line-clamp:3;line-clamp:3;font-size:.85rem}}
.gear-base .gear-base-raw{display:block;margin-top:2px;font-size:.8rem;font-weight:400;color:#a9a08c}
/* Menu audit 23 Oct: worn items in even rows (expansion-ui.js equippedGrid sets the column count). */
.equipment-page .item-grid.equipped-grid{grid-template-columns:repeat(var(--worn-cols,5),minmax(0,1fr))!important}

/* /constellation.css */
/* Azdom's navigation, civic progression and connected talent map. */
:root{--copper:#c69a5a;--ink:#0b1119;--muted-ink:#131e2b;--readable:#dce3e8}
.exp-page{color:var(--readable);font-size:1rem;line-height:1.55}.exp-page p{line-height:1.55}.exp-page h1,.exp-page h2,.exp-page h3{line-height:1.2}.exp-page h1{font-size:clamp(1.8rem,3.5vw,2.6rem)}.exp-page .eyebrow{font-size:.75rem;letter-spacing:.13em}.small-note{font-size:.875rem!important}.exp-page button,.exp-page select{min-height:44px}.exp-heading{margin-bottom:20px}
.topbar{display:grid;grid-template-columns:135px minmax(0,1fr) auto;gap:14px;padding:10px 20px}.topbar nav{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr));min-width:0;width:100%;gap:3px;overflow:visible!important}.topbar .nav-button{min-width:0;min-height:52px;padding:8px;justify-content:center;font-size:.875rem;gap:7px}.topbar .nav-button .icon{width:20px;height:20px}.topbar .painted-wordmark img{max-width:130px}.nav-button.active{box-shadow:inset 0 -2px var(--copper);background:linear-gradient(0deg,#c69a5a19,transparent)}
.section-tabs{display:flex;gap:6px;overflow-x:auto;max-width:1500px;margin:0 auto;padding:10px 24px 0;scrollbar-width:thin;border-bottom:1px solid #bfa16b36}.section-tab{min-height:48px;flex:0 0 auto;background:none;color:#aab7c5;border:0;border-bottom:2px solid transparent;border-radius:0;padding:10px 18px;font-size:.9375rem}.section-tab.selected{border-color:#ddb171;color:#ffe0a6}.section-tab:hover{color:white;background:#ffffff08}.section-tab:focus-visible,.tree-node:focus-visible{outline:3px solid #8fdbff;outline-offset:4px}
.quest-ticker{max-width:1452px;margin:8px auto 0;padding:0 24px}.quest-ticker button{display:flex;align-items:center;gap:12px;min-height:44px;background:transparent;color:#b6c2cc;border:0;font-size:.875rem;text-align:left}.quest-ticker strong{color:#e4bd7e}.quest-ticker progress{max-width:120px;height:4px}
.town-panorama{min-height:260px;display:flex;align-items:flex-end;background:linear-gradient(0deg,#0b1119 4%,#0b111944 65%),url('/assets/story/azdom-town-square.webp') center 42%/cover;border-radius:10px 10px 0 0;padding:28px}.town-panorama h1{margin:8px 0 10px;color:#fff0d4}.town-panorama p{margin:0;color:#d3dbe0}.renown-progress{display:grid;grid-template-columns:auto minmax(0,1fr);gap:28px;align-items:center;padding:24px 28px;background:#152231;border-bottom:1px solid #d0a05c4d}.renown-number{display:flex;flex-direction:column;min-width:150px}.renown-number strong{font:2rem Georgia,serif;color:#ffdb98}.renown-number span{font-size:.875rem;color:#a6b5c5}.renown-progress p{margin:0 0 8px}.renown-progress p span{display:block;color:#b1bdc6;font-size:.875rem}.renown-progress progress{width:100%;height:9px;accent-color:#d2a159}.mayor-conversation{display:grid;grid-template-columns:150px minmax(0,1fr);align-items:center;gap:24px;padding:28px 12px}.mayor-conversation img{object-fit:contain;max-height:240px;width:100%;height:auto;filter:drop-shadow(0 10px 18px #0008)}.mayor-conversation h2{font:1.6rem Georgia,serif;color:#f0d9b7}.town-roadmap{padding:20px 12px}.town-roadmap ol{list-style:none;padding:16px 0}.town-roadmap li{display:flex;gap:18px;position:relative;padding:0 0 28px}.town-roadmap li:not(:last-child):before{content:'';position:absolute;left:21px;top:42px;bottom:0;border-left:1px solid #65707b66}.renown-rank{display:grid;place-items:center;flex:0 0 44px;height:44px;border:1px solid #7c858c;border-radius:50%;color:#b6c3ce;font:1.2rem Georgia,serif}.unlocked .renown-rank{color:#ffe3a9;border-color:#d9ab60;background:#8b642924}.next .renown-rank{border-color:#98d7e6;color:#adebfa;box-shadow:0 0 0 4px #83c6da12}.town-roadmap h3{margin:5px 0;color:#e8d4b2}.town-roadmap p{margin:0;color:#b4c1cc}.town-roadmap .locked{opacity:.77}.town-layout>.phone-inventory-button{grid-column:1/-1;justify-self:start}.workshop-header{padding:0 0 20px;border-bottom:1px solid #ffffff12}.locked-recipes{margin:20px 0}.locked-recipes summary{min-height:44px;cursor:pointer;color:#dfbd80}.locked-recipes li{margin:12px 0}.recipe-detail{padding:20px 0!important;border:0!important;background:transparent!important}
.current-lesson{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:24px;border-left:3px solid #c69a5a;background:linear-gradient(90deg,#b8883212,transparent);margin:18px 0 28px}.current-lesson h2{font-size:1.25rem;margin:6px 0 12px;color:#f2dfb9}.current-lesson p{margin:0;max-width:65ch}.lesson-action{flex:0 0 200px}.lesson-action button{width:100%}.quest-focus{padding:32px;background:linear-gradient(90deg,#0a1119f5 30%,#0a1119a8),var(--quest-art) center/cover;border-top:1px solid #d5ad6666;border-bottom:1px solid #d5ad6633;min-height:240px}.quest-focus>div{max-width:640px}.quest-focus h2{font:1.8rem Georgia,serif;color:#ffdf9f;margin:14px 0}.quest-count{display:flex;flex-direction:column;gap:10px;color:#f1dcc3}.quest-count progress{height:7px;max-width:500px;accent-color:#d1a161}.quest-reward{color:#d2bf8f}.quest-records{margin:24px 0;padding:16px 0;border-block:1px solid #d5ad662b}.quest-records>summary{font:1.15rem Georgia,serif;color:#f0d5a6;min-height:44px;cursor:pointer;padding:8px}.quest-records>article{display:flex;gap:18px;padding:20px 8px;border-bottom:1px solid #ffffff0b}.quest-records>article h3,.quest-records>article p{margin:0 0 8px}.completion-mark{color:#a2d8a4}.realm-announcement{display:flex;gap:18px;align-items:center;background:linear-gradient(100deg,#554122,#243340);border-block:1px solid #d8af6b;padding:14px 24px;color:#ffe6b3}.realm-announcement>span{font-size:2rem}.realm-announcement>div{flex:1;min-width:0}.realm-announcement p{margin:5px 0 0}.realm-announcement strong{font-size:.875rem;letter-spacing:.07em}.chat-message.system{border-left:2px solid #d1a363;background:#cea8610b}.chat-message.system strong{color:#efc582}.talent-gain{color:#a9cced}.character-panel{border:0!important;background:radial-gradient(ellipse at 30% 45%,#56798722,transparent 60%),#0d1720!important}.character-panel .paper-doll{background:none!important}.gear-attributes{background:#121d27!important;border:0!important}.gear-attribute-grid article{background:transparent!important;border-width:0 0 1px!important;border-color:#ffffff16!important}.gear-derived{gap:0!important}.gear-derived>div{background:transparent!important;border-bottom:1px solid #ffffff12!important;padding:14px!important}
.tree-heading{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:14px}.tree-heading p{margin:0}.tree-heading strong{color:#ffda9c}.tree-legend{display:flex;align-items:center;gap:8px;font-size:.875rem;color:#c3cfda}.tree-legend i{width:9px;height:9px;border:1px solid #687584;border-radius:50%;background:#162231}.tree-legend i.allocated{border-color:#eec77e;background:#b38940}.tree-legend i.available{border-color:#93d7f5;box-shadow:0 0 5px #59b8e280}.tree-workspace{display:grid;grid-template-columns:minmax(0,1fr) 285px;gap:20px}.tree-map{min-width:0;border:1px solid #6d82903b;border-radius:10px;overflow:hidden;background:#0a111b}.tree-toolbar{display:flex;align-items:center;gap:8px;padding:10px;background:#14212c;flex-wrap:wrap}.tree-toolbar button{min-width:44px;padding:8px 12px}.tree-toolbar select{width:auto;min-width:0;flex:1;max-width:180px;font-size:.875rem}.tree-toolbar>span{font-size:.875rem;min-width:40px;text-align:center}.tree-viewport{height:min(67vh,640px);min-height:360px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;position:relative;cursor:grab;background:radial-gradient(ellipse at center,#1a314a45,transparent 70%),#070d16}.tree-canvas{position:relative;isolation:isolate}.tree-links{position:absolute;inset:0;overflow:visible;pointer-events:none}.tree-links line{stroke:#374959;stroke-width:2}.tree-links line.allocated{stroke:#dcaf65;stroke-width:3;filter:drop-shadow(0 0 3px #bd8b38)}.tree-center{position:absolute;transform:translate(-50%,-50%);font:1.5rem Georgia,serif;letter-spacing:.2em;color:#647787;text-align:center;pointer-events:none}.tree-center small{display:block;font: .75rem sans-serif;letter-spacing:.08em;margin-top:6px}.tree-node{position:absolute;transform:translate(-50%,-50%);width:54px;height:54px;min-width:54px;min-height:54px!important;padding:0;display:grid;place-items:center;overflow:visible;border-radius:50%;border:2px solid #43515f;background:radial-gradient(circle at 35% 25%,#273c50,#111b29 72%);color:#b6c9d9;z-index:2;cursor:pointer;box-shadow:0 3px 8px #0008;font-size:.875rem}.tree-node.root{width:74px;height:74px;border:3px double var(--branch);font:1.75rem Georgia,serif;color:var(--branch)}.tree-node.notable,.tree-node.ability{width:64px;height:64px;border:3px double #59687b}.tree-node.ability .node-glyph{font-size:1.7rem}.tree-node.available{border-color:#8ecfe7;box-shadow:0 0 14px #77c3e326}.tree-node.allocated{border-color:#f2c879;color:#ffe5ab;background:radial-gradient(circle,#614620,#1e2022);box-shadow:0 0 16px #d99d393b}.tree-node.foreign{filter:saturate(.25);opacity:.6}.tree-node.selected{outline:2px solid white;outline-offset:5px;z-index:5}.tree-node .node-label{position:absolute;top:100%;margin-top:7px;left:50%;transform:translateX(-50%);font-family:Georgia,serif;font-size:.8125rem;line-height:1.2;width:116px;text-align:center;color:#d4dce3;text-shadow:0 2px 4px #000,0 0 8px #000;pointer-events:none}.tree-node.travel .node-label{font-family:inherit;font-size:.75rem;width:74px}.node-inspector{background:linear-gradient(140deg,#1d2b3a,#101923);padding:24px 20px;border-top:2px solid #d8ad67;border-radius:5px;min-width:0}.node-inspector h2{font:1.65rem Georgia,serif;color:#ffe0a4;margin:10px 0 18px}.node-cost{color:#f0d195}.node-state{color:#a8c9dd}.node-inspector>button{width:100%;margin:8px 0}.node-rules{border-top:1px solid #bfa16b30;margin-top:24px;padding-top:14px;font-size:.875rem;color:#a9b8c7}.node-rules h3{font:1rem Georgia,serif;color:#d7c3a0}.node-inspector details{font-size:.875rem;border-top:1px solid #ffffff14;padding-top:12px}.node-inspector summary{min-height:44px;padding:10px 0;cursor:pointer}.tree-help{padding:12px;margin:0;font-size:.875rem;color:#8fa6b9}.ascension-paths{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:30px;padding:20px}.ascension-paths article{border-top:1px solid #fff1;padding:15px 0}.sr-only{position:absolute!important;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:1050px){.topbar{grid-template-columns:110px minmax(0,1fr) auto;gap:8px;padding-inline:12px}.topbar .painted-wordmark img{max-width:105px}.account-name{display:none}.tree-workspace{grid-template-columns:minmax(0,1fr) 260px}.town-layout{grid-template-columns:minmax(0,1fr)!important}.town-inventory{display:none!important}.phone-inventory-button{display:inline-flex!important}}
@media(max-width:760px){.topbar{grid-template-columns:minmax(0,1fr) auto;gap:4px}.topbar nav{grid-column:1/-1;grid-row:2}.topbar .nav-button{flex-direction:column;gap:3px;font-size:.8125rem;padding:5px 2px;min-height:54px}.topbar .nav-button .icon{height:18px;width:18px}.topbar .account-block{gap:4px}.topbar .icon-button{width:44px;height:44px}.section-tabs{padding:4px 12px 0;gap:0}.section-tab{padding:8px 12px;font-size:.875rem}.quest-ticker{padding-inline:12px}.quest-ticker button{gap:8px;flex-wrap:wrap}.quest-ticker progress{display:none}.exp-page{padding:20px 14px!important}.tree-workspace{grid-template-columns:minmax(0,1fr)}.tree-heading{align-items:flex-start;flex-direction:column;gap:10px}.tree-viewport{height:55vh;min-height:340px}.node-inspector{padding:20px}.tree-help{font-size:.8125rem}.town-panorama{min-height:205px;padding:22px 18px}.renown-progress{grid-template-columns:minmax(0,1fr);gap:16px;padding:22px 18px}.renown-number{flex-direction:row;align-items:center;gap:12px;min-width:0}.renown-number strong{font-size:1.8rem}.mayor-conversation{grid-template-columns:80px minmax(0,1fr);gap:12px;padding:24px 0}.mayor-conversation h2{font-size:1.3rem}.mayor-conversation img{align-self:start}.current-lesson{flex-direction:column;align-items:stretch;padding:20px 16px;gap:16px}.lesson-action{flex:auto}.quest-focus{padding:24px 18px}.quest-focus h2{font-size:1.5rem}.town-roadmap{padding-inline:0}.realm-announcement{padding:12px;gap:10px;flex-wrap:wrap}.realm-announcement>span{display:none}.realm-announcement>div{flex-basis:100%}.ascension-paths{grid-template-columns:1fr;padding:12px}.gear-attribute-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.gear-attribute-grid article{padding:14px 8px!important}.gear-attribute-grid article h3{font-size:1rem}.gear-attribute-grid article p{font-size:.875rem}}
@media(max-width:350px){.topbar .nav-button{font-size:.75rem}.section-tab{padding-inline:10px}.tree-toolbar{gap:5px}.tree-toolbar select{max-width:105px}.tree-toolbar button{padding-inline:9px}.gear-attribute-grid{grid-template-columns:1fr!important}}
@media(prefers-reduced-motion:reduce){.tree-viewport{scroll-behavior:auto}.tree-node{transition:none}}

.tree-node.travel .node-label{display:none}.tree-node.travel{font-size:.75rem}.tree-links line{stroke:#7793a7;stroke-width:2;opacity:.8}.tree-links line.allocated{stroke:#e4be79;opacity:1}.topbar>.account-block{grid-column:3;grid-row:1}.topbar>nav{grid-column:2;grid-row:1}.tree-links{max-width:none!important;max-height:none!important;width:auto!important;height:auto!important}
@media(max-width:760px){.topbar>.account-block{grid-column:2;grid-row:1}.topbar>nav{grid-column:1/-1;grid-row:2}}
.tree-node.keystone{width:76px;height:76px;border:3px double #9e8b72;border-radius:30%;color:#d4c2a3}.tree-node.keystone.allocated{border-color:#f2c879}
.account-name b{color:#ecdcc2}.topbar .nav-button span{overflow-wrap:anywhere;line-height:1.15}

.topbar>.wordmark{grid-column:1;grid-row:1;width:100%;min-width:0;max-width:135px;overflow:hidden;pointer-events:none}

/* /clerk-auth.css */
.clerk-entry{width:min(100%,420px);box-sizing:border-box;text-align:left}
.clerk-entry h2{font-size:clamp(1.8rem,5vw,2.4rem);margin:12px 0 18px;color:#f3ddb0}
.clerk-entry button,.clerk-entry input{min-height:44px;font-size:1rem}
.clerk-entry button.full{margin-top:14px;white-space:normal}
.clerk-entry input{box-sizing:border-box;width:100%;min-width:0}
.clerk-entry p{line-height:1.55;overflow-wrap:anywhere}
.clerk-entry label{display:grid;gap:9px;margin-top:20px}
.clerk-recover{margin-top:18px;border:1px solid rgba(209,166,91,.35);border-radius:10px;padding:4px 14px 14px;background:rgba(11,18,23,.55)}
.clerk-recover summary{min-height:44px;display:flex;align-items:center;cursor:pointer;color:#f3ddb0;font-weight:600}
.clerk-recover summary:focus-visible{outline:2px solid #d1a65b;outline-offset:2px}
.clerk-recover[open] summary{border-bottom:1px solid rgba(209,166,91,.25);margin-bottom:6px}
#irpRecoverOld .recover-card{position:fixed;right:16px;bottom:16px;z-index:2147482100;width:min(380px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto;background:#141b20;box-shadow:0 12px 40px rgba(0,0,0,.6);padding:20px 18px}
#irpRecoverOld .recover-card p{text-align:left;margin:0 0 10px}
#irpRecoverOld .red-button{font:normal 1.15rem/1.4 Georgia,serif;border:1px solid #e6c98f;border-radius:6px;color:#1b1509;text-shadow:0 1px 0 #fff2c966;background:linear-gradient(180deg,#d9b873,#c9a468 45%,#8f6f3c);box-shadow:inset 0 1px 0 #fff2c95c,inset 0 0 0 2px #8a682f66,0 2px 8px #0008;width:100%;cursor:pointer}
#irpRecoverOld .red-button:hover:not(:disabled){background:linear-gradient(180deg,#e2c283,#a7834a)}
#irpRecoverOld .red-button:disabled{opacity:.6;cursor:wait}
#irpRecoverOld .secondary{width:100%;border:1px solid #8a7550;border-radius:6px;background:#0f171d;color:#f1e7d0;cursor:pointer}
#irpRecoverOld .recover-card h2{font-size:1.4rem;margin:4px 32px 10px 0}
.recover-card-close{position:absolute;top:6px;right:6px;min-width:44px;min-height:44px;background:none;border:0;color:#f3ddb0;font-size:1.6rem;cursor:pointer}
.recover-card-close:focus-visible{outline:2px solid #d1a65b;outline-offset:-4px}
@media(max-width:480px){#irpRecoverOld .recover-card{left:16px;right:16px;bottom:calc(16px + env(safe-area-inset-bottom));width:auto}}
.clerk-benefits{display:grid;gap:12px;padding:24px 0 4px;color:#c8c3b4;font-size:.9rem}
.clerk-benefits span::before{content:'◆';color:#b79858;font-size:.65rem;margin-right:10px}
.clerk-identity{display:flex;align-items:center;gap:12px;color:#b7d3b4;margin:14px 0}
[data-clerk-user]{display:flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;flex-shrink:0}
[data-clerk-user] button{min-width:44px;min-height:44px}
.cl-modalContent{max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);overflow:auto}
@media(max-width:480px){.clerk-entry{padding:24px 18px}.clerk-entry h2{margin-top:8px}.account-block:has([data-clerk-user]){gap:4px}.account-block:has([data-clerk-user]) .account-name{max-width:110px}}

/* Official stable Clerk classes: readable form controls on touch screens. */
.cl-formFieldInput{font-size:max(1rem,1rem);min-height:44px}
.cl-formButtonPrimary,.cl-socialButtonsBlockButton,.cl-socialButtonsIconButton,.cl-modalCloseButton,.cl-formFieldInputShowPasswordButton{min-height:44px;min-width:44px}

/* /release-notice.css */
#release-notice[hidden]{display:none}
#release-notice{position:sticky;top:0;z-index:150;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:.5rem 1rem;padding:.65rem max(1rem,env(safe-area-inset-right)) .65rem max(1rem,env(safe-area-inset-left));padding-top:max(.65rem,env(safe-area-inset-top));background:#241b0e;border-bottom:2px solid #b5914e;color:#fff0cb;box-shadow:0 3px 12px #0008;font-size:1rem}
#release-notice p{flex:0 1 auto;margin:0;line-height:1.5;overflow-wrap:anywhere}
#release-notice button{flex:0 0 auto;max-width:100%;min-height:44px;padding:.6rem 1rem;border:1px solid #e6c98f;border-radius:4px;background:linear-gradient(180deg,#d9b873,#c9a468 45%,#8f6f3c);box-shadow:inset 0 1px 0 #fff2c95c,inset 0 0 0 2px #8a682f66;color:#1b1509;font-size:1rem;font-weight:700;white-space:normal}
#release-notice button:focus-visible{outline:3px solid #fff;outline-offset:3px}
@media(max-width:430px){#release-notice{justify-content:flex-start}#release-notice p{flex-basis:100%}}

/* /evermarch.css */
/* A scalable wordmark keeps the new name readable on every game screen. */
.wordmark.evermarch-wordmark{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0;max-width:100%;width:100%;padding:0;background:none;border:0;box-shadow:none;clip-path:none;color:#ebcb87;text-align:center}
.evermarch-wordmark .brand-name{display:block;max-width:100%;font-family:Georgia,'Times New Roman',serif;font-size:clamp(.85rem,1.4vw,1.3rem);font-weight:normal;line-height:1.2;letter-spacing:.015em;text-shadow:0 2px 3px #000}
.evermarch-wordmark .brand-tagline{display:none}
.wordmark.large.evermarch-wordmark{width:min(650px,100%);margin-inline:auto}
.wordmark.large.evermarch-wordmark .brand-name{font-size:clamp(2.2rem,5.5vw,5rem);letter-spacing:.035em}
.wordmark.large.evermarch-wordmark .brand-tagline{display:block;margin-top:.75rem;font-size:clamp(.65rem,1.1vw,.95rem);line-height:1.5;letter-spacing:.16em;color:#ead9b4}

/* /entry.css */
/* The approved gateway painting with responsive, real account controls. */
.auth-page.evermarch-entry{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto 1fr auto;min-height:100vh;min-height:100svh;overflow:clip;isolation:isolate;background:#172431;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)}
.evermarch-entry::after{display:none}
.entry-world{position:absolute;inset:0;z-index:-2;pointer-events:none}
.entry-world picture{display:contents}.entry-world img{width:100%;height:100%;object-fit:cover;object-position:center;display:block}/* Phones in portrait get gateway-v1-portrait.webp: columns 580-1286 of the painting at full resolution, cut so the 60% position below shows the same view. */
.entry-world::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,#060e1b40,transparent 32%,transparent 66%,#060c1499)}
.entry-brand{text-align:center;min-width:0;padding:clamp(1.25rem,3.5vh,3rem) 1rem 0;filter:drop-shadow(0 3px 3px #080e18)}
.entry-crest{display:flex;align-items:center;justify-content:center;gap:1rem;color:#dfbb74;width:min(30rem,70%);margin:0 auto .125rem}
.entry-crest::before,.entry-crest::after{content:"";height:1px;flex:1;background:linear-gradient(90deg,transparent,#edcd89)}
.entry-crest::after{transform:scaleX(-1)}
.entry-crest svg{display:block;width:clamp(3rem,7vh,5.5rem);height:clamp(3rem,7vh,5.5rem);flex-shrink:0;overflow:visible}
.entry-brand h1{margin:0;color:#edcb83;font:normal clamp(2rem,7.4vw,7.5rem)/1.15 Georgia,'Times New Roman',serif;letter-spacing:.025em;overflow-wrap:anywhere}
@supports (background-clip:text){.entry-brand h1{background:linear-gradient(#fff1c4 7%,#e6bd6b 34%,#a87634 51%,#f7df9e 61%,#d8aa5e 85%);background-clip:text;-webkit-background-clip:text;color:transparent}}
.entry-tagline{display:flex;align-items:center;justify-content:center;gap:1rem;margin:.6rem auto 0;max-width:34rem;color:#f1dfb7;font:normal clamp(.7rem,1.2vw,1.15rem)/1.6 Georgia,serif;letter-spacing:.2em}
.entry-tagline::before,.entry-tagline::after{content:"";width:3rem;min-width:0;height:1px;background:linear-gradient(90deg,transparent,#d0a966);flex-shrink:1}
.entry-tagline::after{transform:scaleX(-1)}
.evermarch-entry .auth-entry{width:100%;min-width:0;display:flex;align-items:flex-end;justify-content:center;padding:clamp(3rem,14vh,10rem) 1rem clamp(1rem,4vh,3rem)}
.evermarch-entry .auth-form{width:min(26rem,100%);max-width:26rem;margin:0;padding:1.4rem clamp(1rem,3vw,2.5rem) 1.5rem;background:linear-gradient(145deg,#182431ef,#080f18f5);border:1px solid #c89f56;box-shadow:inset 0 0 0 3px #101923,inset 0 0 0 4px #6b5738,0 12px 40px #02081088}
.evermarch-entry .auth-form h2{font:normal 1.5rem/1.35 Georgia,serif;color:#f2e3c1;margin:.1rem 0 1.1rem;padding:0;border:0;overflow-wrap:anywhere}
.evermarch-entry .auth-form .frame-gem{display:none}
.evermarch-entry .auth-form>.eyebrow{font-size:.75rem}
.evermarch-entry .auth-form button{min-height:48px;height:auto;white-space:normal;overflow-wrap:anywhere}
.evermarch-entry .auth-form button.full{margin-top:.75rem}
.evermarch-entry .auth-form .red-button{font:normal 1.3rem/1.4 Georgia,serif;letter-spacing:.025em;padding:.6rem 1rem;border-color:#e6c98f;color:#1b1509;text-shadow:0 1px 0 #fff2c966;background:linear-gradient(180deg,#d9b873,#c9a468 45%,#8f6f3c);box-shadow:inset 0 1px 0 #fff2c95c,inset 0 0 0 2px #8a682f66,0 2px 8px #0008}
.evermarch-entry .auth-form .secondary{font:normal 1.05rem/1.4 Georgia,serif;padding:.5rem 1rem;border-color:#b6955c;background:linear-gradient(#1c2a36,#0b131c);box-shadow:inset 0 0 0 2px #101922}
.evermarch-entry .auth-form input{min-height:48px;font-size:1rem;height:auto}
.evermarch-entry .auth-form input[type=checkbox]{min-height:1.25rem;height:1.25rem}
.evermarch-entry .auth-form label{margin:.75rem 0}
.evermarch-entry .auth-form .inline-error{font-size:.875rem;margin-bottom:0}
.evermarch-entry .entry-welcome button:first-of-type{margin-top:0}
.entry-footer{display:flex;justify-content:flex-end;align-items:center;gap:1rem;flex-wrap:wrap;padding:.25rem clamp(1rem,2.5vw,2.5rem) .75rem;color:#e4d6ba}
.entry-footer button{border:0;background:#07111c55;font:normal .95rem/1.5 Georgia,serif;min-height:44px;padding:.5rem .8rem;border-radius:2px;text-shadow:0 1px 3px #000}
.entry-footer button:focus-visible,.evermarch-entry button:focus-visible{outline:2px solid #ffe3a6;outline-offset:4px}
.entry-footer span{height:1rem;width:1px;background:#e2c69077}
.entry-patch-notes{width:min(38rem,100%);max-height:calc(100vh - 2rem);max-height:calc(100dvh - 2rem);overflow:auto;line-height:1.6;overflow-wrap:anywhere}
.entry-patch-notes h3{color:#e8c88d;font-size:1.15rem;margin:1.25rem 0 .5rem}
.entry-patch-notes ul{padding-left:1.25rem}
.entry-patch-notes li+li{margin-top:.7rem}
.entry-patch-notes>button{min-height:44px}
@media(max-width:600px){
 .entry-world img{object-position:60% center}
 .entry-brand{padding-top:1.6rem}
 .entry-brand h1{font-size:clamp(1.9rem,9.8vw,3.7rem)}
 .entry-crest{width:62%;margin-bottom:.6rem}
 .entry-tagline{letter-spacing:.14em;gap:.5rem;font-size:.7rem}
 .entry-tagline::before,.entry-tagline::after{width:1rem}
 .evermarch-entry .auth-entry{padding-top:1.5rem;padding-bottom:1.5rem}
 .entry-footer{justify-content:center;padding-bottom:1rem;gap:.5rem}
}
@media(max-height:540px) and (min-width:601px){
 .entry-brand{padding-top:1rem}
 .entry-crest svg{width:2.5rem;height:2.5rem}
 .entry-brand h1{font-size:clamp(2.25rem,6vw,4rem)}
 .entry-tagline{font-size:.7rem;margin-top:.25rem}
 .evermarch-entry .auth-entry{padding-top:1.5rem;padding-bottom:.75rem}
}

/* /login-dawn.css */
/* Dawnforged sign-in screen (switch IRP_LOGIN_DAWN_VERSION, public/login-dawn.js). Only elements the switch adds carry these classes. */
.dawn-world{overflow:hidden;background:#08121c}
.dawn-drift{position:absolute;inset:0;transform:scale(1.025);animation:dawn-drift 12s ease-in-out infinite;animation-delay:var(--dawn-t,0s);will-change:transform}
.dawn-world .dawn-drift img{object-position:center}
.dawn-motion{position:absolute;inset:0;width:100%;height:100%;display:block}
/* Darker sky and floor, and a soft shade behind the logo and the card, so the text stays easy to read. */
.dawn-world::after{background:radial-gradient(circle at 50% 47%,#02081366 0,#02081366 10vmax,#02081300 40vmax),linear-gradient(180deg,#020912a6,#030b1429 30%,#02091221 65%,#01060c66)}
@keyframes dawn-drift{0%,100%{transform:translate(0,.2%) scale(1.025)}25%{transform:translate(.3%,0) scale(1.031)}50%{transform:translate(0,-.2%) scale(1.025)}75%{transform:translate(-.3%,0) scale(1.019)}}

.entry-brand .dawn-logo{position:relative;display:block;width:min(500px,62vw,57vh);margin:0 auto;font-size:0;line-height:0;background:none;color:inherit}
.dawn-logo img{display:block;width:100%;height:auto;filter:drop-shadow(0 10px 13px #01060bcc)}
.dawn-sheen{position:absolute;inset:0;overflow:hidden;pointer-events:none;mix-blend-mode:screen;-webkit-mask:url(/assets/evermarch/dawnforged-logo-v1-640.webp) center/100% 100% no-repeat;mask:url(/assets/evermarch/dawnforged-logo-v1-640.webp) center/100% 100% no-repeat}
.dawn-sheen i{position:absolute;inset:0;background:linear-gradient(105deg,#ffe2a400 42%,#fff2cd73 50%,#ffe2a400 58%);transform:translateX(-90%);animation:dawn-sweep 12s linear infinite;animation-delay:var(--dawn-t,0s)}
.dawn-star{position:absolute;left:50%;top:43.7%;width:5.2%;aspect-ratio:1;transform:translate(-50%,-50%);border-radius:50%;pointer-events:none;mix-blend-mode:screen;background:radial-gradient(closest-side,#71caff 25%,#71caff00);opacity:.45;animation:dawn-star 6s ease-in-out infinite;animation-delay:var(--dawn-t,0s)}
@keyframes dawn-sweep{to{transform:translateX(90%)}}
@keyframes dawn-star{0%,100%{opacity:.45}25%{opacity:.65}75%{opacity:.25}}
.dawn-logo~.entry-tagline{margin-top:.35rem}

@media(max-width:600px){
 .entry-brand .dawn-logo{width:min(80vw,340px)}
}
.dawn-still .dawn-drift,.dawn-still.dawn-logo .dawn-star{animation:none}
.dawn-still .dawn-sheen{display:none}
@media(prefers-reduced-motion:reduce){
 .dawn-drift,.dawn-star{animation:none}
 .dawn-sheen{display:none}
}

/* /login-videos.css */
/* Gameplay trailers on the sign-in page (public/login-videos.js), in the sign-in card's own painted frame.
   Phone first: under the card, the two videos side by side. Wide screens: the card stays in the middle and the panel sits to its left, its top level
   with the card's top (a three-column row: panel, card, an empty column the panel's width so the card stays centred under the logo). */
.evermarch-entry .auth-entry{flex-wrap:wrap;position:relative}
.login-videos{order:2;flex:0 0 100%;width:min(26rem,100%);max-width:26rem;margin:1rem auto 0;padding:1rem 1.25rem 1.5rem;text-align:center;
 background:url('/art/interface/painted/panel-surface-v1.webp') 50% 50%/512px auto repeat,#1c1a18;box-shadow:inset 0 0 0 3px #090f19,inset 0 0 0 4px #6c57364d,0 12px 40px #02081088}
.login-videos .lv-eyebrow{margin:0;font-size:.7rem}
.lv-title{margin:.15rem 0 .8rem;padding:0;border:0;font:normal 1.25rem/1.3 Georgia,serif;color:#f2e3c1}
.lv-list{position:relative;z-index:3;display:grid;grid-template-columns:1fr 1fr;gap:.7rem}
.lv-tile{display:block;min-width:0;color:#f3e4c4;text-decoration:none;text-align:left}
.lv-pic{position:relative;display:block;aspect-ratio:16/9;border:1px solid #c7a467aa;border-radius:3px;overflow:hidden;background:#0b1220;box-shadow:0 4px 12px #000a}
.lv-pic img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .25s ease}
.lv-pic::after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,#060b1466,transparent 55%);pointer-events:none}
.lv-play{position:absolute;left:50%;top:50%;width:40px;height:40px;margin:-20px 0 0 -20px;border-radius:50%;background:#0b1220cc;border:2px solid #e8c98a;box-shadow:0 0 12px #000c;z-index:1}
.lv-play::before{content:"";position:absolute;left:14px;top:10px;border-left:15px solid #f6dfa8;border-top:9px solid transparent;border-bottom:9px solid transparent}
.lv-text{display:block;padding:.4rem .1rem 0;line-height:1.25}
.lv-label{display:block;font:600 1rem/1.25 Georgia,serif;letter-spacing:.03em;color:#f2e3c1}
.lv-line{display:block;margin-top:.1rem;font-size:.8rem;color:#c9b993}
.lv-tile:hover .lv-pic img,.lv-tile:focus-visible .lv-pic img{transform:scale(1.05)}
.lv-tile:hover .lv-pic,.lv-tile:focus-visible .lv-pic{border-color:#ffe3a6}
.lv-tile:hover .lv-label,.lv-tile:focus-visible .lv-label{color:#ffe3a6}
.lv-tile:focus-visible{outline:2px solid #ffe3a6;outline-offset:3px}
@media(max-width:600px){.login-videos{padding:.85rem .85rem .95rem}.lv-title{font-size:1.1rem;margin-bottom:.6rem}.lv-line{font-size:.75rem}}
@media(min-width:1100px) and (min-height:600px){
 /* No :has(>.login-videos) here (31 Oct, Pat: "feels really low fps"): the panel is always in the sign-in card's row (html() never returns empty), and those two
    :has() rules made Chrome restyle the whole game page on every frame, over a quarter of the main thread in a zone fight. */
 .evermarch-entry .auth-entry{display:grid;grid-template-columns:minmax(0,1fr) 26rem minmax(0,1fr);align-items:start;column-gap:clamp(1.5rem,3vw,3rem)}
 .evermarch-entry .auth-entry>.login-videos{grid-column:1;grid-row:1;justify-self:end;width:clamp(15rem,19vw,18.5rem);margin:0}
 .evermarch-entry .auth-entry>:not(.login-videos){grid-column:2;grid-row:1}
 .login-videos .lv-list{grid-template-columns:1fr;gap:.9rem}
}
@media(prefers-reduced-motion:reduce){.lv-pic img{transition:none}}
.lv-player{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;padding:1rem}
.lv-scrim{position:absolute;inset:0;background:#03060bdd}
.lv-frame{position:relative;width:min(100%,960px);aspect-ratio:16/9;border:1px solid #c7a467;border-radius:4px;background:#000;box-shadow:0 10px 40px #000}
.lv-frame iframe,.lv-frame video{display:block;width:100%;height:100%;border:0;background:#000}
.lv-close{position:absolute;top:-46px;right:0;width:40px;height:40px;border-radius:50%;border:1px solid #c7a467;background:#0b1220;color:#f3e4c4;font-size:1.6rem;line-height:1;cursor:pointer}

/* /studio-brand.css */
/* Clickbait Studios: a short load splash and a small studio credit. */
.studio-splash{position:fixed;inset:0;z-index:2147483000;display:flex;align-items:center;justify-content:center;padding:max(1rem,env(safe-area-inset-top)) max(1rem,env(safe-area-inset-right)) max(1rem,env(safe-area-inset-bottom)) max(1rem,env(safe-area-inset-left));background:#000;cursor:pointer;opacity:1;transition:opacity .35s ease;-webkit-tap-highlight-color:transparent}
.studio-splash img{display:block;width:min(36rem,78vw);height:auto;max-height:70vh;object-fit:contain;opacity:0}
.studio-splash.ready img{opacity:1;animation:studio-splash-in .5s ease-out both}
.studio-splash.leaving{opacity:0;pointer-events:none}
@keyframes studio-splash-in{from{opacity:0;transform:scale(.97)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){.studio-splash{transition:none}.studio-splash.ready img{animation:none}}
.studio-credit{display:flex;align-items:center;margin:0 auto 0 0;line-height:0}
.studio-credit img{display:block;width:10rem;height:auto}
.entry-footer .studio-credit img{padding:.2rem .4rem;border-radius:2px;background:#07111c99}
.entry-footer .studio-credit{min-height:44px}
@media(max-width:600px){.entry-footer .studio-credit{flex-basis:100%;justify-content:center;margin:0;min-height:0;order:1}}
.studio-footer{display:flex;justify-content:center;padding:1.5rem 1rem calc(1.5rem + env(safe-area-inset-bottom))}
.studio-footer .studio-credit{margin:0}

/* /realm-theme.css */
/* Evermarch's gateway palette continues through the playable realm. */
:root{color-scheme:dark;--realm-ink:#e8dfcc;--realm-muted:#b9b5a9;--realm-gold:#d6b477;--realm-edge:#76613d;--realm-panel:#142026}
body{background:#080f13;color:var(--realm-ink);font-family:system-ui,-apple-system,'Segoe UI',sans-serif;line-height:1.5}
.shell{min-height:100dvh;background:radial-gradient(ellipse at 14% 0%,#31455065,transparent 55%),radial-gradient(ellipse at 100% 60%,#5e3c1b25,transparent 65%),#0b1419}
.shell h1,.shell h2,.shell h3,.modal-backdrop h2,.modal-backdrop h3{font-family:Georgia,'Times New Roman',serif;color:#e4c68e;font-weight:500;letter-spacing:.025em;text-wrap:balance}
.shell h1{font-size:clamp(1.65rem,2.8vw,2.65rem);line-height:1.15}.shell h2{line-height:1.3}.shell p{line-height:1.65}
.shell .eyebrow,.shell .micro{letter-spacing:.14em;font-size:.75rem;color:#c5ac7e}
.shell .small-note,.shell .subtle,.shell .chapter-note{color:var(--realm-muted)}
.shell .ornate,.shell .exp-panel,.shell .inventory-panel,.shell .current-lesson,.shell .quest-records{background:linear-gradient(135deg,#25313880,transparent 65%),#121e24;border:1px solid #695838;border-radius:9px;box-shadow:inset 0 0 0 3px #101a20,inset 0 0 0 4px #83704a38,0 7px 20px #0004;color:var(--realm-ink)}
.shell .exp-panel,.shell .inventory-panel{padding:clamp(14px,1.7vw,24px)}
.shell .topbar{background:linear-gradient(180deg,#223039,#101a20);border-bottom:1px solid #ad8850;box-shadow:0 3px 18px #0007}
.topbar .nav-button{border-radius:5px 5px 0 0;background:transparent;color:#bebba9;transition:background .18s,color .18s;min-height:48px}
.topbar .nav-button.active,.topbar .nav-button:hover{background:linear-gradient(0deg,#a27c3340,transparent);color:#f1dba8;box-shadow:inset 0 -3px #c89a53}
.section-tabs{gap:8px;padding-block:12px;border-bottom:1px solid #90754c45}
.section-tab{border-radius:4px;min-height:44px;background:#15232a;color:#c6c5b8;border:1px solid #4f5a55;font-size:.85rem}
.section-tab.selected,.shell .inventory-tabs .secondary.selected,.modal-backdrop .inventory-tabs .secondary.selected{background:linear-gradient(#695133,#3d3024);border-color:#bd955e;color:#ffe5b3;box-shadow:inset 0 0 0 2px #1c161660}
.shell .secondary,.modal-backdrop .secondary{min-height:44px;padding:9px 15px;border:1px solid #67756c;border-radius:5px;background:linear-gradient(#304048,#1b2a31);color:#f0e3c9;box-shadow:inset 0 1px #d4d0a41c;line-height:1.35}
.shell .red-button,.modal-backdrop .red-button{min-height:44px;border:1px solid #c09555;border-radius:5px;background:linear-gradient(#9b3c2b,#64261f);color:#fff0d2;font-family:Georgia,'Times New Roman',serif;font-size:1rem;box-shadow:inset 0 0 0 2px #26161265,0 2px 6px #0004;line-height:1.35;white-space:normal}
.shell button:hover:not(:disabled),.modal-backdrop button:hover:not(:disabled){filter:brightness(1.15)}
button:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible,a:focus-visible{outline:3px solid #f4cd86;outline-offset:3px}
.shell input,.shell select,.shell textarea,.modal-backdrop input{background:#0b171d;color:#eee7d8;border:1px solid #817451;border-radius:5px;min-height:44px;font:inherit;font-size:max(1rem,1rem);padding:9px 12px;max-width:100%}
.shell input[type=checkbox],.modal-backdrop input[type=checkbox]{min-height:22px;width:22px;height:22px;accent-color:#d2ab69;padding:0;flex-shrink:0}
.shell label,.modal-backdrop label{color:#e6dbc4}.checkbox-row{min-height:44px;align-items:center;gap:10px}
.shell .exp-heading{margin:0 0 22px;padding:0 0 15px;border-bottom:1px solid #9a7c494a}.exp-heading p{margin:0 0 5px}
.shell .party-card{background:linear-gradient(110deg,#29373d,#152128);border-color:#6a644b;border-radius:7px;box-shadow:0 3px 10px #0003}
.shell .portrait-frame{border-color:#b18e53;border-radius:6px}.shell .choice{border-radius:7px;background:#142128;border:1px solid #56605a;margin-block:8px}.shell .choice.chosen{border-color:#d7b47c;background:linear-gradient(110deg,#66502e77,#152128)}
.creator .choices{max-height:none;overflow:visible}.creator .choice small{line-height:1.5}
.shell .item-tile{border-radius:5px;background:radial-gradient(ellipse at center,#46525345,#0a151bbf);box-shadow:inset 0 0 8px #0007}.shell .item-tile.empty{opacity:.46;border:1px solid #6b746044}
.shell .zone-card{border-radius:10px;overflow:hidden;border-color:#826b44}.shell .zone-copy{background:linear-gradient(#1d2d34,#101b22);color:#e3dac8}
.npc-welcome{display:grid;grid-template-columns:minmax(150px,36%) 1fr;min-height:250px;border:1px solid #977947;border-radius:10px;overflow:hidden;background:radial-gradient(ellipse at left,#73502244,transparent 80%),#172229;box-shadow:0 8px 26px #0005;margin-bottom:22px}
.npc-portrait{min-height:270px;background-image:url('/assets/evermarch/town-artisans.webp');background-size:300% auto;background-position:var(--npc-position) 22%;background-repeat:no-repeat;mask-image:linear-gradient(90deg,#000 88%,transparent)}
.npc-greeting{min-width:0;overflow-wrap:anywhere;padding:clamp(18px,3vw,40px);align-self:center}.npc-greeting h2{font-size:clamp(1.4rem,2.3vw,2rem);margin:6px 0 16px}.npc-greeting p:last-child{font-family:Georgia,serif;font-size:1.1rem;color:#e4d2b1;font-style:italic}
.inventory-tabs{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:14px}.inventory-tabs button{flex:1 1 110px}.inventory-panel .az-card{box-shadow:none;border:0;background:transparent;padding:0}
/* No blur behind pop-ups (here, styles.css and class-tree.css): blurring a live fight or town again every frame dropped the page to about 8 fps at 1440 with Looks & Portraits open (27 Oct frame-rate check). A darker backdrop keeps the pop-up as easy to read. */
.modal-backdrop{color:var(--realm-ink);background:#03090ee6}
.modal-backdrop .ornate{color:var(--realm-ink);background:linear-gradient(135deg,#27343b,#152129 72%);border:1px solid #c39a60;border-radius:9px;box-shadow:inset 0 0 0 4px #101a20,inset 0 0 0 5px #776542,0 16px 70px #000b;max-height:calc(100dvh - 32px);overflow:auto}
.modal-backdrop p,.modal-backdrop label,.modal-backdrop li{color:#e1d9c9}.modal-backdrop .small-note{color:#bebcb0}.modal-backdrop .item-inspector{padding:24px}.modal-backdrop .item-inspector h2{margin-top:0}.item-inspector>button{margin-top:12px}
.item-hover{color:#eee2cc;background:#132129;border:1px solid #b4945b}
.character-reset{border-top:1px solid #9b6851;margin-top:22px;padding-top:12px;margin-bottom:22px}.character-reset .danger{border-color:#c48972}.deletion-warning{padding:14px;background:#55271f66;border-left:3px solid #d39573;border-radius:4px}.character-reset form label{display:grid;gap:7px;margin-block:12px}.character-reset form button{margin-top:12px}
.bound-imp{position:absolute;max-width:none;pointer-events:none;filter:drop-shadow(0 2px 3px #0008)}
.formation-status[hidden]{display:none!important}.respawn-clock:empty{display:none}
@media(max-width:700px){.npc-welcome{grid-template-columns:42% 1fr;min-height:220px}.npc-portrait{min-height:220px}.npc-greeting{min-width:0;overflow-wrap:anywhere;padding:15px}.npc-greeting p:last-child{font-size:.95rem}.npc-greeting h2{font-size:1.35rem}.shell .exp-heading{margin-bottom:16px}.modal-backdrop .item-inspector{padding:20px}.settings-modal{width:min(560px,calc(100vw - 24px))}.inventory-tabs .secondary{padding-inline:9px}.section-tabs{gap:5px}.section-tab{padding-inline:10px}}
/* A close at the top (Claude, 20 Nov: on a phone the window fills the screen and its only way out, Return, sat after every option). Same toggle as Return. */
.settings-modal{position:relative}
.settings-modal>.settings-close{position:absolute;top:12px;right:12px;width:44px;height:44px;font-size:1.6rem;line-height:1;z-index:1}
@media(max-width:360px){.npc-welcome{grid-template-columns:1fr}.npc-portrait{height:180px;min-height:180px;background-size:300% auto;background-position:var(--npc-position) 26%;mask-image:linear-gradient(#000 88%,transparent)}.npc-greeting{min-width:0;overflow-wrap:anywhere;padding:16px}.modal-backdrop .ornate{padding:18px}}
@media(prefers-reduced-motion:reduce){.topbar .nav-button{transition:none}}

/* Keep long names, enlarged text and narrow panels inside their own layout. */
.shell .quest-focus{border-radius:9px;background:linear-gradient(90deg,#0a1119f5 30%,#0a1119a8),var(--quest-art,none) center/cover,#121e24}
.exp-page>*,.expedition-roster article>div,.recipe-detail>div,.item-detail-title>div,.character-progression{min-width:0;overflow-wrap:anywhere}
.inventory-heading,.renown-progress>div>p{flex-wrap:wrap}
.inventory-heading h2{font-size:clamp(1.25rem,2vw,1.5625rem)}
.item-detail-title{flex-wrap:wrap}.item-detail-title>div{flex:1 1 12rem}
.shell .exp-page p:not(.eyebrow):not(.small-note){font-size:1rem}
.shell .exp-page .small-note{font-size:.875rem}
@media(max-width:480px){.npc-welcome{grid-template-columns:1fr}.npc-portrait{height:200px;min-height:200px;mask-image:linear-gradient(#000 88%,transparent)}.npc-greeting{padding:18px}.expedition-roster article{flex-wrap:wrap}.expedition-roster article>div{flex:1 1 10rem}.recipe-detail{flex-wrap:wrap}.recipe-detail>div{flex:1 1 10rem}.tree-toolbar{gap:6px}.tree-toolbar select{flex:1 1 9rem;width:auto;min-width:0}}

.shell>.topbar nav{grid-template-columns:repeat(5,minmax(44px,1fr));overflow-x:auto!important;overflow-y:hidden!important}
.shell>.topbar .nav-button span{font:inherit;white-space:normal;overflow-wrap:anywhere}
@media(max-width:350px){.paper-doll{grid-template-columns:52px minmax(0,1fr) 52px}.challenge-grid{grid-template-columns:minmax(0,1fr)}.tree-legend{flex-wrap:wrap}.renown-number{flex-wrap:wrap}}

.shell .quest-count{display:flex;flex-direction:column;gap:10px}.shell .quest-count progress{width:100%;max-width:500px}

/* Charm slots carry a readable label, unlike decorative empty inventory tiles. */
.shell .charm-equipment .item-tile.empty{opacity:1;color:#e9dfc6}

/* Auto-salvage card: one compact block at the top of the bag. Pills stay 44px tall for touch. */
.salvage-card{margin:0 0 12px;padding:10px 12px;border:1px solid var(--realm-edge);border-radius:6px;background:linear-gradient(145deg,#2b281e,#142026 78%);box-shadow:inset 0 0 0 2px #0c1215b0;min-width:0}
.salvage-card.is-on{border-color:var(--realm-gold)}
.salvage-card-head{display:flex;align-items:center;justify-content:space-between;gap:6px 10px}
.salvage-card .salvage-switch{flex:none;white-space:nowrap;text-align:left;display:inline-flex;align-items:center;gap:10px;min-height:44px;padding:0;border:0;border-radius:6px;background:none;box-shadow:none;color:#f2dfb1;font:700 1rem Georgia,serif;cursor:pointer}
.salvage-track{position:relative;flex:none;width:46px;height:26px;border:1px solid #67756c;border-radius:13px;background:#0f181c;transition:background .15s,border-color .15s}
.salvage-track i{position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:#9b9788;transition:transform .15s,background .15s}
.salvage-switch[aria-checked="true"] .salvage-track{border-color:var(--realm-gold);background:linear-gradient(#a3813f,#6f5528)}
.salvage-switch[aria-checked="true"] .salvage-track i{transform:translateX(20px);background:#fff1c9}
.salvage-card .salvage-edit{flex:none;min-height:44px;padding:6px 14px;font-size:.85rem}
.salvage-summary{margin:2px 0 0;color:var(--realm-ink);font-size:.86rem;line-height:1.4;overflow-wrap:anywhere}
.salvage-card.is-off .salvage-summary{color:var(--realm-muted)}
.salvage-summary small{display:block;margin-top:2px;color:var(--realm-muted);font-size:.76rem}
.salvage-editor{margin-top:10px;padding-top:8px;border-top:1px solid #76613d80}
.salvage-row{margin:0 0 10px}
.salvage-row-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 4px;color:var(--realm-gold);font-size:.85rem}
.salvage-links{display:flex;gap:2px}
.salvage-card .salvage-link{min-height:44px;min-width:44px;padding:0 8px;border:0;background:none;box-shadow:none;color:#ffe5b3;font-size:.8rem;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.salvage-pills{display:flex;flex-wrap:wrap;gap:6px}
.salvage-pills.salvage-tiers{display:grid;grid-template-columns:repeat(auto-fill,minmax(44px,1fr))}
.salvage-card .salvage-pill.tier{--rarity:var(--realm-gold)}
.salvage-card .salvage-pill{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;min-width:44px;padding:0 12px;border:1px solid #4d5c5c;border-radius:22px;background:#0f181c;box-shadow:none;color:#b9b5a9;font-size:.86rem;line-height:1;cursor:pointer}
.salvage-card .salvage-pill.tier{padding:0 4px;gap:3px}
.salvage-card .salvage-pill.offclass{--rarity:var(--realm-gold);text-align:left}
.salvage-card .salvage-pill[class*="rarity-"]{color:var(--rarity)}
.salvage-check{display:inline-flex;align-items:center;justify-content:center;flex:none;width:16px;height:16px;border:2px solid currentColor;border-radius:50%;font-size:.65rem;font-weight:700;opacity:.55}
.salvage-pill.tier .salvage-check{display:none;width:auto;height:auto;border:0;border-radius:0;opacity:1;font-size:.8rem}
.salvage-card .salvage-pill[aria-pressed="true"]{border-color:var(--rarity);background:color-mix(in srgb,var(--rarity) 20%,#0f181c);color:#fff3d0;font-weight:700;box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--rarity) 55%,transparent)}
.salvage-card .salvage-pill[class*="rarity-"][aria-pressed="true"]{color:var(--rarity)}
.salvage-pill[aria-pressed="true"] .salvage-check{opacity:1;background:var(--rarity);border-color:var(--rarity);color:#101418}
.salvage-pill.tier[aria-pressed="true"] .salvage-check{display:inline;background:none;color:var(--rarity)}
.salvage-card button:disabled,.salvage-card button[aria-disabled="true"]{opacity:.75;cursor:default}
.salvage-help{margin:0 0 8px;color:#ccc4b7;font-size:.8rem;line-height:1.45}
.salvage-warn{margin:0 0 8px;padding:7px 10px;border:1px solid #c98a4a;border-left-width:3px;border-radius:4px;background:#4a2f1a80;color:#ffd9a6;font-size:.8rem;line-height:1.4}
.salvage-info{margin:0;font-size:.8rem;color:#ccc4b7}
.salvage-info summary{min-height:44px;display:flex;align-items:center;gap:8px;color:var(--realm-gold);cursor:pointer;list-style:none}
.salvage-info summary::-webkit-details-marker{display:none}
.salvage-info summary::before{content:"i";display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;border:1px solid currentColor;border-radius:50%;font:italic 700 .7rem Georgia,serif}
.salvage-info p{margin:0 0 4px;line-height:1.45}
.salvage-count{margin:8px 0 0;color:var(--realm-muted);font-size:.8rem}
.salvage-bag-prompt{display:flex;align-items:center;gap:8px 12px;flex-wrap:wrap;margin:10px 0 0;padding:8px 10px;border:1px solid #9b7950;border-left:3px solid #d2ae68;border-radius:4px;background:#352b1e80}
.salvage-bag-prompt p{flex:1 1 150px;margin:0;font-size:.83rem;line-height:1.4}
.salvage-bag-prompt strong{display:block;color:#ffe5b3}
.salvage-bag-prompt small{display:block;font-size:.75rem;color:#ddc89c}
.salvage-bag-prompt button{flex:0 1 auto;margin:0;font-size:.82rem}
@media(max-width:380px){.salvage-card{padding:8px 10px}.salvage-bag-prompt button{width:100%}}

/* Salvage confirmation: the buttons stay in view and a long list scrolls inside the card. */
.salvage-confirmation.salvage-review{display:flex;flex-direction:column;overflow:hidden;padding:20px}
.salvage-review>*{flex:none}
.salvage-review h2{margin:0 0 8px}
.salvage-review p{margin:0 0 10px;line-height:1.45}
.salvage-review .salvage-item-list{flex:0 1 auto;min-height:0;max-height:none;overflow:auto;margin:0 0 10px;padding:0;list-style:none;border:1px solid #76613d80;border-radius:5px;background:#0d151a}
.salvage-review .salvage-item-list:has(li:nth-child(2)){min-height:96px}
.salvage-review .salvage-item-list li{display:flex;align-items:baseline;justify-content:space-between;gap:10px;padding:7px 10px;border-bottom:1px solid #ffffff14;color:var(--rarity,#ddd8c9);font-size:.88rem;line-height:1.3}
.salvage-review .salvage-item-list li:last-child{border-bottom:0}
.salvage-item-name{min-width:0;overflow-wrap:anywhere}
.salvage-review .salvage-rare-warning{padding:8px 10px;border:1px solid #c98a4a;border-left-width:3px;border-radius:4px;background:#3a2414;color:#ffd9a8;font-weight:600}
.salvage-item-plus{flex:none;color:#f0cc78;font-weight:700}
.salvage-review .salvage-rewards{margin:0 0 10px;padding:10px 0}
.salvage-review .small-note{color:#ccc4b7;font-size:.78rem}
@media(max-width:380px){.salvage-confirmation.salvage-review{padding:16px}.salvage-review .az-actions>button{flex:1 1 110px;min-height:44px}}
/* Per-tier salvage rules (IRP_TIER_SALVAGE_VERSION): tier chips are small plaques with a five-segment bar, one segment per rarity salvaged; the chip being edited is gold. Seven to a row so thirteen tiers split 7 + 6. */
.salvage-card .salvage-tiers.salvage-tier-chips{grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}
.salvage-card .salvage-pill.tier-chip{flex-direction:column;gap:2px;padding:5px 3px 6px;min-height:50px;border-radius:8px;background:linear-gradient(#18232a,#0f181c);color:#b9b5a9;border-color:#4d5c5c;box-shadow:none}
.salvage-card .salvage-pill.tier-chip small{font-size:.58rem;letter-spacing:.08em;text-transform:uppercase;opacity:.7;line-height:1}
.salvage-card .salvage-pill.tier-chip b{font-size:1.05rem;line-height:1;font-family:Georgia,serif;color:inherit}
.salvage-card .salvage-pill.tier-chip.is-current{border-color:var(--realm-gold);background:linear-gradient(#4a3d22,#241f16);color:#fff3d0;box-shadow:0 0 0 1px var(--realm-gold),0 0 10px #d2b57655}
.tier-bar{display:flex;gap:2px;width:78%}
.tier-bar i{flex:1;height:4px;border-radius:2px;background:#2b3a3f}
.tier-bar i.on{background:var(--rarity);box-shadow:0 0 4px color-mix(in srgb,var(--rarity) 60%,transparent)}
.salvage-groups{display:flex;flex-direction:column;gap:3px;margin-top:5px}
.salvage-group{display:flex;flex-wrap:wrap;align-items:center;gap:2px 8px;padding:3px 8px;border-left:3px solid var(--realm-gold);background:#0f181c99;border-radius:0 4px 4px 0;font-size:.8rem;color:var(--realm-ink)}
.salvage-group b{color:var(--realm-gold);font-weight:700}
.salvage-group-dots{display:inline-flex;gap:3px}
.salvage-group-dots i{width:8px;height:8px;border-radius:50%;background:var(--rarity)}
/* Live QA, 25 Oct: Auto-sort in the bag toolbar uses the same switch as Auto-salvage instead of a plain browser checkbox. */
.bag-layout-toolbar .bag-sort-switch{position:relative;display:inline-flex;align-items:center;gap:10px;color:#f2dfb1;font-weight:700}
.bag-sort-switch input{position:absolute;opacity:0;width:1px;height:1px;margin:0}.bag-sort-switch .salvage-track{display:inline-block}
.bag-sort-switch input:checked+.salvage-track{border-color:var(--realm-gold);background:linear-gradient(#a3813f,#6f5528)}
.bag-sort-switch input:checked+.salvage-track i{transform:translateX(20px);background:#fff1c9}
.bag-sort-switch input:focus-visible+.salvage-track{outline:2px solid var(--realm-gold);outline-offset:2px}
.bag-sort-switch input:disabled+.salvage-track{opacity:.55}

/* /mmo-ui.css */
/* Compact Evermarch navigation. All actions remain real, labeled controls. */
.nav-brand,.hero-hud{display:none}
.mmo-shell{--mmo-gold:#d9b471;--mmo-edge:#65563e;background:linear-gradient(120deg,#101c24e8,#080f16f5),url('/assets/evermarch/gateway-v1.webp') center top/cover fixed}
.mmo-shell>.topbar{position:sticky;top:0;z-index:45;border-bottom:1px solid #8b7046;background:#0c151df7;box-shadow:0 6px 22px #0006}
.mmo-shell .hero-hud{display:flex;min-width:0;gap:20px;align-items:center}
.hero-hud>div:first-child{min-width:0}.hero-hud strong{display:block;font:1.3rem Georgia,serif;color:#f4dbab;overflow-wrap:anywhere}.hero-hud span,.hero-hud small{display:block;color:#b8bdae;font-size:.8rem}
.hero-hud .hud-progress{min-width:75px;flex:1;max-width:220px}.hud-progress progress{display:block;width:100%;height:6px;margin-bottom:6px;accent-color:#9abd94}
.hero-hud button{min-height:44px;flex-shrink:0;padding:6px 12px;background:#273030;border:1px solid #74613d;border-radius:4px;color:#f4dbab}
.hero-hud .hud-skill-points{font:bold 1.25rem Georgia,serif}.hero-hud .hud-skill-points span{font: .72rem system-ui}.hero-hud .hud-bag{display:flex;gap:8px;align-items:center}.hero-hud .hud-bag .icon{width:20px;height:20px}
.mmo-shell>.topbar>.account-block{grid-column:3;grid-row:1}.mmo-shell .account-name{display:none}
.mmo-shell .section-tabs{max-width:none;background:#101b22cc;margin:0;padding:8px 24px;gap:6px;scroll-padding:12px}.mmo-shell .section-tab{border:0;border-radius:3px;background:transparent;color:#aebcbf;padding:8px 16px;min-height:44px}.mmo-shell .section-tab.selected{color:#f7dcaa;background:#71563245;box-shadow:inset 0 -2px #ddba74}
.mmo-shell .exp-page{padding:22px clamp(16px,3vw,42px) 80px;max-width:1500px}.mmo-shell .exp-heading{padding-top:4px;display:flex;flex-direction:column;gap:3px;margin-bottom:18px}.mmo-shell .exp-heading h1{margin:0;font-size:clamp(1.8rem,3vw,2.6rem)}.mmo-shell .exp-heading .eyebrow{margin:0;color:#b9a47e;font-size:.7rem;letter-spacing:.2em}
.mmo-shell .exp-panel,.mmo-shell .inventory-panel,.mmo-shell .ornate{border-radius:4px;background:linear-gradient(145deg,#1d2b33dd,#111c23f5);box-shadow:inset 0 1px #d3b87a20,0 12px 28px #0003;border-color:var(--mmo-edge)}
.mmo-shell .exp-panel h2,.mmo-shell .inventory-panel h2{font-size:1.2rem}.mmo-shell .inventory-panel{padding:16px}.inventory-panel .inventory-tabs{gap:0;margin:-16px -16px 16px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border-bottom:1px solid #695b40}.inventory-tabs>button{min-width:0;border-radius:0!important;border:0!important;background:transparent!important;font-size:.85rem}.inventory-tabs>button.selected{color:#ffe1a6!important;background:#7d603534!important;box-shadow:inset 0 -2px #d9b471!important}
.inventory-heading>span{white-space:nowrap;font-variant-numeric:tabular-nums;border:1px solid #596250;padding:3px 7px;border-radius:3px}.inventory-gold{display:flex;justify-content:space-between;gap:8px;margin-bottom:10px}.inventory-gold>span{font-size:.75rem;color:#aebbbd}
.inventory-panel .item-grid{grid-template-columns:repeat(5,minmax(44px,1fr));gap:5px}.inventory-panel:not(.compact) .item-grid{grid-template-columns:repeat(10,minmax(44px,1fr))}.inventory-panel .item-tile{min-height:44px;max-height:76px;border-radius:3px;padding:2px}.inventory-panel .item-tile.empty{box-shadow:inset 0 1px 5px #0005;background:#09121899}.inventory-panel .item-tile .gear-icon{max-height:72px}
.equipment-workspace{grid-template-columns:minmax(0,1.5fr) minmax(240px,1fr)}.equipment-workspace.is-bag-only{grid-template-columns:minmax(0,1fr)}@media(min-width:801px){.equipment-page .is-bag-only .inventory-panel .item-grid.bag-slot-grid{grid-template-columns:repeat(15,minmax(0,1fr))}}.equipment-page .inventory-panel>.inventory-heading>span,.equipment-page .inventory-gold-amount{display:none}.mmo-shell .equipment-workspace>.exp-panel{margin:0}.mmo-shell .town-layout{grid-template-columns:minmax(0,1fr) 300px}.mmo-shell .town-inventory{top:105px;padding-top:0}.mmo-shell .right-rail{min-width:0}.mmo-shell .right-rail .inventory-panel .item-grid{max-height:272px;overflow-y:auto;padding:0;scrollbar-width:thin}
.armor-update{font-size:.8rem;margin-bottom:10px}.armor-update summary{min-height:44px;cursor:pointer;padding:10px 0}.armor-update p{font-size:.85rem!important}
.party-bound{border-color:#9a824e!important}.bound-mark{position:absolute;top:2px;left:5px;color:#ffe1a0;font-size:.75rem;text-shadow:0 1px #000}.bound-label{color:#e2c489}.party-bag>.small-note{font-size:.8rem;line-height:1.5}.transfer-form{display:flex;flex-wrap:wrap;gap:12px;align-items:end;margin:18px 0}.transfer-form label{flex:1;min-width:100px}.transfer-form input[type=number]{display:block;width:100%;font-size:1rem;min-height:44px;background:#09151b;color:#fff;border:1px solid #8b744b;padding:8px}.resurrection-status{color:#e6d2aa;border:1px solid #897249;background:#172530;padding:10px 14px;margin:0 0 10px;font-size:.9rem}
.reachable-nodes{border:1px solid #5a695d;border-left:3px solid #bfc58f;background:#14262ad9;padding:14px 18px;margin:0 0 18px}.reachable-nodes h2{margin:0 0 4px!important;font-size:1.15rem!important}.reachable-nodes p{font-size:.85rem!important;margin:4px 0 12px}.reachable-nodes>div{display:flex;gap:8px;overflow-x:auto;padding:3px;scrollbar-width:thin}.reachable-nodes button{flex:0 0 min(245px,85%);text-align:left;white-space:normal;font-size:.9rem;min-height:60px}.reachable-nodes button small{display:block;font-size:.75rem;color:#b8c7bc;margin-top:3px}.reachable-nodes button.selected{border-color:#dfbd7c;background:#534329}.mmo-shell .node-inspector{background:#111d26;border:1px solid #7b643f;border-top:3px solid #d8b275;border-radius:4px}.mmo-shell .tree-toolbar{background:#111c25}.mmo-shell .tree-viewport{background:radial-gradient(ellipse,#26313c,#0b111a 70%)}
@media(min-width:1180px){
 .mmo-shell{padding-left:156px}.mmo-shell>.topbar{grid-template-columns:minmax(0,1fr) auto;min-height:78px;padding:10px 24px}.mmo-shell>.topbar>.wordmark{display:none}.mmo-shell>.topbar>.hero-hud{grid-column:1;grid-row:1}.mmo-shell>.topbar>.account-block{grid-column:2}
 .mmo-shell>.topbar>nav{position:fixed;inset:0 auto 0 0;width:156px;height:100dvh;display:flex!important;flex-direction:column;padding:20px 10px;background:linear-gradient(#1d2a31,#0b141bcc),url('/assets/evermarch/gateway-v1.webp') 42% center/auto 100%;border-right:1px solid #80633f;overflow-y:auto!important;gap:7px}
 .mmo-shell .nav-brand{display:block;margin:0 0 24px;text-align:center}.nav-brand .wordmark{width:100%;max-width:136px}.nav-brand .wordmark img{max-width:100%}.nav-brand>span{display:block;color:#aa956f;font-size:.5rem;letter-spacing:.14em;margin-top:10px}.mmo-shell>.topbar>nav .nav-button{flex:none;display:flex;flex-direction:column;gap:7px;min-height:72px;width:100%;font-size:.9rem;border:1px solid transparent;border-radius:4px}.mmo-shell>.topbar>nav .nav-button .icon{width:25px;height:25px}.mmo-shell>.topbar>nav .nav-button.active{border-color:#a9874a;background:#6b573840;box-shadow:inset 3px 0 #d6b075;color:#ffe2b1}.mmo-shell .combat-grid{grid-template-columns:minmax(180px,16%) minmax(0,1fr) 300px;height:calc(100dvh - 140px);min-height:44rem}
}
@media(min-width:761px) and (max-width:1179px){.mmo-shell>.topbar{grid-template-columns:105px minmax(0,1fr) auto}.mmo-shell>.topbar>.hero-hud{grid-column:2;grid-row:1}.mmo-shell>.topbar>nav{grid-row:2;grid-column:1/-1}.hero-hud{gap:10px!important}.hero-hud .hud-progress{display:none}}
@media(max-width:760px){
 .mmo-shell{padding-bottom:calc(86px + env(safe-area-inset-bottom))}.mmo-shell>.topbar{position:relative;padding:8px 12px;grid-template-columns:minmax(0,1fr) auto}.mmo-shell>.topbar>.account-block{grid-column:2}.mmo-shell>.topbar>.hero-hud{grid-column:1/-1;grid-row:2;gap:8px;padding:8px 0 0;border-top:1px solid #67563855}.hero-hud>div:first-child{flex:1}.hero-hud strong{font-size:1.05rem}.hero-hud span{font-size:.72rem}.hero-hud .hud-progress{display:none}.hero-hud button{padding:5px 8px}.hero-hud .hud-bag .icon{display:none}
 .mmo-shell>.topbar>nav{position:fixed;inset:auto 0 0;z-index:50;width:100%;display:grid!important;grid-template-columns:repeat(5,minmax(44px,1fr));gap:2px;padding:6px max(6px,env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(6px,env(safe-area-inset-left));background:#0c1721f7;border-top:1px solid #aa874e;box-shadow:0 -6px 24px #0006;overflow-x:auto!important}.mmo-shell>.topbar>nav .nav-button{border-radius:4px;min-height:58px;font-size:.72rem;padding:4px 2px;gap:5px}.mmo-shell>.topbar>nav .nav-button.active{background:#81643955;box-shadow:inset 0 2px #dcb774}.mmo-shell .section-tabs{padding:6px 10px}.mmo-shell .section-tab{padding:7px 12px;font-size:.85rem}.mmo-shell .chat-access{bottom:calc(86px + env(safe-area-inset-bottom))}.mmo-shell .community-chat{bottom:calc(84px + env(safe-area-inset-bottom));max-height:calc(100dvh - 110px)}
 .inventory-panel:not(.compact) .item-grid{grid-template-columns:repeat(5,minmax(44px,1fr))}.inventory-panel .item-tile{max-height:none}.equipment-workspace{grid-template-columns:minmax(0,1fr)}.mmo-shell .exp-page{padding-bottom:36px!important}.mmo-shell .inventory-panel{padding:12px}.inventory-panel .inventory-tabs{margin:-12px -12px 12px}.reachable-nodes{padding:12px}.mmo-shell .right-rail .inventory-panel .item-grid{max-height:none}.mmo-shell .exp-heading{margin-bottom:12px}.mmo-shell .exp-panel{padding:16px}.item-inspector{padding:16px}.inventory-drawer{padding:8px}.inventory-drawer .inventory-panel{padding:10px}.inventory-drawer .inventory-tabs{margin:-10px -10px 12px}
}
@media(min-width:761px) and (max-width:1050px){.inventory-panel:not(.compact) .item-grid{grid-template-columns:repeat(5,minmax(44px,1fr))}}
@media(prefers-reduced-motion:reduce){.mmo-shell *{scroll-behavior:auto!important}}

@media(min-width:1101px){.mmo-shell .right-rail .inventory-panel{padding:10px}.mmo-shell .right-rail .inventory-tabs{margin:-10px -10px 12px}}

.mmo-shell .right-rail .item-tile:focus-visible{outline-offset:-2px}

/* /journey.css */
.journey-goal{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;padding:20px;border:1px solid #76623b;background:linear-gradient(110deg,rgba(46,39,26,.95),rgba(15,24,28,.96));margin:0 0 20px;color:#ede2c8}
.journey-goal h2{font-size:1.2rem;margin:3px 0 8px}.journey-goal p{margin:5px 0;line-height:1.55}.journey-goal-actions{display:flex;flex-direction:column;justify-content:center;gap:8px}
.journey-goal.compact{display:block;padding:14px;margin:14px 0}.journey-goal.compact h2{font-size:1rem}.journey-goal.compact .journey-goal-actions{margin-top:10px}
.journey-goal button,.equipment-sets button,.milestones-panel button,.journey-summary button{min-height:44px;white-space:normal;overflow-wrap:anywhere}
.pinned-milestone{grid-column:1/-1;display:grid;gap:6px;border-top:1px solid #645438;padding-top:12px}.pinned-milestone span{font-size:.8rem;color:#d3b876}.pinned-milestone progress,.milestone-row progress{display:block;width:100%;margin-top:5px}
.journey-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.journey-section-heading span{color:#c7b894}
.milestones-panel>details>summary,.equipment-sets>summary{font-size:1.05rem;color:#e7cb8b;min-height:44px;cursor:pointer;padding:12px 0}
.milestone-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;padding:16px 0;border-top:1px solid #4c493c;overflow-wrap:anywhere}.milestone-row h3{font-size:1rem;margin:5px 0}.milestone-row p{font-size:.87rem;margin:5px 0}.milestone-row label{font-size:.8rem;color:#c6bda8}.milestone-row.ready{border-color:#a38b48}.milestone-actions{display:flex;align-items:center;gap:8px}.milestone-earned{color:#b4d2a7}
.equipment-sets{margin-top:20px}.equipment-set-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.equipment-set{min-width:0;padding:14px;border:1px solid #615237;background:rgba(0,0,0,.16)}.equipment-set h3{overflow-wrap:anywhere}.equipment-set form{display:grid;gap:10px;margin:14px 0}.equipment-set input{width:100%;min-height:44px;font-size:1rem;box-sizing:border-box}.equipment-set label{display:grid;gap:6px}.equipment-set .az-actions{display:grid}.equipment-set li{overflow-wrap:anywhere}.equipment-set summary{min-height:44px;cursor:pointer;padding:10px 0}
.item-protected-mark{position:absolute;left:3px;top:3px;padding:1px 3px;font-size:.6875rem;line-height:.875rem;background:#121a1e;color:#f1d28b;border:1px solid #9a8454}.item-protection-note{color:#e4cb8e;font-size:.85rem;border-left:2px solid #b09c65;padding:8px 12px}
.journey-summary{margin:20px 0}.journey-stat-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.journey-stat-grid>div{border-bottom:1px solid #514937;padding:8px 0}.journey-stat-grid dt{font-size:.82rem;color:#c1b69d}.journey-stat-grid dd{font-size:1.3rem;margin:6px 0;color:#eee0b4}.journey-summary details summary{min-height:44px;padding:12px 0;cursor:pointer}.party-preparation li{margin:8px 0;line-height:1.5}
@media(max-width:900px){.equipment-set-grid{grid-template-columns:1fr}.journey-goal{grid-template-columns:1fr}.journey-goal-actions{flex-direction:row;flex-wrap:wrap;justify-content:flex-start}.journey-goal-actions>*{flex:1 1 150px}}
@media(max-width:520px){.journey-goal{padding:14px}.milestone-row{grid-template-columns:1fr;gap:8px}.milestone-actions{flex-wrap:wrap}.milestone-actions button{flex:1}.journey-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.equipment-set{padding:12px}.journey-summary,.milestones-panel,.equipment-sets{padding:14px;min-width:0}.journey-goal.compact .journey-goal-actions{flex-direction:column}}

.mastery-panel{margin-top:20px}.mastery-panel h3{font-size:1rem}.mastery-panel strong{font-size:.88rem;line-height:1.4;display:block}.mastery-panel progress{display:block;width:100%;margin-top:12px}.mastery-panel p{line-height:1.5}
@media(max-width:600px){.mastery-panel .journey-stat-grid{grid-template-columns:1fr}}

/* Vision gaps #5-#7 (9 Oct): the battle screen's next-step line, the level-up / upgrade prompt and the bag tile fit marks. */
.battle-goals{margin:4px 0 0;flex-basis:100%;min-width:0}
.arena-heading>.battle-goals{grid-column:1/-1}
.next-step{display:flex;align-items:center;gap:10px;padding:4px 6px 4px 12px;border:1px solid #8d7547;border-left:3px solid #e0b860;border-radius:4px;background:#14212be0;color:#efe1c1;font:.875rem/1.3 var(--ui)}
.next-step p{margin:0;flex:1;min-width:0;overflow-wrap:anywhere}
.next-step .next-step-go{flex:none;min-height:44px;min-width:72px;padding:0 14px}
.next-step-upgrade{border-left-color:#7ee08a}
.next-prompt-host{position:fixed;right:20px;bottom:24px;z-index:1990;width:min(360px,calc(100vw - 32px))}
.next-prompt{display:flex;align-items:center;gap:10px;padding:8px 8px 8px 14px;background:linear-gradient(180deg,#1a2a36,#111c25);border:1px solid #c9a55a;border-radius:6px;box-shadow:0 6px 30px #000a;color:#efe1c1;font:.875rem/1.3 var(--ui)}
.next-prompt{flex-wrap:wrap}
.next-prompt p{margin:0;flex:1 1 140px;min-width:0;display:flex;flex-direction:column;gap:2px;overflow-wrap:anywhere}
.next-prompt strong{color:#ffe2a0;font-size:1rem}
.next-prompt-upgrade strong{color:#8fe39a}
.next-prompt span{color:#d8cbb0}
.next-prompt button{flex:none;min-height:44px}
.next-prompt .red-button{padding:0 14px}
/* Second fix (14 Oct): the upgrade prompt's Equip is the standard gold main button (public/ui-kit.css .red-button / .uk-btn-primary). The host sits
   on <body>, outside the kit's containers, so the kit rule does not reach it. Only the upgrade prompt changes here. */
.next-prompt-upgrade .red-button{border:1px solid #e6c98f;border-radius:4px;background:linear-gradient(180deg,#c9a468,#8f6f3c);color:#1b1509;font:700 .875rem/1.3 system-ui;letter-spacing:0;box-shadow:inset 0 1px 0 #fff2c95c,inset 0 0 0 2px #8a682f66,0 2px 5px #0005;text-shadow:none}
.next-prompt-upgrade .red-button:hover:not(:disabled){border-color:#fbe3ac;background:linear-gradient(180deg,#d8b674,#9c7a44)}
.next-prompt-upgrade .red-button:focus-visible{outline:2px solid #fbe3ac;outline-offset:2px}
.next-prompt .next-prompt-close{min-width:44px;padding:0;font-size:1rem}
.next-prompt-host.animate .next-prompt{animation:next-prompt-in .3s ease-out}
.next-prompt-host.animate .next-prompt-level{animation:next-prompt-in .3s ease-out,next-prompt-glow 1.6s ease-out}
body.level-up-flash :is(.sidebar-character-portrait,.party-status-portrait,.nav-button[data-page="overview"]){animation:level-up-flash 1.6s ease-out}
@keyframes next-prompt-in{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
@keyframes next-prompt-glow{0%{box-shadow:0 0 0 0 #ffd76acc}50%{box-shadow:0 0 26px 6px #ffd76a77}100%{box-shadow:0 6px 30px #000a}}
@keyframes level-up-flash{0%{filter:none}25%{filter:brightness(1.7) drop-shadow(0 0 10px #ffd76a)}100%{filter:none}}
@media (prefers-reduced-motion:reduce){.next-prompt-host.animate .next-prompt,body.level-up-flash :is(.sidebar-character-portrait,.party-status-portrait,.nav-button){animation:none}}
/* The prompt keeps clear of the toast (it moves up while one shows) and, on phones, of the bottom bar and the battle action row, like #toast. */
.next-prompt-host{transition:transform .2s ease-out}
body:has(#toast.visible) .next-prompt-host{transform:translateY(-76px)}
@media (max-width:760px){.next-prompt-host{left:16px;right:16px;width:auto;bottom:calc(var(--mobile-nav-height,84px) + 12px)}body:has(.combat-grid .field-action-controls:not([hidden])) .next-prompt-host{bottom:calc(var(--mobile-nav-height,84px) + 76px)}}
/* Top left: the tier badge holds the top right, NEW the bottom left and the rank the bottom right. */
.item-upgrade-mark,.item-cant-wear-mark{position:absolute;top:2px;left:3px;z-index:3;font:700 .8125rem/1 var(--ui);text-shadow:0 0 3px #000,0 0 2px #000,0 0 1px #000;pointer-events:none}
.item-tile:is([data-favorite],:has(.item-protected-mark)) :is(.item-upgrade-mark,.item-cant-wear-mark){top:auto;bottom:2px;left:auto;right:30px}
.item-upgrade-mark{color:#7ee08a}
.item-cant-wear-mark{color:#ff8a7a}
/* Friction sweep follow-up (10 Oct, P7): Equip best sits at the top of the bag; a 44px touch target, full width on phones. */
.equip-best-row{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;margin:10px 0}.equip-best-row .small-note{margin:0}.equip-best-button{min-height:44px;min-width:44px;padding:8px 16px}
@media (max-width:560px){.equip-best-button{flex:1 1 100%}}
.item-tile.fit-cant-wear>:is(img,svg,.rarity-art,picture){opacity:.5}
/* The wipe note (public/review-view.js) already gives one next step; the line hides while it shows, so only one step is on screen. */
.arena-heading:has(#wipeNote)>.battle-goals{display:none}
/* Endless mastery (IRP_ENDLESS_MASTERY_VERSION): three UI kit cards, one row from 600px, one column below, so no card ever sits alone on a row. */
.mastery-endless .mastery-help{margin:0 0 14px;color:var(--uk-ivory-dim,#c9c3b4)}.mastery-endless .uk-grid{grid-template-columns:minmax(0,1fr)}.mastery-endless .uk-card-number{font-size:1.25rem}.mastery-endless .uk-chip{white-space:normal;line-height:1.3}
@media(min-width:600px){.mastery-endless .uk-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
/* "Animate only my hero" suggestion (public/app.js offerStillAllies) uses the next-step prompt slot; the ordinary prompt waits while it shows. */
body:has(#allyMotionOffer) #nextPrompt{display:none}
/* Text on its own line, then the two answers side by side (44 px tall); "No thanks" means don't ask again on this device. */
.ally-motion-offer p{flex-basis:100%}.ally-motion-offer button{flex:1 1 0;padding:0 12px}
/* Battle sprites draw no shadow filter of their own: public/ground-shadows.js puts one soft ellipse under each actor on the ground canvas. */
#actors .unit-model,#actors .unit-motion{filter:none!important}

/* /nameplates.css */
/* Labels clear the visible painting and remain above their own animated model. */
.unit .model-wrap { z-index: 1; }
.unit .unit-name { z-index: 3; }
.rare-unit .unit-name { padding: 4px 6px; background: #101b20ee; border: 1px solid #b29a67; box-shadow: 0 2px 5px #0008; }
.rare-unit .unit-name b { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: break-word; line-height: 1.25; }
.rare-unit .unit-name small { line-height: 1.25; margin: 3px 0; }
.rare-unit .unit-hp { height: 9px; margin: 4px 3px 0; border-color: #b49b72; }
.rare-unit .unit-status:empty { display: none; }
/* Second fix (14 Oct): a boss's mechanic timers (for example RIME SURGE 3.4s) sit above its name instead of between its health bar and its
   art, so the name, level and health bar end just above the visible model (public/ui-layout.js nameplate() still places the whole plate). */
.boss-unit .unit-name { display: flex; flex-direction: column; }
.boss-unit .unit-name > .unit-status { order: -1; margin: 0 0 2px; }
.boss-unit .unit-status:empty { display: none; }
/* Boss signatures (lib/boss-signatures.js): Sablemaw's Mirror borrows a zone creature's art; a violet glass tint and glow mark it as the
   copy that hunts your healer, not another beast of the pack. Presentation only. */
.sig-mirror .unit-model { filter: grayscale(1) sepia(1) hue-rotate(220deg) saturate(3.2) brightness(1.2) drop-shadow(0 0 6px #c79bff) drop-shadow(0 0 2px #f4e9ff); opacity: .86; }
.sig-mirror .unit-name { border: 1px solid #b98cff; background: #1b1230ee; }
.sig-mirror .unit-name b { color: #e6d4ff; }
/* Monster tiers (lib/monster-tiers.js): Magic monsters' names are blue, Rare monsters' names gold. */
.tier-magic .unit-name b { color: #9cc4ff; }
.tier-rare .unit-name b { color: #f2d36b; }
/* QA, 1 Nov: a long word broke mid-word on a phone ("REGENERATIN G"); a name now breaks only between words. On the new fight screen (IRP_FIGHT_HUD) the
   enemy frame at the top already shows a Rare's name, level, cast and health, so its plate over the model keeps just its gold name (two lines at most) and its
   health bar, the way Magic and normal monsters show only theirs. Bosses keep their full plate (mechanic timers). */
html.fh-on .rare-unit:not(.boss-unit) .unit-name { padding: 2px 6px 3px; }
html.fh-on .rare-unit:not(.boss-unit) .unit-name b { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
html.fh-on .rare-unit:not(.boss-unit) :is(.unit-name small, .unit-status) { display: none; }
/* Pat, 5 Nov 2026 (Gatewarden Hadrun): the boss's effect line over its model ("Weakness ×5 · FIRE 7.2s · SEARING SURGE 7.2s ·…") ran to three lines, was cut off
   and sat crammed on the name. On the new fight screen the boss frame at the top already shows every effect on the boss as an icon with its stacks and timer,
   so the plate over the model keeps the name, level, health and the cast bar. */
html.fh-on .boss-unit .unit-status { display: none; }

/* /callings.css */
/* The class map keeps the painted realm palette while giving every skill a distinct silhouette. */
.calling-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:4px 0 24px}.calling-heading h1{font:clamp(1.9rem,3vw,2.75rem) Georgia,serif;color:#f4e4c6;margin:8px 0 12px}.calling-heading p{margin:0;color:#b3bdc8}.calling-heading .eyebrow{color:var(--calling);letter-spacing:.14em;font-size:.75rem}.skill-point-counter{display:flex;gap:16px;align-items:center;padding:18px 24px;background:linear-gradient(125deg,#a5834526,#13202a);border:1px solid #ad92575c;border-radius:9px;flex-shrink:0}.skill-point-counter>strong{font:2.7rem Georgia,serif;color:#efd49a}.skill-point-counter span{font-size:.9375rem;color:#f0dbb3}.skill-point-counter small{display:block;font-size:.75rem;color:#aab9c6;margin-top:6px}.ability-lineup{display:grid;grid-template-columns:repeat(auto-fit,minmax(165px,1fr));gap:10px;margin-bottom:24px}.ability-card{display:flex;align-items:center;gap:12px;min-height:83px;padding:13px;text-align:left;border:1px solid #c2ae7b25;background:linear-gradient(125deg,#283541,#121c27);border-radius:8px;color:#d4dbe1}.ability-card strong{display:block;font:1rem Georgia,serif;line-height:1.35}.ability-card small{display:block;margin-top:5px;color:#9daebb;font-size:.75rem;line-height:1.35}.ability-emblem{display:grid;place-items:center;flex:0 0 40px;color:var(--calling)}.ability-icon{width:32px;height:32px;display:block;max-width:none!important;max-height:none!important}.ability-card.selected{border-color:var(--calling);background:linear-gradient(120deg,#3c3b43,#192938)}.ability-card.learned small{color:#d7c084}.ability-card:hover{border-color:#e5d3a4}.calling-page .tree-workspace{grid-template-columns:minmax(0,1fr) 300px;align-items:start}.calling-page .tree-toolbar{display:block;padding:12px;background:#17232e;border-bottom:1px solid #b5a5742b}.tree-view-switch,.tree-map-tools{display:flex;gap:6px;align-items:center;flex-wrap:wrap}.tree-view-switch{margin-bottom:12px}.tree-view-switch button{border:0;background:#0d1721;color:#a5b8c9;border-radius:5px;font-size:.8125rem;min-height:44px}.tree-view-switch button.selected{background:#3d3b35;color:#f1ddaf;box-shadow:inset 0 -2px #bba169}.tree-map-tools select{flex:1;max-width:none!important;background:#0e1823;min-height:44px}.tree-map-tools output{font-size:.75rem;color:#b9c6d1;min-width:37px;text-align:center}.calling-page .tree-viewport{touch-action:pinch-zoom;user-select:none;-webkit-user-select:none;height:min(69vh,690px);min-height:390px;background:radial-gradient(ellipse at 45% 20%,#35506a32,transparent 70%),radial-gradient(circle,#aaa5821b 1px,transparent 1px),#080f18;background-size:auto,24px 24px,auto}.tree-viewport.dragging,.tree-viewport.dragging *{cursor:grabbing!important}.tree-lane-title{position:absolute;transform:translate(-50%,-50%);white-space:nowrap;font-size:.625rem;letter-spacing:.12em;color:#a4b4c2;padding:7px 9px;background:#101b27e8;border:1px solid #9caaac24;border-radius:4px;pointer-events:none}.calling-page .tree-node{min-height:48px!important;min-width:48px;width:48px;height:48px;background:radial-gradient(circle at 35% 20%,#3a4655,#15212d 70%);border-color:#617083}.calling-page .tree-node .node-glyph{display:grid;place-items:center}.calling-page .tree-node.ability{width:64px;height:64px;border-radius:14px;color:var(--branch);border:2px solid #798594;background:radial-gradient(circle at 35% 20%,#465164,#182432 70%)}.calling-page .tree-node.notable{width:54px;height:54px;border-radius:50%}.calling-page .tree-node.notable .ability-icon{width:26px;height:26px;color:#c1ced8}.calling-page .tree-node.travel{width:44px;height:44px;min-width:44px;min-height:44px!important;border-width:1px;font-size:.6875rem}.calling-page .tree-node.root{width:70px;height:70px;color:var(--branch);border:3px double var(--branch)}.calling-page .tree-node.allocated{border-color:#e9c57d;background:radial-gradient(circle at 35% 20%,#68532e,#252a2b 75%);color:#ffe1a0}.calling-page .tree-node.available{border-color:#86d5f8;box-shadow:0 0 0 3px #72cef016,0 0 16px #72cef033}.calling-page .tree-node.locked{opacity:.83}.calling-page .tree-node.foreign{opacity:.6}.calling-page .tree-node .node-label{font-size:.8125rem;line-height:1.3;width:132px;margin-top:12px;background:#09131bea;padding:3px 4px;border-radius:3px}.node-type{position:absolute;bottom:-7px;left:50%;transform:translateX(-50%);font:600 .5rem system-ui,sans-serif;letter-spacing:.1em;padding:2px 5px;border-radius:3px;color:#d3dce2;background:#253341;border:1px solid #657688}.calling-page .tree-node.allocated .node-type{color:#ffdda2;border-color:#b39056;background:#4a3a25}.calling-page .tree-links line{stroke:#597187;opacity:.6;stroke-width:2}.calling-page .tree-links line.allocated{stroke:#d6b071;opacity:1}.calling-page .tree-help{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;font-size:.75rem;background:#101b25}.calling-page .node-inspector{position:sticky;top:14px;padding:22px;background:linear-gradient(150deg,#263340,#121e29);border:1px solid #a694684d;border-top:2px solid var(--calling);border-radius:8px}.inspector-emblem{display:grid;place-items:center;width:60px;height:60px;margin-bottom:18px;border:1px solid #c1c7bb59;border-radius:12px;background:#0e1b26;color:var(--calling)}.inspector-emblem .ability-icon{width:38px;height:38px}.calling-page .node-inspector h2{margin:8px 0 14px;font-size:1.6rem;line-height:1.2}.calling-page .node-inspector p{line-height:1.6;font-size:.875rem}.calling-page .node-inspector .eyebrow{font-size:.6875rem;letter-spacing:.08em}.ability-trigger{background:#0e1c28;padding:12px;border-left:2px solid var(--calling);margin:18px 0}.ability-trigger strong{font-size:.625rem;letter-spacing:.07em;color:var(--calling)}.ability-trigger p{margin:6px 0 0}.ability-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.ability-stats dt{font-size:.6875rem;color:#99adbc}.ability-stats dd{font-size:.8125rem;margin:5px 0;color:#ecd8b0}.calling-page .node-inspector>button{white-space:normal;min-height:48px}.ready-paths button{display:block;width:100%;white-space:normal;margin:6px 0;text-align:left;font-size:.8125rem}.calling-page .node-inspector summary{font-size:.8125rem;color:#c5cfd6}.calling-page button:focus-visible,.calling-page select:focus-visible,.tree-viewport:focus-visible{outline:3px solid #9bdbfa;outline-offset:3px}
@media(max-width:1050px){.calling-page .tree-workspace{grid-template-columns:minmax(0,1fr) 270px}.skill-point-counter{padding:14px}.calling-heading{gap:16px}.ability-lineup{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.calling-heading{align-items:stretch;flex-direction:column;gap:18px}.skill-point-counter{padding:12px 18px}.skill-point-counter>strong{font-size:2rem}.calling-page .tree-workspace{grid-template-columns:minmax(0,1fr);gap:16px}.calling-page .node-inspector{position:static}.ability-card{padding:10px;gap:8px;min-height:88px}.ability-emblem{flex-basis:30px}.ability-card .ability-icon{width:27px;height:27px}.ability-card strong{font-size:.9375rem}.calling-page .tree-viewport{height:54vh;min-height:340px}.tree-view-switch{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.tree-view-switch button{padding:7px 5px;white-space:normal;line-height:1.25}.tree-map-tools{gap:4px}.tree-map-tools select{flex-basis:100%;max-width:100%!important}.tree-map-tools button[data-tree-focus]{flex:1}.calling-page .tree-toolbar{padding:9px}.calling-page .tree-help{font-size:.6875rem}.calling-page .node-inspector h2{font-size:1.5rem}}

/* Keep labels legible at minimum map zoom and under inherited button wrapping rules. */
.calling-page .node-type{white-space:nowrap;min-width:34px;line-height:1;height:auto}
.calling-page .tree-node.root .node-label{top:auto;bottom:calc(100% + 10px);margin-top:0}
.calling-page .tree-lane-title{padding:4px 7px;line-height:1.25}

/* /inventory-mobile.css */
/* One visible dialog layer, one scrolling body, and a reachable way back. */
/* Visual and simple: the painting and current stats lead; roll detail opens on demand. */
.inventory-dialog>.ornate.item-inspector{background:linear-gradient(145deg,#25221e,#151719 65%);border:1px solid #92754b;border-radius:10px;box-shadow:0 20px 70px #000b,inset 0 0 0 3px #0f1011}
.inventory-dialog .item-inspector .inventory-dialog-header,.inventory-dialog .item-inspector .inventory-primary-actions{background:#211f1b;border-color:#756044}
.inventory-dialog .item-inspector .inventory-scroll{padding:24px}
.inventory-dialog .item-detail-title{display:flex;flex-wrap:wrap;gap:22px;margin:0 0 22px;padding-bottom:22px;border-bottom:1px solid #78613b88;align-items:center}
.inventory-dialog .inventory-scroll .item-detail-title>.gear-icon{width:128px;height:128px;margin:0;border-radius:6px;box-shadow:0 7px 22px #0005}
.inventory-dialog .inventory-scroll .item-detail-title h2{font:1.8rem/1.2 Georgia,serif;color:#f3dfb9;margin:7px 0 10px;overflow-wrap:anywhere}
.inventory-dialog .item-detail-title .eyebrow{font:.76rem/1.5 system-ui;letter-spacing:.08em;color:var(--rarity,#d9b777);margin:0}
.inventory-dialog .item-kind{font:.9rem/1.5 system-ui;color:#d0c6b6;margin:0 0 4px}
.inventory-dialog .item-model-name{font:.76rem/1.5 system-ui;color:#afa590;margin:0}
.item-requirements{display:flex;gap:12px 24px;flex-wrap:wrap;margin:14px 0 0;font:.78rem/1.4 system-ui}
.item-requirements>div{display:grid;gap:3px}.item-requirements dt{color:#aaa18f}.item-requirements dd{margin:0;color:#eadbbe;font-weight:600}.item-requirements .item-equipped dd{color:#b3d4a2}
.inventory-dialog .gear-base{border:1px solid #68563c;background:#30291d55;border-radius:5px;padding:14px 16px;margin:12px 0}
.inventory-dialog .gear-base .gear-label{color:#b9a889;font:.73rem/1.5 system-ui;letter-spacing:.03em}.inventory-dialog .gear-base p{font:600 1rem/1.6 system-ui;color:#f0e3c8;margin:8px 0 0}.inventory-dialog .gear-base p.gear-gain{font:400 .8rem/1.5 system-ui;color:#b7cfaa}
.inventory-dialog .gear-affixes{display:grid;gap:0;padding:0;margin:16px 0;list-style:none}
.inventory-dialog .gear-affixes>li{padding:12px 0;margin:0;background:none;border:0;border-bottom:1px solid #6d60443f;border-radius:0;font:.95rem/1.5 system-ui;color:#e3d8c1}
.inventory-dialog .gear-affixes>li:first-child{border-top:1px solid #6d60443f}.inventory-dialog .affix-main strong{font-weight:500;color:#e9dec4}
.affix-roll-details{margin-top:3px}.affix-roll-details>summary{min-height:44px;align-content:center;cursor:pointer;color:#b9ab8e;font:.76rem/1.5 system-ui}.affix-roll-details small{display:block;color:#a9a699;line-height:1.6;margin:4px 0}.affix-roll-details meter{display:block;width:100%;height:8px;margin:8px 0}
.inventory-dialog .item-details>.small-note{font:.75rem/1.6 system-ui;color:#aaa18f}.inventory-dialog .item-details>.text-button{min-height:44px;padding:8px 0;color:#d8ba7a}
.inventory-dialog .item-details .unique-power{padding:14px 16px;border-left:2px solid #bb9458;background:#352b1b66;color:#eddcbb;line-height:1.65}
.inventory-dialog .item-details .az-actions{padding-top:14px;border-top:1px solid #78613b66;gap:10px}.inventory-dialog .item-details .az-actions button{min-height:44px}
.inventory-dialog .inventory-scroll>.item-details{padding:0;border:0;background:none;box-shadow:none}.inventory-dialog .item-detail-title h2{padding:0;border:0}.inventory-dialog .gear-affixes>li{padding:9px 0}.inventory-dialog .gear-affixes>li strong{font-weight:500}.inventory-dialog .affix-roll-details{padding:4px 12px;border:1px solid #75604466;border-radius:4px;background:#332b1e44}.inventory-dialog .affix-roll-details .gear-affix-rolls{list-style:none;margin:0;padding:0}.inventory-dialog .gear-affix-rolls>li{border-top:1px solid #6d604455;padding:12px 0;font:.8rem/1.6 system-ui}.inventory-dialog .gear-affix-rolls .mod-tier{display:inline-block;margin:6px 0;color:#c8b184;font-size:.72rem}.inventory-dialog .item-details>.text-button{margin:0;padding-block:8px;min-height:44px}
.inventory-dialog .item-details button{min-height:44px}.inventory-dialog .item-details .az-inline-form{padding-top:14px;margin-top:14px;border-top:1px solid #78613b66}
.inventory-dialog .item-inspector :is(button,summary):focus-visible{outline:2px solid #f2ce85;outline-offset:-2px}
@media(max-width:600px){.inventory-dialog .item-inspector .inventory-scroll{padding:16px}.inventory-dialog .inventory-scroll .item-detail-title{gap:14px;padding-bottom:16px;margin-bottom:16px}.inventory-dialog .inventory-scroll .item-detail-title>.gear-icon{width:88px;height:88px}.inventory-dialog .inventory-scroll .item-detail-title h2{font-size:1.35rem}.item-requirements{gap:10px 16px}.inventory-dialog .item-kind{font-size:.8rem}}
@media(max-width:360px){.inventory-dialog .inventory-scroll .item-detail-title{display:flex;gap:12px}.inventory-dialog .inventory-scroll .item-detail-title>.gear-icon{width:72px;height:72px}.inventory-dialog .inventory-scroll .item-detail-title h2{font-size:1.2rem}.inventory-dialog .item-model-name{font-size:.7rem}.item-requirements{gap:8px 12px}}
@media(max-width:760px){
 .mmo-shell .section-tabs[aria-label="Character sections"]{flex-wrap:nowrap;justify-content:flex-start;overflow-x:auto;scrollbar-width:thin;min-height:50px;padding:0 8px 4px}
 .mmo-shell .section-tabs[aria-label="Character sections"]>button{flex:0 0 auto;min-height:44px;white-space:nowrap}
 .mmo-shell .equipment-page>.painted-page-heading{min-height:64px;padding:12px 16px;margin-bottom:12px}
 .equipment-page>.painted-page-heading .eyebrow{display:none}
 .equipment-page>.painted-page-heading h1{font-size:1.5rem;margin:0}
 .equipment-page .inventory-heading{margin:0;align-items:center}
 .equipment-page .inventory-heading h2{margin:0;font-size:1rem}
 .equipment-page .inventory-gold{margin:6px 0 8px}
 .equipment-page .salvage-card{margin-bottom:6px}
 .equipment-page .bag-layout-toolbar{margin:4px 0;padding-top:4px}
 .equipment-page .bag-layout-toolbar .checkbox-row{margin:0;min-height:44px;display:flex;align-items:center;gap:8px}
 .equipment-page [data-bag-status]{margin:6px 0 8px;font-size:.75rem}
}
.inventory-dialog{padding:max(8px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));overflow:hidden}
.inventory-dialog>.inventory-drawer,.inventory-dialog>.item-inspector{display:flex;flex-direction:column;min-width:0;width:min(620px,100%);max-width:100%;max-height:calc(100dvh - max(8px,env(safe-area-inset-top)) - max(8px,env(safe-area-inset-bottom)));padding:0;overflow:hidden}
.inventory-dialog-header{display:flex;flex:none;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;border-bottom:1px solid #806844;background:#172630;min-width:0}
.inventory-dialog-header h2{font-size:1.2rem;margin:0;min-width:0;overflow-wrap:anywhere}
.inventory-dialog-header>span{font-size:.75rem;color:#c4b58f;text-align:right}
.inventory-dialog-header button{min-height:44px;min-width:44px;white-space:normal;flex-shrink:0;margin:0}
.inventory-dialog-header .inventory-back{flex-shrink:1;text-align:left;display:flex;gap:8px;align-items:center}
.inventory-dialog-tabs{flex:none;min-width:0;padding:0 16px;background:#172630;border-bottom:1px solid #695b40}
.inventory-dialog-tabs .inventory-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));margin:0}
.inventory-dialog-tabs .inventory-tabs>button:only-child{grid-column:1/-1}
.inventory-scroll{min-height:0;min-width:0;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding:16px;scroll-padding-block:12px;-webkit-overflow-scrolling:touch}
.inventory-primary-actions{display:flex;flex:none;gap:10px;flex-wrap:wrap;padding:12px 16px;border-top:1px solid #806844;background:#172630}
.modal-backdrop.inventory-dialog .inventory-primary-actions>button{flex:1;min-height:44px;min-width:100px;margin:0;border-color:#b69b61;color:#f2dca7}
.modal-backdrop.inventory-dialog .inventory-primary-actions>button:not(:disabled){background:linear-gradient(#bca16d,#957340);color:#10151e}
.modal-backdrop.inventory-dialog .inventory-dialog-header button{min-height:44px}
.inventory-scroll>.inventory-panel{padding:0;margin:0;border:0;box-shadow:none;background:none}
.inventory-scroll .inventory-panel .inventory-tabs{margin:0 0 14px}
.inventory-scroll .inventory-panel:not(.compact) .item-grid{grid-template-columns:repeat(10,minmax(44px,1fr))}
.inventory-scroll .item-detail-title{align-items:flex-start;min-width:0}
.inventory-scroll .item-detail-title>div,.inventory-scroll .item-details,.inventory-scroll .transfer-form{min-width:0;overflow-wrap:anywhere}
.inventory-scroll .item-detail-title h2{font-size:1.4rem;line-height:1.3}
@media(max-width:360px){.inventory-scroll .item-detail-title{display:block}.inventory-scroll .item-detail-title>.gear-icon{display:block;margin-bottom:12px}.inventory-scroll .item-detail-title>div{width:100%}}
.inventory-scroll .az-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.inventory-scroll .az-actions>button{min-width:0;white-space:normal;margin:0}
.inventory-scroll .transfer-form input{max-width:100%;min-width:0}
.inventory-scroll .transfer-form button{min-width:0;white-space:normal}
.inventory-scroll button:focus-visible{outline:2px solid #edcc91;outline-offset:-3px}
@media(max-width:760px){
 .mmo-shell .section-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible;gap:4px;padding:6px 10px}
 .mmo-shell .section-tab{min-width:0;min-height:44px;padding:8px;white-space:normal;line-height:1.35;text-align:center;overflow-wrap:anywhere}
 .inventory-dialog-header{padding:10px 12px;gap:8px}
 .inventory-dialog-tabs{padding-inline:12px}
 .inventory-scroll{padding:12px}
 .inventory-scroll .item-detail-title{gap:12px}
 .inventory-scroll .item-detail-title>.gear-icon{width:48px;height:48px}
 .inventory-scroll .inventory-panel:not(.compact) .item-grid{grid-template-columns:repeat(5,minmax(44px,1fr))}
}
@media(max-height:430px){.inventory-dialog-header{padding-block:6px}.inventory-scroll{padding-block:10px}}
.bag-layout-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 0 6px;border-top:1px solid #b7975766;padding-top:12px}.bag-layout-toolbar button{min-height:44px}.bag-slot-grid .item-tile{touch-action:pan-y;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}.bag-slot-grid.is-arranging .item-tile{touch-action:none;cursor:grab}.bag-slot-grid.is-arranging{outline:1px solid #c5a260;outline-offset:5px}.bag-slot-grid .bag-drag-source{opacity:.25}.bag-slot-grid .bag-drop-target,.bag-slot-grid .bag-picked{outline:2px solid #ffdc89;outline-offset:-2px;background:#88703655!important}.bag-drag-ghost{position:fixed!important;z-index:99999!important;pointer-events:none!important;margin:0!important;opacity:.94;box-shadow:0 8px 22px #000a!important;border:2px solid #f0c97c!important;transform:scale(1.06)}.bag-slot-grid [data-bag-slot]:focus-visible{outline:2px solid #f1cf84;outline-offset:0}.salvage-rewards{display:flex;flex-wrap:wrap;gap:10px;padding:15px 0;border-block:1px solid #a58b5166}.salvage-rewards>strong{color:#f0cc78;width:100%;font-size:1.35rem}.salvage-rewards>span{color:#d5e4d4}
@media(max-width:760px){.inventory-panel .bag-slot-grid,.inventory-scroll .inventory-panel .bag-slot-grid{grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:5px}.bag-slot-grid .item-tile{min-width:0;width:100%;height:auto;aspect-ratio:1}.bag-slot-grid .item-tile .gear-icon{max-width:100%;max-height:100%}}

.bag-selection-toolbar{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0}.bag-selection-toolbar button{min-height:44px}.bag-selection-toolbar small,.bag-selection-toolbar [role=status]{flex-basis:100%}.bag-item-selected:after{content:"";position:absolute;inset:0;z-index:3;pointer-events:none;border-radius:inherit;background:rgba(255,216,106,.15);box-shadow:inset 0 0 0 2px #efd18b}.salvage-item-list{max-height:25dvh;overflow:auto;text-align:left}
/* Until Select items is pressed, only that button shows (all widths since 2026-10-07; new-player QA found four salvage buttons above an empty bag). */.bag-selection-toolbar:not(.is-selecting)>:not([data-selection-mode]){display:none}@media(max-width:480px){.inventory-panel:has(.bag-selection-toolbar:not(.is-selecting)) [data-bag-status]{display:none}}

/* Let enlarged text use the whole header instead of breaking item names into narrow columns. */
.inventory-dialog .inventory-scroll .item-detail-title>div{flex:1 1 10rem;min-width:0;width:auto}.inventory-dialog .inventory-scroll .item-detail-title>.gear-icon{flex:none}
@media(max-width:360px){.inventory-dialog .inventory-scroll .item-detail-title{flex-direction:column;align-items:flex-start}.inventory-dialog .inventory-scroll .item-detail-title>div{flex:none;width:100%}.inventory-dialog .inventory-scroll .item-detail-title h2{overflow-wrap:break-word}}

/* Party bag Sort: a pressed button shows the bag is sorted. */
.party-bag-sort[aria-pressed="true"]{box-shadow:inset 0 2px #e6c889;border-color:#bd995e}
/* 320-360 px: the three Character sections fit without scrolling, so the selected Skill tree tab is never cut off. */
@media(max-width:360px){.mmo-shell .section-tabs[aria-label="Character sections"]>button.section-tab{padding-inline:8px}}
/* Capped affix lines (public/equipment-view.js capTag/limitNote): what counts toward the cap reads normally, the part above it is greyed. */
.affix-cap-tag{color:#e3b866;font-weight:400;white-space:nowrap}.affix-limit{display:block;margin-top:2px;color:#d8c69b;font:.78rem/1.5 system-ui}.affix-excess{color:#8d877c}
/* Gem bag and material bag tabs (IRP_STORAGE_BAGS_VERSION, default off): room between the grid and the note under it. */
.special-bag-grid{margin-bottom:12px}
/* Materials wallet (IRP_MATERIAL_WALLET_VERSION, default off): one row per currency or material, icon, name and count; 44px tiles. */
.wallet-title{margin:14px 0 6px;font-size:1rem;color:#d2b576}.wallet-list{list-style:none;margin:0 0 8px;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:6px}.wallet-row{display:grid;grid-template-columns:48px minmax(0,1fr) auto;align-items:center;gap:10px;padding:4px 8px;border:1px solid #b7975740;border-radius:6px}.wallet-row .item-tile{width:48px;height:48px;min-width:44px;min-height:44px;margin:0}.wallet-row span{overflow-wrap:anywhere}.wallet-row b{font-variant-numeric:tabular-nums}.wallet-note{margin:2px 0 8px}@media(max-width:400px){.wallet-list{grid-template-columns:minmax(0,1fr)}}
/* Whole-game review item 20 (18 Nov): Bag tools, one row that opens, between Equip best and the items. */.bag-tools{margin:8px 0 10px;border:1px solid #b7975766;border-radius:8px;background:#120d0899}.bag-tools>summary{display:flex;align-items:center;flex-wrap:wrap;gap:4px 12px;min-height:44px;padding:6px 12px;cursor:pointer;list-style:none;color:#f2dfb1;font-weight:700}.bag-tools>summary::-webkit-details-marker{display:none}.bag-tools>summary::before{content:"\25B8";color:#d9b46a;width:1em}.bag-tools[open]>summary::before{content:"\25BE"}.bag-tools-state{margin-left:auto;font-weight:400;font-size:.8125rem;color:#d9cfb8}.bag-tools>summary:focus-visible{outline:2px solid #f2c46d;outline-offset:2px}.bag-tools-body{padding:0 12px 8px}.bag-tools-body>.salvage-card{margin-top:4px}

/* /wayfarer-ui.css */
/* Wayfarer: one hierarchy across the five destinations. Original paintings remain intact. */
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.wayfarer-shell{--ink:#eee9df;--muted:#b4b4ad;--gold:#e6bb73;--panel:#22252b;--line:#434347;background:#17191f;color:var(--ink);font-family:system-ui,-apple-system,'Segoe UI',sans-serif}
.wayfarer-shell>.topbar{background:#15171cf7;border-bottom:1px solid #424146;box-shadow:none}
.wayfarer-shell .hero-hud strong{color:#f6eddd;font:600 1.05rem system-ui}.wayfarer-shell .hero-hud span,.wayfarer-shell .hero-hud small{color:#bfc0ba}.wayfarer-shell .hero-hud button{background:#272a30;border-color:#4b4a4c;color:#efdfbf;border-radius:8px}.wayfarer-shell .hero-hud .hud-skill-points{color:#efc37c}
.wayfarer-shell .exp-page{max-width:1500px;padding:24px clamp(14px,3vw,38px) 90px;margin:0 auto}
.wayfarer-shell .exp-heading{position:relative;display:flex;justify-content:center;min-height:112px;padding:22px 26px;margin:0 0 24px;border:1px solid #645442;border-left:4px solid #e3b775;border-radius:8px;background:linear-gradient(90deg,#252329 10%,#252329ef 40%,#25232955),url('/assets/evermarch/gateway-v1.webp') center 43%/cover;box-shadow:none;overflow:hidden}
.wayfarer-shell .exp-heading h1{color:#fff0d6;font:normal clamp(1.9rem,3vw,2.7rem)/1.15 Georgia,serif;overflow-wrap:anywhere}.wayfarer-shell .exp-heading .eyebrow{color:#e5bf85;font:600 .68rem/1.5 system-ui;letter-spacing:.17em;margin:0 0 7px}
.wayfarer-shell .section-tabs{background:#1d2026;border-bottom:1px solid #414249;gap:8px;padding:10px 28px}.wayfarer-shell .section-tab{background:#272a31;border:1px solid #42454f;border-radius:6px;color:#bfc2c8;font:500 .86rem system-ui;padding:8px 18px;white-space:normal}.wayfarer-shell .section-tab.selected{background:#e5bd80;color:#211d17;box-shadow:none;border-color:#f4d8a8;font-weight:700}
.wayfarer-shell .exp-panel,.wayfarer-shell .inventory-panel,.wayfarer-shell .ornate{background:#22252c;border:1px solid #44464e;border-radius:8px;box-shadow:none}.wayfarer-shell .ornate:before,.wayfarer-shell .ornate:after{display:none}
.wayfarer-shell .exp-panel h2,.wayfarer-shell .inventory-panel h2,.wayfarer-shell .ornate h2{font:600 1.08rem/1.4 system-ui;color:#f0dfc3;letter-spacing:0}.wayfarer-shell .exp-panel p,.wayfarer-shell .small-note{color:#c0c0b9;line-height:1.6}
.wayfarer-shell .secondary{background:#30333b;border:1px solid #595b64;box-shadow:none;border-radius:6px;color:#eee8dc;font:500 .88rem/1.4 system-ui;min-height:44px;white-space:normal}.wayfarer-shell .red-button{background:#e3b978;border:1px solid #f4d5a5;box-shadow:none;border-radius:6px;color:#251d13;font:700 .88rem/1.4 system-ui;letter-spacing:0;min-height:44px;white-space:normal}
.wayfarer-shell input:not([type=checkbox]),.wayfarer-shell select,.wayfarer-shell textarea{background:#16191f;border:1px solid #60616a;color:#f4eee4;font:400 1rem/1.45 system-ui;border-radius:6px;min-height:44px}.wayfarer-shell button:focus-visible,.wayfarer-shell summary:focus-visible,.wayfarer-shell textarea:focus-visible{outline:2px solid #ffe0a7;outline-offset:3px}
.wayfarer-shell .inventory-tabs>button.selected{background:#8c694332!important;color:#ffe2ac!important}.wayfarer-shell .item-tile.empty{background:#171a20}.wayfarer-shell .current-lesson{background:#292923;border:1px solid #5c5848;border-left:3px solid #c5b77c;border-radius:8px;box-shadow:none}.wayfarer-shell .current-lesson .eyebrow{color:#d8c68a}.wayfarer-shell .current-lesson h2{font-size:1.1rem}
.wayfarer-shell .town-panorama{border-radius:8px}.wayfarer-shell .renown-progress{background:#24272c;border:1px solid #45464d;border-radius:8px}.wayfarer-shell .mayor-conversation{background:#25262c;border:1px solid #46474d;border-radius:8px}.wayfarer-shell .town-roadmap{background:#20232a;border-radius:8px;padding:22px}.wayfarer-shell .town-roadmap li{box-shadow:none}.wayfarer-shell .town-roadmap h2{font:600 1.1rem system-ui}
.wayfarer-shell .npc-welcome{background:#25252b;border:1px solid #555049;border-radius:8px}.wayfarer-shell .npc-greeting h2{color:#f5dfba}.wayfarer-shell .zone-card{border:1px solid #57524d;border-radius:8px;background:#24262d;box-shadow:none}.wayfarer-shell .zone-copy{background:#24262d}.wayfarer-shell .challenge-grid>article{background:#191d24;border-color:#45474f;border-radius:6px}.wayfarer-shell .character-panel{background:radial-gradient(ellipse at 25% 30%,#52473855,transparent 60%),#22252c}.wayfarer-shell .quest-records{background:#22252c;border:1px solid #46474e;border-radius:8px;box-shadow:none}
.wayfarer-shell .node-inspector{background:#24262f;border:1px solid #625746;border-top:3px solid #e3b978;border-radius:8px}.wayfarer-shell .tree-toolbar{background:#252833;border-color:#4b4d58}.wayfarer-shell .tree-viewport{background:radial-gradient(ellipse,#31303f,#161922 75%)}
.nav-button .nav-copy strong{font-weight:600}.nav-button .nav-copy small{display:none}
.party-workspace .exp-heading{margin-bottom:16px}.party-overview{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:0 0 20px;border-bottom:1px solid #44464e;margin-bottom:20px}.party-status{display:flex;align-items:center;flex-wrap:wrap;gap:12px;color:#bfc0ba;font-size:.85rem}.party-count strong{font-size:1.5rem;color:#f2dab0}.status-pill{display:inline-flex;align-items:center;gap:6px;padding:5px 9px;border:1px solid #556955;color:#bed4af;background:#303a2d;border-radius:5px}.status-pill:before{content:'';width:6px;height:6px;border-radius:50%;background:#b6d394}.party-shortcuts{display:flex;gap:8px;flex-wrap:wrap}
.party-roster-panel{display:grid;gap:0;background:#23262d;border:1px solid #4a4b52;border-radius:8px;overflow:hidden;margin-bottom:16px}.party-member{display:flex;align-items:center;gap:16px;padding:18px;border-bottom:1px solid #40434b;min-width:0}.party-member:last-child{border-bottom:0}.party-member .role-medallion{width:46px;height:46px;flex:0 0 46px;border:1px solid #b29a69;background:#403b2d;border-radius:10px;display:grid;place-items:center;color:#ecd09b;font:1.4rem Georgia}.party-member[data-role=Healer] .role-medallion{border-color:#8f9c72;background:#333d2e;color:#d2e5b4}.party-member[data-role=DPS] .role-medallion{border-color:#9d858d;background:#413139;color:#ecc2cf}.party-member-identity{flex:1;min-width:0}.party-member-identity h2{display:flex;gap:10px;flex-wrap:wrap;align-items:center;font:600 1rem/1.4 system-ui;color:#f3e6cd;margin:0 0 4px;overflow-wrap:anywhere}.party-member-identity p{font-size:.8rem;margin:0;color:#b5b9c0}.leader-label{font:600 .65rem/1 system-ui;letter-spacing:.04em;text-transform:uppercase;padding:4px 6px;border:1px solid #826c48;color:#e3bf88;border-radius:3px}.party-member-role{font-size:.78rem;color:#bdc4ca;max-width:45%;overflow-wrap:anywhere}.role-accepted{color:#b5d4aa}.role-pending{color:#f0c693}.party-member.companion{background:#1c20262e}
.wayfarer-shell .party-manage,.wayfarer-shell .party-records,.wayfarer-shell .party-help{padding:0;margin:0 0 12px;overflow:hidden}.party-manage>summary,.party-records>summary,.party-help>summary{min-height:60px;padding:17px 18px;cursor:pointer;color:#efdab8;font-weight:600;line-height:1.5}.party-manage>summary span,.party-records>summary span,.party-help>summary span{font-weight:400;color:#b9bab9;font-size:.78rem;margin-left:8px}.party-manage>:not(summary),.party-records>:not(summary),.party-help>:not(summary){margin:12px 18px 18px}.party-help>.party-preparation{margin:16px}.party-inline-note{padding:0 4px;color:#e5cda7}.party-manage-member{display:flex;justify-content:space-between;gap:12px;align-items:center;flex-wrap:wrap;border-top:1px solid #494a4e;padding-top:16px}.party-invite{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px}.party-invite small{display:block;color:#b9babc}.party-code{letter-spacing:.08em;overflow-wrap:anywhere}
/* Chat is a stable, independent reading surface; secondary tools stay collapsed. */
.wayfarer-shell .chat-access{right:20px;bottom:20px;z-index:85}.wayfarer-shell .chat-access>button{display:flex;align-items:center;gap:9px;background:#e5bd80;color:#241d14;border-color:#f3d3a1;border-radius:10px;box-shadow:0 6px 20px #0006;padding:10px 16px;font-weight:700}.chat-unread,.chat-channels [data-chat-count]{background:#e7be79;color:#221a12;border-radius:12px;min-width:20px;padding:1px 5px;font-size:.7rem;text-align:center}.chat-access .chat-unread{background:#4c3440;color:#fff}
.wayfarer-shell .community-chat{position:fixed;right:20px;bottom:80px;width:min(430px,calc(100vw - 32px));height:min(650px,calc(100dvh - 110px));max-height:none;z-index:90;display:flex;flex-direction:column;min-height:0;padding:0;background:#1b1e25;border:1px solid #7c6a51;border-radius:12px;box-shadow:0 18px 60px #0009;overflow:hidden;color:#e9e6de}
.community-chat .chat-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 14px;border-bottom:1px solid #46454c;background:#27272e;flex-shrink:0}.wayfarer-shell .chat-heading h2{font:600 1.1rem system-ui;color:#f5dfba;margin:0}.chat-heading h2 small{display:block;font:400 .66rem/1.5 system-ui;color:#b6c3af;margin-top:3px}.chat-heading button{padding:7px 12px}.chat-channels{display:grid;grid-template-columns:repeat(3,minmax(44px,1fr));flex-shrink:0;padding:6px 8px;gap:5px;border-bottom:1px solid #40424a;background:#21242c}.chat-channels>button{display:flex;align-items:center;justify-content:center;gap:6px;background:transparent;color:#c2c4cb;border:1px solid transparent;border-radius:6px;min-height:44px;font:600 .85rem system-ui}.chat-channels>button[aria-selected=true]{background:#4d4031;border-color:#a68450;color:#ffe0b0}
.chat-conversation{display:flex;flex:1;flex-direction:column;min-height:0;overflow:auto}.chat-destination{font-size:.72rem;color:#c4bda9;margin:0;padding:8px 14px;border-bottom:1px solid #373b43;flex-shrink:0;overflow-wrap:anywhere}.wayfarer-shell .chat-messages{height:auto;min-height:92px;flex:1;overflow:auto;overscroll-behavior:contain;margin:0;padding:8px 12px;border:0;scrollbar-width:thin;overflow-wrap:anywhere}.chat-messages .chat-message{display:grid;grid-template-columns:36px minmax(0,1fr);gap:6px;padding:4px 0;border:0;background:transparent}.chat-message>time{font:400 .65rem/2.75rem system-ui;color:#9ca2ad;margin:0}.chat-message>div{min-width:0}.chat-message p{font:400 .86rem/1.5 system-ui;margin:0 0 5px;color:#eeebe4;white-space:pre-wrap;overflow-wrap:anywhere}.chat-message .chat-name,.chat-author{display:inline-flex;align-items:center;min-height:44px;margin:0;padding:0 3px;font:600 .8rem system-ui;color:#edc689}.chat-message .chat-name{min-width:44px}.chat-message.own .chat-author{color:#b7c6e9}.chat-message.system .chat-author{color:#bddba4}.chat-message .chat-item{margin:4px 0;background:#292a27}.chat-message .chat-item summary{font-size:.8rem;padding:10px}.chat-message .chat-item p{font-size:.78rem}.chat-empty{font-size:.86rem;color:#b4b8c3;padding:16px 8px}
.community-chat #chatForm{flex-shrink:0;padding:10px 12px 8px;border-top:1px solid #46464e;margin:0}.community-chat #chatForm textarea{display:block;width:100%;min-height:58px;max-height:160px;padding:9px 10px;resize:vertical;line-height:1.4}.chat-compose-actions{display:flex;align-items:center;gap:8px;margin-top:8px}.chat-compose-actions>#chatCounter{flex:1;text-align:right;color:#a9aeb9;font-size:.7rem}.chat-compose-actions button{padding:7px 13px}.chat-input-help{font-size:.65rem;color:#a5abb4;margin:7px 0 0}.community-chat #chatError{font-size:.75rem;color:#edd0a2;min-height:0;margin:5px 0 0;line-height:1.4;overflow-wrap:anywhere}.community-chat #chatError:empty{display:none}.chat-attachment{margin-top:8px}.chat-attachment select{width:100%;margin-top:4px}.community-chat .chat-privacy{flex-shrink:0;max-height:42%;overflow:auto;padding:0 14px;border-top:1px solid #43464e;background:#24262e;font-size:.75rem}.chat-privacy summary{min-height:44px;padding:12px 0;cursor:pointer}.chat-privacy p{line-height:1.55;color:#bfc0bb}.chat-privacy>div{padding-bottom:12px}.chat-privacy form{display:flex;gap:8px;align-items:end}.chat-privacy form label{flex:1;min-width:0}.chat-privacy input{width:100%}
.chat-jump{flex-shrink:0;margin:4px 12px 8px;font-size:.8rem!important}.whisper-route{display:flex;gap:8px;padding:8px 12px 0;margin:0;flex-shrink:0}.whisper-route input{width:100%;min-width:0;flex:1}.chat-recent{display:flex;gap:5px;overflow:auto;padding:8px 12px 0;flex-shrink:0}.chat-recent button{flex-shrink:0;min-height:44px;background:#292c36;border:1px solid #555663;border-radius:6px;font-size:.75rem;padding:6px 10px}.chat-recent button[aria-pressed=true]{background:#4b3d4e;border-color:#b794ac}
.wayfarer-shell [hidden]{display:none!important}
@media(min-width:1180px){.wayfarer-shell{padding-left:206px}.wayfarer-shell>.topbar>nav{width:206px;padding:24px 14px;gap:8px;align-items:stretch;background:linear-gradient(#191a20 42%,#191a20c9),url('/assets/evermarch/gateway-v1.webp') center bottom/auto 70%;border-right:1px solid #52483b}.wayfarer-shell .nav-brand{margin-bottom:34px}.wayfarer-shell .nav-brand .wordmark{max-width:174px}.wayfarer-shell .nav-brand .brand-name{font-size:1.5rem}.wayfarer-shell>.topbar>nav .nav-button{flex-direction:row;justify-content:flex-start;text-align:left;gap:14px;padding:13px 14px;min-height:72px;color:#c9c7c1;background:#23242a;border:1px solid #3d3e45;border-radius:8px;font:500 .94rem system-ui}.wayfarer-shell>.topbar>nav .nav-button.active{background:#e1bb80;color:#221d16;border-color:#f0d0a0;box-shadow:none}.nav-button .nav-copy small{display:block;font:400 .66rem/1.4 system-ui;color:#b6b5b2;margin-top:5px}.nav-button.active .nav-copy small{color:#54442c}.wayfarer-shell>.topbar>nav .nav-button .icon{width:24px;height:24px}.wayfarer-shell .combat-grid{grid-template-columns:minmax(175px,17%) minmax(0,1fr) 258px}}
@media(min-width:1000px){.party-workspace{display:grid;grid-template-columns:minmax(0,1fr) 320px;column-gap:22px;align-content:start}.party-workspace>.exp-heading,.party-workspace>.party-overview,.party-workspace>.party-inline-note,.party-workspace>.party-loot{grid-column:1/-1}.party-workspace>.party-roster-panel{grid-column:1;grid-row:3/span 3;align-self:start}.party-workspace>.party-manage{grid-column:2;grid-row:3;align-self:start}.party-workspace>.party-records,.party-workspace>.party-help{grid-column:2}.party-workspace>.exp-panel:not(details):not(.party-loot){grid-column:1/-1}.party-workspace>.party-inline-note{grid-row:6}.party-status{gap:12px}.party-member{flex-wrap:wrap}.party-member-role{margin-left:62px;margin-top:-10px;max-width:100%}}
@media(max-width:999px){.party-overview{align-items:flex-start;flex-direction:column}.party-member-role{margin-left:auto}.party-shortcuts{width:100%}.party-shortcuts>button{flex:1}.party-manage>summary span,.party-records>summary span,.party-help>summary span{display:block;margin:3px 0 0 18px}}
@media(max-width:760px){.wayfarer-shell .exp-page{padding:14px 12px 28px}.wayfarer-shell .exp-heading{min-height:100px;padding:18px;margin-bottom:18px;border-radius:6px;background-position:center 40%}.wayfarer-shell .exp-heading h1{font-size:1.9rem}.wayfarer-shell>.topbar{padding:8px 12px;background:#17191f}.wayfarer-shell>.topbar>nav{background:#1d1f27;border-top:1px solid #7f6a4c;box-shadow:0 -6px 20px #0004}.wayfarer-shell>.topbar>nav .nav-button.active{background:#e5bd80;color:#251e15;box-shadow:none}.wayfarer-shell>.topbar>nav .nav-button{font-family:system-ui;border-radius:6px}.wayfarer-shell .section-tabs{padding:8px 12px;gap:6px}.wayfarer-shell .section-tab{padding:8px;font-size:.81rem}.wayfarer-shell .exp-panel{padding:16px}.wayfarer-shell .party-manage,.wayfarer-shell .party-records,.wayfarer-shell .party-help{padding:0}.party-member{padding:14px;gap:12px;flex-wrap:wrap}.party-member-identity{flex-basis:calc(100% - 60px)}.party-member-role{max-width:100%;margin:-6px 0 0 58px}.party-overview{gap:14px}.party-shortcuts button{font-size:.8rem!important}.party-status{gap:10px;font-size:.78rem}.wayfarer-shell .chat-access{right:max(12px,env(safe-area-inset-right));bottom:calc(84px + env(safe-area-inset-bottom))}.wayfarer-shell .chat-access>button{padding:8px 12px}.wayfarer-shell .community-chat{right:max(8px,env(safe-area-inset-right));left:max(8px,env(safe-area-inset-left));bottom:calc(84px + env(safe-area-inset-bottom));width:auto;height:min(640px,calc(100dvh - 110px));border-radius:10px;max-height:calc(100dvh - 100px)}.wayfarer-shell .community-chat.keyboard-open{top:calc(var(--chat-viewport-top,0px) + 8px);bottom:auto;height:calc(var(--chat-viewport-height,100dvh) - 16px);max-height:calc(var(--chat-viewport-height,100dvh) - 16px)}.community-chat .chat-input-help{display:none}.community-chat .chat-heading{padding:7px 12px}.community-chat .chat-privacy{max-height:35%}.wayfarer-shell .town-roadmap{padding:16px}}
@media(prefers-reduced-motion:reduce){.wayfarer-shell *{scroll-behavior:auto!important}}

.wayfarer-shell details.dev-panel>summary{min-height:44px;cursor:pointer;font:600 1rem/1.5 system-ui;color:#ead5b2;padding:6px 0}.wayfarer-shell details.dev-panel[open]>summary{margin-bottom:14px;border-bottom:1px solid #44464e;padding-bottom:12px}
/* Party page raid invitation row (IRP_RAID_INVITE_ROLE_VERSION, default off): its text sat flush against the card border because .party-invite{padding:9px 0} (party-recruitment.css) overrides the card padding of expansion.css. Only the gated row carries .raid-invite, so the ordinary invite row and the switch-off page are unchanged. Same side padding as next/post-patch-fixes P6 (9px 18px). Kept here, not in party-recruitment.css, whose appended rules are pinned to the landscape fix. */
.party-invite.raid-invite{padding:9px 18px}

/* /dungeon.css */
/* Prison Cellar candidate: readable parchment cartography and a following camera. */
.world-map-page{max-width:1600px;margin:auto;padding:24px;min-width:0}
.map-title{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}
.map-title h1{font:clamp(1.875rem,4vw,3rem)/1.1 Georgia,serif;color:#f2ddb4;margin:4px 0}.map-title .eyebrow{letter-spacing:.18em;color:#c29f68}
.map-key{display:flex;align-items:center;gap:8px;font-size:.75rem;color:#c5bba7}.map-key i{width:8px;height:8px;background:#e2c383;transform:rotate(45deg);margin-left:8px}.map-key .dungeon-key{background:#b96747}
.map-workspace{display:grid;grid-template-columns:minmax(0,1fr) 320px;align-items:start;gap:20px;min-width:0}
.world-map{position:relative;isolation:isolate;overflow:hidden;border:1px solid #9d7843;border-radius:8px;background:#172a2c;box-shadow:0 18px 50px #0006;aspect-ratio:3/2;min-width:0}
.world-map-art{display:block;width:100%;height:100%;object-fit:cover}.map-cartouche{position:absolute;top:5%;left:5%;pointer-events:none;display:grid;gap:3px;text-shadow:0 2px 5px #000}
.map-cartouche span{font:clamp(14px,2.4vw,32px) Georgia,serif;letter-spacing:.13em;color:#f2dcab}.map-cartouche small{font:italic 12px Georgia,serif;color:#edddb7}
.map-pin{position:absolute;left:var(--pin-x);top:var(--pin-y);transform:translate(-50%,-50%);z-index:2;display:flex;align-items:center;gap:8px;min-height:44px;min-width:44px;padding:7px 10px;border:1px solid #d9b575;border-radius:5px;background:#1b211bea;color:#fff1cf;box-shadow:0 3px 12px #0008;text-align:left;cursor:pointer;max-width:170px}
.map-pin svg{width:25px;height:30px;fill:none;stroke:currentColor;stroke-width:1.5;flex-shrink:0}.map-pin span{font:700 14px Georgia,serif;display:grid;gap:3px}.map-pin small{font:10px Arial,sans-serif;color:#d6c9ac;white-space:nowrap}.map-pin:hover,.map-pin:focus-visible,.map-pin.selected{outline:2px solid #f0cb83;outline-offset:3px;background:#514128}.dungeon-pin{border-color:#d79b75;background:#3c221cf0}
.map-discovery{position:absolute;left:3%;right:3%;bottom:3%;padding:10px 12px;background:#172321ee;border:1px solid #92764c;border-radius:4px;color:#ead9b5;font-size:12px;line-height:1.5;text-align:center;pointer-events:none}.map-discovery>span{color:#e8bb64;margin-right:6px}
.map-destination,.map-invitation{border:1px solid #776142;background:linear-gradient(150deg,#252a28,#171d1d);border-radius:8px;padding:20px;min-width:0;box-shadow:0 10px 25px #0003}.map-destination>header{display:flex;align-items:flex-start;gap:12px;justify-content:space-between}.map-destination h2,.map-invitation h2{font:1.625rem/1.2 Georgia,serif;color:#ecd4a6;margin:4px 0 14px}.map-destination p,.map-invitation p{font-size:.875rem;line-height:1.6;color:#cec9ba}.map-destination .map-close{font:1.5rem Arial;min-width:44px;min-height:44px;padding:0;flex-shrink:0}.map-destination details{margin-top:16px;border-top:1px solid #75634455;padding-top:8px}.map-destination summary{min-height:44px;display:list-item;align-content:center;cursor:pointer;color:#e0c494;font-size:.875rem}.map-destination button,.map-invitation button{min-height:44px}.destination-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:14px 0;border-block:1px solid #90714b55}.destination-summary span{font-size:.625rem;display:grid;gap:5px;color:#c5b79b;text-transform:uppercase;letter-spacing:.04em}.destination-summary b{font:1.5rem Georgia,serif;color:#f4d59a}.cellar-route-note{padding-left:10px;border-left:2px solid #ae7d43}.cellar-loot-scroll{max-width:100%;overflow:auto}.cellar-loot table{width:100%;font-size:.75rem;border-collapse:collapse}.cellar-loot th,.cellar-loot td{padding:9px 6px;text-align:left;border-bottom:1px solid #75634466;overflow-wrap:anywhere}.cellar-loot thead{color:#d6b67d}.cellar-loot th:first-child{width:58%}.cellar-loot th{font-weight:400}.cellar-loot th small{display:block;color:#bdb29a}.cellar-loot .small-note{font-size:.75rem}.cellar-floor-list{padding-left:22px}.cellar-floor-list img{width:100%;height:auto;border-radius:4px;margin-top:12px}.cellar-floor-list h3{font-size:1rem;color:#ead3ac}.map-other-roads{margin-top:22px;border-top:1px solid #a785504d;padding-top:10px}.map-other-roads>summary{min-height:48px;align-content:center;cursor:pointer;color:#bda879}.map-other-roads>.exp-page{padding:12px 0}.map-other-roads>.exp-page>.exp-heading,.map-other-roads>.exp-page>.journey-goal{display:none}
.cellar-intro>section{width:min(540px,calc(100vw - 28px));max-height:calc(100dvh - 32px);overflow:auto;padding:30px;background:linear-gradient(140deg,#282924,#171b1c);border:1px solid #b68f56}.cellar-intro h2{font:2.125rem/1.15 Georgia,serif;color:#e9c18a}.cellar-intro p{line-height:1.65;color:#d1c8b8}.cellar-intro .eyebrow{color:#bf9d68}.cellar-intro button{min-height:48px}
.cellar-intro.cellar-intro-clear{background:#03090e70;backdrop-filter:none}.cellar-intro .cellar-intro-what{margin:0 0 12px;font-size:1.0625rem;color:#f7ecd4}
.cellar-intro .cellar-intro-help{margin:0 0 12px;padding:10px 12px;border-left:3px solid var(--uk-gold,#d6b575);background:#d6b5751a;color:#f2e2bd}
.dungeon-battlefield{background:#12181a;isolation:isolate}.dungeon-battlefield .arena-background{filter:none;will-change:transform}.dungeon-battlefield .arena-vignette{background:radial-gradient(ellipse at center,transparent 45%,#09101177 100%)}.dungeon-battlefield .encounter-status{font-size:clamp(.875rem,2vw,1.375rem);max-width:calc(100% - 24px);text-align:center;padding:14px;background:#151b1aeb;border:1px solid #b19460;white-space:normal}.dungeon-battlefield .boss-result{max-height:calc(100% - 24px);overflow:auto;z-index:240}.dungeon-battlefield .boss-result h2{font-size:1.5rem}.dungeon-battlefield .boss-result p{font-size:.875rem;line-height:1.5}.minimap:has(svg){height:auto;aspect-ratio:3/2;background:#13191a}.minimap #minimap:has(svg){position:relative;height:100%;width:100%}.minimap svg{width:100%;height:100%;display:block}.cellar-quest{border-left:3px solid #c39355}.cellar-quest h2{font-family:Georgia,serif}
@media(min-width:1400px){.map-workspace{grid-template-columns:minmax(0,1fr) 370px}}
@media(max-width:1050px){.map-workspace{grid-template-columns:minmax(0,1fr)}.map-invitation{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:20px}.map-invitation h2,.map-invitation p{grid-column:1}.map-invitation button{grid-column:2;grid-row:2/4;align-self:center}.map-destination{max-width:none}.cellar-floor-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.map-destination>p,.cellar-loot>.small-note{max-width:80ch}.map-destination>.red-button{max-width:380px}}
@media(max-width:600px){.world-map-page{padding:14px 10px}.map-title{align-items:flex-start}.map-title .eyebrow{font-size:.5625rem;letter-spacing:.12em}.map-title h1{font-size:1.875rem}.map-key{font-size:.625rem;gap:3px;padding-top:8px}.world-map{aspect-ratio:3/2}.world-map-art{object-fit:cover}.city-pin{top:53%;left:32%}.dungeon-pin{left:59%}.map-cartouche{top:6%;left:6%}.map-cartouche small{display:none}.map-pin{gap:4px;padding:5px 6px;max-width:134px}.map-pin span{font-size:12px}.map-pin small{font-size:9px}.map-pin svg{width:20px;height:24px}.map-discovery{font-size:10px;padding:7px;line-height:1.4}.map-destination,.map-invitation{padding:16px}.map-invitation{display:block}.map-invitation button{width:100%}.map-destination h2{font-size:1.625rem}.cellar-floor-list{display:block}.cellar-intro>section{padding:22px}.cellar-intro h2{font-size:1.8125rem}.dungeon-battlefield{min-height:430px}.cellar-loot th,.cellar-loot td{padding:8px 4px}.map-workspace{gap:12px}}
@media(prefers-reduced-motion:reduce){.dungeon-battlefield .arena-background{will-change:auto}.map-pin{transition:none}}

.cellar-creatures article{display:flex;align-items:center;gap:12px;margin:12px 0}.cellar-creatures img{width:76px;height:96px;object-fit:contain;flex-shrink:0}.cellar-creatures h3{font:1rem Georgia,serif;color:#ead3ac;margin:0}.cellar-creatures article p{font-size:.75rem;margin:6px 0}

/* Conversations share the dungeon notice treatment, with contained mobile scrolling. */
.whiskey-dialog>section{width:min(640px,100%);max-height:calc(100dvh - 32px);overflow:auto;padding:20px;box-sizing:border-box}
.whiskey-dialog header{display:flex;align-items:center;justify-content:space-between;gap:12px}
.whiskey-dialog header button{min-width:44px;min-height:44px;font-size:1.375rem;flex-shrink:0}
.whiskey-conversation{display:grid;grid-template-columns:112px minmax(0,1fr);gap:20px;align-items:start;margin:16px 0}
.whiskey-conversation>img{width:112px;height:150px;object-fit:contain;align-self:end}
.whiskey-bubble{position:relative;background:#24201c;border:1px solid #8a704a;border-radius:14px;padding:18px;color:#f2e3cd;overflow-wrap:anywhere}
.whiskey-bubble:before{content:"";position:absolute;left:-9px;top:35px;width:16px;height:16px;background:#24201c;border-left:1px solid #8a704a;border-bottom:1px solid #8a704a;transform:rotate(45deg)}
.whiskey-bubble h2{font-size:1.5rem;margin:0 0 12px}.whiskey-bubble p{font-size:1rem;line-height:1.6;margin:0}
.whiskey-actions,.cellar-result-actions{display:flex;flex-wrap:wrap;gap:10px}.whiskey-actions{justify-content:flex-end}
.whiskey-actions button,.cellar-result-actions button{min-height:44px;white-space:normal;max-width:100%;overflow-wrap:anywhere}
.cellar-boss-timer{padding:12px 0;border-block:1px solid #635239;margin:14px 0}.cellar-boss-timer strong{color:#e9c98f;font-variant-numeric:tabular-nums}.cellar-boss-timer p{font-size:.8125rem;line-height:1.5;margin-bottom:0}
.dungeon-battlefield .boss-result:has(.cellar-result-actions){top:50%;max-height:min(calc(100% - 24px),calc(100dvh - 120px));overflow:auto;overscroll-behavior:contain}
@media(max-width:480px){.whiskey-dialog>section{padding:14px}.whiskey-conversation{grid-template-columns:64px minmax(0,1fr);gap:12px}.whiskey-conversation>img{width:64px;height:100px}.whiskey-bubble{padding:12px}.whiskey-bubble h2{font-size:1.3125rem}.whiskey-actions button,.cellar-result-actions button{flex:1 1 100%}}

.player-tombstone{position:absolute;left:0;top:0;transform:translate(-50%,-100%);text-align:center;pointer-events:none;filter:drop-shadow(0 4px 3px #000a)}.player-tombstone[hidden]{display:none}.player-tombstone svg{display:block;width:100%;height:auto}.tombstone-name{position:absolute;bottom:100%;left:50%;transform:translateX(-50%);min-width:100px;max-width:160px;padding:4px;background:#172126ed;color:#e8e6d5;overflow-wrap:anywhere;font:12px/1.3 Arial,sans-serif}.tombstone-timer{position:absolute;left:0;right:0;bottom:16%;color:#d1f5ff;text-shadow:0 2px 3px #000;font:bold 19px Georgia,serif}.has-tombstone .model-wrap,.has-tombstone .unit-name,.has-tombstone .unit-cast{visibility:hidden}.has-tombstone .player-tombstone{visibility:visible}

/* Map legend on a 320 px phone (game text QA, 7 Oct): keep "City" and "Zone" whole. */.map-title .map-key{flex:none;white-space:nowrap}

/* First-fight card (public/dungeon-ui.js combatIntro). Not modal: it floats over the battlefield and the fight keeps going.
   No entrance animation: the battle screen redraws often, and the card is still for reduced-motion players. */
/* Prison start captions (IRP_PRISON_START_VERSION, public/prison-start.js): one line of story over the top of the fight. Not modal; tap to close. */
.prison-caption{position:fixed;z-index:230;left:50%;width:min(560px,calc(100vw - 32px));padding:10px 18px 12px;background:linear-gradient(180deg,#1d1f1ce8,#121516e8);border:1px solid #b68f56;border-radius:8px;box-shadow:0 10px 28px #0009;text-align:center;opacity:0;transform:translate(-50%,-6px);transition:opacity .5s,transform .5s;pointer-events:none}
.prison-caption.shown{opacity:1;transform:translate(-50%,0);pointer-events:auto;cursor:pointer}
.prison-caption-where{margin:0 0 4px;font:600 .6875rem/1.2 system-ui;letter-spacing:.14em;text-transform:uppercase;color:#c9a468}
.prison-caption-text{margin:0;font:1.0625rem/1.35 Georgia,serif;color:#efe6d2}
.prison-card{z-index:2000;background:linear-gradient(180deg,#1f211d,#141718);padding:14px 20px 16px;border-color:#d9b46a;box-shadow:0 0 0 1px #d9b46a55,0 12px 32px #000b;cursor:default}.prison-card .prison-caption-where{font-size:.8125rem;color:#f0cf86}
.prison-caption-go{margin-top:12px;min-height:var(--uk-tap,44px);padding:9px 22px;border:1px solid #e6c98f;border-radius:var(--uk-radius,6px);background:linear-gradient(180deg,#c9a468,#8f6f3c);color:#1b1509;font:700 .875rem/1.3 system-ui;box-shadow:inset 0 1px 0 #fff2c95c,inset 0 0 0 2px #8a682f66,0 2px 5px #0005;cursor:pointer}.prison-caption-go:hover{border-color:#fbe3ac;background:linear-gradient(180deg,#d8b674,#9c7a44)}.prison-caption-later{margin:12px 0 0 10px;min-height:44px;padding:0 14px;background:none;border:0;color:#c9bfa8;text-decoration:underline}
@media(max-width:480px){.prison-caption{padding:8px 12px 10px}.prison-caption-text{font-size:.9375rem}}
@media(prefers-reduced-motion:reduce){.prison-caption{transition:none}}
/* The story films (IRP_STORY_INTRO_VERSION, public/story-intro.js): over the whole screen, on black. */
.story-intro{position:fixed;inset:0;z-index:3000;background:#000;opacity:1;transition:opacity .6s}.story-intro.closing{opacity:0}
/* The whole picture, letterboxed, with the caption below it so it never covers the art. */
.story-film{display:flex;align-items:center;justify-content:center}
.story-film-frame{display:flex;flex-direction:column;align-items:center;width:100%}
.story-film-video{display:block;width:min(100vw,calc((100vh - 96px) * 16 / 9));aspect-ratio:16/9;background:#000;object-fit:contain}
.story-film-caption{min-height:3.2em;margin:10px 0 0;padding:0 20px;max-width:900px;text-align:center;font:1.25rem/1.45 Georgia,serif;color:#f1e6cc}
.story-film-who{color:#d9b46a;font-weight:600}
.story-film-controls{position:absolute;top:16px;right:16px;display:flex;gap:10px}
.story-intro-skip,.story-film-sound{min-height:44px;padding:0 20px;border:1px solid #b68f56;border-radius:6px;background:#0d151bcc;color:#f0e2c2;font:600 .9375rem/1 system-ui;cursor:pointer}.story-intro-skip:hover,.story-film-sound:hover{border-color:#e6c98f}
.story-film-sound[hidden]{display:none}
body.story-film-on>*:not(.story-intro){visibility:hidden}
.story-film-wait{position:absolute;left:0;right:0;bottom:18%;margin:0;text-align:center;font:1.0625rem/1.4 Georgia,serif;color:#cdbf9f;opacity:.8}
@media(max-width:600px){.story-film-caption{font-size:1.0625rem}.story-film-controls{top:12px;right:12px}}
@media(prefers-reduced-motion:reduce){.story-intro{transition:none}}
.combat-intro-card{position:fixed;z-index:240;left:50%;top:calc(env(safe-area-inset-top,0px) + max(92px,30vh));transform:translateX(-50%);width:min(340px,calc(100vw - 32px));padding:16px 18px;background:linear-gradient(140deg,#282924,#171b1c);border:1px solid #b68f56;border-radius:8px;box-shadow:0 12px 32px #000a}
.combat-intro-card h2{margin:0 0 10px;font:1.25rem/1.2 Georgia,serif;color:#e9c18a}
.combat-intro-card ul{list-style:none;margin:0 0 14px;padding:0;display:grid;gap:9px}
.combat-intro-card li{display:flex;align-items:center;gap:11px;color:#e4dccb;font-size:.9375rem;line-height:1.35}
.combat-intro-card svg{flex:none;width:30px;height:30px;padding:5px;border-radius:50%;background:#e9c18a1a;fill:none;stroke:#e9c18a;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.combat-intro-card button{width:100%;min-height:44px}
/* WhiskeyJack's conversation portrait fills its column (13 Oct pass: a small figure in a large empty column). The painting is a square waist-up
   portrait, so it is cropped to the frame instead of shrunk into it; the row height still comes from the speech bubble. Phones put him above the bubble. */
.whiskey-conversation{grid-template-columns:clamp(150px,30%,190px) minmax(0,1fr);align-items:stretch}
.whiskey-conversation>img{align-self:stretch;width:100%;height:0;min-height:100%;object-fit:cover;object-position:45% 0;border:1px solid #8a704a;border-radius:12px;background:radial-gradient(110% 80% at 50% 18%,#3b3327,#15130f 78%);box-shadow:0 6px 16px #0007}
.whiskey-bubble{min-height:190px}
@media(max-width:480px){.whiskey-conversation{grid-template-columns:minmax(0,1fr);gap:14px}
.whiskey-conversation>img{height:150px;min-height:0;object-position:45% 14%}
.whiskey-bubble{min-height:0}
.whiskey-bubble:before{left:calc(45% - 8px);top:-9px;border-bottom:0;border-top:1px solid #8a704a}}
/* One goal on the compact screen (public/dungeon-ui.js goalBar): the bottom strip names the next step and has its button. */
.map-discovery.one-goal-bar{display:flex;align-items:center;gap:10px;text-align:left;pointer-events:auto;font-size:13px}.one-goal-bar-text{flex:1 1 auto;min-width:0}.one-goal-bar-text b{color:#f1e4c4;margin-right:4px}.one-goal-bar>button{flex:none;min-height:44px;margin:0}@media(max-width:600px){.map-discovery.one-goal-bar{font-size:12px;gap:8px}}
/* On the compact screen the strip floats above the icon dock (computer) and the Menu button (phone), so neither covers its button. */
html.cx-on .map-discovery.one-goal-bar{position:fixed;left:12px;right:auto;bottom:80px;width:min(620px,calc(100vw - 24px));box-sizing:border-box;z-index:93;border-radius:10px;box-shadow:0 8px 24px #000a}@media(max-width:600px){html.cx-on .map-discovery.one-goal-bar{bottom:calc(96px + env(safe-area-inset-bottom,0px));left:10px;width:calc(100vw - 20px)}.one-goal-bar-text>b{display:block}.one-goal-bar-text>b~*,.one-goal-bar-text{font-size:12px}}
/* First skill pick (IRP_FIRST_PICK_VERSION, public/first-pick.js): the choice after WhiskeyJack's debrief, then one line in the next fight. */
.first-pick{position:fixed;z-index:1900;left:50%;top:50%;width:min(620px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto;padding:16px 20px 14px;background:linear-gradient(180deg,#1f211d,#141718);border:1px solid #d9b46a;border-radius:8px;box-shadow:0 0 0 1px #d9b46a55,0 12px 32px #000b;color:#efe6d2;opacity:0;transform:translate(-50%,-48%);transition:opacity .35s,transform .35s;pointer-events:none}
.first-pick.shown{opacity:1;transform:translate(-50%,-50%);pointer-events:auto}
.first-pick.is-note{top:84px;transform:translate(-50%,-6px);cursor:pointer;text-align:center;padding:10px 18px 12px}.first-pick.is-note.shown{transform:translate(-50%,0)}
.first-pick-eyebrow{margin:0 0 4px;font:600 .75rem/1.2 system-ui;letter-spacing:.14em;text-transform:uppercase;color:#f0cf86}
.first-pick-title{margin:0 0 6px;font:500 1.375rem/1.2 Georgia,serif;color:#f3e3bd}
.first-pick-text{margin:0 0 12px;font:1rem/1.4 Georgia,serif;color:#efe6d2}.first-pick.is-note .first-pick-text{margin:0}
.first-pick-options{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.first-pick-option{display:flex;flex-direction:column;align-items:flex-start;gap:4px;min-height:var(--uk-tap,44px);height:auto;padding:12px 14px;text-align:left;white-space:normal}
.first-pick-option b{font:700 1rem/1.25 system-ui}.first-pick-option span{font:600 .875rem/1.3 system-ui;color:#f0cf86}.first-pick-option small{font:.8125rem/1.35 system-ui;color:#d8cfbd}
.first-pick-foot{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:10px 0 0;font:.8125rem/1.3 system-ui;color:#c9bfa8}.first-pick-foot .tour-skip{min-height:44px;padding:0 10px;background:none;border:0;color:#c9bfa8;text-decoration:underline;cursor:pointer}
@media (max-width:540px){.first-pick-options{grid-template-columns:1fr}.first-pick.is-note{top:auto;bottom:calc(112px + env(safe-area-inset-bottom,0px))}}
/* The choice buttons in the UI kit's button look (public/ui-kit.css .uk-btn, which only reaches menus inside .shell or a dialog). */
.first-pick .uk-btn{min-height:var(--uk-tap,44px);padding:9px 16px;border:1px solid var(--uk-gold-dim);border-top:2px solid var(--uk-gold);border-radius:var(--uk-radius,6px);background:var(--uk-surface);color:var(--uk-ivory);font:600 .8125rem/1.3 system-ui;box-shadow:var(--uk-rule),0 2px 5px #0004;cursor:pointer}
.first-pick .uk-btn:hover:not(:disabled){border-color:var(--uk-gold-hi);background:var(--uk-surface-hover);color:#fff0c8}
/* Boss spoils and the You found banner (public/boss-spoils.js, IRP_BOSS_SPOILS_VERSION; hook plan change 2, 3 Nov 2026). The card sits under the
   field's "Victory" (30% height) and above the hero's feet; the banner sits at the top of the field, clear of the story corner card. */
.boss-spoils,.found-banner{position:fixed;z-index:240;left:50%;width:min(420px,calc(100vw - 32px));padding:12px 18px 10px;background:linear-gradient(180deg,#1f211df2,#141718f2);border:1px solid #d9b46a;border-radius:8px;box-shadow:0 0 0 1px #d9b46a55,0 12px 32px #000b;text-align:center;color:#efe6d2;opacity:0;transform:translate(-50%,10px) scale(.96);transition:opacity .35s,transform .35s;cursor:pointer}
.boss-spoils{top:auto;bottom:max(156px,17vh)}
.boss-spoils.shown,.found-banner.shown{opacity:1;transform:translate(-50%,0) scale(1)}
.boss-spoils.leaving{opacity:0;transition:opacity .35s}
.found-banner{top:max(132px,calc(env(safe-area-inset-top) + 124px));width:min(340px,calc(100vw - 32px));padding:8px 14px 6px;pointer-events:none}
.boss-spoils .spoils-where,.found-banner .spoils-where{margin:0 0 2px;font:600 .6875rem/1.2 system-ui;letter-spacing:.14em;text-transform:uppercase;color:#c9a468}
.spoils-title{margin:0 0 8px;font:700 1.25rem/1.2 Georgia,serif;color:#f6d98f}
.spoils-rewards{display:flex;flex-wrap:wrap;justify-content:center;gap:6px 16px;margin:0 0 8px;font:700 1rem/1.3 system-ui;color:#f3e6c4}
.spoils-rewards .spoils-level{color:#9fe08f}
.spoils-saving{margin:0 0 8px;font:.875rem/1.3 system-ui;color:#c9bfa8}
.spoils-items{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:6px;margin:0 0 6px;padding:0;list-style:none;text-align:left}
.spoils-item{display:flex;align-items:center;gap:8px;min-width:0;padding:4px 6px;border:1px solid color-mix(in srgb,var(--rarity,#8a7a5a) 70%,transparent);border-radius:6px;background:color-mix(in srgb,var(--rarity,#8a7a5a) 14%,#0f1112)}
.spoils-pic{flex:0 0 40px;width:40px;height:40px;display:grid;place-items:center;overflow:hidden}
.spoils-pic>*{max-width:40px;max-height:40px}
.spoils-name{min-width:0;font:600 .875rem/1.2 system-ui;color:var(--rarity,#efe6d2);overflow-wrap:anywhere}
.spoils-name small{display:block;font:500 .75rem/1.2 system-ui;color:#c9bfa8}
.spoils-more{grid-column:1/-1;font:.8125rem/1.3 system-ui;color:#c9bfa8;text-align:center}
.boss-spoils .spoils-hint{margin:2px 0 0;font:.75rem/1.2 system-ui;color:#9d9583}
.found-banner .spoils-items{grid-template-columns:1fr;margin:0}
@media(max-width:540px){.boss-spoils{top:auto;bottom:calc(218px + env(safe-area-inset-bottom));padding:10px 12px 8px}.spoils-title{font-size:1.125rem}.spoils-items{grid-template-columns:1fr 1fr}.spoils-name{font-size:.8125rem}}
@media(prefers-reduced-motion:reduce){.boss-spoils,.found-banner{transform:translate(-50%,0);transition:opacity .2s}}
.found-banner.wipe-line{width:min(440px,calc(100vw - 32px))}@media(max-width:540px){.found-banner,.found-banner.wipe-line{left:calc(50% - 30px);width:calc(100vw - 92px)}}/* a phone keeps the round buttons on the right in view */.wipe-line .wipe-line-text{margin:0;font:700 1rem/1.3 Georgia,serif;color:#f6d98f;text-wrap:balance}
.wipe-line .wipe-line-hint{margin:2px 0 0;font:.75rem/1.2 system-ui;color:#c9bfa8}
/* A calmer first half hour (public/first-half-hour.js, IRP_FIRST_HALF_HOUR_VERSION; hook plan change 3). The Quests screen's Travel button sits beside Open Map;
   skill points waiting show as a small button on the fight bar (on a phone, over the field above the Bag), which opens the Skill tree. */
.quest-next-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.quest-next-actions>button{min-height:44px}
.fhh-points{position:absolute;left:50%;bottom:calc(100% + 4px);transform:translateX(-50%);z-index:3;display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:4px 14px 4px 6px;border:1px solid #d9b46a;border-radius:18px;background:linear-gradient(180deg,#2a2118f2,#120d09f2);box-shadow:0 0 10px #f3c46a55,0 4px 12px #000c;color:#efe6d2;font:600 .8125rem/1 system-ui;cursor:pointer;pointer-events:auto;white-space:nowrap}
.fhh-points b{display:inline-grid;place-items:center;min-width:26px;height:26px;padding:0 4px;border-radius:13px;background:#d9b46a;color:#1b140c;font:700 .8125rem/1 system-ui}
.fhh-points:hover,.fhh-points:focus-visible{border-color:#f6d98f;box-shadow:0 0 14px #f3c46a88,0 4px 12px #000c;outline:none}
.fhh-points.fhh-loose{position:fixed;left:10px;bottom:calc(84px + env(safe-area-inset-bottom,0px));transform:none;z-index:95}
/* Docked in a phone fight's row of round buttons (public/first-half-hour.js dock; Drowned Meridian review, 20 Nov): round like BAG and BATTLE, the number
   inside, SKILLS under it in their word style. */
.fhh-points.fhh-docked{width:46px;height:46px;min-height:0;padding:0;gap:0;border-radius:50%;justify-content:center;z-index:112}/* over the bottom bar's shade (.pl-hud, z 111), like BATTLE */
.fhh-points.fhh-docked>span{display:none}
.fhh-points.fhh-docked::after{content:"SKILLS";position:absolute;bottom:-15px;left:50%;transform:translateX(-50%);font:700 10px/1 var(--uk-sans,system-ui,sans-serif);letter-spacing:.08em;color:#f2e2bd;white-space:nowrap;text-shadow:0 1px 2px #000,0 0 6px #000;pointer-events:none}
.fhh-points[hidden]{display:none}
@media(prefers-reduced-motion:no-preference){.fhh-points:not([hidden]){animation:fhh-in .35s ease-out}@keyframes fhh-in{from{opacity:0;translate:0 6px}to{opacity:1;translate:0 0}}}
/* Heroes meet Artisans (public/artisan-links.js, IRP_ARTISAN_LINKS_VERSION; hook plan change 7): the Tonic under a zone's wall line. */
.artisan-link{display:grid;gap:8px;margin:6px 0 10px;padding:10px 12px;border:1px solid #8f764566;border-left:3px solid var(--tonic,#c9a468);border-radius:6px;background:#0b1220b3}
.artisan-link p{margin:0;font-size:.875rem;line-height:1.4}.artisan-link-frost{--tonic:#9fd3f0}.artisan-link-fire{--tonic:#e8814a}.artisan-link-nature{--tonic:#8fd16a}.artisan-link-shadow{--tonic:#a98ad8}
.artisan-link-actions{display:flex;flex-wrap:wrap;gap:8px}.artisan-link-actions>button{min-height:40px}
/* Boss countdown (lib/boss-countdown.js, IRP_BOSS_COUNTDOWN_VERSION): 5 4 3 2 1 over the battlefield before a boss fight starts, then "Fight!". */
.boss-countdown{position:absolute;left:0;right:0;top:17%;z-index:305;display:flex;flex-direction:column;align-items:center;gap:2px;pointer-events:none;text-align:center;color:#f3d79c;text-shadow:0 0 2px #000,0 0 3px #000,0 2px 5px #000,0 0 18px #000,0 0 34px #7a2a0c}.boss-countdown[hidden]{display:none}.boss-countdown small{font:.75rem var(--ui,Arial);letter-spacing:3px;text-transform:uppercase;color:#e7cf9f}.boss-countdown b{font:normal clamp(3.25rem,8vw,6rem)/1 var(--serif,Georgia);color:#ffe3a6;-webkit-text-stroke:1.5px #1a0d05;paint-order:stroke fill;animation:boss-count .9s ease-out both}.boss-countdown.fight small{visibility:hidden}.boss-countdown.fight b{font-size:clamp(2.75rem,7vw,4.75rem);color:#ffd08a}@keyframes boss-count{0%{transform:scale(1.45);opacity:0}18%{transform:scale(1);opacity:1}100%{transform:scale(1);opacity:1}}@media (prefers-reduced-motion:reduce){.boss-countdown b{animation:none}}
/* Hero step card (whole-game review item 12, 18 Nov 2026; public/hero-steps.js, IRP_HERO_STEPS_VERSION). One card for the hero's first hour, in the Artisan card's place:
   top left under the top bar on a computer, the top of the screen on a phone. It stands in for the Combat is automatic and You escaped cards.
   On a full page (Quests, Hero) it folds to a pill in the bottom bar's row since 22 Nov 2026 (below; a tap opens it where it covers least, public/hero-steps.js place).
   Polish, 21 Nov 2026: a solid background like the Artisan card's (page text showed through it), the step's sentence on a phone's full pages too,
   Skip steps in the top corner when there is no main button (.hs-nogo: no empty row), no step bar on a phone (the step line says it; the card stays
   compact over the fight), and messages clear of the bottom bar on a computer (html.hs-toast-up). */
.hero-steps{position:fixed;z-index:235;left:16px;top:72px;width:min(340px,calc(100vw - 32px));box-sizing:border-box;padding:10px 14px 10px;background:linear-gradient(180deg,#1f211d,#131617);border:1px solid #b68f56;border-radius:8px;box-shadow:0 0 0 1px #d9b46a33,0 10px 26px #000a;color:#efe6d2;opacity:0;transform:translateY(-6px);transition:opacity .3s,transform .3s;pointer-events:none}
.hero-steps.shown{opacity:1;transform:none;pointer-events:auto}
.hero-steps-count{display:block;margin:0 0 3px;font:700 .6875rem/1.2 system-ui,sans-serif;letter-spacing:.12em;text-transform:uppercase;color:#f0cf86}
.hero-steps-title{display:block;margin:0 0 4px;font:500 1.125rem/1.25 Georgia,serif;color:#f3e3bd}
.hero-steps-text{margin:0 0 8px;font-size:.875rem;line-height:1.4;color:#e7ddc6}
.hero-steps-actions{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px}
.hero-steps-go{min-height:var(--uk-tap,44px);padding:9px 22px;border:1px solid #e6c98f;border-radius:var(--uk-radius,6px);background:linear-gradient(180deg,#c9a468,#8f6f3c);color:#1b1509;font:700 .875rem/1.3 system-ui;box-shadow:inset 0 1px 0 #fff2c95c,inset 0 0 0 2px #8a682f66,0 2px 5px #0005;cursor:pointer}
.hero-steps-skip{min-height:44px}
.hero-steps-bar{display:flex;gap:4px;margin-top:8px}
.hero-steps-bar i{flex:1;height:4px;border-radius:2px;background:#ffffff26}
.hero-steps-bar i.done{background:#b68f56}
.hero-steps-bar i.now{background:#f0cf86}
html.hs-on [data-combat-intro],html.hs-on .prison-caption.prison-card{display:none!important}
html.hs-on .hero-steps.hs-nogo .hero-steps-actions{position:absolute;top:0;right:0}
.hero-steps.hs-nogo .hero-steps-skip{padding:0 14px}
.hero-steps.hs-nogo .hero-steps-title{margin-right:84px}
.hero-steps.hs-nogo .hero-steps-text{margin-bottom:0}
/* "Victory" as a boss falls where it would meet the card: the card goes at once, with no fade (public/hero-steps.js quick, 22 Nov 2026 live check at 390). */
.hero-steps.hs-quick{transition:none}
/* Folded (22 Nov 2026 live check: on full pages and the phone Map the card sat on page text and a pin). On a full page, and on the Map where no place for the
   whole card is clear, it is a pill in the bottom bar's row, in the card's own colours; a tap opens the card (with Hide to fold it again). public/hero-steps.js place. */
.hero-steps-pill,.hero-steps-fold{display:none}
.hero-steps.hs-fold{width:max-content;right:auto;padding:0;border-radius:22px}
.hero-steps.hs-fold>:not(.hero-steps-pill){display:none}
.hero-steps.hs-fold .hero-steps-pill{display:flex;align-items:center;gap:10px;min-height:44px;padding:0 18px;border:0;border-radius:22px;background:none;color:#f3e3bd;white-space:nowrap;cursor:pointer}
.hero-steps-pill-n{font:700 .6875rem/1.2 system-ui,sans-serif;letter-spacing:.12em;text-transform:uppercase;color:#f0cf86}
.hero-steps-pill-t{font:500 1rem/1.2 Georgia,serif;color:#f3e3bd}
.hero-steps.hs-open .hero-steps-fold{display:inline-flex;align-items:center;min-height:44px;margin-left:0}
.hero-steps.hs-nogo.hs-open .hero-steps-title{margin-right:150px}
@media(min-width:761px){html.hs-toast-up #toast:not(.notice){bottom:var(--hs-toast-lift)!important}}
@media(max-width:760px){.hero-steps{left:12px;right:12px;width:auto;padding:8px 12px}.hero-steps-title{font-size:1rem;margin-bottom:2px}.hero-steps-text{font-size:.8125rem;line-height:1.35;margin-bottom:6px}.hero-steps-bar{display:none}.hero-steps.hs-nogo .hero-steps-skip{padding:0 12px}.hero-steps.hs-fold{right:auto;width:max-content}.hero-steps.hs-fold .hero-steps-pill{padding:0 12px}.hero-steps-pill-t{display:none}.hero-steps-pill-n{letter-spacing:.06em}.hero-steps.hs-nogo.hs-open .hero-steps-title{margin-right:130px}}

/* /town-map.css */
.town-map-page{padding:22px;max-width:1700px;margin:auto}.town-map-heading{display:flex;justify-content:space-between;gap:16px;align-items:center}.town-map-heading h1{margin:0 0 18px}.town-map-heading>span{color:#bdb49d}.town-map-layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:18px}.town-map-layout>section{min-width:0}.town-viewport{position:relative;height:clamp(430px,65dvh,720px);overflow:hidden;border:1px solid #987844;border-radius:8px;background:#1e211e;touch-action:pan-y pinch-zoom;isolation:isolate}.town-world{position:absolute;width:2400px;height:1600px;transform-origin:0 0}.town-ground{position:absolute;inset:0;max-width:none;width:2400px;height:1600px;pointer-events:none}.town-npc{min-width:calc(44px / var(--town-scale,.65));min-height:calc(44px / var(--town-scale,.65));position:absolute;transform:translate(-50%,-100%);width:105px;height:155px;padding:0;background:none;border:0;box-shadow:none;display:flex;justify-content:center;align-items:end;overflow:visible}.town-npc:hover{filter:drop-shadow(0 0 5px #e6c887)}.town-npc-sprite{height:140px;width:90px;overflow:hidden;filter:drop-shadow(0 3px 2px #0009);pointer-events:none}.town-name{position:absolute;left:50%;bottom:151px;transform:translateX(-50%);width:190px;padding:5px 8px;border-radius:4px;background:#101b1eea;color:#f9e5b3;font:17px/1.2 Georgia,serif;white-space:normal;pointer-events:none}.town-name small{display:block;font:13px/1.5 Arial,sans-serif;color:#d4cbbb}.town-marker{position:absolute;bottom:209px;left:50%;transform:translateX(-50%);font:bold 44px/1 Georgia,serif;text-shadow:0 3px 2px #000,0 0 10px #000;pointer-events:none}.gold{color:#ffce55}.blue{color:#75caff}.town-hero{position:absolute;transform:translate(-50%,-100%);width:105px;height:150px;pointer-events:none;z-index:550}.town-hero-body{position:absolute;left:50%;bottom:0}.town-hero .unit-model{position:absolute;width:105px;height:140px;left:-52.5px;top:-140px;object-fit:contain;object-position:bottom;max-width:none;filter:drop-shadow(0 3px 2px #0009)}.town-hero>span{position:absolute;bottom:154px;left:50%;transform:translateX(-50%);max-width:230px;min-width:140px;background:#142229d9;color:#c2ecff;text-align:center;padding:4px;font-size:16px;overflow-wrap:anywhere}.town-route{position:absolute;inset:0;width:2400px;height:1600px;pointer-events:none}.town-route path{fill:none;stroke:#b4e1ed;stroke-width:4;stroke-dasharray:7 9;opacity:.7}.town-destination{position:absolute;width:26px;height:14px;border:3px solid #d9efff;border-radius:50%;transform:translate(-50%,-50%);pointer-events:none}.town-controls{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.town-controls button{min-height:44px;white-space:normal}.town-paths{padding:18px;border:1px solid #776546;border-radius:8px;background:linear-gradient(#222a2c,#101a20)}.town-paths h2{font-size:1.4375rem}.town-path{display:flex;align-items:center;gap:12px;width:100%;min-height:74px;text-align:left;margin-bottom:10px;padding:12px;background:#152229;border:1px solid #687064;border-radius:5px}.town-path>span:nth-child(2){flex:1;min-width:0}.town-path strong,.town-path small{display:block;overflow-wrap:anywhere}.town-path small{margin-top:5px;color:#b6c1bd;line-height:1.5}.town-path-marker{font:bold 1.8125rem Georgia,serif;min-width:22px;text-align:center}.town-marker-key{font-size:.75rem;line-height:1.5}.town-marker-key p{margin:8px 0}.town-marker-key b{font:1.25rem Georgia,serif;margin-right:8px}.town-paths>.red-button{width:100%;white-space:normal;min-height:44px;margin-top:12px}.town-growth{margin-top:18px;padding:14px;border:1px solid #5b6259;border-radius:5px}.town-growth summary{min-height:44px;cursor:pointer;align-content:center}.town-growth li{line-height:1.6;margin:12px 0}.town-tutorial>section{width:min(610px,calc(100vw - 28px));max-height:calc(100dvh - 32px);overflow:auto;padding:22px}.town-tutorial header{display:flex;justify-content:space-between;align-items:start;gap:16px}.town-tutorial header p{overflow-wrap:anywhere}.town-tutorial header button{flex-shrink:0;min-width:44px;min-height:44px}.town-tutorial p{font-size:1rem;line-height:1.6}.town-tutorial h2{font-size:1.5625rem}.town-demo{display:grid;justify-items:center;gap:6px;padding:18px;margin:18px 0;border:1px solid #897547;background:#111d22;border-radius:8px;text-align:center;color:#e9d8ad;overflow-wrap:anywhere}.town-demo>span:not(.town-demo-arrow){padding:10px;border:1px solid #4f6765;border-radius:5px;width:100%}.town-demo-arrow{color:#89cbd3}.town-tutorial-actions{display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap}.town-tutorial-actions button{min-height:44px;white-space:normal;overflow-wrap:anywhere}.whiskey-dialog header p{min-width:0;overflow-wrap:anywhere}
@media(max-width:1050px){.town-map-layout{grid-template-columns:minmax(0,1fr)}.town-paths{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.town-paths>h2,.town-paths>.eyebrow,.town-marker-key,.town-paths>.red-button{grid-column:1/-1}.town-path{margin:0}.town-viewport{height:500px}}
@media(max-width:600px){.town-map-page{padding:12px}.town-map-heading{display:block}.town-map-heading>span{display:none}.town-map-page .eyebrow{letter-spacing:.08em}.town-viewport{height:min(58dvh,480px);min-height:350px}.town-paths{padding:12px;grid-template-columns:minmax(0,1fr)}.town-controls button{flex:1 1 100px;font-size:.8125rem}.town-tutorial>section{padding:16px}.town-tutorial-actions button{flex:1 1 100%}}

.town-service-seal{display:grid;place-items:center;width:100px;height:100px;border:3px solid #b49761;border-radius:50%;background:radial-gradient(#344746,#14252b);color:#edd3a5;font:58px Georgia,serif;box-shadow:0 8px 8px #0008}.town-viewport[data-overview="true"]{height:auto;min-height:0;aspect-ratio:3/2}.town-paths{max-height:650px;overflow:auto}.town-path{min-height:58px;padding:10px;margin-bottom:8px}.town-paths h2{margin-top:0}.town-path small{font-size:.75rem}.town-viewport[data-overview="true"] .town-npc{width:120px;height:150px}.town-map-layout{grid-template-columns:minmax(0,1fr) 245px}@media(max-width:1050px){.town-map-layout{grid-template-columns:minmax(0,1fr)}.town-paths{max-height:none}}

.town-resident-sprite{display:block;width:auto;max-width:none;flex-shrink:0;object-fit:contain;object-position:bottom;pointer-events:none;filter:drop-shadow(0 3px 2px #0009)}

/* Residents stay identifiable without hovering. */
.town-name{opacity:1;font-size:20px;width:max-content;max-width:220px;padding:3px 7px;text-align:center}.town-name small{font-size:15px}.town-npc[data-town-kind="storage"] .town-name{bottom:75px;max-width:130px}.town-npc[data-town-kind="storage"] .town-name small{display:none}.town-npc:hover .town-name,.town-npc:focus-visible .town-name{opacity:1}.town-npc:focus-visible{outline:2px solid #f6d584;outline-offset:6px;border-radius:6px}.town-viewport[data-overview="true"] .town-npc{min-width:0;min-height:0;pointer-events:none}.town-service-seal{width:72px;height:88px;border-radius:5px;font-size:44px}

.town-hero{height:200px}.town-hero>.town-player-name{bottom:calc(167px*var(--town-hero-lift,1));min-width:0;max-width:220px;background:#142229bd;color:#f4eee4;font-size:18px;line-height:1.2;padding:3px 7px;border-radius:3px}.town-player-arrow{position:absolute;bottom:calc(151px*var(--town-hero-lift,1));left:50%;transform:translateX(-50%);width:0;height:0;border-left:6px solid transparent;border-right:6px solid transparent;border-top:9px solid #ed5353;filter:drop-shadow(0 1px 1px #000)}

.town-paths>.town-service-hint{grid-column:1/-1;margin:0 0 12px}
/* Name labels: town-map.js createLabelFit moves each one inside the view and clear of its neighbours (--label-dx/--label-dy, world pixels).
   View whole town keeps the names (they used to be hidden), counter-scaled to a readable on-screen size and without the role line. */
.town-npc .town-name{z-index:1;transform:translate(calc(-50% + var(--label-dx,0px)),var(--label-dy,0px))}
.town-viewport[data-overview="true"]{--town-label-px:13px}
.town-viewport[data-overview="true"] .town-npc .town-name{display:block;width:max-content;max-width:none;white-space:nowrap;font-size:calc(var(--town-label-px) / var(--town-scale,.38));line-height:1.2;padding:calc(1px / var(--town-scale,.38)) calc(5px / var(--town-scale,.38));border-radius:calc(3px / var(--town-scale,.38));box-shadow:0 0 0 calc(1px / var(--town-scale,.38)) #c9a86a66}
.town-viewport[data-overview="true"] .town-npc .town-name small{display:none}
.town-viewport[data-overview="true"] .town-hero>.town-player-name{width:max-content;max-width:none;font-size:calc(var(--town-label-px) / var(--town-scale,.38));padding:calc(1px / var(--town-scale,.38)) calc(5px / var(--town-scale,.38));border-radius:calc(3px / var(--town-scale,.38))}
.town-viewport[data-overview="true"] .town-marker{font-size:calc(var(--town-label-px) * 2.1 / var(--town-scale,.38))}
@media(max-width:540px){.town-viewport[data-overview="true"]{--town-label-px:11px}}
/* Shared Town hub (IRP_TOWN_HUB_VERSION): other players on the square. Same figure box as your own hero, a cooler name plate, a small walking bob. */
.town-visitor{z-index:1}
/* At least 11 px on screen however far the camera is out (the hub camera goes to 0.5), never smaller than before. */
.town-visitor>.town-player-name{background:#10202ccc;color:#cfe3f4;font-size:max(16px,calc(11px / var(--town-scale,.65)))}
/* View whole town: a crowd's names would bury the residents' names, so other players show as figures only there (Follow character shows their names). */
.town-viewport[data-overview="true"] .town-visitor>.town-player-name{display:none}
/* A soft ground shadow instead of the per-picture drop-shadow filter: with a dozen walking figures the filter was the largest share of the page's frame time. */
.town-visitor .unit-model{filter:none}
.town-visitor>.town-hero-body::before{content:"";position:absolute;left:-30px;top:-10px;width:60px;height:16px;border-radius:50%;background:radial-gradient(closest-side,#000a,#0000);pointer-events:none}
.town-visitor[data-walking="true"] .unit-model{animation:town-visitor-walk .46s ease-in-out infinite}
@keyframes town-visitor-walk{0%,100%{translate:0 0}50%{translate:0 -7px}}
/* Someone standing on top of your own hero (often at the waypoint) fades back, so your hero and its name always read first. */
.town-visitor[data-near="true"]{opacity:.45}.town-visitor[data-near="true"]>.town-player-name{visibility:hidden}
.town-hub-note{margin-left:auto;align-self:center;color:#bdb49d}
@media (prefers-reduced-motion:reduce){.town-visitor[data-walking="true"] .unit-model{animation:none}}

/* Whole-town view and town screen on the UI kit (IRP_TOWN_LAYOUT_VERSION=1, default off; public/town-map.js renderWhole). Off: no .town-whole on the page, nothing below applies. */
.town-whole{display:grid;gap:14px}.town-map-page.town-whole{max-width:2600px}/* wide screens: the map grows with the window (Feal, 20 Oct) */
.town-whole .uk-head h1{margin:0}
.town-whole .town-map-layout{grid-template-columns:minmax(0,1fr) 300px;gap:14px;align-items:start}
.town-whole-map{padding:10px}
/* The whole town fits: 3:2 like the painting, never taller than the screen leaves room for, so the map never needs scrolling. */
.town-whole .town-viewport{height:auto;min-height:0;aspect-ratio:3/2;width:100%;margin:0 auto;border-color:#b69a60aa}
/* Taps (QA 19 Oct): the 40 px tap squares overlapped their neighbours. The map now sends a tap to the single nearest person within reach
   (IRPTownMap.pick in public/app.js): the nearest figure or name plate, so neither takes taps itself. */
.town-whole .town-viewport[data-overview="true"] .town-npc{pointer-events:none}
.town-whole .town-viewport[data-overview="true"] .town-npc .town-name{cursor:pointer}
.town-short{display:none}
.town-whole .town-group{display:none;width:90px;height:80px}
.town-whole .town-controls{align-items:center;margin:10px 0 0}
.town-whole .town-controls .small-note{margin:0 0 0 auto;color:#bdb49d}
.town-whole-services{max-height:none;padding:16px}
.town-whole-services h2{margin:0 0 10px}
.town-whole-row{display:flex;align-items:center;gap:10px;min-height:56px;padding:8px 10px;margin:0 0 6px;background:#13212acc;border:1px solid #b69a6040;border-radius:6px}
.town-whole-row:hover,.town-whole-row:focus-visible{border-color:#e6c887;background:#1a2c36}
.town-whole-row>span:nth-child(2){flex:1;min-width:0}
.town-whole-row strong{font:1rem Georgia,serif;color:#f4e3b5}
.town-whole-row small{margin-top:2px;font-size:.75rem;line-height:1.35;color:#b6c1bd}
.town-whole-row .town-path-marker{font-size:1.5rem;min-width:18px}
.town-whole-key{display:flex;flex-wrap:wrap;gap:6px 14px;margin:10px 0 0;font-size:.75rem;color:#bdb49d}
.town-whole-key b{font:1.1rem Georgia,serif;margin-right:4px}
@media(max-width:1050px){.town-whole .town-map-layout{grid-template-columns:minmax(0,1fr)}.town-whole-services{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:6px 8px}.town-whole-services>h2,.town-whole-key{grid-column:1/-1}.town-whole-row{margin:0}.town-whole .town-viewport{width:100%}}
/* Phones: fourteen names do not fit on a 360 px map, so the map shows quest marks and your own name, plus the name of whoever you are walking to; the list below names everyone. */
/* Wide screens list only the people without their own menu entry; phones list everyone, since the side menu is folded away. */
@media(min-width:601px){.town-whole-row-menu{display:none}}
/* Phones (QA 19 Oct): every place shows a short name (Blacksmith, Mayor, Sage...) next to its person. Things painted close together share one name
   and one tap (IRPTownMap.GROUPS: Town Hall steps, Guild Hall). The map runs almost edge to edge so the town is as big as the screen allows. */
@media(max-width:600px){.town-whole .town-viewport[data-overview="true"] .town-npc .town-name>.town-full{display:none}.town-whole .town-viewport[data-overview="true"] .town-npc .town-name>.town-short{display:inline}.town-whole .town-viewport[data-overview="true"] .town-grouped .town-name{display:none}.town-whole .town-group{display:block}.town-whole .town-whole-map.uk-frame{--uk-frame-w:4px;padding:4px}.town-whole{gap:10px}.town-map-page.town-whole{padding-left:4px;padding-right:4px}.town-whole-map{padding:2px}.town-whole .town-controls .small-note{display:none}.town-whole .town-controls button{flex:1 1 120px}}
/* Wide screens: the services list takes the map's height and scrolls inside itself, so the page itself does not grow past the map. */
/* Wide screens (Feal, 20 Oct): the town header, the walk buttons and the services list share one column beside the map, so the map is not pushed down
   by the header and can use the full height of the window, and so its full width. The column takes the map's height and only the list scrolls. */
@media(min-width:1051px){.town-whole .town-map-layout{align-items:stretch;grid-template-columns:auto minmax(300px,1fr)}.town-whole-map{align-self:start}.town-whole-side{display:flex;flex-direction:column;gap:12px;height:var(--town-room,0px);min-height:100%;min-width:0}:root .shell .town-whole .town-whole-side>.uk-head{grid-template-columns:auto minmax(0,1fr);min-height:0;gap:8px 12px;padding:12px 14px}:root .shell .town-whole .town-whole-side>.uk-head>.uk-stats{grid-column:1/-1;grid-row:auto;padding:8px 10px;border:0;border-radius:var(--uk-radius);background:var(--uk-navy-0)}.town-whole-side>.current-lesson{margin:0}.town-whole .town-whole-side>.town-controls{flex-wrap:wrap;margin:0}.town-whole .town-whole-side>.town-controls .small-note{margin:0;flex-basis:100%}.town-whole-services{flex:1 1 0;min-height:0;overflow:auto;display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));align-content:start;gap:6px 8px}.town-whole-services>h2,.town-whole-key{grid-column:1/-1}.town-whole-services>.town-whole-row{margin:0}}
/* Narrower screens: the column dissolves, the header goes back above the map and the buttons and list follow it. */
@media(max-width:1050px){.town-whole-side{display:contents}.town-whole-side>.uk-head,.town-whole-side>.current-lesson{order:-1}.town-whole-side>.current-lesson{display:none}/* New-player review (26 Oct): on phones Back to Battle sits just above this note, which said the same in an 80 px box */.town-whole .town-whole-side>.town-controls{margin:0}}
/* Bigger town (stonewake-town-v3, same switch): the buildings are painted smaller than on the old square, so people and your hero stand at 75% of
   their old size, scaled from their feet. Name plates and quest marks sit lower to match. The notice board, mailbox and chests are painted into the
   picture, so their tap spots cover the painting and draw nothing. */
.town-world[data-art="v3"] .town-npc{height:116px}
.town-world[data-art="v3"] .town-npc>:is(.town-npc-sprite,.town-resident-sprite,.town-prop-sprite,.town-service-seal){transform:scale(.75);transform-origin:50% 100%}
.town-world[data-art="v3"] .town-npc .town-name{bottom:113px}
.town-world[data-art="v3"] .town-npc .town-marker{bottom:157px}
.town-world[data-art="v3"] .town-npc:has(.town-painted-spot){width:90px;height:80px}
.town-world[data-art="v3"] .town-npc:has(.town-painted-spot) .town-name{bottom:84px}
/* Town Hall steps (22 Oct): the account chest's name sits below the chest, on the cobbles in front, clear of WhiskeyJack's name and quest mark. */
.town-world[data-art="v3"] .town-npc[data-town-npc="chest"]:has(.town-painted-spot) .town-name{bottom:auto;top:calc(100% + 6px)}
.town-world[data-art="v3"] .town-npc:has(.town-painted-spot) .town-marker{bottom:120px}
.town-painted-spot{display:block;width:100%;height:100%}
.town-world[data-art="v3"] .town-hero-body{transform:scale(.75);transform-origin:0 0}
.town-world[data-art="v3"] .town-hero>.town-player-name{bottom:calc(125px*var(--town-hero-lift,1))}
/* Wider than a phone (Feal, 20 Oct): people and your hero stand at 85%, so they read beside the buildings now the map is bigger. Phones keep 75%. */
@media(min-width:601px){.town-whole .town-world[data-art="v3"] .town-npc:not(:has(.town-painted-spot)){height:131px}.town-whole .town-world[data-art="v3"] .town-npc>:is(.town-npc-sprite,.town-resident-sprite,.town-prop-sprite,.town-service-seal){transform:scale(.85)}.town-whole .town-world[data-art="v3"] .town-npc:not(:has(.town-painted-spot)) .town-name{bottom:128px}.town-whole .town-world[data-art="v3"] .town-npc:not(:has(.town-painted-spot)) .town-marker{bottom:172px}.town-whole .town-world[data-art="v3"] .town-hero-body{transform:scale(.85)}.town-whole .town-world[data-art="v3"] .town-hero>.town-player-name{bottom:calc(142px*var(--town-hero-lift,1))}}
.town-world[data-art="v3"] .town-player-arrow{bottom:calc(113px*var(--town-hero-lift,1))}
/* ART32 part 7: the account and guild chest pictures in the services list and the Town Hall steps / Guild Hall chooser (bigger town only). */
.town-icon-art{display:block;width:34px;height:34px;object-fit:contain}
/* First hour (IRP_FIRST_HOUR_VERSION, public/town-map.js call): a quest mark that is easy to spot on the square and in the list. */
.town-marker.town-marker-call{display:grid;place-items:center;width:1.3em;height:1.3em;border-radius:50%;background:radial-gradient(circle at 50% 40%,#4a3510,#140e05 70%);border:.07em solid #ffce55;text-shadow:0 2px 2px #000;box-shadow:0 0 0 .1em #000a,0 0 .4em .05em #ffce5599;animation:town-call 1.8s ease-in-out infinite}
@keyframes town-call{0%,100%{transform:translateX(-50%) translateY(0);box-shadow:0 0 0 .1em #000a,0 0 .3em 0 #ffce5577}50%{transform:translateX(-50%) translateY(-.12em);box-shadow:0 0 0 .1em #000a,0 0 .6em .12em #ffce55cc}}
.town-path-marker.town-marker-call{display:grid;place-items:center;min-width:0;width:38px;height:38px;border-radius:50%;background:radial-gradient(circle at 50% 40%,#4a3510,#140e05 70%);border:2px solid #ffce55;box-shadow:0 0 10px #ffce5588;font-size:1.375rem}
@media(prefers-reduced-motion:reduce){.town-marker.town-marker-call{animation:none}}
/* Artisans in the square (public/town-hub.js, public/artisan-town-page.js): an Artisan is its own idle or walk clip, 8 x 7 frames, feet at the spot like a hero's. */
.town-artisan{position:absolute;left:50%;bottom:-23px;margin-left:-115px;width:230px;height:230px;background-size:800% 700%;background-repeat:no-repeat;filter:drop-shadow(0 3px 3px #000a);pointer-events:none}.town-hero.is-flip>.town-artisan{transform:scaleX(-1)}.town-hero.is-artisan>.town-player-name,.town-hero.art-town-me>.town-player-name{bottom:158px}
/* An Artisan is taller than the hero the painted square's name height was set for (its head top is 168px above its feet in every look), so its name and arrow sit over its head, not behind it (Pat, 2 Nov: the name read "Cl…ner"). */
.town-world[data-art] .town-hero:is(.is-artisan,.art-town-me)>.town-player-name{bottom:186px;z-index:1}.town-world[data-art] .town-hero.art-town-me>.town-player-arrow{bottom:174px;z-index:1}
/* Whole town (IRP_TOWN_WIDE_VERSION, public/town-map.js): one painting of all of Stonewake, 3478 x 1957 town px. */
.town-world[data-wide="true"],.town-world[data-wide="true"]>:is(.town-ground,.town-route),.town-world[data-wide="true"] .town-life-sky{width:3478px;height:1957px}
/* Stonewake's Masters (ART 131, public/town-map.js): the bronze Artisan on its plinth, on the cobbles right of the portal, a little smaller than the painted lion. Its name sits over its head. */
.town-npc:is([data-town-npc="masters"],[data-art-town-npc="masters"]){width:150px;height:200px}
.town-npc:is([data-town-npc="masters"],[data-art-town-npc="masters"]) .town-prop-sprite{width:191px;height:250px;max-width:none;object-fit:contain;object-position:bottom;filter:drop-shadow(0 4px 3px #0009)}
.town-whole .town-world[data-art="v3"] .town-npc:is([data-town-npc="masters"],[data-art-town-npc="masters"]):not(:has(.town-painted-spot)){height:200px}
.town-whole .town-world[data-art="v3"] .town-npc:is([data-town-npc="masters"],[data-art-town-npc="masters"]):not(:has(.town-painted-spot)) .town-name{bottom:196px}
@media(min-width:601px){.town-whole .town-world[data-art="v3"] .town-npc:is([data-town-npc="masters"],[data-art-town-npc="masters"]):not(:has(.town-painted-spot)) .town-name{bottom:222px}}
.town-masters .lb-masters{margin-top:10px}
/* One size for everyone in town (Pat, 6 Nov: "towns NPCs are half the size of artisan sprites"). A hero stands 167 px before the town's 75% (85% wider
   than a phone); townspeople were drawn 140 px, and Artisans skipped the town's 75% / 85%, so they stood a fifth (a third on a phone) taller than heroes.
   Now townspeople stand at a hero's height (x1.19; signs, chests and the statue keep their size) and Artisans take the hero's town size, feet where they were. */
.town-whole .town-world[data-art="v3"] .town-npc:has(>:is(.town-npc-sprite,.town-resident-sprite)){height:136px}
.town-whole .town-world[data-art="v3"] .town-npc>:is(.town-npc-sprite,.town-resident-sprite){transform:scale(.89)}
.town-whole .town-world[data-art="v3"] .town-npc:has(>:is(.town-npc-sprite,.town-resident-sprite)) .town-name{bottom:133px}
.town-whole .town-world[data-art="v3"] .town-npc:has(>:is(.town-npc-sprite,.town-resident-sprite)) .town-marker{bottom:177px}
.town-whole .town-world[data-art="v3"] .town-artisan{scale:.75;transform-origin:50% calc(100% - 23px)}
.town-whole .town-world[data-art="v3"] .town-hero:is(.is-artisan,.art-town-me)>.town-player-name{bottom:140px}
.town-whole .town-world[data-art="v3"] .town-hero.art-town-me>.town-player-arrow{bottom:131px}
@media(min-width:601px){
 .town-whole .town-world[data-art="v3"] .town-npc:has(>:is(.town-npc-sprite,.town-resident-sprite)){height:153px}
 .town-whole .town-world[data-art="v3"] .town-npc>:is(.town-npc-sprite,.town-resident-sprite){transform:scale(1.01)}
 .town-whole .town-world[data-art="v3"] .town-npc:has(>:is(.town-npc-sprite,.town-resident-sprite)) .town-name{bottom:150px}
 .town-whole .town-world[data-art="v3"] .town-npc:has(>:is(.town-npc-sprite,.town-resident-sprite)) .town-marker{bottom:194px}
 .town-whole .town-world[data-art="v3"] .town-artisan{scale:.85}
 .town-whole .town-world[data-art="v3"] .town-hero:is(.is-artisan,.art-town-me)>.town-player-name{bottom:158px}
 .town-whole .town-world[data-art="v3"] .town-hero.art-town-me>.town-player-arrow{bottom:148px}
}

/* /town-talk.css */
/* Town talk (IRP_TOWN_TALK_VERSION, default off): speech bubbles and emotes in Waypoint Square. public/town-talk.js draws; nothing here exists while the switch is off.
   The town world is scaled by --town-scale, so sizes are divided by it to stay the same on screen at any zoom. */
.town-talk-layer{position:absolute;left:0;top:0;width:0;height:0;z-index:4000;pointer-events:none}
.town-bubble{position:absolute;width:max-content;max-width:calc(220px / var(--town-scale,.65));box-sizing:border-box;transform:translate(-50%,-100%);padding:calc(5px / var(--town-scale,.65)) calc(10px / var(--town-scale,.65));border:calc(1px / var(--town-scale,.65)) solid var(--uk-gold-dim,#8f7645);border-radius:calc(8px / var(--town-scale,.65));background:linear-gradient(180deg,#1b2a3cf2,#0e1824f2);box-shadow:0 calc(2px / var(--town-scale,.65)) calc(8px / var(--town-scale,.65)) #000a,inset 0 0 0 calc(1px / var(--town-scale,.65)) #0c1723;color:var(--uk-ivory,#eadbb9);font:500 calc(13px / var(--town-scale,.65))/1.3 var(--uk-sans,system-ui,sans-serif);text-align:center;overflow-wrap:anywhere;opacity:1;transition:opacity .4s ease;animation:town-bubble-in .18s ease-out}
.town-bubble::after{content:"";position:absolute;left:50%;top:100%;transform:translateX(-50%);border:calc(7px / var(--town-scale,.65)) solid transparent;border-top-color:var(--uk-gold-dim,#8f7645);border-bottom:0}
.town-bubble[data-channel="party"]{border-color:#8fb9dc}.town-bubble[data-channel="party"]::after{border-top-color:#8fb9dc}
.town-bubble[data-channel="guild"]{border-color:#7fc58a}.town-bubble[data-channel="guild"]::after{border-top-color:#7fc58a}
.town-bubble[data-kind="emote"]{font-style:italic;color:var(--uk-gold-text,#ffe1aa);border-color:var(--uk-gold,#d6b575)}
.town-bubble[data-kind="emote"]::after{border-top-color:var(--uk-gold,#d6b575)}
.town-bubble[data-kind="emote"]{display:flex;align-items:center;gap:calc(6px / var(--town-scale,.65));padding-left:calc(5px / var(--town-scale,.65))}
.town-bubble-art{flex:none;width:calc(32px / var(--town-scale,.65));height:calc(32px / var(--town-scale,.65));filter:drop-shadow(0 1px 1px #000a)}
.town-bubble[data-fading="true"]{opacity:0}
@keyframes town-bubble-in{from{opacity:0;scale:.85;translate:0 calc(6px / var(--town-scale,.65))}to{opacity:1;scale:1;translate:0 0}}
.town-viewport[data-overview="true"] .town-talk-layer{display:none}

/* Emotes: the hero's body moves (it pivots on the feet), the bubble names the emote. */
.town-hero[data-emote]>.town-hero-body{transform-origin:0 0}
.town-hero[data-emote="wave"]>.town-hero-body{animation:town-emote-wave 2.4s ease-in-out}
.town-hero[data-emote="cheer"]>.town-hero-body{animation:town-emote-cheer 2.4s ease-out}
.town-hero[data-emote="bow"]>.town-hero-body{animation:town-emote-bow 2.4s ease-in-out}
.town-hero[data-emote="laugh"]>.town-hero-body{animation:town-emote-laugh 2.4s linear}
.town-hero[data-emote="dance"]>.town-hero-body{animation:town-emote-dance 2.4s ease-in-out}
.town-hero[data-emote="flex"]>.town-hero-body{animation:town-emote-flex 2.4s ease-in-out}
@keyframes town-emote-wave{0%,100%{rotate:0deg}12%,46%,80%{rotate:-9deg}29%,63%{rotate:9deg}}
@keyframes town-emote-cheer{0%,100%{translate:0 0;scale:1}10%{translate:0 0;scale:1.04 .94}22%{translate:0 -44px;scale:.97 1.04}34%{translate:0 0;scale:1.04 .95}46%{translate:0 -44px;scale:.97 1.04}58%{translate:0 0;scale:1}}
@keyframes town-emote-bow{0%,100%{rotate:0deg;scale:1}25%,70%{rotate:-20deg;scale:1 .92}}
@keyframes town-emote-laugh{0%,100%{translate:0 0;scale:1}5%,15%,25%,35%,45%,55%,65%{translate:0 -6px;scale:1 .95}10%,20%,30%,40%,50%,60%,70%{translate:0 0;scale:1 1.02}}
@keyframes town-emote-dance{0%,100%{rotate:0deg;translate:0 0}12.5%{rotate:-10deg;translate:-14px -22px}25%{rotate:0deg;translate:0 0}37.5%{rotate:10deg;translate:14px -22px}50%{rotate:0deg;translate:0 0}62.5%{rotate:-10deg;translate:-14px -22px}75%{rotate:0deg;translate:0 0}87.5%{rotate:10deg;translate:14px -22px}}
@keyframes town-emote-flex{0%,100%{scale:1}20%,70%{scale:1.14}30%,60%{scale:1.08}}
@media (prefers-reduced-motion:reduce){.town-hero[data-emote]>.town-hero-body{animation:none}.town-bubble{animation:none;transition:none}}

/* The emote row, under the town controls and in the chat box. UI kit chips, made 44 px tall for touch. */
#townEmoteTray,#chatEmoteTray{margin-top:8px}
.town-emote-tray{padding:10px 12px 12px;border:1px solid var(--uk-gold-dim,#8f7645);border-radius:var(--uk-radius-card,6px);background:var(--uk-surface,linear-gradient(180deg,#29374a,#152131));box-shadow:var(--uk-rule)}
.town-emote-help{margin:0 0 8px;color:var(--uk-ivory-dim,#c9c3b4);font:400 .8125rem/1.35 var(--uk-sans,system-ui,sans-serif)}
.town-emote-help b{color:var(--uk-gold-text,#ffe1aa);font-weight:600}
.town-emote-tray .town-emote-chips{gap:8px}
.town-emote-tray .town-emote-chip{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:var(--uk-tap,44px);min-width:84px;padding:6px 10px 7px;border-radius:var(--uk-radius-card,6px);font-size:.875rem;line-height:1.1;cursor:pointer}
.town-emote-tray .town-emote-art{display:block;width:48px;height:48px;filter:drop-shadow(0 1px 2px #000a)}
.town-emote-tray .town-emote-chip[disabled] .town-emote-art{filter:grayscale(1) brightness(.7);opacity:.6}
.town-emote-tray .town-emote-chip:hover:not([disabled]),.town-emote-tray .town-emote-chip:focus-visible{border-color:var(--uk-gold-hi,#f0ce83);background:var(--uk-surface-hover,#35455b)}
.town-emote-tray .town-emote-chip:focus-visible{outline:2px solid var(--uk-focus,#f4cd86);outline-offset:2px}
.town-emote-tray .town-emote-chip[disabled]{cursor:not-allowed;border-color:var(--uk-locked,#6c7788);color:var(--uk-locked-text,#9aa3b0)}
@media (max-width:600px){.town-emote-tray .town-emote-chips{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.town-emote-tray .town-emote-chip{width:100%;min-width:0}}
#chatEmoteTray .town-emote-tray .town-emote-chips{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}#chatEmoteTray .town-emote-tray .town-emote-chip{width:100%;min-width:0;padding:6px 8px 7px}
/* In the chat box the Emote button sits beside + Item, and the emote row opens above the message box across the full width. */
#chatForm .chat-left-tools{grid-column:1;grid-row:2;display:flex;gap:6px;align-self:end}
#chatForm .chat-left-tools>button{grid-column:auto;grid-row:auto}
#chatForm [data-chat-emotes]{min-height:44px;padding:0 10px;border:1px solid #4d5d64;border-radius:10px;background:transparent;box-shadow:none;color:#c9d2d6;font:600 .75rem system-ui;white-space:nowrap}
#chatForm [data-chat-emotes][aria-expanded=true]{border-color:var(--chat-accent,#e4bc7f);color:var(--chat-accent,#e4bc7f)}
#chatForm #chatEmoteTray{grid-column:1/-1;grid-row:1;margin:0 0 4px}
#chatForm #chatEmoteTray[hidden]{display:none}

/* /town-life.css */
/* Living town (IRP_TOWN_LIFE_VERSION=1, default off; public/town-life.js). Only applies to a town map carrying data-life, which only the switch adds.
   data-life="on": ambient motion; "still": the game's or the device's reduced motion is on, so names behave the same but nothing moves on its own. */

/* Names show only for whoever you point at, tap or walk to, or for everyone while Names is pressed. Quest marks and the unread-mail count stay. */
.town-whole .town-viewport[data-life] .town-npc .town-name{visibility:hidden;opacity:0;transition:opacity .15s ease,visibility 0s linear .15s}
.town-whole .town-viewport[data-life] .town-npc:is([data-hover="true"],[data-target="true"],:focus-visible) .town-name,
.town-whole .town-viewport[data-life][data-names="all"] .town-npc .town-name{visibility:visible;opacity:1;transition:opacity .15s ease}
/* The name you point at also says what they do. */
.town-whole .town-viewport[data-life] .town-npc:is([data-hover="true"],:focus-visible) .town-name small{display:block;font:.72em/1.3 var(--uk-sans,system-ui,sans-serif);color:#c9c3b4;margin-top:.1em}
.town-whole .town-viewport[data-life][data-names="all"] .town-npc:not([data-hover="true"]) .town-name small{display:none}
.town-whole .town-viewport[data-life] .town-npc[data-hover="true"]{z-index:5000!important}
.town-whole .town-viewport[data-life] .town-npc:is([data-hover="true"],:focus-visible)>:is(.town-npc-sprite,.town-resident-sprite,.town-prop-sprite){filter:brightness(calc(1 - .38 * var(--town-dark))) saturate(calc(1 - .2 * var(--town-dark))) drop-shadow(0 0 calc(3px / var(--town-scale,.4)) #ffe1aacc) drop-shadow(0 3px 2px #0009)}
.town-whole .town-viewport[data-life] .town-npc[data-hover="true"]{cursor:pointer}
.town-whole .town-viewport[data-life][data-hovering="true"]{cursor:pointer}

/* Townspeople breathe, each at their own pace (--breath from public/town-life.js). Scaled from the feet, on top of their 75%/85% size. */
.town-whole .town-viewport[data-life="on"] .town-npc>:is(.town-npc-sprite,.town-resident-sprite){animation:town-life-breathe var(--breath,3.8s) ease-in-out var(--breath-at,0s) infinite}
@keyframes town-life-breathe{0%,100%{scale:1 1}50%{scale:1.012 1.028}}

/* ART74 (26 Oct): the day and night paintings over the evening one, faded by the player's clock (--day, --night from public/town-life.js).
   Lamps and windows are dark by day, so their glow fades out with it. */
.town-life-sky{position:absolute;inset:0;width:2400px;height:1600px;max-width:none;pointer-events:none;opacity:0;transition:opacity 20s linear}
.town-life-sky-day{opacity:var(--day,0)}
.town-life-sky-night{opacity:var(--night,0)}
.town-life-lamps{position:absolute;inset:0;opacity:calc(1 - var(--day,0));transition:opacity 20s linear}
/* At night (--night on the town, from public/town-life.js) townspeople, townsfolk and heroes away from the lamps are dimmed to sit in the dark square;
   --lamp (0 to 1, per person) keeps those under a lamp or a lit window bright. The usual drop shadows stay. */
.town-whole .town-viewport[data-life] :is(.town-npc,.town-hero,.town-life-folk){--town-dark:calc(var(--night,0) * (1 - var(--lamp,0)))}
.town-whole .town-viewport[data-life] .town-npc>:is(.town-npc-sprite,.town-resident-sprite,.town-prop-sprite),
.town-whole .town-viewport[data-life] .town-hero:not(.town-visitor) .unit-model{filter:brightness(calc(1 - .38 * var(--town-dark))) saturate(calc(1 - .2 * var(--town-dark))) drop-shadow(0 3px 2px #0009)}
/* Heroes walking are drawn on a canvas that carries its own shadow inline (public/actor-motion.js), so this one has to win over it. */
.town-whole .town-viewport[data-life] .town-hero .unit-motion{filter:brightness(calc(1 - .38 * var(--town-dark))) saturate(calc(1 - .2 * var(--town-dark))) drop-shadow(0 3px 3px #0006)!important}
.town-whole .town-viewport[data-life] :is(.town-life-folk-sprite,.town-visitor .unit-model){filter:brightness(calc(1 - .38 * var(--town-dark))) saturate(calc(1 - .2 * var(--town-dark)))}

/* Lit windows and lamps flicker; the portal stone pulses. Under everyone, over the painting. */
/* Pat, 29 Oct: the notice board, mailbox and other townspeople drew over the walkers. The layer no longer stacks on its own: the sky, lamps and
   effects stay just over the painting, and walkers, pigeons and the cat sort by how far down the square they are, with everyone else (z-index = feet). */
.town-life-ambient{position:absolute;inset:0;pointer-events:none}
.town-life-ambient>:not(.town-life-folk){z-index:1}
.town-life-glow{position:absolute;width:calc(var(--g,1)*84px);height:calc(var(--g,1)*84px);translate:-50% -50%;border-radius:50%;background:radial-gradient(circle,#ffdc9a70 0%,#ffb44a2e 38%,#ffb44a00 70%);opacity:0;will-change:opacity}
.town-life-portal{position:absolute;width:300px;height:220px;translate:-50% -50%;border-radius:50%;background:radial-gradient(ellipse,#9cc2ff66 0%,#6a5cff26 45%,#6a5cff00 70%);opacity:0;will-change:opacity,scale}
.town-viewport[data-life="on"] .town-life-glow{opacity:.7;animation:town-life-flicker var(--d,3s) ease-in-out var(--o,0s) infinite alternate}
/* Whole town (IRP_TOWN_WIDE_VERSION): the lamps glow steadily (Pat, 30 Oct: "the town looks verry jittery and laggy"; 43 lamps each flickering on their own held a
   computer without a graphics card near 33 frames a second, steady lamps near 58). */
.town-world[data-wide="true"] .town-life-glow{will-change:auto}.town-viewport[data-life] .town-world[data-wide="true"] .town-life-glow{opacity:.75;animation:none}
.town-viewport[data-life="on"] .town-life-portal{opacity:.8;animation:town-life-pulse 4.6s ease-in-out infinite}
@keyframes town-life-flicker{0%{opacity:.45}30%{opacity:.85}55%{opacity:.55}80%{opacity:.75}100%{opacity:.95}}
@keyframes town-life-pulse{0%,100%{opacity:.5;scale:.88}50%{opacity:1;scale:1.1}}

/* ART72 (24 Oct): chimney smoke, forge sparks and a swirl on the portal ring. 8 x 6 frames of 80 ms (3.84 s a loop): across a row in 0.64 s, down the rows in 3.84 s. */
.town-life-fx{position:absolute;width:var(--s);height:var(--s);background:no-repeat 0 0/calc(var(--s)*8) calc(var(--s)*6);opacity:.95}
.town-life-fx-smoke{background-image:url(/assets/town/life/chimney-smoke-v1.webp)}
.town-life-fx-sparks{background-image:url(/assets/town/life/forge-sparks-v1.webp)}
.town-life-fx-portal{background-image:url(/assets/town/life/portal-swirl-v1.webp)}
.town-viewport[data-life="on"] .town-life-fx{animation:town-life-fx-col .64s steps(8) infinite,town-life-fx-row 3.84s steps(6) infinite}
@keyframes town-life-fx-col{to{background-position-x:calc(var(--s)*-8)}}
@keyframes town-life-fx-row{to{background-position-y:calc(var(--s)*-6)}}

/* ART73 (24 Oct): five townspeople idle at work, 14 poses of 300 ms in one row (140 ms, the art's suggestion, looked rushed in town: Pat, 24 Oct). Each 512 px pose holds a 440 px figure standing 32 px above its
   bottom edge, drawn so the figure keeps the town's 140 px height (pose 163 px, sunk 10 px). Their idle replaces breathing. */
.town-whole .town-viewport[data-life] .town-npc>.town-life-idle{width:163px;height:163px;flex-shrink:0;margin-bottom:-10px;overflow:visible;background:no-repeat 0 0/calc(163px*14) 163px;animation:none}
/* Each on their own clock (--idle, --idle-at from public/town-life.js): 14 poses in the first 25% of a 15.6 to 19.6 s round (about 300 ms a pose), then a rest on pose 1
   (Pat, 24 Oct: "too in sync"; Reddit testers, 26 Oct: back to back it read as jittering and looping). */
.town-whole .town-viewport[data-life="on"] .town-npc>.town-life-idle{animation:town-life-idle var(--idle,17s) steps(14) var(--idle-at,0s) infinite}
@keyframes town-life-idle{25%{background-position-x:calc(163px*-14);animation-timing-function:step-start}0%,25.01%,100%{background-position-x:0}}

/* ART71 (24 Oct): townsfolk crossing the square and back, a cat and pigeons. People and animals share one scale: a 512 px pose drawn 205 px, so a
   300 px person stands 120 px, feet on the spot (soles 480 px down a pose). Sheets are one row of 14 poses; pigeons are 16 pecking frames, 8 x 2. */
.town-life-folk{position:absolute;left:0;top:0;width:0;height:0;translate:var(--ax) var(--ay)}
.town-life-folk-sprite{position:absolute;left:-102.5px;top:-192px;width:205px;height:205px;background:no-repeat 0 0/calc(205px*14) 205px;scale:var(--f,1) 1}
.town-life-cat{background-image:url(/assets/town/life/cat-idle-v1.webp)}
.town-life-pigeons{--s:110px;left:-55px;top:-92px;width:110px;height:110px;background-image:url(/assets/town/life/pigeons-peck-v1.webp);background-size:880px 220px}
.town-viewport[data-life="on"] .town-life-walk{animation:town-life-stroll var(--t) linear var(--lag,0s) infinite}
.town-viewport[data-life="on"] .town-life-walk>.town-life-folk-sprite{animation:town-life-steps 2.24s steps(14) var(--step-at,0s) infinite,town-life-turn var(--t) linear var(--lag,0s) infinite}
.town-viewport[data-life="on"] .town-life-cat{animation:town-life-steps 2.66s steps(14) infinite}
.town-viewport[data-life="on"] .town-life-pigeons{animation:town-life-fx-col .96s steps(8) infinite,town-life-peck 1.92s steps(2) infinite}
/* Pat, 29 Oct: flocks take off when someone walks near and land somewhere else (a roof half the time); the cat moves to another quiet corner
   (public/town-life.js critters). They rise and fade out, then drop in at the new spot. */
.town-life-flock.is-leaving>.town-life-folk-sprite,.town-life-roam.is-leaving>.town-life-folk-sprite{transition:translate .55s ease-in,opacity .55s ease-in;translate:18px -70px;opacity:0}
.town-life-roam.is-leaving>.town-life-folk-sprite{translate:40px 0}
.town-life-flock.is-landing>.town-life-folk-sprite,.town-life-roam.is-landing>.town-life-folk-sprite{animation-name:town-life-fx-col,town-life-peck,town-life-land;animation-duration:.96s,1.92s,.7s;animation-timing-function:steps(8),steps(2),ease-out;animation-iteration-count:infinite,infinite,1}
.town-life-roam.is-landing>.town-life-folk-sprite{animation:town-life-steps 2.66s steps(14) infinite,town-life-pad .7s ease-out 1}
@keyframes town-life-land{from{translate:-18px -70px;opacity:0}to{translate:0 0;opacity:1}}
@keyframes town-life-pad{from{translate:-40px 0;opacity:0}to{translate:0 0;opacity:1}}
@media (prefers-reduced-motion:reduce){.town-life-flock>.town-life-folk-sprite,.town-life-roam>.town-life-folk-sprite{transition:none!important}}
@keyframes town-life-stroll{0%,100%{translate:var(--ax) var(--ay)}50%{translate:var(--bx) var(--by)}}
@keyframes town-life-turn{0%,50%{scale:var(--f) 1}50.01%,100%{scale:calc(var(--f)*-1) 1}}
@keyframes town-life-steps{to{background-position-x:calc(205px*-14)}}
@keyframes town-life-peck{to{background-position-y:calc(var(--s)*-2)}}

/* A townsperson's short line, sized like the chat bubbles over heroes (public/town-talk.css). */
.town-life-bubble{position:absolute;left:50%;bottom:calc(100% + 46px);translate:calc(-50% + var(--bubble-dx,0px)) var(--bubble-dy,0px);width:max-content;max-width:calc(200px / var(--town-scale,.5));box-sizing:border-box;padding:calc(5px / var(--town-scale,.5)) calc(10px / var(--town-scale,.5));border:calc(1px / var(--town-scale,.5)) solid var(--uk-gold-dim,#8f7645);border-radius:calc(8px / var(--town-scale,.5));background:linear-gradient(180deg,#1b2a3cf2,#0e1824f2);box-shadow:0 calc(2px / var(--town-scale,.5)) calc(8px / var(--town-scale,.5)) #000a;color:var(--uk-ivory,#eadbb9);font:500 calc(12px / var(--town-scale,.5))/1.3 var(--uk-sans,system-ui,sans-serif);text-align:center;white-space:normal;pointer-events:none;z-index:2;animation:town-life-say .2s ease-out,town-life-hush .4s ease-in 3.2s forwards}
.town-life-bubble::after{content:"";position:absolute;left:calc(50% - var(--bubble-dx,0px));top:100%;translate:-50% 0;border:calc(5px / var(--town-scale,.5)) solid transparent;border-top-color:var(--uk-gold-dim,#8f7645)}
@keyframes town-life-say{from{opacity:0;scale:.85}to{opacity:1;scale:1}}
@keyframes town-life-hush{to{opacity:0}}

/* Phones: the town opens twice as close and taller, following your hero; drag sideways to look around. Whole town zooms back out. */
.town-whole .town-viewport[data-life][data-close="true"]{aspect-ratio:4/5;touch-action:pan-y}
.town-life-whole{display:none}
@media(max-width:600px){.town-whole .town-controls .town-life-whole{display:inline-flex;justify-content:center;align-items:center}
 /* Four buttons under the phone map: two rows of two, never one left alone. */
 .town-whole .town-controls:has([data-town-wholeview]){display:grid;grid-template-columns:1fr 1fr;gap:8px}.town-whole .town-controls:has([data-town-wholeview]) [hidden]{display:none}}
.town-whole .town-controls [data-town-names][aria-pressed="true"],.town-whole .town-controls [data-town-wholeview][aria-pressed="true"]{border-color:var(--uk-gold,#d6b575);color:var(--uk-gold-text,#ffe1aa)}

.town-viewport[data-life="still"] *{animation:none!important}
@media (prefers-reduced-motion:reduce){.town-viewport[data-life] *{animation:none!important}}

/* Pat, 28 Oct ("NPCs that aren't animated, like the town mayor ... talk or do a specific animation"): whoever says a line nods and leans while it shows,
   and the five with work poses (ART73) go through them once as they talk. Idle art for the rest is ChatGPT item 113. */
.town-whole .town-viewport[data-life="on"] .town-npc.is-talking>:is(.town-npc-sprite,.town-resident-sprite):not(.town-life-idle){animation:town-life-talk 1.2s ease-in-out 3;transform-origin:50% 100%}
.town-whole .town-viewport[data-life="on"] .town-npc.is-talking>.town-life-idle{animation:town-life-idle-talk 4.2s steps(14) 1}
@keyframes town-life-talk{0%,100%{rotate:0deg;translate:0 0}30%{rotate:-2deg;translate:0 -4px}65%{rotate:1.5deg;translate:0 -1px}}
@keyframes town-life-idle-talk{to{background-position-x:calc(163px*-14)}}
/* Names on (regrade, 17 Nov 2026): a quest mark goes inside the name chip, at its start, instead of floating over the head near other names. Names off: the mark floats as before. */
.town-whole .town-viewport[data-life][data-names="all"] .town-npc[data-mark] .town-marker{display:none}
.town-whole .town-viewport[data-life][data-names="all"] .town-npc[data-mark] .town-name::before{display:inline-grid;place-items:center;width:1.6em;height:1.6em;margin:-.25em .4em -.25em -.15em;border-radius:50%;border:.1em solid #ffce55;background:radial-gradient(circle at 50% 40%,#4a3510,#140e05 70%);box-shadow:0 0 .5em #ffce5599;color:#ffd970;font:700 1.15em/1 Georgia,serif;vertical-align:-.3em}
.town-whole .town-viewport[data-life][data-names="all"] .town-npc[data-mark="x"] .town-name::before{content:"!"}
.town-whole .town-viewport[data-life][data-names="all"] .town-npc[data-mark="q"] .town-name::before{content:"?"}
.town-whole .town-viewport[data-life][data-names="all"] .town-npc[data-mark][data-mark-color="blue"] .town-name::before{border-color:#7fb7ff;color:#a9d1ff;background:radial-gradient(circle at 50% 40%,#173052,#070e18 70%)}

/* /town-homecoming.css */
/* A rescued resident comes home (public/town-homecoming.js). Display only. */
/* With a walk sheet: the resident's own spot moves from the portal, their standing figure hidden behind the walker. */
.town-npc.is-coming-home{translate:var(--home-x,0px) var(--home-y,0px);opacity:var(--home-out,1);pointer-events:none}
.town-npc.is-coming-home>:is(.town-npc-sprite,.town-resident-sprite){visibility:hidden}
.town-npc.is-coming-home .town-marker,.town-npc.is-arriving-home .town-marker{visibility:hidden}
.town-home-walker{position:absolute;left:50%;bottom:-13px;width:205px;height:205px;margin-left:-102.5px;background:no-repeat 0 0/calc(205px*14) 205px;scale:var(--home-face,1) 1;animation:town-life-steps 2.24s steps(14) infinite;pointer-events:none}
/* Without one: they step out of a shimmer at their own spot. */
.town-npc.is-arriving-home>:is(.town-npc-sprite,.town-resident-sprite){animation:town-home-arrive 1.6s ease-out 1 both}
.town-npc.is-arriving-home::before{content:"";position:absolute;left:50%;bottom:0;width:150px;height:210px;margin-left:-75px;border-radius:50% 50% 46% 46%;background:radial-gradient(ellipse at 50% 60%,#bfe6ffcc 0,#6fb7ff66 38%,#6fb7ff00 70%);mix-blend-mode:screen;animation:town-home-shimmer 1.6s ease-out 1 both;pointer-events:none}
@keyframes town-home-arrive{0%{opacity:0;filter:brightness(2.2) saturate(.4)}45%{opacity:1;filter:brightness(1.7) saturate(.7)}100%{opacity:1;filter:none}}
@keyframes town-home-shimmer{0%{opacity:0;scale:.5 .2}30%{opacity:1;scale:1 1}100%{opacity:0;scale:1.25 1.1}}
@media (prefers-reduced-motion:reduce){.town-npc.is-coming-home>*,.town-npc.is-arriving-home>*,.town-npc.is-arriving-home::before{animation:none!important}}

/* /town-rescue-scene.css */
/* The caged resident in a cage boss's room (public/town-rescue-scene.js). Display only; drawn in the fight's painted background, in the room's pixels. */
.rescue-scene{position:absolute;width:0;height:0;pointer-events:none;z-index:1}
.rescue-scene>.rescue-figure,.rescue-scene>.rescue-art{position:absolute;left:0;bottom:0;translate:-50% 0;filter:brightness(.82) saturate(.9) drop-shadow(0 3px 3px #000a)}
.rescue-scene>.rescue-cage{position:absolute;left:0;max-width:none;filter:drop-shadow(0 6px 5px #000b)}
.rescue-scene[data-state="caged"]>.rescue-figure{animation:rescue-wait 3.4s ease-in-out infinite;transform-origin:50% 100%}
.rescue-scene[data-state="freed"]>.rescue-cage{animation:rescue-break 1.1s ease-in 1 both;transform-origin:50% 100%}
.rescue-scene[data-state="freed"]>.rescue-figure{animation:rescue-step-out 1.3s ease-out .5s 1 both,rescue-cheer 1.2s ease-in-out 1.8s 3;transform-origin:50% 100%;filter:brightness(1) drop-shadow(0 3px 3px #000a)}
.rescue-line{position:absolute;left:0;bottom:var(--rescue-line,150px);translate:-50% 0;width:max-content;max-width:340px;padding:7px 12px;border:1px solid var(--uk-gold-dim,#8f7645);border-radius:8px;background:linear-gradient(180deg,#1b2a3cf2,#0e1824f2);color:#f3e7c9;font:600 17px/1.3 var(--font-body,Georgia,serif);text-align:center;box-shadow:0 2px 8px #000a;animation:rescue-line-in .35s ease-out 1 both}
@keyframes rescue-wait{0%,100%{transform:rotate(-1.2deg)}50%{transform:rotate(1.2deg) translateY(-1px)}}
@keyframes rescue-break{0%{transform:none;opacity:1}18%{transform:rotate(-3deg)}36%{transform:rotate(3deg)}54%{transform:rotate(-2deg) scale(1.03)}100%{transform:translateY(14px) scale(1.12,.7);opacity:0}}
@keyframes rescue-step-out{from{translate:-50% 0}to{translate:calc(-50% + 70px) 34px}}
@keyframes rescue-cheer{0%,100%{transform:none}50%{transform:translateY(-7px)}}
@keyframes rescue-line-in{from{opacity:0;translate:-50% 8px}to{opacity:1;translate:-50% 0}}
@media (prefers-reduced-motion:reduce){.rescue-scene *{animation:none!important}.rescue-scene[data-state="freed"]>.rescue-cage{opacity:0}}
/* A phone draws the room small: the line is drawn larger there so it can be read. */
@media (max-width:600px){.rescue-line{font-size:30px;max-width:470px;padding:10px 16px;border-radius:12px}}

/* /prison-opening.css */
/* The prison opening on the 3D Prison Cellar (IRP_PRISON_OPENING_VERSION, public/prison-opening.js): a marker over the thing to use, the prisoner
   behind the bars with what they say, and the step's card over the top of the fight. Nothing here shows in a fight without the opening. */
.prison-opening{position:absolute;inset:0;z-index:60;pointer-events:none;overflow:hidden}
.prison-opening>*{position:absolute;left:0;top:0;margin:0;will-change:transform}
.po-mark{width:0;height:0;min-width:0;min-height:0;padding:0;border:0;background:none;pointer-events:none;overflow:visible;font:inherit;color:inherit}
.po-mark[hidden],.po-prisoner[hidden],.po-say[hidden],.po-strike[hidden]{display:none}
.po-ring{position:absolute;left:-34px;top:-34px;width:68px;height:68px;border-radius:50%;border:3px solid #ffd27a;box-shadow:0 0 14px #ffb84a,inset 0 0 12px #ffb84a88;pointer-events:auto;cursor:pointer;animation:po-pulse 1.25s ease-in-out infinite}
.po-label{position:absolute;left:var(--po-lx,0px);bottom:64px;transform:translateX(-50%);white-space:nowrap;padding:6px 14px;border:1px solid #e6c98f;border-radius:6px;background:linear-gradient(180deg,#c9a468,#8f6f3c);color:#1b1509;font:700 .875rem/1.2 system-ui,sans-serif;letter-spacing:.02em;box-shadow:0 4px 14px #000a;pointer-events:auto;cursor:pointer}
/* a gold chevron under the name plate points down at the thing and bobs (Pat, 10 Nov: "highlighted with the arrow pointing down") */
.po-chev{position:absolute;left:-14px;bottom:36px;width:28px;height:24px;pointer-events:none;animation:po-bob .8s ease-in-out infinite}
.po-chev::before{content:"";position:absolute;left:5px;top:-6px;width:18px;height:18px;box-sizing:border-box;border-right:6px solid #ffd27a;border-bottom:6px solid #ffd27a;transform:rotate(45deg);filter:drop-shadow(0 0 5px #ffb84a) drop-shadow(0 2px 2px #0009)}
@keyframes po-bob{0%,100%{transform:translateY(-3px)}50%{transform:translateY(4px)}}
/* under: the plate and its arrow sit below the ring (the companion's cell door: the hero stands just beyond it) */
.po-mark.under .po-label{bottom:auto;top:64px}
.po-mark.under .po-chev{bottom:auto;top:36px}
.po-mark.under .po-chev::before{top:6px;transform:rotate(225deg)}
.po-mark.edge .po-chev{display:none}
.po-mark:focus-visible .po-ring{outline:3px solid #fff;outline-offset:3px}
/* the thing is off screen: the label waits at the edge of the view with an arrow to it */
.po-arrow{display:none}
.po-mark.edge .po-ring{display:none}
.po-mark.edge .po-label{left:0;bottom:auto;top:0;transform:translate(-50%,-50%);animation:po-nudge 1.25s ease-in-out infinite}
.po-mark.edge .po-label::after{display:none}
.po-mark.edge .po-arrow{display:block;position:absolute;left:-52px;top:-52px;width:104px;height:104px;pointer-events:none}
.po-mark.edge .po-arrow::after{content:"";position:absolute;right:-22px;top:50%;margin-top:-11px;border:11px solid transparent;border-left:16px solid #ffd27a;filter:drop-shadow(0 0 5px #ffb84a)}
@keyframes po-nudge{0%,100%{filter:brightness(1)}50%{filter:brightness(1.18)}}
.po-veil{inset:0;left:0;top:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;background:#050607;pointer-events:auto}
.po-veil[hidden]{display:none}
.po-veil p{margin:0;font:italic 1.25rem/1.4 Georgia,serif;color:#b9ab8e;animation:po-wake 2.4s ease-in-out infinite}
@keyframes po-wake{0%,100%{opacity:.45}50%{opacity:1}}
.po-prisoner{width:0;height:0}
/* the prisoner sits in the room: toned to the cell's lantern light, a shadow on the floor under their feet, and they breathe */
.po-prisoner::before{content:"";position:absolute;left:calc(var(--po-h,120px)*-.22);bottom:calc(var(--po-h,120px)*-.045);width:calc(var(--po-h,120px)*.44);height:calc(var(--po-h,120px)*.12);border-radius:50%;background:radial-gradient(closest-side,#000b,#0000)}
.po-prisoner img{position:absolute;left:0;bottom:0;height:var(--po-h,120px);width:auto;transform:translateX(-50%);transform-origin:50% 100%;filter:brightness(.8) saturate(.9) sepia(.22) drop-shadow(0 2px 3px #000a);animation:po-breathe 3.4s ease-in-out infinite}
@keyframes po-breathe{0%,100%{transform:translateX(-50%) scaleY(1)}50%{transform:translateX(-50%) scaleY(1.014)}}
/* drawn with the game's own picture of the companion (public/prison-opening.js bodyOf): placed by its ground point like a fighter, no tint, since the
   fighter who walks out a moment later has none */
.po-prisoner.same img{bottom:auto;transform:scaleX(var(--po-flip,1));filter:drop-shadow(0 5px 5px #0006);animation:po-breathe-same 3.4s ease-in-out infinite}
@keyframes po-breathe-same{0%,100%{transform:scaleX(var(--po-flip,1)) scaleY(1)}50%{transform:scaleX(var(--po-flip,1)) scaleY(1.012)}}
.po-say{width:0;height:0}
.po-say span{position:absolute;left:-110px;bottom:0;width:220px;box-sizing:border-box;padding:8px 11px;border:1px solid #b68f56;border-radius:9px;background:#15171aee;color:#efe6d2;font:.875rem/1.3 Georgia,serif;text-align:center;box-shadow:0 6px 18px #000a}
.po-say span::after{content:"";position:absolute;left:calc(50% + var(--po-foot,0px));top:100%;margin-left:-6px;border:6px solid transparent;border-top-color:#b68f56}
.po-strike{width:0;height:0}
.po-strike::before{content:"";position:absolute;left:-26px;top:-26px;width:52px;height:52px;border-radius:50%;background:radial-gradient(circle,#fff 0 12%,#ffd27a 30%,#ff9a2e00 68%);opacity:0}
.po-strike.hit::before{animation:po-hit .42s ease-out}
@keyframes po-pulse{0%,100%{transform:scale(.86);opacity:.75}50%{transform:scale(1.06);opacity:1}}
@keyframes po-hit{0%{transform:scale(.2);opacity:1}60%{opacity:.9}100%{transform:scale(1.5);opacity:0}}
.prison-opening-card{position:fixed;z-index:231;left:50%;box-sizing:border-box;padding:10px 18px 12px;border:1px solid #b68f56;border-radius:8px;background:linear-gradient(180deg,#1d1f1ce8,#121516e8);box-shadow:0 8px 26px #000a;text-align:center;opacity:0;transform:translate(-50%,-6px);transition:opacity .25s,transform .25s;pointer-events:none}
.prison-opening-card.shown{opacity:1;transform:translate(-50%,0);pointer-events:auto}
.prison-opening-card .po-step{margin:0 0 4px;font:600 .6875rem/1.2 system-ui,sans-serif;letter-spacing:.14em;text-transform:uppercase;color:#c9a468}
.prison-opening-card .po-text{margin:0;font:1.0625rem/1.35 Georgia,serif;color:#efe6d2}
.po-go{margin-top:10px;min-height:44px;padding:9px 22px;border:1px solid #e6c98f;border-radius:6px;background:linear-gradient(180deg,#c9a468,#8f6f3c);color:#1b1509;font:700 .9375rem/1.2 system-ui,sans-serif;cursor:pointer}
.po-go[hidden]{display:none}
@media(max-width:600px){.prison-opening-card{padding:8px 12px 10px}.prison-opening-card .po-text{font-size:.9375rem}.po-say span{left:-95px;width:190px;font-size:.8125rem}.po-label{font-size:.8125rem;padding:5px 11px}}
@media(prefers-reduced-motion:reduce){.po-prisoner img,.po-ring,.po-chev,.po-veil p,.po-mark.edge .po-label{animation:none}.prison-opening-card{transition:none}.po-strike.hit::before{animation:none;opacity:.8}}

/* /lore.css */
/* Lore and town talk (IRP_LORE_VERSION, default off; public/lore.js). UI kit v1: navy surfaces, gold rules, painted art. Off: nothing uses these. */
/* Town talk: the town dialog (town-map.css .town-tutorial) with the speaker's painting beside their line. */
.lore-talk-line{display:grid;grid-template-columns:auto minmax(0,1fr);gap:16px;align-items:start;margin:6px 0 14px;min-height:112px}
.lore-talk-words h2{margin:2px 0 6px}
.lore-talk-words p{margin:0}
.lore-talk .town-tutorial-actions{align-items:center}
.lore-talk-count{margin-right:auto;color:var(--uk-ivory-dim,#c9c3b4);font-size:.9rem}
.lore-face{display:block;flex:none;width:88px;height:112px;overflow:hidden;border-radius:var(--uk-radius-card,6px);background:var(--uk-navy-0,#0c1723);box-shadow:var(--uk-rule,inset 0 0 0 1px #b8955a3d)}
.lore-face>img,.lore-face>svg{display:block;width:100%;height:100%;object-fit:cover;object-position:top center}
.lore-face-sm{width:44px;height:56px}
/* The Lore page */
.lore-head .uk-head-art{object-position:center}
.lore-list{display:grid;gap:14px;margin-top:16px}
.lore-entry{display:grid;grid-template-columns:200px minmax(0,1fr);min-width:0;overflow:hidden;border-radius:var(--uk-radius-card,6px);background:var(--uk-navy-1,#101a2a);box-shadow:var(--uk-rule,inset 0 0 0 1px #b8955a3d)}
.lore-entry.is-new{box-shadow:inset 0 0 0 2px var(--uk-navy-0,#0c1723),inset 0 0 0 3px #43d17a99}
.lore-entry-art{width:100%;height:100%;min-height:160px;object-fit:cover}
.lore-entry-text{min-width:0;padding:16px 20px}
.lore-entry-text h2{margin:2px 0 10px}
.lore-entry-text p{line-height:1.6;max-width:72ch}
.lore-ending{color:var(--uk-gold-text,#ffe1aa)}
.lore-waiting{margin-top:12px;padding-left:12px;border-left:3px solid #43d17a}
.lore-waiting p{margin:0 0 10px}
.lore-actions{display:flex;flex-wrap:wrap;gap:10px}
.lore-actions button{min-height:44px}
.lore-dot-inline{display:inline-block;width:10px;height:10px;margin-right:8px;border-radius:50%;background:#43d17a;box-shadow:0 0 6px #43d17a99;vertical-align:baseline}
.lore-said{margin-top:16px;padding-top:12px;border-top:1px solid #b8955a3d}
.lore-said>h3{margin:0 0 10px;font-size:1.05rem;color:var(--uk-gold,#d6b575)}
.lore-lines{list-style:none;margin:4px 0 0;padding:0;display:grid;gap:10px}
.lore-lines li{display:grid;grid-template-columns:auto minmax(0,1fr);gap:12px;align-items:start}
.lore-lines p{margin:0}
.lore-lines strong{color:var(--uk-gold-text,#ffe1aa);margin-right:4px}
.lore-more{margin-top:14px}
/* The green dot on the Guide button, the Lore tab and the phone's More button (same look as the daily dot). */
.lore-dot{position:absolute;top:4px;right:4px;width:12px;height:12px;border-radius:50%;background:#43d17a;border:2px solid #0b131d;box-shadow:0 0 8px #43d17a99;pointer-events:none}
:is(.nav-button,.section-tab,[data-more-navigation]>summary):has(>.lore-dot){position:relative}
@media(max-width:600px){
 .lore-entry{grid-template-columns:minmax(0,1fr)}
 .lore-entry-art{height:120px;min-height:0}
 .lore-entry-text{padding:14px}
 .lore-talk-line{gap:12px;min-height:0}
 .lore-face{width:64px;height:82px}
 .lore-face-sm{width:40px;height:50px}
 .lore-talk-count{flex:1 1 100%;text-align:center;margin:0}
}
@media(prefers-reduced-motion:reduce){.lore-dot,.lore-dot-inline{box-shadow:none}}

/* /frontier.css */
.calling-page .tree-viewport{touch-action:pan-x pan-y pinch-zoom;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.frontier-portrait{display:block;flex:0 0 96px;width:96px;height:96px;overflow:hidden}
.frontier-route{display:block;width:100%;height:auto;border-radius:8px}
.frontier-warning{padding:12px;border:1px solid #b77d3d;background:#372a1bdd;color:#ffe0a6;border-radius:8px}
.frontier-dialog>section{width:min(620px,calc(100vw - 24px));max-height:calc(100dvh - 32px);overflow:auto;padding:24px;box-sizing:border-box}
.frontier-dialog header{display:flex;justify-content:space-between;gap:12px;align-items:center}
.frontier-dialog button{min-height:44px;white-space:normal;margin:5px 5px 5px 0}
.frontier-side{border-top:1px solid #796b4a;margin-top:20px;padding-top:12px}
.frontier-repeat{color:#d4edbe;font-weight:600}
.frontier-pin>span:first-child{font-size:1.5rem;color:#aee3de}
.boss-chamber-marker{position:absolute;z-index:3;pointer-events:none;transform:translate(-50%,-100%);max-width:230px;text-align:center;padding:8px 12px;color:#ffe4b6;background:#15151be8;border:1px solid #a78b58;border-radius:8px;font-size:13px}
.boss-chamber-marker strong{display:block}
#frontierBattleWarning{font-size:.8125rem;padding:6px 10px;margin:4px 0}
@media(max-width:760px){.hero-hud{flex-wrap:wrap}.hero-hud>div:first-child{flex:1 1 8rem;min-width:8rem}.hero-hud button{flex-shrink:0}}
@media(max-width:600px){.frontier-dialog>section{padding:16px}.frontier-pin{min-width:44px}.frontier-pin span small{font-size:.625rem}.frontier-pin>span:last-child{max-width:104px}.frontier-portrait{flex-basis:72px;width:72px;height:72px}}
@media(max-width:600px){.world-map{width:100%;min-width:0;aspect-ratio:auto;height:340px}.world-map .map-pin{left:var(--pin-x);top:var(--pin-y)}.world-map .city-pin{--pin-x:24%!important;--pin-y:65%!important}.world-map [data-map-cellar]{--pin-x:27%!important;--pin-y:23%!important}.world-map [data-map-zone="sablewater-mill"]{--pin-x:73%!important;--pin-y:39%!important}.world-map [data-map-zone="ashen-bell-foundry"]{--pin-x:73%!important;--pin-y:71%!important}}

/* /balance-ui.css */
/* Compact navigation and combat workspace. */
.nav-account{margin-top:auto;width:100%;padding-top:16px;border-top:1px solid #595047;display:grid;gap:10px}
.nav-account .account-block{display:flex;flex-wrap:wrap;justify-content:center;gap:8px}.nav-account .icon-button{min-width:44px;min-height:44px;justify-content:center;align-items:center}.nav-account .account-name,.nav-account .dev-badge{display:none}.nav-inventory{width:100%}
.mmo-shell>.topbar>.wordmark{display:none}.mmo-shell>.topbar{height:0;min-height:0;padding:0;border:0;position:relative}.mmo-shell .section-tabs{min-height:60px}
.portrait-frame{position:relative}.portrait-xp{position:absolute;top:0;right:0;padding:2px 4px;font:700 .6875rem/1.4 system-ui;color:#fff;background:#142b3ee8;border-radius:0 0 0 3px}
.party-info .hud-bar.resource{height:18px;margin-top:4px}.hud-bar.resource em{font-size:10px;line-height:16px;z-index:1;color:#fff;text-shadow:0 1px 2px #000}
.mmo-shell .arena-column{display:grid;grid-template-rows:auto minmax(350px,1fr) auto;height:auto;min-height:0}.mmo-shell .arena-heading{min-height:0;padding:7px 12px}.mmo-shell .zone-badge{padding:0}.mmo-shell .zone-badge>span{font-size:1rem}.mmo-shell .zone-badge>small{font-size:.75rem}
.mmo-shell .battle-controls{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap;padding:8px;background:#101b22}.mmo-shell .actionbar{display:flex;gap:8px;justify-content:flex-end;align-items:center;min-height:44px;height:auto;width:auto;flex:0 1 auto;border:0;padding:0;margin:0;background:none;box-shadow:none}.mmo-shell .actionbar .bar-wing,.mmo-shell .actionbar .bar-gem{display:none}.mmo-shell .action-key{min-width:44px;min-height:44px}.mmo-shell .begin-button{min-height:44px;margin:0}
.mmo-shell #defenseBar{display:flex;gap:8px;padding:0;border:0;margin:0;flex:1 1 auto;background:none}.mmo-shell #defenseBar[hidden],.mmo-shell #defenseBar button[hidden]{display:none}.mmo-shell #defenseBar button{min-height:44px;flex:1;padding:5px 9px}.mmo-shell .focus-order{margin:0;padding:0;flex:1 1 100%}
.mmo-shell .battlefield{min-height:350px;height:100%;contain:layout paint}.unit{will-change:transform}.dungeon-battlefield .arena-background{will-change:transform}
.companion-picker{display:grid;gap:12px}.companion-picker label{display:grid;gap:5px}.companion-picker select{width:100%;min-height:44px;font-size:1rem}.companion-picker p{margin:0}
@media(min-width:1180px){.mmo-shell>.topbar>nav{justify-content:flex-start}.mmo-shell .combat-grid{height:calc(100dvh - 60px);min-height:620px;grid-template-columns:minmax(205px,19%) minmax(0,1fr) 220px}.mmo-shell .right-rail{padding:10px}.mmo-shell .party-rail{padding:10px}.mmo-shell .party-card{padding:8px}.mmo-shell .party-info>b{font-size:.875rem}}
@media(min-width:761px) and (max-width:1179px){.mmo-shell>.topbar{height:auto}.mmo-shell>.topbar>nav{position:relative;display:flex;align-items:center;padding:8px;gap:6px}.nav-account{margin:0 0 0 auto;width:auto;border:0;padding:0;display:flex;align-items:center}.nav-inventory{width:auto}.nav-account .icon-button{padding:8px}.nav-button{min-width:64px}.mmo-shell .combat-grid{min-height:650px}}
@media(max-width:760px){.mmo-shell>.topbar{height:58px}.mmo-shell .nav-account{position:fixed;inset:0 0 auto 0;height:58px;margin:0;padding:7px 12px;background:#15171cf5;display:flex;justify-content:space-between;align-items:center;border:0;z-index:55}.nav-account .account-block{justify-content:flex-start}.nav-inventory{width:auto;min-height:44px}.mmo-shell .combat-grid{height:auto;min-height:0}.mmo-shell .arena-column{grid-template-rows:auto minmax(400px,60dvh) auto}.mmo-shell .battle-controls{justify-content:center}.mmo-shell .party-card{min-width:0}.mmo-shell .section-tabs{min-height:56px}.mmo-shell>.topbar>nav>.nav-account{grid-column:auto}}
.battlefield .unit{left:0;top:0}
.dungeon-battlefield .hero-unit .unit-name{display:none}.dungeon-battlefield .enemy-unit:not(.rare-unit):not(.boss-unit):not(.focus-target) .unit-name{width:52px!important;left:-26px!important}.dungeon-battlefield .enemy-unit:not(.rare-unit):not(.boss-unit):not(.focus-target) .unit-name>b,.dungeon-battlefield .enemy-unit:not(.rare-unit):not(.boss-unit):not(.focus-target) .unit-name>small,.dungeon-battlefield .enemy-unit:not(.rare-unit):not(.boss-unit):not(.focus-target) .unit-status{display:none}.dungeon-battlefield .enemy-unit:not(.rare-unit):not(.boss-unit):not(.focus-target) .unit-cast{width:52px!important;left:-26px!important;height:5px!important;top:9px!important;min-height:0;padding:0;border-radius:2px}.dungeon-battlefield .enemy-unit:not(.rare-unit):not(.boss-unit):not(.focus-target) .unit-cast>span{display:none}.party-cast-status{font:.6875rem/1.4 system-ui;color:#ebd5a5;margin-top:5px}.party-cast-status[hidden]{display:none}
.tavern-roster{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.tavern-candidate{margin:0!important;min-width:0}.tavern-candidate>header{display:flex;align-items:center;gap:12px}.tavern-candidate h2{margin:0}.tavern-candidate header p{margin:5px 0}.tavern-candidate details>summary{cursor:pointer;min-height:44px;padding:10px 0}.tavern-invite{display:flex;align-items:center;gap:10px;min-height:48px;padding:10px;margin-top:12px;background:#28383d;border:1px solid #667064;border-radius:6px;cursor:pointer}.tavern-invite input{width:24px;height:24px;flex-shrink:0}.companion-skills{padding:0;list-style:none}.companion-skills li{padding:8px 0;border-bottom:1px solid #3b4549}.companion-skills span{display:block;font-size:.8rem;color:#b1c0c6;margin-top:4px}.tavern-confirm{grid-column:1/-1;border-top:1px solid #75664d;padding:16px 0}.tavern-confirm button{min-height:48px}
@media(max-width:760px){.tavern-roster{grid-template-columns:minmax(0,1fr)}}

/* /mobile-farming.css */
/* Keep combat first on phones, followed by portraits and the combat log. */
@media(max-width:760px){
 .mmo-shell .combat-grid{display:flex;flex-direction:column;height:auto;min-height:0}
 .mmo-shell .arena-column{order:0;width:100%;min-width:0}
 .mmo-shell .party-rail{order:1;width:100%;min-width:0}
 .mmo-shell .right-rail{order:2;width:100%;min-width:0}
 .mmo-shell .combat-log{margin-top:12px}
}

/* /chat-panel.css */
/* Integrated community panel and measured mobile navigation clearance. */
.wayfarer-shell .nav-account .chat-access{position:static;inset:auto;width:100%;z-index:auto}
.wayfarer-shell .nav-account .chat-access>button{width:100%;min-height:44px;justify-content:center;border-radius:6px;box-shadow:none;background:#27343c;color:#f4dfbb;border:1px solid #6a6254;font:600 .85rem/1.4 system-ui;padding:9px 12px}
.wayfarer-shell .community-chat{inset:12px 12px 12px auto;width:min(440px,calc(100vw - 24px));height:auto;max-height:none;border:1px solid #6c6555;border-radius:16px;background:#101e26;box-shadow:-16px 0 64px #0009;font:400 .9rem/1.5 system-ui;isolation:isolate}
.community-chat .chat-heading{padding:18px 20px;background:linear-gradient(120deg,#273b43,#172832);border-bottom:1px solid #536064}
.chat-eyebrow{font:700 .63rem/1.4 system-ui;letter-spacing:.13em;color:#bea87f;margin:0 0 6px}
.wayfarer-shell .chat-heading h2{font:500 1.65rem/1.15 Georgia,serif;color:#ffe7be}
.chat-heading h2 small{display:inline-block;margin-left:12px;color:#afd2bf;font:400 .72rem system-ui}
.community-chat .chat-heading>button{align-self:center;min-width:44px;min-height:44px;border-radius:50%;background:#ffffff08;border-color:#667178;color:#edf0ea;font:400 1.15rem system-ui;padding:8px}
.community-chat .chat-channels{background:#14242d;border:0;padding:12px 14px 4px;gap:6px}
.community-chat .chat-channels>button{border-radius:8px;color:#adbdc4;font-size:.82rem;min-height:44px}
.community-chat .chat-channels>button[aria-selected=true]{color:#ffe3b6;background:#3f4238;border-color:#8d805e}
.community-chat .chat-conversation{overflow:hidden;flex:1;min-height:0}
.community-chat .chat-destination{padding:8px 18px 12px;margin:0;color:#a7b8bf;font-size:.72rem;border-bottom:1px solid #ffffff0c;flex-shrink:0}
.community-chat .chat-messages{padding:12px 16px;min-height:48px;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#53676d transparent;overflow:auto;flex:1}
.community-chat .chat-message{display:flex;flex-direction:column;align-items:flex-start;position:relative;margin:0 0 12px;padding:0;border:0;gap:0}
.community-chat .chat-message>time{align-self:flex-end;position:absolute;right:10px;top:14px;color:#9eb0b8;font-size:.63rem;pointer-events:none}
.community-chat .chat-message>div{width:100%;min-width:0;background:#20323d;border:1px solid #344751;border-radius:12px 12px 12px 3px;padding:0 12px 12px}
.community-chat .chat-message.own{padding-left:22px}.community-chat .chat-message.own>div{background:#293e3d;border-color:#405b52;border-radius:12px 12px 3px 12px}
.community-chat .chat-message.system>div{background:transparent;border-style:dashed;color:#b9c3be}
.community-chat .chat-name,.community-chat .chat-author{display:flex;align-items:center;min-height:44px;max-width:calc(100% - 54px);padding:3px 0;margin:0;border:0;color:#f1d3a1;background:transparent;font:600 .78rem/1.4 system-ui;text-align:left;overflow-wrap:anywhere}
.community-chat .chat-message p{font-size:.85rem;line-height:1.55;margin:0;white-space:pre-wrap;overflow-wrap:anywhere;color:#e1e8e8}
.community-chat .chat-empty{min-height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:24px 16px;color:#9eafb8;gap:12px}
.chat-empty>span{font-size:2rem;color:#ad9670}.chat-empty>strong{font:500 1.4rem Georgia,serif;color:#e4d6bc}.community-chat .chat-empty p{margin:0;max-width:28ch;font-size:.85rem;line-height:1.6}
.community-chat #chatForm{background:#14262e;border-top:1px solid #40505a;padding:12px 14px 10px;max-height:60%;overflow:auto;overscroll-behavior:contain}
.community-chat #chatForm textarea{background:#0c1a22;border:1px solid #58676c;border-radius:10px;min-height:70px;max-height:120px;resize:vertical;padding:12px;font:400 1rem/1.4 system-ui;color:#edf2ee}
.community-chat .chat-compose-actions{gap:8px;flex-wrap:wrap}.community-chat button,.community-chat select,.community-chat input{min-height:44px}.community-chat .chat-compose-actions button{border-radius:8px;font-size:.8rem}
.community-chat .chat-compose-actions [type=submit]{background:#e4bc7f;color:#251d13;min-width:78px;border-color:#e4bc7f}
.community-chat .chat-privacy{background:#10212a;border-color:#40505a;padding:0 16px;color:#aebdc4}.community-chat .chat-privacy summary{font-weight:600}.community-chat .chat-privacy form{flex-wrap:wrap}
.community-chat .whisper-route{flex-shrink:0}.community-chat .chat-recent{flex-shrink:0;max-height:100px;overflow:auto}.community-chat .chat-jump{flex-shrink:0;margin:4px 14px}
@media(min-width:761px) and (max-width:1179px){.mmo-shell>.topbar>nav{flex-wrap:wrap}.mmo-shell>.topbar>nav>.nav-account{grid-column:1/-1;flex:1 1 100%;width:100%;justify-content:flex-end;flex-wrap:nowrap}.nav-account .account-block{flex-shrink:0}.wayfarer-shell .nav-account .chat-access{width:auto}.nav-button{flex:1 1 64px}}
@media(max-width:760px){
 html.has-community-chat{overflow:hidden}
 body.has-mmo-shell #toast{bottom:calc(var(--mobile-nav-height,84px) + 12px);pointer-events:none}
 .mmo-shell{padding-bottom:calc(var(--mobile-nav-height,84px) + 20px)}
 .mmo-shell>.topbar{height:var(--mobile-utility-height,58px)}
 .mmo-shell>.topbar>nav{overflow:visible!important;height:auto;grid-template-columns:repeat(5,minmax(0,1fr));background:#17212a;z-index:80}
 .mmo-shell>.topbar>nav .nav-button{min-width:0;width:100%;height:auto;min-height:60px;white-space:normal;overflow-wrap:anywhere}
 .mmo-shell>.topbar>nav .nav-button .nav-copy{min-width:0;width:100%;max-width:100%;white-space:normal}
 .mmo-shell>.topbar>nav .nav-button .nav-copy strong{display:block;max-width:100%;overflow-wrap:anywhere;line-height:1.2}
 .mmo-shell .nav-account{height:auto;min-height:58px;padding:calc(7px + env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) 7px max(8px,env(safe-area-inset-left));gap:6px;background:#17212a;flex-wrap:wrap}
 .nav-account .account-block{gap:3px}.nav-account .icon-button{padding:6px}.nav-inventory{padding:8px;font-size:.8rem}
 .wayfarer-shell .nav-account .chat-access{width:auto;flex:0 1 auto}.wayfarer-shell .nav-account .chat-access>button{padding:8px;gap:5px;font-size:.8rem}
 .wayfarer-shell .community-chat{inset:0 0 var(--mobile-nav-height,84px);height:auto;width:auto;border-radius:0;border-width:0 0 1px;max-height:none;padding-top:env(safe-area-inset-top);z-index:90;background:#121b21}
 .community-chat .chat-heading{padding:10px 14px}.chat-eyebrow{font-size:.6rem}.wayfarer-shell .chat-heading h2{font-size:1.4rem}.chat-heading h2 small{font-size:.68rem}
 .community-chat .chat-channels{padding-top:8px}.community-chat .chat-privacy{max-height:35%}
 .wayfarer-shell .community-chat.keyboard-open{top:var(--chat-viewport-top,0px);bottom:auto;height:var(--chat-viewport-height,100dvh);max-height:none;padding-top:0}
 .community-chat.keyboard-open .chat-eyebrow,.community-chat.keyboard-open .chat-destination,.community-chat.keyboard-open .chat-privacy{display:none}
 .community-chat.keyboard-open .chat-heading{padding:4px 12px}.community-chat.keyboard-open #chatForm textarea{min-height:44px;height:44px}.community-chat.keyboard-open #chatForm{padding:8px 12px;max-height:65%}
}
@media(max-height:500px){
 .community-chat .chat-eyebrow,.community-chat .chat-destination,.community-chat .chat-input-help{display:none}
 .community-chat .chat-heading{padding:4px 12px}.wayfarer-shell .chat-heading h2{font-size:1.2rem}
 .community-chat .chat-channels{padding:4px 12px}.community-chat #chatForm{padding:6px 12px;min-height:0;max-height:60%;flex:0 0 auto}
 .community-chat #chatForm textarea{min-height:44px;height:44px;max-height:70px;padding:8px}
 .community-chat .chat-privacy{flex-shrink:0;max-height:30%;overflow:auto}
}

.community-chat .chat-message.unique-drop>div>p{color:#ff7474;font-weight:800}
.community-chat .chat-message.unique-drop>div{border-color:#b74949}
/* A found Tier 0 item (announcement kind tier0-drop): the Herald line in gold, where a Unique is red. Words carry the meaning; the colour only marks it. */
.community-chat .chat-message.tier0-drop>div>p{color:#f0ce83;font-weight:800}
.community-chat .chat-message.tier0-drop>div{border-color:#c9a24a}
/* A forged Legendary weapon (announcement kind legendary-forged): the Herald line in the Legendary amber, a little larger. */
.community-chat .chat-message.legendary-forged>div>p{color:#ffb85a;font-weight:800;font-size:1.02em;text-shadow:0 0 8px #ff8c2a55}
.community-chat .chat-message.legendary-forged>div{border-color:#e09a3c;background:linear-gradient(90deg,#3a230f66,transparent)}

.community-chat .chat-item>summary{min-height:44px;box-sizing:border-box;padding:12px 0;cursor:pointer;overflow-wrap:anywhere}
/* An offering to Elder Orwin (announcement kind realm-buff, lib/realm-buffs.js): the line in the realm chat, in the Dawn gold of the shop, so it stands out from talk. */
.community-chat .chat-message.realm-buff>div>p{color:#f3d58a;font-weight:700}
.community-chat .chat-message.realm-buff>div{border-color:#cfad6c;background:linear-gradient(90deg,#3a302066,transparent)}
/* Log tab (IRP_CHAT_LOG_VERSION, public/field-guide.js fightLog): kills with what each paid, and the old Events rows. Quiet: no unread colours beyond a thin gold edge. */
.community-chat .chat-log-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:6px 10px 8px;border-bottom:1px solid #ffffff12}
.community-chat .chat-log-head p{margin:0;font-size:.8rem;line-height:1.4;color:#adbac8}
.community-chat .chat-log-head button{flex:0 0 auto;font-size:.75rem;padding:4px 10px;min-height:0}
.community-chat .chat-log-row p{margin:0}
.community-chat .chat-log-paid{color:#e9c46a;white-space:nowrap}
.community-chat .chat-log-tag{display:inline-block;font-size:.65rem;letter-spacing:.06em;text-transform:uppercase;padding:0 5px;border:1px solid #ad967080;border-radius:3px;color:#d8c39a;vertical-align:1px}
.community-chat .chat-log-event{all:unset;cursor:pointer;display:block;color:#d5dde4;line-height:1.45}
.community-chat .chat-log-event:hover,.community-chat .chat-log-event:focus-visible{color:#fff;text-decoration:underline}
.community-chat .chat-log-event:focus-visible{outline:2px solid #e9c46a;outline-offset:2px}
.community-chat .chat-log-event.unread{padding-left:7px;border-left:2px solid #e9c46a}

/* /combat-portraits.css */
html{scrollbar-gutter:stable}
/* Text determines bar height so browser text enlargement cannot crop health.
   The fill stays behind the label and never changes the battlefield budget. */
.mmo-shell .party-info .hud-bar{height:auto;min-height:0}
.mmo-shell .party-info .hud-bar>i{position:absolute;inset:0 auto 0 0;height:auto;z-index:0}
.mmo-shell .party-info .hud-bar em{position:relative;inset:auto;display:block;z-index:1;line-height:1.25;min-height:1.25em;padding:1px 2px;white-space:normal;overflow-wrap:anywhere}
.mmo-shell .path-party-card .portrait-cast{height:auto;min-height:28px}
.mmo-shell .path-party-card .portrait-effect{height:auto;min-height:22px}
/* Casts remain with actor identities, leaving the painted battlefield clear. */
.portrait-cast{position:relative;isolation:isolate;display:flex;align-items:center;justify-content:space-between;gap:6px;min-height:26px;margin-top:5px;padding:3px 5px;border:1px solid #586362;background:#111c22;color:#aab8bd;font:.6875rem/1.4 Arial,sans-serif;overflow:hidden;border-radius:3px}
.portrait-cast>i{position:absolute;inset:0 auto 0 0;background:#8a6830;opacity:.85;z-index:-1}
.portrait-cast.casting{color:#fff4d9;border-color:#b9a06c}
.portrait-cast.healing>i{background:#386746}
.portrait-cast-name{min-width:0;overflow-wrap:anywhere}
.portrait-cast-time{flex:none;font-variant-numeric:tabular-nums}
.mmo-shell .party-card .portrait-frame{display:block;flex:none}
.mmo-shell .party-info{min-width:0;flex:1}
/* The scene has its own viewport budget: changing casts, status chips, names or
   pack counts must never resize the battlefield and its following camera. */
.mmo-shell .arena-column{grid-template-columns:minmax(0,1fr);grid-template-rows:auto clamp(350px,calc(100vh - 300px),1100px) auto;grid-template-rows:auto clamp(350px,calc(100svh - 300px),1100px) auto;align-content:start}
.mmo-shell .combat-grid{height:auto}
@media(min-width:1180px){.mmo-shell .party-rail{max-height:calc(100svh - 60px)}}
.enemy-level{display:block;color:#f1cf88;font:700 .6875rem/1.4 Arial,sans-serif;font-variant-numeric:tabular-nums;margin-bottom:2px}
.enemy-card .portrait-effects{display:flex;align-content:flex-start;height:54px;min-height:54px;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
.enemy-card .portrait-effects:empty{display:flex}

.mmo-shell .battle-controls{min-width:0;max-width:100%}
.enemy-roster{flex:1 0 100%;width:100%;min-width:0;max-width:100%;align-self:stretch}
.enemy-roster-heading{display:flex;justify-content:space-between;gap:8px;margin:0 0 5px;color:#d9bf87;font-size:.6875rem}
.enemy-roster-heading small{color:#b7c7c9;font:inherit}
.enemy-portraits{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,155px),1fr));gap:7px;padding:2px 2px 7px}
.enemy-card{min-width:0;padding:5px;border:1px solid #606254;border-radius:5px;background:#16252b}
.enemy-card.focused{border-color:#f2c86e;box-shadow:inset 0 0 0 1px #f2c86e}
.enemy-card.fallen .enemy-portrait{filter:grayscale(1);opacity:.55}
.enemy-card .enemy-identity{display:flex;align-items:center;gap:6px;width:100%;min-height:52px;padding:0;border:0;background:transparent;color:#f4ddaa;text-align:left;border-radius:2px}
/* A party member cannot pick the focus target, so the button is disabled; a living enemy must not take the faded look of a defeated one. */
.shell .enemy-card:not(.fallen) .enemy-identity:disabled{opacity:1;cursor:default}
.enemy-identity>span{flex:1;min-width:0}
.enemy-identity strong{display:block;font:.75rem/1.3 Georgia,serif;overflow-wrap:anywhere}
.enemy-identity small{display:block;font:.625rem/1.4 Arial,sans-serif;color:#d5deda;margin:3px 0}
.enemy-portrait{display:block;flex:none;width:46px;height:52px;object-fit:cover;background:#0b151d;border:1px solid #a28b5e;border-radius:3px}
.enemy-health{display:block;height:5px;background:#342c2c;border:1px solid #746453;overflow:hidden}
.enemy-health i{display:block;height:100%;width:100%;background:#c65b45}
.portrait-effects{display:flex;flex-wrap:wrap;gap:3px;margin-top:4px}
.portrait-effects:empty{display:none}
.portrait-effect-time{font-variant-numeric:tabular-nums;display:inline-block;min-width:2.4em;text-align:right}
.portrait-effect{font:.625rem/1.5 Arial,sans-serif;padding:1px 4px;border:1px solid #79624e;border-radius:3px;background:#382824;color:#ffe0c5;overflow-wrap:anywhere}
.portrait-effect.buff{background:#183b31;border-color:#557b5d;color:#d4f4d6}
.tavern-candidate .tavern-portrait{display:block;flex:none;width:72px;height:72px;object-fit:cover;border:1px solid #c4a36e;border-radius:6px;background:#122026}
.tavern-candidate header>div{min-width:0;overflow-wrap:anywhere}
.mmo-shell .battle-controls.has-enemy-roster .actionbar{align-self:center;z-index:1}
.bestiary-card .beast-image .enemy-portrait{width:144px;height:164px;object-fit:cover;margin:16px auto;border-radius:8px}
@media(max-width:760px){
 .mmo-shell .arena-column{grid-template-rows:auto clamp(260px,38vh,360px) auto;grid-template-rows:auto clamp(260px,38svh,360px) auto}
 .mmo-shell .battlefield{min-height:0;height:100%}
 .mmo-shell #partyCards{grid-template-columns:repeat(2,minmax(0,1fr))}
 .mmo-shell .party-card{flex-wrap:wrap}
 .mmo-shell .party-card .portrait-frame{width:44px;height:72px}
 .enemy-roster{flex-basis:100%;width:100%}
 .enemy-portraits{grid-template-columns:repeat(2,minmax(0,1fr))}
 .enemy-card{min-width:0;max-width:none}
 .enemy-card .enemy-identity{flex-wrap:nowrap;min-height:44px;gap:5px}
 .enemy-card .enemy-portrait{width:34px;height:40px}
 .enemy-identity>span{flex-basis:0}
 .enemy-card .portrait-cast{min-height:22px;font-size:.6875rem;margin-top:3px;padding:2px 4px}
 .enemy-card .portrait-effect{font-size:.625rem;padding:0 3px}
 .mmo-shell .battle-controls.has-enemy-roster .actionbar{width:100%;flex-basis:100%;justify-content:flex-end;flex-wrap:wrap}
 .mmo-shell .battle-controls .action-key{flex-direction:row;gap:5px;padding:4px 6px}
 .mmo-shell .battle-controls .action-key .skill-icon{width:28px;height:28px}
 .mmo-shell .battle-controls .begin-button{flex:1;max-width:220px}
 .enemy-roster-heading{font-size:.75rem}
 .portrait-cast{font-size:.75rem;min-height:28px}
 .portrait-effect{font-size:.6875rem}
 .enemy-identity strong{font-size:.75rem}
 .tavern-candidate header{align-items:center}
}
@media(max-width:360px){
 .enemy-portraits{grid-template-columns:minmax(0,1fr)}
 .enemy-identity strong{overflow-wrap:break-word}
 .enemy-card .portrait-effects{height:auto;min-height:54px;max-height:8em}
}
/* Simple battle (GAPS D3, simpleBattle() in app.js): below level 10 the combat meter and the XP and gold per hour fold behind one Meter button.
   Below the desktop width, where the party frames sit under the fight, the same row shows your own health above the battlefield. */
.combat-grid.meter-collapsed #damageMeter,.combat-grid.meter-collapsed #adventureRates{display:none}.combat-grid.meter-collapsed .arena-heading.ex-bar>#adventureRates.ex-rates{display:none}
.battle-simple-row{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin-top:6px;text-align:left}
.combat-grid.simple-battle .zone-badge:not(.ex-zone){display:flex;flex-direction:column;align-items:center}.battle-simple-row{order:1;align-self:stretch}.arena-heading.ex-bar .battle-simple-row{grid-column:1/-1;grid-row:9;margin-top:2px}
.battle-simple-row .battle-hero-health{flex:1;min-width:0;height:24px;margin:0}
.battle-simple-row .battle-hero-health em{font:600 .75rem/22px var(--ui);font-variant-numeric:tabular-nums;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:0 6px}
.battle-simple-row .battle-meter-toggle{flex:none;min-height:44px;min-width:76px;padding:0 14px}
@media(min-width:1180px){.battle-simple-row .battle-hero-health{display:none}.combat-grid.simple-battle .zone-badge{position:relative}.combat-grid.simple-battle .battle-simple-row{position:static;justify-content:center;margin:6px 0 0}.combat-grid.simple-battle .battle-simple-row .battle-meter-toggle{min-height:36px;padding:0 16px}.combat-grid.simple-battle .arena-heading.ex-bar .battle-simple-row{position:static;margin-top:2px}}
.action-key[data-action="taunt"][hidden]{display:none!important}
/* Second fix (14 Oct): in a zone fight the Meter toggle moves into the action row (public/field-view.js), beside Leave expedition and Combat
   review. On wide screens the health bar in its old row is hidden, so the emptied row is hidden too; on phones the health bar keeps the full width. */
@media(min-width:1180px){.combat-grid.simple-battle .battle-simple-row.meter-moved{display:none}}
.shell .combat-grid .field-action-controls>.battle-meter-toggle{min-width:76px}
/* Second fix (14 Oct): between packs the Enemies panel had only its heading over a blank box. renderActorNodes() in app.js empties the list
   when no enemy is on the field, so the empty list shows one quiet line instead. */
.enemy-portraits:empty::before{content:'No enemies in sight. The next pack appears as your party moves on.';grid-column:1/-1;display:block;padding:10px 12px;border:1px dashed #76614080;border-radius:6px;background:#0d151cb3;color:#b7c7c9;font:500 .8125rem/1.4 var(--ui,system-ui);text-align:center}
/* Party health is green, turning red below 35% (enemies keep their red bars). */
.hud-bar.health>i{background:linear-gradient(#8ee05c,#3f993b)}.hud-bar.health>i.low{background:linear-gradient(#fb4027,#b81714)}
/* Rested XP (lib/rested-xp.js, default off): the same quiet line as "Reduced kill XP", in the cool blue of a filled bar; dimmed once it is used up. */
.portrait-rested{display:block;max-width:100%;min-height:24px;padding:2px 0;border:0;background:none;box-shadow:none;color:#9cc8f0;font:inherit;font-size:.6875rem;line-height:1.4;text-align:left;white-space:normal;text-decoration:underline dotted;text-underline-offset:3px;cursor:help}
.portrait-rested.is-empty{color:#8f9aa6}
.portrait-rested:focus-visible{outline:2px solid #9cc8f0;outline-offset:2px}
.portrait-rested[hidden]{display:none}
/* Monster tiers (lib/monster-tiers.js): the enemy card names a Magic monster in blue and a Rare one in gold. */
.enemy-card.tier-magic .enemy-identity strong{color:#9cc4ff}
.enemy-card.tier-rare .enemy-identity strong{color:#f2d36b}

/* /handbook.css */
.handbook{max-width:1350px;margin:auto;min-width:0}.handbook-header{padding:28px 0;border-bottom:1px solid #766448}.handbook-header h1{font:clamp(1.75rem,3.2vw,3rem)/1.18 Georgia,serif;color:#f2d29b;margin:14px 0}.handbook-header>p{max-width:700px;color:#c1cecc;line-height:1.65}.handbook-layout{display:grid;grid-template-columns:minmax(190px,260px) minmax(0,1fr);gap:28px;padding-top:24px}.handbook-index{align-self:start;position:sticky;top:16px;max-height:calc(100dvh - 45px);overflow:auto;background:#101d23;border:1px solid #586056;border-radius:8px;padding:15px}.handbook-index h2{font-size:1.125rem;margin:0 0 12px}.handbook-index summary{min-height:44px;cursor:pointer;display:flex;align-items:center;border-bottom:1px solid #34464b;padding:8px 0}.handbook-index a{display:block;min-height:44px;padding:10px 8px;color:#cfddd9;font:.875rem/1.5 Arial,sans-serif;text-decoration:none;overflow-wrap:anywhere}.handbook-index a:hover,.handbook-index a:focus-visible{background:#273b40;color:#ffe2ac}.handbook-content{min-width:0}.handbook .guide-search{display:grid;gap:10px;font-weight:700}.handbook input[type=search]{width:100%;min-height:48px;box-sizing:border-box;font-size:1rem;padding:12px;background:#0c171e;color:#f4e6cf;border:1px solid #98825f;border-radius:6px}.handbook-popular{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0 22px;align-items:center}.handbook-popular>span{flex-basis:100%;color:#adbfbe;font-size:.8125rem}.handbook-popular a,.handbook-button{display:inline-flex;align-items:center;min-height:44px;padding:9px 12px;border:1px solid #667066;border-radius:5px;text-decoration:none;color:#f4d6a4;background:#203036;font-size:.875rem;box-sizing:border-box}.handbook-count{color:#a8bab7;font-size:.8125rem}.handbook .handbook-article{background:#142127;border:1px solid #4e615e;border-radius:8px;margin:0 0 14px;overflow:hidden;scroll-margin-top:75px}.handbook .handbook-article>summary{display:block;padding:18px;cursor:pointer;min-height:44px;position:relative}.handbook-article>summary:after{content:'+';position:absolute;right:16px;top:17px;font:1.375rem Georgia;color:#ddb97c}.handbook-article[open]>summary:after{content:'−'}.handbook-category{color:#abbdaf;font:.6875rem/1.5 Arial,sans-serif;text-transform:uppercase;letter-spacing:1px}.handbook-article h2{font:1.3125rem/1.35 Georgia,serif;margin:6px 25px 7px 0;color:#f1d39f}.handbook-preview{display:block;max-width:72ch;color:#b9cbc8;font-size:.875rem;line-height:1.6}.handbook-article[open] .handbook-preview{display:none}.handbook-answer{padding:0 18px 18px!important;max-width:none!important;line-height:1.75;font-size:1rem;color:#d5dcd5;overflow-wrap:anywhere}.handbook-short{padding:14px;background:#253c39;border-left:3px solid #d3b57a;border-radius:0 4px 4px 0;color:#f3e4c5}.handbook-answer>p{max-width:76ch;margin:0 0 16px}.handbook-share{display:flex;flex-wrap:wrap;gap:8px;margin:20px 0 14px}.handbook-share button{min-height:44px;white-space:normal}.handbook-related{font-size:.875rem}.handbook a,.guide-chat-link{color:#efcc8e;text-underline-offset:3px}.handbook-table{overflow:auto;max-width:100%;margin:16px 0}.handbook-table table{border-collapse:collapse;width:100%;font-size:.875rem}.handbook-table th,.handbook-table td{text-align:left;padding:10px;border-bottom:1px solid #455754;vertical-align:top}.handbook-table th{background:#20342f}.guide-chat-link{display:inline-flex;align-items:center;min-height:44px;max-width:100%;padding:6px 10px;background:#2b3a32;border:1px solid #93815b;border-radius:5px;overflow-wrap:anywhere;box-sizing:border-box}.handbook-standalone{margin:0;background:#0b151c;color:#e8dfca;font:1rem/1.6 Arial,sans-serif}.handbook-standalone *{box-sizing:border-box}.handbook-standalone .handbook{padding:20px 30px 50px}.handbook-standalone button{font:inherit;cursor:pointer;background:#263b3d;color:#f6dfb9;border:1px solid #897b60;border-radius:5px;padding:10px 14px}.handbook-standalone .handbook-top{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:14px 30px;border-bottom:1px solid #5b503e}.handbook-top a{color:#e9c48a;min-height:44px;display:inline-flex;align-items:center}.handbook :focus-visible,.handbook-top :focus-visible{outline:3px solid #f3d28b;outline-offset:3px}.handbook .handbook-index details{margin:0}
@media(max-width:760px){.handbook-layout{grid-template-columns:minmax(0,1fr);gap:16px}.handbook-index{position:static;max-height:none;padding:10px 14px}.handbook-index h2{margin:5px 0}.handbook-header{padding:18px 0}.handbook-standalone .handbook{padding:14px 16px 35px}.handbook-standalone .handbook-top{padding:10px 16px}.handbook-answer{padding:0 14px 14px!important}.handbook .handbook-article>summary{padding:14px}.handbook-article h2{font-size:1.25rem}.handbook-popular a{flex:1 1 145px}.handbook-share>*{flex:1 1 130px}.handbook-table table{min-width:450px}}

/* Search-first reference: categories on the landing page, one answer at a time. */
.handbook{max-width:1180px}.handbook-header{padding:16px 0 20px;margin-bottom:22px}.handbook-header h1{font-size:2rem;margin:8px 0}.handbook-header>p{margin:6px 0}.handbook .guide-search{margin:0}.handbook .guide-search>span{font-size:.875rem;color:#d5c6a7}.handbook-popular{margin:14px 0 24px}.handbook-popular>span{flex-basis:auto;margin-right:4px}.handbook-categories{display:grid;gap:12px}.handbook-category-card{background:linear-gradient(110deg,#202831,#131d23);border:1px solid #716447;border-radius:9px;overflow:hidden}.handbook-category-card>summary{display:flex;align-items:center;gap:14px;padding:16px;min-height:76px;box-sizing:border-box;cursor:pointer;list-style:none}.handbook-category-card>summary::-webkit-details-marker{display:none}.handbook-category-card>summary>.handbook-category-label{flex:1;min-width:0}.handbook-category-card strong{display:block;color:#edcf92;font-size:1rem;line-height:1.4;letter-spacing:.03em}.handbook-category-card small{display:block;color:#b8c3cb;font-size:.8125rem;line-height:1.5;margin-top:3px}.handbook-category-icon{display:grid;place-items:center;width:40px;height:40px;flex:none;border:1px solid #a18a55;border-radius:50%;background:#38352b;color:#f0d397;font-size:1.5rem}.handbook-category-count{color:#bfb28f;font-size:.8125rem}.handbook-category-card>summary:after{content:'+';color:#dcc082;font-size:1.375rem}.handbook-category-card[open]>summary:after{content:'−'}.handbook-topic-links{display:flex;gap:8px;flex-wrap:wrap}.handbook-category-card>.handbook-topic-links{padding:0 16px 16px}.handbook-button{font:.875rem/1.4 system-ui;white-space:normal;overflow-wrap:normal;word-break:normal;background:#10191f;border-color:#5b5946}.handbook-button:hover,.handbook-search-result:hover{border-color:#c6a668;background:#25342f}.handbook-search-result{display:grid;gap:7px;padding:18px;margin-bottom:12px;background:#172229;border:1px solid #59604f;border-radius:7px;text-decoration:none;min-height:44px}.handbook-search-result>strong{font:1.3125rem/1.4 Georgia;color:#f1d49b}.handbook-search-result>span:last-child{font:.875rem/1.6 system-ui;color:#c0cccb;max-width:90ch}.handbook-breadcrumb{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:0 0 18px;color:#bfc6bf;font-size:.8125rem;line-height:1.5}.handbook-breadcrumb button{padding:10px 12px;min-height:44px;background:#20312e;border:1px solid #857354;border-radius:5px;color:#f3d493;font:inherit;cursor:pointer}.handbook-breadcrumb strong{color:#e0c894;font-weight:500}.handbook .handbook-article{background:#142027}.handbook-article>header{padding:24px 24px 0}.handbook-article>header h2{font:1.8125rem/1.25 Georgia;margin:8px 0 18px;overflow-wrap:normal}.handbook-short{font-size:1rem;line-height:1.65;margin:0 0 24px}.handbook-answer{padding:0 24px 24px!important;overflow-wrap:normal;word-break:normal}.handbook-section{padding:20px 0;border-bottom:1px solid #40504e}.handbook-section h3,.handbook-related h3{font:1.3125rem/1.4 Georgia;color:#e2c692;margin:0 0 12px}.handbook-section p,.handbook-section li{font:.9375rem/1.8 system-ui;color:#d5dcd5;max-width:85ch;margin:0 0 14px}.handbook-section ul{padding-left:24px}.handbook-section .handbook-topic-links{margin-top:16px}.handbook-table{border:1px solid #526052;border-radius:5px}.handbook-table th,.handbook-table td{padding:14px;line-height:1.6;overflow-wrap:normal;word-break:normal}.handbook-table tr:nth-child(even){background:#1c2b31}.handbook-table td:first-child{color:#ecd5a7}.handbook-example{padding:20px;margin:0 0 10px;background:#10201f;border:1px solid #69816d;border-radius:7px}.handbook-example figcaption{font:.9375rem/1.5 system-ui;color:#e2d3ab;margin-bottom:18px}.handbook-time-row{display:grid;grid-template-columns:minmax(135px,1fr) minmax(100px,2fr) 65px;gap:14px;align-items:center;margin:14px 0;font:.875rem/1.5 system-ui}.handbook-time-row>div{height:13px;background:#081311;border-radius:3px;overflow:hidden}.handbook-time-row i{display:block;height:100%;background:linear-gradient(90deg,#6ca68f,#c4d1a1)}.handbook-time-row b{text-align:right;font-variant-numeric:tabular-nums;color:#f1d7a3}.handbook-heal-bar{display:flex;height:24px;border:1px solid #7f9b83;border-radius:4px;overflow:hidden}.handbook-heal-bar span{background:#79bc92}.handbook-heal-bar i{background:repeating-linear-gradient(135deg,#455451,#455451 5px,#303f3c 5px,#303f3c 10px)}.handbook-legend{display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px;font:.8125rem/1.5 system-ui;margin-top:10px;color:#d5ddcd}.handbook-flow{list-style:none;display:flex;flex-wrap:wrap;gap:20px;margin:0;padding:0}.handbook-flow li{flex:1 1 115px;position:relative;padding:12px;background:#203c35;border:1px solid #69806d;border-radius:5px;font:.875rem/1.6 system-ui;color:#e2dfc6}.handbook-flow li:not(:last-child):after{content:'→';position:absolute;right:-18px;color:#dec68c}.handbook-related{margin-top:24px}.handbook-category-card summary:focus-visible{outline-offset:-4px}
@media(max-width:600px){.handbook-header h1{font-size:1.75rem}.handbook-popular>span{flex-basis:100%}.handbook-popular a{flex:1 1 120px}.handbook-category-card>summary{padding:13px;gap:10px}.handbook-category-card strong{font-size:.9375rem}.handbook-category-card small{font-size:.75rem}.handbook-category-card>.handbook-topic-links{padding:0 12px 12px}.handbook-category-icon{width:34px;height:34px;font-size:1.3125rem}.handbook-article>header{padding:18px 14px 0}.handbook-article>header h2{font-size:1.5625rem}.handbook-answer{padding:0 14px 18px!important}.handbook-example{padding:14px}.handbook-time-row{grid-template-columns:minmax(0,1fr) 55px;gap:7px}.handbook-time-row>span{grid-column:1/-1}.handbook-time-row>div{grid-column:1}.handbook-time-row>b{grid-column:2}.handbook-flow{display:grid;gap:20px}.handbook-flow li:not(:last-child):after{content:'↓';right:50%;bottom:-21px}.handbook-table table{min-width:0}.handbook-table th,.handbook-table td{padding:10px 8px;min-width:7em}.handbook-search-result{padding:15px}.handbook-search-result>strong{font-size:1.25rem}}
/* Fantasy handbook: short answers first, detailed rules only inside a topic. */
.handbook-standalone{background:#0b111d;color:#dddcd3}.handbook .handbook-header{position:relative;min-height:170px;padding:30px 28px;margin-bottom:24px;isolation:isolate;border:0;border-bottom:1px solid #a68d5755;background:linear-gradient(90deg,#111b2bf5 15%,#111b2bc9 55%,#111b2b33),url('/assets/far-roads/overview-north-v1.webp') center 40%/cover}.handbook .handbook-header h1{font:400 clamp(1.8125rem,4vw,2.6875rem)/1.15 Georgia,serif;color:#efe4c9;letter-spacing:.02em}.handbook .handbook-header>p{max-width:65%;color:#c3c8ce;font-size:.875rem}.handbook-header .eyebrow{color:#d0b47e!important;letter-spacing:.13em;font-size:.625rem!important}.handbook-categories{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.handbook-category-card{border:1px solid #9b89582c;background:linear-gradient(120deg,#1a2638,#121c2c);border-radius:4px}.handbook-category-card>summary{position:relative;isolation:isolate;min-height:104px;padding:18px 16px;overflow:hidden}.handbook-category-painting{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.12;z-index:-1;mask-image:linear-gradient(90deg,transparent,#000)}.handbook-category-icon{width:42px;height:42px;border:0;background:transparent;color:#d1b780}.handbook-category-icon svg{width:30px;height:30px}.handbook-category-count{font-size:.6875rem;color:#a2acb8;white-space:nowrap}.handbook-category-card strong{color:#e3d6b8;font:500 1.0625rem/1.25 Georgia}.handbook-category-card small{color:#a8b3c2;font-size:.75rem}.handbook-category-card[open]{grid-column:1/-1}.handbook-category-card[open]>summary{min-height:82px;border-bottom:1px solid #9b89582c}.handbook-category-card>.handbook-topic-links{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;padding:8px 16px 16px}.handbook-category-card .handbook-button{border:0;border-bottom:1px solid #9b895820;background:transparent;border-radius:0;min-height:44px;padding:11px 10px;font-size:.8125rem;color:#d3d8dc}.handbook .handbook-button:hover,.handbook .handbook-button:focus-visible{background:#c7a96a12;color:#f1d49e}.handbook-button{background:#131f31;border-color:#9b895840;color:#dfc797}.handbook .handbook-article{border:0!important;background:transparent!important;box-shadow:none!important}.handbook .handbook-article>header{padding:8px 0 0}.handbook .handbook-article>header h2{font:400 clamp(1.5rem,3vw,2.0625rem)/1.25 Georgia;margin:8px 0 18px}.handbook .handbook-short{background:#b3996010;border-color:#c1a46a;padding:14px 18px;font-size:1rem;max-width:85ch}.handbook .handbook-answer{padding:0!important;max-width:100%!important}.handbook .handbook-section{border-color:#9b895830;padding:20px 0}.handbook .handbook-section h3{font:400 1.25rem/1.4 Georgia;color:#d9c599}.handbook .handbook-section p,.handbook .handbook-section li,.handbook-answer>p{font:.875rem/1.7 system-ui;color:#ced3da;max-width:85ch}.handbook .handbook-example{background:#152236;border:1px solid #7289a33d;border-radius:4px;margin:16px 0;padding:18px}.handbook-flow li{background:none;border:0;border-left:2px solid #bda574;padding:6px 12px;color:#e1d5b7}.handbook-table{border:0;border-top:1px solid #9b895850;border-radius:0}.handbook-table th{background:#c7b07a0b;color:#d8c7a3}.handbook-table td,.handbook-table th{border-color:#9b895830;padding:10px 12px;font-size:.8125rem}.handbook-table tr:nth-child(even){background:#a0b9da06}.handbook .handbook-contents{display:flex;flex-wrap:wrap;gap:8px 18px;padding:8px 0 16px;border-bottom:1px solid #9b895830}.handbook-contents a{font-size:.75rem;color:#b7c4d6}.handbook-section{scroll-margin-top:80px}.handbook-support{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #9b895840;margin-top:28px;padding:16px 0;gap:15px;font:.8125rem system-ui}.handbook-support .handbook-button{border:0;background:none;padding:0}.handbook-support a{min-height:44px;display:inline-flex;align-items:center}.handbook-catalog{margin:18px 0;border:1px solid #a68d5744;border-radius:4px}.handbook-catalog>summary{padding:14px;color:#e0c894;cursor:pointer;font:.9375rem/1.4 system-ui}.handbook-catalog .unique-guide-catalog{padding:14px}.handbook-search-result{background:#131f30;border-color:#9b89582c;border-radius:4px;padding:14px 18px;gap:4px}.handbook-search-result>strong{font-size:1.25rem}.handbook-search-result>span:last-child{font-size:.8125rem;line-height:1.5}.discord-community-link{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;margin:12px 0;min-height:44px;gap:8px}
@media(max-width:760px){.handbook-categories{grid-template-columns:1fr}.handbook-category-card>.handbook-topic-links{grid-template-columns:repeat(2,minmax(0,1fr))}.handbook .handbook-header{padding:22px 18px;min-height:145px}.handbook .handbook-header>p{max-width:90%}.handbook-category-card>summary{min-height:86px}.handbook .handbook-answer{padding:0!important}}
@media(max-width:420px){.handbook-category-card>.handbook-topic-links{grid-template-columns:1fr}.handbook-category-card>summary{padding:14px 10px;gap:9px}.handbook-category-icon{width:30px}.handbook-category-count{font-size:.625rem}.handbook-category-card strong{font-size:1rem}.handbook .handbook-header h1{font-size:1.875rem}.handbook-short{padding:12px!important;font-size:.875rem!important}.handbook .handbook-table th,.handbook .handbook-table td{min-width:0;padding:9px 7px}.handbook-popular a{font-size:.75rem}}

.handbook-category-card>summary>.handbook-category-icon{flex:0 0 42px}.handbook-category-label{flex:1;min-width:0}.handbook-category-card>summary>.handbook-category-label{flex:1}@media(max-width:420px){.handbook-category-card>summary>.handbook-category-icon{flex-basis:30px}}

/* Pictured instructions share the game's dark panels and substantial gold trim. */
.guide-picture{margin:22px 0 30px;padding:18px;background:linear-gradient(135deg,#1b2936,#0b141f);border:1px solid #74603d;border-top:3px solid #d0ab62;box-shadow:inset 0 0 0 3px #0a111b,inset 0 0 0 4px #544632;border-radius:5px;color:#d9e1e7}
.guide-picture>figcaption{display:flex;flex-wrap:wrap;gap:6px 18px;align-items:baseline;margin:0 0 18px}.guide-picture>figcaption strong{font:1.25rem Georgia,serif;color:#f2d49b}.guide-picture>figcaption>span{font-size:.75rem;color:#b0c4d1}
.gp-steps{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr));gap:18px}.gp-steps>li{position:relative;min-width:0;padding:16px 12px 12px;border:1px solid #655438;border-top:2px solid #b89450;background:#0b1420;border-radius:3px}.gp-number{position:absolute;top:-11px;left:12px;display:grid;place-items:center;width:25px;height:25px;background:#17242e;border:1px solid #d0ad67;border-radius:50%;color:#f6dfa4;font-weight:700}
.gp-steps h4{font:1.125rem Georgia,serif!important;color:#f3d59d;margin:12px 0 7px!important}.gp-steps p{font:.875rem/1.5 system-ui,sans-serif;margin:0!important;color:#c4d3df}.gp-art{min-height:130px;display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap}.gp-art>.gp-photo{width:100%;max-height:160px;object-fit:contain}.gp-art>.gp-gear{width:112px;height:112px}.gp-art>svg{max-width:100%;height:130px}.gp-art>.path-art{width:96px;height:96px}.gp-art>.crown-product-art{width:140px;height:130px}.gp-art>.workshop-art{position:relative;display:block;width:112px;height:112px}.gp-art>.workshop-art svg{width:100%;height:100%}.gp-art>.workshop-art b{position:absolute;bottom:2px;right:2px;padding:2px 5px;background:#08131a;color:#f1d194}.gp-art>.squire-scene{width:100%}.gp-art>.squire-scene svg{width:100%;height:auto}
.gp-action{display:block;margin-top:12px;padding:9px 12px;background:linear-gradient(#293949,#18242f);border:1px solid #b79a60;box-shadow:inset 0 2px #d9bb75;color:#f1d99d;font-size:.8125rem;font-weight:650;text-align:center}.gp-mini-panel{width:100%;box-sizing:border-box;border:1px solid #85714d;border-top:3px solid #c6a65f;background:#14212c;padding:12px;font:.75rem/1.5 system-ui,sans-serif}.gp-mini-panel>strong{display:block;color:#efd098;font:1rem Georgia,serif;margin-bottom:10px}.gp-mini-panel>div{display:flex;flex-wrap:wrap;gap:5px 12px;justify-content:space-between;border-top:1px solid #344450;padding:7px 0}.gp-mini-panel b{color:#e9d49f;max-width:100%;overflow-wrap:anywhere}
.gp-bar{width:100%;font:.75rem/1.4 system-ui;margin:8px 0}.gp-bar>span,.gp-bar>strong{display:block;color:#d7e2ea}.gp-bar>strong{text-align:right;font-size:.6875rem;margin-top:2px}.gp-bar>i{display:block;height:13px;margin-top:5px;border:1px solid #8c7547;background:#080f17;overflow:hidden}.gp-bar>i>b{display:block;height:100%;background:linear-gradient(90deg,#72562a,#e3c078)}.gp-health>i>b{background:linear-gradient(90deg,#28765a,#87cc8e)}.gp-ward>i>b{background:linear-gradient(90deg,#315a84,#8fbde0)}.gp-violet>i>b{background:linear-gradient(90deg,#654382,#c297dd)}
.gp-skill-tray{display:flex;justify-content:center;flex-wrap:wrap;gap:8px;width:100%}.gp-skill-tray>span{width:48px;height:48px;display:block}.gp-skill-tray svg{width:100%;height:100%}.gp-bag{display:grid;grid-template-columns:repeat(3,54px);gap:6px}.gp-bag>span{display:block;width:54px;height:54px;background:#18232e;border:1px solid #756344}.gp-bag svg{width:100%;height:100%}.gp-party{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;width:100%;text-align:center;font-size:.75rem}.gp-party img{width:58px;height:58px;object-fit:contain;display:block;margin:auto}.gp-party b{color:#e9d7ab}.gp-health-example,.gp-meter{width:100%}.gp-health-example>.gp-photo{height:60px;max-width:100%;display:block;margin:auto}.gp-enemies{display:flex;gap:6px}.gp-enemies svg{width:50px;height:60px}.gp-rarities{display:flex;flex-wrap:wrap;justify-content:center;gap:8px}.gp-rarities>div{width:75px;border:1px solid #929897;padding:4px;background:#141e2a;text-align:center}.gp-rarities svg{width:60px;height:60px}.gp-rarities b,.gp-rarities small{display:block;font:.6875rem/1.5 system-ui}.gp-rarity-magic{border-color:#689abc!important}.gp-rarity-rare{border-color:#c7ae57!important}.gp-rarity-epic{border-color:#b289cc!important}.gp-rarity-legendary{border-color:#df914a!important}
@media(max-width:600px){.guide-picture{padding:16px 12px}.gp-steps{grid-template-columns:1fr;gap:22px}.gp-art{min-height:105px}.gp-steps>li{padding:16px 12px}.guide-picture>figcaption strong{font-size:1.1875rem}.gp-art>.gp-photo{max-height:145px}.gp-mini-panel{font-size:.8125rem}.gp-bar{font-size:.8125rem}}

.material-guide-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(72px,1fr));gap:6px;width:100%;align-items:start}.material-guide-grid>span{text-align:center;min-width:0}.material-guide-grid small{display:block;font:.6875rem/1.35 system-ui;color:#d6e0dc;overflow-wrap:anywhere}.material-guide-grid .workshop-art{display:block;position:relative;width:48px;height:48px;max-width:100%;margin:0 auto 6px}.material-guide-grid .workshop-art img,.gp-art>.material-art img{display:block;width:100%;height:100%;object-fit:contain}.material-guide-grid .workshop-art>b{position:absolute;right:0;bottom:0;padding:1px 3px;background:#12161ded;color:#f3d6a4;font:.625rem/1.4 system-ui}
/* New-player path on the Guide home: numbered steps, each a 44px+ link with its one-line summary. One column on phones. */
.handbook-start{margin:16px 0 8px;padding:14px 16px;border:1px solid #9b895855;border-radius:6px;background:linear-gradient(120deg,#1b2a3c,#121c2c)}
.handbook-start h2{margin:0 0 10px;font:1.125rem/1.3 Georgia,serif;color:#f2d29b}
.handbook-start ol{margin:0;padding:0;list-style:none;counter-reset:guide-step;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr));gap:8px}
.handbook-start li{counter-increment:guide-step;min-width:0}
.handbook-start-link{display:grid;grid-template-columns:28px minmax(0,1fr);column-gap:10px;align-items:start;min-height:44px;height:100%;box-sizing:border-box;padding:9px 11px;border:1px solid #667066;border-radius:5px;background:#203036;color:#f4d6a4;text-decoration:none}
.handbook-start-link::before{content:counter(guide-step);grid-row:1/span 2;display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#3b3220;border:1px solid #a68d57;color:#f2d29b;font-weight:700;font-size:.875rem}
.handbook-start-link strong{font-size:.9375rem;overflow-wrap:anywhere}
.handbook-start-link small{color:#c1cecc;font-size:.8125rem;line-height:1.4;margin-top:2px;overflow-wrap:anywhere}
.handbook-start-link:hover,.handbook-start-link:focus-visible{border-color:#d9b46b;background:#26393f}
@media(max-width:420px){.handbook-start{padding:12px 10px}.handbook-start-link small{font-size:.75rem}}
/* Way back from a Guide topic opened by a help "?" or an in-page link (full pass, 13 Oct). */
.handbook .guide-return{display:inline-flex;align-items:center;min-height:44px;margin:0 0 12px;padding:0 16px}
/* Legendary quest chain: the finder's own page (public/handbook.js legendaryJourney). Shown only to the character who found the first sigil. */
.handbook-legendary{position:relative;margin:0 0 24px;padding:20px 24px;border:1px solid #c9973f;background:linear-gradient(135deg,#2a1d0c 0%,#141a20 55%,#1b1408 100%);box-shadow:inset 0 0 0 1px #00000080,0 0 22px #e8a53a26}
.handbook-legendary h2{margin:0 0 4px;font-family:Georgia,serif;color:#f2c56b;font-size:1.6rem}
.handbook-legendary-note{margin:0 0 14px;color:#c8b48c;font-size:.92rem}
.handbook-legendary-steps{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.handbook-legendary-steps li{display:flex;gap:10px;align-items:flex-start;line-height:1.45;color:#e6dcc6}
.handbook-legendary-steps li.is-next{color:#f6e2b2;font-weight:600}
.handbook-legendary-mark{flex:0 0 22px;height:22px;display:inline-grid;place-items:center;border-radius:50%;border:1px solid #c9973f;color:#f2c56b;font-size:.8rem}
.handbook-legendary-steps li.is-next .handbook-legendary-mark{background:#c9973f;color:#1b1408}
.handbook-legendary-weapon{margin-top:16px;padding:14px 16px;border-top:1px solid #c9973f80}
.handbook-legendary-weapon h3{margin:0 0 6px;color:#ffcf6e;font-family:Georgia,serif}
.handbook-legendary-weapon h4{margin:12px 0 4px;color:#d9b673;font-size:.85rem;letter-spacing:.06em;text-transform:uppercase}
.handbook-legendary-weapon ul{margin:0;padding-left:18px;color:#e6dcc6;line-height:1.5}
@media(max-width:600px){.handbook-legendary{padding:16px 14px}.handbook-legendary h2{font-size:1.35rem}}
.handbook .handbook-legendary h2,.handbook .handbook-legendary p,.handbook .handbook-legendary li,.handbook .handbook-legendary h3{text-transform:none;letter-spacing:normal}
.handbook .handbook-legendary-steps li{font-size:1rem}.handbook .handbook-legendary-note{font-size:.92rem}
.handbook .handbook-legendary-weapon li{font-size:.98rem;line-height:1.55;text-transform:none;letter-spacing:normal}
.handbook-legendary-weapon{display:flex;gap:16px;align-items:center;margin:0 0 18px;padding:12px;border:1px solid #c9973f80;border-radius:8px;background:#0e1216b3}
.handbook-legendary-icon{flex:0 0 96px;width:96px;height:96px;border:2px solid #e09a3c;border-radius:8px;box-shadow:0 0 12px #ff8c2a40;object-fit:cover}
.handbook .handbook-legendary-kicker{margin:0;color:#e5c98b;font-size:.8rem;letter-spacing:.08em;text-transform:uppercase}
.handbook-legendary-weapon h3{margin:2px 0 6px}
.handbook-legendary-more summary{cursor:pointer;color:#f2c56b;font-size:.9rem;min-height:32px;display:inline-flex;align-items:center}
.handbook .handbook-legendary-more p,.handbook .handbook-legendary-more li{color:#d9ccb0;font-size:.95rem;line-height:1.5;text-transform:none;letter-spacing:normal}
.handbook-legendary-more p{margin:2px 0 4px}
@media(max-width:600px){.handbook-legendary-weapon{gap:12px}.handbook-legendary-icon{flex-basis:72px;width:72px;height:72px}}
.handbook .handbook-legendary p.handbook-legendary-kicker{color:#d9b673;font-size:.75rem;letter-spacing:.12em;text-transform:uppercase}
.handbook .handbook-legendary .handbook-legendary-weapon h3{color:#ffc670;font-size:1.4rem;line-height:1.2}
.handbook .handbook-legendary-more summary{text-transform:none;letter-spacing:normal;font-family:inherit;font-weight:600}
.handbook-legendary-story{margin-top:14px;padding-top:10px;border-top:1px solid #c9973f55}
.handbook .handbook-legendary-story strong{color:#f2e2bd}
/* While a search is typed the results come straight under the box: the new-player path, the Quick reference row and the legendary journey step aside. */
.handbook.is-searching .handbook-start,.handbook.is-searching .handbook-popular,.handbook.is-searching>.handbook-legendary,.handbook.is-searching .hb-start,.handbook.is-searching .hb-reference{display:none}
/* The kit's front (New here cards and Quick reference chips) hides too while you search: the results started below the fold, under both (game audit, 6 Nov). */.handbook.is-searching #guideResults{margin-top:14px}
/* Guide front page (IRP_GUIDE_FRONT_VERSION, lib/guide-front.js; visual tune-up item 8, 23 Oct): the kit head, the New here steps as icon cards, and Quick
   reference as chips in even rows (3 by 2, 2 by 3 on a phone), so no chip sits alone on a row. Classes appear only while the switch is on. */
.handbook .hb-head{margin:0 0 16px}
.handbook .hb-start{margin:16px 0 12px;padding:14px 16px}
.handbook .hb-steps{margin:10px 0 0;padding:0;list-style:none;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.handbook .hb-step{display:flex;align-items:flex-start;gap:10px;height:100%;box-sizing:border-box;padding:10px 12px;text-decoration:none;color:inherit}
.handbook .hb-step .uk-icon-tile{flex:0 0 40px}
.handbook .hb-step-text{display:flex;flex-direction:column;gap:3px;min-width:0}
.handbook .hb-step-text strong{font:600 .9375rem/1.3 var(--uk-sans,var(--ui,system-ui));color:#f2d29b}
.handbook .hb-step-n{color:#c9b27c}
.handbook .hb-step-text small{font:.8125rem/1.4 var(--uk-sans,var(--ui,system-ui));color:#c5ccd3}
.handbook .hb-reference{display:flex;align-items:center;gap:12px;margin:0 0 16px}
.handbook .hb-reference-label{flex:0 0 auto;font-weight:600;color:#c9b27c}
.handbook .hb-chips{flex:1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.handbook .hb-chips .uk-chip{justify-content:center;text-align:center;text-decoration:none;white-space:normal;min-height:34px}
@media(max-width:1100px){.handbook .hb-steps{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.handbook .hb-steps{grid-template-columns:1fr}.handbook .hb-reference{flex-direction:column;align-items:stretch;gap:6px}.handbook .hb-chips{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* /oath.css */
.chapter-destinations{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:10px;margin-top:18px}.chapter-destinations h2{grid-column:1/-1;font:1.5rem Georgia;color:#efd19b}.chapter-destinations button{min-height:70px;display:grid;gap:7px;text-align:left;white-space:normal}.chapter-destinations small{color:#c2c7bd}.chapter-destinations .selected{border-color:#f2cc88;background:#38423b}.oath-pin>span:last-child{position:absolute!important;width:1px!important;height:1px!important;clip-path:inset(50%);overflow:hidden}.oath-pin>span:first-child{font:1.25rem Georgia;min-width:44px;min-height:44px;display:grid;place-items:center;color:#ffe2a8;background:#15242c;border:1px solid #c6a875;border-radius:50%}.oath-pin:focus-visible{outline:3px solid #fff0bd;outline-offset:5px}@media(max-width:600px){.chapter-destinations{grid-template-columns:repeat(2,minmax(0,1fr))}.chapter-destinations button{font-size:.8125rem;padding:10px;overflow-wrap:anywhere}.chapter-destinations small{font-size:.6875rem}}

.oath-gear{position:relative;background-color:#13262d;border:2px solid var(--model-rarity)!important;box-shadow:none;box-sizing:border-box;border-radius:5px;overflow:hidden;}.oath-gear .item-model-frame{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);overflow:hidden;background:none;max-height:none;}.item-tier-badge{position:absolute;right:1px;top:1px;bottom:auto;z-index:2;padding:0 2px;border-radius:2px;background:#081219e8;color:#f6deb0;font:700 .5625rem/.875rem system-ui;letter-spacing:0;pointer-events:none;}
.world-map .oath-pin{padding:0;border:0;background:none;box-shadow:none;min-width:44px;min-height:44px}
@media(max-width:600px){
 .world-map .city-pin{--pin-x:24%!important;--pin-y:80%!important}
 .world-map [data-map-cellar]{--pin-x:20%!important;--pin-y:29%!important}
 .world-map [data-map-zone="sablewater-mill"]{--pin-x:50%!important;--pin-y:45%!important}
 .world-map [data-map-zone="ashen-bell-foundry"]{--pin-x:75%!important;--pin-y:68%!important}
 .world-map [data-map-zone="gloamroot-weald"]{--pin-x:23%!important;--pin-y:49%!important}
 .world-map [data-map-zone="rimeglass-reach"]{--pin-x:19%!important;--pin-y:13%!important}
 .world-map [data-map-zone="drowned-orrery"]{--pin-x:46%!important;--pin-y:15%!important}
 .world-map [data-map-zone="crownless-bastion"]{--pin-x:73%!important;--pin-y:15%!important}
 .world-map [data-map-zone="shatterdune-caravanserai"]{--pin-x:82%!important;--pin-y:36%!important}
 .world-map [data-map-zone="violetdeep-warrens"]{--pin-x:47%!important;--pin-y:66%!important}
 .world-map [data-map-zone="cinder-oath"]{--pin-x:81%!important;--pin-y:84%!important}
 .world-map .dungeon-pin:not(.oath-pin){padding:5px;max-width:100px}
 .world-map .dungeon-pin:not(.oath-pin)>svg,.world-map .frontier-pin:not(.oath-pin)>span:first-child{display:none}
 .world-map .dungeon-pin:not(.oath-pin) small{display:none}
}

.oath-gear.enhanced-glow{box-shadow:0 0 var(--enhance-glow) var(--enhance-light),inset 0 0 var(--enhance-glow) var(--enhance-light)}
.item-tile:has(.oath-gear){padding:0;border:0;background:#13262d;box-shadow:none}
.item-tile .oath-gear{filter:none}

/* /workshops-combat.css */
/* The workshop and combat update: shared typography and contained phone layouts. */
.item-new-mark{white-space:nowrap}
@media(max-width:640px){.character-panel .paper-doll{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 12px}.character-panel .paper-doll>div{display:contents}.character-panel .paper-doll figure{grid-column:1/-1;order:-1}.character-panel .paper-doll figure img{height:280px}.character-panel .paper-slot{display:grid;justify-items:center;align-self:start;gap:6px}.character-panel .paper-slot>span{overflow-wrap:normal;word-break:normal;max-width:100%}.character-panel .paper-slot .item-tile{width:72px;height:72px}}
.damage-meter{margin:12px 0;padding:12px;background:linear-gradient(135deg,#20313a,#13212a);border:1px solid #576362;border-radius:8px;color:#e5e9e5;font:.8125rem/1.45 system-ui;min-width:0}
.damage-meter .meter-name{color:var(--meter-color);background:none;border:0;padding:4px 0;text-align:left;font:inherit;font-weight:700;min-height:44px;overflow-wrap:anywhere;min-width:0;text-decoration:underline;text-underline-offset:3px}
.meter-detail-backdrop{z-index:1100}.meter-detail-backdrop .meter-breakdown{width:min(760px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto;box-sizing:border-box;margin:0;padding:24px;font-size:.9375rem}.meter-detail-backdrop .meter-breakdown h4{font-size:1.5rem}.meter-detail-backdrop .meter-breakdown dl{grid-template-columns:repeat(auto-fit,minmax(min(100%,104px),1fr));gap:16px}.meter-detail-backdrop .meter-breakdown dt{font-size:.8125rem}.meter-detail-backdrop .meter-breakdown summary{font-size:1rem;min-height:48px}.meter-detail-backdrop .meter-breakdown header button{padding:10px 16px;font:inherit;color:#f0e3c9;background:#243943;border:1px solid #67756c;border-radius:5px}
.meter-person>div:first-child{align-items:center}.meter-breakdown{margin-top:14px;padding-top:10px;border-top:1px solid #8a7653}.meter-breakdown h4{font:1rem Georgia;margin:0;overflow-wrap:anywhere}.meter-breakdown header button{min-height:44px}.meter-breakdown summary{justify-content:space-between;gap:10px}.meter-breakdown summary span{overflow-wrap:anywhere}.meter-breakdown summary b{white-space:nowrap}.meter-breakdown summary small{display:block;text-align:right;color:#bdc9c7}.meter-breakdown dl{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:10px;margin:6px 0 14px}.meter-breakdown dt{font-size:.6875rem;color:#bdc9c7}.meter-breakdown dd{margin:3px 0;font-variant-numeric:tabular-nums;color:#f0d5a6}.meter-breakdown button:focus-visible,.meter-name:focus-visible{outline:2px solid #e3c48b;outline-offset:2px}
.damage-meter header{display:flex;align-items:center;justify-content:space-between;gap:8px}.damage-meter h3{font:1.125rem Georgia;margin:3px 0;color:#f0d5a6}.damage-meter .eyebrow{font-size:.5625rem;letter-spacing:.1em;margin:0}.damage-meter header>strong{color:#f4d8a2;white-space:nowrap;font-variant-numeric:tabular-nums}
.meter-tabs{display:grid;grid-template-columns:1fr 1fr;margin:12px 0;gap:5px}.meter-tabs button{min-height:44px;background:#14232b;border:1px solid #506168;color:#bec9c9;border-radius:5px;font:inherit}.meter-tabs button[aria-pressed=true]{background:#42473d;color:#ffe1ac;border-color:#9e8e68}
.meter-row{display:flex;gap:8px;margin:11px 0}.meter-rank{color:#a7b3b4;font-size:.6875rem;padding-top:2px}.meter-person{flex:1;min-width:0}.meter-person>div:first-child,.meter-totals{display:flex;justify-content:space-between;gap:6px}.meter-person strong{color:var(--meter-color);overflow-wrap:anywhere}.meter-person b{white-space:nowrap;font-size:.75rem}.meter-person small{font-size:.5625rem;color:#b6c1c5}.meter-track{height:5px;margin:5px 0;background:#09181f;border-radius:4px;overflow:hidden}.meter-track i{display:block;height:100%;background:var(--meter-color);border-radius:4px}.meter-totals{color:#b5c3c5;font-size:.625rem;font-variant-numeric:tabular-nums}
.meter-note{font-size:.6875rem;color:#bdc9c7;margin:12px 0 0}.damage-meter details{border-top:1px solid #43545b;margin-top:8px}.damage-meter summary{cursor:pointer;min-height:44px;display:flex;align-items:center;color:#dec595}.damage-meter details p{font-size:.75rem;color:#bdc9c7}
.character-stats{margin-top:20px}.character-stats>header{padding-bottom:16px;border-bottom:1px solid #514f45}.character-stats h2{font:1.75rem Georgia;color:#f1d7ac;margin:6px 0 10px}.character-stats header p{color:#bec6c5}.character-stat-groups{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:20px;margin:20px 0}.character-stat-group{min-width:0}.character-stat-group h3{font:1.25rem Georgia;color:#e7c896;margin:0 0 12px}
.character-stat-group dl{margin:0}.character-stat{display:grid;grid-template-columns:1fr auto;gap:5px 10px;border-bottom:1px solid #ffffff12;padding:12px 0;font:.875rem/1.45 system-ui}.character-stat dt{color:#d0d7d5}.character-stat dd{margin:0;font-weight:700;color:#f2dfbd;font-variant-numeric:tabular-nums}.character-stat small{grid-column:1/-1;color:#a7b7bc;font-size:.75rem}
.character-attribute-details{border:1px solid #57605b;border-radius:8px;background:#14232b}.character-attribute-details>summary{padding:14px;min-height:48px;cursor:pointer;color:#efd3a7}.character-attribute-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(165px,1fr));gap:12px;padding:0 14px 14px}.character-attribute-list article{background:#21313a;padding:12px;border-radius:6px}.character-attribute-list header{display:flex;align-items:center;justify-content:space-between;gap:8px}.character-attribute-list h3{font:1.0625rem Georgia;margin:0;color:#edcfa1}.character-attribute-list strong{color:#f8e2b4}.character-attribute-list p,.character-attribute-list small{font:.75rem/1.5 system-ui;color:#bdcaca}
.portrait-effect{font-size:.6875rem;line-height:1.5;min-height:22px;padding:3px 5px}.portrait-effect.debuff{background:#45242d;border-color:#c16d77;color:#ffe0d7}.portrait-effect.buff{background:#1b3c34;border-color:#79a88b;color:#d6ffe0}
.nav-tools{display:grid;gap:6px}.nav-tools button{width:100%;min-height:44px;display:flex;align-items:center;justify-content:center;gap:8px;font:.8125rem system-ui}.nav-tools svg{width:18px;height:18px}.patch-new{display:inline-block;padding:2px 5px;background:#d8b579;color:#19242a;border-radius:4px;font:700 .625rem/1.4 system-ui;text-transform:uppercase}
.release-dialog{width:min(780px,100%);max-height:calc(100dvh - 32px);display:flex;flex-direction:column;padding:0!important;overflow:hidden}.release-dialog>header{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:18px 22px;border-bottom:1px solid #68604d;flex-shrink:0}.release-dialog h2{font:1.75rem Georgia;color:#f3d9ac;margin:3px 0}.release-dialog .eyebrow{font-size:.6875rem;margin:0}.release-dialog header button{min-width:44px;min-height:44px}.release-list{padding:0 22px 22px;overflow:auto;overscroll-behavior:contain}.release-entry{padding:24px 0;border-bottom:1px solid #554f43}.release-entry h3{font:1.5rem Georgia;color:#edcc94;margin:12px 0}.release-entry h4{font:600 .875rem system-ui;color:#e0c392;margin:20px 0 8px}.release-meta{display:flex;flex-wrap:wrap;gap:8px;color:#aebfc4;font:.75rem system-ui}.release-version{font-weight:700;color:#ecd0a1}.release-entry li{font:.875rem/1.65 system-ui;color:#d5ddda;margin:8px 0}.release-entry ul{padding-left:20px}.release-entry:first-child h3{font-size:1.8125rem}
@media(max-width:1000px){.character-stat-groups{grid-template-columns:1fr 1fr}.character-stat-group:last-child{grid-column:1/-1}.character-stat-group:last-child dl{display:grid;grid-template-columns:1fr 1fr;gap:0 22px}}
@media(max-width:1179px){.nav-tools{display:flex}.nav-tools button{width:auto;padding:8px}.nav-tools .utility-copy{display:none}.nav-tools .patch-new{position:absolute;right:-2px;top:-4px;font-size:.5rem}.nav-tools button{position:relative;min-width:44px}.nav-tools .change-log-symbol{font-size:1.25rem}}
@media(min-width:1180px){.mmo-shell .party-rail{overflow-y:auto;min-height:0}.mmo-shell .nav-tools .change-log-symbol{display:none}}
@media(max-width:600px){.character-stat-groups{grid-template-columns:1fr;gap:24px}.character-stat-group:last-child{grid-column:auto}.character-stat-group:last-child dl{display:block}.character-stat{font-size:.875rem}.character-stats{padding:16px!important}.character-stats h2{font-size:1.5625rem}.character-attribute-list{grid-template-columns:1fr}.release-dialog{max-height:calc(100dvh - 16px)}.release-dialog>header{padding:14px}.release-list{padding:0 16px 16px}.release-entry h3{font-size:1.375rem}.release-entry:first-child h3{font-size:1.5625rem}}
.workshop-page{max-width:1500px}.workshop-heading{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:8px 0 24px;border-bottom:1px solid #71634c;margin-bottom:20px}.workshop-heading h1{font:2.375rem Georgia;color:#f3d39e;margin:7px 0}.workshop-heading p:last-child{color:#bac7c8;margin:0;font:.875rem system-ui}.workshop-heading button{min-height:44px}
.workshop-farming{padding:12px 16px;background:#1e3933;border:1px solid #587465;border-radius:6px;color:#d0e4d5;font:.8125rem/1.5 system-ui}.workshop-layout{display:grid;grid-template-columns:minmax(240px,.8fr) minmax(0,1.7fr);gap:22px;align-items:start}.workshop-layout>aside{min-width:0}
.workshop-picker,.workshop-bench,.workshop-exchange{border:1px solid #67634f;background:linear-gradient(135deg,#213039,#15222a);border-radius:10px;padding:18px}.workshop-picker>summary{min-height:44px;cursor:pointer;font:1.25rem Georgia;color:#f1d1a0}.workshop-picker>summary small{display:block;font:.75rem system-ui;color:#aebdc0;margin:5px 0 14px}
.workshop-picker label{display:grid;gap:7px;font:.8125rem system-ui;color:#c5d2cf;margin:10px 0}.workshop-picker input{width:100%;box-sizing:border-box;min-height:44px;background:#101d25;border:1px solid #637476;border-radius:5px;color:#edf1e8;padding:10px;font:1rem system-ui}
.workshop-filter{display:grid;grid-template-columns:repeat(3,1fr);gap:5px;margin:12px 0}.workshop-filter button{min-height:44px;background:#16262e;border:1px solid #526468;border-radius:4px;font:.75rem system-ui;color:#c2cccc}.workshop-filter [aria-pressed=true]{border-color:#d3b580;background:#434b40;color:#ffe1ab}
.workshop-items{max-height:530px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;padding-right:4px}.workshop-item{display:flex;align-items:center;gap:12px;padding:10px;width:100%;min-height:76px;margin:0 0 8px;border:1px solid #4d605f;background:#13232c;color:#ebd6b4;border-radius:6px;text-align:left}.workshop-item[aria-pressed=true]{background:#35443c;border-color:#d6b980;box-shadow:inset 3px 0 #d6b980}.workshop-item[hidden]{display:none}.workshop-item .gear-icon{width:48px;height:48px;flex:none}.workshop-item>span{min-width:0}.workshop-item strong{display:block;font:.9375rem/1.35 Georgia;overflow-wrap:anywhere}.workshop-item small{display:block;color:#b7c9c7;font:.6875rem/1.5 system-ui;margin-top:6px}
.workshop-bench{padding:26px;min-width:0}.workshop-bench p{font:.875rem/1.6 system-ui;color:#bdcdcc}.workshop-bench h3{font:1.625rem Georgia;color:#edcf9c;margin:24px 0 8px}.workshop-bench h4{font:600 .9375rem system-ui;color:#e5c692}.workshop-workpiece{display:flex;align-items:center;gap:18px;border-bottom:1px solid #71654f;padding:0 0 20px}.workshop-workpiece>.gear-icon{width:82px;height:82px;flex:none}.workshop-workpiece h2{font:1.75rem/1.2 Georgia;color:#f4dab0;margin:0;overflow-wrap:anywhere}.workshop-workpiece p{margin:8px 0 0;font-size:.75rem}
.workshop-ranks{display:grid;grid-template-columns:1fr 24px 1fr;gap:12px;align-items:center;background:#101e27;border:1px solid #506060;padding:18px;border-radius:8px;margin:20px 0;color:#ddc495}.workshop-ranks>div{display:grid;gap:5px}.workshop-ranks small{font:.75rem system-ui;color:#b4c1c5}.workshop-ranks strong{font:2rem Georgia;color:#f8dc9d}.workshop-ranks span{font:.75rem system-ui}
.workshop-chance{padding:16px 0;display:grid;gap:10px}.workshop-chance strong{font:1.3125rem Georgia;color:#e9d6ab}.workshop-chance meter{width:100%;height:13px}.workshop-chance small{color:#afc0c5;font:.75rem/1.5 system-ui}
.workshop-cost{margin:12px 0;background:#0f2029;border:1px solid #4d605e;border-radius:7px;padding:4px 14px}.workshop-cost>div{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid #354c52;font:.8125rem/1.4 system-ui}.workshop-cost>div:last-child{border:0}.workshop-cost dt{color:#d5ddcf}.workshop-cost dd{margin:0;text-align:right;color:#f1d3a2}.workshop-cost dd span{display:block;color:#a9c4bc;font-size:.6875rem;margin-top:4px}.workshop-cost .missing dd span{color:#f4a895}
.workshop-risk{padding:12px 14px;border-left:3px solid #b39568;background:#4a3a232b}.workshop-confirm button{min-height:48px;width:100%;font-weight:700}.workshop-result{border:1px solid #7d947c;background:#203e34;padding:14px;border-radius:6px;margin:16px 0;color:#d8edcc}.workshop-result.failure{border-color:#a98669;background:#3e342c;color:#f0c5a5}.workshop-result p{margin:6px 0 0}
.workshop-preview,.workshop-properties,.workshop-exchange{margin-top:18px}.workshop-preview summary,.workshop-properties summary,.workshop-exchange summary{min-height:44px;cursor:pointer;padding:10px 0;color:#e6cc9e;font:.875rem/1.5 system-ui}.workshop-preview-table{overflow:auto}.workshop-preview table{width:100%;border-collapse:collapse;font:.8125rem system-ui}.workshop-preview th,.workshop-preview td{padding:10px;border-bottom:1px solid #4a5959;text-align:left}.workshop-preview td:last-child{color:#add9b0}.workshop-properties{padding-top:12px;border-top:1px solid #53615b}
.workshop-operations{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:20px 0}.workshop-operations button{min-height:72px;border:1px solid #5d6c69;background:#13252d;border-radius:6px;padding:12px;text-align:left;color:#d2dcd3}.workshop-operations strong{font:.9375rem Georgia;display:block}.workshop-operations small{display:block;font:.6875rem/1.4 system-ui;color:#b2c3c6;margin-top:6px}.workshop-operations [aria-pressed=true]{background:#3d463b;border-color:#d2b378;color:#ffdead}
.workshop-operation{border:1px solid #667065;background:#14262e;padding:18px;border-radius:8px}.workshop-operation>header{display:flex;align-items:center;gap:12px}.workshop-operation>header .gear-icon{width:48px;height:48px;flex:none}.workshop-operation>header h4{margin:3px 0}.workshop-operation>header .eyebrow{font:.625rem system-ui;margin:0;color:#c4b693}.workshop-operation .gear-enchant-form{padding:0;border:0;background:none;box-shadow:none}.workshop-operation form label{display:grid;gap:8px;color:#d5decf;font:.8125rem system-ui;margin:16px 0}.workshop-operation select{width:100%;min-height:44px;font:1rem system-ui;padding:8px}.workshop-operation form>button{width:100%;min-height:48px;margin-top:12px}.workshop-operation .random-pool{border:1px solid #546466;padding:12px;border-radius:5px}.workshop-operation .random-pool summary{min-height:44px;padding:8px 0;font:.8125rem/1.5 system-ui;color:#e7cda3;cursor:pointer}
.workshop-exchange article{padding:10px 0 16px;border-bottom:1px solid #52635d}.workshop-exchange h4{font:1.0625rem Georgia;color:#e7ca98;margin:10px 0}.workshop-exchange p{font:.75rem/1.6 system-ui;color:#bdcccd}.workshop-exchange button{min-height:44px;width:100%;font-size:.8125rem}
.world-map-scroll{min-width:0;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;border-radius:8px;scrollbar-color:#ae9063 #1c282b;scrollbar-width:thin}
@media(max-width:1500px){.map-workspace{grid-template-columns:minmax(0,1fr)}}
.world-map-scroll .world-map{width:100%;min-width:880px;height:auto;aspect-ratio:3/2}.world-map-scroll .world-map-art{object-fit:fill}
.world-map-scroll .world-map .map-pin{max-width:160px;min-height:54px;gap:8px;padding:8px 10px;background:#17272bf2;border:1px solid #d3b27b;border-radius:5px;box-shadow:0 3px 10px #0009}
.world-map-scroll .world-map .dungeon-pin>span:first-child{display:block;min-width:0;min-height:0;border:0;background:none;border-radius:0}
.world-map-scroll .world-map .oath-pin>span:last-child{position:static!important;width:auto!important;height:auto!important;clip-path:none;overflow:visible}
.world-map-scroll .world-map .map-pin span{font:700 13px/1.25 Georgia;color:#ffe6b8}.world-map-scroll .world-map .map-pin small{display:block;font:10px/1.3 system-ui;color:#c6d0c8;white-space:nowrap;margin-top:4px}
.world-map-scroll .world-map .map-pin svg{display:block;fill:none;stroke:currentColor;stroke-width:1.5;width:25px;height:30px}.world-map-scroll .world-map .city-pin{--pin-x:38%!important;--pin-y:45%!important}
.world-map-scroll .world-map [data-map-cellar]{--pin-x:48%!important;--pin-y:29%!important}
.world-map-scroll .world-map [data-map-zone="sablewater-mill"]{--pin-x:64%!important;--pin-y:47%!important}
.world-map-scroll .world-map [data-map-zone="ashen-bell-foundry"]{--pin-x:79%!important;--pin-y:66%!important}
.world-map-scroll .world-map [data-map-zone="gloamroot-weald"]{--pin-x:24%!important;--pin-y:66%!important}
.world-map-scroll .world-map [data-map-zone="rimeglass-reach"]{--pin-x:69%!important;--pin-y:15%!important}
.world-map-scroll .world-map [data-map-zone="drowned-orrery"]{--pin-x:12%!important;--pin-y:36%!important}
.world-map-scroll .world-map [data-map-zone="crownless-bastion"]{--pin-x:40%!important;--pin-y:12%!important}
.world-map-scroll .world-map [data-map-zone="shatterdune-caravanserai"]{--pin-x:85%!important;--pin-y:44%!important}
.world-map-scroll .world-map [data-map-zone="violetdeep-warrens"]{--pin-x:56%!important;--pin-y:80%!important}
.world-map-scroll .world-map [data-map-zone="cinder-oath"]{--pin-x:88%!important;--pin-y:19%!important}
.chapter-destinations strong{display:flex;align-items:center;gap:8px}.chapter-destinations svg{width:24px;height:28px;fill:none;stroke:#d8b780;stroke-width:1.5;flex:none}
@media(max-width:900px){.world-map-scroll:before{content:"Swipe across the map · or choose a named expedition below";display:block;position:sticky;left:0;padding:10px 12px;color:#e6d1a9;background:#18292f;font:.75rem/1.5 system-ui}}
@media(max-width:1000px){.workshop-layout{gap:14px;grid-template-columns:minmax(220px,.8fr) minmax(0,1.4fr)}.workshop-bench{padding:18px}.workshop-workpiece h2{font-size:1.5rem}}
@media(max-width:760px){.workshop-heading{align-items:flex-start}.workshop-heading h1{font-size:1.75rem}.workshop-heading button{font-size:.75rem;max-width:100px}.workshop-layout{grid-template-columns:1fr}.workshop-picker{padding:14px}.workshop-picker>summary small{display:inline-block;margin:0 0 0 12px}.workshop-items{max-height:240px}.workshop-workpiece{gap:12px}.workshop-workpiece>.gear-icon{width:62px;height:62px}.workshop-bench h3{font-size:1.4375rem}.workshop-workpiece h2{font-size:1.4375rem}.workshop-operations button{padding:10px}.workshop-operations strong{font-size:.875rem}.workshop-operation{padding:12px}.workshop-exchange{padding:12px}}
.modal-backdrop .settings-modal{width:min(26rem,calc(100vw - 2rem));min-width:0;max-width:100%;overflow-wrap:anywhere}
.workshop-target{border-top:1px solid #71654f;margin-top:24px;padding-top:8px}.workshop-target label{display:grid;gap:8px;color:#e5c692}.workshop-target select,.workshop-target input{width:100%;box-sizing:border-box;min-height:44px;font:1rem system-ui}.workshop-estimate{padding:16px;border:1px solid #6b735d;background:#24342b;border-radius:7px;line-height:1.5}.workshop-estimate strong{color:#f0d19b;font:1.25rem Georgia}.workshop-estimate small{color:#c2cfc6;line-height:1.6}.workshop-run-steps{max-height:320px;overflow:auto}.workshop-run-steps table{width:100%;border-collapse:collapse;table-layout:fixed}.workshop-run-steps th,.workshop-run-steps td{padding:9px 5px;text-align:left;border-bottom:1px solid #53615b;overflow-wrap:anywhere;font:.8125rem/1.5 system-ui}.workshop-result summary{min-height:44px;padding:10px 0;cursor:pointer}.party-leave{max-width:380px;border:1px solid #a78460;border-radius:5px;padding:0 12px}.party-leave>summary{min-height:44px;padding:10px 0;cursor:pointer;box-sizing:border-box;color:#efcba0}.party-leave p{font:.875rem/1.6 system-ui}.party-leave button{margin-bottom:12px}
/* Emberforge and Starweave: original dark-metal workshop frames. */
.workshop-page{--workshop-accent:#d7aa6a;--workshop-haze:#bd68251b;max-width:1320px}.workshop-arcane{--workshop-accent:#b5a3df;--workshop-haze:#7856c523}.workshop-heading{border-bottom:1px solid #8e7552;padding-bottom:18px}.workshop-heading h1{font-size:2rem}.workshop-layout{grid-template-columns:minmax(230px,.7fr) minmax(0,1.3fr);gap:18px}.workshop-picker,.workshop-bench,.workshop-exchange{border-radius:3px;background:linear-gradient(120deg,#25282a,#151b1f 60%,#10161a);border:1px solid #77654c;box-shadow:inset 0 0 0 3px #090e12,0 8px 20px #0003}.workshop-bench{padding:24px;border-top:3px solid var(--workshop-accent)}.workshop-bench>.eyebrow{letter-spacing:.16em;color:var(--workshop-accent);border-bottom:1px solid #746245;padding-bottom:12px}.workshop-workpiece{display:grid;grid-template-columns:180px minmax(0,1fr);gap:22px;padding-bottom:20px}.workshop-workpiece h2{font:1.5625rem/1.3 Georgia}.workshop-workpiece p{line-height:1.7;color:#c2bdac}.workshop-item-stage{position:relative;display:grid;place-items:center;width:180px;height:180px;isolation:isolate;background:radial-gradient(ellipse,var(--workshop-haze),#10161a 70%);border:1px solid #786346;border-radius:50%}.workshop-item-stage>.gear-icon{width:116px;height:116px;z-index:1;position:relative}.workshop-sigil{position:absolute;inset:7px;border:1px solid #8e75525c;border-radius:50%;color:var(--workshop-accent)}.workshop-sigil:before{content:'';position:absolute;inset:10px;border:1px dashed #8e75524d;border-radius:50%}.workshop-sigil span{position:absolute;font:.9375rem Georgia}.workshop-sigil span:nth-child(1){top:-9px;left:45%}.workshop-sigil span:nth-child(2){right:-7px;top:44%}.workshop-sigil span:nth-child(3){bottom:-9px;left:45%}.workshop-sigil span:nth-child(4){left:-7px;top:44%}.workshop-stage-rank{position:absolute;bottom:9px;left:50%;transform:translateX(-50%);z-index:2;background:#141b20;color:#f8dfb4;border:1px solid #997c51;border-radius:3px;padding:2px 9px;font:700 .875rem system-ui}.workshop-ranks{justify-content:space-around;margin:12px 0;padding:12px;border:1px solid #695d49;background:#0e171c}.workshop-ranks strong{font-size:1.5625rem}.workshop-chance{padding:8px 0;gap:6px}.workshop-chance strong{font-size:1.125rem}.workshop-target{margin:12px 0 0;padding:0;border:0}.workshop-target>p{font-size:.8125rem}.workshop-target>label{margin:12px 0}.workshop-estimate{padding:0 12px;background:#242a24;border-color:#67654c}.workshop-estimate summary{font:600 .875rem/1.6 system-ui;color:#e2c696;min-height:44px;padding:10px 0;cursor:pointer;box-sizing:border-box}.workshop-estimate small{display:block;margin:0 0 12px}.workshop-cost>div{padding:8px 0}.workshop-confirm button,.workshop-operation form>button{background:linear-gradient(#734b2b,#482b1a);border:1px solid #d0a361;box-shadow:inset 0 0 0 2px #332018;color:#ffedc6;min-height:48px;font:700 .875rem system-ui}.workshop-arcane .workshop-operation form>button{background:linear-gradient(#514665,#312939);border-color:#b5a3df;box-shadow:inset 0 0 0 2px #24202d}.workshop-confirm button:hover,.workshop-operation form>button:hover{filter:brightness(1.2)}.workshop-operations{gap:6px;margin:16px 0}.workshop-operations button{min-height:58px;padding:9px;background:#172024;border-radius:3px}.workshop-operations strong{font:.875rem Georgia}.workshop-operations small{font-size:.6875rem}.workshop-operations [aria-pressed=true]{border-color:var(--workshop-accent);background:#342f3c;color:#eadcfa}.workshop-operation{background:#131b22;padding:16px;border-color:#6c6277;border-radius:3px}.workshop-result{border-radius:3px;box-shadow:inset 3px 0 #a4b282}.workshop-result.failure{box-shadow:inset 3px 0 #b88162}.workshop-bench .enchant-result{border-color:#847497;background:#1c202b}.workshop-bench .enchant-result h3{font-size:1.3125rem}.workshop-item{background:#182126;border-radius:3px}.workshop-item[aria-pressed=true]{background:#35362d;border-color:var(--workshop-accent)}
.workshop-fx{position:absolute;inset:0;pointer-events:none;z-index:3;overflow:visible}.workshop-fx i{position:absolute;left:50%;top:50%;width:3px;height:8px;border-radius:50%;background:#ffe0a0;opacity:0;transform:rotate(var(--spark-angle)) translateY(-45px)}.workshop-item-stage[data-result=success] .workshop-fx i,.workshop-item-stage[data-result=partial] .workshop-fx i{animation:forge-sparks 900ms ease-out both}.workshop-item-stage[data-result=success]>.gear-icon{animation:forge-success 1200ms ease-out both}.workshop-item-stage[data-result=failure]>.gear-icon{animation:forge-failure 1100ms ease-out both}.workshop-arcane .workshop-fx i{background:#d6baff}.workshop-arcane .workshop-item-stage[data-result] .workshop-sigil{animation:enchant-orbit 1300ms ease-out both}.workshop-item-stage[data-result=changed]>.gear-icon,.workshop-item-stage[data-result=unchanged]>.gear-icon{animation:enchant-change 1200ms ease-out both}
@keyframes forge-sparks{0%{opacity:0;transform:rotate(var(--spark-angle)) translateY(-40px)}20%{opacity:.9}100%{opacity:0;transform:rotate(var(--spark-angle)) translateY(calc(-65px - var(--spark-length))) scale(.3)}}
@keyframes forge-success{0%{filter:brightness(1)}25%{filter:brightness(1.6);box-shadow:0 0 22px #f7c87899}100%{filter:brightness(1)}}
@keyframes forge-failure{0%{filter:brightness(1)}30%{filter:brightness(.62);box-shadow:0 0 16px #b2685266}100%{filter:brightness(1)}}
@keyframes enchant-orbit{0%{transform:rotate(0);opacity:.4}35%{opacity:1;border-color:#ddc5ff}100%{transform:rotate(90deg);opacity:.65}}
@keyframes enchant-change{0%{filter:brightness(1)}35%{filter:brightness(1.3);box-shadow:0 0 22px #b29bdb88}100%{filter:brightness(1)}}
@media(max-width:1000px){.workshop-layout{grid-template-columns:minmax(0,1fr)}.workshop-items{max-height:300px}.workshop-workpiece{grid-template-columns:160px minmax(0,1fr)}.workshop-item-stage{width:160px;height:160px}.workshop-item-stage>.gear-icon{width:100px;height:100px}}
@media(max-width:600px){.workshop-page{padding:12px 12px 96px}.workshop-heading{gap:10px}.workshop-heading h1{font-size:1.5625rem}.workshop-heading>button{font-size:.75rem;padding:8px;flex:none}.workshop-bench{padding:16px}.workshop-workpiece{grid-template-columns:112px minmax(0,1fr);gap:12px}.workshop-item-stage{width:112px;height:112px}.workshop-item-stage>.gear-icon{width:72px;height:72px}.workshop-workpiece h2{font-size:1.3125rem}.workshop-stage-rank{bottom:0;font-size:.75rem}.workshop-cost{padding:4px 10px}.workshop-target>p{font-size:.75rem}.workshop-bench .enchant-result{padding:10px}.workshop-estimate small{font-size:.75rem}.workshop-operations{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:360px){.workshop-workpiece{display:flex;flex-direction:column;text-align:center}.workshop-heading{align-items:flex-start}.workshop-heading .eyebrow{font-size:.5625rem}}
@media(prefers-reduced-motion:reduce){.workshop-item-stage *{animation:none!important}}

/* Result feedback also remains visible beside the action on narrow screens. */
.workshop-result[data-result=success],.enchant-result[data-result=success]{animation:workshop-result-success 1200ms ease-out both}.workshop-result[data-result=failure],.enchant-result[data-result=failure]{animation:workshop-result-failure 1200ms ease-out both}.enchant-result[data-result=changed],.enchant-result[data-result=unchanged],.workshop-result[data-result=partial]{animation:workshop-result-change 1200ms ease-out both}
@keyframes workshop-result-success{25%{box-shadow:inset 3px 0 #e3d59a,0 0 18px #cba34e77}}@keyframes workshop-result-failure{30%{box-shadow:inset 3px 0 #dc997c,0 0 15px #9b594d66}}@keyframes workshop-result-change{30%{box-shadow:inset 3px 0 #c2ade8,0 0 16px #9e83d166}}
@media(prefers-reduced-motion:reduce){.workshop-result,.enchant-result{animation:none!important}}
@media(max-width:360px){.workshop-ranks{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;text-align:center}.workshop-ranks>span{display:none}.workshop-ranks>div{width:100%}.workshop-operations{grid-template-columns:minmax(0,1fr)}}
.wayfarer-shell .workshop-confirm button,.wayfarer-shell .workshop-operation form>button{background:linear-gradient(#734b2b,#482b1a);color:#ffedc6;border-color:#d0a361;box-shadow:inset 0 0 0 2px #332018;min-height:48px}.wayfarer-shell .workshop-arcane .workshop-operation form>button{background:linear-gradient(#514665,#312939);color:#f3eaff;border-color:#b5a3df;box-shadow:inset 0 0 0 2px #24202d}
@media(max-width:360px){.workshop-cost>div{display:block}.workshop-cost dt{margin-bottom:5px;overflow-wrap:normal}.workshop-cost dd{text-align:left;margin:0}.workshop-cost dd span{display:block}}

/* Keep the decision together: selected equipment, target, cost and action. */
.workshop-page{max-width:1220px}.workshop-heading{margin-bottom:14px;padding:4px 0 14px}.workshop-heading h1{font:1.875rem/1.2 Georgia;margin:6px 0 0}.workshop-heading .eyebrow{font-size:.625rem;letter-spacing:.12em;color:#b6a283}
.workshop-farming{background:none;border:0;border-left:2px solid #739780;border-radius:0;padding:4px 10px;margin:0 0 15px;font-size:.75rem;color:#abbeb0}
.workshop-layout{grid-template-columns:minmax(240px,.72fr) minmax(0,1.5fr);gap:16px}.workshop-picker{padding:15px}.workshop-picker>summary{font-size:1.1875rem}.workshop-picker>summary small{float:right;margin:3px 0 0}.workshop-items{max-height:640px}.workshop-item{min-height:68px;padding:8px;gap:9px}.workshop-item small{font-size:.6875rem;margin-top:4px}.workshop-item .gear-icon{width:46px;height:46px}.workshop-item strong{font:.875rem/1.3 Georgia}
.workshop-bench{padding:20px}.workshop-bench>.eyebrow{font-size:.625rem;padding-bottom:8px;margin:0 0 13px}.workshop-workpiece{grid-template-columns:110px minmax(0,1fr);gap:18px;padding-bottom:14px}.workshop-workpiece h2{font:1.5rem/1.25 Georgia}.workshop-workpiece p{font-size:.75rem;margin-top:7px}.workshop-item-stage{width:110px;height:110px;border-radius:4px;background:radial-gradient(ellipse,var(--workshop-haze),#0e1418 75%);box-shadow:inset 0 0 0 4px #060b0e}.workshop-item-stage>.gear-icon{width:86px;height:86px}.workshop-sigil{inset:5px;border-radius:2px}.workshop-sigil:before{inset:4px;border-style:solid;border-radius:2px}.workshop-sigil span{display:none}.workshop-stage-rank{bottom:-4px;font-size:.75rem}
.workshop-ranks{grid-template-columns:minmax(0,1fr) 24px minmax(0,1fr);padding:11px 14px;margin:15px 0 10px;gap:8px;border-radius:3px;background:linear-gradient(90deg,#161d20,#29282040)}.workshop-ranks>div{display:grid;grid-template-columns:auto 1fr;align-items:baseline;gap:3px 8px}.workshop-ranks small{grid-column:1/-1}.workshop-ranks strong{font:1.625rem/1.2 Georgia}.workshop-ranks>div>span{color:#b8baa8;font-size:.6875rem}.workshop-ranks>span{display:block;font-size:1.1875rem;color:#b99a65}
.workshop-controls{display:grid;grid-template-columns:1fr 1fr;gap:14px}.workshop-controls .workshop-control{display:grid;gap:7px;font:.75rem/1.4 system-ui;color:#cebc9e;margin:8px 0 11px}.workshop-controls input,.workshop-controls select{background:#0f171b;border:1px solid #796646;border-radius:3px;color:#f1dfbd;padding:8px 11px;min-width:0;min-height:44px}
.workshop-chance{padding:6px 0 12px;gap:7px}.workshop-chance>div{display:flex;align-items:baseline;gap:7px;flex-wrap:wrap}.workshop-chance strong{font:1.5625rem/1.15 Georgia;color:#e8cd8b}.workshop-chance span{font:.75rem system-ui;color:#c3c2b3}.workshop-chance small{margin-left:auto;font-size:.6875rem}.workshop-chance meter{height:8px}
.workshop-bench .workshop-cost-title{font:.6875rem/1.4 system-ui;text-transform:uppercase;letter-spacing:.09em;color:#acaa99;margin:9px 0 7px}.workshop-cost{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:0;padding:0;margin:0 0 10px;border:1px solid #62563f;border-radius:3px;background:#0e171b}.workshop-cost>div{display:block;padding:9px 12px;border:0;border-right:1px solid #62563f88;min-width:0}.workshop-cost>div:last-child{border:0}.workshop-cost dt{font-size:.6875rem;line-height:1.4;color:#b7b9ac;margin-bottom:4px}.workshop-cost dd{text-align:left;font-size:1rem;font-variant-numeric:tabular-nums;color:#f1dab0}.workshop-cost dd span{font-size:.625rem;margin-top:3px;color:#9fafaa}.workshop-cost .missing{background:#53352740}.workshop-cost .missing dd span{color:#eeb79b}
.workshop-bench .workshop-risk{font:.75rem/1.5 system-ui;color:#d1b498;background:none;border:0;padding:0;margin:8px 0 12px}.workshop-confirm small{display:block;text-align:center;font:.6875rem/1.5 system-ui;color:#999f96;margin:7px 0 12px}
.workshop-estimate{padding:0 11px;border-radius:3px;background:#25292055;border-color:#605d45}.workshop-estimate summary{font:.75rem/1.5 system-ui;color:#c9b68f}.workshop-estimate p{font-size:.75rem}.workshop-estimate small{font-size:.6875rem}.workshop-preview,.workshop-properties{margin-top:9px}.workshop-preview summary,.workshop-properties summary{font-size:.75rem;color:#b6baa9}.workshop-preview p{font-size:.75rem}.workshop-properties{padding-top:2px}.workshop-guide{min-height:44px!important;font:.75rem system-ui!important;color:#d4b781!important;padding:8px 0!important;margin:3px 0;text-decoration:underline;background:none!important;border:0!important;box-shadow:none!important}
.workshop-result{padding:11px 13px;margin:13px 0;border-radius:3px}.workshop-result-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}.workshop-result-heading strong{font:600 .875rem system-ui}.workshop-result-heading span{font:.6875rem system-ui;color:#b7c7b0}.workshop-result p{font-size:.75rem;margin-top:5px}.workshop-result summary{font:.75rem/1.5 system-ui;min-height:44px;box-sizing:border-box}.workshop-bench .enchant-result{margin:13px 0;padding:11px}.workshop-bench .enchant-result h3{font:1.125rem Georgia;margin:0 0 8px}.workshop-bench .enchant-result p{font-size:.75rem}.workshop-bench .enchant-result .small-note{font-size:.6875rem}.workshop-bench .enchant-result table{font-size:.75rem}
.workshop-operations{grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;margin:15px 0}.workshop-operations button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;text-align:center;padding:8px 4px;min-height:76px}.workshop-operations .gear-icon{width:32px;height:32px;flex:none}.workshop-operations strong{font:.6875rem/1.25 system-ui;min-height:14px}.workshop-operation{padding:14px}.workshop-operation>header h4{font:1rem Georgia;color:#d8c3ed;margin:0 0 6px}.workshop-operation>header p{font:.75rem/1.5 system-ui;color:#b9b4c1;margin:0}.workshop-operation form label{margin:13px 0;font-size:.75rem}.workshop-operation .random-pool{padding:0 9px;background:#0e151c;border-color:#4e4659}.workshop-operation .random-pool>p{font-size:.75rem;margin:9px 0}.workshop-operation .random-pool summary{font:.75rem/1.5 system-ui;min-height:44px}.workshop-operation .random-pool details p{font-size:.75rem}.workshop-operation .gear-craft-reason{font-size:.75rem;color:#eab497}
@media(max-width:850px){.workshop-layout{grid-template-columns:minmax(0,1fr)}.workshop-items{max-height:260px}.workshop-picker>summary small{float:none;display:inline;margin-left:12px}.workshop-heading h1{font-size:1.6875rem}}
@media(max-width:600px){.workshop-page{padding:12px 12px 96px}.workshop-bench{padding:14px}.workshop-workpiece{grid-template-columns:88px minmax(0,1fr);gap:12px;text-align:left}.workshop-item-stage{width:88px;height:88px}.workshop-item-stage>.gear-icon{width:68px;height:68px}.workshop-workpiece h2{font-size:1.25rem}.workshop-controls{gap:9px}.workshop-chance small{margin-left:0;flex-basis:100%}.workshop-cost{grid-template-columns:repeat(auto-fit,minmax(90px,1fr))}.workshop-cost>div{padding:8px}.workshop-ranks>div{grid-template-columns:1fr}.workshop-ranks strong{font-size:1.5rem}.workshop-operations{grid-template-columns:repeat(3,minmax(0,1fr))}.workshop-operations button{min-height:70px}.workshop-operation{padding:11px}.workshop-heading button{font-size:.75rem;max-width:110px}.workshop-heading .eyebrow{font-size:.5625rem}}
@media(max-width:360px){.workshop-workpiece{display:grid;grid-template-columns:78px minmax(0,1fr);text-align:left}.workshop-item-stage{width:78px;height:78px}.workshop-item-stage>.gear-icon{width:61px;height:61px}.workshop-workpiece h2{font-size:1.125rem}.workshop-ranks{grid-template-columns:minmax(0,1fr) 16px minmax(0,1fr);text-align:left}.workshop-ranks>span{display:block}.workshop-cost>div{display:block}.workshop-controls{grid-template-columns:minmax(0,1fr)}.workshop-controls .workshop-control{margin:3px 0 7px}}

.battle-frame-setting{display:flex;flex-direction:column;gap:8px;margin:16px 0 8px}.battle-frame-setting select{width:100%;min-width:0;min-height:44px;font-size:1rem}
.character-stat{padding:4px 0;align-items:start}.character-stat dd{padding:12px 0}.stat-help summary{min-height:44px;cursor:pointer;display:flex;align-items:center;text-decoration:underline dotted #8c836c;text-underline-offset:4px}.stat-help summary:focus-visible{outline:2px solid #e5bd80;outline-offset:2px}.stat-help p{font:.75rem/1.6 system-ui;margin:0 0 10px;color:#a7b7bc}.stat-help[open]{min-width:0}
.gear-quick-attributes{grid-template-columns:repeat(4,minmax(0,1fr))}

.workshop-controls .workshop-control>label{display:block;gap:0;margin:0;font:inherit;color:inherit}
/* Keep workshop titles and service labels intact when text is enlarged. */
@media(max-width:760px){
 .mmo-shell .section-tabs{display:flex;flex-wrap:wrap}
 .mmo-shell .section-tabs>.section-tab{flex:1 0 auto;max-width:100%;white-space:nowrap;overflow-wrap:normal;word-break:normal}
 .workshop-heading{flex-wrap:wrap}
 .workshop-heading>div{flex:1 1 210px;min-width:0}
.workshop-heading>button{max-width:none;white-space:nowrap;overflow-wrap:normal;word-break:normal}
}

/* Enchanter: the item, its affected modifier and the spend share one window. */
.mmo-shell .workshop-arcane{max-width:1180px}
.workshop-arcane .enchanter-window{padding:0;background:#191c22;border:1px solid #73634e;border-radius:8px;box-shadow:0 12px 36px #0004;overflow:visible}
.enchanter-window .enchanter-sheet{padding:0;border:0;border-radius:0;background:none;overflow-wrap:normal;box-shadow:none;margin:0}
.enchanter-picker{margin:0;padding:0 22px;border:0;border-bottom:1px solid #595047;border-radius:0;background:#25252c}
.enchanter-picker>summary{font:600 .85rem/1.4 system-ui;min-height:50px;display:list-item;align-content:center;color:#dcc69d;list-style-position:inside}
.enchanter-picker>summary small{float:right;font:.75rem/1.4 system-ui;margin:3px 0;color:#afb3ba}
.enchanter-picker[open]{padding-bottom:16px}
.enchanter-picker .workshop-items{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:8px;max-height:300px;padding:0 4px 0 0}
.enchanter-picker .workshop-item{margin:0;background:#191d24}
.enchanter-picker .workshop-item[aria-pressed=true]{border-color:#d1b17a;background:#373326}
.enchanter-picker .workshop-filter{max-width:400px}
.enchanter-editor{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start}
.enchanter-item,.enchanter-operation{min-width:0;padding:24px}
.enchanter-item{border-right:1px solid #56504b}
.enchanter-item-heading{display:flex;align-items:center;gap:14px;margin-bottom:24px}
.enchanter-item-heading>[data-workshop-stage]{flex:none}
.enchanter-item-heading .gear-icon{width:76px;height:76px}
.enchanter-item-heading>div:last-child{min-width:0}
.enchanter-item-heading h2{font:1.4rem/1.25 Georgia;color:#f1d7aa;margin:0;overflow-wrap:anywhere}
.enchanter-item-heading h2>span{color:#dcc189;white-space:nowrap}
.enchanter-item-heading p{font:.75rem/1.6 system-ui!important;color:#b6b8ba!important;margin:7px 0 0!important}
.enchanter-affixes{border:0;margin:0;padding:0;min-width:0}
.enchanter-affixes legend{font:600 .85rem/1.4 system-ui;color:#d3c3ab;padding:0}
.enchanter-sheet p.enchanter-affix-caption{font:.72rem/1.5 system-ui;color:#9dabae;margin:5px 0 12px}
.enchanter-sheet .enchanter-affix{display:flex;align-items:center;gap:10px;min-height:54px;box-sizing:border-box;margin:0 0 5px;padding:9px 10px;border:1px solid transparent;border-radius:3px;background:#22262d;cursor:pointer}
.enchanter-affix input[type=radio]{width:17px;height:17px;min-height:17px;flex:none;margin:0;accent-color:#d0b1ea}
.enchanter-affix>span{display:block;flex:1;min-width:0}
.enchanter-affix .enchanter-affix-main{display:flex;justify-content:space-between;align-items:baseline;gap:10px}
.enchanter-affix-main strong{font:500 .87rem/1.45 system-ui;color:#d5dfdf;overflow-wrap:anywhere}
.enchanter-affix-main small{font:.7rem/1.4 system-ui;white-space:nowrap;color:#afb5c0}
.enchanter-affix .enchanter-affix-range{display:block;color:#9aa7b2;font:.7rem/1.5 system-ui;margin:2px 0 0}
.enchanter-affix:has(input:checked){border-color:#a99abe;background:#38313f;box-shadow:inset 3px 0 #bea5d7}
.enchanter-affix input:checked+span strong{color:#f0e5fa}
.enchanter-affix:focus-within{outline:2px solid #e2bd80;outline-offset:2px}
.enchanter-sheet .enchanter-affix.all-affected{display:block;border-color:#927b59;background:#362d25;cursor:default}
.enchanter-properties{border-top:1px solid #484950;margin-top:16px}
.enchanter-properties>summary{min-height:44px;align-content:center;cursor:pointer;color:#b8b4ac;font:.75rem/1.5 system-ui}
.enchanter-properties .gear-affixes{margin:6px 0}.enchanter-properties .gear-base p,.enchanter-properties .small-note{font-size:.75rem}
.enchanter-operation .workshop-operations{margin:0 0 24px;gap:2px;border-bottom:1px solid #57505e}
.enchanter-operation .workshop-operations>button{min-width:0;min-height:75px;gap:7px;padding:8px 3px 12px;background:none;border:0;border-radius:0;box-shadow:none;color:#aeb3ba}
.enchanter-operation .workshop-operations>button[aria-pressed=true]{background:#463a4e55;color:#f0defb;box-shadow:inset 0 -3px #bea5d7}
.enchanter-operation .workshop-operations strong{font:.72rem/1.35 system-ui;overflow-wrap:normal}
.enchanter-operation .workshop-operations .gear-icon{width:33px;height:33px}
.enchanter-operation>header h3{font:1.4rem/1.25 Georgia;color:#e9d4f5;margin:0 0 8px}
.enchanter-operation>header p{font:.82rem/1.6 system-ui;color:#bcc0c7;margin:0}
.enchanter-preview{margin:24px 0 10px;min-height:150px}
.enchanter-roll-preview{display:grid;grid-template-columns:minmax(0,1fr) 18px minmax(0,1fr);gap:10px;align-items:center}
.enchanter-roll-preview>span{color:#ab9fba}
.enchanter-roll-preview small{display:block;font:.72rem/1.5 system-ui;color:#a3adb8;margin-bottom:8px}
.enchanter-roll-preview strong{display:block;font:500 1.05rem/1.45 system-ui;color:#ecd8f8;overflow-wrap:anywhere}
.enchanter-roll-preview>div:first-child strong{color:#cbd3d6}
.enchanter-sheet p.enchanter-preview-note{font:.75rem/1.65 system-ui;color:#acb4bf;margin:13px 0 0}
.enchanter-sheet p.enchanter-preview-target{font:.9rem/1.5 system-ui;color:#e4d4ef;margin:0 0 13px}
.enchanter-pool{display:flex;flex-wrap:wrap;gap:5px 12px;color:#c8cbd3;font:.78rem/1.5 system-ui}
.enchanter-pool>span{padding:2px 0;border-bottom:1px solid #62566d}
.enchanter-grade-heading{display:flex;justify-content:space-between;gap:8px;align-items:baseline;margin:20px 0 8px;color:#c5becd;font:.77rem/1.5 system-ui}
.enchanter-grade-heading small{font-size:.7rem;color:#a8a4af}
.enchanter-grade-odds{display:flex;flex-wrap:wrap;gap:12px;margin:0;padding:0}
.enchanter-grade-odds>div{flex:1;min-width:48px}
.enchanter-grade-odds dt{font:.67rem/1.5 system-ui;color:#9fa7b1}
.enchanter-grade-odds dd{font:.92rem/1.5 system-ui;color:#e4d5ed;margin:2px 0 0;font-variant-numeric:tabular-nums}
.enchanter-sheet .enchanter-blocked{color:#e9bc96;font:.83rem/1.6 system-ui}
.enchanter-action-strip{display:grid;grid-template-columns:minmax(0,1fr) minmax(230px,.8fr);gap:22px;align-items:center;border-top:1px solid #74634d;padding:18px 24px;background:#27272c;border-radius:0 0 8px 8px}
.enchanter-payment,.enchanter-confirm{min-width:0}
.enchanter-payment .workshop-cost{background:none;border:0;margin:0;grid-template-columns:repeat(auto-fit,minmax(105px,1fr));gap:12px}
.enchanter-payment .workshop-cost>div{padding:0 10px 0 0;border:0;background:none}
.enchanter-payment .workshop-cost dt{font-size:.75rem;color:#c1b4cf}
.enchanter-payment .workshop-cost dd{font-size:1.12rem;color:#eeddbd}
.enchanter-payment .workshop-cost dd span{font-size:.7rem;color:#a8b8b0}
.enchanter-payment .workshop-cost .missing dd span{color:#e8a98e}
.enchanter-payment .workshop-cost-title{font-size:.67rem;margin:0 0 9px;color:#a9a5a1}
.wayfarer-shell .enchanter-confirm [data-enchant-submit]{width:100%;min-height:48px;padding:11px 12px;background:linear-gradient(#51415e,#392d42);border:1px solid #b49bcb;border-radius:4px;box-shadow:inset 0 0 0 2px #282030;color:#f5e8fc;font:600 .9rem/1.4 system-ui;white-space:normal}
.enchanter-confirm [data-enchant-submit]:disabled{opacity:.5}
.enchanter-confirm p.workshop-risk{font:.72rem/1.5 system-ui;color:#c9af99;margin:8px 0 0}
.enchanter-confirm .gear-craft-reason{font:.75rem/1.5 system-ui;margin:0 0 8px;padding:0;border:0;background:none;color:#f0b99c}
.enchanter-item .enchant-result{background:none;border:0;border-top:1px solid #5a535c;border-radius:0;padding:12px 0 0!important;margin:17px 0 0!important}
.enchanter-item .enchant-result h3{font:.8rem/1.5 system-ui!important;color:#cfc1da;margin:0 0 7px!important}
.enchanter-item .enchant-result table{font-size:.72rem!important}.enchanter-item .enchant-result p{font-size:.72rem!important}
.enchanter-window>.workshop-notice{margin:0;padding:12px 24px;border-bottom:1px solid #56504b;font-size:.8rem}
.workshop-arcane>.workshop-exchange{padding:0 4px;background:none;border:0;border-radius:0;margin-top:10px}
.workshop-arcane>.workshop-exchange[open]{padding:0 16px 12px;border-bottom:1px solid #56504b}
.enchanter-empty{padding:24px}
@media(max-width:760px){
 .enchanter-editor{grid-template-columns:minmax(0,1fr)}
 .enchanter-item,.enchanter-operation{padding:18px}
 .enchanter-item{border-right:0;border-bottom:1px solid #56504b}
 .enchanter-item-heading{margin-bottom:18px}
 .enchanter-item-heading .gear-icon{width:64px;height:64px}
 .enchanter-item-heading h2{font-size:1.2rem}
 .enchanter-picker{padding:0 18px}
 .enchanter-picker .workshop-items{grid-template-columns:minmax(0,1fr)}
 .enchanter-operation .workshop-operations{grid-template-columns:repeat(auto-fit,minmax(min(100%,4.2rem),1fr));margin-bottom:20px}
 .enchanter-operation .workshop-operations>button{min-height:72px}
 .enchanter-operation .workshop-operations strong{font-size:.67rem}
 .enchanter-preview{min-height:0;margin-top:20px}
 .enchanter-action-strip{grid-template-columns:minmax(0,1fr);padding:16px 18px;gap:14px}
 .enchanter-confirm p.workshop-risk{margin-top:8px}
 .enchanter-window>.workshop-notice{padding:12px 18px}
 .enchanter-affix .enchanter-affix-main{flex-wrap:wrap;gap:2px 10px}
}
@media(max-width:360px){
 .enchanter-item,.enchanter-operation{padding:14px}
 .enchanter-item-heading{gap:10px}.enchanter-item-heading .gear-icon{width:54px;height:54px}
 .enchanter-affix .enchanter-affix-main{flex-wrap:wrap;gap:2px 10px}
 .enchanter-picker>summary small{float:none;margin-left:8px}
 .enchanter-roll-preview{grid-template-columns:minmax(0,1fr);gap:9px}
 .enchanter-roll-preview>span{display:none}
 .enchanter-action-strip{padding:14px}
}

.character-stat-groups{grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr))}.character-stat{display:flex;flex-wrap:wrap;gap:4px 12px;align-items:baseline}.character-stat dt{flex:1 1 9rem;min-width:0}.character-stat dd{flex:0 0 auto;max-width:100%;overflow-wrap:normal;word-break:normal;line-height:1.5}.character-stat .stat-help>summary{overflow-wrap:normal;word-break:normal}.character-stat .stat-help button{min-height:44px;max-width:100%;white-space:normal;margin-bottom:8px}.character-attribute-list header{flex-wrap:wrap}.character-attribute-list h3{overflow-wrap:normal;word-break:normal}.path-passive-grid article{flex-wrap:wrap}.path-passive-grid article>div:first-child{flex:1 1 11rem;min-width:0}.path-passive-grid h3{overflow-wrap:normal;word-break:normal}
@media(max-width:1000px){.character-stat-group:last-child{grid-column:auto}.character-stat-group:last-child dl{display:block}}

.character-stats .character-stat:has(.stat-limit-track){display:grid;grid-template-columns:minmax(0,1fr) minmax(115px,1fr);gap:6px 12px;align-items:start}.character-stats .character-stat:has(.stat-limit-track) dd{padding:10px 0}.character-stats .character-stat:has(.stat-limit-track) dt:has(details[open]){grid-column:1/-1}.character-stats .character-stat:has(.stat-limit-track) dt:has(details[open])+dd{grid-column:1/-1;padding-top:0}.character-stats .stat-limit-source{font-size:.6875rem}

.meter-history{margin-top:12px;border-top:1px solid #9d824e;padding-top:6px}.meter-history>summary{min-height:44px;display:list-item;align-content:center;color:#dfc998;font-size:.8125rem;cursor:pointer}.meter-history>summary>span{margin-left:6px;font-size:.6875rem;color:#aebfce}.meter-history .meter-row{opacity:.85}

/* Tier odds are data, not selectable affix rows. */
.tier-odds{display:grid;grid-template-columns:repeat(auto-fit,minmax(80px,1fr));gap:8px;margin:12px 0}.tier-odds>div{min-width:0;padding:8px;background:#22262d;border-radius:3px}.tier-odds dt{font:.75rem/1.4 system-ui;color:#afb5c0}.tier-odds dd{margin:5px 0 0;font:600 .875rem/1.4 system-ui;color:#e5cfac}
@media(max-width:700px){.tier-odds{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Cost labels determine their minimum width, including enlarged browser text. */
.enchanter-payment .workshop-cost{display:flex;flex-wrap:wrap;gap:12px}
.enchanter-payment .workshop-cost>div{flex:1 1 105px;min-width:min-content;max-width:100%;overflow-wrap:anywhere}

/* New characters are invited into town before their first quest. */
.world-map .city-pin .map-town-onboarding-arrow{position:absolute;left:50%;bottom:calc(100% + 12px);width:32px;height:46px;background:#ffda75;clip-path:polygon(32% 0,68% 0,68% 54%,100% 54%,50% 100%,0 54%,32% 54%);transform:translateX(-50%);filter:drop-shadow(0 2px 2px #000);pointer-events:none;animation:map-town-first-visit 1.4s ease-in-out infinite}
@keyframes map-town-first-visit{0%,100%{transform:translate(-50%,-7px)}50%{transform:translate(-50%,3px)}}
@media(prefers-reduced-motion:reduce){.world-map .city-pin .map-town-onboarding-arrow{animation:none}}

@media(max-width:600px){.world-map-scroll.first-town-visit .world-map{min-width:480px}}
/* On that narrower first-visit map the Stonewake and Prison Cellar pins overlapped (13 Oct pass, 390 px). Spread them apart there, keeping room for the town arrow. */
@media(max-width:600px){.world-map-scroll.first-town-visit .world-map .city-pin{--pin-x:31%!important;--pin-y:60%!important}.world-map-scroll.first-town-visit .world-map .dungeon-pin{--pin-x:56%!important;--pin-y:24%!important}}

.workshop-legendary{margin:0 0 20px;padding:18px;border:1px solid #8f7547;border-radius:8px;background:#152330;overflow-wrap:anywhere}.workshop-legendary h2{margin:0 0 10px}.workshop-legendary p{line-height:1.5}.workshop-legendary button{max-width:100%;white-space:normal}
@media(max-width:480px){.workshop-legendary{padding:14px}}

/* Shared equipment workshops: painted item, clear choices, visible cost. */
.shell .workshop-page .workshop-bench{background:linear-gradient(145deg,#29251f,#181a1c 70%);border-radius:8px}
.shell .workshop-page .workshop-picker{background:#211f1b}
.shell .workshop-page .workshop-ranks{background:#332b1f66}
.workshop-page{max-width:1180px;color:#e2d8c6}
.workshop-page .workshop-bench{background:linear-gradient(145deg,#29251f,#181a1c 70%);border:1px solid #88704b;border-radius:8px;box-shadow:0 10px 28px #0004}
.workshop-page .workshop-layout{grid-template-columns:minmax(215px,.65fr) minmax(0,1.65fr);gap:20px}
.workshop-page .workshop-picker{background:#211f1b;border-color:#796449}.workshop-page .workshop-picker>summary{min-height:44px;align-content:center;color:#d9bd8e;font:1rem/1.5 Georgia,serif}
.workshop-page .workshop-item{border-radius:4px;background:#1a1b1b;color:#d7c8ac}.workshop-page .workshop-item[aria-pressed=true]{background:#3a3020;border-color:#cfad6c;box-shadow:inset 3px 0 #cfad6c}.workshop-page .workshop-item small{font-size:.75rem;color:#b6b09f}
.workshop-page .workshop-workpiece{grid-template-columns:132px minmax(0,1fr);padding-bottom:20px;gap:22px;border-color:#77614366}.workshop-page .workshop-item-stage{width:132px;height:132px;background:radial-gradient(ellipse,#443722,#131516 75%)}.workshop-page .workshop-item-stage>.gear-icon{width:110px;height:110px}.workshop-page .workshop-workpiece h2{font:1.75rem/1.25 Georgia,serif;color:#f0d8a8}.workshop-page .workshop-workpiece p{font:.85rem/1.6 system-ui;color:#bfb49f}
.workshop-page .workshop-ranks{background:#332b1f66;border:1px solid #78613b77;padding:14px 18px;border-radius:5px}.workshop-page .workshop-ranks small{font-size:.8rem;color:#c9b797}.workshop-page .workshop-ranks>div>span{font-size:.8rem}.workshop-page .workshop-ranks strong{color:#f1dcaf}
.workshop-page .workshop-controls .workshop-control{font-size:.85rem;gap:8px}.workshop-page .workshop-controls :is(input,select){font-size:1rem;background:#151615;color:#f0e1c1;border-color:#88714a}
.workshop-page .workshop-chance{margin:12px 0}.workshop-page .workshop-chance span{font-size:.85rem}.workshop-page .workshop-chance small{font-size:.75rem;color:#bcb29e}
.workshop-page .workshop-cost{background:#171817;border-color:#756044}.workshop-page .workshop-cost dt{font-size:.85rem;color:#d0c0a2}.workshop-page .workshop-cost dd{font-size:1.25rem}.workshop-page .workshop-cost dd span{font-size:.75rem;color:#a9b5a3}.workshop-page .workshop-cost>div{padding:12px 14px}
.workshop-page .workshop-risk{font-size:.85rem;line-height:1.6;color:#cfb798}.workshop-page .workshop-confirm small{font-size:.78rem}.workshop-page :is(.workshop-preview,.workshop-properties,.workshop-estimate)>summary{min-height:44px;align-content:center;font-size:.85rem;cursor:pointer}.workshop-page :is(.workshop-preview,.workshop-properties,.workshop-estimate) p{font-size:.85rem;line-height:1.6}
.workshop-page .enchanter-window{padding:0}.workshop-page .enchanter-picker{border-bottom:1px solid #766042;background:#24211d}.workshop-page .enchanter-item{border-color:#77614366}.workshop-page .enchanter-item-heading{gap:18px;align-items:center}.workshop-page .enchanter-item-heading .gear-icon{width:112px;height:112px}.workshop-page .enchanter-item-heading h2{font-size:1.65rem;color:#f0d8a8}.workshop-page .enchanter-item-heading p{font-size:.85rem;color:#bfb49f}
.workshop-page .enchanter-affix{background:#21221f;border-color:#6c604c}.workshop-page .enchanter-affix:has(input:checked){background:#393125;border-color:#c5a567;box-shadow:inset 3px 0 #c5a567}.workshop-page .enchanter-affix strong{font-size:.95rem;color:#ecdfc4}.workshop-page .enchanter-affix small{font-size:.75rem;color:#bcb29f}.workshop-page .enchanter-affix input{accent-color:#cbae73}
.workshop-page .enchanter-operation>header h3{color:#e7c991;font-size:1.5rem}.workshop-page .enchanter-operation>header p{font-size:.85rem;color:#c6bca9}.workshop-page .enchanter-operation .workshop-operations{border-color:#766042;gap:4px}.workshop-page .enchanter-operation .workshop-operations>button{border-radius:4px;color:#bfb6a5;min-height:78px}.workshop-page .enchanter-operation .workshop-operations>button[aria-pressed=true]{background:#45351f66;color:#f0d7a9;box-shadow:inset 0 -3px #c6a264}.workshop-page .enchanter-operation .workshop-operations strong{font-size:.8rem;line-height:1.4}.workshop-page .enchanter-operation .workshop-operations .gear-icon{width:38px;height:38px}
.workshop-page .enchanter-action-strip{background:#27221b;border-color:#806844;gap:24px;padding:20px 24px}.workshop-page .enchanter-payment .workshop-cost{background:none;border:0}.workshop-page .enchanter-payment .workshop-cost>div{padding:0}.workshop-page .enchanter-confirm p.workshop-risk{font-size:.8rem}.wayfarer-shell .workshop-page .enchanter-confirm [data-enchant-submit]{background:linear-gradient(#6f5531,#45311e);border-color:#c5a56b;box-shadow:inset 0 0 0 2px #2b2117;color:#f6e5c5;min-height:48px;font-size:.95rem}
.workshop-page .enchanter-sheet p.enchanter-preview-note{font-size:.8rem;color:#bbb2a2}.workshop-page .enchanter-pool{font-size:.85rem;line-height:1.6}.workshop-page .tier-odds>div{background:#2d291f}.workshop-page .tier-odds dt{color:#bfb5a1}.workshop-page .tier-odds dd{color:#efd9ae}.workshop-page :is(button,input,select,summary):focus-visible{outline:2px solid #efd090;outline-offset:2px}
.workshop-page .enchanter-affix.tier-heading{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:20px 0 8px;padding:0;border:0;background:none;color:#c8b99c;font:.8rem/1.5 system-ui;min-height:0}.workshop-page .enchanter-affix.tier-heading small{color:#b1a68f}
@media(max-width:900px){.workshop-page .workshop-layout{grid-template-columns:minmax(0,1fr)}.workshop-page .workshop-items{max-height:240px}}
@media(max-width:760px){.workshop-page .enchanter-item-heading .gear-icon{width:96px;height:96px}.workshop-page .enchanter-operation .workshop-operations{grid-template-columns:repeat(3,minmax(0,1fr))}.workshop-page .enchanter-item-heading h2{font-size:1.4rem}.workshop-page .enchanter-item,.workshop-page .enchanter-operation{padding:18px}.workshop-page .enchanter-action-strip{padding:18px}}
@media(max-width:600px){.workshop-page .workshop-workpiece{grid-template-columns:90px minmax(0,1fr);gap:14px}.workshop-page .workshop-item-stage{width:90px;height:90px}.workshop-page .workshop-item-stage>.gear-icon{width:76px;height:76px}.workshop-page .workshop-workpiece h2{font-size:1.4rem}.workshop-page .workshop-cost>div{padding:10px}.workshop-page .workshop-chance small{flex-basis:100%;margin-left:0}.workshop-page .enchanter-action-strip{gap:16px}.workshop-page .workshop-heading{flex-wrap:wrap}}
@media(max-width:360px){.workshop-page .enchanter-item-heading{gap:12px;align-items:start}.workshop-page .enchanter-item-heading .gear-icon{width:72px;height:72px}.workshop-page .enchanter-item-heading h2{font-size:1.2rem}.workshop-page .enchanter-item,.workshop-page .enchanter-operation,.workshop-page .enchanter-action-strip{padding:14px}.workshop-page .workshop-workpiece{grid-template-columns:76px minmax(0,1fr);gap:12px}.workshop-page .workshop-item-stage{width:76px;height:76px}.workshop-page .workshop-item-stage>.gear-icon{width:66px;height:66px}.workshop-page .workshop-workpiece h2{font-size:1.2rem}}

/* Keep Town service navigation uniform on narrow screens. */
@media(max-width:430px){.mmo-shell .section-tabs[aria-label="Town sections"]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.mmo-shell .section-tabs[aria-label="Town sections"]>.section-tab{min-width:0;min-height:44px;white-space:normal;overflow-wrap:normal;word-break:normal}}
/* Threat meter (IRP_THREAT_METER_VERSION=1): the Threat tab rows; drawn only while that switch and IRP_THREAT_TACTICS_VERSION are on. */
.meter-threat .meter-person strong{color:var(--meter-color);font-weight:700;overflow-wrap:anywhere}.meter-threat.is-ahead b{color:#ff9f86}.meter-threat.is-ahead .meter-track i{background:#e0664a}.meter-threat.is-dead{opacity:.6}.damage-meter [data-meter-reset][hidden]{display:none}

/* Player report (8 Oct): a wider DPS total wrapped "Combat meter" onto two lines, so the meter grew and shrank as the number changed. The title stays on one line. */
.damage-meter header>div{min-width:0}.damage-meter h3{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.damage-meter header>strong{white-space:nowrap;font-variant-numeric:tabular-nums}
/* Simpler screens (IRP_UI_PLAIN_VERSION): role stats first in two columns where there is room, the rest in the All stats fold (public/character-stats.js). */
.character-role-stats .character-stat-group dl{columns:2 20rem;column-gap:28px}.character-role-stats .character-stat{break-inside:avoid}.character-all-stats{margin-bottom:12px}.character-all-stats>.character-stat-groups{padding:0 14px;margin:8px 0 14px}
/* Menu audit 23 Oct (no dropdowns): Target rank is a row of rank chips across the full width; rows never end with one chip alone. */
.workshop-controls .workshop-target{grid-column:1/-1;min-width:0;margin:0;padding:0;border:0}
.workshop-controls .workshop-target legend{padding:0;margin:0 0 6px}
.workshop-rank-row{display:grid;grid-template-columns:repeat(var(--rank-cols,5),minmax(0,1fr));gap:6px}
.workshop-rank-row .workshop-rank{position:relative;display:inline-flex;align-items:center;justify-content:center;min-width:0;min-height:44px;margin:0;padding:4px 6px;font-size:.875rem;cursor:pointer}
.workshop-rank-row .workshop-rank:hover{border-color:var(--uk-gold-hi,#e0bd73)}
.workshop-rank-row .workshop-rank:has(input:checked){border-color:#e0bd73;background:linear-gradient(180deg,#c9a468,#8f6f3c);color:#1b1509}
.workshop-rank-row .workshop-rank:has(input:focus-visible){outline:2px solid #f2d38a;outline-offset:2px}
.workshop-rank-row .workshop-rank>input{position:absolute;inset:0;width:1px;height:1px;min-width:0;min-height:0;margin:0;padding:0;border:0;opacity:0;pointer-events:none}
/* 0.75.0 UI QA: on a phone "Tier 2" broke over two lines in its odds cell; the label stays on one line and a cell that cannot fit moves to the next row. */
.shell .workshop-page .enchanter-window dl.tier-odds>div{min-width:max-content}.shell .workshop-page .enchanter-window dl.tier-odds dt{white-space:nowrap}
/* QA 1 Nov: a zone card's "Lv 24–29 · Unlocked" line stays on one line, and the card widens for it so the quest badges sit beside it, not over it. */
html .world-map-scroll .world-map .map-pin>span:has(>small){min-width:max-content}html .world-map-scroll .world-map .map-pin:has(>span>small){max-width:250px}

/* /homecoming.css */
/* Return summaries and illustrated field lessons share the existing realm palette. */
.return-backdrop{padding:max(12px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left))}
.return-dialog{width:min(760px,100%);min-width:0;max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);display:flex;flex-direction:column;border:1px solid #c89b58;border-radius:12px;overflow:hidden;background:#132029;color:#efe5cf;box-shadow:0 24px 80px #0009}
.return-dialog>header{flex:none;padding:28px 30px 22px;background:linear-gradient(90deg,#0c1c29e8,#101d26a6),url('/assets/evermarch/gateway-v1.webp') center 42%/cover;border-bottom:1px solid #967744}
.return-dialog .eyebrow{margin:0;color:#e5be78;font:.6875rem/1.5 system-ui;letter-spacing:.16em}
.return-dialog h2{font:2rem/1.25 Georgia,serif;margin:12px 0;color:#f3d69e;overflow-wrap:anywhere}.return-dialog header>p:not(.eyebrow){margin:0 0 10px;color:#e7dec9}
.return-duration{font:.8125rem/1.5 system-ui;color:#d9c7a8}.return-content{overflow-y:auto;min-height:0;padding:22px 28px;overscroll-behavior:contain;overflow-anchor:none}
.return-stats{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}.return-stat{grid-column:span 2;padding:17px 10px;display:flex;align-items:center;flex-direction:column;gap:9px;background:linear-gradient(145deg,#22343d,#18262e);border:1px solid #657065;border-radius:7px;text-align:center;min-width:0}.return-stat.xp,.return-stat.gold{grid-column:span 3}.return-stat svg{width:28px;height:28px;fill:none;stroke:#d1ad68;stroke-width:1.7;stroke-linejoin:round}.return-stat span{color:#cfc8b7;font:.8125rem/1.4 system-ui}.return-stat strong{font:1.75rem/1.1 Georgia,serif;color:#fae3b0;overflow-wrap:anywhere}
.return-level{padding:14px;border:1px solid #8a965d;border-radius:6px;color:#d2e3b0;line-height:1.7;text-align:center;background:#33473044}.return-note,.return-dialog .small-note{font:.8125rem/1.6 system-ui;color:#cbc8bb}.return-dialog .small-note{color:#aeb8b8}
.return-left-group{margin:0 0 16px;padding:14px 16px;border:2px solid #d9a441;border-left-width:8px;border-radius:8px;background:#4a2a1ccc;color:#fbe9c2;font:1rem/1.55 Georgia,serif;overflow-wrap:anywhere}.return-left-group strong{font-weight:700}
.return-xp-details{margin-top:14px;border-top:1px solid #52605b;font:.875rem/1.6 system-ui;color:#cbc8bb}.return-xp-details summary{min-height:44px;padding:12px 0;cursor:pointer;color:#f3d69e}.return-xp-details a{display:inline-block;min-height:44px;padding:10px 0;color:#f3d69e}.return-xp-details p{margin:8px 0}
.return-dialog>footer{flex:none;display:flex;gap:10px;padding:16px 28px;background:#0f1b23;border-top:1px solid #52605b}.return-dialog>footer button{min-height:46px;flex:1;min-width:0}
@media(max-width:550px){.return-dialog>header{padding:20px}.return-dialog h2{font-size:1.625rem}.return-content{padding:15px}.return-dialog>footer{padding:12px;flex-direction:column}.return-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.return-stat,.return-stat.xp,.return-stat.gold{grid-column:auto}.return-stat:last-child{grid-column:1/-1}.return-stat{padding:12px 8px}.return-stat strong{font-size:1.5625rem}}
@media(max-height:500px){.return-dialog>header{padding:12px 20px}.return-dialog h2{font-size:1.4375rem;margin:6px 0}.return-dialog>header>p:not(.eyebrow){display:none}.return-dialog>footer{flex-direction:row;padding:10px}}

.portrait-xp-warning{display:block;max-width:100%;min-height:24px;padding:2px 0;border:0;background:none;box-shadow:none;color:#ffca86;font:inherit;font-size:.6875rem;line-height:1.4;text-align:left;white-space:normal;text-decoration:underline dotted;text-underline-offset:3px;cursor:pointer}.portrait-xp-warning:focus-visible{outline:2px solid #ffca86;outline-offset:2px}.portrait-xp-warning[hidden]{display:none}

/* Keep the complete return summary reachable when enlarged text fills the header. */
.return-dialog{overflow-y:auto;overscroll-behavior:contain;overflow-anchor:none}
.return-dialog>.return-content{flex:none;overflow:visible}
.return-dialog h2{word-break:normal;overflow-wrap:break-word}

/* Welcome back with the offline-limit notice (IRP_OFFLINE_LIMIT_REMOVE_VERSION, default off; QA of 0.58.0-challenge.1, 5 Oct 2026): on a short screen (landscape phone) the two action buttons used to sit below the fold of the dialog's own scroll. Only a dialog that carries the loud notice has .return-dialog-limit (public/return-view.js adds it only when the data has limitNotice), so every other Welcome back window is untouched. The header and the footer keep their height, the body scrolls inside the dialog, and the buttons stay pinned (46 px, the existing rule). */
@media(max-height:500px){.return-dialog.return-dialog-limit{overflow:hidden}.return-dialog.return-dialog-limit>header{flex:none}.return-dialog.return-dialog-limit>.return-content{flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden}.return-dialog.return-dialog-limit>footer{flex:none}.return-dialog.return-dialog-limit .return-content>.inline-error{position:sticky;bottom:-22px;margin:8px 0 0;padding:8px 0;background:#132029}}
@media(max-height:500px) and (max-width:550px){.return-dialog.return-dialog-limit .return-content>.inline-error{bottom:-15px}}
@media(max-height:380px){.return-dialog.return-dialog-limit>header{padding:6px 16px}.return-dialog.return-dialog-limit .eyebrow{display:none}.return-dialog.return-dialog-limit h2{font-size:1.1875rem;margin:2px 0}.return-dialog.return-dialog-limit .return-duration{font-size:.75rem}.return-dialog.return-dialog-limit>footer{padding:6px 10px}}

/* /tutorial-visuals.css */
.tutorial-visual{margin:20px 0;padding:16px;background:linear-gradient(135deg,#20343a,#0c1c23);border:1px solid #82734f;border-radius:8px;min-width:0;max-width:100%}.tutorial-visual figcaption{font:.8125rem/1.55 system-ui;color:#c2cfc8;border-top:1px solid #526159;padding-top:12px;margin-top:14px}.tutorial-pair{display:grid;grid-template-columns:minmax(0,1fr) 28px minmax(0,1fr);align-items:center;gap:10px}.tutorial-card{display:flex;flex-direction:column;align-items:center;text-align:center;gap:8px;min-width:0}.tutorial-card>.gear-icon{width:84px;height:84px;flex:none}.tutorial-card strong{font:1rem/1.4 Georgia;color:#f2d9a7;overflow-wrap:anywhere}.tutorial-card small{font:.75rem/1.45 system-ui;color:#bfd0ca}.tutorial-arrow{color:#e5c283;font-size:1.625rem;text-align:center}.tutorial-route>img{width:100%;height:170px;object-fit:cover;object-position:center 56%;border-radius:5px}.tutorial-route ol{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,3.5rem),1fr));padding:0;gap:8px;margin:12px 0 0;list-style:none}.tutorial-route li{text-align:center;color:#eed3a5;font:.875rem/1.4 Georgia}.tutorial-route b{display:block;margin:0 auto 7px;border:1px solid #b39869;border-radius:50%;width:30px;line-height:1.75rem;background:#2b443c}.tutorial-monsters{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,3.5rem),1fr));gap:14px}.tutorial-monsters img{width:100%;height:125px;object-fit:contain}.tutorial-party,.tutorial-outfits{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.tutorial-outfits img{width:100%;height:180px;object-fit:contain}.tutorial-party img{width:64px;height:64px;object-fit:cover}.tutorial-skill{width:100%;height:auto;max-height:170px}.tutorial-odds{font:.75rem/1.5 system-ui;color:#cbd8d1;margin-top:15px}.tutorial-odds>div{display:flex;flex-wrap:wrap;gap:5px;align-items:center;margin-top:8px}.tutorial-odds b{width:26px;height:26px;border:1px solid #8d7158;text-align:center;line-height:1.5rem;background:#43342b}.tutorial-odds strong{color:#d5eaae;margin-left:5px}.field-lessons li>div{min-width:0;width:100%}.field-lessons .tutorial-visual{max-width:640px}.recovery-help{margin:12px;padding:16px}.settings-modal .recovery-help{margin:0 0 20px;padding:0}.settings-modal{max-height:calc(100dvh - 28px);overflow:auto;overscroll-behavior:contain}
@media(max-width:600px){.tutorial-visual{padding:12px}.tutorial-party,.tutorial-outfits{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.tutorial-outfits img{height:160px}.tutorial-monsters{gap:6px}.tutorial-monsters img{height:90px}.tutorial-monsters strong{font-size:.8125rem}.tutorial-card>.gear-icon{width:64px;height:64px}.tutorial-card strong{font-size:.875rem}.tutorial-pair{gap:5px;grid-template-columns:minmax(0,1fr) 20px minmax(0,1fr)}.tutorial-route>img{height:130px}.tutorial-route li{font-size:.75rem}}
/* Large browser text: the arrow column grows with the text; the route steps let their number sit above the words when the words need the room
   (the lesson list's own flex row and padding otherwise squeeze them), and the side padding shrinks as text grows (18 px at the default 16 px).
   A lesson card narrower than 11.5rem inside its padding (large text, or phones under about 380 px at the default size, where words already broke) stacks the pair and gives each
   creature and route step a full row, so no word is broken in the middle. */
.tutorial-visual{container:tutorial/inline-size}
.tutorial-pair{grid-template-columns:minmax(0,1fr) 1.75rem minmax(0,1fr)}
.field-lessons .tutorial-route li{flex-wrap:wrap;justify-content:center;padding-inline:clamp(4px,calc(36px - 1.125rem),18px)}
@media(min-width:601px){.field-lessons .tutorial-route li{font-size:min(.875rem,18px)}}
@media(max-width:600px){.tutorial-pair{grid-template-columns:minmax(0,1fr) 1.25rem minmax(0,1fr)}}
@container tutorial (max-width:11.5rem){.tutorial-pair{grid-template-columns:minmax(0,1fr);justify-items:center}.tutorial-arrow{transform:rotate(90deg)}.tutorial-monsters,.tutorial-route ol{grid-template-columns:minmax(0,1fr)}.tutorial-party,.tutorial-outfits{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* /party-recruitment.css */
.party-recruitment>header{display:flex;align-items:center;justify-content:space-between;gap:16px}.party-recruitment h2 span{color:#bbab85;font:1rem system-ui}.recruitment-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:12px;margin-top:20px}.recruitment-card{display:grid;grid-template-columns:58px minmax(0,1fr) auto;align-items:center;gap:12px;padding:14px;border:1px solid #655b42;border-radius:8px;background:linear-gradient(120deg,#25373a,#151d22)}.recruitment-card h3{margin:0 0 5px;color:#ecd2a1;overflow-wrap:anywhere}.recruitment-card p{margin:0 0 3px}.recruitment-card small,.stored-party small{display:block;color:#c1c0b5}.recruitment-card .tavern-portrait{width:58px;height:72px;min-width:0}.recruitment-card button{min-height:44px;min-width:66px;padding:10px}.stored-party{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 0;border-top:1px solid #516063}.stored-party strong{overflow-wrap:anywhere}.party-empty{padding:20px;border:1px dashed #5f665d;border-radius:8px}.party-disband{max-width:540px;width:100%;overflow:auto}.party-disband h2{overflow-wrap:anywhere}
#partyInvitations{position:fixed;z-index:220;right:max(16px,env(safe-area-inset-right));bottom:calc(var(--mobile-nav-height,0px) + 16px + env(safe-area-inset-bottom));width:min(365px,calc(100vw - 32px));pointer-events:none;max-height:calc(100svh - var(--mobile-nav-height,0px) - 100px);overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}#partyInvitations:empty{display:none}.party-invitation{pointer-events:auto;padding:18px;background:linear-gradient(145deg,#243940,#101c23);border:1px solid #d1ad64;border-radius:12px;box-shadow:0 12px 35px #0009;margin-top:8px}.party-invitation h2{font-size:1.375rem;line-height:1.25;color:#f2d6a0;margin:5px 0 10px;overflow-wrap:anywhere}.party-invitation p{line-height:1.45;margin:8px 0}.party-invitation .eyebrow{font-size:.6875rem;letter-spacing:2px;color:#d5b273}.party-invitation .small-note{font-size:.8125rem;color:#c7d0cd}.invite-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px}.invite-actions button{min-height:44px;font-size:1rem}.invite-deadline{color:#eac889;font-size:.8125rem}.invite-feedback{pointer-events:auto;background:#39251f;color:#ffdbc8;padding:12px;border-radius:8px}.invite-queue{color:#e1d1b7;background:#1c282e;padding:6px 12px;font-size:.8125rem}
@media(max-width:600px){.recruitment-card{grid-template-columns:48px minmax(0,1fr);gap:10px}.recruitment-card .tavern-portrait{width:48px;height:62px}.recruitment-card button{grid-column:1/-1}.party-invitation{padding:14px}.party-invitation h2{font-size:1.1875rem}.party-invitation .small-note{font-size:.75rem}.stored-party{align-items:stretch;flex-direction:column}#partyInvitations{right:8px;width:calc(100vw - 16px);bottom:calc(var(--mobile-nav-height,72px) + 8px + env(safe-area-inset-bottom))}}
.wayfarer-shell .party-workspace{display:block}.party-workspace>section,.party-workspace>#partyRecruitment{margin-bottom:20px}.party-workspace .recruitment-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr))}
.community-chat .chat-channels{grid-template-columns:repeat(4,minmax(0,1fr))}.community-chat .chat-channels button{padding-inline:6px;font-size:.75rem;min-height:44px}#recruitmentBoard{min-height:0;overflow:auto;padding:16px;overscroll-behavior:contain}.recruitment-board h2{margin:0;color:#f2d6a0}.recruitment-board header p{color:#c6d0ce;font-size:.8125rem;line-height:1.5}.recruitment-board form{display:flex;flex-wrap:wrap;gap:8px;padding:12px 0 18px;border-bottom:1px solid #536064}.recruitment-board label{flex:1 1 100%}.recruitment-board select{width:100%;min-height:44px}.recruitment-board button{min-height:44px}.recruitment-listings{display:grid;gap:12px;margin-top:14px}.recruitment-listings article{padding:14px;border:1px solid #536064;border-radius:8px;background:#182b33}.recruitment-listings h3{margin:6px 0;color:#e8cfa5;overflow-wrap:anywhere}.recruitment-listings h3 small{float:right;color:#bcc9c8}.recruitment-listings p{font-size:.8125rem;line-height:1.5}.recruitment-listings article>small{display:block;margin-top:6px;color:#c6d0ce}.recruitment-listings .status-pill{display:inline-block;margin-right:8px}

.party-player-search{display:grid;gap:.5rem;margin-top:1rem;color:var(--gold,#e0c58b)}.party-player-search input{width:100%;box-sizing:border-box;min-width:0}.party-recruitment .recruitment-card>div{min-width:0}.party-recruitment .recruitment-card h3{overflow-wrap:anywhere}
.party-invites{padding:14px 16px}.party-invites h2{display:flex;align-items:center;gap:8px;margin:0 0 4px;font-size:1.25rem}.party-invites h2 .attention-badge{margin:0}.party-invites>.small-note{margin:0 0 6px;font-size:.8125rem;color:#c7d0cd}.party-invite{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 12px;padding:9px 0;border-top:1px solid #516063}.party-invite>div:first-child{flex:1 1 150px;min-width:0}.party-invite strong{display:block;color:#ecd2a1;overflow-wrap:anywhere}.party-invite small{display:block;color:#c1c0b5}.party-invite .az-actions{display:flex;gap:8px;flex:0 0 auto;margin:0}.party-invite button{min-height:40px;padding:6px 14px}
.invite-deadline{display:flex;align-items:center;justify-content:space-between;gap:8px}.invite-deadline .text-button{min-height:32px;padding:2px 8px;color:#f2d6a0;background:none;border:0;font-size:.8125rem;text-decoration:underline;cursor:pointer}
@media(max-width:600px){.party-invite .az-actions{flex:1 1 100%}.party-invite .az-actions button{flex:1}}
.party-gear-button{margin-top:6px;min-height:44px;padding:4px 12px;font-size:.8125rem}
.party-gear-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:6px}.party-gear-tile{display:flex;align-items:center;gap:8px;min-width:0;padding:4px 8px;text-align:left;color:inherit;background:#14222a;border:1px solid #69746e;border-radius:6px}.party-gear-tile[aria-pressed="true"]{border-color:#d1ad64;background:#1d3038}.party-gear-tile .gear-icon{flex:0 0 36px;width:36px;height:36px}.party-gear-tile span{display:block;min-width:0}.party-gear-tile small{display:block;color:#cab580;font-size:.6875rem}.party-gear-tile b{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;font-size:.8125rem;line-height:1.2;overflow-wrap:break-word}
.party-gear-card{margin-top:10px;padding:10px;border:1px solid #69746e;background:#101c23}.party-gear-card h3{margin:0 0 4px}.party-gear-card .item-detail-title{gap:10px}.party-gear-card .gear-icon{width:48px;height:48px}
@media(max-width:400px){.party-gear-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.party-gear-tile{gap:6px;padding:4px 6px}.party-gear-tile b{font-size:.75rem;overflow-wrap:break-word}}
.party-invitation [data-invite-later]{min-height:44px;min-width:44px;padding:0 10px}
/* Raid invite with a picked role (IRP_RAID_INVITE_ROLE_VERSION, default off). Only the new raid cards use these classes; 44 px targets, wraps at 320 px. */
.raid-invite-roles{border:1px solid #69746e;border-radius:8px;margin:8px 0;padding:6px 10px;min-width:0}.raid-invite-roles legend{padding:0 6px;font-size:.875rem}
.raid-invite-role-option{display:flex;align-items:center;gap:10px;min-height:44px;font-size:1rem}.raid-invite-role-option input{width:24px;height:24px;flex:none}
.raid-invite-role{margin:6px 0;font-size:1rem;overflow-wrap:anywhere}.raid-invite-reason{color:#f0b9a0;font-size:.875rem;margin:6px 0;overflow-wrap:anywhere}
.raid-invite small{display:block;margin-top:4px;overflow-wrap:anywhere}.raid-invite .az-actions button,.raid-invitation .invite-actions button{min-height:44px}.raid-offline-note,.uh-offline{overflow-wrap:anywhere}
/* Raid invite pop-up on a short landscape screen (IRP_RAID_INVITE_ROLE_VERSION, default off). Only the gated raid card carries .raid-invitation / .raid-invite-side / .raid-invite-note, so the older pop-up is untouched. The pop-up lasts 30 s (the page counts 30 to 1); this CSS never changes it. */
.raid-invitation .eyebrow{font-size:.75rem}.raid-invite-side{display:contents}
/* Short landscape (phones): role and copy in the left column; the reminder, Later, Accept and Decline in a fixed-width right column that is sticky to the bottom of the scroll box. The card has no padding of its own (its children carry the margins) so the sticky column can reach the bottom edge of the box. The reminder never wraps (nowrap, fixed 156 px minimum column), so the column height does not change when the seconds drop from two digits to one. */
@media(max-height:480px) and (orientation:landscape){.raid-invitation{display:grid;grid-template-columns:minmax(0,1fr) minmax(156px,40%);column-gap:0;row-gap:0;align-items:start;padding:0}.raid-invitation>*{grid-column:1;min-width:0;margin:0 0 0 12px}.raid-invitation .eyebrow,.raid-invitation .raid-invite-note{display:none}.raid-invitation h2{font-size:1rem;line-height:1.2;margin:10px 0 4px 12px}.raid-invitation p{font-size:.875rem;line-height:1.3;margin:2px 0 2px 12px}.raid-invitation>:nth-last-child(2){margin-bottom:10px}.raid-invitation .raid-invite-roles{display:flex;flex-wrap:wrap;column-gap:4px;margin:4px 0 0 12px;padding:0 6px 2px}.raid-invitation .raid-invite-role-option{font-size:.9375rem;min-height:44px}.raid-invitation>.raid-invite-side{display:flex;flex-direction:column;gap:6px;grid-column:2;grid-row:1/span 20;align-self:end;position:sticky;bottom:0;margin:0;padding:8px 12px 8px 10px}.raid-invitation .invite-deadline{flex-direction:column;align-items:stretch;gap:0;font-size:.75rem;line-height:1.3;text-align:center}.raid-invitation .invite-deadline>span{white-space:nowrap}.raid-invitation .invite-actions{grid-template-columns:minmax(0,1fr);gap:6px;margin-top:0}.raid-invitation .invite-actions button{min-height:44px;font-size:.9375rem;line-height:1.15;padding:6px 8px}}
/* Very short landscape (about 360 px and below): one pinned strip along the bottom of the box, Accept, Decline and the reminder with Later in a single row, so both buttons are fully visible even when the box is only about 130 px tall. */
@media(max-height:360px) and (orientation:landscape){.raid-invitation{grid-template-columns:minmax(0,1fr)}.raid-invitation>*{margin-right:12px}.raid-invitation>.raid-invite-side{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;gap:6px;align-items:stretch;grid-column:1/-1;grid-row:auto;align-self:end;position:sticky;bottom:0;margin:0;padding:6px 12px;background:#101c23;border-top:1px solid #4d5a58;border-radius:0 0 11px 11px}.raid-invitation .invite-actions{display:contents}.raid-invitation .invite-actions button:first-child{order:1}.raid-invitation .invite-actions button:last-child{order:2}.raid-invitation .invite-deadline{order:3;justify-content:center}.raid-invitation .invite-actions button{font-size:.875rem}}

/* /party-trade.css */
.party-trade{width:min(720px,calc(100vw - 24px));max-height:calc(100vh - 24px);overflow:auto;padding:18px;display:grid;gap:12px;text-align:left}.party-trade header{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.party-trade h2{margin:2px 0}.party-trade .eyebrow{margin:0}.trade-columns{display:grid;grid-template-columns:1fr 1fr;gap:12px}.party-trade fieldset{margin:0;padding:10px 12px;border:1px solid #645b46;border-radius:6px;min-width:0;background:#101c22}.party-trade legend{padding:0 6px;color:#e6c98f;font-size:.8125rem}.party-trade fieldset ul{list-style:none;margin:0;padding:0;display:grid;gap:4px}.party-trade fieldset li{padding:4px 0;border-top:1px solid #34494a;font-size:.875rem}.party-trade fieldset li:first-child{border-top:0}.trade-gold{display:grid;gap:4px;margin-bottom:8px}.trade-gold input,.trade-list input[type=number]{min-height:44px;font-size:1rem;min-width:0;width:100%;box-sizing:border-box}.trade-picker{margin-top:6px}.trade-picker summary{cursor:pointer;min-height:44px;display:flex;align-items:center;gap:8px}.trade-list{display:grid;gap:4px;max-height:190px;overflow:auto}.trade-list label{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:44px}.trade-list label>span{flex:1;min-width:0}.trade-list small{color:#aebbb6}.trade-list input[type=checkbox]{width:22px;height:22px;flex:0 0 22px}.trade-list input[type=number]{width:96px;flex:0 0 96px}.trade-status{margin:0;color:#d6cbb5}.trade-error{margin:0;color:#ffb3a7}.trade-open{min-height:44px;margin-top:8px}.trade-reason{display:block;margin-top:4px;color:#aebbb6;font-size:.6875rem;line-height:1.35}.party-trade .az-actions{display:flex;gap:10px;flex-wrap:wrap}.party-trade .az-actions button,.party-trade header button{min-height:44px}
@media(max-width:640px){.trade-columns{grid-template-columns:1fr}.party-trade{padding:12px}.party-trade header{flex-wrap:wrap}}
.trade-set-note{margin:0;font-size:.8125rem;line-height:1.4;overflow-wrap:anywhere}

/* /three-paths.css */
.paths-page{max-width:1280px;margin:auto;--path-tone:#d8b87d}.paths-heading{display:flex;justify-content:space-between;gap:24px;align-items:center}.paths-heading h1{font:2rem Georgia,serif;color:#eed8af;margin:8px 0}.paths-heading p{color:#b9bdba;line-height:1.55}.paths-budgets{display:flex;flex-wrap:wrap;gap:14px;justify-content:flex-end;max-width:340px}.paths-budgets>span{padding:12px;border:1px solid #646358;border-radius:8px;background:#142329}.paths-budgets strong{font:1.625rem Georgia,serif;color:#efd092;margin-right:6px}.paths-budgets small{width:100%;color:#bdc2bd;font-size:.75rem;text-align:right}.path-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:24px 0 0}.path-tabs button{min-height:74px;padding:12px;background:linear-gradient(145deg,#243139,#141a20);border:1px solid #55594f;border-bottom:3px solid var(--tab-tone);border-radius:8px;color:#ddd0b7;text-align:left}.path-tabs button[aria-pressed=true]{background:linear-gradient(145deg,#343c3e,#293138);outline:1px solid var(--tab-tone)}.path-tabs strong,.path-tabs small{display:block;overflow-wrap:anywhere}.path-tabs strong{font:1.125rem Georgia,serif;color:var(--tab-tone)}.path-tabs small{margin-top:7px;font-size:.75rem}.path-intro{padding:20px 0 8px}.path-intro h2{font:1.5625rem Georgia,serif;color:var(--path-tone);margin:6px 0}.path-intro p{line-height:1.6;color:#c0c4be}.paths-workspace{display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,.9fr);gap:24px;align-items:start}.path-node-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.path-node{position:relative;min-height:120px;display:flex;align-items:center;gap:10px;padding:14px 10px;background:linear-gradient(140deg,#1b2930,#10181e);border:1px solid #515953;border-radius:9px;color:#cdc6b8;text-align:left}.path-node .path-art{width:58px;height:58px;flex-shrink:0}.path-node strong{display:block;font:1rem/1.25 Georgia,serif;margin:6px 0;color:#e9d6b7;overflow-wrap:anywhere}.path-node small{font:.625rem system-ui;color:#a4aba6;letter-spacing:.12em}.path-node em{font:.6875rem system-ui;color:#b1b8b0}.path-node>i{position:absolute;right:7px;top:5px;color:#b69962;font-style:normal}.path-node.selected{border-color:var(--path-tone);box-shadow:inset 0 0 24px #d5bb8112}.path-node.learned{background:linear-gradient(140deg,#2c3334,#16232a)}.path-rule{grid-column:1/-1;font-size:.8125rem;color:#a5aca8;line-height:1.6}.path-inspector{min-width:0;border:1px solid #80705b;border-radius:10px;padding:22px;background:radial-gradient(ellipse at top right,#46403b40,transparent 65%),#151f26;box-shadow:0 10px 26px #0003}.path-inspector-title{display:flex;gap:16px;align-items:center}.path-inspector-title .path-art{width:80px;height:80px;flex-shrink:0}.path-inspector h2{font:1.625rem/1.2 Georgia,serif;color:#ecd6ad;margin:8px 0;overflow-wrap:anywhere}.path-inspector-title strong{font-size:.8125rem;color:var(--path-tone)}.path-trigger{font:.9375rem/1.6 Georgia,serif;color:#d1d8d2;border-left:2px solid var(--path-tone);padding:8px 0 8px 14px}.path-stats{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:16px 0}.path-stats>div{background:#0d171c;padding:11px;border-radius:5px}.path-stats dt{font-size:.6875rem;color:#aeb9b5;text-transform:uppercase;letter-spacing:.07em}.path-stats dd{margin:5px 0 0;color:#e8d0a9;font-size:.9375rem}.path-rank-preview h3{font-size:.75rem;text-transform:uppercase;letter-spacing:.1em;color:var(--path-tone);margin:18px 0 6px}.path-rank-preview p,.path-inspector details p{font-size:.875rem;line-height:1.7;color:#c8c8bd}.path-inspector details{margin-top:14px}.path-inspector summary{min-height:44px;cursor:pointer;color:#d7bf92;line-height:1.5}.path-allocation-reason{font-size:.8125rem;line-height:1.5;color:#b5bcb6;margin-top:20px}.path-learn{width:100%;min-height:48px;white-space:normal;line-height:1.4}.path-passives{margin-top:34px;border-top:1px solid #53574e;padding-top:24px}.path-passives h2{font:1.625rem Georgia,serif;color:#e0cfad}.path-passives header>p{line-height:1.5;color:#b9c2bc}.path-passive-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.path-passive-grid article{display:flex;gap:16px;justify-content:space-between;align-items:center;padding:16px;background:#18262c;border:1px solid #424f4b;border-radius:8px;min-width:0}.path-passive-grid h3{font:1.125rem Georgia,serif;color:#dfc99f;margin:0}.path-passive-grid p{font-size:.8125rem;line-height:1.5;color:#b9bdb5}.path-passive-grid small{color:#9fb6b6}.path-passive-grid button{min-width:48px;min-height:48px;flex-shrink:0}.path-reset,.path-migration{margin-top:22px;border:1px solid #505b55;padding:14px;border-radius:7px}.path-reset summary,.path-migration summary{min-height:44px;cursor:pointer;line-height:1.5}.path-reset p,.path-migration p{line-height:1.6;color:#b5bcb4}.path-portrait-skills{display:grid;grid-template-columns:repeat(auto-fill,minmax(44px,1fr));gap:4px;margin-top:8px;max-width:100%}.path-portrait-skill{position:relative;display:block;aspect-ratio:1;border:1px solid #78664b;border-radius:5px;overflow:hidden;min-width:0}.path-portrait-skill .path-art{display:block;width:100%;height:100%}.path-portrait-skill>i{position:absolute;inset:auto 0 0;background:#071017bd;pointer-events:none}.path-portrait-skill>small{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font:bold .8125rem system-ui;color:#fff8df;text-shadow:0 1px 3px #000}.path-art{display:block}.paths-page button:focus-visible,.path-portrait-skill:focus-visible{outline:2px solid #f4db9e;outline-offset:3px}.path-portrait-skill:focus-visible{outline-offset:-3px}.paths-page button:disabled{opacity:.48;cursor:not-allowed}.sr-only{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important}
@media(max-width:850px){.paths-heading{align-items:start;flex-direction:column;gap:12px}.paths-budgets{justify-content:flex-start;max-width:none}.paths-budgets small{text-align:left}.paths-workspace{grid-template-columns:1fr}.path-node-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.path-node{flex-direction:column;align-items:flex-start;min-height:156px}.path-passive-grid{grid-template-columns:1fr}.path-tabs strong{font-size:1rem}}
@media(max-width:540px){.paths-page{padding:16px 12px}.paths-heading h1{font-size:1.75rem}.path-tabs{gap:6px}.path-tabs button{padding:10px 7px;min-height:82px}.path-tabs strong{font-size:.875rem;line-height:1.3}.path-tabs small{font-size:.6875rem}.path-node-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.path-node{min-height:132px;gap:6px;padding:12px}.path-node .path-art{width:48px;height:48px}.path-node strong{font-size:.9375rem}.path-inspector{padding:16px}.path-inspector h2{font-size:1.5rem}.path-inspector-title .path-art{width:64px;height:64px}.path-portrait-skills{grid-template-columns:repeat(auto-fill,minmax(44px,1fr))}.path-stats{gap:8px}.path-passive-grid article{gap:10px;padding:13px}}
@media(prefers-reduced-motion:reduce){.paths-page *{scroll-behavior:auto!important}}

.party-ability-icons[data-path-basics]>.skill-icon:nth-child(2){display:none}
.path-portrait-skill{padding:0;min-height:44px;min-width:44px;background:#121e26;color:#fff;cursor:pointer}.path-portrait-detail{grid-column:1/-1;padding:12px;border-top:1px solid #756349;background:#11222b;font-size:.8125rem;line-height:1.5}.path-portrait-detail p{margin:6px 0}.path-portrait-detail strong{color:#e8cc96}

.mmo-shell .path-party-card{flex-wrap:wrap}.path-party-card>.path-portrait-skills{flex-basis:100%;width:100%;margin-top:2px;grid-template-columns:repeat(auto-fit,minmax(44px,1fr))}

.mmo-shell .path-party-card{align-content:flex-start;align-items:flex-start}.path-party-card>.path-portrait-skills{align-content:start;align-self:flex-start;flex-grow:0}.path-party-card .portrait-effects{display:flex;height:54px;min-height:54px;overflow-y:auto;align-content:flex-start;overscroll-behavior:contain}.path-party-card .portrait-cast{height:28px}.path-party-card .portrait-cast-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.path-party-card>.portrait-effects{flex-basis:100%;width:100%;height:47px;min-height:47px;max-height:47px;flex-grow:0;scrollbar-gutter:stable}.path-party-card .portrait-effect{display:flex;gap:3px;align-items:center;max-width:100%;height:22px;box-sizing:border-box;flex-shrink:0}.path-party-card .portrait-effect-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}.path-party-card .portrait-effect-time{white-space:nowrap;flex-shrink:0}
/* Keep combat first when the desktop columns collapse, including tablets and
   landscape phones. Identity panels remain directly below the battlefield. */
@media(max-width:1179px){.mmo-shell .arena-column{order:0}.mmo-shell .party-rail{order:1}.mmo-shell .right-rail{order:2}}
@media(max-width:540px){.path-tabs{display:flex;flex-wrap:wrap}.path-tabs button{flex:1 1 auto;max-width:100%}.path-tabs strong{white-space:nowrap;overflow-wrap:normal}}

.path-refund-notice{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:10px;padding:14px;border:1px solid #b99758;background:#182831;color:#f0dfbd;border-radius:8px}.path-refund-notice p{margin:5px 0 0;max-width:65ch}.path-refund-notice button{min-height:44px;flex-shrink:0}@media(max-width:540px){.path-refund-notice{flex-wrap:wrap}.path-refund-notice button{width:100%}}

.path-recommendation{margin:12px 0 20px;padding:12px;border:1px solid #947c50;border-radius:8px;background:#17262e}.path-recommendation summary{display:list-item;min-height:44px;padding:12px;cursor:pointer}.path-recommendation li{margin:7px 0}.path-recommendation button{min-height:44px;max-width:100%}.path-recommendation p{max-width:68ch}

.skill-estimate{border-left:2px solid #a98a57;background:#101b20;padding:.75rem;margin:.8rem 0}.skill-estimate-value{margin:.35rem 0}.skill-estimate-value strong{color:#edce93;font-size:1.25rem}.skill-estimate small,.skill-next-estimate span{color:#bab4a9;font-size:.78rem}.skill-calculation{margin-top:.7rem}.skill-calculation summary{min-height:44px;display:flex;align-items:center;cursor:pointer}.skill-calculation dl>div{display:flex;justify-content:space-between;gap:1rem;margin:.45rem 0}.skill-calculation dd{margin:0;text-align:right;white-space:nowrap}.skill-rank-table{max-height:16rem;overflow:auto}.skill-rank-table table{width:100%;border-collapse:collapse;font-size:.8rem}.skill-rank-table th,.skill-rank-table td{text-align:left;padding:.4rem;border-bottom:1px solid #334048}.skill-rank-table tr[aria-current=true]{background:#403827}.skill-rank-table caption{text-align:left;margin:.6rem 0}.path-portrait-detail .skill-estimate{margin:.4rem 0}

.path-inspector-title .talent-gain{display:block;margin-top:4px;line-height:1.5;color:#a8d8b7}

/* Keep short rank-table labels intact on narrow skill inspectors. */
.skill-rank-table table{table-layout:auto}.skill-rank-table th:nth-child(-n+2),.skill-rank-table td:nth-child(-n+2){white-space:nowrap;overflow-wrap:normal;width:1%}
/* Allocate a reviewed group of points with the same controls on touch and desktop. */
.path-allocation-controls{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap}
.path-allocation-controls label{display:grid;gap:5px;flex:1;min-width:90px}
.path-allocation-controls select,.path-allocation-controls button{min-height:44px}
.path-allocation-controls select{width:100%;color:inherit;background:#16222c;border:1px solid #796649;border-radius:4px;padding:8px}

/* Two saved skill specs share the existing reset rules. */
.skill-specs{margin:16px 0;padding:16px;border:1px solid #716342;background:#131e29}.skill-specs h2{margin:0 0 8px}.skill-spec-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.skill-spec{min-width:0;padding:12px;border:1px solid #44505b}.skill-spec.selected{border-color:#bba05b;background:#c8ac5810}.skill-spec h3{margin-top:0}.skill-spec-actions{display:flex;flex-wrap:wrap;gap:8px}.skill-spec-actions button{min-height:44px;white-space:normal;flex:1;min-width:110px}@media(max-width:600px){.skill-spec-grid{grid-template-columns:1fr}.skill-specs{padding:12px}.skill-spec-actions button{min-width:100px}}

.path-first-specs{margin:12px 0;border:1px solid #786747;border-radius:4px;padding:0 12px}.path-first-specs>summary{cursor:pointer;min-height:44px;padding:12px 0;color:#e8ce92;font:600 .9rem/1.4 system-ui}.path-first-specs>summary:focus-visible{outline:2px solid #efcf91;outline-offset:2px}

.path-next-cost{display:block;margin-top:3px;color:#c0bba9;font:400 .75rem/1.35 system-ui}
.path-next-milestone{margin:12px 0;padding:12px 16px;border-left:3px solid var(--path-tone,#bda76c);background:#19232b;border-radius:4px}.path-next-milestone p{margin:6px 0;line-height:1.5}.path-next-milestone small{display:block;color:#bdc6cd;line-height:1.5}

.path-unused-skills{margin-top:14px;padding-top:12px;border-top:1px solid #ffffff24}.path-unused-skills>div{display:flex;flex-wrap:wrap;gap:8px}.path-unused-skills button{display:flex;flex-direction:column;align-items:flex-start;max-width:100%;white-space:normal;text-align:left}.path-unused-skills small{opacity:.8}

.skill-spec-abilities{list-style:none;padding:0;margin:10px 0;display:grid;gap:5px}.skill-spec-abilities li{overflow-wrap:anywhere}.skill-spec-abilities small{display:inline-block;min-width:46px;opacity:.75}

.path-milestone-options{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}.path-milestone-options button{flex:1 1 150px;min-width:0;text-align:left;white-space:normal}.path-milestone-options button strong{display:block;overflow-wrap:anywhere}.path-milestone-options button small{margin-top:4px}

/* Default choices follow actual unlock levels; the original links stay optional. */
.path-tier-browser{min-width:0;width:100%;box-sizing:border-box}.path-choice-rule{margin:0 0 18px;color:#c3c9c3;font-size:.875rem;line-height:1.6}
.path-tier-group{margin:0 0 20px}.path-tier-group>summary{display:list-item;min-height:44px;box-sizing:border-box;padding:10px 0;border-bottom:1px solid #716448;cursor:pointer;color:#e6d1a2}.path-tier-group[open]>summary{margin-bottom:10px}
.path-tier-group>summary>strong{font:1.25rem Georgia,serif}.path-tier-group>summary>span{float:right;color:#aebbb8;font-size:.75rem;padding-top:4px}.path-tier-group>summary:focus-visible{outline:2px solid #f4db9e;outline-offset:3px}
.path-tier-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.path-tier-choice{display:flex;flex-direction:column;align-items:stretch;gap:9px;min-width:0;min-height:44px;padding:14px;border:1px solid #46554f;border-radius:6px;background:#14232b;text-align:left;color:#d7d9d0;white-space:normal;line-height:1.5;cursor:pointer}
.path-choice-heading{display:flex;align-items:center;gap:9px}.path-choice-heading>.path-art{width:42px;height:42px;flex-shrink:0}.path-choice-heading>span{min-width:0}.path-choice-heading small{display:block;font-size:.625rem;letter-spacing:.06em;color:#b5c3bc}.path-choice-heading strong{display:block;font:1.0625rem/1.3 Georgia,serif;color:#eed9ab;overflow-wrap:anywhere}
.path-choice-effect{font-size:.8125rem}.path-choice-status{margin-top:auto;font-weight:600;font-size:.75rem;color:#c9c3b1}.path-choice-bar{font-size:.75rem;color:#b3c6c6}.path-choice-reason{font-size:.75rem;color:#b8bdb5;border-top:1px solid #ffffff18;padding-top:8px}
.path-choice-fit{font-size:.75rem;color:#b9c8c3;line-height:1.5}
.path-tier-choice.learned{border-color:#79957d}.path-tier-choice.available .path-choice-status{color:#b7d6b5}.path-tier-choice.selected{border-color:#ebca80;box-shadow:inset 0 0 0 1px #ebca80;background:#25332e}.path-tier-choice:hover{background:#25322f}.path-tier-choice:focus-visible{outline:2px solid #f4db9e;outline-offset:3px}
.path-tree-overview{margin-top:22px;border-top:1px solid #716448;padding-top:10px}.path-tree-overview>summary{min-height:44px;display:list-item;padding:10px 0;cursor:pointer;color:#e2c793}.path-tree-overview>p{color:#b9c2bc;font-size:.8125rem;line-height:1.5}
@media(min-width:851px) and (max-width:1180px){.path-tier-options{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:540px){.path-tier-options{grid-template-columns:1fr}.path-tier-choice{padding:12px}.path-choice-heading strong{font-size:1.125rem}}
.skill-effect-list{margin:.4rem 0;padding-left:1.1rem}.skill-effect-list li{margin:.15rem 0}.skill-effect-list strong{color:#edce93}.skill-effect-next{color:#bab4a9;font-size:.85rem}.skill-effect-next strong{color:#a9d9a4}

/* /skill-branches.css */
/* Skill branches (IRP_SKILL_BRANCHES_VERSION=1; public/skill-branches-ui.js). Only drawn while the switch is on: the level badge, the XP ring and the
   branch buds on the tree, and the branch panel in the skill's window. UI kit v1 tokens and cards; no new colours. */
.class-tree-node.sb-node{background:conic-gradient(var(--uk-gold,#d8b16a) var(--sb-xp,0%),#2a3240 0)!important;padding:4px!important}
.class-tree-node.sb-node .class-tree-node-icon{border:2px solid #0b121b}
/* Painted XP ring (art drop 70): the filled share is bright, the rest faint. The conic background above shows until it loads. */
.class-tree-node.sb-node:after{content:"";position:absolute;inset:-6px;border-radius:50%;pointer-events:none;background:url(/assets/three-paths/xp-ring-v1.webp) center/100% 100% no-repeat;-webkit-mask:conic-gradient(#000 var(--sb-xp,0%),#00000040 0);mask:conic-gradient(#000 var(--sb-xp,0%),#00000040 0)}
.sb-buds{position:absolute;top:107px;left:50%;transform:translateX(-50%);display:flex;gap:4px;width:max-content}
.sb-bud{display:inline-block;width:12px;height:12px;border-radius:50%;border:2px solid var(--uk-locked,#6c7788);background:#0b121b;box-sizing:border-box}
.sb-bud[data-state="open"]{border-color:var(--uk-gold,#d8b16a);box-shadow:0 0 0 2px #d8b16a33}
.sb-bud[data-state="ready"]{border-color:var(--uk-gold,#d8b16a);opacity:.65}
.sb-bud[data-state="taken"]{border-color:var(--uk-done,#7fc58a);background:var(--uk-done,#7fc58a)}
.sb-bud[data-row="form"]{border-radius:3px;transform:rotate(45deg)}
.sb-bud[data-row="mastery"]{width:14px;height:14px}
/* Painted marks (art drop 70), one per row and state; "ready" (open, not enough points) is the open mark, dimmed by the rule above. */
.sb-bud[data-row]{width:18px;height:18px;border:0;border-radius:0;transform:none;box-shadow:none;background:center/contain no-repeat}
.sb-row .sb-bud[data-row]{width:24px;height:24px}
.sb-bud[data-row="upgrade"][data-state="locked"]{background-image:url(/assets/three-paths/branch-upgrade-locked-v1.webp)}
.sb-bud[data-row="upgrade"][data-state="open"]{background-image:url(/assets/three-paths/branch-upgrade-open-v1.webp)}
.sb-bud[data-row="upgrade"][data-state="ready"]{background-image:url(/assets/three-paths/branch-upgrade-open-v1.webp)}
.sb-bud[data-row="upgrade"][data-state="taken"]{background-image:url(/assets/three-paths/branch-upgrade-taken-v1.webp)}
.sb-bud[data-row="support"][data-state="locked"]{background-image:url(/assets/three-paths/branch-support-locked-v1.webp)}
.sb-bud[data-row="support"][data-state="open"]{background-image:url(/assets/three-paths/branch-support-open-v1.webp)}
.sb-bud[data-row="support"][data-state="ready"]{background-image:url(/assets/three-paths/branch-support-open-v1.webp)}
.sb-bud[data-row="support"][data-state="taken"]{background-image:url(/assets/three-paths/branch-support-taken-v1.webp)}
.sb-bud[data-row="form"][data-state="locked"]{background-image:url(/assets/three-paths/branch-form-locked-v1.webp)}
.sb-bud[data-row="form"][data-state="open"]{background-image:url(/assets/three-paths/branch-form-open-v1.webp)}
.sb-bud[data-row="form"][data-state="ready"]{background-image:url(/assets/three-paths/branch-form-open-v1.webp)}
.sb-bud[data-row="form"][data-state="taken"]{background-image:url(/assets/three-paths/branch-form-taken-v1.webp)}
.sb-bud[data-row="mastery"][data-state="locked"]{background-image:url(/assets/three-paths/branch-mastery-locked-v1.webp)}
.sb-bud[data-row="mastery"][data-state="open"]{background-image:url(/assets/three-paths/branch-mastery-open-v1.webp)}
.sb-bud[data-row="mastery"][data-state="ready"]{background-image:url(/assets/three-paths/branch-mastery-open-v1.webp)}
.sb-bud[data-row="mastery"][data-state="taken"]{background-image:url(/assets/three-paths/branch-mastery-taken-v1.webp)}
.sb-level{display:grid;gap:4px;margin:6px 0 2px}
.sb-level strong{font:600 .95rem var(--uk-serif,Georgia,serif);color:var(--uk-gold-text,#f0d79c)}
.sb-level small{color:var(--uk-ivory-dim,#b8ad98);font-size:.78rem}
.sb-panel{margin-top:12px;display:grid;gap:8px}
.sb-panel .sb-level{margin:0}
.sb-panel-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.sb-panel-head h3{margin:0;font:600 1rem var(--uk-serif,Georgia,serif);color:var(--uk-gold-text,#f0d79c)}
.sb-rows{list-style:none;margin:0;padding:0;display:grid;gap:8px}
/* One row: mark, name, cost, state; then the option chips; then the picked option's one line and its Take button. */
.sb-row{margin:0;padding:10px 12px;border:1px solid #b69a6040;border-radius:8px;background:var(--uk-navy-0,#0e1622)}
.sb-row.is-current{border-color:#d8b16a99;box-shadow:inset 0 0 0 1px #d8b16a22}
.sb-row.is-done{border-color:#7fc58a66}
.sb-row-head{display:flex;align-items:center;gap:8px;min-width:0}
.sb-row-head .sb-bud{flex:none;width:24px;height:24px}
.sb-row-head h4{margin:0;flex:1 1 auto;font:600 .95rem var(--uk-serif,Georgia,serif);color:var(--uk-ivory,#e7dcc7);white-space:nowrap}
.sb-cost{flex:none;color:var(--uk-ivory-dim,#b8ad98);font-size:.78rem;white-space:nowrap}
.sb-row-head .uk-chip{flex:none}
.sb-row.is-locked .sb-row-head h4,.sb-row.is-locked .sb-pick{opacity:.6}
.sb-chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.sb-radio{position:absolute;opacity:0;width:1px;height:1px;pointer-events:none}
.sb-pick{display:inline-flex;align-items:center;min-height:32px;padding:3px 12px;border:1px solid #b69a6066;border-radius:16px;background:#151d29;color:var(--uk-ivory,#e7dcc7);font:600 .82rem/1.1 inherit;cursor:default}
label.sb-pick[for]{cursor:pointer}
label.sb-pick[for]:hover{border-color:var(--uk-gold,#d8b16a)}
.sb-pick.is-taken{border-color:var(--uk-done-dim,#7fc58a88);color:var(--uk-done,#7fc58a)}
.sb-radio:checked+.sb-pick{border-color:var(--uk-gold,#d8b16a);background:#2a2316;color:var(--uk-gold-text,#f0d79c);box-shadow:0 0 0 1px #d8b16a55}
.sb-radio:focus-visible+.sb-pick{outline:2px solid var(--uk-gold,#d8b16a);outline-offset:2px}
.sb-pick-info{display:none;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center;margin-top:8px}
.sb-pick-info p{margin:0;font-size:.84rem;line-height:1.35;color:var(--uk-ivory,#e7dcc7)}
.sb-pick-info .uk-btn{min-height:40px;min-width:84px;max-width:150px;white-space:normal;font-size:.82rem}
.sb-row:has(.sb-radio[data-i="0"]:checked) .sb-pick-info[data-i="0"]{display:grid}
.sb-row:has(.sb-radio[data-i="1"]:checked) .sb-pick-info[data-i="1"]{display:grid}
.sb-row:has(.sb-radio[data-i="2"]:checked) .sb-pick-info[data-i="2"]{display:grid}
.sb-row:has(.sb-radio[data-i="3"]:checked) .sb-pick-info[data-i="3"]{display:grid}
.sb-row:has(.sb-radio[data-i="4"]:checked) .sb-pick-info[data-i="4"]{display:grid}
.sb-row:has(.sb-radio[data-i="5"]:checked) .sb-pick-info[data-i="5"]{display:grid}
.sb-row:has(.sb-radio[data-i="6"]:checked) .sb-pick-info[data-i="6"]{display:grid}
.sb-row:has(.sb-radio[data-i="7"]:checked) .sb-pick-info[data-i="7"]{display:grid}
.sb-warn{grid-column:1/-1;margin:0;padding:6px 10px;border-left:3px solid var(--uk-gold,#d6b575);background:#2f2a2099;color:var(--uk-ivory,#eadbb9);font-size:.82rem;line-height:1.35}
.sb-row>.sb-warn{margin-top:8px}
.sb-foot{margin:2px 0 0;color:var(--uk-ivory-dim,#b8ad98);font-size:.78rem}
@media(max-width:480px){.sb-pick-info{grid-template-columns:1fr}.sb-pick-info .uk-btn{max-width:none;width:100%}}
/* The tree: the skill level badge sits above the painted XP ring, and a New mark shows a branch the player has not looked at yet. */
.class-tree-node.sb-node .class-tree-rank{z-index:3;bottom:-11px;min-width:40px;font-weight:700;color:var(--uk-gold-text,#f0d79c);border-color:#d8b16a;box-shadow:0 1px 3px #000c}
.sb-new{position:absolute;left:-14px;top:-10px;z-index:3;padding:2px 6px;border-radius:9px;background:#c2453a;border:1px solid #f0b4a0;color:#fff4e8;font:700 .625rem/1.2 Georgia,serif;letter-spacing:.04em;box-shadow:0 0 0 2px #0b121b,0 0 10px #ff8a5c99;animation:sb-new-pulse 2.4s ease-in-out infinite}
@keyframes sb-new-pulse{50%{box-shadow:0 0 0 2px #0b121b,0 0 16px #ffb07ccc}}
@media(prefers-reduced-motion:reduce){.sb-new{animation:none}}
/* +skills from charms and gear on the skill level line (Pat, 24 Oct). */
.sb-level .sb-bonus{font-style:normal;font-weight:600;color:var(--uk-good,#8fd18b);font-size:.85em;margin-left:.35em}
/* Switched-off effects (public/inactive-effects.js): a pick that would stop a worn Unique power working on this skill. */
.sb-pick-info .sb-off-warn{grid-column:1/-1;margin:0;font-size:.8rem;color:#ef8a6f}
/* Skill tree pacing (IRP_SKILL_PACING_VERSION=1; public/skill-branches-ui.js stars, nextLine, head). Only drawn while that switch is on. */
.class-tree-node.sb-node .class-tree-rank .sb-stars{display:inline;margin-left:3px;color:var(--uk-gold,#d8b16a);font-size:.8em;letter-spacing:0;text-shadow:0 0 5px #d8b16a99;white-space:nowrap}
.class-tree-node.sb-node .class-tree-rank .sb-stars[data-steps="4"]{color:#ffe7a8;text-shadow:0 0 7px #ffd56a}
.class-tree-node.sb-node .class-tree-rank:has(.sb-stars){white-space:nowrap;width:max-content}
.sb-level .sb-next{color:var(--uk-gold-text,#f0d79c)}
.sb-next-unlock{display:grid;gap:4px;margin:6px 0 2px;min-width:0}
.sb-next-unlock small,.sb-pace .sb-ready{color:var(--uk-ivory-dim,#b8ad98);font-size:.8rem;line-height:1.3}
.sb-next-unlock b,.sb-pace .sb-ready b{color:var(--uk-gold-text,#f0d79c);font-weight:600}
.sb-next-unlock .uk-progress{max-width:260px}
.sb-pace{display:grid;gap:4px;min-width:0;max-width:300px;text-align:left;justify-items:start}
.sb-pace .sb-ready{display:block}
.sb-pace .sb-next-unlock{margin:0}

/* /connected-paths.css */
/* Connected branches have fixed row positions: arrows cannot shift during polling. */
.path-gate-label{font:12px Arial,sans-serif;fill:#b8bfb0;stroke:#121b1d;stroke-width:5px;paint-order:stroke;stroke-linejoin:round}.path-gate-label.met{fill:#dac38f}
.path-loadout{margin:24px 0;border:1px solid #6e634e;padding:18px;background:#111c22;border-radius:10px}.path-loadout h2{margin:0;font:1.375rem Georgia,serif;color:#ead5ad}.path-loadout p{color:#b9c2c0;font-size:.875rem;line-height:1.5}.path-loadout-slots{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.path-loadout-slots article{text-align:center;background:#1c2a30;border:1px solid #475450;border-radius:8px;padding:10px 6px;min-width:0}.path-loadout-slots article>small{font-size:.625rem;letter-spacing:.12em;color:#baa77f}.path-loadout-slots article>button:first-of-type{display:flex;align-items:center;flex-direction:column;gap:6px;background:none;border:0;color:#e5d8c3;width:100%;padding:6px 0;min-height:90px}.path-loadout-slots .path-art{width:48px;height:48px}.path-loadout-slots strong{font:.875rem/1.3 Georgia,serif;overflow-wrap:anywhere}.path-remove{background:none;border:0;color:#c8b496;font-size:.75rem;text-decoration:underline;min-height:44px}.path-empty-slot{display:block;font-size:1.875rem;color:#68766d;margin:12px 0}.path-loadout-slots p{font-size:.75rem;margin:4px}.path-branches{min-width:0}.path-graph{position:relative;height:940px;border:1px solid #756b53;border-radius:10px;background:radial-gradient(ellipse at 50% 20%,#34403670,transparent 70%),linear-gradient(135deg,#1b2628,#101719 60%,#202722);box-shadow:inset 0 0 65px #0008;isolation:isolate}.path-connectors{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;color:#9d8b62}.path-connectors>path{stroke:currentColor;stroke-width:3;fill:none;vector-effect:non-scaling-stroke}.path-connectors>path.locked{color:#57615b;stroke-dasharray:4 5}.path-connectors>path.open{color:#c4ab70;filter:drop-shadow(0 0 3px #caa65855)}.path-branch-node{position:absolute;left:var(--node-x);top:var(--node-y);transform:translate(-50%,-50%);width:29%;height:118px;padding:5px 2px;display:flex;align-items:center;flex-direction:column;gap:4px;border:0;background:transparent;color:#b7bdb7;z-index:1;min-width:0}.path-branch-node .path-art{width:52px;height:52px;flex:none;border:1px solid #656759;border-radius:7px;box-shadow:0 3px 10px #000b}.path-branch-node.passive .path-art{border-radius:50%;border-color:#968562;background:#1b2426}.path-branch-node>small{font-size:.5625rem;letter-spacing:.02em;white-space:nowrap;color:#aaaea4}.path-branch-node>strong{font:.875rem/1.18 Georgia,serif;text-align:center;max-width:100%;padding:1px 3px;color:#c2c6bb;text-shadow:0 2px 3px #000;overflow-wrap:anywhere}.path-node-rank{padding:2px 7px;background:#101819;border:1px solid #46564d;border-radius:4px;font:.6875rem system-ui;white-space:nowrap}.path-branch-node.learned>strong{color:#f1ddb1}.path-branch-node.learned .path-art{border-color:#baa277}.path-branch-node.available .path-node-rank{border-color:#9d895c;color:#f0d19b}.path-branch-node.selected .path-art{outline:2px solid #efd59f;outline-offset:3px}.path-branch-node.selected>strong{color:#fff0d2}.path-inspector{position:sticky;top:16px}.path-requirements{padding:12px 12px 12px 29px;background:#101b20;border-radius:5px;font-size:.8125rem;line-height:1.7}.path-requirements .met{color:#b7d4a7}.path-requirements .unmet{color:#e4b194}.path-equip{margin-top:22px;border-top:1px solid #596355;padding-top:15px}.path-equip h3{font:1.125rem Georgia,serif;color:#e4cb9f}.path-equip p{font-size:.8125rem;line-height:1.5;color:#b6c1b8}.path-equip>div{display:grid;grid-template-columns:1fr 1fr;gap:8px}.path-equip button{padding:10px 6px;white-space:normal;min-width:0;min-height:60px}.path-equip button small,.path-equip button strong{display:block;line-height:1.4}.path-equip button small{font-size:.625rem;color:#b5bbae}.path-equip button strong{font:.875rem/1.3 Georgia,serif}.path-portrait-skills{grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:850px){.path-inspector{position:static}.paths-workspace{display:flex;flex-direction:column}.path-branches,.path-inspector{width:100%;box-sizing:border-box}.path-graph{height:950px}.path-branch-node{height:122px}.path-branch-node .path-art{width:58px;height:58px}}
@media(max-width:540px){.path-loadout{padding:12px 8px}.path-loadout-slots{gap:5px}.path-loadout-slots article{padding:8px 3px}.path-loadout-slots strong{font-size:.75rem}.path-loadout-slots .path-art{width:42px;height:42px}.path-graph{height:960px}.path-branch-node{width:31%;height:128px}.path-branch-node .path-art{width:48px;height:48px}.path-branch-node>strong{font-size:.8125rem}.path-branch-node>small{font-size:.5rem}.path-tabs strong{overflow-wrap:normal;word-break:normal;font-size:.8125rem}.path-tabs small{font-size:.625rem}.path-inspector-title .path-art{width:60px;height:60px}.path-portrait-skills{grid-template-columns:repeat(4,minmax(0,1fr))}}

.party-card.path-party-card{position:relative}.path-party-card .path-portrait-detail{position:absolute;top:100%;left:0;right:0;z-index:90;max-height:260px;overflow:auto;background:#12232c;border:1px solid #b29a6a;box-shadow:0 10px 25px #000a;padding:15px;border-radius:7px;margin-top:5px}.path-detail-close{float:right;min-width:44px;min-height:44px;margin:-10px -10px 0 6px;background:transparent;color:#e8d4af;border:0;font-size:1.5rem}.path-portrait-detail p{line-height:1.5;font-size:.8125rem}

.path-gate-badge{position:absolute;z-index:2;font:.6875rem/1.3 Arial,sans-serif;color:#b1bbae;background:#142024;padding:2px 3px;border-radius:3px;white-space:normal;max-width:calc(33.333% - 8px);transform:translateX(-50%);overflow-wrap:anywhere;pointer-events:none}.path-gate-badge.met{color:#e5c990}.path-back{display:none}.path-inspector{scroll-margin-top:76px}@media(max-width:850px){.path-back{display:block;margin-bottom:16px;min-height:44px}}
.path-party-card{container-type:inline-size}.path-party-card>.path-portrait-skills{grid-template-columns:repeat(2,44px);justify-content:start}
@container(min-width:188px){.path-party-card>.path-portrait-skills{grid-template-columns:repeat(4,44px)}}
@media(max-width:600px){.path-party-card>.path-portrait-skills{grid-template-columns:repeat(2,44px);gap:6px}}
@media(max-width:600px){.path-party-card .path-portrait-detail{position:fixed;top:auto;left:12px;right:12px;bottom:calc(86px + env(safe-area-inset-bottom,0px));max-height:42vh;max-height:42svh;margin:0;padding:16px;z-index:110;overscroll-behavior:contain}.path-portrait-detail strong{display:block;padding-right:38px;font:1.125rem/1.4 Georgia,serif}.path-portrait-detail p{font-size:.875rem}}

@media(max-width:360px){.path-equip>div{grid-template-columns:minmax(0,1fr)}.path-equip button{white-space:normal;overflow-wrap:break-word}}

/* Threat and tactics (IRP_THREAT_TACTICS_VERSION=1): three tactic slots under the ability bar. Drawn only while the switch is on. */
.path-tactics{margin:24px 0;border:1px solid #6e634e;padding:18px;background:#111c22;border-radius:10px}.path-tactics h2{margin:0;font:1.375rem Georgia,serif;color:#ead5ad}.path-tactics header p{color:#b9c2c0;font-size:.875rem;line-height:1.5}
.path-tactic-slots{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.path-tactic-slot{border:1px solid #4d5a5c;border-radius:8px;padding:12px;background:#0c1519;min-width:0}
.path-tactic-slot small{display:block;color:#c9a96a;letter-spacing:.08em;font-size:.6875rem}.path-tactic-slot strong{display:block;margin:4px 0;color:#f2e2bf;font-size:1rem;overflow-wrap:anywhere}.path-tactic-slot p{margin:4px 0;color:#b9c2c0;font-size:.8125rem;line-height:1.45}
.path-tactic-options{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}.path-tactic-options button{min-height:44px;padding:6px 10px;font-size:.8125rem;max-width:100%;white-space:normal}
@media(max-width:720px){.path-tactic-slots{grid-template-columns:1fr}.path-tactics{padding:12px 10px}}

/* New-player QA (7 Oct): "Sets role" tag on a skill card when its point would change the role. */
.sp-role-tag{display:inline-block;margin:4px 0 0 8px;padding:2px 8px;border:1px solid #d9a441;border-radius:999px;background:rgba(217,164,65,.16);color:#f3cf7a;font-size:.75rem;font-weight:700;letter-spacing:.02em}
/* New-player QA (7 Oct): the note under the skill point count sits on bright banner art; give it a dark backing so it reads. */
.paths-budgets>small{justify-self:end;width:auto;padding:2px 8px;border-radius:6px;background:rgba(8,10,16,.78);color:#ece6d6;text-shadow:0 1px 2px #000}
/* Tier III (IRP_SKILL_TIER3_VERSION=1): five slots in one row; on phones the Ultimate slot takes its own full-width row under the four. */
.path-loadout-slots.five{grid-template-columns:repeat(5,minmax(0,1fr))}.path-loadout-slots .ultimate-slot{border-color:#c9a254;background:#2a2618}.path-loadout-slots .ultimate-slot>small{color:#e8c77f}
@media(max-width:700px){.path-loadout-slots.five{grid-template-columns:repeat(4,minmax(0,1fr))}.path-loadout-slots.five>.ultimate-slot{grid-column:1/-1}}
.path-portrait-skills:has(>:nth-child(5)){grid-template-columns:repeat(5,minmax(0,1fr))}
/* Role slots (IRP_ROLE_SLOTS_VERSION): badges on their own row and a two-line name, so every slot header is the same height and the skill icons line up. */
.path-loadout-slots article>small.role-slot-head{display:flex;flex-direction:column;align-items:center;gap:4px;min-height:calc(32px + 3.2em);line-height:1.6}
.role-slot-head>span:first-child{display:flex;align-items:center;justify-content:center;gap:4px;min-height:28px}

/* /continuous-field.css */
.field-population{position:absolute;inset:0;z-index:5;pointer-events:none}
.field-pack-targets{position:absolute;inset:0;z-index:12;pointer-events:none}
.field-pack-target{position:absolute;left:0;top:0;translate:-50% -50%;min-width:44px;min-height:44px;border:1px solid #b29a6999;border-radius:24px;background:#101d20db;color:#ead8b5;font-size:11px;pointer-events:auto;padding:6px 10px}
.field-controls{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:9px 12px;background:#111e23;border:1px solid #526062;border-top:0;font-size:.75rem;color:#c6c1b4}
.field-controls .field-progress{flex:1;min-width:145px}
.field-controls button{min-height:44px;font-size:.75rem;padding:7px 12px}
.field-revive-choice{display:flex;align-items:center;gap:7px;min-height:44px;cursor:pointer;white-space:nowrap}.field-revive-choice input{width:17px;height:17px;margin:0;accent-color:#d9b676}
.field-overview{width:min(760px,calc(100vw - 24px));max-height:calc(100svh - 32px);box-sizing:border-box;overflow:auto;overscroll-behavior:contain;padding:16px;border:1px solid #ac9563;border-radius:8px;background:#122026;color:#e4d5b9;box-shadow:0 12px 60px #000a}
.field-overview::backdrop{background:#02070ab0}
.field-overview header{display:flex;align-items:center;justify-content:space-between;gap:12px}
.field-overview h2{margin:0;font:1.375rem Georgia;color:#eed3a0}
.field-overview header button{flex:0 0 44px;font-size:1.375rem}
.field-overview p{font-size:.8125rem;color:#b8c5c6}
.field-overview-map svg{display:block;width:100%;max-height:50svh;background:#0b1319;border:1px solid #586363}
.field-overview-packs{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr));gap:6px;margin-top:12px}
.field-overview-packs button{text-align:left;min-height:48px;background:#1b2c32;border:1px solid #627373;color:#ead9b8;line-height:1.4}
.field-overview-packs button[aria-pressed=true]{border-color:#e7c789;background:#3b3930}
.dungeon-battlefield[data-field-state="transition"]:after{content:"";position:absolute;inset:0;z-index:230;background:#0a1316cc;pointer-events:none;animation:field-crossing .8s ease-in-out}
.dungeon-battlefield[data-field-reduced="true"][data-field-state="transition"]:after{animation:none;background:#0a131644}
@keyframes field-crossing{0%,100%{opacity:0}45%,60%{opacity:1}}
@media(max-width:600px){.field-controls{gap:6px;padding:8px}.field-controls .field-progress{flex-basis:100%}.field-controls button{flex:1}.field-pack-target{font-size:10px}}
@media(prefers-reduced-motion:reduce){.dungeon-battlefield[data-field-state="transition"]:after{animation:none;background:#0a131644}}

.field-scenery{position:absolute;inset:0;overflow:visible;pointer-events:none}

.unit.field-entered{opacity:0;transition:opacity .25s ease}

/* Keep the full boss room readable without tall empty margins on phones. */
@media(max-width:600px){.mmo-shell .arena-column.has-zone-boss-arena{grid-template-rows:auto clamp(250px,70vw,340px) auto}}

/* Intentional rest must not look like a stalled battlefield. */
.shell .field-controls[data-resting="true"]>.field-progress{display:block;flex-basis:100%;grid-column:1/-1;color:#e9d3a3}

/* Boss arenas on a wide stage: the painting dissolves into its own darkened, softer backdrop at the sides instead of ending at a hard edge, so the arena reads as part of the same battle screen as the zone. */
@media(min-width:1001px){
 .mmo-shell .battlefield.zone-boss-arena::before{filter:blur(32px) brightness(.5) saturate(.8)}
 .mmo-shell .battlefield.zone-boss-arena .arena-background{box-shadow:none;-webkit-mask-image:linear-gradient(90deg,transparent 0,#000 9%,#000 91%,transparent 100%);mask-image:linear-gradient(90deg,transparent 0,#000 9%,#000 91%,transparent 100%)}
}

/* The battle scene never scrolls inside its frame (visual tune-up item 3, 23 Oct). With overflow:hidden, a tip anchored to something in the scene
   (public/tutorial-tour.js scrollIntoView) scrolled the frame about 200px, leaving the party at the top edge and empty floor below until a reload.
   clip cannot be scrolled at all; public/app.js also resets the scroll for browsers without clip. */
#battlefield{overflow:hidden;overflow:clip}

/* Hunt fill (IRP_HUNT_FILL_VERSION, lib/hunt-fill.js; visual tune-up item 2, 23 Oct): a Hunt's header is one short row and its controls one enemy, so the
   desktop height budget (public/desktop-fit.css) left about 130px empty under the controls at 1440x900. The battle frame takes 56px of it (more would push Combat review under the floating watch button), and the camera
   (public/dungeon-view.js huntFill) zooms the painting in to fill the frame. Off, or outside a Hunt: the budget as before. */
.arena-heading .challenge-threat-summary.uk-chips{justify-content:center;padding:0}.arena-heading .challenge-threat-summary.uk-chips>.uk-chip{padding-inline:9px;font:600 .75rem/1.2 var(--uk-sans,var(--ui))}
@media(min-width:1001px){.shell.mmo-shell .combat-grid>.arena-column.hunt-fill{grid-template-rows:auto clamp(260px,calc(100vh - var(--fit-top) - var(--fit-heading) - var(--fit-controls) + 56px),1100px) auto;grid-template-rows:auto clamp(260px,calc(100svh - var(--fit-top) - var(--fit-heading) - var(--fit-controls) + 56px),1100px) auto}}

/* Compact combat controls (IRP_COMPACT_COMBAT_CONTROLS_VERSION, default off): desktop only. One or two short rows instead of three or four tall ones; the battlefield gets the height.
   Row one: journal, streak line, Taunt / Leave / Review. Row two (only when row one is full): Zone map, Boss mode and the two checkboxes. Phones keep their own layout. */
/* Weekend event and boss streak plaques (all widths): painted icon, gold small-caps label, divider, text, in the same gilt frame as the buttons. */
.field-streak[data-compact="1"] .field-note{display:inline-flex;align-items:center;gap:7px;min-height:32px;max-width:100%;padding:3px 14px 3px 8px;box-sizing:border-box;border:1px solid #a88c55;border-top:2px solid #d6b575;border-radius:2px;background:linear-gradient(180deg,#2c3a4d,#142030);box-shadow:inset 0 0 0 2px #0c172366,inset 0 1px #f9e4b133,0 2px 6px #0007;color:#eadbb9;font-size:.75rem;line-height:1.25}
.field-streak[data-compact="1"] .field-note .fantasy-icon{width:24px;height:24px;flex:0 0 24px}
.field-streak[data-compact="1"] .field-note>b{font:600 .6875rem/1.2 Georgia,'Times New Roman',serif;letter-spacing:.08em;text-transform:uppercase;color:#f0d38b;white-space:nowrap}
.field-streak[data-compact="1"] .field-note>b+span{padding-left:9px;border-left:1px solid #a88c5566;color:#eadbb9}
.field-streak[data-compact="1"] .field-note-event{border-color:#7fb0a0;border-top-color:#a9d8c6}
.field-streak[data-compact="1"] .field-note-event>b{color:#b9e3d2}
.field-streak[data-compact="1"] .field-note[hidden]{display:none}
.field-streak[data-compact="1"] .field-note-clock{margin-left:2px;padding:1px 9px;border:1px solid #a9d8c680;border-radius:10px;background:#0d1926;color:#b9e3d2;font-variant-numeric:tabular-nums;font-weight:600;white-space:nowrap}
.field-streak[data-compact="1"] .field-note-clock.is-urgent{border-color:#e0a54a;background:#3a2713;color:#ffd98a;animation:field-clock-pulse 1.6s ease-in-out infinite}
@keyframes field-clock-pulse{50%{box-shadow:0 0 8px #e0a54a99}}
@media(prefers-reduced-motion:reduce){.field-streak[data-compact="1"] .field-note-clock.is-urgent{animation:none}}
@media(max-width:760px){.field-streak[data-compact="1"] .field-note{min-height:28px;padding:2px 10px 2px 6px;font-size:.6875rem}.field-streak[data-compact="1"] .field-note .fantasy-icon{width:18px;height:18px;flex-basis:18px}.field-streak[data-compact="1"] .field-note{gap:5px;padding-right:8px}.field-streak[data-compact="1"] .field-note>b{font-size:.625rem;letter-spacing:.03em}.field-streak[data-compact="1"] .field-note>b+span{padding-left:6px}}
@media(min-width:761px){
 .shell .field-controls[data-compact="1"]{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;padding:5px 12px}
 .shell .field-controls[data-compact="1"]>.battle-journal{order:0;margin-right:0;min-height:38px;height:38px;padding:4px 12px}
 .shell .field-controls[data-compact="1"]>.field-action-controls,.shell .field-controls[data-compact="1"][data-resting="true"]>.field-action-controls{order:2;position:static;transform:none;flex:0 1 auto;width:auto;margin-left:0;justify-content:flex-end;gap:6px}
 .shell .field-controls[data-compact="1"]>.field-action-controls>button{min-height:38px;height:38px;padding:4px 10px}
 .shell .field-controls[data-compact="1"]>.field-action-controls>.action-key .skill-icon{width:24px;height:24px}
 .shell .field-controls[data-compact="1"]>.field-navigation-controls{order:3;flex:0 1 auto;margin-left:auto;justify-content:flex-end;gap:6px}
 .shell .field-controls[data-compact="1"] .field-navigation-controls>.secondary,.shell .field-controls[data-compact="1"] .field-navigation-controls>.field-revive-choice{min-height:38px;height:38px;padding-block:4px;align-self:center;box-sizing:border-box}
 .shell .field-controls[data-compact="1"]>.field-progress{display:none}
 .shell .field-controls[data-compact="1"][data-resting="true"]>.field-progress{display:block;order:4;flex:1 1 100%;padding:0 4px;font-size:.6875rem;line-height:1.2}
}
/* Pat, 18 Oct 2026: the weekend event and boss streak plaques move up top (public/field-view.js moves them), the strip under the battlefield is one short row, and the battlefield takes the height.
   Desktop: at the left of the bar with the gold. Phones and tablets: a slim centred row under the zone title. */
.field-streak[data-compact="1"][hidden]{display:none}
@media(min-width:1001px){
 .shell.mmo-shell>.topbar>.field-streak[data-compact="1"]{position:absolute;left:18px;top:50%;z-index:2;transform:translateY(-50%);display:flex;flex-wrap:nowrap;justify-content:flex-start;gap:8px;max-width:calc(100% - 200px);margin:0;padding:0;white-space:nowrap}
 /* Battle notices (new zone open, supplies) dock at the top right of this bar: field-view.js marks the plaques while one shows, to keep clear of it. */
 .shell.mmo-shell>.topbar>.field-streak[data-compact="1"].beside-notices{max-width:calc(100% - 590px)}
 .shell.mmo-shell>.topbar>.field-streak[data-compact="1"] .field-note{min-width:0;flex:0 1 auto}
 .shell.mmo-shell>.topbar>.field-streak[data-compact="1"] .field-note>b+span{min-width:0;overflow:hidden;text-overflow:ellipsis}
}
.arena-column>.arena-heading>.field-streak[data-compact="1"]{grid-column:1/-1;display:flex;flex-wrap:wrap;justify-content:center;gap:4px 6px;margin:3px 0 1px;padding:0}
@media(max-width:480px){.arena-column>.arena-heading>.field-streak[data-compact="1"] .field-note .fantasy-icon{display:none}.arena-column>.arena-heading>.field-streak[data-compact="1"] .field-note{padding-left:9px}.arena-column>.arena-heading>.field-streak[data-compact="1"] .field-note-clock{padding-inline:6px}}
@media(min-width:761px){
 .shell .field-controls[data-compact="1"]{container-type:inline-size;gap:4px 6px;padding:5px 10px}
 .shell .field-controls[data-compact="1"]>.field-action-controls>button,.shell .field-controls[data-compact="1"] .field-navigation-controls>.secondary{padding-inline:9px}
 .shell .field-controls[data-compact="1"] .field-navigation-controls>.field-revive-choice{gap:6px;font-size:.8125rem}
}
/* Not enough room for the whole row with words: the journal shows its painted icon only (the name stays for screen readers and in the tooltip). */
@container (max-width:1100px){
 .shell .field-controls[data-compact="1"]>.battle-journal{padding-inline:7px}
 .shell .field-controls[data-compact="1"]>.battle-journal>.battle-journal-label{position:absolute;width:1px;height:1px;margin:-1px;padding:0;border:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
}
/* The scene's height budget (public/desktop-fit.css, --fit-controls) counts the tall control strip; the one-row compact strip gives the battlefield the freed height. */
@media(min-width:1001px){.shell.mmo-shell:has(.field-controls[data-compact="1"]){--fit-controls:216px}}
/* Layout pass (Pat, 21 Oct 2026: "stuff not aligning"): the strip under the battlefield reads as one set of buttons.
   The two checkboxes are framed toggles in the same gold frame and height as the buttons beside them (lit when ticked); a greyed Taunt keeps its frame and only dims its icon and word.
   Wide strips stay one row: actions left, map, boss mode and toggles right. When the row cannot hold them all, two full-width rows of even buttons instead of a ragged wrap. */
@media(min-width:761px){
 .shell .field-controls[data-compact="1"] .field-navigation-controls>.field-revive-choice{padding:4px 12px 4px 10px;border:1px solid var(--uk-gold-dim,#8f7645);border-radius:var(--uk-radius,4px);background:var(--uk-tab-surface,#152131);box-shadow:var(--uk-rule,none);color:#d9d3c2;font-weight:600}
 .shell .field-controls[data-compact="1"] .field-navigation-controls>.field-revive-choice:hover{border-color:var(--uk-gold,#d6b575);color:#fff0c8}
 .shell .field-controls[data-compact="1"] .field-navigation-controls>.field-revive-choice:has(input:checked){border-color:#e0bd73;background:var(--uk-surface-lit,#3a2f22);color:#fff1cc}
 .shell .field-controls[data-compact="1"] .field-navigation-controls>.field-revive-choice:focus-within{outline:2px solid var(--uk-focus,#f4cd86);outline-offset:1px}
 .shell .field-controls[data-compact="1"]>.field-action-controls>.action-key:disabled{opacity:1;filter:none;cursor:default;border-color:var(--uk-gold-dim,#8f7645);color:var(--uk-ivory-dim,#c9c3b4)}
 .shell .field-controls[data-compact="1"]>.field-action-controls>.action-key:disabled .skill-icon{opacity:.5}
 .shell .field-controls[data-compact="1"]>.field-action-controls>.action-key small{padding:1px 6px;border:1px solid var(--uk-gold-dim,#8f7645);border-radius:9px;font-size:.6875rem;line-height:1.3;font-variant-numeric:tabular-nums;white-space:nowrap}
}
@container (max-width:1099px){
 .shell .field-controls[data-compact="1"]>.field-action-controls{flex:1 1 0;min-width:0}
 .shell .field-controls[data-compact="1"]>.field-action-controls>*{flex:1 1 0;min-width:0}
 .shell .field-controls[data-compact="1"]>.field-navigation-controls{flex:1 1 100%;margin-left:0}
 .shell .field-controls[data-compact="1"] .field-navigation-controls>*{flex:1 1 0;min-width:0;justify-content:center}
}
/* Shared zones Open to join on the new fight screen (QA 1 Nov): the card sat under the full-screen battlefield, so nobody could see or press Join. It now floats
   over the fight: top right under the bell and Map on a computer, and across the top under the enemy frame on a phone (clear of the bell and Map buttons). */
html.fh-on.cx-on.cx-fight .shared-join{position:fixed;z-index:96;top:128px;right:16px;width:min(340px,32vw);margin:0;box-shadow:0 6px 18px #000a}
@media (max-width:760px){html.fh-on.cx-on.cx-fight .shared-join{top:calc(124px + env(safe-area-inset-top,0px));left:8px;right:60px;width:auto;padding:6px 8px;gap:4px}
 html.fh-on.cx-on.cx-fight .shared-join-row>.uk-btn{min-width:72px}}
/* Phone combat tidy (IRP_PHONE_COMBAT_VERSION, lib/phone-combat.js; Pat's compact combat proposal, 24 Oct 2026). public/field-view.js sets data-phone-compact only
   on phones with the switch on: one row of fight buttons, then an Expedition options toggle holding Leave expedition, the journal, Boss mode and the two toggles.
   Kit colours and frames (public/ui-kit.css tokens); 44 px touch rows; no motion. Off, or wider than 760 px: nothing here matches. */
@media(max-width:760px){
 .shell .field-controls[data-phone-compact="1"]{gap:6px}
 .shell .field-controls[data-phone-compact="1"]>.field-navigation-controls:not(:has(>:not([hidden]))){display:none}
 .shell .field-controls[data-phone-compact="1"]>:is(.field-action-controls,.field-options){grid-column:1/-1;width:100%}
 .shell .field-controls[data-phone-compact="1"]>.field-action-controls{display:grid;grid-template-columns:repeat(var(--field-actions,3),minmax(0,1fr));gap:6px;flex:1 1 100%;white-space:normal}
 .shell .field-controls[data-phone-compact="1"]>.field-action-controls[data-count="2"],.shell .field-controls[data-phone-compact="1"]>.field-action-controls[data-count="4"]{--field-actions:2}
 .shell .field-controls[data-phone-compact="1"]>.field-action-controls>[hidden]{display:none}
 .shell .field-controls[data-phone-compact="1"]>.field-action-controls>button{min-height:44px;margin:0;padding:4px 8px;font-size:.875rem;line-height:1.15}
 .shell .field-controls[data-phone-compact="1"]>.field-options{flex:1 1 100%;order:6;margin:0;border-top:1px solid var(--uk-gold-dim,#8f7645)}
 .shell .field-controls[data-phone-compact="1"]>.field-options[hidden]{display:none}
 .shell .field-controls[data-phone-compact="1"]>.field-options>summary{display:flex;align-items:center;justify-content:space-between;min-height:44px;padding:0 4px;list-style:none;cursor:pointer;font:600 .875rem/1.2 var(--uk-sans,inherit);color:var(--uk-ivory,#efe6cf)}
 .shell .field-controls[data-phone-compact="1"]>.field-options>summary::-webkit-details-marker{display:none}
 .shell .field-controls[data-phone-compact="1"]>.field-options>summary::after{content:'+';font-size:1.375rem;line-height:1;color:var(--uk-gold,#d6b575)}
 .shell .field-controls[data-phone-compact="1"]>.field-options[open]>summary::after{content:'\2212'}
 .shell .field-controls[data-phone-compact="1"]>.field-options>summary:focus-visible{outline:2px solid var(--uk-focus,#f4cd86);outline-offset:2px}
 .shell .field-controls[data-phone-compact="1"] .field-options-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;padding:2px 0 8px}
 .shell .field-controls[data-phone-compact="1"] .field-options-list>[hidden]{display:none}
 .shell .field-controls[data-phone-compact="1"] .field-options-list>:is(button,.field-revive-choice){display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;margin:0;padding:4px 10px;box-sizing:border-box;font-size:.875rem;line-height:1.15;text-align:center;white-space:normal}
 .shell .field-controls[data-phone-compact="1"] .field-options-list>.battle-journal{margin:0}
 .shell .field-controls[data-phone-compact="1"] .field-options-list>.battle-journal .fantasy-icon{width:22px;height:22px;flex-basis:22px}
 .shell .field-controls[data-phone-compact="1"] .field-options-list>.field-revive-choice{border:1px solid var(--uk-gold-dim,#8f7645);border-radius:var(--uk-radius,4px);background:var(--uk-tab-surface,#152131);color:#d9d3c2;font-weight:600}
 .shell .field-controls[data-phone-compact="1"] .field-options-list>.field-revive-choice:has(input:checked){border-color:#e0bd73;background:var(--uk-surface-lit,#3a2f22);color:#fff1cc}
 .shell .field-controls[data-phone-compact="1"] .field-options-list>.field-revive-choice:focus-within{outline:2px solid var(--uk-focus,#f4cd86);outline-offset:1px}
 .shell .field-controls[data-phone-compact="1"] .field-options-list:is([data-count="1"],[data-count="3"],[data-count="5"],[data-count="7"])>.begin-button,.shell .field-controls[data-phone-compact="1"] .field-options-list>.battle-leader-note{grid-column:1/-1}
 /* XP / hour and Gold / hour hide while both still show a dash (the first 30 seconds, or no saved rewards yet); real numbers show as before. */
 html.phone-combat #adventureRates[data-empty="1"]{display:none!important}
}

/* Shared zones Open to join (public/shared-zone-view.js joinCard, IRP_SHARED_ZONES_VERSION): the parties here that need your role, right under the battlefield. */
.shared-join{display:grid;gap:6px;padding:8px 10px;margin:6px 0}
.shared-join-row{display:flex;align-items:center;gap:10px}
.shared-join-row>p{flex:1;margin:0;min-width:0;color:var(--uk-ivory,#eadbb9);line-height:1.25}
.shared-join-row>p b{color:var(--uk-gold-text,#ffe1aa);font-weight:600}
.shared-join-row>p small{display:block;color:var(--uk-ivory-dim,#c9c3b4);font-size:12px}
.shared-join-row>.uk-btn{min-height:var(--uk-tap,44px);min-width:88px}
.shared-join-ring{flex:none;width:18px;height:18px;border-radius:50%;border:3px dashed currentColor}
.shared-join-note{margin:0;color:var(--uk-ivory-dim,#c9c3b4);font-size:12px}
/* 3D zones (IRP_3D_ZONES_VERSION, public/zones3d.js): the zone's 3D map lies under everything in the battlefield, where the painting was. Until it has
   loaded the painting shows; once it draws, the painting is hidden. It never takes a click or a tap. */
.battlefield>.zone3d-frame{position:absolute;inset:0;width:100%;height:100%;border:0;margin:0;padding:0;display:block;pointer-events:none;z-index:0;background:transparent;color-scheme:normal}
.battlefield:not(.zone3d-on)>.zone3d-frame{visibility:hidden}
.battlefield.zone3d-on>.arena-background{visibility:hidden}
/* 3D drops (public/zones3d-drops.js names, 13 Nov): the names over the drops lying on a 3D map (a gold amount, a material, an Epic or better item), over the fighters and the fallen (10, 25) and under the prison opening's marks (60), the fight's numbers (199, 200) and its bars. Outlined text with no plate, like the fight's own numbers, so a pile of drops never hides the fighters behind dark boxes. */
.loot3d-names{position:absolute;inset:0;z-index:40;pointer-events:none;overflow:hidden;font:700 11px/14px var(--serif)}.loot3d-names b{position:absolute;left:0;top:0;padding:0 5px;white-space:nowrap;will-change:transform;text-shadow:0 0 2px #000,0 0 3px #000,0 1px 3px #000,0 0 6px #000c}@media(max-width:600px){.loot3d-names{font-size:10px}}

/* /raid.css */
.raid-page{max-width:1240px;margin:auto}.raid-heading{padding:24px 0 18px}.raid-heading h1{font:2.625rem Georgia,serif;color:#f1ddbc;margin:8px 0}.raid-heading>p:last-child{color:#b8afa0}.raid-company header{display:flex;align-items:center;justify-content:space-between;gap:12px}.raid-company h2 span{font:.875rem system-ui;color:#b7aa97;margin-left:12px}.raid-role-counts{display:flex;gap:12px;flex-wrap:wrap;margin:14px 0}.raid-role-counts>span{padding:9px 16px;background:#171b1d;border:1px solid #66503b;border-radius:4px;color:#b9ada0}.raid-role-counts b{color:#ead8b6;margin-right:5px}.raid-role-counts .ready{border-color:#69816a;color:#bdd2b2}.raid-company .small-note{margin:14px 0 10px}.raid-page details{padding:12px 0;border-top:1px solid #76604b44}.raid-page summary{cursor:pointer;color:#d1bd9b;min-height:28px}.raid-page details p,.raid-page li{font-size:.875rem;line-height:1.65;color:#b8b4ad}.raid-page .text-link{background:none;border:none;padding:5px 0;color:#daba80;text-decoration:underline;cursor:pointer}.raid-card{display:grid;grid-template-columns:46% 54%;border:1px solid #805339;background:#171619;box-shadow:0 12px 45px #0005;min-height:490px;margin:24px 0 40px;overflow:hidden;border-radius:6px}.raid-art{background-image:linear-gradient(90deg,#12111600 60%,#171619),var(--raid-art);background-size:cover;background-position:70% 45%;min-height:340px}.raid-card-copy{padding:32px}.raid-card h2{font:2.125rem Georgia,serif;color:#efcb96;margin:10px 0 16px}.raid-flavor{color:#c5b9a6;line-height:1.6;max-width:36em}.raid-seals{display:flex;align-items:center;gap:7px;margin:24px 0}.raid-seals span{display:grid;place-items:center;width:29px;height:33px;border:1px solid #825139;color:#a38a6e;background:#251b19}.raid-seals span.cleared{border-color:#a9804b;color:#f6dda7;background:#665031}.raid-seals>b{font-size:.75rem;font-weight:500;margin-left:6px;color:#a79780}.raid-wip{font-size:.8125rem;line-height:1.5;color:#c5a576;border-left:2px solid #987341;padding-left:11px;margin:18px 0}.raid-card .red-button{margin:6px 0 12px;min-height:44px}.raid-entry-reason{font-size:.8125rem;color:#c7b3a2;margin:0 0 12px}.raid-boss-guide ol{padding-left:24px}.raid-boss-guide li{padding:8px 0}.raid-boss-guide li span{display:block;color:#a69e95}.raid-fill-toggle[aria-pressed=true]{border-color:#739470;color:#cee0bd}.raid-page button{min-height:44px}.raid-group .party-frames{grid-template-columns:repeat(2,minmax(0,1fr))}.raid-group .party-frame{min-width:0}
@media(max-width:760px){.raid-card{grid-template-columns:1fr}.raid-art{min-height:230px;background-image:linear-gradient(0deg,#171619,#17161900 45%),var(--raid-art);background-position:50% 34%}.raid-card-copy{padding:22px;padding-top:0}.raid-card h2{font-size:1.8125rem}.raid-heading h1{font-size:2.125rem}.raid-seals{gap:5px}.raid-seals>b{font-size:.6875rem}.raid-company header{align-items:flex-start}.raid-company h2 span{display:block;margin:5px 0}.raid-role-counts{gap:6px}.raid-role-counts>span{padding:8px 10px}.raid-company .az-actions{align-items:stretch;flex-direction:column}}
.mmo-shell .raid-group #partyCards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;align-items:start}.mmo-shell .raid-group .raid-party-card{display:block;min-height:0;height:auto;padding:7px;margin:0;container-type:normal}.raid-frame-title{display:flex;gap:7px;align-items:center;margin-bottom:5px;min-width:0}.raid-frame-title>img,.raid-frame-title>svg{width:32px;height:36px;object-fit:cover;flex:none}.raid-frame-title>div{min-width:0}.raid-frame-title b,.raid-frame-title small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.raid-frame-title b{font:.75rem Georgia,serif;color:#efd9b0}.raid-frame-title small{font:.625rem system-ui;color:#9aadae;margin-top:3px}.mmo-shell .raid-party-card .hud-bar{margin:3px 0;min-height:14px;height:14px;font-size:10px;line-height:14px}.mmo-shell .raid-party-card .hud-bar em{font:10px/14px system-ui}.mmo-shell .raid-party-card .portrait-cast{min-height:17px;height:17px;font-size:.625rem;margin:3px 0}.raid-frame-skills summary{font:.6875rem/1.4 system-ui;color:#aebdb8;cursor:pointer;min-height:24px;padding:4px 0}.raid-frame-skills .path-portrait-skills{display:grid;grid-template-columns:repeat(2,44px);gap:5px;padding-top:6px}.mmo-shell .raid-party-card .path-portrait-detail{position:relative;top:auto;left:auto;right:auto;padding:8px;max-height:240px;font-size:.75rem}.mmo-shell .raid-party-card .path-detail-close{margin-right:-8px}.raid-frame-skills[open]{grid-column:1/-1}.raid-group .party-rail{min-width:0}
/* The party rail is a fixed-height scrolling column. The battle-height hold (holdBattleHeights in app.js) sets an explicit min-height on #partyCards, which replaces the content-based minimum of a flex item: the frames could then shrink below their content when buffs appear and overlap each other. They never shrink; the rail scrolls. */
.mmo-shell .party-rail>#partyCards{flex-shrink:0;align-content:start}
@media(max-width:1050px){.mmo-shell .raid-group .party-rail{max-height:240px;overflow:auto;overscroll-behavior:contain}.mmo-shell .raid-group #partyCards{grid-template-columns:repeat(5,minmax(140px,1fr));min-width:740px}.raid-frame-skills summary{min-height:44px;padding:12px 0}.mmo-shell .raid-party-card .path-portrait-detail{position:fixed;left:12px;right:12px;bottom:100px;top:auto;z-index:110}}
.raid-frame-title>.outfit-portrait{width:32px;height:36px;flex:0 0 32px;overflow:hidden}.raid-frame-title>div{flex:1}
@media(max-width:1179px){.mmo-shell>.topbar>nav{grid-template-columns:repeat(6,minmax(44px,1fr))}.mmo-shell>.topbar>nav .nav-button{min-width:44px}}@media(max-width:380px){.mmo-shell>.topbar>nav .nav-button{font-size:.63rem;letter-spacing:-.02em}}
@media(max-width:760px){.raid-company .az-actions>button{flex:0 0 auto;min-height:44px}.raid-heading{padding:10px 0 6px}.raid-role-counts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.raid-role-counts>span{padding:8px 4px;font-size:.75rem;text-align:center}.raid-role-counts b{margin-right:2px}.raid-page summary{min-height:44px;display:flex;align-items:center}.raid-company .small-note{font-size:.8125rem}}

.raid-afflictions:empty{display:none}.raid-afflictions{display:flex;flex-wrap:wrap;gap:3px;margin:4px 0}.raid-afflictions .portrait-effect{font-size:.625rem;color:#ffcb9b;border-color:#a8534b;white-space:normal}

/* One readable portrait frame for both field parties and raid companies. */
.mmo-shell .combat-grid:not(.raid-group) #partyCards{display:grid;grid-template-columns:minmax(0,1fr);gap:7px;align-items:start}
.mmo-shell .compact-party-card{display:block;min-height:0;height:auto;padding:9px;margin:0;container-type:normal;background:linear-gradient(125deg,#232522,#12191c);border:1px solid #6a5940;border-left:2px solid #8b7957;box-shadow:inset 0 1px #dcc49312;border-radius:3px;min-width:0}
.mmo-shell .compact-party-card.role-tank{border-left-color:#bda278}.mmo-shell .compact-party-card.role-healer{border-left-color:#83a794}.mmo-shell .compact-party-card.role-dps{border-left-color:#b98068}
.compact-party-card .raid-frame-title b{font:600 .8125rem/1.3 system-ui;letter-spacing:.01em}.compact-party-card .raid-frame-title small{font-size:.625rem;color:#b4b6ac}
.mmo-shell .compact-party-card .raid-frame-skills>summary{min-height:44px;box-sizing:border-box;padding:13px 0 9px;font:.6875rem/1.4 system-ui;color:#d2bc98;border-top:1px solid #aa926124;margin-top:5px}
.mmo-shell .compact-party-card .raid-frame-skills .path-portrait-skills{grid-template-columns:repeat(auto-fill,44px);justify-content:start;gap:5px;margin:0 0 7px}
.mmo-shell .compact-party-card .raid-frame-skills .path-portrait-skill{display:grid;place-items:center;width:44px;height:44px;aspect-ratio:auto}
.mmo-shell .compact-party-card .raid-frame-skills .path-portrait-skill .path-art{width:32px;height:32px}
.compact-party-card .portrait-xp{display:block;margin-top:3px;font:.625rem/1.3 system-ui;color:#b6d0be;font-variant-numeric:tabular-nums}
.compact-party-card .portrait-xp [data-xp]{font-weight:600;color:#d4e3bc}
.mmo-shell .compact-party-card .raid-frame-skills .portrait-effects{height:auto;min-height:0;max-height:115px;margin:0 0 7px}.mmo-shell .compact-party-card .raid-frame-skills .portrait-effects:empty{display:none}
.mmo-shell .compact-party-card .hud-bar{height:16px;min-height:16px;margin:4px 0}.mmo-shell .compact-party-card .hud-bar em{font:10px/16px system-ui;font-variant-numeric:tabular-nums}
.mmo-shell .compact-party-card .portrait-cast{height:19px;min-height:19px;box-sizing:border-box;padding:1px 4px;font:.625rem/.9375rem system-ui;margin:4px 0 0;border-color:#5d5542}
.mmo-shell .compact-party-card.fallen .portrait-cast{color:#d9bc9a}.mmo-shell .compact-party-card.fallen{opacity:.76}
@media(max-width:1179px){.mmo-shell .combat-grid:not(.raid-group) #partyCards{grid-template-columns:repeat(2,minmax(0,1fr))}.mmo-shell .combat-grid:not(.raid-group) .party-rail{max-height:none;overflow:visible}}
@media(max-width:360px){.compact-party-card .raid-frame-title{gap:5px}.compact-party-card .raid-frame-title b{font-size:.75rem}.mmo-shell .compact-party-card{padding:7px}}
.portrait-effect.conditional{flex-wrap:wrap}.portrait-effect-condition{display:block;flex-basis:100%;font-size:.625rem;line-height:1.4;white-space:normal;color:#dbd0ac}
/* Ten adventurers need a deliberate roster width, independent of the four-person rail. */
.raid-group .raid-frame-title{align-items:flex-start}
.raid-group .raid-frame-title b,.raid-group .raid-frame-title small{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;line-height:1.3}
@media(min-width:1180px){
 .mmo-shell .combat-grid.raid-group{grid-template-columns:340px minmax(0,1fr) 220px;align-items:start}
 .mmo-shell .raid-group .party-rail{max-height:calc(100svh - 80px);overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
}
@media(min-width:761px) and (max-width:1179px){
 .mmo-shell .combat-grid.raid-group{display:flex;flex-direction:column;height:auto;min-height:0}
 .mmo-shell .raid-group .party-rail{width:100%;max-height:none;overflow:visible}
 .mmo-shell .raid-group #partyCards{grid-template-columns:repeat(5,minmax(0,1fr));min-width:0}
}
@media(max-width:760px){
 .mmo-shell .raid-group .party-rail{max-height:min(40svh,340px);overflow-y:auto;overscroll-behavior:contain}
 .mmo-shell .raid-group #partyCards{grid-template-columns:repeat(2,minmax(0,1fr));min-width:0}
}
/* Intrinsic label widths let enlarged text add a row instead of splitting words. */
@media(max-width:760px){
 .mmo-shell>.topbar>nav{display:flex!important;flex-wrap:wrap;align-items:stretch;overflow-x:visible!important}
 .mmo-shell>.topbar>nav>.nav-button{flex:1 0 auto;width:auto;min-width:max(44px,4.8em);max-width:100%;min-height:58px;flex-direction:column;justify-content:center;gap:3px;white-space:nowrap;overflow-wrap:normal;word-break:normal}
 .mmo-shell>.topbar>nav>.nav-button .nav-copy,.mmo-shell>.topbar>nav>.nav-button .nav-copy strong{white-space:nowrap;overflow-wrap:normal;word-break:normal}
}

.dungeon-menu>summary{display:flex;gap:14px;align-items:center;cursor:pointer;list-style:none;min-height:64px}.dungeon-menu>summary:after{content:"⌄";margin-left:auto}.dungeon-menu[open]>summary:after{content:"⌃"}.dungeon-menu>summary>img{width:88px;height:64px;object-fit:cover;border-radius:5px}.dungeon-menu>summary strong,.dungeon-menu>summary small{display:block}.dungeon-menu>summary small{margin-top:6px;color:#bbb5a9}.dungeon-menu>.renown-activities{margin-top:24px}.dungeon-entry-state{font-size:.75rem;color:#d3b983;margin-left:auto}@media(max-width:600px){.dungeon-menu>summary{flex-wrap:wrap}.dungeon-menu>summary>img{width:64px;height:54px}.dungeon-entry-state{margin-left:78px}}
/* Reward dungeon summaries keep their image, name and entry state aligned. */
.shell .dungeon-menu>summary{display:grid;grid-template-columns:88px minmax(0,1fr) auto 16px;gap:12px}
.shell .dungeon-menu>summary>span{min-width:0}
.shell .dungeon-menu>summary:after{margin:0;justify-self:end}
.shell .dungeon-menu .dungeon-entry-state{margin:0}
.shell .dungeon-menu .vault-destination{border:0;box-shadow:none;background:transparent;padding:0}
.shell .dungeon-menu .vault-destination:before,.shell .dungeon-menu .vault-destination:after{display:none}
@media(max-width:600px){.shell .dungeon-menu>summary{grid-template-columns:56px minmax(0,1fr) 12px;gap:8px 10px}.shell .dungeon-menu>summary>img{width:56px;height:56px;grid-row:1/3}.shell .dungeon-menu>summary>span:nth-child(2){grid-column:2;grid-row:1}.shell .dungeon-menu .dungeon-entry-state{grid-column:2;grid-row:2}.shell .dungeon-menu>summary:after{grid-column:3;grid-row:1/3}.shell .dungeon-menu>summary strong{font-size:.875rem}.shell .dungeon-menu>summary small{font-size:.75rem}.shell .dungeon-menu .renown-activities{margin-top:16px}.shell .dungeon-menu .vault-facts{gap:10px}}

/* World bosses keep one readable personal frame, including on phones. */
.mmo-shell .combat-grid.worldboss-group #partyCards{grid-template-columns:minmax(0,1fr);min-width:0}
.mmo-shell .combat-grid.worldboss-group .party-rail{min-width:0}
/* Raid size choice (8 or 12 players; only drawn when IRP_RAID_SIZE_VERSION is on). Kit tokens from ui-kit.css; nothing moves; nothing is hover-only. */
.raid-size-choice{margin:0 0 14px;padding:14px}.raid-size-choice h3{margin:0 0 10px}.raid-size-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.raid-size-card{display:grid;gap:6px;justify-items:start;align-content:start;text-align:left;min-height:72px;min-width:0;padding:14px;color:var(--uk-ivory);background:var(--uk-surface);border:1px solid var(--uk-gold-dim);border-radius:var(--uk-radius-card);box-shadow:var(--uk-rule);cursor:pointer;font:inherit}
.raid-size-card strong{font:1.375rem Georgia,serif;color:var(--uk-gold-text)}.raid-size-card em{font-style:normal;color:var(--uk-ivory-dim)}.raid-size-roles{font-size:.8125rem;color:var(--uk-ivory-dim)}.raid-size-why{color:var(--uk-gold-text);font-size:.8125rem}
.raid-size-card[aria-checked="true"]{border-color:var(--uk-gold-hi);background:var(--uk-surface-lit);box-shadow:var(--uk-rule),0 0 0 1px var(--uk-gold-hi)}.raid-size-card[aria-checked="true"] em{color:var(--uk-ivory)}
.raid-size-card:focus-visible{outline:2px solid var(--uk-focus);outline-offset:2px}.raid-size-card:disabled{opacity:.6;cursor:default}.raid-size-card[aria-checked="true"]:disabled{opacity:1}
.raid-size-pips{display:flex;flex-wrap:wrap;gap:6px;align-items:center;min-height:16px}.raid-size-pips .pip{display:inline-block;width:12px;height:12px;border:1px solid var(--uk-gold);background:var(--uk-gold)}.raid-size-pips .pip.healer{border-radius:50%;background:var(--uk-ivory)}.raid-size-pips .pip.damage{width:10px;height:10px;margin:0 2px;transform:rotate(45deg);background:var(--uk-navy-0)}
@media(max-width:760px){.raid-size-cards{grid-template-columns:1fr}.raid-size-card{min-height:72px;padding:12px}}
/* Second slice: companion fill note and the personal Oath Marks counter (drawn only when the engine sends them). Kit tokens; nothing moves; nothing is hover-only. */
.raid-fill-note{margin:8px 0}
.raid-marks{display:grid;grid-template-columns:minmax(0,1fr);gap:6px;margin:10px 0;padding:10px 12px;min-width:0;color:var(--uk-ivory);background:var(--uk-surface);border:1px solid var(--uk-gold-dim);border-radius:var(--uk-radius-card);box-shadow:var(--uk-rule)}
.raid-marks b{font:1rem Georgia,serif;color:var(--uk-gold-text)}.raid-marks small{font-size:.8125rem;color:var(--uk-ivory-dim)}
.raid-marks-meter{display:block;height:12px;min-width:0;overflow:hidden;background:var(--uk-navy-0);border:1px solid var(--uk-gold-dim);border-radius:6px}.raid-marks-meter i{display:block;height:100%;max-width:100%;background:var(--uk-gold)}
.raid-marks.full{border-color:var(--uk-gold-hi)}.raid-marks.full small{color:var(--uk-ivory)}
/* Flexible raid (switch IRP_RAID_SIZE_VERSION, docs/NEXT_RAID_FLEX_2026-10-05.md): the "Fill up to" stepper, the lend toggle, the companion lists and the "needs" count. Drawn only with the switch on. Kit tokens;
   nothing moves, nothing is hover-only; every control is at least 44 px; the stepper wraps under its label on a phone; names wrap instead of being cut. */
.raid-company .raid-fill-target{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin:10px 0}
.raid-company .raid-fill-target>span{font:600 .9375rem Georgia,serif;color:var(--uk-gold-text)}
.raid-company .raid-stepper{display:inline-flex;align-items:center;gap:8px;max-width:100%}
.raid-company .raid-step{min-width:44px;min-height:44px;padding:0 12px;flex:0 0 auto}
.raid-company .raid-fill-count{min-width:5.5em;text-align:center;font:600 1rem Georgia,serif;color:var(--uk-ivory);overflow-wrap:anywhere}
.raid-company .raid-fill-target>.small-note{flex:1 1 100%;margin:0}
.raid-company .raid-lend{display:grid;gap:6px;justify-items:start;margin:10px 0}
.raid-company .raid-lend-toggle{min-height:44px;max-width:100%;white-space:normal;text-align:left}
.raid-company .raid-lend>.small-note{margin:0}
.raid-company .raid-flex-list{margin:8px 0}
.raid-company .raid-flex-list ul{display:grid;gap:8px;margin:8px 0;padding-left:18px}
.raid-company .raid-flex-list li{min-width:0;overflow-wrap:anywhere}
.raid-company .raid-flex-list li>span{display:block;color:var(--uk-ivory-dim);font-size:.8125rem}
.raid-role-counts>span.needs{color:var(--uk-gold-text)}

/* /progression-renown.css */
.map-pin.route-locked{filter:saturate(.35);border-style:dashed}.route-status{color:#d8c292;font-size:.8rem}.route-progress{padding:12px;border:1px solid #786544;background:#201f1ce0;border-radius:6px}.route-progress progress{width:100%;accent-color:#d0aa61}.route-progress p{margin:8px 0}.chapter-destinations button small{white-space:normal}.town-renown-ladder{margin:20px 0;padding:20px;background:#202329;border:1px solid #555047;border-radius:8px}.town-renown-ladder header{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}.town-renown-ladder h2{margin:0}.town-renown-ladder header>span,.town-renown-ladder small{color:#bcb3a0}.renown-table-scroll{max-height:360px;overflow:auto}.town-renown-ladder table{width:100%;border-collapse:collapse;text-align:left}.town-renown-ladder th,.town-renown-ladder td{padding:10px;border-bottom:1px solid #4c4740}.town-renown-ladder td:nth-child(2){overflow-wrap:anywhere}.town-renown-ladder td:last-child,.town-renown-ladder th:last-child{text-align:right;font-variant-numeric:tabular-nums}.renown-own{background:#a78b4530}.town-renown-ladder details{margin-top:12px}.town-renown-ladder summary{min-height:44px;display:flex;align-items:center;cursor:pointer}.renown-badge{display:inline-grid;place-items:center;width:1.55em;height:1.7em;margin-right:5px;border:1px solid currentColor;border-radius:4px 4px 8px 8px;font:bold .8rem Georgia,serif;vertical-align:middle}.renown-gold{color:#ffe09a;background:#705117}.renown-silver{color:#ecf3ff;background:#4a5665}.renown-bronze{color:#ffceb0;background:#6f412a}.chat-name .renown-badge{pointer-events:none}@media(max-width:480px){.town-renown-ladder{padding:12px}.town-renown-ladder th,.town-renown-ladder td{padding:8px 5px}.town-renown-ladder header>span{font-size:.8rem}.route-progress{padding:10px}}
/* Town notice board: one shared progress bar and two clear pages. */
.town-npc[data-town-npc="notice-board"]{width:135px;height:166px}
.town-npc[data-town-npc="notice-board"] .town-prop-sprite{width:135px;height:156px;object-fit:contain;object-position:bottom;filter:drop-shadow(0 3px 2px #0008)}
.town-npc[data-town-npc="notice-board"] .town-name{bottom:164px;max-width:168px}
.town-npc[data-town-npc="notice-board"] .town-name small{display:none}
.modal-backdrop.town-notice-board>section{width:min(800px,calc(100vw - 28px));padding:0;border-top:3px solid #d2af66;background:#111c2a}
.town-notice-board .notice-board-heading{position:relative;align-items:center;padding:20px;gap:15px;border-bottom:1px solid #b69753;background:linear-gradient(90deg,#111c2af2,#111c2aba),url('/assets/town/stonewake-square-v2.webp') center 42%/cover}
.notice-board-heading>img{width:65px;height:75px;object-fit:contain;flex-shrink:0}
.notice-board-heading>div{flex:1;min-width:0}
.town-notice-board .notice-board-heading h2{margin:5px 0 0;font-size:1.875rem}
.town-notice-board .notice-board-heading .eyebrow{font-size:.625rem;line-height:1.5;margin:0}
.notice-renown-progress{padding:18px 24px 10px}
.notice-renown-progress>div{display:flex;justify-content:space-between;gap:16px;align-items:baseline;color:#c5d0db}
.notice-renown-progress strong{color:#f2d396;font-variant-numeric:tabular-nums}
.notice-renown-progress>div>strong{font-size:1.4375rem;font-family:Georgia,serif}
.notice-renown-progress progress{width:100%;height:9px;display:block;margin-top:10px;border:0;border-radius:5px;overflow:hidden;background:#263447;accent-color:#d8b566}
.notice-renown-progress progress::-webkit-progress-bar{background:#263447}
.notice-renown-progress progress::-webkit-progress-value{background:linear-gradient(90deg,#98773d,#f0d18a)}
.town-notice-board .notice-renown-progress p{font-size:.8125rem;margin:8px 0 0;color:#b7c4d1}
.notice-board-tabs{display:flex;margin:8px 24px 0;border-bottom:1px solid #8f7547;gap:8px}
.notice-board-tabs>button{flex:1;min-height:46px;white-space:normal;padding:10px;border:0;border-radius:0;background:transparent;color:#c4cddb;box-shadow:none}
.notice-board-tabs>button[aria-selected="true"]{color:#f5d997;background:linear-gradient(#b5964514,#b596452c);box-shadow:inset 0 -3px #d9b76b}
#notice-board-content{padding:8px 24px 20px;min-height:220px}
.town-notice-board .town-renown-ladder{border:0;background:transparent;padding:0;margin:14px 0 0;border-radius:0}
.town-notice-board .town-renown-ladder .eyebrow{display:none}
.town-notice-board .town-renown-ladder h2{font-size:1.25rem}
.town-notice-board .town-renown-ladder p{font-size:.875rem}
.town-notice-board .town-renown-ladder header>span{font-size:.75rem}
.town-notice-board .town-renown-ladder table{table-layout:fixed}
.town-notice-board .town-renown-ladder th:first-child{width:55px}
.town-notice-board .town-renown-ladder th:last-child{width:105px}
.renown-rewards{list-style:none;padding:0;margin:6px 0}
.renown-reward{display:grid;grid-template-columns:100px minmax(0,1fr) 30px;gap:16px;align-items:center;padding:18px 0;border-bottom:1px solid #b49a603b}
.renown-reward:last-child{border-bottom:0}
.renown-reward>img{width:100px;height:90px;object-fit:cover;border:1px solid #ae8b4e;clip-path:polygon(7px 0,100% 0,100% calc(100% - 7px),calc(100% - 7px) 100%,0 100%,0 7px)}
.renown-reward.is-locked>img{filter:saturate(.5);opacity:.7}
.renown-reward h3{font-size:1.125rem;margin:6px 0;color:#f1d28d}
.town-notice-board .renown-reward p{font-size:.875rem;line-height:1.5;color:#cad4e0;margin:0}
.renown-reward .eyebrow{font-size:.625rem;letter-spacing:.08em;color:#acc6bb}
.renown-reward.is-locked .eyebrow{color:#c5bca9}
.renown-stage{font:1.5rem Georgia,serif;color:#d4ad65;text-align:center}
@media(max-width:480px){.modal-backdrop.town-notice-board>section{width:calc(100vw - 16px)}.town-notice-board .notice-board-heading{padding:14px;gap:10px}.notice-board-heading>img{width:42px;height:54px}.town-notice-board .notice-board-heading h2{font-size:1.4375rem}.notice-renown-progress{padding:16px 14px 8px}.notice-board-tabs{margin:8px 14px 0;gap:3px}.notice-board-tabs>button{font-size:.8125rem;padding:9px 5px}#notice-board-content{padding:8px 14px 14px}.renown-reward{grid-template-columns:65px minmax(0,1fr) 18px;gap:10px;padding:14px 0}.renown-reward>img{width:65px;height:74px}.renown-reward h3{font-size:1rem}.town-notice-board .renown-reward p{font-size:.8125rem}.town-notice-board .town-renown-ladder th:last-child{width:80px}.town-notice-board .town-renown-ladder th:first-child{width:40px}.town-notice-board .town-renown-ladder td,.town-notice-board .town-renown-ladder th{font-size:.8125rem}}

.modal-backdrop.town-notice-board{padding:8px;grid-template-columns:minmax(0,1fr)}
.modal-backdrop.town-notice-board>section{justify-self:center;max-width:100%;padding:0}
.notice-renown-progress{display:block;background:transparent;border:0}
.modal-backdrop.town-discovery{padding:12px}
.modal-backdrop.town-discovery>section{width:min(560px,100%);padding:0;max-height:calc(100dvh - 24px);overflow:auto}
.town-discovery-art{width:100%;height:190px;object-fit:cover;object-position:center;border-bottom:2px solid #be9d5b}
/* The Alchemist is a tall full-figure portrait: a centered crop showed only her apron, so keep her face and flask in the frame. */
.town-discovery-art[src*="alchemist-v1"]{object-position:50% 6%}
.town-discovery-copy{padding:20px 24px 24px}
.town-discovery-copy .eyebrow{font-size:.625rem;color:#cfb474;letter-spacing:.1em}
.town-discovery-copy h2{font:1.625rem Georgia,serif;color:#f2d497;margin:10px 0}
.town-discovery-copy>p:not(.eyebrow){line-height:1.6;color:#d5dfe8}
.town-discovery-actions{display:flex;gap:10px;margin-top:20px;flex-wrap:wrap}
.town-discovery-actions>button{min-height:46px;flex:1;white-space:normal}
@media(max-width:480px){.town-discovery-art{height:140px}.town-discovery-copy{padding:16px}.town-discovery-copy h2{font-size:1.4375rem}}

.town-notice-board .notice-board-hint{margin:0 24px 8px}
@media(max-width:480px){.town-notice-board .notice-board-hint{margin-inline:14px}}
/* A Stonewake discovery is a small card in the corner (public/constellation-ui.js announcement; Pat, 26 Oct: less intrusive pop-ups), in the same
   place and frame as the What's new toast (public/login-news.css). One at a time, and never with the What's new toast or a level-up prompt.
   No slide-in: app.js draws it again with every page redraw, so an animation would replay. */
:root .town-discovery-toast{position:fixed;right:20px;bottom:24px;z-index:1984;box-sizing:border-box;display:grid;grid-template-columns:96px minmax(0,1fr);width:min(440px,calc(100vw - 32px));overflow:hidden;
 border:1px solid var(--uk-gold-dim,#8f7645);border-radius:var(--uk-radius-card,6px);background:linear-gradient(150deg,#1c2b40,#101a2b);box-shadow:var(--uk-rule,none),0 14px 34px #000b;color:var(--uk-ivory,#eadbb9)}
:root .town-discovery-toast .town-discovery-art{width:96px;height:100%;min-height:118px;object-fit:cover;object-position:center;border:0;border-right:1px solid #b69a6066}
:root .town-discovery-toast .town-discovery-copy{padding:10px 48px 12px 14px;min-width:0}
:root .town-discovery-toast .town-discovery-copy .eyebrow{margin:0;font:700 .68rem/1.3 var(--uk-sans,system-ui);letter-spacing:.1em;text-transform:uppercase;color:var(--uk-gold,#d6b575)}
:root .town-discovery-toast .town-discovery-copy h2{margin:2px 0 4px;font:600 1.1rem/1.2 var(--uk-serif,Georgia,serif);color:#fff3d6}
:root .town-discovery-toast .town-discovery-copy>p:not(.eyebrow){display:-webkit-box;overflow:hidden;-webkit-line-clamp:2;-webkit-box-orient:vertical;margin:0;font-size:.84rem;line-height:1.4;color:var(--uk-ivory-dim,#c9c3b4)}
:root .town-discovery-toast .town-discovery-actions{display:flex;gap:8px;margin-top:10px;flex-wrap:nowrap}
:root .town-discovery-toast .town-discovery-actions>button{flex:0 1 auto;min-height:var(--uk-tap,44px);padding-inline:14px;white-space:nowrap}
:root .town-discovery-toast .town-discovery-close{position:absolute;top:8px;right:8px;width:36px;height:36px;min-width:36px;min-height:36px;padding:0;font-size:1.3rem;line-height:1}
@media (max-width:760px){
 :root .town-discovery-toast{left:16px;right:16px;width:auto;bottom:calc(var(--mobile-nav-height,84px) + 12px);grid-template-columns:72px minmax(0,1fr)}
 :root .town-discovery-toast .town-discovery-art{width:72px;min-height:0}
 :root .town-discovery-toast .town-discovery-copy{padding:8px 46px 10px 12px}
 :root .town-discovery-toast .town-discovery-copy>p:not(.eyebrow){display:none}
 :root .town-discovery-toast .town-discovery-actions{margin-top:6px}
 :root .town-discovery-toast .town-discovery-actions>button{padding-inline:12px}
}

/* /mailbox.css */
/* Town mailbox (Pat, 18 Oct 2026): public/mailbox-ui.js. UI kit v1 header, letter list and reading pane. */
/* On the map: the corrected painted post box (completed ChatGPT handoff 19 Oct, artwork/ready/mailbox-v1: slate roof, lantern, cobbled base),
   cropped to its alpha bounds so its feet sit on the manifest ground pivot (208,432). About 104 world px tall beside the account chest. */
.town-npc[data-town-npc="mailbox"]{width:74px;height:110px}
.town-npc[data-town-npc="mailbox"] .town-prop-sprite{width:72px;height:104px;object-fit:contain;object-position:bottom;filter:drop-shadow(0 3px 2px #0008)}
.town-npc[data-town-npc="mailbox"] .town-name{bottom:112px;max-width:170px}
.town-npc[data-town-npc="mailbox"] .town-name small{display:none}
/* Bigger town: the mailbox is drawn at 85% on its own spot by the lamp post left of the Town Hall, so its name sits just above its roof, not a person's height. */
.town-whole .town-world[data-art="v3"] .town-npc[data-town-npc="mailbox"]:not(:has(.town-painted-spot)) .town-name{bottom:102px}
.town-whole .town-world[data-art="v3"] .town-npc[data-town-npc="mailbox"] .town-mail-badge{bottom:66px}
.town-npc .town-mail-badge{position:absolute;left:calc(50% + 22px);bottom:84px;z-index:2;margin:0;min-width:40px;height:40px;padding:0 9px;border-radius:20px;font-size:1.35rem;box-shadow:0 0 0 2px #0b131d,0 0 10px #b62f39aa}
.town-path .town-mail-badge{position:static;margin:0 2px 0 auto}

/* The window */
.modal-backdrop.town-mailbox>section{width:min(940px,calc(100vw - 28px));max-height:calc(100dvh - 28px);display:flex;flex-direction:column;gap:12px;padding:14px;overflow:hidden;background:#111c2a;border-top:3px solid #d2af66}
.town-mailbox .mailbox-head{position:relative;flex:none;margin:0;padding-right:72px}
.town-mailbox .mailbox-head h2{margin:0;font:600 clamp(1.45rem,4.6vw,2rem)/1.1 var(--uk-serif,Georgia,serif);color:var(--uk-gold-text,#ffe1aa);text-shadow:0 2px 4px #000}
.town-mailbox .mailbox-close{position:absolute;top:14px;right:14px;z-index:3;width:44px;min-width:44px;padding:0}
.town-mailbox .mailbox-status{margin:0;color:#9fe0b0;font-weight:600}
.town-mailbox .dev-error{margin:0}
.mailbox-body{display:grid;grid-template-columns:minmax(260px,320px) minmax(0,1fr);gap:12px;min-height:0;flex:1 1 auto}
.mailbox-list{overflow:auto;align-content:start;max-height:min(560px,calc(100dvh - 220px));padding:2px}
.mailbox-row .uk-row-main{width:100%;min-height:60px;text-align:left;background:none;border:0;color:inherit;font:inherit;cursor:pointer;gap:10px}
.mailbox-row .uk-row-title{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mailbox-row.is-unread .uk-row-title{color:var(--uk-gold-text);font-weight:700}
.mailbox-row:not(.is-unread) .uk-row-title{color:var(--uk-ivory-dim)}
.mailbox-row .uk-icon-tile .uk-ico{width:30px;height:30px}
.mailbox-row .uk-row-end{display:flex;align-items:center;gap:6px}
.mailbox-unread-dot{width:10px;height:10px;border-radius:50%;background:#b62f39;border:1px solid #df6870;box-shadow:0 0 6px #b62f39aa}
.mailbox-gift-chip{white-space:nowrap}
.mailbox-letter{min-width:0;overflow:auto;max-height:min(560px,calc(100dvh - 220px));padding:18px 20px;border:1px solid var(--uk-gold-dim);border-radius:var(--uk-radius-card);background:linear-gradient(180deg,#1b283a,#101a2a);box-shadow:var(--uk-rule)}
.mailbox-letter header{display:block;border-bottom:1px solid #b6975366;padding-bottom:10px;margin-bottom:12px}
.mailbox-letter .eyebrow{margin:0}
.mailbox-letter h3{margin:4px 0;font:600 1.45rem/1.25 var(--uk-serif,Georgia,serif);color:var(--uk-gold-text);outline:none}
.mailbox-meta{margin:0;color:var(--uk-ivory-dim);font-size:.875rem}
.mailbox-text p{margin:0 0 .85em;line-height:1.6;color:var(--uk-ivory);overflow-wrap:anywhere}
.mailbox-letter-empty,.mailbox-empty{display:grid;place-items:center;align-content:center;gap:6px;text-align:center;color:var(--uk-ivory-dim);min-height:220px}
.mailbox-letter-empty .uk-ico,.mailbox-empty .uk-ico{width:64px;height:64px;opacity:.85}
.mailbox-empty p{margin:0}
.mailbox-back{display:none}
.mailbox-gift{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:14px;padding:12px 14px}
.mailbox-gift p{margin:0}
.mailbox-gift-text{flex:1 1 180px;display:grid;gap:4px}
.mailbox-gift-list{margin:0;padding-left:1.1em;color:var(--uk-ivory)}
.mailbox-gift-list li{margin:2px 0}
.mailbox-gift.is-done{opacity:.85}
.mailbox-gift .uk-btn{min-height:44px;min-width:120px}
.mailbox-loading{margin:20px 0;text-align:center;color:var(--uk-ivory-dim)}

/* Phone: one pane at a time. The list, then the letter with a way back. */
@media(max-width:760px){
 .town-mailbox .mailbox-head{padding-right:64px}
 .town-mailbox .mailbox-close{top:10px;right:10px}
 /* Centred on a phone like the Notice board (0.73.1 check): the backdrop's own padding pushed it 16px right and cut off its right frame. */
 .modal-backdrop.town-mailbox{padding:8px;grid-template-columns:minmax(0,1fr)}
 .modal-backdrop.town-mailbox>section{padding:10px;max-height:calc(100dvh - 16px);width:calc(100vw - 16px);justify-self:center;max-width:100%}
 .mailbox-body{grid-template-columns:minmax(0,1fr)}
 .mailbox-body .mailbox-letter{display:none}
 .mailbox-body.is-reading .mailbox-list{display:none}
 .mailbox-body.is-reading .mailbox-letter{display:block;max-height:calc(100dvh - 210px)}
 .mailbox-list{max-height:calc(100dvh - 210px)}
 .mailbox-back{display:inline-flex;align-items:center;gap:6px;min-height:44px;margin-bottom:10px}
 .mailbox-back .uk-ico{width:24px;height:24px}
 .mailbox-letter{padding:14px}
 .mailbox-letter h3{font-size:1.25rem}
}
/* Ranking rewards by mail (21 Oct 2026): days-left chip on a reward letter and the Delete button under a read letter. */
.mailbox-gift-chip .uk-ico{width:14px;height:14px;margin-right:3px;vertical-align:-2px}
.mailbox-actions{display:flex;justify-content:flex-end;margin-top:14px;padding-top:12px;border-top:1px solid #b6975333}
.mailbox-actions .uk-btn{min-height:44px}
/* Simpler screens (IRP_UI_SIMPLER_VERSION): public/mailbox-ui.js puts a gift still to collect above the letter text only while on; give the text room under it. */
.mailbox-gift+.mailbox-text{margin-top:12px}

/* /endgame.css */
.endgame-travel{margin-top:28px;padding:22px;border:1px solid #756149;background:#10191e}.endgame-travel header,.endgame-introduction header{display:flex;align-items:center;justify-content:space-between;gap:12px}.endgame-travel h2{margin:5px 0 18px}.endgame-regions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.endgame-region{position:relative;padding:20px 16px;border:1px solid #45545c;background:linear-gradient(145deg,#263941,#10191d);overflow:hidden}.endgame-region.east{background:linear-gradient(145deg,#443128,#181c17)}.endgame-region.south{background:linear-gradient(145deg,#1d3a42,#10191d)}.endgame-region.west{background:linear-gradient(145deg,#352d40,#10141c)}.endgame-region h3{font-size:1.3125rem;margin:12px 0;color:#e9dfc7}.endgame-region p{line-height:1.55;color:#c1c8c8}.endgame-region small{display:block;color:#aeb7bb}.endgame-region button{width:100%;margin-top:18px;text-align:left;white-space:normal}.endgame-region button span{display:block;font-size:.75rem;margin-top:5px;color:#b7c7cf}.endgame-compass{position:absolute;right:12px;top:0;font:6.25rem Georgia;color:#ffffff07;pointer-events:none}.endgame-unfinished{display:block;margin-top:24px;color:#9ca5a5;font-size:.8125rem}.endgame-introduction{width:min(600px,95vw);padding:28px}.endgame-introduction p{line-height:1.65}.endgame-rule{color:#b6d0d8}.quest-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.quest-card{padding:20px;border:1px solid #534b3b;background:#131a1e}.quest-card p{color:#c5c7c2;line-height:1.5}.quest-card h3{margin:8px 0}.quest-card button{margin:8px 8px 0 0}.quest-reward{color:#e3c685}.zone-unlock{position:fixed;right:20px;bottom:24px;z-index:110;max-width:min(400px,calc(100vw - 32px));padding:20px;background:#16272f;border:1px solid #caa66b;box-shadow:0 10px 35px #000b}.zone-unlock h2{font-size:1.375rem;margin:6px 0}.zone-unlock p{line-height:1.5}.zone-unlock button{margin:6px 8px 0 0}.leaderboard-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.leaderboard-panel{padding:20px;background:#111b20;border:1px solid #65543b;min-width:0}.leaderboard-panel table{border-collapse:collapse;width:100%}.leaderboard-panel td,.leaderboard-panel th{text-align:left;padding:10px 6px;border-bottom:1px solid #ffffff15;overflow-wrap:anywhere}.leaderboard-panel select{max-width:100%;margin-bottom:16px}.rarity-unique{--rarity:#e9b879;color:#f6d4a0}.unique-power{padding:12px;border-left:2px solid #e9b879;background:#201b16;color:#efcc95}.leaderboard-empty{color:#a8b6ba;line-height:1.6}
@media(max-width:1100px){.endgame-regions{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:640px){.endgame-regions,.quest-grid,.leaderboard-grid{grid-template-columns:1fr}.endgame-travel{padding:14px}.endgame-travel header{align-items:flex-start}.zone-unlock{bottom:88px;right:16px}.endgame-introduction{padding:20px}}
.gear-icon.unique-art{border:3px solid transparent!important;background:linear-gradient(#15151a,#15151a) padding-box,conic-gradient(from 30deg,#f595b6,#b6a1ff,#72cffa,#90e4a6,#f8df83,#ffa878,#f595b6) border-box!important;box-shadow:0 0 8px #e0b1f144!important;border-radius:8px}.unique-art .item-tier-badge{color:#fff7ed;background:#241d31;border:1px solid #d8b4ef;letter-spacing:.04em}.unique-power strong{color:#ffe4b4}

.endgame-routes{display:grid;gap:.45rem;margin-top:.8rem}.endgame-routes>button{min-height:44px;display:grid;text-align:left;gap:.2rem;width:100%;white-space:normal}.endgame-routes span,.endgame-routes small{font-size:.78rem;color:var(--muted,#b9aaa0)}.stormgrave-card{margin-top:1rem;border:1px solid #6b817a;background:linear-gradient(135deg,#102525,#13191f 65%);padding:1.2rem;color:#e1e7df}.stormgrave-card h2,.stormgrave-card h4{color:#d1e7d9;margin:.4rem 0}.stormgrave-card.compact{padding:.7rem;margin-top:.6rem}.stormgrave-card details{margin-top:1rem}.stormgrave-card details p{max-width:75ch}.stormgrave-card .az-actions{display:flex;gap:.5rem;flex-wrap:wrap}.stormgrave-card button{min-height:44px}.stormgrave-card.compact .az-actions button{flex:1}

.solo-help-dialog{width:min(560px,calc(100vw - 24px));max-height:calc(100dvh - 32px);overflow:auto;padding:1.3rem}.solo-help-dialog h2{font-size:1.4rem}.solo-help-dialog dl{display:grid;gap:.35rem}.solo-help-dialog dt{font-weight:700;color:#dfbc7e}.solo-help-dialog dd{margin:0 0 .65rem}.solo-help-dialog .az-actions{display:flex;flex-wrap:wrap;gap:.55rem;margin-top:1rem}.solo-help-dialog button,.solo-help-dialog .checkbox-row{min-height:44px}.solo-help-dialog .checkbox-row{display:flex;gap:.6rem;align-items:center;font-size:.85rem}.solo-help-dialog input{flex:none;width:20px;height:20px}

.world-spawn-banner{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:10px 18px;padding:14px 20px;border:1px solid #769bbc;background:linear-gradient(105deg,#20364a,#15202e);box-shadow:0 3px 14px #0004}.world-spawn-banner div{display:grid;gap:4px;min-width:0}.world-spawn-banner strong{color:#ecd29b}.world-spawn-banner small{color:#b9c6d2}.world-spawn-banner button{flex-shrink:0;min-height:44px}.world-spawn-banner [data-storm-countdown]{font-variant-numeric:tabular-nums}@media(max-width:500px){.world-spawn-banner{margin:8px;padding:12px;gap:8px;font-size:.8125rem}.world-spawn-banner button{padding:8px 10px}.world-spawn-banner small{font-size:.6875rem}}

/* Regional atlas. The painting keeps its full composition at every viewport. */
.endgame-travel{margin:0;padding:0;border:0;background:none}
.region-tabs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;margin:0 0 22px;padding:5px;border:1px solid #796544;background:#151c20}
.region-tabs button{min-width:0;min-height:46px;padding:9px 5px;background:transparent;border:1px solid transparent;color:#bac4c8;font:inherit;font-size:.875rem;font-weight:600;line-height:1.3;cursor:pointer;transition:background .15s,color .15s}
.region-tabs button:hover{background:#293338;color:#f2dfb7}.region-tabs button[aria-selected=true]{border-color:#b79759;background:linear-gradient(#4a4030,#302e27);color:#ffe0a1;box-shadow:inset 0 0 12px #ba915012}
.region-tabs button:focus-visible,.regional-pin:focus-visible,.regional-place:focus-visible{outline:3px solid #f0d295;outline-offset:3px}
.region-title{margin-bottom:22px}.region-title h1{font-family:Georgia,serif;font-size:clamp(1.5625rem,3vw,2.375rem);line-height:1.12;color:#efd7a4;margin:7px 0 10px}.region-title p{margin:0;color:#bcc6c6;line-height:1.5}.region-title .eyebrow{color:#c4ad78;font-size:.6875rem;letter-spacing:.12em}.region-title>.text-link{white-space:nowrap;min-height:44px}
.regional-workspace{display:grid;grid-template-columns:minmax(0,1fr) minmax(250px,300px);gap:22px;align-items:start}.regional-geography{min-width:0}
.region-atlas{position:relative;aspect-ratio:3/2;background:#22272a;border:1px solid #8e764e;box-shadow:0 8px 28px #0007;isolation:isolate}
.region-atlas>img{display:block;width:100%;height:100%;object-fit:contain}
.regional-pin{position:absolute;left:clamp(24px,var(--region-x),calc(100% - 24px));top:clamp(24px,var(--region-y),calc(100% - 24px));transform:translate(-50%,-50%);width:46px;height:46px;min-height:46px;padding:4px;background:#11252deb;border:2px solid #dab36a;border-radius:50%;box-shadow:0 3px 7px #000c,0 0 0 3px #15212abf;color:#ffda89;font:700 1.125rem Georgia,serif;cursor:pointer;transition:background .15s,box-shadow .15s}
.regional-pin.locked{background:#202730eb;border-color:#c0b7a1;color:#ddd5c0}.regional-pin:hover{background:#4b3d2c;box-shadow:0 3px 7px #000c,0 0 0 4px #e6c57c77}.regional-pin.selected{color:#261c0f;background:#f1d18e;border-color:#fff0c5;box-shadow:0 3px 7px #000c,0 0 0 4px #151d27c9,0 0 19px #ebc776a0}
.regional-legend{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-top:14px}
.regional-place{display:flex;align-items:center;gap:9px;min-height:60px;min-width:0;padding:9px 10px;text-align:left;border:1px solid #465457;background:#131e24;color:#dfd5bd;cursor:pointer}.regional-place>span:nth-child(2){min-width:0;flex:1}.regional-place strong{font-size:.8125rem;line-height:1.35;display:block;overflow-wrap:anywhere}.regional-place small{display:block;font-size:.6875rem;line-height:1.5;color:#a9b9bd;margin-top:3px}.regional-place:hover{background:#263135;border-color:#9b835a}.regional-place.selected{border-color:#c29c5c;background:#303126}.regional-place.locked{color:#c3c6c2}.regional-place.locked small{color:#b4b4ad}
.regional-number{display:grid;place-items:center;width:25px;height:25px;flex:none;border:1px solid #9c8254;border-radius:50%;color:#ecd29d;font:700 .875rem Georgia,serif}.regional-lock{font-size:.6875rem;flex:none}
.regional-destination{padding:22px;background:linear-gradient(145deg,#243139,#151d22 70%);border:1px solid #77694e;box-shadow:0 7px 20px #0003;scroll-margin:90px;min-width:0}.regional-destination:focus{outline:2px solid #c7a663;outline-offset:3px}.endgame-travel .regional-destination h2{color:#edd29b;font-family:Georgia,serif;line-height:1.2;font-size:1.5625rem;margin:10px 0 15px}.regional-destination p{font-size:.875rem;line-height:1.6;color:#c4cccc}.regional-destination .eyebrow{font-size:.625rem;line-height:1.5;letter-spacing:.1em;color:#c4ad78;margin:0}.regional-facts{display:flex;gap:6px;flex-wrap:wrap;margin:18px 0}.regional-facts span{font-size:.6875rem;color:#c7d5d5;border:1px solid #5b6d70;padding:5px 7px;background:#101c20}.regional-route-state.unlocked{color:#bed3b3}.regional-route-state.locked{color:#dcc9a6}.regional-destination .regional-lock-reason{font-size:.75rem;color:#d4c4a6}.regional-destination>.text-link{display:inline-block;margin-top:16px;min-height:44px}.regional-destination .full{width:100%;min-height:46px;white-space:normal}.regional-destination .stormgrave-card.compact{border:0;background:none;padding:0;margin:12px 0 0}.regional-destination .stormgrave-card h4{font:1.5625rem/1.2 Georgia,serif;color:#edd29b}.regional-destination details{font-size:.8125rem;line-height:1.5}.regional-destination summary{min-height:44px;cursor:pointer}
/* The card's × is for the full-screen map only (public/compact-ui.css); beside the map the card is always open. */
.regional-close{display:none}
@media(max-width:1100px){.regional-workspace{grid-template-columns:minmax(0,1fr)}.regional-destination{max-width:none}.regional-destination>p{max-width:75ch}.regional-destination .full{width:auto;min-width:200px}.regional-destination .stormgrave-card .az-actions{max-width:440px}}
@media(max-width:600px){.region-tabs{gap:2px;padding:3px;margin-bottom:18px}.region-tabs button{font-size:.75rem;min-height:46px;padding:8px 2px}.region-title{margin-bottom:18px}.region-title h1{font-size:1.625rem}.region-title p{font-size:.8125rem}.region-title .eyebrow{font-size:.5625rem;letter-spacing:.07em}.regional-workspace{gap:18px}.regional-legend{gap:6px;margin-top:10px}.regional-place{padding:8px 7px;gap:6px;min-height:66px}.regional-place strong{font-size:.75rem}.regional-place small{font-size:.625rem}.regional-number{width:22px;height:22px;font-size:.75rem}.regional-lock{display:none}.regional-destination{padding:17px}.regional-destination .full{width:100%}.regional-destination>.text-link{margin-top:10px}}

.region-tabs button span{display:block;overflow-wrap:normal;word-break:normal}.region-tabs button small{display:block;font-size:.6875rem;font-weight:400;margin-top:5px;color:#b9ad91}.region-atlas-viewport{overflow:auto;max-width:100%;border:1px solid #8e764e;overscroll-behavior-x:contain}.region-atlas-viewport:focus-visible{outline:2px solid #f0d295;outline-offset:3px}.region-atlas{min-width:640px;border:0;box-shadow:none}.regional-pin-name{position:absolute;top:calc(100% + 6px);left:50%;transform:translateX(-50%);display:block;width:146px;max-width:none;padding:6px 8px;box-sizing:border-box;background:#101c21ee;border:1px solid #ac9162;border-radius:4px;font:600 .8125rem/1.4 system-ui;color:#f5dfb1;white-space:normal;overflow-wrap:normal;word-break:normal;text-shadow:0 1px 2px #000;pointer-events:none}.regional-pin.selected .regional-pin-name{background:#3e3424f5;border-color:#f0cb87;color:#fff0cb}.regional-pin.locked .regional-pin-name{color:#d2d4d0;border-color:#828a88}.regional-place strong{overflow-wrap:normal;word-break:normal}.regional-map-hint{font:.75rem/1.5 system-ui;color:#b7c3c2;margin:10px 0}.regional-legend{margin-top:10px}
@media(max-width:700px){.region-tabs{display:flex;flex-wrap:wrap}.region-tabs button{flex:1 1 145px;padding:10px;font-size:.8125rem}.regional-legend{grid-template-columns:minmax(0,1fr)}.regional-place strong{font-size:.875rem}.regional-place small{font-size:.75rem}}

.regional-pin{width:58px;height:58px;padding:3px}.regional-destination-art{display:block;width:100%;height:100%;object-fit:cover;border-radius:50%;pointer-events:none}.regional-pin.locked .regional-destination-art{filter:grayscale(.85) brightness(.7)}.regional-landmark{display:block;flex:0 0 44px;width:44px;height:44px;padding:2px;border:1px solid #b89961;border-radius:50%;background:#111b20}.regional-place.locked .regional-landmark{filter:grayscale(.85)}
.endgame-party-art{display:block;width:100%;height:120px;object-fit:cover;border:1px solid #b39a63;margin-bottom:16px;border-radius:3px}
[data-endgame-party-warning] .solo-help-dialog .az-actions>button{min-height:44px;flex-shrink:0}
.quest-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0 24px}
.shell .quest-tabs>button{min-height:44px;flex:1 1 120px;max-width:240px}
.quest-tabs>button[aria-pressed=true]{border-color:#d9b66b;background:#3a3428;color:#ffe6ad}
@media(max-width:360px){.shell .quest-tabs{display:grid;grid-template-columns:minmax(0,1fr)}.shell .quest-tabs>button{max-width:none;width:100%;white-space:normal;overflow-wrap:break-word}}

.map-quest-badges{display:inline-flex!important;gap:4px;align-items:center;margin-left:5px;vertical-align:middle}.map-quest-badges b{font:700 .75rem/1.125rem system-ui;min-width:18px;text-align:center;border:1px solid #efc46b;border-radius:50%;background:#302a18;color:#ffe2a1}.map-quest-badges b.guild-objective{border-color:#83c7d1;background:#17313a;color:#c9f4ff}.map-objectives{padding:12px;margin:8px 0;border:1px solid #a68a4b;background:#14232b}.map-objectives h3{margin:0 0 8px}.map-objectives p{margin:6px 0}.map-objectives button{min-height:44px}.map-objective-key{display:flex;gap:16px;flex-wrap:wrap;padding:10px 0}.map-pin .map-quest-badges{position:absolute;right:-5px;top:-10px}.regional-pin .map-quest-badges{position:absolute;right:0;top:0}

.player-inspection{width:min(620px,calc(100vw - 24px));max-height:85dvh;overflow:auto;padding:18px;box-sizing:border-box;border:1px solid #c3a35b}.player-inspection>header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.player-inspection button,.player-inspection summary{min-height:44px}.player-inspection [data-inspect-close]{flex:0 0 44px;width:44px;height:44px;padding:0}.player-inspection summary{cursor:pointer;padding:8px;box-sizing:border-box}.inspect-equipment{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.inspect-equipment details,.inspect-skills details{border:1px solid #69746e;background:#14222a;padding:6px;overflow-wrap:anywhere}.inspect-equipment summary span{display:block;color:#cab580;font-size:.75rem;text-transform:capitalize}.inspect-equipment dl>div{display:flex;justify-content:space-between;gap:8px}.inspect-equipment dd{margin:0}.rank-table [data-inspect-player],.rank-honour [data-inspect-player]{min-height:44px}@media(max-width:440px){.inspect-equipment{grid-template-columns:1fr}}

.inspect-equipment summary .gear-icon{float:left;width:40px;height:40px;margin:0 8px 4px 0}.inspect-equipment summary{min-height:60px;display:flow-root}

.rank-xp{display:flex;flex-direction:column;gap:4px;max-width:190px;font:.75rem/1.35 system-ui;text-align:left;color:#d6e0dc;white-space:normal}.rank-xp progress{width:100%;height:7px;accent-color:#d7b465}.rank-xp small{font-size:.625rem;overflow-wrap:anywhere;color:#abbab7}@media(max-width:600px){.rank-xp{font-size:.625rem;max-width:110px}.rank-xp small{font-size:.5625rem}}

.rank-table th:first-child{white-space:nowrap}.rank-xp{text-align:right;margin-left:auto}@media(max-width:600px){.rank-table th:first-child{width:40px}.rank-xp{font-size:.6875rem}.rank-xp small{font-size:.625rem}}

/* Keep the decorative frame outside the scrolling inspection content. */
.modal-backdrop .player-inspection{overflow:hidden;padding:0}.player-inspection-content{max-height:85dvh;overflow:auto;box-sizing:border-box;padding:18px;overscroll-behavior:contain}.player-inspection-content>header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.world-spawn-clock{display:grid;gap:5px;margin:12px 0;padding:10px 12px;border:1px solid #9d854955;background:#c7a8550d;color:#efdeb3;font-variant-numeric:tabular-nums}.world-spawn-clock small{color:#b9c7cb;font-size:.75rem;line-height:1.5}.regional-place .world-spawn-clock{margin:5px 0 0;padding:0;border:0;background:none;font-size:.75rem}.world-spawn-clock strong{font-weight:600}

.adventure-rates{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 16px;padding:9px 12px;border:1px solid #9d854950;background:#111c28}.adventure-rates>span{display:flex;align-items:baseline;justify-content:space-between;gap:8px;min-width:0}.adventure-rates strong{color:#e6c16e;font-variant-numeric:tabular-nums}.adventure-rates small{font-size:.6875rem;color:#b8c5d1}.adventure-rates>[data-rate-note]{grid-column:1/-1;text-align:center}@media(max-width:400px){.adventure-rates>span{display:grid;gap:2px}.adventure-rates{gap:4px 10px}}

/* Compact, shared record cards keep every leaderboard readable on phones. */
.honour-records{list-style:none;margin:1rem 0;padding:0;display:grid;gap:.65rem}.honour-record{display:grid;grid-template-columns:3rem minmax(0,1fr) auto;align-items:center;gap:.8rem;padding:1rem;border:1px solid #73613d66;border-radius:8px;background:linear-gradient(115deg,#182434,#101820)}.honour-record.own{border-color:#c3a063;background-color:#292719}.honour-identity{min-width:0;overflow-wrap:anywhere}.honour-identity>strong,.honour-identity>small,.honour-score>strong,.honour-score>small{display:block}.honour-identity small,.honour-score small,.rank-presence{color:#b4c5ce;font-size:.78rem}.honour-score{text-align:right}.honour-score strong{color:#edc778;font-size:1.35rem}.rank-presence{display:block;margin-top:.55rem}.rank-presence.is-online{color:#99cfaa}.honour-identity button{min-height:44px}.guild-hunt-section [data-realm="guild-reset-quest"]{min-height:44px;margin-top:.55rem;white-space:normal;max-width:100%}.guild-gather-task{flex-wrap:wrap}.guild-gather-task>[data-realm="guild-reset-quest"]{flex:1 0 100%;width:100%;grid-column:auto}.rank-tabs{flex-wrap:wrap}
@media(max-width:480px){.honour-record{grid-template-columns:2rem minmax(0,1fr);padding:.7rem;gap:.45rem}.honour-score{grid-column:2;text-align:left}.honour-score strong,.honour-score small{display:inline;margin-right:.4rem}.rank-honours{grid-template-columns:1fr}.rank-presence time{display:block}}

.companion-banter{position:absolute;z-index:8;left:50%;transform:translateX(-50%);width:max-content;max-width:132px;padding:5px 7px;border:1px solid #c6ac73;border-radius:7px;background:#16212bee;color:#fff1cc;font:.6875rem/1.3 system-ui;text-align:center;pointer-events:none;box-shadow:0 2px 5px #0008}.companion-banter:after{content:"";position:absolute;left:46%;bottom:-5px;border:5px solid transparent;border-bottom:0;border-top-color:#c6ac73}
.map-quest-badges b.mystery-objective{border-color:#b79cf0;background:#251d3b;color:#e6dcff}
.quest-raid-note{margin:.35rem 0;padding:.4rem .6rem;border-left:3px solid #c46a4a;background:#2a1a17;color:#f3d6c8;font-size:.9rem}.quest-raid-note b{color:#ffb48f}

/* Inspect card actions (Whisper, Invite to party, Block, Report) and the short report form. */
.inspect-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:12px}.inspect-actions>button{flex:0 1 auto}.inspect-done{display:inline-flex;align-items:center;min-height:44px;padding:0 6px;color:#cfe0b4;font-size:.875rem}
/* Try this build (IRP_TRY_BUILD_VERSION): kit frame, heading and chip; the saved build picker uses the same two-line tiles as the skill tree's Builds menu. */
.inspect-try-build{margin-top:14px}.inspect-try-build>h3{margin:0}.inspect-try-build>p{margin:8px 0}.inspect-try-build .uk-chips{margin:8px 0}.inspect-try-build .try-build-pick{margin:12px 0 6px;font-size:.8125rem;color:#c9c3b4}
.try-build-slots{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:8px;margin-bottom:10px}.try-build-slot{display:grid!important;justify-items:start;gap:2px;text-align:left;min-height:52px}.try-build-slot small{font-weight:400;color:#c9c3b4;font-size:.75rem}.try-build-slot[aria-pressed="true"]{border-color:#e0bd73!important;background:var(--uk-surface-lit)!important;box-shadow:inset 0 -3px 0 #e6c889,inset 0 0 0 2px var(--uk-navy-0)!important}
.try-build-jump{margin:10px 0 14px}.inspect-try-build .uk-actions{align-items:center}.inspect-try-build .uk-actions>.inspect-done{flex:0 1 auto}
.inspect-report[hidden]{display:none}.inspect-report{display:grid;gap:8px;margin-top:10px;padding:10px;border:1px solid #9d854966;background:#c7a8550d}.inspect-report label{display:grid;gap:4px;font-size:.875rem}.inspect-report input{min-height:44px;font-size:1rem;box-sizing:border-box;width:100%}.inspect-quote{margin:0;font-size:.875rem;color:#d6e0dc;overflow-wrap:anywhere}
.report-problem{width:min(480px,calc(100vw - 24px));padding:18px;box-sizing:border-box}.report-problem label{display:grid;gap:6px}.report-problem textarea{width:100%;box-sizing:border-box;font:inherit;font-size:1rem;min-height:96px}.report-problem .az-actions button{min-height:44px}
/* Zone walls (10 Oct 2026, combat overhaul only): the zone's element wall on its Map card. */
.zone-wall{border-left:3px solid #8e9aa0;padding:6px 10px;background:#0f191d;font-size:.8125rem;line-height:1.5;margin:10px 0}.zone-wall strong{color:#edd29b}.zone-wall-fire{border-color:#d8834f}.zone-wall-frost{border-color:#86c4dd}.zone-wall-nature{border-color:#8fbf6a}.zone-wall-shadow{border-color:#a28ad0}

/* Menu audit 23 Oct: the world boss role is three chips instead of a dropdown. */
.wb-role-pick{min-width:0;margin:0 0 12px;padding:0;border:0}
.wb-role-pick legend{padding:0;margin:0 0 6px;font-size:.875rem;color:var(--uk-gold-text,#f2d38a)}
.wb-role-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.wb-role-row .wb-role-chip{position:relative;display:inline-flex;align-items:center;justify-content:center;min-width:0;min-height:44px;margin:0;padding:4px 10px;font-size:.875rem;cursor:pointer}
.wb-role-row .wb-role-chip:hover{border-color:var(--uk-gold-hi,#e0bd73)}
.wb-role-row .wb-role-chip:has(input:checked){border-color:#e0bd73;background:linear-gradient(180deg,#c9a468,#8f6f3c);color:#1b1509}
.wb-role-row .wb-role-chip:has(input:disabled){opacity:.45;cursor:not-allowed}
.wb-role-row .wb-role-chip:has(input:focus-visible){outline:2px solid #f2d38a;outline-offset:2px}
.wb-role-row .wb-role-chip>input{position:absolute;inset:0;width:1px;height:1px;min-width:0;min-height:0;margin:0;padding:0;border:0;opacity:0;pointer-events:none}
/* Region map pins carry the zone's level (and, with shared zones on, its players) like the Evermarch map's zone cards (Pat, 31 Oct). */
.regional-pin-name b{display:block;font-weight:600}.regional-pin-name small{display:block;margin-top:2px;font:400 .6875rem/1.35 system-ui;color:#c9c0a8}.regional-pin.selected .regional-pin-name small{color:#efe2c2}.regional-pin.locked .regional-pin-name small{color:#b9bcb7}
.regional-pin.label-side .regional-pin-name{top:50%;left:calc(100% + 6px);transform:translateY(-50%)}

/* /town-systems.css */
.storage-columns{display:grid;grid-template-columns:1fr 1fr;gap:18px;align-items:start}.storage-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:12px}.storage-item{min-width:0;padding:14px;background:#171c21;border:1px solid #514633;border-radius:6px}.storage-item-heading{display:flex;align-items:center;gap:12px}.storage-item-heading>.item-icon{flex:0 0 54px;width:54px;height:54px}.storage-item h3{font-size:1rem;line-height:1.4;margin:0;overflow-wrap:normal;word-break:normal}.storage-item p{margin:5px 0 10px}.storage-item details{margin:12px 0}.storage-item summary{cursor:pointer;color:#d7ba80}.account-storage h2{display:flex;justify-content:space-between;gap:16px}.account-storage h2 small{font:500 .85rem system-ui;color:#b6b4aa;white-space:nowrap}.storage-empty{padding:24px;line-height:1.6;color:#b9b6ab}.town-prop-sprite{display:block;width:155px;height:130px;object-fit:contain}.account-storage a{color:#dac38e}@media(max-width:760px){.storage-columns{grid-template-columns:1fr}.account-storage .exp-heading{padding-inline:4px}.storage-item{padding:12px}}

.auction-summary,.auction-tabs{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:16px 0}.auction-summary{font-size:.9rem;color:#c6bdad}.auction-summary strong,.auction-price{color:#e9c879}.auction-tabs button[aria-pressed=true]{border-color:#d2ad61;background:#514127}.auction-filters{display:grid;grid-template-columns:2fr 1fr 1fr auto;align-items:end;gap:12px;margin:20px 0}.auction-filters label,.auction-house .storage-item label{display:grid;gap:6px}.auction-filters input,.auction-filters select,.auction-house .storage-item input{min-width:0;width:100%;min-height:44px;padding:9px;border:1px solid #5a513d;border-radius:4px;background:#10151a;color:#f1e6d0}.auction-house .storage-item button{min-height:44px;margin-top:10px}.auction-price{font-size:1.3rem}.auction-price small{font-size:.8rem}.storage-item-heading>.gear-icon,.storage-item-heading>.gear-icon-sprite{flex-shrink:0;width:54px;height:54px}.auction-house .storage-item .gear-comparison{max-width:100%;overflow:auto}@media(max-width:650px){.auction-filters{grid-template-columns:1fr 1fr}.auction-filters label:first-child{grid-column:1/-1}.auction-summary{gap:8px 16px}}

.guild-page form{display:grid;gap:14px}.guild-page label{display:grid;gap:6px}.guild-page input{background:#10151a;border:1px solid #5a513d;border-radius:4px;color:#f1e6d0;padding:10px;min-height:44px;min-width:0;width:100%}.guild-summary{display:flex;flex-wrap:wrap;gap:16px;align-items:center;margin:20px 0;color:#d8bd86}.guild-summary input{width:175px;font:600 1rem monospace;letter-spacing:1px}.guild-page .exp-panel{margin-bottom:18px}.guild-task-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.guild-task-grid progress{width:100%;height:14px;accent-color:#b39051}.guild-upgrades{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.guild-upgrade{border:1px solid #504330;padding:16px;background:#191e23;border-radius:6px}.guild-upgrade h3{font-size:1rem}.guild-upgrade strong{display:block;font-size:.9rem}.guild-emblem{font-size:1.75rem;color:#d4b679}.guild-page button{min-height:44px}.guild-roster-scroll{max-width:100%;overflow:auto}.guild-roster{border-collapse:collapse;width:100%;text-align:left}.guild-roster td,.guild-roster th{padding:12px;border-bottom:1px solid #443d32}.guild-roster td small{display:block;color:#aeb5b9}.guild-roster details button{display:block;margin:6px 0;width:100%}.guild-online{color:#8ad4a7}.guild-footer{display:flex;align-items:center;gap:16px;margin:20px 0}.town-npc[data-town-npc=guild] .town-prop-sprite{width:118px;height:150px;object-fit:contain;object-position:bottom}@media(max-width:1000px){.guild-upgrades{grid-template-columns:1fr 1fr}}@media(max-width:540px){.guild-upgrades,.guild-task-grid{grid-template-columns:1fr}.guild-roster th,.guild-roster td{padding:8px;font-size:.85rem}.guild-summary{align-items:start;flex-direction:column}}

.vault-destination{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(260px,1fr);gap:24px;align-items:center}.vault-destination>img{width:100%;height:auto;border-radius:8px}.vault-facts{display:grid;grid-template-columns:1fr 1fr;gap:16px}.vault-facts dt{color:#b6a78e;font-size:.85rem}.vault-facts dd{margin:4px 0 0}.renown-activities table{width:100%;border-collapse:collapse}.renown-activities td,.renown-activities th{text-align:left;padding:10px;border-bottom:1px solid #77634155}@media(max-width:760px){.vault-destination{grid-template-columns:1fr}.vault-facts{grid-template-columns:1fr}}

.town-npc[data-town-npc="chest"] .town-prop-sprite,.town-npc[data-town-npc="guild-chest"] .town-prop-sprite{width:84px;height:78px;object-fit:contain}.town-npc[data-town-npc="chest"] .town-name,.town-npc[data-town-npc="guild-chest"] .town-name{bottom:96px;width:180px}

.guild-directory{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:16px;margin-top:16px}.guild-directory article{min-width:0;display:flex;flex-direction:column;gap:10px}.guild-directory h3,.guild-directory p{margin:0;overflow-wrap:anywhere}.guild-directory small{color:var(--muted,#b2b5b7);line-height:1.5}.guild-directory button{align-self:flex-start;min-height:44px}.guild-permission-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:16px 0}.guild-permission-grid fieldset{border:1px solid #554631;padding:16px;min-width:0}.guild-page label{display:grid;gap:8px;margin:12px 0}.guild-page input,.guild-page select,.guild-page textarea{max-width:100%;min-width:0;font:inherit;box-sizing:border-box}.guild-page textarea{width:100%;padding:12px;line-height:1.5}.guild-page .section-tabs{flex-wrap:wrap}.chat-channels{flex-wrap:wrap}.chat-channels button{min-height:44px}@media(max-width:600px){.guild-permission-grid{grid-template-columns:1fr}.guild-summary{flex-wrap:wrap}.guild-page .guild-roster{min-width:0}.guild-page .guild-roster th,.guild-page .guild-roster td{padding:8px 6px}.guild-page .guild-roster td{overflow-wrap:anywhere}}
/* Narrow guild rosters keep identity, presence and actions on readable rows. */
@media(max-width:600px){
 .shell .guild-page .guild-roster,.shell .guild-page .guild-roster tbody{display:block;width:100%}
 .shell .guild-page .guild-roster thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 .shell .guild-page .guild-roster tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 12px;padding:14px 0;border-bottom:1px solid #b6985d30}
 .shell .guild-page .guild-roster td{display:block;min-width:0;padding:0;border:0;font-size:.8125rem!important;overflow-wrap:anywhere}
 .shell .guild-page .guild-roster td:first-child{padding-left:0}
 .shell .guild-page .guild-roster td:nth-child(2){white-space:nowrap;color:#d8bd86}
 .shell .guild-page .guild-roster td:nth-child(n+3){grid-column:1/-1;font-size:.75rem!important;line-height:1.5}
 .shell .guild-page .guild-roster td:nth-child(4){margin-top:6px}
 .shell .guild-page .guild-roster details button{min-height:44px;width:100%;font-size:.8125rem!important;overflow-wrap:normal}
}

/* /character-build.css */
.character-build.character-panel{display:grid;grid-template-columns:minmax(260px,320px) minmax(0,1fr);gap:28px;align-items:start}.character-level-progress{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin:0 0 16px;color:#d8c99e}.character-level-progress progress{flex:1;min-width:150px;max-width:360px;height:8px;accent-color:#d1b772}.attribute-panel{min-width:0;background:#101b22;border:1px solid #66583e;border-radius:5px;padding:18px}.attribute-panel h2{margin:0 0 6px}.attribute-panel header>strong{font:.875rem var(--ui);color:#dbbb74}.attribute-row{padding:12px 0;border-bottom:1px solid #ffffff12}.attribute-row>div:first-child{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:space-between}.attribute-row strong{white-space:nowrap;font-size:.9375rem}.attribute-row b,.attribute-gain{color:#95d8ab}.attribute-row details{flex:0 0 100%;font-size:.75rem}.attribute-row summary{cursor:pointer;color:#adbaaF;min-height:24px}.attribute-row details p{font-size:.8125rem;line-height:1.5;margin:4px 0}.attribute-controls{display:flex;justify-content:flex-end;gap:6px;margin-top:5px}.attribute-controls button{min-width:42px;min-height:36px;padding:5px 9px}.attribute-actions{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0 4px}.attribute-actions button{font-size:.8125rem}.attribute-panel .small-note{font-size:.8125rem;line-height:1.5}.attribute-confirmation{width:min(620px,calc(100vw - 28px));padding:24px;max-height:calc(100dvh - 40px);overflow:auto}.attribute-review-table{overflow:auto}.attribute-review-table table{width:100%;border-collapse:collapse;font:.875rem/1.5 var(--ui);font-variant-numeric:tabular-nums}.attribute-review-table th,.attribute-review-table td{padding:9px 8px;border-bottom:1px solid #ffffff14;text-align:right;white-space:nowrap}.attribute-review-table th:first-child{text-align:left;white-space:normal}.character-build .paper-doll{min-width:0}.character-build .paper-doll figure img{width:100%;max-height:510px;object-fit:contain}
@media(max-width:760px){.character-build.character-panel{grid-template-columns:minmax(0,1fr);gap:20px}.attribute-panel{padding:14px}.attribute-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px}.attribute-controls{align-self:start}.attribute-row details{margin-top:1px}.attribute-confirmation{padding:16px}.attribute-review-table th,.attribute-review-table td{padding:8px 4px;font-size:.75rem}.attribute-controls button{min-height:44px}}

/* Rune sockets use the existing Character frame and palette. */
.character-runes{position:relative;border-color:var(--exp-border,#625337);overflow:hidden}
.character-runes>header{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.character-runes>header h2{margin:0}.rune-availability{color:#c9b891;font:.8125rem var(--ui);border:1px solid #75613e;border-radius:3px;padding:5px 9px}
.rune-sockets{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:18px}
.rune-socket{display:flex;align-items:center;gap:18px;min-width:0;padding:18px;border:1px solid #776343;border-radius:5px;background:radial-gradient(ellipse at 12% 50%,#bf95451a,transparent 65%),#0c1720;box-shadow:inset 0 0 0 3px #15232b,inset 0 0 0 4px #74603e55}
.rune-socket h3{margin:0}.rune-socket p{margin:3px 0 0;color:#baaf97;font-size:.875rem}
.rune-socket-setting{display:grid;place-items:center;flex:0 0 66px;height:66px;border:1px solid #9d8154;border-radius:50%;background:radial-gradient(circle,#080f17 42%,#ac894532 44%,#0b1620 48%,#0b1620 61%,#b8995e66 63%,#0b1620 65%);box-shadow:0 3px 12px #0006,inset 0 0 12px #0008}
.rune-socket-setting>span{display:block;width:29px;height:29px;transform:rotate(45deg);border:1px solid #a38a5d88;background:#0a141b;box-shadow:inset 0 0 0 4px #142129}
@media(max-width:480px){.rune-sockets{gap:10px}.rune-socket{flex-direction:column;gap:12px;padding:16px 8px;text-align:center}.rune-socket-setting{flex-basis:60px;width:60px;height:60px}.rune-socket h3{font-size:1.125rem}.character-runes>p{font-size:.875rem}}

.rune-socket-setting>.hunt-rune-icon{width:50px;height:50px;flex:none}.rune-socket-setting:focus-visible{outline:2px solid #ebca81;outline-offset:4px}.boss-hunt-art>.enemy-portrait{width:128px;height:128px}.rune-socket>div{min-width:0}.rune-socket p{overflow-wrap:anywhere}
/* paper doll rune and charm boxes */
.paper-doll{grid-template-columns:minmax(64px,128px) minmax(120px,1fr) minmax(64px,128px)}
.paper-doll>div{justify-items:center}
.paper-slot-set{display:grid;gap:6px;width:100%;box-sizing:border-box;padding:8px 6px;border:1px solid #776343;border-radius:6px;background:linear-gradient(160deg,#182234,#0c1420);box-shadow:inset 0 0 0 2px #0c1420,inset 0 0 0 3px #74603e55}
.paper-slot-set h3{margin:0;font-size:.75rem;letter-spacing:.08em;text-transform:uppercase;color:#e0c483;text-align:center}
.paper-slot-set>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.paper-slot-set .rune-socket,.paper-slot-set .charm-socket{display:grid;justify-items:center;align-content:start;gap:3px;min-width:0;padding:0;border:0;background:none;box-shadow:none;text-align:center}
.paper-slot-set .rune-socket-setting{flex:none;width:52px;height:52px;min-width:44px;min-height:44px;padding:0;cursor:pointer}
.paper-slot-set .rune-socket-setting>.hunt-rune-icon{width:40px;height:40px}
.paper-slot-set .item-tile{width:52px;height:52px;min-width:44px;min-height:44px;margin:0}
.paper-slot-set .item-tile.empty{border-style:dashed;opacity:.65;cursor:default}
.paper-slot-set b{display:block;font-size:.6875rem;line-height:1.25;font-weight:normal;color:#f0d9a0;overflow-wrap:anywhere}
.paper-slot-set small{display:block;font-size:.6875rem;line-height:1.25;color:#b9c3cf;overflow-wrap:anywhere}
.paper-slot-set .socket-inactive{color:#e7a586}
@media(max-width:640px){.paper-doll .paper-slot-set{order:2;align-self:stretch}.paper-slot-set b,.paper-slot-set small{font-size:.75rem}.paper-slot-set .item-tile,.paper-slot-set .rune-socket-setting{width:48px;height:48px}}
@media(min-width:641px){.paper-slot-set{min-height:9.5rem;align-content:start}}
.paper-slot-set .item-tile.empty{border:1px dashed #9d8154;background:#0a121b;opacity:.8}
.gear-icon.hunt-rune-icon,.gear-icon.charm-icon{border:0;background:none;box-shadow:none;border-radius:0;filter:drop-shadow(0 2px 3px #000a)}
.paper-slot-set .rune-socket-setting,.paper-slot-set .charm-slot-button,.paper-slot-set .item-tile.empty{border:0;background:none;box-shadow:none;border-radius:0;padding:0;opacity:1}
.paper-slot-set .gear-icon{width:100%;height:100%;max-height:none}
.paper-slot-set .rune-socket-setting:focus-visible,.paper-slot-set .charm-slot-button:focus-visible{outline:2px solid #ebca81;outline-offset:2px}
.gear-icon.rune-empty,.gear-icon.charm-empty{filter:none}
.ui-help-question{display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;cursor:help}
.ui-help-mark,.stat-help>summary::after{display:inline-grid;place-items:center;flex:none;width:18px;height:18px;border:1px solid #b6985d;border-radius:50%;color:#e0c483;font:600 .75rem/1 system-ui;text-decoration:none}
.stat-help>summary{text-decoration:none;gap:8px}
.stat-help>summary::after{content:"?";margin-left:8px}
.stat-help[open]>summary::after{background:#3a2f1a}
.ui-tooltip-more{display:block;width:100%;min-height:44px;margin-top:10px;border:1px solid #b6985d;border-radius:4px;background:#2a2114;color:#f0d9a0;cursor:pointer;font:inherit}
/* ? help buttons sit inside headings and rows: keep the 44px touch target but do not make the line taller */
.ui-help-question{margin-block:-13px;margin-inline:3px}
.ui-help-question .ui-help-mark{text-transform:none;letter-spacing:0;background:transparent}
.ui-help-question:hover .ui-help-mark,.ui-help-question:focus-visible .ui-help-mark{background:#3a2f1a;border-color:#e0c483}
.paper-slot-set h3 .ui-help-question{display:flex;margin:-13px auto}
.shell .paper-slot-set h3{font-size:.75rem;line-height:1.3}
/* Charms and Runes are their own item classes: jade talisman frame and slate tablet frame, never the Unique rainbow. */
.rarity-charm{--rarity:#63c7b8}.rarity-rune{--rarity:#8fa6c2}
.item-tile.rarity-charm:not(.charm-slot-button),.storage-slot.rarity-charm,.market-bag-item.rarity-charm,.party-gear-tile.rarity-charm{border-color:#4fb3a5;border-image:none;border-radius:14px 14px 5px 5px;background:radial-gradient(circle at 50% 38%,#1e3c3b,#0b151b)}
.item-tile.rarity-rune:not(.charm-slot-button),.storage-slot.rarity-rune,.market-bag-item.rarity-rune,.party-gear-tile.rarity-rune{border-color:#7f97b5;border-image:none;border-radius:3px;background:radial-gradient(circle at 50% 40%,#26313f,#0b131a);box-shadow:inset 0 0 0 2px #0b131a,inset 0 0 0 3px #52657d}
.item-tier.item-class-badge{font-size:.625rem;line-height:1.3;letter-spacing:.02em;padding:0 3px}
.rarity-charm .item-class-badge{color:#c9f3ea;background:#0d2a2ae6}.rarity-rune .item-class-badge{color:#dbe6f5;background:#141f2ce6}
/* The clearer item cards (public/item-cards.css) frame every item the same way, so the side stripe stays on the older card only (it pushed the hover text to the edge). */
.item-details.rarity-charm:not(.ic-card):not(.ic-hover),.item-details.rarity-rune:not(.ic-card):not(.ic-hover){border-left:3px solid var(--rarity)}
.chat-item.chat-item-charm[open]{border-color:#4fb3a5}.chat-item.chat-item-rune[open]{border-color:#7f97b5}
.chat-item.chat-item-charm summary{color:#7fe0d0}.chat-item.chat-item-rune summary{color:#a9c0e0}
.chat-item.chat-item-charm .gear-icon,.chat-item.chat-item-rune .gear-icon{width:48px;height:48px;display:block;margin:4px 0}
/* Large browser text: an attribute row narrower than 15rem (large text on a phone, or a 320 px phone at the default size) puts the
   -/+1/+5 buttons under the name and help text, so the help text uses the full width instead of a sliver beside the buttons. */
.attribute-row{container:attribute-row/inline-size}
@container attribute-row (max-width:15rem){.attribute-row>*{grid-column:1/-1}}
/* Alignment pass (21 Oct): Review fills the row beside Clear, and Reset Attributes spans the same width under them. */
.attribute-actions{display:grid;grid-template-columns:minmax(0,1fr) auto}.attribute-panel>[data-realm="reset-attributes"]{width:100%}
/* Attribute points spent for you (lib/auto-attributes.js): the setting on the Hero page and the Attributes panel. */
/* Who spends your attribute points (public/attribute-ui.js auto; Pat, 3 Nov): a question, two buttons side by side (the chosen one lit), one short note. */
.attribute-auto{margin:6px 0 12px;padding:10px 12px;border:1px solid #66583e;border-radius:8px;background:#0e1620}.attribute-auto-q{margin:0 0 8px;font:600 .875rem/1.3 var(--ui);color:#e8dcc0}.attribute-auto-btns{display:grid;grid-template-columns:1fr 1fr;gap:8px}.attribute-auto-btns .uk-btn{min-height:44px;width:100%;justify-content:center;white-space:normal;text-align:center}.attribute-auto .small-note{margin:8px 0 0;font-size:.8125rem;line-height:1.5;color:#b9ad92}

/* /chat-compact.css */
/* Chat is a compact chronological log; linked details expand on demand. */
.community-chat .chat-messages{padding:8px 10px}.community-chat .chat-message,.community-chat .chat-message.own{display:block;margin:0;padding:4px 2px;border:0;border-bottom:1px solid #ffffff08;font:.8125rem/1.55 system-ui;overflow-wrap:anywhere}.community-chat .chat-message:nth-child(even){background:#ffffff03}.community-chat .chat-message>time{position:static;display:inline;color:#91a0a8;font-size:.625rem;margin-right:6px;white-space:nowrap}.community-chat .chat-message>div,.community-chat .chat-message.own>div,.community-chat .chat-message.system>div{display:contents;background:none;border:0;border-radius:0;padding:0}.community-chat .chat-message .chat-name,.community-chat .chat-message .chat-author{display:inline;min-height:0;max-width:none;padding:1px 0;margin:0 6px 0 0;font:700 .8125rem/1.55 system-ui;color:#d6bd7f;vertical-align:baseline}.community-chat .chat-message p{display:inline;font:.8125rem/1.55 system-ui;white-space:pre-wrap;margin:0;color:#dce2e2}.community-chat .chat-message.unique-drop>div>p,.community-chat .chat-message.unique-drop>div>p strong{color:#ff7474;font-weight:700}.community-chat .chat-item{display:inline;margin:0 0 0 5px;padding:0;border:0;background:transparent;font-size:.8125rem}.community-chat .chat-item summary{display:inline;min-height:0;padding:0;color:#dabe7d;text-decoration:underline;text-underline-offset:3px;cursor:pointer}.community-chat .chat-item[open]{display:block;background:#111d25;border:1px solid #58604a;margin:6px 0}.community-chat .chat-item[open] summary{display:block;padding:7px 9px}.community-chat .chat-item>div{padding:8px 10px}.community-chat .chat-item>div>p{display:block}.community-chat .chat-heading{padding:10px 14px}.wayfarer-shell .chat-heading h2{font-size:1.25rem}.community-chat .chat-eyebrow{display:none}.community-chat .chat-channels{padding:5px 8px 0;gap:3px}.community-chat .chat-channels>button{min-height:44px;padding:6px 8px;font-size:.75rem}.community-chat .chat-destination{padding:4px 10px;font-size:.6875rem}.community-chat #chatForm{padding:8px 10px}.community-chat #chatForm textarea{min-height:44px;padding:9px;max-height:95px}.community-chat .chat-input-help{margin:3px 0}.community-chat #chatError:empty{display:none}.community-chat .chat-privacy summary{min-height:32px;padding:7px 0;font-size:.75rem}
/* A new chat line shows for 7 seconds over the top right, where a window's × and a phone menu's tabs sit. A tap there now reaches that button instead of
   opening Chat (HUD sweep, 3 Nov: the × and the tabs did nothing while it showed). Chat itself opens from its button, which carries the count. */
.chat-notification{position:fixed;right:14px;top:74px;z-index:180;width:min(350px,calc(100vw - 28px));padding:10px 13px;background:#152a34;border:1px solid #aa915e;border-radius:5px;box-shadow:0 6px 24px #0008;color:#eee3c7;text-align:left;font:.8125rem/1.5 system-ui;pointer-events:none}.chat-notification strong{display:block;color:#e0bd77}.chat-notification span{display:block;overflow-wrap:anywhere}
.bug-report-list{width:min(800px,calc(100vw - 24px));padding:22px;max-height:calc(100dvh - 32px);overflow:auto}.bug-report-list article{border-top:1px solid #ffffff20;padding:12px 0}.bug-report-list article p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:.875rem}.bug-report-list small{color:#aab9bf}.bug-report-list .az-actions{display:flex;flex-wrap:wrap;gap:6px}.bug-report-list .az-actions button{min-height:36px;font-size:.75rem}
@media(max-width:760px){.community-chat .chat-heading{padding:6px 10px}.community-chat .chat-message{padding:4px 1px}.community-chat .chat-channels>button{min-height:44px}.chat-notification{top:calc(var(--mobile-utility-height,58px) + 8px)}}

.community-chat .chat-command-suggestion{display:flex;flex-wrap:wrap;gap:3px 12px;align-items:center;width:100%;min-height:48px;margin:4px 0 7px;padding:9px 12px;text-align:left;background:#223138;border:1px solid #b49659;color:#f0dbac;border-radius:5px;font:.8125rem/1.5 system-ui}.community-chat .chat-command-suggestion[hidden]{display:none}.chat-command-suggestion strong{color:#f0cf83}.chat-command-suggestion small{color:#acbdc0}.chat-command-suggestion:focus-visible{outline:2px solid #f0cf83;outline-offset:2px}.nav-battle[hidden]{display:none!important}.nav-battle{color:#f2d291;border-color:#b2955b;min-height:44px;white-space:normal}.attribute-suggest{min-height:44px;width:100%}

.nav-battle-desktop{display:none}@media(min-width:1180px){.nav-battle-desktop:not([hidden]){display:block;min-height:44px;margin:-16px 0 8px}.nav-account .nav-battle{display:none}}@media(max-width:760px){.nav-battle{font-size:.75rem;padding:8px;min-height:44px}}

.community-chat .chat-channels{display:flex;flex-wrap:wrap;overflow-x:visible}.community-chat .chat-channels>button{flex:0 0 auto}.chat-readonly{font:.75rem/1.5 system-ui;color:#adbac8;padding:8px 10px;margin:0;border-top:1px solid #ffffff12}

/* Verified owner identity, independent of renown or chat-name colour. */
.chat-dev-badge{display:inline-block;vertical-align:middle;margin:0 .4em;padding:1px 5px;border:1px solid #bda064;border-radius:3px;background:linear-gradient(135deg,#49381e,#261f16);box-shadow:inset 0 1px #f3d59233;color:#ffe4a4;font:700 .5625rem/1.4 system-ui,sans-serif;letter-spacing:.08em;text-decoration:none;white-space:nowrap}
/* Earned titles (IRP_EARNED_TITLES_VERSION): a short italic title after the sender's name. */
.chat-title{margin-left:.35em;color:#d9bf7f;font-style:italic;font-weight:400;font-size:.85em;white-space:nowrap}
/* Earned titles (IRP_EARNED_TITLES_VERSION): the title under the name on the inspect card. */
.player-inspection .inspect-title{margin:0;color:#d9bf7f;font-style:italic}
/* Party chat feedback (14 Oct): a listing names the roles it still needs, so it is not read as the party's make-up or as an invite. */
.recruitment-listings .eyebrow{text-transform:uppercase;letter-spacing:.08em}.recruitment-listings .recruitment-needs{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px;margin:8px 0 12px}.recruitment-needs-label{color:#f2d6a0;font-weight:700}.recruitment-role{display:inline-flex;align-items:center;min-height:28px;padding:2px 10px;border:1px solid #c9a35d;border-radius:999px;background:#2a2417;color:#f6e3bb;font-weight:700}.recruitment-needs-or{color:#bcc9c8}.recruitment-needs small{flex-basis:100%;color:#bcc9c8}

/* Guild chat: rank tag before the name. The class colour is set inline on the name. */
.chat-guild-tag{margin:0 .35em 0 0;font:600 .75rem/1.4 system-ui;white-space:nowrap}
.chat-guild-tag.leader{color:#e8c56f}
.chat-guild-tag.officer{color:#8fb9dc}
/* Guild coin name colours (IRP_GUILD_COSMETICS_VERSION): a soft glow in the bought colour, so it does not read as a class tone. */
.chat-guild-colour{text-shadow:0 0 6px var(--chat-glow,transparent)}
/* Artisan chat (Pat, 26 Oct): an Artisan's name in chat carries a small Artisan tag, in the life skills green. */
.chat-artisan-tag{display:inline-block;vertical-align:middle;margin:0 .4em;padding:0 5px;border:1px solid #6f9a6a;border-radius:3px;color:#b9dcae;font:600 .625rem/1.5 system-ui,sans-serif;letter-spacing:.04em;text-transform:uppercase}
.chat-log-row.is-artisan p strong{color:#f2dfb1}
/* The icon in front of a chat name (Pat, 28 Oct): role for heroes, best skill tool for Artisans (public/field-guide.js chatIcon). */
.chat-role-icon{display:inline-block;width:16px;height:16px;margin:0 .3em 0 0;vertical-align:-3px;object-fit:contain;filter:drop-shadow(0 1px 1px #000a)}
/* The sender's guild emblem (IRP_GUILD_STORE_PLUS_VERSION, public/field-guide.js guildEmblem): the same size and place as the role icon. */
.chat-guild-emblem{display:inline-block;width:16px;height:16px;margin:0 .3em 0 0;vertical-align:-3px;object-fit:contain;filter:drop-shadow(0 1px 1px #000a)}
.chat-role-icon.is-skill{width:17px;height:17px}
/* The way back's picture and two-line name only show on the compact screen's bar (public/compact-ui.css); anywhere else it reads Back to Battle on one line. */
.nav-battle .nav-back-art{display:none}.nav-battle .nav-back-copy :is(small,b){font:inherit;color:inherit;letter-spacing:inherit;text-transform:none}
/* A new chat line on the compact screen (QA, 3 Nov): it sat at the top, over the window's name, tabs and ×, for 7 seconds. It now shows low on the
   screen, bottom left on a computer, where the chat window opens, and just above the thumb buttons on a phone, right of the skill points chip, for 5 seconds (public/app.js). */
html.cx-on .chat-notification{top:auto;right:auto;left:14px;bottom:110px}
html.cx-on .chat-notification span{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
@media(max-width:760px){html.cx-on .chat-notification{left:auto;right:10px;bottom:calc(92px + env(safe-area-inset-bottom,0px));width:min(240px,calc(100vw - 150px));padding:8px 12px;line-height:1.4}}

/* /unique-guide.css */
.unique-skills{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 8px;color:#e1c498}.unique-skills>strong{font-size:.75rem;text-transform:uppercase;letter-spacing:.06em}.unique-skills .text-button{font-size:.8125rem;padding:2px 0;min-height:25px;text-decoration:underline}.unique-guide-catalog{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:12px;margin:22px 0}.unique-guide-catalog>a{display:flex;align-items:center;gap:12px;padding:12px;background:#111d25;border:1px solid #5b5150;border-radius:5px;color:#e8d5ad;text-decoration:none}.unique-guide-catalog>a:hover{border-color:#c3a56e;background:#1b2930}.unique-guide-catalog small{display:block;color:#b4c0c5;font:.75rem/1.5 system-ui;margin-top:5px}.unique-guide-art{display:inline-grid;position:relative;place-items:center;flex-shrink:0;width:82px;height:96px;padding:3px;border:2px solid transparent;border-radius:5px;background:linear-gradient(#10191d,#10191d) padding-box,conic-gradient(#fc9acb,#c5a3ff,#8dcaff,#8ce8b0,#f3da89,#fc9acb) border-box;overflow:hidden}.unique-guide-art svg{width:100%;height:100%}.unique-guide-art b{position:absolute;right:3px;top:2px;color:#fff;font:bold .625rem system-ui;text-shadow:0 1px 3px #000}.unique-guide-showcase{display:flex;align-items:center;gap:20px;margin:15px 0 25px;padding:18px;background:#111c23;border:1px solid #5a5144}.unique-guide-showcase .unique-guide-art{width:150px;height:180px}.unique-guide-showcase figcaption{max-width:28ch;line-height:1.8;color:#d8bd81}@media(max-width:520px){.unique-guide-showcase{gap:12px;padding:10px}.unique-guide-showcase .unique-guide-art{width:110px;height:135px}.unique-guide-catalog{grid-template-columns:minmax(0,1fr)}}
.zone-uniques{margin:12px 0}.zone-uniques h3{margin:0 0 8px;font-size:.875rem;color:#e1c498}.zone-unique-row{display:grid;grid-template-columns:repeat(auto-fill,minmax(64px,1fr));gap:8px}.zone-unique{display:flex;flex-direction:column;align-items:center;gap:4px;min-height:44px;padding:4px;background:#111d25;border:1px solid #3d4448;border-radius:5px;color:#e8d5ad;font:inherit;text-align:center;cursor:pointer}button.zone-unique:hover,button.zone-unique:focus-visible{border-color:#c3a56e;background:#1b2930}.zone-unique.mine{border-color:#8a7445}.zone-unique .unique-guide-art{width:52px;height:60px}.zone-unique strong{display:block;font-size:.6875rem;line-height:1.25;overflow-wrap:anywhere}.zone-unique small{display:block;color:#9eabb0;font:.625rem/1.3 system-ui}
.unique-growth{margin:6px 0;color:#f0b49a;font-weight:600;overflow-wrap:anywhere}

/* /dev-controls.css */
.dev-tools-backdrop{z-index:210}.dev-tools-backdrop[hidden]{display:none}.dev-tools{width:min(1000px,calc(100vw - 24px));max-height:calc(100dvh - 28px);overflow:auto;padding:20px;background:#13212b}.dev-tools header{display:flex;justify-content:space-between;gap:12px;align-items:center}.dev-tools h2{margin:0}.dev-tools nav{display:flex;gap:6px;flex-wrap:wrap;margin:14px 0}.dev-tools button,.dev-tools input,.dev-tools select{min-height:44px}.dev-tools button[aria-pressed=true]{border-color:#d8b66b;background:#493e2b}.dev-tools form{display:flex;flex-wrap:wrap;align-items:end;gap:10px;margin:12px 0}.dev-tools label{display:grid;gap:5px;flex:1;min-width:160px;font-size:.8125rem}.dev-tools input,.dev-tools select{width:100%;max-width:100%;min-width:0;padding:8px;background:#0d1820;color:#e8e0cf;border:1px solid #5c645e;border-radius:4px}.dev-tools details{border-top:1px solid #53616a;padding:9px 0}.dev-tools summary{min-height:36px;cursor:pointer}.dev-player-layout{display:grid;grid-template-columns:250px minmax(0,1fr);gap:20px}.dev-player-list{display:flex;flex-direction:column;gap:5px;max-height:600px;overflow:auto}.dev-player-list button{text-align:left;font-size:.75rem}.dev-tools dl{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;font-size:.75rem}.dev-tools dt{color:#a8b9c0;overflow-wrap:anywhere}.dev-tools dd{margin:0;font-size:1rem}.dev-tools article{border-bottom:1px solid #ffffff20;padding:10px 0}.dev-tools article p{margin:5px 0;white-space:pre-wrap;overflow-wrap:anywhere;font-size:.8125rem}.dev-tools small{display:block;color:#a8b9c0}.dev-tools .dev-error{color:#ffabab}.dev-tools .dev-status{color:#b7dfb6}.dev-error:empty,.dev-status:empty{display:none}.dev-tools details p{overflow-wrap:anywhere;font-size:.75rem}.dev-control-icon{color:#e5bb69}.dev-control-icon>.dev-art{width:32px;height:32px}
@media(max-width:700px){.dev-tools{padding:12px}.dev-player-layout{grid-template-columns:1fr}.dev-player-list{max-height:180px}.dev-tools dl{grid-template-columns:repeat(2,minmax(0,1fr))}}

.dev-health details dl{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:14px}.dev-health details dt{font-size:.75rem;color:#aba79d}.dev-health details dd{margin:4px 0}.dev-health details{margin:14px 0}.dev-health li{margin:10px 0}

.sus-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:10px 0 14px}
.sus-tile{display:grid;gap:2px;padding:10px 12px;border:1px solid rgba(214,177,102,.35);border-radius:8px;background:linear-gradient(180deg,rgba(214,177,102,.12),rgba(0,0,0,.18))}
.sus-tile small{text-transform:uppercase;letter-spacing:.08em;font-size:11.5px;opacity:.75}.sus-tile b{font-size:22px;font-family:Georgia,serif;color:#f0d9a0}.sus-tile span{font-size:12px;opacity:.7}
.sus-list{display:grid;gap:12px;margin:8px 0 12px}
.sus-card{display:grid;gap:10px;padding:12px 14px;border:1px solid rgba(255,255,255,.14);border-left:4px solid #d6a24a;border-radius:8px;background:rgba(0,0,0,.22)}
.sus-card.is-high{border-left-color:#e0574f;background:linear-gradient(90deg,rgba(224,87,79,.12),rgba(0,0,0,.22))}
.sus-card header{display:flex;justify-content:space-between;align-items:center;gap:10px}.sus-card header div{display:grid}.sus-card header strong{font-size:18px;font-family:Georgia,serif}.sus-card header small{opacity:.7}
.sus-badge{padding:3px 10px;border-radius:999px;font-size:12px;font-weight:700;background:#d6a24a;color:#1b1206}.is-high .sus-badge{background:#e0574f;color:#fff}
.sus-reasons{display:flex;flex-wrap:wrap;gap:6px;margin:0;padding:0;list-style:none}.sus-reasons li{padding:3px 10px;border-radius:999px;font-size:13px;border:1px solid rgba(214,162,74,.55);background:rgba(214,162,74,.14)}
.sus-meters{display:grid;gap:7px}.sus-meter{display:grid;grid-template-columns:44px minmax(0,1fr) auto;align-items:center;gap:10px;font-size:13px}
.sus-bar{position:relative;display:block;height:10px;border-radius:5px;background:rgba(255,255,255,.1);overflow:hidden}.sus-fill{position:absolute;inset:0 auto 0 0;border-radius:5px;background:#6fa8d6}.sus-fill.is-hot{background:#e0574f}
.sus-bar u{position:absolute;top:-2px;bottom:-2px;width:2px;background:#f0d9a0;text-decoration:none}
.sus-meter-num{white-space:nowrap}.sus-meter-num em{font-style:normal;color:#ffb3a8;font-weight:700}
.sus-empty{display:grid;gap:2px;padding:18px;text-align:center;border:1px dashed rgba(255,255,255,.2);border-radius:8px}.sus-empty b{color:#9ccea1;font-size:18px}
@media(max-width:700px){.sus-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.sus-meter{grid-template-columns:36px minmax(0,1fr)}.sus-meter-num{grid-column:1/-1}}
.dev-tools .sus-card{padding:14px 16px 14px 18px}.dev-tools .sus-card>button{justify-self:start;width:auto;min-width:140px}
/* Weekend event picker: one weekend per row, columns lined up (date, bonus, reason, Set, note); on phones the date, bonus and reason each run across, then Set and the note. */
.dev-weekend form{display:grid;grid-template-columns:190px minmax(0,1fr) minmax(0,1fr) auto 150px;align-items:end;gap:10px;margin:0;padding:10px 0;border-bottom:1px solid rgba(255,255,255,.08)}
.dev-weekend form>strong,.dev-weekend form>small{align-self:center}.dev-weekend label{min-width:0}
@media(max-width:700px){.dev-weekend form{grid-template-columns:auto minmax(0,1fr)}.dev-weekend form>strong,.dev-weekend form>label{grid-column:1/-1}.dev-weekend form>button{min-width:96px}}
/* Payments page (Dawn Crowns log, 18 Oct 2026) */
.dev-pay-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:10px 0 14px}.dev-pay-summary div{padding:10px;border:1px solid #64583d;border-radius:6px;background:#131b20}.dev-pay-summary dt{font-size:.75rem;color:#aba79d}.dev-pay-summary dd{margin:4px 0 0;font-size:1.3rem}
.dev-pay-table{overflow-x:auto;max-width:100%}.dev-pay-table table{min-width:640px;border-collapse:collapse;width:100%}.dev-pay-table th,.dev-pay-table td{padding:6px 8px;border-bottom:1px solid #3a3426;text-align:left;vertical-align:top;font-size:.85rem}.dev-pay-table td small{display:block;color:#aba79d;overflow-wrap:anywhere}
.dev-pay-table tr.is-bad td:nth-child(4){color:#ff9b8a}.dev-pay-table tr.is-good td:nth-child(4){color:#9be39b}
@media(max-width:700px){.dev-pay-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Bags (18 Oct 2026): a player's bag, Recovery and party bag, with a lock fix for the picked item. */
.dev-tools h4{margin:12px 0 6px;font-size:.875rem;color:#e5d3a6}.dev-bag-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:6px}.dev-tools .dev-bag-item{display:flex;gap:8px;align-items:center;text-align:left;padding:6px 8px;min-height:56px;background:#0d1820;border:1px solid #3f4c53;border-radius:4px}.dev-tools .dev-bag-item[aria-pressed=true]{border-color:#d8b66b;background:#2b2a22}.dev-bag-item>span{display:grid;gap:2px;min-width:0}.dev-bag-item strong{font-size:.8125rem;overflow-wrap:anywhere}.dev-bag-item .gear-icon,.dev-bag-item svg,.dev-bag-item img{width:40px;height:40px;flex:0 0 40px}.dev-lock{font-style:normal;font-size:.6875rem;color:#e5bb69}.dev-bag-fix{border:1px solid #6b5a35;border-radius:4px;padding:10px;background:#1a2228}.dev-bag-fix p{flex-basis:100%;margin:0}
@media(max-width:700px){.dev-bag-grid{grid-template-columns:1fr}}
/* Look pass (Pat, 18 Oct 2026: "a little more visually appealing"): UI kit v1 header with banner, icon tabs, a framed page,
   player cards with status chips and readable audit entries. Layout and every form stay as they were. */
.dev-tools{background:linear-gradient(160deg,#17263b,#0d1724 70%);color:var(--uk-ivory,#eadbb9)}
.dev-tools .dev-head{position:relative;margin:0 0 12px;padding-right:92px}
.dev-head .uk-head-text h2{margin:0;font:600 clamp(1.45rem,4.6vw,2rem)/1.1 var(--uk-serif,Georgia,serif);color:var(--uk-gold-text,#ffe1aa);text-shadow:0 2px 4px #000}
.dev-tools .dev-close{position:absolute;top:14px;right:14px;z-index:3;width:44px;min-width:44px;padding:0}
.dev-tools .dev-tabs{margin:0 0 12px;padding-bottom:10px}
.dev-tools .dev-tabs .uk-tab{gap:7px}
.dev-tools .dev-page{margin-top:4px}
.dev-tools .dev-page>.uk-heading:first-child,.dev-tools .dev-page>form:first-child{margin-top:0}
.dev-tools .uk-heading{font-family:var(--uk-serif,Georgia,serif);color:var(--uk-gold-text,#ffe1aa)}
.dev-tools .dev-status:not(:empty),.dev-tools .dev-error:not(:empty){margin:0 0 10px;padding:9px 12px;border-radius:4px;border:1px solid}
.dev-tools .dev-status:not(:empty){border-color:#5f8f5f;background:#16261b}
.dev-tools .dev-error:not(:empty){border-color:#8f4a42;background:#2a1716}
/* Players */
.dev-player-list{gap:6px}
.dev-tools .dev-player-card{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:52px;padding:7px 10px;text-align:left;border:1px solid #4d4a3c;border-radius:4px;background:linear-gradient(180deg,#1b293d,#111b2b);box-shadow:inset 0 0 0 2px #0c1723,inset 0 0 0 3px #b8955a26}
.dev-tools .dev-player-card:hover{border-color:var(--uk-gold,#d6b575)}
.dev-tools .dev-player-card.is-selected{border-color:var(--uk-gold-hi,#f0ce83);background:linear-gradient(180deg,#3d3524,#1f1b14)}
.dev-player-card>span:first-child{display:grid;gap:1px;min-width:0}.dev-player-card strong{font:600 .9rem/1.2 var(--uk-serif,Georgia,serif);color:var(--uk-ivory,#eadbb9);overflow-wrap:anywhere}.dev-player-card small{font-size:.72rem}
.dev-player-card .uk-chip{flex:0 0 auto}
.dev-tools .uk-chip.dev-chip-bad{border-color:#b45b50;color:#ffab9e}
.dev-player-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 14px;margin:0 0 10px;padding-bottom:10px;border-bottom:1px solid #b69a6044}
.dev-player-head .dev-player-name{margin:0;font:600 1.5rem/1.15 var(--uk-serif,Georgia,serif);color:var(--uk-gold-text,#ffe1aa)}
.dev-player-head .uk-chips{margin:0}
/* Audit and ban records */
.dev-tools .dev-audit article{margin:0 0 8px;padding:10px 12px;border:1px solid #3f4c53;border-left:3px solid var(--uk-gold-dim,#8f7645);border-radius:4px;background:#0f1a27}
.dev-tools .dev-audit article header{margin-bottom:2px}.dev-tools .dev-audit article strong{font:600 .95rem/1.25 var(--uk-serif,Georgia,serif);color:var(--uk-ivory,#eadbb9)}
.dev-tools .dev-weekend form{border-bottom-color:#b69a6033}
@media(max-width:700px){.dev-tools .dev-head{padding-right:64px}.dev-tools .dev-close{top:10px;right:10px}.dev-player-list{max-height:260px}}
.dev-tools dl dt::first-letter{text-transform:uppercase}
/* Mail page (town mailbox, 18 Oct 2026) */
.dev-tools form.dev-mail-form{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;max-width:640px;margin:0 0 18px;align-items:stretch}
.dev-tools .dev-mail-form .uk-field{display:grid;gap:6px;min-width:0}
.dev-tools .dev-mail-form .uk-input{width:100%;box-sizing:border-box}
.dev-mail-form .uk-seg-btn{min-height:52px}
.dev-mail-gift{display:grid;gap:10px;margin:0;padding:12px 14px;border:1px solid var(--uk-gold-dim,#b6975366);border-radius:var(--uk-radius-card,8px);min-width:0}
.dev-mail-gift legend{padding:0 6px}
.dev-mail-gift>.uk-hint{margin:0}
.dev-mail-gift-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:10px;align-items:start}
.dev-mail-body{min-height:150px;resize:vertical;font:inherit;line-height:1.5}
.dev-mail-form .uk-btn-primary{justify-self:start;min-height:44px}
.dev-mail-sent .uk-row-main{gap:10px;flex-wrap:wrap}
.dev-mail-sent .uk-row-end{display:flex;gap:6px;flex-wrap:wrap}
/* Crown spending on the Payments page (Pat, 21 Oct 2026): one card per player, gift and bought Crowns told apart by colour. */
.dev-spend-list{display:grid;gap:10px;margin:0 0 16px}
.dev-tools .dev-spend-card{padding:10px 12px;border:1px solid #64583d;border-radius:6px;background:#131b20}
.dev-tools .dev-spend-card>header{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px 12px;margin-bottom:6px}
.dev-spend-list>*{min-width:0}
.dev-tools .dev-spend-card>header strong{font-size:1rem}
.dev-tools .dev-spend-card .uk-chips{display:flex;flex-wrap:wrap;gap:4px}
.dev-spend-rows{list-style:none;margin:0;padding:0}
.dev-spend-rows li{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:4px 12px;padding:7px 0;border-top:1px solid #3a3426}
.dev-spend-what{display:flex;flex-direction:column;gap:2px;min-width:0}.dev-spend-what b{font-weight:600;font-size:.9rem}.dev-spend-what small{color:#aba79d;font-size:.75rem}
.dev-spend-cost{display:flex;align-items:center;gap:8px}.dev-spend-cost strong{font-size:.95rem;color:var(--uk-gold-text,#f0d595)}
.dev-spend-cost .uk-chip{margin:0}
.uk-chip.dev-spend-gift{border-color:#7fb3d966;color:#a9d3f0}
.uk-chip.dev-spend-bought{border-color:#d9b46a88;color:#f0d595}
.dev-pay-table td .uk-chip{margin:0 4px 2px 0}
.dev-tools .dev-pay-summary{grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:700px){.dev-tools .dev-pay-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}
.dev-tools .dev-spend-refused{margin-bottom:22px}
/* Coming back page (lib/play-days.js) */
.ret-table{overflow-x:auto}.ret-table table{width:100%;border-collapse:collapse;font-size:13px;font-variant-numeric:tabular-nums}.ret-table th,.ret-table td{text-align:left;padding:6px 8px;white-space:nowrap;border-bottom:1px solid rgba(214,177,102,.18)}.ret-table small{opacity:.7}.ret-table th{white-space:normal}.ret-table .ret-wait{opacity:.5;font-style:italic}
.ret-stopped .sus-meter{grid-template-columns:96px minmax(0,1fr) 3ch}
@media(max-width:700px){.ret-stopped .sus-meter{grid-template-columns:80px minmax(0,1fr) 3ch}.ret-stopped .sus-meter-num{grid-column:auto}}
/* Tabs (22 Oct): painted icons over the label like Leaderboards on phones. Twelve tabs since Balance (23 Oct): one row on desktop, rows of
   four between, rows of three on phones (4/4/4 and 3/3/3/3), so no tab ever sits alone. Repeated class beats the shared tab rules in ui-kit.css. */
.dev-tools .dev-tabs.dev-tabs.dev-tabs.dev-tabs{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:6px}
.dev-tools .dev-tabs.dev-tabs.dev-tabs.dev-tabs>.uk-tab{position:relative;flex-direction:column;justify-content:flex-start;gap:4px;min-width:0;min-height:72px;padding:8px 4px 6px;text-align:center}
.dev-tools .dev-tabs .uk-tab-label{font-size:.78rem;line-height:1.15;text-wrap:balance}
.dev-tools .dev-tabs .dev-tab-art{flex:0 0 auto;width:34px;height:34px;margin:0}
.dev-tools .dev-tabs .uk-tab>.uk-badge{position:absolute;top:4px;right:4px}
@media(max-width:900px){.dev-tools .dev-tabs.dev-tabs.dev-tabs.dev-tabs{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:600px){.dev-tools .dev-tabs.dev-tabs.dev-tabs.dev-tabs{grid-template-columns:repeat(3,minmax(0,1fr))}.dev-tools .dev-tabs.dev-tabs.dev-tabs.dev-tabs>.uk-tab{min-height:66px}}
/* Watchdog: state and four key numbers up front, the rest folded away. */
.dev-tools .dev-health{margin:0 0 16px;padding:14px 16px}
.dev-health-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
.dev-health-head .uk-heading{margin:0}
.dev-health.is-healthy .dev-health-state{color:var(--uk-done,#8fd18b)}
.dev-health:is(.is-degraded,.is-unhealthy) .dev-health-state{color:#ffab9e}
.dev-tools .dev-health-keys{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:0 0 8px;font-size:inherit}
.dev-health-keys>.uk-stat{padding:10px 6px;border:1px solid #b69a6040;border-radius:4px;background:#0c1723b3}
.dev-health-keys>.uk-stat+.uk-stat{border-left:1px solid #b69a6040}
.dev-tools .dev-health-keys .uk-stat dt{color:var(--uk-ivory-dim,#bfb196)}
.dev-tools .dev-health-keys .uk-stat dd{font-size:1.4rem}
.dev-health-keys>.uk-stat>small{order:-1;font-size:.72rem}
.dev-health>.uk-hint{margin:0 0 6px}
@media(max-width:600px){.dev-tools .dev-health-keys{grid-template-columns:repeat(2,minmax(0,1fr))}}
.dev-tools details.uk-disclosure{margin:0 0 8px;padding:0;border-top:0}
/* Dev tools icon (ART56, 22 Oct): a spyglass on a ledger, in the side panel and the menu header. */
.dev-art{display:inline-block;flex:0 0 auto;width:32px;height:32px;background:url("/art/ui/dev-tools-icon-v1.webp") center/contain no-repeat;filter:drop-shadow(0 2px 2px #0009);vertical-align:middle}.dev-art-lg{width:64px;height:64px}
/* Balance (lib/balance-dev.js): live fights, results and drops per zone, read only. */
.dev-bal-actions{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 4px}
.dev-tools .dev-bal-fight{margin:0 0 12px;padding:12px 14px}
.dev-bal-fight>header{display:flex;align-items:center;gap:10px;margin:0 0 8px}.dev-bal-fight>header h4{margin:0;font-size:.95rem}.dev-bal-fight>header small{color:#aba79d}
.dev-bal-fight .dev-pay-table table{min-width:600px}
.dev-pay-table tr.dev-bal-more td{padding-top:0}
.dev-bal-more summary{cursor:pointer;color:var(--uk-gold-text,#ffe1aa);font-size:.8rem;padding:2px 0 6px}
.dev-bal-more details[open]{padding:0 0 8px}
.dev-bal-skills{list-style:none;margin:0 0 8px;padding:0}.dev-bal-skills li{padding:4px 0;border-top:1px solid #3a3426}
.uk-chip.dev-bal-unique{border-color:#d9b46a88;color:#f0d595}
.uk-chip.dev-bal-big{border-color:#ff9b8a66;color:#ffc2b6}
.uk-chip.dev-bal-win{border-color:#8fd18b88;color:#b8ecb4}
.uk-chip.dev-bal-wipe{border-color:#ff9b8a88;color:#ffc2b6}
.dev-bal-flags,.dev-bal-events{list-style:none;margin:0 0 14px;padding:0}
.dev-bal-flags li{display:flex;align-items:center;gap:10px;padding:6px 0;border-top:1px solid #3a3426}
.dev-bal-events li{padding:7px 0;border-top:1px solid #3a3426;font-size:.85rem}.dev-bal-events li>div,.dev-bal-events li>small{display:block;color:#aba79d;overflow-wrap:anywhere}
.dev-bal-events li>small{font-size:.75rem}
@media(max-width:600px){.dev-tools .dev-bal-fight{padding:10px}.dev-bal-flags li{align-items:flex-start}}
.dev-bal-find{display:flex;flex-wrap:wrap;align-items:flex-end;gap:8px;margin:6px 0 12px}.dev-bal-find .uk-field{flex:1 1 220px;margin:0}
.dev-bal-fight .dev-pay-summary{margin:0 0 8px}
.dev-bal-fight>header>div{flex:1 1 auto;min-width:0;text-align:left}
.dev-tools h3+.uk-hint,.dev-tools .uk-hint+h3,.dev-bal-flags+h3{margin-top:14px}
.dev-tools .dev-pay-table+h3,.dev-tools .dev-bal-fight+h3,.dev-tools .dev-bal-events+h3{margin-top:18px}
.dev-bal-events li>.uk-chip{margin-right:8px}
.dev-bal-fight details.dev-bal-more{margin:0;padding:4px 0}

/* /gathering.css */
.gathering-page,.crafting-preview{max-width:1400px;margin:auto}.gathering-facts{display:flex;gap:12px 24px;flex-wrap:wrap;align-items:center;color:#c5c9be}.gathering-facts b{color:#efdab4}.gather-dispatch{display:flex;align-items:center;gap:24px;border:1px solid #8d7950;padding:24px;background:linear-gradient(110deg,#243330,#172327);border-radius:8px;margin:24px 0}.gather-dispatch h2,.gather-dispatch p{margin:6px 0}.gather-clock{margin-left:auto;display:grid;gap:4px;white-space:nowrap;text-align:center}.gather-clock strong{font:1.75rem/1.4 Georgia,serif;font-variant-numeric:tabular-nums;color:#edd09c}.gather-clock span{color:#becabc}.gathering-emblem{display:grid;place-items:center;flex-shrink:0;width:70px;height:70px;border:1px solid var(--gather-color);border-radius:50%;color:var(--gather-color);font:2.375rem Georgia,serif;background:radial-gradient(#304540,#122025);box-shadow:inset 0 0 0 5px #182628}.gather-squires{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:20px 0}.gather-squire{padding:24px;border:1px solid #645b46;border-radius:8px;background:linear-gradient(145deg,#233034,#111c23);min-width:0}.gather-squire>.gathering-emblem{margin-bottom:18px}.gather-squire h2{font-size:1.6875rem;margin:8px 0}.gather-squire p span{color:#aebbb6}.gather-squire progress{width:100%;height:7px;accent-color:#ceb079}.gather-squire dl{margin:22px 0}.gather-squire dl div{display:flex;justify-content:space-between;flex-wrap:wrap;gap:6px;margin:10px 0}.gather-squire dt{color:#b6c3bb}.gather-squire dd{margin:0;color:#efdab4}.gather-squire button{width:100%;min-height:44px}.gather-ready{border-left:3px solid #bda36e;padding:12px 16px;background:#21302f;margin:24px 0}.gather-log,.gather-materials,.gather-coming{border:1px solid #5a604f;padding:24px;border-radius:8px;margin:24px 0;background:#142127}.gather-log header,.gather-materials header{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}.gather-log h2,.gather-materials h2,.gather-coming h2{margin:0}.gather-log ol{list-style:none;padding:0;max-height:390px;overflow:auto}.gather-log li{border-top:1px solid #394b4c;padding:14px 0}.gather-log li>div{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}.gather-log time{font-size:.75rem;color:#b1b8ab}.gather-log li p{margin:7px 0;color:#d6cbb5}.gather-coming{display:flex;align-items:center;gap:16px;flex-wrap:wrap}.gather-coming>div{flex:1 1 320px}.gather-coming p{margin-bottom:0}.gather-material-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.gather-material-grid h3{display:flex;align-items:center;gap:10px}.gather-material-grid .gathering-emblem{width:32px;height:32px;font-size:20px;box-shadow:none}.gather-material-row{display:flex;align-items:center;gap:10px;padding:10px 0;border-top:1px solid #34494a}.gather-material-row>span:nth-child(2){flex:1;min-width:0}.gather-tier{font-size:.6875rem;border:1px solid #7b6d4c;padding:2px 5px;color:#d2be91}.preview-banner{padding:16px;border:1px solid #8c794b;background:#302f24;border-radius:6px}.crafting-preview-layout{display:grid;grid-template-columns:minmax(230px,1fr) 2fr;gap:20px}.crafting-preview-layout>.exp-panel{min-width:0;padding:24px}.preview-choices{display:flex;flex-direction:column;gap:12px}.preview-choices button{min-height:48px;text-align:left}.preview-choices .selected{border-color:#d4b278;background:#3b392b}.preview-ingredients{display:flex;gap:12px;flex-wrap:wrap;margin:20px 0 30px}.preview-ingredients>span{flex:1 1 110px;border:1px solid #74613d;padding:18px;color:#e8d1a3}.preview-ingredients small{display:block;font:.75rem/1.5 Arial,sans-serif;color:#adb8ae;margin-top:6px}.preview-result{padding:20px;border:1px dashed #9a865f;margin:16px 0 22px}.preview-result strong{font:1.375rem Georgia,serif;color:#e6c48c}.future-shop-seal{font:4.375rem Georgia,serif;text-align:center;color:#bdab7c}.crafting-preview .exp-panel{text-align:left}.gather-log button,.gather-coming button,.gather-materials button{min-height:44px}
.gather-squire form{display:grid;gap:12px}.gather-squire form label{display:grid;gap:8px;color:#c9d1c5}.gather-squire select{width:100%;min-height:44px;font-size:1rem;background:#101d23;border:1px solid #7a7056;color:#ecdbb8;padding:8px;border-radius:5px}.rarity-material form{display:grid;gap:12px}.rarity-material form label{display:grid;gap:6px}.rarity-material input{min-height:44px;font-size:1rem;min-width:0;width:100%}.rarity-material .gathering-emblem{width:50px;height:50px;font-size:1.75rem}.gather-squires .small-note{line-height:1.5}
@media(max-width:1000px){.gather-squires{gap:12px}.gather-squire{padding:18px}.gather-material-grid{grid-template-columns:1fr}.gather-material-grid>section{min-width:0}}
@media(max-width:650px){.gather-squires,.crafting-preview-layout{grid-template-columns:1fr}.gather-dispatch{flex-wrap:wrap;padding:18px;gap:14px}.gather-dispatch>div:not(.gather-clock){flex:1;min-width:180px}.gather-clock{margin:0;width:100%;border-top:1px solid #536450;padding-top:12px}.gather-squire{display:grid;grid-template-columns:1fr auto}.gather-squire>.gathering-emblem{grid-column:2;grid-row:1/4;margin:0}.gather-squire>*{grid-column:1/-1}.gather-squire>.eyebrow,.gather-squire>h2{grid-column:1}.gather-log,.gather-materials,.gather-coming{padding:16px}.gather-material-row{font-size:.875rem}.gathering-facts{gap:10px 16px}.preview-choices{flex-direction:row;flex-wrap:wrap}.preview-choices button{flex:1}.crafting-preview-layout>.exp-panel{padding:16px}}
.preview-order{margin-top:20px;padding:24px}.preview-order header{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}.preview-order-time{color:#bead88;font:1.375rem Georgia,serif}.preview-order-track{height:7px;background:#0c181d;border:1px solid #47534d;border-radius:4px;margin:18px 0}.preview-order h3{margin-bottom:8px}

.squire-idle-reminder{display:flex;align-items:center;gap:12px;margin:10px 16px;padding:8px 10px;border:1px solid #aa8c55;border-top:2px solid #d1b177;background:linear-gradient(110deg,#253127,#111c2b);color:#dfd7bc}.squire-idle-reminder>div{flex:1;min-width:0}.squire-idle-reminder strong,.squire-idle-reminder span{display:block}.squire-idle-reminder span{font-size:.75rem;margin-top:3px;color:#bcc5bd}.shell .squire-idle-reminder button{min-height:44px}.squire-idle-reminder .notice-close{position:static;width:44px;min-width:44px;height:44px;border:0;background:transparent;color:#e6d0a6;font-size:1.375rem}@media(max-width:480px){.squire-idle-reminder{margin:8px;gap:5px;flex-wrap:wrap}.squire-idle-reminder>div{flex-basis:calc(100% - 54px)}.squire-idle-reminder>.secondary{order:3;width:100%}}
.gather-squires{grid-template-columns:repeat(4,minmax(0,1fr))}.gather-material-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.gather-squire.is-focus{border-color:#d4b278;box-shadow:0 0 0 1px #d4b27855}.squire-scene.fishing{background:radial-gradient(ellipse,#7fc4d626,transparent 70%),#10202a}
@media(max-width:1200px){.gather-squires,.gather-material-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:1000px){.gather-material-grid{grid-template-columns:1fr}}
@media(max-width:650px){.gather-squires{grid-template-columns:1fr}}

a[data-guide-topic="gathering"]{display:inline-flex;align-items:center;min-height:44px}
.gather-squire dl .gather-aura dd{text-align:right}.gather-squire dl .gather-aura.is-active dt{color:#e6c48c}.gather-squire dl .gather-aura .small-note{display:block;color:#aebbb6}
/* Clarity pass (19 Oct): the line under a material name sits on its own line, not run into the name. */
.gather-material-row small{display:block;color:#aab3a8}
/* Menu audit 23 Oct: trip length as hour chips (gathering-ui.js dispatchForm). The chosen chip is lit gold; the radio inside is hidden. */
.gather-hours{margin:0 0 10px;padding:0;border:0;min-width:0}
.gather-hours legend{padding:0;margin:0 0 6px;font-size:.875rem;color:var(--uk-gold-text,#f2d38a)}
.gather-hours-row{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px}
.gather-hours .gather-hour{grid-column:span 2}
.gather-hours .gather-hour:nth-child(4):nth-last-child(2),.gather-hours .gather-hour:nth-child(5):last-child{grid-column:span 3}
.gather-hours .gather-hour{position:relative;display:inline-flex;align-items:center;justify-content:center;min-width:0;min-height:44px;margin:0;padding:4px 6px;font-size:.875rem;white-space:nowrap;cursor:pointer}
.gather-hour:hover{border-color:var(--uk-gold-hi,#e0bd73)}
.gather-hour:has(input:checked){border-color:#e0bd73;background:linear-gradient(180deg,#c9a468,#8f6f3c);color:#1b1509}
.gather-hour:has(input:focus-visible){outline:2px solid #f2d38a;outline-offset:2px}
.gather-hour>input{position:absolute;inset:0;width:1px;height:1px;min-width:0;min-height:0;margin:0;padding:0;border:0;opacity:0;pointer-events:none}
/* Simpler screens (IRP_UI_SIMPLER_VERSION): the chosen skill on its own, the others folded under one line. These classes only exist while it is on. */
.gather-squires.gather-squires-one{grid-template-columns:minmax(0,860px)}
/* 0.75.0 UI QA: each trip chip prints when the squire is back under its length; the chips sit greyed while no squire can go; five equal chips on PC. */
.gather-squires-one .gather-hour:has(>.gather-back){flex-direction:column;gap:1px;line-height:1.15}
.gather-squires-one .gather-hour>.gather-back{font-size:.6875rem;font-weight:400;opacity:.85}
.gather-squires-one .gather-hours:disabled .gather-hour{opacity:.5;cursor:default}
@media(min-width:651px){.gather-squires-one .gather-hours-row{grid-template-columns:repeat(5,minmax(0,1fr))}.gather-squires-one .gather-hours .gather-hour:nth-child(n):nth-last-child(n){grid-column:auto}}
.gather-others{margin:0 0 20px}
.gather-others>summary{color:#e6c48c}
.gather-others>.gather-squires{margin-top:8px}

/* /game-navigation.css */
.nav-more,.nav-label-short{display:none}
@media(max-width:1000px){
 .mmo-shell>.topbar>nav{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr));flex-wrap:nowrap;overflow:visible!important}
 .mmo-shell>.topbar>nav>.nav-secondary{display:none!important}
 .mmo-shell>.topbar>nav>.nav-primary{width:100%;min-width:0;min-height:58px;padding:5px 2px;gap:3px;flex:none}
 .mmo-shell>.topbar>nav>.nav-primary .nav-label-short{display:block}
 .mmo-shell>.topbar>nav>.nav-primary .nav-label-full:has(+.nav-label-short){display:none}
 .mmo-shell>.topbar>nav>.nav-primary .nav-copy strong{font-size:.72rem;line-height:1.2}
 .nav-more{display:block;position:static;min-width:0}
 .nav-more>summary{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:58px;list-style:none;cursor:pointer;border:1px solid #625337;border-radius:6px;background:#18252a;color:#ddd8c9;font:600 .72rem/1.2 system-ui;padding:5px 2px}
 .nav-more>summary::-webkit-details-marker{display:none}
 .nav-more>summary .icon{width:20px;height:20px}
 .nav-more>summary:focus-visible{outline:2px solid #efcf91;outline-offset:2px}
 .nav-more[open]>summary{background:linear-gradient(180deg,#d9b873,#c9a468 45%,#8f6f3c);border-color:#e6c98f;color:#1b1509;box-shadow:inset 0 1px 0 #fff2c95c,inset 0 0 0 2px #8a682f66}
 .nav-more-panel{position:absolute;bottom:100%;left:8px;right:8px;background:#171f25;border:1px solid #aa874e;border-radius:8px 8px 0 0;padding:12px;box-shadow:0 -10px 28px #0009;max-height:calc(100dvh - var(--mobile-nav-height,80px) - var(--mobile-utility-height,70px) - 24px);overflow:auto;overscroll-behavior:contain;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .nav-more-panel>strong{grid-column:1/-1;font:600 1rem/1.4 system-ui;color:#f2dfb1;padding:4px}
 .mmo-shell>.topbar>nav .nav-more-panel>.nav-button{display:flex!important;align-items:center;justify-content:flex-start;flex-direction:row;min-width:0;min-height:48px;width:100%;padding:10px;gap:8px;text-align:left;white-space:normal}
 .nav-more-panel .nav-copy{min-width:0}
 .nav-more-panel .nav-copy strong{white-space:normal!important;overflow-wrap:normal;word-break:normal;line-height:1.4}
 .mmo-shell>.topbar>nav .nav-more-panel .nav-copy small{display:block;margin-top:3px;color:#c0bba9;font:400 .72rem/1.35 system-ui;white-space:normal}
 .nav-more-panel .icon{flex:0 0 20px}
 .nav-more-utilities{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:4px;padding-top:10px;border-top:1px solid #aa874e55}
 .nav-more-utilities>button{position:relative;display:flex;align-items:center;justify-content:center;gap:8px;min-width:0;min-height:48px;margin:0;padding:8px;font:600 .875rem/1.3 system-ui}
 .nav-more-utilities svg{width:20px;height:20px;flex:none}
 .nav-more-utilities .patch-new{position:absolute;top:3px;right:4px;margin:0;font-size:.5rem;line-height:.625rem;padding:0 3px}
}
@media(max-width:380px){.nav-more-panel{grid-template-columns:minmax(0,1fr)}}
@media(min-width:1001px){.nav-more-utilities{display:none}}
.release-archive>summary{cursor:pointer;min-height:44px;padding:14px 0;color:#e1bb80;font:600 1rem/1.5 system-ui}
.release-archive>summary small{display:block;font-weight:400;color:#b6b5b2}

.shell.mmo-shell.wayfarer-shell>.topbar>nav>.nav-account{display:flex;flex-direction:column;gap:8px;width:100%;min-width:0}
.shell .nav-account .account-block{display:flex;align-items:center;justify-content:center;gap:5px;width:100%;margin:0;flex-wrap:wrap}
.sidebar-character-portrait{display:grid;place-items:center;width:44px;height:44px;overflow:hidden;flex:none;border:1px solid #b8985b;background:#14202a}
.sidebar-character-portrait .outfit-portrait{width:40px;height:40px;display:block}
.shell .nav-account .account-block>.icon-button{display:flex;align-items:center;justify-content:center;width:44px;height:44px;min-width:44px;min-height:44px;padding:6px}
.player-menu{position:relative;width:100%;border:0;margin:0;padding:0}
.player-menu>summary{display:none}
.sidebar-actions{display:flex;flex-direction:column;gap:7px;width:100%}
.shell .nav-account .sidebar-actions>.chat-access{position:static;width:100%;margin:0}
.shell .nav-account .sidebar-actions>button,.shell .nav-account .sidebar-actions>a,.shell .nav-account .sidebar-actions>.chat-access>button{display:flex;align-items:center;justify-content:flex-start;gap:8px;width:100%;min-width:0;min-height:44px;height:auto;box-sizing:border-box;margin:0;padding:10px 12px;border:1px solid #c7a4678c;border-top:2px solid #d7b475;border-radius:3px;color:#e8ce92;background:linear-gradient(110deg,#b1873338,#172a47);box-shadow:inset 0 1px #ffe6a12b;font:600 .75rem/1.3 system-ui;text-decoration:none}
.sidebar-actions .icon,.sidebar-actions svg,.sidebar-actions .change-log-symbol{width:22px;height:22px;flex:0 0 22px;text-align:center;font-size:1.375rem;line-height:1.375rem}
.sidebar-actions .chat-unread{margin-left:auto}
.sidebar-actions>button{position:relative}
.sidebar-actions .patch-new{position:absolute;right:4px;top:2px;font-size:.5rem;line-height:.625rem;padding:0 3px;margin:0}
.sidebar-actions>button>span:not(.patch-new):not(.change-log-symbol){white-space:nowrap}
.shell .nav-account .sidebar-actions button:focus-visible,.shell .nav-account .sidebar-actions a:focus-visible{outline:2px solid #efcf91;outline-offset:2px}
@media(max-width:1000px){
 .shell.mmo-shell.wayfarer-shell>.topbar>nav>.nav-account{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px;align-items:center}
 .shell .nav-account .account-block{justify-content:flex-start;width:auto;gap:4px;flex-wrap:nowrap}
 /* Phone menu merge (option A): Chat and Bag are one-tap icons; Settings and Patch notes live at the foot of More; Discord stays in the top strip. */
 .player-menu{width:auto;grid-column:2;grid-row:1;position:static}
 .player-menu>.sidebar-actions{flex-direction:row;align-items:center;gap:6px;width:auto}
 .shell .nav-account .sidebar-actions>:is([data-action="patch-notes"],[data-action="settings"],.nav-discord){display:none}
 .shell .nav-account .sidebar-actions>.chat-access{position:relative;width:auto}
 .shell .nav-account .sidebar-actions>button,.shell .nav-account .sidebar-actions>.chat-access>button{width:44px;height:44px;min-height:44px;padding:0;gap:0;justify-content:center;font-size:0}
 .sidebar-actions .nav-inventory>span:not(.bag-upgrade-dot):not(.side-art){display:none}
 .sidebar-actions .chat-access .chat-unread{position:absolute;top:-7px;right:-7px;margin:0;min-width:18px;height:18px;padding:0 4px;border-radius:9px;box-sizing:border-box;font:700 .6875rem/1.125rem system-ui;text-align:center}
 .shell .nav-account>.nav-battle:not([hidden]){grid-column:1/-1;grid-row:2}
}

@media(max-width:1000px){.mmo-shell>.topbar>nav .nav-more-panel .nav-copy strong{font-size:min(.875rem,16px)!important;line-height:1.4!important}.nav-more:not([open])>.nav-more-panel{display:none}}

@media(min-width:761px) and (max-width:1000px){
 .mmo-shell>.topbar{height:auto;min-height:0}
 .mmo-shell>.topbar>nav>.nav-account{grid-column:1/-1;justify-content:flex-end}
 .mmo-shell>.topbar>nav .nav-more-panel{position:fixed;top:12px;bottom:12px;left:12px;right:12px;max-height:calc(100dvh - 24px);z-index:120;align-content:start}
}

@media(min-width:1001px){
 .mmo-shell>.topbar>nav>.nav-discovery{display:block;width:100%}
 .nav-discovery>summary{cursor:pointer;min-height:44px;padding:12px;color:#e8ce92;border:1px solid #786747;border-radius:4px}
 .nav-discovery .nav-more-panel{padding:8px 0;display:grid;gap:6px}
 .nav-discovery:not([open])>.nav-more-panel{display:none}
 .nav-discovery .nav-more-panel>strong{font:600 .8rem/1.4 system-ui;color:#e8ce92}
 .mmo-shell>.topbar>nav .nav-discovery .nav-more-panel>.nav-button{width:100%;min-height:48px;padding:9px;white-space:normal;text-align:left}
 .mmo-shell>.topbar>nav .nav-discovery .nav-copy small{display:block;font:400 .72rem/1.35 system-ui;color:#c0bba9;margin-top:3px}
}

/* Keep the current discovery destination in its direct desktop position. */
@media(min-width:1001px){.mmo-shell>.topbar>nav .nav-discovery .nav-more-panel>.nav-current-duplicate{display:none!important}}
@media(max-width:1000px){.nav-more-current>summary{border-color:#efcf91;box-shadow:inset 0 -3px #efcf91}}

/* 1001-1179px shows the same left sidebar as wide screens. The tablet top-bar rules (wrapping nav, a 100%-wide
   account block) pushed the account buttons into a hidden second column at the panel's right edge. Keep everything in one column. */
@media(min-width:1001px) and (max-width:1179px){
 .shell.mmo-shell.wayfarer-shell>.topbar>nav{display:flex!important;flex-direction:column;flex-wrap:nowrap;align-items:stretch;overflow-x:hidden;overflow-y:auto}
 .shell.mmo-shell.wayfarer-shell>.topbar>nav>.nav-account{display:flex;flex-direction:column;flex:0 0 auto;flex-wrap:nowrap;gap:8px;width:100%;min-width:0;margin:auto 0 0;padding:16px 0 0;border-top:1px solid #595047;grid-column:auto;justify-content:normal;align-items:stretch;box-sizing:border-box}
 .shell .nav-account .account-block{display:flex;flex-wrap:wrap;justify-content:center;gap:5px;width:100%}
 .shell .nav-account .player-menu{display:block;position:relative;width:100%;grid-column:auto}
 .shell .nav-account .player-menu>summary{display:none}
 .shell .nav-account .player-menu>.sidebar-actions{display:flex!important;flex-direction:column;position:static;width:100%;padding:0;border:0;background:none;box-shadow:none;max-height:none;overflow:visible}
}

/* New-player QA (7 Oct): new wearable gear in the bag. */
[data-open-inventory],[data-player-menu]>summary,[data-page="pack"]{position:relative}
.bag-upgrade-dot{position:absolute;top:3px;right:3px;width:10px;height:10px;border-radius:50%;background:#5fd36b;box-shadow:0 0 0 2px rgba(20,14,8,.9),0 0 6px rgba(95,211,107,.8);pointer-events:none}
/* Gems tab NEW tag (17 Oct): a new gem has arrived since the Gems tab was last open. */
.bag-tab-new{display:inline-block;vertical-align:middle;margin-left:6px;background:#e4bf6e;color:#1b1509;border:1px solid #fbe3ac;border-radius:3px;box-shadow:0 0 0 1px #0009,0 0 6px rgba(228,191,110,.7);font:800 .625rem/1 system-ui;letter-spacing:.04em;padding:2px 4px;pointer-events:none}

/* New-player QA (7 Oct): the notices above the game show one at a time, in page order (Alpha, squires, recovery, unspent points).
   Closing or acting on one shows the next. The world boss banner is timed, so it always shows. Phones with the notice strip move these into chips first. */
.shell:has(>.alpha-notice)>#squireIdleReminder,
.shell:has(>.alpha-notice)>.recovery-help,.shell:has(>#squireIdleReminder .squire-idle-reminder)>.recovery-help,
.shell:has(>.alpha-notice)>.path-refund-notice,.shell:has(>#squireIdleReminder .squire-idle-reminder)>.path-refund-notice,.shell:has(>.recovery-help)>.path-refund-notice{display:none}
/* New-player QA (7 Oct): a zone whose minimum level is above yours shows its level range in warning colour (entry is not blocked). */
.zone-level-under{color:#ff9a5c!important;font-weight:700}
/* Phone QA 2026-10-07: the "added to Party bag" and other adventure notices sat over the open More menu and hid its last row; hide them while a navigation menu is open (they come back when it closes). */
@media(max-width:1000px){body:has(.nav-more[open]) .adventure-notices{visibility:hidden}}
/* Reveal by milestone (GAPS D2, 9 Oct): a destination that just opened shows a small New until it is opened once; on phones the More button carries a dot while one waits inside. */
.nav-new{display:inline-block;margin-left:.45rem;padding:0 4px;border-radius:3px;background:#f4d78f;color:#1b1509;font:700 .62rem/1.1rem system-ui;letter-spacing:.04em;vertical-align:middle}
.nav-more>summary{position:relative}
.nav-more-new{position:absolute;top:5px;right:8px;width:9px;height:9px;border-radius:50%;background:#f4d78f;box-shadow:0 0 0 2px rgba(20,14,8,.9);pointer-events:none}
/* Simpler screens #10 (IRP_UI_PLAIN_VERSION): small group headings in the desktop sidebar and in the phone More sheet. The phone bottom bar shows none.
   A heading takes about 16px (its negative bottom margin cancels most of the nav gap); on short mouse windows grouped buttons give back 3px each so the list still fits above the pinned account block. */
.nav-group-heading{margin:2px 8px -4px;padding:0;color:#c9a96b;font:700 .625rem/12px system-ui;letter-spacing:.12em;text-transform:uppercase;pointer-events:none}
.mmo-shell>.topbar>nav>.nav-group-heading{flex:none;width:auto}
@media(min-width:1180px) and (max-height:1120px) and (pointer:fine){.shell.mmo-shell.wayfarer-shell>.topbar>nav>.nav-button.nav-grouped{min-height:33px}}
/* The selected sidebar item's highlight started right under its group heading, so "TOWN" sat on the gold box while ADVENTURE, SOCIAL and HELP had
   clear space (13 Oct pass). The highlight (and its gold edge) now starts 5px lower; the button and its click area are unchanged. */
@media(min-width:1001px){.shell.mmo-shell.wayfarer-shell>.topbar>nav>.nav-button.nav-grouped.active{box-shadow:none;background:linear-gradient(#e5c483,#e5c483) 0 100%/2px calc(100% - 5px) no-repeat,linear-gradient(90deg,#b69a503d,#18283a96) 0 100%/100% calc(100% - 5px) no-repeat}}
@media(max-width:1000px){.mmo-shell>.topbar>nav>.nav-group-heading{display:none!important}.nav-more-panel>.nav-group-heading{grid-column:1/-1;margin:2px 4px -4px}}
/* QA 2026-10-12 (PR285_QA.md #3): the grouped More sheet must fit between the account bar and the bottom bar at 390x844. Grouped buttons keep their 48px
   touch height with 6px instead of 10px vertical padding, and a New mark sits in the button's corner (as Patch notes' NEW does) instead of taking a line. */
@media(max-width:1000px){
 .mmo-shell>.topbar>nav .nav-more-panel>.nav-button.nav-grouped{position:relative;padding-top:6px;padding-bottom:6px}
 /* QA 2026-10-16: the Quests count (26) wrapped to "2" over "6" in this 17px pill inside the More sheet. */
 .nav-more-panel>.nav-button.nav-grouped .quest-ready-badge{flex:none;white-space:nowrap}
 .mmo-shell>.topbar>nav .nav-more-panel>.nav-button.nav-grouped :is(.nav-new,.boss-hunt-new){position:absolute;top:3px;right:4px;margin:0;padding:0 3px;border-radius:3px;background:#f4d78f;color:#1b1509;font:700 .5rem/.625rem system-ui;letter-spacing:.04em}
}
/* The desktop sidebar the same way, so a grouped list with every New mark still ends above the pinned account block at 1440x900. */
@media(min-width:1001px){
 .shell.mmo-shell>.topbar>nav>.nav-button.nav-grouped{position:relative}
 .shell.mmo-shell>.topbar>nav>.nav-button.nav-grouped>.nav-copy>:is(.nav-new,.boss-hunt-new){position:absolute;top:2px;right:4px;margin:0;padding:0 3px;border-radius:3px;background:#f4d78f;color:#1b1509;font:700 .5rem/.625rem system-ui;letter-spacing:.04em}
}
/* With the headings, a 901-1000px tall mouse window (1920x950) puts Patch notes, Settings and Discord on one icon row, as the desktop-fit change already does at 900px and below. */
@media(min-width:1180px) and (min-height:901px) and (max-height:1000px) and (pointer:fine){
 .shell.mmo-shell .nav-grouped-account .sidebar-actions{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))}
 .shell.mmo-shell .nav-grouped-account .sidebar-actions>:is(.chat-access,.nav-inventory){grid-column:1/-1}
 .shell.mmo-shell .nav-grouped-account .sidebar-actions>:is([data-action="patch-notes"],[data-action="settings"],.nav-discord){justify-content:center;padding-left:0;padding-right:0;font-size:0;gap:0}
 .shell.mmo-shell .nav-grouped-account .sidebar-actions>:is([data-action="patch-notes"],[data-action="settings"],.nav-discord)>span:not(.change-log-symbol):not(.patch-new):not(.side-art){display:none}
}

/* /skill-cast-hud.css */
/* Evermarch spell frames: the border casts; the artwork recovers. */
.raid-party-card>.path-portrait-skills{display:grid;grid-template-columns:repeat(auto-fit,minmax(44px,1fr));gap:6px;width:100%;max-width:248px;margin:6px 0 0;flex:none;min-width:0}
.mmo-shell .raid-party-card .path-portrait-skill{isolation:isolate;overflow:visible;border:0;border-radius:0;background:transparent;box-shadow:none;min-width:44px;min-height:44px;aspect-ratio:1;padding:5px!important}
.path-portrait-skill .path-art{width:100%;height:100%;border-radius:0;clip-path:polygon(12% 0,88% 0,100% 12%,100% 88%,88% 100%,12% 100%,0 88%,0 12%);overflow:hidden;filter:saturate(.9)}
.path-portrait-skill>i{inset:5px;height:auto!important;background:linear-gradient(#050912cb,#081321a6);clip-path:polygon(12% 0,88% 0,100% 12%,100% 88%,88% 100%,12% 100%,0 88%,0 12%);transform:scaleY(0);transform-origin:top;z-index:1;border-bottom:1px solid #d3b47966}
.path-portrait-skill>small{z-index:3;font:700 .8125rem/1 system-ui;color:#fff3d8;text-shadow:0 1px 3px #000,0 0 5px #000;pointer-events:none}
.skill-cast-frame{position:absolute;inset:0;width:100%;height:100%;fill:none;pointer-events:none;z-index:2;overflow:visible}
.skill-frame-track{stroke:#89754e;stroke-width:1.4}
.skill-frame-inner{stroke:#dbbb7466;stroke-width:.65}
.skill-cast-trace{stroke:#ffdb8d;stroke-width:3;stroke-linecap:round;stroke-dasharray:100;stroke-dashoffset:100;opacity:0;filter:drop-shadow(0 0 2px #e9ad43)}
.path-portrait-skill[data-skill-state=casting] .skill-cast-trace{opacity:1}
.path-portrait-skill[data-skill-state=casting]{box-shadow:0 0 13px #e2b05930}
.path-portrait-skill[data-skill-state=casting] .path-art{filter:saturate(1.1) brightness(1.12)}
.path-portrait-skill[data-skill-state=waiting] .path-art{filter:saturate(.35) brightness(.7)}
.path-portrait-skill[data-skill-state=defeated] .path-art{filter:grayscale(1) brightness(.45)}
.path-portrait-skill[data-ready-flash=true] .skill-frame-track{animation:skill-ready-glint .65s ease-out}
.path-portrait-skill:hover .skill-frame-track,.path-portrait-skill:focus-visible .skill-frame-track,.path-portrait-skill[aria-expanded=true] .skill-frame-track{stroke:#ffe2a2;stroke-width:2}
.path-portrait-skill:focus-visible{outline:2px solid #ffe2a2;outline-offset:2px}
.raid-party-card .portrait-cast[hidden]{display:none!important}
.raid-party-card .raid-afflictions:empty{display:none}
.mmo-shell .compact-party-card{padding:7px}
.mmo-shell .raid-party-card .raid-frame-title{margin-bottom:3px;gap:6px}
.mmo-shell .raid-party-card .party-status-portrait{position:relative;display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;min-height:44px;padding:0;border:0;background:transparent;box-shadow:none}
.party-status-portrait>.outfit-portrait,.party-status-portrait>img,.party-status-portrait>svg{width:36px;height:40px;object-fit:cover}
.party-status-portrait:after{content:attr(data-effect-count);position:absolute;right:0;bottom:0;min-width:14px;border:1px solid #83ac96;background:#17372b;color:#e1f1db;font:700 .5625rem/.875rem system-ui;border-radius:50%}
.party-status-portrait:not([data-effect-count]):after{display:none}
.party-status-portrait[data-harmful=true]:after{background:#582b32;border-color:#dc9582;color:#ffe5d2}
.party-status-portrait:focus-visible{outline:2px solid #e4c38a;outline-offset:1px}
.path-portrait-detail{border-top:2px solid #bb995e;background:linear-gradient(130deg,#202838,#0b1521);box-shadow:inset 0 1px #f7dca336;padding:12px}
@keyframes skill-ready-glint{0%{stroke:#fff3c4;stroke-width:3;filter:drop-shadow(0 0 5px #e8bb67)}100%{stroke:#89754e;stroke-width:1.4;filter:none}}
@media(prefers-reduced-motion:reduce){.path-portrait-skill[data-ready-flash=true] .skill-frame-track{animation:none}.skill-cast-trace{filter:none}}
@media(max-width:540px){.raid-party-card>.path-portrait-skills{max-width:240px;gap:7px}.path-portrait-skill>small{font-size:.75rem}}

/* Four fixed slots retain their size even before the first skill is learned. */
.mmo-shell .path-portrait-skills,
.mmo-shell .compact-party-card .raid-frame-skills .path-portrait-skills{display:grid;grid-template-columns:repeat(4,44px);gap:4px;justify-content:start;width:188px;max-width:none;flex:none}
.mmo-shell .path-portrait-skills>.path-portrait-skill,
.mmo-shell .path-portrait-skills>.path-portrait-empty{box-sizing:border-box;width:44px;height:44px;min-width:44px;min-height:44px;margin:0}
.path-portrait-empty{display:grid;place-items:center;border:1px solid #71634766;background:#0b141b88;color:#7e7e6d;font-size:1.25rem;clip-path:polygon(12% 0,88% 0,100% 12%,100% 88%,88% 100%,12% 100%,0 88%,0 12%)}
.shell.mmo-shell .combat-grid:not(.raid-group) #partyCards{grid-template-columns:repeat(auto-fit,minmax(12.75rem,1fr))}
.mmo-shell .raid-group #partyCards{grid-template-columns:repeat(auto-fit,minmax(204px,1fr))}
@media(max-width:1050px){.mmo-shell .raid-group #partyCards{grid-template-columns:repeat(auto-fit,minmax(204px,1fr));min-width:0}}

.combat-effect-row{display:flex;flex-wrap:wrap;gap:4px;margin:4px 0}.combat-effect-row[hidden]{display:none}.combat-effect-icon{position:relative;flex:0 0 36px;width:36px;height:40px;min-height:40px;padding:3px 3px 12px;border:1px solid #bea16a;background:#152824;color:#eed6a1;border-radius:4px}.combat-effect-icon.debuff{border-style:double;border-width:3px;background:#341f27}/* Only the icon itself, never the painting a sheet-cut skill icon nests inside it (path-art.js). */.combat-effect-icon>svg,.combat-effect-icon .path-icon{width:24px;height:24px;display:block}.combat-effect-icon .effect-art{width:27px;height:27px;margin:-2px 0 0 -1px;display:block;object-fit:contain;filter:drop-shadow(0 1px 1px #000a)}.combat-effect-icon>svg:not(.path-art) path{fill:none;stroke:currentColor;stroke-width:2;stroke-linejoin:round;stroke-linecap:round}.effect-polarity{position:absolute;right:1px;top:-3px;font:bold .8125rem system-ui}.effect-duration{position:absolute;bottom:0;left:0;right:0;font:.625rem system-ui;text-align:center;white-space:nowrap;overflow:hidden}.effect-fire{color:#ffb16e}.effect-poison{color:#bfe483}.effect-bleed{color:#ffafb2}.effect-slow{color:#a7e2ff}.effect-stun{color:#ffe39a}.effect-wound{color:#f0b2ef}.combat-effect-icon:focus-visible{outline:2px solid #fff0c0;outline-offset:2px}@media(pointer:coarse),(max-width:480px){.combat-effect-icon{flex-basis:44px;width:44px;height:44px;min-height:44px;padding:4px 6px 12px}.combat-effect-icon .effect-art{width:30px;height:30px;margin:-3px 0 0 -1px}}

/* Active equipped/imprinted Unique powers; independent of cooldown state. */
.skill-unique-badge{position:absolute;left:2px;bottom:2px;z-index:5;min-width:14px;padding:1px 2px;background:#211b12;color:#ffe0a0;border:1px solid #c9a254;border-radius:3px;font:bold .625rem/.75rem system-ui;pointer-events:none}.skill-unique-badge[hidden]{display:none}.path-loadout-slots button{position:relative}.skill-unique-details{border-left:2px solid #c9a254;padding:8px 10px;background:#b68d3820;margin:10px 0}.skill-unique-details>strong,.skill-unique-details b{color:#edce91}.skill-unique-details p{font-size:.8125rem;line-height:1.5;margin:8px 0;overflow-wrap:anywhere}

/* Tier III (IRP_SKILL_TIER3_VERSION=1): a fifth ability (the Ultimate) on the party frames. Only a bar of five matches. */
.mmo-shell .path-portrait-skills:has(>:nth-child(5)),.mmo-shell .compact-party-card .raid-frame-skills .path-portrait-skills:has(>:nth-child(5)){grid-template-columns:repeat(auto-fill,44px);width:auto;max-width:236px}

/* /ui-character.css */
/* Character screen (Gear tab) on the UI kit (switch IRP_UI_CHARACTER_VERSION, default off; public/ui-character.js). Page-local layout only: colours, frames and shadows come from ui-kit.css tokens and classes. */
/* The kit scopes heading type and the focus ring to .uk-page; the game screen scopes them here instead. */
.uc-screen :where(h1,h2,h3){margin:0;font-family:var(--uk-serif);font-weight:500;letter-spacing:.02em;color:var(--uk-gold-text);text-wrap:balance}
.uc-screen :focus-visible{outline:3px solid var(--uk-focus);outline-offset:2px}
/* .uk-stack / .uk-stat set display and beat the hidden attribute (kit request 10). */
.uc-screen [hidden]{display:none!important}
/* The Rows group heading is an h3 here: keep the kit's small caps size, not the heading size. */
.uc-screen h3.uk-rows-group{font:700 .72rem/1.3 var(--uk-sans);letter-spacing:.12em;color:var(--uk-ivory-dim)}
/* A painted item model or rune or charm art fills the slot (the game's own markup keeps its own look). */
.uc-screen .uk-slot>.uc-icon{display:grid;place-items:center}
.uc-screen .uk-slot .gear-icon{width:100%;height:100%;max-height:none;border:0;border-radius:0;box-shadow:none}
/* The slot buttons are the kit's: neutralise the older button rules that apply to every button in the game. */
.uc-screen .uk-slot{font:inherit}
.uc-screen .uk-slot.uc-blocked{cursor:default}
/* Spending attribute points (Pat, 27 Oct: "why are there 2 review buttons?" / "why is this so unaligned"): a card per attribute in one even grid,
   icon and name on top, its three 44 px buttons under them, and one action row with a single Review button. Four across on a wide screen, two on a phone. */
.uc-spend-head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:4px 16px;margin-bottom:12px}
.uc-left{margin:0;color:var(--uk-ivory-dim)}
.uc-left b{font:600 1.15rem var(--uk-serif);color:var(--uk-gold-text)}
.uc-alloc{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0 0 12px;padding:0;list-style:none}
.uc-alloc-row{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:8px 10px;padding:10px}
.uc-alloc-row.is-primary{border-color:var(--uk-gold)}
.uc-alloc-text{display:grid;gap:2px;min-width:0;line-height:1.25}
.uc-alloc-name{color:var(--uk-ivory)}
.uc-alloc-val{white-space:nowrap}
.uc-alloc-val b{font:600 1.1rem var(--uk-serif);color:var(--uk-gold-text)}
.uc-alloc-val .uc-draft{margin-left:4px;color:var(--uk-done)}
.uc-alloc-btns{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.uc-screen .uc-alloc-btns .uk-btn{min-width:0;padding-inline:2px;white-space:nowrap}
.uc-spend-foot{display:grid;gap:8px}
.uc-pending{margin:0;text-align:center;color:var(--uk-ivory-dim)}
.uc-pending b{color:var(--uk-done)}
.uc-screen .uc-actions{margin-top:16px;align-items:center}
/* The Reset attributes guide link sits beside the buttons, centred on them, instead of taking a share of the row. */
.uc-screen .uc-actions{flex-wrap:nowrap}.uc-screen .uc-actions>.uk-btn{flex:1 1 0;min-width:0}.uc-screen .uc-actions>.uk-help{flex:0 0 auto}
/* The Attack, Defense and Attributes headings get room above them (an older heading rule zeroed it, so they sat on the row above). */
.exp-page .uc-screen h3.uk-rows-group,.uc-screen h3.uk-rows-group{margin:14px 0 6px}
.uc-screen .uk-title-row+h3.uk-rows-group{margin-top:10px}
/* Equipment and Stats end on the same line on a wide screen: the equipment frame grows to the Stats frame's height and the portrait takes the extra room. */
@media(min-width:900px){
 .uc-screen .uk-split:has(>.uc-gear+.uc-stats){align-items:stretch}
 .uc-screen .uc-gear{display:flex;flex-direction:column}
 .uc-screen .uc-gear>.uk-doll{--uk-slot:76px;flex:1 1 auto;grid-template-rows:minmax(0,1fr) auto auto auto}
}
/* Below the two panels. */
.uc-more{display:grid;gap:var(--uk-gap);min-width:0}
.uc-all-stats>:not(summary){margin-top:var(--uk-gap)}
/* Spending panel: four cards across on a wide screen. */
@media(min-width:760px){.uc-alloc{grid-template-columns:repeat(4,minmax(0,1fr))}.uc-spend-foot{grid-template-columns:minmax(0,1fr) auto;align-items:center}.uc-pending{text-align:left}.uc-spend-foot>.uk-actions{grid-column:2}.uc-spend-foot .uk-actions>*{flex:0 1 auto;min-width:9.5rem}}
/* The game's painted item models carry a tier badge: keep it above the kit's 11.5 px text floor. */
.uc-screen .uk-slot .item-tier-badge{font-size:.72rem}
/* Attribute values can carry two decimals ("48.48"): keep each on one line inside its tile on a phone. */
.uc-screen .uk-attrs dd{white-space:nowrap}
@media(max-width:480px){.uc-screen .uk-attrs dd{font-size:.92rem}.uc-screen .uk-attrs>div{padding-inline:1px}}
/* The app's unspent-points badge on the Abilities tab: same 11.5 px floor. */
.uc-screen .attention-badge{font-size:.72rem}
/* The game's older heading rule (.exp-page h2) adds margins: the kit screen sets them itself. */
.exp-page .uc-screen :is(h1,h2,h3){margin:0}
/* Kit request 21: the slot label is 11.2 px in the kit; keep it at the 11.5 px floor here. */
.uc-screen .uk-slot-label{font-size:.72rem}
/* Gem socket dots (24 Oct): sit just above the slot label instead of on top of its text. Phones hide the label, so the dots keep the corner there. */
.uc-screen .uk-slot .gem-dots{left:4px;bottom:calc(.72rem*1.2 + 5px)}
@media(max-width:480px){.uc-screen .uk-slot .gem-dots{bottom:4px}}
/* Hero sheet (IRP_HERO_SHEET_VERSION, lib/hero-sheet.js; visual tune-up item 6, 23 Oct): on a phone the Hero tabs share one row instead of leaving Keystones alone.
   The Keystones tab's icon is drawn in keystone-altar.css. */
@media(max-width:760px){.mmo-shell .section-tabs.hs-tabs{display:grid;grid-template-columns:repeat(var(--hs-n,4),minmax(0,1fr));overflow:visible}.mmo-shell .section-tabs.hs-tabs>.section-tab{min-width:0;padding-inline:4px;font-size:.8125rem}}
/* The off-hand behind a two-handed weapon shows that weapon faded (kit .uk-slot.is-closed); its tier badge and sockets are not that slot's. */
.uc-screen .uk-slot.uc-blocked :is(.item-tier-badge,.gem-dots){display:none}
/* Phones hide slot names; empty slots keep theirs since they have no item to recognise. The closed off-hand keeps only the faded weapon there. */
@media(max-width:480px){.uc-screen .uk-slot.is-empty .uk-slot-label{display:block;padding:0}.uc-screen .uk-slot.uc-blocked .uk-slot-label{display:none}}
/* Full QA, 3 Nov: on a phone the XP numbers (2,552 / 2,746,298) dropped under "Experience to level 61" once they grew, while a hero on 0 XP kept them on
   the line, so two heroes' sheets looked different. A phone has no room for both on one line (a level 60 hero's numbers alone are 135 px), so on a phone
   the numbers always take their own line under the label, the same for every hero. */
@media(max-width:480px){.uc-screen .uk-meter-line>.uk-title-row{flex:1 1 100%;white-space:nowrap}.uc-screen .uk-meter-line>b{flex:1 1 100%;white-space:nowrap}}

/* /reddit-tracking.css */
.ad-privacy{box-sizing:border-box;width:min(34rem,calc(100vw - 2rem));max-height:85dvh;overflow:auto;padding:1.4rem;border:1px solid #88734d;border-radius:10px;background:#101b23;color:#e2ded1;box-shadow:0 12px 60px #0009;font:15px/1.5 system-ui,sans-serif}.ad-privacy::backdrop{background:#02080db8}.ad-privacy h2{margin:0 0 .8rem;color:#efd29a;font:600 23px/1.2 Georgia,serif}.ad-privacy p{margin:.7rem 0}.ad-privacy a{color:#b9dbea;text-decoration:underline}.ad-privacy-actions{display:flex;flex-wrap:wrap;gap:.7rem;margin-top:1rem}.ad-privacy-actions button{flex:1;min-height:44px;padding:.6rem .9rem;border:1px solid #88734d;border-radius:5px;background:#25323a;color:#f1e5ce;font:inherit;cursor:pointer}.ad-privacy-actions button:hover{background:#35454e}.ad-privacy-actions button:focus-visible,.ad-privacy-open:focus-visible{outline:2px solid #e5c384;outline-offset:3px}.ad-privacy-actions button:disabled{opacity:.5;cursor:not-allowed}.ad-privacy-open{position:fixed;bottom:max(6px,env(safe-area-inset-bottom));left:8px;z-index:1000;padding:5px 9px;border:1px solid #63583d;border-radius:4px;background:#101b23e8;color:#d5c8ac;font:12px system-ui;cursor:pointer}

/* /paladin-defeat.css */
.paladin-defeat-fallback{position:absolute;left:0;top:0;pointer-events:none}
.paladin-defeat-fallback[hidden]{display:none!important}
.paladin-resting-body{position:absolute;overflow:hidden;max-width:none;filter:drop-shadow(0 3px 3px #0006)}
.unit.paladin-fallen .respawn-clock{top:8px;left:0;transform:translateX(-50%);width:max-content;max-width:110px;padding:2px 5px;background:#0a1117b8;border:0;border-radius:3px;color:#ff7777;font:700 .75rem/1.2 Arial,sans-serif;text-shadow:0 1px 2px #000;pointer-events:none}

/* /class-tree.css */
.paths-page:has(.class-tree){max-width:1840px;width:100%}.paths-workspace.unified-tree-workspace{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:22px;align-items:start}.class-tree{min-width:0;color:#e7dcc7;--branch-tone:#caa569;border:1px solid #76614070;background:#0b1018;box-shadow:0 15px 55px #0005;position:relative}.class-tree:before,.class-tree:after{content:"✦";color:#b6985d;position:absolute;top:-10px;font-size:1.0625rem;z-index:2}.class-tree:before{left:-7px}.class-tree:after{right:-7px}.tree-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 18px;background:linear-gradient(90deg,#1b1c20,#111923);border-bottom:1px solid #8b74404f}.tree-toolbar nav,.tree-zoom{display:flex;gap:5px;align-items:center}.tree-toolbar button{background:transparent!important;border:1px solid transparent!important;border-radius:2px!important;color:#b5b7bd!important;font-size:.75rem!important;padding:8px 12px!important;min-height:44px;white-space:nowrap}.tree-toolbar button[aria-pressed=true]{color:#eadab7!important;border-color:#b7965770!important;background:#9a74351c!important}.tree-toolbar button[data-tree-focus]:not([data-tree-focus=all]){color:var(--branch-tone)!important}.tree-toolbar button:hover{border-color:#bea169!important}.tree-zoom button{font-size:1.0625rem!important;min-width:44px;padding:6px!important}.tree-zoom button[data-tree-zoom=fit]{font-size:.6875rem!important}.tree-legend{display:flex;gap:17px;align-items:center;flex-wrap:wrap;padding:10px 18px;font-size:.625rem;letter-spacing:.04em;color:#929bac;border-bottom:1px solid #202939}.tree-legend span{display:flex;gap:6px;align-items:center}.tree-legend i{width:6px;height:6px;border:1px solid #586171;border-radius:50%}.tree-legend i.learned{background:#d6b274;border-color:#d6b274;box-shadow:0 0 6px #d6b274}.tree-legend i.available{border-color:#d6b274}.class-tree-viewport{height:min(79vh,1080px);min-height:490px;overflow:auto;overscroll-behavior:contain;scrollbar-color:#725d3c #0e1420;position:relative;background:radial-gradient(ellipse at 18% 36%,#8b321b21,transparent 35%),radial-gradient(ellipse at 51% 41%,#264f7227,transparent 35%),radial-gradient(ellipse at 84% 45%,#4d2d7726,transparent 35%),#0b1018}.class-tree-viewport:focus-visible{outline:2px solid #dab878;outline-offset:-3px}.class-tree-stage{position:relative;margin:0 auto}.class-tree-canvas{position:absolute;left:0;top:0;width:1380px;height:1130px;transform-origin:0 0;background-image:radial-gradient(#a7bcd922 .6px,transparent .6px);background-size:26px 26px}.class-tree-root{position:absolute;left:50%;top:24px;transform:translateX(-50%);width:180px;height:112px;text-align:center;z-index:1}.tree-crest{width:58px;height:58px;margin:0 auto 7px;display:grid;place-items:center;border:1px solid #c9a565;transform:rotate(45deg);background:linear-gradient(135deg,#323239,#101721);box-shadow:0 0 0 5px #151c24,0 0 0 6px #6d5d3e,0 0 40px #d4a15520}.tree-crest:before{content:"";position:absolute;inset:5px;border:1px solid #ad8e5459}.tree-crest span{transform:rotate(-45deg);font:2.125rem Georgia,serif;color:#edcf92;text-shadow:0 2px #000}.class-tree-root h2{font:1.3125rem Georgia,serif;margin:14px 0 3px;color:#e9d4a8;letter-spacing:.18em;text-transform:uppercase}.class-tree-root small{font-size:.5625rem;letter-spacing:.17em;color:#8f9aa8}.tree-root-lines{position:absolute;inset:0;width:1380px;height:1040px;pointer-events:none}.tree-root-lines path{fill:none;stroke:#9c80516b;stroke-width:1.5}.class-tree-path{position:absolute;top:0;width:460px;height:1030px}.class-tree-path[hidden]{display:none}.class-tree-path-root{position:absolute;top:162px;left:50%;transform:translateX(-50%);width:185px;text-align:center}.class-tree-path-root small{font-size:.5625rem;letter-spacing:.2em;text-transform:uppercase;color:#8a95a4}.class-tree-path-root h3{margin:5px 0 0;font:1.5rem Georgia,serif;letter-spacing:.05em;color:var(--branch-tone);text-shadow:0 0 24px var(--branch-tone)}.class-tree-path-root:after{content:"";display:block;height:1px;width:110px;margin:12px auto 0;background:linear-gradient(90deg,transparent,var(--branch-tone),transparent)}.tree-branch-lines{position:absolute;width:460px;height:1040px;inset:0;pointer-events:none}.tree-link{fill:none;stroke:var(--branch-tone);stroke-opacity:.3;stroke-width:2}.tree-link.learned{stroke-opacity:.8;filter:drop-shadow(0 0 3px var(--branch-tone))}.class-tree-skill{position:absolute;z-index:2;width:166px;height:130px;transform:translate(-50%,-32px);text-align:center}.class-tree-node{position:absolute;top:0;left:50%;transform:translateX(-50%);width:64px;height:64px;min-height:0!important;border-radius:50%!important;border:2px solid #59616b!important;background:#0b121b!important;padding:5px!important;box-shadow:0 3px 9px #000b,0 0 0 4px #0d1420;overflow:visible!important;color:#b9bbbc!important;transition:box-shadow .15s,border-color .15s}.class-tree-node-icon{display:block;width:50px;height:50px;overflow:hidden;border-radius:50%;background:#141b23}.class-tree-node-icon svg,.class-tree-node-icon img{width:100%;height:100%;display:block;object-fit:cover}.class-tree-skill.locked .class-tree-node-icon{filter:saturate(.45) brightness(.62)}.class-tree-skill.available .class-tree-node{border-color:var(--branch-tone)!important}.class-tree-skill.learned .class-tree-node{border-color:#cbaa67!important;box-shadow:0 0 0 4px #171b20,0 0 0 5px #9e7c405f,0 0 22px #ae803a30}.class-tree-node.selected{border-color:#ffe0a0!important;box-shadow:0 0 0 4px #151b24,0 0 0 5px #e0b766,0 0 29px #d6b27466!important}.class-tree-node.selected:before{content:"";position:absolute;inset:-12px;border:1px solid #b28e4b70;border-radius:50%;border-left-color:transparent;border-right-color:transparent}.class-tree-node:hover{border-color:#f6d798!important;box-shadow:0 0 24px #d6b27455}.class-tree-rank{position:absolute;left:50%;bottom:-6px;transform:translateX(-50%);border:1px solid #8c754e;background:#151b23;border-radius:3px;min-width:34px;padding:1px 4px;line-height:.875rem;font:.625rem Georgia,serif;color:#e9d9b8;white-space:nowrap}.class-tree-slot{position:absolute;right:-6px;top:-3px;display:grid;place-items:center;width:17px;height:17px;background:#bd9857;border:1px solid #e2c184;border-radius:50%;color:#121821;font-weight:700;font-size:.625rem}.class-tree-level{position:absolute;top:-18px;left:0;width:100%;font-size:.5625rem;letter-spacing:.1em;color:#98a2b2}.class-tree-skill-name{position:absolute;top:76px;left:-12px;width:190px;font:.875rem Georgia,serif;line-height:1.125rem;color:#cccece;text-shadow:0 1px 4px #000,0 0 5px #000;background:radial-gradient(ellipse,#0b1018dd,transparent 76%);pointer-events:none}.class-tree-skill.learned .class-tree-skill-name{color:#ebd5a8}.class-tree-upgrades{position:absolute;top:107px;left:50%;transform:translateX(-50%);display:flex;gap:21px;width:max-content}.class-tree-upgrades:before{content:"";position:absolute;top:-9px;left:13px;right:13px;height:18px;border-top:1px solid #8b76544d;border-left:1px solid #8b76544d;border-right:1px solid #8b76544d}.class-tree-upgrade{position:relative;width:26px;height:26px;min-height:0!important;display:grid;place-items:center;padding:0!important;border-radius:2px!important;border:1px solid #68707b!important;background:linear-gradient(135deg,#263140,#10151f)!important;transform:rotate(45deg);box-shadow:0 2px 5px #0008;color:#9ba6b8!important}.class-tree-upgrade span{transform:rotate(-45deg);font:.625rem Georgia,serif;line-height:1}.class-tree-upgrade.chosen{color:#ffe4a5!important;border-color:#deb66a!important;background:linear-gradient(135deg,#87683b,#3f311f)!important;box-shadow:0 0 12px #d9a85a55}.class-tree-upgrade:hover{border-color:#f3d491!important;color:#f3d491!important}.class-tree-subbranch{display:contents}.class-tree .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.tree-foundation-rule{position:absolute;top:970px;left:12%;width:76%;height:1px;background:linear-gradient(90deg,transparent,#8d755850,transparent);text-align:center;z-index:1}.tree-foundation-rule span{position:relative;top:-6px;padding:0 20px;font-size:.5625rem;letter-spacing:.19em;color:#9c8c71;background:#0b1018}.class-tree-foundations{position:absolute;inset:0;pointer-events:none}.class-tree-foundations .class-tree-skill{pointer-events:auto;--branch-tone:#c3b18b}.class-tree-foundations .class-tree-node{width:48px;height:48px;top:8px;border-radius:8px!important}.class-tree-foundations .class-tree-node-icon{width:34px;height:34px;border-radius:3px}.class-tree-foundations .class-tree-skill-name{font-size:.75rem;top:66px}.class-tree-foundations .class-tree-level{display:none}.class-tree[data-focus=single] .tree-root-lines{display:none}.class-tree[data-focus=single] .class-tree-foundations{display:none}.class-tree[data-focus=single] .tree-foundation-rule{display:none}.tree-map-hint{padding:9px 15px;margin:0!important;background:#101722;color:#9aa5b4;font-size:.6875rem!important;border-top:1px solid #8b744032;line-height:1.5}.class-tree button:focus-visible{outline:3px solid #ecd29b;outline-offset:6px}.tree-build-management{margin:0 0 18px;border:1px solid #7163484d;background:#111823}.tree-build-management>summary{padding:12px 18px;color:#cbbb9b;font-size:.8125rem;cursor:pointer}.tree-build-management[open]{padding-bottom:14px}.tree-build-management .path-loadout,.tree-build-management .skill-specs{margin:12px}.class-tree-detail{position:sticky;top:16px;max-height:calc(100dvh - 32px);overflow-y:auto;scrollbar-gutter:stable;scrollbar-color:#766140 #0e1520}.unified-tree-workspace .path-inspector{position:static;margin:0}.skill-upgrade-details{padding:18px;border:1px solid #89704466;background:linear-gradient(145deg,#19212c,#101722);margin-bottom:14px}.skill-upgrade-details h3{font:1.375rem Georgia,serif;color:#e8d0a0;margin:14px 0}.skill-upgrade-details>p{font-size:.75rem;color:#aeb8c5;line-height:1.6}.skill-upgrade-option{padding:14px;margin:14px 0;border:1px solid #59657566;background:#0d1520}.skill-upgrade-option h4{margin:0 0 8px;font:1.0625rem Georgia,serif;color:#e1c791}.skill-upgrade-option p{font-size:.75rem;line-height:1.65}.skill-upgrade-option.previewed{border-color:#ddbb78;box-shadow:inset 3px 0 #c6a15f}.skill-upgrade-option.chosen{border-color:#98bbaa}.skill-upgrade-option button{width:100%;min-height:44px;white-space:normal;font-size:.75rem}.upgrade-tradeoff{color:#a5b2c3;font-style:italic}.skill-upgrade-option:focus{outline:2px solid #eccb80;outline-offset:2px}
@media(max-width:1600px){.paths-workspace.unified-tree-workspace{grid-template-columns:minmax(0,1fr)}.class-tree-detail{position:static;max-height:none;overflow:visible}.unified-tree-workspace .path-back{display:inline-flex}.class-tree-viewport{height:72vh}.class-tree-skill-name{font-size:.9375rem}.class-tree-upgrade{width:31px;height:31px}.class-tree-upgrades{gap:17px}.tree-toolbar{flex-wrap:wrap;gap:5px}.tree-toolbar nav{flex:1;justify-content:space-between}.tree-toolbar button{padding:8px!important}.tree-legend{gap:10px}.tree-legend span:last-child{margin-left:auto}}
@media(max-width:600px){.tree-toolbar{padding:9px}.tree-toolbar nav{width:100%;flex:none}.tree-toolbar nav button{font-size:.75rem!important;min-height:44px}.tree-zoom{width:100%;justify-content:flex-end}.tree-zoom button{min-height:44px}.tree-legend{font-size:.5625rem;padding:8px}.tree-legend span:last-child{width:100%;margin:0}.class-tree-viewport{height:70vh;min-height:450px}.tree-map-hint{font-size:.625rem!important}.class-tree-detail .path-inspector,.skill-upgrade-details{padding:16px}.class-tree-upgrade:after{content:"";position:absolute;inset:-5px}.class-tree-upgrade{width:34px;height:34px}.class-tree-upgrade span{font-size:.8125rem}.class-tree-upgrades{gap:10px;top:100px}.paths-page:has(.class-tree){padding-left:8px;padding-right:8px}}
/* Upgrade comparison lives in a native modal: background stays inert; Escape closes. */
.skill-upgrade-launch{padding:22px 18px;margin-top:16px;border:1px solid #8b704452;background:linear-gradient(135deg,#252535,#101924)}.skill-upgrade-launch small{font-size:.5625rem;letter-spacing:.13em;color:#bd9c66}.skill-upgrade-launch h3{font:1.25rem Georgia,serif;color:#ead5ac;margin:12px 0}.skill-upgrade-launch p{font-size:.75rem;line-height:1.6}.skill-upgrade-launch button{width:100%;min-height:44px}
.skill-upgrade-dialog{box-sizing:border-box;width:min(1050px,calc(100vw - 40px));max-width:none;max-height:calc(100dvh - 40px);padding:0;overflow:auto;border:1px solid #aa8755;border-radius:12px;color:#e8e0d0;background:radial-gradient(ellipse at 50% 0,#44344b80,transparent 65%),#101722;box-shadow:0 30px 100px #000c,0 0 0 5px #090e17b0;scrollbar-color:#826948 #111823}.skill-upgrade-dialog::backdrop{background:#030811e6}.upgrade-dialog-close{position:absolute;right:16px;top:14px;z-index:2;width:44px;height:44px;padding:0!important;border:1px solid #7b715e80!important;background:#121924!important;color:#d2bc94!important;font-size:1.6875rem!important}.upgrade-dialog-heading{display:flex;gap:20px;align-items:center;padding:34px 40px 27px;border-bottom:1px solid #b1925c35}.upgrade-dialog-heading h2{font:2.125rem Georgia,serif;color:#f0d9ac;margin:5px 0 8px}.upgrade-dialog-heading p{margin:0;font-size:.8125rem;color:#b4bac4}.upgrade-dialog-heading .eyebrow{font-size:.5625rem;letter-spacing:.2em;color:#bd9d6a}.upgrade-parent-icon{width:68px;height:68px;display:grid;place-items:center;border:1px solid #b49b65;border-radius:50%;background:#111522;box-shadow:0 0 0 5px #b4945730}.upgrade-parent-icon img,.upgrade-parent-icon svg{width:51px!important;height:51px!important}.upgrade-point-cost{margin-left:auto;margin-right:28px;white-space:nowrap;font-size:.625rem;letter-spacing:.12em;color:#d9bc86;border:1px solid #a68b5544;padding:12px}.upgrade-choice-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;padding:28px 30px}.upgrade-choice-grid .skill-upgrade-option{margin:0;padding:24px 22px 20px;position:relative;display:flex;flex-direction:column;border:1px solid #67718350;border-radius:7px;background:radial-gradient(ellipse at 50% 0,color-mix(in srgb,var(--upgrade-tone) 14%,transparent),transparent 65%),#0c1420;min-width:0}.upgrade-choice-grid .skill-upgrade-option.previewed{border-color:var(--upgrade-tone);box-shadow:0 0 22px color-mix(in srgb,var(--upgrade-tone) 9%,transparent)}.upgrade-choice-grid .skill-upgrade-option.chosen{border-color:#d7b77b;box-shadow:inset 0 3px #d7b77b,0 0 22px #d7b77b12}.upgrade-card-art{width:90px;height:90px;position:relative;display:grid;place-items:center;align-self:center;margin:3px 0 24px}.upgrade-card-orbit{position:absolute;inset:3px;border:1px solid var(--upgrade-tone);transform:rotate(45deg);border-radius:15px;box-shadow:0 0 22px color-mix(in srgb,var(--upgrade-tone) 20%,transparent)}.upgrade-card-art img,.upgrade-card-art svg{position:relative;width:53px!important;height:53px!important;z-index:1}.upgrade-numeral{position:absolute;bottom:-9px;background:#131c28;color:var(--upgrade-tone);font:.75rem Georgia,serif;padding:3px 10px;border:1px solid var(--upgrade-tone);z-index:2}.upgrade-use-case{text-align:center;font-size:.625rem;letter-spacing:.1em;text-transform:uppercase;color:var(--upgrade-tone);line-height:1.5;min-height:30px}.upgrade-choice-grid h3{font:1.375rem Georgia,serif;color:#f0dfbd;text-align:center;line-height:1.2;margin:8px 0 15px;min-height:52px}.upgrade-choice-grid p{font-size:.8125rem;line-height:1.75}.upgrade-effect{margin:0 0 14px;color:#d3d8de}.upgrade-choice-grid .upgrade-tradeoff{padding-top:14px;border-top:1px solid #75829935;font-size:.75rem;color:#a8b4c5;margin:0 0 20px}.upgrade-card-action{margin-top:auto}.upgrade-card-action button{min-height:46px!important;border-color:color-mix(in srgb,var(--upgrade-tone) 50%,transparent)!important;background:color-mix(in srgb,var(--upgrade-tone) 10%,#121b27)!important;color:#eadbc0!important}.upgrade-card-action button:disabled{opacity:.75}.upgrade-selected-label{display:block;text-align:center;font-size:.6875rem;color:#e8c989;margin:0 0 9px}.upgrade-dialog-footer{display:flex;align-items:center;justify-content:space-between;gap:25px;border-top:1px solid #b1925c35;padding:20px 32px;background:#0b121b70}.upgrade-dialog-footer span{max-width:580px;color:#a5afbe;font-size:.75rem;line-height:1.65}.upgrade-dialog-footer button{white-space:nowrap;min-height:44px}.skill-upgrade-dialog button:focus-visible{outline:2px solid #f4d8a0;outline-offset:4px}
@media(max-width:700px){.skill-upgrade-dialog{width:calc(100vw - 20px);max-height:calc(100dvh - 20px)}.upgrade-dialog-heading{padding:25px 20px;gap:15px}.upgrade-dialog-heading h2{font-size:1.6875rem}.upgrade-parent-icon{width:48px;height:48px;flex-shrink:0}.upgrade-parent-icon img,.upgrade-parent-icon svg{width:38px!important;height:38px!important}.upgrade-point-cost{display:none}.upgrade-choice-grid{grid-template-columns:1fr;padding:20px;gap:16px}.upgrade-choice-grid .skill-upgrade-option{padding:20px}.upgrade-card-art{width:64px;height:64px;margin-bottom:19px}.upgrade-card-art img,.upgrade-card-art svg{width:42px!important;height:42px!important}.upgrade-use-case,.upgrade-choice-grid h3{min-height:0}.upgrade-choice-grid h3{font-size:1.5rem}.upgrade-dialog-heading>div:nth-child(2){padding-right:30px}.upgrade-dialog-close{right:10px;top:10px}.upgrade-dialog-footer{position:sticky;bottom:0;padding:12px 16px;background:#101721;gap:10px}.upgrade-dialog-footer span{font-size:.625rem}.upgrade-dialog-footer button{font-size:.6875rem}}
.skill-upgrade-dialog{position:fixed;inset:0;margin:auto}
dialog.skill-upgrade-dialog{position:fixed;inset:0;margin:auto}
.skill-upgrade-dialog .upgrade-error{margin:12px 0;padding:12px 16px;border:1px solid #cc7468;border-radius:6px;background:#391d24;color:#ffe2dc;line-height:1.5;}
/* Threat and tactics (IRP_THREAT_TACTICS_VERSION=1): the three tactic menus in the tree's top bar (drawn by public/path-ui.js tacticSlots). */
.tree-tactics{display:flex;gap:6px;align-items:center;position:relative;flex:0 1 auto;min-width:0}
.tree-tactic{position:relative;min-width:0}
.tree-tactic>summary{list-style:none;display:flex;align-items:center;gap:8px;min-height:44px;padding:3px 10px 3px 4px;border:1px solid #b7965740;border-radius:2px;background:#0d151d;cursor:pointer;color:#eadab7;min-width:0}
.tree-tactic>summary::-webkit-details-marker{display:none}
.tree-tactic>summary:hover,.tree-tactic[open]>summary{border-color:#bea169;background:#9a74351c}
.tree-tactic>summary:focus-visible{outline:2px solid #e0bd73;outline-offset:2px}
.tree-tactic-icon{display:block;flex:none;width:36px;height:36px}.tree-tactic-icon svg{display:block;width:100%;height:100%}
.tree-tactic-text{display:grid;min-width:0;line-height:1.15}.tree-tactic-text small{font:600 .625rem/1.2 system-ui;letter-spacing:.09em;text-transform:uppercase;color:#c9a96a}
.tree-tactic-text b{font:600 .75rem/1.25 system-ui;color:#f2e4c4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tree-tactic-menu{position:absolute;top:calc(100% + 6px);left:0;z-index:40;width:320px;max-width:calc(100vw - 32px);display:grid;gap:4px;padding:6px;background:linear-gradient(180deg,#18212c,#0e1620);border:1px solid #b7965780;border-top:2px solid #c4a165;box-shadow:0 14px 30px #000a}
.tree-tactic:last-child .tree-tactic-menu{left:auto;right:0}
.tree-toolbar .tree-tactic-option{display:grid!important;grid-template-columns:40px minmax(0,1fr);gap:10px;align-items:center;text-align:left;white-space:normal!important;padding:6px 8px!important;min-height:52px;color:#eadab7!important;width:100%}
.tree-tactic-option .tree-tactic-icon{width:40px;height:40px}
.tree-tactic-option b{display:block;font:600 .8125rem/1.25 system-ui;color:#f2e4c4}.tree-tactic-option small{display:block;font:.75rem/1.35 system-ui;color:#aeb7c1;margin-top:2px}
.tree-toolbar .tree-tactic-option[aria-pressed=true]{border-color:#e0bd73!important;background:#9a743526!important;cursor:default;opacity:1}
.tree-tactic-more{margin:4px 6px 2px;font:.6875rem/1.4 system-ui;color:#9fa9b3}.tree-tactic-option small.tree-tactic-clash{color:#e0bd73}
.tree-toolbar:has(.tree-tactics){flex-wrap:wrap}.tree-toolbar:has(.tree-tactics) nav{flex:0 1 auto;justify-content:flex-start}.tree-tactics{flex:1 1 520px;justify-content:center}.tree-tactic{flex:0 1 210px}.tree-toolbar:has(.tree-tactics) .tree-zoom{width:auto;margin-left:auto}
.tree-tactic-menu .tree-tactic-more{font-size:.75rem!important}
@media(max-width:600px){.tree-tactics{flex-basis:100%}.tree-tactic{position:static;flex:1 1 0}.tree-tactic>summary{padding:3px 5px 3px 3px;gap:5px}.tree-tactic>summary .tree-tactic-icon{width:28px;height:28px}.tree-tactic-text b{white-space:normal;font-size:.6875rem;line-height:1.15}.tree-tactic-text small{font-size:.625rem;letter-spacing:.04em}.tree-tactic-menu,.tree-tactic:last-child .tree-tactic-menu{left:0;right:0;width:auto;max-width:none}}
/* Skill page menus (IRP_SKILL_MENUS_VERSION=1; public/skill-menus.js): Abilities, Saved builds, Auto-switch and the tactic menus share one row of the tree's top bar. */
.tree-toolbar:has(.tree-menus){flex-wrap:wrap}.tree-toolbar:has(.tree-menus) nav{flex:0 1 auto;justify-content:flex-start}.tree-toolbar:has(.tree-menus) .tree-zoom{width:auto;margin-left:auto}
.tree-menus{display:flex;gap:6px;align-items:center;position:relative;flex:1 1 100%;order:3;justify-content:flex-start;min-width:0}
.tree-menus>.tree-tactic{flex:0 1 200px}
.tree-menu-panel{width:min(760px,calc(100vw - 32px));max-height:min(70vh,640px);overflow:auto;overscroll-behavior:contain;padding:10px 14px;display:block}
.tree-menus>.tree-menu{position:static}.tree-menus>.tree-menu>.tree-menu-panel{left:0;right:auto;width:min(760px,100%)}
.tree-menus>.tree-tactic:not(.tree-menu):last-child .tree-tactic-menu{left:auto;right:0}
.tree-menu-panel>section,.tree-menu-panel>details,.tree-menu-panel>.uk-card{margin:0!important;border:0!important;background:none!important;box-shadow:none!important;padding:0!important}
.tree-menu-panel .path-loadout>header>p,.tree-menu-panel .path-unused-skills>p,.tree-menu-panel .skill-specs>header>p{display:none}
.tree-menu-panel .path-loadout>header h2,.tree-menu-panel .skill-specs>header h2{font-size:1rem;margin:0 0 8px}
.tree-menu-panel .ab-summary{margin:0 0 8px}
@media(max-width:600px){.tree-menus{flex-wrap:wrap;gap:4px}.tree-menus>.tree-tactic{position:static;flex:1 1 calc(33% - 4px)}.tree-menus .tree-tactic .tree-tactic-menu{left:0;right:0;width:auto;max-height:65vh}.tree-menus>.tree-tactic>summary{padding:3px 5px 3px 3px;gap:5px}.tree-menus .tree-tactic>summary .tree-tactic-icon{width:28px;height:28px}}
@media(max-width:520px){.tree-menu-panel .path-loadout-slots{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Phones held sideways show the tree at the same 0.72 zoom as upright phones, so they get the same 44 px upgrade diamonds (I/II/III). */
@media(orientation:landscape) and (max-height:500px) and (max-width:1000px){.class-tree-upgrade:after{content:"";position:absolute;inset:-7px}.class-tree-upgrade{width:43px;height:43px}.class-tree-upgrade span{font-size:.8125rem}.class-tree-upgrades{gap:24px;top:100px}}
/* Class skill overhaul (IRP_CLASS_SKILLS_VERSION=1): three columns (Offense, Defense, Utility) by two tiers. Only drawn while the switch is on. */
.class-tree-path:has(.class-tree-columns) .class-tree-skill{width:146px}
.class-tree-columns span{position:absolute;top:252px;transform:translateX(-50%);font-size:.6875rem;letter-spacing:.14em;color:var(--branch-tone,#c3b18b);white-space:nowrap}
/* Phone upgrade dialog: the same skill icon repeats on all three cards, so keep it small and let the effect text lead. */
@media(max-width:480px){.upgrade-choice-grid{padding:14px;gap:12px}.upgrade-choice-grid .skill-upgrade-option{padding:16px}.upgrade-card-art{width:44px;height:44px;margin:0 0 16px}.upgrade-card-art img,.upgrade-card-art svg{width:30px!important;height:30px!important}.upgrade-choice-grid h3{font-size:1.25rem}.upgrade-dialog-heading{padding:18px 16px}.upgrade-dialog-footer span{font-size:.75rem}.upgrade-dialog-footer button{white-space:nowrap}}
/* Tier III (IRP_SKILL_TIER3_VERSION=1): the Ultimate row under Tier II and its lock note. Nothing here renders while the switch is off. */
.class-tree-tier3{position:absolute;left:12%;width:76%;text-align:center;z-index:1;border-top:1px solid #c9a25455;padding-top:4px}.class-tree-tier3 span{display:block;font-size:.6875rem;letter-spacing:.16em;color:#e2c27e}.class-tree-tier3 small{display:block;margin-top:2px;font-size:.75rem;color:#e4b194}.class-tree-skill.ultimate .class-tree-node-icon{outline:2px solid #c9a254;outline-offset:2px;border-radius:9px;box-shadow:0 0 14px #c9a25466}.class-tree-skill.ultimate.locked .class-tree-node-icon{outline-color:#6d6450;box-shadow:none}
/* Class skill overhaul (IRP_CLASS_SKILLS_VERSION=1): Pat's painted badges (skill-badges-v1, a 3×4 sprite) for the slot types and the upgrade styles. Only written into the page while the switch is on. */
.skill-badge{display:inline-block;flex:none;width:1.6em;height:1.6em;margin-right:.4em;vertical-align:-.5em;background:url(/assets/spell-fx/skill-badges-v1.webp) no-repeat;background-size:300% 400%}
.skill-badge[data-badge=offense]{background-position:0 0}.skill-badge[data-badge=defense]{background-position:50% 0}.skill-badge[data-badge=utility]{background-position:100% 0}
.skill-badge[data-badge=edge]{background-position:0 33.333%}.skill-badge[data-badge=guard]{background-position:50% 33.333%}.skill-badge[data-badge=party]{background-position:100% 33.333%}
.upgrade-use-case .skill-badge{width:24px;height:24px;vertical-align:middle}

/* Second fix (14 Oct): bigger slot badges. The gold number on a tree skill (its ability-bar slot) grows from 17px to 30px and sits further out on
   the node's corner, so it stays off the skill icon; the tree's zoom draws it at about 22–25px on phone and 1440px screens. The Offense, Defense and
   Utility badge beside each ability-bar slot name grows from 1.6em (about 16px) to 28px; the painted mark inside it is about 22px. */
.class-tree-slot{width:30px;height:30px;right:-15px;top:-13px;font-size:.9375rem;line-height:1;z-index:2;box-shadow:0 0 0 2px #0b121b,0 2px 4px #000b}
.path-loadout .skill-badge{width:28px;height:28px;vertical-align:middle}

/* Tiers IV and V (IRP_SKILL_TIER45_VERSION=1, public/class-tree-ui.js tier45Row): the level-45 skill and level-50 passive under the Ultimate, ringed in steel blue.
   The passive's ring is dashed, as it is never slotted. Nothing here renders while the switch is off. */
.class-tree-tier45 span{color:#9fc3e6}.class-tree-skill.tier45 .class-tree-node-icon{outline:2px solid #7fa8d1;outline-offset:2px;border-radius:9px;box-shadow:0 0 12px #7fa8d155}.class-tree-skill.tier45[data-tree-skill$=':t5'] .class-tree-node-icon{outline-style:dashed}.class-tree-skill.tier45.locked .class-tree-node-icon{outline-color:#4f5d6b;box-shadow:none}
/* Tier VI Pinnacle (IRP_SKILL_PINNACLE_VERSION=1, public/class-tree-ui.js pinnacleRow): one violet node for the class under the class passives. In a single tree the
   passives are hidden, so the row lifts into their place and over that tree's column. Off: no .class-tree-pinnacle exists. */
.class-tree-pinnacle{position:absolute;inset:0;pointer-events:none}
.class-tree-pinnacle .class-tree-skill{pointer-events:auto;--branch-tone:#c9b6ff}
.class-tree-tier6{position:absolute;left:30%;width:40%;text-align:center;z-index:1;border-top:1px solid #b9a2f255;padding-top:4px}
.class-tree-tier6 span{display:block;font-size:.6875rem;letter-spacing:.16em;color:#d9ccff}
.class-tree-tier6 small{display:block;margin-top:2px;font-size:.75rem;color:#b8acd6}
.class-tree-tier6.locked small{color:#e4b194}
.class-tree-skill.pinnacle .class-tree-node-icon{outline:2px solid #b9a2f2;outline-offset:2px;border-radius:9px;box-shadow:0 0 16px #b9a2f266}
.class-tree-skill.pinnacle.locked .class-tree-node-icon{outline-color:#5f5878;box-shadow:none}
.class-tree[data-focus=single] .class-tree-pinnacle{transform:translate(-460px,calc(-1 * var(--pinnacle-lift,0px)))}
.class-tree[data-focus=single] .class-tree-tier6{left:478px;width:424px}
/* Skill tree by branch (IRP_SKILL_BOARD_VERSION=1, public/class-tree-ui.js boardRender): one branch or the Class tab at a time, with each skill's
   Supports, New form and Mastery sockets beside it (public/skill-branches-ui.js sockets()). */
.class-tree.sbd .tree-toolbar nav button{min-width:96px}
.class-tree.sbd .class-tree-path-root{display:none}
.class-tree.sbd .sbd-class{position:absolute;left:0;top:0}
.class-tree.sbd .sbd-class .class-tree-skill{pointer-events:auto}
.class-tree.sbd .sbd-rule{display:block;left:10%;width:80%}
.class-tree.sbd .sbd-tier6{position:absolute;left:25%;width:50%;text-align:center}
.sbd-sockets{position:absolute;top:12px;display:flex;gap:8px;align-items:center;z-index:3}
.sbd-sockets.sbd-left{right:calc(50% + 54px);flex-direction:row-reverse}
.sbd-sockets.sbd-right{left:calc(50% + 54px)}
.sbd-sockets::before{content:"";position:absolute;top:50%;width:22px;height:2px;background:color-mix(in srgb,var(--branch-tone,#c3b18b) 55%,transparent)}
.sbd-left::before{right:-22px}.sbd-right::before{left:-22px}
.sbd-sockets em{position:absolute;top:-17px;left:0;right:0;text-align:center;font:600 .5625rem/1 system-ui,sans-serif;letter-spacing:.12em;font-style:normal;color:#b9a77f;white-space:nowrap}
.sbd-socket{position:relative;width:36px;height:36px;min-height:0!important;padding:0!important;border-radius:50%!important;display:grid;place-items:center;cursor:pointer;
 border:2px solid #4b5360!important;background:radial-gradient(circle at 50% 40%,#1b2430,#090d13)!important;box-shadow:inset 0 0 0 3px #0c1118,0 2px 6px #000a;color:#8e96a1!important}
.sbd-socket small{font:600 .6875rem/1 system-ui,sans-serif;color:#8e96a1}
.sbd-socket b{font:700 1.05rem/1 system-ui,sans-serif}
.sbd-socket img{width:24px;height:24px;object-fit:contain;filter:drop-shadow(0 0 4px #fff3)}
.sbd-socket[data-state=taken]{border-color:var(--branch-tone,#cbaa67)!important;box-shadow:inset 0 0 0 3px #0c1118,0 0 12px color-mix(in srgb,var(--branch-tone,#cbaa67) 45%,transparent)}
.sbd-socket[data-state=taken] b{color:var(--branch-tone,#e6c983)}
.sbd-socket[data-state=open]{border-color:#e6c983!important;color:#f3dca3!important;animation:sbd-glow 1.8s ease-in-out infinite}
.sbd-socket[data-row=form],.sbd-socket[data-row=mastery]{border-radius:9px!important;transform:rotate(45deg)}
.sbd-socket[data-row=form]>*,.sbd-socket[data-row=mastery]>*{transform:rotate(-45deg)}
.sbd-socket:hover,.sbd-socket:focus-visible{border-color:#f0d79d!important;outline:none}
@keyframes sbd-glow{50%{box-shadow:inset 0 0 0 3px #0c1118,0 0 14px #e6c98399}}
@media (prefers-reduced-motion:reduce){.sbd-socket[data-state=open]{animation:none}}
.sbd-key{display:inline-flex;gap:6px;align-items:center}
.sbd-key i{display:inline-block;width:10px;height:10px;border-radius:50%;border:2px solid #4b5360;margin-left:6px}
.sbd-key i[data-state=taken]{border-color:#cbaa67;background:#cbaa6744}.sbd-key i[data-state=open]{border-color:#e6c983}
@media (max-width:600px){.class-tree.sbd .tree-toolbar nav{display:flex;flex-wrap:wrap;gap:6px}.class-tree.sbd .tree-toolbar nav button{min-width:0;flex:1 1 40%;min-height:44px}
 .class-tree.sbd .sbd-key{display:none}.sbd-socket{width:40px;height:40px}}
/* Beta QA (2 Nov): a skill's name can be pressed, like its icon (public/class-tree-ui.js bind). */
.class-tree-skill-name{pointer-events:auto;cursor:pointer}
/* Pat, 2 Nov ("skill tree looks so tiny now ... needs to fit the pop up window"): the Hero window is about 1,120 px wide on any screen, but on screens wider than 1,600 px the tree kept a 320 px column for the skill details, empty until a skill is picked, so the tree drew in two thirds of the window at a small size. The layout now follows the width the tree has, not the screen: under 1,500 px of room it is one column, the details sit under the tree, and the names are the larger size. */
.paths-page:has(.class-tree){container-type:inline-size}
@container (max-width:1500px){.paths-workspace.unified-tree-workspace{grid-template-columns:minmax(0,1fr)}.class-tree-detail{position:static;max-height:none;overflow:visible}.unified-tree-workspace .path-back{display:inline-flex}.class-tree-viewport{height:72vh}.class-tree-skill-name{font-size:.9375rem}.class-tree-upgrade{width:31px;height:31px}.class-tree-upgrades{gap:17px}.tree-toolbar{flex-wrap:wrap;gap:5px}.tree-toolbar nav{flex:1;justify-content:space-between}.tree-toolbar button{padding:8px!important}.tree-legend{gap:10px}.tree-legend span:last-child{margin-left:auto}}
/* The whole tree is drawn on a 1,380 px canvas and shrunk to fit the window (about 0.75 at 1,440 px), so its labels came out at 7 to 11 px. Larger in the window, so they read at about 9 to 14 px. */
@container (max-width:1500px){.class-tree .class-tree-skill-name{font-size:1.1875rem}.class-tree .class-tree-level,.class-tree .class-tree-rank,.class-tree .class-tree-upgrade span{font-size:.75rem}.class-tree .sbd-sockets em{font-size:.6875rem}.class-tree .sbd-socket small{font-size:.8125rem}.class-tree :is(.class-tree-columns,.class-tree-tier3,.class-tree-tier6)>span{font-size:.8125rem}.class-tree :is(.class-tree-tier3,.class-tree-tier6)>small{font-size:.875rem}.class-tree .tree-foundation-rule>span{font-size:.6875rem}}

/* /auction-market.css */
.market-page{max-width:1520px;padding:20px;margin:auto;color:#e0d8c6}.market-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:16px 20px;background:linear-gradient(110deg,#30281b,#171b1d);border-bottom:1px solid #8b7448}.market-heading h1{margin:3px 0;color:#efd6a3;font-size:1.8125rem}.market-heading .eyebrow{font-size:.6875rem;margin:0}.market-heading aside{display:grid;text-align:right;gap:5px}.market-heading aside strong{font-size:1.3125rem;color:#ead19a}.market-heading small,.market-heading aside span{font:.6875rem system-ui;color:#b5b4a6}.market-tabs{display:flex;gap:4px;align-items:center;padding:6px 12px;background:#121719;border-bottom:1px solid #5c5138}.market-tabs button{padding:10px 22px;color:#cfc6ad;background:transparent;border:0;border-bottom:2px solid transparent;border-radius:0;min-height:44px}.market-tabs button[aria-pressed=true]{border-color:#d4ad60;color:#ffe1a0;background:#d4ad600c}.market-tabs a{margin-left:auto;font-size:.75rem}.market-body{display:grid;grid-template-columns:10.625rem minmax(0,1fr) 14.875rem;min-height:470px;background:#12191c}.market-categories{padding:14px 8px;background:#1c211f;border-right:1px solid #66553455}.market-categories h2{font:.6875rem system-ui;text-transform:uppercase;letter-spacing:.12em;color:#9b987f;margin:3px 8px 12px}.market-categories button{display:flex;align-items:center;gap:9px;width:100%;padding:5px 8px;min-height:44px;text-align:left;border:0;border-left:2px solid transparent;background:none;color:#c7c5b6;border-radius:0;font:.75rem system-ui}.market-categories button[aria-pressed=true]{background:#bb93411c;border-left-color:#d3ae69;color:#f0d299}.market-categories .gear-icon,.market-categories .crafted-icon{width:26px;height:29px;flex:0 0 26px}.market-categories .crafted-icon b,.market-categories .item-tier-badge{display:none}.market-categories p{font:.6875rem/1.8 system-ui;color:#a09e8c;margin:18px 9px}.market-subcategories{margin:8px 0 0 12px;padding-top:7px;border-top:1px solid #78603b55}.market-subcategories button{font-size:.6875rem;min-height:44px}.market-subcategories .gear-icon{width:21px;height:24px;flex-basis:21px}.market-results{padding:16px;min-width:0}.market-filters{display:grid;grid-template-columns:minmax(6.875rem,1fr) 8.5rem 8.5rem auto;gap:8px;align-items:end}.market-filters label,.market-sell-form label{font-size:.6875rem;color:#b9bdac}.market-filters input,.market-filters select,.market-sell-form input{width:100%;box-sizing:border-box;display:block;min-height:44px;margin-top:5px;padding:9px 7px;border:1px solid #5e6051;border-radius:3px;background:#0c1215;color:#e3dfcf}.market-filters button{padding:9px 12px;min-height:44px}.market-result-count{display:flex;justify-content:space-between;gap:10px;font-size:.6875rem;color:#acb9b2;padding:14px 0 8px}.market-result-count span{color:#818f89}.market-lot{margin:0;border:0;border-bottom:1px solid #5b624333;background:#1b262730;border-left:2px solid var(--rarity,#736441)}.market-lot:nth-of-type(even){background:#ada36b08}.market-lot-main{display:flex;gap:10px;align-items:center;min-height:64px;padding:8px 10px}.market-lot-main>.gear-icon,.market-lot-main>.crafted-icon,.market-lot-main>.gathering-emblem{width:36px;height:40px;flex:0 0 36px;font-size:1.3125rem}.market-item-name{flex:1;min-width:0}.market-name-button{padding:0;border:0;background:none;box-shadow:none;color:#e4c990;text-align:left;font-size:.8125rem;font-weight:600;white-space:normal;line-height:1.3}.market-name-button:hover{color:#ffdf90}.market-item-name small,.market-item-name>span{font:.625rem/1.4 system-ui;display:block;color:#a4b1ab;margin-top:3px}.market-price{text-align:right;min-width:58px;color:#edc977}.market-price strong{font-size:.875rem}.market-price small{font-size:.625rem;display:block;color:#b7b7a4;margin-top:2px}.market-lot-main>.secondary{font-size:.6875rem;padding:8px 10px;min-height:44px;white-space:nowrap}.market-lot>.small-note{font-size:.6875rem;margin:0;padding:0 10px 8px}.market-inventory{padding:14px;background:linear-gradient(#282a23,#171d1e);border-left:1px solid #73604477;align-self:start;position:sticky;top:14px;max-height:calc(100dvh - 70px);overflow:auto}.market-inventory header{display:flex;align-items:center;justify-content:space-between;gap:8px}.market-inventory h2{font-size:1.1875rem;color:#dec184;margin:0}.market-inventory header>span{font:.6875rem system-ui;color:#aaa790}.market-inventory nav{display:flex;gap:4px;margin-top:12px}.market-inventory nav button{flex:1;border:0;border-bottom:2px solid transparent;border-radius:0;background:transparent;color:#b3b6a4;padding:8px 4px;font:.6875rem system-ui}.market-inventory nav button[aria-pressed=true]{color:#f0d69e;border-color:#c9a760}.market-inventory>.small-note{font-size:.625rem;margin:10px 0;color:#9b9d8d}.market-bag-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.market-bag-item{position:relative;min-width:0;aspect-ratio:1;padding:4px;border:1px solid #736e51;border-radius:4px;background:#0e171b;overflow:hidden}.market-bag-item>.gear-icon,.market-bag-item>.crafted-icon,.market-bag-item>.gathering-emblem{display:block;width:100%;height:100%;font-size:1.5rem}.market-bag-item.selected{outline:2px solid #f0d38b;outline-offset:1px}.market-bag-item:hover{background:#363c31}.market-bag-item.rarity-rare{border-color:#5f9cd0}.market-bag-item.rarity-epic{border-color:#c5b35d}.market-bag-item.rarity-legendary{border-color:#d77357}.market-bag-item.rarity-magic{border-color:#739757}.market-bag-item.rarity-unique{border-image:linear-gradient(120deg,#ed658c,#edc864,#72dcbf,#9294ec) 1}.market-item-lock{position:absolute;right:2px;top:2px;width:12px;height:14px;z-index:2}.market-item-lock svg{width:100%;height:100%}.market-item-equipped{position:absolute;left:2px;bottom:1px;font:bold .625rem system-ui;color:#f0d490;text-shadow:0 1px #000}.market-item-quantity{position:absolute;right:3px;bottom:1px;font:bold .6875rem system-ui;color:#fff;text-shadow:0 1px 2px #000}.market-sell-selection{max-width:650px;margin:12px auto}.market-selected-heading,.market-preview-heading{display:flex;align-items:center;gap:14px}.market-selected-heading>.gear-icon,.market-selected-heading>.crafted-icon,.market-selected-heading>.gathering-emblem,.market-preview-heading>.gear-icon,.market-preview-heading>.crafted-icon{width:58px;height:64px;flex:0 0 58px}.market-selected-heading h2{font-size:1.3125rem;margin:0 0 6px;color:#e5cf9f}.market-selected-heading small{font-size:.75rem;color:#acb6ad}.market-selected-actions{display:flex;gap:8px;margin:18px 0}.market-selected-actions button{font-size:.75rem;min-height:44px}.market-sell-form{display:flex;gap:12px;align-items:end;flex-wrap:wrap;padding:16px 0;border-top:1px solid #76654466}.market-sell-form label{flex:1;min-width:100px}.market-sell-form button{min-height:44px}.market-blocked{padding:12px 0;color:#e8b184;font-size:.8125rem}.market-empty{text-align:center;padding:70px 15px;color:#9eaca7}.market-empty h2{font-size:1.375rem;color:#ccbb98}.market-empty p{max-width:340px;margin:12px auto;line-height:1.5;font-size:.8125rem}.market-hover{width:360px;max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px);overflow:hidden}.market-preview h3{margin:0;color:#e6ca8f}.market-preview-heading{margin-bottom:14px}.market-detail-dialog{width:min(520px,calc(100vw - 24px));max-height:calc(100dvh - 32px);overflow:auto;padding:20px}.market-detail-dialog>button{display:block;width:100%;margin-top:16px}@media(max-width:1250px){.market-body{grid-template-columns:9.0625rem minmax(0,1fr) 13.125rem}.market-results{padding:12px}.market-filters{grid-template-columns:1fr 1fr}.market-filters label:first-child{grid-column:1/-1}.market-filters button{grid-column:1/-1}}@media(max-width:1050px){.market-body{grid-template-columns:minmax(0,1fr) 13.125rem}.market-categories{grid-column:1/-1;display:flex;flex-wrap:wrap;border-bottom:1px solid #73604455;padding:8px}.market-categories h2,.market-categories p{display:none}.market-categories button{width:auto;flex:0 0 auto;gap:5px;font-size:.6875rem;padding:4px 7px;border-left:0;border-bottom:2px solid transparent;min-height:44px}.market-categories button[aria-pressed=true]{border-bottom-color:#d3ae69}.market-subcategories{display:flex;width:100%;margin:6px 0 0;padding:4px 0 0}.market-categories .gear-icon,.market-categories .crafted-icon{width:22px;height:25px;flex-basis:22px}}@media(max-width:700px){.market-page{padding:8px}.market-heading{padding:12px;gap:10px}.market-heading h1{font-size:1.4375rem}.market-heading .eyebrow{font-size:.5625rem}.market-heading aside strong{font-size:1rem}.market-heading aside span{font-size:.625rem}.market-tabs{gap:0;padding:4px;flex-wrap:wrap}.market-tabs button{flex:1;padding:9px 7px;font-size:.75rem;white-space:nowrap}.market-tabs a{width:100%;text-align:right;font-size:.625rem;padding:3px 6px}.market-body{display:flex;flex-direction:column;min-height:0}.market-results{padding:10px}.market-inventory{position:static;width:auto;max-height:280px;border:0;border-top:1px solid #73604455;padding:10px;order:3}.market-selling .market-inventory{order:1}.market-selling .market-results{order:2}.market-categories{order:0;gap:2px}.market-subcategories{overflow:auto}.market-bag-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:6px}.market-inventory h2{font-size:1rem}.market-inventory nav{margin-top:6px}.market-inventory>.small-note{margin:6px 0}.market-result-count{font-size:.625rem}.market-result-count span{max-width:130px;text-align:right}.market-lot-main{gap:7px;padding:8px 5px;flex-wrap:wrap}.market-item-name{flex-basis:calc(100% - 60px)}.market-price{margin-left:43px;text-align:left;flex:1}.market-lot-main>.secondary{min-width:80px;min-height:44px}.market-sell-selection{margin:8px 0}.market-selected-heading h2{font-size:1.125rem}.market-sell-form button{width:100%}.market-selected-actions{margin:12px 0}.market-empty{padding:25px 8px}}
.market-category-group{min-width:0}.market-subcategories small{margin-left:auto;color:#9dadaf;font-size:.625rem}.market-search{position:relative;min-width:0}.market-search>label{display:block}.market-search>small{display:block;color:#9eacbd;font:.625rem/1.4 system-ui;margin-top:5px}.market-suggestions{position:absolute;z-index:30;top:calc(100% + 4px);left:0;width:max(100%,300px);max-width:calc(100vw - 40px);max-height:320px;overflow:auto;background:#111c2d;border:1px solid #b49864;box-shadow:0 10px 25px #0008;border-radius:4px;padding:4px}.market-suggestions[hidden]{display:none}.market-filters .market-suggestions button{display:flex;align-items:center;gap:10px;width:100%;min-height:52px;text-align:left;padding:7px 9px;border:0;border-bottom:1px solid #b4986422;background:none;color:#e8d2a9}.market-suggestions button:hover,.market-suggestions button[aria-selected=true]{background:#c7ab6322;outline:1px solid #c7ab6366}.market-suggestions .gear-icon{width:38px;height:40px;flex:0 0 38px}.market-suggestions .item-tier-badge{display:none}.market-suggestions strong,.market-suggestions small{display:block;white-space:normal}.market-suggestions strong{font:600 .75rem/1.4 system-ui}.market-suggestions small{font:.625rem/1.4 system-ui;color:#aebdca;margin-top:3px}.market-breadcrumb{display:flex;align-items:center;flex-wrap:wrap;gap:6px;padding:12px 0 0;font:.75rem/1.5 system-ui;color:#e3c997}.market-breadcrumb>span{color:#8a99a9}.market-breadcrumb button{margin-left:auto}.market-tabs .market-refresh{font-size:.75rem;padding-inline:12px}.market-filters .market-search{align-self:start}.market-subcategories button{min-height:44px}
@media(max-width:1250px){.market-filters>.market-search{grid-column:1/-1}.market-filters>label:first-of-type{grid-column:auto}}
@media(max-width:1050px){.market-category-group{display:contents}.market-subcategories{order:2;flex-wrap:wrap;gap:3px}.market-subcategories button{white-space:nowrap}.market-subcategories small{margin-left:4px}}
@media(max-width:700px){.market-search>small{font-size:.625rem}.market-tabs .market-refresh{flex:0 0 auto}.market-suggestions{width:100%;box-sizing:border-box;max-width:100%}.market-breadcrumb{font-size:.6875rem}.market-subcategories button{min-height:44px}.market-subcategories .gear-icon{width:20px;height:23px;flex-basis:20px}}
.market-own-label{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:8px 12px;border:1px solid #776446;border-radius:5px;color:#dfc58f;background:#202b2d;font-size:.8125rem;white-space:nowrap}

@media(max-width:700px){.market-sell-selection{scroll-margin-top:132px}}

@media(max-width:700px){.modal-backdrop .market-detail-dialog button,.modal-backdrop .market-detail-dialog .text-button{min-height:44px;white-space:normal}}
/* Large browser text: when the results column is narrower than 33rem (only with large text; at the default size the four-across row needs
   1251 px of window, where the 1250 px rule takes over) the filters use the same two-row layout as the 1250 px rule, so the selects and Search fit. */
.market-results{container:market-results/inline-size}
@container market-results (max-width:33rem){.market-filters{grid-template-columns:1fr 1fr}.market-filters>.market-search{grid-column:1/-1}.market-filters>label:first-of-type{grid-column:auto}.market-filters button{grid-column:1/-1}}
@container market-results (max-width:15rem){.market-filters{grid-template-columns:minmax(0,1fr)}.market-filters>*,.market-filters>label:first-of-type{grid-column:1/-1}}
/* Menu tune-up (Pat, 25 Oct): the listings count sits on a dark plate so it never runs over the painting; on a phone it goes under the title. */
.shell .market-heading aside{position:relative;z-index:1;background:#09121bd9;border:1px solid #b59a6755;border-radius:6px;padding:6px 10px}
.shell .market-heading aside span{color:#d9d3bf}
@media(max-width:600px){.shell .market-heading{flex-direction:column;align-items:flex-start}.shell .market-heading aside{margin:0;text-align:left;justify-items:start}}

/* /crafting.css */
.craft-page{max-width:1280px;margin:auto}.craft-heading,.craft-orders header,.craft-stock>header{display:flex;gap:12px;justify-content:space-between;align-items:center}.craft-heading h1{margin:4px 0}.craft-heading p{margin:4px 0}.craft-heading strong{color:#eac783;white-space:nowrap}.craft-heading strong small{color:#aaa89d;font-weight:400}.craft-links{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:16px 0}.craft-links>a{margin-left:auto}.craft-workbench{display:grid;grid-template-columns:215px minmax(0,1fr);background:#181c20;border:1px solid #ffffff12;border-radius:6px;overflow:hidden}.craft-workbench>nav{padding:14px 8px;background:#121519;display:flex;flex-direction:column;gap:2px;border-right:1px solid #ffffff0d}.craft-workbench>nav>.eyebrow{margin:0 10px 10px}.craft-recipe{display:flex;gap:10px;align-items:center;text-align:left;padding:10px 8px;border:0;border-left:2px solid transparent;background:transparent;color:#c6c9ca;border-radius:0;min-height:68px}.craft-recipe.selected{border-left-color:#d3b577;background:linear-gradient(90deg,#cfa45a20,transparent);color:#f6db9d}.craft-recipe small{display:block;color:#9ca9b0;font-size:.75rem;line-height:1.4;margin-top:4px}.workshop-art{display:inline-block;position:relative;flex:0 0 48px;width:48px;height:48px;color:#f3d6a4}.workshop-art svg{display:block;width:100%;height:100%;overflow:hidden}.workshop-art>b{position:absolute;right:0;bottom:0;padding:1px 4px;border-radius:3px;background:#12161de6;font:.625rem/1.4 system-ui}.craft-art-help{padding:0;border:0;background:none;display:inline-flex;flex-shrink:0}.craft-detail{padding:22px 26px;min-width:0}.craft-result{display:flex;align-items:center;gap:20px;min-height:150px}.craft-hero-art .workshop-art{width:130px;height:145px;filter:drop-shadow(0 0 24px #d0ac7130)}.craft-detail h2{font-size:1.625rem;margin:0 0 7px}.craft-effect{padding:0;margin:0;color:#dfedda;font-size:1rem;line-height:1.5}.craft-options{display:flex;gap:20px;align-items:center;border-block:1px solid #ffffff0d;margin:18px 0;padding:14px 0}.craft-options>label{flex:0 0 100px}.craft-detail label{display:grid;gap:6px;font-size:.75rem;color:#acb5b9}.craft-detail select,.craft-detail input,.craft-stock select{max-width:100%;width:100%;padding:8px;background:#101419;border:1px solid #474c51;color:#ece6dc;border-radius:4px;min-height:40px;font-size:.875rem}.craft-ingredients{display:flex;gap:12px;flex-wrap:wrap}.craft-ingredient{display:flex;align-items:center;gap:6px;text-align:left;padding:3px;border:0;background:none;color:#cbd0ce;font-size:.6875rem;min-height:48px}.craft-ingredient .workshop-art{width:40px;height:40px;flex-basis:40px}.craft-ingredient b{display:block;font-size:.875rem;font-variant-numeric:tabular-nums;color:#dfdfd8}.craft-ingredient b small{font-size:.75rem;font-weight:400;color:#9ba3a5}.craft-ingredient .craft-missing,.craft-missing{color:#ffaaa0}.craft-detail form{display:grid;grid-template-columns:80px 1fr auto;align-items:end;gap:14px}.craft-detail form p{font-size:.8125rem;font-variant-numeric:tabular-nums;margin:0;align-self:center}.craft-detail form button{min-height:42px}.craft-rules{font-size:.6875rem!important;color:#a1abae;margin:10px 0 0!important;display:flex;align-items:center;gap:5px}.craft-orders,.craft-stock,.craft-history{margin-top:22px;padding:14px 0;border-top:1px solid #ffffff17}.craft-orders h2,.craft-stock h2{font-size:1.125rem;margin:0}.craft-orders header>span,.craft-stock>header>span{font-size:.75rem;color:#9fa9ae}.craft-orders article{display:flex;gap:12px;align-items:center;border-bottom:1px solid #ffffff0b;padding:9px 0;font-size:.8125rem}.craft-orders article .workshop-art{width:35px;height:35px;flex-basis:35px}.craft-orders article>b{margin-left:auto;color:#e6cb93;font-variant-numeric:tabular-nums}.craft-orders small{display:block;color:#a8b4b0}.craft-stock-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 25px}.craft-stock article{display:flex;gap:12px;padding:15px 0;border-bottom:1px solid #ffffff0b;min-width:0}.craft-stock article>div{flex:1;min-width:0}.craft-stock h3{margin:0;font:600 .875rem system-ui!important}.craft-stock h3 small{float:right;color:#b5c4bb;font:.75rem system-ui}.craft-stock p{font-size:.75rem;line-height:1.4!important;margin:5px 0 9px}.craft-stock button.secondary{min-height:36px;padding:6px 12px!important;font-size:.75rem;margin-top:5px}.craft-active{display:flex;gap:12px;align-items:center;padding:8px 14px;border-left:2px solid #79ac8e;background:#79ac8e0c;margin:15px 0;font-size:.8125rem}.craft-active .workshop-art{width:35px;height:35px;flex-basis:35px}.craft-active small{display:block;color:#b1bdba}.craft-active>b{margin-left:auto;color:#9acaad}.crafted-enchant{padding:12px;border-left:3px solid #87b6b1;background:#6bada514;line-height:1.5}
@media(max-width:900px){.craft-workbench{grid-template-columns:170px minmax(0,1fr)}.craft-detail{padding:18px}.craft-options{align-items:start;gap:12px}.craft-ingredients{gap:5px}.craft-result{gap:10px}.craft-hero-art .workshop-art{width:100px;height:120px}.craft-detail form{grid-template-columns:70px 1fr}.craft-detail form button{grid-column:1/-1}}
@media(max-width:650px){.craft-workbench{grid-template-columns:1fr}.craft-workbench>nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:8px;gap:4px;border-right:0;border-bottom:1px solid #ffffff16}.craft-workbench>nav>.eyebrow{display:none}.craft-recipe{padding:6px;gap:5px;min-width:0;min-height:58px}.craft-recipe .workshop-art{width:38px;height:42px;flex-basis:38px}.craft-recipe small{font-size:.625rem}.craft-detail{padding:14px}.craft-result{min-height:110px}.craft-detail h2{font-size:1.375rem}.craft-effect{font-size:.875rem}.craft-options{flex-direction:column}.craft-options>label{display:flex;align-items:center;gap:10px;flex:auto}.craft-options select{width:100px}.craft-ingredients{width:100%;justify-content:space-between;gap:3px}.craft-ingredient{flex:1;min-width:0;font-size:.625rem;flex-direction:column;text-align:center}.craft-ingredient .workshop-art{width:42px;height:42px;flex-basis:42px}.craft-stock-grid{grid-template-columns:1fr}.craft-heading>strong{font-size:.875rem}.craft-heading h1{font-size:1.75rem}.craft-links{gap:5px}.craft-links button{font-size:.75rem}.craft-active>span{min-width:0}.craft-active small{display:none}}

/* Shared workbench identity: painted brass, readable steps, compact materials. */
.workshop-service-tabs{display:flex;gap:8px;margin:0 0 20px;border-bottom:2px solid #bca46b;padding:0 0 8px}
.workshop-service-tabs>button{display:flex;align-items:center;gap:10px;min-height:62px;padding:8px 20px;background:#0d1624;border:1px solid #b8955840;border-radius:2px;color:#bfc8d1;text-align:left;font-weight:600}
.workshop-service-tabs>button[aria-current="page"]{color:#ffe0a2;border-color:#c7a363;background:linear-gradient(115deg,#96703744,#151e2d);box-shadow:inset 0 2px #f5d494}
.craft-ready{display:block;margin-top:3px;color:#a9dcb1;font-size:.6875rem;font-weight:500}.craft-ready::before{content:"";display:inline-block;width:6px;height:6px;border-radius:50%;background:#9eddb5;margin-right:5px;box-shadow:0 0 6px #6cbb89}
.profession-track{display:flex;align-items:center;gap:20px;padding:20px 26px;margin:18px 0 24px;background:radial-gradient(ellipse at left,#c8964625,transparent 50%),#101a29;border-block:2px solid #b295595e;position:relative}
.profession-emblem.workshop-art{width:84px;height:92px;flex-basis:84px;filter:drop-shadow(0 0 20px #b59cd545)}
.profession-progress{flex:1;min-width:0}.profession-progress header{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px;margin-bottom:10px}.profession-progress h2{font:1.375rem Georgia;color:#f3d6a1;margin:0}.profession-progress h2 span{font:600 .75rem system-ui;color:#d2b77c;margin-left:8px}.profession-progress header>small{font-size:.75rem;color:#b6c3d3;font-variant-numeric:tabular-nums}
.profession-progress progress{display:block;width:100%;height:7px;accent-color:#d3ad65;border:0;border-radius:6px;background:#070d16}.profession-progress progress::-webkit-progress-bar{background:#070d16;border-radius:6px}.profession-progress progress::-webkit-progress-value{background:linear-gradient(90deg,#846330,#f0d796);border-radius:6px}
.profession-milestones{display:flex;justify-content:space-between;list-style:none;margin:10px 0 0;padding:0}.profession-milestones li{display:flex;align-items:center;gap:5px;font:.6875rem system-ui;color:#83919e}.profession-milestones b{display:grid;place-items:center;width:23px;height:23px;border:1px solid #66718377;transform:rotate(45deg);font-size:0}.profession-milestones li.unlocked{color:#e5c990}.profession-milestones li.unlocked b{border-color:#c9a86d;background:#d9ad6130}.profession-milestones li[aria-current] b{background:#d9ad61;box-shadow:0 0 9px #d9ad6150}.profession-track>.hint-trigger{align-self:start}
.craft-next-level{font:.75rem/1.5 system-ui;color:#d6c49e;margin:12px 0 0}.craft-detail [data-craft-quote] small{display:block;color:#b2cfa3;margin-top:5px}
.craft-stock-drawer{margin-top:20px;border-block:1px solid #aa894750}.craft-stock-drawer>summary{display:flex;gap:10px;align-items:center;cursor:pointer;min-height:56px;color:#e6c88d;font:1.125rem Georgia}.craft-stock-drawer>summary>b{margin-left:auto;font:.8125rem system-ui}.craft-stock-drawer>summary::after{content:'⌄';margin:0 10px}.craft-stock-drawer .craft-stock{border:0;margin:0;padding:0}.craft-stock-drawer .craft-stock>header{display:none}
.shell .craft-workbench{background:linear-gradient(110deg,#152133,#0b1421);border-radius:2px;border-color:#bda36b60}.shell .craft-workbench>nav{background:#09121d88;border-right-color:#b99a5840}.shell .craft-orders{padding:22px}.shell .craft-stock button.secondary{min-height:44px}.shell .craft-detail select,.shell .craft-detail input{min-height:44px}
@media(max-width:650px){.workshop-service-tabs{gap:6px}.workshop-service-tabs>button{flex:1;min-width:0;gap:5px;padding:8px;font-size:.75rem}.workshop-service-tabs .workshop-art{width:34px;height:40px;flex-basis:34px}.profession-track{gap:10px;padding:18px 12px}.profession-emblem.workshop-art{width:48px;height:62px;flex-basis:48px}.profession-progress h2{font-size:1.125rem}.profession-progress header>small{font-size:.6875rem}.profession-milestones li{gap:3px}.profession-milestones b{width:14px;height:14px}.profession-milestones span{font-size:.5625rem}.craft-heading{flex-wrap:wrap}.craft-heading .workshop-guide{font-size:.75rem}.craft-rules{flex-wrap:wrap}.craft-orders article{gap:6px}.craft-orders article>b{font-size:.6875rem;white-space:nowrap}.craft-orders article strong{overflow-wrap:anywhere}}
@media(max-width:650px){
 .profession-milestones li{flex-direction:column;gap:6px;min-width:0}
 .profession-milestones b{width:18px;height:18px;flex:none}
}
@media(max-width:380px){
 .craft-workbench .craft-recipe{flex-direction:column;justify-content:center;text-align:center;gap:4px;padding:8px 4px;font-size:.8125rem}
 .craft-recipe>span:not(.workshop-art){width:100%;min-width:0;overflow-wrap:normal}
 .craft-recipe .workshop-art{width:36px;height:38px;flex-basis:38px}
}

/* The Alchemist's workbench keeps the item and its power at the centre. */
.power-workbench{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;margin:22px 0}
.power-workbench>section{min-width:0;padding:24px;background:radial-gradient(ellipse at 50% 20%,#69508a24,transparent 65%),#101a29;border-top:2px solid #d8b578}
.power-workbench h2{margin:6px 0 20px;font-size:1.4375rem}
.power-workbench label{display:grid;gap:8px;color:#c5bdac;font-size:.75rem;margin:14px 0}
.power-workbench select{width:100%;min-width:0;min-height:44px;color:#e5dfd4;background:#0b121e;border:1px solid #aa8d5f80;padding:8px;font-size:.875rem}
.power-preview{display:flex;align-items:center;gap:18px;min-width:0;margin:22px 0 12px}
.power-preview .gear-icon{width:78px;height:78px;flex:0 0 78px;filter:drop-shadow(0 0 15px #bd864a44)}
.power-preview>div{min-width:0}.power-preview h3{margin:0 0 6px;color:#f0c07b;overflow-wrap:anywhere;font-size:1.25rem}
.power-preview small,.power-target small{display:block;color:#b9becb;font-size:.75rem;line-height:1.5}
.power-workbench .unique-power,.power-confirmation .unique-power{padding:14px 0;border-block:1px solid #bc9a5b50;color:#dfc8a8;line-height:1.6;font-size:.875rem}
.power-workbench>section>button{width:100%;min-height:46px;margin-top:10px}
.power-target{display:flex;gap:12px;align-items:center;min-width:0;margin:14px 0;padding:12px 0;color:#d4ddec}.power-target>span{min-width:0;overflow-wrap:anywhere}.power-target .gear-icon{flex:0 0 46px;width:46px;height:46px}
.power-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;min-height:245px;color:#c4ced8}.power-empty .workshop-art{width:92px;height:104px;flex-basis:104px;filter:drop-shadow(0 0 25px #ad95d140)}.power-empty p{margin:18px 0 8px}.power-empty small{max-width:260px;color:#9aaabb;line-height:1.5}
.modal-backdrop>.power-confirmation{width:min(540px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow-y:auto;padding:28px;box-sizing:border-box}.power-confirmation h2{margin:8px 0}.power-confirmation .az-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:22px}.power-confirmation .az-actions button{min-width:0;min-height:48px;white-space:normal}.power-confirmation>p{line-height:1.6}
.imprinted-power{padding:14px 0;border-block:1px solid #bfa06d70;margin:12px 0;color:#e1bd88}.imprinted-power small{display:block;color:#b9a7cf;margin-top:5px}.imprinted-power p{font-size:.8125rem;line-height:1.6;margin:10px 0 0}
.enchanter-affix-row{display:grid;grid-template-columns:minmax(0,1fr) 54px;gap:6px;align-items:stretch}.enchanter-affix-row .enchanter-affix{min-width:0;margin:0}.affix-lock{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:48px;min-width:0;padding:4px!important;border:0!important;border-bottom:1px solid #ba985647!important;background:transparent!important;color:#8999ac;font-size:.625rem!important;box-shadow:none!important}.affix-lock svg{width:16px;height:18px}.affix-lock.is-locked{color:#f3cf8c;background:#caa56c0c!important}.modifier-locked .enchanter-affix{border-color:#b9985980;background:#c9a5750c}.modifier-locked .enchanter-affix input:disabled{opacity:.5}.enchant-lock-premium{display:block;color:#dfbc84;font-size:.75rem;margin-top:8px}
.enchant-target-stat,.enchant-run-controls label{display:grid;gap:7px;font-size:.75rem;color:#b7c2d2}.enchant-target-stat{margin:14px 0}.enchant-run-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:14px 0 20px}.enchant-run-controls[hidden]{display:none}.enchant-run-controls>label:first-child,.enchant-run-controls>small{grid-column:1/-1}.enchant-run-controls>small{line-height:1.5;color:#c2b99f}.enchant-target-stat select,.enchant-run-controls select,.enchant-run-controls input{width:100%;min-width:0;min-height:44px;box-sizing:border-box;padding:9px;color:#e5e0d8;background:#0b1421;border:1px solid #b0925f70;border-radius:2px;font:.875rem system-ui}
.enchant-run-result{padding:18px;border-top:2px solid #c8a776;margin:18px 0;background:linear-gradient(100deg,#99764a28,transparent)}.enchant-run-result.success{border-color:#a0c7a2;background:linear-gradient(100deg,#64947a28,transparent)}.enchant-run-result>strong{color:#efce93}.enchant-run-result>span{float:right;font-size:.75rem;color:#b0bccc}.enchant-run-result p{margin:10px 0}.enchant-run-result small{display:block;color:#bcc7d1;line-height:1.5}
.modal-backdrop>.affix-lock-confirmation{width:min(540px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow-y:auto;padding:26px;box-sizing:border-box}.affix-lock-confirmation .az-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.affix-lock-confirmation .az-actions button{min-width:0;min-height:46px}.affix-lock-confirmation>p{line-height:1.6}.enchant-lock-cost{display:flex;justify-content:space-between;gap:12px;align-items:center;border-block:1px solid #b6965460;padding:12px 0;color:#eed3a1}.enchant-lock-cost strong{font-size:1.25rem;font-variant-numeric:tabular-nums}
@media(max-width:700px){.power-workbench{grid-template-columns:1fr;gap:18px}.power-workbench>section{padding:18px}.power-preview{gap:12px}.power-preview h3{font-size:1.125rem}.power-preview .gear-icon{width:62px;height:62px;flex-basis:62px}.modal-backdrop>.power-confirmation{padding:20px}.power-confirmation .az-actions{gap:8px}.power-confirmation .az-actions button{font-size:.8125rem;padding:10px}.power-empty{min-height:210px}}
@media(max-width:420px){.enchanter-affix-row{grid-template-columns:minmax(0,1fr) 45px;gap:3px}.affix-lock{font-size:.5625rem!important}.modal-backdrop>.affix-lock-confirmation{padding:18px}.affix-lock-confirmation .az-actions button{padding:10px;font-size:.75rem}.enchant-run-result>span{float:none;display:block;margin-top:5px}}

.workshop-art.material-art>img,.workshop-art.scroll-art>img{display:block;width:100%;height:100%;object-fit:contain}

/* Finished crafts share the existing workshop artwork and storage palette. */
.crafted-bank{margin-top:1.2rem;padding:1rem;border:1px solid #72623f;background:#111d25}.crafted-bank h2,.crafted-bank h3{color:#e3c88d}.crafted-bank-item{min-width:0}.crafted-bank-item input{max-width:6rem;margin:.4rem}.crafted-bank-item label{display:block}.craft-delivery{padding:.75rem;border:1px solid #72623f}.account-storage .craft-stock{margin-top:1rem}.crafted-bank .craft-stock-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr))}

/* Narrow Enchanter choices retain readable words beside their artwork. */
@media(max-width:360px){.workshop-service-tabs{display:grid;grid-template-columns:minmax(0,1fr)}.workshop-service-tabs>button{width:100%;min-width:0;min-height:44px;justify-content:flex-start;white-space:normal;overflow-wrap:normal;word-break:normal}.workshop-service-tabs>button>span:not(.workshop-art){min-width:0;overflow-wrap:normal;word-break:normal}}
/* Full pass (13 Oct): three service tabs on a 361-480px phone stack the icon over the label, so a short label such as Scrolls is never cut off. */
@media(min-width:361px) and (max-width:480px){.workshop-service-tabs>button{flex-direction:column;justify-content:center;gap:2px}.workshop-service-tabs .workshop-art{width:30px;height:34px;flex-basis:auto}}
/* Unique Powers visual pass (Pat, 11 October 2026): a three-step strip, icon tiles in place of drop-downs, glowing power sigils and a result preview. */
.extraction-page{--pw-gold:#d8b578;--pw-violet:#8a6bc0;--pw-ink:#0c1420}
.power-steps{list-style:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;margin:22px 0 0;padding:0;position:relative;counter-reset:none}
.power-steps::before{content:"";position:absolute;left:16%;right:16%;top:30px;height:2px;background:linear-gradient(90deg,#d8b57840,#a88ae0aa,#d8b57840)}
.power-step{position:relative;display:flex;flex-direction:column;align-items:center;text-align:center;gap:8px;min-width:0;padding:0 8px;color:#8f9aab}
.power-step-icon{position:relative;z-index:1;display:grid;place-items:center;width:60px;height:60px;border-radius:50%;background:radial-gradient(circle at 50% 35%,#2a2440,#0d1420 70%);border:2px solid #5d5240;box-shadow:0 0 0 4px #0b121c}
.power-step-icon .workshop-art{width:34px;height:38px;flex:0 0 auto;opacity:.55;filter:grayscale(.6)}
.power-step>span:last-child{display:grid;gap:2px;min-width:0}
.power-step small{font-size:.625rem;letter-spacing:.12em;text-transform:uppercase;color:#8b97a8}
.power-step strong{font:1rem Georgia,serif;color:#c9c2b4}
.power-step em{font-style:normal;font-size:.75rem;color:#8f9aab}
.power-step.is-ready .power-step-icon{border-color:var(--pw-gold);box-shadow:0 0 0 4px #0b121c,0 0 22px #b48cf066}
.power-step.is-ready .power-step-icon .workshop-art{opacity:1;filter:drop-shadow(0 0 8px #c9a4ff88)}
.power-step.is-ready strong{color:#f2d497}.power-step.is-ready em{color:#d9c8f2}
.extraction-page .power-workbench{grid-template-columns:minmax(0,1fr) 56px minmax(0,1fr);gap:0;align-items:stretch;margin-top:18px}
.power-workbench>.power-panel{position:relative;display:flex;flex-direction:column;padding:26px;border:1px solid #6d5a3c;border-top:2px solid var(--pw-gold);background:radial-gradient(ellipse at 50% 0%,#7a5aa833,transparent 60%),linear-gradient(180deg,#121d2e,#0d1522);box-shadow:inset 0 1px 0 #ffffff0d,0 10px 30px #0006}
.power-workbench>.power-panel>button{margin-top:auto}
.power-flow{align-self:center;display:grid;place-items:center;width:56px;height:56px;border-radius:50%;margin:0 -8px;z-index:1;background:radial-gradient(circle,#3a2d55,#111a28 72%);border:2px solid var(--pw-gold);box-shadow:0 0 24px #a07ce066}
.power-flow .workshop-art{width:30px;height:34px;flex:0 0 auto}
.power-picker{margin:4px 0 6px}
.extraction-page .power-picker-label{display:flex;align-items:center;gap:8px;margin:0 0 8px;font-size:.75rem;color:#c5bdac}
.power-picker-label small{display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 6px;border-radius:10px;background:#2b2440;color:#d9c8f2;font-size:.6875rem}
.power-tiles{display:flex;flex-wrap:wrap;gap:8px;max-height:132px;overflow-y:auto;padding:2px}
.power-tile{display:grid;place-items:center;width:56px;height:56px;min-height:0!important;padding:3px!important;border-radius:10px;border:2px solid #3b4658!important;background:#0b121e!important;box-shadow:none!important;cursor:pointer;transition:border-color .15s,transform .15s}
.power-tile .gear-icon{width:46px!important;height:46px!important;flex:0 0 46px}
.power-tile:hover{border-color:#a99068!important;transform:translateY(-1px)}
.power-tile.is-selected{border-color:var(--pw-gold)!important;box-shadow:0 0 0 2px #0b121e,0 0 16px #d8b57866!important}
.power-tile-input{position:absolute;opacity:0;width:1px;height:1px;margin:0;pointer-events:none}.power-tile{position:relative}.power-tile:has(.power-tile-input:focus-visible){outline:2px solid #f2d497;outline-offset:2px}
.extraction-page .power-preview,.power-confirmation .power-preview{margin:18px 0 14px;gap:18px}
.power-sigil{position:relative;display:grid;place-items:center;flex:0 0 auto;width:96px;height:96px;border-radius:50%;background:radial-gradient(circle,#3b2c5a 0,#16122a 58%,transparent 72%)}
.power-sigil-ring{position:absolute;inset:0;border-radius:50%;padding:3px;background:conic-gradient(from 30deg,#f595b6,#b6a1ff,#72cffa,#90e4a6,#f8df83,#ffa878,#f595b6);-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);mask-composite:exclude;opacity:.85;box-shadow:0 0 26px #b48cf055;animation:power-ring 14s linear infinite}
.power-sigil .gear-icon,.power-sigil .workshop-art{position:relative;width:64px!important;height:64px!important;flex:0 0 64px;filter:drop-shadow(0 0 12px #c9a4ff66)}
.power-sigil.is-power{background:radial-gradient(circle,#5b3f8a 0,#1c1533 55%,transparent 72%)}
.power-sigil.is-badge{position:absolute;right:-12px;bottom:-12px;width:34px;height:34px;background:radial-gradient(circle,#5b3f8a,#141022 70%);box-shadow:0 0 0 2px #0c1420}
.power-sigil.is-badge .gear-icon{width:22px!important;height:22px!important;flex-basis:22px;border-width:1px!important}
.power-sigil.is-badge .gear-icon .item-tier-badge{display:none}
.power-sigil.is-badge .power-sigil-ring{padding:2px;animation:none}
@keyframes power-ring{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.power-sigil-ring{animation:none}.power-tile{transition:none}}
.extraction-page .power-preview h3,.power-confirmation .power-preview h3{font:1.375rem Georgia,serif;color:#f2c98a;margin:0 0 4px}
.power-scroll{position:relative;margin:0 0 16px;padding:14px 16px 14px;border-radius:10px;background:linear-gradient(180deg,#241c38cc,#151827cc);border:1px solid #6e5a9a66;box-shadow:inset 0 1px 0 #ffffff10}
.power-scroll::before{content:"";position:absolute;left:14px;right:14px;top:-1px;height:2px;border-radius:2px;background:linear-gradient(90deg,#f595b6,#b6a1ff,#72cffa,#90e4a6,#f8df83)}
.power-scroll-label{display:flex;align-items:center;gap:6px;margin:0 0 6px;font-size:.625rem;letter-spacing:.14em;text-transform:uppercase;color:#cdb8f0}
.power-scroll-label .workshop-art{width:16px;height:18px;flex:0 0 16px}
.power-scroll-text{margin:0;font-size:.875rem;line-height:1.6;color:#e6dccb}
.extraction-page .power-warning{display:flex;gap:10px;align-items:flex-start;margin:0 0 16px;padding:10px 12px;border-left:2px solid #c98a4d;background:#2a1f1366;color:#d9c6a8;font-size:.8125rem;line-height:1.5}
.power-warning .workshop-art{width:20px;height:22px;flex:0 0 20px;margin-top:1px}
.power-result{display:flex;align-items:center;gap:18px;margin:8px 0 16px;padding:14px 16px;border-radius:10px;border:1px dashed #d8b57880;background:linear-gradient(90deg,#d8b57814,transparent)}
.power-result-item{position:relative;display:inline-grid;flex:0 0 auto}
.power-result-item>.gear-icon{width:64px;height:64px}
.power-result>span:last-child{display:grid;gap:2px;min-width:0;overflow-wrap:anywhere}
.power-result small{font-size:.6875rem;color:#a9b3c2}
.power-result strong{font:1.0625rem Georgia,serif;color:#f2d497}
.power-result em{font-style:normal;color:#d9c8f2;font-size:.875rem}
.power-result .power-replaces{color:#e3a77a}
.power-rules{list-style:none;display:flex;flex-wrap:wrap;gap:8px;margin:20px 0 0;padding:0}
.power-rules li{padding:7px 12px;border-radius:16px;border:1px solid #4d5668;background:#0f1724;color:#b9c2cf;font-size:.75rem}
.power-transfer{display:flex;align-items:center;justify-content:center;gap:16px;margin:16px 0 4px}
.power-transfer .power-sigil:not(.is-badge){width:84px;height:84px}.power-transfer .power-sigil:not(.is-badge) .gear-icon,.power-transfer .power-sigil:not(.is-badge) .workshop-art{width:54px!important;height:54px!important;flex-basis:54px}
.power-transfer-arrow{font-size:1.75rem;color:var(--pw-gold);text-shadow:0 0 12px #d8b57888}
.power-transfer .power-result-item>.gear-icon{width:60px;height:60px}
.power-confirmation .power-preview{margin:12px 0 10px;justify-content:center;text-align:center}
.power-picker.is-round .power-tile{border-radius:50%}.power-picker.is-round .power-tile .gear-icon{border-radius:50%}
@media(max-width:900px){.extraction-page .power-workbench{grid-template-columns:1fr;gap:0}.power-flow{justify-self:center;margin:-10px 0;transform:rotate(90deg)}}
@media(max-width:700px){.power-steps::before{top:23px}.power-step-icon{width:46px;height:46px}.power-step-icon .workshop-art{width:26px;height:29px}.power-step strong{font-size:.8125rem}.power-step em{font-size:.6875rem}.power-step small{font-size:.5625rem}.power-workbench>.power-panel{padding:18px}.power-sigil{width:80px;height:80px}.power-sigil .gear-icon,.power-sigil .workshop-art{width:54px!important;height:54px!important;flex-basis:54px}.extraction-page .power-preview h3{font-size:1.1875rem}.power-scroll-text{font-size:.8125rem}.power-flow{width:46px;height:46px}.power-rules li{font-size:.6875rem}}

/* Several Enchanter stop targets (IRP_ENCHANT_MULTI_STOP_VERSION): ticked modifiers glow gold; the sentence under them says exactly what will stop the run. */
.enchant-targets{margin:14px 0;padding:14px;border:1px solid #b0925f55;border-radius:3px;background:linear-gradient(180deg,#14202f,#0d1623)}
.et-head{display:flex;justify-content:space-between;align-items:baseline;gap:10px;margin-bottom:10px}.et-title{font-size:.8125rem;letter-spacing:.06em;text-transform:uppercase;color:#e1bd88}.et-count{font-size:.75rem;color:#9fb0c4;font-variant-numeric:tabular-nums}
.et-search{width:100%;min-height:40px;box-sizing:border-box;margin-bottom:10px;padding:8px 10px;color:#e5e0d8;background:#0b1421;border:1px solid #b0925f70;border-radius:2px;font:.875rem system-ui}
.et-chips{display:flex;flex-wrap:wrap;gap:8px;max-height:none;padding:2px}
.enchant-targets .et-chip{position:relative;display:inline-flex;min-width:0;max-width:100%;margin:0;padding:0}.enchant-targets .et-chip[hidden]{display:none}.enchant-targets .et-chip input:is([type=checkbox],[type=radio]){position:absolute;opacity:0;inset:0;width:100%;height:100%;min-height:0;margin:0;padding:0;cursor:pointer}
.enchant-targets .et-chip span{display:inline-flex;align-items:center;gap:6px;min-height:44px;box-sizing:border-box;padding:6px 14px;border:1px solid #6c7f9855;border-radius:22px;background:#0b1421;color:#c4cfdc;font-size:.8125rem;line-height:1.2;overflow-wrap:anywhere;transition:background .12s,border-color .12s,color .12s}
.et-chip span::before{content:"";flex:0 0 14px;width:14px;height:14px;border:1px solid #8a9bb2;border-radius:2px;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;font:700 11px/1 system-ui;color:#2a1c08}
.et-chip input:hover+span{border-color:#c8a776}.et-chip input:focus-visible+span{outline:2px solid #f0d49c;outline-offset:2px}
.et-chip input:checked+span{background:linear-gradient(100deg,#9c763f55,#5e47282e);border-color:#e1bd88;color:#fff3d6}.et-chip input:checked+span::before{content:"\2713";background:#e1bd88;border-color:#f0d49c}
.et-picked{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-top:12px;padding-top:12px;border-top:1px solid #b0925f33}.et-summary{margin:0;font-size:.8125rem;line-height:1.55;color:#b7c2d2}.et-summary strong{color:#efce93;font-weight:600}.et-capped{margin:10px 0 0;padding:8px 10px;border-left:3px solid #d9a441;background:#d9a44114;border-radius:4px;font-size:.8125rem;line-height:1.5;color:#e8d3a6}.et-capped strong{color:#efce93;font-weight:600}
.et-clear{flex:0 0 auto;min-height:44px;padding:6px 12px;background:transparent;border:1px solid #b0925f70;border-radius:2px;color:#e1bd88;font-size:.75rem;cursor:pointer}.et-clear[hidden]{display:none}
@media(max-width:420px){.enchant-targets{padding:12px}.et-picked{flex-direction:column}.et-clear{width:100%}}
/* Alchemy locked (2026-10-18 review): the renown bar spans the panel like the companion XP bar. */
.extraction-lock progress{display:block;width:100%;height:8px;margin:10px 0 6px;accent-color:#c2a463}
/* Auto-roll for Reroll affix tier (IRP_ENCHANT_TIER_AUTO_VERSION): the same gold chip panel as the stop targets, with round marks because only one tier is picked. */
.tier-auto .et-chip span::before{border-radius:50%}.tier-auto .et-chip input:checked+span::before{content:"";box-shadow:inset 0 0 0 3px #e1bd88;background:#2a1c08}
.tier-auto .ta-limits{margin:12px 0 0}.tier-auto .ta-limits>label:first-child{grid-column:auto}.tier-auto .et-summary{margin-top:12px;padding-top:12px;border-top:1px solid #b0925f33}
.tier-auto .ta-chips{display:grid;grid-template-columns:repeat(var(--ta-n,4),minmax(0,1fr));gap:8px}.tier-auto .ta-chips .et-chip,.tier-auto .ta-chips .et-chip span{width:100%;justify-content:center;text-align:center}
@media(max-width:520px){.tier-auto .ta-chips{grid-template-columns:repeat(2,minmax(0,1fr))}.tier-auto .ta-chips.ta-odd>.et-chip:first-child{grid-column:1/-1}}
.tier-auto .et-count{white-space:nowrap}
.tier-auto-best{margin:14px 0;padding:12px 14px;border:1px solid #a0c7a255;border-radius:3px;background:linear-gradient(100deg,#64947a22,transparent);color:#cfe3cf;font-size:.8125rem}
/* Bench closed (clarity pass, 19 Oct): how-it-works steps, carried tiles and the chosen scroll or flask with its item tiles. */
.craft-moved>section{margin-top:16px}.craft-howto ol{list-style:none;margin:8px 0 0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.craft-howto li{display:flex;gap:10px;align-items:flex-start}.craft-howto li b{display:block;color:#eac783}.craft-howto li small{display:block;color:#d6dbe2;font-size:.875rem;line-height:1.35}
.craft-howto .uk-icon-tile{flex:none}.craft-howto .uk-icon-tile .crafted-icon,.craft-howto .uk-icon-tile img{width:34px;height:34px}.craft-howto-cta{margin-top:12px}.craft-howto-cta .red-button{min-height:44px;padding:0 20px}
.craft-carried .uk-heading .uk-chip{margin-left:8px;font-size:.8125rem}
.craft-tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:8px;margin-top:8px}
.craft-tile{display:flex;gap:10px;align-items:flex-start;padding:10px;background:#0d1724;border:1px solid #aa894750;border-radius:4px}
.craft-tier-chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}.craft-tier-chips .uk-chip{min-height:44px;min-width:60px;justify-content:center;padding:2px 8px;cursor:pointer;font:inherit;font-size:.8125rem}.craft-tier-chips .uk-chip[aria-pressed="true"]{border-color:#e6c27a;background:#3a2d14;color:#ffe4a6}
.craft-tile.selected{border-color:#e6c27a;box-shadow:inset 0 0 0 1px #e6c27a80;background:#182437}
.craft-tile>span{flex:1;min-width:0}.craft-tile strong{display:block;color:#f0dcae}.craft-tile strong small{color:#b9a780;font-weight:400}.craft-tile>span>small{display:block;color:#cfd6df;font-size:.8125rem;line-height:1.3}
.craft-tile .crafted-icon{width:44px;height:44px;flex:none}
.craft-pick-head{display:flex;gap:14px;align-items:center}.craft-pick-head .crafted-icon{width:64px;height:64px;flex:none}.craft-pick-head h3{margin:2px 0;color:#f0dcae;font:1.25rem Georgia}.craft-pick-head p{margin:2px 0}
.craft-pick-label{margin:14px 0 6px;color:#e6c88d;font-size:.9375rem}.craft-targets{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:8px}
.craft-pick>.red-button{margin-top:12px;min-height:44px;padding:0 24px}.craft-pick .small-note{margin:10px 0 0}
@media(max-width:650px){.craft-howto ol{grid-template-columns:1fr;gap:10px}.craft-tiles,.craft-targets{grid-template-columns:1fr}.craft-pick>.red-button,.craft-howto-cta .red-button{width:100%}}
/* Menu audit 23 Oct (no dropdowns): Minimum Affix Tier, Each at least and Keep rolling until are radio chips. The tier chips take their own row above the two number fields. */
.enchant-run-controls>.et-grade,.shell .enchanter-window .enchant-run-controls>.et-grade{grid-column:1/-1;display:grid;gap:7px;margin:0;padding:0;border:0;background:none}
.shell .enchanter-window .enchant-targets .ta-limits:has(>.et-grade){grid-template-columns:repeat(2,minmax(0,1fr))}
.et-grade>.et-title,.value-auto .va-label{font-size:.75rem;letter-spacing:0;text-transform:none;color:#b7c2d2}
.value-auto .va-label{display:block;margin:0 0 7px}
.tier-auto .va-chips{grid-template-columns:repeat(2,minmax(0,1fr))}
.tier-auto .va-chips.ta-odd>.et-chip:first-child{grid-column:1/-1}
/* Flasks and scrolls in the Bag (Artisan patch, public/crafting-ui.js card and public/account-chest-ui.js): stack tiles like any Bag stack, and one card per stack. */
.bag-craft-tile .crafted-icon,.storage-craft .crafted-icon{width:40px;height:40px}
.bag-craft-tile .crafted-icon b,.storage-craft .crafted-icon b,.bag-craft-card .crafted-icon b{display:none}
.storage-craft{position:relative}
.storage-craft .storage-qty{position:absolute;right:3px;bottom:2px;font:600 .75rem system-ui;color:#fff;text-shadow:0 1px 2px #000}
.bag-craft-card{display:grid;gap:12px}
.bag-craft-card .item-detail-title .crafted-icon{width:56px;height:56px}
.bag-craft-card>p{margin:0}
.bag-craft-use{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.bag-craft-use>p,.bag-craft-use>.craft-targets,.bag-craft-use>input{flex-basis:100%;margin:0}
.bag-craft-label{margin:4px 0 0;font-size:.8125rem;color:#b9b29e;font-weight:600;letter-spacing:.04em}
.bag-craft-store{display:flex;flex-wrap:wrap;align-items:end;gap:8px;padding-top:12px;border-top:1px solid #8b744855}
.bag-craft-store label{display:grid;gap:4px;font-size:.8125rem;color:#b9b29e}
.bag-craft-store input{width:6rem;min-height:44px}
.bag-craft-card button,.storage-qty-field input{min-height:44px}
.storage-qty-field{display:grid;gap:4px;font-size:.8125rem;color:#b9b29e}
.storage-qty-field input{width:6rem}
.craft-elsewhere{display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding:16px}
.craft-elsewhere p{margin:0}
/* The gear card's framed picture for a flask, meal or scroll in the Bag's item window (Pat, 28 Oct: hero cards match the combat card). */
.inventory-dialog .bag-craft-card .item-detail-title .crafted-icon>*{width:100%;height:100%;object-fit:contain}
.inventory-dialog .bag-craft-card .item-detail-title .crafted-icon{flex:none;display:grid;place-items:center;width:128px;height:128px;padding:18px;box-sizing:border-box;border:2px solid #8a7a55;border-radius:6px;background:radial-gradient(circle at 50% 40%,#24323d,#10171d);box-shadow:0 7px 22px #0005}
@media(max-width:430px){.inventory-dialog .bag-craft-card .item-detail-title .crafted-icon{width:84px;height:84px;padding:10px}}
.inventory-dialog .ic-acts>.ic-act.is-armed{border-color:#c0614f;background:linear-gradient(#4a2620,#2a1612)}
.inventory-dialog .bag-craft-card .bag-craft-store label{display:flex;align-items:center;gap:10px}.inventory-dialog .bag-craft-card .bag-craft-store input{width:96px}

/* /ascend-ui.css */
/* Ascend (Epic to Heroic): item-card note and the Enchanter "Ascend to Heroic" panel. Built on the UI kit (ui-kit.css): the panel is a .uk-card-light, the button a
   .uk-btn (the kit's secondary button, 44 px target). NOT SEEN IN A BROWSER yet: check at desktop width and at 320 px before any flip. No animation, nothing hover-only. */
.ascend-note{margin:8px 0;padding:8px 10px;border-left:3px solid var(--uk-gold,#d6b575);background:#0c172355;color:var(--uk-ivory,#eadbb9);line-height:1.45}
.ascend-note strong{color:var(--uk-gold-text,#ffe1aa)}
.ascend-panel{margin:16px 0;padding:14px;box-sizing:border-box;max-width:100%;color:var(--uk-ivory,#eadbb9)}
.ascend-panel h3{margin:0 0 6px;font-size:1.125rem;color:var(--uk-gold-text,#ffe1aa)}
.ascend-panel h4{margin:14px 0 6px;font-size:.9375rem;color:var(--uk-gold,#d6b575)}
.ascend-panel p{margin:6px 0;line-height:1.45;overflow-wrap:anywhere}
/* Page fix 4: the paragraphs were the workbench grey-green (workshops-combat.css ".workshop-bench p" sets color on the p itself, so the panel's own colour was never
   inherited). This selector is (0,2,1) against (0,1,1): it wins by specificity, in any file order. The colour is the kit's ivory text token. */
.ascend-panel.uk-card-light p{color:var(--uk-ivory,#eadbb9)}
.ascend-reason{padding:8px 10px;border-left:3px solid #b9705c;background:#240d0e66}
.ascend-warning{padding:8px 10px;border-left:3px solid var(--uk-gold,#d6b575);background:#0c172377}
/* Page fix 3 (320 px broke "Enhancem / ent"): the row names are the game's short words (Rank, Rank limit) and the first column never breaks inside a word.
   Automatic table layout: the first column is at least as wide as its longest word; the two value columns may still wrap anywhere, so the table never
   grows past the panel (no sideways scroll). The selector .ascend-panel .ascend-table tbody th is (0,2,2): it wins over .ascend-table th (0,1,1) by specificity, whatever the file order. */
.ascend-table{width:100%;margin:10px 0;border-collapse:collapse;table-layout:auto}
.ascend-table th,.ascend-table td{padding:8px 6px;border-bottom:1px solid #b69a6044;text-align:left;vertical-align:top;overflow-wrap:anywhere}
.ascend-table thead th{color:var(--uk-gold,#d6b575);font-size:.8125rem}
.ascend-table tbody th{font-weight:600;color:var(--uk-ivory-dim,#c9c3b4);width:32%}
.ascend-panel .ascend-table tbody th{overflow-wrap:normal;word-break:normal;hyphens:none;white-space:normal}
.ascend-table .ascend-after{color:#9ae867}
.ascend-lines{list-style:none;margin:6px 0;padding:0}
.ascend-lines li{padding:8px 6px;border-bottom:1px solid #b69a6044;overflow-wrap:anywhere}
.ascend-lines small{display:block;margin-top:2px;color:var(--uk-ivory-dim,#c9c3b4)}
.ascend-lines .ascend-new strong{color:#9ae867}
.ascend-cost{display:grid;gap:6px;margin:6px 0}
.ascend-cost>div{display:flex;justify-content:space-between;gap:10px;padding:8px 10px;border:1px solid #6f5d3c;border-radius:var(--uk-radius,4px);background:#0c172355}
.ascend-cost>div.missing{border-color:#b9705c}
.ascend-cost dt{margin:0;font-weight:600}
.ascend-cost dd{margin:0;text-align:right}
.ascend-cost dd span{display:block;font-size:.8125rem;color:var(--uk-ivory-dim,#c9c3b4)}
/* The Ascended block, one line: label, stat, " · ", tier. Each rule is (0,3,0) or (0,2,1): it beats .workshop-bench p and any single-class rule by specificity, not by file order. */
.ascend-panel .ascend-new-line .ascend-new-label{color:var(--uk-ivory-dim,#c9c3b4);margin-right:6px}
.ascend-panel .ascend-new-line .ascend-sep{color:var(--uk-ivory-dim,#c9c3b4);white-space:pre}
.ascend-panel .ascend-new-line small{display:inline;font-size:inherit;color:var(--uk-ivory-dim,#c9c3b4)}
/* Page fix 7: the entry button is the kit's secondary button (.uk-btn), so the Enchanter screen shows one gold action (its own Reroll); gold stays on the confirm
   sheet's final "Ascend" (.red-button, which the kit paints as its primary). The kit frames .uk-btn with a (0,2,0) rule in a later file; these are (0,3,0), so the
   width, the 44 px height and the gap above win by specificity, and nothing here repaints the kit's colours, border or disabled look. */
.ascend-panel.uk-card-light .uk-btn{width:100%;min-height:44px;margin-top:8px}
@media (min-width:600px){.ascend-panel.uk-card-light .uk-btn{width:auto;min-width:220px}}
/* The confirm sheet (public/ascend-ui.js confirmSheet): the game's own sheet frame (.modal-backdrop > .ornate.salvage-confirmation, kit buttons .secondary and
   .red-button). Only spacing and wrapping are set here. Two buttons side by side, each at least 44 px high, stacking when the sheet is too narrow. NOT SEEN IN A BROWSER. */
.ascend-confirm{color:var(--uk-ivory,#eadbb9)}
.ascend-confirm h2{overflow-wrap:anywhere}
.ascend-confirm p{margin:0 0 12px;line-height:1.5;overflow-wrap:anywhere}
.ascend-confirm-cost{list-style:none;margin:0 0 12px;padding:0;display:grid;gap:6px}
.ascend-confirm-cost li{padding:8px 10px;border:1px solid #6f5d3c;border-radius:var(--uk-radius,4px);background:#0c172355;overflow-wrap:anywhere}
.ascend-confirm-cost strong{color:var(--uk-gold-text,#ffe1aa)}
.ascend-confirm .az-actions{justify-content:stretch}
.ascend-confirm .az-actions>button{flex:1 1 120px;min-height:44px;white-space:normal}
/* Page fix 6: "What changes" is a closed native <details> under the button (the table and the modifier list live inside it). The summary is the kit's disclosure
   row (.uk-disclosure>summary in ui-kit.css, (0,1,1)); the rules here are (0,2,1) and (0,2,0), so they win over the kit rule and over any single-class rule by
   specificity, and they only repeat or add to what the kit sets: a 44 px tap target, ivory text, room above. Native element: Enter and Space open it. */
.ascend-panel .ascend-details{margin:12px 0 0;min-width:0}
.ascend-panel .ascend-details>summary{box-sizing:border-box;min-height:var(--uk-tap,44px);padding:11px 14px;line-height:1.4;font-weight:600;color:var(--uk-ivory,#eadbb9);cursor:pointer;overflow-wrap:anywhere}
.ascend-panel .ascend-details>summary:focus-visible{outline:3px solid var(--uk-focus,#f4cd86);outline-offset:2px}
.ascend-panel .ascend-details[open]>summary{margin-bottom:6px}
.ascend-panel .ascend-warning{margin-top:12px}
/* Page fix 8: the success line, first line of the Ascended block (it was a workshop notice above the item picker, off screen, in the bench grey). Kit ivory text with
   a gold rule, no new colour. (0,3,0): it beats .workshop-bench p (0,1,1) and .ascend-panel.uk-card-light p (0,2,1) by specificity, in any file order. */
.ascend-panel.uk-card-light .ascend-success{margin:0 0 8px;padding:8px 10px;border-left:3px solid var(--uk-gold,#d6b575);background:#0c172377;color:var(--uk-ivory,#eadbb9);font-weight:600}
/* Page fix 9, moved by page fix 11: "Ascend this Epic" link (public/ascend-ui.js jump), shown only while the panel is in its ready state. It sat at the top of the
   bench, about 1,352 px down the page at 320 px (the alpha, squire and skill-reset banners sit above the Enchanter); it is now inside the Enchanter's heading row,
   directly under the "Enchanter" title (public/workshop-view.js enchanterWindow). Kit gold text, underlined like the game's other text links, a 44 px tap row sized
   to its words. (0,2,0) beats .shell a (0,1,1) by specificity. The same rule at every width (desktop and 320 px): it wraps inside the title column, never sideways.
   scroll-margin-top keeps the panel heading below the sticky top bar after the jump. No animation (no smooth scrolling). */
.workshop-heading .ascend-jump{display:flex;align-items:center;gap:6px;box-sizing:border-box;width:fit-content;max-width:100%;min-height:44px;margin:4px 0 0;padding:10px 0;color:var(--uk-gold-text,#ffe1aa);font:600 .875rem/1.4 system-ui,sans-serif;text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}
.ascend-panel{scroll-margin-top:96px}
/* Page fix 10: a refused Ascend, one line inside the panel next to its button (public/ascend-ui.js refusalLine), role="alert". The game's error style: the same
   colours, border and radius as .exp-error (the workshop notice's error look), no new colour. (0,3,0): it beats .ascend-panel.uk-card-light p (0,2,1), which would
   repaint it ivory, and .workshop-bench p (0,1,1), by specificity in any file order. Nothing hover-only, no animation. */
.ascend-panel.uk-card-light .ascend-refusal{margin:8px 0;padding:8px 10px;border:1px solid #985743;border-radius:var(--uk-radius,4px);background:#431f23;color:#ffb7a1;font-weight:600;line-height:1.45;overflow-wrap:anywhere}
/* Page fix 12: the line now sits directly under the panel heading, and app.js scrolls it into view (nearest edge) after the redraw. These margins keep it clear of
   the sticky top bar (the panel's own 96 px) and of the bottom bar (about 71 px at 320x640). (0,3,0), same selector as above. */
.ascend-panel.uk-card-light .ascend-refusal{scroll-margin:96px 0 96px}

/* /defense-panel.css */
/* Defense package (IRP_DEFENSE_PACKAGE_VERSION, default off): the Hero page Defense panel and the Enchanter's Ward line block (public/defense-panel.js). UI kit tokens only. */
.defense-panel{display:grid;gap:10px;margin-block:12px}
.defense-panel .defense-where{margin:0;color:var(--uk-ivory-dim);font-size:.9rem}
.defense-verdict{margin:0;padding:8px 10px;border:1px solid var(--uk-gold-dim);border-radius:var(--uk-radius);background:var(--uk-navy-0)}
.defense-verdict.is-ready{border-color:var(--uk-done-dim);color:var(--uk-done)}
.defense-meters{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:12px 20px}
.defense-meter-name{display:inline-flex;align-items:center;gap:6px;flex-wrap:wrap;min-width:0}
.defense-meter-name .uk-chip{font-size:.72rem;padding:1px 6px}
.defense-meter-sub{color:var(--uk-ivory-dim);font-size:.8rem;line-height:1.3}
.ward-choice{display:grid;gap:8px;margin-block:12px;padding-block:12px}
.ward-choice>*{margin-inline:var(--uk-pad,14px)}
.ward-choice p{margin-block:0}
.ward-choice-options{min-width:0}
.ward-choice>.ward-choice-title{margin:0 var(--uk-pad,14px);font-size:1.05rem}
.ward-choice-cost{display:flex;align-items:center;gap:6px;flex-wrap:wrap;color:var(--uk-ivory-dim);font-size:.9rem}
.ward-choice-cost b{color:var(--uk-gold-text)}
.defense-meter-sub .uk-chip{margin-right:4px}
.ward-choice .uk-seg>.uk-seg-btn[aria-pressed="true"]:disabled{opacity:1;cursor:default}

/* /alpha-phase.css */
.alpha-phase-label{display:inline-block;color:#f2d18d;font:700 .7rem/1.4 system-ui,sans-serif;letter-spacing:.1em;text-transform:uppercase;padding:.15rem .45rem;border:1px solid #b28e4b;border-radius:4px;vertical-align:middle;white-space:nowrap}
.wordmark .alpha-phase-label{margin-top:.3rem;align-self:center}
.entry-brand .alpha-phase-label{margin-top:.8rem;filter:none}
.alpha-notice{display:flex;align-items:center;gap:1rem;max-width:100%;padding:.8rem 1rem;border:1px solid #967a48;border-radius:5px;background:#201f18;color:#eadfc7;font:normal .875rem/1.5 system-ui,sans-serif;text-align:left;overflow-wrap:break-word}
.alpha-notice>div{min-width:0;flex:1}.alpha-notice strong{color:#f1cd83}.alpha-notice p{margin:.3rem 0 0}.alpha-notice button{flex:0 0 auto;min-height:44px;white-space:normal}
.alpha-entry-access{width:min(26rem,100%);min-width:0}.alpha-entry-access>.alpha-notice{margin-bottom:.85rem}
.mmo-shell>.alpha-notice,.shell>.alpha-notice{margin:.75rem clamp(.5rem,2vw,1.5rem)}
.settings-modal>.alpha-notice{margin:1rem 0}.alpha-full{width:min(42rem,100%);margin:0 auto;box-sizing:border-box;padding:clamp(1rem,5vw,3rem);line-height:1.6}.alpha-full>.alpha-notice{margin-top:1.5rem}.alpha-full>button{min-height:44px;margin:.5rem .5rem .5rem 0}
@media(max-width:430px){.alpha-notice{flex-wrap:wrap;gap:.5rem}.alpha-notice>div{flex-basis:100%}.alpha-notice>button{margin-left:auto}.alpha-full h1{font-size:2rem}}
/* Phone QA 7 Oct: in the game the Alpha notice is one slim line (title + Got it). The full sentence stays for screen readers and in Settings. */
@media(max-width:1000px){.mmo-shell>.alpha-notice{flex-wrap:nowrap;gap:8px;min-height:0;margin:6px 8px;padding:3px 3px 3px 12px;line-height:1.3}.mmo-shell>.alpha-notice>div{flex:1 1 auto;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mmo-shell>.alpha-notice p{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}.mmo-shell>.alpha-notice>button{position:relative;margin:0;min-height:32px;padding:4px 12px;font-size:.8rem}.mmo-shell>.alpha-notice>button::after{content:'';position:absolute;inset:-6px -4px}}
/* Simpler screens (IRP_UI_SIMPLER_VERSION; public/settings-groups.js adds .is-grouped and the .settings-group boxes only while on): Settings in labelled groups. */
.settings-modal.is-grouped .settings-group{display:grid;gap:8px;margin:14px 0 0;padding:12px 0 0;border-top:1px solid rgba(214,179,106,.28)}
.settings-modal.is-grouped .settings-group-title{margin:0;font:600 .75rem/1.3 system-ui;letter-spacing:.12em;text-transform:uppercase;color:var(--uk-gold-text,#e8c98a)}
.settings-modal.is-grouped .settings-group>*{margin-top:0;margin-bottom:0}

/* /player-policies.css */
.policy-document{margin:0;background:#101820;color:#dce2e5;font:1rem/1.7 system-ui,sans-serif}.policy-document *{box-sizing:border-box}.policy-document a{color:#e9c785;text-underline-offset:4px}.policy-document a:focus-visible{outline:2px solid #f0ce91;outline-offset:4px}.policy-top{display:flex;justify-content:space-between;gap:20px;max-width:1150px;margin:auto;padding:20px 24px}.policy-top a{min-height:44px;display:inline-flex;align-items:center}.policy-top span{color:#ebc77d;font-size:.75rem;letter-spacing:.14em;align-self:center}#policies{max-width:1150px;margin:auto;padding:0 24px 60px}.policy-heading{border-bottom:1px solid #776445;padding:24px 0}.policy-heading h1{font:2.25rem/1.2 Georgia,serif;color:#edcf92;margin:10px 0}.policy-heading p{max-width:760px}.policy-document .eyebrow{font-size:.75rem;letter-spacing:.12em;color:#c4ac7e}.policy-heading span{color:#afbabf;font-size:.875rem}.policy-draft{border:1px solid #a58143;background:#3c3020;padding:16px 20px;margin:24px 0;border-radius:6px}.policy-layout{display:grid;grid-template-columns:230px minmax(0,1fr);gap:36px}.policy-layout nav{display:flex;flex-direction:column;gap:8px;align-self:start;position:sticky;top:16px}.policy-layout nav a{display:flex;align-items:center;min-height:48px;padding:10px 14px;border:1px solid #3e4b53;border-radius:5px;text-decoration:none}.policy-layout nav [aria-current]{border-color:#c2a368;background:#332e23;color:#f5ddb0}.policy-layout article{min-width:0}.policy-layout h2{font-size:1.3125rem;color:#ecd0a0;margin:0 0 10px}.policy-layout section{margin-bottom:30px}.policy-layout p{margin:0 0 12px;overflow-wrap:break-word}.policy-layout footer{border-top:1px solid #3e4b53;padding-top:20px;font-size:.875rem;color:#aebbc2}.settings-policies{border-top:1px solid #665843;padding-top:14px;margin:20px 0}.settings-policies a{display:flex;justify-content:space-between;gap:12px;align-items:center;min-height:44px;padding:10px 12px;margin:8px 0;text-decoration:none;font-family:inherit}.settings-policies a:hover{border-color:#dfbf7f}@media(max-width:650px){.policy-layout{grid-template-columns:1fr;gap:24px}.policy-layout nav{position:static;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.policy-heading h1{font-size:1.875rem}#policies,.policy-top{padding-left:16px;padding-right:16px}}

/* /alpha-shop.css */
.crown-shop{max-width:1240px;margin:auto}.crown-shop-heading{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:24px}.crown-shop-heading h1{margin:.25em 0}.crown-wallet{display:flex;align-items:center;gap:16px;padding:18px 24px;border:1px solid #8a7244;border-radius:8px;background:linear-gradient(135deg,#302719,#172229);box-shadow:inset 0 0 25px #f2c46608}.crown-wallet>span{font-size:2.875rem;color:#e7c780}.crown-wallet small,.character-select small{display:block;margin-top:6px;color:#b5c0c2}.crown-alpha-notice{padding:16px 20px;border:1px solid #86744e;border-left:4px solid #dbba75;background:#302b204d;border-radius:5px}.crown-alpha-notice strong{color:#f1d491}.crown-alpha-notice p{margin:6px 0 0;line-height:1.5;font-size:.875rem}.crown-benefits{display:flex;flex-wrap:wrap;gap:12px 30px;margin:24px 0;padding:16px 0;border-block:1px solid #5d5d483d}.crown-benefits b{color:#e9cd93;margin-right:4px}.crown-category{margin:28px 0}.crown-category>h2{font-size:1.25rem;border-bottom:1px solid #8b734844;padding-bottom:10px}.crown-products{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.crown-products article{display:grid;grid-template-columns:64px 1fr;align-items:start;gap:16px;padding:24px;border:1px solid #5e665b;border-radius:9px;background:linear-gradient(150deg,#243039,#141e26);box-shadow:0 5px 16px #0002}.crown-products h3{margin:2px 0 12px;color:#ecd5a6;font-size:1.25rem}.crown-products .eyebrow{margin:0 0 5px;font-size:.625rem;letter-spacing:.15em}.crown-products p{line-height:1.55;margin:8px 0}.crown-products button{grid-column:2;justify-self:start;min-height:44px}.crown-product-symbol{display:grid;place-items:center;border:1px solid #a1854e;border-radius:50%;width:60px;height:60px;font-size:1.875rem;color:#e8c787;background:radial-gradient(#75613b,#242924 70%)}.crown-active{color:#9ed0aa}.crown-shop-footer{border-top:1px solid #856f4544;padding-top:24px;display:flex;flex-wrap:wrap;gap:12px;align-items:center}.crown-shop-footer p{font-size:.8125rem;color:#bbc7c4}.character-select{width:min(600px,92vw);padding:26px;max-height:85vh;overflow:auto}.character-select header{display:flex;align-items:center;justify-content:space-between}.character-select p{line-height:1.5}.character-select-list{display:grid;gap:10px;margin:20px 0}.character-select-list button{display:flex;gap:14px;align-items:center;text-align:left;min-height:76px}.character-select-list .outfit-portrait{flex:0 0 48px;height:54px}.character-select-list em{margin-left:auto;color:#e6c785;font-style:normal;font-size:.8125rem}@media(max-width:700px){.crown-shop-heading{align-items:stretch;flex-direction:column;gap:12px}.crown-wallet{padding:10px 16px}.crown-wallet>span{font-size:2rem}.crown-products{grid-template-columns:1fr}.crown-products article{padding:18px;grid-template-columns:42px 1fr;gap:12px}.crown-product-symbol{width:40px;height:40px;font-size:1.5rem}.crown-products h3{font-size:1.125rem}.crown-products button{grid-column:1/-1;width:100%;justify-self:stretch}.crown-benefits{gap:10px 18px;font-size:.8125rem}}

.crown-merchant{display:flex;align-items:center;gap:18px}.crown-merchant>img{height:170px;width:108px;object-fit:contain;filter:drop-shadow(0 4px 10px #0006)}@media(max-width:700px){.crown-merchant>img{height:120px;width:76px}.crown-merchant{gap:10px}.crown-merchant h1{font-size:1.5625rem}}
.crown-shop #crown-market{scroll-margin-top:96px}

/* Buy the Dev a coffee (IRP_COFFEE_URL) and Dawn Crown packs (IRP_DAWN_CROWNS_VERSION). */
.crown-coffee{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:16px 0;padding:16px 20px;border:1px solid #86744e;border-radius:8px;background:linear-gradient(135deg,#2e2418,#162029)}.crown-coffee h2{margin:0;font-size:1.125rem;color:#f1d491}.crown-coffee p{margin:6px 0 0;line-height:1.5;font-size:.875rem}.crown-coffee .red-button{min-height:44px;display:inline-flex;align-items:center;justify-content:center;padding:0 20px;white-space:nowrap;text-decoration:none}.crown-pack-buy{display:flex;flex-wrap:wrap;gap:8px}.crown-pack-buy button{min-height:44px}@media(max-width:700px){.crown-coffee{flex-direction:column;align-items:stretch}.crown-coffee .red-button{width:100%}}

/* Class skins (IRP_COSMETICS_VERSION): Cosmetics tab cards, the Character page Appearance menu, and Crown prices on cards while Crown sales are on. */
.crown-price{margin:4px 0 0;font-size:.8125rem;color:#e8d2a0}
.skin-stage{display:flex;align-items:flex-end;justify-content:center;overflow:hidden}.skin-picture{height:180px;width:auto;max-width:100%;object-fit:contain}.skin-placeholder{filter:grayscale(.85) brightness(.6);opacity:.75}
.skin-card .red-button,.skin-card .secondary{min-height:44px}
/* A skin that cannot be bought (Coming soon, Not enough Crowns, sales off) must not look like a live gold button. */
.crown-shop .skin-card .red-button:disabled{background:#141c29;border:1px solid #6b5d4580;color:#b9ad97;box-shadow:none;filter:none;opacity:1;cursor:not-allowed}
.character-wardrobe{margin-top:16px}.character-wardrobe h2{margin:0 0 6px}.character-wardrobe p{margin:0 0 10px;line-height:1.5}.wardrobe-options{display:flex;flex-wrap:wrap;gap:8px}.wardrobe-options button,.character-wardrobe>button{min-height:44px}.character-wardrobe>button{margin-top:12px}.character-wardrobe h3{margin:16px 0 6px;font-size:1rem}.wardrobe-other{display:grid;gap:4px;margin:0 0 12px}.wardrobe-other small{color:#aebbc2}.skin-owned-note{margin:0 0 12px}
@media(max-width:700px){.skin-picture{height:140px}.wardrobe-options button{flex:1 1 100%}}
.skin-owned{margin:8px 0 0;line-height:1.5;color:#e8d2a0}
/* Skin preview dialog (public/skin-preview.js): the animated skin on a floor, one button per animation, then the price and Buy. */
.skin-preview-dialog{width:min(560px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;box-sizing:border-box}
/* No blur behind a playing skin (Pat, 27 Oct 2026: stutter): the 7px backdrop blur is redrawn with every animation frame and held the page near
   12 fps; a slightly darker plain backdrop keeps the dialog at full speed. */
.modal-backdrop:has(.skin-preview-dialog){backdrop-filter:none;-webkit-backdrop-filter:none;background:#03090ee0}
.skin-preview-stage{position:relative;height:320px;margin:10px 0 8px;border:1px solid #b793514d;border-radius:10px;overflow:hidden;background:radial-gradient(ellipse at 50% 78%,#2b3d52,#0d1622 70%)}
.skin-preview-stage::after{content:"";position:absolute;left:50%;bottom:15%;width:46%;height:16px;transform:translateX(-50%);border-radius:50%;background:radial-gradient(ellipse,#0008,transparent 70%)}
.skin-preview-still{position:absolute;left:50%;bottom:12%;height:74%;max-width:90%;transform:translateX(-50%);object-fit:contain}
.skin-preview-floor{position:absolute;inset:0;pointer-events:none;z-index:2}
.skin-preview-canvas{position:absolute;left:50%;bottom:16%;width:0;height:0;pointer-events:none}
.skin-preview-stage small{position:absolute;left:0;right:0;bottom:6px;text-align:center;color:#aebbc2;font-size:.6875rem;z-index:3}
.skin-preview-clips{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;margin:0 0 10px}
.skin-preview-clips button{min-width:72px;min-height:44px}
.skin-preview-clips button[aria-pressed=true]{border-color:#d2b478;background:#98713436;color:#ffe5ac}
.skin-preview-clips button:disabled{opacity:.4}
.skin-preview-balance{margin:0 0 8px;text-align:center}
.skin-soon-note{margin:0 0 12px;padding:8px 12px;border:1px solid #b793514d;border-radius:8px;background:#0a111b99;color:#e8d2a0}
.skin-card .skin-ready .skin-picture{filter:none}
.companion-look{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:8px 0}
.companion-look>span{color:#bec8cc;font-size:.8125rem}
.companion-look button{min-height:44px}
.companion-look small{flex:1 1 100%;color:#aebbc2;font-size:.6875rem}
@media(max-width:700px){.skin-preview-stage{height:260px}}
/* Cosmetics tab on the Hero page (public/alpha-shop-ui.js wardrobePage; Pat, 18 Oct 2026). */
.wardrobe-page{display:grid;gap:16px}
.wardrobe-hero.skin-preview-dialog{width:auto;max-height:none;overflow:visible;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr);grid-template-areas:"copy stage" "copy clips";gap:10px 20px;align-items:center;padding:18px}
.wardrobe-hero-copy{grid-area:copy}.wardrobe-hero-copy h2{margin:2px 0 8px;font-size:1.6rem}.wardrobe-hero-copy p{margin:0;line-height:1.5}
.wardrobe-hero .wardrobe-stage{grid-area:stage;height:380px;margin:0}
.wardrobe-hero .skin-preview-clips{grid-area:clips;margin:0}.wardrobe-hero .skin-preview-clips button{min-height:44px}
.wardrobe-section h2{margin:0 0 6px}.wardrobe-section>p{margin:0 0 12px;line-height:1.5}.wardrobe-empty{margin:12px 0 0}
.wardrobe-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:12px}
.wardrobe-card{display:flex;flex-direction:column;border:1px solid #b7935166;border-radius:10px;background:linear-gradient(#17263a,#0d1622);overflow:hidden}
.wardrobe-card.is-worn{border-color:#e8c46a;box-shadow:0 0 0 1px #e8c46a,0 0 18px #e8c46a40}
.wardrobe-card-art{position:relative;height:230px;display:flex;align-items:flex-end;justify-content:center;background:radial-gradient(ellipse at 50% 80%,#2b3d52,#0d1622 70%)}
.wardrobe-card-art img{height:94%;max-width:100%;object-fit:contain}
.wardrobe-badge{position:absolute;top:8px;left:8px;padding:3px 9px;border-radius:999px;background:#e8c46a;color:#1a1208;font-weight:700;font-size:.8rem}
.wardrobe-card-copy{display:flex;flex:1;flex-direction:column;gap:6px;padding:10px 12px 12px}.wardrobe-card-copy h3{margin:0;font-size:1.05rem}.wardrobe-card-copy p{margin:0;line-height:1.4;color:#d9c9a3}
.wardrobe-card-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:auto;padding-top:4px}.wardrobe-card-actions button{flex:1 1 auto;min-height:44px}
.wardrobe-grid-shop .wardrobe-card-art{height:170px}
.wardrobe-shop{margin-top:12px;min-height:44px}
@media(max-width:700px){.wardrobe-hero.skin-preview-dialog{grid-template-columns:1fr;grid-template-areas:"copy" "stage" "clips";padding:14px}.wardrobe-hero .wardrobe-stage{height:300px}.wardrobe-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.wardrobe-card-art{height:170px}.wardrobe-grid-shop .wardrobe-card-art{height:130px}.wardrobe-card-copy{padding:8px 10px 10px}}
/* Gift Crowns from the Alpha test giveaway (lib/dawn-crowns.js gift): removed at the next wipe. */
.crown-gift-note{margin:0 0 12px;padding:8px 12px;border:1px solid #7fb7e866;border-left:4px solid #7fb7e8;border-radius:8px;background:#0b182499;color:#d6e9f8;line-height:1.4}
.crown-gift-note b{color:#fff}
.salvage-confirmation .crown-gift-note,.skin-preview-dialog .crown-gift-note{margin:8px 0}
/* Settings, Delete a character (28 Oct): the same rows as Your characters, one chosen at a time. */
.delete-pick-list{margin:12px 0}.delete-pick-list button>span{display:flex;flex-direction:column;min-width:0}.delete-pick-list small{display:block;margin-top:4px;color:#b5c0c2}.delete-pick-list img.portrait{flex:0 0 48px;width:48px;height:48px;border-radius:6px;object-fit:cover}.delete-pick-list button.selected{border-color:#d6b980;box-shadow:inset 3px 0 #d6b980}

/* /ui-overhaul.css */
/* Review foundation: Stonewake stone, warm metal and restrained parchment tones. */
:root{--realm-ink:#e6e3d9;--realm-muted:#aeb6b8;--realm-gold:#d5b77e;--realm-edge:#5e5441;--realm-panel:#141d2b;--mmo-gold:#d5b77e;--mmo-edge:#5e5441;--ui-border:#c5b48b22;--ui-panel:#141d2b;--ui-canvas:#0b111d}
body{background:var(--ui-canvas);font-size:.875rem;color:var(--realm-ink)}.shell.mmo-shell{background:radial-gradient(ellipse at 80% 0,#35423c22,transparent 52%),#0b111d}.shell p{line-height:1.5}.shell h1{font-size:clamp(1.625rem,2.5vw,2.25rem);font-weight:500;letter-spacing:.015em}.shell h2{font-size:1.3125rem}.shell h3{font-size:1.0625rem}.shell .eyebrow{font-size:.625rem;letter-spacing:.14em;color:#bba174}.shell .small-note{font-size:.75rem;line-height:1.5}.shell a{color:#d3bc86}.shell .exp-page{padding:24px clamp(14px,2.5vw,36px) 50px}.shell :is(.exp-panel,.inventory-panel,.ornate,.current-lesson,.quest-records){background:#141d2b;border:1px solid var(--ui-border);border-radius:5px;box-shadow:none}.shell :is(.exp-panel,.inventory-panel){padding:18px}.shell .exp-panel .exp-panel{background:transparent;border:0;border-top:1px solid var(--ui-border);border-radius:0;padding-inline:0}.shell .secondary,.modal-backdrop .secondary{background:linear-gradient(#273246,#1b2536);border:1px solid #74807855;box-shadow:inset 0 1px #ffffff0c;color:#e1dfd4;border-radius:4px;font:500 .8125rem/1.3 system-ui;padding:9px 14px;min-height:44px}.shell .secondary:hover,.modal-backdrop .secondary:hover{background:#344057;border-color:#bba474}.shell .red-button,.modal-backdrop .red-button{background:linear-gradient(#bd9860,#957441);color:#151713;border:1px solid #d7b77d;box-shadow:inset 0 1px #fce7bb66;font:700 .8125rem/1.3 system-ui;border-radius:4px;min-height:44px;padding:10px 18px}.shell button:disabled{opacity:.45;cursor:not-allowed}.shell :is(input,select,textarea){background-color:#0b1423;color:#e6e3d9;border-color:#5b666566;border-radius:4px}.shell input[type=checkbox]{accent-color:#c8a56c}.shell :is(th,td){border-color:var(--ui-border);font-size:.8125rem}.shell th{color:#d5c9ad;background:#ffffff04}.shell progress{accent-color:#bba36c;height:6px}.shell dt{word-break:normal;overflow-wrap:normal}.shell .section-tabs{background:#0e1726;padding:0 24px;gap:4px;border-bottom:1px solid var(--ui-border)}.shell .section-tab{background:none;border:0;border-radius:0;min-height:44px;padding:10px 15px;font-size:.8125rem;color:#aeb5b5}.shell .section-tab.selected{background:#cfac6310;box-shadow:inset 0 -2px #cba56c;color:#e8cfa1}.shell .topbar{background:#0c1422f7;border-bottom:1px solid var(--ui-border);box-shadow:none}.shell .nav-brand{margin-bottom:16px}.shell .nav-brand>span{display:none}.shell .nav-copy small{display:none}.shell .topbar>nav .nav-button{background:transparent;border:0;box-shadow:none;border-radius:3px}.shell .topbar>nav .nav-button:hover{background:#d4b8750b}.shell .topbar>nav .nav-button.active{background:linear-gradient(90deg,#cda25c25,transparent);color:#f1d39c;box-shadow:inset 2px 0 #d0aa66;border:0}.shell .nav-copy strong{font:500 min(.8125rem,15px)/1.3 system-ui}.shell .hero-hud strong{font:600 .9375rem system-ui}.shell .hero-hud span,.shell .hero-hud small{font-size:.6875rem}.shell .hero-hud button{min-height:44px}.shell .exp-heading{margin-bottom:20px}.shell .exp-heading h1{margin:5px 0}.shell .exp-heading>p{margin:4px 0}.illustrated-heading{position:relative;isolation:isolate;overflow:hidden;min-height:155px!important;padding:24px 170px 22px 24px!important;margin-bottom:20px;border:0!important;border-bottom:1px solid #c5a76a44!important;border-radius:5px 5px 0 0!important;background:linear-gradient(90deg,#243130,#1b242af0 65%,#2c3437)!important;box-shadow:none!important}.illustrated-heading>div,.illustrated-heading>p,.illustrated-heading>h1,.illustrated-heading>h2{position:relative;z-index:1}.menu-illustration{position:absolute!important;right:18px;bottom:0;height:145px;width:140px;object-fit:contain;object-position:bottom;pointer-events:none;filter:drop-shadow(0 0 18px #ccbb7633);opacity:.95}.illustrated-heading[data-menu-theme=parchment]{background:linear-gradient(95deg,#322e25,#20272af5)!important}.illustrated-heading[data-menu-theme=arcane]{background:linear-gradient(95deg,#2c273a,#1e252bf5)!important}.illustrated-heading[data-menu-theme=stone]{background:linear-gradient(95deg,#2f3435,#141d2bf5)!important}.illustrated-heading[data-menu-theme=herbs]{background:linear-gradient(95deg,#273830,#19262bf5)!important}.illustrated-heading[data-menu-theme=market]{background:linear-gradient(95deg,#322b21,#1b252af5)!important}.menu-illustration[src$="town-artisans.webp"]{object-fit:cover;object-position:40% 40%;opacity:.4;mask-image:linear-gradient(90deg,transparent,#000);width:220px}.ui-tooltip{position:fixed;z-index:5000;max-width:min(340px,calc(100vw - 16px));max-height:calc(100dvh - 16px);overflow:auto;padding:14px 16px;border:1px solid #b6985d;background:#151d24f7;color:#d9dfde;border-radius:5px;box-shadow:0 8px 25px #0009;font:.8125rem/1.5 system-ui;box-sizing:border-box;white-space:pre-line}.ui-tooltip strong{display:block;color:#edce91;margin-bottom:6px}.ui-tooltip p{margin:0}.ui-help{border:0;background:none;color:#cbb783;padding:6px;font-size:.9375rem;min-width:28px;min-height:28px;cursor:help}.shell :is(.text-link,.text-button){font:500 .75rem/1.4 system-ui;color:#d3bd8a;background:none;border:0;padding:6px 0;text-decoration:underline;text-underline-offset:3px}.shell :focus-visible{outline:2px solid #f1d393;outline-offset:3px}.shell :is(.quest-card,.guild-upgrade,.guild-directory>article,.crown-products article,.leaderboard-panel,.gather-log,.gather-materials,.gather-coming){background:#141d2b;border-color:var(--ui-border);box-shadow:none;border-radius:4px}.shell .quest-grid{grid-template-columns:1fr;gap:0}.shell .quest-card{position:relative;padding:16px 18px 16px 54px;border:0;border-bottom:1px solid var(--ui-border)}.quest-card:before{content:'◆';position:absolute;left:18px;top:24px;color:#d7b779;font-size:1.375rem;text-shadow:0 0 12px #c7a56844}.shell .quest-card h3{margin:4px 0;font-size:1.125rem}.shell .quest-card p{margin:5px 0;font-size:.8125rem}.shell .quest-card .eyebrow{font-size:.625rem}.shell .quest-card .quest-reward{color:#b2ccad}.shell .quest-card button{margin:6px 6px 0 0}.shell .guild-upgrade{padding:18px}.shell .guild-emblem{background:none;border:0;box-shadow:none;color:#cdb787}.shell .leaderboard-panel{padding:18px}.shell .leaderboard-panel tr:nth-child(-n+3) td:first-child{color:#ebca81;font-size:1.0625rem;font-weight:700}.shell .leaderboard-panel table{width:100%;border-collapse:collapse}.shell .leaderboard-panel td,.shell .leaderboard-panel th{padding:10px}.shell .account-storage .storage-columns>.exp-panel{border:0;border-top:1px solid var(--ui-border)}.shell .account-storage .storage-grid{gap:8px}.shell .handbook-header{border-color:var(--ui-border)}.shell .handbook-index,.shell .handbook .handbook-article,.shell .guide-category{background:#141e2d;border-color:var(--ui-border);box-shadow:none;border-radius:4px}.shell .handbook-preview{font-size:.8125rem}.shell .handbook-article h2{font:600 1rem/1.4 system-ui}.shell .handbook-answer{font-size:.875rem}.shell .handbook-short{background:#a5b98b0d;color:#dfdfcf}.shell .paths-heading{border-bottom:1px solid var(--ui-border);margin-bottom:20px}.shell .paths-heading h1{margin:4px 0}.shell .path-intro{padding:12px 0;background:none;border:0}.shell .path-intro h2{font-size:1.3125rem}.shell .path-intro p{margin:4px 0;font-size:.8125rem}.shell .path-inspector{background:#141e2d;border:1px solid var(--ui-border);border-top:2px solid var(--path-tone);padding:18px}.shell .path-inspector h2{font-size:1.4375rem}.shell .path-inspector-title .skill-art{width:54px;height:54px}.shell .path-stats{gap:8px}.shell .path-stats>div{background:transparent;border:0;border-bottom:1px solid var(--ui-border);padding:8px 0}.shell .path-stats dt{font-size:.6875rem;color:#a5b1b8}.shell .path-stats dd{font-size:.875rem}.shell .path-skill-summary{font-size:.875rem;color:#e4e5dd}.shell .path-trigger{font-size:.75rem}.shell .skill-estimate{padding:12px;background:#90b3a010;border:0;border-left:2px solid #8da88a}.shell .skill-estimate-value{font-size:.875rem}.shell .skill-estimate-value strong{font-size:1.5rem;color:#e2d3a6}.shell .skill-estimate>small{font-size:.6875rem}.shell .skill-calculation{font-size:.75rem}.shell .path-loadout{background:transparent;border:0;padding:0}.shell .path-loadout article{background:#1c242a;border:1px solid var(--ui-border);border-radius:4px}.shell .character-panel{background:radial-gradient(ellipse at 65% 30%,#49574a26,transparent 65%),#172027;border:0;border-top:1px solid var(--ui-border)}.shell .character-attributes{background:transparent;box-shadow:none}.shell .paper-doll figure{background:radial-gradient(ellipse,#c1a77210,transparent 60%)}.shell .paper-doll figcaption{font-size:.875rem}.shell .workshop-bench{border:1px solid var(--ui-border);box-shadow:none;background:#141e2d}.shell .workshop-heading{border-bottom:1px solid var(--ui-border);padding-bottom:15px}.shell .enchanter-operation,.shell .enchanter-item{box-shadow:none;background:transparent}.shell .workshop-operations button{background:#151b21;border-color:var(--ui-border)}.shell .workshop-operations button[aria-pressed=true]{border-color:#ccab71;background:#ccab7112}.shell .community-chat{background:linear-gradient(180deg,#16222a,#10181e);border-color:#786747}.shell .chat-message{background:transparent;box-shadow:none}.shell .raid-company{border:0;border-bottom:1px solid var(--ui-border)}.shell .raid-role-counts>span{border:0;background:#c8b16d0b;border-radius:3px}.shell .raid-frame,.shell .party-member{box-shadow:none}.shell .settings-panel{background:#171f26;border-color:var(--ui-border)}.shell .market-header{border-radius:4px 4px 0 0}.shell .market-inventory,.shell .market-categories{background:#111927}.shell .market-main{background:#101827}.shell .alpha-notice{font-size:.75rem}.shell .town-paths{background:#172027;border-color:var(--ui-border);box-shadow:none}.shell .town-path{background:transparent;border:0;border-bottom:1px solid var(--ui-border);border-radius:0}.shell .town-paths h2{font-size:1.25rem}.shell .town-path small{font-size:.6875rem}
/* Gathering has a real activity scene; the clock stays readable and authoritative. */
.squire-scene{position:relative;overflow:hidden;background:radial-gradient(ellipse at 55% 62%,#b79a5c1c,transparent 70%),#121c23;border-radius:4px;height:145px;isolation:isolate}.squire-scene svg{height:100%;width:100%;display:block}.squire-scene.herbalism{background:radial-gradient(ellipse,#80bea327,transparent 70%),#121f23}.squire-scene.woodcutting{background:radial-gradient(ellipse,#91b76a20,transparent 70%),#151f24}.squire-tool{transform-origin:157px 84px}.is-working .squire-tool{animation:squire-strike 1.6s ease-in-out infinite}.is-working .squire-worker{animation:squire-breathe 1.6s ease-in-out infinite;transform-origin:151px 138px}.is-working .squire-sparks{animation:squire-sparks 1.6s ease-out infinite}.is-working .squire-wisp{animation:squire-float 3s ease-in-out infinite}.is-resting .squire-sparks{opacity:0}.squire-trip-progress{position:absolute;bottom:0;left:0;height:3px;width:var(--trip-progress,0%);background:var(--squire-color);transition:width 1s linear}.shell .gather-squire{padding:0 0 18px;background:#141e2d;border:1px solid var(--ui-border);box-shadow:none;overflow:hidden}.gather-squire>.squire-scene{border-radius:0;margin-bottom:16px}.shell .gather-squire>*:not(.squire-scene){margin-left:18px;margin-right:18px}.shell .gather-squire>progress{width:calc(100% - 36px)}.shell .gather-squire h2{font-size:1.5rem;margin-block:4px}.shell .gather-squire p{font-size:.75rem;margin-block:6px}.shell .gather-squire .eyebrow{font-size:.625rem}.shell .gather-squire dl{font-size:.75rem;margin-block:16px}.shell .gather-squire form{gap:8px}.shell .gather-squire select{font-size:.8125rem}.shell .gather-dispatch{padding:0 18px 0 0;gap:18px;border:1px solid #bba57233;background:#1c292c;border-radius:5px;overflow:hidden}.gather-dispatch>.squire-scene{width:210px;flex:0 0 210px;height:128px;border-radius:0}.shell .gather-dispatch h2{font-size:1.25rem}.shell .gather-dispatch p{font-size:.75rem}.shell .gather-clock strong{font:1.625rem/1.3 system-ui;font-variant-numeric:tabular-nums;letter-spacing:.03em}.shell .gather-clock span{font-size:.6875rem}.shell .gather-log{border:0;border-top:1px solid var(--ui-border);padding:18px 0}.shell .gather-log li{padding:10px 0;font-size:.8125rem}.shell .gathering-facts{font-size:.75rem;gap:8px 20px}.shell .gather-material-row .workshop-art{width:34px;height:34px;flex:0 0 34px}.shell .gather-material-row{padding:6px 0;font-size:.75rem}.shell .gather-material-grid{gap:20px}.gather-rules{padding:12px 0;font-size:.75rem}.gather-rules>summary{cursor:pointer;color:#cdb783;min-height:44px}
@keyframes squire-strike{0%,100%{transform:rotate(10deg)}35%{transform:rotate(-37deg)}52%{transform:rotate(17deg)}65%{transform:rotate(10deg)}}@keyframes squire-breathe{0%,100%{transform:rotate(0)}45%{transform:rotate(-2deg)}55%{transform:rotate(2deg)}}@keyframes squire-sparks{0%,47%,75%,100%{opacity:0;transform:translate(0,0)}51%{opacity:1}70%{opacity:0;transform:translate(6px,-6px)}}@keyframes squire-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-8px)}}
@media(min-width:1001px){.shell.mmo-shell{padding-left:180px}.shell.mmo-shell>.topbar{padding:10px 24px;grid-template-columns:minmax(0,1fr) auto;min-height:66px}.shell.mmo-shell>.topbar>.wordmark{display:none}.shell.mmo-shell>.topbar>.hero-hud{display:flex;grid-column:1;grid-row:1}.shell.mmo-shell>.topbar>.account-block{grid-column:2}.shell.mmo-shell>.topbar>nav{position:fixed;inset:0 auto 0 0;width:180px;height:100dvh;padding:22px 10px 16px;display:flex!important;flex-direction:column;gap:3px;background:linear-gradient(#22292d,#131a20);border-right:1px solid #ae915333;overflow-y:auto!important}.shell.mmo-shell>.topbar>nav .nav-button{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:12px;min-height:44px;width:100%;padding:10px;text-align:left;flex:none}.shell.mmo-shell>.topbar>nav .nav-button .icon{width:20px;height:20px;flex:0 0 20px;opacity:.8}.shell .nav-brand{display:block;margin-bottom:14px}.shell .nav-brand .wordmark{max-width:145px}.shell .nav-more{display:none}.shell .nav-label-short{display:none}.shell .nav-label-full{display:block}.shell .mmo-shell .combat-grid{min-height:0}.shell .nav-account{margin-top:auto}}
@media(max-width:1000px){.shell.mmo-shell{padding-left:0}.illustrated-heading{padding-right:125px!important}.menu-illustration{width:110px;height:145px;right:5px}.shell .gather-dispatch>.squire-scene{width:150px;flex-basis:150px}}
@media(max-width:650px){.shell .exp-page{padding:14px 12px 30px}.shell :is(h1){font-size:1.6875rem}.shell .secondary,.shell .red-button{min-height:44px}.illustrated-heading{padding:16px 100px 16px 14px!important;min-height:120px!important}.menu-illustration{width:100px;height:125px;right:0;opacity:.8}.illustrated-heading .gathering-facts{display:flex;gap:8px}.shell .gather-squires{gap:14px}.shell .gather-squire{display:block}.shell .gather-squire>.squire-scene{height:130px}.shell .gather-dispatch{display:grid;grid-template-columns:110px 1fr;padding:0;gap:10px}.shell .gather-dispatch>.squire-scene{width:110px;min-width:0;height:135px;grid-row:1/3}.shell .gather-dispatch>div:not(.squire-scene){min-width:0;padding-right:8px}.shell .gather-clock{width:auto;margin:0;padding:0 0 10px!important;text-align:left;border:0}.shell .gather-clock strong{font-size:1.375rem}.shell .gather-dispatch h2{font-size:1.0625rem}.shell .gather-dispatch p{font-size:.6875rem}.shell .gather-material-grid{grid-template-columns:1fr}.shell .quest-card{padding:14px 10px 14px 38px}.quest-card:before{left:10px;font-size:1.125rem}.shell .section-tabs{padding:0 10px}.shell .section-tab{min-height:44px;padding:9px 10px}.shell .ui-help{min-width:44px;min-height:44px}.shell .path-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.shell .market-preview{font-size:.8125rem}.shell .craft-heading.illustrated-heading{padding-right:105px!important}.shell .craft-heading{display:block}.shell .craft-heading>strong{display:block;margin-top:8px}}
@media(prefers-reduced-motion:reduce){.squire-scene *{animation:none!important;transition:none!important}.is-working .squire-sparks{opacity:0}}

/* Shared midnight palette and legible, compact activity controls. */
.shell .market-categories h2{font:600 .6875rem/1.4 system-ui;letter-spacing:.12em;white-space:nowrap}
.shell .illustrated-heading{background:linear-gradient(100deg,#19273a,#111c2de8 64%,#283149)!important}
.shell .illustrated-heading[data-menu-theme=forest],.shell .illustrated-heading[data-menu-theme=herbs]{background:linear-gradient(100deg,#193033,#111d2de8 64%,#1e323c)!important}
.shell .illustrated-heading[data-menu-theme=arcane]{background:linear-gradient(100deg,#26233c,#141b31e8 64%,#2c2943)!important}
.shell .gather-squire{padding:16px;background:#131f2d;border-color:#bda77524}
.shell .gather-squire h2{margin:2px 0;font-size:1.5rem}.shell .gather-squire>p{margin:6px 0;font-size:.8125rem}
.shell .gather-squire progress{margin:12px 0 0}.shell .gather-squire dl{margin:14px 0}.shell .gather-squire dl>div{padding:5px 0}
.shell .gather-squire form{margin-top:12px;gap:8px}.shell .gather-squire label{font-size:.75rem}.shell .gather-squire select{padding:10px;min-height:44px}.shell .gather-squire button{width:100%}
.shell .gather-squire .squire-scene{height:130px;margin:-16px -16px 14px}
.shell .gather-ready{background:transparent;border:0;padding:0;font-size:.8125rem;color:#aeb6c2}
.shell .gathering-facts{font-size:.75rem}.shell .gather-dispatch{background:linear-gradient(110deg,#162a30,#111b2c);border:1px solid #b69c593f}
.shell .gather-log,.shell .gather-coming{padding:18px}.shell .gather-material-row{font-size:.8125rem}.shell .gather-material-row .workshop-art{width:38px;height:38px}
@media(max-width:650px){.shell .illustrated-heading{min-height:135px!important}.shell .illustrated-heading .menu-illustration{height:115px;width:85px;right:8px}.shell .gather-squire .squire-scene{height:120px}.shell .gather-squire form{margin-top:12px}}

/* Dawn Exchange: each upgrade has its own readable, original product illustration. */
.shell .crown-shop-heading{padding:15px 24px;background:radial-gradient(ellipse at 70% 45%,#71604c35,transparent 65%),linear-gradient(100deg,#19273a,#111a2b);border-bottom:1px solid #b9a07155;margin-bottom:14px;min-height:170px}
.shell .crown-merchant>img{height:150px}.shell .crown-merchant h1{font-size:2rem}.shell .crown-merchant p{margin:6px 0}
.shell .crown-wallet{border:0;box-shadow:none;background:none;padding:0;gap:12px}.shell .crown-wallet .crown-product-art{width:70px;height:70px}.shell .crown-wallet strong{font:1.125rem Georgia;color:#dfc99b}.shell .crown-wallet small{font-size:.6875rem;color:#bbc2cd}
.shell .crown-alpha-notice{padding:12px 16px;background:#cbb4750b;border:0;border-left:2px solid #c1a571;font-size:.8125rem}.shell .crown-alpha-notice p{font-size:.75rem;line-height:1.5;margin:3px 0 0}
.shell .crown-benefits{font-size:.75rem;padding:12px 0;margin:10px 0 18px;gap:12px 24px}
.crown-categories{display:flex;gap:24px;border-bottom:1px solid #d0b27b33;padding:0 0 12px}.crown-categories a{font:500 .8125rem system-ui;text-decoration:none}.crown-categories a:hover{color:#ffebb6}
.shell .crown-category{scroll-margin-top:85px;margin:24px 0 30px}.shell .crown-category>h2{font:500 1.5rem Georgia;border:0;padding:0;margin:0 0 12px;color:#ddd4bf}
.shell .crown-products{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.shell .crown-products article{display:flex;flex-direction:column;align-items:stretch;padding:0;position:relative;overflow:hidden;border:1px solid #c7aa7040;border-radius:4px;background:linear-gradient(160deg,#1b293d,#0e1726);box-shadow:0 6px 18px #0002}
.crown-art-stage{height:210px;position:relative;background:radial-gradient(ellipse at 50% 65%,#b5986140,transparent 63%);border-bottom:1px solid #c7aa7022}.crown-product-art{display:block;width:100%;height:100%}.crown-art-stage .crown-product-art{padding:18px 24px;box-sizing:border-box;filter:drop-shadow(0 7px 8px #0008)}
.crown-scope{position:absolute;left:14px;top:12px;font:min(.625rem,12px) system-ui;text-transform:uppercase;letter-spacing:.1em;color:#bfc4cf;background:#0b142ccc;padding:4px 6px}
.crown-product-copy{padding:16px;display:flex;flex-direction:column;flex:1;min-width:0}.shell .crown-products h3{font:1.25rem/1.3 Georgia;margin:0 0 6px;color:#e9d7af}.shell .crown-products p{font:.8125rem/1.5 system-ui;margin:0 0 6px;color:#d0d5df}.crown-product-meta{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:auto 0 10px;padding-top:8px}.crown-product-meta small{font-size:.6875rem;color:#aeb8c6}.crown-bonus-list{display:grid;grid-template-columns:1fr 1fr;gap:6px;font-size:.6875rem;color:#b7cbaa}.shell .crown-products button[data-shop-claim]{width:100%;font-size:.75rem}.shell .crown-shop-footer{border-color:#c7aa7033}.shell .crown-products button:disabled{opacity:.6}
@media(max-width:1150px){.shell .crown-products{grid-template-columns:repeat(2,minmax(0,1fr))}.shell .crown-wallet{display:none}}
@media(max-width:650px){.shell .crown-shop-heading{padding:12px;min-height:135px}.shell .crown-merchant h1{font-size:1.5625rem}.shell .crown-merchant>img{height:120px}.shell .crown-products{grid-template-columns:1fr}.shell .crown-products article{display:grid;grid-template-columns:100px minmax(0,1fr)}.crown-art-stage{height:100%;min-height:180px;border:0;background:radial-gradient(ellipse,#b5986133,transparent 70%)}.crown-art-stage .crown-product-art{padding:4px;height:160px;margin-top:26px}.crown-scope{left:8px;top:12px;font-size:min(.5625rem,11px)}.crown-product-copy{padding:16px 12px}.shell .crown-products h3{font-size:1.125rem}.crown-categories{gap:20px;overflow-x:auto}.shell .crown-category>h2{font-size:1.375rem}.crown-product-meta{flex-wrap:wrap;gap:2px}}

.shell .craft-hero-art .workshop-art{flex-basis:130px;width:130px;height:145px}.shell .craft-workbench{background:#141e2d}.shell .craft-workbench>nav{background:#101927}
.shell .craft-ingredient{position:relative}.shell .craft-options:before{content:none}
@media(min-width:1001px){.shell.mmo-shell .topbar{height:0;min-height:0;padding:0;border:0}.shell .topbar .account-name{display:block;min-width:0;font:.75rem system-ui}.shell .topbar .account-name b{display:block;overflow:hidden;text-overflow:ellipsis}.shell .topbar .account-name small{font-size:.6875rem}}
@media(max-width:900px){.shell .craft-hero-art .workshop-art{flex-basis:100px;width:100px;height:120px}}
@media(max-width:400px){.shell .craft-hero-art .workshop-art{flex-basis:75px;width:75px;height:100px}}

.craft-ingredient-wrap{min-width:0}.craft-ingredient-wrap>.eyebrow{font-size:.5625rem!important;letter-spacing:.06em!important;margin:0 0 4px;color:#aeb6c2!important}@media(max-width:650px){.craft-ingredient-wrap{width:100%}.shell .craft-ingredient-wrap>.eyebrow{font-size:.5rem!important}}

.town-hero>.town-player-name{width:max-content;white-space:nowrap;overflow-wrap:normal;word-break:normal;left:50%;transform:translateX(-50%)}
.modal-backdrop .ornate{background:linear-gradient(145deg,#1c293c,#101927);border:1px solid #bd9d674d;border-radius:6px;box-shadow:0 16px 60px #0009;color:#e5e3db}.modal-backdrop :is(h1,h2,h3){color:#e8d5ad}.modal-backdrop :is(input,select,textarea){background:#0d1726;color:#e5e3db;border:1px solid #9ca8b04d}.item-hover{background:#111b2bf7;border-color:#bca169;color:#dce1e8}.item-hover h3{color:#e8d5ad}.shell h1{color:#eee5cd}.shell .crown-alpha-notice>small{display:block;margin-top:5px;font-size:.6875rem;color:#c0c8d3}

.shell .quest-card{padding-left:132px;min-height:125px}.shell .quest-card:before{display:none}.quest-location-art{position:absolute;left:0;top:18px;width:110px;height:90px;object-fit:cover;border:1px solid #bca3744d;mask-image:linear-gradient(90deg,#000 80%,transparent)}
@media(max-width:600px){.shell .quest-card{padding:14px 6px 14px 80px}.quest-location-art{width:66px;height:76px;top:18px}.shell .quest-card h3{font-size:1.0625rem}.shell .quest-card p{font-size:.75rem}}

.shell.mmo-shell.wayfarer-shell .topbar>nav{background:linear-gradient(180deg,#121d2c,#0b1320);border-right:1px solid #bda16d35}
.shell .guild-page .exp-panel{border:0;border-top:1px solid #c7ac7340;background:#111b2a}.shell .guild-task-grid article{background:transparent;border:0;border-bottom:1px solid #c7ac7320}.guild-hunt-rules{font-size:.75rem;color:#adb8c6;margin-top:14px}.shell .guild-upgrade{position:relative;min-height:170px;padding:20px 16px;background:radial-gradient(ellipse at 50% 0,#65786b20,transparent 75%),#111b2a}.shell .guild-upgrade .guild-emblem{font-size:2rem;opacity:.85;margin-bottom:12px}.shell .guild-roster th,.shell .guild-roster td{padding:10px 14px}

@media(max-width:650px){.shell .illustrated-heading{padding:18px 14px!important;min-height:145px!important}.shell .illustrated-heading>.eyebrow,.shell .illustrated-heading>h1,.shell .illustrated-heading>p{max-width:calc(100% - 70px)}.shell .illustrated-heading>p{font-size:.75rem;margin:5px 0}.shell .illustrated-heading>h1{font-size:1.6875rem;margin:5px 0 8px}.shell .illustrated-heading .menu-illustration{top:14px;bottom:auto;width:70px;height:100px}.shell .illustrated-heading>.az-actions{position:relative;margin-top:12px;display:flex;flex-wrap:wrap;gap:6px;padding:0}.shell .illustrated-heading>.az-actions>*{flex:none;width:auto;font-size:.6875rem;padding:8px 10px;min-height:44px}.shell .illustrated-heading .gathering-facts{max-width:100%;gap:8px;position:relative;font-size:.6875rem}.shell .market-heading aside{margin-right:58px}.shell .craft-heading>div{max-width:calc(100% - 70px)}}

.settings-modal{width:min(560px,calc(100vw - 24px));max-height:calc(100dvh - 32px);overflow:auto;padding:24px}.settings-modal>h2{margin:0 0 14px;font:1.6875rem Georgia}.settings-modal h3{font:1.125rem Georgia}.settings-modal .alpha-notice{font-size:.75rem}.settings-modal .small-note{font-size:.75rem;line-height:1.5;color:#b4becb}.settings-modal .checkbox-row{min-height:44px;display:flex;align-items:center;gap:10px;font-size:.8125rem}.settings-modal .character-reset{border:0;background:none;padding:0}.settings-help,.settings-danger{border-block:1px solid #cfb07022;padding:14px 0;margin:15px 0;font-size:.8125rem}.settings-help h3{display:none}.settings-danger>summary{color:#e1a49b}
@media(max-width:400px){.shell .nav-account{gap:4px}.shell .nav-account .nav-tools{gap:4px}.shell .nav-account .nav-tools>.secondary{width:44px;padding:8px}.shell .nav-account .nav-inventory{padding:8px;font-size:.75rem}.shell .nav-account .chat-launcher{padding:7px;font-size:.75rem}.settings-modal{padding:16px}}
@media(max-width:650px){.shell .craft-heading.illustrated-heading{padding:18px 14px!important}.shell .craft-heading h1{overflow-wrap:normal;word-break:normal}}
/* A single canvas per menu; dividers replace nested panel frames. */
.shell .exp-page>.exp-panel,.shell .party-workspace :is(.party-manage,.party-records,.party-roster-panel),.shell .guild-page .exp-panel{background:transparent;border:0;border-radius:0;box-shadow:none;padding:18px 0;margin:14px 0;border-bottom:1px solid #c8af7826}
.shell .exp-page .exp-panel>.exp-panel{padding:12px 0}.shell .exp-page>.exp-heading{border-radius:0;box-shadow:none}.shell .section-tabs{background:transparent;border:0;border-bottom:1px solid #c8af7833;gap:20px;padding:0 0 5px}.shell .section-tabs>.section-tab{border:0;border-radius:0;background:transparent;color:#bfc7d5;min-height:44px;border-bottom:2px solid transparent;padding:8px 4px}.shell .section-tabs>.section-tab.selected{background:transparent;border-color:#d0b27b;color:#f4dab0}.shell .section-tabs>.section-tab:hover{color:#fff0d6}
.shell .exp-page details>summary{min-height:44px;align-content:center;cursor:pointer}.menu-guide-link{display:inline-block;padding:14px 0;font-size:.8125rem}.shell :is(.secondary,.red-button,.text-button){min-height:44px}.shell .paths-budgets{display:flex;flex-direction:column;align-items:end;gap:7px}.path-reset-button{align-self:end}.reset-cost{color:#ecd3a1;font-size:1.375rem}.paths-page [aria-busy=true]{opacity:.65;cursor:wait}
/* Party: portraits, compact status rows and one set of actions. */
.shell .party-overview{padding:14px 0;background:none;border:0;border-bottom:1px solid #c8af7833}.shell .party-roster-panel{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 28px}.shell .party-member{border:0;border-radius:0;background:none;padding:16px 0;grid-template-columns:64px minmax(0,1fr);border-bottom:1px solid #c8af7826;column-gap:12px}.party-member>.tavern-portrait{grid-row:1/3;width:64px;height:76px}.shell .party-member h2{font-size:1.125rem;margin:0 0 5px}.shell .party-member p{font-size:.75rem;margin:0}.shell .party-member-role{grid-column:2;text-align:left;font-size:.6875rem;margin-top:5px}.shell .leader-label{font-size:.5625rem;margin-left:8px;color:#e5c581}.shell .party-recruitment{border:0;background:none;padding:12px 0}.shell .party-recruitment>header{display:none}.shell .recruitment-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 22px}.shell .recruitment-card{border:0;border-bottom:1px solid #c8af7826;background:none;border-radius:0;padding:12px 0}.party-recruit-section{border-bottom:1px solid #c8af7826;padding:8px 0}.party-recruit-section>summary{font:1.125rem Georgia;color:#e7d1a8}.party-recruit-section>summary>span{font:.75rem system-ui;color:#aeb8c7;margin-left:10px}.shell .party-manage>summary,.shell .party-records>summary{font:1.125rem Georgia;color:#e7d1a8}.shell .party-manage>summary span,.shell .party-records>summary span{font:.75rem system-ui;color:#aeb8c7}
/* Guild: a banner, a member ledger, progress and four illustrated boons. */
.shell .guild-summary{background:none;border:0;border-block:1px solid #c8af7833;padding:12px 0}.shell .guild-task-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}.shell .guild-task-grid article{padding:12px 0;border:0;background:none}.shell .guild-task-grid h3{font:.875rem system-ui;margin:0 0 8px}.shell .guild-task-grid progress{height:7px}.shell .guild-task-grid p{font-size:.75rem;margin:6px 0}.shell .guild-upgrades{gap:0;grid-template-columns:repeat(4,minmax(0,1fr));border-block:1px solid #c8af7826}.shell .guild-upgrade{border:0;border-radius:0;background:radial-gradient(ellipse at 50% 30%,#b8a05c18,transparent 75%);padding:20px 12px;text-align:center;min-height:0}.shell .guild-upgrade h3{font:.9375rem Georgia;margin:6px 0}.shell .guild-upgrade strong{font:.8125rem system-ui}.shell .guild-upgrade p{font-size:.6875rem;margin:6px 0}.shell .guild-upgrade button{font-size:.6875rem;padding:7px 10px}.shell .guild-emblem{font-size:2.25rem;color:#ddc487}.guild-member-seal{display:inline-grid;place-items:center;float:left;width:32px;height:38px;margin-right:12px;background:linear-gradient(#75684970,#283549);clip-path:polygon(0 0,100% 0,100% 78%,50% 100%,0 78%);font:1.25rem Georgia;color:#ecd5a4}.shell .guild-roster{background:none}.shell .guild-roster :is(th,td){background:none;border-color:#c8af7822}.shell .guild-directory{display:block}.shell .guild-directory-row{display:grid;grid-template-columns:48px minmax(0,1fr) auto;gap:4px 12px;padding:18px 0;border-bottom:1px solid #c8af7826;background:none}.guild-banner{font:2.25rem Georgia;color:#d8bd8b;grid-row:1/4}.shell .guild-directory-row h3{margin:0}.shell .guild-directory-row p{grid-column:2;margin:0;font-size:.8125rem}.shell .guild-directory-row small{grid-column:2;font-size:.6875rem}.shell .guild-directory-row button{grid-column:3;grid-row:1/4;align-self:center}.shell .guild-page form{max-width:720px}.shell .guild-footer{padding:15px 0}
/* Storage: all items remain visible; only the selection needs a command area. */
.shell .storage-columns{display:grid;grid-template-columns:1fr 1fr;gap:30px}.storage-columns>section>header{display:flex;align-items:center;justify-content:space-between;padding:16px 0}.shell .storage-columns h2{margin:0;font:1.3125rem Georgia}.storage-columns>section>header>span,.storage-rules{font:.75rem system-ui;color:#adb8c8}.storage-rules{padding:12px 0;border-bottom:1px solid #c8af7826}.shell .storage-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(64px,1fr));gap:8px;align-content:start;min-height:150px;max-height:420px;overflow:auto;padding:4px}.shell .storage-slot{position:relative;width:100%;aspect-ratio:1;max-width:90px;min-height:64px;padding:4px;background:radial-gradient(ellipse,#bba77818,#0d1522);border:1px solid #6c756e5c;border-radius:3px}.shell .storage-slot>.gear-icon{width:100%;height:100%;display:block}.shell .storage-slot.selected{outline:2px solid #eccb87;outline-offset:1px}.storage-lock{position:absolute;right:5px;bottom:3px;color:#f0d9a7;font-size:.75rem}.storage-grid>.storage-empty{grid-column:1/-1;font-size:.8125rem}.storage-selection{display:flex;gap:16px;align-items:center;margin:22px 0;padding:18px 0;border-block:1px solid #c8af7833;min-height:100px}.storage-selection-art{flex:0 0 64px}.storage-selection-art>.gear-icon{width:64px;height:64px}.shell .storage-selection-name h2{font:1.125rem Georgia;margin:0 0 4px}.storage-selection-name>small{font-size:.75rem;color:#aeb8c7}.storage-selection-name>p{font-size:.75rem;color:#dfb6a4;margin:5px 0}.storage-selection-actions{display:flex;flex-wrap:wrap;gap:8px;margin-left:auto}.storage-empty-glyph{font:2.625rem Georgia;color:#c0a374}.storage-materials{padding:10px 0}.storage-preview>header{display:flex;gap:14px;align-items:center}.storage-preview>header>.gear-icon{width:60px;height:60px;flex:none}.storage-preview h3{font:1.25rem Georgia;margin:0 0 5px}.storage-preview small{font-size:.75rem;color:#b9c1cd}.storage-hover{width:min(360px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto}
@media(max-width:800px){.shell .party-roster-panel,.shell .recruitment-grid{grid-template-columns:1fr}.shell .guild-upgrades{grid-template-columns:repeat(2,minmax(0,1fr))}.shell .guild-directory-row{grid-template-columns:36px minmax(0,1fr)}.shell .guild-directory-row button{grid-column:2;grid-row:auto;justify-self:start}.shell .storage-columns{gap:14px}.shell .storage-grid{grid-template-columns:repeat(auto-fill,minmax(54px,1fr));gap:5px}.shell .storage-slot{min-height:54px}.storage-selection{flex-wrap:wrap}.storage-selection-actions{width:100%;margin:0}.storage-selection-name{flex:1}.shell .guild-task-grid{grid-template-columns:1fr;gap:2px}}
@media(max-width:450px){.shell .storage-columns{grid-template-columns:1fr}.shell .storage-grid{min-height:60px;max-height:245px;grid-template-columns:repeat(auto-fill,minmax(58px,1fr))}.shell .storage-slot{max-width:74px}.shell .paths-heading{align-items:start}.shell .paths-budgets{align-items:start}.path-reset-button{align-self:start}.shell .guild-roster :is(th,td){padding:10px 5px;font-size:.75rem}.guild-member-seal{display:none}}
.shell .party-member{display:grid;align-items:center}.shell .party-member-role{margin-left:0;max-width:none}

.path-passive-targets{padding:12px 0;border-block:1px solid #cbb27925}.path-passive-targets>strong{font:.6875rem system-ui;text-transform:uppercase;letter-spacing:.12em;color:var(--ui-gold,#d3b776)}.path-passive-targets>div{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}.path-passive-targets .text-button{display:inline-flex;align-items:center;gap:7px;text-align:left;padding:5px 7px;font-size:.75rem;min-height:44px}.path-passive-targets .path-art{width:26px;height:26px;flex:none}.path-global-effect{font-size:.75rem;color:#b1bdc8;align-self:center}

.crown-offline-cap{padding:8px 0;color:#b5becb}.crown-offline-cap b{font:1.625rem Georgia,serif;color:#efd39c}.crown-offline-cap progress{display:block;width:100%;height:5px;margin:8px 0;accent-color:#d6b773}.crown-offline-cap small{color:#dcc798}

.enemy-corpses{position:absolute;inset:0;z-index:25;pointer-events:none}

/* Combat ledger: skill art and effect contributions lead; counters stay optional. */
.meter-detail-backdrop .meter-visual{width:min(690px,calc(100vw - 24px));padding:0 24px 18px;background:radial-gradient(ellipse at 0 0,color-mix(in srgb,var(--meter-accent) 14%,transparent),transparent 55%),#0d1421;border:1px solid #9d84564f;border-radius:12px;box-shadow:0 24px 100px #000b;color:#eee5d5}.meter-visual .meter-hero{display:flex;align-items:center;gap:14px;padding:22px 0 14px;border:0;background:none}.meter-visual .meter-crest{display:grid;place-items:center;width:52px;height:60px;flex:none;font:2rem Georgia;color:var(--meter-accent);background:linear-gradient(145deg,#cbb27824,#1a2434);clip-path:polygon(12% 0,88% 0,100% 18%,100% 70%,50% 100%,0 70%,0 18%)}.meter-visual .meter-heading{min-width:0;flex:1}.meter-visual .eyebrow{font:.625rem system-ui;letter-spacing:.12em;color:var(--meter-accent);margin:0 0 6px}.meter-visual .meter-hero h4{font:1.5625rem Georgia,serif;line-height:1.15;color:#f2e9d8;margin:0}.meter-visual .meter-hero button{width:44px;min-height:44px;padding:0;border:0;background:transparent;color:#b8c1cf;font:1.25rem system-ui;align-self:start}.meter-overview{display:flex;align-items:center;gap:22px;padding:8px 0 20px;border-bottom:1px solid #b499682f;font:.75rem system-ui;color:#b1bdcd;font-variant-numeric:tabular-nums}.meter-overview>strong{font:2rem Georgia;color:var(--meter-accent)}.meter-overview small{font:.6875rem system-ui;color:#abb7c8}.meter-overview>span>b{color:#e7decd}.meter-overview>span:last-child{margin-left:auto;text-align:right}.meter-overview>span:last-child small{display:block;margin-top:4px}.meter-skill{padding:18px 0 8px;border-bottom:1px solid #b4996824}.meter-skill-top{display:flex;align-items:center;gap:12px}.meter-skill-art{display:grid;place-items:center;width:42px;height:42px;flex:none;border-radius:8px;background:#1b2637;color:var(--meter-accent);overflow:hidden}.meter-skill-art .path-art{width:42px;height:42px;display:block}.meter-skill-art svg{width:100%;height:100%}.meter-skill-title{min-width:0;flex:1}.meter-skill-title h5{font:1rem Georgia;color:#eaddc4;margin:0 0 3px;overflow-wrap:anywhere}.meter-skill-title>span{font:.6875rem system-ui;color:#a7b3c4}.meter-skill-total{text-align:right;font-variant-numeric:tabular-nums}.meter-skill-total strong{font:1rem system-ui;color:#f1e2c9;display:block}.meter-skill-total small{font:.6875rem system-ui;color:#a8b4c5}.meter-contribution{height:3px;margin:12px 0 8px;background:#ffffff09;overflow:hidden}.meter-contribution>i{display:block;height:100%;background:var(--meter-accent)}.meter-effect-list{padding-left:6px}.meter-effect{display:flex;align-items:center;gap:10px;margin:9px 0;color:var(--effect-color)}.meter-effect-symbol{width:22px;text-align:center;font:1.1875rem Georgia}.meter-effect-body{flex:1;min-width:0}.meter-effect-body>div:first-child{display:flex;align-items:baseline;justify-content:space-between;gap:8px;font:.75rem system-ui}.meter-effect-body b{font-weight:500;font-variant-numeric:tabular-nums}.meter-effect-track{height:2px;background:#ffffff04;margin-top:5px}.meter-effect-track i{display:block;height:100%;background:var(--effect-color);opacity:.55}.meter-visual .meter-skill details{border:0;background:none;margin:0;padding:0}.meter-visual .meter-skill summary{display:list-item;padding:8px 0;min-height:44px;box-sizing:border-box;font:.6875rem system-ui;color:#a9b7ca;border:0;cursor:pointer}.meter-visual .meter-effect-detail{border:0;background:none;padding:0;margin:12px 0}.meter-visual h6{margin:0 0 6px;font:.75rem system-ui;color:#d4c5a7}.meter-visual .meter-effect-stats{display:flex;flex-wrap:wrap;gap:12px 24px;margin:0 0 12px}.meter-visual .meter-effect-stats dt{font:.625rem system-ui;color:#93a2b6}.meter-visual .meter-effect-stats dd{font:.8125rem system-ui;color:#e0d6c7;margin:4px 0 0}.meter-counter-note,.meter-visual .meter-unique-effect{font:.6875rem/1.55 system-ui;color:#acb7c6}.meter-method{font:.6875rem/1.5 system-ui;color:#98a6ba;padding-top:16px}.meter-empty{text-align:center;padding:40px 16px;color:#9cabc1}.meter-empty>span{font-size:2.75rem;color:var(--meter-accent)}.meter-empty p{font-size:.8125rem}.meter-visual .sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media(max-width:480px){.meter-detail-backdrop .meter-visual{padding:0 16px 16px}.meter-visual .meter-hero{padding-top:16px;gap:10px}.meter-visual .meter-hero h4{font-size:1.375rem}.meter-visual .meter-crest{width:38px;height:48px}.meter-overview{gap:12px;flex-wrap:wrap}.meter-overview>strong{font-size:1.6875rem}.meter-overview>span{font-size:.6875rem}.meter-skill-title h5{font-size:.9375rem}}

/* Adventure help and the Tavern share the same compact, illustrated language. */
.solo-help-dialog{box-sizing:border-box;width:min(480px,calc(100vw - 24px));padding:26px!important}.solo-help-dialog h2{font:1.6875rem/1.15 Georgia;margin:8px 0 14px}.solo-help-dialog .help-intro{font:.875rem/1.5 system-ui;color:#d1d9e2;margin:0 0 18px}.help-party{display:flex;justify-content:space-evenly;gap:14px;padding:16px 0;border-block:1px solid #c7ab722b;background:radial-gradient(ellipse,#d2b67615,transparent 75%)}.help-party>div{display:grid;justify-items:center;gap:5px}.help-party .tavern-portrait{width:68px;height:68px;border:1px solid #c4a66b77;border-radius:50%;object-fit:cover}.help-party strong{font:600 .8125rem system-ui;color:#e7cd92}.help-party small{font:.6875rem system-ui;color:#b3c3d0}.help-advice{font:.8125rem/1.5 system-ui;color:#d1d9df;margin:15px 0}.help-more{padding:10px 0;border-top:1px solid #c7ab722b;font:.75rem/1.5 system-ui;color:#bbc8d6}.help-more summary{cursor:pointer;color:#d5bf91}.help-more p{margin:8px 0}.help-upgrade{display:flex;align-items:center;gap:20px;padding:20px 10px;background:linear-gradient(90deg,#ba965320,transparent);border-block:1px solid #c7ab722b}.help-upgrade .gear-icon{flex:none}.help-upgrade strong,.help-upgrade span{display:block}.help-upgrade strong{font:1.125rem Georgia;color:#e9d2a3}.help-upgrade span{margin-top:7px;color:#95c5bf;font-size:.8125rem}.help-crest{font-size:2.625rem!important;color:#d7bb85!important}.help-actions{display:grid;gap:8px;margin:18px 0 4px}.help-actions button{min-height:44px}.help-actions .text-button{border:0;background:none;color:#bcc9d7;font:.8125rem system-ui}.solo-help-dialog .help-consequence{font:.6875rem/1.5 system-ui;color:#a7b6c6;margin:5px 0 12px}.solo-help-dialog .checkbox-row{font:.75rem system-ui;color:#bec9d6;min-height:44px}.solo-help-dialog>.text-link{color:#d7bf8c;background:none;border:0;padding:8px 0;font:.75rem system-ui}
.shell .tavern-welcome{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:10px}.tavern-welcome p{margin:0}.tavern-welcome span{white-space:nowrap;color:#b9c5d2;font:.75rem system-ui}.tavern-welcome strong{color:#edce95;font-size:1.1875rem}.tavern-role-guide{display:flex;flex-wrap:wrap;gap:12px 22px;padding:10px 0 18px;border-bottom:1px solid #c7ab722b;color:#b0becb;font:.75rem system-ui}.tavern-role-guide b{color:var(--role-tone);margin-right:5px}.tavern-status{display:flex;align-items:center;gap:12px;padding:14px 0}.tavern-status small{color:#aab9c7}.tavern-recruits{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:26px}.tavern-recruit{padding:24px 0;border-bottom:1px solid #c7ab722b;min-width:0}.tavern-recruit header{display:flex;align-items:center;gap:13px}.tavern-recruit .tavern-portrait{width:84px;height:94px;min-width:84px;border:0;border-bottom:2px solid var(--role-tone);border-radius:4px;object-fit:cover;background:#d8b8740a}.shell .tavern-recruit h2{font:1.3125rem/1.25 Georgia;margin:4px 0;overflow-wrap:anywhere}.tavern-recruit header p{font:.75rem system-ui;margin:5px 0;color:#b5c3d1}.tavern-recruit header small{font:.6875rem system-ui;color:#8da3b6}.tavern-role{font:700 .625rem system-ui;color:var(--role-tone);text-transform:uppercase;letter-spacing:.12em}.tavern-skill-strip{display:flex;flex-wrap:wrap;gap:4px 10px;padding:14px 0 6px;min-height:44px;font:.6875rem/1.6 system-ui;color:#c1cbd7}.tavern-skill-strip span:before{content:'◆';font-size:.375rem;color:var(--role-tone);margin-right:5px;vertical-align:middle}.tavern-skills{font:.75rem/1.5 system-ui;margin-bottom:14px}.tavern-skills summary{color:#cbb68e;cursor:pointer;padding:6px 0}.tavern-skills .companion-skills{padding:0;list-style:none}.tavern-skills li{padding:8px 0;border-bottom:1px solid #c7ab721c}.tavern-skills li span{display:block;color:#afbdcc;font-size:.6875rem}.tavern-recruit>button{width:100%;min-height:44px}.tavern-recruit.is-hired>button{color:#a8d7ba;border-color:#93bc9860}.tavern-about{margin-top:25px;font:.8125rem/1.6 system-ui;max-width:660px}.tavern-about summary{color:#dcc592;cursor:pointer}.tavern-about p{color:#afbdcb}
@media(max-width:1000px){.tavern-recruits{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:560px){.tavern-recruits{grid-template-columns:1fr}.tavern-recruit{padding:18px 0;display:grid;grid-template-columns:1fr auto;gap:0 12px}.tavern-recruit header{grid-column:1/-1}.tavern-recruit .tavern-skill-strip{grid-column:1/-1}.tavern-recruit>button{grid-column:2;grid-row:3;align-self:start;width:auto;max-width:160px}.tavern-recruit .tavern-skills{grid-column:1;grid-row:3;margin:0}.tavern-recruit .tavern-skills[open]{grid-column:1/-1;padding-top:44px}.tavern-recruit .tavern-skills[open]>summary{margin-top:-44px;margin-right:160px}.tavern-status{align-items:start;flex-direction:column}.shell .tavern-welcome{align-items:start;flex-direction:column}.solo-help-dialog{padding:20px!important}.help-party{gap:8px}.help-party .tavern-portrait{width:60px;height:60px}}
.tavern-skill-strip .tavern-skill-icon{display:block;width:34px;height:34px;cursor:help}.tavern-skill-icon .path-art{width:34px;height:34px}.tavern-skill-strip .tavern-skill-icon:before{display:none}.skill-area-preview{display:flex;align-items:center;gap:8px;margin:12px 0}.skill-area-preview svg{width:110px;height:64px;flex:none}.skill-area-preview figcaption{display:grid;gap:5px;font:.75rem system-ui}.skill-area-preview small{color:#adbecd;font:.6875rem system-ui}
/* Guild hall: one crest, clear progress, compact permanent bonuses. */
.guild-progression{display:flex;align-items:center;gap:22px;padding:12px 0 22px;border-bottom:1px solid #b6985d44}.guild-level-crest{position:relative;width:76px;height:86px;flex:0 0 76px;color:#f1d09a}.guild-level-crest svg{width:100%;height:100%;fill:#c3a46112;stroke:#c3a461;stroke-width:1.8}.guild-level-crest strong{position:absolute;left:0;right:0;top:39px;text-align:center;font:600 1.625rem Georgia}.guild-level-track{flex:1;min-width:0}.guild-level-track>div{display:flex;justify-content:space-between;gap:12px;color:#d8c393;font:.75rem system-ui}.guild-level-track progress{display:block;width:100%;height:9px!important;margin:13px 0}.guild-level-track small{color:#a8b7c8;font:.6875rem system-ui}.guild-level-buffs{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;padding:18px 0}.guild-level-buffs button{display:grid;grid-template-columns:28px 1fr;gap:3px 8px;align-items:center;text-align:left;padding:8px;background:none;border:0;border-radius:3px;color:#adbbca;min-height:54px}.guild-level-buffs button:hover{background:#c3a46112}.guild-level-buffs i{grid-row:span 2;color:#cdbb89;font:1.5rem Georgia;text-align:center}.guild-level-buffs span{font:.6875rem system-ui}.guild-level-buffs strong{color:#c9dfc4;font:600 .875rem system-ui}.shell .guild-page .section-tabs{padding-inline:0;background:transparent}.guild-summary{display:flex;justify-content:space-between;gap:14px;font:.75rem system-ui;padding:16px 0;color:#a6b5c6}.guild-summary strong{color:#dbbe7f}.guild-overview-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:22px}.shell .guild-page .exp-panel{border:0;border-bottom:1px solid #b6985d30;border-radius:0;background:transparent;box-shadow:none;padding:18px 0;margin:0}.guild-members-section{grid-column:1/-1}.guild-members-section h2{display:flex;align-items:center;justify-content:space-between;gap:12px}.guild-members-section h2 small{font:.6875rem system-ui;color:#a9b6c5}.guild-hunt-section h2{font-size:1.25rem}.guild-task-grid{display:block}.guild-task-grid>article{display:grid;grid-template-columns:1fr auto;gap:6px;margin:14px 0;padding:8px 0;background:none;border:0}.guild-task-grid h3{font:600 .8125rem system-ui;margin:0}.guild-task-grid progress{grid-column:1/-1;width:100%;order:3}.guild-task-grid p{font:.6875rem system-ui;margin:0;color:#c4bd9b}.guild-hunt-rules{margin-top:18px;color:#a3b1be;font-size:.6875rem}.guild-upgrades-section .guild-upgrades{display:grid;grid-template-columns:1fr 1fr;gap:0 18px}.shell .guild-page .guild-upgrade{position:relative;padding:14px 0 12px 35px;border:0;border-bottom:1px solid #b6985d22;background:none;border-radius:0}.guild-upgrade .guild-emblem{position:absolute;left:0;top:16px;width:26px;height:26px;margin:0;font-size:1.4375rem}.guild-upgrade h3{font:600 .8125rem system-ui;margin:0 0 6px}.guild-upgrade>strong{font:.75rem system-ui;color:#b9cfba}.guild-upgrade p{font-size:.6875rem;margin:6px 0}.guild-upgrade button{font-size:.6875rem!important;padding:7px!important;min-height:44px!important}.guild-roster{width:100%;border-collapse:collapse}.guild-roster th,.guild-roster td{text-align:left;padding:10px 8px}.guild-roster td:first-child{position:relative;padding-left:48px}.guild-roster td:first-child small{display:block;margin-top:4px;color:#99acbd;font:.6875rem system-ui}.guild-member-seal{position:absolute;left:4px;top:12px;display:grid;place-items:center;width:32px;height:32px;border-radius:50%;border:1px solid #b89d6244;background:#283648;color:#d4bd87}.guild-roster td:nth-child(2){text-transform:capitalize}.shell .guild-directory-row{display:grid;grid-template-columns:64px 1fr auto;gap:5px 15px;background:transparent!important;border:0!important;border-bottom:1px solid #b6985d30!important;border-radius:0!important;padding:18px 0!important}.guild-directory-row .guild-level-crest{grid-row:span 4;transform:scale(.72);transform-origin:top left;width:64px;margin-bottom:-24px}.guild-directory-row h3{margin:0}.guild-directory-row>p,.guild-directory-row>small{grid-column:2;margin:0}.guild-directory-row>button{grid-column:3;grid-row:1/4;align-self:center}.guild-footer{display:flex;align-items:center;gap:14px;padding-top:24px;color:#95a6b8;font-size:.6875rem}
/* Rankings: restrained medals and readable rows, shared with the guild hall. */
.rank-tabs{display:flex;gap:7px;border-bottom:1px solid #b6985d44}.rank-tabs button{display:flex;align-items:center;gap:9px;background:none;border:0;border-bottom:2px solid transparent;color:#a7b6c6;padding:13px 18px;font:.8125rem system-ui;min-height:48px}.rank-tabs button span{font-size:1.1875rem;color:#c3a461}.rank-tabs button[aria-pressed=true]{color:#eed39a;border-color:#d0ad6a;background:#b6985d0b}.rank-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:24px 0 10px}.rank-heading h2{margin:0 0 6px;font:1.5rem Georgia;color:#e1d1ad}.rank-heading p{margin:0;color:#acb9c7;font:.75rem/1.6 system-ui}.rank-filters{display:flex;gap:12px;flex-wrap:wrap}.rank-filters label{font:.6875rem system-ui;color:#abbbca;min-width:9.375rem;max-width:18.75rem}.rank-filters select{display:block;width:100%;margin-top:5px;min-height:44px}.rank-honours{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:30px;padding:26px 0;border-bottom:1px solid #b6985d40;margin-bottom:18px}.rank-honour{display:grid;grid-template-columns:46px 1fr;column-gap:12px;align-items:center;min-width:0}.rank-honour svg{width:42px;height:42px;fill:#b6985d12;stroke:#b8aa87;stroke-width:1.3;grid-row:1/4}.rank-place-1 svg{stroke:#ecc979;filter:drop-shadow(0 0 12px #b99b5550)}.rank-place-2 svg{stroke:#b7c4d7}.rank-place-3 svg{stroke:#ba8a64}.rank-honour span{font:.625rem system-ui;color:#95a8bc}.rank-honour strong{font:500 1rem/1.4 Georgia;color:#e5d5b4;overflow-wrap:anywhere}.rank-honour b{font:.75rem/1.7 system-ui;color:#b8c8d5;font-variant-numeric:tabular-nums}.rank-table{border-collapse:collapse;width:100%;table-layout:fixed}.rank-table th:first-child{width:70px}.rank-table th:last-child{width:140px;text-align:right}.rank-table th,.rank-table td{text-align:left;padding:14px 12px;border-bottom:1px solid #91a4bd16}.rank-table td{background:transparent}.rank-table tbody tr:nth-child(even){background:#6b83a707}.rank-table tr.own{background:#b89d6213}.rank-table small{display:block;color:#97aabd;font:.6875rem system-ui;margin-top:5px}.rank-table strong{font:600 .8125rem/1.5 system-ui;color:#deddd2;overflow-wrap:anywhere}.rank-number{display:inline-grid;place-items:center;width:30px;height:32px;font:1.125rem Georgia;color:#aaa98f}.rank-table tr:nth-child(-n+3) .rank-number{color:#e6c279;border-bottom:1px solid #b6985d66}.rank-table td.rank-score{text-align:right;color:#e6cd9a;font:600 .9375rem system-ui;font-variant-numeric:tabular-nums}.rank-rules{margin-top:20px;color:#94a8bc;font:.6875rem/1.7 system-ui;max-width:95ch}.rank-rules a{white-space:nowrap}.rank-roster{margin-top:7px;color:#a8b8c9;font-size:.6875rem}.rank-roster p{max-width:60ch;font-size:.75rem}.rank-empty{padding:40px 20px;text-align:center;color:#a4b6c8}.rank-empty svg{width:58px;fill:#b6985d12;stroke:#b6985d}.rank-empty h3{font:1.4375rem Georgia;color:#d9c99f}.rank-empty p{font-size:.8125rem}
@media(max-width:1050px){.guild-level-buffs{grid-template-columns:repeat(4,minmax(0,1fr))}.guild-overview-grid{grid-template-columns:1fr}.guild-upgrades-section{order:3}.rank-heading{align-items:start;flex-direction:column}.rank-honours{gap:12px}.rank-honour{grid-template-columns:30px 1fr;gap:4px 7px}.rank-honour svg{width:27px}.rank-honour strong{font-size:.875rem}}
@media(max-width:600px){.guild-progression{gap:12px;flex-wrap:wrap}.guild-progression>a{margin-left:88px}.guild-level-track>div{flex-direction:column;gap:5px}.guild-level-buffs{grid-template-columns:repeat(3,minmax(0,1fr))}.guild-level-buffs button{padding:5px 0;gap:2px 5px}.guild-summary{flex-direction:column;gap:7px}.guild-task-grid>article{display:block}.guild-task-grid p{margin:6px 0}.guild-page .guild-directory-row{grid-template-columns:52px 1fr;gap:5px 10px}.guild-directory-row>button{grid-column:2;grid-row:auto;justify-self:start}.guild-roster th,.guild-roster td{font-size:.6875rem!important;padding:10px 5px}.guild-roster td:first-child{padding-left:0}.guild-member-seal{display:none}.guild-footer{align-items:start;flex-direction:column}.rank-tabs{display:grid;grid-template-columns:1fr 1fr;gap:0}.rank-tabs button{padding:10px 8px;gap:7px;font-size:.75rem}.rank-table th:first-child{width:35px}.rank-table th:last-child{width:90px}.rank-table th,.rank-table td{padding:12px 5px}.rank-table strong{font-size:.75rem}.rank-table td.rank-score{font-size:.8125rem}.rank-honour{display:flex;flex-direction:column;align-items:start;gap:3px}.rank-honour strong{font-size:.8125rem}.rank-honour svg{width:30px;height:30px}.rank-filters{width:100%}.rank-filters label{flex:1;min-width:120px;max-width:100%}}
.shell .guild-page .guild-task-grid{display:block}.shell .guild-page .guild-task-grid article{display:grid;grid-template-columns:1fr auto;gap:6px;padding:14px 0;margin:6px 0}.shell .guild-page .guild-task-grid h3,.shell .guild-page .guild-task-grid p{margin:0;font:.75rem/1.5 system-ui}.shell .guild-page .guild-upgrade{text-align:left}.shell .guild-page .guild-upgrade .guild-emblem{font-size:1.4375rem;margin:0}.shell .guild-page .guild-upgrade h3{font:600 .8125rem system-ui;margin:0 0 6px}.shell .guild-page .guild-upgrade strong{font:.75rem system-ui}.guild-hunt-section{align-self:start}
@media(max-width:600px){.shell .guild-page .guild-task-grid article{display:block}.shell .guild-page .guild-task-grid p{margin:7px 0}}
@media(max-width:600px){.guild-progression>.text-link{flex:0 0 calc(100% - 88px);margin-left:88px;text-align:left}.guild-level-track{flex:1 1 calc(100% - 88px)}.guild-level-track small{display:block;line-height:1.5}.guild-level-track progress{width:100%}}

/* Guild upgrade actions stay aligned and readable on narrow screens. */
.shell .guild-page .guild-upgrade{display:flex;flex-direction:column;align-items:stretch;gap:6px}.shell .guild-page .guild-upgrade p{margin:0 0 6px}.shell .guild-page .guild-upgrade button{margin-top:auto;min-height:44px!important;width:100%;white-space:normal;line-height:1.4}
@media(max-width:540px){.shell .guild-page .guild-upgrades{grid-template-columns:minmax(0,1fr)}.shell .guild-page .guild-upgrade{padding-block:16px}.shell .guild-page .guild-upgrade button{align-self:start;width:auto;min-width:160px}}

/* Adventurer rankings: identity and progress stay close together. */
.rankings-page{max-width:1100px;margin-inline:auto}.adventurer-ranks{list-style:none;margin:18px 0;padding:0;display:grid;gap:8px}.adventurer-rank{display:grid;grid-template-columns:38px 54px minmax(100px,1fr) 58px minmax(170px,230px);align-items:center;gap:14px;padding:14px 18px;background:linear-gradient(100deg,#1a2630,#101923);border:1px solid #56616b55;border-radius:8px}.adventurer-rank.own{border-color:#d3b273;background:linear-gradient(100deg,#443b244d,#182630)}.rank-medal{position:relative;display:grid;place-items:center;color:#b9b9b0;font-size:1.0625rem}.rank-medal svg{width:32px;height:32px;fill:none;stroke:currentColor;stroke-width:1.3}.rank-place-1 .rank-medal{color:#ebcb7d}.rank-place-2 .rank-medal{color:#c9d9e7}.rank-place-3 .rank-medal{color:#c79c7b}.rank-portrait{width:52px;height:52px;border-radius:50%;overflow:hidden;display:grid;place-items:center;background:#273742;border:1px solid #9e8a6155;font:1.5rem Georgia}.rank-portrait img{width:100%;height:100%;object-fit:cover}.rank-identity{min-width:0;display:grid;gap:3px}.rank-identity .text-button{font-size:1rem;padding:4px 0;min-height:44px;text-align:left;overflow-wrap:anywhere;color:#efdbac}.rank-identity>span{font-size:.75rem;color:#aebfc9}.rank-you{font:.6875rem Arial;color:#e9cc88;margin-left:6px;border:1px solid #b3976255;border-radius:8px;padding:2px 6px}.rank-level{text-align:center;display:grid;gap:2px}.rank-level small{font-size:min(.5625rem,11px);letter-spacing:1px;color:#aabac4}.rank-level strong{font:1.625rem Georgia;color:#e8d5a4}.rank-journey .rank-xp{display:grid;width:100%;gap:5px;text-align:left}.rank-journey progress{width:100%;height:7px;accent-color:#d4b978}.rank-journey .rank-xp>span{font-size:.75rem;color:#ccd6d7}.rank-xp-details{font-size:.6875rem;color:#9eb0bb}.rank-xp-details summary{cursor:pointer;min-height:44px}.rank-xp-details small{display:block;padding-top:4px}.adventurer-rank.rank-place-1{border-color:#b2945355}
@media(max-width:620px){.adventurer-rank{grid-template-columns:28px 44px minmax(0,1fr) 44px;gap:10px;padding:12px}.rank-portrait{width:42px;height:42px}.rank-journey{grid-column:3/5}.rank-identity .text-button{font-size:.875rem}.rank-level strong{font-size:1.4375rem}.rank-medal svg{width:24px;height:24px}}

.rank-level-time{font-size:.6875rem;color:#b6c6cc;margin-top:6px}.rank-level-time summary{cursor:pointer;min-height:44px}.rank-level-time p{font-size:.6875rem;margin:5px 0 0}

.rank-journey .rank-xp{max-width:none;margin:0}.rank-journey .rank-xp progress{max-width:none}.rank-journey .rank-xp-details{margin:0}.rank-journey .rank-xp-details summary{padding:2px 0}@media(max-width:620px){.rank-journey{grid-column:2/-1}.adventurer-rank{row-gap:8px}}

/* Settings: "Who can see my gear" choice cards (real radio inside each label; the card is the visible control). */
.settings-modal .gear-choice-group{display:grid;gap:10px;margin:10px 0 4px;min-width:0}
.settings-modal .gear-choice{position:relative;display:block;margin:0;min-width:0;cursor:pointer;overflow-wrap:normal;word-break:normal;hyphens:none}
.settings-modal .gear-choice>input[type=radio]{position:absolute;inset:0;z-index:1;width:100%;height:100%;min-height:0;margin:0;padding:0;opacity:0;cursor:pointer;appearance:none;-webkit-appearance:none}
.settings-modal .gear-choice>input[type=radio]:disabled{cursor:not-allowed}
.settings-modal .gear-choice-card{display:grid;grid-template-columns:44px minmax(0,1fr) 24px;align-items:center;column-gap:12px;min-height:64px;padding:10px 12px;border:1px solid #5b4f36;border-radius:8px;background:linear-gradient(160deg,#16242e,#0d171f);box-shadow:inset 0 1px 0 #f0d9a614;transition:border-color .15s,box-shadow .15s,background .15s}
.settings-modal .gear-choice-glyph{width:44px;height:44px;padding:8px;box-sizing:border-box;border-radius:50%;border:1px solid #7a6640;background:radial-gradient(circle at 50% 35%,#233440,#0a1218 75%);fill:none;stroke:#dab36b;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.settings-modal .gear-choice-text{display:grid;gap:2px;min-width:0}
.settings-modal .gear-choice-label{font:600 1.0625rem/1.25 Georgia,'Times New Roman',serif;color:#f2dfb1;white-space:nowrap}
.settings-modal .gear-choice-help{font:.78125rem/1.45 system-ui,Arial,sans-serif;color:#b4becb}
.settings-modal .gear-choice-check{width:24px;height:24px;fill:none;stroke:#5f6259;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.settings-modal .gear-choice-check path{stroke:transparent;stroke-width:2.2}
.settings-modal .gear-choice:hover>input:not(:disabled)+.gear-choice-card{border-color:#9a8250}
.settings-modal .gear-choice>input:checked+.gear-choice-card{border-color:#dab36b;background:linear-gradient(160deg,#243139,#111c24);box-shadow:0 0 0 1px #dab36b66,0 0 18px #dab36b33,inset 0 1px 0 #f0d9a626}
.settings-modal .gear-choice>input:checked+.gear-choice-card .gear-choice-glyph{border-color:#dab36b;stroke:#f4d58f}
.settings-modal .gear-choice>input:checked+.gear-choice-card .gear-choice-check{fill:#dab36b;stroke:#dab36b}
.settings-modal .gear-choice>input:checked+.gear-choice-card .gear-choice-check path{stroke:#1a1408}
.settings-modal .gear-choice>input:focus-visible+.gear-choice-card{outline:3px solid #f4cd86;outline-offset:3px}
.settings-modal .gear-choice>input:disabled+.gear-choice-card{opacity:.55}
@media(max-width:400px){.settings-modal .gear-choice-card{grid-template-columns:38px minmax(0,1fr) 22px;column-gap:10px;padding:10px}.settings-modal .gear-choice-glyph{width:38px;height:38px;padding:8px}.settings-modal .gear-choice-check{width:22px;height:22px}.settings-modal .gear-choice-label{font-size:1rem}}
@media(prefers-reduced-motion:reduce){.settings-modal .gear-choice-card{transition:none}}
/* Settings: Stuck? Return to Stonewake. Same painted gold line as the other settings groups; 44px targets, no hover-only information. */
.settings-modal .unstuck-help{border-block:1px solid #cfb07022;padding:14px 0;margin:15px 0}
.settings-modal .unstuck-help h3{margin:0 0 6px;color:#efd6a3}
.settings-modal .unstuck-help .small-note{margin:0 0 12px;overflow-wrap:normal;word-break:normal;hyphens:none}
.settings-modal .unstuck-help button{min-height:44px;width:100%;box-sizing:border-box}
.settings-modal .unstuck-note{margin:10px 0 0;color:#e6c98a}
.unstuck-dialog .unstuck-points{margin:0 0 14px;padding-left:1.15rem;display:grid;gap:8px;line-height:1.5;overflow-wrap:normal;word-break:normal;hyphens:none}
.unstuck-dialog .unstuck-points strong{color:#efd6a3}
.unstuck-dialog>.small-note{margin:0 0 18px}
.unstuck-dialog .az-actions>button{min-height:44px;flex:1 1 9rem}
/* Current role on the Skill tree heading (public/path-ui.js currentRole). */
.paths-heading .paths-role{display:inline-block;margin-left:10px;padding:2px 9px;border:1px solid currentColor;border-radius:999px;font-size:.75rem;letter-spacing:.02em;text-transform:none;color:#d4a58b}
.paths-heading .paths-role[data-role="Tank"]{color:#d2b774}.paths-heading .paths-role[data-role="Healer"]{color:#9ec9b0}
/* Painted squire scenes (public/workshop-art.js scene, design/art24-2026-10-17): the landscape fills the card behind the trip bar. */
.squire-scene.squire-painted{background:#121c23}.squire-scene-art{position:absolute;inset:0;z-index:-1;display:block;width:100%;height:100%;object-fit:cover;object-position:50% 50%}.squire-painted.is-working .squire-scene-art{transform-origin:50% 60%;animation:squire-drift 14s ease-in-out infinite alternate}@keyframes squire-drift{from{transform:scale(1.02)}to{transform:scale(1.09)}}

/* Menu audit 23 Oct (Pat: no long dropdowns, no lone wrapping items). A one-of-a-list choice is a grid of radio chips: three a row on wide screens,
   two a row on phones, and the last row is always full (a single leftover chip takes the row, two leftovers share it). Markup: a fieldset.pick-set
   with a legend, then div.pick-grid plus r3-0/1/2 and r2-0/1 (the count left over), holding label.uk-chip.pick-chip > input[type=radio] + text. */
.pick-set{min-width:0;margin:0;padding:0;border:0}
.pick-set>legend{padding:0;margin:0 0 6px;font-size:.875rem;color:var(--uk-gold-text,#f2d38a)}
.pick-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px}
.pick-grid>.pick-chip{grid-column:span 2}
.pick-grid.r3-1>.pick-chip:last-child{grid-column:span 6}
.pick-grid.r3-2>.pick-chip:nth-last-child(-n+2){grid-column:span 3}
.uk-chip.pick-chip{position:relative;display:flex;align-items:center;justify-content:center;min-width:0;min-height:44px;margin:0;padding:4px 10px;font-size:.8125rem;line-height:1.2;text-align:center;cursor:pointer}
.uk-chip.pick-chip:hover{border-color:var(--uk-gold-hi,#e0bd73)}
.uk-chip.pick-chip:has(input:checked){border-color:#e0bd73;background:linear-gradient(180deg,#c9a468,#8f6f3c);color:#1b1509}
.uk-chip.pick-chip:has(input:disabled){opacity:.5;cursor:not-allowed}
.uk-chip.pick-chip:has(input:focus-visible){outline:2px solid #f2d38a;outline-offset:2px}
.uk-chip.pick-chip>input{position:absolute;inset:0;width:1px;height:1px;min-width:0;min-height:0;margin:0;padding:0;border:0;opacity:0;pointer-events:none}
@media(max-width:600px){
 .pick-grid>.pick-chip,.pick-grid.r3-1>.pick-chip:last-child,.pick-grid.r3-2>.pick-chip:nth-last-child(-n+2){grid-column:span 3}
 .pick-grid.r2-1>.pick-chip:last-child{grid-column:span 6}
}
/* Skill points: − and + around the number instead of a dropdown (path-ui.js). */
.path-allocation-controls .path-stepper{display:flex;align-items:center;gap:8px;flex:1;min-width:0}
.path-allocation-controls .path-stepper-label{margin-right:4px}
.path-allocation-controls .path-stepper>button{width:44px;min-width:44px;min-height:44px;padding:0;font-size:1.125rem}
.path-allocation-controls .path-stepper>output{min-width:44px;min-height:44px;display:inline-flex;align-items:center;justify-content:center;font-size:1rem;font-weight:700;border:1px solid #796649;border-radius:4px;background:#16222c}
/* Auto-switch (activity-builds-ui.js): each kind of fight is a chip set under its name. */
.ab-row.pick-set{display:block}
.ab-row.pick-set>legend{color:var(--uk-ivory);font-weight:700}
.recruitment-board form>.pick-set{flex:1 1 100%}

/* /interface-art.css */
/* Painted brass, blue cloth and readable numbers: one visual language across menus. */
.fantasy-icon{display:inline-block;width:36px;height:36px;flex:0 0 36px;background:url('/art/interface/navigation-v2.webp') var(--icon-x) var(--icon-y)/400% 400% no-repeat;vertical-align:middle;filter:drop-shadow(0 2px 2px #0009)}
.shell .painted-page-heading{background:linear-gradient(90deg,#0c1526ed 0%,#0c1526bf 36%,#0c15262e 85%),var(--page-art) center/cover!important;isolation:isolate;position:relative;min-height:138px;border:1px solid #ba9b6040;border-radius:5px;box-shadow:inset 0 1px #dac79d12;overflow:hidden;padding:22px 26px!important}
.shell .painted-page-heading :is(h1,h2,p,strong,small){text-shadow:0 2px 4px #000b}
.shell .painted-page-heading .menu-illustration{display:none}
.shell .handbook-category-painting{opacity:.34;mask-image:linear-gradient(90deg,transparent 0%,#000 60%)}
.shell .handbook-category-label{position:relative;z-index:1}
.guild-level-crest{position:relative;isolation:isolate}.guild-level-crest>img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}.guild-level-crest>strong{position:absolute!important;inset:52% 0 auto!important;transform:none!important;text-align:center;line-height:1;font-size:1.75rem;text-shadow:0 2px 3px #000}
.guild-directory .guild-level-crest>strong{font-size:1.0625rem}
.realm-wallet{display:flex;flex-direction:column;align-items:flex-end;gap:2px;min-width:116px;color:#f0ca76;font:600 .75rem/1.35 system-ui;font-variant-numeric:tabular-nums;letter-spacing:.02em}
.realm-wallet>span,.realm-wallet>button{display:flex;align-items:center;gap:7px;white-space:nowrap;min-height:23px}
.realm-wallet .wallet-crowns{padding:0;background:none;border:0;box-shadow:none;color:#bdcaff;font:inherit;cursor:pointer;min-width:0}
.realm-wallet .fantasy-icon{width:24px;height:24px;flex-basis:24px}
/* Dawn Crowns coin (ChatGPT prompt 32, part 5, 20 Oct): the painted crown coin in place of the shop emblem. */
.dawn-crown-coin{display:inline-block;width:22px;height:22px;flex:0 0 22px;background:url('/art/ui/dawn-crowns-v1.webp') center/contain no-repeat;filter:drop-shadow(0 1px 2px #000a)}
.realm-wallet .wallet-crowns:focus-visible{outline:2px solid #ddbd78;outline-offset:3px}
.gold-coin{display:inline-grid;place-items:center;width:18px;height:14px;border-radius:50%;border:1px solid #ffda70;color:#fff4be;line-height:1;font-size:12px;box-shadow:0 2px 0 #966011,inset 0 0 0 2px #ad6f15,0 2px 5px #0009;background:linear-gradient(155deg,#fff1a7,#edbd42 45%,#936418)}
.realm-wallet .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.shell .topbar>.realm-wallet{justify-self:end;grid-column:2;grid-row:1}
.nav-boss-backdrop{display:none;pointer-events:none}
.shell .nav-brand-emblem{display:none}
.battle-kill-progress{display:block;color:#e3c28a;font:600 .6875rem/1.5 system-ui;margin-top:5px;font-variant-numeric:tabular-nums}
.shell .zone-badge{position:relative;top:0;left:0;transform:none;width:100%;max-width:100%;box-sizing:border-box;padding:9px 14px;white-space:normal}
.shell .zone-badge>span:first-child{font-size:1.125rem}.shell .zone-badge>small{font-size:.6875rem}
.shell .battle-minimap{position:absolute;z-index:8;right:14px;top:12px;width:138px;padding:0;background:none;border:0;box-shadow:none;overflow:visible}
.shell .minimap-open{position:relative;display:block;width:100%;padding:0;border:0;box-shadow:none;background:none;color:#efd7a9;cursor:pointer}
.shell .battle-minimap h2{position:absolute;z-index:2;top:0;left:-5px;right:-5px;border:1px solid #b3965c;border-radius:3px;background:linear-gradient(#243044,#111925);font:600 .625rem/1.25 system-ui;padding:4px 2px;margin:0;text-align:center;box-shadow:0 2px 5px #0008}
.shell .battle-minimap .minimap{display:block;width:138px;height:138px;aspect-ratio:1;margin:10px 0 0;border:3px solid #b29c68;border-radius:50%;overflow:hidden;background:#121a28;box-shadow:0 0 0 2px #293643,inset 0 0 0 2px #1b2530,0 4px 12px #0009}
.shell .battle-minimap #minimap{position:relative;inset:auto;width:100%;height:100%;background:#121a28;border-radius:50%;overflow:hidden}
.shell .battle-minimap #minimap>svg{width:100%;height:100%;object-fit:contain}
/* While a boss stands (public/app.js sets data-boss-up) the minimap folds to its Zone map button, so the boss arena is clear. */
.shell .battlefield[data-boss-up] .battle-minimap :is(.minimap,.minimap-north,.minimap-expand){display:none}.shell .battlefield[data-boss-up] .battle-minimap h2{position:static;cursor:pointer}
.minimap-north{position:absolute;top:18px;left:calc(50% - 5px);font:bold 11px Georgia;color:#ffe6a7;text-shadow:0 1px 3px #000}
.minimap-expand{position:absolute;right:0;bottom:2px;display:grid;place-items:center;width:26px;height:26px;border:1px solid #b89c60;border-radius:50%;background:#152334;color:#f2da9b;font-size:21px;box-shadow:0 2px 4px #0009}
.shell .battle-orders-menu{margin:10px 12px 0!important;padding:0!important;border:0!important;background:none!important}
.shell .battle-orders-menu>summary{font-size:.75rem;min-height:36px;display:flex;align-items:center;gap:6px;cursor:pointer;color:#d7c496}
.shell .battle-orders-menu>summary:before{content:'▸'}.shell .battle-orders-menu[open]>summary:before{content:'▾'}
.shell .field-controls>.field-progress{display:none}
.shell .guild-hunt-section{padding:0!important;border:0!important;overflow:hidden}
.guild-hunt-heading{min-height:125px;display:flex;justify-content:space-between;align-items:center;gap:15px;padding:20px;background:linear-gradient(90deg,#0c1425ed,#0c142588),var(--hunt-art) center/cover;border-bottom:1px solid #c7aa6750}
.guild-hunt-heading .fantasy-icon{float:left;width:48px;height:48px;margin-right:12px}
.guild-hunt-heading p{font-size:.5625rem;margin:0 0 4px}.guild-hunt-heading h2{font:1.25rem Georgia;margin:0}.guild-hunt-heading>strong{text-align:right;white-space:nowrap}.guild-hunt-heading>strong>b{font:1.75rem Georgia;color:#f3d597}.guild-hunt-heading>strong>small{display:block;font:.625rem system-ui;color:#c4cbd3;margin-top:4px}
.shell .guild-page .guild-hunt-milestones{display:grid;grid-template-columns:1fr 1fr;gap:18px;padding:18px 10px}
.shell .guild-page .guild-hunt-milestones>article{display:flex;gap:10px;align-items:center;border:0;padding:0}
.hunt-reward-art{flex:0 0 44px;display:grid;place-items:center;width:44px;height:56px;background:radial-gradient(#c9a8641c,transparent);filter:grayscale(.3)}.hunt-reward-art .fantasy-icon{width:48px;height:48px;flex-basis:48px}
.is-complete .hunt-reward-art{filter:drop-shadow(0 0 5px #bfe5a466)}
.shell .guild-page .guild-hunt-milestones>article>div{flex:1;min-width:0}.shell .guild-hunt-milestones h3{font:600 .8125rem system-ui;margin:0 0 5px}
.hunt-gold{font-size:.75rem;color:#e5c781;white-space:nowrap}.hunt-gold>.gold-coin{vertical-align:middle;width:13px;height:10px;font-size:.5rem}.hunt-gold>small{display:block;font-size:.5625rem;color:#bdc4cf}
.guild-hunt-milestones progress{display:block;width:100%;height:6px;margin:10px 0 5px}.guild-hunt-milestones small{font:.625rem system-ui;color:#b3bdc9}
.guild-gather-task{display:flex;align-items:center;gap:12px;padding:16px 12px;background:linear-gradient(90deg,#4262511a,transparent);border-block:1px solid #b9a67529}
.guild-resource-art{flex:0 0 52px}.guild-resource-art .workshop-art{width:52px;height:52px}.guild-gather-task>div:nth-child(2){flex:1;min-width:0}.guild-gather-task h3{font:600 .875rem Georgia;margin:3px 0 8px}.guild-gather-task .eyebrow{font-size:.5625rem;margin:0;color:#adc7b1}.guild-gather-task progress{display:block;width:100%;height:6px;margin:6px 0}.guild-gather-task small{font-size:.625rem;color:#b7c3cf}.guild-hunt-rules{padding:8px 12px!important}.guild-hunt-rules p{font:.75rem/1.6 system-ui}
.shell .map-pin>.zone-pin-art{display:block;flex:0 0 46px;width:46px;height:46px;max-width:none;border:2px solid #c6aa69;border-radius:50%;object-fit:cover;box-shadow:0 0 0 2px #1c2935,0 2px 6px #0009}
.shell .map-pin{gap:10px;background:linear-gradient(110deg,#111c2eed,#111c2ed9);border:1px solid #b7a47966;box-shadow:0 3px 9px #0008;border-radius:6px;min-height:62px}
.shell .map-pin.selected{border-color:#f0ce81;box-shadow:0 0 14px #d8b26655}.shell .map-pin.route-locked>.zone-pin-art{filter:saturate(.65)}
.shell .region-tabs{padding:0;border:0;border-bottom:1px solid #bda16966;background:#0d1625}.shell .region-tabs button{position:relative;background:linear-gradient(110deg,#233348,#111c2f);border:0;border-bottom:2px solid transparent;padding:14px 12px;min-height:60px}.shell .region-tabs button[aria-selected=true]{background:linear-gradient(110deg,#4a4230,#1e2b39);border-bottom-color:#dfbd75;box-shadow:none}.shell .region-tabs button small{font-size:.625rem;color:#b3c2cb}
@media(max-width:650px){.guild-hunt-heading{padding:14px;min-height:110px}.guild-hunt-heading h2{font-size:1.125rem}.guild-hunt-heading .fantasy-icon{width:36px;height:36px;margin-right:6px}.guild-hunt-heading>strong>b{font-size:1.4375rem}.shell .guild-page .guild-hunt-milestones{gap:8px;padding:14px 2px}.hunt-reward-art{flex-basis:26px;width:26px}.hunt-reward-art .fantasy-icon{width:34px;height:34px}.guild-gather-task{padding:14px 6px;gap:8px}.guild-resource-art{flex-basis:40px}.guild-resource-art .workshop-art{width:40px;height:40px}.guild-gather-task h3{font-size:.8125rem}.guild-gather-task>.hunt-gold{font-size:.6875rem}.shell .map-pin>.zone-pin-art{width:34px;height:34px;flex-basis:34px}.shell .map-pin{gap:6px}}
@media(min-width:1001px){
 .shell.mmo-shell.wayfarer-shell .topbar>nav{isolation:isolate;padding-top:12px;background:#101928}
 .shell .topbar>nav>*:not(.nav-boss-backdrop){position:relative;z-index:1}
 .nav-boss-backdrop{display:block;position:fixed;inset:0 auto 0 0;width:180px;overflow:hidden;z-index:0;background:linear-gradient(#0c152422,#0c152411 45%,#0c152444),url('/art/interface/sidebar-v1.webp') center/100% 100%}
 .nav-boss-portrait{position:absolute;top:38%;left:4%;width:92%;height:38%;object-fit:contain;opacity:.18;filter:saturate(.5);mask-image:linear-gradient(transparent,#000 14%,#000 75%,transparent)}
 .shell.mmo-shell>.topbar>nav .nav-button{gap:7px;padding:5px 6px;min-height:43px;background:transparent;border-color:transparent}
 .shell.mmo-shell>.topbar>nav .nav-button.active{background:linear-gradient(90deg,#b69a503d,#18283a96);border-color:#bd9e5266;box-shadow:inset 2px 0 #e5c483}
 .shell .nav-brand{padding:0 0 12px;margin-bottom:8px!important;min-height:112px;text-align:center}
 .shell .nav-brand-emblem{display:block;width:60px;height:60px;margin:0 auto 1px;border-radius:50%;filter:drop-shadow(0 0 9px #80acbd55)}
 .shell .nav-brand .brand-name{font:600 min(1.375rem,22px)/1.2 Georgia,serif;letter-spacing:.02em;color:#efdaaa;text-shadow:0 2px 2px #000,0 0 12px #dab36b44}
 .shell .nav-brand .wordmark{width:100%;max-width:none;margin:auto}
 .shell .nav-brand .alpha-phase-label{display:inline-block;font:600 .5rem/1.2 system-ui;letter-spacing:.16em;padding:2px 6px;margin-top:6px;background:#0c152488;border-color:#d2b67670}
 .shell .nav-brand>.nav-brand-rule{display:block;position:absolute;inset:auto 12px 0;height:1px;background:linear-gradient(90deg,transparent,#d6b771,transparent)}
 .shell .nav-brand>span:not(.nav-brand-rule),.shell .nav-brand .brand-tagline{display:none}
 .shell.mmo-shell .combat-grid{display:grid;grid-template-columns:minmax(15.5rem,20%) minmax(0,1fr);gap:0;height:auto;min-height:650px}
 .shell.mmo-shell .combat-grid>.right-rail{display:none}
 .shell .arena-column{min-width:0}.shell .battlefield{flex:1;min-height:440px}
 .shell .topbar>.realm-wallet{margin-right:4px}
}
/* 1001-1179 px: the party rail stays in the narrow first column and the battlefield gets the wide one (the phone rule in three-paths.css puts the arena first). */
@media(min-width:1001px) and (max-width:1179px){.shell.mmo-shell .combat-grid>.party-rail{order:0}.shell.mmo-shell .combat-grid>.arena-column{order:1}}
@media(max-width:760px){
 .shell .topbar>.realm-wallet{grid-column:1;grid-row:1;justify-self:start;margin-left:0}
 .shell .topbar>.wordmark{display:none}
 .fantasy-icon{width:26px;height:26px;flex-basis:26px}
 .shell .painted-page-heading{min-height:120px;padding:16px!important}
 .shell .battle-minimap{width:94px;right:8px;top:8px}.shell .battle-minimap .minimap{width:94px;height:94px;border-width:2px}.shell .battle-minimap h2{font-size:.5625rem;padding:3px 0}
 .minimap-north{top:16px;font-size:9px}.minimap-expand{width:22px;height:22px;font-size:18px}
 .shell .battle-orders-menu{margin:5px 8px!important}
}
/* Two frame weights keep the same metalwork throughout the realm. */
:root{--realm-trim:#9c8151;--realm-trim-dim:#635239;--realm-corner:linear-gradient(#c4a469,#c4a469)}
.realm-frame,.evermarch-entry .auth-form{position:relative;border:1px solid var(--realm-trim)!important;box-shadow:inset 0 0 0 3px #090f19,inset 0 0 0 4px #6c57364d,0 9px 28px #0003;border-radius:3px}
.realm-frame::after,.evermarch-entry .auth-form::after{content:"";position:absolute;inset:5px;pointer-events:none;z-index:2;border:1px solid #b4965838;background:var(--realm-corner) left top/28px 2px no-repeat,var(--realm-corner) left top/2px 28px no-repeat,var(--realm-corner) right top/28px 2px no-repeat,var(--realm-corner) right top/2px 28px no-repeat,var(--realm-corner) left bottom/28px 2px no-repeat,var(--realm-corner) left bottom/2px 28px no-repeat,var(--realm-corner) right bottom/28px 2px no-repeat,var(--realm-corner) right bottom/2px 28px no-repeat}
.realm-frame-light{border-color:#7e6c4659!important;border-inline-start:2px solid #ad8a4e8c!important;box-shadow:inset 0 1px #d7b97612;background-image:linear-gradient(110deg,#be984707,transparent 40%)}
.quest-menu .quest-grid{gap:10px}.quest-menu .quest-card{padding:18px 20px!important;border-radius:2px!important}.quest-menu .quest-location-art{border:1px solid #8d734844;box-shadow:0 3px 12px #0005}
.shell main>h2,.quest-menu>h2{display:flex;align-items:center;gap:16px}.shell main>h2::after,.quest-menu>h2::after{content:"";height:1px;flex:1;background:linear-gradient(90deg,#b69a6066,transparent)}
.path-lane-labels{display:grid;grid-template-columns:repeat(3,1fr);text-align:center;gap:8px;color:#acb9c9;font:10px/1.4 system-ui;letter-spacing:.09em;text-transform:uppercase;margin:10px 0 0}.path-connectors.optional-links path{stroke:#b39a6266;stroke-width:1.5;fill:none;stroke-dasharray:none}.path-branch-node.class-passive .path-art{filter:drop-shadow(0 0 7px #83a5ce55)}.path-branch-node.class-passive .path-node-rank{border-color:#8eaad1}.path-branch-node.class-passive>small{color:#bdd3ef}
@media(max-width:540px){.quest-menu .quest-card{padding:14px 12px!important}.path-lane-labels{font-size:8px;letter-spacing:0}.realm-frame::after,.evermarch-entry .auth-form::after{inset:4px}}
.realm-frame::after,.evermarch-entry .auth-form::after{inset:0;border:42px solid transparent;border-image:url('/art/interface/panel-frame-v1.webp') 18% / 42px / 0 stretch;background:none;clip-path:none}
@media(max-width:540px){.realm-frame::after,.evermarch-entry .auth-form::after{inset:0;border-image-width:28px}}


@media(max-width:540px){.realm-frame::after,.evermarch-entry .auth-form::after{inset:0;border-image-width:28px}}

.realm-frame::after,.evermarch-entry .auth-form::after{width:auto;height:auto;max-width:none;max-height:none;margin:0;transform:none;inset:0;display:block}

.guild-hunt-heading>div{flex:1;min-width:0;display:grid;grid-template-columns:48px 1fr;column-gap:12px;align-items:center}.guild-hunt-heading .fantasy-icon{float:none;grid-row:1 / 3;margin:0}.guild-hunt-heading p,.guild-hunt-heading h2{grid-column:2;width:auto}.guild-hunt-heading h2{align-self:start}
.shell .guild-upgrades-section{padding:20px!important}.shell .guild-members-section{padding:20px!important}
.realm-frame-light{position:relative}.realm-frame-light::after{content:"";position:absolute;inset:0;width:auto;height:auto;margin:0;transform:none;pointer-events:none;border:18px solid transparent;border-image:url('/art/interface/panel-frame-v1.webp') 18% / 18px / 0 stretch;z-index:2}
.world-map-scroll .world-map .map-pin{max-width:205px}.world-map-scroll .world-map .map-pin>span:not([aria-hidden]){min-width:0;word-break:normal;overflow-wrap:normal}
.battle-journal{display:inline-flex;align-items:center;gap:6px;margin-right:auto;position:relative}.battle-journal .fantasy-icon{width:28px;height:28px;flex-basis:28px}.quest-ready-badge{display:inline-grid;place-items:center;min-width:17px;height:17px;padding:0 4px;background:#cfaa57;color:#151821;font:bold .625rem system-ui;border-radius:10px;box-shadow:0 0 8px #cfaa5744;margin-left:5px}
.adventure-notices{position:fixed;right:18px;bottom:60px;width:min(360px,calc(100vw - 24px));z-index:110;display:grid;gap:10px;pointer-events:none}.adventure-notice{pointer-events:auto;position:relative;isolation:isolate;overflow:hidden;background:#0d1727;box-shadow:0 6px 28px #0009}.adventure-notice-art{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.48;z-index:-2}.adventure-notice:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#0d1727f5,#0d172779);z-index:-1}.adventure-notice-copy{padding:22px}.adventure-notice .eyebrow{font-size:.5625rem;margin:0 36px 8px 0}.adventure-notice h3{font:1.375rem/1.2 Georgia;color:#f3d598;margin:0 36px 8px 0}.adventure-notice p{font-size:.75rem;margin:6px 0 12px}.adventure-notice small{display:block;color:#b5c2d3;font-size:.625rem;margin-top:10px}.adventure-notice .notice-close{position:absolute;right:8px;top:8px;width:32px;height:32px;min-height:32px;background:#101a29c9;border:0;color:#d6c18c;font-size:1.375rem;padding:0}.adventure-notice .red-button{min-height:40px}.adventure-notices:empty{display:none}
/* Whole-game review clean-up (16 Oct): on PC the battle page shows these toasts in the empty band at the top of the page, out of the fight (they sat over the field's
   lower right); public/app.js placeNextPrompt also keeps them clear of the battlefield when the page is scrolled. Phones keep their spot above the bottom bar. */
@media(min-width:1001px){body:has(.combat-grid #battlefield) .adventure-notices{top:6px;bottom:auto;right:170px}body:has(.shell.wayfarer-shell>.community-chat):has(.combat-grid #battlefield) .adventure-notices{right:calc(clamp(300px,22vw,420px) + 170px)}}
/* Boss cast bar (whole-game review, 16 Oct; public/app.js): the cast's name and its wind-up under a boss's health bar; idle it keeps its space, so the plate never jumps.
   The boss's status line stays to two lines, so a phone shows the name in full. */
.boss-unit .boss-cast{position:relative;height:13px;margin:3px 0 0;border:1px solid #c9a35a;border-radius:3px;background:#1a1208e6;overflow:hidden;box-shadow:0 1px 3px #000;visibility:hidden}.boss-unit .boss-cast[data-state]{visibility:visible}.boss-cast>i{position:absolute;inset:0 auto 0 0;width:var(--cast,0%);background:linear-gradient(#f3c75c,#b8761e)}.boss-cast[data-state=released]>i{background:linear-gradient(#fff8dc,#f3c75c)}.boss-cast>span{position:relative;display:block;padding:0 4px;font:bold 10px/13px Georgia,serif;color:#fff4d6;text-shadow:0 1px 2px #000;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* Boss breaks (lib/boss-break.js): a boss move a stun or interrupt can break wears a cold steel-blue bar that starts with Interrupt, so the word is never cut off. */.boss-unit .boss-cast[data-break]{border-color:#a9dcff;box-shadow:0 0 6px #6fc3ffaa,0 1px 3px #000}.boss-unit .boss-cast[data-break]>i{background:linear-gradient(#6fb6e6,#24567d)}.boss-unit .boss-cast[data-break]>span::before{content:'Interrupt \00b7  ';color:#eaf8ff;letter-spacing:.04em}@media (prefers-reduced-motion:no-preference){.boss-unit .boss-cast[data-break][data-state=casting]{animation:boss-break-glow .9s ease-in-out infinite alternate}}@keyframes boss-break-glow{from{box-shadow:0 0 3px #6fc3ff88,0 1px 3px #000}to{box-shadow:0 0 9px #9fd8ffee,0 1px 3px #000}}
.boss-unit .unit-name>.unit-status{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:#ffc9b0;font-weight:600}.boss-unit .unit-name>.unit-status:empty{display:none}
/* Health-bar trail (whole-game review, 16 Oct; public/hit-weight.js): the part a hit took stays lit, then slides down. app.js sets --hp-trail only while it shows. */
.battlefield .unit-hp{background:linear-gradient(90deg,#efdcae var(--hp-trail,0%),transparent 0) #070b14}
/* Loot light (whole-game review, Moments; public/app.js presentLoot): a column in the drop's rarity colour at the drop point for 1.5 s. body> keeps a
   rarity class's own background (charms, runes) off it. */
body>.loot-light{position:fixed;z-index:59;pointer-events:none;width:30px;height:150px;transform:translate(-50%,-100%);transform-origin:50% 100%;opacity:0;border:0;border-radius:15px 15px 4px 4px;box-shadow:none;background:linear-gradient(90deg,transparent,var(--rarity,#f3c75c) 32%,#fffbe6 50%,var(--rarity,#f3c75c) 68%,transparent);-webkit-mask-image:linear-gradient(to top,#000 25%,transparent);mask-image:linear-gradient(to top,#000 25%,transparent);mix-blend-mode:screen}
body>.loot-light::after{content:'';position:absolute;left:50%;bottom:-7px;width:58px;height:14px;transform:translateX(-50%);border-radius:50%;background:radial-gradient(closest-side,var(--rarity,#f3c75c),transparent)}
@media(max-width:540px){body>.loot-light{width:22px;height:110px}body>.loot-light::after{width:44px;height:11px}}
@media(max-width:540px){.adventure-notices{right:12px;bottom:70px}.adventure-notice-copy{padding:18px}.adventure-notice h3{font-size:1.25rem}.battle-journal{font-size:.6875rem}}
/* Boss Hunt discoveries and Party bag arrivals are compact toasts (what arrived, its View button, x), so they don't sit over the fight. Release polish (14 Oct): at every width; the full desktop cards covered the enemy cards and the Equipped items panel. */
@media all{.adventure-notices{gap:6px}.adventure-notice:is([data-adventure-notice="hunt"],[data-adventure-notice="supply"]) .adventure-notice-copy{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:8px;min-height:56px;padding:6px 50px 6px 12px}.adventure-notice:is([data-adventure-notice="hunt"],[data-adventure-notice="supply"]) :is(.eyebrow,h3,p){grid-column:1;min-width:0;margin:0;font-size:.8125rem;line-height:1.25}.adventure-notice:is([data-adventure-notice="hunt"],[data-adventure-notice="supply"]) .eyebrow{font-size:.5625rem;letter-spacing:.06em}.adventure-notice[data-adventure-notice="supply"] .eyebrow,.adventure-notice[data-adventure-notice="hunt"] p:not(.eyebrow){display:none}.adventure-notice:is([data-adventure-notice="hunt"],[data-adventure-notice="supply"]) button.secondary{grid-column:2;grid-row:1/span 2;min-height:44px;padding:6px 10px;font-size:.75rem;white-space:nowrap}.adventure-notice:is([data-adventure-notice="hunt"],[data-adventure-notice="supply"]) .notice-close{top:50%;right:4px;transform:translateY(-50%)}}
/* Full pass (13 Oct): the "New zone open" and "Quest complete" cards were full size on phones and covered the lower half of the fight, its enemies and Leave expedition for up to 90 s. Same compact toast as the Hunt and Party bag cards: eyebrow, name, its button and x. Release polish (14 Oct): at every width, like the Hunt and Party bag toasts. */
@media all{.adventure-notice:is([data-adventure-notice="zone"],[data-adventure-notice="quest"]) .adventure-notice-copy{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:8px;min-height:56px;padding:6px 50px 6px 12px}.adventure-notice:is([data-adventure-notice="zone"],[data-adventure-notice="quest"]) :is(.eyebrow,h3){grid-column:1;min-width:0;margin:0;font-size:.8125rem;line-height:1.25}.adventure-notice:is([data-adventure-notice="zone"],[data-adventure-notice="quest"]) .eyebrow{font-size:.5625rem;letter-spacing:.06em}.adventure-notice:is([data-adventure-notice="zone"],[data-adventure-notice="quest"]) :is(p:not(.eyebrow),small){display:none}.adventure-notice:is([data-adventure-notice="zone"],[data-adventure-notice="quest"]) button:is(.secondary,.red-button){grid-column:2;grid-row:1/span 2;width:auto;min-height:44px;margin:0;padding:6px 10px;font-size:.75rem;white-space:nowrap}.adventure-notice:is([data-adventure-notice="zone"],[data-adventure-notice="quest"]) .notice-close{top:50%;right:4px;transform:translateY(-50%)}}
@media(min-width:1001px){.shell.mmo-shell.wayfarer-shell>.topbar{height:52px;min-height:52px;padding:3px 18px;background:linear-gradient(90deg,transparent,#18233866);border-bottom:1px solid #b8995630}.shell.mmo-shell.wayfarer-shell>.topbar>.realm-wallet{position:relative;grid-column:2;grid-row:1}.shell.mmo-shell.wayfarer-shell>.topbar>.hero-hud{grid-column:1;grid-row:1}}
.shell .illustrated-heading.painted-page-heading{background:linear-gradient(90deg,#0c1526ed 0%,#0c1526bf 36%,#0c15262e 85%),var(--page-art) center/cover!important}
.shell .exp-page .exp-panel.realm-frame:not(.realm-frame-light){padding:22px!important}.shell .guild-progression.realm-frame{padding:18px 22px}.quest-menu .quest-card{padding:18px 22px 18px 144px!important}.quest-menu .quest-location-art{left:16px}.shell .handbook-category-card{overflow:hidden}
@media(max-width:600px){.shell .exp-page .exp-panel.realm-frame:not(.realm-frame-light){padding:18px!important}.quest-menu .quest-card{padding:16px 14px 16px 92px!important}.quest-menu .quest-location-art{left:12px}.shell .guild-progression.realm-frame{padding:14px}}
.shell .storage-columns.realm-frame-light,.shell .storage-selection.realm-frame-light,.shell .rankings-board.realm-frame-light,.shell .party-roster-panel.realm-frame-light{padding:18px}.shell .crown-product.realm-frame-light{overflow:hidden}.shell .rankings-board.realm-frame-light{margin-top:20px}
.modal-backdrop>.ornate{position:relative;border-color:#a78c57!important}/* Paint on the fixed border box, never inside scrollable content. */
.modal-backdrop>.ornate{border-image:url('/art/interface/panel-frame-v1.webp') 18% / 32px / 0 stretch}.modal-backdrop>.ornate:before,.modal-backdrop>.ornate:after{display:none}
@media(max-width:1000px){
 .shell.mmo-shell.wayfarer-shell>.topbar{height:102px;min-height:102px;padding-top:0;align-items:start}
 .shell .topbar>.realm-wallet{position:fixed;top:0;left:0;right:0;z-index:90;grid-column:1 / -1;grid-row:1;justify-self:stretch;flex-direction:row;justify-content:space-between;align-items:center;width:100%;min-height:44px;margin:0;padding:0 14px;background:#0e1726;box-sizing:border-box}
 .shell .realm-wallet .wallet-crowns{min-height:44px;min-width:44px;justify-content:center}
 .shell .topbar nav .nav-account{top:44px}
 .shell .auction-category,.shell .auction-subcategory,.shell .section-tab,.shell .guild-level-buffs button{min-height:44px}
 .adventure-notice .notice-close{min-width:44px;min-height:44px}
 html{scroll-padding-top:112px;scroll-padding-bottom:84px}
}
.shell .path-loadout.realm-frame-light{padding:16px!important}
@media(min-width:761px) and (max-width:1000px){.shell.mmo-shell.wayfarer-shell>.topbar{height:auto;min-height:185px;padding-top:44px;display:block}.shell.mmo-shell.wayfarer-shell>.topbar>nav{width:100%;box-sizing:border-box;margin:0}}
.nav-discord{display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;margin:10px 0;color:#e8ce92;background:linear-gradient(110deg,#b1873338,#172a47);border:1px solid #c7a4678c;border-top:2px solid #d7b475;text-decoration:none;font:600 .75rem system-ui;box-shadow:inset 0 1px #ffe6a12b}
.nav-discord svg{width:22px;height:22px;flex:none}.nav-discord:hover,.nav-discord:focus-visible{color:#fff0c9;background:#34425c;outline:2px solid #e2c084;outline-offset:2px}
.realm-wallet>.nav-discord{display:none}
/* Keep currency balances and all three actions reachable on narrow phones. */
@media(max-width:360px){
 .shell .realm-wallet>.nav-discord{flex:0 0 44px;justify-content:center;box-sizing:border-box}
 .shell .realm-wallet>.nav-discord>span{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
 .shell .realm-wallet>.wallet-gold{min-width:0}
}
@media(max-width:1000px){.shell .topbar nav>.nav-discord{display:none!important}.shell .realm-wallet>.nav-discord{display:flex;min-height:44px;margin:0;padding:0 5px;font-size:.625rem;gap:5px;border:0;border-bottom:2px solid #c7a467;background:transparent;white-space:nowrap}.realm-wallet>.nav-discord svg{width:18px;height:18px}.realm-wallet>.nav-discord .discord-external{display:none}}
.shell :is(.section-tabs,.market-tabs,.rank-tabs){border-bottom:2px solid #bc9a62;padding-bottom:5px}
.shell :is(.section-tabs,.market-tabs,.rank-tabs)>button{border-radius:2px 2px 0 0;min-height:44px}
.shell :is(.section-tabs,.market-tabs,.rank-tabs)>:is(.active,[aria-selected="true"],[aria-pressed="true"]){box-shadow:inset 0 2px #e6c889;border-color:#bd995e;background:linear-gradient(180deg,#b98d3933,#142135);color:#ffe1aa}
.shell :is(.realm-frame,.realm-frame-light){--realm-gold:#c7a467}

/* Paint decoration on the element's border so scrollable content cannot carry
   its bottom edge into the middle of an expanded panel. */
.realm-frame,.evermarch-entry .auth-form{border-image:url('/art/interface/panel-frame-v1.webp') 18% / 42px / 0 stretch!important}
.realm-frame-light{border-image:url('/art/interface/panel-frame-v1.webp') 18% / 18px / 0 stretch!important}
.realm-frame::after,.realm-frame-light::after,.evermarch-entry .auth-form::after{display:none!important}
@media(max-width:540px){.realm-frame,.evermarch-entry .auth-form{border-image-width:28px!important}}
.shell :is(.workshop-bench,.workshop-picker,.market-inventory,.storage-selection){border-radius:2px;background:linear-gradient(135deg,#182638,#0c1624)}
.shell :is(.workshop-heading,.craft-heading){border-bottom:2px solid var(--realm-gold,#c7a467)}
.shell :is(.workshop-workpiece,.enchanter-item-heading,.craft-stock>header,.guild-roster>header){border-bottom:1px solid #c7a46780;padding-bottom:15px}
.shell :is(.workshop-operations,.workshop-filter){border-bottom:1px solid #c7a46770;padding-bottom:8px}
.shell .workshop-ranks{background:radial-gradient(ellipse,#bd8c3920,transparent 75%);border-block:1px solid #c7a4675c}
.shell .workshop-farming{background:transparent;border:0;border-left:2px solid #a0c398;padding:6px 12px;font-size:.75rem}
.shell .enchanter-picker{border:0!important;border-bottom:1px solid #c7a46770!important;background:transparent!important;border-radius:0;box-shadow:none;margin-bottom:18px;padding:0 16px 12px}
.shell .enchanter-picker::before{display:none}
.shell .enchanter-action-strip{border-top:2px solid #bd9c606e;background:linear-gradient(90deg,#b58a4310,transparent)}
.shell .workshop-exchange{background:transparent;border:0;border-top:1px solid #c7a46770;border-radius:0;margin-top:24px}
@media(max-width:760px){.shell .workshop-bench{padding:20px 16px}.shell .workshop-workpiece{gap:8px}.shell .workshop-workpiece h2{font-size:1.3125rem}.shell .workshop-item-stage{flex-shrink:0}}
.handbook-standalone .handbook-header,.policy-document .policy-heading{padding:28px;background:linear-gradient(90deg,#0c1526ed,#0c1526a6),var(--page-art,url('/art/interface/arcane-v1.webp')) center/cover}
@media(max-width:540px){.handbook-standalone .handbook-header,.policy-document .policy-heading{padding:22px 18px}.handbook-standalone .handbook-category-card>summary{padding:16px}}

/* The frame belongs to the sidebar; every control stays inside its pillars. */
.nav-boss-backdrop,.nav-boss-portrait{display:none!important}
@media(min-width:1001px){
 .shell.mmo-shell.wayfarer-shell{padding-left:208px}
 .shell.mmo-shell.wayfarer-shell>.topbar>nav{width:208px;padding:14px 21px 22px;box-sizing:border-box;gap:2px;scrollbar-width:thin;scrollbar-color:#887147 transparent;scrollbar-gutter:stable both-edges;background:#0a1320;border:0}
 .shell.mmo-shell.wayfarer-shell>.topbar>nav::before{content:"";position:fixed;inset:0 auto 0 0;width:208px;pointer-events:none;z-index:0;background:url('/art/interface/sidebar-v1.webp') center top/100% 100% no-repeat}
 .shell.mmo-shell.wayfarer-shell>.topbar>nav::after{content:"";position:fixed;inset:0 auto 0 0;width:208px;box-sizing:border-box;pointer-events:none;z-index:3;border:14px solid transparent;border-image:url('/art/interface/panel-frame-v1.webp') 18% / 14px / 0 stretch}
 .shell.mmo-shell.wayfarer-shell>.topbar>nav .nav-button{padding:4px;min-height:44px;gap:6px;box-sizing:border-box}
 .shell.mmo-shell.wayfarer-shell>.topbar>nav .fantasy-icon{width:30px;height:30px;flex-basis:30px}
 .shell .nav-brand{width:100%;min-height:112px;margin:0 0 6px!important;padding:0 0 10px}
 .shell .nav-brand .brand-name{font-size:min(1.25rem,20px);letter-spacing:0}
 .shell .nav-brand-emblem{width:58px;height:58px}
 .shell .topbar>nav .nav-account{width:100%;min-width:0;box-sizing:border-box}
 .shell .topbar>nav .nav-battle{width:100%;min-height:44px;padding:6px;font-size:.6875rem}
}

/* Battle uses the same metalwork, with fine trim around smaller controls. */
.shell .arena-column{position:relative;border:1px solid #b5975d;box-shadow:inset 0 2px #ecd29955,inset 0 0 0 4px #080f19;isolation:isolate}
.shell .arena-column::after{content:"";position:absolute;inset:0;pointer-events:none;z-index:10;border:24px solid transparent;border-image:url('/art/interface/panel-frame-v1.webp') 18% / 24px / 0 stretch}
.shell .arena-heading{border-bottom:2px solid #a98b50;background:linear-gradient(90deg,#0d1826,#29313a,#0d1826);box-shadow:inset 0 1px #eed49440}
.shell .field-controls{border-top:2px solid #ad8d51;border-bottom:1px solid #9c81514a;background:linear-gradient(180deg,#1e2c3c,#0e1926);gap:8px;padding:10px 14px;align-items:stretch}
.shell .field-controls{position:relative}
.shell .field-navigation-controls{display:flex;flex-wrap:wrap;align-items:stretch;justify-content:flex-end;gap:8px;margin-left:auto;max-width:100%}
.shell .field-navigation-controls>[hidden]{display:none!important}
.shell .field-action-controls{display:flex;flex:1 0 24rem;max-width:100%;align-items:center;justify-content:center;gap:8px;white-space:nowrap}
/* A party member's leader note wraps on its own line instead of pushing Taunt off screen. */
.shell .field-action-controls>.battle-leader-note{flex:1 0 100%;order:9;margin:0;white-space:normal;text-align:center;min-width:0}
.shell .field-action-controls:has(>.battle-leader-note:not([hidden])){flex-wrap:wrap}
.shell .field-action-controls>.battle-leader-note{grid-column:1/-1}
.shell .field-action-controls[hidden],.shell .battle-controls .actionbar[hidden]{display:none!important}
.shell .field-action-controls>button{width:auto;min-width:0;min-height:48px;height:48px;margin:0;padding:7px 12px;flex:none}
.shell .field-action-controls>.action-key{display:flex;flex-direction:row;gap:5px;border:1px solid #a88c55;border-top:2px solid #d6b575;border-radius:2px;background:linear-gradient(180deg,#29374a,#152131);box-shadow:inset 0 0 0 2px #0c172366,inset 0 1px #f9e4b133;color:#eadbb9}
.shell .field-action-controls>.action-key .skill-icon{width:27px;height:27px}
.shell .field-action-controls>.action-key small{font-size:.5625rem}
/* Layout pass (21 Oct 2026): a greyed Taunt (no tank, cooling down) keeps its gold frame; only the icon and word dim, so the strip stays even. */
.shell .field-action-controls>.action-key{justify-content:center}
.shell .field-action-controls>.action-key:disabled{opacity:1;filter:none;cursor:default;color:#c9c3b4}
.shell .field-action-controls>.action-key:disabled .skill-icon{opacity:.5}
.shell .field-action-controls>.begin-button{background:linear-gradient(#6d3032,#3b1b25);color:#f8deb1}
.shell .combat-grid .field-navigation-controls>.secondary,.shell .field-navigation-controls>.field-revive-choice{min-height:48px;align-self:stretch}
.shell .battle-controls{border-top:1px solid #967d4e;background:linear-gradient(120deg,#152333,#0c1722);padding:12px 14px}
.shell :is(.combat-grid,.field-overview,.meter-breakdown) :is(.secondary,.red-button,.meter-tabs>button,.move-directions>button),.shell .battle-orders-menu>summary{border:1px solid #a88c55;border-top:2px solid #d6b575;border-radius:2px;background:linear-gradient(180deg,#29374a,#152131);box-shadow:inset 0 0 0 2px #0c172366,inset 0 1px #f9e4b133;color:#eadbb9;min-height:44px}
.shell :is(.combat-grid,.field-overview,.meter-breakdown) :is(.secondary,.red-button,.meter-tabs>button):hover{border-color:#f0ce83;background:linear-gradient(#35455b,#1c2c40)}
.shell :is(.combat-grid,.field-overview,.meter-breakdown) :is(.secondary,.meter-tabs>button)[aria-pressed=true]{background:linear-gradient(#675434,#3a352b);color:#fff0c8;border-color:#e0bd73}
.shell .combat-grid .red-button{background:linear-gradient(#6d3032,#3b1b25);color:#f8deb1}
.shell .battle-orders-menu{margin:10px 0 0!important}.shell .battle-orders-menu>summary{padding:8px 12px;box-sizing:border-box}.shell .battle-orders-menu[open]{border-bottom:1px solid #a88c55!important}
.shell :is(.damage-meter,.combat-log,.enemy-card){border:1px solid #9d834e;border-top:2px solid #c4a165;border-radius:2px;box-shadow:inset 0 1px #e5c68122;background:linear-gradient(135deg,#1d2b3a,#101c28)}
.shell .enemy-rail{border-top:1px solid #b696586b}.shell .rail-heading{border-bottom:1px solid #a58c515c;padding-bottom:8px;color:#d7b775}
.shell .field-overview{border:2px solid #b99a5d;border-top:3px solid #e1bd79;background:linear-gradient(140deg,#223246,#0b1523);box-shadow:inset 0 0 0 4px #070e18,0 16px 60px #000b;padding:20px}
.shell .field-overview>header{border-bottom:1px solid #b99a5d88;padding-bottom:10px}.shell .field-overview button{border-color:#b99a5d;color:#ead6ad;min-height:44px}
.meter-breakdown .meter-hero{border-bottom:2px solid #bc9a5d}.meter-breakdown button[data-meter-close]{border:1px solid #bd9958;background:#142132;color:#efcf93;min-width:44px;min-height:44px}
@media(max-width:760px){.shell .arena-column::after{border-image-width:14px}.shell .field-controls,.shell .battle-controls{padding:10px}.shell .field-overview{padding:14px}}
@media(min-width:761px){.shell .field-controls[data-resting="true"] .field-action-controls{position:static;transform:none;order:1;flex-basis:100%;width:100%;justify-content:center}}
@media(max-width:1150px){.shell .field-action-controls{position:static;transform:none;order:1;flex-basis:100%;width:100%;justify-content:center}}

/* Phone controls share stable columns; labels never decide the row height. */
@media(max-width:760px){
 .shell .field-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;gap:8px}
 .shell .field-controls>.battle-journal{grid-column:1/-1}
 .shell .field-action-controls{grid-column:1/-1;order:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch;gap:8px}
 .shell .field-action-controls[data-count="1"]{grid-template-columns:minmax(0,1fr)}
 .shell .field-action-controls:is([data-count="2"],[data-count="4"]){grid-template-columns:repeat(2,minmax(0,1fr))}
 .shell .combat-grid .field-action-controls>button{width:100%;height:100%;min-height:52px;padding:8px;white-space:normal;justify-content:center;text-align:center;box-sizing:border-box}
 .shell .field-navigation-controls{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0}
 .shell .combat-grid .field-controls>.battle-journal,.shell .combat-grid .field-navigation-controls>button,.shell .field-navigation-controls>.field-revive-choice{width:100%;min-width:0;min-height:52px;height:100%;margin:0;padding:8px;display:flex;align-items:center;justify-content:center;gap:6px;box-sizing:border-box;white-space:normal;line-height:1.3;text-align:center}
 .shell .field-navigation-controls>.field-revive-choice{justify-content:flex-start;border:1px solid #a88c5566;border-radius:2px;background:#0d1926}
 .shell .field-revive-choice input{flex:none;margin:0;width:22px;height:22px}
 .shell .battle-controls .actionbar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;gap:8px}
 .shell .battle-controls .actionbar>button{width:100%;min-width:0;max-width:none;min-height:48px;height:100%;margin:0;justify-content:center;white-space:normal}
 .shell .battle-orders-menu{width:100%;min-width:0;align-self:stretch}
 .shell details.battle-orders-menu>summary{width:100%;justify-content:flex-start;min-height:48px;padding:8px 12px}
 .shell #partyCards>.party-card:only-child{grid-column:1/-1}
 .shell.mmo-shell.wayfarer-shell>.topbar>nav>.nav-account{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px;align-items:center;justify-content:stretch;min-width:0;padding-inline:8px;box-sizing:border-box}
 .shell .nav-account .account-block{margin:0;width:auto;min-width:0}
 .shell .nav-account .nav-tools{display:grid;grid-template-columns:repeat(2,44px);gap:4px}
 .shell .nav-account .nav-tools>button,.shell .nav-account>.nav-inventory{height:44px;min-height:44px;margin:0;padding:6px;min-width:0;width:100%}
 .shell .nav-account .chat-access{width:64px;min-width:0}
 .shell .nav-account .chat-access>button{display:flex;width:64px;height:44px;min-height:44px;margin:0;padding:6px;gap:4px;font-size:0}
 .shell .nav-account .chat-access svg{width:20px;height:20px;flex:none}
 .shell .nav-account .chat-unread{font-size:.6875rem;min-width:17px;padding:2px 4px}
 /* New-player review (26 Oct): Back to Battle sits in the portrait row, between the portrait and chat/bag, instead of a row of its own (48 px back on every page). */
 .shell.mmo-shell.wayfarer-shell>.topbar>nav>.nav-account:has(>.nav-battle:not([hidden])){grid-template-columns:auto minmax(0,1fr) auto}
 .shell .nav-account:has(>.nav-battle:not([hidden]))>.account-block{grid-column:1;grid-row:1}
 .shell .nav-account>.nav-battle:not([hidden]){grid-column:2;grid-row:1;width:100%;min-height:44px;margin:0}
 .shell .nav-account:has(>.nav-battle:not([hidden]))>.player-menu{grid-column:3;grid-row:1}
 .shell.mmo-shell.wayfarer-shell>.topbar:has(.nav-account>.nav-battle:not([hidden])){height:102px;min-height:102px}
}
@media(max-width:480px){.shell.mmo-shell #partyCards{grid-template-columns:minmax(0,1fr)}}
/* Character creation uses the same brass frames as the rest of the realm. */
.creator{max-width:1680px;padding:28px 28px 40px}
.creator>.page-heading{gap:18px;align-items:center;border-bottom:2px solid #b79351;padding-bottom:18px;margin-bottom:22px}
.creator .chapter-note{color:#d8bf8b;font:.75rem/1.8 var(--ui);letter-spacing:.04em}
.creator-grid{grid-template-columns:minmax(210px,.7fr) minmax(320px,1.8fr) minmax(280px,.95fr);height:auto;max-height:none;min-height:700px;gap:20px;align-items:stretch}
.creator .choices,.creator .creation-details{padding:26px 22px;background:linear-gradient(135deg,#1b2837,#101a26)}
.creator .choices h2{font-size:1.3125rem;margin:0 0 12px;border:0}.creator .choices>.micro{color:#aebdca;font-size:.625rem;margin-bottom:18px}
.creator .choice{position:relative;min-height:78px;margin-bottom:9px;padding:10px;gap:10px;border-color:#8a794b77;background:#0b1521b8;border-radius:3px}
.creator .choice.chosen{border-color:#e1bf74;background:linear-gradient(100deg,#77572f66,#1b2c38);box-shadow:inset 3px 0 #ebc981,inset 0 1px #e4c27944,0 0 12px #a9842520}
.creator .choice:focus-visible{outline:2px solid #ffe4a0;outline-offset:2px}
.creator .choice b{font-size:1rem}.creator .choice small{font-size:.6875rem;color:#b8c9d4}.creator .choice .outfit-portrait{flex-shrink:0}
.creator .scope-note{border-top:1px solid #b8995766;margin-top:18px;padding-top:15px;font-size:.75rem;line-height:1.65;color:#b8c9d4}
.creator .creator-stage{min-height:700px;border-top:3px solid #c7a467!important;border-bottom:3px solid #c7a467!important}
.creator .hero-pedestal{flex:1;min-height:470px;height:auto;padding:28px 24px 0}.creator .hero-caption{height:auto;min-height:140px;padding:22px 30px 30px}
.creator .creation-details{overflow:visible}.creator .creation-details>h2{border:0;margin:15px 0;font-size:1.8125rem}
.creator .class-description{font-size:.875rem;line-height:1.65;color:#d3dce0}
.creator .skill-list,.creator .ascension-hint{border-top:1px solid #b899575e;padding-top:17px;margin-top:18px}
.creator .skill-list b{display:block;font-size:.875rem}.creator .skill-list b small{display:block;margin-top:6px;font:.75rem/1.4 var(--ui);color:#afc1cd}
.creator .skill-list>.small-note{font-size:.75rem;line-height:1.7}.creator .ascension-hint{line-height:1.5;padding-bottom:18px}
.creator #createForm{border-top:2px solid #b8995777;padding-top:20px}.creator #characterName{min-height:46px}.creator #createForm>.red-button{min-height:48px;margin-top:8px}
@media(max-width:1100px){.creator{padding:22px 18px}.creator-grid{grid-template-columns:210px minmax(0,1fr);gap:16px}.creator .creation-details{grid-column:1/-1}.creator .creator-stage{min-height:620px}.creator .hero-pedestal{min-height:420px}.creator .creation-details>form{max-width:540px}}
@media(max-width:760px){.creator{padding:18px 10px 28px}.creator>.page-heading{display:block;padding:0 4px 14px}.creator>.page-heading h1{font-size:1.75rem}.creator .chapter-note{display:block;margin-top:10px;font-size:.6875rem}.creator-grid{display:flex;flex-direction:column;gap:16px;min-height:0}.creator .choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:18px 14px}.creator .choices h2{display:block;grid-column:1/-1;font-size:1.25rem;margin:0 0 8px}.creator .choice{min-width:0;min-height:82px;margin:0;padding:8px;gap:7px}.creator .choice b{font-size:.875rem}.creator .choice small{font-size:.625rem;line-height:1.45}.creator .choice i:not(.outfit-portrait){display:none}.creator .choice .outfit-portrait{width:32px;flex-basis:32px}.creator .creator-stage{min-height:460px;height:460px;width:100%}.creator .hero-pedestal{min-height:300px;max-height:320px;padding:20px 18px 0}.creator .hero-caption{min-height:128px;padding:16px 18px 22px}.creator .hero-caption h2{font-size:1.4375rem}.creator .creation-details{padding:24px 20px}.creator .creation-details>h2{font-size:1.625rem}}
.creation-topbar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 28px;border-bottom:1px solid #ac8d5044;background:#0b1420}
.creation-topbar>.wordmark{width:200px;flex:0 0 auto}.creation-topbar>.wordmark strong{font-size:1.5625rem}
.creation-topbar>div:last-child{display:flex;gap:10px;align-items:center}.creation-topbar .nav-discord{margin:0;min-height:44px}
.creator .creator-stage{height:760px;min-height:760px;align-self:start}
.creator .hero-pedestal{flex:0 0 580px;height:580px;min-height:0;max-height:none}
.creator .hero-caption{flex:1;min-height:0}
@media(max-width:1100px) and (min-width:761px){.creator .creator-stage{height:720px;min-height:720px}.creator .hero-pedestal{flex-basis:550px;height:550px}}
@media(max-width:760px){.creation-topbar{padding:12px 14px;flex-wrap:wrap;gap:10px}.creation-topbar>.wordmark{width:160px}.creation-topbar>.wordmark strong{font-size:1.4375rem}.creation-topbar>div:last-child{width:100%;justify-content:space-between;gap:6px}.creation-topbar .secondary{font-size:.75rem;padding:9px 12px;min-height:44px}.creation-topbar .nav-discord{padding:8px;font-size:.6875rem}.creator .creator-stage{height:460px;min-height:460px}.creator .hero-pedestal{flex-basis:310px;height:310px;max-height:none}}
.creator .creator-stage{display:flex;flex-direction:column}
.creator .choice .outfit-portrait{display:block;margin:0;border-radius:2px}
@media(min-width:761px){.creator .creator-stage{height:auto;align-self:stretch}}
[aria-label="Alpha shop unlock"] .salvage-confirmation .az-actions>button{min-height:44px;flex-shrink:0}

@media(max-width:700px){.shell .guild-page .exp-heading .az-actions>button,.shell .guild-page .exp-heading .az-actions>a{min-height:44px;display:inline-flex;align-items:center;justify-content:center}}

@media(max-width:360px){.shell .combat-grid .field-action-controls>button[data-action="taunt"]{display:flex;flex-direction:column;gap:2px;padding-inline:4px;align-items:center;justify-content:center}.shell .combat-grid .field-action-controls>button[data-action="taunt"]>.skill-icon{width:27px;height:27px;flex-shrink:0}.shell .combat-grid .field-action-controls>button[data-action="taunt"]>.action-label,.shell .combat-grid .field-action-controls>button[data-action="taunt"]>small{max-width:100%;overflow-wrap:anywhere}.shell .combat-grid .field-action-controls>button[data-action="taunt"]>small{margin:0}}
/* Companions menu icon (17 Oct, design/art24-2026-10-17): the painted party of three, in place of the Companion Master portrait. */
.fantasy-icon.companion-emblem{background:url('/art/interface/icon-companions-v2.webp') center/contain no-repeat}
.fantasy-icon.arena-emblem{background:url('/art/interface/icon-arena-v1.webp') center/contain no-repeat}
.fantasy-icon.boss-hunt-emblem{background:url('/art/interface/icon-boss-hunt-v1.webp') center/contain no-repeat}
/* Delivered page banners (public/banner-manifest.js): keep the art's focal side on screen when a 320 px heading crops a 3:1 painting. Shared theme art is untouched. */
@media(max-width:560px){.shell .painted-page-heading[data-banner]{background-position:0 0,var(--page-pos-narrow,center)!important}.handbook-standalone[data-has-banner] .handbook-header,.policy-document[data-has-banner] .policy-heading{background-position:0 0,var(--page-pos-narrow,center)}}

/* Phones held sideways (landscape, up to 1000 px wide and 500 px tall): a one-line menu bar and one notice at a time, so the battlefield stays in view and fits under the gold bar. The next notice shows once the first is closed. */
@media(orientation:landscape) and (max-height:500px) and (max-width:1000px){.shell.mmo-shell.wayfarer-shell>.topbar{min-height:0;padding-bottom:8px}.shell.mmo-shell .arena-column{grid-template-rows:auto clamp(260px,calc(100svh - 48px),350px) auto}.shell.mmo-shell .battlefield{min-height:0}.shell.mmo-shell>.topbar>nav :is(.nav-button.nav-primary,.nav-more>summary){flex-direction:row;justify-content:center;min-height:44px;padding:4px 6px;gap:6px}.shell.mmo-shell>.topbar>nav :is(.nav-button.nav-primary,.nav-more>summary)>:is(.fantasy-icon,.icon){width:24px;height:24px;flex:none}.shell.mmo-shell>.topbar>nav .nav-button.nav-primary :is(.nav-copy,.nav-copy>strong){flex:none;width:auto}.adventure-notices>.adventure-notice~.adventure-notice{display:none}}
/* Sideways phones up to 760 px: the More sheet stops below the gold bar and the account row instead of sliding under them, and the battlefield fits between the account row and the menu bar. */
@media(orientation:landscape) and (max-height:500px) and (max-width:760px){.shell.mmo-shell .arena-column{grid-template-rows:auto clamp(200px,calc(100svh - 44px - var(--mobile-utility-height,58px) - var(--mobile-nav-height,58px) - 4px),360px) auto}.mmo-shell>.topbar>nav .nav-more-panel{max-height:calc(100dvh - var(--mobile-nav-height,80px) - var(--mobile-utility-height,58px) - 44px - 8px)}}
/* Phones and touch screens: the Reduced kill XP link on a portrait card gets a 44 px tall touch target; the negative margin keeps the card the same height. */
@media(max-width:760px),(pointer:coarse){.portrait-xp-warning{min-height:44px;padding-block:10px;margin-block:-10px;box-sizing:border-box;position:relative;z-index:1}}
/* Very narrow screens (320 px phones, or 390 px phones at 150% zoom): one notice at a time so they don't bury the battlefield, and the bag's Auto-salvage row wraps Edit rules onto its own line instead of widening the page. */
/* Release polish (14 Oct): phones show one notice at a time (the markup holds at most two); the first one counts the waiting one, which shows when it closes. */
@media(max-width:760px){.adventure-notices>.adventure-notice~.adventure-notice{display:none}.adventure-notices>.adventure-notice:first-child:has(~.adventure-notice) .eyebrow::after{content:" · +1 more"}}
.salvage-card-head{flex-wrap:wrap}
/* Damage meter names stay at least 44 px wide (short names like Aldric were 35-38 px touch targets). */
.damage-meter .meter-name{min-width:min(44px,100%)}
/* Phone QA 7 Oct: Taunt, Leave expedition and Combat review stay fully above the bottom bar. On phones the action row leads the controls block, and the block is
   sticky so that row peeks out just above the bar while the battle column is on screen (--field-rest is set by game-navigation.js). overflow:clip keeps the
   column's clipping without making it a scroll box, so sticky works against the page; older browsers keep today's layout. */
@media(max-width:760px){.shell .arena-column{overflow:clip}.shell .combat-grid .field-controls{position:sticky;bottom:calc(var(--mobile-nav-height,0px) - var(--field-rest,0px));z-index:6;box-shadow:0 -6px 12px #0008}.shell .combat-grid .field-action-controls{order:-1}}
@media(max-width:760px){body.has-mmo-shell:has(.combat-grid .field-action-controls:not([hidden])) #toast{bottom:calc(var(--mobile-nav-height,84px) + 76px)}}
/* Large browser text on phones: character names (one word of up to 16 letters) keep their 0.62 size in page headings, the Party roster,
   the Tavern player seat and the Leaderboards, so a long name stays on one line instead of breaking mid-word. Same size at the default 16 px. */
@media(max-width:600px){.wayfarer-shell .exp-heading h1{font-size:min(1.9rem,30.4px)}.wayfarer-shell .exp-heading.illustrated-heading h1{font-size:min(1.6875rem,27px)}.shell .party-member-identity h2{font-size:min(1.125rem,18px)}.companion-seat-grid .companion-seat h3{font-size:min(1rem,16px)}.rank-identity .text-button{font-size:min(.875rem,14px)}}
/* Large browser text in the fixed-width sidebar: the attention badge keeps its default size and moves toward the edge as text grows
   (8 px at 16 px, 2 px at 24 px), so a two-digit count no longer covers the end of "Character". */
@media(min-width:601px){.shell>.topbar .nav-button>.attention-badge{min-width:min(1.1875rem,19px);height:min(1.1875rem,19px);font-size:min(.94rem,15.04px);right:clamp(2px,calc(24px - 1rem),8px)}}
/* Large browser text on phones: the Leaderboards tabs stay inside their two columns (labels capped at 16 px), so the page no longer scrolls sideways. */
@media(max-width:600px){.shell .rank-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}.shell main .rank-tabs.rank-tabs>button{min-width:0;font-size:min(.8125rem,16px)}}
/* Very narrow pages (a phone at 150% zoom or more): reclaim nested padding, stack side-by-side cards and size headings to the page so whole words fit on a line. Ordinary 320 px and wider phones are unchanged. */
@media(max-width:300px){.handbook details.quest-records{padding-inline:6px}.handbook .field-lessons.field-lessons{padding:12px 8px}.handbook .field-lessons ol>li{flex-direction:column;padding:12px 10px;gap:8px}.wayfarer-shell .exp-heading h1{font-size:min(1.9rem,8vw)}.wayfarer-shell .exp-heading.illustrated-heading h1,.shell .market-heading h1{font-size:min(1.6875rem,8vw)}.shell .illustrated-heading>.eyebrow,.shell .illustrated-heading>h1,.shell .illustrated-heading>p{max-width:none}.shell .market-heading{flex-direction:column;align-items:flex-start}.shell .party-member{grid-template-columns:minmax(0,1fr)}.shell .party-member>*{grid-row:auto;grid-column:auto}.shell .crown-products article{grid-template-columns:minmax(0,1fr)}.shell .crown-bonus-list{grid-template-columns:minmax(0,1fr)}.shell .rank-tabs{grid-template-columns:minmax(0,1fr)}.shell .adventurer-rank{grid-template-columns:28px 44px minmax(0,1fr)}.shell .adventurer-rank>.rank-identity{grid-column:1/-1;grid-row:2}.shell .adventurer-rank>.rank-journey{grid-column:1/-1}.shell .character-stats .character-stat:has(.stat-limit-track){grid-template-columns:minmax(0,1fr)}}
/* Alchemist and Enchanter scroll headings: the Crafting guide link sat at the far right, over the painted banner art (13 Oct pass). It now follows the
   subtitle in the text column, as it already did on phones. */
.shell .craft-heading.painted-page-heading{flex-direction:column;align-items:flex-start;justify-content:center;gap:2px}
/* The painted panel frame (::after above) replaces the old .ornate corner bracket on these panels. */
.realm-frame::before,.evermarch-entry .auth-form::before{display:none}
/* Enchanter: the chosen item's sheet keeps clear of the window frame, like the notice line above it (phones pad the whole bench instead). */
@media(min-width:761px){.shell .enchanter-window>.enchanter-sheet{padding:0 24px 22px}}
/* A selected tab stays gold under the pointer or after a tap (ui-kit.css's tab hover otherwise wins on weight and turns it navy). */
.shell.shell.shell :is(.section-tabs,.region-tabs,.market-tabs,.rank-tabs,.notice-board-tabs,.workshop-service-tabs,.inventory-tabs,.inventory-dialog-tabs,.crown-categories,.uk-tabs)>:is(button,a):is(.active,.selected,.chosen,[aria-selected="true"],[aria-pressed="true"],[aria-current="page"],[aria-current="true"]):hover{border-color:#e0bd73;background:var(--uk-surface-lit);color:#fff1cc;box-shadow:inset 0 -3px 0 #e6c889,inset 0 0 0 2px var(--uk-navy-0),inset 0 0 0 3px #e6c88955}
/* Stalled-PR follow-up (17 Oct): on phones the adventure notices sit in the page above the battlefield (placeNextPrompt in app.js), not over the zone title or the fight. */
@media(max-width:760px){.arena-heading>.adventure-notices.in-flow{position:static;grid-column:1/-1;width:auto;margin:8px 0 0;z-index:auto}}
/* Painted sidebar buttons (ART33 sheet: 3 x 2 cells, read left to right). Plain picture, no medallion; the button text stays. */
.side-art{display:inline-block;width:24px;height:24px;flex:0 0 24px;background:url("/art/ui/icons-sidebar-v2.webp") 0 0/300% 200% no-repeat;filter:drop-shadow(0 1px 1px #000c);vertical-align:middle}
.side-art-log{background-position:50% 0}.side-art-switch{background-position:100% 0}.side-art-logout{background-position:0 100%}.side-art-inventory{background-position:50% 100%}.side-art-settings{background-position:100% 100%}
.icon-button>.side-art{width:26px;height:26px;flex-basis:26px}
/* Boss rooms and Hunts (Pat, 23 Oct 2026: "zone boss and hunts its still not aligned properly"). The 21 Oct layout pass only reached the strip on the open zone field;
   a Hunt, raid or boss-room fight keeps its buttons under the enemy cards, where Taunt stood as a bare icon over its word and Leave expedition and Combat review sat
   at their own heights. They now make one row of even framed buttons across the panel, the same as the zone field strip (38 px on wide screens, 52 px on phones). */
.shell .battle-controls.has-enemy-roster{display:flex;flex-wrap:wrap;align-items:stretch;justify-content:flex-start;gap:8px}
.shell .battle-controls.has-enemy-roster>:is(.enemy-roster,.resurrection-status,.focus-order,.move-controls){flex:1 1 100%;min-width:0}
.shell .battle-controls.has-enemy-roster>.move-controls{order:2}
.shell .battle-controls.has-enemy-roster>.actionbar:not([hidden]){display:contents}
.shell .battle-controls.has-enemy-roster>.actionbar>.battle-leader-note{flex:1 1 100%;order:2;margin:0;text-align:center}
/* Combat review's holder steps aside too (the plain player's one-button holder only; the developer panel is a section and keeps its box), so all three buttons share the row evenly. */
.shell .battle-controls.has-enemy-roster>div.battle-orders-menu{display:contents}
.shell .battle-controls.has-enemy-roster>.actionbar>button:not([hidden]),.shell .battle-controls.has-enemy-roster>div.battle-orders-menu>button{flex:1 1 0;min-width:0;max-width:none}
.shell .battle-controls.has-enemy-roster>.actionbar>button:not([hidden]),.shell .battle-controls.has-enemy-roster>div.battle-orders-menu>button{display:flex;align-items:center;justify-content:center;gap:6px;width:100%;height:38px;min-height:38px;margin:0;padding:4px 10px;box-sizing:border-box;white-space:nowrap;line-height:1.2}
.shell .battle-controls.has-enemy-roster>.actionbar>.action-key{flex-direction:row;border:1px solid #a88c55;border-top:2px solid #d6b575;border-radius:2px;background:linear-gradient(180deg,#29374a,#152131);box-shadow:inset 0 0 0 2px #0c172366,inset 0 1px #f9e4b133;color:#eadbb9}
.shell .battle-controls.has-enemy-roster>.actionbar>.action-key .skill-icon{width:24px;height:24px}
.shell .battle-controls.has-enemy-roster>.actionbar>.action-key small{padding:1px 6px;border:1px solid var(--uk-gold-dim,#8f7645);border-radius:9px;font-size:.6875rem;line-height:1.3;font-variant-numeric:tabular-nums;white-space:nowrap}
.shell .battle-controls.has-enemy-roster>.actionbar>.action-key:disabled{opacity:1;filter:none;cursor:default;border-color:var(--uk-gold-dim,#8f7645);color:var(--uk-ivory-dim,#c9c3b4)}
.shell .battle-controls.has-enemy-roster>.actionbar>.action-key:disabled .skill-icon{opacity:.5}
@media(max-width:760px){.shell .battle-controls.has-enemy-roster>.actionbar>button:not([hidden]),.shell .battle-controls.has-enemy-roster>div.battle-orders-menu>button{height:auto;min-height:52px;padding:8px;white-space:normal;text-align:center}}
/* Combat screen audit (Pat, 23 Oct 2026), phones. Taunt's timer fits inside its button: plain small text that may wrap ("Tank only"), not the wide-screen pill.
   The Wait for revives and Rest between fights toggles get the same gold frame as on wide screens (lit when ticked), not a faint outline beside framed buttons.
   A strip with one map button (world boss: Arena map) gives it the whole row instead of half a row and an empty half. */
@media(max-width:760px){
 .shell .battle-controls.has-enemy-roster>.actionbar>.action-key{gap:5px;padding-inline:6px}
 .shell .battle-controls.has-enemy-roster>.actionbar>.action-key small{padding:0;border:0;border-radius:0;font-size:.75rem;white-space:normal;text-align:left}
 .shell .field-navigation-controls>.field-revive-choice{border:1px solid var(--uk-gold-dim,#8f7645);border-radius:var(--uk-radius,4px);background:var(--uk-tab-surface,#152131);box-shadow:var(--uk-rule,none);color:#d9d3c2;font-weight:600}
 .shell .field-navigation-controls>.field-revive-choice:has(input:checked){border-color:#e0bd73;background:var(--uk-surface-lit,#3a2f22);color:#fff1cc}
 /* A lone visible button takes the whole row. public/field-view.js writes the visible count: the same test as a :has() rule here made the browser
    restyle the whole page on every frame of a fight on a phone (combat stutter report, 26 Oct). */
 .shell .field-navigation-controls[data-visible="1"]>:not([hidden]){grid-column:1/-1}
}

/* /loot-roll-window.css */
.loot-roll-window{position:fixed;right:16px;bottom:20px;z-index:85;width:min(320px,calc(100vw - 24px));max-height:70dvh;overflow:auto;padding:12px;border:1px solid #aa8b54;border-radius:8px;background:#101b27f5;color:#e5ddc9;box-shadow:0 8px 28px #0009}.loot-roll-window h2{font-size:1rem;margin:0 0 8px}.loot-roll-window h2 span{font:.75rem system-ui;color:#c9b78e}.loot-choice-card{padding:10px 0;border-top:1px solid #ffffff20}.loot-choice-card header{display:flex;justify-content:space-between;gap:10px;font-size:.8125rem}.loot-choice-card time{color:#ebc681;font-variant-numeric:tabular-nums}.loot-choice-card p,.loot-roll-window>small{font-size:.6875rem;color:#afc0c9;margin:5px 0 8px}.loot-choice-actions{display:flex;gap:6px}.loot-choice-actions button{flex:1;min-height:44px;min-width:0;border:1px solid #817453;border-radius:4px;background:#25323c;color:#f0e0ba}.loot-choice-actions button:disabled{opacity:.4}.loot-choice-card [role=alert]{color:#ffb3a6}@media(max-width:620px){.loot-roll-window{bottom:82px;right:12px;max-height:48dvh;padding:10px 12px}.loot-roll-window h2{line-height:1.25rem;margin:0 0 6px}.loot-roll-window h2 span{line-height:1rem}.loot-choice-card{padding:8px 0}.loot-choice-card header{line-height:1rem}.loot-choice-card p{line-height:1rem;margin:4px 0 6px}.loot-roll-window>small{display:block;line-height:.9375rem;margin:0}.loot-choice-actions button{min-height:44px}}

.loot-choice-card header>.gear-icon{flex:none;width:44px;height:44px}.loot-choice-card header>strong{flex:1;min-width:0;overflow-wrap:anywhere}.raid-set-choice{border-top-color:#579d80}.raid-set-choice header>strong{color:#a4edcb}

/* /portrait-customization.css */
.portrait-customization{width:min(640px,calc(100vw - 24px));max-height:calc(100dvh - 32px);padding:16px;display:flex;flex-direction:column;overflow:hidden;box-sizing:border-box}.portrait-customization>header{display:flex;align-items:center;justify-content:space-between;gap:12px}.portrait-customization h2{margin:0;font-size:1.375rem}.portrait-customization>p{font-size:.875rem}.portrait-choice-body{overflow:auto;min-height:0;overscroll-behavior:contain}.portrait-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:4px}.portrait-choice{min-width:0;min-height:100px;display:flex;flex-direction:column;align-items:center;gap:6px;padding:8px 2px;border:1px solid #72654e;background:#111b27;color:#eadfc7}.portrait-choice img{object-fit:cover;max-width:100%;height:auto;aspect-ratio:1}.portrait-choice[aria-pressed=true]{border-color:#edcf87;background:#b9903e26}.sidebar-character-portrait[data-customize-portraits]{padding:0;cursor:pointer;background:transparent;border:1px solid #b9903e;min-width:44px;min-height:44px}
.rank-portrait:has(img[src^="/assets/portraits-native/"]),.party-status-portrait:has(img[src^="/assets/portraits-native/"]),.sidebar-character-portrait:has(img[src^="/assets/portraits-native/"]){border-radius:6px}
.outfit-portrait>img[src^="/assets/portraits-native/"]{object-fit:contain;background:#101722}
.tavern-portrait[src^="/assets/portraits-native/"]{object-fit:contain;background:#101722;border-radius:6px}

.portrait-person>summary{cursor:pointer;padding:12px 4px;color:#edcf87;font-weight:700;border-bottom:1px solid #72654e66}.portrait-person[open]>summary{margin-bottom:8px}.portrait-person>summary:focus-visible{outline:2px solid #edcf87;outline-offset:-2px}

/* Your company: looks and portraits (Pat, 18 Oct 2026). The roster down the side, a live stage and the selected member's looks and portraits. */
.company-looks{width:min(1040px,calc(100vw - 24px));height:min(760px,calc(100dvh - 32px));max-height:none;padding:18px 20px;gap:12px}
.company-looks>header{padding-bottom:10px;border-bottom:1px solid #b7935140}
.company-looks>header .eyebrow{margin:0 0 2px;letter-spacing:.14em;font-size:.6875rem;color:#c9a96a}
.company-looks h2{font-size:1.5rem}
.company-body{display:grid;grid-template-columns:220px minmax(0,1fr);gap:16px;min-height:0;flex:1}
.company-roster{display:flex;flex-direction:column;gap:6px;overflow:auto;min-height:0;padding-right:4px;overscroll-behavior:contain}
.company-member{position:relative;display:grid;grid-template-columns:48px minmax(0,1fr);align-items:center;gap:10px;min-height:60px;padding:6px 10px 6px 6px;text-align:left;border:1px solid #b7935133;border-radius:10px;background:linear-gradient(90deg,#16243599,#0e182499);color:inherit;cursor:pointer}
.company-member img{width:48px;height:48px;border-radius:8px;object-fit:cover;border:1px solid #b7935166;background:#101722}
.company-member b{display:block;color:#f1dfb4;font-size:.9375rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.company-member small{display:block;color:#a9b6bf;font-size:.75rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.company-member:hover{border-color:#b7935199}
.company-member[aria-pressed=true]{border-color:#e8c46a;background:linear-gradient(90deg,#3a2c1366,#16243599);box-shadow:inset 3px 0 0 #e8c46a}
.company-member:focus-visible{outline:2px solid #edcf87;outline-offset:2px}
.company-member-skin{position:absolute;top:5px;left:43px;width:12px;height:12px;border-radius:50%;background:radial-gradient(circle at 35% 35%,#ffd98a,#e0662a);box-shadow:0 0 6px #ff9a3d}
.company-main{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:18px;min-height:0;overflow:auto;overscroll-behavior:contain;align-content:start}
.company-stage-card.skin-preview-dialog{width:auto;max-height:none;overflow:visible;position:sticky;top:0;align-self:start}
.company-stage.skin-preview-stage{height:440px;margin:0 0 8px;border-color:#b7935166;background:radial-gradient(ellipse at 50% 80%,#3a3022 0,#1d2a3a 38%,#0b131d 75%)}
.company-stage-card .skin-preview-clips{margin:0}
.company-stage-card .skin-preview-clips button{min-width:0;flex:1 1 30%}
.company-detail{display:flex;flex-direction:column;gap:14px;min-width:0}
.company-heading .eyebrow{margin:0;letter-spacing:.14em;font-size:.6875rem;color:#c9a96a}
.company-heading h3{margin:2px 0 4px;font-size:1.625rem;color:#ffe5ac}
.company-who{margin:0;color:#c5cfd5}
.company-try{display:flex;flex-wrap:wrap;gap:8px;padding:12px;border:1px solid #e8c46a66;border-radius:10px;background:#98713422}
.company-try button{flex:1 1 180px;min-height:44px}
.company-try .small-note{flex-basis:100%;margin:0}
.company-rename{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px}
.company-rename button{min-height:44px}
.company-rename small{color:#a9b6bf}
.company-section h4{margin:0 0 8px;font-size:.8125rem;letter-spacing:.12em;text-transform:uppercase;color:#c9a96a}
.company-section .small-note{margin:8px 0 0}
.look-tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:10px}
.look-tile{display:flex;flex-direction:column;align-items:stretch;gap:2px;min-height:44px;padding:0 0 10px;border:1px solid #b7935155;border-radius:10px;background:linear-gradient(#17263a,#0d1622);color:inherit;text-align:center;overflow:hidden;cursor:pointer}
.look-tile-art{display:flex;align-items:flex-end;justify-content:center;height:150px;margin-bottom:6px;background:radial-gradient(ellipse at 50% 85%,#2b3d52,#0d1622 70%)}
.look-tile-art img{height:94%;max-width:100%;object-fit:contain}
.look-tile b{padding:0 8px;color:#f1dfb4;font-size:.9375rem}
.look-tile small{padding:0 8px;color:#a9b6bf;font-size:.75rem}
.look-tile:hover{border-color:#b79351aa}
.look-tile.is-worn{border-color:#e8c46a;box-shadow:0 0 0 1px #e8c46a,0 0 16px #e8c46a40}
.look-tile.is-worn small{color:#ffd98a;font-weight:700}
.look-tile.is-trying{border-color:#8fc4ff;box-shadow:0 0 0 1px #8fc4ff,0 0 16px #8fc4ff40}
.look-tile.is-locked .look-tile-art img{filter:saturate(.8)}
.look-tile:focus-visible{outline:2px solid #edcf87;outline-offset:2px}
.company-portraits{grid-template-columns:repeat(auto-fill,minmax(104px,1fr));padding:0}
.company-portraits .portrait-choice{position:relative}
.company-portraits .portrait-choice em{font-style:normal;font-size:.6875rem;color:#ffb36b}
.company-portraits .portrait-choice.is-skin img{box-shadow:0 0 0 1px #e0662a,0 0 10px #e0662a66}
.company-portraits .portrait-choice.is-locked{opacity:1;cursor:not-allowed}
.company-portraits .portrait-choice.is-locked img{filter:grayscale(.85) brightness(.6)}
.company-portraits .portrait-choice.is-locked em{color:#a9b6bf}
/* New-skin dot on the portrait button. The daily tab dot (public/daily-tabs.js) is the same dot, so the game has one "something new" mark. */
.sidebar-character-portrait{position:relative}
.portrait-new-dot,.daily-dot{position:absolute;top:-3px;right:-3px;width:12px;height:12px;border-radius:50%;background:#43d17a;border:2px solid #0b131d;box-shadow:0 0 8px #43d17a99;pointer-events:none}
:is(.nav-button,.uk-tab,.quest-tabs>button,[data-guild-tab],[data-more-navigation]>summary):has(>.daily-dot){position:relative}
.daily-dot{top:4px;right:4px}
[data-more-navigation]>summary:has(>.daily-dot)>.nav-more-new{display:none}
@media (max-width:860px){
 .company-looks{padding:14px;height:calc(100dvh - 16px);width:calc(100vw - 16px)}
 .company-body{grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);gap:10px}
 .company-roster{flex-direction:row;overflow-x:auto;overflow-y:hidden;padding:0 0 4px;scroll-snap-type:x proximity}
 .company-member{flex:0 0 auto;grid-template-columns:40px auto;min-height:52px;max-width:200px;scroll-snap-align:start}
 .company-member img{width:40px;height:40px}
 .company-member-skin{left:37px}
 .company-main{grid-template-columns:minmax(0,1fr);gap:12px}
 .company-stage-card.skin-preview-dialog{position:static}
 .company-stage.skin-preview-stage{height:250px}
 .look-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}
 .look-tile-art{height:130px}
 .company-portraits{grid-template-columns:repeat(3,minmax(0,1fr))}
}
.paper-doll figure .hero-looks-button{display:block;margin:10px auto 0;min-height:44px;position:relative;z-index:2}
/* Hero gender (IRP_HERO_LOOKS_VERSION): a companion's Male/Female tabs, as the creators draw them. */.company-gender .uk-tabs{display:flex;gap:6px}.company-gender .uk-tab{flex:1}

/* /portrait-frames.css */
/* Portrait frames (public/portrait-frames-data.js, lib/portrait-frames.js; switch IRP_PORTRAIT_FRAMES_VERSION). A portrait holder with data-pf="<frame id>"
   draws the painted ring (ChatGPT art item 129i-m, public/assets/ui/frames/) over the portrait. Two ways, by spot:
   - Outward: the portrait keeps its size and turns round, and the ring reaches past its edge by --pf-out (the fight screen's party portraits, the Party
     page's member faces, leaderboard rows), like the fight screen's own gold ring (public/fight-hud.css).
   - Inward: the ring fills the holder and the portrait shrinks by --pf-scale to sit in the opening (the phone's top bar, the Menu tile, the side menu
     button, the shop and Cosmetics cards), where a ring reaching out would run over the things beside it.
   Each painting's clear middle is a different share of it (public/portrait-frames-data.js inset), so each frame has its own numbers:
   --pf-out = -inset, --pf-scale = 1 / (1 + 2 x inset). No :has() (phone speed, 0.75 patch). */
[data-pf]{--pf-out:-10.3%;--pf-scale:.829}
[data-pf="sunrise"]{--pf-art:url(/assets/ui/frames/sunrise.webp);--pf-out:-11.8%;--pf-scale:.809}
[data-pf="starlit"]{--pf-art:url(/assets/ui/frames/starlit.webp);--pf-out:-10.3%;--pf-scale:.829}
[data-pf="guild-ribbon"]{--pf-art:url(/assets/ui/frames/guild-ribbon.webp);--pf-out:-9.7%;--pf-scale:.838}
[data-pf="laurel"]{--pf-art:url(/assets/ui/frames/laurel.webp);--pf-out:-10.3%;--pf-scale:.829}
[data-pf="hallows-eve"]{--pf-art:url(/assets/ui/frames/hallows-eve.webp);--pf-out:-9.7%;--pf-scale:.838}

/* The ring itself, shared by every spot. */
.uh-face[data-pf]::after,.uk-row-media[data-pf]::after,.party-card[data-pf] .party-status-portrait::after,
.pf-in[data-pf]::after,.sidebar-character-portrait[data-pf]::after,.pl-portrait[data-pf]::after,.pl-tile-art .outfit-portrait[data-pf]::after{
 content:"";position:absolute;background:var(--pf-art) center/100% no-repeat;pointer-events:none;z-index:2}

/* Outward. */
.uh-face[data-pf],.uk-row-media[data-pf]{position:relative;overflow:visible!important;border-color:transparent!important;background:none!important;border-radius:50%}
.uh-face[data-pf]>*,.uk-row-media[data-pf]>img{border-radius:50%!important;overflow:hidden}
.uh-face[data-pf] .tavern-portrait{border:0!important}
.uh-face[data-pf]::after,.uk-row-media[data-pf]::after{inset:var(--pf-out)}
/* The fight screen's party portraits (and the plain party cards when the painted fight screen is off): the worn frame takes the place of the gold ring.
   The red ring of the hero the enemy is hitting (data-fh-aggro, public/fight-hud.js) always wins, so the fight still reads at a glance. */
.party-card[data-pf] .party-status-portrait{position:relative;overflow:visible!important}
.party-card[data-pf] .party-status-portrait>.outfit-portrait{border-radius:50%;overflow:hidden}
.party-card[data-pf] .party-status-portrait::after{inset:var(--pf-out)}
html.fh-on.cx-on.cx-fight #partyCards .party-card[data-pf]:not([data-fh-aggro]) .party-status-portrait::before{background-image:var(--pf-art);inset:var(--pf-out);filter:none}
html.fh-on.cx-on.cx-fight #partyCards .party-card[data-pf] .party-status-portrait::after{display:none}

/* Inward. */
.pf-in[data-pf],.sidebar-character-portrait[data-pf],.pl-portrait[data-pf],.pl-tile-art .outfit-portrait[data-pf]{position:relative;border-color:transparent!important;background:none!important;overflow:visible!important}
.pf-in[data-pf]::after,.sidebar-character-portrait[data-pf]::after,.pl-portrait[data-pf]::after,.pl-tile-art .outfit-portrait[data-pf]::after{inset:0}
.pf-in[data-pf]>.outfit-portrait,.pf-in[data-pf]>img,.sidebar-character-portrait[data-pf]>.outfit-portrait,.pl-portrait[data-pf]>img,.pl-tile-art .outfit-portrait[data-pf]>img{
 transform:scale(var(--pf-scale));border-radius:50%!important;overflow:hidden}
.sidebar-character-portrait[data-pf]>.outfit-portrait{width:100%;height:100%}
.pl-portrait[data-pf] .pl-lv{z-index:3}

/* The frame cards (Dawn Shop, Hero > Cosmetics, guild Store): the player's own portrait in the ring. */
.pf-in{display:grid;place-items:center;width:96px;height:96px;flex:none;margin:0 auto}
.pf-in>.outfit-portrait,.pf-in>img{display:block;width:100%;height:100%;object-fit:cover}
.pf-in>.outfit-portrait img{display:block;width:100%;height:100%;object-fit:cover}
.pf-in:not([data-pf])>.outfit-portrait,.pf-in:not([data-pf])>img{border-radius:50%;overflow:hidden;box-shadow:0 0 0 2px #b8985b66}
.pf-card.is-locked .pf-in{filter:saturate(.55) brightness(.8)}
.pf-card.is-worn{box-shadow:0 0 0 2px var(--uk-gold-text,#e3c27a) inset}
.pf-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:12px}
@media (max-width:520px){.pf-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.pf-in{width:76px;height:76px}}
.pf-art .pf-in{width:150px;height:150px}
.pf-stage .pf-in{width:120px;height:120px}
.pf-open{all:unset;display:block;width:100%;cursor:pointer;border-radius:inherit}
.pf-open:focus-visible{outline:2px solid var(--uk-gold-text,#e3c27a);outline-offset:-2px}
.pf-open:hover .pf-in{filter:none}
@media (max-width:520px){.pf-art .pf-in{width:104px;height:104px}.pf-stage .pf-in{width:96px;height:96px}}

/* /companion-roster.css */
.companion-slot-strip{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.companion-slot-strip span{border:1px solid #786849;border-radius:5px;padding:8px 10px}.companion-slot-strip .unlocked{background:#b9903e1f;color:#edcf87}.companion-slot-strip .locked{color:#a7a6a1}.companion-roster .tavern-recruit{display:flex;flex-direction:column;gap:10px;min-width:0}.companion-roster .tavern-recruit p{margin:0}.companion-roster form{display:flex;align-items:end;gap:8px;flex-wrap:wrap}.companion-roster form label{flex:1;min-width:120px}.companion-roster select{display:block;width:100%;min-height:44px}.companion-roster .az-actions{margin-top:auto}.companion-roster button{min-height:44px;white-space:normal}.companion-roster details>summary{min-height:44px;cursor:pointer}

.companion-experience progress{display:block;width:100%;height:6px;accent-color:#c2a463;margin-top:5px}.companion-experience p{font-variant-numeric:tabular-nums}
.companion-company{background:radial-gradient(ellipse at 80% 0,#bc813f20,transparent 65%),linear-gradient(145deg,#252016,#14171a);border-color:#ae8b4c66}
.companion-company-intro{display:flex;align-items:start;justify-content:space-between;gap:22px}.companion-company-intro>div{max-width:620px}.companion-company h2{margin:6px 0 10px}.companion-purse{display:grid;gap:5px;text-align:right;flex:none;color:#c8b58e;font-variant-numeric:tabular-nums}.companion-purse strong{font:1.375rem Georgia;color:#edcf87}.companion-purse span{font:.75rem system-ui}
.companion-seat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:25px 0 16px}.companion-seat{position:relative;display:flex;flex-direction:column;align-items:center;text-align:center;gap:8px;padding:18px 12px;min-width:0;border:1px solid #bb9b5e50;background:linear-gradient(160deg,#d5ad5914,#070b0e80);border-radius:8px}.companion-seat:before{content:'';position:absolute;inset:5px;border:1px solid #bfaa741c;border-radius:5px;pointer-events:none}.companion-seat .tavern-portrait,.companion-seat-emblem{width:72px;height:72px;border-radius:50%;object-fit:cover;border:2px solid #ba9c60;box-shadow:0 0 0 5px #ba9c6012}.companion-seat-emblem{display:grid;place-items:center;font:40px Georgia;color:#c6ab73;background:#ba9c600a}.companion-seat.locked .companion-seat-emblem{border-color:#8d795354;color:#928366}.companion-seat.player-seat{border-color:#b6924caa;background:linear-gradient(160deg,#d5ad5924,#171a17)}.companion-seat .eyebrow{font-size:.625rem;letter-spacing:.1em;margin:6px 0 0}.companion-seat h3{font:1.0625rem/1.3 Georgia;color:#e3cfaa;margin:0;overflow-wrap:anywhere}.companion-seat span{font:.75rem/1.4 system-ui;color:#bfb6a4}.companion-seat button{width:100%;margin-top:auto;padding:8px}.companion-seat-help{line-height:1.6}.companion-first-seat{border-top:1px solid #b6924c40;padding-top:16px;color:#cabea6}.companion-first-seat strong{color:#edd49f}.companion-first-seat p{margin:7px 0 0;font:.8125rem/1.6 system-ui}.companion-first-seat b{color:#eed39b}
.companion-party-step{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:20px 0}.companion-recruit-heading{margin:28px 0 16px}.companion-recruit-heading h2{margin:0 0 8px}.companion-recruit-heading p{font:.8125rem/1.6 system-ui;color:#aeb7bd;margin:0}.companion-roster .tavern-recruits{gap:18px}.companion-roster .tavern-recruit{padding:20px;border:1px solid #b69b673a;border-radius:8px;background:linear-gradient(155deg,#b9924010,transparent 50%),#11171be8;box-shadow:0 8px 24px #0002;gap:12px}.companion-roster .tavern-recruit.is-hired{border-color:#91b49b66;background:linear-gradient(155deg,#659c7718,transparent 50%),#11171be8}.companion-roster .tavern-recruit .tavern-portrait{width:68px;height:76px;min-width:68px;border-radius:8px}.companion-roster .tavern-recruit header{gap:12px}.companion-roster .tavern-recruit h2{font-size:1.1875rem}.companion-roster .companion-readiness{font:.75rem system-ui;color:#b6c0be}.companion-roster .companion-bring{width:100%;max-width:none;margin:0;grid-column:auto;grid-row:auto}.companion-roster .tavern-recruit form{gap:7px}.companion-roster .tavern-recruit form button{padding:8px 11px}.companion-role-help{line-height:1.5;min-height:36px}.companion-workshop{border-top:1px solid #b69b6725;padding-top:14px;display:grid;gap:10px;margin-top:auto}.companion-workshop button{width:100%}.companion-about{margin-top:24px}.companion-about summary{color:#e1c998}
.companion-update-dialog{width:min(620px,calc(100vw - 24px));padding:26px;max-height:calc(100dvh - 32px);overflow:auto}.companion-update-dialog h2{font:1.625rem/1.3 Georgia;margin:9px 0 18px}.companion-update-dialog p,.companion-update-dialog li{line-height:1.6}.companion-update-dialog ul{padding-left:22px}.companion-update-dialog li{margin:10px 0}.companion-update-dialog strong{color:#edcf87}.companion-update-dialog .full{margin-top:12px}
@media(max-width:760px){.companion-seat-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.companion-company-intro{gap:12px}.companion-purse strong{font-size:1.125rem}.companion-company-intro p{font-size:.8125rem}.companion-roster .tavern-recruits{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.companion-roster .tavern-recruit{padding:15px}.companion-roster .tavern-recruit header{gap:9px}.companion-roster .tavern-recruit .tavern-portrait{width:55px;height:64px;min-width:55px}.companion-roster .tavern-recruit h2{font-size:1.0625rem}}
@media(max-width:540px){.companion-company-intro{display:block}.companion-purse{display:flex;align-items:center;gap:10px;text-align:left;margin-top:18px!important}.companion-roster .tavern-recruits{grid-template-columns:1fr}.companion-roster .tavern-recruit{padding:18px}.companion-roster .tavern-recruit .tavern-portrait{width:68px;height:76px;min-width:68px}.companion-seat{padding:14px 9px}.companion-seat h3{font-size:1rem}.companion-seat .tavern-portrait,.companion-seat-emblem{width:60px;height:60px}.companion-seat .eyebrow{font-size:.5625rem}.companion-party-step{display:block}.companion-party-step button{width:100%;margin-top:10px}.companion-update-dialog{padding:20px}.companion-update-dialog h2{font-size:1.4375rem}}
@media(max-width:360px){.companion-seat-grid{grid-template-columns:minmax(0,1fr)}.companion-seat h3{overflow-wrap:break-word}}
/* Recruit cards before the first companion seat (game QA F6): the role, skill and upgrade controls sit in one closed disclosure. */
.tavern-recruit .companion-manage{margin-top:10px}.tavern-recruit .companion-manage>summary{min-height:44px;padding:11px 0;box-sizing:border-box;cursor:pointer;color:var(--gold,#e2c27d)}
/* Large browser text: the specialization picker keeps room for its longest name (Shieldguard, Marksmanship) and the Apply button moves below it instead of squeezing it. */
.companion-roster .tavern-recruit form>label{min-width:min(100%,9rem)}

/* Specialization names ("Warbanner · Tank", "Frost · Ranged DPS") need the whole card width; the Apply button wraps under the select. */
.companion-roster form[data-realm-form="companion-spec"]>label{min-width:100%}
/* Alignment pass (21 Oct): the role form lays out like the specialization form below it (select on its own line, Apply under it), so the two read as one pair. */
.companion-roster form[data-realm-form="companion-role"]>label{min-width:100%}
/* Companions page icon (17 Oct, design/art24-2026-10-17): the painted party of three, one picture per file rather than the Party cell of the UI-kit sheet. */
.uk-art.uk-art-companions{background:url('/art/interface/icon-companions-v2.webp') center/contain no-repeat}
/* Bond unlocks (IRP_COMPANION_BOND_UNLOCKS_VERSION): what each bond level unlocks, earned rows in gold. */
.companion-bond-unlocks{margin-top:4px;font-size:.86rem}.companion-bond-unlocks summary{cursor:pointer;color:var(--uk-gold-text,#ffe1aa);min-height:28px;line-height:28px}
.companion-bond-unlocks ul{list-style:none;margin:4px 0;padding:0;display:grid;gap:3px}.companion-bond-unlocks li{color:#a99f8c;overflow-wrap:anywhere}.companion-bond-unlocks li.is-earned{color:var(--uk-gold-text,#ffe1aa)}.companion-bond-unlocks li.is-earned strong::before{content:'✓ ';color:var(--uk-gold,#d6b575)}
.companion-bond-today{white-space:nowrap}
/* Bond crests (art drop 18 Oct 2026, item 44): painted crest beside the bond level; a small one on each unlock row. */
.companion-bond-head{display:flex;align-items:center;gap:8px}.companion-bond-head>span{min-width:0}
.companion-bond-crest{width:40px;height:40px;flex:0 0 40px;object-fit:contain;filter:drop-shadow(0 1px 2px rgba(0,0,0,.6))}
.companion-bond-crest.is-row{width:24px;height:24px;flex:none;vertical-align:middle;margin-right:4px;filter:grayscale(.85) brightness(.75)}
.companion-bond-unlocks li.is-earned .companion-bond-crest.is-row{filter:none}
/* Companion story (IRP_COMPANION_STORY_VERSION): his title beside the name, the oath choice and the story pages. */
.companion-title{display:inline-block;margin-left:4px;font-size:.62em;font-style:italic;color:var(--uk-gold-text,#ffe1aa);vertical-align:middle}
.companion-story .companion-oaths{margin:6px 0 2px}.companion-story-pages{margin-top:4px;font-size:.86rem}.companion-story-pages summary{cursor:pointer;color:var(--uk-gold-text,#ffe1aa);min-height:44px;line-height:44px}.companion-story-pages h3{margin:8px 0 2px;font-size:.95rem;color:var(--uk-gold-text,#ffe1aa)}.companion-story-pages p{margin:0 0 4px;overflow-wrap:anywhere}
/* Companion readiness (IRP_COMPANION_READINESS_VERSION): roster beside one selected companion card. */
.companion-roster .cr-layout{display:grid;grid-template-columns:minmax(260px,340px) minmax(0,1fr);gap:18px;align-items:start}
.companion-roster .cr-roster{margin:0}.companion-roster .cr-roster .small-note{margin:10px 0 0}
.companion-roster .cr-rows{display:grid;gap:6px}
.companion-roster .cr-row{display:grid;grid-template-columns:44px minmax(0,1fr);grid-template-areas:"art text" "art mark";align-items:center;column-gap:10px;row-gap:3px;width:100%;min-height:56px;padding:6px 10px;border:1px solid #3d382e;border-left:3px solid var(--role-tone,#b69b61);border-radius:8px;background:var(--uk-navy-1,#111a24);color:inherit;text-align:left;cursor:pointer}
.companion-roster .cr-row:hover{border-color:#b69b61}
.companion-roster .cr-row.is-selected{border-color:var(--uk-gold,#c9a45c);background:var(--uk-current-bg,#1d2633)}
.companion-roster .cr-row:focus-visible{outline:2px solid var(--uk-focus,#f2d38a);outline-offset:2px}
.companion-roster .cr-row .tavern-portrait{grid-area:art;width:44px;height:44px;border-radius:6px;object-fit:cover}
.companion-roster .cr-row-text{grid-area:text;min-width:0}.companion-roster .cr-row-text strong{display:block;overflow-wrap:anywhere}.companion-roster .cr-row-text small{display:block;color:#b9c5d2;font-size:.78rem;line-height:1.3}
.companion-roster .cr-slots{white-space:nowrap}.companion-roster .cr-mark{grid-area:mark;justify-self:start;padding-left:9px}
.companion-roster .cr-mark-bad{border-color:#c0614f;color:#ffacac}.companion-roster .cr-mark-ready{border-color:var(--uk-done-dim,#4d7a5b);color:var(--uk-done,#9cddac)}.companion-roster .cr-mark-busy{color:#d9cfb8}
.companion-roster .tavern-recruits.cr-detail{grid-template-columns:minmax(0,1fr)}
.companion-roster .cr-readiness{margin:12px 0;padding:10px 12px;border:1px solid #3d382e;border-radius:8px;background:#101416}
.companion-roster .cr-facts{display:grid;gap:6px;margin:0}
.companion-roster .cr-fact{display:grid;grid-template-columns:minmax(90px,30%) minmax(0,1fr);gap:10px}.companion-roster .cr-fact dt{color:#e8c77d;font-weight:600}.companion-roster .cr-fact dd{margin:0;overflow-wrap:anywhere}.companion-roster .cr-fact dd small{display:block;color:#b9c5d2}
.companion-roster .cr-activity-head{margin:12px 0 4px;font-size:.95rem}.companion-roster .cr-activity{margin:4px 0 0;padding-left:18px;font-size:.88rem}
@media(max-width:899px){.companion-roster .cr-layout{grid-template-columns:minmax(0,1fr)}}
@media(max-width:480px){.companion-roster .cr-fact{grid-template-columns:minmax(0,1fr);gap:0}}
@media(max-width:600px){.companion-roster .cr-row{grid-template-columns:36px minmax(0,1fr) auto;grid-template-areas:"art text mark";min-height:48px;padding:5px 8px}.companion-roster .cr-row .tavern-portrait{width:36px;height:36px}.companion-roster .cr-mark{justify-self:end;font-size:.7rem}.companion-roster .cr-rows{gap:4px}}
/* Companion Expedition (IRP_COMPANION_EXPEDITION_VERSION; public/companion-roster-ui.js expedition()). UI kit v1 frame, chips, cards and progress. */
.cxp-panel{display:grid;gap:12px;margin-block:14px}
.cxp-panel .uk-heading{margin-bottom:0;padding-bottom:6px}
.cx-lead{margin:0;color:var(--uk-ivory,#efe6d2);line-height:1.45}
.cx-lead strong{color:var(--uk-gold-text,#f2d38a)}
.cx-chip-tile{display:inline-grid;place-items:center;width:20px;height:20px}
.uk-chip .cx-chip-tile .uk-art{width:100%;height:100%}
.cxp-panel .cx-slots,.cxp-panel .cx-members{grid-template-columns:repeat(4,minmax(0,1fr))}
.cx-slot .uk-card-head>div,.cx-member .uk-card-head>div{min-width:0}
.cx-slot .uk-card-title,.cx-member .uk-card-title{overflow-wrap:anywhere}
.cx-slot,.cx-member{border-left:3px solid var(--role-tone,#b69b61)}
.cx-slot .uk-card-head,.cx-member .uk-card-head{flex-direction:row;align-items:center;gap:10px}
.cx-slot .tavern-portrait,.cx-member .tavern-portrait{width:52px;height:58px;min-width:52px;border-radius:7px}
.cx-slot .tavern-role,.cx-member .tavern-role{margin:0;font-size:.72rem;letter-spacing:.08em;text-transform:uppercase;color:var(--role-tone,#d4a58b)}
.cx-slot .uk-card-note,.cx-member .uk-card-note{margin:0}
.cx-slot:not(.is-filled){border-style:dashed;opacity:.85}
.cx-empty{flex:0 0 52px;width:52px;height:58px;font:600 1.5rem/1 var(--uk-serif,Georgia);color:var(--uk-gold-dim,#8c7346)}
.cx-pool{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,190px),1fr));gap:8px}
.cx-tile{display:grid;grid-template-columns:44px minmax(0,1fr);grid-template-areas:"art text" "art state";align-items:center;column-gap:10px;row-gap:2px;min-height:56px;padding:6px 10px;border:1px solid #3d382e;border-left:3px solid var(--role-tone,#b69b61);border-radius:8px;background:var(--uk-navy-0,#0d1522);color:inherit;text-align:left;cursor:pointer}
.cx-tile:hover:not(:disabled){border-color:#b69b61}
.cx-tile:focus-visible{outline:2px solid var(--uk-focus,#f2d38a);outline-offset:2px}
.cx-tile.is-chosen{border-color:var(--uk-gold,#c9a45c);background:var(--uk-current-bg,#1d2633);box-shadow:0 0 0 1px #f0ce8340}
.cx-tile:disabled{opacity:.55;cursor:not-allowed}
.cx-tile .tavern-portrait{grid-area:art;width:44px;height:44px;min-width:44px;border-radius:6px}
.cx-tile-text{grid-area:text;display:grid;min-width:0}
.cx-tile-text strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--uk-ivory,#efe6d2)}
.cx-tile-text small{color:var(--uk-ivory-dim,#b9b0a0)}
.cx-tile-state{grid-area:state;justify-self:start;min-height:20px;font-size:.7rem}
.cx-tile.is-chosen .cx-tile-state{border-color:var(--uk-gold,#c9a45c)}
.cx-zone{margin:0}
.cx-zone strong{color:var(--uk-gold-text,#f2d38a)}
.cx-stats{margin:0}
.cx-actions>*{flex:0 1 240px}
.cx-send-note,.cx-last,.cx-pick-help{margin:0}
@media(max-width:900px){.cxp-panel .cx-slots,.cxp-panel .cx-members{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){.cx-slot .uk-card-head,.cx-member .uk-card-head{flex-direction:column;align-items:flex-start;gap:6px}.cx-slot .tavern-role,.cx-member .tavern-role{letter-spacing:.04em}.cx-pool{grid-template-columns:repeat(2,minmax(0,1fr))}.cx-tile{grid-template-columns:36px minmax(0,1fr);column-gap:8px;padding:6px 8px}.cx-tile .tavern-portrait{width:36px;height:36px;min-width:36px}.cx-tile-text small{font-size:.75rem}.cx-actions>*{flex:1 1 100%}}
/* Tabs (21 Oct): Party, Spec, Bond and Expedition. Each block carries data-ctab with the tabs it belongs to; only the current tab's blocks show. */
.companion-roster .cr-tabs{margin:12px 0 14px}
.companion-roster .cr-tabs .uk-ico{width:26px;height:26px;margin:-2px 0}
.companion-roster .cr-tab-note{min-height:20px;padding:0 8px;font-size:.7rem}
.companion-roster[data-companion-view="party"] [data-ctab]:not([data-ctab~="party"]),
.companion-roster[data-companion-view="stats"] [data-ctab]:not([data-ctab~="stats"]),
.companion-roster[data-companion-view="spec"] [data-ctab]:not([data-ctab~="spec"]),
.companion-roster[data-companion-view="bond"] [data-ctab]:not([data-ctab~="bond"]),
.companion-roster[data-companion-view="expedition"] [data-ctab]:not([data-ctab~="expedition"]){display:none!important}
.companion-roster .cr-activity-box{margin-top:12px}
/* Stats (30 Oct): the hero screen's Attack, Defense and Attributes rows for the chosen companion. */
.companion-roster .cr-stats{margin-top:12px;padding:4px 14px 12px;border:1px solid #b69a6040;border-radius:var(--uk-radius,4px);background:#0c172380}
.companion-roster .cr-stats .uk-rows-group:first-child{margin-top:8px}
/* Send everyone to upgrade (23 Oct): a strip at the top of Party. Workshop tile, title and one status line, gold button on the right; on phones the button takes the full width. */
.companion-roster .cr-upgrade-all{display:flex;align-items:center;gap:14px;margin:0 0 14px;padding:14px 18px}
.companion-roster .cr-upgrade-all .uk-icon-tile{width:48px;height:48px;flex:none}.companion-roster .cr-upgrade-all .uk-icon-tile .uk-ico{width:40px;height:40px}
.companion-roster .cr-upgrade-all-text{flex:1 1 0;min-width:0}
.companion-roster .cr-upgrade-all h2{margin:0;font:1.125rem/1.25 var(--uk-serif,Georgia);color:var(--uk-gold-text,#f2d38a)}
.companion-roster .cr-upgrade-all .small-note{margin:3px 0 0}
.companion-roster .cr-upgrade-all .uk-btn-primary{flex:none;min-height:48px;padding:0 24px;font-size:.9375rem}
@media(max-width:600px){.companion-roster .cr-upgrade-all{flex-wrap:wrap;gap:10px;padding:12px}.companion-roster .cr-upgrade-all .uk-btn-primary{flex:1 1 100%}}
/* Tabs keep each page short: on wide screens the roster rows sit on one line (portrait, name, mark) and the party seats are smaller. */
@media(min-width:900px){
 .companion-roster .cr-layout{grid-template-columns:minmax(300px,380px) minmax(0,1fr)}
 .companion-roster .cr-row{grid-template-columns:40px minmax(0,1fr) auto;grid-template-areas:"art text mark";min-height:50px;padding:5px 8px}
 .companion-roster .cr-row .tavern-portrait{width:40px;height:40px}
 .companion-roster .cr-mark{justify-self:end;font-size:.7rem}
 .companion-roster .cr-rows{gap:5px}
 .companion-roster .companion-seat-grid{margin:14px 0 10px;gap:12px}
 .companion-roster .companion-seat{padding:12px 10px;gap:5px}
 .companion-roster .companion-seat .tavern-portrait,.companion-roster .companion-seat-emblem{width:56px;height:56px}
 .companion-roster .companion-seat-emblem{font-size:30px}
 .companion-roster .companion-recruit-heading{margin:18px 0 12px}
}
/* Phones: each party seat is one short row (portrait beside its text), and on Spec and Bond the roster becomes one swipeable strip of portraits so the
   selected companion's card sits right under it. Party keeps the full roster with its marks. */
@media(max-width:600px){
 .companion-roster .companion-seat-grid{grid-template-columns:minmax(0,1fr);gap:6px;margin:12px 0 10px}
 .companion-roster .companion-seat{display:grid;grid-template-columns:44px minmax(0,1fr);column-gap:8px;row-gap:1px;align-items:center;text-align:left;padding:6px 10px}
 .companion-roster .companion-seat>:first-child{grid-row:1/span 3;align-self:center}
 .companion-roster .companion-seat .tavern-portrait,.companion-roster .companion-seat-emblem{width:44px;height:44px;box-shadow:none}
 .companion-roster .companion-seat-emblem{font-size:22px}
 .companion-roster .companion-seat .eyebrow{margin:0;font-size:.625rem;letter-spacing:.02em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .companion-roster .companion-seat h3{font-size:.82rem;line-height:1.2}
 .companion-roster .companion-seat span{font-size:.68rem;line-height:1.25}
 .companion-roster .companion-seat button{grid-column:1/-1;margin-top:4px}
 .companion-roster:is([data-companion-view="spec"],[data-companion-view="bond"]) .cr-rows{display:flex;gap:6px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;padding-bottom:4px}
 .companion-roster:is([data-companion-view="spec"],[data-companion-view="bond"]) .cr-row{flex:0 0 66px;display:flex;flex-direction:column;align-items:center;gap:3px;min-height:0;padding:6px 4px;border-left-width:1px;border-top:3px solid var(--role-tone,#b69b61);text-align:center;scroll-snap-align:start}
 .companion-roster:is([data-companion-view="spec"],[data-companion-view="bond"]) .cr-row .tavern-portrait{width:44px;height:44px}
 .companion-roster:is([data-companion-view="spec"],[data-companion-view="bond"]) .cr-row-text strong{font-size:.78rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:60px}
 .companion-roster:is([data-companion-view="spec"],[data-companion-view="bond"]) :is(.cr-row-text small,.cr-mark,.cr-roster>.small-note){display:none}
 .companion-roster:is([data-companion-view="spec"],[data-companion-view="bond"]) .cr-roster .uk-heading{margin-bottom:8px}
}

/* Build on the card (companion fork picks / power passives switches): painted skill icons, the picked upgrade and ranked class passives. UI kit v1 parts. */
.companion-abilities .cr-abilities,.companion-abilities .cr-passives{list-style:none;margin:10px 0 6px;padding:0;display:grid;gap:10px}
.companion-abilities .cr-passives{gap:8px}
.companion-abilities .cr-ability,.companion-abilities .cr-passive{display:grid;grid-template-columns:40px minmax(0,1fr);gap:10px;align-items:start}
.companion-abilities .cr-ability-head{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px}
.companion-abilities .cr-ability p,.companion-abilities .cr-passive p{margin:3px 0 0}
.companion-abilities .cr-fork{font-size:.72rem}
@media(max-width:600px){.companion-abilities .cr-ability,.companion-abilities .cr-passive{grid-template-columns:34px minmax(0,1fr);gap:8px}.companion-abilities .cr-skill-tile{width:34px;height:34px}.companion-abilities .cr-ability .cr-ability-head{flex-direction:column;align-items:flex-start;gap:4px}}
/* Menu audit 23 Oct: Role and Specialization as chip rows (companion-roster-ui.js chipPick). The chosen chip is lit gold; the radio inside is hidden. */
.companion-roster .cr-chipset{flex:1 1 100%;width:100%;margin:0 0 10px;padding:0;border:0;min-width:0}
.companion-roster .cr-chipset legend{padding:0;margin:0 0 6px;font-size:.875rem;color:var(--uk-gold-text,#f2d38a)}
.companion-roster .cr-chip-row{display:grid;grid-template-columns:repeat(var(--chips,3),minmax(0,1fr));gap:6px}
.companion-roster .cr-chip{position:relative;display:inline-flex;align-items:center;justify-content:center;min-width:0;min-height:44px;margin:0;padding:4px 10px;font-size:.8125rem;line-height:1.2;text-align:center;cursor:pointer}
.companion-roster .cr-chip:hover{border-color:var(--uk-gold-hi,#e0bd73)}
.companion-roster .cr-chip:has(input:checked){border-color:#e0bd73;background:linear-gradient(180deg,#c9a468,#8f6f3c);color:#1b1509}
.companion-roster .cr-chip:has(input:focus-visible){outline:2px solid #f2d38a;outline-offset:2px}
.companion-roster .cr-chipset:disabled .cr-chip{opacity:.55;cursor:not-allowed}
.companion-roster .cr-chip>input{position:absolute;inset:0;width:1px;height:1px;min-width:0;min-height:0;margin:0;padding:0;border:0;opacity:0;pointer-events:none}
/* Resist focus (lib/companion-resist-focus.js): Zone resist / Balanced beside the spec. */
.companion-roster .cr-focus{display:grid;gap:7px}
.companion-roster .cr-focus-head{margin:0;font:600 .8125rem/1.3 system-ui;color:#e1c998}
.companion-roster .cr-focus-tabs{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:0}
.companion-roster .cr-focus-tabs>.uk-tab{justify-content:center}
.companion-roster .cr-focus-help{margin:0;line-height:1.6}
.companion-roster .cr-focus-el{vertical-align:baseline;min-height:22px}
.companion-roster .cr-el-fire{border-color:#e0703a88;color:#f3a273}.companion-roster .cr-el-frost{border-color:#7fc6e888;color:#a9dcf2}
.companion-roster .cr-el-nature{border-color:#8fc46a88;color:#b7dd96}.companion-roster .cr-el-shadow{border-color:#a88be088;color:#c8b4f0}
/* Companion keystones (IRP_COMPANION_KEYSTONES_VERSION, public/companion-roster-ui.js keystones()): the Hero > Keystones slot cards, a size smaller. */
.companion-keystones{margin:8px 0 4px}.companion-ks-help{margin:0 0 6px}
.companion-ks-slots{gap:8px}.companion-ks-slots .ka-slot{min-height:72px;padding:8px 10px;gap:10px}
.companion-ks-slots .ka-slot-art,.companion-ks-slots .ka-slot-socket{flex:0 0 52px;width:52px;height:52px}
.companion-ks-slots .ka-slot-name{font-size:1rem}.companion-ks-slots .ka-slot-note{font-size:.8rem}
@media (max-width:560px){.companion-ks-slots{grid-template-columns:1fr}}
/* 0.75.0 UI QA: the rule text is shown whole (a two-line clamp cut it, and the title with the rest never opens on touch), at the size set here:
   realm-theme.css's .shell .exp-page p rule (1rem) was stronger than the two size rules for these cards. */
.shell .exp-page .companion-ks-slots .ka-slot-text>p.ka-slot-note{font-size:.8rem}.shell .exp-page .companion-ks-slots .ka-slot-text>p.ka-slot-eyebrow{font-size:.66rem}
.companion-ks-slots .ka-slot-eyebrow{font-size:.66rem}
/* Streamlined tactics (IRP_TACTICS_V2_VERSION): the companion's Role tactic, four tabs (Follow you and the role's three) in two rows. */
.companion-roster .cr-tactic-tabs{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:0}
.companion-roster .cr-tactic-tabs>.uk-tab{justify-content:flex-start;min-height:44px;text-align:left}
.companion-roster .cr-tactic-icon{display:inline-block;flex:0 0 26px;width:26px;height:26px}
.companion-roster .cr-tactic-icon .tactic-icon{width:26px;height:26px}
/* Brought home for an update (lib/companion-expedition-recall.js): the Expedition tab says it is empty until a new expedition sets out. */
.cx-patch-recall{border:1px solid var(--uk-gold-dim,#8a6a2e);border-radius:8px;background:rgba(242,211,138,.08);padding:10px 12px}
.cx-patch-recall p{margin:0;color:var(--uk-ivory,#efe6d2);line-height:1.45}
.cx-patch-recall strong{color:var(--uk-gold-text,#f2d38a)}
.companion-roster .cr-tab-note.cx-tab-empty{border-color:var(--uk-gold,#d7a948);color:var(--uk-gold-text,#f2d38a)}
/* Tab help lines (whole-game review, 17 Nov 2026): only the open tab's line shows. */
.companion-roster .cr-tab-help{display:none;margin:-6px 0 12px;color:#d9cfb8}
.companion-roster:is([data-companion-view="spec"]) .cr-tab-help[data-cr-help="spec"],.companion-roster[data-companion-view="bond"] .cr-tab-help[data-cr-help="bond"],.companion-roster[data-companion-view="expedition"] .cr-tab-help[data-cr-help="expedition"]{display:block!important}

/* /companion-upgrade.css */
.companion-upgrade-report{position:relative;width:min(760px,calc(100vw - 28px));max-height:calc(100dvh - 32px);overflow:auto;padding:30px;background:radial-gradient(ellipse at 85% 0,#aa79322a,transparent 55%),#12191d;border:1px solid #b49b68;border-radius:12px;box-shadow:0 25px 100px #000b;color:#e2ddcf}.companion-upgrade-report header{display:flex;align-items:center;gap:18px;padding-right:28px}.companion-upgrade-report header .tavern-portrait{width:80px;height:88px;object-fit:cover;border:1px solid #bb9d61;border-radius:9px;box-shadow:0 0 0 5px #bba06612}.companion-upgrade-report .eyebrow{font-size:.625rem;letter-spacing:.11em;color:#c8ad77;margin:0 0 8px}.companion-upgrade-report h2{font:1.75rem/1.25 Georgia;margin:0 0 8px;color:#f1d9a4}.companion-upgrade-report header p:last-child{margin:0;font:.8125rem/1.5 system-ui;color:#b7c4bb}.upgrade-report-close{position:absolute;right:14px;top:12px;min-width:44px;min-height:44px;border:0;background:transparent;color:#d1b983;font-size:1.75rem;cursor:pointer}.upgrade-report-intro{font:.875rem/1.6 system-ui;color:#c7c4b9;margin:24px 0 18px}.companion-stat-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.companion-stat-change{border:1px solid #96846235;border-radius:7px;padding:14px 12px;background:#060c0f55;font-variant-numeric:tabular-nums}.companion-stat-name{font:.75rem system-ui;color:#b9b6aa}.companion-stat-change>div{display:flex;align-items:center;gap:8px;margin:10px 0 5px;flex-wrap:wrap}.companion-stat-change strong{font:1.4375rem Georgia;color:#e3d6b4}.companion-stat-change small{font:.6875rem system-ui;color:#999f9b}.companion-upgrade-report .before{color:#9da7aa;font-variant-numeric:tabular-nums}.upgrade-arrow{color:#b89c65}.companion-stat-change.gain{border-color:#699c7855;background:linear-gradient(135deg,#5d9d7320,#080f1455)}.companion-stat-change.gain strong,.companion-stat-change.gain small{color:#abd2ae}.companion-stat-change.loss strong,.companion-stat-change.loss small{color:#e7a694}.companion-report-equipment,.companion-report-cost{margin-top:24px}.companion-upgrade-report h3{font:1.0625rem Georgia;color:#e2c995;margin:0 0 12px}.companion-gear-change{display:flex;gap:14px;padding:16px 0;border-top:1px solid #b69b672c}.companion-gear-change[class*="rarity-"]{padding-left:12px;border-left:3px solid var(--rarity,#b69b672c)}.companion-gear-change[class*="rarity-"] h3{color:var(--rarity,#e2c995)}.companion-gear-mark{width:46px;height:46px;display:grid;place-items:center;flex:none;border:1px solid var(--rarity,#b49b6850);border-radius:6px;color:#d9b874;background:#b28e3413;font-size:1.5rem}.companion-gear-change h3{margin:0 0 7px}.companion-gear-change p{font:.75rem/1.6 system-ui;margin:3px 0}.companion-gear-change strong{color:#ddd2b6}.companion-report-cost{padding:18px;border:1px solid #b49b683b;border-radius:8px;background:#070c0f55}.companion-report-cost ul{display:flex;flex-wrap:wrap;gap:10px 24px;padding:0;margin:0;list-style:none}.companion-report-cost li{display:flex;gap:10px;font:.8125rem system-ui}.companion-report-cost strong{color:#e3c894}.companion-report-cost .small-note{margin:12px 0 0}.companion-upgrade-report footer{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:24px;padding-top:20px;border-top:1px solid #b49b6833}.companion-upgrade-report footer button{min-width:130px;min-height:44px}.companion-review-button{border:1px solid #c9aa68!important;background:linear-gradient(145deg,#a97b292b,#25221b)!important;color:#f0d49b!important}.companion-review-button.unread{box-shadow:0 0 15px #c09c4220}.companion-review-button .review-new{display:inline-block;font:.625rem system-ui;margin-left:8px;text-transform:uppercase;letter-spacing:.07em;color:#bdd4ac}@media(max-width:540px){.companion-upgrade-report{padding:22px 16px}.companion-upgrade-report header{gap:12px}.companion-upgrade-report header .tavern-portrait{width:58px;height:68px}.companion-upgrade-report h2{font-size:1.4375rem}.companion-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.companion-stat-change{padding:12px 10px}.companion-stat-change strong{font-size:1.3125rem}.companion-upgrade-report footer{align-items:stretch;flex-direction:column}.companion-upgrade-report footer button{width:100%}}

.companion-upgrade-report header>div{min-width:0;flex:1}.modal-backdrop .companion-upgrade-report h2{font:1.75rem/1.25 Georgia;overflow-wrap:anywhere}.companion-upgrade-report header .eyebrow{padding-right:16px}@media(max-width:540px){.modal-backdrop .companion-upgrade-report h2{font-size:1.4375rem}.companion-upgrade-report header{padding-top:20px}.companion-upgrade-report header .eyebrow{padding-right:40px}}

@media(max-width:540px){.companion-upgrade-backdrop,.companion-ready-backdrop{padding-inline:12px}}

.companion-gear-mark .gear-icon{width:100%;height:100%;max-height:none;flex:none}
/* As a Bag tile (public/oath.css .item-tile:has(.oath-gear)): the item art carries its rarity edge itself. */
.companion-gear-mark:has(.oath-gear){border:0;background:none}

/* /artisan-creator.css */
/* Character creation, Combat or Life skilling (public/artisan-creator.js, IRP_ARTISAN_VERSION, default off). The Artisan picker reuses the class
   picker's layout (creation-motion.css); these rules add the two path cards and the Artisan's sprite stage. */
.artisan-creator .create-paths{display:grid;grid-template-columns:repeat(2,minmax(0,420px));justify-content:center;gap:22px}
.artisan-creator .create-path{display:flex;flex-direction:column;padding:0;overflow:hidden;background:linear-gradient(155deg,#1c2832,#0e1822)}
.artisan-creator .create-path>img{display:block;width:100%;height:auto;aspect-ratio:768/1024;max-height:440px;object-fit:cover;object-position:50% 30%}
.artisan-creator .create-path>div{padding:18px 20px 22px;display:flex;flex-direction:column;gap:12px;flex:1}
.artisan-creator .create-path h2{margin:0;font-size:1.625rem}
.artisan-creator .create-path p{margin:0;color:#d8cdb4;line-height:1.45}
.artisan-creator .create-path .red-button{margin-top:auto}
.artisan-creator .path-note{font-size:.8125rem;color:#b8c9d4}
.artisan-owned{display:flex;align-items:center;gap:12px;border:1px solid #d6b77566;border-radius:6px;padding:6px 12px 6px 4px;background:#0a131b99}
.artisan-owned .artisan-sprite{width:84px;height:84px;flex:none}
.artisan-owned p{margin:0;display:flex;flex-direction:column}.artisan-owned small{color:#b8c9d4}
.artisan-sprite{background-repeat:no-repeat;background-size:800% 700%;background-position:0 0}
.artisan-creator .artisan-floor{flex:1;align-self:stretch;width:100%;position:relative;display:flex;align-items:flex-end;justify-content:center;min-height:300px;padding-top:12px}
.artisan-creator .artisan-floor .artisan-sprite{width:min(360px,80%);aspect-ratio:1;margin-bottom:-4%}
.artisan-creator .artisan-portrait{overflow:hidden;border-radius:50%}.artisan-creator .artisan-portrait img{width:100%;height:100%;object-fit:cover}
.artisan-creator .artisan-look h3,.creator .hero-look h3{margin:0 0 8px;font-size:1rem}.artisan-creator .artisan-look p,.creator .hero-look p{font-size:.8125rem;color:#b8c9d4;margin:8px 0 18px}
.artisan-creator .artisan-look .uk-tabs,.creator .hero-look .uk-tabs{display:flex;gap:6px}.artisan-creator .artisan-look .uk-tab,.creator .hero-look .uk-tab{flex:1}
/* Hero gender (IRP_HERO_LOOKS_VERSION): the class picker's Look row is the Artisan picker's. */.creator .hero-look{margin:4px 0 0}
@media(max-width:700px){.artisan-creator .create-paths{grid-template-columns:1fr}.artisan-creator .create-path{flex-direction:row}.artisan-creator .create-path>img{width:38%;max-height:none;aspect-ratio:auto;object-fit:cover}.artisan-creator .create-path>div{padding:14px}.artisan-creator .create-path h2{font-size:1.25rem}.artisan-creator .create-path p{font-size:.875rem}}
@media(max-width:600px){.artisan-creator .artisan-floor{min-height:220px}.artisan-creator .artisan-floor .artisan-sprite{width:240px}}
/* The same floor ring as the class picker's pedestal. */
.artisan-creator .artisan-floor::before{content:"";position:absolute;bottom:7%;left:21%;width:58%;height:14%;border:1px solid #cfb57844;border-radius:50%;background:radial-gradient(ellipse,#b4b99815,transparent 65%);pointer-events:none}
.artisan-creator .artisan-floor .artisan-sprite{position:relative}

/* Creation v2 (Pat, 25 Oct: "character creation menu needs some love"): a step bar with Back, a painted stage (the Dawn Valley terrace the
   title screen uses), clearer path cards with three icon points each, and an Artisan panel that shows the race's tool, its best skill and
   all ten skills. Only with the Artisan switch on (.create-v2). */
.create-v2 .create-steps{display:flex;align-items:center;gap:18px;margin:0 0 18px;padding:0 0 14px;border-bottom:1px solid #b59a6733}
.create-v2 .create-back{min-height:44px;padding:8px 16px;border:1px solid #c7a46788;border-radius:6px;background:#0d1822;color:#ecd9ae;font-size:.875rem;display:inline-flex;align-items:center;gap:6px}
.create-v2 .create-back:hover{border-color:#e2c27d;color:#fff0c8}.create-v2 .create-back span{font-size:1.25rem;line-height:1}
.create-v2 .create-steps ol{display:flex;align-items:center;gap:10px;list-style:none;margin:0;padding:0}
.create-v2 .create-steps li{display:flex;align-items:center;gap:8px;color:#8fa1ab;font-size:.8125rem}
.create-v2 .create-steps li+li::before{content:"";width:34px;height:1px;background:#b59a6766;margin-right:2px}
.create-v2 .create-steps li b{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;border:1px solid #8fa1ab88;font:600 .75rem var(--ui,inherit)}
.create-v2 .create-steps li.current{color:#f3e2b8}.create-v2 .create-steps li.current b{border-color:#e2c27d;background:#98713455;color:#ffe5ac}
.create-v2 .create-steps li.done{color:#c9d6c4}.create-v2 .create-steps li.done b{border-color:#7fa070;background:#3d5a3155;color:#d6f0c6}
.create-v2>.page-heading{margin-bottom:20px}
/* Full review (3 Nov): on a computer the name box and Create character sat below the first screen (about 1,000 px down at 1440 x 900), under the skill paths and the
   race note. They now come straight under "Your <class>", and the paths and race note follow, so a new player sees how to start without scrolling. */
@media(min-width:1101px){.create-v2 .creation-details{display:flex;flex-direction:column}.create-v2 .creation-details>:is(form,.creator-start-note){order:1}.create-v2 .creation-details>:is(.creator-paths,.creator-race){order:2}.create-v2 .creation-details>.creator-start-note{margin-bottom:16px;padding-bottom:14px;border-bottom:1px solid #b59a6733}}.create-v2>.page-heading h1{margin:4px 0 6px}

/* The stage stands on a painted terrace instead of a plain gradient. */
/* The painting's lower edge fades into the stage (--stage-fade, set by artisan-creator.js fitStage) instead of stopping in a hard line. */
.create-v2 .creator-stage{background:linear-gradient(180deg,#09121b00,#09121b) 0 var(--stage-fade,100%)/100% 44px no-repeat,linear-gradient(180deg,#0a141e33 0%,#0a141e00 30%,#0a141e66 72%,#09121bf2 100%),url('/assets/evermarch/dawn-valley-v1.webp') 50% var(--stage-y,100%)/auto var(--stage-fit,100%) no-repeat,#09121b!important}
.create-v2 .creator-stage::after{content:"";position:absolute;inset:0;pointer-events:none;box-shadow:inset 0 0 90px 20px #050b11cc;border-radius:inherit}
.create-v2 .creator-preview-label{position:relative;z-index:2}
.create-v2 .creator-preview-label .eyebrow,.create-v2 .creator-role{background:#09121bcc;border-radius:20px;padding:5px 11px;color:#f3e2b8}
.create-v2 .hero-pedestal:after,.create-v2 .artisan-floor::before{border-color:#f0d39066;background:radial-gradient(ellipse,#00000088,transparent 70%)}
.create-v2 .hero-pedestal .pedestal-light{opacity:.55}
.create-v2 .creation-motion-controls{z-index:3}
.create-v2 .hero-caption{position:relative;z-index:2;background:linear-gradient(180deg,#09121b00,#09121bf2 30%);border-top:0}
.create-v2 .hero-caption p{color:#d9e1e4}

/* Path page: art on top with its name, then three points and the button. */
.create-v2.create-paths-page .create-paths{grid-template-columns:repeat(2,minmax(0,460px));gap:26px}
.create-v2 .create-path-art{position:relative}
.create-v2 .create-path-art img{display:block;width:100%;height:330px;object-fit:cover;object-position:50% 28%}
.create-v2 .create-path-art::after{content:"";position:absolute;inset:auto 0 0;height:45%;background:linear-gradient(180deg,transparent,#0e1822)}
.create-v2 .create-path-tag{position:absolute;left:18px;bottom:12px;z-index:1;font:600 .75rem var(--ui,inherit);letter-spacing:.12em;text-transform:uppercase;color:#f3e2b8;background:#09121bd9;border:1px solid #c7a46788;border-radius:20px;padding:5px 12px}
.create-v2 .create-path>div:last-child{padding:16px 22px 22px;gap:14px}
.create-v2 .path-points{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.create-v2 .path-points li{display:flex;align-items:center;gap:12px;color:#dccfb4;font-size:.9375rem;line-height:1.35}
.create-v2 .path-points li>img,.create-v2 .path-points li>.uk-art,.create-v2 .path-points li>.uk-ico{flex:none;width:32px;height:32px;margin:0}
.create-v2 .create-path .path-note{margin:0}

/* Artisan details: the race's tool and best skill, then all ten skills. */
.artisan-creator .artisan-skills h3{margin:0 0 8px;font-size:.875rem;color:#efdab2}
.artisan-creator .artisan-skills ul{list-style:none;margin:0 0 18px;padding:0;display:grid;grid-template-columns:repeat(5,1fr);gap:6px}
.artisan-creator .artisan-skills li{display:flex;flex-direction:column;align-items:center;gap:3px;padding:6px 2px;border:1px solid #b59a6733;border-radius:6px;background:#0a131b80}
.artisan-creator .artisan-skills li img{width:32px;height:32px}
.artisan-creator .artisan-skills li span{font-size:.625rem;color:#aebbc2;text-align:center;line-height:1.2;overflow-wrap:anywhere}
.artisan-creator .artisan-skills li.best{border-color:#e2c27d;background:#98713433}.artisan-creator .artisan-skills li.best span{color:#ffe5ac}
.artisan-creator .choices small{color:#b8c9d4}

@media(max-width:760px){
 .create-v2 .create-steps{gap:10px;flex-wrap:wrap;margin-bottom:12px}
 .create-v2 .create-steps ol{gap:6px}.create-v2 .create-steps li+li::before{width:14px}
 .create-v2 .create-steps li{font-size:.75rem}
 .create-v2.create-paths-page .create-paths{grid-template-columns:1fr}
 .create-v2 .create-path{flex-direction:column!important}
 .create-v2 .create-path-art img{height:180px;width:100%!important}
 .create-v2 .path-points li{font-size:.875rem}
 .artisan-creator .artisan-skills ul{grid-template-columns:repeat(5,1fr)}
}
/* On the painted terrace a soft shadow reads better than the floor ring. */
.create-v2 .hero-pedestal:after,.create-v2 .artisan-floor::before{border:0!important;background:radial-gradient(ellipse at 50% 50%,#000000b3,#00000055 45%,transparent 70%)!important;width:34%;left:33%;height:7%}
/* Pat, 6 Nov (heroes floating): the hero stands lower on the stage (13% up the pedestal, was 24%) so the terrace under it reaches down to the
   Walk and Attack buttons instead of leaving a dark band, and its shadow sits under its feet, where it made the hero look lifted off the floor. */
.create-v2 .hero-pedestal .creation-motion-wrap{bottom:13%}
.create-v2 .hero-pedestal:after{bottom:10.5%;height:5%;width:26%;left:37%}
/* Skill names stay whole: two columns of icon and name. */
.artisan-creator .artisan-skills ul{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:5px}
.artisan-creator .artisan-skills li{flex-direction:row;justify-content:flex-start;gap:8px;padding:4px 8px}
.artisan-creator .artisan-skills li img{width:28px;height:28px}
.artisan-creator .artisan-skills li span{font-size:.75rem;text-align:left;overflow-wrap:normal;white-space:nowrap}
/* Pat, 28 Oct: "so much dead space just for a text to say goblin +20% mining speed". The race's bonus is said once, in the Best at card beside the
   stage, so the stage has no caption: it is the label, the figure and its buttons, as tall as they need and no taller, and it stays in view
   while the panel beside it scrolls. */
/* Menu review, 3 Nov: as tall as it needed left a large empty space under the stage, beside the taller panels. It stretches to them as the class
   picker's stage does. The figure and its buttons keep their place (in view at 1440 x 900), and the caption under them names the race and its bonus
   and takes the rest of the height. */
.artisan-creator .creator-stage{align-self:stretch!important}
/* 6 Nov: the caption taking the rest of the height left a dark empty block under the terrace (Pat's 28 Oct "dead space" again). The painted
   floor takes the extra height instead, so the scene fills the stage and the caption sits snug under the buttons. */
@media(min-width:761px){.artisan-creator .creator-stage .artisan-floor{flex:1 0 440px;height:auto;min-height:0}.artisan-creator .creator-stage .artisan-floor~.hero-caption{flex:0 0 auto}}
.artisan-creator .creator-stage .creation-motion-controls{position:relative;margin-top:-4px}
/* Pat, 28 Oct: the two chips over the stage ("Goblin · Male", "Best at Mining") did not line up: one was a small spaced eyebrow, the other a
   larger pill. Both are now the same pill: one height, one type, centred on one line. The class picker uses the same two. */
.create-v2 .creator-preview-label{justify-content:center;align-items:center;gap:8px;flex-wrap:wrap}
.create-v2 .creator-preview-label .eyebrow,.create-v2 .creator-preview-label .creator-role{display:inline-flex;align-items:center;box-sizing:border-box;height:28px;margin:0;padding:0 12px;font:600 .75rem/1 var(--ui,inherit);letter-spacing:.03em;text-transform:none;color:#f3e2b8;background:#09121bd9;border:1px solid #c7a46788;border-radius:20px;white-space:nowrap}
/* Pat, 28 Oct: the path page on UI kit v1, to the Leaderboards standard. A painted page head, then two matching framed cards: the painting with its tag
   and title laid on it, three painted points on icon tiles, one gold button at the foot. The card lifts and its frame warms under the pointer or focus. */
.creator-shell .creator.create-v2.create-paths-page{max-width:1120px;margin:0 auto}
.create-v2 .create-paths-head{margin:6px 0 22px}
.create-v2 .create-paths-head .uk-head-icon .uk-art{width:56px;height:56px}
.create-v2.create-paths-page .create-paths{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;justify-content:stretch}
.create-v2 .create-path.uk-frame{display:flex;flex-direction:column;padding:0;overflow:hidden;background:linear-gradient(180deg,#14212c,#0c151e);transition:transform .18s ease,box-shadow .18s ease,filter .18s ease}
.create-v2 .create-path.uk-frame:is(:hover,:focus-within){transform:translateY(-3px);box-shadow:0 0 0 1px #e2b85c88,0 14px 34px #000a,0 0 28px #e2b85c33}
.create-v2 .create-path.is-pressable{cursor:pointer}
.create-v2 .create-path>.create-path-art{position:relative;flex:0 0 auto;margin:0}
.create-v2 .create-path-art img{display:block;width:100%;height:360px;object-fit:cover;object-position:50% 30%}
.create-v2 .create-path-art::after{content:"";position:absolute;inset:auto 0 0;height:55%;background:linear-gradient(180deg,transparent,#0d1720 92%);pointer-events:none}
.create-v2 .create-path-title{position:absolute;left:24px;right:24px;bottom:16px;z-index:1;display:grid;gap:8px;justify-items:start}
.create-v2 .create-path-title .create-path-tag{position:static}
.create-v2 .create-path-title h2{margin:0;font-size:2rem;line-height:1.1;color:#f3e2b8;text-shadow:0 2px 8px #000}
.create-v2 .create-path>.create-path-body{display:flex;flex-direction:column;gap:18px;flex:1;padding:20px 24px 24px}
.create-v2 .create-path .path-points{display:grid;gap:12px;margin:0;padding:0;list-style:none}
.create-v2 .create-path .path-points li{display:flex;align-items:center;gap:14px;font-size:1rem;color:#e8dcc0}
.create-v2 .create-path .path-tile{flex:none;width:44px;height:44px}
.create-v2 .create-path .path-tile>:is(.uk-art,.uk-ico){width:34px;height:34px;margin:0}
.create-v2 .create-path .red-button{margin-top:auto;min-height:52px;font-size:1.05rem}
@media(max-width:700px){
 .create-v2.create-paths-page .create-paths{grid-template-columns:1fr;gap:18px}
 .create-v2 .create-path-art img{height:200px}
 .create-v2 .create-path-title{left:16px;bottom:12px}.create-v2 .create-path-title h2{font-size:1.5rem}
 .create-v2 .create-path>.create-path-body{padding:14px 16px 18px;gap:14px}
 .create-v2 .create-path .path-points li{font-size:.9375rem}
}
/* Whole-game review, 17 Nov: on a PC window under about 1040 tall the two Choose buttons sat below the bottom edge (seen at 1440 by 900).
   The painting gives up height first, so both buttons are in view without scrolling. Tall windows and phones draw as before. */
@media(min-width:701px) and (max-height:1040px){
 .create-v2 .create-path-art img{height:clamp(120px,calc(100vh - 690px),360px)}
}
@media(min-width:701px) and (max-height:820px){
 .create-v2 .create-path>.create-path-body{gap:10px;padding:12px 24px 18px}
 .create-v2 .create-path .path-points{gap:6px}
}
/* Every race row is one height: "Best at Woodcutting" wrapped to two lines in a narrow window and made the Gnome row taller (Pat, 28 Oct). */
.artisan-creator .choice>span{min-width:0}.artisan-creator .choices small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* "Best at Woodcutti..." in the race list at 1440 (QA, 1 Nov): the line wraps instead of being cut. */
.artisan-creator .choices small{white-space:normal;overflow:visible;text-overflow:clip;line-height:1.2}
/* Game audit 6 Nov (ISSUES #12): the help line runs to about two thirds of the banner, past the shield in the art, so the shade stays dark under it. */
:root.uk-painted .shell .create-v2 .create-paths-head.uk-head::before,.create-v2 .create-paths-head.uk-head::before{background:linear-gradient(90deg,#141312f0,#141312d9 62%,#14131233)!important}
@media(max-width:899px){:root.uk-painted .shell .create-v2 .create-paths-head.uk-head::before,.create-v2 .create-paths-head.uk-head::before{background:linear-gradient(90deg,#141312f0,#141312e0 60%,#141312b3)!important}}
/* A guest's one-side note (regrade, 17 Nov 2026): body size and light, so it reads as the reason for the Register button under it, not as a footnote. */
.create-v2 .create-path .path-note.guest-side-note{margin:0 0 8px;font-size:.9375rem;line-height:1.4;color:#e7ddc6;text-align:center}

/* /artisan-shell.css */
/* Artisan play mode (build list step 4, IRP_ARTISAN_VERSION, default off): the Workshop, Map, Crafters' Hall, Bag and Guide menus of public/artisan-shell.js.
   UI kit v1 frames and tabs, painted art; one column on a phone. */
.artisan-shell .as-page{max-width:1180px;margin:0 auto;padding:16px 20px 48px;display:grid;gap:14px}
.artisan-shell .as-top{display:flex;justify-content:flex-end;align-items:center;gap:8px}
.artisan-shell .as-blessing{display:grid;grid-template-columns:112px minmax(0,1fr) auto;gap:14px;align-items:center;padding:12px 16px}.artisan-shell .as-blessing img{width:112px;height:104px;object-fit:contain}
.artisan-shell .as-blessing .uk-heading{margin:0 0 6px}.artisan-shell .as-blessing p{margin:4px 0 0}.artisan-shell .as-blessing-chips{display:flex;flex-wrap:wrap;gap:6px}.artisan-shell .as-blessing-on b{color:#9fe0a8}.artisan-shell .as-blessing .uk-btn{min-height:44px}
@media(max-width:600px){.artisan-shell .as-blessing{grid-template-columns:72px minmax(0,1fr)}.artisan-shell .as-blessing img{width:72px;height:67px}.artisan-shell .as-blessing .uk-btn{grid-column:1/-1}}
.artisan-shell .as-loading{padding:40px;text-align:center;color:#d9d3bf}
.artisan-shell .as-head-portrait{overflow:hidden;border-radius:50%}
.artisan-shell .as-head-portrait img{width:100%;height:100%;max-width:64px;max-height:64px;border-radius:50%;object-fit:cover;object-position:50% 18%;border:2px solid #b59a67;background:#0c1520}
.artisan-shell .as-icon{flex:none;object-fit:contain;filter:drop-shadow(0 1px 2px #000a)}
.artisan-shell .as-tabs .uk-tab{gap:8px}
.artisan-shell .as-tabs .as-icon{width:24px;height:24px}
.artisan-shell .as-short{display:none}
.artisan-shell .as-workshop{display:grid;grid-template-columns:minmax(240px,320px) 1fr;gap:14px;align-items:start}
.artisan-shell .as-body{display:grid;gap:10px;padding:16px}
.artisan-shell .as-body-art{width:100%;aspect-ratio:1;object-fit:cover;object-position:50% 15%;border:1px solid #b59a67;border-radius:8px;background:#0c1520}
.artisan-shell .as-trait{display:flex;gap:10px;align-items:flex-start;margin:0;color:#d5dfe8;font-size:.875rem;line-height:1.45}
.artisan-shell .as-trait b{display:block;color:#f2d497}
.artisan-shell .as-skills{padding:16px}
.artisan-shell .as-skills ul{list-style:none;margin:8px 0 16px;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:8px}
.artisan-shell .as-skill{display:flex;align-items:center;gap:10px;padding:8px 10px;border:1px solid #b59a6740;border-radius:8px;background:#0c1520}
.artisan-shell .as-skill.is-best{border-color:#d9b66b;box-shadow:inset 0 0 0 1px #d9b66b33}
.artisan-shell .as-skill-text{flex:1;min-width:0;display:grid;gap:3px}
.artisan-shell .as-skill-text b{color:#f2e6c8;font-size:.9375rem}
.artisan-shell .as-skill-text small{color:#a9b4bf;font-size:.75rem}
.artisan-shell .as-skill em{font:700 .9375rem Georgia,serif;font-style:normal;color:#f2d497;white-space:nowrap}
.artisan-shell .as-best{display:inline-block;margin-left:6px;padding:0 6px;border-radius:999px;background:#d9b66b;color:#1b1509;font:700 .625rem/1.4 sans-serif;letter-spacing:.04em;vertical-align:2px}
.artisan-shell .as-bar{display:block;height:6px;border-radius:3px;background:#1d2a3a;overflow:hidden}
.artisan-shell .as-bar i{display:block;height:100%;background:linear-gradient(90deg,#a8853f,#f2d497)}
.artisan-shell .as-loop{padding:16px}
.artisan-shell .as-loop ol{list-style:none;margin:8px 0 0;padding:0;display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
.artisan-shell .as-loop li{display:grid;grid-template-rows:auto auto 1fr auto;justify-items:start;gap:8px;padding:12px;border:1px solid #b59a6740;border-radius:8px;background:#0c1520}
.artisan-shell .as-loop li b{color:#f2d497}
.artisan-shell .as-loop li p{margin:2px 0 0;font-size:.875rem;line-height:1.45;color:#d5dfe8}
.artisan-shell .as-step{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#b59a67;color:#1b1509;font:700 .75rem sans-serif}
.artisan-shell .as-wide-art{width:100%;height:180px;object-fit:cover;border:1px solid #b59a67;border-radius:8px}
.artisan-shell :is(.as-map,.as-hall,.as-guide,.as-bagpage){display:grid;gap:10px;padding:16px}
.artisan-shell :is(.as-map,.as-hall,.as-guide)>p{margin:0;color:#d5dfe8;line-height:1.55}
.artisan-shell .as-soon{margin:0;padding:10px 12px;border-left:3px solid #d9b66b;background:#d9b66b14;color:#f2e6c8;border-radius:4px}
.artisan-shell :is(.as-cards,.as-benches){list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:10px}
.artisan-shell :is(.as-card,.as-bench){display:flex;gap:12px;align-items:center;padding:10px;border:1px solid #b59a6740;border-radius:8px;background:#0c1520}
.artisan-shell :is(.as-card,.as-bench) div{display:grid;gap:2px;min-width:0}
.artisan-shell :is(.as-card,.as-bench) b{color:#f2d497}
.artisan-shell :is(.as-card,.as-bench) small{color:#a9b4bf;font-size:.8125rem}
.artisan-shell .as-card .as-icon{width:40px;height:40px}
.artisan-shell .as-bench img{width:96px;height:72px;object-fit:cover;border-radius:6px;border:1px solid #b59a67;flex:none}
.artisan-shell .as-bag{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:10px}
.artisan-shell .as-bag li{display:grid;justify-items:center;gap:4px;padding:10px;border:1px solid #b59a6740;border-radius:8px;background:#0c1520;text-align:center}
.artisan-shell .as-bag img{width:48px;height:48px;object-fit:contain}
.artisan-shell .as-bag b{font-size:.8125rem;color:#f2e6c8}
.artisan-shell .as-bag small{font-size:.75rem;color:#a9b4bf}
.artisan-shell .as-bag li.is-scroll{border-color:#8f6bc4;background:#2a1f3d66}.artisan-shell .as-bag li.is-scroll b{color:#e2c9ff}.artisan-shell .as-bag li.is-scroll .uk-btn{min-height:44px;width:100%}
/* Artisan meals: Eat in the Bag, and the meal working now. */
.artisan-shell .as-bag li.is-meal{border-color:#c9a14a88}.artisan-shell .as-bag li.is-meal small+small{color:#e6c98a}.artisan-shell .as-bag li.is-meal .uk-btn{min-height:44px;width:100%}
.artisan-shell .as-meal-on{display:grid;grid-template-columns:40px 1fr;gap:10px;align-items:center;margin:8px 0 12px;padding:8px 12px;border:1px solid #c9a14a88;border-radius:8px;background:#2a2112aa}.artisan-shell .as-meal-on b{display:block;color:#f3dfae}.artisan-shell .as-meal-on small{color:var(--uk-muted,#aab6c3)}
.artisan-shell .as-empty{display:flex;gap:14px;align-items:center;padding:16px;color:#d5dfe8}
.artisan-shell .as-empty p{margin:0}
.artisan-shell .as-empty b{color:#f2d497}
.character-select .artisan-row .portrait{width:48px;height:48px;border-radius:50%;object-fit:cover;object-position:50% 18%;border:1px solid #b59a67}
@media(max-width:900px){.artisan-shell .as-loop ol{grid-template-columns:1fr 1fr}}
@media(max-width:700px){.artisan-shell .as-workshop{grid-template-columns:1fr}.artisan-shell .as-body{grid-template-columns:96px 1fr;align-items:start}.artisan-shell .as-body-art{grid-row:span 3}.artisan-shell .as-body .uk-card-note{grid-column:1/-1}}
@media(max-width:540px){.artisan-shell .as-page{padding:12px 12px 40px}.artisan-shell .as-skills ul{grid-template-columns:1fr}.artisan-shell .as-loop ol{grid-template-columns:1fr}.artisan-shell .as-loop li{grid-template-columns:auto auto 1fr;grid-template-rows:auto auto;align-items:center}.artisan-shell .as-loop li>div{grid-column:1/-1}.artisan-shell .as-loop li .uk-btn{grid-column:1/-1;justify-self:stretch}.artisan-shell .as-wide-art{height:120px}.artisan-shell .as-tabs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px}.artisan-shell .as-tabs .uk-tab{flex-direction:column;gap:2px;padding:6px 0;min-height:56px;font-size:.6875rem;letter-spacing:0}.artisan-shell .as-long{display:none}.artisan-shell .as-short{display:inline}}
/* Map (build list step 5): region tabs, the region painting with site pins, the site list, and a site painting with its node spots. */
.artisan-shell .as-region-tabs .uk-tab-label{display:grid;line-height:1.2}
.artisan-shell .as-region-tabs small{font-size:.6875rem;color:#a9b4bf;font-weight:400}
.artisan-shell .as-region{position:relative;border:1px solid #b59a67;border-radius:8px;overflow:hidden;background:#0c1520}
.artisan-shell .as-region-art{display:block;width:100%;height:auto}
.artisan-shell .as-region.is-closed .as-region-art{filter:grayscale(.5) brightness(.55)}
.artisan-shell .as-region-lock{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);margin:0;padding:12px 18px;max-width:80%;text-align:center;background:#09121be6;border:1px solid #b59a67;border-radius:8px;color:#f2e6c8}
/* Map sites are cards like the hero's places on its map (public/dungeon.css .map-pin, interface-art.css .zone-pin-art; play-test 2 Nov): a round site
   picture, the name, the level it opens at and whether it is open. The picture sits on the site's spot and the card runs right (left near the right edge). */
.artisan-shell .as-pin{--pin-c:33px;position:absolute;left:var(--x);top:var(--y);transform:translate(calc(-1 * var(--pin-c)),-50%);display:flex;align-items:center;gap:8px;min-height:54px;max-width:240px;padding:8px 10px;border:1px solid #b7a47966;border-radius:5px;background:linear-gradient(110deg,#111c2eed,#111c2ed9);color:#fff1cf;box-shadow:0 3px 10px #0009;text-align:left;cursor:pointer}
.artisan-shell .as-pin-art{flex:0 0 46px;width:46px;height:46px;max-width:none;border:2px solid #c6aa69;border-radius:50%;object-fit:cover;box-shadow:0 0 0 2px #1c2935,0 2px 6px #0009}
.artisan-shell .as-pin>span{display:grid;gap:3px;min-width:0}
.artisan-shell .as-pin b{font:700 13px/1.25 Georgia,serif;color:#ffe6b8;white-space:nowrap}
.artisan-shell .as-pin small{font-size:10px;line-height:1.3;color:#c6d0c8;white-space:nowrap}
.artisan-shell .as-pin.is-locked .as-pin-art{filter:grayscale(.7) brightness(.75)}
.artisan-shell .as-pin.is-locked b{color:#c9c2b0}
.artisan-shell .as-pin.is-left{transform:translate(calc(var(--pin-c) - 100%),-50%);flex-direction:row-reverse;text-align:right}
.artisan-shell .as-pin:hover,.artisan-shell .as-pin:focus-visible{outline:2px solid #f0cb83;outline-offset:3px}
.artisan-shell .as-pin:hover,.artisan-shell .as-pin:focus-visible{z-index:2}
/* A phone shows only the round pictures on a page-wide map; the full-screen map pans like the hero's, so it keeps the cards (smaller picture, as the hero's). */
@media(max-width:700px){html.cx-on.cx-artmap .artisan-shell .as-pin{--pin-c:27px;min-height:50px;padding:8px 10px;border-radius:5px}html.cx-on.cx-artmap .artisan-shell .as-pin>span{display:grid}}
.artisan-shell .as-sites{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:10px}
.artisan-shell .as-site-row{display:flex;align-items:center;gap:10px;padding:10px;border:1px solid #b59a6740;border-radius:8px;background:#0c1520}
.artisan-shell .as-site-row div{flex:1;min-width:0;display:grid;gap:2px}
.artisan-shell .as-site-row b{color:#f2d497}
.artisan-shell .as-site-row small{font-size:.8125rem;color:#a9b4bf}
.artisan-shell .as-site-row .as-site-state{color:#d5dfe8}
.artisan-shell .as-site-row.is-locked b{color:#c9c2b0}
.artisan-shell .as-site-row .uk-btn{min-width:84px}
.artisan-shell .as-site{display:grid;gap:12px;padding:16px}
.artisan-shell .as-site-top{display:flex;gap:14px;align-items:center}
.artisan-shell .as-site-top .uk-heading{margin:0}
.artisan-shell .as-site-sub{margin:4px 0 0;color:#a9b4bf;font-size:.875rem}
.artisan-shell .as-site-art{position:relative;border:1px solid #b59a67;border-radius:8px;overflow:hidden;container-type:inline-size}
.artisan-shell .as-site-art>img{display:block;width:100%;height:auto}
/* The camera on a site being worked (Pat, 28 Oct; public/artisan-walk.js follow): the painting is drawn bigger than this frame and the frame follows your
   Artisan. Past the painting's edge it shows a blurred copy of it. Drag to look around. The skill being worked sits in the corner, like the hero's XP bar. */
.artisan-shell .as-cam{position:relative;aspect-ratio:16/9;max-height:72vh;border:1px solid #b59a67;border-radius:8px;overflow:hidden;background:#0b1218;touch-action:pan-y;cursor:grab;user-select:none;-webkit-user-select:none}
.artisan-shell .as-cam.is-looking{cursor:grabbing}
.artisan-shell .as-cam-fill{position:absolute;left:-6%;top:-6%;width:112%;height:112%;object-fit:cover;filter:blur(16px) brightness(.5);pointer-events:none}
.artisan-shell .as-cam>.as-site-art{position:absolute;left:0;top:0;width:135%;border:0;border-radius:0;overflow:visible;will-change:transform}
.artisan-shell .as-cam img{-webkit-user-drag:none}
.artisan-shell .as-xp{position:absolute;left:10px;bottom:10px;z-index:4;display:grid;grid-template-columns:auto 1fr;align-items:center;gap:8px;width:min(270px,64%);padding:6px 10px;background:#09121bdb;border:1px solid #b59a67;border-radius:8px;pointer-events:none}
.artisan-shell .as-xp[hidden]{display:none}.artisan-shell .as-xp .as-icon{width:28px;height:28px}
.artisan-shell .as-xp .uk-meter-line{flex-wrap:nowrap}.artisan-shell .as-xp .uk-meter-line small{font-size:.75rem;color:#c9d3dc;font-variant-numeric:tabular-nums;white-space:nowrap}
.artisan-shell .as-xp .uk-progress{height:10px}
/* Level steps: the next reward under the skill meters (public/artisan-data.js nextLine). */
.artisan-shell .as-xp .as-xp-next,.artisan-shell .as-xp .ah-xp-next{display:block;margin-top:3px;font-size:.72rem;line-height:1.3;color:#c9d3dc}.artisan-shell .as-xp .ah-xp-next{font-size:.78rem}
.artisan-shell .return-level-gains{display:inline-block;margin:2px 0;font-size:.82rem;color:var(--uk-ivory-dim,#c9d3dc)}
@media(max-width:700px){.artisan-shell .as-cam{aspect-ratio:1/1}.artisan-shell .as-cam>.as-site-art{width:190%}.artisan-shell .as-xp{left:6px;bottom:6px;padding:4px 8px;gap:6px}.artisan-shell .as-xp .as-icon{width:22px;height:22px}}
.artisan-shell .as-node{position:absolute;left:var(--u);top:var(--v);width:calc(5.2cqw * var(--k,1));aspect-ratio:1;transform:translate(-50%,-87.5%);background-size:1000% 300%;background-position:var(--tx) var(--ty);background-repeat:no-repeat;pointer-events:none;filter:drop-shadow(0 2px 2px #0008)}
.artisan-shell .as-node.is-flip{transform:translate(-50%,-87.5%) scaleX(-1)}
.artisan-shell .as-node.is-off{filter:grayscale(.85) brightness(.5);opacity:.75}
.artisan-shell .as-parts{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:10px}
.artisan-shell .as-part{display:flex;gap:10px;align-items:center;padding:10px;border:1px solid #b59a6740;border-radius:8px;background:#0c1520}
.artisan-shell .as-part div{display:grid;gap:2px}
.artisan-shell .as-part b{color:#f2d497}
.artisan-shell .as-part small{color:#a9b4bf;font-size:.8125rem}
.artisan-shell .as-part.is-locked{opacity:.7}
.artisan-shell .as-part.is-locked b{color:#c9c2b0}
@media(max-width:700px){.artisan-shell .as-pin{--pin-c:20px;min-height:0;padding:3px;border-radius:50%}.artisan-shell .as-pin>span{display:none}.artisan-shell .as-pin-art{flex-basis:34px;width:34px;height:34px}.artisan-shell .as-parts{grid-template-columns:1fr}.artisan-shell .as-sites{grid-template-columns:1fr}}
@media(max-width:540px){.artisan-shell .as-region-tabs{display:grid;grid-template-columns:1fr 1fr;gap:4px}.artisan-shell .as-site-top{flex-direction:column;align-items:flex-start;gap:8px}.artisan-shell .as-node{width:calc(6cqw * var(--k,1))}}
/* Working a site (build list step 6): the live layer over the painting, the work panel and the Welcome back card. */
.artisan-shell .as-live,.artisan-shell .as-crowd{position:absolute;inset:0;pointer-events:none}
.artisan-shell .as-live .as-node{transition:filter .3s}
.artisan-shell .as-node.is-mine{filter:drop-shadow(0 0 4px #f0ce83) drop-shadow(0 2px 2px #0008)}
.artisan-shell .as-ring{position:absolute;left:50%;bottom:4%;width:46%;aspect-ratio:1;transform:translateX(-50%);border-radius:50%;background:conic-gradient(#f0ce83 var(--p),#0009 0);-webkit-mask:radial-gradient(circle,transparent 58%,#000 60%);mask:radial-gradient(circle,transparent 58%,#000 60%)}
.artisan-shell .as-glow{position:absolute;inset:-25%;background-size:800% 100%;background-repeat:no-repeat;animation:as-glow 1s steps(8) infinite;mix-blend-mode:screen}
@keyframes as-glow{from{background-position:0 0}to{background-position:114.29% 0}}
.artisan-shell .as-flag{position:absolute;right:8%;top:6%;width:22%;height:30%;border-left:2px solid #d9d3c2;text-decoration:none}
.artisan-shell .as-flag::after{content:"";position:absolute;left:0;top:0;width:100%;height:60%;background:#5aa0d8;clip-path:polygon(0 0,100% 30%,0 60%)}
.artisan-shell .as-tap{position:absolute;left:var(--u);top:var(--v);width:7cqw;aspect-ratio:1;min-height:0;transform:translate(-50%,-80%);padding:0;border:2px solid #f0ce83;border-radius:50%;background:#f0ce8326;box-shadow:0 0 12px #f0ce83;cursor:pointer;pointer-events:auto;animation:as-pulse 1.2s ease-in-out infinite}
.artisan-shell .as-tap:focus-visible{outline:3px solid var(--uk-focus,#f4cd86);outline-offset:2px}
@keyframes as-pulse{50%{box-shadow:0 0 22px #f0ce83;background:#f0ce8340}}
.artisan-shell .as-rare{position:absolute;left:var(--u);top:var(--v);width:9cqw;aspect-ratio:1;transform:translate(-50%,-80%);background-size:800% 100%;animation:as-glow 2s steps(8) infinite;filter:drop-shadow(0 0 8px #ffd27a55)}
.artisan-shell .as-rare-banner{position:absolute;left:50%;top:10px;transform:translateX(-50%);max-width:92%;padding:8px 14px;background:#09121be6;border:1px solid #f0ce83;border-radius:8px;color:#ffe1aa;font-weight:600;text-align:center}
.artisan-shell .as-actor{position:absolute;left:var(--u);top:var(--v);width:9cqw;aspect-ratio:1;transform:translate(-50%,-90%);background-size:800% 700%;background-repeat:no-repeat;filter:drop-shadow(0 3px 3px #000a);z-index:1}
.artisan-shell .as-actor.is-me{z-index:2}
.artisan-shell .as-actor{transition:opacity .25s}.artisan-shell .as-actor.is-away{opacity:0}
.artisan-shell .as-actor em{position:absolute;left:50%;top:92%;transform:translateX(-50%);padding:1px 6px;border-radius:4px;background:#09121bcc;color:#d5dfe8;font:600 .6875rem system-ui;font-style:normal;white-space:nowrap}
.artisan-shell .as-actor.is-me em{color:#ffe1aa;border:1px solid #b59a67}
.artisan-shell .as-float{position:absolute;left:var(--u);top:var(--v);transform:translate(-50%,-260%);padding:2px 8px;border-radius:4px;background:#09121bd9;color:#f2e6c8;font:700 .8125rem system-ui;white-space:nowrap;animation:as-float 1.8s ease-out forwards;z-index:3}
.artisan-shell .as-float.is-rich{color:#ffe1aa;border:1px solid #f0ce83}
.artisan-shell .as-float.is-find{color:#b9e6ff;border:1px solid #6fb6e0}
@keyframes as-float{0%{opacity:0;transform:translate(-50%,-200%)}15%{opacity:1}100%{opacity:0;transform:translate(-50%,-420%)}}
.artisan-shell .as-start,.artisan-shell .as-panel{display:grid;gap:10px;padding:12px;border:1px solid #b59a6740;border-radius:8px;background:#0c1520}
.artisan-shell .as-start p{margin:0;color:#d5dfe8}
.artisan-shell .as-start .uk-btn{flex:0 0 auto;min-width:220px;display:inline-grid;grid-template-columns:auto auto;column-gap:8px;align-items:center;text-align:left}
.artisan-shell .as-start .uk-btn img{grid-row:span 2}
.artisan-shell .as-start .uk-btn small{font-weight:400;font-size:.75rem;opacity:.85}
.artisan-shell .as-panel-head{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.artisan-shell .as-panel-head>div{flex:1;min-width:200px;display:grid;gap:2px}
.artisan-shell .as-panel-head b{color:#f2d497}
.artisan-shell .as-panel-head small{color:#a9b4bf;font-size:.8125rem}
.artisan-shell .as-panel-head .uk-actions{margin:0;flex:0 0 auto;display:flex;gap:8px;flex-wrap:wrap}
.artisan-shell .as-panel .as-work-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin:0}
.artisan-shell .as-tip{margin:0;color:#a9b4bf;font-size:.8125rem}
.artisan-shell .as-recent{list-style:none;margin:0;padding:0;display:grid;gap:4px}
.artisan-shell .as-recent li{display:flex;gap:8px;align-items:center;font-size:.875rem;color:#d5dfe8}
.artisan-shell .as-recent em{color:#f0ce83;font-style:normal}
.artisan-shell .as-recent li.is-find span{color:#b9e6ff}
.artisan-shell .as-welcome{display:grid;gap:8px;padding:14px;border:1px solid #f0ce83;border-radius:8px;background:linear-gradient(110deg,#253127,#111c2b)}
.artisan-shell .as-welcome h3{margin:0;font:600 1.125rem Georgia,serif;color:#ffe1aa}
.artisan-shell .as-welcome p{margin:0;color:#d5dfe8}
.artisan-shell .as-welcome-items{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:6px 14px}
.artisan-shell .as-welcome-items li{display:flex;gap:6px;align-items:center;color:#d5dfe8}
.artisan-shell .as-welcome-items b{color:#f2e6c8}
.artisan-shell .as-welcome-worth{margin:8px 0 0;color:#d5dfe8}.artisan-shell .as-welcome-worth b{color:#fae3b0}
.artisan-shell .as-welcome .uk-actions{margin:0;display:flex}.artisan-shell .as-welcome .uk-btn{min-width:160px}
.artisan-shell .as-working{display:flex;gap:12px;align-items:center;padding:12px 16px;margin-bottom:12px}
.artisan-shell .as-working div{flex:1;display:grid;gap:2px}
.artisan-shell .as-working b{color:#f2d497}
.artisan-shell .as-working small{color:#a9b4bf}
.artisan-shell .as-here{color:#9fd59a}
@media(max-width:700px){.artisan-shell .as-panel .as-work-stats{display:grid;grid-auto-flow:row;grid-template-columns:1fr 1fr;row-gap:10px}.artisan-shell .as-rare-banner{top:6px;max-width:78%;padding:4px 8px;font-size:.75rem}.artisan-shell .as-tap{min-width:36px}.artisan-shell .as-float{font-size:.6875rem}.artisan-shell .as-actor em{display:none}.artisan-shell .as-actor.is-me em{display:block}.artisan-shell .as-actor:not(.is-me)>.as-cast{visibility:hidden}.artisan-shell .as-working{flex-wrap:wrap}.artisan-shell .as-working .uk-btn{width:100%}}
@media(prefers-reduced-motion:reduce){.artisan-shell .as-tap,.artisan-shell .as-glow,.artisan-shell .as-rare{animation:none}.artisan-shell .as-float{animation-duration:.01s}}
/* Refining at the site's station (build list step 7) */
.artisan-shell .as-station{display:grid;gap:10px;margin-top:12px;padding:14px}
.artisan-shell .as-station>p{margin:0;color:#d5dfe8}
.artisan-shell .as-station h4{margin:4px 0 0;font:600 1rem Georgia,serif;color:#f2d497}.artisan-shell .as-station h4 small{font:400 .8125rem system-ui,sans-serif;color:#a9b4bf;margin-left:6px}
.artisan-shell .as-steps,.artisan-shell .as-queue{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.artisan-shell .as-step-row{display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:center;padding:8px 10px;border:1px solid #b59a6733;border-radius:8px;background:#0c1520}
.artisan-shell .as-step-pics{display:flex;align-items:center;gap:4px}.artisan-shell .as-step-pics i{color:#f0ce83;font-style:normal;font-size:1.25rem}
.artisan-shell .as-step-text{display:grid;gap:2px;min-width:0}.artisan-shell .as-step-text b{color:#f2e6c8}.artisan-shell .as-step-text small{color:#a9b4bf;font-size:.8125rem}
.artisan-shell .as-step-act{display:flex;gap:6px;align-items:center}
.artisan-shell .as-step-act select,.artisan-shell .as-step-act input{min-height:36px;padding:4px 8px;border:1px solid #b59a6766;border-radius:6px;background:#111c2b;color:#f2e6c8;font:inherit}
.artisan-shell .as-step-act input{width:88px}
.artisan-shell .as-queue li{display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:center;padding:8px 10px;border-radius:8px;background:#111c2b}
.artisan-shell .as-queue li>div{display:grid;gap:3px;min-width:0}.artisan-shell .as-queue b{color:#f2e6c8}.artisan-shell .as-queue small{color:#a9b4bf;font-size:.8125rem}
.artisan-shell .as-queue .as-bar i{transition:width 3.8s linear}
.artisan-shell .as-queue-empty{margin:0;color:#a9b4bf}
@media(max-width:700px){.artisan-shell .as-step-row{grid-template-columns:auto 1fr}.artisan-shell .as-step-act{grid-column:1/-1;justify-content:flex-end}.artisan-shell .as-step-act input{flex:0 0 88px}}
@media(prefers-reduced-motion:reduce){.artisan-shell .as-queue .as-bar i{transition:none}}
/* The Crafters' Hall (build list step 7): the door, the painting with the benches, the bench panel and the queue */
.artisan-shell .ah-note{margin:0;padding:8px 12px;border-left:3px solid #b59a67;background:#111c2b;color:#d5dfe8;border-radius:0 6px 6px 0}
.artisan-shell .ah-benches{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px}
.artisan-shell .ah-benches li{display:grid;gap:2px;padding:6px;border:1px solid #b59a6740;border-radius:8px;background:#0c1520}
.artisan-shell .ah-benches img{width:100%;aspect-ratio:3/1;object-fit:cover;border-radius:5px}
.artisan-shell .ah-benches b{color:#f2d497;font-size:.875rem}.artisan-shell .ah-benches small{color:#a9b4bf;font-size:.75rem}
.artisan-shell .ah-copies{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:8px}.artisan-shell .ah-copies li{display:grid;padding:6px 12px;border-radius:6px;background:#111c2b}.artisan-shell .ah-copies b{color:#f2e6c8}.artisan-shell .ah-copies small{color:#a9b4bf}
.artisan-shell .ah-door .uk-actions .uk-btn{min-width:200px}
.artisan-shell .ah-inside .as-site-top{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap}
.artisan-shell .ah-inside .as-site-top .uk-actions{margin:0;display:flex;gap:8px;flex-wrap:wrap}
/* The Hall as big as the hero's Town view (Pat, 28 Oct: "why is the craft hall so tiny sitting on the left"): the painting across the page, the bench
   below it. Before a bench is picked, and while your Artisan walks to one, the bench strip and a line stand in for the menu. */
.artisan-shell .ah-room{display:grid;grid-template-columns:1fr;gap:12px;align-items:start}
.artisan-shell .ah-stage{position:relative}
.artisan-shell .as-cam.ah-cam{aspect-ratio:3/2;max-height:none;cursor:default}.artisan-shell .as-cam.ah-cam>.as-site-art{width:100%}
@media(max-width:700px){.artisan-shell .as-cam.ah-cam{aspect-ratio:1/1;cursor:grab}.artisan-shell .as-cam.ah-cam>.as-site-art{width:175%}}
.artisan-shell .ah-pick{display:grid;gap:10px;justify-items:start}.artisan-shell .ah-pick p{margin:0}.artisan-shell .ah-pick .ah-strip{justify-self:stretch}
.artisan-shell .ah-pick[role=status]{grid-template-columns:auto 1fr;align-items:center}.artisan-shell .ah-pick-art{width:96px;height:64px;object-fit:cover;border-radius:6px;border:1px solid #b59a6788}
.artisan-shell .ah-zone{position:absolute;left:var(--u);top:var(--v);transform:translate(-50%,-150%);display:grid;justify-items:center;gap:0;padding:3px 8px;border:1px solid #b59a67aa;border-radius:6px;background:#09121bd9;color:#f2e6c8;font:600 .75rem system-ui;cursor:pointer;z-index:3;white-space:nowrap;min-height:28px}
.artisan-shell .ah-zone.is-below{transform:translate(-50%,40%)}.artisan-shell .ah-zone.is-covered{visibility:hidden}
.artisan-shell .ah-zone small{font-weight:400;color:#a9b4bf;font-size:.6875rem}
.artisan-shell .ah-zone.is-open,.artisan-shell .ah-zone:hover{border-color:#f0ce83;background:#2a2213e6;color:#ffe1aa}
.artisan-shell .ah-zone:focus-visible{outline:2px solid #f0ce83;outline-offset:2px}
.artisan-shell .ah-more{position:absolute;left:var(--u);top:var(--v);transform:translate(40%,-40%);padding:1px 6px;border-radius:4px;background:#09121bcc;color:#f0ce83;font:600 .6875rem system-ui;z-index:2}
.artisan-shell .as-actor.is-flip{transform:translate(-50%,-90%) scaleX(-1)}.artisan-shell .as-actor.is-flip em{transform:translateX(-50%) scaleX(-1)}
/* The gather cast bar at the Artisan's feet, over its name (public/artisan-shell.js cast()): it fills over each load, never mirrored. Blue, so it never reads
   as a node plate (gold); yours is brighter, edged gold like your name. */
.artisan-shell .as-cast{position:absolute;left:50%;bottom:calc(8% + 2px);display:none;width:56%;min-width:30px;height:5px;transform:translateX(-50%);border:1px solid #000c;border-radius:3px;background:#0d1720d9;overflow:hidden}
.artisan-shell .as-actor.is-casting>.as-cast{display:block}.artisan-shell .as-actor.is-flip>.as-cast{transform:translateX(-50%) scaleX(-1)}
.artisan-shell .as-cast>i{display:block;height:100%;background:linear-gradient(#bfe6ff,#4f97d6);transform-origin:left;animation:as-cast linear forwards}
.artisan-shell .as-actor.is-me>.as-cast{border-color:#b59a67}.artisan-shell .as-actor.is-me>.as-cast>i{background:linear-gradient(#e3f5ff,#6cb6f0)}
@keyframes as-cast{from{transform:scaleX(0)}to{transform:scaleX(1)}}
.artisan-shell .ah-right{display:grid;gap:10px;min-width:0}
.artisan-shell .ah-strip{display:grid;grid-template-columns:repeat(6,1fr);gap:6px}
.artisan-shell .ah-strip button{display:grid;gap:3px;padding:4px;border:1px solid #b59a6740;border-radius:8px;background:#0c1520;color:#f2e6c8;font:600 .75rem system-ui;cursor:pointer;text-align:center;min-height:44px}
.artisan-shell .ah-strip button[aria-pressed="true"]{border-color:#f0ce83;background:#2a2213}
.artisan-shell .ah-strip img{width:100%;aspect-ratio:2/1;object-fit:cover;border-radius:5px}
.artisan-shell .ah-strip span{display:grid;line-height:1.2}.artisan-shell .ah-strip small{font-weight:400;color:#a9b4bf;font-size:.6875rem}
.artisan-shell .ah-bench{display:grid;gap:10px;padding:0 0 14px;overflow:hidden}
.artisan-shell .ah-bench>*:not(.ah-bench-art){margin-left:14px;margin-right:14px}
.artisan-shell .ah-bench-art{width:100%;height:110px;object-fit:cover;display:block}
.artisan-shell .ah-bench-head{display:grid;gap:2px}.artisan-shell .ah-bench-head h3{margin:0;font:600 1.125rem Georgia,serif;color:#ffe1aa}.artisan-shell .ah-bench-head small{color:#a9b4bf}
.artisan-shell .ah-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin:0 14px}
.artisan-shell .ah-work{display:grid;grid-template-columns:1fr;gap:10px}
.artisan-shell .ah-recipes{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.artisan-shell .ah-recipe{width:100%;display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:center;padding:6px 10px;border:1px solid #b59a6733;border-radius:8px;background:#0c1520;color:#d5dfe8;text-align:left;cursor:pointer;min-height:48px;font:inherit}
.artisan-shell .ah-recipe span{display:grid;gap:1px;min-width:0}.artisan-shell .ah-recipe b{color:#f2e6c8;font-size:.9375rem}.artisan-shell .ah-recipe small{color:#a9b4bf;font-size:.8125rem}
.artisan-shell .ah-recipe.is-short small{color:#ff9d8a}
.artisan-shell .ah-recipe.is-next{opacity:.55;filter:grayscale(.6)}
.artisan-shell .ah-recipe.is-picked{border-color:#f0ce83;background:#1d2533}
.artisan-shell .ah-recipe:focus-visible{outline:2px solid #f0ce83;outline-offset:1px}
.artisan-shell .ah-new{font-style:normal;font-size:.6875rem;padding:1px 5px;margin-left:4px;border-radius:4px;background:#f0ce83;color:#1b1408;vertical-align:1px}
.artisan-shell .ah-dot{width:10px;height:10px;border-radius:50%;background:#7c8794}.artisan-shell .ah-dot.is-gold{background:#f0ce83}.artisan-shell .ah-dot.is-green{background:#6fd17a}.artisan-shell .ah-dot.is-blue{background:#5aa7ff}.artisan-shell .ah-dot.is-grey{background:#7c8794}
.artisan-shell .ah-lock{width:12px;height:14px;border:2px solid #a9b4bf;border-radius:3px;position:relative}.artisan-shell .ah-lock::before{content:"";position:absolute;left:1px;top:-8px;width:6px;height:6px;border:2px solid #a9b4bf;border-bottom:0;border-radius:5px 5px 0 0}
.artisan-shell .ah-ahead{margin:0;color:#a9b4bf;font-size:.8125rem}
.artisan-shell .ah-older summary{cursor:pointer;color:#d5dfe8;font-size:.875rem;padding:6px 0}
.artisan-shell .ah-pic{width:36px;height:36px;flex:none;object-fit:contain}
.artisan-shell .ah-ws{display:inline-block;width:var(--s,36px);height:var(--s,36px)}.artisan-shell .ah-ws .workshop-art{display:block;width:100%;height:100%;position:relative}.artisan-shell .ah-ws svg,.artisan-shell .ah-ws img{width:100%;height:100%;display:block}.artisan-shell .ah-ws b{position:absolute;right:0;bottom:0;font-size:.625rem;padding:0 3px;border-radius:3px;background:#09121bcc;color:#f2e6c8}
.artisan-shell .ah-card{display:grid;gap:10px;margin-top:6px;padding:12px;border:1px solid #b59a6766;border-radius:8px;background:#111c2b}
.artisan-shell .ah-card-head{display:flex;gap:10px;align-items:center}.artisan-shell .ah-card-head .ah-pic{width:56px;height:56px}.artisan-shell .ah-card-head h4{margin:0;font:600 1rem Georgia,serif;color:#ffe1aa}.artisan-shell .ah-card-head small{color:#a9b4bf}
.artisan-shell .ah-needs{list-style:none;margin:0;padding:0;display:grid;gap:4px}
.artisan-shell .ah-needs li{display:grid;grid-template-columns:28px 1fr auto auto;gap:8px;align-items:center;font-size:.875rem;color:#d5dfe8}
.artisan-shell .ah-needs b{color:#f2e6c8}.artisan-shell .ah-needs small{color:#a9b4bf;min-width:76px;text-align:right}
.artisan-shell .ah-needs li.is-short small,.artisan-shell .ah-needs li.is-short b{color:#ff9d8a}
.artisan-shell .ah-hero-mat{width:28px;height:28px;border-radius:50%;border:1px dashed #b59a67;display:block}
.artisan-shell .ah-margin,.artisan-shell .ah-odds-text{margin:0;color:#a9b4bf;font-size:.8125rem}
.artisan-shell .ah-odds{display:flex;height:10px;border-radius:5px;overflow:hidden;background:#1d2a3a}
.artisan-shell .ah-facts{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:0}.artisan-shell .ah-facts div{display:grid}.artisan-shell .ah-facts dt{color:#a9b4bf;font-size:.75rem}.artisan-shell .ah-facts dd{margin:0;color:#f2e6c8}
.artisan-shell .ah-order{display:flex;gap:8px;align-items:end;flex-wrap:wrap}
.artisan-shell .ah-order label{display:grid;gap:3px;color:#a9b4bf;font-size:.75rem}
.artisan-shell .ah-order input,.artisan-shell .ah-order select{min-height:40px;padding:4px 8px;border:1px solid #b59a6766;border-radius:6px;background:#0c1520;color:#f2e6c8;font:inherit;font-size:.875rem}
.artisan-shell .ah-order input{width:88px}
.artisan-shell .ah-order .uk-btn-primary{min-width:120px}
/* Artisan QA, 1 Nov: each choice row (Common ones, and the combat material when practice is on) gets its own line, so the Queue button never sits on a chip at phone width */
.artisan-shell .ah-order .as-chipset{flex:1 1 100%}
.artisan-shell .ah-hint{margin:0;color:#a9b4bf}
.artisan-shell .ah-queue-wrap h4{margin:0 0 6px;font:600 1rem Georgia,serif;color:#f2d497}.artisan-shell .ah-queue-wrap h4 small{font:400 .8125rem system-ui,sans-serif;color:#a9b4bf;margin-left:6px}
.artisan-shell .ah-queue{list-style:none;margin:0 0 6px;padding:0;display:grid;gap:6px}
.artisan-shell .ah-queue li{display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:center;padding:8px 10px;border-radius:8px;background:#111c2b}
.artisan-shell .ah-queue li>div{display:grid;gap:3px;min-width:0}.artisan-shell .ah-queue b{color:#f2e6c8}.artisan-shell .ah-queue small{color:#a9b4bf;font-size:.8125rem}
.artisan-shell .ah-queue .ah-pic{width:32px;height:32px}
.artisan-shell .ah-queue .as-bar i{transition:width 3.8s linear}
.artisan-shell .ah-done{border:1px solid #6fd17a66}
@media(max-width:1100px){.artisan-shell .ah-room{grid-template-columns:1fr}.artisan-shell .ah-stage{position:relative;top:0}}
@media(max-width:700px){.artisan-shell .ah-strip{grid-template-columns:repeat(3,1fr)}.artisan-shell .ah-zone{transform:translate(-50%,-130%);padding:2px 5px;font-size:.625rem;min-height:24px}.artisan-shell .ah-zone small{display:none}.artisan-shell .ah-needs li{grid-template-columns:28px 1fr auto}.artisan-shell .ah-needs small{grid-column:2/-1;text-align:left}.artisan-shell .ah-bench-art{height:80px}}
@media(prefers-reduced-motion:reduce){.artisan-shell .ah-queue .as-bar i{transition:none}}
.artisan-shell .ah-stage .as-actor{width:11cqw}
/* Gear screen (build list step 8, public/artisan-gear-page.js): the UI kit doll with the hat and coat left, gloves and boots right, the ten tools below. */
.artisan-shell .ag-page{display:grid;gap:12px}
.artisan-shell .ag-doll .uk-doll-art{min-height:300px}
.artisan-shell .ag-doll .ag-body{position:relative;left:auto;top:auto;align-self:end;width:min(300px,100%);transform:none;transition:none}
.artisan-shell .ag-slot>img{display:block;width:100%;height:100%;object-fit:contain}
.artisan-shell .ag-slot>img.ag-ghost{opacity:.28;filter:grayscale(1)}
.artisan-shell .ag-rack-head{margin:4px 0 0;font:700 .78rem/1.3 var(--uk-sans,sans-serif);letter-spacing:.1em;text-transform:uppercase;color:var(--uk-gold-text,#e6c98a)}
.artisan-shell .ag-rack{--uk-slot:68px;display:flex;flex-wrap:wrap;gap:8px}
.artisan-shell .ag-panel,.artisan-shell .ag-stats,.artisan-shell .ag-chest{display:grid;gap:10px}
/* The stat sheet: skill chips, the skill's headline, then one row per stat with a bar toward its cap and its sources. */
.artisan-shell .ag-stat-skills{display:flex;flex-wrap:wrap;gap:6px}.artisan-shell .ag-stat-skills .uk-chip{min-height:44px}.artisan-shell .ag-stat-skills small{margin-left:4px;opacity:.75}.artisan-shell .ag-stat-skills .uk-chip[aria-pressed="true"]{border-color:var(--uk-gold-hi,#f0ce83);background:#2b3a52;color:var(--uk-gold-text,#e6c98a)}
.artisan-shell .ag-stat-head{display:flex;justify-content:space-between;gap:12px;padding:10px 12px;border:1px solid #b59a6740;border-radius:8px;background:#0c1520}.artisan-shell .ag-stat-head b{display:block;font-family:var(--uk-display,Georgia,serif);font-size:1.15rem;color:var(--uk-gold-text,#e6c98a)}.artisan-shell .ag-stat-head small{color:var(--uk-muted,#aab6c3)}.artisan-shell .ag-stat-head>div:last-child{text-align:right}
.artisan-shell .ag-stat-list{list-style:none;margin:0;padding:0;display:grid;gap:6px}.artisan-shell .ag-stat details{border:1px solid #b59a6733;border-radius:8px;background:#0c152099}.artisan-shell .ag-stat summary{display:grid;grid-template-columns:1fr auto;gap:4px 12px;align-items:center;padding:10px 12px;cursor:pointer;list-style:none;min-height:44px}.artisan-shell .ag-stat summary::-webkit-details-marker{display:none}
.artisan-shell .ag-stat-name{font-weight:600}.artisan-shell .ag-stat-name::before{content:'▸';display:inline-block;width:1em;color:var(--uk-muted,#aab6c3);transition:transform .15s}.artisan-shell .ag-stat details[open] .ag-stat-name::before{transform:rotate(90deg)}.artisan-shell .ag-stat-val{font-variant-numeric:tabular-nums;color:#f3dfae}.artisan-shell .ag-stat .uk-progress{grid-column:1/-1;height:6px}.artisan-shell .ag-stat-cap{grid-column:1/-1;color:var(--uk-muted,#aab6c3);font-size:.75rem}
.artisan-shell .ag-stat.is-capped .ag-stat-cap{color:#f0b46a}.artisan-shell .ag-stat.is-zero .ag-stat-val{color:var(--uk-muted,#aab6c3)}.artisan-shell .ag-stat-hint{margin:0 12px 6px;color:var(--uk-muted,#aab6c3);font-size:.8125rem}
/* A skill's stats pop-up (public/artisan-gear-page.js statPop): each stat a plain block, sources listed under it; no drop-downs. */
.artisan-shell .ag-stat-pop .item-inspector{max-width:560px}.artisan-shell .ag-stat-pop .inventory-scroll{display:grid;gap:10px}
.artisan-shell .ag-stat-pop .ag-stat{border:1px solid #b59a6733;border-radius:8px;background:#0c152099;padding-bottom:4px}
.artisan-shell .ag-stat-top{display:grid;grid-template-columns:1fr auto;gap:4px 12px;align-items:center;padding:10px 12px 6px}
.artisan-shell .ag-stat-pop .ag-stat-name::before{content:none}
.artisan-shell .ag-src{list-style:none;margin:0 12px 10px;padding:0;display:grid;gap:2px}.artisan-shell .ag-stats>.ag-src{margin:0}.artisan-shell .ag-src li{display:flex;justify-content:space-between;gap:12px;padding:4px 0;border-bottom:1px solid #ffffff12;font-size:.875rem}.artisan-shell .ag-src li b{font-variant-numeric:tabular-nums;color:#cfe3b8;text-align:right}.artisan-shell .ag-src-none{margin:0 12px 10px;color:var(--uk-muted,#aab6c3);font-size:.8125rem}
.artisan-shell .ag-panel h3 small,.artisan-shell .ag-chest h3 small{font:600 .85rem/1 var(--uk-sans,sans-serif);color:var(--uk-ivory-dim,#c9bda5)}
.artisan-shell .ag-sub{margin:4px 0 0;font:700 .78rem/1.3 var(--uk-sans,sans-serif);letter-spacing:.1em;text-transform:uppercase;color:var(--uk-gold-text,#e6c98a)}
.artisan-shell .ag-worn{display:grid;grid-template-columns:auto 1fr auto;gap:12px;align-items:start;padding:10px;border:1px solid var(--uk-rarity);border-radius:8px;background:#111c2b}
.artisan-shell .ag-worn h4{margin:0;font:600 1.05rem/1.2 var(--uk-serif,serif)}
.artisan-shell .ag-worn small{color:var(--uk-ivory-dim,#c9bda5)}
.artisan-shell .ag-bonuses{display:grid;gap:2px;margin:4px 0 0;padding:0;list-style:none;font:600 .82rem/1.35 var(--uk-sans,sans-serif);color:#bfe3a8}
.artisan-shell .ag-bonuses li.is-base{color:var(--uk-ivory,#f4ead6)}
.artisan-shell .ag-grade{font-weight:700}
.artisan-shell .ag-grade.is-common{color:var(--uk-rarity-common)}.artisan-shell .ag-grade.is-superior{color:var(--uk-rarity-superior)}.artisan-shell .ag-grade.is-rare{color:var(--uk-rarity-rare)}.artisan-shell .ag-grade.is-epic{color:var(--uk-rarity-epic)}.artisan-shell .ag-grade.is-heroic{color:var(--uk-rarity-heroic)}
.artisan-shell .ag-piece .uk-row-main{align-items:flex-start}
.artisan-shell .ag-piece .uk-row-media img{object-fit:contain;object-position:center}
.artisan-shell .ag-piece .uk-btn.is-armed{border-color:var(--uk-rarity-heroic);color:var(--uk-rarity-heroic)}
.artisan-shell .ag-hint,.artisan-shell .ag-empty{margin:0;color:var(--uk-ivory-dim,#c9bda5)}
.artisan-shell .ag-salvaged{margin:0;padding:8px 10px;border-radius:6px;background:#1d3324;color:#bfe3a8}
.artisan-shell .ag-commons>summary{cursor:pointer;min-height:44px;display:flex;align-items:center;font-weight:600}
.artisan-shell .ag-commons>.uk-row-list{margin-top:8px}
@media(max-width:480px){.artisan-shell .ag-rack{--uk-slot:48px;gap:5px}.artisan-shell .ag-worn{grid-template-columns:auto 1fr}.artisan-shell .ag-worn>.uk-btn{grid-column:1/-1}.artisan-shell .ag-doll .uk-doll-art{min-height:260px}}
/* Quests screen and the First Commission coach (build list step 9, public/artisan-quests-page.js). */
.artisan-shell .aq-coach{display:grid;grid-template-columns:auto minmax(0,1fr);gap:10px 14px;align-items:start;border-color:var(--uk-gold-hi,#f0ce83);box-shadow:0 0 0 1px #f0ce8340,0 0 18px #d6b57530}
.artisan-shell .aq-coach>img{width:40px;height:40px}
.artisan-shell .aq-coach-text{display:grid;gap:4px;min-width:0}
.artisan-shell .aq-coach-text small{font:700 .72rem/1.3 var(--uk-sans,sans-serif);letter-spacing:.1em;text-transform:uppercase;color:var(--uk-gold-text,#e6c98a)}
.artisan-shell .aq-coach-text b{font:600 1.1rem/1.2 var(--uk-serif,serif)}
.artisan-shell .aq-coach-text p{margin:0;color:var(--uk-ivory-dim,#c9bda5)}
.artisan-shell .aq-coach-bar{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px}
.artisan-shell .aq-coach-bar .as-bar{flex:1 1 160px;max-width:320px}
.artisan-shell .aq-coach-bar em{font-style:normal;font-weight:600;color:var(--uk-gold-text,#e6c98a)}.artisan-shell .aq-coach-bar em.is-done{color:#9ae867}
.artisan-shell .aq-coach-actions{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:8px}
.artisan-shell .aq-coach-actions .uk-btn{flex:1 1 150px}
/* Skip is a quiet text link, so the gold Go button (or nothing) is what the eye lands on (Pat, 26 Oct: every button the same colour). */
.artisan-shell .aq-coach-actions .aq-link{flex:0 0 auto;min-height:36px;padding:4px 8px;border:0;background:none;box-shadow:none;color:var(--uk-ivory-dim,#c9bda5);font:600 .875rem/1.2 var(--uk-sans,sans-serif);text-decoration:underline;text-decoration-color:#b8955a80;text-underline-offset:3px;cursor:pointer}
.artisan-shell .aq-coach-actions .aq-link:hover,.artisan-shell .aq-coach-actions .aq-link:focus-visible{color:var(--uk-gold-text,#e6c98a)}
.artisan-shell .aq-coach-actions .aq-link:disabled{opacity:.5;cursor:default}
.artisan-shell .aq-coach-actions{align-items:center}
.artisan-shell .aq-goals{margin-bottom:12px}
.artisan-shell .as-head-art{width:48px;height:48px;flex-basis:48px}
@media(max-width:699px){.artisan-shell .aq-goals.uk-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.artisan-shell .aq-goals.uk-tabs>.uk-tab{width:auto;min-width:0}.artisan-shell .aq-coach-actions .uk-btn{flex-basis:100%}}
.artisan-shell .uk-tab.is-coach{outline:3px solid var(--uk-gold-hi,#f0ce83);outline-offset:2px;animation:aq-pulse 1.6s ease-in-out infinite}
@keyframes aq-pulse{50%{outline-color:#f0ce8340}}
.artisan-shell .aq-steps ol{display:grid;gap:6px;margin:0;padding:0;list-style:none;counter-reset:aq}
.artisan-shell .aq-steps li{counter-increment:aq;display:grid;grid-template-columns:32px 1fr;column-gap:10px;align-items:center;padding:6px 8px;border-radius:6px;background:#111c2b;color:var(--uk-ivory-dim,#c9bda5)}
.artisan-shell .aq-steps li::before{content:counter(aq);grid-row:span 2;display:grid;place-items:center;width:28px;height:28px;border:1px solid #b59a6766;border-radius:50%;font-weight:700}
.artisan-shell .aq-steps li.is-done::before{content:"\2713";border-color:#7fc58a;color:#9ae867}
.artisan-shell .aq-steps li.is-now{background:#24364e;color:var(--uk-ivory,#f4ead6);box-shadow:inset 3px 0 0 var(--uk-gold-hi,#f0ce83)}
.artisan-shell .aq-steps li small{font-size:.8rem}
.artisan-shell .aq-list,.artisan-shell .aq-tree{display:grid;gap:10px}
.artisan-shell .aq-list h3 small,.artisan-shell .aq-tree h3 small{font:600 .85rem/1.3 var(--uk-sans,sans-serif);color:var(--uk-ivory-dim,#c9bda5)}
.artisan-shell .aq-goal .as-bar{flex:1 1 auto}
.artisan-shell .aq-claimed{font-weight:700;color:#9ae867}
.artisan-shell .aq-wings{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:10px}
.artisan-shell .aq-wing h4{margin:0 0 6px;font:700 .78rem/1.3 var(--uk-sans,sans-serif);letter-spacing:.1em;text-transform:uppercase;color:var(--uk-gold-text,#e6c98a)}
.artisan-shell .aq-wing ul{display:grid;gap:6px;margin:0;padding:0;list-style:none}
.artisan-shell .aq-node{display:grid;gap:4px;padding:8px 10px;border:1px solid #b59a6766;border-radius:8px;background:#111c2b}
.artisan-shell .aq-node.has-rank{border-color:var(--uk-gold-hi,#f0ce83)}
.artisan-shell .aq-node.is-later{opacity:.62}
.artisan-shell .aq-node b small{font-weight:600;color:var(--uk-ivory-dim,#c9bda5)}
.artisan-shell .aq-node p{margin:0;font-size:.85rem;color:var(--uk-ivory-dim,#c9bda5)}
.artisan-shell .aq-opens{font:600 .8rem/1.3 var(--uk-sans,sans-serif);color:var(--uk-ivory-dim,#c9bda5)}.artisan-shell .aq-opens.is-done{color:#9ae867}
.artisan-shell .aq-done b{font:600 1.1rem/1.2 var(--uk-serif,serif)}
@media(prefers-reduced-motion:reduce){.artisan-shell .uk-tab.is-coach{animation:none}}
.artisan-shell .aq-goal em{flex:0 0 auto;min-width:9em;font-style:normal;color:var(--uk-ivory,#f4ead6)}
/* On the step's own tab the coach stays in view while the page scrolls (a short card: the title, the count and the buttons). */
.artisan-shell .aq-coach.is-compact{padding:8px 12px;gap:6px 10px;background:linear-gradient(150deg,#1c2b40f2,#101a2bf2)}
/* The step's how-to stays on the page it happens on (Pat, 26 Oct: each screen is explained the first time it is used), a size smaller. With the text it
   no longer sticks to the top: stuck, it covered the recipe and station it was pointing at. */
.artisan-shell .aq-coach.is-compact .aq-coach-text p{font-size:.88rem;line-height:1.35}
.artisan-shell .aq-coach.is-compact .aq-coach-actions{grid-column:auto;grid-row:span 1}
@media(min-width:700px){.artisan-shell .aq-coach.is-compact{grid-template-columns:auto minmax(0,1fr) auto;align-items:center}.artisan-shell .aq-coach.is-compact .aq-coach-actions .uk-btn{flex:0 0 auto}}
@media(max-width:699px){.artisan-shell .aq-coach.is-compact .aq-coach-actions{grid-column:1/-1}.artisan-shell .aq-coach.is-compact .aq-quiet{display:none}}
.artisan-shell .as-site-wait{display:block;width:100%;aspect-ratio:3/2;background:#0c1723}
/* Town (build list step 10): Town Requests and the Trading Post */
.artisan-shell .at-list,.artisan-shell .at-post{display:grid;gap:10px}
.artisan-shell .at-requests{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:10px;margin:0;padding:0;list-style:none}
.artisan-shell .at-request{display:grid;grid-template-columns:72px 1fr;grid-template-areas:"face who" "want want" "pay pay";gap:10px;align-items:center;padding:12px;background:#111c2b}
.artisan-shell .at-request.is-ready{border-color:var(--uk-gold-hi,#f0ce83);box-shadow:0 0 0 1px #f0ce8355,0 0 18px #f0ce8322}
.artisan-shell .at-request.is-done{opacity:.7}
.artisan-shell .at-request .at-face{grid-area:face}
.artisan-shell .at-face{width:72px;height:72px;border-radius:50%;border:2px solid #b59a67;object-fit:cover;background:#0b1320}
.artisan-shell .at-who{grid-area:who;display:grid;gap:2px}
.artisan-shell .at-who b{font:700 1.05rem/1.2 var(--uk-serif,serif);color:var(--uk-gold-text,#e6c98a)}
.artisan-shell .at-who small,.artisan-shell .at-want small{color:var(--uk-ivory-dim,#c9bda5);font-size:.82rem}
.artisan-shell .at-want{grid-area:want;display:grid;grid-template-columns:44px 1fr;gap:10px;align-items:center;padding:8px;border-radius:6px;background:#0b1320}
.artisan-shell .at-want>div{display:grid;gap:3px;min-width:0}
.artisan-shell .at-have{display:flex;align-items:center;gap:8px}
.artisan-shell .at-have .as-bar{flex:1 1 auto}
.artisan-shell .at-pay{grid-area:pay;display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px}
.artisan-shell .at-pay>span{color:var(--uk-ivory-dim,#c9bda5);font-size:.9rem}
.artisan-shell .at-pay>span b{color:var(--uk-ivory,#f4ead6)}
.artisan-shell .at-pay .uk-btn,.artisan-shell .at-pay .aq-claimed{margin-left:auto}
.artisan-shell .at-post-head{display:grid;grid-template-columns:72px 1fr;gap:12px;align-items:center}
.artisan-shell .at-post-head p{margin:4px 0 0;color:var(--uk-ivory-dim,#c9bda5);font-size:.9rem}
.artisan-shell .at-cap{display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:center;font-size:.9rem}
.artisan-shell .at-sold{margin:0;padding:6px 10px;border-radius:6px;background:#1d3324;color:#c9f0b4}
.artisan-shell .at-sell .uk-row-foot{display:flex;gap:6px}
.artisan-shell .at-more{justify-self:start}
@media(max-width:540px){.artisan-shell .at-requests{grid-template-columns:1fr}.artisan-shell .at-request{grid-template-columns:56px 1fr}.artisan-shell .at-face{width:56px;height:56px}.artisan-shell .at-post-head{grid-template-columns:56px 1fr}.artisan-shell .at-pay .uk-btn{flex:1 1 100%;margin-left:0}}
.artisan-shell .at-sell{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px}
.artisan-shell .at-sell .uk-row-foot{margin:0;padding:0;border:0}
@media(max-width:540px){/* the character sheet's head only: a window's head (pageHead) keeps the hero's one row of numbers (play-test, 2 Nov) */:root .artisan-shell .as-head.uk-head:not(.as-page-head) .uk-stats.uk-stats{display:grid;grid-auto-flow:row;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 0}:root .artisan-shell .as-head.uk-head:not(.as-page-head) .uk-stats .uk-stat.uk-stat{justify-content:flex-end}/* Best skill takes the whole first row and breaks only between words: "Woodcutting 1" split as "Woodcutti / ng 1" at 390 (new-player QA, 1 Nov) */:root .artisan-shell .as-head.uk-head:not(.as-page-head) .uk-stats .uk-stat.uk-stat:first-child{grid-column:1/-1}:root .artisan-shell .as-head.uk-head:not(.as-page-head) .uk-stats .uk-stat:first-child dd{overflow-wrap:normal}.artisan-shell .at-sell .uk-row-foot{flex:1 1 100%}.artisan-shell .at-sell .uk-row-foot .uk-btn{flex:1 1 0}}
/* Auction House for Artisan goods (build list step 11) */
.artisan-shell .am-views{margin:0}
.artisan-shell .am-drawer{display:grid;gap:10px;padding:10px 12px 12px;border-top:1px solid var(--uk-navy-3,#2b3a52)}
/* Auction House in the hero look (.ah-page from public/ui-auction.css): a card whose Buy or Sell form is open takes the full width. */
.artisan-shell .am-lot:has(.am-drawer){grid-column:1/-1}
.artisan-shell .am-new{margin:0;color:var(--uk-gold-text,#e6c98a)}
.artisan-shell .am-sold{display:grid;gap:4px;margin:0;padding-left:18px;color:var(--uk-ivory-dim,#c9bda5)}
.artisan-shell .am-buy,.artisan-shell .am-sell{display:flex;flex-wrap:wrap;align-items:end;gap:10px}
.artisan-shell .am-buy .uk-field,.artisan-shell .am-sell .uk-field{width:160px}
.artisan-shell .am-quote{margin:0;font-size:.9rem;color:var(--uk-ivory,#f4ead6)}
.artisan-shell .am-drawer>.uk-btn{justify-self:start}
@media(max-width:540px){.artisan-shell .am-buy .uk-field,.artisan-shell .am-sell .uk-field{width:calc(50% - 5px)}.artisan-shell .am-drawer>.uk-btn{justify-self:stretch}}
/* Combat materials on the Bag (build list step 12, public/artisan-heroes-page.js) */
.artisan-shell .ah-hero{display:inline-block;width:var(--s);height:var(--s);flex:none}.artisan-shell .ah-hero .gear-icon{display:block;width:100%;height:100%;margin:0}
.artisan-shell .as-bag .ah-hero{width:48px;height:48px}
.artisan-shell .ar-heroes .uk-row{display:grid;gap:8px}.artisan-shell .ar-give{display:flex;flex-wrap:wrap;gap:8px;padding:0 12px 12px}
.artisan-shell .ar-take{display:inline-flex;align-items:center;gap:8px;min-height:44px}.artisan-shell .ar-take img,.artisan-shell .ar-take .ah-hero{width:28px;height:28px}
.artisan-shell .ar-where .uk-row-media img{width:40px;height:40px;object-fit:contain}
/* The Raid finder is a hero feature: while an Artisan is open it stays out of the way (on phones it covered the Artisan's tabs). */
body:has(.artisan-shell) .rf.rf-dock{display:none}
/* The Guild tab (build list step 13, public/artisan-guild-page.js). agd-: artisan guild (ag- is the Gear page). */
.artisan-shell .agd-sec{display:grid;gap:10px}
.artisan-shell .agd-head .as-wide-art{max-height:140px}
.artisan-shell .agd-views{margin:12px 0}
.artisan-shell .agd-cap{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:center;font-size:.9rem}
.artisan-shell .agd-quests,.uk-guild .agd-quests,.guild-page .agd-quests{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:10px}
.agd-quest{display:grid;grid-template-columns:auto 1fr;gap:6px 12px;align-items:center;padding:12px}
.agd-quest.is-done{opacity:.8;border-color:#5c8a4a}
.agd-quest-text{display:grid;gap:4px;min-width:0}
.agd-quest-text .as-bar{display:block;height:6px;border-radius:3px;background:#1d2a3a;overflow:hidden}
.agd-quest-text .as-bar i{display:block;height:100%;background:linear-gradient(90deg,#a8853f,#f2d497)}
.agd-pay,.agd-quest-foot{grid-column:1/-1;font-size:.9rem}
.agd-quest .as-icon{width:44px;height:44px}
.artisan-shell .agd-rooms{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:12px}
.artisan-shell .agd-room,.artisan-shell .agd-banner{display:grid;gap:10px;padding:12px;align-content:start}
.artisan-shell .agd-banner{grid-template-columns:64px 1fr;align-items:start}
.artisan-shell .agd-room.is-locked .agd-room-art{filter:grayscale(.8) brightness(.6)}
.artisan-shell .agd-banner.is-flying{border-color:#d7b25a;box-shadow:0 0 0 1px #d7b25a55}
.artisan-shell .agd-room-art{width:100%;height:auto;aspect-ratio:16/10;object-fit:cover;border-radius:6px}
.artisan-shell .agd-room-body{display:grid;gap:8px;min-width:0}
.artisan-shell .agd-room-body h4{margin:0;display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.artisan-shell .agd-room-body p{margin:0}
.agd-flying{margin:0;color:#f2d497}
.artisan-shell .agd-give,.agd-put{display:flex;flex-wrap:wrap;gap:8px;align-items:end}
.artisan-shell .agd-give label{flex:1 1 120px}
.artisan-shell .agd-give input,.agd-put input,.agd-put select{width:100%;min-height:44px;box-sizing:border-box}
.agd-put label{display:grid;gap:4px;flex:1 1 110px;font-size:.85rem}
.agd-put .uk-btn{flex:1 1 180px;min-height:44px}
.artisan-shell .agd-log{margin:0;padding-left:18px;display:grid;gap:4px;font-size:.88rem;opacity:.9}
.artisan-shell .agd-hand{display:flex;flex-wrap:wrap;gap:8px;padding:0 12px 12px}
.agd-hero{display:grid;gap:10px;margin-top:12px}
.agd-hero h4{margin:6px 0 0}
.agd-hero .uk-row-sub .as-bar,.agd-hero .uk-row-body .as-bar,.artisan-shell .uk-row-body .as-bar{display:block;height:6px;border-radius:3px;background:#1d2a3a;overflow:hidden;margin:4px 0}
.agd-hero .as-bar i{display:block;height:100%;background:linear-gradient(90deg,#a8853f,#f2d497)}
@media(max-width:540px){.artisan-shell .agd-views{grid-auto-flow:row;grid-template-columns:repeat(3,minmax(0,1fr))}.artisan-shell .agd-views>.uk-seg-btn{margin:0;border-radius:var(--uk-radius)}.artisan-shell .agd-rooms{grid-template-columns:1fr}.artisan-shell .agd-cap{grid-template-columns:1fr}}
.agd-cap{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:center;font-size:.9rem}
.agd-cap .as-bar{display:block;height:6px;border-radius:3px;background:#1d2a3a;overflow:hidden}
.agd-cap .as-bar i{display:block;height:100%;background:linear-gradient(90deg,#a8853f,#f2d497)}
.agd-hero .agd-put{display:grid;grid-template-columns:repeat(4,minmax(0,1fr)) minmax(160px,auto);gap:8px;align-items:end}
.agd-hero .agd-put label{display:grid;gap:4px;margin:0;font-size:.85rem}
.agd-hero .agd-put input{width:100%;margin:0}
.artisan-shell .agd-banner .as-icon{width:64px;height:64px}
.artisan-shell .agd-shelf .uk-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center}
.artisan-shell .agd-shelf .uk-row-foot{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end;padding:8px 12px}
@media(min-width:1100px){.artisan-shell .as-tabs{display:grid;grid-template-columns:repeat(10,minmax(0,1fr))}.artisan-shell .as-tabs .uk-tab{margin:0}}
@media(max-width:540px){.artisan-shell .agd-head .uk-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 0}.artisan-shell .agd-views{grid-template-columns:repeat(6,minmax(0,1fr))}.artisan-shell .agd-views>.uk-seg-btn{grid-column:span 2}.artisan-shell .agd-shelf .uk-row{grid-template-columns:1fr}.artisan-shell .agd-shelf .uk-row-foot{justify-content:flex-start}.agd-hero .agd-put{grid-template-columns:1fr 1fr}.agd-hero .agd-put .uk-btn{grid-column:1/-1}}
@media(max-width:540px){:root .artisan-shell .agd-head .uk-stats.uk-stats{display:grid;grid-auto-flow:row;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 0}:root .artisan-shell .agd-head .uk-stats .uk-stat.uk-stat{border:0}}
/* Artisan charms and runes (public/artisan-trinkets.js): each kind has its own painted charm or rune (ChatGPT item 90), drawn like any item icon.
   Not scoped to the shell, as the hero Guild page and the Auction House show them too. */
.at-glyph{box-sizing:border-box;object-fit:contain;padding:4%;filter:drop-shadow(0 1px 2px #000a)}
.artisan-shell .at-slot>img.at-glyph,.artisan-shell .at-row .uk-row-media>img.at-glyph,.artisan-shell .at-worn .uk-row-media>img.at-glyph{display:block;width:100%;height:100%}
.artisan-shell .at-slot .at-empty{display:grid;place-items:center;width:100%;height:100%;font:700 1.4rem/1 var(--uk-sans,sans-serif);color:#ffffff40}
.artisan-shell .at-slot.is-charm.is-empty{border-radius:50%}
.artisan-shell .at-slot.is-locked .at-empty{font-size:1rem;opacity:.7}
.artisan-shell .at-slot.is-locked{opacity:.65}
.agd-charms{display:grid;gap:8px}
.agd-charms .uk-row-media>img.at-glyph{width:44px;height:44px}
/* Unique tools (public/artisan-mimic.js) and the Rare Mimic Chest on a site's map. */
.uk-r-unique{--uk-rarity:#c39bff}
.artisan-shell .ag-grade.is-unique{color:#c39bff}
.artisan-shell .ag-bonuses .is-special{color:#d9c2ff;font-style:italic}
.artisan-shell .as-mimic{position:absolute;left:var(--u);top:var(--v);width:clamp(40px,6%,72px);aspect-ratio:1;transform:translate(-50%,-78%);border:0;padding:0;background:url(/assets/artisan/icons/mimic-chest-closed.webp) center/contain no-repeat;cursor:pointer;pointer-events:auto;z-index:6;filter:drop-shadow(0 0 3px #f4cf6a) drop-shadow(0 0 10px #f4cf6aaa);animation:as-mimic-peek 2.6s ease-in-out infinite}
/* A glint over the lid (the rare spawn's painted sparkle) so a sharp eye spots it in its 5 minutes. */
.artisan-shell .as-mimic::after{content:'';position:absolute;left:50%;top:10%;width:70%;aspect-ratio:1;transform:translate(-50%,-50%);background:url(/assets/artisan/fx/fx-gem-glint.webp) 0 0/800% 100% no-repeat;animation:as-glow 1s steps(8) infinite;pointer-events:none}
.artisan-shell .as-mimic:focus-visible{outline:2px solid #f4cf6a;outline-offset:3px;border-radius:8px}
@keyframes as-mimic-peek{0%,82%,100%{transform:translate(-50%,-78%) rotate(0)}86%{transform:translate(-50%,-80%) rotate(-4deg)}90%{transform:translate(-50%,-78%) rotate(4deg)}94%{transform:translate(-50%,-79%) rotate(0)}}
@media (prefers-reduced-motion:reduce){.artisan-shell .as-mimic,.artisan-shell .as-mimic::after{animation:none}}
.artisan-shell .as-mimic-won{display:grid;grid-template-columns:96px 1fr;gap:12px;align-items:center}
.artisan-shell .as-mimic-won img.as-mimic-art{width:96px;height:96px;object-fit:contain}
.artisan-shell .as-mimic-won .as-welcome-items{grid-column:1/-1}
.artisan-shell .as-unique-found{display:flex;gap:10px;align-items:center;padding:8px 10px;border:1px solid #c39bff66;border-radius:8px;background:#2a1f3d88;grid-column:1/-1}
.artisan-shell .as-unique-found img{width:48px;height:48px}
.artisan-shell .as-unique-found b,.artisan-shell .as-unique-found small{display:block}.artisan-shell .as-unique-found small{margin-top:2px;color:var(--uk-muted,#c9c2b4)}
/* The weekly challenge boards on the Quests tab (build list step 15, public/artisan-challenge-page.js). */
.artisan-shell .ac-board{display:grid;gap:10px}
.artisan-shell .ac-skills{display:flex;flex-wrap:wrap;gap:6px}
.artisan-shell .ac-skill{cursor:pointer;min-height:36px;display:inline-flex;gap:6px;align-items:center}
.artisan-shell .ac-skill small{color:var(--uk-gold-text,#e6c98a);font-weight:600}
.artisan-shell .ac-skill[aria-pressed="true"]{border-color:var(--uk-gold-hi,#f0ce83);background:#2b3a52;color:var(--uk-gold-text,#e6c98a)}
.artisan-shell .ac-me{margin:0;padding:8px 10px;border:1px solid #f0ce8340;border-radius:8px;background:#1b2638}
.artisan-shell .ac-rows{counter-reset:none}
.artisan-shell .ac-row{display:grid;grid-template-columns:32px 40px 1fr auto;gap:10px;align-items:center;padding:6px 10px}
.artisan-shell .ac-row.is-me{border-color:var(--uk-gold-hi,#f0ce83);background:#2a3346}
.artisan-shell .ac-rank{font:600 1.05rem/1 var(--uk-serif,Georgia,serif);color:#c9c2b4;text-align:center}
.artisan-shell .ac-row.is-top .ac-rank{color:var(--uk-gold-text,#e6c98a)}
.artisan-shell .ac-face{width:40px;height:40px;border-radius:50%;object-fit:cover;background:#0e1522;border:1px solid #f0ce8355}
.artisan-shell .ac-name{display:grid;min-width:0}.artisan-shell .ac-name b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.artisan-shell .ac-name small{color:#aab6c4;font-size:.75rem}
.artisan-shell .ac-pts{font-weight:600;color:#f2e6c8;white-space:nowrap}.artisan-shell .ac-pts small{color:#aab6c4;font-weight:400}
.artisan-shell .ac-bands summary{cursor:pointer;color:var(--uk-gold-text,#e6c98a);font-weight:600;min-height:32px;display:flex;align-items:center}
.artisan-shell .ac-bands table{width:100%;margin-top:6px}.artisan-shell .ac-bands th{text-align:left}.artisan-shell .ac-bands td small{color:#aab6c4}
.artisan-shell .ac-last{margin:0;color:#c9c2b4;font-size:.875rem}
.artisan-shell .ac-reward{display:grid;grid-template-columns:minmax(0,220px) 1fr;gap:14px;align-items:start;border-color:var(--uk-gold-hi,#f0ce83)}
.artisan-shell .ac-reward-art{width:100%;border-radius:6px;object-fit:cover;max-height:140px}
.artisan-shell .ac-paid{margin-bottom:10px}.artisan-shell .ac-paid p{margin:0 0 6px}.artisan-shell .ac-reward .uk-actions{justify-content:flex-start}.artisan-shell .ac-reward .uk-actions .uk-btn{width:auto;min-width:160px}
.artisan-shell .ac-title{display:inline-block;padding:1px 8px;border:1px solid var(--uk-gold-hi,#f0ce83);border-radius:999px;background:#3a2d12;color:var(--uk-gold-text,#e6c98a);font-size:.75rem;font-weight:600;letter-spacing:.02em}
@media(max-width:540px){.artisan-shell .ac-reward{grid-template-columns:1fr}.artisan-shell .ac-row{grid-template-columns:26px 32px 1fr auto;gap:8px;padding:6px 8px}.artisan-shell .ac-face{width:32px;height:32px}.artisan-shell .ac-skill{min-height:34px;padding:4px 10px}}
/* Gathering Realms and the four Ancients (build list step 16, public/artisan-realm-page.js). */
.artisan-shell .ar-call{display:grid;grid-template-columns:120px 1fr auto;gap:12px;align-items:center;border-color:var(--uk-gold-hi,#f0ce83);box-shadow:0 0 18px #f0ce8333}
.artisan-shell .ar-call img{width:120px;height:72px;object-fit:cover;border-radius:6px}
/* Its Hide is for the full-screen site and map only (artisan-hud.css). */
.ar-call-hide{display:none}
/* Stirring (the 10-minute heads-up): the same card, quieter, with no Join yet. */
.artisan-shell .ar-call.is-stirring{grid-template-columns:120px 1fr;border-color:var(--uk-line,#5a4a2a);box-shadow:none}
.artisan-shell .ar-call.is-stirring img{filter:saturate(.6) brightness(.8)}
.artisan-shell .ar-call b{display:block;color:var(--uk-gold-text,#e6c98a);font:600 1.05rem/1.25 var(--uk-serif,Georgia,serif)}
.artisan-shell .ar-call small{display:block;color:#c9c2b4;margin-top:2px}
.artisan-shell .ar-hud{display:grid;gap:8px;margin-bottom:10px}
.artisan-shell .ar-life{position:relative;height:26px;border:1px solid #f0ce8366;border-radius:6px;background:#0e1522;overflow:hidden}
.artisan-shell .ar-life i{position:absolute;inset:0 auto 0 0;background:linear-gradient(90deg,#6f8f3a,#b7c95a);transition:width .6s ease}
.artisan-shell .ar-life b{position:relative;display:block;text-align:center;line-height:24px;font-size:.8125rem;color:#fff;text-shadow:0 1px 2px #000}
.artisan-shell .ar-stats dd small{color:#aab6c4;font-size:.75rem}
.artisan-shell .ar-stage .as-actor{width:7cqw}
.artisan-shell .ar-panel p{margin:0 0 8px}
.artisan-shell .ar-top{list-style:none;margin:0 0 8px;padding:0;display:flex;flex-wrap:wrap;gap:6px 16px}
.artisan-shell .ar-top li{display:flex;gap:6px;align-items:baseline}.artisan-shell .ar-top span{color:var(--uk-gold-text,#e6c98a);font-weight:700}.artisan-shell .ar-top small{color:#aab6c4}
.artisan-shell .ar-won{display:grid;grid-template-columns:140px 1fr;gap:12px;align-items:center}
.artisan-shell .ar-won .ar-won-art{width:140px;height:94px;object-fit:cover;border-radius:6px}
.artisan-shell .ar-won .uk-actions{grid-column:1/-1;justify-content:flex-start}.artisan-shell .ar-won .uk-actions .uk-btn{width:auto;min-width:160px}
@media(max-width:540px){.artisan-shell .ar-call{grid-template-columns:72px 1fr}.artisan-shell .ar-call img{width:72px;height:56px}.artisan-shell .ar-call .uk-btn{grid-column:1/-1;width:100%}.artisan-shell .ar-stage .as-actor{width:9cqw}.artisan-shell .ar-won{grid-template-columns:1fr}.artisan-shell .ar-won .ar-won-art{width:100%;height:110px}}
/* Pets (build list step 17, public/artisan-pets.js, public/artisan-pet-page.js): the pet follows inside its Artisan's .as-actor, at its feet. It plays its
   idle strip, and its walk strip while the Artisan moves (ChatGPT art item 91: 8 cells of 256 px, facing right, feet 24 px above each cell's bottom).
   An .is-flip actor mirrors it with the Artisan. */
.artisan-shell .as-pet{position:absolute;left:-8%;bottom:3%;width:48%;aspect-ratio:1;background:var(--idle) 0 0/800% 100% no-repeat;animation:ap-strip 1.6s steps(8) infinite;pointer-events:none}
.artisan-shell .as-actor.is-walking>.as-pet{background-image:var(--walk,var(--idle));animation:ap-strip-walk 1s steps(8) infinite}
.artisan-shell .as-pet.is-firefly{bottom:22%;filter:drop-shadow(0 0 6px #d6ff8a88)}
@keyframes ap-strip{to{background-position-x:114.2857%}}
/* Its own name, so the walk starts on frame one instead of jumping when the speed changes mid-loop. */
@keyframes ap-strip-walk{to{background-position-x:114.2857%}}
.artisan-shell .ag-body .as-pet{left:2%;bottom:12%;width:44%}
.artisan-shell .ap-rack{align-items:center}
.artisan-shell .ap-slot img{width:100%;height:100%;object-fit:contain}
.artisan-shell .ap-slot .at-empty{display:grid;place-items:center;width:100%;height:100%;font:1.3rem/1 var(--uk-sans,sans-serif);opacity:.45;filter:grayscale(1)}
.artisan-shell .ap-count{margin:0;color:var(--uk-muted,#aab6c3);font-size:.8125rem}
.artisan-shell .ap-pic{width:100%;height:100%;object-fit:contain}
.artisan-shell .ap-pic.is-silhouette{filter:brightness(0) drop-shadow(0 0 1px #ffffff55);opacity:.55}
.artisan-shell .ap-row.is-unfound .uk-row-title{color:var(--uk-muted,#aab6c3)}
.artisan-shell .ap-row.is-on{outline:1px solid #b59a67;outline-offset:-1px}
.artisan-shell .ap-treat{display:grid;grid-template-columns:40px 1fr auto;gap:10px;align-items:center;margin:10px 0;padding:8px 10px;border:1px solid #ffffff1f;border-radius:6px;background:#0b141e99}
.artisan-shell .ap-treat p{margin:0;font-size:.875rem}
.artisan-shell .ap-treat.is-on{border-color:#b59a67;background:#2a21128c}
.artisan-shell .ap-found{display:grid;grid-template-columns:96px 1fr;gap:12px;align-items:center}
.artisan-shell .ap-found .ap-found-art{width:96px;height:96px;object-fit:contain;filter:drop-shadow(0 0 10px #ffe1aa66)}
.artisan-shell .ap-found .uk-actions{grid-column:1/-1;justify-content:flex-start}.artisan-shell .ap-found .uk-actions .uk-btn{width:auto;min-width:160px}
.character-select .artisan-row{position:relative}
.character-select .artisan-row .artisan-row-pet{position:absolute;left:38px;top:34px;width:24px;height:24px;object-fit:contain;filter:drop-shadow(0 1px 2px #000c)}
@media(max-width:540px){.artisan-shell .ap-treat{grid-template-columns:40px 1fr}.artisan-shell .ap-treat .uk-btn{grid-column:1/-1;width:100%}}
@media(prefers-reduced-motion:reduce){.artisan-shell .as-pet,.artisan-shell .as-actor.is-walking>.as-pet{animation:none}}
/* Fame (build list step 18): two all-time boards under the weekly challenge. */
.artisan-shell .ac-fame-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.artisan-shell .ac-fame-board h4{margin:0 0 2px;font:700 1rem/1.3 var(--uk-serif,serif);color:var(--uk-gold-text,#e6c98a)}
.artisan-shell .ac-fame-board .uk-card-note{margin:0 0 8px}
@media(max-width:700px){.artisan-shell .ac-fame-grid{grid-template-columns:1fr}}
.artisan-shell .ac-row:has(.ac-visit){grid-template-columns:32px 40px 1fr auto auto}
.artisan-shell .ac-row .ac-visit{min-height:36px;padding:4px 12px;font-size:.8125rem;width:auto}
@media(max-width:540px){.artisan-shell .ac-row:has(.ac-visit){grid-template-columns:26px 32px 1fr auto auto}.artisan-shell .ac-row .ac-visit{min-height:44px;padding:4px 10px}}
/* The Trophy workshop (build list step 18, public/artisan-trophy-page.js): the painted room with its ten spots, the picker, and the Hall card. */
.artisan-shell .tw-room{position:relative;border-radius:8px;overflow:hidden;container-type:inline-size;margin:10px 0}
.artisan-shell .tw-room>img{display:block;width:100%;height:auto}
.artisan-shell .tw-spot{position:absolute;display:grid;place-items:end center;padding:0;margin:0;border:0;background:none;color:inherit;cursor:default}
.artisan-shell button.tw-spot{cursor:pointer;min-width:24px;min-height:24px}
.artisan-shell .tw-spot.is-empty{border:1px dashed #ffe1aa59;border-radius:6px;place-items:center;background:#0b141e26}
.artisan-shell button.tw-spot.is-empty:hover,.artisan-shell .tw-spot.is-picked{border:1px solid #ffe1aa;box-shadow:0 0 12px #ffe1aa66}
.artisan-shell .tw-empty{font:700 clamp(.8rem,2.2cqw,1.4rem)/1 var(--uk-sans,sans-serif);color:#ffe1aa99}
.artisan-shell .tw-item{width:100%;height:100%;object-fit:contain;object-position:50% 100%;filter:drop-shadow(0 3px 4px #000c)}.artisan-shell .tw-item[data-settle]{translate:0 calc(var(--drop,0)*var(--side,0px))}
.artisan-shell .tw-item.is-feat{object-fit:cover;object-position:50% 40%;border-radius:40% 40% 50% 50%/30% 30% 70% 70%;border:2px solid #b59a67}
.artisan-shell .tw-item.is-pet{object-position:50% 85%}
.artisan-shell .tw-title{display:grid;place-items:center;width:100%;height:100%;padding:2px;text-align:center;font:700 clamp(.42rem,.95cqw,.8rem)/1.15 var(--uk-serif,serif);overflow-wrap:anywhere;hyphens:auto;color:#ffe1aa;text-shadow:0 1px 2px #000;writing-mode:horizontal-tb;overflow:hidden}
.artisan-shell .tw-title.is-small{font-size:.7rem;color:var(--uk-gold-text,#e6c98a)}
.artisan-shell .tw-stats{margin-top:8px}
.artisan-shell .tw-list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:6px 16px}
.artisan-shell .tw-list li,.artisan-shell .tw-list li button{display:flex;flex-direction:column;padding:6px 0;border-bottom:1px solid #ffffff14}
.artisan-shell .tw-list li button{position:relative;width:100%;min-height:44px;border:0;border-bottom:1px solid #ffffff14;background:none;color:inherit;text-align:left;font:inherit;cursor:pointer;padding:6px 28px 6px 4px}.artisan-shell .tw-list li button::after{content:'›';position:absolute;right:8px;top:50%;transform:translateY(-50%);font-size:1.25rem;color:var(--uk-gold-text,#e6c98a)}.artisan-shell .tw-list li button:hover{background:#ffe1aa0d}.artisan-shell .tw-list li:has(button){padding:0;border:0}
.artisan-shell .tw-list li button[aria-pressed=true]{background:#ffe1aa14;outline:1px solid #b59a67}
.artisan-shell .tw-list li b{font-size:.8125rem;color:var(--uk-gold-text,#e6c98a)}
.artisan-shell .tw-list li span{font-size:.875rem}
.artisan-shell .tw-list li.is-empty span{color:var(--uk-muted,#aab6c3)}
.artisan-shell .tw-row .uk-row-media img{width:100%;height:100%;object-fit:contain}
.artisan-shell .tw-row.is-on{outline:1px solid #b59a67;outline-offset:-1px}
.artisan-shell .tw-card{display:grid;grid-template-columns:220px 1fr;gap:16px;align-items:center;margin-top:16px}
.artisan-shell .tw-card-art{width:220px;height:147px;object-fit:cover;border-radius:6px}
.artisan-shell .tw-card p{margin:6px 0}
.artisan-shell .tw-spotlight{list-style:none;margin:8px 0;padding:0;display:grid;gap:6px}
.artisan-shell .tw-spotlight li{display:grid;grid-template-columns:40px 1fr auto;gap:10px;align-items:center}
.artisan-shell .tw-spotlight img{border-radius:50%;object-fit:cover;object-position:50% 18%;border:1px solid #b59a67}
.artisan-shell .tw-spotlight span{display:flex;flex-direction:column}.artisan-shell .tw-spotlight small{color:var(--uk-muted,#aab6c3)}
.artisan-shell .tw-spotlight .uk-btn{width:auto;min-width:88px}
.artisan-shell .tw-page .as-site-top{justify-content:space-between;flex-wrap:wrap}
.artisan-shell .tw-page .as-site-top .uk-actions{display:flex;flex-wrap:wrap;gap:8px;margin:0}
.artisan-shell .tw-page .as-site-top .uk-actions .uk-btn{width:auto;min-width:140px}
@media(max-width:600px){.artisan-shell .tw-card{grid-template-columns:1fr}.artisan-shell .tw-card-art{width:100%;height:140px}.artisan-shell .tw-list{grid-template-columns:1fr}}
/* The collection book (build list step 18; public/artisan-book-page.js). */
.artisan-shell .bk-card{display:grid;grid-template-columns:72px 1fr auto;gap:16px;align-items:center;margin-bottom:16px}
.artisan-shell .bk-card p{margin:4px 0}.artisan-shell .bk-card .uk-actions .uk-btn{width:auto;min-width:160px}
.artisan-shell .bk-card-art,.artisan-shell .bk-news-art{width:72px;height:72px;object-fit:contain;filter:drop-shadow(0 0 8px #ffe1aa55)}
.artisan-shell .bk-news{display:grid;grid-template-columns:72px 1fr;gap:12px;align-items:center}
.artisan-shell .bk-news .uk-actions{grid-column:1/-1;justify-content:flex-start}.artisan-shell .bk-news .uk-actions .uk-btn{width:auto;min-width:150px}
.artisan-shell .bk-book .as-site-top{justify-content:space-between;flex-wrap:wrap}.artisan-shell .bk-book .as-site-top .uk-actions{flex:0 0 auto;margin:0}.artisan-shell .bk-book .as-site-top .uk-actions .uk-btn{width:auto}
.artisan-shell .bk-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 16px}
.artisan-shell .bk-tabs .uk-chip{min-height:44px;display:inline-flex;flex-direction:column;justify-content:center;align-items:center;gap:0;padding:4px 14px}
.artisan-shell .bk-tabs .uk-chip small{font-size:.75rem;opacity:.8}
.artisan-shell .bk-tabs .uk-chip[aria-pressed="true"]{border-color:var(--uk-gold-hi,#f0ce83);background:#2b3a52;color:var(--uk-gold-text,#e6c98a)}
.artisan-shell .bk-page-head{display:flex;justify-content:space-between;align-items:baseline;gap:12px}
.artisan-shell .bk-count{font-family:var(--uk-serif,Georgia,serif);font-size:1.125rem;color:var(--uk-gold-text,#e6c98a)}
.artisan-shell .bk-reward{margin:10px 0 0;color:var(--uk-muted,#aab6c3)}.artisan-shell .bk-reward.is-done{color:#bfe3b0}.artisan-shell .bk-reward b{color:inherit}
.artisan-shell .bk-slots{list-style:none;margin:16px 0 0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(132px,1fr));gap:10px}
.artisan-shell .bk-slot{display:flex;flex-direction:column;align-items:center;text-align:center;gap:4px;padding:10px 6px;border:1px solid #b59a6755;border-radius:8px;background:#0c1628aa}
.artisan-shell .bk-slot b{font-size:.8125rem;line-height:1.2}.artisan-shell .bk-slot small{font-size:.75rem;line-height:1.25;color:var(--uk-muted,#aab6c3)}
.artisan-shell .bk-pic{width:56px;height:56px;object-fit:contain;display:block}
.artisan-shell .bk-pic.is-sheet{background-repeat:no-repeat}
.artisan-shell .bk-slot.is-missing{border-style:dashed;border-color:#ffffff22;background:#0a1222aa}
.artisan-shell .bk-slot.is-missing .bk-pic{filter:brightness(0) drop-shadow(0 0 1px #ffffff55);opacity:.55}
.artisan-shell .bk-slot.is-missing b{color:var(--uk-muted,#aab6c3)}
.artisan-shell .bk-collector{margin:14px 0 0;color:var(--uk-muted,#aab6c3)}.artisan-shell .bk-collector b{color:var(--uk-gold-text,#e6c98a)}
/* The painted book (ChatGPT art item 91): each leaf is laid over one parchment page of hall/collection-book-v1.webp, written in brown ink. */
.artisan-shell .bk-spread{position:relative;aspect-ratio:3/2;margin-top:4px;background:var(--book) center/100% 100% no-repeat;border-radius:8px;box-shadow:0 4px 18px #0009}
.artisan-shell .bk-leaf{position:absolute;top:18.5%;bottom:20%;overflow:auto;scrollbar-width:thin;scrollbar-color:#8a6a3c transparent;color:#3b2814}
.artisan-shell .bk-leaf.is-left{left:14%;width:30%}.artisan-shell .bk-leaf.is-right{left:52.5%;width:36%;padding:0 6px 24px 0;-webkit-mask-image:linear-gradient(#000 calc(100% - 28px),#0000);mask-image:linear-gradient(#000 calc(100% - 28px),#0000)}
.artisan-shell .bk-leaf .uk-heading{color:#5a3712;text-shadow:none;border-color:#8a6a3c66}
.artisan-shell .bk-leaf .bk-count{color:#6b4416}
.artisan-shell .bk-leaf .bk-reward,.artisan-shell .bk-leaf .bk-collector{color:#4f3a22}.artisan-shell .bk-leaf .bk-reward.is-done{color:#2f5a22}.artisan-shell .bk-leaf .bk-collector b{color:#6b4416}
.artisan-shell .bk-leaf .uk-progress{background:#5a3a1a33;border-color:#8a6a3c88}
/* The Curios page: the four sets of 8 and their titles. */
.artisan-shell .bk-sets{list-style:none;margin:10px 0 0;padding:0;display:grid;gap:4px}.artisan-shell .bk-sets li{display:grid;grid-template-columns:1fr auto;gap:0 8px;padding:4px 6px;border:1px solid #7a5a3055;border-radius:6px}.artisan-shell .bk-sets b{font-size:.8125rem;color:#5a3712}.artisan-shell .bk-sets span{font-size:.8125rem;color:#6b4416;font-variant-numeric:tabular-nums}.artisan-shell .bk-sets small{grid-column:1/-1;font-size:.6875rem;color:#5e4628}.artisan-shell .bk-sets li.is-done{background:#d9f0c455;border-color:#2f5a2255}.artisan-shell .bk-sets li.is-done small{color:#2f5a22}
.artisan-shell .bk-leaf .aq-hint{color:#5e4628;font-size:.75rem}
.artisan-shell .bk-leaf .bk-slots{margin:0;grid-template-columns:repeat(auto-fill,minmax(84px,1fr));gap:6px}
.artisan-shell .bk-leaf .bk-slot{padding:5px 3px;gap:2px;border-color:#7a5a3066;background:#fff6dc55}
.artisan-shell .bk-leaf .bk-slot b{font-size:.75rem}.artisan-shell .bk-leaf .bk-slot small{font-size:.6875rem;color:#5e4628}.artisan-shell .bk-leaf .bk-pic{width:40px;height:40px;filter:drop-shadow(0 1px 1px #0006)}
.artisan-shell .bk-leaf .bk-slot.is-missing{border-color:#7a5a3055;background:transparent}.artisan-shell .bk-leaf .bk-slot.is-missing b{color:#6b5638}
.artisan-shell .bk-leaf .bk-slot.is-missing .bk-pic{filter:brightness(0);opacity:.3}
@media(max-width:760px){.artisan-shell .bk-spread{aspect-ratio:auto;padding:18px 14px 48px;background:#e8cf9f var(--book) 78% 50%/300% 150% no-repeat;border:4px solid #5a3418}
 .artisan-shell .bk-leaf{position:static;overflow:visible;-webkit-mask-image:none;mask-image:none}.artisan-shell .bk-leaf.is-left,.artisan-shell .bk-leaf.is-right{width:auto;padding:0;-webkit-mask-image:none;mask-image:none}.artisan-shell .bk-leaf.is-right{margin-top:14px}}
.artisan-shell .bk-records,.artisan-shell .bk-trophies{margin-top:16px}
.artisan-shell .bk-record-list{list-style:none;margin:8px 0 0;padding:0;display:grid;grid-template-columns:repeat(2,1fr);gap:10px}
.artisan-shell .bk-record-list li{display:grid;grid-template-columns:40px 1fr;gap:10px;align-items:center;padding:8px 10px;border:1px solid #b59a6755;border-radius:8px;background:#0c1628aa}
.artisan-shell .bk-record-list li small{display:block;font-size:.75rem;color:var(--uk-gold-text,#e6c98a);text-transform:uppercase;letter-spacing:.04em}
.artisan-shell .bk-record-list li.is-empty b{color:var(--uk-muted,#aab6c3);font-weight:400}
.artisan-shell .bk-record-blank{width:40px;height:40px;border:1px dashed #ffffff33;border-radius:6px}
.artisan-shell .bk-sub{margin:14px 0 6px;font-size:.875rem;color:var(--uk-gold-text,#e6c98a)}.artisan-shell .bk-sub small{font-weight:400;color:var(--uk-muted,#aab6c3);margin-left:6px}
.artisan-shell .bk-fish{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:8px}
.artisan-shell .bk-fish li{display:grid;grid-template-columns:40px 1fr;gap:10px;align-items:center}.artisan-shell .bk-fish small{display:block;color:var(--uk-muted,#aab6c3)}
.artisan-shell .bk-board{list-style:none;margin:8px 0 0;padding:0;display:grid;gap:6px}
.artisan-shell .bk-board li{display:grid;grid-template-columns:40px minmax(0,1fr) minmax(0,1fr) auto;gap:10px;align-items:center;padding:6px 10px;border:1px solid #b59a6744;border-radius:8px;background:#0c1628aa;min-height:44px}
.artisan-shell .bk-board li.is-me{border-color:#e6c98a;background:#2a2410aa}
.artisan-shell .bk-board small{display:block;color:var(--uk-muted,#aab6c3)}.artisan-shell .bk-board strong{color:var(--uk-gold-text,#e6c98a)}
.artisan-shell .bk-board-who{display:flex;align-items:center;gap:8px;min-width:0}.artisan-shell .bk-board-who span{overflow:hidden;text-overflow:ellipsis}
.artisan-shell .bk-board .uk-btn{width:auto;min-width:72px}
.artisan-shell .bk-face{border-radius:50%;object-fit:cover;object-position:50% 18%;border:1px solid #b59a67;flex:0 0 auto}
.artisan-shell .as-trophy{color:#7fd6ff;font-style:normal;font-weight:600}
.artisan-shell .as-record b{color:var(--uk-gold-text,#e6c98a)}
@media(max-width:600px){.artisan-shell .bk-card{grid-template-columns:56px 1fr}.artisan-shell .bk-card-art{width:56px;height:56px}.artisan-shell .bk-card .uk-actions{grid-column:1/-1}.artisan-shell .bk-card .uk-actions .uk-btn{width:100%}
 .artisan-shell .bk-slots{grid-template-columns:repeat(3,1fr);gap:8px}.artisan-shell .bk-pic{width:48px;height:48px}.artisan-shell .bk-record-list{grid-template-columns:1fr}
 .artisan-shell .bk-board li{grid-template-columns:40px minmax(0,1fr) auto}.artisan-shell .bk-board-who{grid-column:2/3;grid-row:2}.artisan-shell .bk-board .uk-btn{grid-row:1/3;grid-column:3}
 .artisan-shell .bk-book .as-site-top{flex-wrap:wrap}}
/* Recipe discovery: the Experiment tab at every bench (build list step 18; public/artisan-hall.js). */
.artisan-shell .ah-hidden{background:#3b2a55;color:#e2c9ff;border-color:#8f6bc4}
.artisan-shell .ah-secret-note{margin:8px 0 0;padding:8px 10px;border:1px solid #8f6bc466;border-radius:8px;background:#2a1f3d88;font-size:.875rem}.artisan-shell .ah-secret-note b{color:#e2c9ff}
.artisan-shell .ah-exp-intro{margin:4px 0 12px;color:var(--uk-muted,#aab6c3);font-size:.875rem}
.artisan-shell .ah-exp-top{display:grid;grid-template-columns:64px 1fr;gap:12px;align-items:center;margin-bottom:12px}.artisan-shell .ah-exp-top .ah-exp-intro{margin:0}
.artisan-shell .ah-exp-art{width:64px;height:64px;object-fit:contain;filter:drop-shadow(0 0 8px #c9a0ff44)}
@media(max-width:540px){.artisan-shell .ah-exp-top{grid-template-columns:48px 1fr}.artisan-shell .ah-exp-art{width:48px;height:48px}}
.artisan-shell .ah-exp-h{margin:14px 0 6px;font-size:.875rem;color:var(--uk-gold-text,#e6c98a)}.artisan-shell .ah-exp-h small{font-weight:400;color:var(--uk-muted,#aab6c3);margin-left:6px}
.artisan-shell .ah-exp-slots{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:6px}
.artisan-shell .ah-exp-slots li{padding:6px 8px;border:1px dashed #ffffff26;border-radius:8px;background:#0a1222aa}.artisan-shell .ah-exp-slots li.is-found{border-style:solid;border-color:#8f6bc488;background:#2a1f3d66}
.artisan-shell .ah-exp-slots li.is-mine{border-color:#e6c98a}.artisan-shell .ah-exp-slots b{display:block;font-size:.8125rem}.artisan-shell .ah-exp-slots small{display:block;font-size:.75rem;color:var(--uk-muted,#aab6c3)}
.artisan-shell .ah-exp-slots li.is-found small{color:#e2c9ff}
.artisan-shell .ah-exp-write{list-style:none;margin:0;padding:0;display:grid;gap:6px}.artisan-shell .ah-exp-write li{display:grid;grid-template-columns:40px 1fr auto;gap:10px;align-items:center;padding:8px 10px;border:1px solid #e6c98a88;border-radius:8px;background:#2a1f3d66}
.artisan-shell .ah-exp-write img{border-radius:6px}.artisan-shell .ah-exp-write b{display:block;font-size:.875rem;color:#e2c9ff}.artisan-shell .ah-exp-write small{display:block;font-size:.75rem;color:var(--uk-muted,#aab6c3)}.artisan-shell .ah-exp-write .uk-btn{min-height:44px}
.artisan-shell .ah-exp-mix{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:6px}
.artisan-shell .ah-exp-mix li{display:flex;align-items:center;gap:6px;padding:4px 4px 4px 8px;border:1px solid #e6c98a88;border-radius:8px;background:#2a2410aa}
.artisan-shell .ah-exp-mix .uk-btn{width:44px;min-width:44px;min-height:44px;padding:0;font-size:1.125rem}
.artisan-shell .ah-exp-left{align-self:center;color:var(--uk-muted,#aab6c3);font-size:.8125rem}
.artisan-shell .ah-exp-result{margin:12px 0 0;padding:10px 12px;border:1px solid #b59a6788;border-radius:8px;background:#14203aaa}.artisan-shell .ah-exp-result p{margin:4px 0 0}
.artisan-shell .ah-exp-result.is-learned{border-color:#8f6bc4;background:#2a1f3dcc}.artisan-shell .ah-exp-result.is-learned b{color:#e2c9ff}
.artisan-shell .ah-exp-tiers{display:flex;flex-wrap:wrap;gap:6px}.artisan-shell .ah-exp-tiers .uk-chip{min-height:44px;min-width:48px;justify-content:center}
.artisan-shell .ah-exp-tiers .uk-chip[aria-pressed="true"]{border-color:var(--uk-gold-hi,#f0ce83);background:#2b3a52;color:var(--uk-gold-text,#e6c98a)}
.artisan-shell .ah-exp-bag{list-style:none;margin:8px 0 0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:6px}
.artisan-shell .ah-exp-item{width:100%;min-height:52px;display:flex;align-items:center;gap:8px;padding:6px 8px;border:1px solid #b59a6755;border-radius:8px;background:#0c1628aa;color:inherit;font:inherit;text-align:left;cursor:pointer}
.artisan-shell .ah-exp-item span{display:flex;flex-direction:column;font-size:.8125rem;line-height:1.2}.artisan-shell .ah-exp-item small{color:var(--uk-muted,#aab6c3)}
.artisan-shell .ah-exp-item[aria-pressed="true"]{border-color:#e6c98a;background:#2a2410aa}.artisan-shell .ah-exp-item:disabled{opacity:.45;cursor:default}
.artisan-shell .ah-exp-notes{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.artisan-shell .ah-exp-notes li{display:grid;grid-template-columns:auto 1fr;gap:10px;align-items:center;padding:6px 8px;border-bottom:1px solid #ffffff14}.artisan-shell .ah-exp-notes li.is-learned small{color:#e2c9ff}
.artisan-shell .ah-exp-icons{display:flex;gap:2px}
@media(max-width:600px){.artisan-shell .ah-exp-write li{grid-template-columns:40px 1fr}.artisan-shell .ah-exp-write .uk-btn{grid-column:1/-1}.artisan-shell .ah-exp-bag,.artisan-shell .ah-exp-slots{grid-template-columns:1fr 1fr}.artisan-shell .ah-exp-notes li{grid-template-columns:1fr}}
/* Guild weekend events (build list step 21, public/artisan-weekend-page.js): the card on the Artisan's Guild tab and the hero Guild page, and the Workshop strip. */
.wk-card{display:grid;gap:10px}
.wk-card+.agd-hero{margin-top:12px}
.wk-card .wk-art{width:100%;height:160px;object-fit:cover;object-position:70% 50%;border:1px solid #b59a67;border-radius:8px}
.wk-card .uk-title-row h3{margin:0}
.wk-card .wk-live{border-color:#7fd08f;color:#b9f2c3}
.wk-card .wk-who,.wk-card .wk-guild,.wk-card .wk-last{margin:0}
.wk-card .wk-me{margin:0;padding:8px 10px;border:1px solid #f0ce8340;border-radius:8px;background:#1b2638}
.wk-card h4{margin:4px 0 0}
.wk-card .wk-board .uk-row-end{display:grid;justify-items:end}
.wk-card .wk-members summary,.wk-card .wk-bands summary{cursor:pointer;color:var(--uk-gold-text,#e6c98a);font-weight:600;min-height:44px;display:flex;align-items:center}
.wk-card .wk-bands table{width:100%;border-collapse:collapse;margin-top:4px}.wk-card .wk-bands th,.wk-card .wk-bands td{text-align:left;padding:6px 4px;border-bottom:1px solid #ffffff14;vertical-align:top}
.wk-card .wk-bands td small{display:block;color:#aab6c4}
.wk-card .wk-members summary::before,.wk-card .wk-bands summary::before{content:'▸';margin-right:8px;font-size:.8em}.wk-card details[open]>summary::before{content:'▾'}
.wk-card .wk-members summary::-webkit-details-marker,.wk-card .wk-bands summary::-webkit-details-marker{display:none}
.wk-card .wk-flag{display:grid;grid-template-columns:minmax(0,180px) 1fr;gap:12px;align-items:center;padding:8px;border:1px solid var(--uk-gold-hi,#f0ce83);border-radius:8px;background:#2a3346}
.wk-card .wk-flag img{width:100%;height:60px;object-fit:cover;border-radius:6px}.wk-card .wk-flag p{margin:0}
.artisan-shell .wk-strip{display:flex;flex-wrap:wrap;gap:8px 12px;align-items:center;margin:0 0 12px;padding:10px 12px;border:1px solid #7fd08f99;border-radius:8px;background:#17301f}
.artisan-shell .wk-strip .uk-btn{margin-left:auto}
@media(max-width:600px){.wk-card .wk-art{height:110px}.wk-card .wk-flag{grid-template-columns:1fr}.wk-card .wk-bands th,.wk-card .wk-bands td{font-size:.8125rem}.artisan-shell .wk-strip .uk-btn{margin-left:0;width:100%}}
/* Artisan flasks and scrolls for heroes (final QA): the Bag's Send to your heroes rows and the hero Alchemy/Enchanter From Artisans rows keep their
   two buttons side by side; on a phone the buttons go under the text, full width. */
.ar-send .uk-row-end,.craft-artisans .uk-row-end{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end;align-items:center;max-width:none}
.ar-send-to select{margin-left:8px}
@media (max-width:640px){.ar-send .uk-row-main,.craft-artisans .uk-row-main{flex-wrap:wrap}.ar-send .uk-row-end,.craft-artisans .uk-row-end{flex:1 1 100%;justify-content:stretch}.ar-send .uk-row-end .uk-btn,.craft-artisans .uk-row-end .uk-btn{flex:1 1 0}}
/* The guild page (public/guild-ui.js, the same one heroes see) inside the Artisan screen: it fills the page width like every other Artisan tab. */
.artisan-shell .as-page>.gm-page{width:100%;max-width:none;margin:0;box-sizing:border-box;padding:0}
/* Signs of life on the Ancients (public/artisan-realm-page.js alive, public/artisan-realms.js): copies of the painting, feathered to the head and the body,
   moved a hair so the creature breathes, stirs and now and then lifts in a slow yawn; the eyes glow and blink. Small moves keep the seams invisible. */
.artisan-shell .ar-alive{position:absolute;inset:0;pointer-events:none;z-index:0}
.artisan-shell .ar-alive>i{position:absolute;inset:0;background:var(--art) 0 0/100% 100% no-repeat;transform-origin:var(--ox) var(--oy);will-change:transform;
 -webkit-mask-image:radial-gradient(ellipse var(--rx) var(--ry) at var(--cx) var(--cy),#000 50%,transparent 100%);mask-image:radial-gradient(ellipse var(--rx) var(--ry) at var(--cx) var(--cy),#000 50%,transparent 100%)}
.artisan-shell .ar-alive .ar-body{animation:ar-breathe 6.5s ease-in-out infinite}
.artisan-shell .ar-alive .ar-head{animation:ar-stir 17s ease-in-out infinite}
.artisan-shell .ar-alive.is-slither .ar-body{animation:ar-breathe 6.5s ease-in-out infinite,ar-slither 9s ease-in-out infinite}
.artisan-shell .ar-alive.is-bloom .ar-head{animation:ar-bloom 8s ease-in-out infinite}
.artisan-shell .ar-eyes{position:absolute;inset:0;transform-origin:var(--ox) var(--oy);animation:ar-stir 17s ease-in-out infinite}.artisan-shell .ar-alive.is-bloom .ar-eyes{animation:ar-bloom 8s ease-in-out infinite}
.artisan-shell .ar-eye{position:absolute;left:var(--u);top:var(--v);width:2.4%;aspect-ratio:1;transform:translate(-50%,-50%);border-radius:50%;
 background:radial-gradient(circle,#fff6c8 0,#ffc94a99 35%,#ff9d0000 70%);mix-blend-mode:screen;animation:ar-glow 3.2s ease-in-out infinite,ar-blink 7.3s linear infinite;animation-delay:var(--d),var(--d)}
.artisan-shell .ar-alive.is-sleepy .ar-eye{animation:ar-peek 11s ease-in-out infinite;animation-delay:var(--d)}
.artisan-shell .ar-alive.is-calm .ar-eye{width:1.5%;background:radial-gradient(circle,#ffffffb0 0,#c8f4ff40 40%,#c8f4ff00 70%)}
.artisan-shell .ar-alive.is-bloom .ar-eye{width:9%;background:radial-gradient(circle,#fff8d6cc 0,#ffd97a55 40%,#ffd97a00 70%);animation:ar-glow 4s ease-in-out infinite}
@keyframes ar-breathe{0%,100%{transform:none}50%{transform:scale(1.012,1.022)}}
@keyframes ar-stir{0%,100%{transform:none}18%{transform:rotate(-.8deg)}36%{transform:rotate(.6deg) translateY(-.3%)}52%{transform:none}
 62%{transform:translateY(-1.6%) scale(1.035) rotate(-.4deg)}70%{transform:translateY(-1.8%) scale(1.045)}82%{transform:none}}
@keyframes ar-slither{0%,100%{translate:0 0}25%{translate:.45% -.15%}75%{translate:-.45% .1%}}
@keyframes ar-bloom{0%,100%{transform:none;filter:none}50%{transform:scale(1.03) rotate(.4deg);filter:brightness(1.08)}}
@keyframes ar-glow{0%,100%{opacity:.55}50%{opacity:1}}
@keyframes ar-blink{0%,93%,100%{scale:1 1}95%{scale:1 .1}}
@keyframes ar-peek{0%,55%,100%{opacity:0}65%,80%{opacity:.9}}
@media(prefers-reduced-motion:reduce){.artisan-shell .ar-alive>i,.artisan-shell .ar-eyes,.artisan-shell .ar-eye{animation:none}}
/* Finds (public/artisan-shell.js finds): a button in the site header, like the hero Meter button, and a drop-down over the painting with the notices and the
   latest loads. The notices lose their own frames inside it, so it reads as one list. */
.artisan-shell .as-finds{position:relative;margin-left:auto;align-self:center}
.artisan-shell .as-finds-btn{display:inline-flex;align-items:center;gap:6px;width:auto}
.artisan-shell .as-finds-btn>i{font-style:normal;font-size:.75em;opacity:.8}
.artisan-shell .as-finds-btn[aria-expanded="true"]>i{transform:rotate(180deg)}
.artisan-shell .as-finds-count{display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 5px;border-radius:10px;background:#b8322a;color:#fff;font:700 .75rem system-ui}
.artisan-shell .as-finds-btn.is-new{animation:as-finds-pulse 1.8s ease-in-out 4}
@keyframes as-finds-pulse{0%,100%{box-shadow:0 0 0 0 #f0ce8300}50%{box-shadow:0 0 0 4px #f0ce8366}}
.artisan-shell .as-finds-drop{position:absolute;right:0;top:calc(100% + 6px);z-index:30;width:min(420px,calc(100vw - 32px));max-height:min(70vh,560px);overflow:auto;display:grid;padding:4px 14px 12px;
 background:#0f1826f5;border:1px solid #f0ce8388;border-radius:8px;box-shadow:0 14px 32px #000b}
.artisan-shell .as-finds-drop .as-welcome{padding:12px 0;border:0;border-bottom:1px solid #ffffff1a;border-radius:0;background:none}
.artisan-shell .as-finds-drop .as-welcome h3{font-size:1rem}
.artisan-shell .as-finds-drop .as-welcome .uk-btn{min-width:0}
.artisan-shell .as-finds-drop .as-mimic-won img.as-mimic-art,.artisan-shell .as-finds-drop .bk-news-art{width:56px;height:56px}
.artisan-shell .as-finds-drop[hidden]{display:none}
.artisan-shell .as-finds-head{margin:12px 0 6px;font:600 .75rem system-ui;letter-spacing:.1em;text-transform:uppercase;color:#a99f88}
.artisan-shell .as-finds-empty{margin:12px 0 0;color:#a99f88;font-size:.875rem}
@media(max-width:540px){.artisan-shell .as-finds{margin-left:0;align-self:stretch}.artisan-shell .as-finds-drop{left:0;right:0;width:auto}}
@media(prefers-reduced-motion:reduce){.artisan-shell .as-finds-btn.is-new{animation:none}}
/* Node plates (public/artisan-shell.js paint): like an enemy plate, over the head of whoever works the node: what is left, loads mined, and on yours when it runs dry. */
.artisan-shell .as-plate{position:absolute;left:var(--u);top:var(--v);z-index:2;display:grid;justify-items:center;gap:1px;transform:translate(-50%,calc(-100% - 7.4cqw));pointer-events:auto;white-space:nowrap}
.artisan-shell .as-plate-bar{display:block;width:6.4cqw;min-width:34px;height:5px;border:1px solid #000c;border-radius:3px;background:#1a1410d9;overflow:hidden}
.artisan-shell .as-plate-bar>i{display:block;height:100%;background:linear-gradient(#e8c675,#b8892f);transition:width .6s}
.artisan-shell .as-plate small{padding:0 4px;border-radius:3px;background:#09121bb3;color:#e6dcc6;font:600 .625rem/1.3 system-ui;font-variant-numeric:tabular-nums}
.artisan-shell .as-plate.is-mine .as-plate-bar>i{background:linear-gradient(#ffe39a,#e0a43a)}
.artisan-shell .as-plate.is-mine small{color:#ffe1aa}
@media(max-width:540px){.artisan-shell .as-plate:not(.is-mine) small{display:none}}
/* Gear in the combat Hero page's layout (Pat, 26 Oct; public/artisan-gear-page.js page()): the doll and the Stats panel side by side (uk-split), clothes and
   the pet down the left, charms and runes down the right, the ten tools under the name in two sets, every skill as a hero-style stat row. */
.artisan-shell .ag-split>.uk-frame{min-width:0}
.artisan-shell .ag-doll{--uk-slot:64px}
.artisan-shell .ag-doll .uk-doll-col{justify-content:flex-start}
.artisan-shell .ag-doll .uk-doll-art{min-height:340px}
.artisan-shell .ag-doll .ag-body{width:min(260px,100%)}
.artisan-shell .ag-tools{display:grid;gap:8px;justify-items:center}
.artisan-shell .ag-tool-set{display:flex;flex-wrap:wrap;justify-content:center;gap:8px}
.artisan-shell .ag-tool-set+.ag-tool-set{padding-top:8px;border-top:1px solid #b69a6030}
.artisan-shell .ag-sheet{display:grid;align-content:start}
.artisan-shell .ag-skill-rows{display:grid}
.artisan-shell .ag-skill-row{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;padding:4px 6px;border:0;border-bottom:1px solid #b69a6030;border-radius:0;background:none;color:var(--uk-ivory,#efe6d2);font:inherit;text-align:left;cursor:pointer}
.artisan-shell .ag-skill-row:last-child{border-bottom:0}
.artisan-shell .ag-skill-row:hover{background:#d6b5750f}
.artisan-shell .ag-skill-row[aria-pressed="true"]{background:linear-gradient(90deg,#d6b57526,transparent);box-shadow:inset 3px 0 0 var(--uk-gold,#e2b85c)}
.artisan-shell .ag-skill-name{display:inline-flex;align-items:center;gap:8px}
.artisan-shell .ag-skill-name img{width:30px;height:30px;object-fit:contain}
.artisan-shell .ag-skill-val{display:inline-flex;align-items:baseline;gap:8px}
.artisan-shell .ag-skill-val b{font:600 1.05rem/1.2 var(--uk-serif,serif);color:var(--uk-gold-text,#e6c98a)}
.artisan-shell .ag-skill-val small{min-width:3.4em;text-align:right;color:var(--uk-ivory-dim,#c9bda5);font-size:.8rem}
.artisan-shell .ag-sheet .uk-actions{margin-top:14px}
.artisan-shell details.ag-chest{display:block}
.artisan-shell details.ag-chest[open]>summary{margin-bottom:10px}
.artisan-shell details.ag-chest>:not(summary){margin-inline:14px}
@media(max-width:480px){.artisan-shell .ag-doll{--uk-slot:52px}.artisan-shell .ag-doll .uk-doll-art{min-height:280px}.artisan-shell .ag-tool-set{gap:6px}}
.artisan-shell .ag-sheet h3.uk-rows-group{font:700 .72rem/1.3 var(--uk-sans,sans-serif);letter-spacing:.12em;text-transform:uppercase;color:var(--uk-ivory-dim,#c9bda5)}
.artisan-shell .ag-doll .uk-doll-name h2{margin:0}
.artisan-shell .ag-doll .at-slot.is-charm.is-empty{border-radius:var(--uk-radius,8px)}
.artisan-shell details.ag-stats{display:block}
.artisan-shell details.ag-stats>:not(summary){margin:10px 14px 0}
.artisan-shell details.ag-stats>:last-child{margin-bottom:14px}
@media(max-width:480px){.artisan-shell .ag-tools{--uk-slot:44px}.artisan-shell .ag-tool-set{gap:5px}}
/* Page heads (one per page, like hero pages): the banner is dimmed so the name, the line under it and the numbers read on any painting. */
.artisan-shell .as-page-head .uk-head-art{filter:brightness(.5) saturate(.85)}
.artisan-shell .as-page-head .uk-head-icon .as-icon{width:44px;height:44px}
.artisan-shell .as-wallet{margin-left:auto}
/* Chips instead of drop-downs (menu audit, 23 Oct: every choice in view): refine tier, what to keep, which hero; and item tiles for the guild deposit. */
.artisan-shell .as-chipset{margin:0;padding:0;border:0;min-width:0;display:grid;gap:6px}
.artisan-shell .as-chipset>legend{padding:0;font:600 .72rem/1.2 var(--uk-sans,system-ui);letter-spacing:.08em;text-transform:uppercase;color:var(--uk-ivory-dim,#c9bda5)}
.artisan-shell .as-chip-row{display:flex;flex-wrap:wrap;gap:6px}
.artisan-shell .as-chip{position:relative;display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:4px 12px;margin:0;cursor:pointer;white-space:nowrap}
.artisan-shell .as-chip>input,.artisan-shell .as-pick>input{position:absolute;inset:0;width:1px;height:1px;opacity:0;pointer-events:none}
.artisan-shell .as-chip:has(input:checked){border-color:#e0bd73;background:linear-gradient(180deg,#c9a468,#8f6f3c);color:#1b1509}
.artisan-shell .as-chip:has(input:focus-visible),.artisan-shell .as-pick:has(input:focus-visible){outline:2px solid #f2d38a;outline-offset:2px}
.artisan-shell .as-pick-grid{margin:0;padding:0;border:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(56px,1fr));gap:6px;grid-column:1/-1}
.artisan-shell .as-pick{position:relative;display:grid;justify-items:center;gap:2px;padding:6px 4px;border:1px solid var(--uk-navy-3,#2b3a52);border-radius:8px;background:var(--uk-navy-1,#14203a);cursor:pointer}
.artisan-shell .as-pick small{font:600 .72rem/1 var(--uk-sans,system-ui);color:var(--uk-ivory,#f4ead6)}
.artisan-shell .as-pick:has(input:checked){border-color:#e0bd73;box-shadow:0 0 0 1px #e0bd73 inset;background:#2b2412}
.artisan-shell .gm-store-put .as-pick-grid{flex:1 1 100%;width:100%}
.artisan-shell .gm-store-put .as-pick{flex:none;font-size:inherit;margin:0}
.artisan-shell .gm-store-put .as-pick-grid{max-height:236px;overflow-y:auto;overscroll-behavior:contain;padding:2px;scrollbar-width:thin}
.artisan-shell .gm-store-put .as-pick>input{min-height:0}
.artisan-shell .gm-store-picked{flex:1 1 100%;margin:0;font:600 .9rem/1.3 var(--uk-sans,system-ui);color:var(--uk-ivory,#f4ead6)}
.artisan-shell .gm-store-put>label{margin:0}
.artisan-shell .as-guide-list{display:grid;gap:6px}
.artisan-shell .as-guide-sec{border:1px solid var(--uk-navy-3,#2b3a52);border-radius:8px;background:var(--uk-navy-1,#14203a)}
.artisan-shell .as-guide-sec>summary{cursor:pointer;min-height:44px;display:flex;align-items:center;padding:0 14px;font:600 1rem/1.3 var(--uk-serif,Georgia,serif);color:var(--uk-ivory,#f4ead6);list-style:none}
.artisan-shell .as-guide-sec>summary::-webkit-details-marker{display:none}
.artisan-shell .as-guide-sec>summary::after{content:'+';margin-left:auto;color:#c9a468;font-size:1.2rem}
.artisan-shell .as-guide-sec[open]>summary::after{content:'−'}
.artisan-shell .as-guide-sec>p{margin:0;padding:0 14px 10px;color:#d5dfe8;line-height:1.55;max-width:72ch}
.artisan-shell .as-guide-table{overflow-x:auto;padding:0 14px 14px}
.artisan-shell .as-guide-table table{border-collapse:collapse;width:100%;font-size:.88rem}
.artisan-shell .as-guide-table :is(th,td){text-align:left;padding:6px 8px;border-bottom:1px solid var(--uk-navy-3,#2b3a52);color:#d5dfe8;vertical-align:top}
.artisan-shell .as-guide-table th{color:#c9a468;font-weight:600;white-space:nowrap}
/* Half and All beside the amount (Pat, 26 Oct), and the total time line under it. */
.artisan-shell .as-amt{display:inline-flex;gap:4px}
.artisan-shell .as-amt .uk-btn{min-height:36px;padding:4px 10px}
.artisan-shell .as-amt small{margin-left:3px;opacity:.7;font-size:.8em}
.artisan-shell .ah-total{margin:6px 0 0;color:#cbbd9b;font-size:.85rem}
.artisan-shell .as-step-act{flex-wrap:wrap;justify-content:flex-end}
/* The hit when a load comes off your node (Reddit tester, 26 Oct: no impact): the node jolts, and mining throws a painted stone burst over it.
   The jolt uses the scale and rotate properties, so it adds to the node's own transform (its place and mirror). */
.artisan-shell .as-node.is-hit{animation:as-node-hit .32s ease-out}
@keyframes as-node-hit{0%{scale:1;rotate:0deg}25%{scale:1.1 .9;rotate:-3deg}55%{scale:.96 1.05;rotate:2deg}100%{scale:1;rotate:0deg}}
/* 8cqw (at least 52px on phones) and a soft dark edge (27 Oct): at 5.5cqw the pale wood chips vanished into the sunlit grass on video. */
.artisan-shell .as-burst{position:absolute;left:var(--u);top:var(--v);width:max(8cqw,52px);aspect-ratio:1;transform:translate(-50%,-70%);filter:drop-shadow(0 0 1.5px rgba(10,8,4,.85)) drop-shadow(0 2px 3px rgba(0,0,0,.45));background-size:800% 100%;background-repeat:no-repeat;pointer-events:none;z-index:3;animation:as-burst .6s steps(8) forwards}
@keyframes as-burst{from{background-position:0 0}to{background-position:114.29% 0}}
@media(prefers-reduced-motion:reduce){.artisan-shell .as-node.is-hit,.artisan-shell .as-burst{animation:none}.artisan-shell .as-burst{display:none}}
/* The coach's one line and what it lights (Reddit tester, 26 Oct: the tutorial was too text-heavy, and goals were hard to see). */
.artisan-shell .aq-coach .aq-do{margin:2px 0 0;color:var(--uk-ivory,#f4ead6);font-size:1rem;line-height:1.35}
.artisan-shell .aq-coach.is-compact .aq-coach-text p.aq-do{font-size:.95rem}
.artisan-shell .aq-how{margin-top:4px}
.artisan-shell .aq-how>summary{display:inline-block;cursor:pointer;color:var(--uk-ivory-dim,#c9bda5);font:600 .8125rem/1.6 var(--uk-sans,sans-serif);text-decoration:underline;text-decoration-color:#b8955a80;text-underline-offset:3px;list-style:none}
.artisan-shell .aq-how>summary::-webkit-details-marker{display:none}
.artisan-shell .aq-how>p{margin:4px 0 0;color:var(--uk-ivory-dim,#c9bda5);font-size:.875rem;line-height:1.4}
.artisan-shell .aq-target{outline:3px solid var(--uk-gold-hi,#f0ce83);outline-offset:3px;box-shadow:0 0 18px 4px #f0ce8366;animation:aq-target 1.4s ease-in-out infinite;z-index:4}
@keyframes aq-target{50%{outline-color:#f0ce8333;box-shadow:0 0 6px 1px #f0ce8322}}
.artisan-shell .as-pin.aq-target{outline-offset:2px}
.artisan-shell .as-page.aq-want-rich .as-tap{outline:3px solid var(--uk-gold-hi,#f0ce83);outline-offset:4px;border-radius:50%;animation:aq-target 1.4s ease-in-out infinite}
@media(prefers-reduced-motion:reduce){.artisan-shell .aq-target,.artisan-shell .as-page.aq-want-rich .as-tap{animation:none}}
/* The compact Town's Services button (public/compact-ui.js .cx-list, outside the shell) lights when the person to see is off the square's camera
   (public/artisan-quests-page.js servicesLight). It stops once the list is open, where the row itself is lit. */
html.cx-on:not(.cx-list-open) .cx-hud>.cx-list.aq-target{outline:3px solid var(--uk-gold-hi,#f0ce83);outline-offset:3px;border-color:#f0ce83;box-shadow:0 0 18px 4px #f0ce8366;animation:aq-target 1.4s ease-in-out infinite}
@media(prefers-reduced-motion:reduce){html.cx-on .cx-hud>.cx-list.aq-target{animation:none}}
.artisan-shell .as-pin.aq-target{outline:none;box-shadow:none;animation:none}
.artisan-shell .as-pin.aq-target::after{content:'';position:absolute;left:var(--pin-c,33px);top:50%;width:58px;height:58px;border:3px solid var(--uk-gold-hi,#f0ce83);border-radius:50%;box-shadow:0 0 16px #f0ce83,inset 0 0 10px #f0ce8388;pointer-events:none;animation:aq-ring 1.4s ease-out infinite}
.artisan-shell .as-pin.is-left.aq-target::after{left:calc(100% - var(--pin-c,33px))}
@keyframes aq-ring{0%{transform:translate(-50%,-50%) scale(.75);opacity:1}100%{transform:translate(-50%,-50%) scale(1.6);opacity:0}}
@media(prefers-reduced-motion:reduce){.artisan-shell .as-pin.aq-target::after{animation:none;transform:translate(-50%,-50%)}}
/* The tag over the lit button (public/artisan-quests-page.js bubble()). Outside .artisan-shell: it hangs on the body, fixed to the screen. */
.aq-bubble{position:fixed;z-index:60;max-width:min(280px,calc(100vw - 16px));padding:7px 12px;border:1px solid #c9a25f;border-radius:8px;background:linear-gradient(160deg,#2a3b55,#152236);box-shadow:0 6px 18px #000a,0 0 0 1px #000 inset;color:#f4ead6;font:600 .875rem/1.3 var(--uk-sans,system-ui,sans-serif);pointer-events:none;animation:aq-bob 1.6s ease-in-out infinite}
.aq-bubble::after{content:'';position:absolute;left:var(--arrow,50%);top:100%;width:12px;height:12px;border:solid #c9a25f;border-width:0 1px 1px 0;background:#152236;transform:translate(-50%,-6px) rotate(45deg)}
.aq-bubble.is-below::after{top:auto;bottom:100%;border-width:1px 0 0 1px;background:#2a3b55;transform:translate(-50%,6px) rotate(45deg)}
.aq-bubble[hidden]{display:none}
@keyframes aq-bob{50%{translate:0 -3px}}
@media(prefers-reduced-motion:reduce){.aq-bubble{animation:none}}
.artisan-shell .aq-steps .uk-heading small{margin-left:8px;color:var(--uk-ivory-dim,#c9bda5);font:600 .8125rem var(--uk-sans,sans-serif)}
.artisan-shell .aq-all{margin-top:8px}
.artisan-shell .aq-all>summary{cursor:pointer;color:var(--uk-ivory-dim,#c9bda5);font:600 .875rem/1.8 var(--uk-sans,sans-serif);text-decoration:underline;text-decoration-color:#b8955a80;text-underline-offset:3px}
.artisan-shell .aq-all>ol{margin-top:6px}
.artisan-shell .aq-finished .aq-coach-actions .uk-btn{flex:0 0 auto;min-width:160px}
/* Gear: the painted figure stands in the workshop (public/artisan-gear-page.js figure()); a following pet keeps its idle clip at the figure's feet. */
.artisan-shell .ag-doll .uk-doll-art.uk-doll-fit{min-height:340px}
.artisan-shell .ag-doll .ag-pet-only{position:absolute;z-index:2;left:4%;bottom:2%;width:34%;aspect-ratio:1;background:none;align-self:auto}
.artisan-shell .ag-doll .ag-pet-only .as-pet{left:0;bottom:0;width:100%}
/* Recipe book (Pat, 27 Oct; public/artisan-recipe-book.js). The list is the Blacksmith/Enchanter item picker (.workshop-picker, interface-art.css);
   the open recipe is one frame: a title row, then what goes in and what comes out drawn as pictures with their counts, then one gold button. */
.artisan-shell .rb-tabs{margin:0 0 12px}
.artisan-shell .rb-tabs .uk-tab img{width:26px;height:26px;object-fit:contain;filter:drop-shadow(0 2px 2px #0009)}
.artisan-shell .rb-tabs .uk-tab small{opacity:.7;font-weight:500}
.artisan-shell .rb-layout{display:grid;grid-template-columns:minmax(260px,.75fr) minmax(0,1.5fr);gap:16px;align-items:start}
.artisan-shell .rb-picker .workshop-items{max-height:620px}
.artisan-shell .rb-item{min-height:64px}
.artisan-shell .rb-item .rb-pic{width:44px;height:44px;flex:none;object-fit:contain}
.artisan-shell .rb-item>span:last-child{display:grid;gap:2px;min-width:0}
.artisan-shell .rb-item strong{color:#f2e6c8;font-size:.9375rem}
.artisan-shell .rb-item small{color:#a9b4bf;font-size:.78rem}
.artisan-shell .rb-item.is-ready .rb-line{color:#8fd49a}
.artisan-shell .rb-item:is(.is-short,.is-tool) .rb-line{color:#ff9d8a}
.artisan-shell .rb-item.is-locked{opacity:.55;filter:grayscale(.6)}
.artisan-shell .rb-tag{font:700 .65rem/1 system-ui;letter-spacing:.06em;text-transform:uppercase;font-style:normal;color:#d9b6ff;margin-left:4px}
.artisan-shell .rb-q{display:grid;place-items:center;flex:none;width:44px;height:44px;border:1px dashed #c7a46799;border-radius:6px;background:radial-gradient(circle at 50% 35%,#24364e,#0f1826 80%);font:700 1.6rem/1 Georgia,serif;color:#f0ce83;text-shadow:0 0 10px #f0ce8366}
.artisan-shell .rb-q-lg{width:72px;height:72px;font-size:2.6rem}
.artisan-shell .rb-item.is-hidden strong{color:#f0ce83}
.artisan-shell .rb-empty{color:#a9b4bf;font-size:.85rem}
.artisan-shell .rb-page{display:grid;gap:16px;min-width:0}
.artisan-shell .rb-title{display:flex;gap:14px;align-items:center;min-width:0}
.artisan-shell .rb-title>.rb-pic{width:72px;height:72px;flex:none;object-fit:contain;filter:drop-shadow(0 3px 4px #000a)}
.artisan-shell .rb-title h3{margin:0;font:600 1.4rem/1.15 Georgia,serif;color:#ffe1aa}
.artisan-shell .rb-sub{margin:3px 0 0;color:#a9b4bf;font-size:.85rem}
.artisan-shell .rb-does{margin:6px 0 0;color:#e7dcc4;font-size:.95rem;line-height:1.35}
.artisan-shell .rb-formula{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:center;gap:6px 8px;margin:0;padding:14px 4px;list-style:none;border-block:1px solid #b69a6040}
.artisan-shell .rb-formula>li{display:grid;justify-items:center;gap:3px;min-width:0;text-align:center}
.artisan-shell .rb-in,.artisan-shell .rb-out{width:88px}
.artisan-shell .rb-result{display:flex!important;flex-direction:row;align-items:flex-start;gap:8px}
.artisan-shell .rb-out{display:grid;justify-items:center;gap:3px;text-align:center}
.artisan-shell .rb-icon .ah-ws b,.artisan-shell .rb-title .ah-ws b{display:none}
.artisan-shell .rb-icon{position:relative;display:block}
.artisan-shell .rb-icon .uk-icon-tile{width:60px;height:60px;padding:5px}
.artisan-shell .rb-result>.rb-arrow{margin-top:29px}
.artisan-shell .rb-out .uk-icon-tile{width:76px;height:76px;border-color:#f0ce83;box-shadow:inset 0 0 0 1px #0c1723,0 0 14px #f0ce8340}
.artisan-shell .rb-out{width:104px}
.artisan-shell .rb-badge{position:absolute;right:-9px;top:-8px;min-width:22px;padding:2px 6px;border-radius:11px;background:#0c1723;border:1px solid #d6b575;color:#ffe1aa;font:700 .8rem/1.2 system-ui;box-shadow:0 2px 4px #000a}
.artisan-shell .rb-name{font-size:.78rem;line-height:1.2;color:#e7dcc4;overflow-wrap:anywhere}
.artisan-shell .rb-in small,.artisan-shell .rb-out small{font-size:.72rem;color:#8fd49a}
.artisan-shell .rb-out small{color:#a9b4bf}
.artisan-shell .rb-in.is-short .uk-icon-tile{border-color:#d0675a}
.artisan-shell .rb-in.is-short .rb-badge{border-color:#d0675a;color:#ffb3a6}
.artisan-shell .rb-in.is-short small{color:#ff9d8a}
.artisan-shell .rb-plus{align-self:flex-start;margin-top:15px;font:600 1.3rem Georgia,serif;color:#b69a60}
.artisan-shell .rb-arrow{align-self:flex-start;margin-top:21px;flex:none;width:34px;height:18px;background:linear-gradient(90deg,#b69a60,#f0ce83);clip-path:polygon(0 35%,62% 35%,62% 0,100% 50%,62% 100%,62% 65%,0 65%)}
.artisan-shell .rb-blank{font:700 1.8rem/1 Georgia,serif;color:#f0ce83;border-style:dashed;background:radial-gradient(circle at 50% 35%,#24364e,#0f1826 80%)}
.artisan-shell .rb-guess .is-maybe{opacity:.5}
.artisan-shell .rb-make{display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px}
.artisan-shell .rb-count{display:flex;align-items:center;gap:8px;font-size:.85rem;color:#c5d2cf}
.artisan-shell .rb-count input{width:84px;min-height:40px;box-sizing:border-box;padding:6px 8px;border:1px solid #637476;border-radius:5px;background:#101d25;color:#edf1e8;font:1rem system-ui}
.artisan-shell .rb-time{display:flex;align-items:center;gap:8px;margin:0 0 0 auto}
.artisan-shell .rb-time b{font:600 1.1rem Georgia,serif;color:#ffe1aa}
.artisan-shell .rb-time small{color:#a9b4bf;margin-left:4px}
.artisan-shell .rb-go{min-height:48px;font-size:1rem}
.artisan-shell .rb-note,.artisan-shell .rb-hint{margin:-6px 0 0;color:#a9b4bf;font-size:.85rem;text-align:center}
.artisan-shell .rb-hint{margin:0;color:#e7dcc4;font-size:.9rem}
@media(max-width:850px){.artisan-shell .rb-layout{grid-template-columns:minmax(0,1fr)}.artisan-shell .rb-picker .workshop-items{max-height:300px}}
@media(max-width:480px){.artisan-shell .rb-in{width:64px}.artisan-shell .rb-out{width:76px}.artisan-shell .rb-icon .uk-icon-tile{width:46px;height:46px;padding:3px}.artisan-shell .rb-out .uk-icon-tile{width:56px;height:56px}
 .artisan-shell .rb-formula{gap:6px 2px;padding-inline:0}.artisan-shell .rb-plus{font-size:.95rem;margin-top:11px}.artisan-shell .rb-arrow,.artisan-shell .rb-result>.rb-arrow{width:20px;height:13px;margin-top:22px}.artisan-shell .rb-result{gap:4px}.artisan-shell .rb-name{font-size:.72rem}.artisan-shell .rb-time{margin-left:0}
 .artisan-shell .rb-title>.rb-pic,.artisan-shell .rb-q-lg{width:56px;height:56px}.artisan-shell .rb-title h3{font-size:1.2rem}}
/* Artisan menus with no hero version (Collection book, Recipe book): their own painting in the hero menu's icon slot, same size and shadow. */
.fantasy-icon.as-nav-img{background-position:center;background-size:contain;background-repeat:no-repeat}
.artisan-shell .ag-skill-row{flex-wrap:wrap;row-gap:4px}
.artisan-shell .ag-skill-xp{flex:1 0 100%;height:4px}
/* Players on a site right now (Pat, 28 Oct): a small green pill on each Map pin, in each site row and beside the site's name. */
.artisan-shell .as-pop{display:inline-flex;align-items:center;gap:4px;width:max-content;font:600 .6875rem/1 var(--ui,inherit);font-style:normal;color:#bfe8b6;letter-spacing:.01em}
.artisan-shell .as-pop[hidden]{display:none}
.artisan-shell .as-pop svg{flex:none;color:#8fd487}
.artisan-shell .as-pin .as-pop{margin-top:3px}
.artisan-shell .as-site-row .as-pop{font-size:.75rem}
.artisan-shell .as-site-sub .as-pop{margin-left:10px;vertical-align:1px;padding:3px 8px;border-radius:20px;background:#13261acc;border:1px solid #5f9a5a66}
.artisan-shell .as-pin .as-pop span{position:static;transform:none;margin:0;padding:0;background:none;border:0;border-radius:0;display:inline;white-space:nowrap}
/* Profession trees (public/artisan-trees-page.js): the Hero skill tree's parts (public/class-tree.css) on a smaller canvas, one profession at a time. */
.artisan-shell .as-sheet-tabs .section-tab{position:relative}
.artisan-shell .as-tab-count{position:absolute;top:-9px;right:-9px;z-index:1;display:grid;place-items:center;min-width:20px;height:20px;padding:0 5px;border-radius:10px;background:#c99a4a;border:1px solid #f0d08c;color:#17120a;font:700 .6875rem/1 system-ui,sans-serif;box-shadow:0 0 8px #d6a85a88}
.artisan-shell .at-workspace{margin-top:14px;display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:18px;align-items:start}
.artisan-shell .at-inspector{position:sticky;top:16px;margin:0}
.artisan-shell .at-skill .class-tree-level{background:radial-gradient(ellipse,#0b1018 45%,transparent 80%);z-index:1}
.artisan-shell .at-toolbar{display:block;padding:10px 14px}
.artisan-shell .at-toolbar nav{display:flex;flex-direction:column;gap:6px;align-items:stretch}
.artisan-shell .at-group{display:block}
.artisan-shell .at-row{display:flex;flex-wrap:wrap;gap:3px;align-items:center}
.artisan-shell .at-group>small{display:block;margin:2px 0 2px 8px;font-size:.625rem;letter-spacing:.16em;text-transform:uppercase;color:#8f9aa8}
.artisan-shell .at-toolbar button{display:inline-flex;align-items:center;gap:5px;padding:6px 6px!important;min-height:40px}
.artisan-shell .at-toolbar button img{width:22px;height:22px;object-fit:contain}
.artisan-shell .at-toolbar button em{font-style:normal;font-size:.625rem;color:#8f9aa8}
.artisan-shell .at-toolbar button[aria-pressed=true]{color:var(--branch-tone)!important;border-color:color-mix(in srgb,var(--branch-tone) 55%,transparent)!important;background:color-mix(in srgb,var(--branch-tone) 12%,transparent)!important}
.artisan-shell .at-free{margin-left:auto;color:#e2c98f}
.artisan-shell .at-free img{width:18px;height:18px}
.artisan-shell .at-canvas{position:relative;height:520px;overflow:hidden;background:radial-gradient(ellipse at 50% 38%,color-mix(in srgb,var(--branch-tone) 14%,transparent),transparent 55%),#0b1018;background-image:radial-gradient(#a7bcd922 .6px,transparent .6px),radial-gradient(ellipse at 50% 38%,color-mix(in srgb,var(--branch-tone) 14%,transparent),transparent 55%);background-size:26px 26px,auto}
.artisan-shell .at-canvas .class-tree-root{top:22px}
.artisan-shell .at-canvas .tree-crest span{display:grid;place-items:center}
.artisan-shell .at-canvas .tree-crest img{width:34px;height:34px;object-fit:contain;filter:drop-shadow(0 2px 2px #000)}
.artisan-shell .at-lines{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.artisan-shell .at-narrow{display:none}
.artisan-shell .at-skill{left:var(--wx);top:var(--wy);width:min(166px,24%)}
.artisan-shell .at-skill .class-tree-skill-name{left:50%;transform:translateX(-50%);width:150%}
.artisan-shell .at-skill .class-tree-node-icon img{object-fit:contain;padding:5px;box-sizing:border-box}
.artisan-shell .at-ranks{gap:9px}
.artisan-shell .at-ranks:before{display:none}
.artisan-shell .at-ranks .class-tree-upgrade{width:20px;height:20px;cursor:default}
.artisan-shell .at-ranks .class-tree-upgrade span{font-size:.5rem}
.artisan-shell .at-skill.ultimate .class-tree-node{width:76px;height:76px;top:-6px}
.artisan-shell .at-skill.ultimate .class-tree-node-icon{width:62px;height:62px}
.artisan-shell .at-skill.ultimate .class-tree-node-icon img{padding:0}
.artisan-shell .at-skill.ultimate .class-tree-level{top:-26px}
.artisan-shell .at-skill.ultimate .class-tree-skill-name{top:80px}
.artisan-shell .at-rule{top:340px}
.artisan-shell .at-inspector{--branch-tone:#caa569}
.artisan-shell .at-inspector .at-inspect-icon{width:56px;height:56px;flex:none;border:2px solid var(--branch-tone);box-shadow:0 0 0 3px #0d1420}
.artisan-shell .at-inspector .at-inspect-icon img{width:100%;height:100%;object-fit:contain;padding:4px;box-sizing:border-box}
.artisan-shell .at-inspector h3{margin:14px 0 4px;font:.6875rem/1.2 system-ui,sans-serif;letter-spacing:.14em;text-transform:uppercase;color:#98a2b2}
.artisan-shell .at-learn{width:100%;margin:16px 0 12px;min-height:44px}
.artisan-shell .at-why{color:#d8a77a}
.artisan-shell .at-full{margin-top:16px;color:#e2c98f;font-weight:600}
.artisan-shell .at-gain{margin:10px 0 0;padding:8px 10px;border-radius:6px;background:rgba(120,190,110,.12);border:1px solid rgba(140,200,120,.35);color:#cfe8c0}
.artisan-shell .at-gain.is-part{background:rgba(220,180,90,.12);border-color:rgba(220,180,90,.4);color:#ecd9a8}
.artisan-shell .at-gain.is-zero{background:rgba(200,110,90,.12);border-color:rgba(210,120,100,.4);color:#ecc0b0}
@media (max-width:1100px){.artisan-shell .at-workspace{grid-template-columns:1fr}.artisan-shell .at-inspector{position:static}}
@media (max-width:640px){
 .artisan-shell .at-canvas{height:690px}
 .artisan-shell .at-rule span{letter-spacing:.1em;padding:0 8px;white-space:nowrap}
 .artisan-shell .at-row{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}
 .artisan-shell .at-row button{flex:none}
 .artisan-shell .at-wide{display:none}.artisan-shell .at-narrow{display:block}
 .artisan-shell .at-skill{left:var(--nx);top:var(--ny);width:46%}
 .artisan-shell .at-skill .class-tree-skill-name{width:100%}
 .artisan-shell .at-rule{top:536px;left:4%;width:92%}
 .artisan-shell .at-toolbar button{padding:6px 8px!important;font-size:.6875rem!important}
}
/* The Blessing once active: one small line (public/artisan-shell.js blessing). */
.artisan-shell .as-blessing-status{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;margin:0 0 10px;padding:6px 10px;border:1px solid #c7a46755;border-radius:8px;background:#0e1726;color:#cfd6d4;font-size:.8125rem;line-height:1.35}.artisan-shell .as-blessing-status img{width:28px;height:26px;object-fit:contain}.artisan-shell .as-blessing-status b{color:#f0ce83}
.artisan-shell .as-coming{padding:16px 18px}.artisan-shell .as-coming .uk-heading{margin:0 0 6px}
/* The Dawn Shop on the hero's build (public/artisan-shell.js shop): the full width of the window, as the hero's. */
.artisan-shell .as-shop{width:100%;max-width:none;margin:0}
/* The chances per load under each part of a site (public/artisan-shell.js odds). */
.artisan-shell .as-odds{list-style:none;margin:8px 0 0;padding:0;display:grid;gap:2px;font-size:.8125rem}.artisan-shell .as-odds li{display:grid;grid-template-columns:22px minmax(0,1fr) auto;gap:8px;align-items:center;padding:2px 0;border-bottom:1px solid #ffffff10}.artisan-shell .as-odds b{color:#f0ce83;font-variant-numeric:tabular-nums}.artisan-shell .as-odds img{width:22px;height:22px;object-fit:contain}.artisan-shell .as-odds .as-odds-note{display:block;border:0;color:#9fb0ad;font-size:.75rem;padding-top:4px}
.artisan-shell .as-part:has(.as-odds){align-items:flex-start}.artisan-shell .as-part>div{flex:1;min-width:0}
/* Bag item pop-up: the main action (Refine at the Crafters' Hall) gets the whole first row, the rest share the row under it. */
.artisan-shell~.inventory-dialog .inventory-primary-actions>.uk-btn-primary{flex-basis:100%}
@media(max-width:560px){.artisan-shell~.inventory-dialog .inventory-primary-actions>button{flex-basis:100%}}
/* The Leaderboards page opened from an Artisan's menu (public/ui-leaderboards.js) sits in the Artisan page frame, which already has the page padding. */
.artisan-shell .as-page>.uk-lb.exp-page{padding:0}
/* One row of tabs at 1440: the Artisan's Leaderboards has one more tab (Weekly challenge) than the hero's, so the tabs may shrink below their label width. */
@media(min-width:761px){.artisan-shell .as-page .uk-lb-tabs.uk-tabs>.uk-tab{flex:1 1 auto;padding-inline:6px;gap:4px;font-size:.86rem}}
/* Auction House Browse (Pat, 28 Oct, after Void and WoW): type chips, then one small card per item, and the item's own page. Kit tokens only. */
.artisan-shell .am-types{margin:0 0 12px}
.artisan-shell .am-back{margin:0 0 12px}
.artisan-shell .am-item-head{display:flex;flex-wrap:wrap;align-items:center;gap:12px 16px;margin:0 0 14px;padding-bottom:14px;border-bottom:1px solid #c7ac7333}
.artisan-shell .am-item-head>div{flex:1 1 200px;min-width:0}
.artisan-shell .am-item-pic img{width:72px;height:72px;object-fit:contain}
.artisan-shell .am-item-stats{margin:0}
/* Artisan item card (Pat, 28 Oct): the hero card's framed picture, in the grade's colour, with the tier badge. The rest is the hero card's own CSS. */
.inventory-dialog .inventory-scroll .item-detail-title>.as-ic-pic{position:relative;display:grid;place-items:center;flex:none;width:128px;height:128px;border:2px solid var(--uk-rarity,#8a7a55);border-radius:6px;background:radial-gradient(circle at 50% 40%,#24323d,#10171d);box-shadow:0 7px 22px #0005}
.inventory-dialog .item-detail-title>.as-ic-pic>img{width:96px;height:96px;object-fit:contain}
.inventory-dialog .item-detail-title>.as-ic-pic>.item-tier-badge{position:absolute;top:4px;right:4px;padding:1px 5px;border-radius:3px;background:#081219e8;color:#f6deb0;font:700 .75rem/1.3 system-ui,sans-serif}
.inventory-dialog .as-ic .eyebrow{color:var(--uk-rarity,#d9b777)}
.inventory-dialog .ic-acts>.ic-act.is-armed{border-color:#c0614f;background:linear-gradient(#4a2620,#2a1612)}
@media(max-width:430px){.inventory-dialog .inventory-scroll .item-detail-title>.as-ic-pic{width:84px;height:84px}.inventory-dialog .item-detail-title>.as-ic-pic>img{width:64px;height:64px}}
.ag-piece-open.uk-row-media{padding:0;cursor:pointer}.ag-piece-name.text-button{padding:0;font:inherit;color:inherit;text-align:left;cursor:pointer}
.ag-piece-name.text-button:hover{text-decoration:underline}
.community-chat .chat-item-link.chat-item-artisan{color:#e8c98a}.community-chat .chat-item-link.chat-item-artisan.is-superior{color:#9ae867}.community-chat .chat-item-link.chat-item-artisan.is-rare{color:#6fb4ff}.community-chat .chat-item-link.chat-item-artisan.is-epic{color:#c39bff}
/* Artisan Welcome back (Pat, 28 Oct): the hero's Welcome back window (public/homecoming.css) with five tiles and the haul under them. */
.as-return .as-return-stats .return-stat,.as-return .as-return-stats .return-stat.xp{grid-column:span 2}.as-return .as-return-stats .return-stat.xp,.as-return .as-return-stats .return-stat.hours{grid-column:span 3}
.as-return .as-return-h{margin:18px 0 8px;font:600 1rem/1.3 Georgia,serif;color:#f3d69e}
.as-return .as-return-items{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:8px}
.as-return .as-return-items li{display:flex;align-items:center;gap:10px;min-width:0;padding:6px 10px;border:1px solid #4d5a57;border-radius:6px;background:#18262e;color:#e7dec9;font:.875rem/1.35 system-ui}
.as-return .as-return-items li.is-find{border-color:#c89b58;background:#2a2a20}
.as-return .as-return-items img{flex:none;width:36px;height:36px;object-fit:contain}.as-return .as-return-items span{min-width:0;overflow-wrap:anywhere}.as-return .as-return-items b{color:#fae3b0}
/* What the haul is worth and who is buying (hook plan change 4, IRP_ARTISAN_SALE_VERSION; public/artisan-shell.js haulWorth). */
.as-return .as-return-worth{display:grid;grid-template-columns:1fr auto;align-items:center;gap:2px 14px;margin:10px 0 0;padding:10px 12px;border:1px solid #c89b5899;border-radius:6px;background:#241f16;color:#e7dec9;font:.875rem/1.4 system-ui}
.as-return .as-return-worth p{grid-column:1;margin:0}.as-return .as-return-worth p:first-child{font-size:1rem}.as-return .as-return-worth b{color:#fae3b0}.as-return .as-return-worth button{grid-column:2;grid-row:1/3;min-height:40px;white-space:nowrap}
@media(max-width:550px){.as-return .as-return-worth{grid-template-columns:1fr}.as-return .as-return-worth button{grid-column:1;grid-row:auto;justify-self:start;margin-top:6px}}
.as-return .as-return-finds{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.as-return .as-return-find{display:flex;align-items:center;gap:12px;padding:10px 12px;border:1px solid #c89b58;border-radius:6px;background:#2a2a20;color:#e7dec9}
.as-return .as-return-find.is-unique{border-color:#e0a24b;box-shadow:inset 0 0 0 1px #e0a24b55}
.as-return .as-return-find img{flex:none;width:40px;height:40px;object-fit:contain}.as-return .as-return-find span{display:grid;gap:2px;min-width:0}.as-return .as-return-find b{color:#fae3b0}.as-return .as-return-find small{color:#cbc8bb}
@media(max-width:550px){.as-return .as-return-stats .return-stat,.as-return .as-return-stats .return-stat.xp,.as-return .as-return-stats .return-stat.hours{grid-column:auto}.as-return .as-return-stats .return-stat:last-child{grid-column:1/-1}.as-return .as-return-items{grid-template-columns:1fr 1fr}.as-return .as-return-items li{padding:6px}}
.chat-log-row .chat-log-xp{color:#a8dc8c}
/* The Town (public/artisan-town-page.js): the heroes' whole-town map inside the Artisan page, and what a person opens when your Artisan reaches them. */
.artisan-shell .art-town{padding:0;max-width:none;width:100%;justify-self:stretch}.artisan-shell .art-town .town-whole-services{flex:none;max-height:none}
.artisan-shell .at-npc-pop .item-inspector{max-width:720px}.artisan-shell .at-npc-pop .inventory-scroll{display:grid;gap:12px}
.artisan-shell .at-need{margin:0;padding:10px 12px;border:1px solid #b59a6755;border-radius:8px;background:#0c1520cc;color:#ffe1aa;font-weight:600}
.artisan-shell .at-npc-pop .at-requests{margin:0;padding:0;list-style:none;display:grid;gap:10px}
/* The request dialog already names the goods, payout and action. The town directions belong in the square. */
body:has(.at-npc-pop [data-town-fill]) .aq-bubble{display:none}
.artisan-shell .art-town .town-map-layout{grid-template-columns:minmax(0,1fr) 300px;align-items:start}.artisan-shell .art-town .town-viewport{width:100%;max-width:calc((100vh - 190px)*1.5)}
.artisan-shell .art-town .town-whole-side{height:auto;min-height:0}
/* The town square as big as a hero's (Pat, 29 Oct: "town window for artisans seems tiny"): the Town page grows with the window as the hero town does (town-map.css). */
.artisan-shell .as-page[data-artisan-screen="town"]{max-width:2600px}
@media(min-width:1051px){.artisan-shell .art-town .town-map-layout{grid-template-columns:minmax(0,calc((100vh - 190px)*1.5 + 44px)) minmax(300px,1fr)}}
@media(max-width:1050px){.artisan-shell .art-town .town-map-layout{grid-template-columns:minmax(0,1fr)}}
.artisan-shell .art-town-say{z-index:4000;transition:opacity .4s}
/* Collection book (public/artisan-book-page.js): the coloured tabs on the book's edge carry each page's icon and flip to it; milestones on every material
   and recipe; the Made and Records pages. */
.artisan-shell .bk-edge{position:absolute;right:2.4%;top:19.5%;bottom:14.5%;width:7.4%;display:flex;flex-direction:column;gap:.5%;z-index:2}
.artisan-shell .bk-tab{flex:1 1 0;min-height:0;display:flex;align-items:center;justify-content:center;padding:0;border:1px solid #0007;border-left:0;border-radius:0 9px 9px 0;cursor:pointer;box-shadow:inset 0 1px 0 #fff4,2px 2px 4px #0008;transition:transform .15s,filter .15s;color:#fff}
.artisan-shell .bk-tab img{width:min(30px,70%);height:auto;aspect-ratio:1;filter:drop-shadow(0 1px 1px #000c)}.artisan-shell .bk-tab span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.artisan-shell .bk-tab.is-c0{background:linear-gradient(90deg,#7c1313,#c4302a)}.artisan-shell .bk-tab.is-c1{background:linear-gradient(90deg,#14502a,#2f9a4c)}.artisan-shell .bk-tab.is-c2{background:linear-gradient(90deg,#16306e,#3460c4)}.artisan-shell .bk-tab.is-c3{background:linear-gradient(90deg,#3d1a6a,#7a3fc0)}.artisan-shell .bk-tab.is-c4{background:linear-gradient(90deg,#7a5a0e,#d6a826)}
.artisan-shell .bk-tab:hover{filter:brightness(1.15);transform:translateX(3px)}.artisan-shell .bk-tab[aria-pressed="true"]{transform:translateX(8px);filter:brightness(1.2);box-shadow:inset 0 1px 0 #fff6,0 0 0 2px #f0ce83,3px 3px 6px #000a}
.artisan-shell .bk-tab:focus-visible{outline:2px solid #f0ce83;outline-offset:2px}
.artisan-shell .bk-mile{display:grid;gap:2px;width:100%;padding:0 2px}.artisan-shell .bk-mile small{font-size:.625rem!important}
.artisan-shell .bk-mile-bar{display:block;height:4px;border-radius:2px;background:#5a3a1a33;overflow:hidden}.artisan-shell .bk-mile-bar>i{display:block;height:100%;background:linear-gradient(90deg,#b07a22,#e2b14a)}
.artisan-shell .bk-leaf .bk-slot.has-step{border-color:#b07a22aa;background:#ffe6a855}
.artisan-shell .bk-made{list-style:none;margin:0;padding:0;display:grid;gap:6px}.artisan-shell .bk-made li{display:flex;gap:8px;align-items:center;padding:5px 6px;border:1px solid #7a5a3066;border-radius:6px;background:#fff6dc55}
.artisan-shell .bk-made li.has-step{border-color:#b07a22aa}.artisan-shell .bk-made li>div{flex:1;display:grid;gap:2px;min-width:0}.artisan-shell .bk-made b{font-size:.8125rem}.artisan-shell .bk-made small{font-size:.6875rem;color:#5e4628}
.artisan-shell .bk-leaf .bk-records,.artisan-shell .bk-leaf .bk-trophies{padding:0;border:0;background:none;color:#3b2814}.artisan-shell .bk-leaf .bk-record-list{grid-template-columns:1fr}
.artisan-shell .bk-leaf .bk-record-list li{border-color:#7a5a3066;background:#fff6dc55}.artisan-shell .bk-leaf .bk-record-list small{color:#6b4416}.artisan-shell .bk-leaf .bk-record-list b{color:#3b2814}
.artisan-shell .bk-leaf .bk-sub,.artisan-shell .bk-leaf .ag-empty,.artisan-shell .bk-leaf .bk-board small,.artisan-shell .bk-leaf .bk-fish small{color:#5e4628}.artisan-shell .bk-leaf .bk-board li,.artisan-shell .bk-leaf .bk-fish li{border-color:#7a5a3066;background:#fff6dc55;color:#3b2814}
@media(max-width:760px){.artisan-shell .bk-edge{position:static;flex-direction:row;flex-wrap:wrap;width:auto;gap:4px;margin:0 0 12px}.artisan-shell .bk-tab{flex:0 0 calc(20% - 3.2px);height:40px;border-left:1px solid #0007;border-radius:8px}.artisan-shell .bk-tab[aria-pressed="true"]{transform:translateY(-3px)}
 .artisan-shell .bk-spread{display:flex;flex-direction:column}.artisan-shell .bk-spread>.bk-edge{order:-1}}
.artisan-shell .bk-leaf .bk-record-list li.is-empty b{color:#7a6040}.artisan-shell .bk-leaf .bk-sub small{color:#6b4416}
/* Quests (Pat, 28 Oct): the hero's Quests header and tabs; a card that says Artisan Points can be spent, with a button to the Quest Tree. */
.artisan-shell .aq-spend{display:flex;align-items:center;gap:12px;flex-wrap:wrap;border-color:var(--uk-gold,#d9b56b)}
.artisan-shell .aq-spend p{flex:1 1 220px;margin:0}
.artisan-shell .aq-journal{display:grid;gap:12px;min-width:0}
.artisan-shell .aq-journal .qt-tabs-1{display:none}
/* The Crafters' Hall bench's profession meter (public/artisan-hall.js xpMeter): in the bench head, not over a map. */
.artisan-shell .as-xp.ah-xp{position:static;grid-template-columns:1fr;width:auto;max-width:420px;margin:8px 0 4px;z-index:auto}

/* The Artisan's Look & portrait window (public/artisan-shell.js looksHtml). Phone first: the figure over the portrait; side by side from 700 px. */
.as-looks-backdrop{position:fixed;inset:0;z-index:1200;display:grid;place-items:center;padding:12px;background:#03060bcc}
.as-looks{width:min(100%,720px);max-height:calc(100dvh - 24px);overflow:auto;padding:16px;box-sizing:border-box}
.as-looks-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding-bottom:10px;border-bottom:1px solid #b69a6055}
.as-looks-head h2{margin:2px 0 0;font:600 1.6rem/1.15 var(--uk-serif,Georgia,serif);color:var(--uk-ivory,#f3e4c4)}
.as-looks-sub{margin:2px 0 0;color:var(--uk-ivory-dim,#c9b994)}
.as-looks-body{display:grid;grid-template-columns:1fr;gap:14px;padding-top:12px}
.as-looks-figure{position:relative;overflow:hidden;margin:0;height:min(42dvh,320px);border:1px solid #b69a6055;border-radius:4px;background:radial-gradient(ellipse at 50% 85%,#3a2c1866,transparent 65%),#0c1520}
.as-looks-figure img{position:absolute;left:50%;bottom:0;transform:translateX(-50%);height:96%;width:auto;max-width:none;filter:drop-shadow(0 6px 8px #000a)}
.as-looks-side{display:grid;grid-template-columns:auto 1fr;gap:6px 14px;align-content:start;align-items:center}
.as-looks-side .uk-label{grid-column:1/-1;margin:0}
.as-looks-portrait{width:96px;height:96px;border-radius:50%;border:2px solid #c7a467;box-shadow:0 2px 10px #000a;object-fit:cover}
.as-looks-best{margin:0;color:var(--uk-ivory,#f3e4c4)}
.as-looks-side .uk-card-note{grid-column:1/-1;margin:4px 0 0}
@media(min-width:700px){
 .as-looks-body{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr)}
 .as-looks-figure{height:420px}
 .as-looks-side{grid-template-columns:1fr;justify-items:start}
 .as-looks-portrait{width:160px;height:160px}
}
.artisan-shell .as-real-gain{margin-top:10px}.artisan-shell .gear-capped,.gear-capped{color:#d9b98a;font-size:.85em}
/* Tree paths (IRP_ARTISAN_PATHS_VERSION, public/artisan-trees-page.js pathPage): three columns of two nodes over a keystone, the path name on top,
   a milestone tag between the second node and the keystone, and the keystone's gate line. */
.artisan-shell .at-paths .at-canvas{height:790px}
.artisan-shell .at-paths .at-skill{width:min(166px,30%)}
.artisan-shell .at-path-name,.artisan-shell .at-path-mark{position:absolute;left:var(--px);transform:translateX(-50%);margin:0;text-align:center;white-space:nowrap;z-index:1}
.artisan-shell .at-path-name{top:156px;padding:1px 8px;border-radius:6px;background:#0b1018e6;color:#f0ce83;font:600 .875rem/1.2 var(--font-display,serif);letter-spacing:.04em}
.artisan-shell .at-path-name small{display:block;color:#a9b3b8;font:400 .6875rem/1.3 inherit;letter-spacing:0}
/* Art 127: the path crest left of its name, and the gathering trees' backdrop, quiet behind the nodes. */
.artisan-shell .at-path-name:has(.at-path-crest){padding-left:34px}
.artisan-shell .at-path-crest{position:absolute;left:4px;top:50%;width:26px;height:26px;transform:translateY(-50%);filter:drop-shadow(0 1px 2px #000)}
.artisan-shell .at-backdrop{position:absolute;inset:0;z-index:0;background:center/cover no-repeat;opacity:.18;pointer-events:none}
.artisan-shell .at-path-mark{top:568px;padding:2px 8px;border:1px solid #c7a46766;border-radius:999px;background:#0e1726;color:#cfd6d4;font-size:.6875rem}
.artisan-shell .at-path-mark.is-got{border-color:#f0ce83;color:#f0ce83}
.artisan-shell .at-milestone{margin:10px 0;padding:8px 10px;border:1px solid #c7a46755;border-radius:8px;background:#0e1726;color:#cfd6d4;font-size:.8125rem;line-height:1.4}
.artisan-shell .at-milestone.is-got{border-color:#f0ce83}.artisan-shell .at-milestone strong{color:#f0ce83}
.artisan-shell .at-relearn{margin-top:8px;width:100%}
@media (max-width:640px){
 .artisan-shell .at-paths .at-canvas{height:790px}
 .artisan-shell .at-paths .at-skill{left:var(--nx);top:var(--ny);width:31%}
 .artisan-shell .at-paths .at-skill .class-tree-skill-name{width:110%;font-size:.75rem}
 .artisan-shell .at-path-name{font-size:.75rem}
 /* Phones: the three path names already fill the width, so the crest goes away there. */
 .artisan-shell .at-path-crest{display:none}
 .artisan-shell .at-path-name:has(.at-path-crest){padding-left:8px}
 .artisan-shell .at-path-name small{font-size:.5625rem}
 .artisan-shell .at-paths .at-ranks{display:none}
}

/* The Blessing's days left in the Dawn Shop, where its claim button was (QA, 1 Nov). */
.artisan-shell .as-blessing-left{margin:0;text-align:center;color:#f3e3bd;font-size:.875rem}.artisan-shell .as-blessing-left b{display:block;font-size:1.75rem;line-height:1;color:#ffd98a}
@media(max-width:600px){.artisan-shell .as-blessing-left{grid-column:1/-1}}
.artisan-shell .at-empty.at-locked{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:2px;padding-top:6px;box-sizing:border-box;line-height:1}.artisan-shell .at-empty.at-locked .uk-ico{width:22px!important;height:22px!important}.artisan-shell .at-empty.at-locked small{font:600 .68rem/1 var(--uk-sans,system-ui);color:var(--uk-ivory-dim,#c9bda5)}
/* Welcome back: the whole window scrolls (homecoming.css), so on a 900px-tall PC screen a long haul pushed Continue gathering below the fold with nothing
   to say it was there (QA, 1 Nov). The buttons stay at the bottom of the window, as they already do on phones (desktop-fit.css). */
.as-return .return-dialog>footer{position:sticky;bottom:0;z-index:1}
.as-return .return-level{margin:10px 0 0;padding:10px 14px}
/* The coach's Go button grew to fill an 840px row on the Gear page at 1440 (QA, 1 Nov): a button-sized button on PC, full width on phones as before. */
@media(min-width:700px){.artisan-shell .aq-coach-actions .uk-btn{flex:0 0 auto;min-width:180px}}
/* Pages drawn as an exp-page (Quests, Guild, Leaderboards) inherit margin:auto from the hero pages, which in the Artisan window's grid shrank Quests to
   a 600px column in the middle of a 1120px window (QA, 1 Nov). They fill the window like every other Artisan page, and on a PC the day's quests sit
   side by side instead of one long column to scroll. */
.artisan-shell main.as-page>.exp-page{margin-inline:0;justify-self:stretch}
@media(min-width:901px){.artisan-shell .aq-list>.uk-row-list{grid-template-columns:repeat(auto-fill,minmax(300px,1fr))}}
/* Replay tutorial was a bar the width of the window under the quests (QA, 1 Nov): a button-sized button. */
.artisan-shell .aq-replay{display:flex;justify-content:flex-start}.artisan-shell .aq-replay>.uk-btn{flex:0 0 auto;width:auto;min-width:180px}
/* On a phone the tutorial card took the top third of every page, the Auction House and the Guide included, with its full text, bar and skip links
   (QA, 1 Nov), and on a PC it pushed every window's own content down 180px. Away from the step's own page it is one slim row: the step and its Go
   button. The full card shows where the step is done. */
@media all{
 .artisan-shell .aq-coach.is-away{grid-template-columns:minmax(0,1fr) auto!important;align-items:center;gap:4px 10px!important;padding:8px 10px!important}
 .artisan-shell .aq-coach.is-away>img,.artisan-shell .aq-coach.is-away .aq-do,.artisan-shell .aq-coach.is-away .aq-coach-bar,.artisan-shell .aq-coach.is-away .aq-how,.artisan-shell .aq-coach.is-away .aq-link{display:none!important}
 .artisan-shell .aq-coach.is-away .aq-coach-text{gap:1px}
 .artisan-shell .aq-coach.is-away .aq-coach-text b{font-size:.95rem}
 .artisan-shell .aq-coach.is-away .aq-coach-actions{grid-column:auto!important;flex-wrap:nowrap}
 .artisan-shell .aq-coach.is-away .aq-coach-actions .uk-btn{flex:0 0 auto!important;min-height:38px;padding-inline:12px}
}

/* Artisan gear in the hero's frames (Pat, 2 Nov: "the blue gear i have equip doesnt even show", "it needs to match combat"; public/artisan-gear-page.js).
   A worn piece sits in the hero doll's i.gear-icon.rarity-art.oath-gear (public/oath.css: 2px border in the grade's colour, the T badge), filling the slot
   as the hero's does (public/ui-character.css .uc-screen .uk-slot .gear-icon). The painted look draws every slot border the same, so the grade lives here. */
.ag-icon{position:relative;display:grid!important;place-items:center;box-sizing:border-box;overflow:hidden}
.ag-icon>img{display:block;width:88%;height:88%;object-fit:contain;filter:drop-shadow(0 2px 3px #000b)}
.ag-icon>img.at-glyph,.ag-icon>img.ap-pic{padding:0;width:84%;height:84%}
.ag-icon.is-ghost>img{opacity:.42;filter:grayscale(1)}
.ag-icon.is-ghost>.uk-ico,.ag-icon.is-ghost>.uk-slot-ghost{width:56%;height:56%;opacity:.6}
.artisan-shell .ag-slot>.uk-slot-icon{display:grid;place-items:center;width:100%;height:100%}
.artisan-shell .ag-slot .gear-icon.ag-icon{width:100%;height:100%;max-height:none;border-radius:inherit;background:radial-gradient(circle at 50% 38%,#20303b,#0a1116 72%)}
.artisan-shell .ag-slot .item-tier-badge{font-size:.72rem}
.artisan-shell .ag-slot>img.ag-ghost{opacity:.4}
.artisan-shell .ag-slot:hover .ag-icon,.artisan-shell .ag-slot:focus-visible .ag-icon{box-shadow:0 0 12px var(--model-rarity)}
.artisan-shell .ag-tools .ag-slot .uk-slot-label{font-size:.68rem}
/* A gear slot's hover card is the shared Artisan card (public/artisan-tip.js, artisan-tip.css); these add its note line and grey an empty slot's picture. */
.item-hover.at-hover .ag-tip-note{margin:8px 0 0;color:#d8cfbd;font-size:.88rem;line-height:1.4}
.at-pic>img.ag-ghost-pic{opacity:.42;filter:grayscale(1)}
.at-pic>.ag-ghost-pic:is(.uk-ico,.uk-slot-ghost){display:block;width:62%;height:62%;opacity:.6}
/* A slot's window (slotPop): the hero's item window, with the worn piece as the top of its item card and what else fits under it. */
.artisan-shell .ag-slot-pop .ag-panel{display:grid;gap:12px}
.artisan-shell .ag-slot-pop .ag-worn-card{margin:0}
.artisan-shell .ag-slot-pop .ag-worn-card .ic-rolls{margin-top:10px}
.artisan-shell .ag-slot-pop .ag-worn-actions{margin-top:12px;justify-content:flex-start}
.artisan-shell .ag-slot-pop .ag-sub{margin:6px 0 0}
.artisan-shell .ag-slot-pop .ag-piece .uk-row-media{width:64px;height:64px;padding:0;border:0;background:none}
.artisan-shell .ag-slot-pop .ag-piece .gear-icon.ag-icon{width:64px;height:64px;background:radial-gradient(circle at 50% 38%,#20303b,#0a1116 72%)}
.artisan-shell .ag-slot-pop .ap-row .uk-row-media,.artisan-shell .ag-slot-pop .at-row .uk-row-media{width:56px;height:56px}
.inventory-dialog .item-detail-title>.as-ic-pic>img.at-glyph,.inventory-dialog .item-detail-title>.as-ic-pic>img.ap-pic{width:96px;height:96px;object-fit:contain}
@media(max-width:430px){.artisan-shell .ag-slot-pop .ag-piece .uk-row-media,.artisan-shell .ag-slot-pop .ag-piece .gear-icon.ag-icon{width:52px;height:52px}}
/* What fits a slot: the Blacksmith and Enchanter picker's tiles (workshops-combat.css .workshop-item), two across on a computer. */
.artisan-shell .ag-slot-pop .ag-picks{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:8px;max-height:none;overflow:visible;padding:0}
.artisan-shell .ag-slot-pop .ag-pick{margin:0;min-height:72px;cursor:pointer}
.artisan-shell .ag-slot-pop .ag-pick .gear-icon.ag-icon{width:52px;height:52px;background:radial-gradient(circle at 50% 38%,#20303b,#0a1116 72%)}
.artisan-shell .ag-slot-pop .ag-pick strong{font-size:.95rem}
.artisan-shell .ag-slot-pop .ag-pick small{margin-top:3px;font-size:.78rem}
.artisan-shell .ag-slot-pop .ag-pick .cw-verdict{display:inline;margin:0;padding:0;border:0;background:none;font-size:.78rem}
.artisan-shell .ag-slot-pop .ag-pick:hover:not(:disabled):not(.is-locked){border-color:#d6b980}
.artisan-shell .ag-slot-pop .ag-pick.is-locked{opacity:.6}
.artisan-shell .ag-slot-pop .ag-pick.is-locked .ag-icon>img{filter:grayscale(.7)}
.artisan-shell .ag-slot-pop .ag-pick.is-on{border-color:#d6b980;box-shadow:inset 3px 0 #d6b980}
/* A phone shows the menu's parts as a strip of tabs over the window (public/compact-ui.js); a slot's window or a skill's stats cover the whole page, so the
   strip hides while one is open, as the window's × and the pager already do for dialogs (compact-ui.css, body.dialog-open). */
html.cx-on body:has(.ag-slot-pop,.ag-stat-pop) .cx-tabs{visibility:hidden}
.inventory-dialog .item-detail-title>.as-ic-pic.is-ghost>img{opacity:.45;filter:grayscale(1)}
.inventory-dialog .item-detail-title>.as-ic-pic.is-ghost>:is(.uk-slot-ghost,.uk-ico){display:block;width:64px;height:64px;opacity:.7}
.artisan-shell .ag-slot-pop .ag-worn-card.is-empty .ag-empty{margin-top:12px}
.artisan-shell .ag-slot-pop .ag-pick .ag-pick-rolls{color:#bfe3a8}
/* Phone: the ten tools are 44px, so their T badge is smaller and the tool sits a little lower, clear of it. */
@media(max-width:480px){.artisan-shell .ag-tools .ag-slot .item-tier-badge{font-size:.58rem;line-height:.8rem;padding:0 2px}.artisan-shell .ag-tools .ag-icon>img{width:80%;height:80%;margin-top:12%}}
/* The Bag on the hero Bag (play-test, 2 Nov; public/artisan-shell.js bag): the hero Equipment screen's parts (expansion.css, mmo-ui.css) inside the Artisan
   window, so only spacing is set here. Gear tiles carry the Character sheet's framed icon, filling the tile as a hero item does. */
.artisan-shell .as-bag-page{display:grid;gap:14px}
.artisan-shell .as-bag-page .ms-head{margin:0}
.artisan-shell .as-bag-page .equipment-workspace{margin:0}
.artisan-shell .as-bag-page .as-bag-panel,.artisan-shell .as-bag-page .as-bag-more{margin:0}
.artisan-shell .as-bag-page .item-tile>.gear-icon.ag-icon{width:100%;height:100%;max-width:100%;max-height:100%;background:radial-gradient(circle at 50% 38%,#20303b,#0a1116 72%)}
.artisan-shell .as-bag-page .as-bag-tile>.gear-icon+.item-quantity{z-index:1}
.artisan-shell .as-bag-page .as-worn-tile{cursor:pointer}
.artisan-shell .as-bag-page .as-worn-tile:hover .ag-icon,.artisan-shell .as-bag-page .as-worn-tile:focus-visible .ag-icon,.artisan-shell .as-bag-page .as-bag-tile:hover .ag-icon{box-shadow:0 0 12px var(--model-rarity)}
.artisan-shell .as-bag-worn>.small-note{margin:10px 0 0}
/* Phone: what you wear comes first, then the Bag, as on the hero's (phone-pass.css). */
@media(max-width:760px){.artisan-shell .as-bag-page>.equipment-workspace>.as-bag-worn{order:-1}}
/* Menu review, 3 Nov: the Artisan window's tabs (Character sheet, Skill tree) sat small at the left of the window. Drawn as the Hero window's tabs are
   (public/compact-ui.css, cx-sect): the tabs share the whole bar, each the painted button at full height with a 26 px icon, in a framed bar with a soft
   gold glow; on a phone the tabs are equal, the icon over the name. */
html.cx-on.cx-window .artisan-shell main.as-page>nav.as-sheet-tabs{display:flex!important;box-sizing:border-box;width:100%;height:60px;margin:0 0 12px!important;padding:7px 8px!important;gap:6px!important;overflow:visible!important;background:#0e1726!important;border:1px solid #c7a467;box-shadow:0 0 0 1px #f0ce8326,0 0 16px #d6b57533}
html.cx-on.cx-window .artisan-shell main.as-page>nav.as-sheet-tabs::after{display:none!important}
html.cx-on.cx-window .artisan-shell main.as-page>nav.as-sheet-tabs>.section-tab{flex:1 1 0!important;min-width:0!important;max-width:none!important;height:44px!important;min-height:44px!important;justify-content:center;padding:0 10px!important;font-size:.875rem!important}
html.cx-on.cx-window .artisan-shell main.as-page>nav.as-sheet-tabs .section-tab-art{width:26px!important;height:26px!important;flex:0 0 26px}
html.cx-on.cx-window .artisan-shell main.as-page>nav.as-sheet-tabs .section-tab-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:760px){
 html.cx-on.cx-window .artisan-shell main.as-page>nav.as-sheet-tabs{height:62px;padding:4px!important;gap:3px!important}
 html.cx-on.cx-window .artisan-shell main.as-page>nav.as-sheet-tabs>.section-tab{height:52px!important;min-height:52px!important;flex-direction:column!important;gap:1px;padding:2px!important;white-space:normal;font-size:.6875rem!important;line-height:1.1;text-align:center}
 html.cx-on.cx-window .artisan-shell main.as-page>nav.as-sheet-tabs .section-tab-art{width:22px!important;height:22px!important;flex:0 0 22px}
 html.cx-on.cx-window .artisan-shell main.as-page>nav.as-sheet-tabs .section-tab-label{overflow:visible;text-overflow:clip;white-space:normal}
}
/* Menu review, 3 Nov: on a phone the slim tutorial row put "Tutorial · Step 1 of 10" and "Meet the Guildwright" over four short lines beside its button.
   Smaller lettering for the step and the button, so each takes one line. */
@media(max-width:760px){
 .artisan-shell .aq-coach.is-away .aq-coach-text small{font-size:.625rem;letter-spacing:.06em;white-space:nowrap}
 .artisan-shell .aq-coach.is-away .aq-coach-text b{font-size:.875rem;line-height:1.2}
 .artisan-shell .aq-coach.is-away .aq-coach-actions .uk-btn{min-height:36px;padding-inline:10px;font-size:.75rem}
 /* Full QA, 3 Nov: a Nixie's button (Take the copper fishing rod) is the longest, and pushed Meet the Guildwright onto two lines and the step line past
    the row. The step's name keeps one line whole; the button gets what is left (160 px on a 390 px phone) and a long one takes two short lines. */
 .artisan-shell .aq-coach.is-away .aq-coach-text b{white-space:nowrap}
 .artisan-shell .aq-coach.is-away .aq-coach-actions{max-width:calc(100vw - 230px)}
 .artisan-shell .aq-coach.is-away .aq-coach-actions .uk-btn{white-space:normal;line-height:1.15;text-align:center}
}
/* Recipe colours (IRP_RECIPE_COLOURS_VERSION, public/artisan-hall.js): a recipe's name in the colour of the XP it gives, red most to grey none, and a one-line key. */
.xp-red,.artisan-shell .xp-red,.artisan-shell .workshop-item strong.xp-red,.artisan-shell .ah-recipe b.xp-red{color:#ff5a45}
.xp-orange,.artisan-shell .xp-orange,.artisan-shell .workshop-item strong.xp-orange,.artisan-shell .ah-recipe b.xp-orange{color:#ff9f43}
.xp-yellow,.artisan-shell .xp-yellow,.artisan-shell .workshop-item strong.xp-yellow,.artisan-shell .ah-recipe b.xp-yellow{color:#f4d64a}
.xp-green,.artisan-shell .xp-green,.artisan-shell .workshop-item strong.xp-green,.artisan-shell .ah-recipe b.xp-green{color:#6fd36a}
.xp-grey,.artisan-shell .xp-grey,.artisan-shell .workshop-item strong.xp-grey,.artisan-shell .ah-recipe b.xp-grey{color:#9a9a9a}
.artisan-shell .xp-key{display:flex;flex-wrap:wrap;gap:4px 14px;margin:6px 2px 8px;font-size:.8rem;font-weight:600}
.artisan-shell .xp-key span::before{content:"";display:inline-block;width:8px;height:8px;border-radius:50%;background:currentColor;margin-right:5px;vertical-align:1px}

.artisan-shell .aq-coach .aq-coach-actions .uk-btn:is([data-quest-go],[data-quest-follow-tab]){min-height:44px}

@media(max-width:760px){
 .artisan-shell .aq-coach.is-away:has(+.cw-queue){display:flex;flex-wrap:wrap}
 .artisan-shell .aq-coach.is-away:has(+.cw-queue) .aq-coach-text{flex:1 1 10rem;min-width:0}
 .artisan-shell .aq-coach.is-away:has(+.cw-queue) .aq-coach-text :is(b,small){white-space:normal;overflow-wrap:anywhere}
 .artisan-shell .aq-coach.is-away:has(+.cw-queue) .aq-coach-actions{max-width:100%}
}

.artisan-shell .cw-order-name{display:none}
.artisan-shell [data-hall-queue].aq-target .cw-order-name{display:inline}
.artisan-shell [data-hall-queue].aq-target:has(.cw-order-name){white-space:normal;height:auto;min-height:44px}

.artisan-shell .ah-order .cw-common-choice .as-chip{display:inline-flex;align-items:center;gap:.3em;min-height:44px}
.artisan-shell .cw-common-choice .as-chip::before{content:"";width:.75em;display:inline-block}
.artisan-shell .cw-common-choice .as-chip:has(input:checked)::before{content:"✓"}
.artisan-shell .cw-common-help{display:block;max-width:34em;margin-top:5px;font-size:.85rem;line-height:1.35}
.artisan-shell .aq-replacement .uk-btn{min-height:44px}
@media (orientation:landscape) and (min-width:680px) and (max-height:480px){
 .artisan-shell .ah-order .cw-common-choice{flex:1 1 14rem}
 .artisan-shell .ah-order:has(.cw-common-choice){align-items:center}
 .artisan-shell .cw-bench .ah-order:has(.cw-common-choice)>[data-hall-queue]{flex:0 1 12rem}
}

/* /craft-window.css */
/* The bench screen and monster material marks (IRP_CRAFT_WINDOW_VERSION; Pat, 30 Oct 2026: "proposale looks good", proposal step 1).
   Rebuilt 2 Nov (Pat: "it needs to match combat, not seperate designs", "i have asked for full screen on most things"): public/artisan-hall.js
   benchWindow draws the hero's Blacksmith (public/workshop-view.js) markup, so the picker, the rows, the workpiece and the bench take the hero's own
   styles (workshops-combat.css, interface-art.css, ui-kit.css, painted-look.css). These rules only fit the Artisan's parts into them:
   the six benches as the Town's section tabs, the page head, the recipe tabs, the framed pictures, what a recipe takes, and the queue.
   One screen at 1440 x 900; on a phone one column, the picker first and folding once a recipe is picked. UI kit v1 colours. */
.artisan-shell .cw-window{display:grid;gap:10px;min-width:0}

/* The benches: the Town's section tabs (Blacksmith, Enchanter, Gemcutter...), one row, the Hall last. */
.artisan-shell nav.section-tabs.cw-benches{display:flex;flex-wrap:nowrap;gap:6px;max-width:none;margin:0 0 10px;padding:0 0 6px;overflow:visible}
.artisan-shell .cw-benches>.section-tab{flex:1 1 0;min-width:0;min-height:44px;display:flex;align-items:center;justify-content:center;gap:8px;padding:0 10px;white-space:nowrap}
html .shell.artisan-shell nav.section-tabs.cw-benches>.section-tab{padding-inline:10px}
html .shell.artisan-shell nav.section-tabs.cw-benches>.section-tab.cw-hall{flex:0 0 auto;padding-inline:16px}
/* On a wide screen the Hall tab is as wide as a bench: at its own width it read as a tab cut in half at the end of the row (game audit, 6 Nov). */
@media(min-width:761px){html .shell.artisan-shell nav.section-tabs.cw-benches>.section-tab.cw-hall{flex:1 1 0}}
.artisan-shell .cw-benches .section-tab-art{width:26px;height:26px;flex:0 0 26px;object-fit:contain;filter:drop-shadow(0 1px 2px #000a)}
.artisan-shell .cw-benches .section-tab-label{min-width:0;overflow:hidden;text-overflow:ellipsis}
.artisan-shell .cw-benches .section-tab-label small{margin-left:3px;font:600 .75rem/1 var(--uk-sans,system-ui);color:var(--uk-ivory-dim,#cdbf9f)}

/* The page head: the bench's tool, the Hall and skill, the bench's name, where your Artisan is, the skill's XP, and Speed, Double and Queue. */
.artisan-shell .cw-head{margin:0}
.artisan-shell .cw-head .uk-head-art{object-position:center 60%}
.artisan-shell .cw-head-icon{border:2px solid #c7a467;border-radius:6px;background:radial-gradient(circle at 50% 42%,#2b2a24,#13262d 72%);box-shadow:inset 0 0 0 1px #0c1723}
.artisan-shell .cw-head-icon img{width:80%;height:80%;object-fit:contain;filter:drop-shadow(0 2px 2px #000a)}
.artisan-shell .cw-head-eyebrow{margin:0 0 2px;font:600 .68rem/1.2 var(--uk-sans,system-ui);letter-spacing:.14em;text-transform:uppercase;color:#d6b575}
.artisan-shell .cw-head .uk-head-help{font-size:.88rem}
.artisan-shell .cw-xp{display:flex;align-items:center;gap:10px;margin-top:6px;font-size:.8rem;color:#e7dcc4;white-space:nowrap}
.artisan-shell .cw-xp>span:first-child{font-weight:600;color:#f2e3c1}
.artisan-shell .cw-xp .uk-progress{flex:0 1 260px;height:8px}
.artisan-shell .cw-xp small{color:#c9c3b4}
.artisan-shell .cw-next{display:block;margin-top:3px;font-size:.75rem;line-height:1.3;color:#c9c3b4}

/* The recipe tabs: one row, as the Town's service tabs. */
.artisan-shell .cw-tabs{display:flex;flex-wrap:nowrap;gap:6px;margin:0}
.artisan-shell .cw-tabs>.uk-tab{flex:1 1 0;min-width:0;min-height:40px;padding-inline:8px;white-space:nowrap}

/* The picker beside the recipe, as the Blacksmith's: 300px on a computer. */
.artisan-shell .cw-layout{display:grid;grid-template-columns:300px minmax(0,1fr);gap:14px;align-items:start;margin:0}
.artisan-shell .cw-layout>aside{min-width:0}
.artisan-shell .cw-picker{margin:0;padding:12px}
.artisan-shell .cw-picker>summary{display:flex;align-items:baseline;justify-content:space-between;gap:8px}
.artisan-shell .cw-picker>summary small{float:none;margin:0;font:.75rem/1.3 var(--uk-sans,system-ui);color:#c9c3b4}
.artisan-shell .cw-picker label{margin:8px 0}
.artisan-shell .cw-picker input[type=search]{min-height:40px;padding:8px 10px;font-size:.9rem}
.artisan-shell .cw-filter{display:grid;grid-template-columns:repeat(auto-fit,minmax(0,1fr));gap:5px;margin:0 0 8px}
.artisan-shell .cw-filter button{min-height:36px;padding:0 6px;cursor:pointer}
.artisan-shell .cw-items{max-height:calc(100dvh - 430px);min-height:260px}
.artisan-shell .cw-tile{position:relative;min-height:62px;padding:7px 8px;gap:10px;margin:0 0 6px;cursor:pointer}
.artisan-shell .cw-tile>span:nth-child(2){flex:1;min-width:0}
.artisan-shell .cw-tile strong{font-size:.875rem;line-height:1.25}
.artisan-shell .cw-tile .cw-line{margin-top:3px;font-size:.74rem}
.artisan-shell .cw-tile.is-ok .cw-line{color:#9fdc8c}
.artisan-shell .cw-tile.is-short .cw-line{color:#f0a48f}
.artisan-shell .cw-tile.is-lock{opacity:.6}
.artisan-shell .cw-tile.is-lock .cw-line{color:#9aa3b0}
.artisan-shell .cw-tile.is-picked{border-color:#cfad6c;box-shadow:inset 3px 0 #cfad6c}
.artisan-shell .cw-tile .cw-from{display:block;margin-top:1px;font:500 .68rem/1.15 var(--uk-sans,system-ui);color:#b9ae98}
.artisan-shell .cw-marks{display:flex;flex-direction:column;align-items:flex-end;gap:4px;flex:none}
.artisan-shell .cw-marks:empty{display:none}
.artisan-shell .cw-badge{padding:1px 6px;border-radius:8px;background:#3a2f22;border:1px solid #d6b575;color:#ffe1aa;font:700 .625rem/1.3 var(--uk-sans,system-ui);font-style:normal;white-space:nowrap}
.artisan-shell .cw-fang{position:relative;display:block;width:20px;height:20px;border-radius:50%;background:#5a1a14;border:1px solid #e08a6a}
.artisan-shell .cw-nums{display:flex;gap:18px;margin:0}
.artisan-shell .cw-nums div{text-align:center}
.artisan-shell .cw-nums dd{margin:0;font:normal 1.2rem/1 var(--uk-serif,Georgia,serif);color:#ffe1aa}
.artisan-shell .cw-nums dt{order:2;font-size:.64rem;letter-spacing:.12em;text-transform:uppercase;color:#c9c3b4}
.artisan-shell .cw-nums div{display:flex;flex-direction:column-reverse;gap:4px}
.artisan-shell .cw-hall{flex:none}
.artisan-shell .cw-note{margin:0;font-size:.82rem;color:#c9c3b4}
.artisan-shell .cw-benches{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}
.artisan-shell .cw-benches button{display:flex;align-items:center;gap:8px;min-width:0;padding:6px 8px;border:1px solid #4c4739;border-radius:6px;background:#101a2b;color:#c9c3b4;font:.8rem/1.2 var(--uk-sans,system-ui);text-align:left;cursor:pointer}
.artisan-shell .cw-benches img{width:38px;height:38px;padding:3px;box-sizing:border-box;border-radius:6px;background:#0b1220;border:1px solid #4c4739;flex:none}
.artisan-shell .cw-benches b{display:block;color:#eadbb9;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.artisan-shell .cw-benches span{min-width:0}
.artisan-shell .cw-benches [aria-pressed="true"]{border-color:#f0ce83;background:linear-gradient(#3a2f22,#1c1710);box-shadow:inset 0 0 0 1px #f0ce8355;color:#ffe1aa}
.artisan-shell .cw-body{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:12px;align-items:start}
.artisan-shell .cw-window.is-wide .cw-body{grid-template-columns:minmax(0,1fr)}
.artisan-shell .cw-list,.artisan-shell .cw-card{padding:12px;min-width:0}
.artisan-shell .cw-card{position:sticky;top:12px}
.artisan-shell .cw-tabs{margin-bottom:10px}
.artisan-shell .cw-filter{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 6px}
.artisan-shell .cw-filter .uk-chip{padding:2px 10px;cursor:pointer}
.artisan-shell .cw-filter .uk-chip[aria-pressed="true"]{border-color:#d6b575;color:#ffe1aa;background:#3a2f22}
.artisan-shell .cw-tier{display:flex;align-items:baseline;gap:8px;margin:10px 0 6px;font:normal .95rem var(--uk-serif,Georgia,serif);color:#f0ce83}
.artisan-shell .cw-tier small{font:.72rem var(--uk-sans,system-ui);color:#9d978a}
.artisan-shell .cw-grid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(var(--cw-cols,4),minmax(0,1fr));gap:8px}
.artisan-shell .cw-tile{position:relative;display:grid;justify-items:center;gap:4px;width:100%;min-height:96px;padding:8px 4px 6px;border:1px solid #4c4739;border-radius:6px;background:#0f1928;color:#c9c3b4;font:.72rem/1.2 var(--uk-sans,system-ui);text-align:center;cursor:pointer}
.artisan-shell .cw-tile .ah-pic{width:52px;height:52px}
.artisan-shell .cw-tile:hover{border-color:#b69a60}
.artisan-shell .cw-tile.is-picked{border-color:#f0ce83;box-shadow:0 0 0 1px #f0ce83,0 0 14px #f0ce8333;color:#ffe1aa}
.artisan-shell .cw-tile.is-lock{opacity:.5}
.artisan-shell .cw-name{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.artisan-shell .cw-dot{position:absolute;top:5px;right:5px;width:10px;height:10px;border-radius:50%;background:#5fd068;box-shadow:0 0 0 2px #0f1928}
.artisan-shell .cw-tile.is-short .cw-dot{background:#e0a43a}
.artisan-shell .cw-tile.is-lock .cw-dot{background:#7a7468}
.artisan-shell .cw-fang{position:absolute;top:4px;left:4px;width:20px;height:20px;border-radius:50%;background:#5a1a14;border:1px solid #e08a6a}
.artisan-shell .cw-fang::after,.cw-mm::before{content:"";position:absolute;background:#f3d2c4;clip-path:polygon(0 0,100% 0,82% 100%,64% 30%,50% 100%,36% 30%,18% 100%)}
.artisan-shell .cw-fang::after{left:3px;right:3px;top:6px;height:7px}
.artisan-shell .cw-older{margin:6px 0 0}
.artisan-shell .cw-older>summary{min-height:36px;padding:6px 2px;cursor:pointer;font-size:.8rem;color:#c9b993}
.artisan-shell .cw-empty{margin:6px 0;font-size:.85rem;color:#c9c3b4}
.artisan-shell .cw-picker .ah-ahead{margin:8px 0 0;font-size:.78rem;color:#b9ae98}

.artisan-shell .cw-tile>.at-pic{width:46px;height:46px}

/* The recipe: the Blacksmith's workpiece (picture, name, kind, what it does), then what it takes, the odds, and the order. */
.artisan-shell .cw-bench{min-width:0;margin:0;padding:16px 18px}
.artisan-shell .cw-bench>.ah-card{margin:0;padding:0;border:0;background:none;display:grid;gap:10px}
.artisan-shell .cw-eyebrow{margin:0;padding-bottom:6px;font:600 .66rem/1.2 var(--uk-sans,system-ui);letter-spacing:.14em;text-transform:uppercase;color:#d6b575;border-bottom:1px solid #c7a46740}
.artisan-shell .cw-workpiece{display:grid;grid-template-columns:112px minmax(0,1fr);align-items:center;gap:18px;margin:0;padding:0 0 12px}
.artisan-shell .cw-stage{display:grid;place-items:center;width:112px;height:112px;padding:0;border:0;border-radius:4px;background:radial-gradient(ellipse,#443722,#131516 75%);box-shadow:inset 0 0 0 4px #060b0e;cursor:help}
.artisan-shell .cw-stage>.at-pic{width:96px;height:96px}
.artisan-shell .cw-workpiece h2{margin:0;font:1.6rem/1.2 var(--uk-serif,Georgia,serif);color:#f0d8a8}
.artisan-shell .cw-workpiece p{margin:4px 0 0;font:.85rem/1.5 var(--uk-sans,system-ui);color:#bfb49f}
.artisan-shell .cw-workpiece p.cw-does{color:#e7dcc4;font-size:.92rem}
.artisan-shell .cw-label{margin:0;font:600 .68rem/1.2 var(--uk-sans,system-ui);letter-spacing:.14em;text-transform:uppercase;color:#c9b993}
.artisan-shell .cw-needs{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(112px,1fr));gap:8px}
.artisan-shell .cw-need{display:grid;justify-items:center;align-content:start;gap:3px;min-width:0;padding:8px 6px;border:1px solid #4c4739;border-radius:6px;background:#0b1220;font-size:.72rem;line-height:1.2;text-align:center;color:#d5dfe8;cursor:help}
.artisan-shell .cw-need:focus-visible{outline:2px solid #f0ce83;outline-offset:2px}
.artisan-shell .cw-need img,.artisan-shell .cw-need .ah-pic{width:40px;height:40px;object-fit:contain}
.artisan-shell .cw-need b{font-size:.9rem;color:#f2e3c1}
.artisan-shell .cw-need b small{font-weight:400;color:#9d978a}
.artisan-shell .cw-need.is-ok b{color:#9ae867}
.artisan-shell .cw-need.is-short{border-color:#a5552f}
.artisan-shell .cw-need.is-short b{color:#ff9a7a}
.artisan-shell .cw-link{padding:0;border:0;background:none;color:#f0ce83;font:.7rem/1.2 var(--uk-sans,system-ui);text-decoration:underline;cursor:pointer}
.artisan-shell .cw-from{font-size:.66rem;color:#c9b993}
.artisan-shell .cw-bench .ah-margin{margin:0;font-size:.82rem}
.artisan-shell .cw-bench .ah-facts{display:flex;flex-wrap:wrap;gap:6px 22px;margin:0}
.artisan-shell .cw-bench .ah-facts div{display:flex;gap:6px;align-items:baseline}
.artisan-shell .cw-bench .ah-order{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0;padding-top:10px;border-top:1px solid #c7a46740}
.artisan-shell .cw-bench .ah-order input{min-height:40px;width:80px}
.artisan-shell .cw-bench .ah-order>.uk-btn-primary{margin-left:auto;min-width:140px}
.artisan-shell .cw-bench .as-chipset{margin:0;padding:0;border:0}
.artisan-shell .cw-bench :is(.ah-note,.ah-total){margin:0}
.artisan-shell .cw-bench .ah-note{padding:6px 10px;font-size:.85rem}
.artisan-shell .cw-exp{padding:14px 16px}

/* The queue: under the picker and the recipe, the full width. */
.artisan-shell .cw-queue{margin:0;padding:8px 14px}
.artisan-shell .cw-queue h4{margin:0 0 6px}
.artisan-shell .cw-queue .ah-queue{display:grid;grid-template-columns:repeat(auto-fill,minmax(400px,1fr));gap:8px;margin:0}
.artisan-shell .cw-queue>.as-queue-empty{margin:0}
@media (min-width:901px){
 .artisan-shell .cw-queue{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px}
 .artisan-shell .cw-queue>h4{margin:0;flex:none}
 .artisan-shell .cw-queue>.ah-queue{flex:1 1 100%;order:3}
}

/* Monster materials: a frame in the grade's colour and the fang at the top, wherever one shows. */
.cw-mm{--mm:#76bdff;position:relative;display:inline-grid;place-items:center;width:var(--s,44px);height:var(--s,44px);box-sizing:border-box;border:2px solid var(--mm);border-radius:6px;background:radial-gradient(circle at 50% 35%,#3a1c16,#120b0b 70%);box-shadow:inset 0 0 0 1px #0b0606,0 0 8px color-mix(in srgb,var(--mm) 40%,transparent);flex:none}
.cw-mm>img,.cw-mm>.ah-pic{width:calc(100% - 6px)!important;height:calc(100% - 6px)!important}
.cw-mm::before{top:-2px;left:50%;width:18px;height:7px;transform:translateX(-50%);background:var(--mm)}
.cw-mm.is-common{--mm:#c6ced2}.cw-mm.is-superior{--mm:#9ae867}.cw-mm.is-rare{--mm:#76bdff}.cw-mm.is-epic{--mm:#f2c865}.cw-mm.is-heroic{--mm:#ff808e}

@media (max-width:900px){
 .artisan-shell .cw-window{gap:8px}
 .artisan-shell .cw-head{padding:8px 10px;gap:10px}
 .artisan-shell .cw-head-art{width:40px;height:40px}
 .artisan-shell .cw-title h2{font-size:1.1rem}
 .artisan-shell .cw-xp small,.artisan-shell .cw-nums .cw-wide{display:none}
 .artisan-shell .cw-xp .uk-progress{flex:1 1 auto}
 .artisan-shell .cw-nums dd{font-size:1rem}
 .artisan-shell .cw-benches{gap:5px}
 .artisan-shell .cw-benches button{flex-direction:column;justify-content:center;gap:2px;padding:5px 2px;font-size:.62rem;text-align:center}
 .artisan-shell .cw-benches b{font-size:.5625rem;letter-spacing:0;overflow:visible}/* each bench names itself under its picture (QA, 1 Nov: a phone showed six pictures and a 1); Scriptorium, the longest, fits a 390 screen */
 .artisan-shell .cw-body{grid-template-columns:minmax(0,1fr)}
 .artisan-shell .cw-list{padding:8px}
 .artisan-shell .cw-filter{display:none}
 .artisan-shell .cw-grid{gap:6px}
 .artisan-shell .cw-tile{min-height:0;padding:6px 2px 4px}
 .artisan-shell .cw-tile .ah-pic{width:48px;height:48px}
 .artisan-shell .cw-name,.artisan-shell .cw-badge{display:none}
 .artisan-shell .cw-card{display:none;position:fixed;left:0;right:0;bottom:0;top:auto;z-index:60;max-height:78vh;overflow:auto;padding:14px 14px calc(96px + env(safe-area-inset-bottom,0px));border-radius:14px 14px 0 0;border-top:1px solid #f0ce83;background:linear-gradient(170deg,#1c2b40,#0d1522);box-shadow:0 -10px 30px #000c}
 .artisan-shell .cw-card.is-open{display:block}
 /* the painted frame's padding (painted-look.css) beat the card's own, so its last lines sat under the round Menu and Chat buttons (play-test, 2 Nov) */
 :root.uk-painted .shell.artisan-shell .cw-card.uk-frame{padding-block-end:calc(96px + env(safe-area-inset-bottom,0px))!important}
 .artisan-shell .cw-card::before{content:"";display:block;width:44px;height:4px;margin:-6px auto 10px;border-radius:2px;background:#8f7645}
 .artisan-shell .cw-close{display:inline-flex;justify-content:center}
 .artisan-shell .cw-scrim.is-open{display:block;position:fixed;inset:0;z-index:59;border:0;padding:0;background:#03060b99}
 .artisan-shell .cw-queue{padding:6px 8px;background:#0b1220ee}
 .artisan-shell .cw-queue h4{display:none}
 .artisan-shell .cw-queue .ah-queue{grid-template-columns:minmax(0,1fr)}
 .artisan-shell .cw-queue .as-queue-empty{margin:0;font-size:.78rem}
}
@media (max-width:900px){
 .artisan-shell .cw-tabs{display:flex;flex-wrap:nowrap;overflow-x:auto;gap:6px;scrollbar-width:none}
 .artisan-shell .cw-tabs .uk-tab{flex:0 0 auto;min-width:0;padding-inline:12px;white-space:nowrap}
 .artisan-shell .cw-tabs .uk-tab-label{white-space:nowrap}
}

/* The hero's bag: a monster material's tile takes its grade colour, and the hammer says Artisans want it. */
.item-tile.cw-mm-tile{--mm:#76bdff;position:relative;border-color:var(--mm)!important;box-shadow:inset 0 0 0 1px #0b0606,0 0 8px color-mix(in srgb,var(--mm) 35%,transparent)}
.item-tile.cw-mm-tile.is-common{--mm:#c6ced2}.item-tile.cw-mm-tile.is-superior{--mm:#9ae867}.item-tile.cw-mm-tile.is-rare{--mm:#76bdff}.item-tile.cw-mm-tile.is-epic{--mm:#f2c865}.item-tile.cw-mm-tile.is-heroic{--mm:#ff808e}
.cw-hammer{display:inline-block;width:20px;height:20px;border-radius:50%;background:#3a2f22 url('/assets/artisan/icons/gear-smiths-hammer-t03.webp') center/14px no-repeat;border:1px solid #f0ce83;vertical-align:middle;flex:none}
.item-tile .cw-hammer{position:absolute;top:3px;right:3px;z-index:2}
.cw-use{display:flex;align-items:center;gap:8px}
.artisan-shell .cw-need.is-monster{--mm:#76bdff;border:2px solid var(--mm);background:radial-gradient(circle at 50% 35%,#3a1c16,#120b0b 75%);box-shadow:0 0 8px color-mix(in srgb,var(--mm) 35%,transparent)}
.artisan-shell .cw-need.is-common{--mm:#c6ced2}.artisan-shell .cw-need.is-superior{--mm:#9ae867}.artisan-shell .cw-need.is-rare{--mm:#76bdff}.artisan-shell .cw-need.is-epic{--mm:#f2c865}.artisan-shell .cw-need.is-heroic{--mm:#ff808e}
.artisan-shell .cw-need.is-monster.is-short{border-color:var(--mm)}
.artisan-shell .cw-mmtag{font-size:.58rem;letter-spacing:.08em;text-transform:uppercase;color:var(--mm)}

/* A finished order in the queue: "Made: 3 Iron Pickaxe", how many beat what is worn, Compare and Got it. */
.artisan-shell .cw-queue .ah-queue li.cw-done{grid-template-columns:auto minmax(0,1fr) auto auto}
.artisan-shell .cw-up{color:#9ae867!important;font-size:.85rem}
/* Artisan help lines (IRP_ARTISAN_HELP_VERSION, public/artisan-hall.js toolWhy): what a finished tool changes, on its own line. */
.artisan-shell .ah-queue .cw-why{display:block;margin-top:2px;color:var(--uk-ivory-dim,#cfc6b4);font-size:.82rem;line-height:1.35}

/* The gear slot list: each piece marked up or down against what is worn. */
.artisan-shell .cw-verdict{display:inline-block;margin:2px 0;font:700 .78rem/1.3 var(--uk-sans,system-ui);color:#c9c3b4}
.artisan-shell .cw-verdict.is-up{color:#9ae867}.artisan-shell .cw-verdict.is-down{color:#ff9a7a}

/* Narrower computers: the bench tabs keep one row, each picture above its name. */
@media (min-width:901px){
 html .shell.artisan-shell nav.section-tabs.cw-benches{flex-wrap:wrap}
 html .shell.artisan-shell nav.section-tabs.cw-benches>.section-tab{min-width:max-content}
}
@media (min-width:901px) and (max-width:1279px){
 html .shell.artisan-shell nav.section-tabs.cw-benches>.section-tab{flex-direction:column;gap:2px;min-height:54px;padding:4px 4px!important;font-size:.78rem!important}
 .artisan-shell .cw-layout{grid-template-columns:260px minmax(0,1fr)}
}

/* Phone and tablet: one column. The bench tabs are pictures over short names, the picker comes first and folds once a recipe is picked
   (public/artisan-hall.js), the recipe follows, and the queue is last. */
@media (max-width:900px){
 .artisan-shell .cw-window{gap:8px}
 /* Use at most four columns. Beside the enlarged name, the tool needs its own space. */
 html .shell.artisan-shell nav.section-tabs.cw-benches{
  --cw-bench-min:calc(4rem + 36px);
  display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,max(var(--cw-bench-min),calc((100% - 12px)/4))),1fr));
  gap:4px!important;margin:0 4px 8px;padding:0 0 6px!important;overflow:visible
 }
 html .shell.artisan-shell nav.section-tabs.cw-benches>.section-tab{flex-direction:row;justify-content:flex-start;gap:4px;min-width:0;min-height:44px;padding:2px 4px!important;font-size:.625rem!important;letter-spacing:0;line-height:1.1;white-space:nowrap;text-align:left}
 html .shell.artisan-shell .cw-benches .section-tab-art{width:22px;height:22px;flex:0 0 22px}
 html .shell.artisan-shell .cw-benches .section-tab-label{overflow:visible;text-overflow:clip;font-size:inherit!important;white-space:normal}
 html .shell.artisan-shell .cw-benches .section-tab-label small{font-size:.625rem}
 /* Narrow phones (found 10 Nov at 390: beside its picture, "Scriptorium" ran 1px past the edge of its tab, and 8px at 360): the picture sits
    above the name, with the level beside the name, so every name has the whole tab's width. Checked at 320 to 520. */
 @media (max-width:520px){
  html .shell.artisan-shell nav.section-tabs.cw-benches{--cw-bench-min:4.25rem}
  html .shell.artisan-shell nav.section-tabs.cw-benches>.section-tab{flex-direction:column;justify-content:center;gap:2px;min-height:48px;padding:4px 2px!important;text-align:center}
  html .shell.artisan-shell .cw-benches .section-tab-label small{display:inline;margin:0 0 0 3px}
 }
 .artisan-shell .cw-xp{flex-wrap:wrap;white-space:normal}
 .artisan-shell .cw-xp .uk-progress{flex:1 1 120px}
 /* The recipe tabs wrap to a second row rather than cut a name (the Scriptorium has five). */
 html .shell.artisan-shell .cw-tabs{display:grid;grid-template-columns:repeat(auto-fit,minmax(78px,1fr));gap:4px;overflow:visible}
 html .shell.artisan-shell .cw-tabs>.uk-tab{min-width:0;min-height:40px;padding:4px 6px!important;white-space:normal;line-height:1.15}
 html .shell.artisan-shell .cw-tabs .uk-tab-label{white-space:normal}
 .artisan-shell .cw-layout{grid-template-columns:minmax(0,1fr);gap:8px}
 .artisan-shell .cw-items{max-height:360px;min-height:0}
 .artisan-shell .cw-bench{padding:12px}
 .artisan-shell .cw-workpiece{grid-template-columns:88px minmax(0,1fr);gap:12px}
 .artisan-shell .cw-stage{width:88px;height:88px}
 .artisan-shell .cw-stage>.at-pic{width:76px;height:76px}
 .artisan-shell .cw-workpiece h2{font-size:1.25rem}
 .artisan-shell .cw-needs{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
 .artisan-shell .cw-bench .ah-order>.uk-btn-primary{flex:1 1 100%;margin:0}
 .artisan-shell .cw-queue{padding:8px 10px}
 .artisan-shell .cw-queue .ah-queue{grid-template-columns:minmax(0,1fr)}
 .artisan-shell .cw-queue .ah-queue li,.artisan-shell .cw-queue .ah-queue li.cw-done{grid-template-columns:auto minmax(0,1fr) auto;gap:6px 10px;padding:6px 8px}
 .artisan-shell .cw-queue .ah-queue li.cw-done>.uk-btn-primary{grid-column:2}
 .artisan-shell .cw-queue .ah-queue li.cw-done>div{grid-column:2/4}
 .artisan-shell .cw-queue .ah-queue li.cw-done>.uk-btn:last-child{grid-column:3}
}

/* The header card's words against the Hall picture (found 10 Nov). The small top line is this card's own addition, and the shared card
   padding left it touching the frame at every width, so the card gets more room at the top. Up to 1,100 wide the words reach past the middle,
   where the painted veil (painted-look.css) has thinned, so the veil holds further across. On a phone the card is one column and the
   words run the full width, where the veil had faded to nothing: the help line, the reward line and the skill bar sat straight on the
   busy picture. There an even dark veil goes behind them. */
:root.uk-compact-heads .shell.artisan-shell .cw-head{padding-top:16px;padding-bottom:12px}
@media (max-width:1100px){
 :root.uk-painted .shell.artisan-shell .cw-head::before{background:linear-gradient(90deg,#141312f0,#141312e0 60%,#141312b3)!important}
}
@media (max-width:700px){
 :root.uk-painted .shell.artisan-shell .cw-head::before{background:linear-gradient(180deg,#141312e6,#141312d6)!important}
 :root.uk-compact-heads .shell.artisan-shell .cw-head{padding:14px 14px 12px}
}

/* A queued or finished order's picture shows its recipe's card (public/artisan-tip.js). */
.artisan-shell .ah-qpic{display:inline-grid;place-items:center;border-radius:4px;cursor:help}
.artisan-shell :is(.ah-qpic,.rb-in,.rb-out,.ah-exp-icons img):focus-visible{outline:2px solid #f0ce83;outline-offset:2px}

.artisan-shell .cw-queue li:has([data-hall-cancel])>div>small:first-of-type{font-size:.9rem;line-height:1.35;color:#ded5c3}

/* Keep the shared live announcement, and show its visible copy on the accepted order. */
.artisan-shell .cw-queue [data-queue-feedback]{display:none}
body:has(#toast.visible.hall-queue-feedback) .cw-queue [data-queue-feedback]{display:block;color:#d3f1b2;font-weight:700;font-size:.9rem;line-height:1.35}
#toast.hall-queue-feedback{clip-path:inset(50%);pointer-events:none}

/* /artisan-tip.css */
/* Artisan item hover cards (public/artisan-tip.js). The card is the hero's item hover (item-view.css, item-cards.css, expansion.css); these rules only fit
   an Artisan picture into the hero's gear frame and add the phone version (a tap shows the card above the bottom bar, with Close). */
/* The framed picture (frame()), on cards and on pages: the hero's gear frame round an Artisan picture, with its tier badge. */
.at-pic{position:relative;display:inline-grid;place-items:center;width:var(--at-size,64px);height:var(--at-size,64px);flex:0 0 auto;padding:4px;box-sizing:border-box;overflow:hidden;
 background:radial-gradient(circle at 50% 42%,#2b2a24,#13262d 72%);border:2px solid var(--model-rarity,#c7a467);border-radius:5px;box-shadow:inset 0 0 0 1px #0c1723}
:where(:root.uk-painted) .at-pic{background:radial-gradient(circle at 50% 42%,#3a332a,#24201c 72%)}
.at-pic>:is(img,.ah-pic,svg){display:block;width:100%!important;height:100%!important;object-fit:contain;filter:drop-shadow(0 2px 2px #000a)}
.at-pic>.ah-ws{--s:100%!important;width:100%;height:100%}
.at-pic>.ah-ws>*{width:100%;height:100%}
.at-pic>.item-tier-badge{position:absolute;right:1px;top:1px;bottom:auto;left:auto;z-index:2;padding:0 3px;border-radius:2px;background:#081219e8;color:#f6deb0;font:700 .625rem/1rem system-ui,sans-serif}
.item-hover.at-hover .at-pic{width:var(--at-size,64px);height:var(--at-size,64px);margin:0}
/* The eyebrow and the name take the grade colour, as the hero's do. */
.item-hover.at-hover .at-card.rarity-magic .eyebrow{color:#9ae867}.item-hover.at-hover .at-card.rarity-rare .eyebrow{color:#76bdff}
.item-hover.at-hover .at-card.rarity-epic .eyebrow{color:#f2c865}.item-hover.at-hover .at-card.rarity-legendary .eyebrow{color:#ff808e}
.item-hover.at-hover .at-card.rarity-unique .eyebrow{color:#e9b879}
/* Rows: a small picture before a line (what a recipe takes), green when you have enough, red when short. */
.item-hover.at-hover .ic-affixes{grid-template-columns:minmax(0,1fr)}
.item-hover.at-hover .ic-affixes>li{display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:8px;align-items:center;padding:5px 0}
.item-hover.at-hover .ic-affixes>li>:not(.at-row-pic){grid-column:2}
/* Click lag (5 Nov 2026): was li:not(:has(.at-row-pic))>*. A :has() with a bare * after it made Chrome restyle the whole page 4 to 5 times per redraw. The picture is always a row's first child, so this matches the same children. Same weight (0,4,1). */
.item-hover.at-hover .ic-affixes>li>:where(:first-child):not(.at-row-pic),.item-hover.at-hover .ic-affixes>li>:where(:first-child):not(.at-row-pic)~*{grid-column:1/-1}
.item-hover.at-hover .at-row-pic{grid-row:span 2;display:grid;place-items:center;width:32px;height:32px;border:1px solid #6d5a3a;border-radius:4px;background:#0d1418;overflow:hidden}
.item-hover.at-hover .at-row-pic>*{width:28px!important;height:28px!important;object-fit:contain}
.item-hover.at-hover .ic-affixes>li.is-ok>strong{color:#cfe9b4}
.item-hover.at-hover .ic-affixes>li.is-short>strong{color:#f3b4a6}
.item-hover.at-hover .ic-affixes>li.is-plain>strong{color:var(--uk-ivory,#efe4cc)}
.item-hover.at-hover .ic-chip.is-ok{border-color:#4fae8b;color:#9fe6c9}
.item-hover.at-hover .ic-chip.is-short{border-color:#b5584a;color:#f3b4a6}
.item-hover.at-hover .ic-chip.is-lock{border-color:#6c7788;color:#9aa3b0}
.item-hover.at-hover .at-head{margin:8px 0 2px;font:700 .7rem/1.2 var(--uk-sans,system-ui);letter-spacing:.08em;text-transform:uppercase;color:var(--uk-ivory-dim,#cdbf9f)}
.item-hover.at-hover .at-odds{display:flex;height:6px;margin:6px 0 4px;border-radius:3px;overflow:hidden;background:#0d1418}
.item-hover.at-hover .at-odds>i{display:block;height:100%}
.item-hover.at-hover .at-odds-text{margin:0;font-size:.8rem;line-height:1.4}
.item-hover.at-hover .at-facts{display:flex;flex-wrap:wrap;gap:4px 14px;margin:8px 0 0;font-size:.82rem;color:var(--uk-ivory-dim,#cdbf9f)}
.item-hover.at-hover .at-facts b{color:var(--uk-ivory,#efe4cc);font-weight:600}
.item-hover.at-hover .item-verdict{margin:8px 0 0}
/* Phone: a tap shows the card above the bottom bar, the width of the screen, with its own Close. */
.item-hover.at-hover.at-touch{left:8px!important;right:8px;top:auto!important;bottom:calc(84px + env(safe-area-inset-bottom,0px));width:auto;max-height:calc(100dvh - 120px);overflow:auto;pointer-events:auto;overscroll-behavior:contain}
.item-hover.at-hover.at-touch>.at-close{display:block;width:100%;min-height:44px;margin:12px 0 0}
/* Things that show a card on a tap say so with the pointer they get. */
[data-at-tap]{cursor:help}
/* Roll details (whole-game review item 10, 18 Nov 2026; public/equipment-view.js rollDetails): a hero below level 20 sees each stat line alone until Roll details is pressed. */
html.ic-rolls-short .ic-affixes>li>small,html.ic-rolls-short .ic-affixes>li>meter,html.ic-rolls-short .ic-affixes .am-kind{display:none!important}
.ic-roll-toggle{display:inline-flex;align-items:center;min-height:44px;margin:2px 0 0;padding:0 2px;font-size:.8125rem}
.ic-roll-toggle::after{content:" ▾";margin-left:4px}
html.ic-rolls-short .ic-roll-toggle::after{content:" ▸"}

/* /artisan-ambience.css */
/* Ambience for Artisan scenes (public/artisan-ambience.js; IRP_ARTISAN_VERSION). Sits between the painting and the workers, never takes clicks. */
.artisan-shell .as-site-art>.amb{position:absolute;inset:0;pointer-events:none;overflow:hidden}
.artisan-shell .amb-p{position:absolute;left:var(--x);top:var(--y);display:block;border-radius:50%;animation:var(--a) var(--d) linear var(--o) infinite;will-change:transform,opacity;opacity:0}
/* Embers rise and sway out of warm scenes. */
.artisan-shell .amb-ember{--a:amb-rise;width:calc(.8cqw*var(--k));aspect-ratio:1;background:#ffd590;box-shadow:0 0 1cqw .3cqw #ff8a2acc}
/* Dust hangs in the light. */
.artisan-shell .amb-dust{--a:amb-drift;width:calc(.5cqw*var(--k));aspect-ratio:1;background:#fff3d6;box-shadow:0 0 .5cqw #fff3d680}
/* Fireflies wander and blink. */
.artisan-shell .amb-firefly{--a:amb-wander;width:calc(.7cqw*var(--k));aspect-ratio:1;background:#f6ffb8;box-shadow:0 0 1.4cqw .45cqw #d6ff6acc}
/* Petals and leaves fall and turn. */
.artisan-shell .amb-petal{--a:amb-fall;width:calc(1.2cqw*var(--k));aspect-ratio:1.6;border-radius:60% 10% 60% 10%;background:#f7c9dc}
.artisan-shell .amb-leaf{--a:amb-fall;width:calc(1.3cqw*var(--k));aspect-ratio:1.7;border-radius:70% 0 70% 0;background:#c9a34a}
/* Snow drifts down. */
.artisan-shell .amb-snow{--a:amb-fall;width:calc(.65cqw*var(--k));aspect-ratio:1;background:#f4f9ff;box-shadow:0 0 .4cqw #fff}
/* Bubbles rise from water. */
.artisan-shell .amb-bubble{--a:amb-rise;width:calc(1.2cqw*var(--k));aspect-ratio:1;border:1.5px solid #e4fdffd0;background:radial-gradient(circle at 35% 35%,#ffffff80 0 18%,transparent 22%)}
/* Glints twinkle on crystal, metal and water. */
.artisan-shell .amb-glint{--a:amb-twinkle;width:calc(2.4cqw*var(--k));aspect-ratio:1;border-radius:0;background:radial-gradient(circle,#fff 0 8%,#fff0 30%),linear-gradient(#fff0 46%,#ffffffd0 50%,#fff0 54%),linear-gradient(90deg,#fff0 46%,#ffffffd0 50%,#fff0 54%)}
/* Wisps: slow, soft lights over haunted water and old roots. */
.artisan-shell .amb-wisp{--a:amb-wander;width:calc(6cqw*var(--k));aspect-ratio:1;background:radial-gradient(circle,#b8ffe6a0,#b8ffe600 70%);filter:blur(2px)}
/* Mist rolls along the bottom of the painting. */
.artisan-shell .amb-mist{position:absolute;left:-50%;right:-50%;bottom:-4%;height:34%;background:radial-gradient(ellipse 18% 60% at 20% 70%,#e8f1ff38,#e8f1ff00 70%),radial-gradient(ellipse 22% 55% at 55% 75%,#e8f1ff30,#e8f1ff00 70%),radial-gradient(ellipse 16% 50% at 85% 70%,#e8f1ff34,#e8f1ff00 70%);animation:amb-mist 38s linear infinite alternate}
/* Warm scenes breathe a little, like lamplight. */
/* Firelight: a plain see-through glow. With mix-blend-mode:soft-light the whole site picture was blended again every frame, which halved the frame rate at 1440 (about 30 fps, 58 without; 27 Oct check). The lower opacities give the same warmth. */
.artisan-shell .amb-flicker{position:absolute;inset:0;background:radial-gradient(ellipse at 30% 35%,#ffb45a,#ffb45a00 55%),radial-gradient(ellipse at 75% 60%,#ff9a3c,#ff9a3c00 50%);opacity:.07;animation:amb-flicker 3.2s ease-in-out infinite}
/* An awake Ancient glows and breathes; it flares when loads come off it. */
.artisan-shell .amb-ancient{position:absolute;left:50%;top:42%;width:62%;aspect-ratio:1.4;translate:-50% -50%;background:radial-gradient(ellipse,var(--glow),transparent 62%);mix-blend-mode:screen;opacity:.24;animation:amb-breathe 5s ease-in-out infinite}
.artisan-shell .as-site-art.amb-hit{animation:amb-shake .42s ease-out}
.artisan-shell .amb-hit .amb-ancient{animation:amb-flare .6s ease-out,amb-breathe 5s ease-in-out .6s infinite}
/* The Hall: ChatGPT fx sheets, 8 frames each. */
.artisan-shell .amb-fx{position:absolute;left:var(--u);top:var(--v);width:var(--w);aspect-ratio:1;background:0 0/800% 100% no-repeat;animation:amb-frames var(--d) steps(8) var(--o) infinite}
.artisan-shell .amb-fx.is-base{translate:-50% -88%}
.artisan-shell .amb-fx.is-mid{translate:-50% -50%}
@keyframes amb-frames{to{background-position:114.2857% 0}}
@keyframes amb-rise{0%{opacity:0;transform:translate(0,0)}15%{opacity:.9}80%{opacity:.6}100%{opacity:0;transform:translate(var(--dx),-28cqw)}}
@keyframes amb-drift{0%,100%{opacity:0;transform:translate(0,0)}30%,70%{opacity:.55}50%{transform:translate(var(--dx),-3cqw)}}
@keyframes amb-wander{0%{opacity:0;transform:translate(0,0)}20%{opacity:.95}35%{opacity:.25}50%{opacity:.9;transform:translate(var(--dx),-2.5cqw)}70%{opacity:.3}85%{opacity:.85}100%{opacity:0;transform:translate(calc(var(--dx)*-.4),1.5cqw)}}
@keyframes amb-fall{0%{opacity:0;transform:translate(0,0) rotate(0)}12%{opacity:.85}85%{opacity:.7}100%{opacity:0;transform:translate(var(--dx),40cqw) rotate(320deg)}}
@keyframes amb-twinkle{0%,100%{opacity:0;transform:scale(.2) rotate(0)}45%{opacity:.95;transform:scale(1) rotate(25deg)}60%{opacity:0;transform:scale(.3) rotate(40deg)}}
@keyframes amb-mist{to{transform:translateX(18%)}}
@keyframes amb-flicker{0%,100%{opacity:.05}35%{opacity:.08}55%{opacity:.06}75%{opacity:.085}}
@keyframes amb-breathe{0%,100%{opacity:.22;scale:1}50%{opacity:.48;scale:1.07}}
@keyframes amb-flare{0%{opacity:.75;scale:1.12}100%{opacity:.24;scale:1}}
@keyframes amb-shake{0%,100%{transform:none}20%{transform:translate(-.35%,.2%)}40%{transform:translate(.3%,-.25%)}60%{transform:translate(-.2%,.15%)}80%{transform:translate(.1%,0)}}
@media (prefers-reduced-motion:reduce){.artisan-shell .amb-p,.artisan-shell .amb-mist,.artisan-shell .amb-flicker,.artisan-shell .amb-ancient,.artisan-shell .amb-fx,.artisan-shell .as-site-art.amb-hit{animation:none}.artisan-shell .amb-p{display:none}}
/* Moving water (IRP_SITE_LIFE_VERSION, artisan-ambience.js water()): sun glints twinkle and rings spread on spots inside the painted water, and every
   fishing spot ripples. Only small pieces, and only transform and opacity animate (a full-size masked layer halved the frame rate at 1440, 30 Oct). */
.artisan-shell .amb-shine{--a:amb-shine;width:calc(2.6cqw*var(--k));aspect-ratio:5.5;background:radial-gradient(ellipse,#fffef6 0,#fff8dcdd 28%,#fff8dc00 70%);filter:drop-shadow(0 0 .3cqw #fff6d8);translate:-50% -50%}
.artisan-shell .amb-ring{--a:amb-ring;width:calc(7cqw*var(--k));aspect-ratio:2.3;border:.2cqw solid #f4ffffd8;box-shadow:0 0 .4cqw #e8ffff80,inset 0 0 .3cqw #e8ffff60;translate:-50% -50%;animation-timing-function:ease-out}
.artisan-shell .amb-life .as-node[style*="nodes-fishing"]::before{content:"";position:absolute;left:50%;top:62%;width:100%;aspect-ratio:1;translate:-50% -50%;opacity:.8;background:url(/assets/artisan/life/fishing-spot.webp) 0 0/800% 100% no-repeat;animation:amb-frames 1.6s steps(8) infinite;pointer-events:none}
/* A fished-out spot (its third state) and a locked one stay still: no fish circles where none are left. */
.artisan-shell .amb-life .as-node.is-off::before,.artisan-shell .amb-life .as-node[style*="--ty:100%"]::before{display:none}
/* Batch 118 wildlife (artisan-ambience.js wildlife()): 8-frame strips of 256 px. Waterfall foam and rapids boil in place, grit trickles down cliffs,
   a fish jumps once in its own long cycle, and flyers cross the painting (outer span travels, middle bobs, inner flaps). */
.artisan-shell .amb-life-fx{position:absolute;left:var(--x);top:var(--y);aspect-ratio:1;background-size:800% 100%;background-repeat:no-repeat;pointer-events:none}
.artisan-shell .amb-life-fx.is-foam{width:var(--w);translate:-50% -86%;animation:amb-frames .9s steps(8) var(--o) infinite;opacity:.92}
.artisan-shell .amb-life-fx.is-rapids{width:var(--w);translate:-50% -50%;animation:amb-frames .8s steps(8) var(--o) infinite;opacity:.85}
.artisan-shell .amb-life-fx.is-grit{width:12cqw;translate:-50% 0;filter:brightness(1.2) drop-shadow(0 0 .2cqw #ffd9a066);animation:amb-frames 1.1s steps(8) var(--o) infinite,amb-grit var(--d) linear var(--o) infinite}
.artisan-shell .amb-life-fx.is-jump{width:var(--w);translate:-50% -86%;opacity:0;animation:amb-jump var(--d) step-end var(--o) infinite}
.artisan-shell .amb-life-fx.is-jump.is-flip{scale:-1 1}
.artisan-shell .amb-fly{position:absolute;left:0;top:var(--y);width:var(--w);aspect-ratio:1;animation:amb-cross var(--t) linear var(--o) infinite;pointer-events:none;will-change:transform}
.artisan-shell .amb-fly.is-back{animation-name:amb-cross-back}
.artisan-shell .amb-fly>span{display:block;width:100%;height:100%;animation:amb-bob calc(var(--t)/4) ease-in-out var(--o) infinite alternate}
.artisan-shell .amb-fly.is-wave>span{animation-duration:calc(var(--t)/9)}
.artisan-shell .amb-fly>span>i{display:block;width:100%;height:100%;background-size:800% 100%;background-repeat:no-repeat;animation:amb-frames var(--flap) steps(8) infinite;filter:drop-shadow(0 .6cqw .4cqw #0006)}
.artisan-shell .amb-fly.is-back>span>i{scale:-1 1}
/* Bats are dark on dark rock: lamplight catches their edges and lifts them a little so they read. */
.artisan-shell .amb-fly.is-rim>span>i{filter:brightness(1.35) drop-shadow(0 0 .3cqw #ffc77a) drop-shadow(0 0 .9cqw #ffb45a66) drop-shadow(0 .6cqw .4cqw #0006)}
@keyframes amb-shine{0%,100%{opacity:0;transform:scale(.3,.6)}40%{opacity:.95;transform:scale(1)}65%{opacity:0;transform:scale(1.3,.8)}}
@keyframes amb-ring{0%{opacity:0;transform:scale(.15)}12%{opacity:.85}100%{opacity:0;transform:scale(1)}}
@keyframes amb-node-ring{0%{opacity:0;transform:scale(.35)}15%{opacity:.9}100%{opacity:0;transform:scale(1.35)}}
/* A one-shot jump inside a long cycle: the eight frames play in the first 12%, then the fish is gone until the next turn. */
@keyframes amb-jump{0%{opacity:1;background-position:0 0}1.5%{background-position:14.2857% 0}3%{background-position:28.5714% 0}4.5%{background-position:42.8571% 0}6%{background-position:57.1429% 0}7.5%{background-position:71.4286% 0}9%{background-position:85.7143% 0}10.5%{background-position:100% 0}12%,100%{opacity:0;background-position:100% 0}}
/* Grit is a short trickle (about two seconds) now and then, not a steady rain (Pat, 30 Oct: the rocks were too much). */
@keyframes amb-grit{0%,22%,100%{opacity:0}3%,17%{opacity:.9}}
@keyframes amb-cross{from{transform:translateX(-10cqw)}to{transform:translateX(106cqw)}}
@keyframes amb-cross-back{from{transform:translateX(106cqw)}to{transform:translateX(-10cqw)}}
@keyframes amb-bob{from{translate:0 0}to{translate:0 var(--dy)}}
@media (prefers-reduced-motion:reduce){.artisan-shell .amb-life .as-node::before,.artisan-shell .amb-life-fx,.artisan-shell .amb-fly{display:none}}

/* /creation-motion.css */
/* Character creation: one visible character, clear choices, no nested scrolling. */
.creator [data-hero="berserker"] .outfit-portrait{overflow:hidden}.creator [data-hero="berserker"] .outfit-portrait img{transform:scale(2.4);transform-origin:50% 26%}
.creator-shell .creator{max-width:1440px;padding:24px 26px 40px}.creator .page-heading{margin-bottom:20px;padding-bottom:15px;border-bottom:1px solid #b793514d}.creator .page-heading h1{font-size:clamp(1.625rem,3vw,2.375rem);margin:5px 0 6px}.creator-intro{color:#bec8cc;margin:0;font-size:.875rem}
.creator .creator-grid{display:grid;grid-template-columns:205px minmax(280px,1fr) 310px;gap:18px;min-height:0;align-items:stretch}.creator .choices{padding:18px 12px;display:flex;flex-direction:column;gap:6px;background:linear-gradient(145deg,#18242c,#0d161f);min-width:0}.creator .choices h2{font-size:1.0625rem;margin:0 8px 8px}.creator .choice{min-height:57px;margin:0;padding:8px;gap:9px;border-radius:5px;border:1px solid #8a794b44;flex-shrink:0}.creator .choice .outfit-portrait{width:36px;height:40px;flex-basis:36px}.creator .choice span{min-width:0}.creator .choice b{font-size:.875rem}.creator .choice small{font-size:.6875rem}.creator .choice.chosen{background:linear-gradient(110deg,#a779343b,#273643);border-color:#d6b775;box-shadow:inset 3px 0 #e2bc6b}.creator .choice i{margin-left:auto;color:#f3d999;font-style:normal}
.creator .creator-stage{position:relative;display:flex;flex-direction:column;align-self:stretch;min-height:0;height:auto;overflow:hidden;background:radial-gradient(ellipse at 50% 39%,color-mix(in srgb,var(--class-tone) 19%,transparent),transparent 65%),linear-gradient(145deg,#1e2a32,#0a141e);border:1px solid #c7a46788!important;border-radius:9px}.creator-preview-label{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:19px 22px 0;z-index:1}.creator-role{font:.75rem var(--ui);color:#eee0bd;border:1px solid #b59a675e;border-radius:20px;padding:5px 10px}.creator .hero-pedestal{position:relative;flex:1 0 360px;height:360px;min-height:360px;max-height:none;padding:18px 24px 0;overflow:hidden}.creator .hero-pedestal:after{content:"";position:absolute;bottom:17%;left:21%;width:58%;height:14%;border:1px solid #cfb57844;border-radius:50%;background:radial-gradient(ellipse,#b4b99815,transparent 65%);pointer-events:none}.creator .showcase-hero{max-width:100%;max-height:320px;object-fit:contain}
.creation-motion-wrap{position:absolute;left:50%;bottom:24%;width:0;height:0;pointer-events:none;z-index:2}
/* The still artwork fades out once, when the animation is ready; the animation fades in over it (no hard swap). */
.creator-stage .showcase-hero{transition:opacity .2s ease}.creator-stage.creation-motion-on .showcase-hero{opacity:0;visibility:hidden;transition:opacity .2s ease,visibility 0s .2s}.creation-motion-wrap:not([hidden]){animation:creation-motion-in .2s ease}@keyframes creation-motion-in{from{opacity:0}}.creation-motion-warm{visibility:hidden;animation:none!important}.creator-stage.creation-motion-held .showcase-hero{transition:none}.creation-motion-held .creation-motion-wrap{animation:none}.creator-stage.creation-motion-wait .showcase-hero{opacity:0;visibility:hidden;transition:none}@media(prefers-reduced-motion:reduce){.creator-stage .showcase-hero,.creation-motion-wrap:not([hidden]){transition:none;animation:none}}
.creation-motion-controls{position:relative;z-index:3;display:flex;align-items:center;flex-direction:column;gap:8px;padding:0 12px 12px}.creation-motion-buttons{display:flex;padding:4px;border:1px solid #ad946866;border-radius:28px;background:#0a111bbf;gap:3px}.creation-motion-controls button{min-width:76px;min-height:44px;padding:8px 15px;border:1px solid transparent;border-radius:22px;background:transparent;color:#bac8cf;font-size:.8125rem}.creation-motion-controls button[aria-pressed=true]{border-color:#d2b478;background:#98713436;color:#ffe5ac}.creation-motion-controls button:focus-visible{outline:2px solid #ffe4a0;outline-offset:2px}.creation-motion-controls small{min-height:17px;text-align:center;color:#aebbc2;font-size:.6875rem}
.creator .hero-caption{flex:none;min-height:0;height:auto;text-align:center;padding:20px 24px 24px;background:#09121b94;border-top:1px solid #b59a6733}.creator .hero-caption h2{font-size:1.875rem;margin:0 0 8px}.creator .hero-caption p{font-size:.8125rem;line-height:1.65;max-width:38ch;margin:0 auto;color:#c6d0d5}.creator .creation-details{padding:24px 22px;display:flex;flex-direction:column;background:linear-gradient(155deg,#1c2832,#0e1822);min-width:0}.creator .creation-details>h2{font-size:1.625rem;margin:8px 0 24px}.creator-paths h3{font-size:.875rem;margin:0 0 8px;color:#efdab2}.creator-paths p{font-size:.75rem;line-height:1.6;color:#b8c6cd;margin:0 0 12px}.creator-paths ul{list-style:none;display:flex;flex-wrap:wrap;gap:7px;padding:0;margin:0 0 20px}.creator-paths li{font-size:.75rem;border:1px solid #c4a5754a;background:#c4a5750b;border-radius:5px;padding:7px 10px;color:#ead9b6}.creator-race{border-top:1px solid #b59a6744;padding:14px 0;color:#b8c6cd}.creator-race summary{cursor:pointer;font-size:.75rem;min-height:24px}.creator-race p{font-size:.75rem;line-height:1.7;margin:10px 0}.creator #createForm{margin-top:auto;padding-top:23px;border-top:1px solid #b59a6744}.creator #createForm label{font-size:.875rem}.creator #characterName{width:100%;min-height:48px;border-radius:5px}.creator #createForm>.red-button{min-height:48px;border-radius:5px;font-size:.875rem}.creator .name-status{font-size:.6875rem;line-height:1.6;min-height:34px}.creator-start-note{font-size:.6875rem;line-height:1.65;color:#acbac3;margin:14px 0 0;text-align:center}
@media(max-width:1050px){.creator .creator-grid{grid-template-columns:175px minmax(250px,1fr)}.creator .creation-details{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:0 28px}.creator .creation-details>h2{grid-column:1}.creator .creator-paths,.creator .creator-race{grid-column:1}.creator #createForm{grid-column:2;grid-row:1/5;align-self:center;margin:0;width:100%;max-width:none}.creator .creator-start-note{grid-column:2}.creator .hero-pedestal{flex-basis:350px;min-height:350px;height:350px}}
@media(max-width:600px){.creator-shell .creator{padding:18px 10px 28px}.creator .page-heading{margin-bottom:14px}.creator .creator-grid{display:flex;flex-direction:column;gap:13px}.creator .choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:10px;gap:6px}.creator .choices h2{display:none}.creator .choice{display:flex;flex-direction:column;justify-content:center;gap:4px;min-height:79px;padding:7px 3px}.creator .choice .outfit-portrait{width:30px;height:32px;flex-basis:32px}.creator .choice b{font-size:.75rem}.creator .choice small,.creator .choice i{display:none}.creator .creator-stage{min-height:0;height:auto}.creator-preview-label{padding:14px 17px 0}.creator .hero-pedestal{flex:0 0 270px;min-height:270px;height:270px;max-height:none;padding:10px 18px 0}.creator .showcase-hero{max-height:245px}.creator .hero-caption{padding:17px 18px 20px}.creator .hero-caption h2{font-size:1.6875rem}.creator .creation-details{display:flex;padding:22px 20px}.creator .creation-details>h2{margin-bottom:18px}.creator #createForm{margin-top:6px;max-width:none}.creator .creator-role{font-size:.6875rem}.creator .creation-motion-controls button{min-width:70px}}

/* Role chips, read from the tree data (IRPPaths.treeRole / classRoles). Shown at every width. */
.creator-paths li{display:flex;align-items:center;gap:7px}.creator-paths .role-chip{font-size:.625rem;letter-spacing:.02em;border-radius:999px;padding:2px 7px;background:#ffffff10;color:#d4a58b;border:1px solid currentColor}.creator-paths .role-chip[data-role="Tank"]{color:#d2b774}.creator-paths .role-chip[data-role="Healer"]{color:#9ec9b0}
@media(max-width:600px){.creator .choice>span{text-align:center}.creator .choice small{display:block;font-size:.625rem;line-height:1.25;color:#b8c9d4}}
/* The preview's status is read out, not shown: Loading, Walking or Attack under the buttons was one more line to read (review 26 Oct). */
.creation-motion-controls [role=status]{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
/* Tablet widths (601 to 1100): the picker spans the page, so the stage takes the full row under it. It sat in the first 205px column, a
   thin strip with the figure squeezed and the right of the page empty (launch check, 27 Oct). */
@media(min-width:601px) and (max-width:1100px){.creator .creator-grid>.creator-stage{grid-column:1/-1}}

/* /creation-scene.css */
/* 3D character creation (IRP_CREATION_SCENE_VERSION, public/creation-scene.js). The scene fills the page under the steps; the class buttons sit along its
   foot and the details panel (Look, name, Create) opens on its right once a hero is picked. On a phone: scene, class buttons, details, top to bottom. */
.creator-shell.cs-shell{min-height:100dvh;display:flex;flex-direction:column}
.cs-shell .cs-creator{max-width:none;width:100%;box-sizing:border-box;padding:14px 18px 18px;display:flex;flex-direction:column;flex:1 1 auto;min-height:0}
.cs-shell .cs-creator .create-steps{margin-bottom:12px}
.cs-wrap{position:relative;flex:1 1 auto;min-height:560px;border:1px solid #c7a46788;border-radius:9px;overflow:hidden;background:#070d16}
.cs-stage{position:absolute;inset:0;overflow:hidden;background:#070d16 url('/assets/evermarch/dawn-valley-v1.webp') 50% 30%/cover no-repeat}
.cs-stage::before{content:"";position:absolute;inset:0;background:linear-gradient(180deg,#070d16cc,#070d1699 40%,#070d16f2);pointer-events:none}
.cs-stage[data-cs-stage="artisan"]::before{background:linear-gradient(180deg,#1c140c66,#1c140c33 40%,#120d08e6)}
/* until the place has loaded */
.cs-stage::after{content:"Loading the scene…";position:absolute;left:50%;bottom:22%;transform:translateX(-50%);padding:6px 14px;border-radius:6px;background:#0a111bcc;border:1px solid #b59a6755;color:#d3dce0;font-size:.8125rem;pointer-events:none}
.cs-root{position:absolute;inset:0;z-index:1;opacity:0;transition:opacity .6s ease}
.cs-root.cs-ready{opacity:1}
.cs-canvas{position:absolute;inset:0;width:100%;height:100%;display:block;touch-action:manipulation}
.cs-plates{position:absolute;inset:0;pointer-events:none;overflow:hidden}
.cs-pen{position:fixed;left:-9999px;top:0;width:0;height:0;overflow:hidden;visibility:hidden;pointer-events:none}
.cs-pen>div{position:absolute;left:0;top:0;width:0;height:0}
/* name under each waiting figure: the UI kit's chip */
.cs-plate{position:absolute;left:0;top:0;pointer-events:auto;display:flex;flex-direction:column;align-items:center;gap:1px;margin:0;padding:4px 10px 5px;min-width:0;min-height:0;border:1px solid #b59a6766;border-radius:6px;background:#0a111bd9;color:#ead9b6;font:inherit;line-height:1.15;cursor:pointer;white-space:nowrap;box-shadow:0 2px 8px #0008;transition:border-color .15s,background .15s,color .15s}
.cs-plate b{font:600 .8125rem var(--display,inherit);letter-spacing:.02em}
.cs-plate small{font-size:.625rem;color:#aebbc2}
.cs-plate.hot,.cs-plate:hover{border-color:#e2bc6b;background:#2a2114f2;color:#ffe5ac}
/* heading over the scene, top left */
.cs-head{position:absolute;left:0;top:0;z-index:2;padding:18px 40px 40px 22px;max-width:min(460px,70%);pointer-events:none;background:radial-gradient(ellipse 100% 100% at 0 0,#070d16f2,#070d16c0 48%,#070d1600 82%)}
.cs-head>*{pointer-events:auto}
.cs-head h1{font-size:clamp(1.5rem,2.6vw,2.125rem);margin:4px 0 5px;text-shadow:0 2px 10px #000}
.cs-head .creator-intro{color:#d3dce0;margin:0;font-size:.875rem;text-shadow:0 1px 6px #000}
.cs-head .secondary{margin-top:10px}
/* class buttons along the foot of the scene */
.creator .cs-classes{position:absolute;z-index:3;left:50%;bottom:12px;transform:translateX(-50%);display:flex;flex-direction:row;gap:6px;padding:7px;margin:0;border:1px solid #b59a6755;border-radius:9px;background:#0a111bd9;box-shadow:0 6px 22px #000a;max-width:calc(100% - 24px)}
.creator .cs-classes .choice{flex:0 0 auto;width:auto;min-height:48px;min-width:104px;padding:6px 10px 6px 6px;gap:8px;margin:0;background:#141c26;transition:border-color .15s,background .15s}
.creator .cs-classes .choice:hover{border-color:#d6b775aa;background:#1d2733}
.creator .cs-classes .choice.chosen{box-shadow:inset 0 -3px #e2bc6b}
.creator .cs-classes .choice .outfit-portrait{width:34px;height:36px;flex-basis:34px}
.creator .cs-classes .choice b{font-size:.8125rem;white-space:nowrap}
.creator .cs-classes .choice small{font-size:.625rem;white-space:nowrap}
/* the corners fall away into the dark, as a lens would see it */
.cs-root::after{content:"";position:absolute;inset:0;pointer-events:none;background:radial-gradient(ellipse 78% 82% at 50% 46%,#0000 58%,#03060b99 100%),linear-gradient(180deg,#0000 78%,#05080dcc)}
/* details: opens on the right once a hero has stepped forward */
/* it ends above the class buttons, which never move: the button under the pointer stays the one just clicked */
.creator .cs-details{scrollbar-width:thin;scrollbar-color:#b59a6744 transparent;position:absolute;z-index:4;right:12px;top:12px;bottom:80px;width:340px;overflow:auto;padding:20px 20px 22px;margin:0;display:flex;flex-direction:column;animation:cs-in .35s ease both}
@keyframes cs-in{from{opacity:0;transform:translateX(18px)}}
.creator .cs-details>h2{font-size:1.5rem;margin:6px 0 8px}
.creator .cs-details>:is(form,.creator-start-note){order:1}.creator .cs-details>:is(.creator-paths,.creator-race){order:2}
.cs-about{font-size:.8125rem;line-height:1.6;color:#c6d0d5;margin:0 0 14px}
.creator .cs-details .creator-paths ul{margin-bottom:14px}
.creator .cs-details .hero-look{margin:0 0 6px}
.creator .cs-details #createForm{margin-top:4px;padding-top:14px}
.creator .cs-details .creator-race{margin-top:14px;padding-bottom:0}
@media(prefers-reduced-motion:reduce){.creator .cs-details{animation:none}.cs-root{transition:none}}
/* between a phone and a wide screen: two rows of class buttons */
@media(max-width:1180px){.creator .cs-classes{flex-wrap:wrap;justify-content:center;width:max-content}.creator .cs-classes .choice{min-width:96px}.creator .cs-details{bottom:140px}}
/* phones and narrow windows: scene, class buttons, details in one column; the page scrolls as it does today */
@media(max-width:760px){
 .cs-shell .cs-creator{padding:12px 10px 24px}
 .cs-wrap{height:auto;min-height:0;border:0;border-radius:0;overflow:visible;background:none;display:flex;flex-direction:column;gap:12px}
 .cs-stage{position:relative;inset:auto;scroll-margin-top:8px;height:min(60dvh,520px);min-height:340px;border:1px solid #c7a46788;border-radius:9px}
 .cs-head{padding:12px 14px 26px;max-width:86%}
 .cs-head h1{font-size:1.375rem}
 .cs-head .creator-intro{font-size:.8125rem}
 .cs-picked .cs-head{display:none}
 .creator .cs-classes,.cs-picked .cs-classes{position:static;transform:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:auto;max-width:none;padding:8px;gap:6px}
 .creator .cs-classes .choice{display:flex;flex-direction:column;justify-content:center;align-items:center;min-width:0;min-height:72px;padding:6px 3px;gap:3px}
 .creator .cs-classes .choice>span{text-align:center}
 .creator .cs-classes .choice b{font-size:.75rem}
 .creator .cs-classes .choice small{display:block;font-size:.625rem;white-space:normal;line-height:1.2}
 .creator .cs-details{position:static;bottom:auto;width:auto;overflow:visible;padding:20px 18px;animation:none;display:flex}
 /* once a hero has stepped forward: a shorter scene and a small class strip, so Look, the name and Create follow on the same screen */
 .cs-picked .cs-stage{height:min(40dvh,340px);min-height:260px}
 .creator.cs-picked .cs-classes{grid-template-columns:repeat(5,minmax(0,1fr));padding:6px;gap:4px}
 .creator.cs-picked .cs-classes .choice{min-height:46px;padding:3px 2px;gap:1px}
 .creator.cs-picked .cs-classes .choice .outfit-portrait{width:26px;height:26px;flex-basis:26px}
 .creator.cs-picked .cs-classes .choice b{font-size:.625rem}
}
/* the guild workshop is lit from inside: a lighter fall-off at the corners, so the floor near us is not lost in the dark */
.cs-stage[data-cs-stage="artisan"] .cs-root::after{background:radial-gradient(ellipse 85% 90% at 50% 46%,#0000 64%,#03060b66 100%),linear-gradient(180deg,#0000 84%,#05080d99)}
/* the soft foot of the scrolling details panel (creation-scene.js adds the element) */
.creator .cs-details>.cs-more{order:9;flex:none;position:sticky;bottom:-22px;height:22px;margin:0 -20px -22px;background:linear-gradient(#1c1a1800,#1c1a18 45%);pointer-events:none}
@media(max-width:760px){.creator .cs-details>.cs-more{display:none}}
/* in the workshop the title sits against the lit windows: a deeper shade behind it, and a firmer shadow on the letters */
@media(min-width:761px){.cs-stage[data-cs-stage="artisan"] .cs-head{padding-bottom:64px;max-width:min(560px,70%)}}.cs-stage[data-cs-stage="artisan"] .cs-head{background:radial-gradient(ellipse 100% 100% at 0 0,#070d16f8,#070d16e8 40%,#070d16b0 60%,#070d1660 77%,#070d1620 89%,#070d1600 99%)}.cs-stage[data-cs-stage="artisan"] .cs-head h1{text-shadow:0 2px 4px #000,0 0 14px #000}
/* tighter steps down the details panel, so on a 900-high desktop the name, Create and the note under it all show without scrolling */
@media(min-width:761px){.creator .cs-details>.eyebrow{margin-bottom:4px}.creator .cs-details>h2{margin:2px 0 6px}.creator .cs-details .cs-about{margin-bottom:8px}.creator .cs-details .hero-look{margin:0 0 2px}.creator .cs-details #createForm{margin-top:0;padding-top:8px}.creator .cs-details>.creator-start-note{margin:4px 0 6px}.creator .cs-details>:is(.creator-paths,.creator-race){margin-top:30px}}
/* once an Artisan is picked the panel names them; the title steps aside so their bay reads whole */
@media(min-width:761px){.cs-stage[data-cs-stage="artisan"] .cs-head{transition:opacity .5s}.cs-picked .cs-stage[data-cs-stage="artisan"] .cs-head{opacity:0}}
/* the same for a picked hero: the title and its shade step aside; a "Back to my character" button stays */
@media(min-width:761px){.cs-stage[data-cs-stage="hero"] .cs-head>:not(button){transition:opacity .5s}.cs-picked .cs-stage[data-cs-stage="hero"] .cs-head{background:none}.cs-picked .cs-stage[data-cs-stage="hero"] .cs-head>:not(button){opacity:0}}

/* /challenge-quests.css */
.challenge-quest-card{max-width:48rem;overflow-wrap:anywhere}
.challenge-boss-heading{display:flex;align-items:center;gap:1rem}
.challenge-boss-heading .enemy-portrait{flex:none;width:76px;height:76px;border:1px solid #b38858;border-radius:6px;background:#251d18}
.challenge-boss-heading h3{margin:.25rem 0;font-size:1.4rem;line-height:1.2}
.challenge-boss-heading p{margin:.3rem 0}
.challenge-threats,.challenge-quest-card ul{display:flex;flex-wrap:wrap;gap:.45rem;list-style:none;padding:0}
.challenge-threats li,.challenge-quest-card li{padding:.4rem .6rem;border:1px solid #946d4e;border-radius:4px;background:#30251c;color:#f4dbc0}
.challenge-quest-card button,.charm-equipment button{min-height:44px;max-width:100%;white-space:normal;overflow-wrap:anywhere}
.charm-equipment .item-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}
.charm-equipment .paper-slot{min-width:0;overflow-wrap:anywhere;display:flex;flex-direction:column;align-items:stretch;gap:.5rem}
.charm-equipment .paper-slot>span:first-child{font-size:.85rem;color:#dcc698;text-align:left}
.charm-equipment .paper-slot .item-tile{position:static;display:flex;align-items:center;justify-content:center;width:100%;height:auto;aspect-ratio:auto;min-height:6rem;margin:0;box-sizing:border-box;padding:.75rem;text-align:center;line-height:1.35;overflow-wrap:normal;word-break:normal}
.charm-equipment .paper-slot .charm-slot-button{background:linear-gradient(145deg,#342a1d,#171e22);border:1px solid #b48c52;border-radius:6px;color:#ffe0a2;font-size:1rem}
.charm-equipment .paper-slot p{margin:0;line-height:1.5}
@media(max-width:480px){.charm-equipment .item-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:400px){.challenge-boss-heading{gap:.6rem}.challenge-boss-heading h3{font-size:1.15rem}.challenge-boss-heading .enemy-portrait{width:64px;height:64px}}

.challenge-dialog{max-width:min(48rem,96vw);max-height:90vh;overflow-y:auto}.challenge-threat-summary{font-size:.85rem;line-height:1.5;color:#f4dbc0;padding:0 .5rem}

.boss-hunt-page{max-width:70rem}.boss-hunt-art{width:128px;height:128px;object-fit:contain;flex:none;background:radial-gradient(ellipse,#59412655,transparent 70%)}.boss-hunt-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;margin:1rem 0}.boss-hunt-facts div{min-width:0;border-top:1px solid #80603c;padding-top:.65rem}.boss-hunt-facts dt{font-size:.78rem;text-transform:uppercase;color:#c6ad85;letter-spacing:.05em}.boss-hunt-facts dd{margin:.25rem 0;line-height:1.5;color:#f4e5c5}.boss-hunt-new{color:#f4d78f;font-size:.7rem;letter-spacing:.05em;margin-left:.5rem}.boss-hunt-page details{margin:1rem 0}.boss-hunt-page summary{min-height:44px;cursor:pointer}.boss-hunt-empty{max-width:38rem}@media(max-width:450px){.boss-hunt-art{width:96px;height:112px}.boss-hunt-facts{grid-template-columns:1fr}.boss-hunt-page .challenge-boss-heading h2{font-size:1.3rem}}

button[data-challenge-choice^="enter:"]{display:block;width:100%;margin:8px 0 0;box-sizing:border-box}
.hunt-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,17rem),1fr));gap:1rem;margin-top:1rem}
.hunt-tile{display:grid;grid-template-columns:auto minmax(0,1fr);gap:.6rem .8rem;grid-template-rows:auto 1fr;align-content:stretch;min-width:0;padding:.9rem;border:1px solid #776343;border-radius:6px;background:linear-gradient(160deg,#182234,#0c1420);box-shadow:inset 0 0 0 2px #0c1420,inset 0 0 0 3px #74603e55}
.hunt-tile.is-ready{border-color:#c8a35b}
.hunt-tile .boss-hunt-art{width:84px;height:84px}
.hunt-tile-body{min-width:0;align-self:center}.hunt-tile-body h2{margin:.15rem 0;font-size:1.2rem;line-height:1.2}.hunt-tile-body .eyebrow{margin:0;font-size:.72rem}
.hunt-tile-mechanic{margin:0;color:#e0c483;font-size:.9rem}
.hunt-tile>ul,.hunt-tile>p,.hunt-tile>button{grid-column:1/-1}
.hunt-tile-facts{display:grid;gap:.25rem;margin:0;padding:0;list-style:none;font-size:.85rem;color:#c9d1da}
.hunt-tile .exp-error,.hunt-tile .small-note{margin:0;font-size:.85rem}
.hunt-tile>button{min-height:44px;width:100%;margin:0}
.hunt-tile .boss-hunt-art{overflow:hidden;position:relative}
.hunt-tile .boss-hunt-art .enemy-portrait{display:block;width:100%;height:100%;max-width:100%}
.hunt-notices h2{margin:0 0 .5rem;font-size:1.05rem}
.hunt-notices ul{display:grid;gap:.4rem;margin:0;padding:0;list-style:none}
.hunt-notices li{display:flex;align-items:center;justify-content:space-between;gap:.75rem;min-height:44px}
.hunt-notices li span{min-width:0;overflow-wrap:anywhere}
.hunt-notices li button{flex:none;min-height:44px}
/* Hunt tiers (public/hunt-tiers.js; drawn only while IRP_HUNT_TIERS_VERSION is on): a wrapping row of 44 px tier buttons. */
.hunt-tiers{margin:.75rem 0}.hunt-tier-row{display:flex;flex-wrap:wrap;gap:.4rem;margin:.4rem 0}.hunt-tier-row .hunt-tier{min-width:44px;min-height:44px;padding:0 .6rem}.hunt-tier-row .hunt-tier.is-locked{opacity:.45}
/* Hunt dangers (public/hunt-dangers.js; drawn only while IRP_HUNT_DANGERS_VERSION is on): a wrapping row of 44 px toggles, name over one line of text. */
.hunt-dangers{margin:.75rem 0}.hunt-danger-row{display:flex;flex-wrap:wrap;gap:.4rem;margin:.4rem 0}.hunt-danger-row .hunt-danger{flex:1 1 10rem;min-width:0;max-width:100%;min-height:44px;padding:.4rem .6rem;display:flex;flex-direction:column;align-items:flex-start;gap:.15rem;text-align:left;white-space:normal}.hunt-danger-row .hunt-danger span{font-size:.85em;line-height:1.25}.hunt-danger-row .hunt-danger:disabled:not([aria-pressed="true"]){opacity:.55}
/* Second fix (14 Oct): the chosen Hunt level is the gold main-button look (public/ui-kit.css .uk-btn-primary). Its class "primary" has no style
   of its own, so it showed as a flat grey button that read as disabled. Outside the Choose window the row is read-only (disabled) but the
   chosen level still reads as chosen. */
.hunt-tier-row .hunt-tier[aria-pressed="true"],.hunt-tier-row .hunt-tier[aria-pressed="true"]:disabled{opacity:1;border:1px solid #e6c98f;border-radius:4px;background:linear-gradient(180deg,#c9a468,#8f6f3c);color:#1b1509;font-weight:800;text-shadow:none;box-shadow:inset 0 1px 0 #fff2c95c,inset 0 0 0 2px #8a682f66,0 0 0 2px #e6c98f40,0 2px 5px #0005;cursor:default}
.hunt-tier-row .hunt-tier[aria-pressed="true"]:focus-visible{outline:2px solid #fbe3ac;outline-offset:2px}
/* A picked danger stays lit, in the Choose window and in the read-only row while waiting or fighting (a disabled button is otherwise dimmed and grey). */
.hunt-danger-row .hunt-danger[aria-pressed="true"],.hunt-danger-row .hunt-danger[aria-pressed="true"]:disabled{opacity:1;color:#fff6e0;background:linear-gradient(#a87a35,#6e4e20);border-color:#dab36b;box-shadow:inset 0 0 0 1px #f3d58f}
/* Hunt danger for one boss only (Rallying Call, lib/hunt-rally.js): a small gold tag after its name. */
.hunt-danger-row .hunt-danger .hunt-danger-tag{display:inline-block;margin-left:.35rem;padding:0 .35rem;border:1px solid #dab36b;border-radius:3px;font-size:.72em;font-style:normal;font-weight:600;letter-spacing:.02em;color:#f3d58f;vertical-align:middle}

/* /periodic-quests.css */
.periodic-quests{display:grid;gap:18px;min-width:0}
.periodic-intro{margin:0;color:#c7bea8}
.periodic-set{min-width:0;padding:14px;border:1px solid #534b3b;background:#131a1e}
.periodic-set>header{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px 12px;margin-bottom:10px}
.periodic-set>header h2{margin:0;font-size:1.15rem;display:flex;align-items:center;gap:6px}
.periodic-timer{font-size:.85rem;color:#dcc698}
.periodic-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:10px}
.periodic-quest{min-width:0;padding:12px;border:1px solid #3f3a2e;background:#0f151a;overflow-wrap:anywhere}
.periodic-quest.is-ready{border-color:#cfaa57;box-shadow:0 0 10px #cfaa5733}
.periodic-quest.is-claimed{opacity:.7}
.periodic-row{display:flex;align-items:baseline;justify-content:space-between;gap:8px}
.periodic-row h3{margin:0;font-size:1rem;line-height:1.25}
.periodic-count{flex:none;font-size:.85rem;color:#dcc698;white-space:nowrap}
.periodic-bar{height:8px;margin:8px 0;border:1px solid #534b3b;background:#0a0f13;border-radius:2px;overflow:hidden}
.periodic-bar>span{display:block;height:100%;background:linear-gradient(90deg,#8d6f36,#cfaa57)}
.periodic-help{margin:0 0 4px;font-size:.8rem;color:#a9a08a}
.periodic-quest .quest-reward{margin:0 0 8px;font-size:.85rem}
.periodic-status{min-height:44px;display:flex;align-items:center}
.periodic-status button{min-height:44px;width:100%;white-space:normal}
.periodic-state{font-size:.85rem;color:#a9a08a}
.quest-tabs .quest-ready-badge{margin-left:6px}
@media(max-width:360px){.periodic-set{padding:10px}.periodic-row{flex-direction:column;gap:2px}}
.linklike{background:none;border:0;padding:0;color:#dcc698;text-decoration:underline;cursor:pointer;font:inherit}
.periodic-balance{margin:0;color:#dcc698}
.periodic-cap{margin:0 0 10px;font-size:.8rem;color:#a9a08a}
.quest-tree{display:grid;gap:16px;min-width:0}
.tree-top p{margin:0 0 6px}
.tree-balance{color:#dcc698}
.tree-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center;min-height:44px}
.tree-actions button{min-height:44px;flex:1 1 120px;white-space:normal}
.tree-state{font-size:.85rem;color:#a9a08a}
.tree-panel{padding:14px;border:1px solid #534b3b;background:#131a1e}
.tree-form{display:flex;flex-wrap:wrap;gap:8px;align-items:flex-end;margin-top:8px}
.tree-form label{display:grid;gap:4px;flex:1 1 160px;font-size:.85rem}
.tree-form input[name=name]{min-height:44px;box-sizing:border-box;width:100%}
.tree-form button{min-height:44px}
.tree-frame-sample,.outfit-portrait[class*=frame-],.frame-bronze,.frame-silver,.frame-ember,.frame-verdant{box-sizing:border-box}
.tree-frame-sample{flex:none;width:28px;height:28px;border-radius:4px;background:#0a0f13;border:3px solid #7d6a3c}
.frame-bronze{border-color:#a8703a!important;box-shadow:0 0 0 1px #4a2f16,0 0 8px #a8703a66}
.frame-silver{border-color:#c9d1d8!important;box-shadow:0 0 0 1px #59626b,0 0 8px #c9d1d866}
.frame-ember{border-color:#e2712d!important;box-shadow:0 0 0 1px #6a2a0d,0 0 10px #ff8a3d99}
.frame-verdant{border-color:#7fb35a!important;box-shadow:0 0 0 1px #2f4a1c,0 0 8px #7fb35a77}
.outfit-portrait[class*=frame-]{border:3px solid;border-radius:4px}
.character-title{display:block;font-size:.8rem;color:#dcc698;font-weight:normal}
.bag-slot-grid[data-favorites-only=true] .item-tile:not([data-favorite]){opacity:.18}
.item-favorite-mark{position:absolute;top:2px;left:3px;font-size:.75rem;line-height:1;color:#ffd76a;text-shadow:0 0 3px #000}
.perk-row{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:8px 0}
.perk-row button,.preset-form button{min-height:44px}
.preset-list{display:grid;gap:8px;margin:8px 0}
.preset-card{padding:10px;border:1px solid #3f3a2e;background:#0f151a}
.preset-card h4{margin:0 0 4px}
.preset-form{display:flex;flex-wrap:wrap;gap:8px;align-items:flex-end}
.preset-form label{display:grid;gap:4px;flex:1 1 140px;font-size:.85rem}
.preset-form input{min-height:44px;box-sizing:border-box;width:100%}
/* ---- Quest Tree: a painted perk tree (markup and layout table in quest-tree-ui.js) ---- */
.qt{--qt-tile:60px;--qt-nw:92px;--qt-gold:#d6b575;--qt-gold-hi:#f0ce83;--qt-dim:#5b5548;--qt-focus:#f4cd86;display:grid;gap:14px;min-width:0}
.qt [hidden]{display:none!important}
.qt-defs{position:absolute;width:0;height:0;overflow:hidden}
.qt-top{display:grid;gap:8px}
.qt-top .small-note{margin:0;color:#c7bea8}
.qt .tree-balance{position:relative;display:flex;align-items:center;gap:6px;flex-wrap:wrap;min-height:58px;box-sizing:border-box;margin:0;padding:8px 16px 8px 64px;border:1px solid #8f7645;border-radius:6px;background:linear-gradient(100deg,#3b2a14,#1a120b 70%);box-shadow:inset 0 0 0 2px #0c0805,inset 0 0 0 3px #b8955a3d;font:1rem Georgia,serif;color:#ead9b4}
.qt .tree-balance strong{font-size:1.7rem;line-height:1;color:#ffe1aa;text-shadow:0 0 12px #e0a83b66;margin-right:2px}
.qt-coin{position:absolute;left:10px;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:42px;height:42px;border-radius:50%;border:2px solid #d6b575;background:radial-gradient(circle at 50% 30%,#6b4d1f,#20160a 75%);box-shadow:0 0 14px #d6a64a55,inset 0 0 0 2px #0c0805}
.qt-coin .qt-glyph{width:26px;height:26px}
.qt-glyph{display:block;width:32px;height:32px;fill:color-mix(in srgb,var(--qt-tone,#e0b766) 24%,transparent);stroke:url(#qt-gild);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 1px 1px #000c)}
.qt-tabs{display:flex;flex-wrap:wrap;gap:6px}
.qt-tab{display:inline-flex;align-items:center;justify-content:center;gap:8px;flex:0 1 auto}
.qt-tab small{font:700 .6875rem system-ui;color:#c7a85f;padding:1px 6px;border:1px solid #6f5d3c;border-radius:9px;background:#0d0906}
.qt-tab .fantasy-icon{width:26px;height:26px;flex-basis:26px}
.qt-tab .qt-tab-icon{display:grid;place-items:center;width:26px;height:26px}
.qt-tab .qt-tab-icon .uk-art{width:26px;height:26px}
.qt-tab .qt-glyph{width:22px;height:22px}
.qt-stage{min-width:0;overflow:hidden;background:#0e0906}
.qt-pane{min-width:0}
.qt-banner{min-height:112px;box-sizing:border-box;padding:22px 30px 16px;display:flex;flex-direction:column;justify-content:flex-end;gap:2px;background:linear-gradient(90deg,#120c07f5 0%,#120c07c4 38%,#120c0726 92%),var(--qt-art) center 30%/cover;border-bottom:2px solid transparent;border-image:linear-gradient(90deg,var(--qt-tone),#8f764566 60%,transparent) 1}
.qt-banner h3{margin:0;font:600 1.7rem/1.1 Georgia,serif;letter-spacing:.04em;color:#f3dfae;text-shadow:0 2px 6px #000,0 0 22px color-mix(in srgb,var(--qt-tone) 55%,transparent)}
.qt-banner .small-note{margin:0;color:#e0d3b6;text-shadow:0 1px 4px #000}
.qt-body{display:grid;grid-template-columns:minmax(0,1fr);align-items:start;background:radial-gradient(ellipse at 50% 0,#4a3518aa,transparent 62%),radial-gradient(#e0b76614 .6px,transparent .6px) 0 0/26px 26px,linear-gradient(#1c130b,#0e0906)}
.qt-map{min-width:0;padding:16px 26px 30px}
.qt-board{position:relative;max-width:560px;margin:0 auto}
.qt-links{position:absolute;left:0;top:0;width:100%;height:100%;overflow:visible;pointer-events:none}
.qt-wire{fill:none;stroke:#8f7645;stroke-opacity:.38;stroke-width:2;vector-effect:non-scaling-stroke;stroke-linejoin:round}
.qt-wire.is-open{stroke:#d6b575;stroke-opacity:.75}
.qt-wire.is-lit{stroke:#ffd977;stroke-opacity:1;stroke-width:3;filter:drop-shadow(0 0 4px #ffb93cd0)}
.qt-hub{position:absolute;width:11px;height:11px;margin-left:-5.5px;transform:rotate(45deg);background:#2c2010;border:1px solid #8f7645;box-shadow:0 0 0 2px #120c07}
.qt-hub.is-lit{background:#ffd977;border-color:#fff0c0;box-shadow:0 0 0 2px #120c07,0 0 10px #ffb93cd0}
.qt-root{position:absolute;transform:translateX(-50%);width:220px;text-align:center;pointer-events:none}
.qt-crest{width:42px;height:42px;margin:8px auto 12px;position:relative;border-color:var(--qt-tone)!important;box-shadow:0 0 0 5px #151009,0 0 0 6px #8f7645,0 0 30px color-mix(in srgb,var(--qt-tone) 45%,transparent)}
.qt-crest>span{display:grid;place-items:center}
.qt-crest .qt-glyph{width:26px;height:26px}
.qt-crest .fantasy-icon{width:32px;height:32px;flex-basis:32px}
.qt-root strong{display:block;font:600 .9375rem Georgia,serif;letter-spacing:.16em;text-transform:uppercase;color:#f0d9a2;text-shadow:0 2px 4px #000}
.qt-root .qt-label{width:max-content;max-width:none;margin:0 auto}
.qt-root small{display:block;margin-top:2px;font:.625rem system-ui;letter-spacing:.1em;text-transform:uppercase;color:#b3a583}
.qt-slot{position:absolute;transform:translateX(-50%);width:var(--qt-nw)}
.qt-node{appearance:none;display:grid;justify-items:center;gap:5px;width:100%;min-height:44px!important;margin:0;padding:0!important;border:0!important;border-radius:10px;background:none!important;box-shadow:none!important;color:inherit;font:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}
.qt-tile{position:relative;display:grid;place-items:center;box-sizing:border-box;width:var(--qt-tile);height:var(--qt-tile);border-radius:14px;border:3px solid var(--qt-tone);background:radial-gradient(circle at 50% 28%,color-mix(in srgb,var(--qt-tone) 30%,#1c130b),#0b0705 78%);box-shadow:inset 0 0 0 2px #0a0704,inset 0 0 0 3px color-mix(in srgb,var(--qt-tone) 45%,transparent),0 4px 10px #000b;transition:box-shadow .15s,border-color .15s}
.qt-icon{display:grid;place-items:center;width:calc(var(--qt-tile) - 20px);height:calc(var(--qt-tile) - 20px)}
.qt-icon .fantasy-icon{width:100%;height:100%;flex-basis:auto}
.qt-icon .qt-glyph{width:100%;height:100%}
.qt-frame-icon{position:relative;display:block;width:100%;height:100%;border-radius:7px;border-width:4px;background:#0a0f13}
.qt-frame-icon::after{content:"";position:absolute;inset:0;opacity:.75;background:radial-gradient(circle at 50% 36%,#d9c79a 0 17%,transparent 18%),radial-gradient(ellipse at 50% 104%,#d9c79a 0 40%,transparent 41%)}
.qt-rank{position:absolute;right:-7px;bottom:-7px;min-width:28px;padding:1px 5px;box-sizing:border-box;text-align:center;border:1px solid #8f7645;border-radius:6px;background:#160f08;font:700 .625rem/.875rem Georgia,serif;color:#cdbd97;white-space:nowrap}
.qt-worn{position:absolute;white-space:nowrap;left:50%;top:-9px;transform:translateX(-50%);padding:0 6px;border:1px solid #f0ce83;border-radius:8px;background:#3b2a14;font:700 .5625rem/.875rem system-ui;letter-spacing:.06em;text-transform:uppercase;color:#ffe6a6}
.qt-label{display:grid;justify-items:center;gap:1px;max-width:100%;padding:3px 8px;border-radius:9px;background:radial-gradient(ellipse at 50% 50%,#120c07 58%,#120c0700 100%)}
.qt-name{max-width:100%;font:600 .75rem/1.2 Georgia,serif;text-align:center;color:#ead9b4;overflow-wrap:anywhere;text-shadow:0 1px 3px #000}
.qt-cost{font:600 .6875rem system-ui;color:#c7a85f}
.qt-node.is-unlocked .qt-tile{background:radial-gradient(circle at 50% 28%,color-mix(in srgb,var(--qt-tone) 55%,#1c130b),color-mix(in srgb,var(--qt-tone) 12%,#0b0705) 82%);box-shadow:inset 0 0 0 2px #0a0704,inset 0 0 0 3px color-mix(in srgb,var(--qt-tone) 60%,transparent),0 4px 10px #000b,0 0 20px color-mix(in srgb,var(--qt-tone) 60%,transparent)}
.qt-node.is-unlocked .qt-rank{border-color:var(--qt-tone);color:#fff1cc;background:color-mix(in srgb,var(--qt-tone) 30%,#160f08)}
.qt-node.is-ready .qt-tile{border-color:#f0ce83;box-shadow:inset 0 0 0 2px #0a0704,inset 0 0 0 3px #f0ce8377,0 4px 10px #000b,0 0 16px #e6b95a80}
.qt-node.is-ready .qt-cost{color:#ffe6a6}
.qt-node.is-locked .qt-tile{border-color:var(--qt-dim);background:radial-gradient(circle at 50% 28%,#2a251e,#0b0705 78%);box-shadow:inset 0 0 0 2px #0a0704,0 4px 10px #000b}
.qt-node.is-locked .qt-icon,.qt-node.is-locked .qt-frame-icon{filter:grayscale(1) brightness(.78)}
.qt-node.is-locked .qt-name{color:#a29a88}
.qt-node.is-locked .qt-cost{color:#8a8068}
.qt-node.is-soon{opacity:.72}
.qt-node:hover .qt-tile{border-color:#f6d798}
.qt-node[aria-pressed=true] .qt-tile{outline:2px solid #ffe0a0;outline-offset:3px}
.qt-node:focus-visible{outline:none}
.qt-node:focus-visible .qt-tile{outline:3px solid var(--qt-focus);outline-offset:3px}
.qt-detail{min-width:0}
.qt-panel{position:relative;box-sizing:border-box;padding:16px;border:1px solid #8f7645;border-radius:6px;background:radial-gradient(ellipse at 20% 0,color-mix(in srgb,var(--qt-tone,#e0b766) 16%,transparent),transparent 60%),linear-gradient(160deg,#2a1e11,#130d08);box-shadow:inset 0 0 0 2px #0c0805,inset 0 0 0 3px #b8955a3d,0 8px 24px #000a}
.qt-panel>header{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px;margin-bottom:10px}
.qt-panel h3{margin:0;font:600 1.15rem/1.2 Georgia,serif;color:#f3dfae}
.qt-tile-sm{--qt-tile:52px}
.qt-chip{margin:3px 0 0;font:700 .6875rem system-ui;letter-spacing:.06em;text-transform:uppercase;color:var(--qt-tone,#c7a85f)}
.qt-panel.is-locked .qt-chip{color:#a29a88}
.qt-help{margin:0 0 10px;font-size:.92rem;line-height:1.45;color:#dcd3bd}
.qt-why{margin:0 0 10px;padding:8px 10px;border-left:3px solid #c98543;background:#2a1a0e;font-size:.88rem;color:#f0d3b0}
.qt-panel .small-note{margin:0 0 10px}
.qt-panel .tree-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center;min-height:44px}
.qt-panel .tree-actions button{min-height:44px;flex:1 1 120px}
.qt-close{display:none;width:44px;height:44px;padding:0;border:1px solid #8f7645;border-radius:8px;background:#160f08;color:#ead9b4;font:400 1.5rem/1 system-ui;cursor:pointer}
.qt-empty{text-align:left}
.qt-key{display:flex;flex-wrap:wrap;gap:6px 14px;margin:0;padding:0;list-style:none;font-size:.82rem;color:#c7bea8}
.qt-key-dot{display:inline-block;width:12px;height:12px;margin-right:6px;vertical-align:-1px;border-radius:4px;border:2px solid var(--qt-dim);background:#1c1610}
.qt-key-dot.is-unlocked{border-color:#f2c85b;background:#8a6a2a;box-shadow:0 0 8px #e6b95a99}
.qt-key-dot.is-ready{border-color:#f0ce83;background:#2a1e11;box-shadow:0 0 6px #e6b95a66}
.qt-labels{margin:0 18px 18px}
@media(min-width:1000px){
 .qt-body{grid-template-columns:minmax(0,1fr) 300px;column-gap:6px}
 .qt-detail{position:sticky;top:14px;margin:16px 26px 0 0}
 .qt-labels{grid-column:1/-1}
 /* Pat, 17 Oct: details for a lower perk opened at the top of the board, off screen. A chosen perk's details now open as a popup beside its own row
    (--qt-y, set by public/quest-tree-ui.js from the perk's place on the board); the key panel stays at the top while nothing is chosen. */
 .qt-body{position:relative}
 .qt-detail>.qt-panel[data-qt-panel]:not(.qt-empty){position:absolute;top:calc(var(--qt-y,0px) + 10px);right:26px;width:300px;z-index:5;max-height:420px;overflow:auto;box-shadow:0 18px 40px #000c,0 0 0 1px #00000080}
 /* Menu standard pass (17 Oct): a perk with a "Why not yet" line is about 405 px tall; quest-tree-ui.js keeps 420 px free below the popup's top (POP_H), and this cap keeps any longer one inside the board. */
 .qt-close{display:inline-grid;place-items:center}
}
@media(max-width:999px){
 .qt-detail{position:fixed;left:0;right:0;bottom:var(--mobile-nav-height,0px);z-index:60;max-height:min(52dvh,480px);overflow:auto;padding:0 10px 10px;pointer-events:none}
 .qt-detail>.qt-panel{pointer-events:auto;max-width:640px;margin:0 auto;border-radius:12px 12px 6px 6px}
 .qt-pane[data-selected=""] .qt-detail{display:none}
 .qt-pane:not([data-selected=""]) .qt-map{padding-bottom:min(54dvh,500px)}
 .qt-close{display:inline-grid;place-items:center}
 .qt-empty{display:none}
}
@media(max-width:540px){
 .qt-map{padding:12px 18px 26px}
 .qt-banner{min-height:92px;padding:16px 22px 12px}
 .qt-banner h3{font-size:1.35rem}
 .qt-labels{margin:0 12px 14px}
}
@media(max-width:400px){
 .qt{--qt-tile:52px;--qt-nw:64px}
 .qt-map{padding:10px 12px 22px}
 .qt-name{font-size:.6875rem}
 .qt-label{padding:2px 3px}
 .qt .tree-balance{padding-right:10px}
}
/* Threat and tactics: the one-time notice that cosmetics were refunded. */
.qt-refund{display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:space-between;margin:0 18px 14px;padding:12px 14px;border:1px solid #9fc4e8;border-radius:8px;background:#0f1d26;color:#dfe8ee}.qt-refund p{margin:0;flex:1 1 220px;line-height:1.45}.qt-refund button{min-height:44px}
@media(max-width:540px){.qt-refund{margin:0 12px 12px}}
/* The Quest Points ? keeps a full 44 px touch target; the wrapping balance row was squeezing it to 30 px. */
.qt .tree-balance .ui-help{flex:none;min-width:44px;min-height:44px}
/* ---- Perk trees (engine switch IRP_PERK_TREES_VERSION=1; markup pathBranch in quest-tree-ui.js): drawn like the class skill tree ---- */
.pt-pane .qt-body{background:radial-gradient(ellipse at 50% 0,#2a3550aa,transparent 55%),radial-gradient(ellipse at 15% 60%,#3b261a55,transparent 50%),radial-gradient(ellipse at 85% 70%,#1f2d4a66,transparent 55%),linear-gradient(#0d131d,#090d14)}
.pt-map{min-width:0;overflow-x:auto;overflow-y:hidden;padding:10px 14px 26px;overscroll-behavior-x:contain;scrollbar-color:#826948 #111823}
.pt-map:focus-visible{outline:2px solid var(--qt-focus);outline-offset:-2px}
.pt-board{position:relative;width:100%;min-width:var(--pt-w);max-width:calc(var(--pt-w) * 1.25);margin:0 auto}
.pt-links{position:absolute;left:0;top:0;width:100%;height:100%;overflow:visible;pointer-events:none;z-index:1}
.pt-wire{fill:none;stroke:#7d6a4a;stroke-opacity:.45;stroke-width:2;vector-effect:non-scaling-stroke}
.pt-wire.is-open{stroke:#c9a865;stroke-opacity:.8}
.pt-wire.is-lit{stroke:#ffd977;stroke-opacity:1;stroke-width:2.6;filter:drop-shadow(0 0 4px #ffb93cc0)}
.pt-trunk{stroke:#b89a5f;stroke-opacity:.7;filter:none;stroke-width:2}
.pt-band{position:absolute;left:0;right:0;height:0;border-top:1px dashed #b7965726;z-index:0}
.pt-band>span{position:absolute;left:0;top:10px;width:calc(var(--pt-g) - 10px);display:grid;gap:2px;padding:7px 8px;box-sizing:border-box;border-left:2px solid #5d5545;background:linear-gradient(90deg,#0e131cdd,#0e131c00);font:600 .625rem/1.2 system-ui;letter-spacing:.08em;text-transform:uppercase;color:#8d8370}
.pt-band>span b{font:600 .8125rem Georgia,serif;letter-spacing:.06em;color:#b49a68}
.pt-band>span em{font-style:normal;color:#c7bea8}
.pt-band>span small{font:.5625rem/1.25 system-ui;letter-spacing:.04em;text-transform:none;color:#8d8370}
.pt-band.is-reached{border-top-color:#d6b5754d}.pt-band.is-reached>span{border-left-color:#f0ce83}.pt-band.is-reached>span b{color:#f0ce83}.pt-band.is-reached>span small{color:#b8ab8e}
.pt-knot{position:absolute;z-index:2;width:9px;height:9px;margin:-4.5px 0 0 -4.5px;transform:rotate(45deg);background:#20283a;border:1px solid #8f7645;box-shadow:0 0 0 2px #0b1018}
.pt-knot.is-lit{background:#ffd977;border-color:#fff0c0;box-shadow:0 0 0 2px #0b1018,0 0 10px #ffb93cd0}
.pt-root{position:absolute;top:6px;transform:translateX(-50%);z-index:2;display:grid;justify-items:center;text-align:center;pointer-events:none}
.pt-crest{display:grid;place-items:center;width:46px;height:46px;transform:rotate(45deg);border:1px solid var(--qt-tone);background:#111522;box-shadow:0 0 0 4px #0b1018,0 0 0 5px #8f7645,0 0 26px color-mix(in srgb,var(--qt-tone) 40%,transparent)}
.pt-crest .pt-art{transform:rotate(-45deg);width:40px;height:40px}
.pt-root strong{margin-top:14px;font:600 .9375rem Georgia,serif;letter-spacing:.2em;text-transform:uppercase;color:#f0d9a2;text-shadow:0 2px 4px #000}
.pt-root small{font:.5625rem system-ui;letter-spacing:.12em;text-transform:uppercase;color:#a9a08a}
.pt-head{position:absolute;transform:translate(-50%,-100%);z-index:2;text-align:center;white-space:nowrap;pointer-events:none;padding-bottom:6px;border-bottom:1px solid color-mix(in srgb,var(--qt-tone) 45%,transparent)}
.pt-head small{display:block;font:600 .5625rem system-ui;letter-spacing:.16em;text-transform:uppercase;color:#a9a08a}
.pt-head h4{margin:2px 0 0;font:500 1.35rem/1.15 Georgia,serif;color:var(--qt-tone);text-shadow:0 2px 6px #000,0 0 18px color-mix(in srgb,var(--qt-tone) 35%,transparent)}
.pt-slot{position:absolute;transform:translateX(-50%);width:128px;z-index:3}
.pt-node{gap:3px}
.pt-level{font:600 .5625rem/1 system-ui;letter-spacing:.12em;color:#a9a08a}
.pt-orb{position:relative;display:grid;place-items:center;width:68px;height:68px;box-sizing:border-box;border-radius:50%;border:2px solid #5d5545;background:radial-gradient(circle at 50% 35%,#24304a,#0b1018 75%);box-shadow:0 0 0 3px #0b1018,0 6px 14px #000c;transition:box-shadow .15s,border-color .15s}
.pt-orb .pt-art{width:50px;height:50px;filter:drop-shadow(0 2px 2px #000a)}
.pt-rank{position:absolute;left:50%;bottom:-8px;transform:translateX(-50%);min-width:30px;padding:0 5px;box-sizing:border-box;text-align:center;border:1px solid #6d6150;border-radius:4px;background:#0e131c;font:600 .5625rem/.9375rem system-ui;color:#c7bea8}
.pt-name{margin-top:8px;max-width:100%;font:500 .875rem/1.2 Georgia,serif;text-align:center;color:#e8dcc2;text-shadow:0 1px 3px #000;overflow-wrap:anywhere}
.pt-cost{font:600 .625rem system-ui;letter-spacing:.04em;color:#a9926a}
.pt-node.is-unlocked .pt-orb{border-color:#f2c85b;background:radial-gradient(circle at 50% 35%,color-mix(in srgb,var(--qt-tone) 45%,#24304a),#0b1018 78%);box-shadow:0 0 0 3px #0b1018,0 0 0 4px #b8954a,0 0 22px color-mix(in srgb,var(--qt-tone) 70%,transparent),0 6px 14px #000c}
.pt-node.is-unlocked .pt-rank{border-color:#f2c85b;color:#fff1cc;background:#3a2a12}
.pt-node.is-unlocked .pt-cost{color:#f0ce83}
.pt-node.is-ready .pt-orb{border-color:color-mix(in srgb,var(--qt-tone) 70%,#f0ce83);box-shadow:0 0 0 3px #0b1018,0 0 14px color-mix(in srgb,var(--qt-tone) 50%,transparent),0 6px 14px #000c}
.pt-node.is-ready .pt-cost{color:#ffe6a6}
.pt-node.is-locked .pt-art{filter:grayscale(.85) brightness(.62)}
.pt-node.is-locked .pt-name{color:#a29a88}
.pt-node:hover .pt-orb{border-color:#f6d798}
.pt-node[aria-pressed=true] .pt-orb{outline:2px solid #ffe0a0;outline-offset:4px}
.pt-node:focus-visible .pt-orb{outline:3px solid var(--qt-focus);outline-offset:4px}
.pt-pane .qt-panel .qt-tile .pt-art{width:40px;height:40px}
.pt-phone{display:none}
.pt-chips{display:flex;gap:6px;margin:4px 0 10px;flex-wrap:wrap}
.pt-chip{flex:1 1 0;min-height:44px;padding:6px 8px!important;border:1px solid #b7965740!important;border-radius:2px!important;background:#0d151d!important;color:var(--qt-tone)!important;font:500 .8125rem Georgia,serif!important}
.pt-chip[aria-pressed=true]{border-color:var(--qt-tone)!important;background:color-mix(in srgb,var(--qt-tone) 14%,#0d151d)!important;box-shadow:0 0 12px color-mix(in srgb,var(--qt-tone) 30%,transparent)}
.pt-role{font-weight:700}.pt-role-DPS{color:#e2c86a}.pt-role-Tank{color:#b4a0e2}.pt-role-Healer{color:#8fd18a}
.pt-node.is-locked .pt-role{opacity:.75}
@media(max-width:600px){
 .pt-map{padding:8px 6px 22px;overflow-x:visible}.pt-full{display:none}.pt-phone{display:block}.pt-single{min-width:0;max-width:none}
 .pt-head h4{font-size:1.1rem}.pt-slot{width:104px}.pt-name{font-size:.8125rem}.pt-slot.is-crowded .pt-name{max-width:78px;margin-inline:auto}
 .pt-band>span{padding:6px 5px}.pt-band>span b{font-size:.75rem}.pt-band>span em{font-size:.5625rem}
}
/* Gentle Prying (Artisan wing): its own painted icon (design/art24-2026-10-17), one picture per file rather than a cell of the UI-kit quest sheet. */
.uk-art.uk-ico-gentle-prying{background:url('/art/ui/perk-gentle-prying-v1.webp') center/contain no-repeat}
/* More Artisan perks (IRP_ARTISAN_MORE_VERSION): their own painted icons from ChatGPT art prompt 16, one picture per file like Gentle Prying. */
.uk-art.uk-ico-quick-hands{background:url('/art/ui/perk-quick-hands-v1.webp') center/contain no-repeat}
.uk-art.uk-ico-swift-squires{background:url('/art/ui/perk-swift-squires-v1.webp') center/contain no-repeat}
.uk-art.uk-ico-thorough-salvage{background:url('/art/ui/perk-thorough-salvage-v1.webp') center/contain no-repeat}
.uk-art.uk-ico-keen-eye{background:url('/art/ui/perk-keen-eye-v1.webp') center/contain no-repeat}
.uk-art.uk-ico-lucky-find{background:url('/art/ui/perk-lucky-find-v1.webp') center/contain no-repeat}
/* Second Squire (Artisan wing, 19 Oct 2026): its own painted icon from ChatGPT art request 28 (art28-2026-10-19), one picture per file like the others. */
.uk-art.uk-ico-squire-slot{background:url('/art/ui/perk-squire-slot-v1.webp') center/contain no-repeat}
/* The Artisan patch (IRP_ARTISAN_VERSION): Swift Hands and Sharp Eye, their own painted icons from ChatGPT art request 81 (25 Oct 2026). */
.uk-art.uk-ico-swift-hands{background:url('/art/ui/perk-swift-hands-v1.webp') center/contain no-repeat}
.uk-art.uk-ico-sharp-eye{background:url('/art/ui/perk-sharp-eye-v1.webp') center/contain no-repeat}
.uk-art.uk-ico-masters-touch{background:url('/art/ui/perk-masters-touch-v1.webp') center/contain no-repeat}
/* Companion Expedition (ChatGPT art prompt 27, corrected in prompt 28): the Expedition Pace perk and the expedition chip on the Companions page. */
.uk-art.uk-ico-companion-expedition{background:url('/art/ui/companion-expedition-v2.webp') center/contain no-repeat}
/* Ranked perk trees (Artisan, 18 Oct): a bonus strip above the board, rank pips on each orb, ranks per path under its heading, and a dotted start wire
   for a path that opens on a lower row. UI kit v1 parts (.uk-chip, .uk-icon-tile, .uk-meter); the tree look itself is unchanged. */
.pt-summary{display:grid;grid-template-columns:minmax(150px,210px) minmax(0,1fr);gap:10px 18px;align-items:center;margin:0;padding:12px 16px;border-bottom:1px solid #b7965733;background:linear-gradient(90deg,#141b28,#0f1520 60%,#141b28)}
.pt-sum-bar{display:block;height:6px;border-radius:3px;background:#0a0f17;box-shadow:inset 0 0 0 1px #6d6150}
.pt-sum-bar>i{display:block;height:100%;border-radius:3px;background:linear-gradient(90deg,#b8954a,#ffd977);box-shadow:0 0 8px #ffb93c80}
.pt-sum-chips{gap:6px 8px}
.pt-sum-chip{min-height:32px;padding:2px 10px 2px 3px;border-radius:16px;font-size:.8125rem}
.pt-sum-chip .pt-sum-tile{width:26px;height:26px;border-radius:50%;padding:1px}
.pt-sum-chip .pt-sum-tile .pt-art{width:100%;height:100%}
.pt-sum-chip.is-zero{opacity:.55;border-color:#6d615066;color:#a9a08a}
.pt-sum-chip.is-zero .pt-art{filter:grayscale(.7)}
.pt-head-ranks{display:block;margin-top:2px;font:600 .625rem system-ui;font-style:normal;letter-spacing:.08em;text-transform:uppercase;color:#c7bea8}
.pt-rank.pt-pips{display:flex;gap:3px;align-items:center;justify-content:center;height:15px;padding:0 5px}
.pt-pips>i{width:6px;height:6px;transform:rotate(45deg);border:1px solid #8f7645;background:#141b28}
.pt-pips>i.is-on{border-color:#fff0c0;background:#ffd977;box-shadow:0 0 5px #ffb93cc0}
.pt-wire.is-reach{stroke-dasharray:3 6;stroke-linecap:round}
@media(max-width:600px){
 .pt-summary{grid-template-columns:minmax(0,1fr);padding:10px 10px}
 .pt-summary .pt-sum-chips{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}
 .pt-sum-chip{min-height:30px;padding-right:6px;font-size:.6875rem;line-height:1.15}
 .pt-sum-chip .pt-sum-tile{width:22px;height:22px;flex:0 0 22px}
}

/* Daily chest (lib/daily-chest.js, default off): the same card as a daily quest, with the kit chest icon and seven day marks in the quest bar colours. */
.daily-chest .periodic-row{align-items:center}
.daily-chest .periodic-row h3{flex:1 1 auto;min-width:0}
.daily-chest .daily-chest-tile{flex:none;width:34px;height:34px}
.daily-chest-days{display:flex;gap:4px;margin:8px 0}
.daily-chest-days i{flex:1 1 0;height:8px;border:1px solid #534b3b;border-radius:2px;background:#0a0f13}
.daily-chest-days i.is-done{border-color:#8d6f36;background:linear-gradient(90deg,#8d6f36,#cfaa57)}
.daily-chest-days i.is-next{border-color:#cfaa57;box-shadow:0 0 6px #cfaa5755}

/* Your first week (lib/first-week.js, default off): a quest set box on top of Active with the seven days in one row on wide screens, two columns on a phone.
   Scoped under .quest-menu so the Quests page's larger story text does not apply to these small cards. A day that has not opened yet is dimmed. */
.quest-menu .first-week{display:grid;gap:10px;margin:0 0 18px}
.quest-menu .first-week-head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:6px 12px;margin:0}
.quest-menu .first-week-head h2{margin:0;font-size:1.15rem}
.shell .exp-page.quest-menu .first-week p.periodic-intro{font-size:.9rem}
.quest-menu .first-week-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px}
.quest-menu .first-week-day{display:flex;flex-direction:column;padding:10px}
.quest-menu .first-week-day .periodic-row{flex-direction:column;align-items:flex-start;gap:2px}
.quest-menu .first-week-day h3{margin:0;font-size:.95rem;line-height:1.25}
.shell .exp-page.quest-menu .first-week-day p.periodic-help,.quest-menu .first-week-day .periodic-help{margin:4px 0;font-size:.8rem;line-height:1.35;color:#a9a08a}
.shell .exp-page.quest-menu .first-week-day p.quest-reward,.quest-menu .first-week-day .quest-reward{margin:4px 0 8px;font-size:.8rem;color:#dcc698}
.quest-menu .first-week-day .periodic-status{margin-top:auto}
.quest-menu .first-week-day .periodic-state{font-size:.8rem}
.first-week-num{font-size:.6875rem;letter-spacing:.06em;text-transform:uppercase;color:#cfaa57}
.quest-menu .first-week-day.is-locked{opacity:.6}
/* Menu audit 23 Oct: seven days left Day 7, the title day, alone on its own row; on four and two columns it now spans two, so every row is full. */
@media (max-width:1100px){.quest-menu .first-week-days{grid-template-columns:repeat(4,minmax(0,1fr))}.quest-menu .first-week-day:last-child:nth-child(7){grid-column:span 2}}
@media (max-width:600px){.quest-menu .first-week-days{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* First-week rewards (raised 22 Oct): one line each, gold first and bright, gift Dawn Crowns in the gift-Crown blue of the Crown shop, the day 7 title last. */
.first-week-reward{list-style:none;margin:6px 0 8px;padding:0;display:grid;gap:2px;font-size:.8rem;line-height:1.3;color:#c7bea8}
.first-week-reward .is-gold{font-size:.95rem;font-weight:600;color:#f0d38a}
.first-week-reward .is-crowns{color:#9cc8f0}
.first-week-reward .is-title{color:#cfaa57;font-style:italic}

/* Quest Tree rework (IRP_QUEST_TREE_REWORK_VERSION): a UI kit strip with three numbers in place of the balance bar, a Ready to buy row,
   and a before → after line on slot perks. Only drawn while the switch is on (public/quest-tree-ui.js strip, ready, gainLine). */
.quest-tree.qt .qt-strip{display:grid;grid-template-columns:minmax(0,1fr) minmax(340px,auto);align-items:center;gap:12px 22px}
.quest-tree.qt .qt-strip-lead{display:flex;align-items:center;gap:12px;min-width:0}
.quest-tree.qt .qt-strip-lead p{margin:0;color:#c7bea8;line-height:1.45}
.quest-tree.qt .qt-strip-lead .ui-help{vertical-align:middle}
.quest-tree.qt .qt-strip-tile{flex:none;width:48px;height:48px;padding:4px}
.quest-tree.qt .qt-strip .uk-stats{padding-left:16px;border-left:1px solid #b69a6055}
.quest-tree.qt .qt-ready{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;min-width:0}
.quest-tree.qt .qt-ready-title{margin:0;font:600 .75rem/1.2 var(--uk-sans);letter-spacing:.08em;text-transform:uppercase;color:var(--uk-ivory-dim,#b9b09b)}
.quest-tree.qt .qt-ready-chips{min-width:0}
.quest-tree.qt .qt-ready-chips>li{display:flex;min-width:0}
.quest-tree.qt .qt-ready-chip{cursor:pointer;min-height:44px;gap:8px;padding:3px 12px 3px 4px;border-radius:20px;font-size:.8125rem}
.quest-tree.qt .qt-ready-chip:hover,.quest-tree.qt .qt-ready-chip:focus-visible{border-color:var(--qt-gold-hi);background:#1b2a36}
.quest-tree.qt .qt-ready-text{display:inline-flex;gap:6px;align-items:baseline;min-width:0}
.quest-tree.qt .qt-ready-chip b{font-weight:600;color:#ffe1aa}
.quest-tree.qt .qt-ready-tile{width:30px;height:30px;padding:1px;border-radius:50%}
.quest-tree.qt .qt-ready-more{min-height:44px;color:var(--uk-ivory-dim,#b9b09b)}
/* Ready to buy on wider screens: a grid of even rows (qt-ready-c2 or c3) beside the title, so no chip sits alone on a second row. */
@media(min-width:541px){.quest-tree.qt .qt-ready{display:grid;grid-template-columns:auto minmax(0,1fr)}.quest-tree.qt .qt-ready-chips{display:grid;gap:8px}.quest-tree.qt .qt-ready-c1{grid-template-columns:minmax(0,max-content)}.quest-tree.qt .qt-ready-c2{grid-template-columns:repeat(2,minmax(0,1fr))}.quest-tree.qt .qt-ready-c3{grid-template-columns:repeat(3,minmax(0,1fr))}.quest-tree.qt .qt-ready-chip,.quest-tree.qt .qt-ready-more{width:100%;justify-content:flex-start}.quest-tree.qt .qt-ready-more{justify-content:center}}
@media(min-width:541px) and (max-width:899px){.quest-tree.qt .qt-ready{grid-template-columns:minmax(0,1fr)}}
.quest-tree.qt .qt-gain{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px;margin:0 0 10px;padding:6px 10px;border:1px solid #b69a6055;border-radius:6px;background:#0f1a24;color:#c7bea8;font-size:.875rem}
.quest-tree.qt .qt-gain span{margin-right:auto}
.quest-tree.qt .qt-gain b{font:600 1.05rem/1 var(--uk-serif,Georgia,serif);color:#ffe1aa}
@media(max-width:899px){.quest-tree.qt .qt-strip{grid-template-columns:minmax(0,1fr)}.quest-tree.qt .qt-strip .uk-stats{padding:10px 0 0;border-left:0;border-top:1px solid #b69a6055}}
@media(max-width:540px){.quest-tree.qt .qt-strip-lead p{font-size:.875rem}.quest-tree.qt .qt-ready{display:grid;grid-template-columns:minmax(0,1fr)}.quest-tree.qt .qt-ready-chips{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.quest-tree.qt .qt-ready-chips>li:last-child:nth-child(odd){grid-column:1/-1}.quest-tree.qt .qt-ready-chip,.quest-tree.qt .qt-ready-more{width:100%;justify-content:flex-start}.quest-tree.qt .qt-ready-text{flex:1;flex-direction:column;align-items:flex-start;gap:1px;text-align:left}.quest-tree.qt .qt-ready-text>span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.quest-tree.qt .qt-ready-chip{border-radius:12px;padding-block:4px}}
/* Phones: three wing tabs share one row (icon over name) instead of leaving the third alone on a second row. */
@media(max-width:540px){.quest-tree.qt .qt-tabs.qt-tabs-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.quest-tree.qt .qt-tabs.qt-tabs-3 .qt-tab{flex-direction:column;gap:3px;min-width:0;min-height:72px;padding:6px 4px;font-size:.8125rem;white-space:nowrap}}
/* Every wing has three paths now. Each path's column is as wide as its busiest row needs (public/quest-tree-ui.js colWidths), so names wrap at 92 px,
   three on one row (Company and Command row 3) stand 96 px apart, and the wires start under the whole name (nameLines). A cost stays on one line,
   and the wing's name on the crest never breaks on a phone. */
.quest-tree.qt-rework .pt-full .pt-slot{width:92px}.quest-tree.qt-rework .pt-full .pt-slot.is-crowded .pt-name{font-size:.8125rem}
.quest-tree.qt-rework .pt-cost{white-space:nowrap}.quest-tree.qt-rework .pt-root strong{white-space:nowrap}
/* The seven Quest Tree rework perks: their own painted icons from ChatGPT art 75 (24 Oct), one picture per file like Gentle Prying. */
.uk-art.uk-ico-chest-nook{background:url('/art/ui/perk-chest-nook-v1.webp') center/contain no-repeat}
.uk-art.uk-ico-quest-swap{background:url('/art/ui/perk-quest-swap-v1.webp') center/contain no-repeat}
.uk-art.uk-ico-quest-swap-2{background:url('/art/ui/perk-quest-swap-2-v1.webp') center/contain no-repeat}
.uk-art.uk-ico-market-stall{background:url('/art/ui/perk-market-stall-v1.webp') center/contain no-repeat}
.uk-art.uk-ico-relist-all{background:url('/art/ui/perk-relist-all-v1.webp') center/contain no-repeat}
.uk-art.uk-ico-long-listings{background:url('/art/ui/perk-long-listings-v1.webp') center/contain no-repeat}
.uk-art.uk-ico-market-stall-2{background:url('/art/ui/perk-market-stall-2-v1.webp') center/contain no-repeat}
/* Quest Tree reset (IRP_QUEST_TREE_RESET_VERSION): a small Reset perks button at the end of the strip, with when it opens again under it. */
.quest-tree.qt .qt-strip:has(.qt-reset){grid-template-columns:minmax(0,1fr) minmax(340px,auto) auto}
.quest-tree.qt .qt-reset{display:grid;justify-items:center;gap:4px;padding-left:16px;border-left:1px solid #b69a6055}
.quest-tree.qt .qt-reset-btn{display:inline-flex;align-items:center;gap:6px;min-height:44px;white-space:nowrap}.quest-tree.qt .qt-reset-btn .uk-art{width:22px;height:22px}
.quest-tree.qt .qt-reset small{font-size:.6875rem;color:var(--uk-ivory-dim,#b9b09b);white-space:nowrap}
@media(max-width:899px){.quest-tree.qt .qt-strip:has(.qt-reset){grid-template-columns:minmax(0,1fr)}.quest-tree.qt .qt-reset{display:flex;justify-content:space-between;align-items:center;padding:10px 0 0;border-left:0;border-top:1px solid #b69a6055}}
/* Quest Swap (Quest Tree perk): a small Swap button beside "In progress". */
.periodic-status .periodic-swap{flex:none;width:auto;min-width:88px;margin-left:auto}
.periodic-swap-note{color:#b9d6c0}
/* Quests page tabs on phones and tablets (phone deep dive, 24 Oct): even rows instead of a Quest Tree tab alone on a full-width row (430) or tabs of
   different widths (390). Two columns up to 540 px, all four in one row up to 899 px; the 360 px rule in endgame.css (one per row) still wins below that. */
@media(min-width:361px) and (max-width:899px){.shell .quest-menu .quest-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}.shell .quest-menu .quest-tabs>button{max-width:none;min-width:0;white-space:normal}}
@media(min-width:361px) and (max-width:540px){.shell .quest-menu .quest-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}.shell .quest-menu .quest-tabs>button:last-child:nth-child(odd){grid-column:1/-1}}

/* Simpler screens (IRP_UI_SIMPLER_VERSION; Reddit testers, 26 Oct): Quests on the Leaderboards pattern. Daily / Weekly / Monthly are framed lists of
   one-line rows (public/periodic-quests-ui.js renderSimple), Your first week is a strip of seven days over today's goal, finished quests fold at the bottom. */
.periodic-quests.is-simple{gap:12px}
.periodic-quests.is-simple .periodic-intro{margin:0}
.periodic-quests.is-simple .periodic-set{padding:14px 16px;border:0;background:none}
.periodic-quests.is-simple .periodic-set>header{margin-bottom:4px}
.periodic-quests.is-simple .periodic-set>header .uk-heading{margin:0;font-size:1.2rem}
.periodic-quests.is-simple .periodic-cap{margin:0 0 10px;font-size:.85rem;color:var(--uk-ivory-dim,#a9a08a)}
.periodic-row-simple .uk-row-main{min-height:58px}
.periodic-row-simple .uk-icon-tile{flex:0 0 auto}
.periodic-row-simple .uk-icon-tile .uk-ico{width:32px;height:32px}
.periodic-row-simple .uk-row-extra{max-width:420px}
.periodic-row-simple .uk-row-extra .uk-progress{height:10px}
.periodic-row-simple .periodic-count{flex:0 0 auto;min-width:10ch;min-width:10ch;font-variant-numeric:tabular-nums;color:var(--uk-ivory,#eadbb9)}
.periodic-row-simple .uk-row-end{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:6px}
.periodic-row-simple .uk-row-end .red-button,.periodic-row-simple .uk-row-end .secondary{min-height:44px;padding-inline:16px}
.periodic-row-simple .daily-chest-days{max-width:260px;margin:4px 0 0}
.periodic-quests.is-simple .periodic-rules{padding:12px 16px}
.periodic-quests.is-simple .periodic-rules .uk-heading{margin:0 0 6px;font-size:1.05rem}
.periodic-quests.is-simple .periodic-rules ul{margin:0;padding-left:18px;font-size:.85rem;line-height:1.5;color:var(--uk-ivory-dim,#a9a08a)}
@media(max-width:480px){.periodic-quests.is-simple .periodic-set{padding:12px 10px}.periodic-row-simple .uk-row-main{flex-wrap:wrap}.periodic-row-simple .uk-row-body{flex-basis:calc(100% - 60px)}.periodic-row-simple .uk-row-end{flex:1 1 100%;max-width:none}}

.quest-menu .first-week.is-simple{gap:10px;padding:14px 16px}
.quest-menu .first-week.is-simple .first-week-head .uk-heading{margin:0;font-size:1.2rem}
.quest-menu .first-week.is-simple .periodic-intro{font-size:.9rem}
.quest-menu .fw-pips{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;margin:0;padding:0;list-style:none}
.quest-menu .fw-pip{display:grid;justify-items:center;gap:2px;padding:6px 2px;border:1px solid var(--uk-gold-dim,#8f7645);border-radius:8px;background:var(--uk-navy-0,#0e1824);color:var(--uk-ivory-dim,#a9a08a);font:600 .72rem/1.2 var(--uk-sans,system-ui)}
.quest-menu .fw-pip b{font:600 1.05rem/1.1 var(--uk-serif,Georgia);color:var(--uk-ivory,#eadbb9)}
.quest-menu .fw-pip .uk-ico{width:22px;height:22px}
.quest-menu .fw-pip.is-today{border-color:var(--uk-gold-hi,#f0ce83);box-shadow:0 0 10px #d6b57540;color:var(--uk-gold-text,#ffe1aa)}
.quest-menu .fw-pip.is-claimed{border-color:var(--uk-done-dim,#4f7d57);color:var(--uk-done,#7fc58a)}
.quest-menu .fw-pip.is-locked{opacity:.6}
.quest-menu .first-week-today .uk-row-main{align-items:center}
.quest-menu .first-week-today .uk-chips{margin-top:4px}
.quest-menu .first-week-today .uk-chip.is-gold{color:var(--uk-gold-text,#ffe1aa);border-color:var(--uk-gold-dim,#8f7645)}
.quest-menu .first-week-today .uk-row-end .red-button{min-height:44px}
@media(max-width:480px){.quest-menu .fw-pip-label{display:none}.quest-menu .first-week-today .uk-row-main{flex-wrap:wrap}.quest-menu .first-week-today .uk-row-body{flex-basis:calc(100% - 50px)}.quest-menu .first-week-today .uk-row-end{flex:1 1 100%;max-width:none;justify-items:stretch}}

.quest-menu .quest-completed-fold{margin:0 0 18px;padding:12px 16px}
.quest-menu .quest-completed-fold>summary{display:flex;align-items:center;gap:8px;min-height:44px;cursor:pointer;list-style:none}
.quest-menu .quest-completed-fold>summary::-webkit-details-marker{display:none}
.quest-menu .quest-completed-fold>summary::after{content:"";margin-left:auto;border:5px solid transparent;border-top:6px solid var(--uk-gold,#d6b575);border-bottom:0}
.quest-menu .quest-completed-fold[open]>summary::after{border-width:0 5px 6px;border-top:0;border-bottom:6px solid var(--uk-gold,#d6b575)}
.quest-menu .quest-completed-fold>summary h2{margin:0;font-size:1.15rem}
.quest-menu .quest-completed-fold .uk-row-list{margin-top:10px}
.quest-menu .quest-completed-fold .uk-row-main{min-height:52px}
/* Simpler screens: three quest tabs (Completed folds into Active) sit in one row from 361 px up, never two and a lone one. */
@media(min-width:361px) and (max-width:899px){.shell .quest-menu.ms-page .quest-tabs.ms-tabs.is-three{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.shell .quest-menu.ms-page .quest-tabs.is-three>button:last-child:nth-child(odd){grid-column:auto}}

/* /ui-quests.css */
/* Quests screen on the UI kit (switch IRP_UI_QUESTS_VERSION, default off; public/ui-quests.js). Page-local layout only: colours, frames and shadows come from ui-kit.css tokens and classes. */
/* The kit scopes heading type and the focus ring to .uk-page; the game screen scopes them here instead. */
.uq-screen :where(h1,h2,h3){margin:0;font-family:var(--uk-serif);font-weight:500;letter-spacing:.02em;color:var(--uk-gold-text);text-wrap:balance}
.uq-screen :focus-visible{outline:3px solid var(--uk-focus);outline-offset:2px}
/* .uk-stack / .uk-stat set display and beat the hidden attribute (kit request 10): hidden has to win for the tab panels and the stats of the other tabs. */
.uq-screen [hidden]{display:none!important}
/* Fewer, larger cards on a wide screen (the sample's own rule). */
@media(min-width:900px){.uq-screen .uk-grid{--uk-card-min:300px}}
.uq-rules{margin:0 0 var(--uk-gap)}
/* The state tag is nowrap in the kit: "Limit reached" is wider than a two-column card at 320 px. Let it wrap inside the card (kit request 22). */
.uq-screen .uk-card .uk-state{max-width:100%;white-space:normal;text-align:center}
/* The "How it works" list sits under the disclosure's own box. */
.uq-rules>.uk-bullets{padding:12px 4px 4px}
/* Menu-standard pass (17 Oct): a list has 2 or 3 quests, so two columns on a phone leave one card alone on a row. One card per row there. */
@media(max-width:560px){.uq-screen .uk-grid{grid-template-columns:1fr}}
.uq-chest{margin-top:.75rem}
/* The next perk line after a claim (IRP_REWARD_PULL_VERSION, public/ui-quests.js nextPerk): icon, words, then the Quest Tree button. */
.uq-next-perk{display:flex;align-items:center;flex-wrap:wrap;gap:8px 10px;margin:4px 0 10px;color:var(--uk-ivory)}
.uq-next-perk>img,.uq-next-perk>.uk-art{flex:none;width:1.75rem;height:1.75rem}
.uq-next-perk>span{flex:1 1 14rem;min-width:0}

/* /skill-compact.css */
/* Compact skill tree (IRP_SKILL_TREE_COMPACT_VERSION=1, default off): shorter header, tighter tree, ability bar with equip, a pop-up instead of the side panel. Only drawn while the switch is on. */
/* ---- Header: one slim row; the painted banner stays. ---- */
.paths-page.skill-compact .paths-heading{min-height:0;padding:10px 40px 10px 22px;gap:14px;align-items:center;margin-bottom:10px}
.paths-page.skill-compact .paths-heading h1{font-size:1.375rem;margin:2px 0 0}
.paths-page.skill-compact .paths-heading>div:first-child>p:not(.eyebrow):not(.paths-raid-note){display:none}
.paths-page.skill-compact .paths-heading .eyebrow{margin:0}
.paths-page.skill-compact .paths-heading{flex-wrap:wrap}
.paths-page.skill-compact .paths-heading>div:first-child{min-width:0;flex:1 1 260px}
.paths-page.skill-compact .paths-budgets{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:8px 12px;max-width:none}
.paths-page.skill-compact .paths-budgets>span{padding:6px 12px}
.paths-page.skill-compact .paths-budgets strong{font-size:1.25rem}
.paths-page.skill-compact .paths-budgets>small{display:none}
.paths-page.skill-compact .paths-budgets .secondary,.paths-page.skill-compact .paths-budgets .text-button{margin:0}
/* ---- Tree: the whole map shows; the page scrolls, not a box inside it. ---- */
.paths-page.skill-compact .class-tree-viewport{height:auto;min-height:0;overflow-x:auto;overflow-y:hidden}
.paths-page.skill-compact .tree-map-hint{display:none}
.paths-page.skill-compact .tree-legend{padding:6px 14px}
.class-tree[data-compact] .class-tree-root{top:6px;width:300px;height:46px;display:flex;align-items:center;justify-content:center;gap:12px;text-align:left}
.class-tree[data-compact] .tree-crest{width:28px;height:28px;margin:0;box-shadow:0 0 0 3px #151c24,0 0 0 4px #6d5d3e}
.class-tree[data-compact] .tree-crest span{font-size:1.125rem}
.class-tree[data-compact] .class-tree-root h2{margin:0;font-size:1.25rem}
.class-tree[data-compact] .class-tree-path-root{top:52px;width:200px}
.class-tree[data-compact] .class-tree-path-root h3{margin:2px 0 0;font-size:1.375rem}
.class-tree[data-compact] .class-tree-path-root:after{display:none}
.class-tree[data-compact] .class-tree-columns span{top:104px}
.class-tree[data-compact] .class-tree-tier3{text-align:left}
.class-tree[data-compact] .class-tree-tier3 span{display:inline-block;margin-left:6px}
/* ---- Ability bar ---- */
.skill-bar-compact{margin:0 0 12px;padding:10px 12px;border:1px solid #8b744044;border-radius:10px;background:linear-gradient(#111926,#0c121c);color:#e7dcc7}
.skill-bar-compact>header{display:flex;align-items:baseline;gap:12px;margin-bottom:8px}
.skill-bar-compact h2{font:1.0625rem Georgia,serif;color:#e9d4a8;margin:0}
.skill-bar-compact>header p,.skill-bar-compact .bar-note{margin:0;font-size:.8125rem;color:#9aa5b4;line-height:1.4}
.bar-slots{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.bar-slots.five{grid-template-columns:repeat(5,minmax(0,1fr))}
.bar-slot{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"head remove" "skill skill";align-items:center;gap:4px 6px;padding:6px 8px;border:1px solid #8b744040;border-radius:8px;background:#0b1119;min-height:84px}
.bar-slot.filled{border-color:#a98b4f77}
.bar-slot.ultimate-slot{border-color:#c9a25488}
.bar-slot.locked{opacity:.6}
.bar-slot-head{grid-area:head;display:flex;align-items:center;gap:5px;min-width:0;font-size:.6875rem;letter-spacing:.05em;text-transform:uppercase;color:#c3b18b;line-height:1.2}
.bar-slot-head span{min-width:0}
.bar-skill{grid-area:skill;display:flex;align-items:center;gap:8px;min-height:44px;padding:2px;border:0;background:none;color:#f0e6cf;text-align:left;cursor:pointer;min-width:0}
.bar-skill strong,.bar-option strong,.bar-chip strong{font-size:.875rem;font-weight:600;line-height:1.2;min-width:0;overflow-wrap:break-word}
.bar-skill svg,.bar-skill img,.bar-option svg,.bar-option img{width:40px;height:40px;flex:none;border-radius:6px}
.bar-chip svg,.bar-chip img{width:32px;height:32px;flex:none;border-radius:5px}
.bar-remove{grid-area:remove;min-height:30px;padding:2px 8px;border:1px solid #6b5a3a;border-radius:6px;background:#141b27;color:#cdbb95;font-size:.75rem;cursor:pointer}
.bar-remove:hover,.bar-skill:hover{filter:brightness(1.2)}
.bar-slot.empty .bar-add{grid-area:skill;position:static}
.bar-add>summary{list-style:none;display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;border:1px dashed #a98b4f99;border-radius:8px;color:#e2c27e;cursor:pointer;background:#10172280}
.bar-add>summary::-webkit-details-marker{display:none}
.bar-add>summary span{font-size:1.5rem;line-height:1}
.bar-add>summary em{font-style:normal;font-size:.8125rem;color:#cdbb95}
.bar-add[open]>summary{background:#1a2333;border-style:solid}
.bar-picker{position:absolute;z-index:30;left:0;top:calc(100% + 4px);min-width:236px;max-height:min(320px,60vh);overflow-y:auto;display:grid;gap:4px;padding:8px;border:1px solid #a98b4f;border-radius:8px;background:#0f1622;box-shadow:0 10px 30px #000c}
.bar-slot:nth-child(n+3) .bar-picker{left:auto;right:0}
.bar-option,.bar-chip{display:flex;align-items:center;gap:8px;min-height:44px;padding:3px 8px 3px 4px;border:1px solid #6b5a3a88;border-radius:8px;background:#141b27;color:#f0e6cf;text-align:left;cursor:pointer}
.bar-option:hover,.bar-chip:hover{border-color:#e2c27e}
.bar-option small,.bar-chip small{display:block;font-size:.6875rem;color:#9aa5b4}
.bar-unused{margin-top:10px;padding-top:8px;border-top:1px solid #8b744030}
.bar-unused h3{margin:0 0 6px;font:.9375rem Georgia,serif;color:#e9d4a8}
.bar-unused>div{display:flex;flex-wrap:wrap;gap:6px}
.bar-chip{min-height:40px;padding:2px 8px 2px 3px;gap:6px}
.bar-chip strong{font-size:.8125rem}
.bar-chip{cursor:grab}
.bar-unused .bar-note{margin-top:6px}
.skill-bar-compact.dragging .bar-slot:not(.can-drop){opacity:.45}
.skill-bar-compact .bar-slot.can-drop{outline:2px dashed #e2c27e;outline-offset:1px}
.skill-bar-compact .bar-slot.drop-over{background:#1d2a3d;outline-style:solid}
/* ---- Skill pop-up (replaces the side panel) ---- */
dialog.skill-pop{position:fixed;inset:0;margin:auto;box-sizing:border-box;width:min(440px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:16px 18px 18px;border:1px solid #a98b4f;border-radius:12px;background:#0f1622;color:#e7dcc7;box-shadow:0 18px 60px #000d;overflow-y:auto}
dialog.skill-pop::backdrop{background:#000b}
.skill-pop-close{position:absolute;top:6px;right:8px;width:44px;height:44px;border:0;background:none;color:#cdbb95;font-size:1.75rem;cursor:pointer}
.skill-pop-title{display:flex;gap:12px;align-items:center;padding-right:40px;margin-bottom:8px}
.skill-pop-title svg,.skill-pop-title img{width:56px;height:56px;flex:none;border-radius:8px}
.skill-pop-title h2{margin:0;font:1.375rem Georgia,serif;color:#f0e0b8}
.skill-pop-title .eyebrow{margin:0 0 2px}
.skill-pop-title strong{display:block;color:#e8a269;font-size:.875rem}
.skill-pop-on{display:inline-block;margin-left:8px;color:#9ec9b0;font-size:.75rem}
.skill-pop .path-skill-summary,.skill-pop .path-trigger{margin:6px 0;line-height:1.5}
.skill-pop .path-trigger{color:#aeb7c4;font-size:.875rem}
.skill-pop .path-allocation{margin-top:10px}
.skill-pop .path-allocation-reason{margin:6px 0;color:#d9c9a2}
.skill-pop .path-learn{width:100%;min-height:44px}
.skill-pop-upgrade{display:flex;align-items:center;gap:10px;width:100%;margin-top:10px;min-height:44px;text-align:left}
.skill-pop-upgrade span{color:#9aa5b4;font-size:.75rem;text-transform:uppercase;letter-spacing:.06em}
.skill-pop-upgrade strong{flex:1;color:#f0e0b8}
@media(max-width:700px){
 .paths-page.skill-compact .paths-heading{padding:8px 12px}
 .bar-slots,.bar-slots.five{grid-template-columns:repeat(2,minmax(0,1fr))}
 .paths-page.skill-compact .paths-heading{min-height:0;flex-direction:row;align-items:center}
 .paths-page.skill-compact .paths-budgets{justify-content:flex-start;flex-direction:row}
 .bar-slot{grid-template-areas:"head head" "skill remove"}
 .bar-remove{min-height:44px;min-width:36px;padding:0;font-size:0}
 :root .skill-bar-compact .bar-slot .bar-remove{font-size-adjust:none}
 .bar-remove:before{content:"×";font-size:1.5rem;line-height:1}
 .bar-skill svg,.bar-skill img{width:30px;height:30px}
 .bar-slot{padding:6px 5px;gap:4px}
 .bar-skill{gap:5px;padding:0}
 .bar-skill strong{font-size:.8125rem}
 .bar-slot.empty .bar-add{grid-column:1 / -1}
 .bar-picker{left:0;right:auto;min-width:min(236px,calc(100vw - 48px))}
 .bar-slot:nth-child(2n) .bar-picker{left:auto;right:0}
}
.skill-pop .path-rank-preview,.skill-pop details{margin-top:10px;font-size:.875rem}
.skill-pop .path-rank-preview h3{margin:8px 0 2px;font-size:.8125rem;color:#e8a269}
.skill-pop .path-rank-preview p{margin:2px 0;line-height:1.45}
.skill-pop .path-stats,.skill-pop .path-stat-grid{max-width:100%}
.skill-pop dl,.skill-pop table{max-width:100%;font-size:.8125rem}
/* Shorter skill detail (IRP_SKILL_DETAIL_VERSION): one facts line under the summary, and normal / critical as two labelled values. Off: neither element is drawn. */
.skill-pop .skill-pop-facts{margin:.25rem 0 .6rem;color:#c9c3b4;font-size:.9rem;line-height:1.4}
.shell .skill-estimate-split{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:.35rem 0}
.shell .skill-estimate-split>div{display:flex;flex-direction:column;justify-content:space-between;gap:2px;padding:6px 10px;border:1px solid #b69a6040;border-radius:6px;background:#0c1723}
.shell .skill-estimate-split dt{color:#c9c3b4;font-size:.78rem}
.shell .skill-estimate-split dd{margin:0;color:#e2d3a6;font:600 1.4rem/1.15 Georgia,'Times New Roman',serif}
/* Clarity pass (19 Oct): a locked slot's note sits under its name, so the name no longer squeezes into a narrow column ("ULTIM / ATE / SLOT"). */
.bar-slot.locked .bar-note{grid-area:skill}
/* Tier IV-V and Pinnacle: the opening level sits on the label line, clear of the skill icon and its level tag below. */
.class-tree[data-compact] .class-tree-tier45 small,.class-tree[data-compact] .class-tree-tier6 small{display:inline;margin-left:8px}
.skill-pop-tags{display:block;margin-top:2px;color:#c9b88f;font-size:.75rem;letter-spacing:.02em}
/* Live QA, 25 Oct: the Attributes → Hero link ran under the header frame's right corner. Keep the row clear of the frame. */
.paths-page.skill-compact .paths-heading .paths-budgets{margin-right:30px}
/* Full review (2 Nov): on a computer the Remove button shared the top line with the slot's name, so "Defense or utility slot" broke over four short lines
   beside it. The name now has the whole top line and Remove sits beside the skill as the × the phone already shows (its name stays for screen readers).
   font-size-adjust:none, named strongly enough to beat the painted look's rule: its font-size-adjust (public/painted-look.css) kept the word "Remove" drawn at full size beside the × even
   at font-size 0, so on a phone the button was 70 px wide and skill names broke mid-word ("Fireb olt", "Phoe nix Mantl e"). */
@media(min-width:701px){
 .bar-slot{grid-template-areas:"head head" "skill remove"}
 .bar-remove{align-self:center;min-height:36px;min-width:36px;padding:0;font-size:0}
 :root .skill-bar-compact .bar-slot .bar-remove{font-size-adjust:none}
 .bar-remove:before{content:"×";font-size:1.375rem;line-height:1}
}
/* Skill tree words a player can read on a phone (QA, 3 Nov). The tree is scaled to fit a phone (about 0.79 at 390), which took SUPPORTS, MASTERY, the
   level and rank tags, the diamond numerals and the key above the tree down to 8.6-9.5px on screen. They are drawn larger before the scaling, so they
   land at 10px or more; a computer is unchanged. */
@media(max-width:760px){
 main.paths-page .tree-legend{font-size:.6875rem}
 main.paths-page .class-tree .sbd-sockets em{font-size:.8125rem;top:-19px}
 main.paths-page .class-tree :is(.class-tree-level,.class-tree-rank){font-size:.8125rem}
 main.paths-page .class-tree .class-tree-upgrade>span{font-size:.875rem}
}
/* ---- Flat skill tree screen (Pat, 4 to 5 Nov: put off with the full-screen menus, started 5 Nov). With the menu full screen, the Skill tree page is one
   flat screen: the ability bar and the tree no longer sit in boxes inside the page, and the tree's toolbar loses its grey band, so the slots, the branch
   tabs and the tree lie straight on the painted page like the Leaderboards rows. The slots, chips and skills keep their own frames: they are things to
   press. A thin gold rule parts the ability bar from the tree. Only in a menu on the compact screen (html.cx-window), so nothing else changes. ---- */
html.cx-on.cx-window .paths-page.skill-compact>.skill-bar-compact{margin:0 0 14px;padding:4px 0 14px;border:0;border-bottom:1px solid #c7a46744;border-radius:0;background:none;box-shadow:none}
html.cx-on.cx-window .paths-page.skill-compact .class-tree.sbd{border:0;border-radius:0;background:none;box-shadow:none}
html.cx-on.cx-window .paths-page.skill-compact .class-tree.sbd>.tree-toolbar{padding:0 0 10px;border:0;background:none;box-shadow:none}
html.cx-on.cx-window .paths-page.skill-compact .class-tree.sbd>.tree-legend{padding:6px 0;border-color:#c7a46733;background:none}
html.cx-on.cx-window .paths-page.skill-compact .class-tree.sbd>.class-tree-viewport{background:none;border:0;box-shadow:none}
/* On a narrower computer screen (761 to 1100 px) the five slots are about 160 px wide: a smaller picture leaves room for whole words, so a skill's name
   breaks between words (Shoulder the / Blow), never inside one (Should / er). */
@media(min-width:761px) and (max-width:1100px){html.cx-on.cx-window .paths-page.skill-compact .bar-skill{gap:5px}html.cx-on.cx-window .paths-page.skill-compact .bar-skill :is(svg,img){width:30px;height:30px}html.cx-on.cx-window .paths-page.skill-compact .bar-skill strong{font-size:.8125rem;overflow-wrap:normal}}

/* /login-news.css */
/* What's new card at login (public/login-news.js, switch IRP_LOGIN_NEWS_VERSION). UI kit v1 parts: a .uk-head banner with icon, title,
   one line of help and three numbers, then up to three highlights on .uk-icon-tile art. It floats in the same corner as the level-up
   prompt (public/journey.css .next-prompt-host) and never covers the whole screen. */
:root .shell .login-news{position:fixed;right:20px;bottom:24px;z-index:1985;box-sizing:border-box;width:min(440px,calc(100vw - 32px));max-height:calc(100vh - 96px);max-height:calc(100dvh - 96px);overflow:auto;overscroll-behavior:contain;
 border:1px solid var(--uk-gold-dim,#8f7645);border-radius:var(--uk-radius-card,6px);background:linear-gradient(150deg,#1c2b40,#101a2b);box-shadow:var(--uk-rule),0 14px 34px #000b;color:var(--uk-ivory,#eadbb9)}
:root .shell .login-news[hidden]{display:none}
:root .shell .login-news .ln-head.uk-head{grid-template-columns:auto minmax(0,1fr);min-height:0;margin:0;padding:16px 56px 14px 18px;--uk-frame-w:12px;border-radius:var(--uk-radius-card,6px) var(--uk-radius-card,6px) 0 0}
:root .shell .login-news .ln-head.uk-head .uk-head-icon{width:60px;height:60px}
/* Show the painted scene (the banner's right half) through a lighter shade than a page header uses. */
:root .shell .login-news .ln-head.uk-head>.uk-head-art{object-position:68% 50%}
:root .shell .login-news .ln-head.uk-head::before{background:linear-gradient(90deg,#0c1723f0,#0c1723cc 50%,#0c172370)}
:root .shell .login-news .ln-head.uk-head .uk-head-icon img{width:60px;height:60px;object-fit:contain;filter:drop-shadow(0 2px 4px #000c)}
:root .shell .login-news .ln-eyebrow{margin:0 0 2px;font:700 .68rem/1.3 var(--uk-sans,system-ui);letter-spacing:.1em;text-transform:uppercase;color:var(--uk-gold,#d6b575);text-shadow:0 1px 3px #000}
:root .shell .login-news .ln-head.uk-head h2{margin:0;font:600 clamp(1.3rem,4.6vw,1.6rem)/1.15 var(--uk-serif,Georgia,serif);color:#fff3d6;text-shadow:0 1px 4px #000}
:root .shell .login-news .ln-head.uk-head .uk-head-help{margin-top:4px;font-size:.9rem;line-height:1.38}
:root .shell .login-news .ln-head.uk-head>.uk-head-icon{display:grid;grid-column:1;grid-row:1}
:root .shell .login-news .ln-head.uk-head>.uk-head-text{grid-column:2;grid-row:1}
:root .shell .login-news .ln-head.uk-head:not(:has(.uk-head-icon))>.uk-head-text{grid-column:1/-1}
:root .shell .login-news .ln-head.uk-head>.uk-stats{grid-column:1/-1;grid-row:2;align-self:auto;margin:0;padding:8px 0 0;border:0;border-top:1px solid #b69a6055;border-radius:0;background:none;grid-auto-columns:minmax(0,1fr)}
:root .shell .login-news .ln-head .ln-stats .uk-stat{flex-direction:column-reverse;align-items:center;gap:1px;padding:0 4px}
:root .shell .login-news .ln-head .ln-stats .uk-stat>.uk-art{display:none}
:root .shell .login-news .ln-head .ln-stats .uk-stat dd{font-size:1.2rem;white-space:nowrap}
:root .shell .login-news .ln-head .ln-stats .uk-stat dt{font-size:.62rem;letter-spacing:.06em}
:root .shell .login-news .ln-close{position:absolute;top:10px;right:10px;z-index:3;width:36px;height:36px;min-width:36px;min-height:36px;padding:0;font-size:1.3rem;line-height:1}
:root .shell .login-news .ln-lines{display:grid;gap:10px;margin:0;padding:14px 16px 4px;list-style:none}
:root .shell .login-news .ln-lines li{display:grid;grid-template-columns:40px minmax(0,1fr);gap:12px;align-items:start}
:root .shell .login-news .ln-lines li:not(:has(.uk-icon-tile)){grid-template-columns:minmax(0,1fr)}
:root .shell .login-news .ln-lines .uk-icon-tile{width:40px;height:40px}
:root .shell .login-news .ln-lines p{display:grid;gap:2px;margin:0;min-width:0}
:root .shell .login-news .ln-lines strong{font:600 .95rem/1.3 var(--uk-serif,Georgia,serif);color:var(--uk-gold-text,#ffe1aa)}
:root .shell .login-news .ln-lines span{font-size:.86rem;line-height:1.4;color:var(--uk-ivory-dim,#c9c3b4)}
:root .shell .login-news .ln-foot{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:8px 12px;padding:12px 16px 16px}
:root .shell .login-news .ln-buttons{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;margin-left:auto}
:root .shell .login-news .ln-buttons button{min-height:var(--uk-tap,44px)}
:root .shell .login-news .ln-lines .uk-icon-tile>.uk-art{width:100%;height:100%}
/* Page dots: one per page, the current one lit. Each dot is a 24px target inside a 44px-tall row. */
:root .shell .login-news .ln-dots{display:flex;align-items:center;gap:2px;min-height:var(--uk-tap,44px)}
:root .shell .login-news .ln-dots button{display:grid;place-items:center;width:24px;height:24px;padding:0;border:0;background:none;cursor:pointer}
:root .shell .login-news .ln-dots button::before{content:"";width:9px;height:9px;border:1px solid var(--uk-gold-dim,#8f7645);border-radius:50%;background:var(--uk-navy-0,#0c1723)}
:root .shell .login-news .ln-dots button[aria-current="true"]::before{border-color:var(--uk-gold-hi,#f0ce83);background:var(--uk-gold,#d6b575);box-shadow:0 0 6px #f0ce8366}
:root .shell .login-news .ln-dots button:focus-visible{outline:2px solid var(--uk-focus,#f4cd86);outline-offset:1px;border-radius:50%}
:root .shell .login-news .ln-dots span{margin-left:6px;font:600 .72rem/1 var(--uk-sans,system-ui);letter-spacing:.06em;color:var(--uk-ivory-dim,#c9c3b4)}
/* It slides in once, when it first shows this sign-in (public/login-news.js adds ln-enter), never again when the page redraws. */
@media (prefers-reduced-motion:no-preference){:root .shell .login-news.ln-enter:not([hidden]){animation:login-news-in .28s ease-out}}
/* The toast a sign-in starts with (Pat, 26 Oct: less intrusive): one row, the patch picture on an icon tile, its name, See what's new and ×. */
:root .shell .login-news.ln-toast{display:flex;align-items:center;gap:12px;width:min(470px,calc(100vw - 32px));padding:10px 10px 10px 12px;overflow:hidden}
:root .shell .login-news.ln-toast[hidden]{display:none}
:root .shell .login-news.ln-toast .ln-toast-art{flex:none;width:44px;height:44px;overflow:hidden}
:root .shell .login-news.ln-toast .ln-toast-art img{width:100%;height:100%;object-fit:cover;object-position:68% 50%}
:root .shell .login-news.ln-toast .ln-toast-text{display:grid;gap:1px;flex:1 1 auto;min-width:0;margin:0}
:root .shell .login-news.ln-toast .ln-toast-text strong{display:-webkit-box;overflow:hidden;-webkit-line-clamp:2;-webkit-box-orient:vertical;font:600 1rem/1.25 var(--uk-serif,Georgia,serif);color:#fff3d6}
:root .shell .login-news.ln-toast .ln-eyebrow{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;text-shadow:none}
:root .shell .login-news.ln-toast .ln-toast-open{flex:none;min-height:var(--uk-tap,44px);padding-inline:14px;white-space:nowrap}
:root .shell .login-news.ln-toast .ln-close{position:static;flex:none}
@keyframes login-news-in{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
/* Phones and narrow tablets: the same place as the level-up prompt, above the bottom menu, full width with a 16px gutter. */
@media (max-width:760px){
 :root .shell .login-news{left:16px;right:16px;width:auto;bottom:calc(var(--mobile-nav-height,84px) + 12px);max-height:calc(100dvh - var(--mobile-nav-height,84px) - 96px)}
 :root .shell .login-news .ln-head.uk-head{padding:12px 50px 10px 14px}
 :root .shell .login-news .ln-head.uk-head .uk-head-icon,:root .shell .login-news .ln-head.uk-head .uk-head-icon img{width:44px;height:44px}
 /* The three highlights say what the summary says, so a phone keeps the card short and drops it. */
 :root .shell .login-news .ln-head.uk-head .uk-head-help{display:none}
 :root .shell .login-news .ln-lines{gap:8px;padding:12px 14px 2px}
 :root .shell .login-news .ln-lines span{font-size:.84rem}
 :root .shell .login-news .ln-foot{padding:10px 14px 14px}
 :root .shell .login-news .ln-buttons{width:100%}
 :root .shell .login-news .ln-buttons button{flex:0 1 auto;padding-inline:12px}
 :root .shell .login-news .ln-buttons .uk-btn-primary{flex:1 1 auto}
 :root .shell .login-news .ln-dots{min-height:28px;margin:0 auto}
 :root .shell .login-news.ln-toast{width:auto;gap:10px;padding:8px}
 :root .shell .login-news.ln-toast .ln-toast-art{width:40px;height:40px}
 :root .shell .login-news.ln-toast .ln-toast-open{padding-inline:12px}
 :root .shell .login-news.ln-toast .ln-eyebrow{letter-spacing:.04em}
}
@media (max-width:420px){:root .shell .login-news.ln-toast .ln-toast-art{display:none}}
/* The patch notes window's What's new button (public/release-history.js) sits beside Close, on the right. */
:root .release-dialog>header [data-login-news-open]{flex:none;margin-left:auto;white-space:nowrap}
@media (max-width:540px){:root .release-dialog>header:has([data-login-news-open]){gap:8px;padding-inline:16px}:root .release-dialog>header:has([data-login-news-open]) button{flex:none;padding-inline:12px}}

/* /guild-menu.css */
/* Guild page: three cards on top, a scrolling tab bar, one panel below. Markup: public/guild-ui.js. Notes: docs/GUILD_MENU.md.
   Same midnight-and-gold frame as .paper-slot-set (character-build.css) and .hunt-tile (challenge-quests.css).
   Loaded before ui-kit.css. The kit owns buttons and tab looks; this file owns layout, the card frame and the roster.
   Phones: no fixed widths, 44px touch targets, no hover-only information, the roster becomes stacked member cards. */

.gm-page{container-type:inline-size;--gm-frame:#776343;--gm-inner:#74603e55;--gm-gold:#e0c483;--gm-ink:#c9d1da;--gm-dim:#9fabb9}
.gm-page :is(.gm-card,.gm-panel,.gm-level,.gm-dir-card,.gm-app,.gm-upgrade){box-sizing:border-box;min-width:0;border:1px solid var(--gm-frame);border-radius:6px;background:linear-gradient(160deg,#182234,#0c1420);box-shadow:inset 0 0 0 2px #0c1420,inset 0 0 0 3px var(--gm-inner)}
.gm-page .eyebrow{margin:0;color:var(--gm-gold);font-size:.72rem;letter-spacing:.13em}
.gm-page :is(.gm-note,.gm-line,.gm-empty){margin:0;color:var(--gm-dim);font-size:.85rem;line-height:1.45}
.gm-page .gm-empty{padding:18px 8px;text-align:center}

/* Guild level strip */
.gm-page .guild-progression.gm-level{margin:14px 0 0;padding:12px 18px;gap:18px;border-bottom:1px solid var(--gm-frame)}
.gm-page .gm-level .guild-level-crest{width:64px;height:72px;flex:0 0 64px}
.gm-page .gm-level .guild-level-crest>strong{font-size:1.375rem}
.gm-page .gm-level .text-link{min-height:44px;background:none;border:0;color:var(--gm-gold);cursor:pointer;font:600 .8125rem system-ui;white-space:nowrap}

/* Top row: Vault, Buffs, Message of the day */
.gm-top{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.5fr) minmax(0,1fr);gap:12px;margin:14px 0}
.gm-card{display:flex;flex-direction:column;gap:10px;padding:14px 16px}
.gm-card>header{display:flex;align-items:center;gap:10px}
.gm-card>header .fantasy-icon{width:34px;height:34px;flex:0 0 34px}
.gm-card>button,.gm-card>details{margin-top:auto}
.gm-card>button{width:100%}
.gm-gold{display:flex;align-items:baseline;flex-wrap:wrap;gap:8px;margin:0;color:#ffe1aa}
.gm-gold .uk-icon{align-self:center;color:var(--gm-gold)}
.gm-gold b{font:700 clamp(1.5rem,4cqw,2rem) Georgia,serif;line-height:1.1;overflow-wrap:anywhere}
.gm-gold small{color:var(--gm-dim);font-size:.85rem}
.gm-line b{color:#ffe1aa}
.gm-chips{display:grid;grid-template-columns:repeat(auto-fill,minmax(92px,1fr));gap:6px;margin:0;padding:0;list-style:none}
.gm-chip{display:grid;grid-template-columns:18px minmax(0,1fr);grid-template-areas:"i l" "i v";column-gap:7px;align-items:center;min-width:0;padding:6px 8px;border:1px solid #5c4d33;border-radius:6px;background:#0c1522;font-size:.78rem;line-height:1.25;color:#e6ddc6}
.gm-chip .uk-icon{grid-area:i;width:18px;height:18px;flex-basis:18px;color:var(--gm-gold)}
.gm-chip span{grid-area:l;color:var(--gm-dim);overflow-wrap:anywhere}
.gm-chip b{grid-area:v;font-size:.95rem;color:#ffe1aa}
.gm-chip.is-zero{opacity:.62}
.gm-chip.is-zero b{color:var(--gm-ink);font-weight:600}
.gm-motd-text{margin:0;padding:10px 12px;border-left:3px solid #b8955a;background:#0c1522;color:#f1e6d0;font-size:.95rem;line-height:1.5;overflow-wrap:anywhere;white-space:pre-wrap}
.gm-motd-text.is-default{color:var(--gm-dim);font-style:italic}
.gm-edit>summary{display:flex;align-items:center;justify-content:center;list-style:none;cursor:pointer;width:100%;box-sizing:border-box}
.gm-edit>summary::-webkit-details-marker{display:none}
.gm-edit form{display:grid;gap:8px;margin-top:10px}
.gm-edit textarea{width:100%;min-height:76px;box-sizing:border-box;resize:vertical;background:#10151a;border:1px solid #5a513d;border-radius:4px;color:#f1e6d0;padding:10px;font:inherit}
.gm-edit label{margin:0}

/* Tab bar: one scrolling row */
.shell.shell .section-tabs.gm-tabs{display:flex;flex-wrap:nowrap;gap:6px;margin:0;padding:8px 0 10px;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;-webkit-overflow-scrolling:touch}
.shell.shell .section-tabs.gm-tabs>button{flex:0 0 auto;min-width:0;min-height:44px;padding:9px 16px;white-space:nowrap;word-break:normal;overflow-wrap:normal}
.gm-count{display:inline-block;min-width:1.4em;margin-left:4px;padding:1px 6px;border-radius:999px;background:#0c1420;border:1px solid #b8955a;color:#ffe1aa;font-size:.75rem;line-height:1.4;text-align:center}
.gm-count.is-zero{border-color:#5b5040;color:var(--gm-dim)}
.gm-tabs .selected .gm-count{background:#3a2f22}

/* Panels */
.gm-panel{padding:14px 16px;margin:0}
.gm-panel-head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:4px 12px;margin-bottom:12px}
.gm-panel-head small{color:var(--gm-dim);font-size:.85rem}
.gm-panel-head small b{color:#ffe1aa}
.gm-manage-panel h2{margin:0 0 6px;font-size:1.1rem}
.gm-body>.guild-hunt-section{margin:0}
.gm-toolbar{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 12px}
.gm-page .gm-search{position:relative;display:block;flex:1 1 220px;min-width:0;margin:0}
.gm-search .uk-icon{position:absolute;left:12px;top:50%;transform:translateY(-50%);color:var(--gm-dim)}
.gm-page .gm-search input{width:100%;box-sizing:border-box;min-height:44px;padding:10px 12px 10px 40px;border-radius:6px}
.gm-page .gm-sort-select{display:none;flex:1 1 140px;margin:0}
.gm-page .gm-sort-select select{width:100%;min-height:44px;box-sizing:border-box}

/* Members: capacity header */
.gm-capacity{display:grid;grid-template-columns:auto minmax(80px,1fr) auto;align-items:center;gap:8px 18px;margin-bottom:12px;padding-bottom:12px;border-bottom:1px solid #b6985d33}
.gm-capacity-count strong{display:block;font:700 1.6rem Georgia,serif;color:#ffe1aa;line-height:1.15}
.gm-capacity-count small{display:block;color:var(--gm-dim);font-size:.85rem}
.gm-capacity progress{width:100%;height:10px;accent-color:#b39051}
.gm-capacity-action{display:grid;gap:4px;justify-items:end;max-width:260px}
.gm-capacity-action small{color:var(--gm-dim);font-size:.78rem;text-align:right;line-height:1.35}
.gm-capacity-action button{min-height:44px}

/* Members: table */
.gm-table-wrap{max-width:100%}
.gm-roster{width:100%;border-collapse:separate;border-spacing:0 4px;text-align:left}
.gm-roster thead th{padding:0 10px;font-size:.72rem;letter-spacing:.1em;text-transform:uppercase;color:var(--gm-gold);font-weight:600;white-space:nowrap}
.gm-sort{min-height:44px;padding:0 4px;border:0;background:none;color:inherit;font:inherit;letter-spacing:inherit;text-transform:inherit;cursor:pointer}
.gm-sort:hover,.gm-sort:focus-visible{color:#fff0c8}
.gm-roster tbody tr{background:linear-gradient(90deg,#16233a,#0f1929)}
.gm-roster td{padding:8px 10px;border-block:1px solid #3c3626;color:var(--gm-ink);font-size:.9rem;vertical-align:middle}
.gm-roster td:first-child{border-left:1px solid #3c3626;border-radius:6px 0 0 6px}
.gm-roster td:last-child{border-right:1px solid #3c3626;border-radius:0 6px 6px 0}
.gm-who{display:flex;align-items:center;gap:10px;min-width:0}
.gm-name{min-width:0;overflow-wrap:anywhere;color:#f4e7c6}
.gm-name em{margin-left:4px;color:var(--gm-dim);font-size:.75rem;font-style:normal}
.gm-avatar{position:relative;flex:0 0 40px;width:40px;height:40px;display:grid;place-items:center;border:1px solid #b8985b;border-radius:50%;background:radial-gradient(circle at 50% 28%,#2c4262,#111b2b 80%);color:#f0d9a0;font:700 1rem Georgia,serif}
.gm-avatar.has-face>img{width:100%;height:100%;border-radius:50%;object-fit:cover;object-position:50% 20%}.gm-name .chat-role-icon{width:16px;height:16px;margin-right:6px;vertical-align:-3px}
.gm-dot{position:absolute;right:-2px;bottom:-2px;width:12px;height:12px;border:2px solid #0c1420;border-radius:50%;background:#6b7383}
.gm-dot.is-online{background:#5fd08a}
.gm-role{display:inline-block;padding:3px 9px;border:1px solid #5d6b80;border-radius:4px;background:#26303f;color:#c5cedb;font:700 .68rem/1.4 system-ui;letter-spacing:.09em;text-transform:uppercase;white-space:nowrap}
.gm-role-leader{border-color:#e6c98f;background:linear-gradient(180deg,#c9a468,#8f6f3c);color:#1b1509}
.gm-role-officer{border-color:#6fb0d8;background:linear-gradient(180deg,#2d5b7c,#1c3a52);color:#d8efff}
.gm-shield{position:relative;isolation:isolate;display:inline-grid;place-items:center;width:36px;height:40px;background:#c9a468;color:#fff1cc;font:700 .85rem system-ui;clip-path:polygon(50% 0,100% 12%,100% 62%,50% 100%,0 62%,0 12%)}
.gm-shield::before{content:"";position:absolute;inset:2px;z-index:-1;background:linear-gradient(180deg,#34486a,#131d31);clip-path:polygon(50% 0,100% 12%,100% 62%,50% 100%,0 62%,0 12%)}
.gm-c-level,.gm-c-role{text-align:left}
.gm-c-status,.gm-c-joined{color:var(--gm-dim);white-space:nowrap}
.gm-c-act{width:1%;white-space:nowrap;text-align:right}
.gm-manage{position:relative;display:inline-block;text-align:left}
.gm-manage>summary{display:inline-flex;align-items:center;justify-content:center;list-style:none;cursor:pointer;min-width:96px;box-sizing:border-box}
.gm-manage>summary::-webkit-details-marker{display:none}
.gm-manage-menu{position:absolute;right:0;top:calc(100% + 4px);z-index:6;display:grid;gap:6px;min-width:220px;padding:8px;border:1px solid var(--gm-frame);border-radius:6px;background:#0f1929;box-shadow:0 8px 20px #000a}
.gm-manage-menu button{width:100%;min-height:44px}

/* Applications */
.gm-app-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr));gap:10px}
.gm-app{display:grid;grid-template-columns:40px minmax(0,1fr);gap:8px 12px;align-items:center;padding:12px}
.gm-app-who{min-width:0}
.gm-app-who strong{display:block;color:#f4e7c6;overflow-wrap:anywhere}
.gm-app-who small{color:var(--gm-dim)}
.gm-app-actions{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:8px}
.gm-app-actions button{min-height:44px;width:100%}

/* Upgrades */
.gm-upgrades{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,230px),1fr));gap:10px}
.gm-upgrade{display:grid;grid-template-columns:44px minmax(0,1fr);gap:8px 12px;align-items:start;padding:12px}
.gm-upgrade-icon{display:grid;place-items:center;width:44px;height:44px;border:1px solid #b8985b;border-radius:8px;background:radial-gradient(circle at 50% 28%,#24364e,#111b2b 78%);color:var(--gm-gold)}
.gm-upgrade-body{min-width:0;display:grid;gap:4px}
.gm-upgrade h3{margin:0;font-size:1rem}
.gm-upgrade strong{font-size:.85rem;color:#ffe1aa;font-weight:600}
.gm-upgrade progress{width:100%;height:8px;accent-color:#b39051}
.gm-upgrade small{color:var(--gm-dim);font-size:.8rem}
.gm-upgrade>button{grid-column:1/-1;min-height:44px;width:100%;white-space:normal}

/* Activity */
.gm-log{display:grid;gap:4px;margin:0;padding:0;list-style:none}
.gm-log li{display:grid;grid-template-columns:minmax(0,9.5rem) minmax(0,1fr);gap:4px 12px;padding:9px 12px;border-left:3px solid #b8955a;background:#0c1522;font-size:.9rem}
.gm-log time{color:var(--gm-dim);font-size:.82rem}
.gm-log span{color:var(--gm-ink);overflow-wrap:anywhere}

/* Directory cards (Browse guilds and the join screen) */
.gm-dir{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr));gap:10px}
.gm-dir-card{display:grid;grid-template-columns:60px minmax(0,1fr);gap:8px 12px;align-items:start;padding:12px}
.gm-dir-card.is-own{border-color:#e0bd73}
.gm-dir-card .guild-level-crest{width:56px;height:62px;flex:0 0 56px;grid-row:1}
.gm-dir-card .guild-level-crest>strong{font-size:1rem}
.gm-dir-body{min-width:0}
.gm-dir-body h3{margin:0 0 4px;font-size:1.05rem;overflow-wrap:anywhere}
.gm-dir-body p{margin:0 0 8px;color:var(--gm-ink);font-size:.88rem;overflow-wrap:anywhere}
.gm-facts{display:flex;flex-wrap:wrap;gap:6px;margin:0;padding:0;list-style:none}
.gm-facts li{padding:3px 8px;border:1px solid #5c4d33;border-radius:999px;background:#0c1522;color:var(--gm-dim);font-size:.78rem}
.gm-facts li b{color:#f4e7c6;font-weight:600}
.gm-facts .is-open{color:#a9e6bf;border-color:#3f6b52}
.gm-facts .is-closed{color:#e5b0a0;border-color:#7a4a40}
.gm-facts .is-own{color:#ffe1aa;border-color:#e0bd73}
.gm-dir-card>button,.gm-dir-card>p{grid-column:1/-1;margin:0}
.gm-dir-card>button{min-height:44px;width:100%}

/* Footer */
.gm-page .guild-footer{margin:18px 0 0}

/* Narrow container: the roster collapses to stacked member cards, the top row stacks */
@container (max-width:760px){
 .gm-top{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
 .gm-buffs{grid-column:1/-1;order:3}
}
@container (max-width:680px){
 .gm-top{grid-template-columns:minmax(0,1fr)}
 .gm-buffs{order:0}
 .gm-capacity{grid-template-columns:minmax(0,1fr) auto}
 .gm-capacity progress{grid-column:1/-1;grid-row:2}
 .gm-capacity-action{grid-column:1/-1;justify-items:stretch;max-width:none}
 .gm-capacity-action small{text-align:left}
 .gm-capacity-action button{width:100%}
 .gm-page .gm-sort-select{display:block}
 .gm-roster,.gm-roster tbody{display:block;width:100%}
 .gm-roster thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 .gm-roster tbody tr{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"who lvl" "role status" "joined joined" "act act";gap:6px 10px;align-items:center;margin:0 0 8px;padding:12px;border:1px solid #3c3626;border-radius:6px}
 .gm-roster td{display:block;min-width:0;padding:0;border:0;border-radius:0}
 .gm-roster td:first-child,.gm-roster td:last-child{border:0;border-radius:0}
 .gm-c-who{grid-area:who}
 .gm-c-level{grid-area:lvl;justify-self:end}
 .gm-c-role{grid-area:role;justify-self:start}
 .gm-c-status{grid-area:status;justify-self:end;text-align:right;white-space:normal}
 .gm-c-joined{grid-area:joined;white-space:normal;font-size:.82rem}
 .gm-c-joined::before{content:"Joined "}
 .gm-c-act{grid-area:act;width:auto;text-align:left}
 .gm-c-act:empty{display:none}
 .gm-manage{display:block}
 .gm-manage>summary{width:100%}
 .gm-manage-menu{position:static;margin-top:6px;min-width:0;box-shadow:none}
 .gm-roster td.gm-empty{grid-column:1/-1}
 .gm-log li{grid-template-columns:minmax(0,1fr)}
}

/* Phones */
@media(max-width:700px){
 .gm-page.exp-page{padding-inline:12px}
 .gm-page .exp-heading .az-actions>:is(button,a){min-height:44px;display:inline-flex;align-items:center;justify-content:center}
 .gm-page .guild-progression.gm-level{gap:12px;padding:12px}
 .gm-page :is(.gm-card,.gm-panel){padding:12px}
 .gm-page :is(.gm-card>button,.gm-panel button,.gm-edit summary,.gm-manage summary){min-height:44px}
 .gm-app-actions{grid-template-columns:1fr 1fr}
}
@media(max-width:380px){
 .gm-chips{grid-template-columns:repeat(2,minmax(0,1fr))}
 .gm-dir-card{grid-template-columns:52px minmax(0,1fr)}
}
.shell .gm-body>.guild-hunt-section{border-radius:6px;outline:1px solid var(--gm-frame);outline-offset:-1px}

/* Simpler screens (IRP_UI_PLAIN_VERSION): the Guild wallet card, a full-width row under the top cards, one line per guild measure */
.gm-wallet{grid-column:1/-1;order:4}
.gm-wallet-list{display:grid;gap:6px;margin:0;padding:0;list-style:none}
.gm-wallet-list li{min-width:0;color:var(--gm-dim);font-size:.85rem;line-height:1.45}
.gm-wallet-name{color:var(--gm-ink);font-weight:600}
.gm-wallet-list b{color:var(--gm-gold)}
.gm-wallet-list small{font-size:inherit}
/* Guild chest: the tab strip sits outside the chest page, so give it the page's own side padding to line up with the content below. */
.shell.shell div.guild-page.gm-page>.section-tabs.gm-tabs{padding:14px clamp(14px,2.5vw,36px) 10px}
@media(max-width:650px){.shell.shell div.guild-page.gm-page>.section-tabs.gm-tabs{padding:10px 12px}}
/* An empty directory spans the whole row instead of one card column. */
.gm-dir>.gm-empty{grid-column:1/-1}
/* Folded guild overview on every tab but Members (audit 20 Oct): one line of numbers, the full cards inside. */
.gm-overview-fold{margin:10px 0 12px;border:1px solid var(--uk-rule,#5d5440);border-radius:8px;background:rgba(10,18,26,.55)}.gm-overview-summary{display:flex;flex-wrap:wrap;align-items:center;gap:8px;min-height:44px;padding:6px 12px;cursor:pointer;list-style:none}.gm-overview-summary::-webkit-details-marker{display:none}.gm-overview-chip{display:inline-flex;align-items:center;gap:6px}.gm-overview-chip b{color:var(--uk-gold-text,#f1d39b)}.gm-overview-crest{width:18px;height:18px;object-fit:contain}.gm-overview-more{margin-left:auto;color:var(--uk-ivory-dim,#b9c3c3);font-size:.875rem}.gm-overview-more:after{content:' +';color:var(--uk-gold,#dcc082)}.gm-overview-fold[open] .gm-overview-more:after{content:' −'}.gm-overview-fold>.gm-top{margin:0;padding:0 12px 12px}
/* How guilds work: three small painted steps above the guild directory while you have no guild (prompt 35 art). Compact on a phone so the
   directory and Create a guild stay in view. */
.gm-steps{padding:12px 14px}
.gm-steps-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0;padding:0;list-style:none}
.gm-step{display:flex;flex-direction:column;align-items:center;text-align:center;gap:2px;min-width:0}
.gm-step img{width:100%;max-width:168px;height:auto;aspect-ratio:3/2;object-fit:contain;filter:drop-shadow(0 3px 4px #0008)}
.gm-step b{font-family:var(--font-display,Georgia,serif);color:#ffe1aa;font-weight:600;font-size:1rem;line-height:1.2;margin-top:2px}
.gm-step span{color:var(--gm-dim,#b9b2a2);font-size:.85rem;line-height:1.3}
@media (max-width:600px){.gm-steps{padding:10px}.gm-steps-list{gap:6px}.gm-step img{max-width:110px}.gm-step b{font-size:.85rem}.gm-step span{font-size:.75rem}}

/* Menu pass 21 Oct: the Leaderboards head (UI kit v1), one level row under it, and a tab strip that wraps into even rows with painted icons. */
.shell .gm-page>.gm-head{margin:0 0 10px}
.gm-head .uk-head-icon .guild-level-crest{width:58px;height:64px}
.gm-head .uk-head-icon .guild-level-crest>strong{font-size:1.25rem}
.gm-head .uk-title-row h1{margin:0}
/* The guild emblem by the name (IRP_GUILD_STORE_PLUS_VERSION). */
.gm-head .gm-emblem{width:36px;height:36px;flex:none;object-fit:contain;filter:drop-shadow(0 2px 3px #000b)}
.gm-level-row{display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px;margin:0 0 10px;padding:8px 12px;border:1px solid #b69a6044;border-radius:6px;background:#0c1723cc}
.gm-level-bar{display:flex;align-items:center;gap:10px;flex:1 1 320px;min-width:0;font-size:.85rem;color:var(--uk-ivory-dim,#c9c3b4)}
.gm-level-bar b{color:var(--uk-gold-text,#ffe1aa)}
.gm-level-bar progress{flex:1 1 auto;min-width:80px;height:12px;appearance:none;-webkit-appearance:none;border:1px solid var(--uk-gold-dim,#8f7645);border-radius:4px;background:#0c1723;overflow:hidden}
.gm-level-bar progress::-webkit-progress-bar{background:#0c1723}
.gm-level-bar progress::-webkit-progress-value{background:linear-gradient(180deg,#f0ce83,#8f7645)}
.gm-level-bar progress::-moz-progress-bar{background:linear-gradient(180deg,#f0ce83,#8f7645)}
.gm-level-xp{white-space:nowrap}
.gm-head-actions{display:flex;gap:6px;flex:0 0 auto}
.gm-head-actions .uk-btn{min-height:44px}
.shell.shell .gm-page .section-tabs.gm-tabs{display:grid;grid-template-columns:repeat(var(--gm-tab-cols,6),minmax(0,1fr));overflow:visible;flex-wrap:wrap;padding:4px 0 10px}
.shell.shell .gm-page .section-tabs.gm-tabs>button{min-width:0;padding:8px 8px;white-space:normal}
.gm-tabs[data-tab-count="7"],.gm-tabs[data-tab-count="8"]{--gm-tab-cols:4}
.gm-tabs[data-tab-count="9"],.gm-tabs[data-tab-count="10"]{--gm-tab-cols:5}
.gm-tabs[data-tab-count="11"],.gm-tabs[data-tab-count="12"]{--gm-tab-cols:6}
.gm-tabs[data-tab-count="5"]{--gm-tab-cols:5}.gm-tabs[data-tab-count="4"]{--gm-tab-cols:4}.gm-tabs[data-tab-count="3"]{--gm-tab-cols:3}
.gm-tabs .gm-tab-icon{margin:-4px 0}
.gm-tabs .gm-count{margin-left:2px}
.gm-overview-motd{flex:1 1 220px;min-width:0;color:var(--uk-ivory,#eadbb9);font-style:italic;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* Nine buff chips: three even rows, never one alone on the last row. */
.gm-page .gm-buffs .gm-chips{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:600px){
 .gm-tabs{--gm-tab-cols:4!important}
 .gm-tabs:is([data-tab-count="3"],[data-tab-count="5"],[data-tab-count="6"],[data-tab-count="9"]){--gm-tab-cols:3!important}
 .shell.shell .gm-page .section-tabs.gm-tabs>button{font-size:.75rem;padding:6px 2px}
 .gm-level-row{padding:8px 10px}
 .gm-level-bar{flex-basis:100%;flex-wrap:wrap;gap:4px 10px}
 .gm-level-bar progress{order:3;flex-basis:100%}
 .gm-level-xp{margin-left:auto}
 .gm-head-actions{flex:1 1 100%}.gm-head-actions .uk-btn{flex:1 1 0}
 .gm-overview-motd{flex-basis:100%;white-space:normal}
}
/* Menu audit 23 Oct: without a guild, Start your own guild sits above the directory: crest tile, title and note, then the name field and a gold button.
   On phones the form drops under the text at full width. */
.gm-page .gm-lobby-crest{width:56px;height:62px;object-fit:contain}
.gm-page .gm-create{display:flex;align-items:center;flex-wrap:wrap;gap:12px 16px;padding:14px 18px}
.gm-page .gm-create .uk-icon-tile{width:48px;height:48px;flex:none}.gm-page .gm-create .uk-icon-tile img{width:36px;height:40px;object-fit:contain}
.gm-page .gm-create-text{flex:1 1 200px;min-width:0}
.gm-page .gm-create h2{margin:0;font:1.125rem/1.25 var(--uk-serif,Georgia);color:var(--uk-gold-text,#f2d38a)}
.gm-page .gm-create .small-note{margin:3px 0 0}
.gm-page .gm-create-form{display:flex;gap:10px;flex:1 1 360px;min-width:0;margin:0}
.gm-page .gm-create-name{flex:1 1 auto;min-width:0;margin:0}.gm-page .gm-create-name input{width:100%;min-height:48px;box-sizing:border-box}
.gm-page .gm-create-form .uk-btn-primary{flex:none;min-height:48px;padding:0 24px;font-size:.9375rem}
@media(max-width:600px){.gm-page .gm-create{padding:12px}.gm-page .gm-create-form{flex-basis:100%;flex-direction:column}.gm-page .gm-create-form .uk-btn-primary{width:100%}}
/* A guest's line in place of the form (hook plan change 6, public/guild-ui.js guestJoins). */
.gm-page .gm-create-guest{display:flex;align-items:center;gap:12px;flex:1 1 360px;min-width:0;margin:0}.gm-page .gm-create-guest p{flex:1 1 auto;margin:0}.gm-page .gm-create-guest .uk-btn{flex:none;min-height:44px}
@media(max-width:600px){.gm-page .gm-create-guest{flex-basis:100%;flex-wrap:wrap}}
.gm-page .gm-lobby-refresh{margin-left:auto}

/* Menu audit 23 Oct: guild settings use two-chip toggles instead of dropdowns. */
.gm-page .gm-toggle,.gm-page .guild-permission-grid .gm-toggle{display:grid;gap:6px;min-width:0;margin:0;padding:0;border:0;background:none}
.gm-page .gm-toggle legend{padding:0;margin:0 0 6px;font-size:.875rem;color:var(--uk-gold-text,#f2d38a)}
.gm-page .gm-toggle-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.gm-page .gm-toggle-chip{position:relative;display:inline-flex;align-items:center;justify-content:center;min-width:0;min-height:44px;margin:0;padding:4px 10px;font-size:.8125rem;line-height:1.2;text-align:center;cursor:pointer}
.gm-page .gm-toggle-chip:hover{border-color:var(--uk-gold-hi,#e0bd73)}
.gm-page .gm-toggle-chip:has(input:checked){border-color:#e0bd73;background:linear-gradient(180deg,#c9a468,#8f6f3c);color:#1b1509}
.gm-page .gm-toggle-chip:has(input:focus-visible){outline:2px solid #f2d38a;outline-offset:2px}
.gm-page .gm-toggle-chip>input{position:absolute;inset:0;width:1px;height:1px;min-width:0;min-height:0;margin:0;padding:0;border:0;opacity:0;pointer-events:none}
.gm-page .guild-permission-grid{grid-template-columns:1fr;align-items:start}
.gm-page .guild-permission-grid fieldset:not(.gm-toggle){display:grid;gap:12px}
.gm-page .gm-toggle{align-content:start}
/* Menu audit 23 Oct: on phones the member sort is a row of chips (tap again to flip the order) instead of a dropdown. */
.gm-page .gm-sort-select.pick-grid{flex:1 1 100%}
.gm-page .gm-sort-select .pick-chip[aria-pressed="true"]{border-color:#e0bd73;background:linear-gradient(180deg,#c9a468,#8f6f3c);color:#1b1509}
@container (max-width:680px){.gm-page .gm-sort-select.pick-grid{display:grid}}
/* Simpler screens (IRP_UI_SIMPLER_VERSION; public/guild-ui.js draws .gm-tab-groups only while on): "For you" and "Your guild", each its own row of tabs. */
.shell.shell .gm-page .gm-tab-groups{display:grid;gap:2px;margin:4px 0 0}
.shell.shell .gm-page .gm-tab-group-label{margin:6px 0 0}
.shell.shell div.guild-page.gm-page>.gm-tab-groups{padding:8px clamp(14px,2.5vw,36px) 0}
@media(min-width:900px){.shell.shell .gm-page .gm-tab-group .section-tabs.gm-tabs{grid-template-columns:repeat(auto-fit,minmax(140px,1fr))}}
/* 0.75.0 UI QA: the painted gear sits high in its sprite cell, so the Manage tab icon read about 4px above the other tab icons. */
.gm-tabs .gm-tab-art.uk-art-settings{transform:translateY(4px)}
/* Artisans in the guild (IRP_ARTISAN_VERSION; public/guild-ui.js and public/artisan-guild-page.js, Pat 26 Oct: one guild page for everyone): the
   life-skill quests and supply run on Daily, crafter upgrades and the Storehouse rows. Flat parts with a
   divider line, never a box inside a box. Nothing here draws while Artisans are off: no element carries these classes. */
.gm-life{margin-top:6px;padding-top:14px;border-top:1px solid #c7ac7333}
.gm-life>.eyebrow,.gm-supply .eyebrow{margin:0 0 4px}
.gm-life .hunt-reward-art img{width:40px;height:40px;object-fit:contain}
.gm-life-note{margin:4px 0 0;color:var(--gm-dim,#b9ab8c);font-size:.8rem}
.gm-supply{margin-top:12px;padding-top:12px;border-top:1px solid #c7ac7333;display:grid;gap:8px}
.gm-supply>header{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.gm-supply>header strong{color:#ffe1aa;font-size:1.1rem}
.gm-supply>header small{color:var(--gm-dim,#b9ab8c);font-size:.8rem}
.gm-supply progress{width:100%;height:8px;accent-color:#b39051}
.gm-supply-rule,.gm-supply-on{margin:0;font-size:.85rem;color:var(--gm-dim,#b9ab8c)}
.gm-supply-on{color:#c3e6b3}
.gm-supply-lines{list-style:none;margin:0;padding:0;display:grid}
.gm-supply-lines li{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px 10px;padding:6px 0;border-bottom:1px solid #c7ac7320}
.gm-supply-lines b{color:#f4e7c6}
.gm-supply-lines button{min-height:44px}
.gm-supply-done{color:#c3e6b3;font-size:.85rem}
.gm-supply-acts{display:flex;flex-wrap:wrap;gap:8px}
.gm-supply-acts button{flex:1 1 160px;min-height:44px}
.guild-page form:is(.gm-supply-form,.gm-give,.gm-store-put){display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.guild-page form:is(.gm-supply-form,.gm-give,.gm-store-put) button{margin:0}
.guild-page form:is(.gm-supply-form,.gm-give,.gm-store-put) label{flex:1 1 90px;gap:4px;font-size:.8rem;color:var(--gm-dim,#b9ab8c)}
.guild-page form:is(.gm-supply-form,.gm-give,.gm-store-put) :is(input,select){width:100%;min-height:44px;box-sizing:border-box}
.guild-page form:is(.gm-supply-form,.gm-give,.gm-store-put) button{flex:0 0 auto;min-height:44px}
.gm-upgrade>form{grid-column:1/-1}
.gm-upgrade-art{overflow:hidden;padding:0}
.gm-upgrade-art img{width:100%;height:100%;object-fit:cover}
.gm-upgrade.is-flying{border-color:#9fca7f}
.gm-sub-head{margin-top:18px;padding-top:14px;border-top:1px solid #c7ac7333}
.gm-store-list{list-style:none;margin:0 0 6px;padding:0;display:grid}
.gm-store-row{display:grid;grid-template-columns:44px minmax(0,1fr) auto;align-items:center;gap:10px;padding:8px 0;border-bottom:1px solid #c7ac7320}
.gm-store-pic img{width:40px;height:40px;object-fit:contain}
.gm-store-who{min-width:0;display:grid}
.gm-store-who strong{color:#f4e7c6;overflow-wrap:anywhere}
.gm-store-who small{color:var(--gm-dim,#b9ab8c);font-size:.8rem}
.gm-store-acts button{min-height:44px}
.gm-store-put{margin-bottom:10px}
@media(max-width:520px){.gm-store-row{grid-template-columns:40px minmax(0,1fr)}.gm-store-acts{grid-column:1/-1}.gm-store-acts button{width:100%}}
.shell .guild-page .gm-life-grid{grid-template-columns:repeat(3,minmax(0,1fr));padding:10px 0 4px}
.gm-artisan-daily{padding:0 10px 4px}
.gm-daily-artisan>.gm-life:first-child{margin-top:0;padding-top:0;border-top:0}
.gm-supply-hand{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}
.gm-supply-acts button{flex:0 1 220px}
.guild-page form.gm-supply-form label{flex:0 1 220px}
@container (max-width:680px){.shell .guild-page .gm-life-grid{grid-template-columns:1fr}.gm-supply-hand{justify-content:stretch;width:100%}.gm-supply-hand button,.gm-supply-acts button{flex:1 1 100%}}

/* Gold donations on the Artisan Guild page (public/artisan-guild-page.js orders, Pat 29 Oct). */
.gm-donate{display:grid;gap:12px}.gm-donate progress{width:100%}.gm-donate-stats{margin:0}.gm-donate form.gm-donate-form{display:flex;flex-wrap:wrap;gap:10px;align-items:center;grid-template-columns:none}.gm-donate form.gm-donate-form label{flex:0 1 240px;min-width:0}.gm-donate .gm-donate-form input{width:100%}
/* The Guild Hall on the Upgrades tab (public/guild-shop-ui.js hallCard; Pat, 30 Oct): crafter-upgrade cards, the gift buttons in one row under the card. */
.gm-upgrade.gs-hall-card .gm-upgrade-art img{width:44px;height:44px;object-fit:cover;border-radius:7px}
.gm-upgrade.gs-hall-card>.gs-hall-gifts{grid-column:1/-1;display:grid;gap:6px}
.gm-upgrade.gs-hall-card .gs-gifts{display:flex;flex-wrap:wrap;gap:6px}
.gm-upgrade.gs-hall-card .gs-gifts>button,.gm-upgrade.gs-hall-card .gs-hall-gifts>button{flex:1 1 auto;min-height:44px}
.gm-upgrades-panel .gs-host{display:contents}

/* /ui-shell.css */
/* Phone shell notices on one strip (switch IRP_UI_SHELL_VERSION, default off; public/ui-shell.js). Page-local layout only: colours, borders, icons and shadows come from ui-kit.css (.uk-btn, .uk-btn-primary, .uk-badge, .uk-ico, .uk-art).
   Nothing here matches until the script has added .ush-strip, which it only does on a phone (540 px or less) with the switch on. */
.ush-strip{margin:.5rem clamp(.5rem,2vw,1.5rem) 0}
.ush-strip[hidden],.ush-sheet[hidden],.ush-pane[hidden]{display:none!important}
.ush-chips{display:flex;flex-wrap:wrap;gap:8px}
.ush-strip .ush-chip.uk-btn{position:relative;flex:0 1 auto;min-width:44px;padding:6px 8px;gap:4px;white-space:nowrap}
.ush-chip-label{overflow:hidden;text-overflow:ellipsis}
/* The count sits on the chip's top corner, so three chips fit one row at 320 px. */
.ush-chip .uk-badge{position:absolute;top:-8px;right:-6px;pointer-events:none}
.ush-sheet{margin-top:8px}
/* The notice keeps its own look; only its outer spacing is reset because the sheet now provides it. */
.ush-pane>*,.ush-pane :is(.squire-idle-reminder,.world-spawn-banner,.alpha-notice,.path-refund-notice,.recovery-help){margin:0}
.ush-pane>*+*{margin-top:8px}
.ush-pane-foot{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px}
.ush-foot-note{font-size:.8rem;color:var(--uk-ivory-dim)}

/* Version 2 (fun list item 1): the same strip on wider screens. The chip row sits under the top of the page instead of stacked banners; the world boss chip
   shows its countdown. An open notice drops down under the row, as on a phone. */
.ush-chip-time{font-variant-numeric:tabular-nums;color:var(--uk-gold);font-weight:600}
@media (min-width:541px){.ush-strip{margin:.5rem 0 0;padding-inline:18px}.ush-strip .ush-chip.uk-btn{padding:6px 12px;gap:6px}.ush-sheet{max-width:960px}}

/* /ready-now.css */
/* "Ready now" card on the Map (fun list item 2, public/ready-now.js). Layout only: the frame, rows, tiles and buttons are UI kit v1. */
.ready-now{margin:0 0 14px}
.ready-now .uk-heading{margin:0 0 10px}
.ready-now-list{grid-template-columns:repeat(auto-fill,minmax(300px,1fr))}
.ready-now .uk-row-main{gap:12px;min-height:56px;padding-block:6px}
.ready-now .uk-row-end .uk-btn{min-height:44px;white-space:nowrap}
@media (max-width:540px){.ready-now-list{grid-template-columns:1fr}}

/* /guild-shop.css */
/* Guild shop: the Store and Orders tabs of the guild page, the leader's edit screen and the Contribute sheet.
   Markup: public/guild-shop-ui.js and public/guild-orders-ui.js. Notes: docs/NEXT_GUILD_UI_2026-10-02.md. Design: docs/DESIGN_GUILD_ORDERS_2026-10-01.md.
   Dormant: none of these classes exist in the page unless the engine's guild view carries the orders block.
   Loaded after guild-menu.css and before ui-kit.css, which stays last.

   Shared kit only (UI audit tokens report, section 5): one midnight surface, ivory text, gold highlight; three frame levels
   (page header: the guild page's own header; panel: realm-frame-light; card: uk-card; the Contribute sheet is a modal, so it wears the
   modal frame); four buttons (primary red-button, secondary, quiet text-button, danger secondary danger; danger is not needed here).
   No colour below is new: every value is a kit token or a literal already in ui-kit.css or interface-art.css.
   Mobile first: one column, 44px targets, words are never broken, nothing depends on hover (there is no hover rule in this file).
   Wide layouts use container queries on .gm-page, the same technique guild-menu.css uses. */

.gs-host,.gs-sheet-backdrop{
 --gs-gold:var(--uk-gold,#d6b575);--gs-hot:var(--uk-gold-hi,#f0ce83);--gs-strong:var(--uk-ivory,#eadbb9);--gs-muted:var(--uk-ivory-dim,#c9c3b4);
 --gs-dim:var(--uk-gold-dim,#8f7645);--gs-line:#b69a6044;--gs-ring:#b8985b;--gs-tile:radial-gradient(circle at 50% 28%,#24364e,#111b2b 78%);
}
.gs-host *,.gs-sheet-backdrop *{box-sizing:border-box}
/* The host is its own size container, so the wide layouts below work on every guild page skin (the kit page has no .gm-page container). */
.gs-host{container-type:inline-size}
.gs-host :is(button,input):focus-visible,.gs-sheet-backdrop :is(button,input):focus-visible{outline:3px solid var(--uk-focus,#f4cd86);outline-offset:2px}
.gs-host :is(h2,h3,strong,small,p,span,button),.gs-sheet-backdrop :is(h3,strong,small,p,span,button){overflow-wrap:normal;word-break:normal;hyphens:none}
.gs-host :is(h2,h3),.gs-sheet-backdrop h3{margin:2px 0 0;color:var(--gs-strong);font-family:Georgia,"Times New Roman",serif;font-weight:600;line-height:1.2}

/* ---- Panel (level 2 frame comes from the realm-frame-light class in the markup) ---- */
.gs-panel{position:relative;min-width:0;margin:0;padding:18px;background:var(--uk-navy-1,#101a2a)}
.gs-panel-head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:4px 12px;margin:0 0 14px}
.gs-panel-head h2{font-size:1.3rem}
.gs-host .eyebrow,.gs-sheet-backdrop .eyebrow{margin:0;color:var(--gs-gold);font-size:.72rem;font-weight:600;letter-spacing:.13em;text-transform:uppercase}
.gs-lock{margin:0;color:var(--gs-hot);font-size:.9rem;font-weight:600}
.gs-note,.gs-fine,.gs-empty{margin:0;color:var(--gs-muted);font-size:.85rem;line-height:1.45}
.gs-fine{margin-top:6px;font-size:.82rem}
.gs-empty{padding:18px 4px;text-align:center}
.gs-warn{color:var(--gs-hot)}
.gs-host .gs-name{overflow-wrap:anywhere}
.gs-line{display:flex;justify-content:space-between;align-items:baseline;gap:8px;margin:0 0 6px;font-size:.9rem}
.gs-line b{color:var(--gs-hot);font-variant-numeric:tabular-nums}
.gs-host progress,.gs-sheet-backdrop progress{display:block;width:100%;height:12px;accent-color:var(--gs-gold)}
.gs-host progress.thin{height:8px}

/* ---- Buttons: the kit owns their look; this file only sets reach and wrapping ---- */
.gs-host :is(.secondary,.red-button,.text-button,.icon-button),.gs-sheet-backdrop :is(.secondary,.red-button,.text-button,.icon-button){min-height:44px;overflow-wrap:normal;word-break:normal}
.gs-host .text-button,.gs-sheet-backdrop .text-button{padding:0 8px}
.gs-host .icon-button,.gs-sheet-backdrop .icon-button{min-width:44px}
.gs-cta{width:100%;min-height:48px;margin-top:auto}
.gs-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:16px}
.gs-actions .red-button{flex:1 1 180px}
.gs-link{width:100%}

/* ---- Coin row ---- */
.gs-purse{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;margin:0 0 14px;padding-bottom:14px;border-bottom:1px solid var(--gs-line)}
.gs-purse>.secondary{width:100%}
.gs-bal{display:flex;align-items:center;gap:12px;min-width:0}
.gs-bal b{display:block;color:var(--gs-hot);font:700 1.7rem/1.1 Georgia,serif}
.gs-bal small{display:block;color:var(--gs-muted);font-size:.82rem}

/* ---- Icon family (design section 4B). Class names are the family names; a class holds its art path. ----
   To drop in finished art, point the class at /assets/guild-orders/<name>-v1.webp (guild-shop-ui.js lists every name, status and target path).
   Items: the workshop sprite is 4 columns by 3 rows of square cells. Tiles whose art is still to be painted carry data-status="new". */
.go-art,.go-mat{position:relative;display:block;flex:0 0 auto;border:1px solid var(--gs-ring);border-radius:var(--uk-radius-icon,8px);box-shadow:inset 0 0 0 2px var(--uk-navy-0,#0c1723),inset 0 0 0 3px #b8985b40,0 2px 5px #0005}
.go-art{--sx:0%;--sy:0%;width:64px;height:64px;background:url("/art/crafting/workshop-icons-v1.webp") var(--sx) var(--sy)/400% 300% no-repeat,var(--gs-tile)}
.go-art.md{width:56px;height:56px}
.go-art.sm{width:40px;height:40px}
.go-mat{width:48px;height:48px;background:var(--art,none) center/contain no-repeat,var(--gs-tile)}
.go-mat b,.go-art b{position:absolute;left:3px;bottom:2px;color:#fff1cc;font:700 .625rem/1 system-ui;text-shadow:0 1px 2px #0005}
.go-art.sm b{left:2px;bottom:1px;font-size:.5625rem}
.go-mat .gs-fish{position:absolute;inset:3px;width:calc(100% - 6px);height:calc(100% - 6px)}
.go-art[data-status="new"]{display:grid;place-items:center;color:var(--gs-gold);background:var(--gs-tile)}
.go-art[data-status="new"] .uk-icon{width:60%;height:60%;flex:none}
.go-art.sm[data-status="new"] .uk-icon{width:22px;height:22px}
.go-art-empty{background:var(--gs-tile)}
.go-item-bulwark{--sx:0%;--sy:0%}
.go-item-celerity{--sx:33.333%;--sy:0%}
.go-item-precision{--sx:66.667%;--sy:0%}
.go-item-renewal{--sx:100%;--sy:0%}
.go-item-emberedge{--sx:0%;--sy:50%}
.go-item-stormstring{--sx:33.333%;--sy:50%}
.go-item-force{--sx:66.667%;--sy:50%}
.go-item-sorcery{--sx:100%;--sy:50%}
.go-item-mending{--sx:0%;--sy:100%}
.go-item-bounty{background:url("/assets/guild-orders/go-item-bounty-v1.webp") center/100% 100% no-repeat,var(--gs-tile)}
.go-item-fortune{background:url("/assets/guild-orders/go-item-fortune-v1.webp") center/100% 100% no-repeat,var(--gs-tile)}
.go-item-insight{background:url("/assets/guild-orders/go-item-insight-v1.webp") center/100% 100% no-repeat,var(--gs-tile)}
.go-item-prosperity{background:url("/assets/guild-orders/go-item-prosperity-v1.webp") center/100% 100% no-repeat,var(--gs-tile)}
.go-item-protection{background:url("/assets/guild-orders/go-item-protection-v2.webp") center/100% 100% no-repeat,var(--gs-tile)}
.go-item-success{background:url("/assets/guild-orders/go-item-success-v2.webp") center/100% 100% no-repeat,var(--gs-tile)}
.go-mat-mining-1{--art:url("/assets/gathering-materials/mining-1-v1.webp")}
.go-mat-mining-2{--art:url("/assets/gathering-materials/mining-2-v1.webp")}
.go-mat-mining-3{--art:url("/assets/gathering-materials/mining-3-v1.webp")}
.go-mat-mining-4{--art:url("/assets/gathering-materials/mining-4-v1.webp")}
.go-mat-mining-5{--art:url("/assets/gathering-materials/mining-5-v1.webp")}
.go-mat-herbalism-1{--art:url("/assets/gathering-materials/herbalism-1-v1.webp")}
.go-mat-herbalism-2{--art:url("/assets/gathering-materials/herbalism-2-v1.webp")}
.go-mat-herbalism-3{--art:url("/assets/gathering-materials/herbalism-3-v1.webp")}
.go-mat-herbalism-4{--art:url("/assets/gathering-materials/herbalism-4-v1.webp")}
.go-mat-herbalism-5{--art:url("/assets/gathering-materials/herbalism-5-v1.webp")}
.go-mat-woodcutting-1{--art:url("/assets/gathering-materials/woodcutting-1-v1.webp")}
.go-mat-woodcutting-2{--art:url("/assets/gathering-materials/woodcutting-2-v1.webp")}
.go-mat-woodcutting-3{--art:url("/assets/gathering-materials/woodcutting-3-v1.webp")}
.go-mat-woodcutting-4{--art:url("/assets/gathering-materials/woodcutting-4-v1.webp")}
.go-mat-woodcutting-5{--art:url("/assets/gathering-materials/woodcutting-5-v1.webp")}
/* go-coin is painted (prompt 32, 20 Oct): go-coin-v1.webp on no ring. The fish are painted (prompt 27, 19 Oct). */
/* The painted fish paths, used once FISH_PAINTED in guild-shop-ui.js is true (until then the tiles carry data-status="new" and request nothing). */
.go-mat-fishing-1:not([data-status="new"]){--art:url("/assets/gathering-materials/fishing-1-v1.webp")}
.go-mat-fishing-2:not([data-status="new"]){--art:url("/assets/gathering-materials/fishing-2-v1.webp")}
.go-mat-fishing-3:not([data-status="new"]){--art:url("/assets/gathering-materials/fishing-3-v1.webp")}
.go-mat-fishing-4:not([data-status="new"]){--art:url("/assets/gathering-materials/fishing-4-v1.webp")}
.go-mat-fishing-5:not([data-status="new"]){--art:url("/assets/gathering-materials/fishing-5-v1.webp")}
.go-coin{display:inline-grid;place-items:center;flex:0 0 24px;width:24px;height:24px;border:1px solid var(--gs-ring);border-radius:50%;background:var(--gs-tile);color:var(--gs-gold)}
.go-coin .uk-icon{width:14px;height:14px;flex:0 0 14px}
.go-coin.lg{flex-basis:40px;width:40px;height:40px}
.go-coin.lg .uk-icon{width:24px;height:24px;flex-basis:24px}
.go-coin:not([data-status="new"]){border:0;background:url("/assets/guild-orders/go-coin-v1.webp") center/contain no-repeat;filter:drop-shadow(0 2px 2px #0009)}
.go-coin.lg:not([data-status="new"]){flex-basis:52px;width:52px;height:52px}
/* Until go-coin is painted, it wears the kit's painted guild coin (the same art as the price chips) instead of the line-icon stand-in. */
.go-coin[data-status="new"]{border:0;background:url('/art/ui/icons-rewards-v1.webp') 66.6667% 0%/400% 400% no-repeat;filter:drop-shadow(0 2px 2px #0009)}
.go-coin[data-status="new"] .uk-icon{display:none}
.go-coin.lg[data-status="new"]{flex-basis:52px;width:52px;height:52px}

/* ---- Orders: two big cards (level 3 frame comes from uk-card) ---- */
.gs-orders,.gs-slots{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;align-items:start}
.gs-order{display:flex;flex-direction:column;gap:14px;min-width:0;padding:14px;background:radial-gradient(circle at 12% 0%,#24364e,var(--uk-navy-1,#101a2a) 70%)}
.gs-order-head,.gs-slot-head{display:flex;align-items:center;gap:12px;min-width:0}
.gs-order-title{flex:1;min-width:0}
.gs-order-title h3{font-size:1.1rem}
.gs-stocks{margin:3px 0 0;color:var(--gs-muted);font-size:.85rem}
.gs-tier{align-self:flex-start;padding:1px 9px;border:1px solid var(--gs-dim);border-radius:var(--uk-radius,4px);color:var(--gs-hot);font:700 .75rem/1.6 system-ui;letter-spacing:.06em}
.gs-mats{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;margin:0;padding:12px 0;list-style:none;border-block:1px solid var(--gs-line)}
.gs-row{display:grid;grid-template-columns:48px minmax(0,1fr);gap:4px 10px;align-items:center;min-width:0}
.gs-row .go-mat{grid-row:1/3}
.gs-row .gs-each{grid-column:2}
.gs-info{min-width:0}
.gs-info strong{display:block;color:var(--gs-strong)}
.gs-info small{display:block;color:var(--gs-muted);font-size:.82rem}
.gs-each{display:inline-flex;align-items:center;gap:6px;color:var(--gs-hot);font-size:.85rem;font-weight:600;white-space:nowrap}

/* ---- Tomorrow row ---- */
.gs-next{display:grid;grid-template-columns:minmax(0,1fr);gap:12px 18px;margin-top:16px;padding-top:14px;border-top:1px solid var(--gs-line)}
.gs-next>.secondary{width:100%}
.gs-next-list{display:flex;flex-wrap:wrap;gap:10px 18px;margin:0;padding:0;list-style:none}
.gs-next-list li{display:flex;align-items:center;gap:10px;min-width:0;color:var(--gs-strong)}
.gs-next-list em{margin-left:4px;padding:0 6px;border:1px solid var(--gs-dim);border-radius:var(--uk-radius,4px);color:var(--gs-hot);font-size:.78rem;font-style:normal}

/* ---- Leader edit ---- */
.gs-cover{margin:10px 0 14px;color:var(--gs-muted);font-size:.9rem}
.gs-cover b{color:var(--gs-hot)}
.gs-slot{display:grid;gap:12px;min-width:0;padding:14px}
.gs-slot-head .secondary{margin-left:auto;flex:0 0 auto}
.gs-step{margin:0;color:var(--gs-gold);font-size:.85rem;font-weight:600}
.gs-opt{display:grid;gap:8px;margin-top:14px}
.gs-opt p{margin:0}
.gs-today-pick{grid-template-columns:1fr auto;align-items:center;margin:0 0 12px}
.gs-today-pick .red-button{min-width:220px}
@media (max-width:640px){.gs-today-pick{grid-template-columns:1fr}.gs-today-pick .red-button{min-width:0;width:100%}}
.gs-effects{display:grid;grid-template-columns:repeat(auto-fill,minmax(72px,1fr));gap:4px;margin:12px 0}
.gs-slot .gs-effects{margin:0}
/* Six flasks (with the XP and gold flasks, IRP_BOON_FLASKS_VERSION) sit 3 + 3 on a phone instead of 4 + 2. */
@media (max-width:520px){.gs-effects:has(> :nth-child(6):last-child){grid-template-columns:repeat(3,1fr)}}
.gs-eff{display:grid;justify-items:center;align-content:start;gap:6px;min-width:0;min-height:92px;padding:6px 2px;border:0;background:none;color:inherit;font:600 .6875rem/1.2 system-ui;text-align:center;cursor:pointer}
.gs-eff[aria-pressed="true"]{color:var(--gs-hot)}
.gs-eff[aria-pressed="true"] .go-art{border-color:var(--gs-hot);box-shadow:inset 0 0 0 2px var(--uk-navy-0,#0c1723),0 0 0 2px var(--gs-hot),0 2px 5px #0005}
.gs-eff-tag{font:500 .625rem/1.1 system-ui;color:var(--gs-hot);opacity:.85}

/* ---- Segmented choices: the kit tab look (aria-pressed marks the chosen one). Specificity matches the kit's tab rules so layout wins here. ---- */
.shell .gs-host .uk-tabs.gs-seg{display:grid;gap:6px;margin:0 0 12px;padding:0;border:0}
.shell .gs-host .gs-seg-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.shell .gs-host .gs-seg-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.shell .gs-host .gs-seg-5{grid-template-columns:repeat(5,minmax(0,1fr))}
.shell .gs-host .uk-tabs.gs-seg>button{display:grid;justify-items:center;align-content:center;gap:2px;flex:none;min-width:0;min-height:52px;padding:4px 2px;text-align:center;white-space:normal;overflow-wrap:normal;word-break:normal}
.shell .gs-host .uk-tabs.gs-seg-2>button{min-height:44px}
.gs-seg small{display:block;color:var(--gs-muted);font:400 .6875rem/1.1 system-ui}
.gs-seg>button[aria-pressed="true"] small{color:#fff1cc}
.gs-seg .uk-icon{width:16px;height:16px;flex:0 0 16px}

/* ---- Store: the selected item as a grid of kit cards, one per tier (docs/UI_KIT_V1_2026-10-03.md).
   The cards, chips, state words and the lock/coin icons are kit classes; only the layout below is page-local. ---- */
.gs-store{display:grid;gap:10px;margin-top:14px;min-width:0}
/* One card per row on phones; the kit's own 200px minimum applies from 600px (ui-kit.css loads after this file). */
.gs-trows{--uk-card-min:100%;margin:0;padding:0;list-style:none}
.gs-trow .uk-card-head{flex-direction:row;flex-wrap:wrap;align-items:center}
.gs-trow .uk-card-head .go-art{flex:0 0 auto}
.gs-trow .uk-card-title{flex:1 1 auto;white-space:nowrap}
.gs-trow .uk-state{margin-left:auto}
.gs-trow .uk-card-foot>:is(.secondary,.red-button){width:100%}
/* A note on a card never runs past the card: it wraps (only a word longer than the card is broken). */
.gs-host .uk-card-note{min-width:0;overflow-wrap:break-word}
.gs-trow.is-locked .gs-opens{color:var(--uk-locked-text,#9aa3b0)}
.gs-trow.is-locked .go-art{filter:grayscale(1) brightness(.65)}
/* The old row classes: the Contribute sheet still uses .gs-info and .gs-meta. Specificity 0,2,0 so the flex row beats ".gs-info small{display:block}" above. */
.gs-info .gs-meta{display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px;color:var(--gs-muted)}
.gs-info .gs-note{margin-top:2px}
.gs-confirm{display:grid;gap:8px;padding:2px 0 0}
.gs-confirm p{margin:0;color:var(--gs-strong)}
.gs-confirm .gs-actions{margin-top:0}

/* ---- Contribute sheet: a modal, so it wears the modal frame (interface-art.css gives .modal-backdrop>.ornate its painted border) ---- */
.gs-sheet-backdrop{place-items:center;padding:16px}
.gs-sheet{display:grid;gap:14px;width:min(560px,100%);max-height:calc(100dvh - 32px);overflow:auto;padding:24px 26px;background:linear-gradient(150deg,#1c2b40,#101a2b)}
.gs-sheet-head{display:flex;align-items:center;gap:12px}
.gs-sheet-head>div{flex:1;min-width:0}
.gs-sheet-head h3{font-size:1.2rem}
.gs-lines{display:grid;gap:12px;margin:0;padding:0;list-style:none}
.gs-lrow{display:grid;grid-template-columns:56px minmax(0,1fr) auto;grid-template-areas:"i t s" "m m m" "x x x";gap:10px 12px;align-items:center;padding:12px 14px}
.gs-lrow .go-mat{grid-area:i;width:56px;height:56px}
.gs-lrow .gs-info{grid-area:t;display:grid;gap:2px}
.gs-lrow .gs-info strong{font:600 1.02rem/1.25 Georgia,"Times New Roman",serif}
.gs-have{color:var(--gs-strong);font-size:.88rem}.gs-have b{color:var(--gs-hot);font-variant-numeric:tabular-nums}
.gs-lrow .gs-each{font-size:.8rem;font-weight:600}
.gs-ctl{grid-area:s;display:flex;align-items:center;justify-content:flex-end;gap:6px}
.gs-meters{grid-area:m;display:grid;grid-template-columns:1fr 1fr;gap:10px 16px}
.gs-meter .gs-line{margin-bottom:4px;font-size:.82rem;color:var(--gs-muted)}
.gs-state{grid-area:x;margin:0;padding:6px 10px;border-left:3px solid var(--gs-dim);border-radius:2px;background:var(--uk-navy-0,#0c1723);color:var(--gs-strong);font-size:.85rem;line-height:1.35}
.gs-state.is-done{border-left-color:var(--uk-done,#7fc58a);color:var(--uk-done,#7fc58a)}
.gs-state.is-warn{border-left-color:var(--gs-hot);color:var(--gs-hot)}
.gs-lrow.is-closed .go-mat{filter:saturate(.5) brightness(.8)}
.gs-sheet-help{margin:-4px 0 0;color:var(--gs-muted);font-size:.88rem;line-height:1.4}
.gs-sheet-stats{padding:10px 0;border-block:1px solid var(--gs-line)}
.gs-sumbox{display:grid;gap:4px;padding:12px 14px;border:1px solid var(--gs-line);border-radius:var(--uk-radius-card,6px);background:var(--uk-navy-0,#0c1723)}
.gs-extra{color:var(--gs-hot)}
.gs-sheet-foot{position:sticky;bottom:-24px;z-index:3;display:grid;gap:10px;margin:0 -26px -24px;padding:12px 26px 16px;border-top:1px solid var(--gs-line);background:linear-gradient(180deg,#1c2b40,#101a2b)}
.gs-sheet-foot .gs-actions{margin-top:0}
.gs-sheet [hidden]{display:none!important}
.gs-qty{width:72px;min-height:44px;padding:0 6px;border:1px solid var(--gs-dim);border-radius:var(--uk-radius,4px);background:var(--uk-navy-0,#0c1723);color:var(--gs-hot);font:700 1.125rem Georgia,serif;text-align:center}
.gs-quick{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.gs-sum{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0}
.gs-sum b{display:inline-flex;align-items:center;gap:8px;color:var(--gs-hot);font-size:1.1rem}
.gs-sheet .gs-info strong{display:block;color:var(--gs-strong)}
.gs-sheet .gs-info small{display:block;color:var(--gs-muted);font-size:.82rem}
.gs-sheet .gs-note,.gs-sheet .gs-fine{margin:0}

/* ---- Store page: a header with the purse, today's two orders as feature cards, then the full catalogue ---- */
.gs-hero{align-items:center;gap:14px 20px;margin-bottom:18px}
.gs-hero-title{flex:1 1 260px;min-width:0}
.gs-hero-title .gs-note{margin-top:6px}
.gs-hero .gs-purse{display:flex;flex-wrap:wrap;align-items:center;gap:12px 16px;margin:0;padding:10px 14px;border:1px solid var(--gs-line);border-radius:var(--uk-radius-card,6px);background:var(--uk-navy-0,#0c1723)}
.gs-hero .gs-purse>.secondary{width:auto}
.gs-sec{margin:0 0 12px}
.gs-sec h3{font-size:1.1rem}
.gs-sec p{margin:4px 0 0;color:var(--gs-muted);font-size:.85rem;line-height:1.45}
.gs-feature{margin:0 0 6px}
.gs-feature-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}
.gs-feature-card{display:flex;flex-direction:column;gap:12px;min-width:0;padding:16px;background:radial-gradient(circle at 12% 0%,#24364e,var(--uk-navy-1,#101a2a) 70%)}
.gs-feature-card.is-stocked{border-color:var(--gs-gold);box-shadow:0 0 0 1px #d6b57555,0 2px 5px #0005}
.gs-feature-head{display:flex;align-items:center;gap:14px;min-width:0}
.gs-feature-head .go-art{width:72px;height:72px}
.gs-feature-head h4{margin:2px 0 0;color:var(--gs-strong);font:600 1.15rem/1.2 Georgia,"Times New Roman",serif}
.gs-feature-meta{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;margin-top:6px}
.gs-feature-stock{margin:0;color:var(--gs-muted);font-size:.9rem}
.gs-feature-stock b{color:var(--gs-hot);font:700 1.35rem/1 Georgia,serif;margin-right:4px}
.gs-feature-stock.is-empty{color:var(--gs-gold);font-style:italic}
.gs-next-one .gs-fine{margin-top:6px}
.gs-feature-go{width:100%;margin-top:auto}
.gs-browse{margin-top:22px;padding-top:18px;border-top:1px solid var(--gs-line)}
.gs-store-panel .gs-effects{margin:4px 0 8px}
.gs-store-panel .gs-eff{padding:8px 4px;border:1px solid transparent;border-radius:var(--uk-radius-card,6px)}
.gs-store-panel .gs-eff[aria-pressed="true"]{border-color:var(--gs-line);background:var(--uk-navy-0,#0c1723)}
.gs-foot{display:grid;gap:2px;margin-top:18px;padding-top:12px;border-top:1px solid var(--gs-line)}
.gs-foot .gs-fine{margin:0}

/* ---- Wide layouts: follow the width of the page area, not the screen ---- */
@container (min-width:541px){
 .gs-panel{padding:22px 24px}
 .go-mat{width:56px;height:56px}
 .gs-row{grid-template-columns:56px minmax(0,1fr) auto}
 .gs-row .go-mat{grid-row:auto}
 .gs-row .gs-each{grid-column:auto}
 .gs-eff{font-size:.75rem}
 .gs-order-title h3{font-size:1.3rem}
}
@container (min-width:761px){
 .gs-orders,.gs-slots,.gs-feature-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .gs-purse{grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:16px}
 .gs-purse>.secondary{width:auto}
 .gs-next{grid-template-columns:auto minmax(0,1fr) auto;align-items:center}
 .gs-next>.secondary{width:auto}
}
@container (min-width:1100px){
 .gs-mats{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* ---- Phones: the sheet becomes a bottom sheet (it sits outside the guild page, so it follows the screen) ---- */
@media(max-width:540px){
 .gs-sheet-backdrop{place-items:end stretch;padding:0}
 .gs-sheet{width:auto;max-height:calc(100dvh - 8px);padding:20px 22px 22px;border-radius:var(--uk-radius-card,6px) var(--uk-radius-card,6px) 0 0}
 .gs-sheet{padding:18px 16px 20px}
 .gs-sheet-foot{bottom:-20px;margin:0 -16px -20px;padding:10px 16px 12px;gap:8px}
 .gs-sheet-foot .gs-sumbox{padding:8px 12px}
 .gs-sheet-foot .gs-actions{flex-wrap:nowrap}.gs-sheet-foot .gs-actions .red-button{flex:1 1 auto}
 .gs-lrow{grid-template-columns:48px minmax(0,1fr);grid-template-areas:"i t" "m m" "x x" "s s";padding:10px 12px}
 .gs-lrow .go-mat{width:48px;height:48px}
 .gs-meters{grid-template-columns:1fr;gap:8px}
 .gs-ctl{justify-content:space-between}.gs-ctl .gs-qty{flex:1 1 auto;width:auto;min-width:72px}
 .gs-actions .red-button{flex-basis:100%}
}

/* ---- Plain answers: the engine's refusal (kept on screen, the game's toast vanishes after a few seconds), and the last hand-in or purchase of the day ---- */
.gs-error,.gs-last{margin:0 0 14px;padding:10px 12px;border:1px solid var(--gs-dim);border-radius:var(--uk-radius,4px);font-size:.9rem;line-height:1.45}
.gs-error{border-color:var(--gs-hot);background:var(--uk-navy-0,#0c1723);color:var(--gs-strong)}
.gs-last{color:var(--gs-muted)}
.gs-last b{display:block;margin-bottom:2px;color:var(--gs-gold);font-size:.74rem;font-weight:600;letter-spacing:.1em;text-transform:uppercase}

/* ---- Crafting page card (engine switch level 2): replaces the workbench with one card and one button ---- */
.gs-craft-moved{display:grid;gap:10px;min-width:0;margin:14px 0;padding:18px}
.gs-craft-moved :is(h2,p,button){overflow-wrap:normal;word-break:normal;hyphens:none}
.gs-craft-moved h2{margin:2px 0 0;color:var(--uk-ivory,#eadbb9);font-family:Georgia,"Times New Roman",serif;font-size:1.3rem;font-weight:600;line-height:1.2}
.gs-craft-moved .eyebrow{margin:0;color:var(--uk-gold,#d6b575);font-size:.72rem;font-weight:600;letter-spacing:.13em;text-transform:uppercase}
.gs-craft-moved p{margin:0;color:var(--uk-ivory-dim,#c9c3b4);line-height:1.45}
.gs-craft-moved .gs-fine{font-size:.82rem}
.gs-craft-moved .red-button{min-height:48px}
.gs-craft-moved button:focus-visible{outline:3px solid var(--uk-focus,#f4cd86);outline-offset:2px}
@media(min-width:700px){
 .gs-craft-moved .gs-cta{width:auto;justify-self:start;min-width:220px}
}
/* Weekly contribution tally (IRP_GUILD_CONTRIBUTION_VERSION; drawn only when the engine sends orders.contribution). Wraps at 390px. */
.gs-weekly{display:grid;gap:6px;margin:0 0 14px;padding:0 0 14px;border-bottom:1px solid var(--gs-line);min-width:0}
.gs-weekly .gs-line{flex-wrap:wrap;gap:4px 12px}
.gs-weekly progress{width:100%}
/* War Banners and the Guild Hall (IRP_GUILD_COIN_SINKS_VERSION): the gift buttons under a banner or a room. 44px touch targets, wrap on phones. */
.gs-gifts{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
.gs-gifts>button,.gs-banners .gs-feature-card>button,.gs-hall .gs-feature-card>button{min-height:44px}
/* Guild Hall room paintings (ART28): a 16:10 header flush with the card's top edge; decorative, so the name and bonus stay text. */
.gs-hall .gs-room-art{display:block;width:calc(100% + 32px);max-width:none;height:auto;aspect-ratio:16/10;object-fit:cover;margin:-16px -16px 0;border-radius:inherit;border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom:1px solid var(--gs-gold);background:var(--uk-navy-1,#101a2a)}
/* Chat name colours and guild portraits (IRP_GUILD_COSMETICS_VERSION). The sample line sits on the darkest kit navy, close to the chat panel, so it looks as it will. */
.gs-colours .gs-feature-grid,.gs-portraits .gs-feature-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
@container (min-width:761px){.gs-colours .gs-feature-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.gs-portraits .gs-feature-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
.gs-colours,.gs-portraits{margin-top:20px}
.gs-looks{margin-top:22px;padding-top:18px;border-top:1px solid var(--gs-line)}
.gs-looks h3:focus{outline:none}.gs-looks h3:focus-visible{outline:2px solid var(--gs-ring);outline-offset:4px}
.gs-looks-prices{flex-wrap:wrap;gap:4px 16px;margin-top:8px}
.gs-looks-tease{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 16px;margin:0 0 14px;padding:10px 14px;border:1px solid var(--gs-line);border-radius:var(--uk-radius-card,6px);background:var(--uk-navy-0)}
.gs-looks-tease p{margin:0;flex:1 1 220px;min-width:0}
.gs-showing{display:flex;align-items:center;justify-content:center;gap:6px;min-height:44px;margin:10px 0 0;color:var(--gs-hot);font-weight:700}
.gs-need{margin:6px 0 0;text-align:center}
.gs-colours .gs-sec>button{min-height:44px;margin-top:6px}
.gs-colour-sample{margin:8px 0 0;padding:8px 10px;border-radius:8px;background:var(--uk-navy-0);border:1px solid var(--uk-navy-3);font:.875rem/1.4 system-ui,sans-serif;color:var(--uk-ivory-dim)}
.gs-colour-sample .chat-class-name{font-weight:700}
.gs-colour-colon{color:var(--uk-locked-text);margin-right:.25em}
.gs-colour-card .gs-gifts>button,.gs-portrait-card .gs-gifts>button{flex:1 1 auto}
.gs-guild-portrait{display:block;width:96px;height:96px;margin:0 auto 4px;border-radius:50%;border:2px solid var(--gs-gold);object-fit:cover;background:var(--uk-navy-1,#101a2a)}
.gs-guild-portrait.is-soon{border-style:dashed;opacity:.55}
.gs-more-portraits{margin-top:12px}.gs-more-portraits>summary{min-height:44px;display:flex;align-items:center;cursor:pointer;color:var(--gs-gold)}
/* Store shelf tabs (audit 20 Oct): one painted picture per shelf, the same height as the other Store tabs. */
.gs-shelf-icon{width:22px;height:22px;object-fit:contain;display:block}.gs-seg>button .go-art.sm{width:22px;height:22px}
.gs-seg .gs-shelf-kit{display:block;width:22px;height:22px}.gs-seg .gs-shelf-kit .uk-icon{width:22px;height:22px;flex:0 0 22px}
@media (max-width:420px){.gs-seg-3>button>span{font-size:.8125rem;line-height:1.15}}

/* ---- Leader edit screen (21 Oct 2026, owner standard: Leaderboards / UI kit v1) ----
   .uk-head with a painted banner and three numbers, two order tabs, three framed steps with item cards like the Blacksmith and the
   Trading Post, and a summary of what the open order makes, with Save. Phone: one column, the summary and Save after the steps. */
.gs-panel.gs-ed{display:grid;gap:12px;padding:0;background:transparent}
.gs-ed .gs-ed-head{grid-template-columns:auto minmax(0,1fr);min-height:0}
.gs-ed .gs-ed-head .uk-head-text h2{margin:0;color:var(--uk-gold-text,#ffe1aa);font-size:clamp(1.35rem,4.6vw,1.9rem);font-weight:500;line-height:1.15;text-shadow:0 1px 4px #000}
.gs-ed .gs-ed-head .eyebrow{margin:0 0 2px;text-shadow:0 1px 3px #000}
.gs-ed .gs-ed-strip{grid-column:1/-1;padding:8px 10px;border-radius:var(--uk-radius,4px);background:var(--uk-navy-0,#0c1723)}
.gs-ed .gs-ed-strip .uk-stats{padding:0;border:0}
.gs-ed .gs-ed-strip .uk-stat dd{white-space:nowrap}
.shell .gs-host .uk-tabs.gs-otabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0;padding:0;border:0}
.shell .gs-host .uk-tabs.gs-otabs>button,.shell .gs-host .uk-tabs.gs-otabs>.uk-tab{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:10px;min-width:0;min-height:60px;padding:8px 10px;text-align:left;white-space:normal}
.gs-otab>span{display:grid;gap:1px;min-width:0}
.gs-otab small{color:var(--gs-muted);font:600 .6875rem/1.2 system-ui;letter-spacing:.06em;text-transform:uppercase}
.gs-otab[aria-pressed="true"] small{color:#fff1cc}
.gs-otab b{font:600 .875rem/1.25 Georgia,"Times New Roman",serif;color:inherit}
.gs-otab .go-art.sm{width:40px;height:40px}
.gs-ed-body{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;align-items:start}
.gs-ed-pick{display:grid;gap:12px;min-width:0}
.gs-ed .uk-frame>.uk-heading{margin:0 0 12px;font-size:1.15rem;font-weight:500}
.gs-ed .gs-seg{margin-bottom:0}
.gs-ed .gs-ed-step .gs-note{margin-top:10px}
.shell .gs-host .gs-ed .uk-tabs.gs-seg-2>button{display:flex;justify-content:center;align-items:center;gap:8px;min-height:48px}
.gs-ed .gs-seg-2 .uk-ico{width:28px;height:28px;margin:-4px 0}
.gs-picks{display:grid;grid-template-columns:repeat(var(--gs-cols-sm,2),minmax(0,1fr));gap:8px;margin-top:12px}
.gs-ed .gs-pick{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:6px;min-height:0;padding:10px 4px 8px;border:1px solid #6f5d3c;border-radius:var(--uk-radius,4px);background:linear-gradient(150deg,#182438,#0f1928);box-shadow:inset 0 0 0 2px var(--uk-navy-0,#0c1723);color:var(--gs-strong)}
.gs-ed .gs-pick>span{display:grid;gap:2px;justify-items:center;text-align:center}
.gs-ed .gs-pick strong{font:600 .875rem/1.2 Georgia,"Times New Roman",serif}
.gs-ed .gs-pick small{color:var(--gs-muted);font:500 .7rem/1.2 system-ui}
.gs-ed .gs-pick[aria-pressed="true"]{border-color:#e0bd73;background:var(--uk-surface-lit);box-shadow:inset 0 -3px 0 #e6c889,inset 0 0 0 2px var(--uk-navy-0,#0c1723)}
.gs-ed .gs-pick[aria-pressed="true"] strong{color:var(--gs-hot)}
.gs-ed .gs-pick[aria-pressed="true"] .go-art{border-color:var(--gs-hot)}
.gs-ed-sum{display:grid;gap:12px;min-width:0}
.gs-sum-head{display:flex;align-items:center;gap:14px;min-width:0}
.gs-sum-head .go-art{width:72px;height:72px}
.gs-sum-head h3{font-size:1.25rem}
.gs-sum-head .eyebrow{margin:0}
.gs-sum-chips{display:flex;flex-wrap:wrap;gap:6px;margin:6px 0 0}
.gs-sum-chips .uk-chip{padding:2px 10px}
.gs-does{margin:0;padding:8px 10px;border-left:3px solid var(--gs-gold);background:var(--uk-navy-0,#0c1723);color:var(--gs-strong);font-size:.9rem;line-height:1.4}
.gs-sum-facts{margin:0}
.gs-sum-facts>div{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 0;border-top:1px solid var(--gs-line);border-bottom:1px solid var(--gs-line)}
.gs-sum-facts dt{display:flex;align-items:center;gap:8px;color:var(--gs-muted);font-size:.85rem}
.gs-sum-facts dd{margin:0;color:var(--gs-hot);font:600 1rem/1.2 Georgia,"Times New Roman",serif;text-align:right}
.gs-sum-label{margin:0;color:var(--gs-gold);font:600 .72rem/1.2 system-ui;letter-spacing:.08em;text-transform:uppercase}
.gs-sum-mats{display:grid;gap:8px;margin:0;padding:0;list-style:none}
.gs-sum-mats li{display:flex;align-items:center;gap:10px;min-width:0}
.gs-sum-mats .go-mat{width:44px;height:44px}
.gs-sum-mats span{display:grid;gap:1px;min-width:0}
.gs-sum-mats strong{color:var(--gs-strong);font-size:.9rem}
.gs-sum-mats small{color:var(--gs-muted);font-size:.78rem}
.gs-ed-save{display:grid;gap:8px;padding-top:12px;border-top:1px solid var(--gs-line)}
.gs-ed-save .gs-actions{margin-top:0}
.gs-why{margin:0;color:var(--gs-hot);font-size:.85rem}
.gs-ed-lock{margin:0;padding-top:12px;border-top:1px solid var(--gs-line)}
.gs-ed-lock .secondary{justify-self:start}
@container (min-width:600px){.gs-picks{grid-template-columns:repeat(var(--gs-cols,4),minmax(0,1fr))}}
@container (min-width:900px){
 .gs-ed-body{grid-template-columns:minmax(0,1.65fr) minmax(300px,1fr)}
 .gs-ed-sum{position:sticky;top:12px}
}
@media (max-width:420px){.gs-ed .gs-ed-head .uk-head-icon{display:none}.gs-ed .gs-ed-head{grid-template-columns:minmax(0,1fr)}.gs-ed .gs-ed-strip .uk-stat dt{font-size:.62rem}}
/* The kit's compact phone heads put a stat's number and word side by side; three of them do not fit here, so they stay stacked. */
:root.uk-compact-heads .shell .gs-ed .uk-head .uk-stat,.gs-ed .uk-head .uk-stat{flex-direction:column-reverse;align-items:center;gap:2px}

/* Gold donations (public/guild-orders-ui.js donateInner, Pat 29 Oct). */
.gs-donate{display:flex;flex-wrap:wrap;align-items:end;gap:10px}.gs-donate-field{display:grid;gap:4px;flex:0 1 220px}.gs-donate-field input{width:100%}

/* /guild-looks.css */
/* The Looks shelf as small tiles (public/guild-looks-ui.js; Pat, 30 Oct 2026, IRP_GUILD_STORE_PLUS_VERSION). Heroes (guild Store, Looks shelf) and
   Artisans (guild page, Store tab) share it. UI kit v1 colours: navy tiles with a thin gold rule, gold for what you have on. */
.gl-shelf{display:grid;gap:14px}
.gl-looks>.uk-stats{margin:0 0 14px}
.gl-looks .gl-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 14px}
.gl-looks .gl-head p{margin:0}
.gl-have{margin-left:auto;color:var(--uk-ivory-dim,#c9c3b4)}
.gl-have b{color:var(--uk-gold-text,#ffe1aa)}
.gl-sec{display:grid;gap:8px;min-width:0}
.gl-sec>h4{margin:0;font:600 .95rem/1.3 var(--uk-serif,Georgia,serif);color:var(--uk-gold-text,#ffe1aa)}
.gl-sec>h4 small{display:block;margin-top:2px;font:400 .78rem/1.35 system-ui;color:var(--uk-ivory-dim,#c9c3b4)}
.gl-grid{display:grid;gap:8px;grid-template-columns:repeat(auto-fill,minmax(118px,1fr))}
.gl-grid-portraits,.gl-grid-emblems{grid-template-columns:repeat(auto-fill,minmax(132px,1fr))}
.gl-shelf .gl-tile{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:64px;min-width:0;margin:0;padding:8px 6px;
 border:1px solid var(--uk-gold-dim,#8f7645);border-radius:var(--uk-radius-card,6px);background:linear-gradient(150deg,#1c2b40,#101a2b);
 box-shadow:inset 0 0 0 2px var(--uk-navy-0,#0c1723),inset 0 0 0 3px #b8955a3d;color:var(--uk-ivory,#eadbb9);font:600 .82rem/1.25 system-ui;text-align:center;cursor:pointer}
.gl-shelf .gl-tile:hover:not(:disabled){border-color:var(--uk-gold-hi,#f0ce83);background:linear-gradient(150deg,#26384f,#152234)}
.gl-shelf .gl-tile:focus-visible{outline:3px solid var(--uk-focus,#f4cd86);outline-offset:2px}
.gl-shelf .gl-tile.is-on{border-color:#e0bd73;background:linear-gradient(150deg,#3a3122,#1b1a1d);box-shadow:inset 0 -3px 0 #e6c889,inset 0 0 0 2px var(--uk-navy-0,#0c1723)}
.gl-shelf .gl-tile.is-asked{outline:2px solid var(--uk-gold-hi,#f0ce83);outline-offset:1px}
.gl-shelf .gl-tile:disabled{cursor:default;opacity:1}
/* A shown or unlocked look is a disabled button only because there is nothing to tap; keep it in full colour (painted-look.css greys disabled buttons). */
:root .gl-shelf .gl-tile:not(.is-soon):disabled,:root.uk-painted .gl-shelf .gl-tile:not(.is-soon):disabled{filter:none;cursor:default}
.gl-shelf .gl-tile.is-soon{opacity:.62;border-style:dashed}
.gl-colour-name{color:var(--gl,#fff);font:700 1rem/1.2 system-ui;text-shadow:0 0 6px color-mix(in srgb,var(--gl,#fff) 40%,transparent);overflow-wrap:anywhere}
.gl-tile-name{max-width:100%;overflow-wrap:anywhere}
.gl-price{color:var(--uk-gold-text,#ffe1aa);font:600 .76rem/1.2 system-ui}
.gl-price::before{content:"✦ ";color:var(--uk-gold,#d6b575)}
.gl-tag{display:inline-block;padding:1px 7px;border:1px solid #b69a6066;border-radius:10px;background:var(--uk-navy-0,#0c1723);color:var(--uk-ivory-dim,#c9c3b4);font:600 .7rem/1.3 system-ui}
.gl-tag.is-on{border-color:#e0bd73;color:var(--uk-gold-text,#ffe1aa)}
.gl-tag.is-soon{border-style:dashed}
.gl-tag.is-new{position:absolute;top:-7px;right:-4px;border-color:#7fd08a;background:#173322;color:#c9f5cf}
.gl-portrait img{width:64px;height:64px;border-radius:50%;border:2px solid var(--uk-gold-dim,#8f7645);object-fit:cover;background:var(--uk-navy-1,#101a2a)}
.gl-portrait.is-on img{border-color:var(--uk-gold-hi,#f0ce83)}
.gl-soon-art{display:block;width:64px;height:64px;border-radius:50%;border:2px dashed var(--uk-gold-dim,#8f7645);background:radial-gradient(circle at 50% 38%,#2a3a50 0 30%,#141f2e 31%)}
.gl-emblem img{width:48px;height:48px;object-fit:contain;filter:drop-shadow(0 2px 3px #000b)}
.gl-emblem .gl-soon-crest{width:44px;height:48px;filter:grayscale(1) brightness(.75)}
.gl-emblem progress{width:86%;height:6px}
.gl-ask{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;padding:10px 12px;border:1px solid var(--uk-gold,#d6b575);border-radius:var(--uk-radius-card,6px);background:#14202f}
.gl-ask p{flex:1 1 220px;margin:0;color:var(--uk-ivory,#eadbb9)}
.gl-ask-btns{display:flex;flex-wrap:wrap;gap:8px}
.gl-ask-btns>button{min-height:44px}
.gl-titles{display:flex;flex-wrap:wrap;gap:8px;margin:0;padding:0;list-style:none}
.gl-titles .uk-chip{gap:8px;padding:4px 10px;min-height:30px}
.gl-titles .uk-chip span{color:var(--uk-ivory-dim,#c9c3b4);font-weight:500}
.gl-titles .uk-chip.is-on{border-color:#e0bd73}
.gl-fine{margin:0;color:var(--uk-ivory-dim,#c9c3b4);font:400 .76rem/1.4 system-ui}
.gl-looks details.gs-more-portraits>summary{cursor:pointer;min-height:44px;display:flex;align-items:center;color:var(--gs-gold,#e2b866)}
.gl-looks details.gs-more-portraits .gl-sec>h4{display:none}
@media (max-width:520px){
 .gl-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
 .gl-grid-portraits,.gl-grid-emblems{grid-template-columns:repeat(2,minmax(0,1fr))}
 .gl-shelf .gl-tile{min-height:56px;padding:7px 4px}
 .gl-colour-name{font-size:.92rem}
 .gl-have{margin-left:0}
}

/* /guild-boss.css */
/* The guild boss tab (public/guild-boss-ui.js). Kit classes do the look; this only lays out the title row and the hero block. */
.uk-gboss-name{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.uk-gboss-name .uk-heading{flex:1 1 auto;min-width:0}
.uk-gboss-title .uk-rows-group{margin:0}
.uk-gboss-enter{display:grid;gap:6px}
.uk-gboss-enter .uk-card-note{margin:0}
.uk-gboss-strip{margin:4px 0}
.uk-gboss .uk-row-list{margin:0}
.uk-gboss-result{max-width:560px;margin:0 auto}
@media (max-width:600px){.uk-gboss-strip{grid-template-columns:repeat(3,minmax(0,1fr))}.uk-gboss-strip dd{font-size:1.15rem}}
/* In the fight the Tyrant is too big for a floating name: his name, bar, Fury and cast bar are in the Enemies panel under the battlefield. */
.guild-tyrant .unit-name{display:none}
/* One fixed arena: no route map and no XP or gold rates (the fight pays neither). */
.guild-boss-fight .minimap-open{display:none}
.guild-boss-fight .ex-xp,.guild-boss-fight .ex-gold{visibility:hidden}
/* Valdrakk's still (artwork item 118) over a low ember glow at the top of the tab, and the Guild boss icon (item 130) on its tab, in both Guild screens. */
.uk-gboss-art{display:flex;justify-content:center;margin:-4px 0 2px;background:radial-gradient(ellipse 60% 55% at 50% 92%,rgba(255,112,32,.24),transparent 72%)}
.uk-gboss-art img{display:block;height:220px;width:auto;max-width:100%;object-fit:contain;filter:drop-shadow(0 6px 10px #0009)}
@media (max-width:600px){.uk-gboss-art img{height:168px}}
.uk-art.uk-ico-guild-boss{background:url('/assets/guild-boss/icon.webp') center/contain no-repeat}
.gm-tab-icon{width:22px;height:22px;margin:-4px 6px -4px -2px;vertical-align:middle;filter:drop-shadow(0 1px 1px #000a)}
/* The fight's result card on a phone (in-game QA, 19 Oct): the arena is short, so the card is tighter and its buttons come before the notes, in view without scrolling. */
@media (max-width:600px){.boss-result:has(>.uk-gboss-result){padding:6px}.uk-gboss-result{gap:8px;margin-top:0}.uk-gboss-result .uk-heading{font-size:1.2rem}.uk-gboss-result .uk-actions{order:1}.uk-gboss-result .uk-card-note{order:2;margin:0;font-size:.8125rem}}

/* /ui-hunts.css */
/* Boss Hunts, Raids and Party on the UI kit: LAYOUT ONLY (grid, spacing, clamping). WRITTEN, NEVER RUN.
   Linked in index.html before ui-kit.css (which stays last); every rule starts with .uh-page (or .shell .uh-...), so it does nothing until the switch draws that markup. Markup: public/ui-hunts.js. Plan: docs/NEXT_UI_HUNTS_2026-10-03.md.
   Colours, frames and shadows come from public/ui-kit.css; the only colours here are the kit's own tokens (the dark bar under the title, the ring on the Hunt to do next).
   Phones: no fixed widths, nothing wider than the screen, 44 px targets (buttons and tabs get theirs from the kit), smallest text .72rem (11.5 px). */
.uh-page{display:grid;gap:14px;align-content:start;min-width:0}
.uh-page>*{min-width:0}
/* The kit scopes heading type and the focus ring to .uk-page; the game screen scopes them here instead (same two lines as the Quests screen). */
.uh-page :where(h1),.uh-page :where(h2),.uh-page :where(h3){margin:0;font-family:var(--uk-serif);font-weight:500;letter-spacing:.02em;color:var(--uk-gold-text);text-wrap:balance}
.uh-page :focus-visible{outline:3px solid var(--uk-focus);outline-offset:2px}
.uh-page [hidden]{display:none!important}

/* One header block: icon, title, one line of help, then ONE strip of three numbers on a dark bar so a number never sits over the art (kit request 26). The words are the labels, each cell holds one number. */
.uh-page .uk-head{grid-template-columns:auto minmax(0,1fr);min-height:0}
.uh-page .uk-head>.uk-stats{grid-column:1/-1;padding:10px 12px;border:0;border-radius:var(--uk-radius);background:var(--uk-navy-0)}
.uh-page .uk-stat dd{font-size:clamp(1.05rem,4.6vw,1.55rem)}
.uh-page .uk-stat dt{letter-spacing:.06em}
.uh-page .uk-title-row>h1{flex:0 1 auto;overflow-wrap:anywhere}
/* Phone first screen: the shell adds a topbar, notices and a bottom nav around the page, so the header is one title row and one row of three numbers (about 140 px): no icon, no help line, no stat icons, labels on one line. */
@media(max-width:480px){.uh-page .uk-head-icon,.uh-page .uk-head-help,.uh-page .uk-stat>.uk-art,.uh-page .uh-wide{display:none}.uh-page .uk-head{grid-template-columns:minmax(0,1fr);gap:6px}.uh-page .uk-head>.uk-stats{padding:6px 2px}.uh-page .uk-stat{padding:0 3px}.uh-page .uk-stat dd{font-size:1.05rem}.uh-page .uk-stat dt{letter-spacing:0;text-transform:none;font-size:.72rem}.uh-page .uk-title-row{flex-wrap:nowrap;align-items:flex-start}.uh-page .uk-title-row>h1{flex:1 1 auto;font-size:1.35rem}.uh-rule>.uk-card-note{font-size:.85rem}}

/* Three icon tabs, equal width at every size (the kit stacks icon over label under 480 px). */
.uh-page .uh-tabs{margin:0}
.shell .uh-tabs.uk-tabs>.uk-tab{flex:1 1 0;min-width:0}

/* Text that stands alone under the tabs. */
.uh-rule{display:grid;gap:6px}
.uh-rule>p,.uh-page .uh-reason{margin:0}
.uh-page .uh-reason{display:flex;align-items:center;gap:8px;line-height:1.35;color:var(--uk-gold-text)}
.uh-page .uh-reason .uk-art{width:22px;height:22px}
.uh-page .uh-empty{margin:0;padding:12px 4px}

/* "Needs you": a gold card with one primary button. It is a card of its own (not a state tag on a seat) so it cannot be mistaken for "Not ready". */
.uh-need{display:flex;flex-direction:column;gap:8px;min-width:0;padding:12px 0}
.uh-need>.uk-card-head,.uh-need>.uk-card-note,.uh-need>.uk-card-foot,.uh-need>.uh-notice-list{margin-inline:var(--uk-pad)}
.uh-need .uk-card-head{flex-direction:row;align-items:center;flex-wrap:wrap;gap:10px}
.uh-need .uk-card-head .uk-state{margin-left:auto}
.uh-need .uk-card-foot{display:block}
.uh-notice-list{display:grid;gap:8px;margin-block:0;padding:0;list-style:none}
.uh-notice-list>li{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 12px}
.uh-page .uk-card .uk-state{max-width:100%;white-space:normal;text-align:center}

/* Boss Hunts: a boss portrait beside the title on a phone (76 px, never hidden), a column on the right from 700 px. */
.uh-hunts{display:grid;gap:14px;min-width:0}
.uh-page .uh-hunt{grid-template-columns:92px minmax(0,1fr);gap:10px 12px;align-items:start}
.uh-page .uh-hunt>.uk-event-body{display:contents}
.uh-page .uh-hunt>.uk-event-body>*{grid-column:1/-1;min-width:0}
.uh-page .uh-hunt .uh-top{grid-column:2;grid-row:1;display:grid;gap:6px}
.uh-page .uh-hunt>.uh-boss{grid-column:1;grid-row:1}
.uh-boss{display:grid;place-items:center;width:92px;height:92px;min-width:0;overflow:hidden}
.uh-page .uh-boss svg,.uh-page .uh-boss img{display:block;width:100%;height:100%;border:0;background:none;object-fit:contain}
.uh-page .uh-hunt .uh-next,.uh-page .uh-hunt .uk-event-eyebrow{margin:0}
/* 320 px phones (game text QA, 7 Oct): long zone names such as SHATTERDUNE CARAVANSERAI broke mid-word beside the portrait. */
@media (max-width:420px){.uh-page .uh-hunt .uk-event-eyebrow{font-size:.71875rem;letter-spacing:.02em;overflow-wrap:break-word}}
.uh-page .uh-hunt.is-next{outline:2px solid var(--uk-gold-hi);outline-offset:3px}
.uh-page .uh-hunt .uk-chips{margin:0}
.uh-page .uh-hunt .uk-bullets{font-size:.95rem}
@media(min-width:700px){
 .uh-page .uh-hunt{grid-template-columns:minmax(0,1fr) minmax(180px,28%);align-items:center}
 .uh-page .uh-hunt>.uk-event-body{display:grid;gap:10px;grid-column:1;grid-row:1}
 .uh-page .uh-hunt>.uk-event-body>*{grid-column:auto}
 .uh-page .uh-hunt .uh-top{grid-column:auto;grid-row:auto}
 .uh-page .uh-hunt>.uh-boss{grid-column:2;grid-row:1;width:100%;height:100%;min-height:210px}
}

/* The raid is the biggest card on the page: a larger title and art column, and a banner of the raid's own picture on phones too. */
.uh-page .uh-raid{--uk-frame-w:22px}
.uh-page .uh-raid h2{font-size:clamp(1.7rem,6vw,2.3rem)}
.uh-page .uh-raid .uk-event-art{order:-1;display:block;min-height:0;height:120px}
.uh-page .uh-raid .uk-meter{margin-block:2px}
.uh-more>.uh-more-body,.uh-more-body{display:grid;gap:10px;padding:12px 4px 4px}
.uh-more-body>p,.uh-more-body>.uk-btn{margin:0}
.uh-more-body>.uk-btn{justify-self:start}
.uh-seals{display:grid;gap:10px;margin:0;padding-left:1.4rem}
.uh-seals>li{display:grid;gap:3px}
.uh-seals>li>span{color:var(--uk-ivory-dim);font-size:.9rem}
@media(min-width:700px){
 .uh-page .uh-raid{grid-template-columns:minmax(0,1fr) minmax(240px,40%)}
 .uh-page .uh-raid .uk-event-art{order:0;height:100%;min-height:300px}
}

/* Raid group and party headings. */
.uh-line{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 12px}
.uh-line .uk-heading{flex:1 1 auto;margin-bottom:0}
.uh-line>.uk-chips{flex:0 1 auto}
.uh-count{color:var(--uk-ivory-dim);font:600 .95rem var(--uk-serif)}
.uh-count.is-full{color:var(--uk-done)}

/* Roster: grouped by role, one 56 px row per seat (portrait, name with class and state, role icon, state mark). Three role columns from 900 px; one column on a phone. */
.uh-roles{display:grid;grid-template-columns:minmax(0,1fr);gap:14px}
@media(min-width:900px){.uh-roles{grid-template-columns:repeat(3,minmax(0,1fr));align-items:start}}
.uh-role{display:grid;gap:8px;min-width:0}
.uh-role>h3{margin:0}
.uh-seats{display:grid;gap:6px;margin:0;padding:0;list-style:none}
.uh-seat{display:grid;grid-template-columns:40px minmax(0,1fr) 22px 22px;align-items:center;gap:8px;box-sizing:border-box;min-height:56px;padding:8px 10px}
.uh-face{display:grid;place-items:center;flex:0 0 auto;width:40px;height:40px;overflow:hidden;border-radius:var(--uk-radius-icon)}
.uh-face .tavern-portrait{display:block;width:100%;height:100%;object-fit:cover}
.uh-face .uk-art{width:30px;height:30px}
.uh-seat .uh-seat-role,.uh-seat .uh-seat-mark{width:22px;height:22px}
.uh-seat-who{display:grid;min-width:0}
.uh-seat-name{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:600 .95rem/1.25 var(--uk-serif);color:var(--uk-ivory)}
.uh-seat-who small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:500 .72rem/1.3 var(--uk-sans);color:var(--uk-ivory-dim)}
.uk-card.is-locked .uh-seat-name{color:var(--uk-locked-text)}
.uk-card.is-locked .uh-seat-who small{color:var(--uk-locked-text)}
.uh-seat-open .uh-face{border:1px dashed var(--uk-locked)}
.uh-seat-open{border-style:dashed}
.uh-open-word{grid-column:3/5;justify-self:end;font:700 .72rem/1 var(--uk-sans);letter-spacing:.06em;text-transform:uppercase;color:var(--uk-locked-text)}
.uh-you{font:700 .72rem/1.3 var(--uk-sans);font-style:normal;letter-spacing:.06em;text-transform:uppercase;color:var(--uk-gold-text);margin-left:4px}

/* Party: four seat cards across at 1280, two on a phone; manage rows. */
.uh-party{--uk-card-min:150px}
@media(min-width:900px){.uh-party{--uk-card-min:210px}}
.uh-party .uh-face{width:44px;height:44px}
.uh-party .uk-card-title{overflow-wrap:anywhere}
.uh-party>.uk-card .uk-card-foot.uk-actions{display:flex}
.uh-manage-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 12px}
.uh-manage-row>.uk-actions{flex:0 1 auto}
.uh-page .uh-manage>summary>.uk-card-note,.uh-page .uh-records>summary>.uk-card-note{display:inline;margin-left:8px}
.uh-extra>.uk-heading{margin:0}
.uh-page .uk-bullets{font-size:.95rem}
@media(max-width:480px){.uh-seat .uh-lv{display:none}.uh-seat-name{white-space:normal;overflow-wrap:anywhere}.uh-seat-who small{white-space:normal;overflow-wrap:anywhere}}
.uh-page .text-link{display:inline-flex;align-items:center;min-height:44px;margin:0 18px 0 0}
.uh-page .raid-entry-reason{display:grid;gap:4px;justify-items:start}
/* The old Party / Combat records row sits above the header: tighter, still two 44 px buttons (the class uh-tabs-tight is set by public/ui-hunts.js only while this screen is the next element after it; no :has()). */
.shell .section-tabs.uh-tabs-tight{margin:0 0 6px;gap:6px}
.shell .section-tabs.uh-tabs-tight>.section-tab{padding-block:4px}

/* Your timers (simpler screens #9, IRP_UI_PLAIN_VERSION): one wrapping row of chips under the Raids & Dungeons header. Each chip is a 44px tap target. */
.uh-page .uh-timers{display:flex;flex-direction:column;gap:8px;padding:10px var(--uk-pad)}
.uh-page .uh-timers-title{margin:0;font:600 .8rem/1.3 var(--uk-sans);letter-spacing:.06em;text-transform:uppercase;color:var(--uk-gold-text)}
.uh-page .uh-timer-list{display:flex;flex-wrap:wrap;gap:6px;margin:0;padding:0;list-style:none}
.uh-page .uh-timer-list>li{display:flex;flex:1 1 8.5em;min-width:0;max-width:100%}
.uh-page .uk-btn.uh-timer{display:grid;grid-template-columns:22px minmax(0,1fr);grid-template-rows:auto auto;column-gap:7px;align-items:center;align-content:center;width:100%;min-width:0;min-height:44px;box-sizing:border-box;margin:0;padding:4px 8px;border:1px solid var(--uk-gold-dim);border-radius:8px;background:var(--uk-navy-0);color:var(--uk-ivory);font:600 .8rem/1.2 var(--uk-sans);text-align:left;cursor:pointer}
.uh-page .uk-btn.uh-timer .uk-art{grid-row:1/3;width:22px;height:22px}
.uh-page .uh-timer-name{min-width:0;font-weight:600;font-size:.72rem;color:var(--uk-ivory-dim)}
.uh-page .uh-timer-state{min-width:0;font-weight:700;color:var(--uk-gold-text)}
.uh-page .uk-btn.uh-timer.is-ready{border-color:var(--uk-done-dim)}.uh-page .uk-btn.uh-timer.is-ready .uh-timer-state{color:var(--uk-done)}
.uh-page .uk-btn.uh-timer.is-closed{border-color:var(--uk-locked)}.uh-page .uk-btn.uh-timer.is-closed .uh-timer-state{color:var(--uk-locked-text);font-weight:600}
.uh-page .uk-btn.uh-timer:focus-visible{outline:2px solid var(--uk-focus);outline-offset:2px}
/* ---- Raid tabs (IRP_RAID_TABS_VERSION, public/ui-hunts.js tabbed()): Raids, Dungeons and World Boss tabs, three raid steps, raid tiles, the raid queue on the page. Classes exist only with the switch on. Kept above the flexible raid rules and inside .uh-page: that part of this file keeps kit tokens only, and the whole file keeps the .uh- namespace and no hover rule (test/raid-flex-*). */
.uh-page.rd-page .rd-tabs>.uk-tab{flex-wrap:wrap;column-gap:8px}
.uh-page.rd-page .rd-tab-state{font:600 .75rem/1.2 var(--uk-sans);color:var(--uk-ivory-dim);white-space:nowrap}
.uh-page.rd-page .rd-tab-state.is-ready{color:var(--uk-done)}
.uh-page.rd-page .rd-tab-state.is-locked{color:var(--uk-gold-text)}
.uh-page.rd-page .rd-steps>.uk-seg-btn,.uh-page.rd-page .rd-way>.uk-seg-btn,.uh-page.rd-page .rd-size>.uk-seg-btn{min-height:52px;padding:6px 8px}
.uh-page.rd-page .rd-steps>.uk-seg-btn>small{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.uh-page.rd-page .rd-tiles{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.uh-page.rd-page .rd-tile{display:flex;flex-direction:column;width:100%;height:100%;min-height:var(--uk-tap);padding:0;overflow:hidden;border:1px solid var(--uk-gold-dim);border-radius:var(--uk-radius-card);background:var(--uk-navy-1);color:var(--uk-ivory);text-align:left;cursor:pointer;font:inherit}
.uh-page.rd-page .rd-tile-art{display:block;width:100%;height:92px;object-fit:cover;opacity:.92}
.uh-page.rd-page .rd-tile-text{display:flex;flex-direction:column;gap:2px;padding:8px 10px 10px}
.uh-page.rd-page .rd-tile-text>b{font:600 1rem/1.2 var(--uk-serif,Georgia,serif);color:var(--uk-gold-text)}
.uh-page.rd-page .rd-tile-text>small{display:flex;flex-wrap:wrap;justify-content:space-between;gap:2px 8px;font:500 .78rem/1.3 var(--uk-sans);color:var(--uk-ivory-dim)}
.uh-page.rd-page .rd-tile-state{display:inline-flex;align-items:center;gap:4px}
.uh-page.rd-page .rd-tile-state .uk-art{width:16px;height:16px}
.uh-page.rd-page .rd-tile.is-ready .rd-tile-state{color:var(--uk-done)}
.uh-page.rd-page .rd-tile.is-closed .rd-tile-art{filter:grayscale(.7) brightness(.6)}
.uh-page.rd-page .rd-tile[aria-pressed="true"]{border-color:var(--uk-gold-hi);outline:2px solid var(--uk-gold-hi);outline-offset:0}
.uh-page.rd-page .rd-tile:focus-visible{outline:3px solid var(--uk-focus);outline-offset:2px}
.uh-page.rd-page .rd-pick-note{margin:0}
.uh-page.rd-page .rd-next{justify-content:flex-end}
.uh-page.rd-page .rd-queues,.uh-page.rd-page .rd-qmembers{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.uh-page.rd-page .rd-q{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px 12px;padding:8px 10px;border:1px solid var(--uk-gold-dim);border-radius:var(--uk-radius);background:rgba(10,16,24,.55)}
.uh-page.rd-page .rd-q-text{display:flex;flex-direction:column;min-width:0}
.uh-page.rd-page .rd-q-text small,.uh-page.rd-page .rd-qm small{color:var(--uk-ivory-dim);font:500 .8rem/1.3 var(--uk-sans)}
.uh-page.rd-page .rd-qmembers{grid-template-columns:repeat(auto-fill,minmax(220px,1fr))}
.uh-page.rd-page .rd-qm{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;padding:6px 8px;border:1px solid rgba(143,118,69,.5);border-radius:var(--uk-radius)}
.uh-page.rd-page .rd-qm small{flex:1 1 auto}
.uh-page.rd-page .rd-invite input{flex:1 1 160px;min-width:0;min-height:var(--uk-tap);font-size:16px}
.uh-page.rd-page .rd-settings .uh-more-body>*+*{margin-top:12px}
@media(max-width:700px){.uh-page.rd-page .rd-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}.uh-page.rd-page .rd-tile-art{height:72px}}
@media(max-width:480px){.uh-page.rd-page .rd-tabs>.uk-tab{row-gap:0}.uh-page.rd-page .rd-tab-state{font-size:.72rem}.uh-page.rd-page .rd-tile-text{padding:6px 8px 8px}.uh-page.rd-page .rd-tile-text>b{font-size:.92rem}}
/* Flexible raid (switch IRP_RAID_SIZE_VERSION, docs/NEXT_RAID_FLEX_2026-10-05.md): the "Fill up to" stepper, the lend toggle, the companion lists and the open-seats block. Layout only, same kit tokens.
   Phone first: the stepper wraps under its label, every control is a kit button (44 px), names wrap instead of being cut, one column. */
.uh-page .uh-fill{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px}
.uh-page .uh-fill-label{font:600 .95rem var(--uk-serif);color:var(--uk-gold-text)}
.uh-page .uh-stepper{display:inline-flex;align-items:center;gap:8px;max-width:100%}
.uh-page .uh-stepper .uk-btn{min-width:44px;padding-inline:0;flex:0 0 auto}
.uh-page .uh-fill-count{min-width:5.5em;text-align:center;font:600 1rem var(--uk-serif);color:var(--uk-ivory);overflow-wrap:anywhere}
.uh-page .uh-fill>.uh-fill-note{flex:1 1 100%}
.uh-page .uh-fill-note,.uh-page .uh-flex-need,.uh-page .uh-flex-effect{margin:0}
.uh-page .uh-lend{display:grid;gap:6px;justify-items:start}
.uh-page .uh-lend>.uk-btn{max-width:100%;white-space:normal;text-align:left}
.uh-page .uh-lend>p{margin:0}
.uh-page .uh-fill-rows{display:grid;gap:8px;margin:0;padding:0;list-style:none}
.uh-page .uh-fill-rows>li{display:grid;gap:2px;min-width:0;overflow-wrap:anywhere}
.uh-page .uh-fill-rows>li>span{color:var(--uk-ivory-dim);font-size:.9rem}
.uh-page .uh-seats-spare{display:grid;gap:6px;margin:0;padding:0;list-style:none}
.uh-page .uh-flex .uh-seat-who small{white-space:normal;overflow-wrap:anywhere}
/* Fill mode (2026-10-05): the "Fill with" two-button control and the weak-filler warning above Start. Same kit tokens; buttons wrap their words, 44 px touch targets, one row or two at 320 px. */
.uh-page .uh-fillmode{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px}
.uh-page .uh-modes{display:flex;flex-wrap:wrap;gap:8px;max-width:100%}
.uh-page .uh-modes .uk-btn{min-height:44px;min-width:44px;flex:1 1 9em;white-space:normal;text-align:center}
.uh-page .uh-fillmode>.uh-fill-note{flex:1 1 100%;margin:0}
.uh-page .uh-flex-weak{color:var(--uk-danger-text);border-left:3px solid var(--uk-danger);padding-left:10px;overflow-wrap:anywhere}
/* Player report (10 Oct): the Start a raid box at the top of Raids, and the busy line with Leave expedition on Raids, Party and Boss Hunts. */
.uh-page .uh-raid-start{border-left:3px solid var(--uk-gold)}
.uh-page .uh-raid-start .uk-card-note{overflow-wrap:anywhere}
.uh-page .uh-busy{display:flex;flex-direction:column;gap:8px;min-width:0}
.uh-page .uh-busy .uh-reason{overflow-wrap:anywhere}
.uh-page #uh-group-title{scroll-margin-top:120px}
/* Friction sweep (10 Oct): the jump row under the Raids header. */
.uh-page .uh-jump{flex-wrap:wrap;gap:8px}
.uh-page .uh-jump .uk-btn{flex:1 1 7em}
.uh-page #uh-dungeons-title,.uh-page #uh-world-boss{scroll-margin-top:120px}

.uh-lobby-members{list-style:none;margin:0;padding:0}.uh-lobby-member{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;padding:6px 0}.uh-lobby-dot{width:8px;height:8px;border-radius:50%;background:var(--uk-locked)}.uh-lobby-dot.is-on{background:var(--uk-done)}.uh-lobby-invite-form{align-items:center}.uh-lobby-invite-form input{min-height:44px;flex:1 1 160px}
.uh-seat-who .uh-cd{color:var(--uk-gold-text);white-space:nowrap}
/* Alignment pass (21 Oct): the party roster shares the whole row (no empty columns on the right), one card per row on a phone so chips stay on one line;
   where each member is sits on its own line under the chips, and every card ends on its View gear button. */
.uk-grid.uh-party{grid-template-columns:repeat(auto-fit,minmax(min(100%,var(--uk-card-min)),1fr))}
@media(max-width:599px){.uh-party{--uk-card-min:100%}}
.uh-party .uh-member-status{display:flex;align-items:center;gap:6px}
.uh-party .uh-member-status.is-online::before{content:"";flex:0 0 8px;height:8px;border-radius:50%;background:var(--uk-done)}
/* Menu pass 21 Oct: the jump row carries painted icons like a kit tab strip. */
.uh-page .uh-jump .uk-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px}
.uh-page .uh-jump .uh-jump-art{width:24px;height:24px;flex:0 0 24px}
@media(max-width:480px){.uh-page .uh-jump .uk-btn{flex-direction:column;gap:2px;padding:6px 4px}}
/* Party start (IRP_PARTY_START_VERSION, lib/party-start.js; visual tune-up item 9, 23 Oct): the two ways into a party, side by side, stacked on a phone. */
.uh-page .up-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.uh-page .up-choice{display:flex;flex-direction:column;gap:10px;padding:12px 14px 14px;border:1px solid var(--uk-gold-dim);border-radius:var(--uk-radius-icon);background:var(--uk-navy-0)}/* 0.75.0 UI QA: a column with a gap, so the note no longer sits on the button and Create / Find line up at the bottom. */
.uh-page .up-choice .uk-card-head{flex-direction:row;align-items:center;gap:10px}
.uh-page .up-choice .uk-actions{margin-top:auto}
@media(max-width:600px){.uh-page .up-choices{grid-template-columns:1fr}}
/* Raid timers (IRP_RAID_TIMERS_VERSION, lib/raid-timers.js; visual tune-up item 10, 23 Oct): Your timers as chips with an icon tile, kit tokens only; the ones
   not open yet fold into one. Two to a row on a phone, the last odd one across. */
.uh-page .uh-timers-kit .uh-tchip-list{display:flex;flex-wrap:wrap;gap:8px;margin:0;padding:0;list-style:none}
.uh-page .uk-btn.uh-tchip,.uh-page .uh-tchip-more>.uh-tchip{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:4px 12px 4px 4px;white-space:normal;text-align:left;border-radius:999px;cursor:pointer}
.uh-page .uh-tchip .uk-icon-tile{flex:0 0 32px;width:32px;height:32px}.uh-page .uh-tchip .uk-icon-tile .uk-art{width:24px;height:24px}
.uh-page .uh-tchip-name{color:var(--uk-ivory-dim)}
.uh-page .uh-tchip-state{color:var(--uk-gold-text)}
.uh-page .uh-tchip.is-ready{border-color:var(--uk-done-dim)}.uh-page .uh-tchip.is-ready .uh-tchip-state{color:var(--uk-done)}
.uh-page .uh-tchip.is-closed{border-color:var(--uk-locked)}.uh-page .uh-tchip.is-closed .uh-tchip-state{color:var(--uk-locked-text)}
.uh-page .uh-tchip-more{margin:0;padding:0;border:0}.uh-page .uh-tchip-more>summary{list-style:none}.uh-page .uh-tchip-more>summary::-webkit-details-marker{display:none}
.uh-page .uh-tchip-more[open]>summary{margin-bottom:8px}
.uh-page .uh-raid-note{margin:0}
@media(max-width:600px){.uh-page .uh-timers-kit>.uh-tchip-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.uh-page .uh-timers-kit>.uh-tchip-list>li:last-child:nth-child(odd){grid-column:1/-1}.uh-page .uh-timers-kit>.uh-tchip-list>li>.uh-tchip,.uh-page .uh-timers-kit .uh-tchip-more>summary{width:100%;box-sizing:border-box}.uh-page .uk-btn.uh-tchip,.uh-page .uh-tchip-more>.uh-tchip{display:grid;grid-template-columns:32px minmax(0,1fr);column-gap:8px;padding-right:8px}.uh-page .uh-tchip>.uk-icon-tile{grid-row:1/3}.uh-page .uh-tchip-name,.uh-page .uh-tchip-state{min-width:0;overflow-wrap:anywhere}.uh-page .uh-tchip-more>summary>.uh-tchip-name{grid-row:1/3}}

/* /hunt-cards.css */
/* Hunt cards (IRP_HUNT_CARDS_VERSION=1; public/ui-hunts.js bossCardKit). Only .hc-* elements, which are drawn only while the switch is on. Linked after ui-hunts.css, before the kit. */
.uh-page .hc-grid{grid-template-columns:repeat(auto-fill,minmax(236px,1fr));gap:14px;align-items:stretch}
.uh-page .hc-card{display:flex;flex-direction:column;min-width:0;padding:calc(var(--uk-frame-w) + 2px);background:linear-gradient(180deg,#1a2638,#0f1826 60%,#0c1420)}
.uh-page .hc-card.is-next{box-shadow:0 0 0 2px var(--uk-gold-hi),0 6px 16px #0006}
.uh-page .hc-name{display:grid;place-items:center;min-height:2.4em;margin:0 0 8px;text-align:center;font:700 1.0625rem/1.2 var(--uk-serif);font-variant:small-caps;letter-spacing:.06em;color:var(--uk-gold-text);text-shadow:0 1px 2px #000}
.uh-page .hc-art{position:relative;aspect-ratio:16/10;overflow:hidden;border:1px solid var(--uk-gold-dim);border-radius:var(--uk-radius);background:#0b121c;box-shadow:inset 0 0 0 1px #000}
.uh-page .hc-art::after{content:"";position:absolute;inset:0;pointer-events:none;background:radial-gradient(ellipse at 50% 30%,transparent 45%,#000a 100%),linear-gradient(180deg,transparent 55%,#0009)}
.uh-page .hc-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;filter:saturate(.9) brightness(.72)}
/* Card paintings (art items 92-99): the boss is painted in, so no darkening beyond the shared vignette, which keeps the badge and tag readable. */
.uh-page .hc-bg.hc-painted{filter:none;object-position:50% 58%}
.uh-page .hc-art.is-painted::after{background:radial-gradient(ellipse at 50% 42%,transparent 55%,#0008 100%),linear-gradient(180deg,#0006,transparent 22%,transparent 70%,#0008)}
.uh-page .hc-boss{position:absolute;left:50%;bottom:2%;z-index:1;height:94%;width:auto;max-width:96%;object-fit:contain;object-position:bottom;transform:translateX(-50%);filter:drop-shadow(0 4px 6px #000c)}
.uh-page .hc-badge,.uh-page .hc-next,.uh-page .hc-won{position:absolute;z-index:2;display:inline-flex;align-items:center;gap:4px;padding:3px 8px;border:1px solid var(--uk-gold);border-radius:3px;background:linear-gradient(180deg,#2a2010ee,#140e06ee);font:700 .75rem/1.2 var(--uk-sans);letter-spacing:.1em;text-transform:uppercase;color:var(--uk-gold-text);box-shadow:0 2px 4px #0008}
.uh-page .hc-badge{top:8px;right:8px}
.uh-page .hc-next{left:8px;bottom:8px}
.uh-page .hc-won{left:8px;top:8px;border-color:var(--uk-done-dim);color:#d7f3dc;background:linear-gradient(180deg,#173223ee,#0d1a14ee)}
.uh-page .hc-badge .uk-art,.uh-page .hc-next .uk-art,.uh-page .hc-won .uk-art{width:16px;height:16px}
.uh-page .hc-body{display:flex;flex:1;flex-direction:column;gap:9px;padding-top:10px;min-width:0}
.uh-page .hc-card .hc-zone{margin:0;font:700 .75rem/1.3 var(--uk-sans);letter-spacing:.06em;color:var(--uk-ivory-dim);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.uh-page .hc-fight{display:flex;align-items:center;gap:6px;margin:0;font:400 .875rem/1.3 var(--uk-sans);color:var(--uk-ivory)}
.uh-page .hc-fight .uk-art{width:20px;height:20px}
.uh-page .hc-fight b{color:var(--uk-gold-text)}
.uh-page .hc-facts{margin:0}
.uh-page .hc-facts .uk-art{width:18px;height:18px}
.uh-page .hc-rule{display:flex;align-items:center;gap:8px;margin:2px 0 0;font:700 .75rem/1 var(--uk-sans);letter-spacing:.16em;text-transform:uppercase;color:var(--uk-gold)}
.uh-page .hc-rule::before,.uh-page .hc-rule::after{content:"";flex:1;height:1px;background:linear-gradient(90deg,transparent,#b69a6099)}
.uh-page .hc-rule::after{background:linear-gradient(90deg,#b69a6099,transparent)}
.uh-page .hc-reward{display:flex;align-items:center;justify-content:center;gap:6px;margin:0;white-space:nowrap;font:600 .8125rem/1.3 var(--uk-sans);color:var(--uk-gold-text);text-align:center}
.uh-page .hc-reward.is-done{color:var(--uk-done)}
.uh-page .hc-reward .uk-art,.uh-page .hc-cost .uk-art,.uh-page .hc-kills .uk-art{width:20px;height:20px}
.uh-page .hc-records{display:grid;gap:4px;margin:0;padding:8px 10px;list-style:none;border:1px solid #b69a6040;border-radius:var(--uk-radius);background:#0a121ccc;font:400 .75rem/1.3 var(--uk-sans)}
.uh-page .hc-best{display:grid;grid-template-columns:auto auto minmax(0,1fr);align-items:baseline;gap:8px}
.uh-page .hc-best-label{color:var(--uk-ivory-dim)}
.uh-page .hc-time{color:var(--uk-done);font-variant-numeric:tabular-nums}
.uh-page .hc-who{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:right;color:var(--uk-ivory-dim)}
.uh-page .hc-none{grid-column:2/-1;font-style:italic}
.uh-page .hc-kills{display:flex;align-items:center;gap:6px;padding-top:4px;border-top:1px solid #b69a6026;color:var(--uk-ivory-dim)}
.uh-page .hc-mine{margin-left:auto;color:var(--uk-gold-text)}
.uh-page .hc-cost{display:flex;align-items:center;gap:8px;margin:auto 0 0;padding-top:2px;font:400 .875rem/1.3 var(--uk-sans);color:var(--uk-ivory)}
.uh-page .hc-cost b{font-size:1rem;color:var(--uk-gold-text)}
.uh-page .hc-cost.is-done b{color:var(--uk-done)}
.uh-page .hc-reason{margin:0;font-size:.8125rem}
.uh-page .hc-actions{position:relative;display:grid;grid-template-columns:1fr 1fr;gap:8px;align-items:stretch}
.uh-page .hc-actions>.uk-btn{height:100%;margin:0}
.uh-page .hc-drops{display:flex;margin:0} /* a page-wide details margin made the row 32px taller than Fight & drops */
.uh-page .hc-drops>summary{flex:1;margin:0;height:100%}
.uh-page .hc-actions>.uk-btn,.uh-page .hc-drops>summary{width:100%;min-height:var(--uk-tap)}
.uh-page .hc-drops{min-width:0}
.uh-page .hc-drops>summary{list-style:none;cursor:pointer;box-sizing:border-box}
.uh-page .hc-drops>summary::-webkit-details-marker{display:none}
.uh-page .hc-drops[open]>summary{border-color:var(--uk-gold-hi)}
.uh-page .hc-card{position:relative}
.uh-page .hc-drops-body{position:absolute;left:0;right:0;bottom:calc(100% + 8px);z-index:4;padding:10px 12px;box-shadow:0 6px 18px #000c}
.uh-page .hc-drops-title{margin:0 0 6px;font:700 .75rem/1.3 var(--uk-sans);letter-spacing:.08em;text-transform:uppercase;color:var(--uk-gold)}
.uh-page .hc-drops-fight{margin:0 0 10px;font:400 .8125rem/1.45 var(--uk-sans);color:var(--uk-ivory)}
.uh-page .hc-drops-body{max-height:min(70vh,520px);overflow:auto}
.uh-page .hc-drops-body ul{margin:0;padding-left:18px;font:400 .8125rem/1.45 var(--uk-sans);color:var(--uk-ivory)}
.uh-page .hc-drops-body b{color:#d9a6ff}
.uh-page .hc-more{margin:0}
@media (max-width:540px){.uh-page .hc-grid{grid-template-columns:1fr}.uh-page .hc-art{aspect-ratio:16/9}}
/* Menu tune-up (Pat, 25 Oct): the Hunts still to find, under Find a Hunt Key. Darkened paintings with a lock; two across on a phone. */
.uh-page .hc-locked-grid .hc-card.is-locked{opacity:.92}
.uh-page .hc-card.is-locked .hc-bg{filter:grayscale(.55) brightness(.42) blur(1.5px);transform:scale(1.04)}
.uh-page .hc-card.is-locked .hc-name{color:var(--uk-ivory-dim)}
.uh-page .hc-lock{position:absolute;inset:0;display:grid;place-items:center;z-index:1}
.uh-page .hc-lock .uk-art{width:40px;height:40px;filter:drop-shadow(0 2px 6px #000)}
.uh-page .hc-card.is-locked .uk-card-note{margin:4px 0 0}
@media (max-width:540px){.uh-page .hc-locked-grid{grid-template-columns:1fr 1fr;gap:10px}.uh-page .hc-card.is-locked .hc-name{font-size:.95rem}.uh-page .hc-card.is-locked .hc-zone{white-space:normal}}
/* QA 1 Nov: a long zone name ("Shatterdune Caravanserai") was cut to "Caravanse…" on the four Boss Hunt cards at 1440. It now wraps onto a second line. */
html .uh-page .hc-card .hc-zone{white-space:normal;overflow:visible;text-overflow:clip;text-wrap:balance}

/* /activity-builds.css */
/* Auto-switch card of the Skills tab (activity builds): LAYOUT ONLY. WRITTEN, NEVER RUN.
   Linked in index.html before ui-kit.css (which stays last); every rule starts with .ab-, so it does nothing until public/activity-builds-ui.js draws that markup (only while
   IRP_ACTIVITY_BUILDS_VERSION is on). Markup: public/activity-builds-ui.js. Plan: docs/NEXT_ACTIVITY_BUILDS_2026-10-04.md.
   Frames, buttons and colours come from public/ui-kit.css (the card is a .uk-card, the buttons are .uk-btn); the only colours here are kit tokens.
   Phones: no fixed widths, nothing wider than the screen, the label sits above each select at 320 px, every control is 44 px tall, select text is 16 px (no zoom on focus on iPhone). */
.ab-card{display:grid;gap:10px;margin-top:12px;padding:12px;min-width:0}
.ab-card>*{min-width:0;margin:0}
.ab-title{font-size:1.1rem}
.ab-intro,.ab-summary,.ab-empty,.ab-notice{font-size:.95rem;line-height:1.4;overflow-wrap:anywhere}
.ab-summary{margin:8px 0 0;font-weight:700;color:var(--uk-gold-text)}
.ab-form{display:grid;gap:10px;min-width:0}
.ab-row{display:grid;gap:4px;min-width:0}
.ab-label{font-weight:700;color:var(--uk-ivory)}
.ab-select{box-sizing:border-box;width:100%;min-width:0;min-height:var(--uk-tap,44px);padding:6px 10px;font:inherit;font-size:1rem;color:var(--uk-ivory);background:var(--uk-navy-2);border:1px solid var(--uk-gold-dim);border-radius:var(--uk-radius,4px);text-overflow:ellipsis}
.ab-select:focus-visible{outline:2px solid var(--uk-focus);outline-offset:2px}
.ab-select:disabled{opacity:.6}
.ab-actions{display:flex;flex-wrap:wrap;gap:8px}
.ab-actions .uk-btn{min-height:var(--uk-tap,44px);min-width:44px}
.ab-notice{padding-left:8px;border-left:3px solid var(--uk-gold)}
.ab-notice:empty{display:none}
@media (min-width:640px){
 .ab-row{grid-template-columns:minmax(8rem,12rem) minmax(0,1fr);align-items:center}
}
.ab-actions .ab-undo-why{flex:1 1 100%;font-size:.85rem;line-height:1.35;color:var(--uk-ivory-dim);overflow-wrap:anywhere}
.ab-actions .ab-undo-off{cursor:not-allowed}

/* /ui-leaderboards.css */
/* Leaderboards screen on the UI kit: LAYOUT ONLY (grid, spacing, clamping). WRITTEN, NEVER RUN.
   Linked in index.html before ui-kit.css (which stays last); every rule starts with .uk-lb, so it does nothing until the switch draws that markup. Markup: public/ui-leaderboards.js. Plan: docs/NEXT_UI_LEADERBOARDS_2026-10-04.md.
   Colours, frames and shadows come from public/ui-kit.css; the only colour here is the kit's own token on the one dark bar under the title.
   Phones: no fixed widths, nothing wider than the screen, 44 px targets (rows, tabs, buttons and selects get theirs from the kit). */
.uk-lb{display:grid;gap:14px;align-content:start;min-width:0;max-width:1100px;margin-inline:auto}
.uk-lb>*{min-width:0}
.uk-lb [hidden]{display:none!important}
.uk-lb .uk-lb-more{display:block;width:100%;margin-top:8px}
.uk-lb .uk-lb-classes{display:grid;grid-template-columns:repeat(auto-fill,minmax(124px,1fr));gap:6px}
.uk-lb .uk-lb-class{display:flex;align-items:center;justify-content:flex-start;gap:5px;min-width:0;width:100%;min-height:44px;padding:4px 6px 4px 4px;white-space:nowrap}
.uk-lb .uk-lb-class img{flex:none;width:34px;height:34px;border-radius:50%;object-fit:cover}
.uk-lb .uk-lb-class.is-all{padding-left:10px}
@media(max-width:480px){.uk-lb .uk-lb-classes{grid-template-columns:repeat(2,minmax(0,1fr))}}
.uk-lb .uk-lb-mode{margin-top:8px}

/* Header: the three numbers sit on a dark bar so they never lie over the art. */
.uk-lb .uk-head>.uk-lb-strip{grid-column:1/-1;padding:10px 12px;border-radius:var(--uk-radius);background:var(--uk-navy-0)}
.uk-lb .uk-lb-strip .uk-stats{padding:0;border:0}
.uk-lb .uk-lb-strip .uk-stat dd{white-space:nowrap}

/* Tabs: five across at 1280, 2 + 3 on a phone (the kit tab rule is repeated with .shell so it wins on width, like the Guild bar). */
.uk-lb .uk-lb-tabs{margin:0}
.shell .uk-lb-tabs.uk-tabs>.uk-tab{flex:1 1 auto;min-width:max-content;gap:6px;padding-inline:10px}
@media(max-width:480px){.shell .uk-lb-tabs.uk-tabs>.uk-tab{flex:1 1 28%;min-width:0}}
/* Full review (2 Nov): three a row left the seventh Leaderboards tab (Artisans) and the fourth Arena tab (Rewards) alone on a full-width row.
   Seven tabs read four then three, and four read two by two, so every row is full. */
@media(max-width:480px){.shell .uk-lb-tabs.uk-tabs>.uk-tab:first-child:nth-last-child(7),.shell .uk-lb-tabs.uk-tabs>.uk-tab:first-child:nth-last-child(7)~.uk-tab{flex-basis:22%}.shell .uk-lb-tabs.uk-tabs>.uk-tab:first-child:nth-last-child(4),.shell .uk-lb-tabs.uk-tabs>.uk-tab:first-child:nth-last-child(4)~.uk-tab{flex-basis:40%}}
/* How many rows a list holds: quiet text, never the gold notification badge (that one means something is waiting). */
.uk-lb .uk-lb-tabs .uk-lb-count{color:var(--uk-ivory-dim);font:500 .78rem/1 var(--uk-sans);font-variant-numeric:tabular-nums;opacity:.85}
.uk-lb .uk-lb-tabs .uk-lb-count::before{content:'· '}
@media(max-width:480px){.uk-lb .uk-lb-tabs .uk-lb-count::before{content:none}}

/* Body: filters, list and rules. One column on a phone; from 900 px the filters and the rules sit in a left column beside the list. */
.uk-lb .uk-lb-layout{display:grid;gap:14px;grid-template-columns:minmax(0,1fr);align-items:start;align-content:start;min-width:0}
.uk-lb .uk-lb-filters{display:grid;gap:10px;padding:10px 12px}
.uk-lb .uk-lb-list{display:grid;gap:10px;align-content:start;min-width:0}
.uk-lb .uk-lb-list .uk-title-row{justify-content:flex-start}
.uk-lb .uk-lb-list .uk-heading{flex:0 1 auto;margin-bottom:0;overflow-wrap:anywhere}
.uk-lb .uk-lb-sub{margin:0;color:var(--uk-ivory-dim);font-size:.9rem;line-height:1.35}
.uk-lb .uk-lb-rules{display:grid;gap:10px;align-content:start;padding:10px 12px}
.uk-lb .uk-lb-rules-title{margin:0;font:600 1.05rem/1.2 var(--uk-serif);color:var(--uk-gold-text)}
.uk-lb .uk-lb-rules .uk-card-note{margin:0}
@media(min-width:900px){
 .uk-lb .uk-lb-layout{grid-template-columns:300px minmax(0,1fr);grid-template-areas:"filters list" "rules list" "fill list";grid-template-rows:auto auto 1fr}
 .uk-lb .uk-lb-filters{grid-area:filters}
 .uk-lb .uk-lb-list{grid-area:list}
 .uk-lb .uk-lb-rules{grid-area:rules}
}
.uk-lb select.uk-select{min-width:0}

/* Rows: the kit row; this adds only the bar line, the crest tile and the open drawer's people. */
.uk-lb .uk-row-list{gap:8px}
.uk-lb .uk-row-title{overflow-wrap:anywhere}
.uk-lb .uk-row-sub .uk-chip{min-height:0}
.uk-lb .uk-row-extra{flex-wrap:wrap;row-gap:2px}
.uk-lb .uk-row-extra .uk-progress{flex:1 1 56px}
.uk-lb .uk-lb-pct,.uk-lb .uk-lb-ago{white-space:nowrap}
.uk-lb .uk-row-extra .uk-chip{min-height:0;padding-block:1px}
.uk-lb .uk-row details>summary{list-style:none}
.uk-lb .uk-lb-crest{position:relative;background:none;border:0;overflow:visible}
.uk-lb .uk-lb-crest>img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;object-position:50% 50%}
.uk-lb .uk-lb-crest>b{position:relative;margin-top:-3px;font:600 1.1rem/1 var(--uk-serif);color:var(--uk-gold-text);text-shadow:0 1px 2px var(--uk-navy-0)}
.uk-lb .uk-lb-drawer-title{margin:0;font:700 .72rem/1.3 var(--uk-sans);letter-spacing:.12em;text-transform:uppercase;color:var(--uk-ivory-dim)}
.uk-lb .uk-lb-people{display:flex;flex-wrap:wrap;gap:6px}
.uk-lb .uk-lb-people>.uk-btn{max-width:100%;overflow-wrap:anywhere}
.uk-lb .uk-row-drawer .uk-rows{margin:2px 0 0}
.uk-lb .uk-row-drawer .uk-actions{margin:0}

/* Pinned row: the kit rule already keeps it above the game's bottom bar and the safe area (bottom offset max(--mobile-nav-height, safe-area inset)); nothing is overridden here.
   While its row is open it is released into the list: an open pinned row is about 300 px tall at 200% text and would cover the list. */
.uk-lb .uk-row.is-pinned.is-open{position:static}

/* Empty state. */
.uk-lb .uk-lb-empty{display:grid;justify-items:center;gap:6px;padding:22px 14px;text-align:center}
.uk-lb .uk-lb-empty h3{margin:0;font:600 1.1rem/1.2 var(--uk-serif);color:var(--uk-gold-text)}
.uk-lb .uk-lb-empty p{margin:0;color:var(--uk-ivory-dim)}

/* Phones: a short header (no icon column), the strip on one row, a one-line help. */
@media(max-width:480px){
 .uk-lb .uk-head-icon{display:none}
 .uk-lb .uk-head{grid-template-columns:minmax(0,1fr);gap:8px}
 .uk-lb .uk-head>.uk-lb-strip{padding:6px 10px}
 .uk-lb .uk-lb-strip .uk-stat dd{font-size:1.05rem}
 .uk-lb .uk-lb-list .uk-heading{font-size:1.1rem}
}

/* Phones: the name needs room, so the row is a grid. Rank and tile on the left, name and small line, the big number and the arrow on the right, and the bar line runs under the name and the number. */
@media(max-width:480px){
 .uk-lb summary.uk-row-main{display:grid;grid-template-columns:28px 36px minmax(0,1fr) auto 8px;column-gap:6px;row-gap:3px;align-items:center;padding-inline:8px}
 .uk-lb summary.uk-row-main>.uk-row-media{width:36px;height:36px}
 .uk-lb summary.uk-row-main .uk-row-title{font-size:.95rem}
 .uk-lb summary.uk-row-main>.uk-rank{grid-column:1;grid-row:1/span 2}
 .uk-lb summary.uk-row-main>.uk-row-media{grid-column:2;grid-row:1/span 2}
 .uk-lb summary.uk-row-main>.uk-row-body{display:contents}
 .uk-lb summary.uk-row-main .uk-row-title{grid-column:3;grid-row:1;align-self:end}
 .uk-lb summary.uk-row-main .uk-row-sub{grid-column:3;grid-row:2;align-self:start}
 .uk-lb summary.uk-row-main .uk-row-extra{grid-column:3/-1;grid-row:3}
 .uk-lb summary.uk-row-main>.uk-row-end{grid-column:4;grid-row:1/span 2;max-width:none}
 .uk-lb summary.uk-row-main>.uk-row-caret{grid-column:5;grid-row:1/span 2}
}

/* Phones, zone clears and guild raids: the time is wide ("3:41.34"), so these rows are three lines: name across, the small line, then the time under it. */
@media(max-width:480px){
 .uk-lb .uk-lb-timed summary.uk-row-main{grid-template-columns:28px 36px minmax(0,1fr) 8px}
 .uk-lb .uk-lb-timed summary.uk-row-main>.uk-rank,.uk-lb .uk-lb-timed summary.uk-row-main>.uk-row-media,.uk-lb .uk-lb-timed summary.uk-row-main>.uk-row-caret{grid-row:1/span 3}
 .uk-lb .uk-lb-timed summary.uk-row-main .uk-row-title{grid-column:3;grid-row:1}
 .uk-lb .uk-lb-timed summary.uk-row-main .uk-row-sub{grid-column:3;grid-row:2}
 .uk-lb .uk-lb-timed summary.uk-row-main>.uk-row-end{grid-column:3;grid-row:3;display:flex;align-items:baseline;justify-content:flex-start;gap:8px;text-align:left}
 .uk-lb .uk-lb-timed summary.uk-row-main>.uk-row-caret{grid-column:4}
}
.uk-lb .uk-row-end{gap:2px}
/* Short screens (a phone on its side): a pinned row would cover too much of the list, so it stays where it is in the list. */
@media(max-height:560px){.uk-lb .uk-row.is-pinned{position:relative;bottom:auto}}
.uk-lb .uk-lb-zones{width:100%}
/* Zone names wrap between words, never inside one ("Sablewat/er Mill" in the 300 px filter column, review 26 Oct). */
.uk-lb .pick-chip{overflow-wrap:normal;word-break:normal;hyphens:manual}
/* Artisans tab: the skill chips carry longer words (Jewelcrafting, Woodcutting), so a smaller tool icon and type keep them inside the chip. */
.uk-lb .uk-lb-class[data-leaderboard-pick="skill"]{font-size:.78rem;gap:4px;padding-right:4px}
.uk-lb .uk-lb-class[data-leaderboard-pick="skill"] img{width:26px;height:26px;border-radius:0;object-fit:contain}
/* Simpler screens (IRP_UI_SIMPLER_VERSION; public/ui-leaderboards.js adds .uk-lb-tidy while on): on a phone the class filters are one swipeable row, so the rankings start near the top. */
@media(max-width:760px){.uk-lb.uk-lb-tidy .uk-lb-classes{display:flex;flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none;gap:6px;padding-bottom:2px}
 .uk-lb.uk-lb-tidy .uk-lb-classes>.uk-lb-class{flex:0 0 auto;width:auto;min-height:44px;padding-right:12px}}

/* /pvp-arena.css */
/* Arena page (PvP; switch IRP_PVP_ARENA_VERSION). Markup: public/pvp-arena-ui.js. Layout on the UI kit, with the Leaderboards page (.uk-lb, public/ui-leaderboards.css)
   as the model: the page carries .uk-lb, so the header strip, tabs, rows and empty states come from there. Colours are only the kit's tokens.
   Phones: one column, nothing wider than the screen, 44 px targets. */
/* The arena's own painted icon (art item 116), for the page head; public/interface-art.css draws it in the menu. */
.uk-art.uk-art-arena{background:url('/art/interface/icon-arena-v1.webp') center/contain no-repeat}
.uk-arena .uk-arena-grid{display:grid;gap:14px;grid-template-columns:minmax(0,1fr);align-items:start}
@media(min-width:900px){.uk-arena .uk-arena-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.uk-arena .uk-arena-grid>.uk-arena-loadout,.uk-arena .uk-arena-grid>:nth-child(3):last-child{grid-column:1/-1}}
.uk-arena .uk-frame-sm{display:grid;gap:10px;align-content:start;min-width:0}
.uk-arena .uk-frame-sm>.uk-heading,.uk-arena .uk-title-row .uk-heading{margin:0}
.uk-arena .uk-arena-line{margin:0;color:var(--uk-ivory-dim);font-size:.92rem;line-height:1.4;overflow-wrap:anywhere}
.uk-arena .uk-stat.is-done dd{color:var(--uk-ivory-dim)}

/* Solo / Party switch: two wide buttons with a small line under each. */
.uk-arena .uk-arena-mode{display:flex}
.uk-arena .uk-arena-mode .uk-seg-btn{flex:1 1 0;display:grid;gap:2px;justify-items:center;min-height:52px;padding:6px 8px;text-align:center}
.uk-arena .uk-arena-mode .uk-seg-btn small{font:500 .74rem/1.2 var(--uk-sans);color:var(--uk-ivory-dim)}

/* Fights left today: three gems. */
.uk-arena .uk-arena-pips{display:inline-flex;gap:4px;vertical-align:middle;margin-left:4px}
.uk-arena .uk-arena-pips i{width:11px;height:11px;border-radius:50%;border:1px solid var(--uk-gold-dim);background:var(--uk-navy-0)}
.uk-arena .uk-arena-pips i.is-on{background:var(--uk-gold);border-color:var(--uk-gold-hi);box-shadow:0 0 6px var(--uk-gold-dim)}

/* Your team: up to four faces with name and class. */
.uk-arena .uk-arena-team{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin:0;padding:0;list-style:none}
.uk-arena .uk-arena-member{display:flex;align-items:center;gap:8px;min-width:0;min-height:48px;padding:4px 8px 4px 4px;border:1px solid var(--uk-rule);border-radius:var(--uk-radius);background:var(--uk-surface)}
.uk-arena .uk-arena-member.is-you{border-color:var(--uk-gold-dim)}
.uk-arena .uk-arena-member .uk-row-media{flex:none;width:38px;height:38px}
.uk-arena .uk-arena-member-text{display:grid;min-width:0}
.uk-arena .uk-arena-member-text strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--uk-ivory)}
.uk-arena .uk-arena-member-text small{color:var(--uk-ivory-dim);font-size:.78rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:480px){.uk-arena .uk-arena-team{grid-template-columns:repeat(2,minmax(0,1fr))}}

.uk-arena .uk-arena-go{min-height:48px;font-size:1.02rem}
.uk-arena .uk-arena-notice{margin:0;padding:8px 10px;border-radius:var(--uk-radius);background:var(--uk-current-bg);color:var(--uk-ivory)}
.uk-arena .uk-arena-search{display:flex;align-items:center;gap:10px;padding:10px;border:1px solid var(--uk-gold-dim);border-radius:var(--uk-radius);background:var(--uk-navy-0)}
.uk-arena .uk-arena-search>div{display:grid;gap:2px;min-width:0}
.uk-arena .uk-arena-search small{color:var(--uk-ivory-dim)}
.uk-arena .uk-arena-spinner{flex:none;width:26px;height:26px;border-radius:50%;border:3px solid var(--uk-gold-dim);border-top-color:var(--uk-gold-hi);animation:uk-arena-spin 1s linear infinite}
@keyframes uk-arena-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.uk-arena .uk-arena-spinner{animation:none}}

/* Last fight. */
.uk-arena .uk-arena-result{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px}
.uk-arena .uk-arena-result strong{font:600 1.5rem/1.1 var(--uk-serif)}
.uk-arena .uk-arena-result.is-win strong,.uk-arena .uk-arena-history .is-win{color:var(--uk-gold-text)}
.uk-arena .uk-arena-result.is-loss strong,.uk-arena .uk-arena-history .is-loss{color:var(--uk-danger-text)}
.uk-arena .uk-arena-result span{color:var(--uk-ivory-dim);font-size:.9rem}
.uk-arena .uk-arena-versus{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:8px;align-items:center;padding:8px;border-radius:var(--uk-radius);background:var(--uk-navy-0)}
.uk-arena .uk-arena-side{display:grid;gap:4px;justify-items:center;min-width:0;text-align:center}
.uk-arena .uk-arena-side-label{font:700 .7rem/1.2 var(--uk-sans);letter-spacing:.12em;text-transform:uppercase;color:var(--uk-ivory-dim)}
.uk-arena .uk-arena-side small{max-width:100%;color:var(--uk-ivory);font-size:.8rem;overflow-wrap:anywhere}
.uk-arena .uk-arena-faces{display:flex;justify-content:center}
.uk-arena .uk-arena-faces .uk-row-media{width:36px;height:36px;margin-left:-6px;border:2px solid var(--uk-navy-0)}
.uk-arena .uk-arena-faces .uk-row-media:first-child{margin-left:0}
.uk-arena .uk-arena-vs{font:700 1.2rem/1 var(--uk-serif);color:var(--uk-gold-text)}
.uk-arena .uk-arena-history{display:grid;gap:4px;margin:0;padding:0;list-style:none}
.uk-arena .uk-arena-history li{display:grid;grid-template-columns:44px minmax(0,1fr) auto;gap:8px;align-items:center;min-height:32px;padding:2px 8px;border-radius:var(--uk-radius);background:var(--uk-surface)}
.uk-arena .uk-arena-history span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--uk-ivory-dim);font-size:.85rem}
.uk-arena .uk-arena-history em{font-style:normal;font-variant-numeric:tabular-nums;color:var(--uk-ivory)}

/* Arena build: choices as buttons, never a long dropdown. */
.uk-arena .uk-arena-picks{display:flex;flex-wrap:wrap;gap:6px}
.uk-arena .uk-arena-pick{min-height:44px;max-width:100%;overflow-wrap:anywhere}
.uk-arena .uk-arena-pick[aria-pressed="true"]{border-color:var(--uk-gold-hi);background:var(--uk-current-bg);color:var(--uk-gold-text)}
.uk-arena .uk-lb-drawer-title{margin:4px 0 0}

/* Weekly reward notice. */
.uk-arena .uk-arena-reward{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px}
.uk-arena .uk-arena-reward h2{margin:0}

/* Bracket buttons on the ranks tab. */
.uk-arena .uk-arena-brackets{display:grid;grid-template-columns:repeat(auto-fill,minmax(118px,1fr));gap:6px}
.uk-arena .uk-arena-brackets .uk-btn{min-height:44px;padding-inline:6px;white-space:nowrap}
.uk-arena .uk-arena-brackets .uk-btn[aria-pressed="true"]{border-color:var(--uk-gold-hi);background:var(--uk-current-bg);color:var(--uk-gold-text)}
.uk-arena .uk-lb-filters .uk-seg{display:flex}.uk-arena .uk-lb-filters .uk-seg-btn{flex:1 1 0}
@media(max-width:480px){.uk-arena .uk-arena-brackets{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Rewards tab. */
.uk-arena .uk-arena-tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.uk-arena .uk-arena-tile{display:grid;justify-items:center;gap:4px;padding:10px 6px;border-radius:var(--uk-radius);background:var(--uk-navy-0);text-align:center}
.uk-arena .uk-arena-tile b{font:600 1.5rem/1 var(--uk-serif);color:var(--uk-gold-text)}
.uk-arena .uk-arena-tile small{color:var(--uk-ivory-dim);font-size:.78rem;line-height:1.25}
.uk-arena .uk-arena-table{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums}
.uk-arena .uk-arena-table th,.uk-arena .uk-arena-table td{padding:7px 8px;border-bottom:1px solid var(--uk-rule);text-align:right}
.uk-arena .uk-arena-table th:first-child{text-align:left}
.uk-arena .uk-arena-table thead th{font:700 .7rem/1.2 var(--uk-sans);letter-spacing:.1em;text-transform:uppercase;color:var(--uk-ivory-dim)}
.uk-arena .uk-arena-table tbody tr:first-child th,.uk-arena .uk-arena-table tbody tr:first-child td{color:var(--uk-gold-text);font-weight:700}
.uk-arena .uk-arena-titles{display:grid;gap:6px;margin:0;padding:0;list-style:none}
.uk-arena .uk-arena-titles li{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 10px;align-items:center;padding:8px 10px;border:1px solid var(--uk-rule);border-radius:var(--uk-radius);background:var(--uk-surface)}
.uk-arena .uk-arena-titles li.is-done{border-color:var(--uk-gold-dim)}
.uk-arena .uk-arena-titles strong{font:600 1rem/1.2 var(--uk-serif);color:var(--uk-gold-text)}
.uk-arena .uk-arena-titles small{grid-column:1;color:var(--uk-ivory-dim)}
.uk-arena .uk-arena-titles .uk-chip{grid-column:2;grid-row:1/span 2}

/* The replay: the painted arena floor, both teams on it, plates over their heads and numbers that rise. */
/* Above the chat panel (z-index 90): with chat open the replay's close button sat under it, so a finished fight could not be closed (Pat, 19 Oct). */
.uk-arena-replay-backdrop{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;padding:max(12px,env(safe-area-inset-top)) 12px max(12px,env(safe-area-inset-bottom));background:rgba(4,8,16,.78)}
.uk-arena-replay{display:grid;gap:10px;width:min(1680px,100%);max-height:100%;overflow:auto}
.uk-arena-replay .uk-title-row{display:flex;align-items:center;justify-content:space-between;gap:10px}
.uk-arena-replay .uk-heading{margin:0}
/* The stage is as big as the screen allows (the title and the controls take about 150 px) and shows the whole arena; a phone shows its middle. */
.uk-arena-stage{position:relative;width:min(100%,calc((100dvh - 150px)*16/9));margin-inline:auto;aspect-ratio:16/9;overflow:hidden;border-radius:var(--uk-radius);background:var(--uk-navy-0)}
.uk-arena-floor{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 50%}/* the Sunfall Pit painting is 16:9 and symmetric; a phone's 3:4 stage keeps its middle */
.uk-arena-units,.uk-arena-fx{position:absolute;inset:0}
.uk-arena-fx{pointer-events:none;z-index:200}
.uk-arena-skillfx{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:150}
/* Each unit is a point at the fighter's feet; the animated model (IRPActorMotion) draws up from it, --mh is the model's height in pixels (set by the replay). */
.uk-arena-stage{--mh:100px}
.uk-arena-unit{position:absolute;width:0;height:0;transition:filter .3s,opacity .6s}
.uk-arena-model{position:absolute;left:0;top:0;width:0;height:0}
.uk-arena-still{position:absolute;left:0;bottom:0;transform:translateX(-50%);width:calc(var(--mh)*.7);aspect-ratio:1;border-radius:50%;object-fit:cover;border:2px solid var(--uk-gold-dim)}
.uk-arena-unit.is-theirs .uk-arena-still{border-color:var(--uk-danger)}
.uk-arena-unit::before{content:'';position:absolute;left:0;top:0;width:calc(var(--mh)*.55);height:calc(var(--mh)*.16);transform:translate(-50%,-50%);border-radius:50%;background:radial-gradient(closest-side,rgba(0,0,0,.55),transparent);pointer-events:none}
.uk-arena-unit.is-mine::before{box-shadow:0 0 0 2px var(--uk-gold-dim)}
.uk-arena-unit.is-theirs::before{box-shadow:0 0 0 2px var(--uk-danger)}
.uk-arena-plate{position:absolute;left:0;bottom:calc(var(--mh) + 4px + var(--lift,0px));transform:translateX(-50%);transition:bottom .2s;display:grid;gap:2px;justify-items:center;width:clamp(64px,calc(var(--mh)*1.1),130px)}
.uk-arena-plate span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:600 clamp(.62rem,1.1vw,.82rem)/1.1 var(--uk-sans);color:var(--uk-ivory);text-shadow:0 1px 2px #000,0 0 4px #000}
.uk-arena-plate i{display:block;width:100%;height:clamp(4px,.7vw,7px);border-radius:3px;background:rgba(0,0,0,.65);border:1px solid rgba(0,0,0,.8);overflow:hidden}
.uk-arena-plate b{display:block;height:100%;background:var(--uk-done);transition:width .25s}
.uk-arena-unit.is-theirs .uk-arena-plate b{background:var(--uk-danger)}
.uk-arena-unit.is-struck .uk-arena-model,.uk-arena-unit.is-struck .uk-arena-still{animation:uk-arena-struck .25s}
@keyframes uk-arena-struck{30%{filter:brightness(1.9)}}
.uk-arena-unit.is-shielded::after{content:'';position:absolute;left:0;bottom:calc(var(--mh)*-.08);width:calc(var(--mh)*.8);height:calc(var(--mh)*1.05);transform:translateX(-50%);border-radius:50%;border:2px solid var(--uk-accent);box-shadow:0 0 12px var(--uk-accent),inset 0 0 10px var(--uk-accent);opacity:.7;pointer-events:none}
.uk-arena-unit.is-down{filter:grayscale(1) brightness(.6);opacity:.65}
.uk-arena-unit.is-down .uk-arena-plate{visibility:hidden}
.uk-arena-pop{position:absolute;transform:translate(-50%,0);font:700 clamp(.8rem,1.6vw,1.15rem)/1 var(--uk-sans);color:var(--uk-ivory);text-shadow:0 1px 2px #000,0 0 3px #000;white-space:nowrap;animation:uk-arena-pop 1.1s ease-out forwards}
.uk-arena-pop.is-crit{font-size:clamp(1rem,2.2vw,1.5rem);color:var(--uk-gold-hi)}
.uk-arena-pop.is-heal{color:var(--uk-done)}
.uk-arena-pop.is-shield{color:var(--uk-accent)}
.uk-arena-pop.is-miss{color:var(--uk-ivory-dim);font-style:italic}
.uk-arena-pop.is-dot{color:var(--uk-rarity-epic);font-size:clamp(.7rem,1.3vw,.95rem)}
.uk-arena-pop.is-skill{color:var(--uk-gold-text);font:600 clamp(.7rem,1.3vw,.95rem)/1 var(--uk-serif);transform:translate(-50%,-110%)}
@keyframes uk-arena-pop{0%{opacity:0;margin-top:6px}15%{opacity:1}100%{opacity:0;margin-top:-34px}}
.uk-arena-shot{position:absolute;width:12px;height:12px;margin:-6px 0 0 -6px;border-radius:50%;background:var(--uk-gold-hi);box-shadow:0 0 10px var(--uk-gold);transition:left .35s linear,top .35s linear}
.uk-arena-shot.is-skill{width:18px;height:18px;margin:-9px 0 0 -9px;background:var(--uk-accent);box-shadow:0 0 14px var(--uk-accent)}
.uk-arena-clock{position:absolute;top:8px;left:50%;transform:translateX(-50%);z-index:210;padding:3px 12px;border-radius:var(--uk-radius);background:rgba(4,8,16,.7);font:600 1rem/1.2 var(--uk-sans);font-variant-numeric:tabular-nums;color:var(--uk-ivory)}
.uk-arena-banner{position:absolute;inset:auto 0 50% 0;z-index:220;display:grid;justify-items:center;gap:4px;padding:14px;transform:translateY(50%);background:linear-gradient(90deg,transparent,rgba(4,8,16,.85) 20%,rgba(4,8,16,.85) 80%,transparent);text-align:center}
.uk-arena-banner strong{font:700 clamp(1.6rem,5vw,3rem)/1 var(--uk-serif);color:var(--uk-gold-text);text-shadow:0 2px 6px #000}
.uk-arena-banner.is-loss strong{color:var(--uk-danger-text)}
.uk-arena-banner span{color:var(--uk-ivory);font-size:.92rem}
.uk-arena-banner[hidden]{display:none}
.uk-arena-controls{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px}
.uk-arena-controls .uk-seg-btn{min-width:52px;min-height:44px}
.uk-arena-controls .uk-btn{min-height:44px}
@media(prefers-reduced-motion:reduce){.uk-arena-pop,.uk-arena-unit.is-struck .uk-arena-model,.uk-arena-unit.is-struck .uk-arena-still{animation:none}.uk-arena-shot{display:none}}
@media(max-width:480px){.uk-arena-replay{gap:8px}.uk-arena-replay-backdrop{padding-inline:6px}.uk-arena-replay.uk-frame{padding:10px}}
/* A narrow stage (phones): a square crop of the floor so the teams have room, no skill names over the fighters, and smaller names. */
.uk-arena-stage.is-narrow{width:100%;aspect-ratio:3/4;max-height:calc(100dvh - 150px)}
.uk-arena-stage.is-narrow .uk-arena-pop.is-skill{display:none}
.uk-arena-stage.is-narrow .uk-arena-plate{width:clamp(48px,calc(var(--mh)*1.2),90px)}
.uk-arena-stage.is-narrow .uk-arena-plate span{font-size:.62rem}
.uk-arena-stage.is-narrow .uk-arena-pop{font-size:.78rem}
.uk-arena-stage.is-narrow .uk-arena-pop.is-crit{font-size:.95rem}
@media(max-width:480px){.uk-arena .uk-arena-member-text small{white-space:normal;line-height:1.2}}
.uk-arena-stage.is-narrow .uk-arena-clock{left:8px;transform:none}
/* Alignment pass (21 Oct): Find a fight and Last fight are the same height side by side; an empty Last fight centres in the space. */
@media(min-width:900px){.uk-arena .uk-arena-grid{align-items:stretch}.uk-arena .uk-arena-last:has(>.uk-lb-empty:last-child){grid-template-rows:auto 1fr}.uk-arena .uk-arena-last>.uk-lb-empty{align-content:center}}
/* Combat screen audit (Pat, 23 Oct 2026): the replay's speed buttons and Skip to the end overlapped the bottom of the arena picture, and the speed buttons
   were squeezed to 34 px (the UI kit's segment rule set min-width:0). The window is a column that never squeezes the picture, the picture leaves room for the
   title and the controls under it, the controls line up with the picture's edges, and the speed buttons keep their 52 px. */
.uk-arena-replay{display:flex;flex-direction:column}
.uk-arena-replay>*{flex:none}
.uk-arena-stage{width:min(100%,calc((100dvh - 200px)*16/9))}
.uk-arena-controls{width:min(100%,calc((100dvh - 200px)*16/9));margin-inline:auto}
.uk-arena-controls .uk-seg>.uk-seg-btn{min-width:52px}
/* Sunfall arena ranks (lib/arena-ranks.js, IRP_ARENA_RANKS_VERSION). The badge is a metal medal with the rank number until its painting (art 121) is fitted:
   bronze 1-2, iron 3-4, silver 5-6, gold 7-9, sunfire 10. Used beside names in chat, on the weekly boards, in the arena strip and on the Sunfall ranks tab. */
.sunfall-badge{display:inline-grid;place-items:center;flex:none;width:18px;height:18px;margin-right:5px;border-radius:50%;vertical-align:-3px;font:700 .625rem/1 var(--uk-sans,system-ui);color:#1b1509;
 background:radial-gradient(circle at 35% 30%,#f4d7a8,#b07a45 55%,#6e4524);box-shadow:0 0 0 1px #0009,inset 0 0 0 1px #fff3}
.sunfall-badge.is-r3,.sunfall-badge.is-r4{background:radial-gradient(circle at 35% 30%,#e3e6ea,#8b9097 55%,#4c5056)}
.sunfall-badge.is-r5,.sunfall-badge.is-r6{background:radial-gradient(circle at 35% 30%,#ffffff,#c4cbd3 55%,#7d8792)}
.sunfall-badge.is-r7,.sunfall-badge.is-r8,.sunfall-badge.is-r9{background:radial-gradient(circle at 35% 30%,#fff1b8,#e0b54a 55%,#8a6418)}
.sunfall-badge.is-r10{background:radial-gradient(circle at 35% 30%,#fff7d1,#ffb43a 50%,#b2470e);box-shadow:0 0 0 1px #0009,0 0 8px #ffb43acc}
.sunfall-badge.is-none{background:#2a2724;color:#a89f8f}
.sunfall-badge.is-sm{width:16px;height:16px;font-size:.5625rem}
.sunfall-badge.is-md{width:34px;height:34px;margin:0;font-size:.9375rem}
.sunfall-badge.is-lg{width:64px;height:64px;margin:0;font-size:1.5rem}
.sunfall-badge-art{width:20px;height:20px;margin-right:5px;vertical-align:-4px}.sunfall-badge-art.is-sm{width:18px;height:18px}.sunfall-badge-art.is-md{width:40px;height:40px;margin:0}.sunfall-badge-art.is-lg{width:72px;height:72px;margin:0}
/* The Sunfall name colour in chat (rank 4 and up): warm sunfire gold with a faint glow. A guild colour still wins. */
.chat-class-name.chat-sunfall-name{color:#ffcf6b!important;text-shadow:0 0 6px #ff9a3c55}
.sunfall-stat dd{display:flex;align-items:center;justify-content:center;gap:4px}
.sunfall-now{display:flex;align-items:center;gap:14px;margin-bottom:10px}.sunfall-bar{flex:1;min-width:0}
.sunfall-ladder{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin:12px 0 0;padding:0;list-style:none}
.sunfall-ladder li{display:grid;justify-items:center;gap:3px;padding:8px 4px;border:1px solid #ffffff14;border-radius:6px;text-align:center;opacity:.72}
.sunfall-ladder li.is-have{opacity:1}.sunfall-ladder li.is-now{border-color:#e2bf82;box-shadow:inset 0 0 0 1px #e2bf8255}
/* Five rank cards a row: the name is a size smaller and the card's side padding is thin, so Shieldbreaker fits whole (it broke as "Shieldbreake r"; QA, 31 Oct). */
.sunfall-ladder li{padding-left:2px;padding-right:2px}.sunfall-ladder b{font-size:.75rem}.sunfall-ladder small,.sunfall-ladder em{font-size:.6875rem;font-style:normal;color:#a89f8f}
.sunfall-ladder small{text-wrap:balance}/* "1,000 on / your bar" over two even lines, not a lone "bar" */
.sunfall-how{margin:0 0 10px;padding-left:18px}.sunfall-how li{margin:3px 0}
.sunfall-wall{margin:0;padding:0;list-style:none}.sunfall-wall li{display:flex;align-items:center;gap:6px;padding:3px 0}.sunfall-wall small{color:#a89f8f}
.sunfall-news .uk-event-body{display:flex;align-items:center;gap:12px}.sunfall-news .uk-event-body>div{flex:1;min-width:0}
/* Phone: the rank and its name get the strip's whole first row (three 111px cells cut the name and the medal); Glory and fights share the second. */
@media (max-width:600px){.sunfall-ladder{grid-template-columns:repeat(2,minmax(0,1fr))}.sunfall-news .uk-event-body{flex-wrap:wrap}
 .uk-arena .uk-stats:has(>.sunfall-stat){grid-template-columns:repeat(2,minmax(0,1fr))}.uk-arena .uk-stats>.sunfall-stat{grid-column:1/-1;justify-content:center}}

/* /achievements.css */
/* Achievements side panel (public/achievements-ui.js; switch IRP_ACHIEVEMENTS_VERSION). UI kit v1 parts with a few panel-only rules. No animation. */
.ach-open{position:relative;display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 12px 0 6px;border:1px solid var(--uk-gold-dim,#8f7645);border-radius:22px;background:linear-gradient(180deg,#1e2c41,#111b2c);color:var(--uk-gold-text,#ffe1aa);font:600 .85rem/1 var(--uk-sans,inherit);cursor:pointer;box-shadow:inset 0 0 0 2px #0c1723,inset 0 0 0 3px #b8955a3d}
.realm-wallet.has-achievements{flex-direction:row;align-items:center;gap:14px}
.realm-wallet>.ach-open{order:-1;min-height:40px}
@media(max-width:1000px){.realm-wallet>.ach-open{order:0;min-height:44px}}
.ach-open:hover{border-color:var(--uk-gold,#d6b575);background:linear-gradient(180deg,#35455b,#1c2c40)}
.ach-open:focus-visible{outline:2px solid var(--uk-focus,#f4cd86);outline-offset:2px}
.ach-open .uk-art{width:30px;height:30px}
/* Painted achievement icons (art item 114, one 256 px webp each). They replace the kit sheet background; size still comes from the kit rules. */
.uk-art.ach-ico-trophy,.uk-art.ach-ico-account,.uk-art.ach-ico-boss-hunts,.uk-art.ach-ico-zones,.uk-art.ach-ico-feats,.uk-art.ach-ico-life{background:var(--ach-ico) center/contain no-repeat}
.ach-ico-trophy{--ach-ico:url('/assets/achievements/trophy.webp')}.ach-ico-life{--ach-ico:url('/assets/achievements/life-skilling.webp')}.ach-ico-account{--ach-ico:url('/assets/achievements/account.webp')}.ach-ico-boss-hunts{--ach-ico:url('/assets/achievements/boss-hunts.webp')}.ach-ico-zones{--ach-ico:url('/assets/achievements/zones.webp')}.ach-ico-feats{--ach-ico:url('/assets/achievements/feats.webp')}
.ach-open-count{display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 5px;box-sizing:border-box;border-radius:10px;background:linear-gradient(180deg,#f0ce83,#b08a43);color:#1d1408;font:700 .75rem/1 var(--uk-sans,inherit)}

.ach-layer,.ach-layer.modal-backdrop{position:fixed;inset:0;z-index:1000;display:block;padding:0;overflow:hidden;background:none;backdrop-filter:none}
.ach-backdrop{position:absolute;inset:0;background:#05090fb3}
.ach-panel{position:absolute;top:0;right:0;bottom:0;display:flex;flex-direction:column;width:min(500px,100vw);box-sizing:border-box;background:linear-gradient(180deg,#111b2c,#0c1521);border-left:1px solid var(--uk-gold-dim,#8f7645);box-shadow:-12px 0 32px #000a;color:var(--uk-ivory,#eadbb9)}
.ach-panel .ach-head{flex:0 0 auto;grid-template-columns:auto minmax(0,1fr) auto;min-height:0;margin:10px 10px 0;padding:14px 14px 12px}
.ach-head .uk-head-icon{width:56px;height:56px}
.ach-head .uk-head-icon .uk-art{width:56px;height:56px}
.ach-head .uk-head-text h1{margin:0;font-size:1.7rem}
.ach-panel .ach-close{align-self:start;width:44px;height:44px;font-size:1.6rem;line-height:1}
.ach-panel .ach-head>.ach-strip{grid-column:1/-1;padding:10px 0 0;border-top:1px solid #b69a6055;border-left:0}
.ach-panel .uk-progress{display:block}
.ach-strip small{font-size:.7em;color:var(--uk-ivory-dim,#c9c3b4)}
.ach-strip .is-ready dd{color:#ffd77a}
.ach-body{flex:1 1 auto;overflow-y:auto;overscroll-behavior:contain;padding:10px 10px calc(16px + env(safe-area-inset-bottom,0px));display:flex;flex-direction:column;gap:10px}

.ach-drops{display:grid;grid-template-columns:40px minmax(0,1fr);gap:10px;align-items:center;padding:10px 12px}
.ach-drops-title{display:flex;justify-content:space-between;gap:8px;margin:0 0 6px;font-size:.92rem}
.ach-drops-num{color:var(--uk-gold-text,#ffe1aa);font-family:var(--uk-serif,serif);font-size:1.05rem}
.ach-drops-help{margin:6px 0 0;color:var(--uk-ivory-dim,#c9c3b4);font-size:.8rem;line-height:1.35}

.ach-tabs{gap:6px;flex-wrap:nowrap}/* one row at every width, so a group never sits alone on a second row (docs/MENU_STANDARD.md 4) */
.ach-tabs>.uk-tab{flex:1 1 0;min-width:0;min-height:44px;padding:4px 6px;gap:5px;font-size:.82rem}
/* 0.75.0 UI QA: the panel is a .modal-backdrop, so ui-kit.css's phone tab rule (flex:1 1 auto, min-width:max-content) beat the rule above and Feats
   dropped onto a second row; this one is stronger. The ready count sits in the tab's corner and the icon never shrinks, so neither spills over the border. */
.ach-layer.modal-backdrop .ach-tabs>.uk-tab{position:relative;flex:1 1 0;min-width:0}
.ach-tabs>.uk-tab>:is(.uk-art,.uk-ico){flex:none}.ach-tabs>.uk-tab>.uk-tab-label{min-width:0}
.ach-tabs>.uk-tab>.ach-tab-ready{position:absolute;top:3px;right:3px}
/* Six groups (Life skilling with the Artisan patch on): icon over the label at every width, so the row still fits the panel without clipping. */
.ach-tabs:has(>.uk-tab:nth-child(6))>.uk-tab,.ach-layer.modal-backdrop .ach-tabs:has(>.uk-tab:nth-child(6))>.uk-tab{flex-direction:column;gap:2px;padding:4px 2px;font-size:.72rem;text-align:center;line-height:1.15}
.ach-tabs:has(>.uk-tab:nth-child(6))>.uk-tab :is(.uk-art,.uk-ico){width:22px;height:22px}
.ach-tab-ready{display:inline-grid;place-items:center;min-width:18px;height:18px;padding:0 4px;box-sizing:border-box;border-radius:9px;background:linear-gradient(180deg,#f0ce83,#b08a43);color:#1d1408;font:700 .7rem/1 var(--uk-sans,inherit)}

.ach-list{padding:16px 16px 14px}
.ach-list .uk-heading{margin:0 0 4px}
.ach-sub{margin:0 0 10px;color:var(--uk-ivory-dim,#c9c3b4);font-size:.86rem}
.ach-rows{display:flex;flex-direction:column;gap:6px;margin:0;padding:0;list-style:none}
.ach-row{display:grid;grid-template-columns:40px minmax(0,1fr) auto;gap:10px;align-items:center;min-height:56px;padding:8px 10px;border:1px solid #b69a6040;border-radius:var(--uk-radius-card,6px);background:linear-gradient(150deg,#182438,#0f1928)}
.ach-row.is-ready{border-color:var(--uk-gold,#d6b575);background:linear-gradient(150deg,#2b2a2a,#1a1a20);box-shadow:inset 0 0 0 1px #f0ce8333}
.ach-row.is-claimed{opacity:.72}
.ach-row.is-locked .ach-tile .uk-art,.ach-row.is-locked .ach-tile .uk-ico{filter:grayscale(.85) brightness(.75)}
.ach-row-body{display:flex;flex-direction:column;gap:2px;min-width:0}
.ach-row-title{font:600 .95rem/1.25 var(--uk-serif,serif);color:var(--uk-ivory,#eadbb9)}
.ach-row.is-ready .ach-row-title{color:var(--uk-gold-text,#ffe1aa)}
.ach-row-how{color:var(--uk-ivory-dim,#c9c3b4);font-size:.8rem;line-height:1.3}
.ach-row-bar{display:flex;align-items:center;gap:8px;margin-top:4px}
.ach-row-bar .uk-progress{flex:1 1 auto;height:8px}
.ach-row-have{font-size:.72rem;color:var(--uk-ivory-dim,#c9c3b4);white-space:nowrap}
.ach-inline-link{align-self:flex-start;margin-top:2px;padding:0;min-height:0;border:0;background:none;color:#cfe0ff;font-size:.8rem;text-decoration:underline;cursor:pointer}
.ach-row-end{display:flex;flex-direction:column;align-items:flex-end;gap:6px}
.ach-reward{padding:2px 9px 2px 3px}
.ach-reward b{font-size:.85rem}
.ach-crown{width:20px!important;height:20px!important}
.ach-claim,.ach-go{min-height:36px;min-width:84px;padding:0 12px;font-size:.85rem;text-decoration:none}
.ach-done{font-size:.75rem}
.ach-done .uk-ico{width:16px;height:16px}
.ach-foot{margin:12px 0 0;color:var(--uk-ivory-dim,#c9c3b4);font-size:.78rem;text-align:center}

@media(max-width:599px){
 .ach-panel{width:100vw;border-left:0}
 .ach-panel .ach-head{margin:0;border-radius:0;padding:12px 12px 10px;padding-top:calc(12px + env(safe-area-inset-top,0px))}
 .ach-head .uk-head-icon,.ach-head .uk-head-icon .uk-art{width:44px;height:44px}
 .ach-head .uk-head-text h1{font-size:1.45rem}
 .ach-head .uk-head-help{font-size:.85rem}
 .ach-tabs>.uk-tab{flex-direction:column;gap:2px;padding:4px 2px;font-size:.72rem}.ach-layer.modal-backdrop .ach-tabs>.uk-tab{padding:4px 2px}
 .ach-tabs>.uk-tab .uk-art,.ach-tabs>.uk-tab .uk-ico{width:22px;height:22px}
 .ach-list{padding:12px 10px 12px}
 .ach-row{grid-template-columns:36px minmax(0,1fr) auto;gap:8px;padding:8px}
 .ach-row .uk-icon-tile{width:36px;height:36px}
 .ach-open-label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
 .ach-open{padding:0 8px 0 6px}
}
@media(prefers-reduced-motion:no-preference){.ach-claim:not(:disabled){box-shadow:0 0 0 1px #f0ce8355,0 0 10px #f0ce8340}}

/* /guest.css */
/* Guest accounts (public/guest-ui.js; switch IRP_GUEST_VERSION). Sign-in page parts, the trial strip under the top bar, and the locked pages. No animation. */
.guest-entry .divider{margin:14px 0 12px}
.guest-entry .secondary{width:100%}
.guest-entry-note{margin:8px 0 0;text-align:center;font-size:.8rem;color:#b4ad9c}
.guest-panel>p{color:var(--uk-ivory-dim,#c9c3b4);line-height:1.5;margin:0 0 12px}
.guest-panel h2{margin-bottom:10px}
.guest-panel .guest-warning{display:flex;align-items:flex-start;gap:10px;padding:10px 12px;border:1px solid #9a7a3c;border-left:3px solid var(--uk-gold,#d6b575);border-radius:4px;background:linear-gradient(110deg,#2c2414,#141c26);color:var(--uk-ivory,#eadbb9);text-align:left}
.guest-panel .guest-in-app,.front-door-play .guest-in-app{margin:8px 0;padding:8px 12px;border-left:3px solid var(--uk-gold,#d6b575);background:#141c26;color:var(--uk-ivory,#eadbb9);text-align:left;font-size:.875rem;line-height:1.45}
.guest-warning .uk-ico{flex:none;width:20px;height:20px;margin-top:1px}
.guest-warning strong{color:var(--uk-gold-text,#ffe1aa)}
.guest-panel .guest-locks{font-size:.85rem}
.guest-panel button+button{margin-top:10px}
.guest-strip{display:flex;align-items:center;gap:12px;margin:8px 16px 0;padding:8px 10px 8px 12px;border:1px solid var(--uk-gold-dim,#8f7645);border-left:3px solid var(--uk-gold,#d6b575);border-radius:4px;background:linear-gradient(110deg,#2a2416,#111c2b);color:var(--uk-ivory,#eadbb9)}
.guest-strip p{flex:1;min-width:0;margin:0;font-size:.85rem;line-height:1.35}
.guest-strip strong{color:var(--uk-gold-text,#ffe1aa);margin-right:4px}
.guest-strip .uk-btn{flex:none;min-height:36px}
.guest-locked-body{display:flex;align-items:center;gap:14px;margin-top:12px;padding:16px}
.guest-locked-body p{flex:1;margin:0;line-height:1.5;color:var(--uk-ivory,#eadbb9)}
.guest-locked-body strong{display:block;color:var(--uk-gold-text,#ffe1aa)}
@media(max-width:600px){
 .guest-strip{margin:6px 8px 0;gap:8px}
 .guest-locked-body{flex-wrap:wrap}
 .guest-locked-body .uk-btn{width:100%}
}
/* What you unlock (the strip's button and the locked pages): kit cards in a grid of 4 at 1440 and 2 on phones, so rows stay full (8 cards; 7 when the Keystone Altar is off). */
.guest-strip-more{flex:none;min-height:36px}
.guest-strip.is-capped{border-left-color:var(--uk-gold-hi,#f0ce83)}
.uk-art.guest-art-keystone{background:url('/assets/three-paths/icons/keystones-v1.webp') 0 0/400% 300% no-repeat}
.guest-unlocks{list-style:none;margin:12px 0 0;padding:0}
:is(.shell,.modal-backdrop) .uk-grid.guest-unlocks{grid-template-columns:repeat(4,minmax(0,1fr))}
.guest-unlocks .uk-card-note{margin:6px 0 0;color:var(--uk-ivory-dim,#c9c3b4);font-size:.85rem;line-height:1.4}
.guest-unlock-layer{display:grid;place-items:center;padding:16px;z-index:60}
.guest-unlock-panel{width:min(980px,100%);max-height:calc(100vh - 32px);overflow:auto;padding:14px}
.guest-unlock-panel .uk-head{position:relative}
.guest-unlock-close{position:absolute;top:10px;right:10px}
.guest-unlock-actions{position:sticky;bottom:-14px;display:flex;justify-content:flex-end;gap:10px;margin:14px -14px -14px;padding:12px 14px;background:linear-gradient(180deg,rgba(16,26,42,.92),#101a2a);border-top:1px solid var(--uk-gold-dim,#8f7645)}
.guest-unlock-panel .uk-head-text{padding-right:56px}
@media(max-width:900px){:is(.shell,.modal-backdrop) .uk-grid.guest-unlocks{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Phones keep the strip to one row (26 Oct, new-player review): the long line and button label hide, the short ones show. Wider screens never show them. */
.guest-strip .guest-strip-short,.guest-strip .guest-strip-brief{display:none}
@media(max-width:600px){
 .guest-strip{flex-wrap:nowrap;gap:8px;padding:5px 6px 5px 8px}
 .guest-strip>p:not(.guest-strip-short),.guest-strip .guest-strip-long{display:none}
 .guest-strip .guest-strip-short{display:block;flex:1 1 auto;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .guest-strip .guest-strip-brief{display:inline}
 .guest-strip .uk-ico{width:18px;height:18px}
 .guest-strip .uk-btn{flex:none;min-height:36px;padding-inline:12px}
 .guest-unlock-layer{padding:8px;place-items:start center}
 .guest-unlock-panel{max-height:calc(100vh - 16px);padding:10px}
 .guest-unlock-actions{bottom:-10px;margin:12px -10px -10px;padding:10px}
 .guest-unlocks .uk-card-title{font-size:.95rem}
 .guest-unlocks .uk-card-note{font-size:.8rem}
 .guest-unlock-actions .uk-btn{flex:1}
}
/* The Guest tag (24 Oct): the kit state tag, dim, beside a guest's name in every list other players read (public/guest-ui.js tag). One size everywhere. */
.uk-state.guest-tag{flex:none;margin-left:6px;padding:0 6px;border-color:var(--uk-locked,#6c7788);color:var(--uk-locked-text,#9aa3b0);font-size:.72rem;line-height:1.45;vertical-align:middle;letter-spacing:.06em}
.guest-unlock-panel .uk-head-help strong{color:var(--uk-gold-text,#ffe1aa);font-weight:600}
.town-player-name .uk-state.guest-tag{font-size:.6em;margin-left:.45em;padding:0 .4em;border-radius:.8em;vertical-align:.15em}
/* The front door (IRP_FRONT_DOOR_VERSION, public/guest-ui.js play): one big Play button first, sign-in under it. */
.front-door-play{margin:4px 0 2px}.front-door-play .front-door-button{min-height:56px;font-size:1.25rem;letter-spacing:.08em}
.front-door-play .guest-in-app{margin-top:10px}.front-door-play .inline-error:empty{display:none}
.front-door-back>.red-button{min-height:56px;font-size:1.25rem;letter-spacing:.08em}.front-door-back .front-door-play .front-door-button{min-height:44px;font-size:1rem;letter-spacing:.04em}
.front-door .divider span{font-size:.6875rem;letter-spacing:.14em}.front-door-returning{margin-top:12px;font-size:.8125rem}
/* The guest bridge (IRP_GUEST_BRIDGE_VERSION): a guest browsing the Marketplace. */
.guest-browse-note{display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px;margin:8px 0 0;padding:6px 10px;border:1px solid #9a7a3c;border-left:3px solid var(--uk-gold,#d6b575);border-radius:4px;background:#1a1610cc;color:var(--uk-ivory,#eadbb9);font-size:.875rem;line-height:1.4}.guest-browse-note .uk-btn{min-height:32px;padding:4px 12px}

/* /ui-auction.css */
/* Auction House on the UI kit: LAYOUT ONLY (grid, spacing, clamping). WRITTEN, NEVER RUN.
   Linked in index.html before ui-kit.css (which stays last); every rule starts with .ah-page (the <main> of the kit screen), so it does nothing until IRP_UI_AUCTION_VERSION draws that markup.
   Markup: public/ui-auction.js. Plan and map: docs/NEXT_UI_AUCTION_2026-10-04.md. Rules in this file beat the kit's own button rules (same specificity, kit loads last) by starting with ".shell .ah-page".
   Colours, frames and shadows come from public/ui-kit.css tokens only (no colour literal here). Phones: no fixed width over 320 px, nothing wider than the screen, 44 px targets (buttons, tabs, fields and slots get theirs from the kit). */
.shell .ah-page{display:grid;gap:14px;align-content:start;min-width:0;container:ahpage/inline-size}
.shell .ah-page>*{min-width:0}
.shell .ah-page [hidden]{display:none!important}
.shell .ah-page label{margin:0}
.shell .ah-page .ah-panel{display:grid;gap:14px;align-content:start;min-width:0;container:ahp/inline-size}
.shell .ah-page .ah-h{margin:0;font:600 1.2rem/1.2 var(--uk-serif);color:var(--uk-ivory);overflow-wrap:anywhere}
.shell .ah-page .ah-sec{display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px;min-width:0}

/* Header: title row (guide link and refresh), one help line, the three numbers. */
.shell .ah-page .uk-title-row>h1{flex:0 1 auto;overflow-wrap:anywhere}
.shell .ah-page .ah-head{margin:0}
.shell .ah-page .ah-add-slots{margin-top:8px}
.shell .ah-page .ah-tabs{margin:0}
@container ahpage (max-width:560px){.shell .ah-page .ah-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Browse: search, category tiles, type buttons, two drop-downs, then the result count and the rows. */
.shell .ah-page .ah-filters{display:grid;gap:12px;min-width:0}
/* Full review (3 Nov): Can wear now is a filter, so it sits as a chip at its own width instead of a full-width gold bar that read as the page's main button. */
.shell .ah-page .ah-filters>.ah-wear{justify-self:start;padding-inline:16px}
.shell .ah-page .ah-search{position:relative}
.shell .ah-page .ah-suggest{display:grid;gap:4px;max-height:320px;padding:4px;overflow:auto;border:1px solid var(--uk-gold-dim);border-radius:var(--uk-radius);background:var(--uk-navy-0)}
.shell .ah-page .ah-suggest button{display:flex;align-items:center;gap:10px;width:100%;min-height:52px;padding:6px 10px;border:0;border-radius:var(--uk-radius);background:var(--uk-navy-1);color:var(--uk-ivory);text-align:left;cursor:pointer}
.shell .ah-page .ah-suggest button[aria-selected="true"]{outline:3px solid var(--uk-focus);outline-offset:-3px}
.shell .ah-page .ah-suggest button:focus-visible{outline:3px solid var(--uk-focus);outline-offset:-3px}
.shell .ah-page .ah-suggest .gear-icon{flex:0 0 38px;width:38px;height:40px}
.shell .ah-page .ah-suggest strong,.shell .ah-page .ah-suggest small{display:block;white-space:normal;overflow-wrap:anywhere}
.shell .ah-page .ah-suggest small{font-size:.71875rem;color:var(--uk-ivory-dim)}
/* The line under the name already says Unique, Set, Charm or Rune; the corner badge wrapped and hid the art in this small box. */
.shell .ah-page .ah-suggest .item-tier-badge{display:none}
.shell .ah-page .ah-cats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.shell .ah-page .ah-cat{flex-direction:row;justify-content:flex-start;gap:8px;min-width:0;min-height:48px;padding:4px 8px;text-align:left}
.shell .ah-page .ah-cat-ico{display:block;flex:0 0 28px;width:28px;height:32px}
.shell .ah-page .ah-cat-ico>*{display:block;width:100%;height:100%;font-size:1rem}
.shell .ah-page .ah-cat-ico .item-tier-badge,.shell .ah-page .ah-cat-ico b{display:none}
.shell .ah-page .ah-cat-t{min-width:0;overflow-wrap:anywhere}
.shell .ah-page .ah-types{display:flex;flex-wrap:wrap;gap:6px}
.shell .ah-page .ah-type{flex:0 1 auto;min-width:0;gap:6px;padding:6px 12px}
.shell .ah-page .ah-type small{font:500 .71875rem/1 var(--uk-sans);color:var(--uk-ivory-dim)}
.shell .ah-page .ah-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.shell .ah-page .ah-results{display:grid;gap:12px;align-content:start;min-width:0}
.shell .ah-page .ah-meta{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;min-width:0;color:var(--uk-ivory-dim)}
.shell .ah-page .ah-count{margin:0;font:600 .9rem/1.3 var(--uk-sans);overflow-wrap:anywhere}
.shell .ah-page .ah-count b{color:var(--uk-gold-text)}
.shell .ah-page .ah-tip,.shell .ah-page .ah-foot{margin:0}
@container ahp (min-width:480px){
 .shell .ah-page .ah-cats{grid-template-columns:repeat(4,minmax(0,1fr))}
 .shell .ah-page .ah-cat{flex-direction:column;justify-content:center;gap:3px;min-height:68px;padding:5px 4px;text-align:center;font-size:.71875rem}
 .shell .ah-page .ah-cat-ico{flex:0 0 auto}
}
@container ahp (min-width:860px){.shell .ah-page .ah-cats{grid-template-columns:repeat(8,minmax(0,1fr))}}
@container ahp (max-width:419px){.shell .ah-page .ah-pair{grid-template-columns:minmax(0,1fr)}.shell .ah-page .ah-pair.is-num{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* A listing row: item picture, name (a button that opens the details), rarity word, class and level, seller and time; price and the one action on the line below. */
.shell .ah-page .ah-lots{grid-template-columns:minmax(0,1fr)}
.shell .ah-page .ah-lot .uk-row-main{align-items:flex-start}
.shell .ah-page .ah-ico{display:block;flex:0 0 auto;width:64px;height:64px}
.shell .ah-page .ah-ico.is-lg{width:72px;height:72px}
.shell .ah-page .ah-ico>*{display:block;width:100%;height:100%;max-height:none;font-size:1.9rem}
.shell .ah-page .ah-name{display:block;box-sizing:border-box;width:100%;min-height:var(--uk-tap);margin:-12px 0 -14px;padding:12px 0 14px;border:0;border-radius:0;background:none;box-shadow:none;color:inherit;font:inherit;text-align:left;cursor:pointer}
.shell .ah-page .ah-name:hover .uk-row-title{color:var(--uk-gold-text)}
.shell .ah-page .ah-name:focus-visible{outline:3px solid var(--uk-focus);outline-offset:-3px}
.shell .ah-page .uk-row-sub{overflow-wrap:anywhere}
.shell .ah-page .ah-rar{color:var(--uk-rarity);font-weight:700}
.shell .ah-page .ah-tags{margin-top:2px}
.shell .ah-page .ah-lot .uk-row-foot>.uk-btn,.shell .ah-page .ah-lot .uk-row-foot>.uk-state{flex:1 1 96px;min-width:96px;max-width:200px;margin-left:auto}
.shell .ah-page .ah-lot .uk-row-foot>.uk-price{flex:0 1 auto}
.shell .ah-page .ah-extra{border-top:1px solid var(--uk-navy-3)}
.shell .ah-page .ah-time{display:grid;gap:3px}
.shell .ah-page .ah-time-text{font:500 .8rem/1.3 var(--uk-sans);color:var(--uk-ivory-dim)}
.shell .ah-page .ah-sentence{margin:0;font-size:.9rem;line-height:1.4;color:var(--uk-ivory)}
.shell .ah-page .ah-note{flex:1 0 100%;margin:0}
.shell .ah-page .ah-block{display:grid;grid-template-columns:auto minmax(0,1fr);gap:4px 12px;align-items:start;margin:0;padding:12px}
.shell .ah-page .ah-block>.uk-ico{width:30px;height:30px}
.shell .ah-page .ah-ico .item-tier-badge,.shell .ah-page .ah-slot-art .item-tier-badge,.shell .ah-page .ah-ico b,.shell .ah-page .ah-slot-art b,.shell .ah-page .ah-order .uk-card-icon b{font-size:.71875rem}
.shell .ah-page .uk-label{font-size:.71875rem}
.shell .ah-page .ah-block p{margin:0;line-height:1.4}
.shell .ah-page .ah-block .uk-btn{margin-top:10px}
@container ahp (min-width:880px){.shell .ah-page .ah-lots{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){.shell .ah-page .ah-ico{width:56px;height:56px}.shell .ah-page .ah-ico.is-lg{width:64px;height:64px}}

/* Sell: the bag grid beside the chosen item and its price form. */
.shell .ah-page .ah-sell{display:grid;gap:14px;grid-template-columns:minmax(0,1fr);align-items:start}
.shell .ah-page .ah-bag{display:grid;grid-template-columns:repeat(auto-fill,minmax(56px,1fr));gap:8px;margin:0;padding:0;list-style:none}
.shell .ah-page .ah-slot{--uk-slot:100%;width:100%;height:auto;aspect-ratio:1;min-width:56px;min-height:56px}
.shell .ah-page .ah-slot-art{display:block;width:100%;height:100%}
.shell .ah-page .ah-slot-art>*{display:block;width:100%;height:100%;max-height:none;border:0;border-radius:0;box-shadow:none;font-size:1.6rem}
.shell .ah-page .ah-slot.is-selected .ah-slot-art .item-tier-badge{display:none}
.shell .ah-page .ah-selection{max-width:none;margin:0}
.shell .ah-page .ah-sel-head{display:grid;grid-template-columns:auto minmax(0,1fr);gap:12px;align-items:center}
.shell .ah-page .ah-sel-text{display:grid;gap:4px;min-width:0}
.shell .ah-page .ah-actions{display:flex;flex-wrap:wrap;gap:8px}
.shell .ah-page .ah-actions>*{flex:1 1 140px}
.shell .ah-page .ah-form{display:grid;gap:14px;align-items:stretch;min-width:0;padding:0;border:0}
.shell .ah-page .ah-stats-body{padding:8px 4px;overflow-wrap:anywhere}
@container ahpage (min-width:860px){.shell .ah-page .ah-sell{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}}

/* Buy orders: the form beside your orders and the other buyers' orders. */
.shell .ah-page .ah-orders{display:grid;gap:14px;grid-template-columns:minmax(0,1fr);align-items:start}
.shell .ah-page .ah-panel-stack{display:grid;gap:14px;min-width:0}
.shell .ah-page .ah-order-grid{--uk-card-min:240px}
.shell .ah-page .ah-order .uk-card-icon>*{display:block;width:34px;height:34px;font-size:1.2rem}
@container ahpage (min-width:860px){.shell .ah-page .ah-orders{grid-template-columns:minmax(0,340px) minmax(0,1fr)}}

/* Other buyers sits behind a tap (closed by default); quantity boxes have minus and plus buttons (kit .uk-stepper). */
.shell .ah-page .ah-others>summary{cursor:pointer;list-style:none;min-height:44px}
.shell .ah-page .ah-others>summary::-webkit-details-marker{display:none}
.shell .ah-page .ah-others>summary::before{content:'\25B8';color:var(--uk-gold)}
.shell .ah-page .ah-others[open]>summary::before{transform:rotate(90deg)}
.shell .ah-page .ah-others[open]>summary{margin-bottom:10px}
.shell .ah-page .ah-matpick{display:grid;gap:8px;min-width:0}
.shell .ah-page .ah-bcats{display:flex;flex-wrap:wrap;gap:8px}
.shell .ah-page .ah-bcat{min-height:44px;display:inline-flex;align-items:center;gap:8px}
.shell .ah-page .ah-bmats{display:grid;grid-template-columns:repeat(auto-fill,minmax(92px,1fr));gap:8px}
.shell .ah-page .ah-bmat{min-height:44px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding:4px 6px;text-align:center;cursor:pointer}
.shell .ah-page .ah-bmat-name{min-width:0;overflow-wrap:break-word}


/* Browse > Materials: open buy orders of other players, above the listings. */
.shell .ah-page .ah-wanted{margin:12px 0}
.shell .ah-page .ah-wanted .uk-btn{margin-top:10px}
.shell .ah-page .ah-wanted-art{flex:none;width:40px;height:40px;display:inline-flex;align-items:center;justify-content:center;overflow:hidden}
.shell .ah-page .ah-wanted-art>*{max-width:100%;max-height:100%;width:100%;height:100%;object-fit:contain}

/* Even category rows (IRP_UI_BUY_CATEGORIES_VERSION): rows are always full, so no category sits alone on a row.
   9 categories: 3 x 3 on a phone, one row of 9 from 700 px. 8 categories: 4 x 2, one row of 8 from 700 px.
   Every icon sits on the kit's .uk-icon-tile (ui-kit.css): painted art on one dark square, no rarity colour. */
.shell .ah-page .ah-cats-even{grid-template-columns:repeat(3,minmax(0,1fr))}
.shell .ah-page .ah-cats-even[data-n="8"],.shell .ah-page .ah-cats-even[data-n="4"]{grid-template-columns:repeat(4,minmax(0,1fr))}
.shell .ah-page .ah-cats-even .ah-cat{flex-direction:column;justify-content:center;gap:4px;min-height:76px;padding:6px 4px;text-align:center;font-size:.75rem;line-height:1.2}
.shell .ah-page .ah-cats-even .ah-cat-ico{flex:0 0 auto;width:38px;height:38px}
@container ahp (min-width:700px){.shell .ah-page .ah-cats-even{grid-template-columns:repeat(var(--ah-n,9),minmax(0,1fr))}.shell .ah-page .ah-cats-even[data-n="8"]{--ah-n:8}.shell .ah-page .ah-cats-even[data-n="9"]{--ah-n:9}.shell .ah-page .ah-cats-even .ah-cat{min-height:84px}.shell .ah-page .ah-cats-even .ah-cat-ico{width:44px;height:44px}}
/* Menu audit 23 Oct: Rarity, Sort and the shard filters are chip rows instead of drop-downs (look in fractured-shards.css). One row per filter, 44 px chips. */
.shell .ah-page .ah-chipset{margin:0;padding:0;border:0;min-width:0}
.shell .ah-page .ah-chip-row{display:flex;flex-wrap:wrap;gap:6px}
.shell .ah-page .ah-chip{display:inline-flex;align-items:center;justify-content:center;margin:0;position:relative;min-height:44px;padding:4px 14px;white-space:nowrap;cursor:pointer}
@container ahp (max-width:899px){.shell .ah-page .ah-chip-row{flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;padding-bottom:4px}.shell .ah-page .ah-chip{flex:none}}
/* Relist All (Quest Tree perk): one row above Needs you with the expired listings, the fee and the button. */
.shell .ah-page .ah-relist{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:8px 12px;align-items:center;margin:0 0 12px;padding:10px 12px}
.shell .ah-page .ah-relist>.uk-ico{width:30px;height:30px}
.shell .ah-page .ah-relist p{margin:0;line-height:1.4}
@media(max-width:540px){.shell .ah-page .ah-relist{grid-template-columns:auto minmax(0,1fr)}.shell .ah-page .ah-relist>.uk-btn{grid-column:1/-1;width:100%}}
/* Artisan flasks and scrolls in Browse (Artisan patch): Buy 1 and Buy 5 side by side in the row foot. */
.shell .ah-page .ah-artisan-buy{display:flex;gap:8px;flex-wrap:wrap}
/* Sell on the Auction House from the bag (1 Nov): a material's buy orders above the sell form, highest first. */
.shell .ah-page .ah-sale-orders{margin:12px 0}
.shell .ah-page .ah-sale-orders .uk-row-list{gap:6px}
.shell .ah-page .ah-sale-orders .uk-row{padding:8px 12px}
.shell .ah-page .ah-sale-orders .uk-row-title .uk-state{margin-left:8px;vertical-align:middle}
.shell .ah-page .ah-sale-orders .uk-hint{margin-top:8px}
/* Header stat tiles (found by the live-switches play, 5 Oct): "Your gold" with six or more digits broke in the middle of the number ("500,00" over "0") because the kit lets a stat value wrap anywhere and the three tiles share one narrow column equally.
   Scoped to the Auction House header: the gold tile takes the width its number needs, the other two share the rest, and a value never wraps. Phones use the smaller size of the Hunts and Guild tiles. */
.shell .ah-page .ah-head .uk-stats{grid-template-columns:max-content minmax(0,1fr) minmax(0,1fr)}
.shell .ah-page .ah-head .uk-stat dd{overflow-wrap:normal;white-space:nowrap;font-size:clamp(1rem,2.4vw,1.35rem)}
@media(max-width:480px){.shell .ah-page .ah-head .uk-stat{padding:0 3px}.shell .ah-page .ah-head .uk-stat dd{font-size:1rem}}

/* /auction-browse.css */
/* Auction House browsing, shared by the hero's and the Artisan's Auction House (Pat, 28 Oct): "rather than rows and rows of new items there should be
   a simpler way to find what a player is looking for", "i dont like the all goods section", "can we not have a side panel ... similar to the video" (Void).
   A side panel of categories, the open one on its types; one card per item beside it; phones slide the panel out from a button. UI-kit colours. */
.am-grid{--uk-card-min:200px;margin:0 0 12px;list-style:none;padding:0}
.am-grid>.am-card{display:flex;min-width:0}
.am-card-btn{display:grid;grid-template-columns:56px minmax(0,1fr);grid-template-rows:auto auto auto;column-gap:10px;align-items:center;width:100%;height:100%;min-height:88px;padding:10px;border:1px solid var(--uk-gold-dim);border-radius:var(--uk-radius);background:linear-gradient(180deg,#1d2b44,#131e31);color:var(--uk-ivory);text-align:left;cursor:pointer}
.am-card-btn:hover,.am-card-btn:focus-visible{border-color:var(--uk-gold);background:linear-gradient(180deg,#24365a,#16233a)}
.am-card-pic{grid-row:1/4;display:grid;place-items:center;width:56px;height:56px}
.am-card-pic img,.am-card-pic>svg{width:56px;height:56px;object-fit:contain}
.am-card-name{font:600 .92rem/1.2 var(--uk-serif,serif);color:var(--uk-gold-text);overflow-wrap:anywhere}
.am-card-sub{font:500 .75rem/1.3 var(--uk-sans);color:var(--uk-ivory-dim)}
.am-card-price{display:flex;align-items:center;gap:4px;font:700 .95rem/1.2 var(--uk-sans);color:var(--uk-ivory)}
.am-card-price small{font-weight:500;color:var(--uk-ivory-dim)}
.am-card.is-none .am-card-btn{opacity:.72}
@media(max-width:480px){.uk-grid.am-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.am-card-btn{grid-template-columns:36px minmax(0,1fr);min-height:84px;padding:8px;column-gap:8px}.am-card-pic,.am-card-pic img,.am-card-pic>svg{width:36px;height:36px}.am-card-price small{font-size:.7rem}}
/* The Auction House side panel (Pat, 28 Oct, his Void video): categories down the left, the open one on its types; the cards beside it. */
.am-browse{display:grid;grid-template-columns:250px minmax(0,1fr);gap:16px;align-items:start}
.am-side{position:sticky;top:12px;padding:12px 10px;max-height:calc(100vh - 24px);overflow:auto}
.am-side-h,.am-side .am-side-h{margin:0 6px 8px;font:700 .72rem/1.3 var(--uk-sans);letter-spacing:.12em}
.am-side-list,.am-side-types{list-style:none;margin:0;padding:0}
.am-side-types{margin:2px 0 8px 22px;padding-left:10px;border-left:1px solid #c7ac7340}
.am-side-cat,.am-side-type{display:flex;align-items:center;gap:10px;width:100%;min-height:44px;padding:6px 8px;border:1px solid transparent;border-radius:var(--uk-radius);background:none;color:var(--uk-ivory);text-align:left;cursor:pointer;font:600 .9rem/1.2 var(--uk-sans)}
.am-side-type{min-height:44px;padding:4px 8px;font-weight:500;font-size:.86rem;color:var(--uk-ivory-dim)}
.am-side-cat .ah-cat-ico{flex:0 0 34px;width:34px;height:34px}
.am-side-cat .ah-cat-ico img,.am-side-cat .ah-cat-ico .uk-art{width:26px;height:26px;object-fit:contain}
.am-side-pic{display:grid;place-items:center;flex:0 0 28px;width:28px;height:28px}
.am-side-pic img{width:28px;height:28px;object-fit:contain}
.am-side-t{flex:1 1 auto;min-width:0;overflow-wrap:anywhere}
.am-side-cat small,.am-side-type small{flex:0 0 auto;font:600 .72rem/1 var(--uk-sans);color:var(--uk-ivory-dim)}
.am-side-cat:hover,.am-side-type:hover,.am-side-cat:focus-visible,.am-side-type:focus-visible{background:#ffffff0d;border-color:#c7ac7355;color:var(--uk-ivory)}
.am-side-cat[aria-expanded="true"]{color:var(--uk-gold-text)}
.am-side-cat[aria-current="page"],.am-side-type[aria-current="page"]{background:linear-gradient(90deg,#c7ac7333,#c7ac730d);border-color:var(--uk-gold-dim);color:var(--uk-gold-text)}
.am-main{min-width:0}
.am-main .ah-search{margin:0 0 12px}
.am-main .am-grid{margin-bottom:10px}
.am-crumb{display:flex;align-items:center;gap:10px;margin:0 0 10px;font:600 1.2rem/1.2 var(--uk-serif,serif);color:var(--uk-gold-text)}
.am-crumb .ah-cat-ico{flex:0 0 36px;width:36px;height:36px}
.am-crumb .ah-cat-ico img,.am-crumb .ah-cat-ico .uk-art{width:28px;height:28px;object-fit:contain}
.am-crumb small{margin-left:auto;font:500 .8rem/1 var(--uk-sans);color:var(--uk-ivory-dim)}
.am-side-open,.am-browse .am-side-open.uk-btn{display:none}
/* Phones: the panel opens in place under its button (the Auction House page is a size container, so a fixed drawer would sit inside it). */
@media(max-width:760px){
 .am-browse{display:block}
 .am-browse>.am-side.uk-frame{display:none;position:static;max-height:none;margin:0 0 12px}
 .am-browse>.am-side.uk-frame.is-open{display:block}
 .am-side-open,.am-browse .am-side-open.uk-btn{display:flex;align-items:center;gap:10px;width:100%;min-height:52px;margin:0 0 12px;padding:6px 12px;text-align:left}
 .am-side-open .ah-cat-ico{flex:0 0 36px;width:36px;height:36px}
 .am-side-open .ah-cat-ico img,.am-side-open .ah-cat-ico .uk-art{width:28px;height:28px;object-fit:contain}
 .am-side-change{flex:0 0 auto;font-size:.8rem;color:var(--uk-gold)}
 .am-side-open[aria-expanded="true"] .am-side-change>span{display:inline-block;transform:rotate(90deg)}
 .am-crumb{display:none}
 .am-card-price{white-space:nowrap;font-size:.9rem}
}
.am-main h3.ah-h{margin:18px 0 8px}
.am-main .am-back{width:auto}
.am-side-pic>*,.am-side-pic svg{max-width:28px;max-height:28px}
.am-side-cat .ah-cat-ico>*,.am-side-open .ah-cat-ico>*,.am-crumb .ah-cat-ico>*{max-width:28px;max-height:28px;width:28px;height:28px}
.ah-page .am-browse .ah-filters{margin:0 0 12px}
/* Artisan gear by rarity (Pat, 31 Oct: listed "like combat equipment to show different rarities and stats"). .uk-row resets --uk-rarity after the ui-kit
   rarity classes, so the row's own rarity is set again here; graded gear also shows its name in its rarity colour, as combat gear does. */
.am-page .uk-row.uk-r-common{--uk-rarity:var(--uk-rarity-common)}.am-page .uk-row.uk-r-superior{--uk-rarity:var(--uk-rarity-superior)}.am-page .uk-row.uk-r-rare{--uk-rarity:var(--uk-rarity-rare)}.am-page .uk-row.uk-r-epic{--uk-rarity:var(--uk-rarity-epic)}.am-page .uk-row.uk-r-heroic{--uk-rarity:var(--uk-rarity-heroic)}
.am-page .uk-row.has-edge{border-left:4px solid var(--uk-rarity)}
.am-page .uk-row.am-graded .uk-row-title{color:var(--uk-rarity)}
.am-page .uk-row .am-need{font-size:.78rem;color:var(--uk-ivory-dim)}

/* /ui-affixmarks.css */
/* Prefix / suffix marks: page-local LAYOUT for public/ui-affixmarks.js (docs/NEXT_UI_AFFIXMARKS_2026-10-03.md). WRITTEN, NEVER RUN.
   Every rule needs a class that exists only in markup written while IRP_UI_AFFIXMARKS_VERSION is on (.am-kind, .am-strip), so with the switch off nothing here matches.
   Linked before ui-kit.css (the kit stays last). Colours are kit tokens only: Prefix is the kit's gold chip, Suffix the same chip in the kit's dim ivory,
   Tier 0 the kit's gold badge fill (--uk-gold with --uk-navy-0 text, as .uk-badge), a full side the kit's done chip. Prefix and Suffix differ by their WORD first. */

/* The chip beside a modifier line. Specificity (0,2,0) so it beats the old '.gear-affixes span' rule (uppercase, margin, colour) that also matches a span in the list. */
.am-kind.uk-chip{display:inline-flex;margin:0 0 0 8px;min-height:22px;padding:1px 9px;text-transform:none;letter-spacing:0;font:600 .72rem/1.2 var(--uk-sans,system-ui);white-space:nowrap;vertical-align:middle}
.am-kind.am-prefix{border-color:var(--uk-gold-dim);color:var(--uk-gold-text)}
.am-kind.am-suffix{border-color:var(--uk-ivory-dim);color:var(--uk-ivory-dim)}
.am-kind.am-tier0{border-color:var(--uk-gold-hi);background:var(--uk-gold);color:var(--uk-navy-0)}
/* In a narrow line the chip drops below the text as a whole (it never breaks inside). */
.gear-affixes>li>.am-kind.uk-chip{margin-top:2px}

/* The slot strip under the item name. */
.am-strip.uk-chips{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0 10px;padding:0;list-style:none}
.am-strip .am-cap.uk-chip{display:inline-flex;align-items:baseline;gap:5px;margin:0;min-height:26px;padding:3px 10px;text-transform:none;letter-spacing:0;font:600 .78rem/1.3 var(--uk-sans,system-ui);color:var(--uk-gold-text)}
.am-strip .am-cap b{font-weight:700;font-variant-numeric:tabular-nums;color:inherit}
.am-strip .am-cap.am-full{color:var(--uk-done)}
.am-strip .am-cap-state{font:700 .74rem/1.3 var(--uk-sans,system-ui);letter-spacing:0;text-transform:none}
.am-strip .am-fixed{color:var(--uk-ivory-dim)}
.am-strip .am-cap.am-t0.uk-chip{border-color:var(--uk-gold-hi);color:var(--uk-gold-text);white-space:normal}
/* The one-line text form (comparison, salvage rows): plain words, a full side in the kit's done colour plus the word. */
.am-line{margin:2px 0 0;font:600 .74rem/1.45 var(--uk-sans,system-ui);color:var(--uk-ivory-dim)}
.am-line .am-part{display:inline-block;margin-right:10px;overflow-wrap:anywhere}
.am-line b{font-weight:700;font-variant-numeric:tabular-nums;color:var(--uk-gold-text)}
.am-line .am-part-full,.am-line .am-part-full b{color:var(--uk-done)}

/* Enchanter list: the chip stands first in the row's main line, the name next to it, the tier at the end. */
.enchanter-affix-main>.am-kind.uk-chip{order:-1;flex:none;align-self:center;margin:0}
.enchanter-affix-main.am-has-kind{flex-wrap:wrap;gap:3px 8px}
.enchanter-affix-main.am-has-kind>strong{flex:1 1 8em;margin-right:auto}
/* The pool of possible modifiers: each name carries its side. */
.enchanter-pool>span .am-kind.uk-chip{margin-left:6px}
.enchanter-pool>span.am-has-kind{display:inline-flex;align-items:center;flex-wrap:wrap}

/* Salvage prompt: the text line sits under the item name. */
.salvage-review .salvage-item-list li.am-has-line{flex-wrap:wrap}
.salvage-review .salvage-item-list li>.am-line{flex:1 0 100%;margin:0}

/* Comparison: one text line under each item name. */
.compare-items>div>.am-line{margin:0;min-width:0;max-width:100%}
.compare-items>div>.am-line .am-part{display:block;margin:0}

/* Tier 0 frame, narrow screens (fixes after Dev 1 run): the gold frame of an item card (.tier0-item: a 3 px rail 5 px inside the card edge) sat on the first characters of the strip and of every modifier line at 320 px, where the inventory dialog gives the card no padding. 14 px clears the rail with room to spare. Scoped to the card of a Tier 0 item, and to the strip and the list that follows it (no parent-state selector). */
@media(max-width:480px){
.item-details.tier0-item .am-strip.uk-chips{padding-inline:14px}
.item-details.tier0-item .am-strip~.gear-affixes>li{padding-inline:14px}
}

/* Tier 0 frame, narrow screens, round 2 (F2): the same rail still sat on the first letters of the title block (rarity, name, kind, tier, item level and requirements), of "Which stats can this slot roll?", of the base box and of the Sell-for-gold line, which also have no padding at the edge. Same 14 px as the two rules above, only on the card of a Tier 0 item. */
@media(max-width:480px){
.item-details.tier0-item .item-detail-title{padding-inline:14px}
.item-details.tier0-item>.text-button{margin-inline:14px}
.item-details.tier0-item>.gear-base{margin-inline:14px}
.item-details.tier0-item>.az-inline-form{padding-inline:14px}
}

/* Tier 0 frame, wider screens (found by the live-switches play, 5 Oct): the 14 px gap above is only inside the narrow media query, but the gold rail (3 px, 5 px inside the card edge) also sat on the "+" of every modifier line and on the first letters of the strip, the "Which stats can this slot roll?" link and the base box at 481 px and wider (desktop, tablet, a phone on its side). The same six rules for the other widths; at 480 px and narrower nothing changes. Scoped to the card of a Tier 0 item; no parent-state selector. */
@media(min-width:481px){
.item-details.tier0-item .am-strip.uk-chips{padding-inline:14px}
.item-details.tier0-item .am-strip~.gear-affixes>li{padding-inline:14px}
.item-details.tier0-item .item-detail-title{padding-inline:14px}
.item-details.tier0-item>.text-button{margin-inline:14px}
.item-details.tier0-item>.gear-base{margin-inline:14px}
.item-details.tier0-item>.az-inline-form{padding-inline:14px}
}
/* Capacity chip at 320 px (switch IRP_T0_SLOT_VERSION, 2026-10-05): 'Prefixes 3 / 3 (includes Tier 0) No free slot' broke inside the word 'Prefixes' and inside the count. The label and the count never break; the chip may wrap BETWEEN its parts, so the includes note goes to its own line. Only chips of the capacity strip (am- classes); nothing else changes. */
.am-strip .am-cap.uk-chip{flex-wrap:wrap;max-width:100%}
.am-strip .am-cap-name,.am-strip .am-cap b{white-space:nowrap}

/* /expedition-bar.css */
/* Compact expedition bar (IRP_UI_EXPEDITION_BAR_VERSION). Every rule is scoped to .arena-heading.ex-bar, a class public/expedition-bar.js adds only while the switch is on: with the switch off nothing here matches.
   Colours come from the ui-kit tokens; no gradient, no glow, no motion: the bar is never animated.
   Layout pass (Pat, 21 Oct 2026: "too compacted, stuff not aligning"): everything sits in one centred column at most 48rem wide, so the edges line up row to row.
   Row 1: XP per hour | zone name, floor line and pack track | gold per hour, both numbers styled as the kit's .uk-stat and set off by a thin rule.
   Then one full-width row each, in this order, 8 px apart: your health (phones), Next up, the notices (party fell, next step, Boss Hunt threats, shard strip), the formation line.
   The zone block is display:contents so the party-fell note the page appends inside it gets its own row instead of squeezing between the title and the track.
   At 480 px and narrower: the zone first, then XP and gold as a two-number strip under a rule, then the same rows. */
.arena-column>.arena-heading.ex-bar{display:grid;grid-template-columns:minmax(88px,max-content) minmax(0,1fr) minmax(0,340px) max-content minmax(0,1fr) minmax(88px,max-content);align-items:center;column-gap:0;row-gap:0;min-height:0;padding:8px max(14px,calc((100% - 48rem) / 2)) 10px;background:var(--uk-navy-1);box-shadow:none;border-bottom:1px solid var(--uk-gold-dim)}
.arena-heading.ex-bar>#adventureRates.ex-rates{display:contents}
.arena-heading.ex-bar>#formationStatus{grid-column:1/-1;order:4;margin:6px 0 0;padding:0;border:0;font:.71875rem/1.2 var(--uk-sans);text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.arena-heading.ex-bar .ex-xp,.arena-heading.ex-bar .ex-gold{display:flex;flex-direction:column-reverse;align-items:center;justify-content:center;gap:2px;min-width:0;grid-row:1/4;align-self:stretch;padding:0 14px;text-align:center}
.arena-heading.ex-bar .ex-xp{grid-column:1;border-right:1px solid var(--uk-gold-dim)}
.arena-heading.ex-bar .ex-gold{grid-column:6;border-left:1px solid var(--uk-gold-dim)}
.arena-heading.ex-bar .ex-rates small{font:600 .75rem/1.2 var(--uk-sans);letter-spacing:.02em;color:var(--uk-ivory-dim);white-space:nowrap}
.arena-heading.ex-bar .ex-rates strong{font:600 1.15rem/1.1 var(--uk-serif);color:var(--uk-gold-text);font-variant-numeric:tabular-nums;white-space:nowrap}
.arena-heading.ex-bar .ex-rates .ex-note{position:absolute;width:1px;height:1px;margin:-1px;padding:0;border:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.arena-heading.ex-bar .zone-badge.ex-zone{display:contents}
.arena-heading.ex-bar .ex-zone>*{grid-column:1/-1;min-width:0}
.arena-heading.ex-bar .ex-zone>span:first-child{grid-column:2/6;grid-row:1;margin:0;padding:0 12px;font:600 1rem/1.2 var(--uk-serif);letter-spacing:0;color:var(--uk-ivory);text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.arena-heading.ex-bar .ex-zone>#modeBadge{grid-column:2/6;grid-row:2;display:block;margin:1px 0 0;padding:0 12px;font:500 .71875rem/1.15 var(--uk-sans);letter-spacing:0;color:var(--uk-ivory-dim);text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.arena-heading.ex-bar .ex-zone>.ex-track{grid-column:3;grid-row:3;display:block;height:6px;margin:5px 0 1px 12px;border-radius:3px;background:var(--uk-navy-3);overflow:hidden}
.arena-heading.ex-bar .ex-zone>.ex-track[hidden]{display:none}
.arena-heading.ex-bar .ex-track>.ex-fill{display:block;width:0;height:100%;border-radius:3px;background:var(--uk-gold)}
.arena-heading.ex-bar .ex-zone>.ex-count{grid-column:4;grid-row:3;margin:4px 12px 0 8px;font:600 .71875rem/1 var(--uk-sans);letter-spacing:0;color:var(--uk-gold-text);white-space:nowrap}
.arena-heading.ex-bar .ex-zone>.ex-track[hidden]+.ex-count{grid-column:2/6;margin:4px 12px 0;text-align:center;overflow:hidden;text-overflow:ellipsis}
.arena-heading.ex-bar .ex-zone>#killCounter{position:absolute;width:1px;height:1px;margin:-1px;padding:0;border:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.arena-heading.ex-bar .ex-zone>.battle-simple-row{grid-row:auto;order:1;margin:8px 0 0}
.arena-heading.ex-bar>#nextUp{grid-column:1/-1;grid-row:auto;order:2;width:100%;max-width:none;margin:8px 0 0;padding:8px 0 0;border-top:1px solid var(--uk-navy-3)}
.arena-heading.ex-bar>#nextUp[hidden]{display:none}
.arena-heading.ex-bar .ex-zone>#wipeNote,.arena-heading.ex-bar .ex-zone>.challenge-threat-summary,.arena-heading.ex-bar>#shardStrip,.arena-heading.ex-bar>#battleGoals,.arena-heading.ex-bar>.field-streak{grid-column:1/-1;order:3;width:100%;max-width:none;margin:8px 0 0;box-sizing:border-box}
.arena-heading.ex-bar>#battleGoals[hidden]{display:none}
@media(max-width:480px){
.arena-column>.arena-heading.ex-bar{grid-template-columns:minmax(0,1fr) max-content;padding:6px 10px 8px}
.arena-heading.ex-bar>#adventureRates.ex-rates{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-column:1/-1;grid-row:4;margin:8px 0 0;padding:6px 0 0;border-top:1px solid var(--uk-navy-3)}
.arena-heading.ex-bar .ex-xp,.arena-heading.ex-bar .ex-gold{grid-row:1;padding:0 6px;border:0}
.arena-heading.ex-bar .ex-xp{grid-column:1;justify-content:center}
.arena-heading.ex-bar .ex-gold{grid-column:2;border-left:1px solid var(--uk-gold-dim)}
.arena-heading.ex-bar .ex-rates strong{font-size:1rem}
.arena-heading.ex-bar .ex-zone>span:first-child,.arena-heading.ex-bar .ex-zone>#modeBadge{grid-column:1/-1;padding:0}
.arena-heading.ex-bar .ex-zone>.ex-track{grid-column:1;margin-left:0}
.arena-heading.ex-bar .ex-zone>.ex-count{grid-column:2;margin-right:0}
.arena-heading.ex-bar .ex-zone>.ex-track[hidden]+.ex-count{grid-column:1/-1;margin:4px 0 0}
}
.arena-heading.ex-bar #wipeNote>.wipe-note{max-width:none;margin:0}

/* /item-view.css */
/* Simpler item view (switch IRP_ITEM_VIEW_VERSION, public/item-view.js). Every rule is scoped to classes that exist only while the switch is on
   (.item-view-v1, .iv-*), so with the switch off nothing here matches. */

/* Header: a smaller picture, the requirements as two quiet chips. */
.item-view-v1 .item-detail-title{gap:16px;align-items:center;padding-bottom:14px;margin-bottom:12px}
.item-view-v1 .item-detail-title>.gear-icon{width:84px;height:84px;flex:0 0 84px}
.item-view-v1 .item-detail-title h2,.item-view-v1 .item-detail-title h3{margin:2px 0 4px;font-size:clamp(1.25rem,1rem + 1vw,1.6rem);line-height:1.15}
.item-view-v1 .item-detail-title .item-kind{margin:0;font-size:.9rem}
.item-view-v1 .item-detail-title .item-model-name{margin:2px 0 0;font-size:.8rem;opacity:.8}
.item-view-v1 .item-requirements{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0 0}
.item-view-v1 .item-requirements>div{display:flex;gap:6px;align-items:baseline;padding:3px 9px;border:1px solid #5a4b33;border-radius:999px;background:#0f1315;font-size:.78rem}
.item-view-v1 .item-requirements dt{margin:0;opacity:.75}
.item-view-v1 .item-requirements dd{margin:0;font-weight:700}

/* Actions straight under the name: one compact row that wraps, every target at least 44px tall. Salvage is set apart in a warmer colour. */
.item-view-v1 .iv-actions{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 14px;padding:10px;border:1px solid #4a3f2d;border-radius:8px;background:#0e1214}
:is(.item-inspector,.item-hover) .item-view-v1 .iv-actions>button,.item-view-v1 .iv-actions>button{flex:1 1 auto;min-height:44px;min-width:0;margin:0;padding:6px 12px;font-size:.85rem;line-height:1.15;white-space:normal}
.item-view-v1 .iv-actions>button[data-realm="salvage"]{border-color:#8a4a3a;color:#f1c3b4}
/* The main action (Equip, Unequip, Move to my inventory) leads the row in the gold of the old sticky footer, so a new player sees it first. */
.item-view-v1 .iv-primary-row{display:flex;flex:1 1 100%;gap:6px}
:is(.item-inspector,.item-hover) .item-view-v1 .iv-primary-row>button,.item-view-v1 .iv-primary-row>button{flex:1 1 0;min-height:44px;min-width:0;margin:0;padding:6px 12px;font-size:.95rem;font-weight:700;border-color:#b69b61;color:#f2dca7}
.item-view-v1 .iv-primary-row>button:not(:disabled){background:linear-gradient(#bca16d,#957340);color:#10151e}
.item-view-v1 .item-protection-note{margin:-6px 0 14px;font-size:.8rem}
.item-view-v1 .stash-reason{flex-basis:100%;margin:2px 0 0;font-size:.78rem}

/* Folded sections share one look: a summary row with a chevron. */
.item-view-v1 details.iv-section,.item-view-v1 details.iv-set,.item-view-v1 details.affix-roll-details{margin:12px 0;border:1px solid #3d382e;border-radius:8px;background:#101416}
.item-view-v1 details.iv-section>summary,.item-view-v1 details.iv-set>summary,.item-view-v1 details.affix-roll-details>summary{display:flex;align-items:center;gap:10px;min-height:44px;padding:8px 12px;cursor:pointer;list-style:none;color:#e9d8ae}
.item-view-v1 :is(details.iv-section,details.iv-set,details.affix-roll-details)>summary::-webkit-details-marker{display:none}
.item-view-v1 :is(details.iv-section,details.iv-set,details.affix-roll-details)>summary::after{content:"";margin-left:auto;flex:0 0 auto;width:8px;height:8px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg) translateY(-2px);transition:transform .15s}
.item-view-v1 :is(details.iv-section,details.iv-set,details.affix-roll-details)[open]>summary::after{transform:rotate(-135deg) translateY(-2px)}
.item-view-v1 :is(details.iv-section,details.affix-roll-details)>:not(summary){margin-left:12px;margin-right:12px}
.item-view-v1 details.iv-section[open],.item-view-v1 details.affix-roll-details[open]{padding-bottom:10px}

/* Set card: name, worn count and a pip per bonus threshold in the summary; the bonus lines, active ones lit, when opened. */
.item-view-v1 details.iv-set{border-color:#2f6b58;background:linear-gradient(180deg,#0f1d1a,#0f1416)}
.item-view-v1 .iv-set-title{display:flex;flex-direction:column;min-width:0}
.item-view-v1 .iv-set-title strong{font-family:Georgia,serif;font-size:1.05rem;color:#9fe6c9}
.item-view-v1 .iv-set-title small{font-size:.78rem;color:#b9c6bf}
.item-view-v1 .iv-set-pips{display:flex;gap:4px;margin-left:auto}
.item-view-v1 .iv-set-pips i{display:grid;place-items:center;width:22px;height:22px;border:1px solid #3f7d68;border-radius:50%;font-style:normal;font-size:.72rem;color:#9cbcb0}
.item-view-v1 .iv-set-pips i.on{background:#74d9b1;border-color:#74d9b1;color:#0b1a15;font-weight:700}
.item-view-v1 .iv-set>summary::after{margin-left:6px}
.item-view-v1 .iv-set-sub{margin:0 12px 8px;font-size:.8rem;color:#b9c6bf}
.item-view-v1 .iv-set-bonuses{list-style:none;margin:0 12px;padding:0;display:grid;gap:6px}
.item-view-v1 .iv-set-bonuses li{display:grid;grid-template-columns:40px minmax(0,1fr);gap:10px;align-items:start;margin:0;padding:8px;border:1px solid #26332f;border-radius:6px;font-size:.88rem;line-height:1.35;color:#c9d2cd}
.item-view-v1 .iv-set-bonuses li:not(.is-active){opacity:.82}
.item-view-v1 .iv-set-bonuses li.is-active{border-color:#4fae8b;background:#123029;color:#eaf7f1}
.item-view-v1 .iv-pc{display:flex;flex-direction:column;align-items:center;justify-content:center;height:36px;border-radius:6px;background:#1b2a26;font-weight:700;color:#9fe6c9;line-height:1}
.item-view-v1 .iv-pc small{font-size:.6rem;font-weight:400;opacity:.8}
.item-view-v1 .iv-set-bonuses em{font-style:normal;font-size:.7rem;padding:1px 6px;border-radius:999px;background:#2f6b58;color:#e6fff5}
.item-view-v1 .iv-active{font-size:.7rem;font-weight:700;color:#74d9b1;text-transform:uppercase;letter-spacing:.04em}
.item-view-v1 .iv-set-foot{margin:8px 12px 12px;font-size:.78rem;color:#aab3ae}
.item-view-v1 .iv-set-foot p{margin:4px 0;font-size:inherit;color:inherit}

/* Stats: the base line as a small card, rolled modifiers in two columns where there is room. */
.item-view-v1 .gear-base{margin:10px 0}
.item-view-v1 .gear-affixes{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:2px 16px;margin:8px 0}
.item-view-v1 .gear-affixes li{margin:0;padding:6px 0;border-bottom:1px solid #2a2722}
.item-view-v1>.text-button[data-guide-topic]{font-size:.78rem}

/* Comparison: the "Equipping now" line stays, the full table folds. */
.item-view-v1 .gear-comparison{margin-top:14px}
.item-view-v1 .gear-comparison>h3{font-size:1rem}
.item-view-v1 .iv-compare-full>summary{font-size:.92rem}
/* The folded table keeps the fold's side margins instead of running 24px past its right edge. */
.item-view-v1 .iv-compare-full>.compare-table{width:calc(100% - 24px);max-width:calc(100% - 24px)}

/* Quick menu (right-click / long-press on a bag item). */
.iv-quick-menu{position:fixed;z-index:1200;display:flex;flex-direction:column;min-width:200px;max-width:min(280px,calc(100vw - 16px));max-height:calc(100dvh - 16px);overflow:auto;padding:6px;border:1px solid #92754b;border-radius:8px;background:#171a1c;box-shadow:0 14px 40px #000c}
.iv-quick-menu>button{display:block;width:100%;min-height:44px;margin:0;padding:8px 12px;border:0;border-radius:5px;background:transparent;color:#eadfc6;font:inherit;font-size:.9rem;text-align:left;cursor:pointer}
.iv-quick-menu>button:hover:not([disabled]),.iv-quick-menu>button:focus-visible{background:#2a2a24;outline:none}
.iv-quick-menu>button:focus-visible{box-shadow:inset 0 0 0 2px #f2ce85}
.iv-quick-menu>button[disabled]{opacity:.45;cursor:not-allowed}
.iv-quick-menu>button:first-child{font-weight:700;border-bottom:1px solid #3a352b;border-radius:5px 5px 0 0}
.iv-quick-menu>button[data-realm="salvage"]{color:#f1b9a8}
.iv-quick-menu .stash-reason{display:none}
html.iv-on .item-tile[data-item]{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}

@media(max-width:600px){
 .item-view-v1 .item-detail-title>.gear-icon{width:68px;height:68px;flex-basis:68px}
 .item-view-v1 .iv-actions{padding:8px}
 :is(.item-inspector,.item-hover) .item-view-v1 .iv-actions>button,.item-view-v1 .iv-actions>button{flex:1 1 calc(50% - 6px);font-size:.82rem;padding:6px 8px}
 .item-view-v1 .gear-affixes{grid-template-columns:minmax(0,1fr)}
}
/* Compact item comparison (IRP_ITEM_COMPARE_VERSION): one aligned table, worn beside selected; names wrap instead of widening the dialog. */
.item-view-v1 .iv-compare{margin:10px 0 12px;padding:4px 12px 8px;border:1px solid #3d382e;border-radius:8px;background:#101416}
.item-view-v1 .iv-compare-table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:.92rem}
.item-view-v1 .iv-compare-table th,.item-view-v1 .iv-compare-table td{padding:8px 6px;border-bottom:1px solid #2a2a27;text-align:left;vertical-align:top;overflow-wrap:anywhere}
.item-view-v1 .iv-compare-table tbody tr:last-child>*{border-bottom:0}
.item-view-v1 .iv-compare-table thead th{color:#e8c77d;font-weight:700;font-size:.85rem}
.item-view-v1 .iv-compare-table thead small{display:block;margin-top:2px;color:#f2e3bd;font-weight:600;font-size:.78rem;line-height:1.25}
.item-view-v1 .iv-compare-table tbody th{color:#d9cfb8;font-weight:500}
.item-view-v1 .iv-compare-table td span{font-weight:700;white-space:nowrap}
/* Tier chips under the Equipped and Selected names; under the selected one, a word says Higher, Lower or Same tier against what you wear. */
.item-view-v1 .iv-compare-table .iv-tier-chip{display:flex;width:max-content;max-width:100%;min-height:22px;margin-top:5px;padding:1px 8px;font-size:.72rem;font-weight:700;line-height:1.2;color:var(--uk-ivory,#efe4cc);white-space:nowrap}
.item-view-v1 .iv-compare-table .iv-tier-chip.gear-gain{border-color:#4fae8b;color:#9fe6c9!important}
.item-view-v1 .iv-compare-table .iv-tier-chip.gear-loss{border-color:#b5584a;color:#f3b4a6!important}
.item-view-v1 .iv-compare-table .iv-tier-word{display:block;margin-top:3px;color:#d9cfb8;font-size:.72rem;font-weight:700;line-height:1.2}
.item-view-v1 .iv-compare-more{margin:4px 0 0}
.item-view-v1 .iv-compare-notes{margin:6px 0 0;padding:0;list-style:none;font-size:.88rem;line-height:1.35}
.item-view-v1 .iv-compare-notes li{padding:3px 0 3px 8px;border-left:3px solid currentColor}
.item-view-v1 .iv-compare-notes li+li{margin-top:4px}
/* Two ring slots: one tab per worn ring (its picture, the slot, better or worse there) over the table; the picked ring's table shows.
   The UI kit tab look, repeated here so the hover card (outside the kit's scope) draws the same tabs, and kept to one row on a phone. */
.item-view-v1 .iv-compare-pair .iv-pair-tabs{display:flex;flex-wrap:nowrap;gap:8px;margin:8px 0 6px;padding:0;border:0}
.item-view-v1 .iv-compare-pair .iv-pair-tabs>.iv-pair-tab{display:flex;flex-direction:row!important;align-items:center;flex:1 1 0;min-width:0;min-height:52px;justify-content:flex-start;gap:10px;padding:6px 10px;text-align:left;white-space:nowrap;border:1px solid var(--uk-gold-dim,#8f7645);border-radius:var(--uk-radius,6px);background:var(--uk-tab-surface,linear-gradient(180deg,#1e2c41,#111b2c));color:#d9d3c2;font:600 .8125rem/1.3 system-ui;box-shadow:var(--uk-rule,none);cursor:pointer}
.item-view-v1 .iv-compare-pair .iv-pair-tabs>.iv-pair-tab:hover{border-color:var(--uk-gold,#c9a45c);background:linear-gradient(180deg,#2a3b55,#16233a);color:#fff0c8}
.item-view-v1 .iv-compare-pair .iv-pair-tabs>.iv-pair-tab[aria-selected="true"]:not(:disabled){border-color:#e0bd73;background:var(--uk-surface-lit,linear-gradient(180deg,#77602f,#3a2f22));color:#fff1cc;box-shadow:inset 0 -3px 0 #e6c889,inset 0 0 0 2px var(--uk-navy-0,#0b1220),inset 0 0 0 3px #e6c88955}
.item-view-v1 .iv-pair-art{flex:0 0 auto;display:block;width:38px;height:38px}
.item-view-v1 .iv-pair-art>.gear-icon{display:block;width:38px!important;height:38px!important;margin:0}
.item-view-v1 .iv-pair-art .item-tier-badge{display:none}
.item-view-v1 .iv-pair-art:empty{border:1px dashed #5b5040;border-radius:6px}
.item-view-v1 .iv-pair-text{display:flex;flex-direction:column;min-width:0;line-height:1.2}
.item-view-v1 .iv-pair-slot{font-weight:700}
.item-view-v1 .iv-pair-tab small{margin-top:2px;font-size:.78rem;font-weight:700;color:#bdb5a2}
.item-view-v1 .iv-pair-tab small.gear-gain{color:#9cddac}
.item-view-v1 .iv-pair-tab small.gear-loss{color:#ffacac}
.item-view-v1 .iv-pair-panel[hidden]{display:none}
.item-view-v1.iv-compact .iv-more-actions .iv-actions{margin:0 12px}
.item-view-v1.iv-compact .iv-sell-heading{margin:14px 12px 6px;font-size:.95rem}
@media (max-width:480px){
 .item-view-v1 .iv-compare{padding:2px 8px 6px}
 .item-view-v1 .iv-compare-table{font-size:.85rem}
 .item-view-v1 .iv-compare-pair .iv-pair-tabs>.iv-pair-tab{gap:8px;padding:6px 8px}
 .item-view-v1 .iv-pair-art,.item-view-v1 .iv-pair-art>.gear-icon{width:34px!important;height:34px!important}
 .item-view-v1 .iv-compare-table th,.item-view-v1 .iv-compare-table td{padding:7px 4px}
 .item-view-v1 .iv-compare-table thead th:first-child,.item-view-v1 .iv-compare-table tbody th{width:36%}
 .item-view-v1.iv-compact .iv-more-actions .iv-actions{margin:0 4px}
}

/* /item-cards.css */
/* Clearer item cards (switch IRP_ITEM_CARDS_VERSION, public/item-cards.js). Every rule is scoped to classes that exist only while the switch is on
   (.ic-*), so with the switch off nothing here matches. Colours and type come from UI kit v1 (public/ui-kit.css). */

/* Header: tier and level as two chips; the tier chip carries a "?" and a tooltip that says what the tier means. */
.ic-chips{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0 0}
.ic-chip{min-height:28px;padding:2px 10px;font-size:.78rem;color:var(--uk-ivory,#efe4cc)}
button.ic-chip{cursor:help;font-family:inherit}
button.ic-chip:focus-visible{outline:3px solid var(--uk-focus,#f2ce85);outline-offset:2px}
.ic-q{display:inline-grid;place-items:center;width:16px;height:16px;margin-left:4px;border-radius:50%;background:var(--uk-gold,#c9a35b);color:#141210;font-size:.68rem;font-weight:800}
.ic-chip-low{border-color:#b5584a;color:#f3b4a6}
.ic-chip-worn{border-color:#4fae8b;color:#9fe6c9}
.ic-card .item-detail-title .item-model-name{display:none}

/* The Unique power: first thing under the name, framed in gold, in readable type. */
.ic-power{position:relative;margin:4px 0 14px;padding:12px 14px 12px 16px;border:1px solid #b69a6099;border-left:4px solid var(--uk-gold,#c9a35b);border-radius:8px;
 background:linear-gradient(90deg,#3a2a1299,#16130f 70%);box-shadow:inset 0 0 0 1px #0007}
.ic-power-kicker{margin:0 0 4px;font:700 .72rem/1.2 var(--uk-sans,system-ui);letter-spacing:.08em;text-transform:uppercase;color:var(--uk-gold-text,#f2ce85)}
.ic-power-text{margin:0;font:1.05rem/1.45 var(--uk-serif,Georgia,serif);color:var(--uk-ivory,#efe4cc)}
/* Unique rules (IRP_UNIQUE_RULES_VERSION): the new rule on its own line under the old power, with a small New rule label like the kicker (0.75.0 UI QA). */
.ic-power-text.unique-new-rule,.unique-power.unique-new-rule{margin-top:8px;padding-top:8px;border-top:1px solid #b69a6055}
.unique-new-rule>strong{display:block;margin:0 0 2px;font:700 .72rem/1.2 var(--uk-sans,system-ui);letter-spacing:.08em;text-transform:uppercase;color:var(--uk-gold-text,#f2ce85)}
.ic-power-skills{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:8px 0 0;font-size:.82rem;color:var(--uk-ivory-dim,#cdbf9f)}
.ic-power-skills>span:first-child{font-weight:700;text-transform:uppercase;letter-spacing:.06em;font-size:.7rem;color:var(--uk-gold-text,#f2ce85)}
.ic-power .unique-growth{margin:8px 0 0;font-size:.8rem;color:var(--uk-ivory-dim,#cdbf9f)}
.ic-power+.ic-power{margin-top:-6px}

/* Stats: the base property, then each modifier with its Affix Tier and where its roll sits in the range. Two columns where there is room. */
.ic-rolls{margin:0 0 14px;padding:10px 12px;border:1px solid #3d382e;border-radius:8px;background:#101416}
.ic-base{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 10px;margin:0 0 8px;padding:0 0 8px;border-bottom:1px solid #2a2722}
.ic-base-label{font-size:.7rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--uk-ivory-dim,#cdbf9f)}
.ic-base strong{font-size:1.02rem;color:var(--uk-ivory,#efe4cc)}
.ic-affixes{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:2px 18px;margin:0;padding:0;list-style:none}
.ic-affixes>li{display:block;margin:0;padding:6px 0;border-bottom:1px solid #2a2722}
.ic-affixes>li>.am-kind{margin-left:8px;min-height:20px;padding:0 8px;font-size:.66rem;vertical-align:2px}
.ic-affixes>li>small{display:block;margin-top:2px}
.ic-affixes>li>meter{display:block;margin-top:4px}
.ic-affixes>li>strong{font-size:.98rem;color:#cfe9b4}
.ic-affixes>li>small{font-size:.76rem;color:var(--uk-ivory-dim,#cdbf9f)}
.ic-affixes meter{width:100%;max-width:180px;height:5px}
/* What a stat turns into (Endurance: the Armor it gives), under the stat line, on every item card. */
.affix-hint,.ic-affixes>li>small.affix-hint{display:block;margin-top:2px;font-size:.8rem;line-height:1.35;color:var(--uk-ivory,#eedbb5)}
.ic-rolls .small-note{margin:8px 0 0}

/* One comparison, every changed stat. */
.ic-compare{margin:0 0 12px}
.ic-compare-head{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;margin:0 0 6px}
.ic-compare-head h3{margin:0;font-size:.95rem;color:var(--uk-gold-text,#f2ce85)}
.ic-compare-head .item-verdict{margin:0;padding:0;border:0;background:none}

/* Pinned action dock under the card: Equip, then painted buttons with a one-word caption. Tooltips (public/ui-hints.js) give the full sentence. */
.inventory-dialog .item-inspector .inventory-primary-actions.ic-dock{display:block;padding:10px 14px calc(10px + env(safe-area-inset-bottom,0px))}
.ic-dock-row{display:flex;flex-wrap:wrap;align-items:stretch;gap:8px 12px}
.ic-equip-row{display:flex;flex:1 1 240px;gap:8px}
.modal-backdrop.inventory-dialog .ic-equip-row>button{flex:1 1 0;min-height:48px;min-width:0;margin:0;font-weight:700;border-color:#b69b61;color:#f2dca7}
.modal-backdrop.inventory-dialog .ic-equip-row>button:not(:disabled){background:linear-gradient(#bca16d,#957340);color:#10151e}
/* One row on a PC: with every button shown (Favorite, Sell, Enhance and Enchant too) they narrow a little rather than leave one alone on a second row. */
.ic-acts{display:flex;flex:10 1 auto;min-width:0;flex-wrap:nowrap;justify-content:flex-end;gap:6px}
.modal-backdrop.inventory-dialog .ic-acts>.ic-act{display:inline-flex;flex:0 1 58px;flex-direction:column;align-items:center;justify-content:center;gap:1px;width:58px;min-width:46px;min-height:52px;margin:0;padding:3px 2px;
 border:1px solid #6d5a3a;border-radius:8px;background:linear-gradient(#1d2a35,#121a21);color:var(--uk-ivory,#efe4cc);cursor:pointer}
.ic-act>.uk-ico,.ic-act>.uk-art,.ic-act>.ic-ico{width:32px;height:32px}
/* ChatGPT art 31 (20 Oct): Link in chat and Party bag, transparent 256 px paintings shown whole. */
.ic-ico{display:inline-block;background:center/contain no-repeat}
.ic-ico-link{background-image:url('/art/ui/item-link-chat-1.webp')}
.ic-ico-party{background-image:url('/art/ui/item-party-bag-1.webp')}
/* ChatGPT art (20 Oct, Pat): Enhance, a golden anvil, hammer and spark, painted for this row. */
.ic-ico-enhance{background-image:url('/art/ui/item-enhance-1.webp')}
.ic-cap{font-size:.66rem;line-height:1.1;color:var(--uk-ivory-dim,#cdbf9f);white-space:nowrap}
.modal-backdrop.inventory-dialog .ic-acts>.ic-act:hover:not(:disabled){border-color:var(--uk-gold,#c9a35b);background:linear-gradient(#273746,#16212a)}
.modal-backdrop.inventory-dialog .ic-acts>.ic-act:focus-visible{outline:3px solid var(--uk-focus,#f2ce85);outline-offset:2px}
.modal-backdrop.inventory-dialog .ic-acts>.ic-act[aria-pressed="true"],.modal-backdrop.inventory-dialog .ic-acts>.ic-act[aria-controls][aria-expanded="true"]{border-color:var(--uk-gold,#c9a35b);background:linear-gradient(#4a3a1d,#2a2112)}
.modal-backdrop.inventory-dialog .ic-acts>.ic-act[aria-pressed="true"] .ic-cap,.modal-backdrop.inventory-dialog .ic-acts>.ic-act[aria-controls][aria-expanded="true"] .ic-cap{color:var(--uk-gold-text,#f2ce85)}
.modal-backdrop.inventory-dialog .ic-acts>.ic-act-danger{border-color:#8a4a3a}
.modal-backdrop.inventory-dialog .ic-acts>.ic-act-danger .ic-cap{color:#f1c3b4}
.modal-backdrop.inventory-dialog .ic-acts>.ic-act:disabled{opacity:.42;cursor:not-allowed}
.modal-backdrop.inventory-dialog .ic-acts>.ic-act:disabled>span:first-child{filter:grayscale(1)}

/* The Help button opens one tip naming every button (a phone cannot hover). */
.ic-help-mark{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:var(--uk-gold,#c9a35b);color:#141210;font:800 .95rem/1 var(--uk-sans,system-ui)}
/* Gems sit with the rolls; each gem's name and stat stay together. */
.ic-rolls .gem-lines-head{margin:10px 0 4px;font-size:.7rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--uk-ivory-dim,#cdbf9f)}
.ic-rolls .gem-lines{margin:0;padding:0;list-style:none}
.ic-rolls .gem-lines>li{display:block;padding:3px 0;font-size:.86rem;color:var(--uk-ivory,#efe4cc)}
.ic-rolls .gem-lines>li>:first-child{display:inline-block;vertical-align:middle;margin-right:4px}
.ic-rolls .gem-stat{color:#cfe9b4}
.ic-rolls .ic-gem-name{white-space:nowrap}
/* Guide picture of the dock: the same painted buttons, not clickable, in two even rows of four. */
.gp-ic-acts{display:grid;grid-template-columns:repeat(4,56px);justify-content:center;gap:6px}
.gp-ic-acts>.ic-act{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;width:56px;min-height:50px;padding:3px 2px;border:1px solid #6d5a3a;border-radius:8px;background:linear-gradient(#1d2a35,#121a21)}
.gp-ic-acts>.ic-act-danger{border-color:#8a4a3a}

/* Help list (public/ui-hints.js data-ui-list): one line per button, its name in bold. */
.ui-tooltip.ui-tooltip-list .ui-tooltip-row{display:block;margin:0 0 6px}
.ui-tooltip.ui-tooltip-list .ui-tooltip-row:last-child{margin:0}
.ui-tooltip.ui-tooltip-list .ui-tooltip-row>strong{display:inline;margin:0;color:var(--uk-gold-text,#f2ce85)}

/* Hover card: the same blocks, tighter. */
.ic-hover{max-width:400px}
.ic-hover .ic-power{margin:6px 0 10px;padding:9px 11px 9px 13px}
.ic-hover .ic-power-text{font-size:.95rem}
.ic-hover .ic-chips{margin-top:6px}
.ic-hover .ic-rolls{padding:8px 10px}
.ic-hover .iv-compare-table{font-size:.8rem}
.ic-hover .iv-compare-table th,.ic-hover .iv-compare-table td{padding:4px 4px}
.ic-hover .iv-compare-table thead th:first-child,.ic-hover .iv-compare-table tbody th{width:40%}
.ic-hover .ic-compare-head h3{font-size:.85rem}
.ic-hover .iv-compare-table th small{font-size:.72rem}
.ic-hover .iv-compare-notes{margin:6px 0 0}

/* Character sheet: the level line under the name shows again with compact headers on. */
:root.uk-compact-heads .shell .painted-page-heading.ic-level-head>.eyebrow{display:block}

/* Chat options: the one-time notes moved into "?" tips; the row holds the button and the tips. */
.ic-chat-tools{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin:0 0 10px}
.ic-chat-tools .ic-chat-tip{display:inline-flex;margin:0;align-items:center;gap:6px;width:auto;min-width:44px;min-height:44px;padding:0 10px 0 6px;border:1px solid #6d5a3a;border-radius:22px;background:var(--uk-navy-0,#0d1620);color:var(--uk-ivory,#efe4cc);font:600 .8rem var(--uk-sans,system-ui)}
.ic-chat-tools .ic-chat-tip .ui-help-mark{position:static;display:inline-grid;place-items:center;width:20px;height:20px;margin:0;border-radius:50%;background:var(--uk-gold,#c9a35b);color:#141210;font-size:.72rem;font-weight:800}

/* While the card is open, a toast (Protected, Favorite, Equip…) shows under the card's Back row instead of at the bottom over the pinned buttons (release QA, 20 Oct). */
body:has(.inventory-dialog .ic-dock) #toast{top:88px;bottom:auto}
/* Auction House (Feal, 20 Oct): the Sell button opens the price form above the pinned buttons, so the sale never hides low in the card. */
.ic-dock .ic-sell{margin:0 0 10px;padding:0 0 10px;border-bottom:1px solid #6d5a3a66}
.ic-dock .ic-sell[hidden]{display:none}
.ic-dock .ic-sell>h3{margin:0 0 6px;color:var(--uk-gold-text,#f2ce85);font:700 .82rem/1.3 var(--uk-sans,system-ui);letter-spacing:.06em;text-transform:uppercase}
.ic-dock .ic-sell .az-inline-form{margin:0;padding:0;border:0;gap:8px 10px}
.ic-dock .ic-sell .az-inline-form label{flex:1 1 10rem;color:var(--uk-ivory,#efe4cc)}
.ic-dock .ic-sell .az-inline-form input{margin-top:4px}
.ic-dock .ic-sell .az-inline-form button{min-height:44px}
/* A linked item in chat: a readable link that opens the bag's item card (no card squeezed into the chat log). */
.community-chat .chat-item-link{display:inline;margin:0 0 0 5px;padding:0;border:0;background:none;color:#dabe7d;font:inherit;font-weight:600;text-align:left;text-decoration:underline;text-underline-offset:3px;cursor:pointer;overflow-wrap:anywhere}
.community-chat .chat-item-link.chat-item-charm{color:#7fe0d0}.community-chat .chat-item-link.chat-item-rune{color:#a9c0e0}
.community-chat .chat-item-link:hover{color:var(--uk-gold-text,#f2ce85)}
.community-chat .chat-item-link:focus-visible{outline:3px solid var(--uk-focus,#f2ce85);outline-offset:2px;border-radius:2px}
@media(pointer:coarse){.community-chat .chat-item-link{padding:12px 0;margin-block:-12px}}
.item-inspector .ic-linked-from{margin:0 0 10px;padding:8px 12px;border:1px solid #6d5a3a;border-radius:8px;background:var(--uk-navy-0,#0d1620);color:var(--uk-ivory,#efe4cc);font:.86rem/1.45 var(--uk-sans,system-ui)}

@media(max-width:600px){
 .ic-equip-row{flex-basis:100%}
 .ic-acts{display:grid;grid-template-columns:repeat(var(--ic-cols,5),minmax(0,1fr));gap:4px}
 .modal-backdrop.inventory-dialog .ic-acts>.ic-act{width:auto;min-width:44px}
 .ic-affixes{grid-template-columns:minmax(0,1fr)}
 .ic-power-text{font-size:1rem}
 /* The stat-change toast after Equip moves up while the card is open, under the Back to bag row (y19–63 at 390), so it covers neither Back nor the pinned buttons (release QA, 20 Oct). */
 body:has(.inventory-dialog .ic-dock) #toast{top:calc(max(12px,env(safe-area-inset-top)) + 60px);bottom:auto}
}
/* Legendary weapons on the card (Pat, 23 Oct): the three effects in the power box, numbered. On the hover the fiery frame is thinner, so the comparison keeps its columns. */
.ic-legendary-effects{margin:4px 0 6px;padding-left:1.4em}
.ic-legendary-effects li{margin:2px 0}
.item-hover:has(.ic-hover.legendary-item){width:min(460px,calc(100vw - 20px));padding:8px}
.item-details.ic-hover.legendary-item.legendary-item.legendary-item{max-width:none;padding:8px 8px;border-width:14px;border-image-width:40px}
.ic-hover .ic-power.is-legendary{margin:4px 0 6px;padding:7px 10px}
.ic-hover .ic-legendary-effects{font-size:.88rem}
/* Implicit line in the header (Pat, 30 Oct): the base stats and the ward stat sit under the item kind, beside the space the chips leave. */
.ic-implicit{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px;margin:4px 0 6px}
.ic-implicit strong{font-size:1rem;color:var(--uk-ivory,#efe4cc)}
.ic-implicit small{color:var(--uk-ivory-dim,#cdbf9f);font-size:.8125rem}
/* Switched-off effects (public/inactive-effects.js): item and skill cards name what does nothing with the hero's gear and picks, and why. */
.inactive-effects{margin:10px 0 0;padding:8px 10px;border-left:3px solid var(--uk-red,#c0533a);background:rgba(192,83,58,.10);border-radius:4px}
.inactive-effects .inactive-effects-kicker{margin:0 0 4px;font-size:.72rem;letter-spacing:.08em;text-transform:uppercase;color:var(--uk-ivory-dim,#cdbf9f)}
.inactive-effects ul{margin:0;padding:0;list-style:none;display:grid;gap:4px}
.inactive-effects li{font-size:.84rem;line-height:1.35;color:var(--uk-ivory,#e7dcc7);overflow-wrap:anywhere}
.inactive-effects li.is-off::before{content:'Off · ';font-weight:700;color:#ef8a6f}
/* the item that switches another off */
.inactive-effects li.is-switches::before{content:'Switches off · ';font-weight:700;color:#ef8a6f}
.inactive-effects li.is-note::before{content:'Note · ';font-weight:700;color:var(--uk-gold,#d8b26a)}

/* /gem-ui.css */
/* Defensive gem sockets (switch IRP_GEM_SOCKETS_VERSION, default off). Socket dots, card lines and the Gemcutter screen. */
.gear-icon.has-gems{position:relative}
.gem-dots{position:absolute;left:5%;bottom:5%;display:flex;gap:2px;pointer-events:none;z-index:2}
.gem-dot{display:inline-block;width:7px;height:7px;border-radius:50%;box-sizing:border-box;vertical-align:middle}
.gem-dot.filled{background:var(--gem-fill);border:1px solid rgba(0,0,0,.75);box-shadow:0 0 3px rgba(255,255,255,.35)}
.gem-dot.open{border:1.5px solid #e7ddc6;background:rgba(0,0,0,.45)}
.gem-dot.closed{border:1px solid rgba(231,221,198,.35);background:rgba(0,0,0,.25)}
.gem-lines{list-style:none;margin:.4rem 0;padding:0;display:grid;gap:.25rem}.gem-lines li{display:flex;align-items:center;gap:.4rem;font-size:.85rem}
.gem-stone{position:relative;display:inline-grid;place-items:center;width:var(--gem-size);height:var(--gem-size);flex:0 0 var(--gem-size);border-radius:50%;background:var(--gem-fill);box-shadow:inset -3px -4px 6px rgba(0,0,0,.45),inset 3px 3px 5px rgba(255,255,255,.45),0 0 0 2px rgba(0,0,0,.6);clip-path:polygon(50% 0,93% 25%,93% 75%,50% 100%,7% 75%,7% 25%)}
.gem-stone b{font:700 calc(var(--gem-size)*.38)/1 Arial,sans-serif;color:#111;text-shadow:0 0 3px rgba(255,255,255,.8)}
.gem-stone.gem-t1,.gem-stone.gem-t2{filter:saturate(.6) brightness(.85);border-radius:40%}
.gem-stone.gem-t6,.gem-stone.gem-t7,.gem-stone.gem-t8{filter:drop-shadow(0 0 4px var(--gem-glow,#fff8))}
.gem-stone.gem-t9,.gem-stone.gem-t10{filter:drop-shadow(0 0 7px #fff) saturate(1.2)}
.gemcutter .gem-head{display:flex;flex-wrap:wrap;gap:.5rem 1rem;align-items:center;justify-content:space-between}.gemcutter .gem-head h1{margin:0;color:var(--gold)}.gemcutter .gem-head p{margin:0;flex:1 1 260px}
.gem-columns{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:.75rem}
.gem-panel{min-width:0}.gem-panel>.uk-heading{margin-top:0}
/* Item picker (17 Oct): the Blacksmith and Enchanter equipment list (workshops-combat.css), in the workshops' warm card colours, with the socket count in gem blue. */
.gemcutter-page .gem-picker{padding:0 0 12px;margin:0 0 4px}
.gemcutter-page .gem-picker>summary{padding:0}
.gemcutter-page .gem-picker .workshop-items{grid-template-columns:repeat(auto-fill,minmax(210px,1fr));max-height:320px}
.gemcutter-page .gem-picker .workshop-item{border-radius:4px;background:#1a1b1b;color:#d7c8ac;min-height:72px}
.gemcutter-page .gem-picker .workshop-item[aria-pressed=true]{background:#3a3020;border-color:#cfad6c;box-shadow:inset 3px 0 #cfad6c}
.gemcutter-page .gem-picker .workshop-item small{font-size:.75rem;color:#b6b09f;margin-top:4px}
.gemcutter-page .gem-picker .workshop-item small.gem-pick-sockets{color:#7fd4ff;margin-top:2px}
.gemcutter-page .gem-picker .workshop-filter{max-width:none}
@media(max-width:760px){.gemcutter-page .gem-picker .workshop-items{grid-template-columns:minmax(0,1fr);max-height:300px}}
.gem-item-head{display:flex;flex-direction:column;align-items:center;margin:.75rem 0 .25rem}.gem-item-head>.gear-icon{width:64px;height:64px;margin-bottom:6px}
.gem-sockets{display:flex;flex-wrap:wrap;justify-content:center;gap:.75rem;margin:.75rem 0}
.gem-socket{display:flex;flex-direction:column;align-items:center;gap:.35rem;width:118px;text-align:center}
.gem-socket .gem-ring{width:52px;height:52px;border-radius:50%;border:4px solid #9a8a6a;background:radial-gradient(#000a,#0004)}
.gem-socket.closed{opacity:.9}.gem-socket.closed>span{font-size:.8rem;color:var(--muted);border:2px dashed #6b5a3a;border-radius:50%;width:52px;height:52px;display:grid;place-items:center;padding:4px}
.gem-socket button{min-height:44px;width:100%;font-size:.8rem}.gem-socket small{font-size:.75rem;color:var(--muted)}
.gem-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(84px,1fr));gap:.5rem}
.gem-cell{display:flex;flex-direction:column;align-items:center;gap:.2rem;min-height:84px;padding:.4rem;border:2px solid #555;border-radius:8px;background:rgba(0,0,0,.3)}
.gem-cell.selected{border-color:var(--gold);box-shadow:0 0 0 2px #dab36b55}.gem-cell span{font-size:.72rem}.gem-cell small{font-size:.7rem;color:var(--muted)}
.gem-merge-row{display:flex;align-items:center;justify-content:center;gap:.6rem;margin:.75rem 0;font-size:1.4rem}


.gem-last.ok{color:#7fd36a}.gem-last.bad{color:#f08b7f}
.gemcutter button.danger{border-color:#c0574b}
/* Painted gems (public/assets/gems/): the stone over its tier's frame plate, and painted socket rings on the Gemcutter screen. */
.gem-stone.painted{background:none;box-shadow:none;clip-path:none;filter:none;border-radius:0;overflow:visible}
.gem-stone.painted img{position:absolute;inset:2%;width:96%;height:96%;object-fit:contain;pointer-events:none;user-select:none}
.gem-stone.painted .gem-plate{inset:0;width:100%;height:100%}.gem-stone.painted.framed .gem-art{inset:17%;width:66%;height:66%}
.gem-socket .gem-ring{border:0;border-radius:0;background:url(/assets/gems/socket-open.webp) center/contain no-repeat}
.gem-socket.closed>span{border:0;border-radius:0;background:url(/assets/gems/socket-closed.webp) center/contain no-repeat;color:#e7ddc6;text-shadow:0 1px 2px #000,0 0 4px #000}
.gem-socket.filled>.gem-stone{background:url(/assets/gems/socket-setting.webp) center/contain no-repeat}
.gem-socket.filled>.gem-stone .gem-plate{display:none}.gem-socket.filled>.gem-stone .gem-art{inset:24%;width:52%;height:52%}
/* Painted header (as the Blacksmith and Enchanter), page tabs that look like the other section tabs, and gold main actions instead of the browser's plain grey. */
.gem-welcome .npc-greeting>button{align-self:flex-start;margin-top:.5rem}
.gem-welcome .gem-quote{font-family:Georgia,serif;font-size:1.1rem;color:#e4d2b1;font-style:italic}.gem-welcome .gem-portrait{background-image:url('/assets/town/gemcutter-v1.webp');background-size:auto 96%;background-position:center bottom;background-color:#1d1a16}@media(max-width:480px){.gem-welcome .gem-portrait{background-size:auto 94%;background-position:center bottom}}
.gemcutter .gem-tabs .section-tab{padding:9px 18px}.gemcutter .gem-tabs .section-tab:disabled{opacity:.55;cursor:default}
.gemcutter button:not(.secondary):not(.section-tab):not(.gem-cell):not(.red-button):not(.workshop-item):not([data-gem-filter]):not(.uk-tab):not(.uk-seg-btn):not(:disabled){background:linear-gradient(#bca16d,#957340);color:#10151e;border:1px solid #d9bd83;border-radius:5px;font-weight:600;min-height:44px;padding:9px 18px}
.gemcutter button:not(.secondary):not(.section-tab):not(.gem-cell):not(.red-button):not(.workshop-item):not([data-gem-filter]):not(.uk-tab):not(.uk-seg-btn):disabled{background:#26303a;color:#9aa3a6;border:1px solid #4f5a55;border-radius:5px;min-height:44px;padding:9px 18px}
/* Gem hover card */
.gem-tip{display:flex;gap:12px;align-items:center}.gem-tip h4{margin:2px 0;font-family:Georgia,serif;font-size:1.1rem;color:#f0dfb5}
.gem-tip-kind{margin:0;font-size:.8rem;color:#bca169;text-transform:uppercase;letter-spacing:.06em}.gem-tip-stat{margin:2px 0 0;color:#9fe0a0;font-weight:600}
.gem-tip-note{margin:10px 0 0;font-size:.85rem;line-height:1.4;color:#c9c2b0}
.gem-lines-head{margin:12px 0 4px;font-size:.75rem;letter-spacing:.08em;text-transform:uppercase;color:#bca169}

.gem-cost-part{white-space:nowrap}
.gem-socket small.gem-cost-missing{display:block;color:#e8a07a}
.gem-stat{color:#7fd4ff;font-weight:600}.gem-stat-lines li{display:flex;align-items:center;gap:6px}.gem-stat-lines small{color:#a9a08c;font-size:.8rem}.gem-stat-head{color:#7fd4ff!important}
.ih-glyph{width:1.1em;height:1.1em;flex:none;color:#bca169}
.item-hover:has(.ih-gem-panel){width:min(440px,calc(100vw - 20px))}
.item-hover .ih-panel{margin:8px 0;border:1px solid #625337;border-radius:6px;background:rgba(10,16,20,.55);overflow:hidden}
.item-hover .ih-panel-head{display:flex;align-items:center;gap:7px;margin:0;padding:6px 10px;border-bottom:1px solid #4a3e28;background:linear-gradient(90deg,#2a2418,#151a1c);font:600 .82rem Georgia,serif;letter-spacing:.1em;text-transform:uppercase;color:#e2d1aa}
.item-hover .ih-panel>ul{padding:8px 10px}
.item-hover .ih-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 14px}.item-hover .ih-stat-grid li{display:flex;align-items:center;gap:7px;min-width:0}
.item-hover .ih-gem-rows{list-style:none;margin:0;display:grid;gap:6px}.item-hover .ih-gem-rows li{display:flex;align-items:center;gap:9px}
.item-hover .ih-gem-rows .gem-stone{flex:none;padding:2px;border:1px solid #7a6440;border-radius:3px;background:#0b1114}
.item-hover .ih-gem-panel .gem-stat,.item-hover .ih-gem-panel .ih-panel-head,.item-hover .ih-gem-panel .ih-glyph{color:#7fd4ff}
.gear-icon.ih-framed{overflow:visible;margin:0 6px}
.ih-diamond{position:absolute;width:11px;height:11px;transform:rotate(45deg);border:1px solid #d2b576;background:#1a1410;box-shadow:0 0 0 1px #000,0 0 6px #000}
.ih-diamond.filled{background:var(--gem-fill,#888);box-shadow:0 0 0 1px #000,0 0 7px var(--gem-fill,#888)}.ih-diamond-0{left:-6px;top:calc(50% - 6px)}.ih-diamond-1{right:-6px;top:calc(50% - 6px)}.ih-diamond-2{left:calc(50% - 6px);bottom:-6px}
@media(max-width:430px){.item-hover .ih-stat-grid{grid-template-columns:minmax(0,1fr)}}
/* Page frame (17 Oct, menu standard): the Leaderboards header and tabs (UI kit v1). The Gemcutter's figure stands at the header's right edge; the three numbers sit on a dark strip as on Leaderboards. */
.gemcutter-page{display:grid;gap:14px}
.gemcutter-page .gem-page-head{grid-template-columns:auto minmax(0,1fr);background:radial-gradient(circle at 85% 40%,#3a2c1c,#0c1723 60%)}.gemcutter-page .gem-page-head .uk-head-text{padding-right:150px}
.gemcutter-page .gem-page-head>.gem-head-art{left:auto;right:4%;width:auto;height:100%;object-fit:contain;object-position:right bottom}
.gemcutter-page .gem-page-head>.gem-head-strip{grid-column:1/-1;padding:10px 12px;border-radius:var(--uk-radius);background:var(--uk-navy-0)}
.gemcutter-page .gem-head-strip .uk-stats{padding:0;border:0}
/* Phones (22 Oct): a two-digit count stays on one line ("11", not "1" over "1"), as on the other kit pages. */
.gemcutter-page .gem-head-strip .uk-stat dd{white-space:nowrap}
.gemcutter-page .gem-tabs{margin:0}
.gemcutter-page .gem-tab-icon{width:26px;height:26px;object-fit:contain;margin:-2px 0}
@media(max-width:600px){.gemcutter-page .gem-page-head{grid-template-columns:minmax(0,1fr);gap:8px}.gemcutter-page .gem-page-head .uk-head-text{padding-right:0}.gemcutter-page .gem-page-head .uk-head-icon{display:none}.gemcutter-page .gem-page-head>.gem-head-art{opacity:.55;right:0}.gemcutter-page .gem-head-strip .uk-stat dd{font-size:1.05rem}}
/* Release QA (17 Oct): the merge and socket panels on UI kit v1 parts, at the panel's 13px text. Scrolls, Riverglass and Royal Ember are compact rows
   (.uk-label, a switch row, .uk-seg) instead of framed tiles, so the sockets and the Merge button stay near the top on a phone. */
.gemcutter .gem-scrolls,.gemcutter .gem-boosters{display:grid;gap:8px;margin:12px 0 0;padding:12px 0 0;border-top:1px solid #b69a6040}
.gemcutter label.gem-switch{position:relative;display:flex!important;flex-direction:row;align-items:center;gap:10px;min-height:48px;margin:0;padding:6px 10px;box-sizing:border-box;cursor:pointer;border:1px solid var(--uk-gold-dim,#8f7645);border-radius:var(--uk-radius,4px);background:var(--uk-tab-surface,#16233a);color:var(--uk-ivory,#e9e3d3);text-align:left}
.gemcutter .gem-switch input{position:absolute;inset:0;opacity:0;margin:0;cursor:pointer}
.gemcutter .gem-switch.is-on{border-color:#7fa8d6;background:linear-gradient(180deg,#22385a,#14223a);box-shadow:inset 0 -3px 0 #7fa8d6}
.gemcutter .gem-switch.is-on .es-knob{background:#4f79ad}.gemcutter .gem-switch.is-on .es-knob:after{left:18px;background:#fff}
.gemcutter .gem-switch.is-empty{opacity:.55;cursor:not-allowed}
.gemcutter .gem-switch:has(input:focus-visible),.gemcutter .uk-seg-btn:has(input:focus-visible){outline:3px solid var(--uk-focus,#f4cd86);outline-offset:2px}
.gemcutter .gem-switch-text,.gemcutter .gem-success-head{display:grid;gap:1px;min-width:0;flex:1}
.gemcutter .gem-switch-text b,.gemcutter .gem-success-head b{font:600 .8125rem/1.3 system-ui;color:var(--uk-gold-text,#ffe1aa)}
.gemcutter .gem-switch-text small,.gemcutter .gem-success-head small{font:.75rem/1.35 system-ui;color:var(--uk-ivory-dim,#c9c3b4)}
.gemcutter .gem-switch-art svg{width:30px;height:30px}
.gemcutter .gem-success{display:grid;gap:6px}
.gemcutter .uk-seg>label.uk-seg-btn{cursor:pointer;font:600 .8125rem/1.2 system-ui}
.gemcutter .uk-seg>label.uk-seg-btn input{position:absolute;inset:0;opacity:0;margin:0;cursor:pointer}
.gemcutter .uk-seg>label.uk-seg-btn.is-empty{opacity:.5;cursor:not-allowed}
.gemcutter .gem-boosters .uk-seg-btn{font:600 .875rem/1.2 system-ui}
.gemcutter .gem-chance{display:grid;gap:8px;margin:12px 0 0}
.gemcutter .gem-chance-top{display:flex;align-items:baseline;justify-content:space-between;margin:0}
.gemcutter .gem-chance-top strong{font:600 1.5rem/1 var(--uk-serif,Georgia,serif);color:var(--uk-gold-text,#ffe1aa)}
.gemcutter .gem-odds>span{background:linear-gradient(180deg,#8fe08a,#3a8f4a)}
.gemcutter .gem-odds-text{margin:0;font:.8125rem/1.45 system-ui;color:var(--uk-ivory-dim,#c9c3b4)}
.gemcutter .gem-cost-line{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px;margin:14px 0 10px;padding-top:12px;border-top:1px solid #b69a6040;font:600 .875rem/1.4 system-ui;color:var(--uk-ivory,#e9e3d3)}
.gemcutter .es-need{margin:0;color:#ff9f8c;font:600 .8125rem/1.45 system-ui}
/* Sockets: one small framed cell each, the same height, the action under the gem. */
.gemcutter .gem-sockets{display:grid;grid-template-columns:repeat(auto-fill,minmax(136px,1fr));gap:10px;justify-content:stretch;align-items:start}
.gemcutter .gem-socket{width:auto;box-sizing:border-box;justify-content:flex-start;padding:10px 8px;border:1px solid #b69a6055;border-radius:var(--uk-radius,4px);background:#0d1724}
.gemcutter .gem-socket.filled{border-color:#b69a60aa}
/* The header's numbers wrap their labels on a phone instead of cutting the last one. */
.gemcutter-page .gem-head-strip .uk-stat dt{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:break-word;letter-spacing:.04em}
@media(max-width:600px){.gemcutter-page .gem-head-strip .uk-stat dt{font-size:.66rem}.gemcutter-page .gem-head-strip .uk-stat{padding:0 4px}}
.gemcutter .gem-scrolls+.small-note{margin-top:12px}
/* The painted empty slot (gem-sockets 2026-10-08 painted source, gem-bag-slot) behind each gem in the list, sized so its rim (88 of its 128px) frames the 52px gem. */
.gem-cell{background:url(/assets/gems/gem-bag-slot.webp) center -13px/92px 92px no-repeat,rgba(0,0,0,.3)}
/* Live QA, 25 Oct: compact headers shrink the header icon to 44px, so the 64px gem shrinks with it instead of running into the title. */
:root.uk-compact-heads .shell .gem-page-head .uk-head-icon>.gem-stone{--gem-size:44px!important}
/* Gem auto-merge (IRP_GEM_AUTO_MERGE_VERSION, default off): the Gem bag's switch and "up to" grade. One row on a wide screen, two lines on a phone. */
.gem-auto{margin:10px 0 4px;padding:8px 10px}
.gem-auto-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px 18px}
.gem-auto-row .checkbox-row{margin:0;min-height:44px}
.gem-auto-up{display:flex;align-items:center;gap:8px;min-height:44px;flex:1 1 220px;max-width:420px}
.gem-auto-up>span{white-space:nowrap}
.gem-auto-up select{flex:1 1 auto;min-width:0;min-height:40px;max-width:100%}
.gem-auto .small-note{margin:4px 0 0}

/* /trading-post.css */
/* Trading Post window (switch IRP_TRADING_POST_VERSION, default off; public/trading-post-ui.js). UI kit v1 parts, laid out like the Gemcutter. */
.trading-post-page{display:grid;gap:.75rem;max-width:1320px}
.trading-post-page .tp-head{grid-template-columns:auto minmax(0,1fr)}
.trading-post-page .tp-head>.tp-head-trader{left:auto;right:4%;width:auto;height:100%;object-fit:contain;object-position:right bottom}
.trading-post-page .tp-head-icon{width:64px;height:64px;object-fit:contain}
.trading-post-page .tp-strip{grid-column:1/-1;padding:10px 12px;border-radius:var(--uk-radius);background:var(--uk-navy-0)}
.trading-post-page .tp-strip .uk-stats{padding:0;border:0}.trading-post-page .tp-strip .uk-stat dd{white-space:nowrap}
.trading-post-page .tp-tab-icon.workshop-art{position:relative;width:26px;height:26px;flex:0 0 26px;margin:-2px 0}
.trading-post-page .tp-tab-icon b{display:none}
.trading-post-page .tp-columns{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(300px,1fr);gap:.75rem;align-items:start}
.trading-post-page .tp-pick{display:grid;gap:.75rem;min-width:0}
.trading-post-page .tp-panel{min-width:0}.trading-post-page .tp-panel>.uk-heading{margin-top:0}
.trading-post-page .tp-cards{display:grid;grid-template-columns:repeat(var(--tp-cols,4),minmax(0,1fr));gap:8px;max-height:none;overflow:visible;padding:0}.trading-post-page .tp-cards-get{--tp-cols:3}
.trading-post-page .tp-card{margin:0;min-height:72px;border-radius:4px;background:#1a1b1b;color:#d7c8ac}
.trading-post-page .tp-card[aria-pressed=true]{background:#3a3020;border-color:#cfad6c;box-shadow:inset 3px 0 #cfad6c}
.trading-post-page .tp-card small{font-size:.75rem;color:#b6b09f;margin-top:4px}
.trading-post-page .tp-card small.tp-have{color:#f0d79a;margin-top:2px}
.trading-post-page .tp-mat.workshop-art{position:relative;display:inline-block;width:48px;height:48px;flex:0 0 48px}
.trading-post-page .tp-mat.workshop-art>svg{width:100%;height:100%}
.trading-post-page .tp-mat.workshop-art>b{position:absolute;right:-2px;bottom:-2px;padding:0 3px;border-radius:3px;background:#0c1723e6;color:#f0d79a;font:700 .625rem/1.4 system-ui}
.trading-post-page .tp-swap{display:flex;align-items:center;justify-content:center;gap:10px;margin:.25rem 0 .5rem;padding:12px;border-radius:var(--uk-radius);background:var(--uk-navy-0)}
.trading-post-page .tp-mat.tp-big{width:72px;height:72px;flex-basis:72px}
.trading-post-page .tp-count{font:700 1.25rem/1 Georgia,serif;color:#f0d79a}
.trading-post-page .tp-arrow{font-size:1.6rem;color:#cfad6c;padding:0 4px}
.trading-post-page .tp-sentence{margin:0 0 .75rem;text-align:center;color:var(--uk-ivory);overflow-wrap:anywhere}
.trading-post-page .tp-amounts{margin:.35rem 0 .75rem}
.trading-post-page .tp-need{margin:0 0 .6rem;color:#f2b8a0}
.trading-post-page .tp-last{margin:0 0 .6rem;padding:6px 10px;border-left:3px solid #6fbf73;background:#16261a;color:#cfe8c8}
.trading-post-page .tp-go{white-space:normal;min-height:44px}
.trading-post-page .tp-ah{margin-left:.35rem}
/* The item cards stand upright here (icon, name, count), so the four to give and the three to get each sit on one row at every width: no lone card on a row. */
.trading-post-page .tp-card{flex-direction:column;justify-content:flex-start;text-align:center;gap:4px;padding:8px 4px;min-height:0}.trading-post-page .tp-card>span{display:flex;flex-direction:column;align-items:center}
 .trading-post-page .tp-card strong{font-size:.875rem;line-height:1.2}.trading-post-page .tp-card small.tp-kind{margin-top:1px}.trading-post-page .tp-card small.tp-have{font-size:.72rem}.trading-post-page .tp-card[aria-pressed=true]{box-shadow:inset 0 -3px #cfad6c}
 .trading-post-page .tp-card .tp-mat.workshop-art{width:48px;height:48px;flex-basis:48px}
@media(max-width:900px){.trading-post-page .tp-columns{grid-template-columns:minmax(0,1fr)}}
@media(max-width:600px){.trading-post-page .tp-head{grid-template-columns:minmax(0,1fr);gap:8px}.trading-post-page .tp-head .uk-head-icon{display:none}.trading-post-page .tp-head>.tp-head-trader{opacity:.55;right:0}
 .trading-post-page .tp-strip .uk-stat dd{font-size:1.05rem}.trading-post-page .tp-strip .uk-stat dt{font-size:.66rem;white-space:normal}
 .trading-post-page .tp-cards{gap:6px}.trading-post-page .tp-card small.tp-kind{display:none}.trading-post-page .tp-card strong{font-size:.8rem}.trading-post-page .tp-card .tp-mat.workshop-art{width:40px;height:40px;flex-basis:40px}
 .trading-post-page .tp-tabs>.uk-tab[data-tp-tier]{flex:1 1 0;flex-direction:column;gap:2px;padding:6px 2px;min-width:0}.trading-post-page .tp-tabs>.uk-tab[data-service]{flex:1 1 100%}
 .trading-post-page .tp-tabs .uk-tab-label{font-size:.75rem}
 .trading-post-page .tp-mat.tp-big{width:56px;height:56px;flex-basis:56px}.trading-post-page .tp-ah{margin:.4rem 0 0}}
.tp-back{display:flex;justify-content:center;margin:14px 0 4px}.tp-back>button{min-height:44px}

/* /realm-buffs.css */
/* The Shrine of the Three, Elder Orwin's window (switch IRP_REALM_BUFFS_VERSION, default off; public/realm-buffs-ui.js). UI kit v1 header, then one altar card per god.
   Each god has its own colours (--rb-glow, --rb-deep): Kaelthos ember, Aurelith oath steel-blue, Solenne dawn gold. Until the portraits are painted the card shows
   the god's sigil in a glow of those colours. */
.realm-buffs-page{display:grid;gap:.9rem;max-width:1320px}
.realm-buffs-page .rb-head{grid-template-columns:auto minmax(0,1fr)}
.realm-buffs-page .rb-head>.rb-head-elder{left:auto;right:3%;width:auto;height:100%;object-fit:contain;object-position:right bottom}
.realm-buffs-page .rb-strip{grid-column:1/-1;padding:10px 12px;border-radius:var(--uk-radius);background:var(--uk-navy-0)}
.realm-buffs-page .rb-strip .uk-stats{padding:0;border:0}.realm-buffs-page .rb-strip .uk-stat dd{white-space:nowrap}
.realm-buffs-page .rb-crown{width:18px;height:18px;flex:0 0 18px;margin-right:5px}
.rb-ember{--rb-glow:#ff8a3d;--rb-soft:#ffb37a;--rb-deep:#3b1408}
.rb-oath{--rb-glow:#7fb4ff;--rb-soft:#b9d6ff;--rb-deep:#0d1d3a}
.rb-dawn{--rb-glow:#ffcf5a;--rb-soft:#ffe3a1;--rb-deep:#3a2908}
/* Elder Orwin's words. */
.realm-buffs-page .rb-orwin{margin:0;padding:12px 16px;border-left:3px solid #cfad6c;border-radius:4px;background:linear-gradient(90deg,#2a2416,#14182200);color:#e6dcc4;font:italic 1rem/1.45 Georgia,serif}
.realm-buffs-page .rb-orwin b{font-style:normal;color:#f0d79a;margin-right:4px}
/* The three altars. */
.realm-buffs-page .rb-altars{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.realm-buffs-page .rb-altar{position:relative;display:flex;flex-direction:column;min-width:0;overflow:hidden;border:1px solid #b69a6066;border-radius:8px;background:linear-gradient(180deg,var(--rb-deep),#0f1520 55%);box-shadow:0 10px 24px #0008;transition:box-shadow .25s,border-color .25s}
.realm-buffs-page .rb-altar.is-on{border-color:var(--rb-glow);box-shadow:0 0 0 1px var(--rb-glow),0 0 28px color-mix(in srgb,var(--rb-glow) 45%,transparent),0 10px 24px #0008}
.realm-buffs-page .rb-altar-art{position:relative;display:grid;place-items:center;height:210px;overflow:hidden;background:radial-gradient(circle at 50% 58%,color-mix(in srgb,var(--rb-glow) 55%,transparent) 0,color-mix(in srgb,var(--rb-glow) 18%,transparent) 32%,transparent 62%),linear-gradient(180deg,#0b0f17,var(--rb-deep))}
.realm-buffs-page .rb-altar-art>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.realm-buffs-page .rb-altar-art::after{content:"";position:absolute;inset:auto 0 0;height:45%;background:linear-gradient(180deg,transparent,#0f1520e6);pointer-events:none}
.realm-buffs-page .rb-rays{position:absolute;left:50%;top:58%;width:520px;height:520px;margin:-260px 0 0 -260px;border-radius:50%;background:repeating-conic-gradient(from 0deg,color-mix(in srgb,var(--rb-glow) 22%,transparent) 0 6deg,transparent 6deg 18deg);-webkit-mask:radial-gradient(circle,#000 0,#000 18%,transparent 60%);mask:radial-gradient(circle,#000 0,#000 18%,transparent 60%);opacity:.55;animation:rb-turn 60s linear infinite}
.realm-buffs-page .rb-altar:not(.is-on) .rb-rays{opacity:.25}
@keyframes rb-turn{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.realm-buffs-page .rb-rays{animation:none}}
.realm-buffs-page .rb-sigil{position:relative;z-index:1;display:inline-flex;align-items:center;justify-content:center;filter:drop-shadow(0 0 14px var(--rb-glow)) drop-shadow(0 0 4px var(--rb-soft))}
.realm-buffs-page .rb-sigil .uk-ico{width:120px;height:120px}
.realm-buffs-page .rb-sigil-pair .uk-ico{width:84px;height:84px;margin:0 -6px}
.realm-buffs-page .rb-altar:not(.is-on) .rb-sigil{filter:drop-shadow(0 0 8px color-mix(in srgb,var(--rb-glow) 60%,transparent)) saturate(.75)}
.realm-buffs-page .rb-status{position:absolute;z-index:2;left:12px;bottom:10px;display:inline-flex;align-items:center;gap:6px;margin:0;padding:5px 12px;border:1px solid #ffffff22;border-radius:999px;background:#0b0f17cc;color:#b6b09f;font-size:.82rem;letter-spacing:.03em}
.realm-buffs-page .rb-status.is-on{border-color:var(--rb-glow);color:var(--uk-ivory);background:color-mix(in srgb,var(--rb-deep) 85%,#000)}
.realm-buffs-page .rb-status.is-on b{color:var(--rb-soft)}.realm-buffs-page .rb-status .uk-ico{width:16px;height:16px}
.realm-buffs-page .rb-altar-body{display:flex;flex-direction:column;flex:1;gap:4px;padding:6px 16px 16px;text-align:center}
.realm-buffs-page .rb-title{margin:0;color:var(--rb-soft);font-size:.74rem;font-weight:700;letter-spacing:.18em;text-transform:uppercase}
.realm-buffs-page .rb-god{margin:0;color:var(--uk-ivory);font:600 2rem/1.1 Georgia,serif;letter-spacing:.02em;text-shadow:0 0 18px color-mix(in srgb,var(--rb-glow) 50%,transparent)}
.realm-buffs-page .rb-gift{margin:6px 0 0;color:var(--rb-glow);font:700 1.35rem/1.2 Georgia,serif}
.realm-buffs-page .rb-blessing{margin:0;color:#d7c8ac;font-size:.85rem}
.realm-buffs-page .rb-lore{margin:6px 0 0;color:#a9a392;font:italic .9rem/1.4 Georgia,serif}
.realm-buffs-page .rb-by{margin:4px 0 0;color:#b6b09f;font-size:.8rem;overflow-wrap:anywhere}.realm-buffs-page .rb-by b{color:var(--uk-ivory)}
/* Prayer buttons: hours over price. */
.realm-buffs-page .rb-prayers{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:auto;padding-top:14px}
.realm-buffs-page .rb-pray{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:64px;margin:0;padding:8px 4px;border:1px solid #cfad6c88;border-radius:6px;background:linear-gradient(180deg,#232019,#15161a);color:#d7c8ac;cursor:pointer;transition:transform .12s,border-color .12s,box-shadow .12s}
.realm-buffs-page .rb-pray:hover:not(:disabled),.realm-buffs-page .rb-pray:focus-visible{transform:translateY(-2px);border-color:var(--rb-glow);box-shadow:0 0 14px color-mix(in srgb,var(--rb-glow) 45%,transparent)}
.realm-buffs-page .rb-pray:disabled{opacity:.45;cursor:not-allowed}
.realm-buffs-page .rb-pray-hours{font-size:.74rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:#b6b09f}
.realm-buffs-page .rb-pray-price{display:inline-flex;align-items:center;color:#f0d79a;font:700 1.15rem/1 Georgia,serif}
.realm-buffs-page .rb-shop{margin:0;text-align:center;color:#f2b8a0}.realm-buffs-page .rb-shop button{margin-left:.4rem}
/* Recent prayers. */
.realm-buffs-page .rb-recent>.uk-heading{margin-top:0}
.realm-buffs-page .rb-recent-list{display:grid;gap:6px;margin:0;padding:0;list-style:none}
.realm-buffs-page .rb-recent-list li{display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:4px;background:#ffffff08;color:#d7c8ac}
.realm-buffs-page .rb-recent-list b{color:var(--uk-ivory)}
.realm-buffs-page .rb-dot{flex:0 0 10px;width:10px;height:10px;border-radius:50%;background:var(--rb-glow);box-shadow:0 0 8px var(--rb-glow)}
.rb-back{display:flex;justify-content:center;margin:6px 0 4px}.rb-back>button{min-height:44px}
/* Confirmation. */
.rb-confirm .dawn-crown-coin{width:18px;height:18px}
.rb-confirm.rb-ember,.rb-confirm.rb-oath,.rb-confirm.rb-dawn{box-shadow:0 0 0 1px var(--rb-glow),0 0 30px color-mix(in srgb,var(--rb-glow) 35%,transparent)}
.rb-confirm .eyebrow{color:var(--rb-soft);letter-spacing:.16em}
.rb-confirm .rb-confirm-gift{color:var(--rb-glow);font:700 1.15rem/1.3 Georgia,serif}
@media(max-width:1000px){
 .realm-buffs-page .rb-altars{grid-template-columns:minmax(0,1fr)}
 .realm-buffs-page .rb-altar{display:grid;grid-template-columns:minmax(200px,38%) minmax(0,1fr)}
 .realm-buffs-page .rb-altar-art{height:auto;min-height:220px}
 .realm-buffs-page .rb-altar-art::after{inset:0 0 0 auto;width:30%;height:auto;background:linear-gradient(90deg,transparent,#0f1520e6)}
 .realm-buffs-page .rb-altar-body{padding:14px 16px;text-align:left}
}
@media(max-width:600px){
 .realm-buffs-page .rb-head{grid-template-columns:minmax(0,1fr);gap:8px}.realm-buffs-page .rb-head .uk-head-icon{display:none}.realm-buffs-page .rb-head>.rb-head-elder{opacity:.5;right:0}
 .realm-buffs-page .rb-strip .uk-stat dd{font-size:1.05rem}.realm-buffs-page .rb-strip .uk-stat dt{font-size:.66rem;white-space:normal}
 .realm-buffs-page .rb-orwin{font-size:.92rem}
 .realm-buffs-page .rb-altar{display:flex}
 .realm-buffs-page .rb-altar-art{height:170px;min-height:0}
 .realm-buffs-page .rb-altar-art::after{inset:auto 0 0;width:auto;height:45%;background:linear-gradient(180deg,transparent,#0f1520e6)}
 .realm-buffs-page .rb-sigil .uk-ico{width:96px;height:96px}.realm-buffs-page .rb-sigil-pair .uk-ico{width:68px;height:68px}
 .realm-buffs-page .rb-altar-body{padding:4px 12px 14px;text-align:center}
 .realm-buffs-page .rb-god{font-size:1.75rem}
 .realm-buffs-page .rb-pray{min-height:58px}
}

/* /keystone-altar.css */
/* Hero > Keystones, the Keystone Altar (switch IRP_KEYSTONE_ALTAR_VERSION, default off; public/keystone-altar-ui.js). UI kit v1 header, the two slots,
   then one card per keystone. Each keystone has a theme colour (--ka-glow, --ka-deep): arcane blue, blood red, wild green, gold, steel. */
.keystone-altar-page{display:grid;gap:.9rem;max-width:1320px}
.ka-arcane{--ka-glow:#7fb4ff;--ka-deep:#0f1d38}
.ka-blood{--ka-glow:#ff7a6a;--ka-deep:#3a0f12}
.ka-wild{--ka-glow:#7fdc8f;--ka-deep:#0f2a1a}
.ka-gold{--ka-glow:#ffcf5a;--ka-deep:#33270b}
.ka-steel{--ka-glow:#b9c7d8;--ka-deep:#1b2330}
/* A painting cell from a class passive sheet (background set inline by the page). */
.ka-art{display:inline-block;flex:0 0 auto;width:64px;height:64px;border-radius:10px;background-repeat:no-repeat;box-shadow:0 0 0 1px #b8985b66,0 4px 10px #0008}
.keystone-altar-page .ka-head-art{width:60px;height:60px}
/* The three numbers stay number-over-label, also under compact heads (as the guild Store does). */
:root.uk-compact-heads .shell .keystone-altar-page .ka-head .uk-stat,.keystone-altar-page .ka-head .uk-stat{flex-direction:column-reverse;align-items:center;gap:2px}
.keystone-altar-page .ka-head .uk-stat dd{white-space:nowrap}
/* Slots. */
.ka-slots{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.ka-slot{display:flex;align-items:center;gap:14px;min-width:0;min-height:92px;padding:12px 14px;border:1px solid var(--uk-gold-dim);border-radius:8px;background:linear-gradient(150deg,#1c2b40,#101a2b);box-shadow:var(--uk-rule)}
.ka-slot.is-set{border-color:var(--ka-glow);background:linear-gradient(150deg,var(--ka-deep),#101a2b 70%);box-shadow:var(--uk-rule),0 0 18px color-mix(in srgb,var(--ka-glow) 30%,transparent)}
.ka-slot.is-locked{border-color:#5a5446;opacity:.75}
.ka-slot-socket{flex:0 0 64px;width:64px;height:64px;border:2px dashed #b8985b88;border-radius:50%;background:radial-gradient(circle,#24364e,#0f1826 75%)}
.ka-slot.is-locked .ka-slot-socket{border-style:solid;border-color:#5a5446;background:radial-gradient(circle,#1d2430,#0f1520 75%)}
.ka-slot-text{flex:1 1 auto;min-width:0}
.ka-slot-eyebrow{margin:0;color:var(--ka-glow);font:700 .7rem/1.3 system-ui;letter-spacing:.14em;text-transform:uppercase}
.ka-slot-name{margin:0;color:var(--uk-ivory);font:600 1.15rem/1.2 Georgia,serif}
.ka-slot-note{margin:2px 0 0;color:var(--uk-ivory-dim);font-size:.85rem;line-height:1.35}
.ka-slot .ka-remove{flex:0 0 auto;min-height:44px}
.ka-note{margin:0;padding:10px 14px;border-left:3px solid #cfad6c;border-radius:4px;background:linear-gradient(90deg,#2a2416,#14182200);color:#e6dcc4;font-size:.92rem}
/* Keystone cards. */
.ka-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,290px),1fr));gap:12px}
.ka-card{display:flex;flex-direction:column;gap:8px;min-width:0;padding:14px;border:1px solid #b69a6066;border-radius:8px;background:linear-gradient(170deg,var(--ka-deep),#0f1520 60%);box-shadow:var(--uk-rule),0 6px 16px #0006}
.ka-card.is-set{border-color:var(--ka-glow);box-shadow:var(--uk-rule),0 0 0 1px var(--ka-glow),0 0 20px color-mix(in srgb,var(--ka-glow) 35%,transparent)}
.ka-card.is-other{opacity:.7}
.ka-card.is-other .ka-art{filter:grayscale(.6)}
.ka-card-head{display:flex;align-items:center;gap:12px;min-width:0}
.ka-card-name{margin:0;color:var(--uk-ivory);font:600 1.3rem/1.15 Georgia,serif}
.ka-card-for{margin:2px 0 0;color:var(--ka-glow);font:700 .72rem/1.3 system-ui;letter-spacing:.1em;text-transform:uppercase}
.ka-gain{display:grid;gap:4px;margin:0;padding:0;list-style:none}
.ka-gain li{position:relative;padding-left:20px;color:#e9e2cf;font-size:.92rem;line-height:1.4}
.ka-gain li::before{content:"+";position:absolute;left:4px;top:0;color:#8fe39b;font-weight:800}
.ka-cost{margin:0;padding:6px 10px;border-radius:4px;background:#ffffff0a;color:#e8c9a0;font-size:.88rem;line-height:1.4}
.ka-cost b{color:#f2b27a}
.ka-idea{margin:0;color:#a9a392;font:italic .88rem/1.4 Georgia,serif}
.ka-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:auto;padding-top:6px}
.ka-actions>button{flex:1 1 130px;min-height:44px}
.ka-card-why,.ka-card-set{margin:0;color:var(--uk-ivory-dim);font-size:.85rem}
.ka-card-set .uk-state{color:var(--ka-glow)}
.ka-others>summary{cursor:pointer}
.ka-others>.ka-grid{margin-top:12px}
@media(max-width:640px){
 .ka-slots{grid-template-columns:1fr}
 .ka-slot{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center}
 .ka-slot .ka-remove{grid-column:1/-1}
 .keystone-altar-page .ka-head .uk-stat dd{font-size:1.05rem}.keystone-altar-page .ka-head .uk-stat dt{font-size:.66rem}
 .ka-art{width:56px;height:56px}
}
/* Hero sheet (IRP_HERO_SHEET_VERSION, lib/hero-sheet.js; visual tune-up item 6, 23 Oct): the Hero > Keystones tab's icon is the altar's Steady Hand keystone
   (public/assets/three-paths/icons/keystones-v1.webp, 4 x 3 cells, cell 3). Only drawn while the switch puts the class on the tab. */
.section-tab>.uk-art.hs-art-keystone{background:url(/assets/three-paths/icons/keystones-v1.webp) 100% 0/400% 300% no-repeat}

/* /tactics.css */
/* Hero > Tactics (streamlined tactics, switch IRP_TACTICS_V2_VERSION, default off; public/tactics-ui.js). UI kit v1 header, one framed row per list with
   three cards, then the kill order rules. Each list has its colour from the tactic icons (public/threat-tactics.js TONES). */
.tactics-page{display:grid;gap:.9rem;max-width:1320px}
.tactics-page .tx-head-icon .uk-icon-tile{width:60px;height:60px}.tactics-page .tx-head-icon .tactic-icon{width:48px;height:48px}
:root.uk-compact-heads .shell .tactics-page .tx-head .uk-stat,.tactics-page .tx-head .uk-stat{flex-direction:column-reverse;align-items:center;gap:2px}
.tactics-page .tx-head .uk-stat dd{white-space:nowrap}
.tx-note-line{margin:0;padding:10px 14px;border:1px solid #b8985b55;border-radius:8px;background:#0f1a29cc;color:var(--uk-ivory-dim);font-size:.9rem;line-height:1.4}
.tx-note-line.is-locked{border-color:#c98b5a88;color:var(--uk-ivory)}
.tx-row{--tx-tone:#d9b56b;display:grid;gap:10px;padding:14px 16px;min-width:0}
.tx-row-offense{--tx-tone:#e8a269}.tx-row-defense{--tx-tone:#82c8d6}.tx-row-DPS{--tx-tone:#e2c86a}.tx-row-Tank{--tx-tone:#b4a0e2}.tx-row-Healer{--tx-tone:#8fd18a}.tx-row-kill{--tx-tone:#e07a6a}
.tx-row-top{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px 12px;min-width:0}
.tx-row-top .uk-heading{margin:0;color:var(--tx-tone);letter-spacing:.12em;text-transform:uppercase;font-size:1rem}
.tx-note{font-size:.75rem}
.tx-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.tactics-page .tx-card{display:flex;flex-direction:column;align-items:stretch;gap:6px;min-width:0;min-height:44px;margin:0;padding:12px;border:1px solid #6f5d3c;border-radius:8px;background:linear-gradient(150deg,#182438,#0f1928);box-shadow:inset 0 0 0 2px var(--uk-navy-0),inset 0 0 0 3px #b8955a26;color:var(--uk-ivory);font:inherit;text-align:left;white-space:normal;cursor:pointer;filter:none}
.tactics-page .tx-card:hover:not(:disabled){border-color:var(--tx-tone);background:linear-gradient(150deg,#1f2e46,#121e30)}
.tactics-page .tx-card:focus-visible{outline:2px solid var(--uk-focus);outline-offset:2px}
.tactics-page .tx-card.is-picked{border-color:var(--tx-tone);background:linear-gradient(150deg,color-mix(in srgb,var(--tx-tone) 22%,#142033),#0f1928 75%);box-shadow:inset 0 0 0 2px var(--uk-navy-0),0 0 14px color-mix(in srgb,var(--tx-tone) 30%,transparent);cursor:default;opacity:1}
/* Full review (3 Nov): the tactic in use is a pressed, disabled button, and the painted look greys every disabled button, so the one card you picked looked switched off. It keeps its colour. */
:root.uk-painted .tactics-page .tx-card.is-picked:disabled{filter:none;opacity:1}
.tactics-page .tx-card:disabled:not(.is-picked){opacity:.6;cursor:not-allowed}
.tx-card-head{display:flex;align-items:center;gap:10px;min-width:0}
.tactics-page .tx-tile{flex:0 0 48px;width:48px;height:48px}
.tx-card-title{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;min-width:0}
.tx-card-title b{color:var(--uk-ivory);font:600 1.05rem/1.2 Georgia,serif}
.tx-card.is-picked .uk-state{color:var(--tx-tone)}
.tx-default{font-size:.68rem}
.tx-card-what{color:var(--uk-ivory);font-size:.88rem;line-height:1.4}
.tx-card-trade,.tx-card-also{display:block;margin:0;color:var(--uk-ivory-dim);font-size:.8rem;line-height:1.35}
.tx-card-trade b{color:var(--tx-tone);font-weight:700}
.tx-card-also{font-style:italic}
.tx-help{margin:0;color:var(--uk-ivory-dim);font-size:.85rem;line-height:1.4}
.tx-rule-group{display:grid;gap:6px}
.tx-rule-group h3{margin:0;color:var(--uk-ivory-dim);font:700 .72rem/1.3 system-ui;letter-spacing:.14em;text-transform:uppercase}
.tx-rules{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:8px}
.tactics-page .tx-rule{display:flex;flex-direction:column;align-items:flex-start;gap:2px;min-width:0;min-height:44px;margin:0;padding:8px 10px;border:1px solid #6f5d3c;border-radius:6px;background:#111c2c;color:var(--uk-ivory);font:inherit;text-align:left;white-space:normal;cursor:pointer;filter:none}
.tactics-page .tx-rule b{font-size:.92rem}
.tactics-page .tx-rule small{color:var(--uk-ivory-dim);font-size:.78rem;line-height:1.3}
.tactics-page .tx-rule.is-picked{border-color:var(--tx-tone);background:linear-gradient(150deg,color-mix(in srgb,var(--tx-tone) 20%,#142033),#0f1928 75%)}
.tactics-page .tx-rule:disabled{opacity:.55;cursor:not-allowed}
.tx-others{display:grid;gap:10px}
.tx-others[open]>summary{margin-bottom:10px}
.tx-others>.tx-row+.tx-row{margin-top:10px}
/* The skill tree bar's button to this page: the three picks' icons in a row. */
.tx-summary{display:inline-flex;align-items:center;gap:4px;cursor:pointer}
.tx-summary .tree-tactic-icon+.tree-tactic-icon{margin-left:-6px}
@media (max-width:820px){.tx-cards{grid-template-columns:minmax(0,1fr)}.tx-row{padding:12px}}

/* /class-gems.css */
/* Hero > Gems, class gems in skill sockets (switch IRP_CLASS_GEMS_VERSION, default off; public/class-gems-ui.js). UI kit v1 header, the Gem Lab card,
   one row per skill on the bar, then one card per gem. Supports glow blue, triggers gold. */
.class-gems-page{display:grid;gap:.9rem;max-width:1320px}
.cg-support{--cg-glow:#86b8ff;--cg-deep:#101c34}
.cg-trigger{--cg-glow:#ffcf5a;--cg-deep:#30250c}
.cg-gem{display:block;width:40px;height:40px;object-fit:contain;filter:drop-shadow(0 2px 4px #000a)}
.class-gems-page .cg-head-art{width:56px;height:56px}
:root.uk-compact-heads .shell .class-gems-page .cg-head .uk-stat,.class-gems-page .cg-head .uk-stat{flex-direction:column-reverse;align-items:center;gap:2px}
.class-gems-page .cg-head .uk-stat dd{white-space:nowrap}
.cg-note{margin:0;padding:10px 14px;border-left:3px solid #cfad6c;border-radius:4px;background:linear-gradient(90deg,#2a2416,#14182200);color:#e6dcc4;font-size:.92rem}
/* Gem Lab. */
.cg-lab{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 16px;border-radius:8px}
.cg-lab .uk-heading{margin:0 0 4px}
.cg-lab p{margin:0;color:#e6dcc4;font-size:.92rem;line-height:1.4}
.cg-lab .cg-claim{flex:0 0 auto;min-height:44px}
/* Skill rows. */
.cg-rows{display:grid;gap:10px}
.cg-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:14px;min-width:0;padding:10px 14px;border:1px solid var(--uk-gold-dim);border-radius:8px;background:linear-gradient(150deg,#141a26,#0f131c)}
.cg-row.is-set{border-color:#cfad6c}
.cg-socket{display:grid;place-items:center;width:56px;height:56px;border-radius:50%;background:radial-gradient(circle at 50% 40%,#2a2f3b,#0b0d12 70%);box-shadow:inset 0 0 0 2px #8a7344,inset 0 3px 8px #000c}
.cg-socket.is-set{box-shadow:inset 0 0 0 2px #e2c27c,0 0 14px #e2c27c55}
.cg-row-text-wrap{min-width:0}
.cg-row-skill{margin:0;color:var(--uk-ivory);font:600 1.1rem/1.2 Georgia,serif}
.cg-row-gem{margin:2px 0 0;color:#e9e2cf;font-size:.92rem}
.cg-row-gem .uk-state{color:#cfad6c}
.cg-empty{color:var(--uk-ivory-dim)}
.cg-off{color:#f2b27a;font-size:.82rem}
.cg-row-text{margin:2px 0 0;color:var(--uk-ivory-dim);font-size:.85rem;line-height:1.35}
.cg-tag{color:#cfad6c;font:700 .66rem/1 system-ui;letter-spacing:.1em;text-transform:uppercase;vertical-align:middle}
.cg-row-actions{display:flex;justify-content:flex-end;min-width:0}
/* The gem picker: its button sits at the end of the row; open, it takes the row's full width under the skill and lists the gems that fit. */
.cg-row:has(.cg-pick[open]) .cg-row-actions{grid-column:1/-1}
.cg-pick{width:100%;display:flex;flex-direction:column;align-items:flex-end}
.cg-pick>summary{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 16px;border-radius:6px;cursor:pointer;list-style:none;white-space:nowrap}
.cg-pick>summary::-webkit-details-marker{display:none}
.cg-pick>summary::after{content:'';width:7px;height:7px;border:solid currentColor;border-width:0 2px 2px 0;transform:translateY(-2px) rotate(45deg);transition:transform .15s}
.cg-pick[open]>summary::after{transform:translateY(2px) rotate(-135deg)}
.cg-pick-count{display:inline-grid;place-items:center;min-width:22px;height:22px;padding:0 6px;border-radius:11px;background:#0008;color:#f1e3bd;font:700 .78rem/1 system-ui}
.cg-pick-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,260px),1fr));gap:8px;width:100%;margin-top:10px;padding-top:10px;border-top:1px solid #b69a6044}
.cg-pick-gem{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:10px;min-height:56px;padding:8px 10px;border:1px solid #b69a6066;border-radius:8px;background:linear-gradient(170deg,var(--cg-deep,#1a1d26),#0f1520 70%);color:#e9e2cf;text-align:left;cursor:pointer;font:inherit}
.cg-pick-gem:hover,.cg-pick-gem:focus-visible{border-color:#e2c27c;box-shadow:0 0 0 1px #e2c27c55,0 0 12px #e2c27c33}
.cg-pick-art{width:36px;height:36px}
span.cg-pick-art{display:block;width:36px;height:36px}
.cg-pick-text{display:grid;gap:2px;min-width:0}
.cg-pick-text b{color:var(--uk-ivory);font:600 1rem/1.2 Georgia,serif}
.cg-pick-kind{justify-self:start;color:var(--cg-glow,#cfad6c);font:700 .64rem/1.2 system-ui;letter-spacing:.08em;text-transform:uppercase}
.cg-pick-text small{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:var(--uk-ivory-dim);font-size:.8rem;line-height:1.3}
/* Gem cards. */
.cg-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,280px),1fr));gap:12px}
.cg-card{display:flex;flex-direction:column;gap:8px;min-width:0;padding:14px;border:1px solid #b69a6066;border-radius:8px;background:linear-gradient(170deg,var(--cg-deep),#0f1520 60%);box-shadow:var(--uk-rule),0 6px 16px #0006}
.cg-card-head{display:flex;align-items:center;gap:12px;min-width:0}
.cg-card-art{width:48px;height:48px}
.cg-card-name{margin:0;color:var(--uk-ivory);font:600 1.2rem/1.15 Georgia,serif}
.cg-card-kind{margin:2px 0 0;color:var(--cg-glow);font:700 .7rem/1.3 system-ui;letter-spacing:.08em;text-transform:uppercase}
.cg-card-text{margin:0;color:#e9e2cf;font-size:.92rem;line-height:1.4}
.cg-card-fits{margin:0;color:#b9b19c;font-size:.85rem;font-style:italic}
.cg-card-count{margin:auto 0 0;color:var(--uk-ivory-dim);font-size:.85rem}
@media(max-width:640px){
 .cg-lab{flex-direction:column;align-items:stretch}
 .cg-row{grid-template-columns:auto minmax(0,1fr)}
 .cg-row-actions{grid-column:1/-1}
 .cg-pick{align-items:stretch}
 .cg-pick>summary{justify-content:center}
 .class-gems-page .cg-head .uk-stat dd{font-size:1.05rem}.class-gems-page .cg-head .uk-stat dt{font-size:.66rem}
 .cg-socket{width:48px;height:48px}
}

/* /build-lab.css */
/* Quests > Active: the Build Lab card (Build Uniques, switch IRP_BUILD_UNIQUES_VERSION, default off; public/build-lab-ui.js). UI kit frame, one card per Unique. */
.build-lab{display:grid;gap:12px;margin:0 0 18px;padding:16px 18px;border:1px solid #c79b4a88;border-radius:8px;background:linear-gradient(160deg,#2a1d0e,#121a28 65%)}
.build-lab .bl-eyebrow{margin:0;color:#e9b45a;font:700 .72rem/1.3 system-ui;letter-spacing:.14em;text-transform:uppercase}
.build-lab h2{margin:2px 0 4px;color:var(--uk-ivory,#f3ead6);font:600 1.45rem/1.2 Georgia,serif}
.build-lab .bl-intro{margin:0;max-width:70ch;color:#e3dac4;font-size:.95rem;line-height:1.45}
.bl-items{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:12px}
.bl-item{display:flex;flex-direction:column;gap:6px;min-width:0;padding:12px 14px;border:1px solid #d08a3c77;border-radius:6px;background:#0f1520cc}
.bl-item h3{margin:0;color:#f0a23a;font:600 1.12rem/1.2 Georgia,serif}
.bl-meta{margin:0;color:#b8ad95;font-size:.82rem}
.bl-ok{color:#8fe39b}
.bl-power{margin:0;color:#ece4d0;font-size:.92rem;line-height:1.45}
.bl-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px 18px}
.bl-actions .bl-claim{min-height:44px;padding-inline:20px}
.bl-state{margin:0;color:#e3dac4}
.bl-state .uk-state{margin-right:6px;color:#8fe39b;font-weight:700}
.bl-guide{color:#e9c27a}
.build-lab.is-claimed .bl-items{opacity:.85}
@media(max-width:640px){.build-lab{padding:14px 12px}.bl-actions .bl-claim{flex:1 1 100%}}
/* Simpler screens (Reddit testers, 26 Oct): before level 40 the card is one line. */
.build-lab.is-slim{gap:2px;padding:12px 16px}
.build-lab.is-slim .bl-intro{max-width:none}

/* /fractured-shards.css */
/* Fractured Shards: Sereth Vael's window and the battle strip (switch IRP_FRACTURED_SHARDS_VERSION, default off; public/fractured-shards-ui.js).
   UI kit v1 header and tabs like Leaderboards, framed sections, and one shard card. Each card takes its rarity colour from --sh-c
   (plain gold, magic blue, rare amber, fractured violet). Until the painted shard icons land the card draws a cut-crystal outline in that colour. */
.shards-page{display:grid;gap:.9rem;max-width:1320px}
.shards-page .sh-head{grid-template-columns:auto minmax(0,1fr)}
.shards-page .sh-head>.sh-head-npc{left:auto;right:3%;width:auto;height:100%;object-fit:contain;object-position:right bottom}
.shards-page .sh-strip{grid-column:1/-1;padding:10px 12px;border-radius:var(--uk-radius);background:var(--uk-navy-0)}
.shards-page .sh-strip .uk-stats{padding:0;border:0}.shards-page .sh-strip .uk-stat dd{white-space:nowrap}
.shards-page .uk-head-icon .sh-gem{filter:drop-shadow(0 0 10px #d48cff99)}
.shards-page .sh-sereth{margin:0;padding:12px 16px;border-left:3px solid #b98cff;border-radius:4px;background:linear-gradient(90deg,#251a33,#14182200);color:#e6dcc4;font:italic 1rem/1.45 Georgia,serif}
.shards-page .sh-sereth b{font-style:normal;color:#dcc3ff;margin-right:4px}
.shards-page .sh-tabs{margin:0}
.shards-page .sh-body{display:grid;gap:.9rem}
.shards-page .sh-note{margin:.2rem 0 .6rem;color:var(--uk-ivory-dim);font-size:.9rem;line-height:1.45}
.shards-page .sh-empty{margin:.4rem 0;padding:14px;border:1px dashed #b69a6055;border-radius:6px;color:var(--uk-ivory-dim);text-align:center}
.shards-page .sh-count{margin-left:auto;color:var(--uk-gold-text);font-weight:700}
.shards-page .sh-label{margin:.8rem 0 .35rem;color:var(--uk-gold-text);font-weight:700;font-size:.9rem}
.shards-page .sh-too-high{display:flex;gap:6px;align-items:center;margin:.2rem 0 0;font-size:.8rem;color:#ffb27a}
.shards-page .sh-warn{display:flex;gap:6px;align-items:center;margin:.4rem 0;color:#ffb27a}
.shards-page .sh-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:10px}
/* Painted shard art (prompt 45): the realm's shard with its rarity frame laid over it. */
.sh-art{position:relative;display:inline-block;flex:0 0 auto;width:var(--sh-size);height:var(--sh-size)}
.sh-art>img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
.sh-art>.sh-frame{pointer-events:none}
.sh-head-icon{width:56px;height:56px;object-fit:contain;filter:drop-shadow(0 0 10px #d48cff88)}
.sh-tab-icon{width:24px;height:24px;object-fit:contain}
/* The shard card. */
.sh-card{position:relative;display:flex;flex-direction:column;min-width:0;padding:10px 12px;border:1px solid color-mix(in srgb,var(--sh-c) 55%,#0000);border-radius:8px;background:linear-gradient(180deg,color-mix(in srgb,var(--sh-c) 12%,#141c2a),#0f1520)}
.sh-card.is-selected{box-shadow:0 0 0 1px var(--sh-c),0 0 18px color-mix(in srgb,var(--sh-c) 35%,transparent)}
.sh-card-main{display:flex;gap:10px;align-items:flex-start}
.sh-card .sh-gem{flex:0 0 auto;filter:drop-shadow(0 0 6px color-mix(in srgb,var(--sh-c) 60%,transparent))}
.sh-card-text{min-width:0;flex:1}
.sh-card-title{margin:0;color:var(--uk-ivory);font:600 1.05rem/1.2 Georgia,serif;overflow-wrap:anywhere}
.sh-card-title .sh-level{color:var(--sh-c)}
.sh-card-sub{display:flex;flex-wrap:wrap;gap:4px 10px;align-items:center;margin:3px 0 0;color:var(--uk-ivory-dim);font-size:.82rem}
.sh-rarity{color:var(--sh-c);font-weight:700}
.sh-tier{padding:0 6px;border:1px solid #b69a6066;border-radius:3px;color:var(--uk-gold-text);font-weight:700;font-size:.75rem}
.sh-danger{display:inline-flex;gap:2px}.sh-danger i{width:9px;height:9px;transform:rotate(45deg);border:1px solid #ff7b5c99;background:transparent}.sh-danger i.on{background:#ff7b5c;border-color:#ff9a7f}
.sh-pays{display:flex;flex-wrap:wrap;gap:6px;margin:6px 0 0}
.sh-pay{padding:2px 8px;border-radius:999px;background:#1f2d22;color:#a9e5a0;font-size:.8rem;font-weight:700}
.sh-pay-gold,.sh-pay-bossGold{background:#30281a;color:#f3cf7d}.sh-pay-shards{background:#271f33;color:#d9b8ff}.sh-pay-unique{background:#33241a;color:#ffb36b}.sh-pay-none{background:#1a2230;color:var(--uk-ivory-dim);font-weight:400}
.sh-more{margin-top:8px}
.sh-more>summary{cursor:pointer;min-height:32px;display:flex;align-items:center;color:var(--uk-gold-text);font-size:.85rem}
.sh-affixes{display:grid;gap:6px;margin:6px 0 0;padding:0;list-style:none}
.sh-affixes li{display:grid;grid-template-columns:minmax(0,1fr);gap:1px;padding:6px 8px;border-radius:4px;background:#0b111b}
.sh-aff-name{color:var(--uk-ivory);font-weight:700;font-size:.85rem}.sh-aff-danger{color:#ff9a7f;font-size:.82rem}.sh-aff-reward{color:#a9e5a0;font-size:.82rem}
.sh-affixes-none{margin:6px 0 0;color:var(--uk-ivory-dim);font-size:.85rem}
.sh-card-foot{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin-top:8px}
.sh-card-foot .uk-btn{min-height:36px}
.sh-owner{color:var(--uk-ivory-dim);font-size:.8rem}
.sh-order{display:grid;place-items:center;flex:0 0 28px;height:28px;border:1px solid var(--uk-gold-dim);border-radius:50%;color:var(--uk-gold-text);font-weight:700}
.sh-live{flex:0 0 auto;padding:2px 8px;border-radius:999px;background:#5a1f1f;color:#ffd0c0;font-size:.75rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase}
/* Running shard and the battle strip. */
.sh-run-meta{display:flex;flex-wrap:wrap;gap:10px 18px;align-items:center;margin-top:10px;color:var(--uk-ivory)}
.sh-run-meta>span{display:inline-flex;gap:6px;align-items:center}.sh-run-meta b{color:var(--uk-gold-text)}
.sh-pips{display:inline-flex;gap:4px;align-items:center}.sh-pips i{width:10px;height:10px;border-radius:50%;border:1px solid #b69a60;background:#2f7a3e}.sh-pips i.lost{background:#5a1f1f;border-color:#a04a4a}
.shards-page .sh-open{display:flex;flex-direction:column;align-items:flex-start;gap:6px;margin-top:12px}
.shards-page .sh-open-btn{min-height:46px;padding:0 22px;font-size:1rem}
.shards-page .sh-field{display:grid;gap:4px;max-width:420px}.shards-page .sh-field>span{color:var(--uk-gold-text);font-weight:700;font-size:.9rem}
.shards-page .sh-field select{min-height:44px;padding:0 10px;border:1px solid var(--uk-gold-dim);border-radius:var(--uk-radius);background:var(--uk-navy-1);color:var(--uk-ivory);font:inherit}
.shards-page .sh-break{display:flex;flex-wrap:wrap;gap:6px}.shards-page .sh-break .uk-btn[aria-pressed="true"]{background:var(--uk-surface-lit);border-color:var(--uk-gold);color:var(--uk-gold-text)}
/* The Enchanter's Roll Shards tab (6 Nov): the Enchant Gear parts (public/workshop-view.js enchanterWindow) with a shard in place of the item. */
.sh-bench-page .sh-picker .workshop-items{max-height:none}
.sh-bench-page .sh-pick-item{display:flex;align-items:center;gap:10px;min-height:64px;border-color:color-mix(in srgb,var(--sh-c) 35%,#4a3f30)}
.sh-bench-page .sh-pick-item[aria-pressed="true"]{border-color:var(--uk-gold-text,#e8c77a)!important;box-shadow:0 0 0 1px var(--uk-gold-text,#e8c77a)}
.sh-bench-page .sh-pick-item .sh-art{flex:0 0 auto}
.sh-bench-page .sh-pick-item .sh-pick-level,.sh-bench-page .sh-item-heading h2 span{color:var(--sh-c)}
.sh-bench-page .sh-rarity{color:var(--sh-c);font-weight:600}
.sh-bench-page .sh-item-heading{display:flex;align-items:center;gap:12px}
.sh-bench-page .sh-item-heading h2{margin:0}
.sh-bench-page .sh-item-heading p{display:flex;flex-wrap:wrap;align-items:center;gap:4px;margin:4px 0 0}
.sh-bench-page .sh-chips{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 10px}
.sh-bench-page .sh-pay-xp,.sh-bench-page .sh-pay-shards,.sh-bench-page .sh-pay-gold,.sh-bench-page .sh-aff-reward{color:#9fdc8a!important}
.sh-bench-page .sh-aff-danger{color:#f0a487!important}
.sh-bench-page .enchanter-affix-row{grid-template-columns:minmax(0,1fr);margin-bottom:6px}
.sh-bench-page .sh-discard-row{margin:12px 0 0}
.sh-bench-page .sh-discard{display:inline-flex;align-items:center;gap:6px;min-height:44px}
.sh-bench-page .sh-sealed{display:flex;align-items:center;gap:8px;margin:18px;color:var(--uk-ivory-dim)}
@media(max-width:700px){.sh-bench-page .sh-picker .workshop-items{max-height:372px}.sh-bench-page .sh-item-heading .sh-art{--sh-size:52px!important}}
/* Atlas and odds. */
.shards-page .sh-realms{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:10px}
.shards-page .sh-realm{padding:10px 12px;border:1px solid #b69a6044;border-radius:8px;background:#111926}
.shards-page .sh-realm-head{display:flex;gap:10px;align-items:center}
.shards-page .sh-realm h3{margin:0;color:var(--uk-ivory);font:600 1.05rem Georgia,serif}.shards-page .sh-realm-tag{margin:2px 0 0;color:var(--uk-ivory-dim);font:italic .85rem Georgia,serif}
.shards-page .sh-realm-facts{display:grid;gap:4px;margin:8px 0}.shards-page .sh-realm-facts>div{display:grid;grid-template-columns:70px minmax(0,1fr);gap:8px}
.shards-page .sh-realm-facts dt{color:var(--uk-gold-text);font-size:.82rem}.shards-page .sh-realm-facts dd{margin:0;color:var(--uk-ivory);font-size:.85rem}
.shards-page .sh-realm-hint{margin:0;color:var(--uk-ivory-dim);font-size:.82rem}
.sh-el{display:inline-block;margin-right:4px;padding:0 6px;border-radius:3px;font-size:.78rem;font-weight:700}
.sh-el-fire{background:#3a1a0e;color:#ffb27a}.sh-el-frost{background:#0e2235;color:#a9d4ff}.sh-el-nature{background:#13280f;color:#a9e5a0}.sh-el-shadow{background:#251634;color:#d9b8ff}.sh-el-physical{background:#262626;color:#ddd}
.shards-page .sh-odds{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:.9rem}
.shards-page .sh-table{width:100%;border-collapse:collapse;font-size:.9rem}.shards-page .sh-table th,.shards-page .sh-table td{padding:6px 8px;border-bottom:1px solid #b69a6033;text-align:left}
.shards-page .sh-table th{color:var(--uk-gold-text);font-weight:700}.shards-page .sh-table td:last-child{text-align:right;color:var(--uk-ivory)}
.shards-page .sh-back{margin:0}
.sh-battle-strip{display:flex;flex-wrap:wrap;gap:6px 12px;align-items:center;padding:6px 12px;border:1px solid #b98cff66;border-radius:6px;background:linear-gradient(90deg,#1d1430ee,#101826ee);color:var(--uk-ivory);font-size:.88rem}
.sh-battle-strip b{color:#e6d2ff}.sh-battle-strip.is-awake{border-color:#ff9a7f}.sh-battle-strip.is-awake>span:nth-of-type(1){color:#ffb27a;font-weight:700}
.sh-battle-strip .sh-next{color:var(--uk-ivory-dim)}
@media(max-width:700px){
 .shards-page .sh-list,.shards-page .sh-realms,.shards-page .sh-crafts{grid-template-columns:minmax(0,1fr)}
 .shards-page .sh-head>.sh-head-npc{opacity:.45}
 .shards-page .sh-craft{flex-direction:column;align-items:stretch}
 .shards-page .sh-open-btn{width:100%;justify-content:center}
 .sh-battle-strip{gap:2px 8px;padding:4px 8px;font-size:.8rem}.sh-battle-strip b{white-space:nowrap}
}
/* Auction House with the Shards category (public/auction-shards.js): ten category tiles, 5 x 2 on a phone and one row on a wide panel,
   and the five shard filters (level, realm, rarity, pays, sort) in one row when there is room. */
.shell .ah-page .ah-cats-even[data-n="10"]{display:flex;flex-wrap:wrap;justify-content:center}
.shell .ah-page .ah-cats-even[data-n="10"]>.ah-cat{flex:0 0 calc((100% - 3 * 6px) / 4);min-width:0;padding-inline:1px}
.shell .ah-page .ah-cats-even[data-n="10"] .ah-cat-t{font-size:.68rem;letter-spacing:-.01em;overflow-wrap:normal;word-break:keep-all}
@container ahp (min-width:700px){.shell .ah-page .ah-cats-even[data-n="10"]{display:grid;grid-template-columns:repeat(10,minmax(0,1fr))}}
.shell .ah-page .ah-shard-filters{display:grid;grid-template-columns:minmax(0,1fr);gap:10px}
/* 23 Oct: the shard filters are chip rows (ui-auction.css), one per line. */
.shell .ah-page .ah-shard-filters .uk-field{min-width:0}
/* Sereth's portal (21 Oct): numbered slots like a bag, your shards as tiles, Run all. Also the Enchanter's Roll Shards tab. */
.shards-page .sh-portal-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:14px;align-items:start}
.shards-page .sh-slots{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin:10px 0}
.shards-page .sh-bag-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(76px,1fr));gap:8px;margin:10px 0}
.shards-page .sh-slot,.shards-page .sh-tile{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;aspect-ratio:1;min-width:0;min-height:76px;padding:6px 4px;border-radius:8px}
.shards-page .sh-slot.is-empty{border:1px dashed color-mix(in srgb,var(--uk-gold-dim) 70%,transparent);background:radial-gradient(circle at 50% 45%,#7a5cff1a,#0000 70%),#0b1222}
.shards-page .sh-tile{cursor:pointer;border:1px solid color-mix(in srgb,var(--sh-c) 60%,#0000);background:radial-gradient(circle at 50% 40%,color-mix(in srgb,var(--sh-c) 22%,transparent),#0000 72%),#0d1528;color:var(--uk-ivory);font:inherit;transition:transform .12s,box-shadow .12s}
.shards-page .sh-tile:hover:not(:disabled),.shards-page .sh-tile:focus-visible{transform:translateY(-2px);box-shadow:0 0 0 1px var(--sh-c),0 4px 14px color-mix(in srgb,var(--sh-c) 35%,transparent)}
.shards-page .sh-tile.is-selected{box-shadow:0 0 0 2px var(--uk-gold-text),0 0 16px color-mix(in srgb,var(--sh-c) 45%,transparent)}
.shards-page .sh-tile.is-off{cursor:not-allowed;opacity:.42;filter:saturate(.4)}
.shards-page .sh-tile-level{font-size:.9rem;line-height:1;color:var(--uk-ivory)}
.shards-page .sh-tile .sh-danger i{width:6px;height:6px}
.shards-page .sh-slot-n{position:absolute;top:3px;left:5px;font-size:.72rem;font-weight:700;color:var(--uk-gold-text);opacity:.85}
.shards-page .sh-tile-lock{position:absolute;top:3px;right:4px}
.shards-page .sh-slot-detail{margin:6px 0 4px}
.shards-page .sh-bag-foot{display:flex;flex-wrap:wrap;gap:8px}
.shards-page .sh-fallback{margin-top:12px}
@media(max-width:900px){.shards-page .sh-portal-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:700px){.shards-page .sh-slots{gap:5px}.shards-page .sh-slot,.shards-page .sh-tile{min-height:0;padding:4px 2px}.shards-page .sh-tile .sh-art{--sh-size:34px!important}.shards-page .sh-bag-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:5px}.shards-page .sh-tile .sh-danger{display:none}.shards-page .sh-bag-foot .uk-btn{flex:1 1 auto;justify-content:center}}
.workshop-service-tabs .sh-bench-tab-icon{width:40px;height:40px;object-fit:contain;flex:0 0 auto}

/* Atlas as painted tiles (fun list item 8 follow-up, Pat 22 Oct: "players don't like to read"). Each tile: the realm's sanctum painting, its boss standing on it,
   the name and elements over a dark fade. Cleared: gold frame and the best level. Tap opens the boss, Unique and tip under the picture. */
.shards-page .sh-rts{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px;align-items:start}
.shards-page .sh-rt{display:block;min-width:0;min-height:0;padding:0;margin:0;border:1px solid #b69a6044;border-radius:10px;overflow:hidden;background:#0c121c}
.shards-page .sh-rt.is-cleared{border-color:var(--uk-gold);box-shadow:0 0 0 1px var(--uk-gold),0 0 14px #e7c47a33}
.shards-page .sh-rt-face{position:relative;display:block;width:100%;max-width:none;margin:0;padding:0;box-sizing:border-box;aspect-ratio:4/3;cursor:pointer;list-style:none;overflow:hidden}
.shards-page .sh-rt-face::-webkit-details-marker{display:none}
.shards-page .sh-rt-face:focus-visible{outline:2px solid var(--uk-gold);outline-offset:-2px}
.shards-page .sh-rt-ground{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;filter:saturate(.9) brightness(.8);transition:transform .25s ease}
.shards-page .sh-rt-boss{position:absolute;right:-4%;bottom:12%;height:92%;width:auto;filter:drop-shadow(0 6px 10px #000c);transition:transform .25s ease}
.shards-page .sh-rt-face:hover .sh-rt-ground{transform:scale(1.04)}.shards-page .sh-rt-face:hover .sh-rt-boss{transform:translateY(-3px)}
.shards-page .sh-rt:not(.is-cleared) .sh-rt-boss{filter:drop-shadow(0 6px 10px #000c) brightness(.85)}
.shards-page .sh-rt-name{position:absolute;left:0;right:0;bottom:0;display:flex;flex-direction:column;gap:4px;padding:28px 10px 8px;background:linear-gradient(transparent,#05080ee6 55%)}
.shards-page .sh-rt-name b{color:var(--uk-ivory);font:600 1.02rem Georgia,serif;text-shadow:0 1px 3px #000}
.shards-page .sh-rt-els{display:flex;gap:4px;flex-wrap:wrap}
.shards-page .sh-rt-badge{position:absolute;left:8px;top:8px;display:inline-flex;align-items:center;gap:4px;padding:3px 8px;border-radius:999px;background:#05080ecc;border:1px solid #b69a6066;color:var(--uk-ivory-dim);font-size:.75rem}
.shards-page .sh-rt-badge.is-done{color:#1a1206;background:var(--uk-gold);border-color:var(--uk-gold);font-weight:700}
.shards-page .sh-rt-more{padding:8px 10px 10px;border-top:1px solid #b69a6033}
.shards-page .sh-rt-more p{margin:0 0 4px}.shards-page .sh-rt-boss-name{color:var(--uk-gold-text);font:600 .95rem Georgia,serif}
.shards-page .sh-rt-unique{color:var(--uk-ivory);font-size:.85rem}
.shards-page .sh-atlas-top{display:flex;flex-wrap:wrap;align-items:center;gap:10px 24px;margin:0 0 12px}
.shards-page .sh-atlas-count{display:grid;grid-template-columns:auto 1fr;align-items:baseline;gap:2px 8px;min-width:220px;flex:1}
.shards-page .sh-atlas-count b{color:var(--uk-gold);font:700 2rem Georgia,serif;line-height:1}.shards-page .sh-atlas-count>span:not(.uk-progress){color:var(--uk-ivory-dim)}
.shards-page .sh-atlas-count .uk-progress{grid-column:1/-1}
.shards-page .sh-atlas-stats{margin:0}
.sh-realm-clears{font-size:.8rem;color:var(--uk-ivory-dim)}
@media (max-width:540px){.shards-page .sh-rts{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.shards-page .sh-rt-name b{font-size:.88rem}.shards-page .sh-rt-badge{font-size:.68rem;padding:2px 6px}}
@media (prefers-reduced-motion:reduce){.shards-page .sh-rt-ground,.shards-page .sh-rt-boss{transition:none}}
/* Menu audit 23 Oct: the Auction House filter chips (layout in ui-auction.css): one filter per line, the chosen chip lit gold, the radio inside hidden. */
.shell .ah-page .ah-pair,.shell .ah-page .ah-shard-filters{display:grid;grid-template-columns:minmax(0,1fr);gap:10px}
.shell .ah-page .ah-chip{font-size:.8125rem}
.shell .ah-page .ah-chip:hover{border-color:var(--uk-gold-hi,#e0bd73)}
.shell .ah-page .ah-chip:has(input:checked){border-color:#e0bd73;background:linear-gradient(180deg,#c9a468,#8f6f3c);color:#1b1509}
.shell .ah-page .ah-chip:has(input:focus-visible){outline:2px solid #f2d38a;outline-offset:2px}
.shell .ah-page .ah-chip>input{position:absolute;inset:0;width:1px;height:1px;min-width:0;min-height:0;margin:0;padding:0;border:0;opacity:0;pointer-events:none}
/* Shard run line (Pat, 6 Nov: "shards ui overlap"). The shard strip went into the top line as a 40px panel beside the zone's own name and packs, so the
   place showed twice and the panel ran down over the enemy's frame. In a shard the strip is the top line: the zone's name and packs give way to it,
   and it is drawn as that line is (one row, no panel, the line's small capitals), so the enemy's frame under it stays clear. html.sh-run is set by public/app.js updateShardStrip while the strip shows. On a phone the next shard
   is left off and a long name ends in an ellipsis. */
html.fh-on.cx-on.cx-fight.sh-run main.combat-grid .arena-heading .zone-badge{display:none!important}
html.fh-on.cx-on.cx-fight main.combat-grid .arena-heading>#shardStrip{order:0!important;flex:0 1 auto;min-width:0;width:auto!important;max-width:100%!important;margin:0!important}
html.fh-on.cx-on.cx-fight main.combat-grid .arena-heading>#shardStrip>.sh-battle-strip{flex-wrap:nowrap;gap:10px;min-width:0;padding:0;border:0;border-radius:0;background:none!important;box-shadow:none;font-size:12px;line-height:16px;letter-spacing:.06em;white-space:nowrap;text-shadow:0 1px 2px #000,0 0 6px #000c}
html.fh-on.cx-on.cx-fight main.combat-grid .arena-heading>#shardStrip .sh-art{flex:none;width:16px!important;height:16px!important}
html.fh-on.cx-on.cx-fight main.combat-grid .arena-heading>#shardStrip .sh-art img{width:16px!important;height:16px!important}
html.fh-on.cx-on.cx-fight main.combat-grid .arena-heading>#shardStrip b{min-width:0;overflow:hidden;text-overflow:ellipsis;font-weight:600;text-transform:uppercase}
html.fh-on.cx-on.cx-fight main.combat-grid .arena-heading>#shardStrip .sh-pips{flex:none;gap:3px}
html.fh-on.cx-on.cx-fight main.combat-grid .arena-heading>#shardStrip .sh-pips i{width:7px;height:7px}
html.fh-on.cx-on.cx-fight main.combat-grid .arena-heading>#shardStrip .sh-next{overflow:hidden;text-overflow:ellipsis}
@media(max-width:760px){
 html.fh-on.cx-on.cx-fight.sh-run main.combat-grid .arena-heading{max-width:calc(100vw - 24px)!important}
 html.fh-on.cx-on.cx-fight main.combat-grid .arena-heading>#shardStrip{overflow:hidden}
 html.fh-on.cx-on.cx-fight main.combat-grid .arena-heading>#shardStrip>.sh-battle-strip{gap:8px;font-size:11px}
 html.fh-on.cx-on.cx-fight main.combat-grid .arena-heading>#shardStrip .sh-next{display:none}
 /* "1 other player hunting here" wrapped to a second line under the shard line and ran into the enemy's frame. As in a zone fight (public/party-pointer.css)
    it sits just under the line and the enemy's frame moves down by it while it shows. */
 html.fh-on.cx-on.cx-fight.sh-run main.combat-grid .arena-heading{flex-wrap:nowrap!important}
 html.fh-on.cx-on.cx-fight.sh-run main.combat-grid .arena-heading .pp-here{position:absolute;z-index:2;left:0;right:0;top:100%;margin:2px 0 0;text-align:center;text-shadow:0 1px 2px #000,0 0 4px #000;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;pointer-events:none}
 html.fh-on.cx-on.cx-fight.sh-run.pp-here-on .fh-target{top:52px!important}
}

/* /rune-merge.css */
/* Rune merging (IRP_RUNE_MERGE_VERSION, default off): the Enchanter's Merge Runes tab and the Rune tier rings.
   Nothing here shows while off: every selector needs markup the page only writes while the switch is on. */
.rune-frame{display:inline-grid;place-items:center;flex:none;width:var(--rune-size,64px);height:var(--rune-size,64px)}
.rune-frame>.gear-icon{width:100%!important;height:100%!important;max-width:none;margin:0}
.rune-merge-layout{display:grid;grid-template-columns:minmax(260px,330px) minmax(0,1fr);gap:20px;align-items:start}
.rune-merge-window>:is(.rune-merge-layout,.rune-merge-note,.workshop-notice,.enchanter-empty,p){margin:22px 24px}.rune-merge-picker h3{margin:0 0 12px}
.rune-merge-items{display:grid;gap:8px;max-height:560px;overflow:auto;padding-right:4px}
.rune-merge-item{display:flex;align-items:center;gap:12px;min-height:64px;text-align:left}
.rune-merge-item>span:last-child{display:grid;gap:2px;min-width:0}.rune-merge-item small{color:var(--uk-ivory-dim,#c9c3b4)}
.rune-merge-item.not-ready{opacity:.78}
.rune-merge-head h2{margin:0;color:var(--uk-gold-text,#ffe1aa)}.rune-merge-head p{margin:4px 0 0}
.rune-merge-row{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:14px;margin:20px 0}
.rune-merge-plus,.rune-merge-arrow{color:var(--uk-gold,#d6b575);font-size:1.6rem}
.rune-merge-stats{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:0 0 14px}
.rune-merge-stats>div{padding:10px 12px;border:1px solid #8f764566;border-radius:4px;background:#0c172399}
.rune-merge-stats dt{font-size:.8rem;color:var(--uk-ivory-dim,#c9c3b4)}.rune-merge-stats dd{margin:4px 0 0;font-weight:700;color:var(--uk-ivory,#eadbb9)}
.rune-merge-stats>div:last-child dd{color:#9fe08a}
.rune-merge-last.ok{color:#9fe08a}.rune-merge-last.bad{color:#ff9a8a}
.rune-tab-mark{display:inline-grid;place-items:center;width:40px;height:40px;flex:none}.rune-tab-mark>.gear-icon{width:40px!important;height:40px!important;margin:0}
@media(max-width:760px){.rune-merge-window>:is(.rune-merge-layout,.rune-merge-note,.workshop-notice,.enchanter-empty,p){margin:14px 12px}.rune-merge-layout{grid-template-columns:minmax(0,1fr)}.rune-merge-items{max-height:260px}.rune-merge-stats{grid-template-columns:minmax(0,1fr)}.rune-merge-row{gap:6px;flex-wrap:nowrap}.rune-merge-row>.rune-frame{width:52px;height:52px}.rune-merge-row>.rune-frame:last-child{width:68px;height:68px}.rune-merge-plus,.rune-merge-arrow{font-size:1.25rem}}
/* Release QA (17 Oct): the bench on UI kit v1 parts, matching the Gemcutter's merge panel (public/gem-ui.css): a .uk-progress chance bar with .uk-chips for
   its parts, compact scroll rows (a switch row and .uk-seg) instead of framed tiles, a cost line and a full-width primary Merge button. */
.rune-merge-head h2.uk-heading{margin:0}
.rm-chance{display:grid;gap:8px;margin:4px 0 0}
.shell .rune-merge-page .rune-merge-bench p.rm-chance-top,.rm-chance-top{display:flex;align-items:baseline;justify-content:space-between;margin:0}
.rune-merge-page .rm-chance-top strong{font:600 1.5rem/1 var(--uk-serif,Georgia,serif);color:var(--uk-gold-text,#ffe1aa)}
.rune-merge-page .rm-odds>span{background:linear-gradient(180deg,#8fe08a,#3a8f4a)}
.rm-odds-parts{margin:0}
.shell .rune-merge-page .rune-merge-bench p.rune-merge-risk,.rune-merge-page .rune-merge-risk{margin:0;font:.8125rem/1.45 system-ui;color:var(--uk-ivory-dim,#c9c3b4)}
.rm-scrolls{display:grid;gap:8px;margin:12px 0 0;padding:12px 0 0;border-top:1px solid #b69a6040}
.rune-merge-page label.rm-switch{position:relative;display:flex;flex-direction:row;align-items:center;gap:10px;min-height:48px;margin:0;padding:6px 10px;box-sizing:border-box;cursor:pointer;border:1px solid var(--uk-gold-dim,#8f7645);border-radius:var(--uk-radius,4px);background:var(--uk-tab-surface,#16233a);color:var(--uk-ivory,#e9e3d3);text-align:left}
.rm-switch input{position:absolute;inset:0;opacity:0;margin:0;cursor:pointer}
.rm-switch.is-on{border-color:#7fa8d6;background:linear-gradient(180deg,#22385a,#14223a);box-shadow:inset 0 -3px 0 #7fa8d6}
.rm-switch.is-on .es-knob{background:#4f79ad}.rm-switch.is-on .es-knob:after{left:18px;background:#fff}
.rm-switch.is-empty{opacity:.55;cursor:not-allowed}
.rm-switch:has(input:focus-visible),.rm-scrolls .uk-seg-btn:has(input:focus-visible){outline:3px solid var(--uk-focus,#f4cd86);outline-offset:2px}
.rm-switch-text,.rm-row-head{display:grid;gap:1px;min-width:0;flex:1}
.rm-switch-text b,.rm-row-head b{font:600 .8125rem/1.3 system-ui;color:var(--uk-gold-text,#ffe1aa)}
.rm-switch-text small,.rm-row-head small{font:.75rem/1.35 system-ui;color:var(--uk-ivory-dim,#c9c3b4)}
.rm-switch-art svg{width:30px;height:30px}
.rm-success{display:grid;gap:6px}
.rm-scrolls .uk-seg>label.uk-seg-btn{position:relative;cursor:pointer;font:600 .8125rem/1.2 system-ui}
.rm-scrolls .uk-seg>label.uk-seg-btn input{position:absolute;inset:0;opacity:0;margin:0;cursor:pointer}
.rm-scrolls .uk-seg>label.uk-seg-btn.is-empty{opacity:.5;cursor:not-allowed}
.shell .rune-merge-page .rune-merge-bench p.rm-cost-line,.rune-merge-page .rm-cost-line{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px;margin:14px 0 10px;padding-top:12px;border-top:1px solid #b69a6040;font:600 .875rem/1.4 system-ui;color:var(--uk-ivory,#e9e3d3)}
.rm-cost-line small{font-weight:400;color:var(--uk-ivory-dim,#c9c3b4)}.rune-merge-page .rm-cost-line.missing{color:#ff9f8c}
.shell .rune-merge-page .rune-merge-bench p.rm-need,.rune-merge-page .rm-need{margin:0 0 10px;color:#ff9f8c;font:600 .8125rem/1.45 system-ui}

/* /enhance-scrolls.css */
/* Protection and Success scrolls (switch IRP_ENHANCE_SCROLLS_VERSION, default off; public/enhance-scrolls-data.js). Only drawn while the switch is on.
   Built on UI kit v1 (public/ui-kit.css): .uk-frame tiles, .uk-heading, .uk-chip choices, .uk-icon-tile behind the scroll icon. */
.es-panel{display:grid;gap:8px;margin:4px 0 12px}
.es-toggles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.es-tile{padding:10px 12px;display:grid;gap:8px;align-content:start;min-width:0}
.es-tile-head{display:flex;align-items:center;gap:10px;min-width:0}
.es-tile-head h4{margin:0;font:600 .875rem/1.25 Georgia,serif;color:var(--uk-gold-text,#ffe1aa)}
.es-tile-head small{display:block;color:var(--uk-ivory-dim,#c9c3b4);font:.75rem/1.35 system-ui}
.es-icon{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;border:1px solid var(--uk-gold-dim,#8f7645);border-radius:var(--uk-radius-icon,8px);background:var(--uk-surface,#1c2b40)}
.es-art{position:relative;display:inline-grid;place-items:center}
.es-art svg,.es-art img{width:38px;height:38px;display:block;object-fit:contain}
.es-art b{position:absolute;right:-4px;bottom:-4px;padding:0 3px;border-radius:3px;background:#101a2a;border:1px solid #6fcf97;color:#bff0d3;font:700 .625rem/1.4 system-ui}
.crafted-icon.es-art svg,.workshop-art.es-art svg,.crafted-icon.es-art img,.workshop-art.es-art img{width:100%;height:100%}
.es-toggles>.es-heading{grid-column:1/-1;margin:0}
.es-title{margin:0;font:600 .9375rem/1.25 Georgia,serif;color:var(--uk-gold-text,#ffe1aa)}
.es-toggles label.es-switch{position:relative;display:flex!important;flex-direction:row;align-items:center;justify-content:flex-start;gap:10px;width:100%;min-height:44px;margin:0;padding:0 12px;cursor:pointer;border:1px solid var(--uk-gold-dim,#8f7645);border-radius:var(--uk-radius,4px);background:var(--uk-tab-surface,#16233a);color:#d9d3c2;font:600 .8125rem system-ui;box-sizing:border-box}
.es-switch input{position:absolute;opacity:0;inset:0;margin:0;cursor:pointer}
.es-knob{flex:0 0 34px;width:34px;height:18px;border-radius:9px;background:#3b4350;box-shadow:inset 0 0 0 1px #6b6455;position:relative}
.es-knob:after{content:'';position:absolute;top:2px;left:2px;width:14px;height:14px;border-radius:50%;background:#c9c3b4;transition:left .15s}
.es-switch.is-on{border-color:#7fa8d6;background:linear-gradient(180deg,#22385a,#14223a);color:#e4efff;box-shadow:inset 0 -3px 0 #7fa8d6}
.es-switch.is-on .es-knob{background:#4f79ad}.es-switch.is-on .es-knob:after{left:18px;background:#fff}
.es-switch.is-empty{opacity:.55}
.es-help{margin:0;color:#b9b6a8;font:.75rem/1.45 system-ui}
.es-chips{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px}
.es-toggles label.es-chip{position:relative;display:flex!important;flex-direction:column;align-items:center;justify-content:center;min-height:48px;margin:0;padding:3px 2px;text-align:center;cursor:pointer;border:1px solid var(--uk-gold-dim,#8f7645);border-radius:var(--uk-radius,4px);background:var(--uk-tab-surface,#16233a);color:#d9d3c2;font:600 .8125rem system-ui}
.es-chip input{position:absolute;opacity:0;inset:0;margin:0;cursor:pointer}
.es-chip span{display:grid;line-height:1.2}.es-chip small{color:#9fb0a5;font-weight:500;font-size:.6875rem}
.es-chip.is-on{border-color:#6fcf97;background:linear-gradient(180deg,#24432f,#15281c);color:#e3ffe9;box-shadow:inset 0 -3px 0 #6fcf97}
.es-chip.is-empty{opacity:.55}
.es-chip:has(input:focus-visible),.es-switch:has(input:focus-visible){outline:3px solid var(--uk-focus,#f4cd86);outline-offset:2px}
.es-toggles label.es-from{display:flex!important;flex-direction:row;align-items:center;justify-content:space-between;gap:8px;margin:0;color:#c9c3b4;font:.8125rem system-ui}
.es-from input{flex:0 0 72px;width:72px;min-height:44px;padding:0 8px;border:1px solid var(--uk-gold-dim,#8f7645);border-radius:var(--uk-radius,4px);background:#0c1723;color:#f0e2bf;font:600 1rem system-ui}
.es-use{margin:0;color:#cfe9d9;font:.8125rem/1.45 system-ui}
.es-warning{margin:0;padding:10px 12px;border:1px solid #b24a3a;border-radius:var(--uk-radius,4px);background:#3a17148c;color:#ffc9bd;font:.8125rem/1.5 system-ui}
.es-warning strong{color:#ff8f7a}
.workshop-bench .workshop-risk.es-risk{color:#ffb4a4}
.es-need{margin:0 0 8px;color:#ff9f8c;font:600 .8125rem/1.45 system-ui}
@media (max-width:520px){.es-toggles{grid-template-columns:1fr}}
/* Four costs (a try above +15 adds Boss Essence and Dawnsteel) sit two by two on a phone, never three and a lone one. */
@media (max-width:600px){.workshop-page .workshop-cost:has(>div:nth-child(4):last-child){grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Simpler screens (IRP_UI_SIMPLER_VERSION; workshop-view.js adds .es-tidy while on): on a phone the switch label and "Use from +" stay on one line,
   and a note under the Success chips takes its own row instead of sitting on top of them. */
@media (max-width:760px){.shell .workshop-forge .es-tidy .es-tile{grid-template-columns:minmax(0,1fr) auto}
 .shell .workshop-forge .es-tidy .es-switch>span:last-child,.shell .workshop-forge .es-tidy .es-from>span{white-space:nowrap}
 .shell .workshop-forge .es-tidy .es-tile>.es-chips~.es-help{grid-column:1/-1;grid-row:3}}

/* /desktop-fit.css */
/* Desktop fit (player report, 10 Oct 2026): on 1080p and 1440p monitors the battle
   scene grew with the screen and pushed the action bar and enemies below the fold,
   the sidebar ran off the bottom, and chat floated over the game.
   Desktop sidebar layout only (min-width:1180px); phones and tablets are unchanged. */
@media(min-width:1001px){
 /* Height already used above the battle: header strip plus the gap under it. The
    dismissible alpha notice adds its own height while it shows. */
 .shell.mmo-shell{--fit-top:64px;--fit-heading:153px;--fit-controls:330px}
 .shell.mmo-shell:has(>.alpha-notice:not([hidden])){--fit-top:148px}

 /* The scene keeps a fixed budget from the viewport (never from its contents, so
    casts and status chips still can't resize it), leaving room for the controls. */
 .shell.mmo-shell .combat-grid>.arena-column{
  grid-template-rows:auto clamp(260px,calc(100vh - var(--fit-top) - var(--fit-heading) - var(--fit-controls)),1100px) auto;
  grid-template-rows:auto clamp(260px,calc(100svh - var(--fit-top) - var(--fit-heading) - var(--fit-controls)),1100px) auto}
 .shell.mmo-shell .combat-grid .battlefield{min-height:260px}
 .shell.mmo-shell .combat-grid>.party-rail{max-height:calc(100svh - var(--fit-top) - 12px);overflow-y:auto;overscroll-behavior:contain}

 /* When the window is too short for the whole menu, the menu scrolls but the
    account block (Chat, Bag, Settings) stays pinned to the bottom. */
 .shell.mmo-shell.wayfarer-shell>.topbar>nav>.nav-account{position:sticky;bottom:-22px;z-index:2;margin-bottom:-22px;padding-bottom:22px;background:#0b1319}
}
/* Chat opens over the right edge of the game; nothing behind it moves or resizes (Pat, 28 Oct). Close it to see what it covers. */
@media(min-width:1180px){
 .shell.wayfarer-shell{--chat-dock:clamp(300px,22vw,420px)}
 .shell.wayfarer-shell>.community-chat{position:fixed;inset:0 0 0 auto;width:var(--chat-dock);border-width:0 0 0 1px;border-radius:0;box-shadow:-16px 0 48px #0008;z-index:60}
 /* Notices sit outside the shell; keep them clear of the docked chat's input and Send. */
 body:has(.shell.wayfarer-shell>.community-chat) .adventure-notices{right:calc(clamp(300px,22vw,420px) + 18px)}
}

/* Short desktop windows with a mouse: tighten the sidebar so Chat, Bag, Settings
   and Discord stay on screen. Touch screens keep the 44px targets and scroll. */
@media(min-width:1180px) and (max-height:1120px) and (pointer:fine){
 .shell.mmo-shell.wayfarer-shell>.topbar>nav .nav-button{min-height:36px;padding-top:2px;padding-bottom:2px}
 .shell.mmo-shell.wayfarer-shell>.topbar>nav .nav-button>:is(.fantasy-icon,.icon,img){max-height:28px}
 .shell.mmo-shell .nav-account .sidebar-actions{gap:5px}
 .shell.mmo-shell .nav-account .sidebar-actions>button,.shell.mmo-shell .nav-account .sidebar-actions>a,.shell.mmo-shell .nav-account .sidebar-actions>.chat-access>button{min-height:36px;padding-top:6px;padding-bottom:6px}
 .shell.mmo-shell .nav-account .account-block>.icon-button,.shell.mmo-shell .nav-account .sidebar-character-portrait{width:38px;height:38px;min-width:38px;min-height:38px}
}
@media(min-width:1180px) and (max-height:900px) and (pointer:fine){
 .shell.mmo-shell>.topbar>nav>.nav-brand .nav-brand-emblem{width:36px;height:36px}
 /* Patch notes, Settings and Discord share one row of icons. */
 .shell.mmo-shell .nav-account .sidebar-actions{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))}
 .shell.mmo-shell .nav-account .sidebar-actions>:is(.chat-access,.nav-inventory){grid-column:1/-1}
 .shell.mmo-shell .nav-account .sidebar-actions>:is([data-action="patch-notes"],[data-action="settings"],.nav-discord){justify-content:center;padding-left:0;padding-right:0;font-size:0;gap:0}
 .shell.mmo-shell .nav-account .sidebar-actions>:is([data-action="patch-notes"],[data-action="settings"],.nav-discord)>span:not(.change-log-symbol):not(.patch-new):not(.side-art){display:none}
}

/* Character sheet: each attribute took three lines (name, Effect, buttons), so
   Review fell far below the fold. The buttons now sit on the Effect line. */
@media(min-width:1180px){
 .attribute-panel .attribute-row{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:8px;row-gap:2px;align-items:center;padding:8px 0}
 .attribute-panel .attribute-row>div:first-child{display:contents}
 .attribute-panel .attribute-row>div:first-child>*:not(details):first-child{grid-column:1;grid-row:1}
 .attribute-panel .attribute-row>div:first-child>*:not(details):not(:first-child){grid-column:2;grid-row:1;justify-self:end}
 .attribute-panel .attribute-row>div:first-child>details{grid-column:1/-1;grid-row:2;align-self:start;min-height:44px;display:block}
 .attribute-panel .attribute-row>div:first-child>details>summary{display:inline-flex;align-items:center;min-height:44px}
 .attribute-panel .attribute-row>.attribute-controls{grid-column:2;grid-row:2;align-self:start;justify-self:end;margin:0}
}
/* QA 2026-10-16: at 390px a long Welcome back summary pushed the Continue button off screen. The footer now stays pinned. */
@media(max-width:550px){.return-dialog>footer{position:sticky;bottom:0;z-index:1}}
/* Menu tune-up (Pat, 25 Oct): in the desktop sidebar the New tag sits on the corner of the destination's icon, instead of dropping onto its
   own line under every newly opened destination; the label keeps its full width. */
@media(min-width:1001px){.shell.mmo-shell>.topbar>nav>.nav-button:not(.nav-grouped){position:relative}.shell.mmo-shell>.topbar>nav>.nav-button:not(.nav-grouped)>.nav-copy>:is(.nav-new,.boss-hunt-new){position:absolute;left:4px;top:1px;margin:0;padding:0 3px;border-radius:3px;font:700 .5rem/.75rem system-ui,sans-serif;letter-spacing:.04em;box-shadow:0 0 0 1px #1b1509}}

/* /tutorial-tour.css */
/* Interactive tour (public/tutorial-tour.js). Above every dialog (the phone bag sits at 99999), below the studio splash. */
.tour-ring{position:fixed;z-index:2147482000;pointer-events:none;border:3px solid var(--uk-gold-hi,#f0ce83);border-radius:10px;box-shadow:0 0 0 2px rgba(10,16,20,.9),0 0 18px 4px rgba(240,206,131,.55);transition:left .18s,top .18s,width .18s,height .18s}
.tour-ring.tour-ring-dim{box-shadow:0 0 0 2px rgba(10,16,20,.9),0 0 18px 4px rgba(240,206,131,.55),0 0 0 200vmax rgba(4,7,10,.5)}
.tour-card{position:fixed;z-index:2147482001;box-sizing:border-box;width:360px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);overflow:auto;padding:16px 18px 14px;border:1px solid var(--uk-gold,#d6b575);border-radius:12px;background:linear-gradient(180deg,#1b2a33,#101a20);color:#eadfc8;box-shadow:0 12px 32px rgba(0,0,0,.6);font-size:15px;line-height:1.45}
.tour-card.tour-dim{box-shadow:0 12px 32px rgba(0,0,0,.6),0 0 0 200vmax rgba(4,7,10,.5)}
.tour-card[hidden],.tour-ring[hidden]{display:none}
.tour-card h2{margin:0 0 6px;font-size:19px;color:var(--uk-gold-text,#ffe1aa);font-family:inherit}
.tour-card p{margin:0 0 8px}
/* A tip written a line per item (the Quest tabs tip, 19 Nov) keeps its line breaks. */
.tour-card>p{white-space:pre-line}
.tour-card .tour-count{margin:0 0 2px;font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:#b9a77f}
.tour-card .tour-via{font-weight:600;color:var(--uk-gold-hi,#f0ce83)}
.tour-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:12px}
.tour-actions button{min-height:44px;min-width:44px;padding:0 16px;border-radius:8px;font:inherit;font-weight:600;cursor:pointer}
.tour-primary{border:1px solid var(--uk-gold-hi,#f0ce83);background:linear-gradient(180deg,#d9b46a,#a9813f);color:#1a1206}
.tour-secondary{border:1px solid var(--uk-gold-dim,#8f7645);background:#1a2830;color:#eadfc8}
.tour-skip{margin-left:auto;border:0;background:none;color:#c7bba2;text-decoration:underline;padding:0 6px}
.tour-actions button:focus-visible{outline:3px solid var(--uk-gold-hi,#f0ce83);outline-offset:2px}
/* The pulse is a lighter border laid over the ring that fades in and out (the same colours as a border-colour pulse, since a colour faded over
   another blends exactly as the colour steps between them), so the browser runs it without repainting the ring and what lies under it (1 Nov). */
.tour-ring::after{content:"";position:absolute;inset:-3px;border:3px solid #fff3d2;border-radius:inherit;opacity:0;pointer-events:none;animation:tour-glow 1.6s ease-in-out infinite}
@keyframes tour-glow{50%{opacity:1}}
@media (prefers-reduced-motion:reduce){.tour-ring,.tour-ring::after{animation:none;transition:none}}
@media (max-width:540px){.tour-card{font-size:14px;padding:14px}.tour-card h2{font-size:17px}}
/* Whole-game review (18 Nov): a tip over a phone fight folds to one line after 12 seconds; a tap opens it (public/tutorial-tour.js). */.tour-card.tour-folded{display:flex;flex-wrap:wrap;align-items:center;gap:2px 12px;padding:8px 12px;cursor:pointer}.tour-card.tour-folded>p:not(.tour-count),.tour-card.tour-folded .tour-via,.tour-card.tour-folded .tour-skip{display:none}.tour-card.tour-folded>.tour-count{flex-basis:100%;margin:0}.tour-card.tour-folded>h2{margin:0;font-size:1rem;flex:1 1 auto}.tour-card.tour-folded .tour-actions{margin:0}

/* /chat-refresh.css */
/* Chat refresh (October 2026). Loaded after every older chat sheet and before ui-kit.css.
   One readable log: a fixed time column with wrapped lines hanging under the message,
   a colour per channel, day lines, mentions marked in gold, and a one-line composer that grows. */
.shell.wayfarer-shell .community-chat{
 --chat-accent:#e0c27f;--chat-bg:#0e171d;--chat-band:#132029;--chat-line:#ffffff10;--chat-muted:#8e9ea6;--chat-text:#dde4e4;
 background:var(--chat-bg);border-color:#6f6248;
}
.shell.wayfarer-shell .community-chat:has(#chat-tab-party[aria-selected=true]){--chat-accent:#86b8f5}
.shell.wayfarer-shell .community-chat:has(#chat-tab-guild[aria-selected=true]){--chat-accent:#83d39c}
.shell.wayfarer-shell .community-chat:has(#chat-tab-whisper[aria-selected=true]){--chat-accent:#e7a2dc}
.shell.wayfarer-shell .community-chat:has(#chat-tab-recruitment[aria-selected=true]){--chat-accent:#f0aa6c}
.shell.wayfarer-shell .community-chat:has(#chat-tab-announcements[aria-selected=true]){--chat-accent:#f2d07c}

/* Header: one compact band. */
.shell.wayfarer-shell .community-chat .chat-heading{padding:8px 10px 8px 14px;background:linear-gradient(120deg,#22343c,#15222a);border-bottom:1px solid #3c4a50}
.shell.wayfarer-shell .community-chat .chat-heading h2{display:flex;align-items:baseline;gap:10px;font:500 1.15rem/1.2 Georgia,serif;color:#ffe3b4;margin:0}
.shell.wayfarer-shell .community-chat .chat-heading h2 small{display:inline;margin:0;color:#9fcfb4;font:500 .6875rem system-ui;letter-spacing:.02em}
.shell.wayfarer-shell .community-chat .chat-heading>button{width:44px;height:44px;min-width:44px;padding:0;border-radius:50%;font-size:1rem}

/* Channel tabs: all six share one row at every width; the selected one carries the channel colour. */
.shell.wayfarer-shell .community-chat .chat-channels{display:flex;flex-wrap:nowrap;overflow:visible;gap:2px;padding:4px 6px 0;background:var(--chat-band);border-bottom:1px solid #2c3a42}
.shell.wayfarer-shell .community-chat .chat-channels>button[role=tab]{flex:1 1 auto;min-width:0;min-height:44px;display:flex;align-items:center;justify-content:center;gap:3px;padding:6px 5px;border:0;border-radius:6px 6px 0 0;background:transparent;box-shadow:none;color:#a8b6bd;font:600 .75rem/1.2 system-ui;white-space:nowrap}
@media(hover:hover){.shell.wayfarer-shell .community-chat .chat-channels>button[role=tab]:hover{background:#ffffff0a;color:#eef0e8}}
.shell.wayfarer-shell .community-chat .chat-channels>button[role=tab][aria-selected=true]{background:#ffffff0d;color:var(--chat-accent);box-shadow:inset 0 -3px 0 var(--chat-accent)}
.shell.wayfarer-shell .community-chat .chat-channels>button[role=tab] [data-chat-count]{min-width:16px;height:16px;padding:0 4px;border-radius:8px;background:#d8574f;color:#fff;font:700 .5625rem/16px system-ui;text-align:center;margin:0}
.shell.wayfarer-shell .community-chat .chat-channels>button[role=tab] [data-chat-count][hidden]{display:none}

/* The placeholder names the audience, so the separate destination line is for screen readers only. */
.shell.wayfarer-shell .community-chat .chat-destination{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;padding:0;border:0}
.shell.wayfarer-shell .community-chat .chat-conversation{position:relative}

/* Message log. */
.shell.wayfarer-shell .community-chat .chat-messages{padding:6px 6px 10px}
.shell.wayfarer-shell .community-chat .chat-message,.shell.wayfarer-shell .community-chat .chat-message.own{display:grid;grid-template-columns:52px minmax(0,1fr);column-gap:6px;align-items:start;margin:0;padding:3px 8px 3px 4px;border:0;border-radius:4px;background:none;font:.8125rem/1.45 system-ui;overflow-wrap:anywhere}
.shell.wayfarer-shell .community-chat .chat-message:nth-child(even){background:none}
@media(hover:hover){.shell.wayfarer-shell .community-chat .chat-message:hover{background:#ffffff07}}
.shell.wayfarer-shell .community-chat .chat-message>time{position:static;grid-column:1;justify-self:end;align-self:start;color:var(--chat-muted);font:.625rem/1.178rem system-ui;font-variant-numeric:tabular-nums;white-space:nowrap;margin:0}
.shell.wayfarer-shell .community-chat .chat-message>div{grid-column:2;display:block;min-width:0;width:auto;padding:0;margin:0;border:0;border-radius:0;background:none}
.shell.wayfarer-shell .community-chat .chat-message .chat-name,.shell.wayfarer-shell .community-chat .chat-message .chat-author{position:relative;display:inline;min-height:0;max-width:none;padding:0;margin:0 6px 0 0;border:0;background:none;box-shadow:none;color:var(--chat-accent);font:700 .8125rem/1.45 system-ui;vertical-align:baseline;cursor:pointer}
.shell.wayfarer-shell .community-chat .chat-message .chat-author{cursor:default}
.shell.wayfarer-shell .community-chat .chat-message .chat-name:hover{text-decoration:underline;text-underline-offset:3px}
.shell.wayfarer-shell .community-chat .chat-message .chat-name::after{content:":";color:var(--chat-muted);font-weight:400}
.shell.wayfarer-shell .community-chat .chat-message .chat-author::after{content:":";color:var(--chat-muted);font-weight:400}
/* Touch screens: the name keeps a full 44px tap area without spacing the lines apart. */
@media(pointer:coarse){.shell.wayfarer-shell .community-chat .chat-message .chat-name::before{content:"";position:absolute;left:-6px;right:-6px;top:50%;height:44px;transform:translateY(-50%)}}
.shell.wayfarer-shell .community-chat .chat-message p{display:inline;margin:0;color:var(--chat-text);font:.8125rem/1.45 system-ui;white-space:pre-wrap}
.shell.wayfarer-shell .community-chat .chat-message.own .chat-author{color:#8fd6c8}
.shell.wayfarer-shell .community-chat .chat-message.own{background:#8fd6c808}
.shell.wayfarer-shell .community-chat .chat-message.mention{background:#e0c27f17;box-shadow:inset 3px 0 #e0c27f}
.shell.wayfarer-shell .community-chat .chat-message.system{margin:4px 0;background:#f2d07c0b;box-shadow:inset 3px 0 #f2d07c66}
.shell.wayfarer-shell .community-chat .chat-message.system .chat-author{color:#f2d07c}
.shell.wayfarer-shell .community-chat .chat-message.system p{color:#d8d2bf}
.shell.wayfarer-shell .community-chat .chat-message.unique-drop{background:#ff747412;box-shadow:inset 3px 0 #ff7474}
.shell.wayfarer-shell .community-chat .chat-message.unique-drop>div>p,.shell.wayfarer-shell .community-chat .chat-message.unique-drop>div>p strong{color:#ff8a8a}
.shell.wayfarer-shell .community-chat .chat-message.tier0-drop{box-shadow:inset 3px 0 #f0ce83}
.shell.wayfarer-shell .community-chat .chat-message.tier0-drop>div>p{color:#f0ce83}
.shell.wayfarer-shell .community-chat .chat-message.legendary-forged{background:#ff8c2a14;box-shadow:inset 3px 0 #ffb85a}
.shell.wayfarer-shell .community-chat .chat-message.legendary-forged>div>p{color:#ffb85a}
.shell.wayfarer-shell .community-chat .chat-dev-badge{margin:0 .35em 0 .25em}

/* A day line wherever the date changes. */
.shell.wayfarer-shell .community-chat .chat-day{display:flex;align-items:center;gap:10px;margin:8px 4px 4px;color:var(--chat-muted);font:600 .625rem/1 system-ui;letter-spacing:.08em;text-transform:uppercase}
.shell.wayfarer-shell .community-chat .chat-day::before,.shell.wayfarer-shell .community-chat .chat-day::after{content:"";flex:1;height:1px;background:var(--chat-line)}

/* Linked items sit inline and open as a small card. */
.shell.wayfarer-shell .community-chat .chat-item>summary{min-height:0;padding:0}
.shell.wayfarer-shell .community-chat .chat-item[open]{border-radius:6px}
/* The opened card's icon and lines stack as blocks; the chat's inline paragraph rule must not flow them around the icon. */
.shell.wayfarer-shell .community-chat .chat-item>div>.gear-icon{display:block;margin:2px 0 6px}
.shell.wayfarer-shell .community-chat .chat-item>div>p{display:block;margin:0 0 6px}
.shell.wayfarer-shell .community-chat .chat-message.unique-drop .chat-item>div>p,.shell.wayfarer-shell .community-chat .chat-message.unique-drop .chat-item>div>p strong{color:var(--chat-text);font-weight:400}
/* The opened card stays short: its name bar and close button stay put at the top while the stats scroll inside it, so a tall Unique never pushes
   the close out of reach. Tapping the name bar, the ×, anywhere outside, or Escape closes it (app.js chatItemCards). The body carries the height
   limit itself: a details element's children sit in its own content box, so a flex column on the details does not shrink them. */
.shell.wayfarer-shell .community-chat .chat-item[open]{--chat-card-bar:40px;display:block;overflow:hidden;margin:6px 0 6px -58px;background:var(--chat-band);border-color:#6f6248}
.shell.wayfarer-shell .community-chat .chat-item[open]>summary{display:flex;align-items:center;gap:8px;box-sizing:border-box;min-height:var(--chat-card-bar);padding:4px 4px 4px 10px;border-bottom:1px solid #6f624866;background:#0b141a;text-decoration:none;font-weight:600;list-style:none}
.shell.wayfarer-shell .community-chat .chat-item[open]>summary::-webkit-details-marker{display:none}
.shell.wayfarer-shell .community-chat .chat-item[open]>summary::after{content:"×";flex:none;display:grid;place-items:center;width:32px;height:32px;margin-left:auto;border:1px solid #b69a6066;border-radius:50%;color:var(--chat-accent);font:400 1.25rem/1 system-ui}
.shell.wayfarer-shell .community-chat .chat-item[open]>summary:hover::after,.shell.wayfarer-shell .community-chat .chat-item[open]>summary:focus-visible::after{border-color:var(--chat-accent);background:#ffffff0d}
.shell.wayfarer-shell .community-chat .chat-item[open]>div{max-height:calc(min(400px,52dvh) - var(--chat-card-bar));box-sizing:border-box;overflow:auto;overscroll-behavior:contain;padding:8px 10px 6px;font:.78rem/1.45 system-ui;scrollbar-width:thin}
.shell.wayfarer-shell .community-chat .chat-item[open]>div>.gear-icon{float:left;width:44px;height:44px;margin:0 10px 4px 0}
.shell.wayfarer-shell .community-chat .chat-item[open]>div>.gear-icon+p{min-height:44px;margin:0 0 6px;display:flex;align-items:center;color:var(--chat-muted)}
.shell.wayfarer-shell .community-chat .chat-item[open]>div>:is(p,div,ul){clear:both}
.shell.wayfarer-shell .community-chat .chat-item[open]>div>.gear-icon+p{clear:none}
.shell.wayfarer-shell .community-chat .chat-item[open]>div>p{margin:0 0 4px;color:var(--chat-muted);font:.72rem/1.4 system-ui}
.shell.wayfarer-shell .community-chat .chat-item[open] .unique-power{margin:0 0 6px;padding:5px 8px;font:inherit}
.shell.wayfarer-shell .community-chat .chat-item[open] .unique-skills{margin:0 0 5px;font:inherit}
.shell.wayfarer-shell .community-chat .chat-item[open] .unique-skills .text-button{min-height:0;padding:0 2px;font:inherit}
.shell.wayfarer-shell .community-chat .chat-item[open] .am-strip{margin:2px 0 4px}
.shell.wayfarer-shell .community-chat .chat-item[open] .uk-chip{min-height:20px;padding:1px 7px;font-size:.65rem}
.shell.wayfarer-shell .community-chat .chat-item[open] .gear-affixes{margin:0 0 6px;padding:0;list-style:none}
.shell.wayfarer-shell .community-chat .chat-item[open] .gear-affixes>li{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0;padding:4px 2px;border:0;border-bottom:1px solid #6d60443f;border-radius:0;background:none;font:.8rem/1.35 system-ui;color:#e3d8c1}
.shell.wayfarer-shell .community-chat .chat-item[open] .gear-affixes>li:first-child{border-top:1px solid #6d60443f}
.shell.wayfarer-shell .community-chat .chat-item[open] .gear-affixes>li>.am-kind.uk-chip{margin:0;flex:none}
.shell.wayfarer-shell .community-chat .chat-item[open] .gear-affixes>li small{font-size:.7rem}
.shell.wayfarer-shell .community-chat .chat-item[open] .gem-lines-head{margin:4px 0 2px;font-size:.68rem}
.shell.wayfarer-shell .community-chat .chat-item[open] .gem-lines{margin:0 0 5px;padding:0}
.shell.wayfarer-shell .community-chat .chat-item[open] .gem-lines>li{margin:0;padding:1px 0;font-size:.74rem}
.shell.wayfarer-shell .community-chat .chat-item[open]>div>p:last-child{margin:4px 0 0;color:var(--chat-muted);font-size:.7rem}
@media (max-width:620px){.shell.wayfarer-shell .community-chat .chat-item[open]{--chat-card-bar:48px}.shell.wayfarer-shell .community-chat .chat-item[open]>summary::after{width:40px;height:40px}}

/* Empty state. */
.shell.wayfarer-shell .community-chat .chat-empty{gap:8px;padding:24px 16px}
.shell.wayfarer-shell .community-chat .chat-empty>span{color:var(--chat-accent)}
.shell.wayfarer-shell .community-chat .chat-empty>strong{font-size:1.2rem}

/* Jump to latest floats over the bottom of the log instead of taking a row. */
.shell.wayfarer-shell .community-chat .chat-jump{position:relative;z-index:2;align-self:center;min-height:36px;margin:-44px auto 8px;padding:6px 14px;border-radius:18px;border:1px solid var(--chat-accent);background:#16252ef2;color:var(--chat-accent);font:600 .75rem system-ui;box-shadow:0 4px 14px #0008}
.shell.wayfarer-shell .community-chat .chat-jump[hidden]{display:none}

/* Whisper picker: name box and recent conversations with their unread counts. */
.shell.wayfarer-shell .community-chat .whisper-route{display:flex;gap:6px;padding:8px 10px;margin:0;border-bottom:1px solid var(--chat-line)}
.shell.wayfarer-shell .community-chat .whisper-route input{flex:1;min-width:0;min-height:44px;padding:8px 10px;border-radius:8px;font-size:1rem}
.shell.wayfarer-shell .community-chat .chat-recent{order:-1;display:flex;flex-wrap:wrap;gap:6px;padding:8px 10px 0}
.shell.wayfarer-shell .community-chat .chat-recent>button{display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:4px 12px;border-radius:18px;border:1px solid #4a5a62;background:#1b2a33;color:#e2d6ee;font:600 .75rem system-ui}
.shell.wayfarer-shell .community-chat .chat-recent>button[aria-pressed=true]{border-color:var(--chat-accent);background:#e7a2dc1c;color:var(--chat-accent)}
.shell.wayfarer-shell .community-chat .chat-recent-unread{min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:#d8574f;color:#fff;font:700 .625rem/18px system-ui;text-align:center}
@media(pointer:coarse){.shell.wayfarer-shell .community-chat .chat-recent>button{min-height:44px}}

/* Composer: Item, a one-line message box that grows, and Send on one row. */
.shell.wayfarer-shell .community-chat #chatForm{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:end;gap:4px 6px;padding:8px 8px 6px;background:var(--chat-band);border-top:1px solid #2f3e46;max-height:60%;overflow:auto}
.shell.wayfarer-shell .community-chat #chatForm>label.sr-only{position:absolute}
.shell.wayfarer-shell .community-chat #chatForm .chat-command-suggestion{grid-column:1/-1;grid-row:1;margin:0}
.shell.wayfarer-shell .community-chat #chatForm textarea{grid-column:2;grid-row:2;display:block;width:100%;height:44px;min-height:44px;max-height:128px;margin:0;padding:11px 12px;border:1px solid #4d5d64;border-radius:10px;background:#0a1419;color:#eef2ee;font:400 .9375rem/1.4 system-ui;resize:none;overflow-y:auto}
.shell.wayfarer-shell .community-chat #chatForm textarea:focus{border-color:var(--chat-accent);outline:none;box-shadow:0 0 0 2px color-mix(in srgb,var(--chat-accent) 35%,transparent)}
.shell.wayfarer-shell .community-chat .chat-compose-actions{display:contents}
.shell.wayfarer-shell .community-chat .chat-compose-actions>button{min-height:44px;border-radius:10px;font:600 .75rem system-ui;white-space:nowrap}
.shell.wayfarer-shell .community-chat [data-chat-attach]{grid-column:1;grid-row:2;padding:0 10px;background:transparent;border:1px solid #4d5d64;box-shadow:none;color:#c9d2d6}
.shell.wayfarer-shell .community-chat [data-chat-attach][aria-expanded=true]{border-color:var(--chat-accent);color:var(--chat-accent)}
.shell.wayfarer-shell .community-chat .chat-compose-actions [type=submit]{grid-column:3;grid-row:2;min-width:64px;padding:0 14px;background:var(--chat-accent);border:1px solid var(--chat-accent);color:#1d1810}
.shell.wayfarer-shell .community-chat .chat-compose-actions [type=submit]:disabled{background:transparent;border-color:#4d5d64;color:#7e8d94;opacity:1}
.shell.wayfarer-shell .community-chat #chatCounter{grid-column:3;grid-row:4;justify-self:end;color:var(--chat-muted);font:.6875rem system-ui}
.shell.wayfarer-shell .community-chat #chatCounter[hidden]{display:none}
.shell.wayfarer-shell .community-chat .chat-attachment{grid-column:1/-1;grid-row:3;display:flex;flex-direction:column;gap:4px;margin:2px 0 0;font-size:.75rem;color:#b9c6cc}
.shell.wayfarer-shell .community-chat .chat-attachment[hidden]{display:none}
.shell.wayfarer-shell .community-chat .chat-input-help{grid-column:1/3;grid-row:4;margin:0;color:var(--chat-muted);font:.6875rem system-ui}
.shell.wayfarer-shell .community-chat #chatError{grid-column:1/-1;grid-row:5;margin:0;font-size:.75rem;color:#e7c98b}
.shell.wayfarer-shell .community-chat #chatError:empty{display:none}
@media(pointer:coarse){.shell.wayfarer-shell .community-chat .chat-input-help{display:none}}
.shell.wayfarer-shell .community-chat .chat-readonly{padding:8px 12px;background:var(--chat-band)}

/* Options fold away under the composer. */
.shell.wayfarer-shell .community-chat .chat-privacy{padding:0 12px;background:#0b141a;border-top:1px solid #26333a;font-size:.75rem}
.shell.wayfarer-shell .community-chat .chat-privacy summary{min-height:36px;display:flex;align-items:center;color:#9fb0b7}
@media(pointer:coarse){.shell.wayfarer-shell .community-chat .chat-privacy summary{min-height:44px}}

@media(max-width:360px){.shell.wayfarer-shell .community-chat .chat-channels>button[role=tab]{font-size:.6875rem}.shell.wayfarer-shell .community-chat .chat-message,.shell.wayfarer-shell .community-chat .chat-message.own{grid-template-columns:44px minmax(0,1fr)}}
/* A long audience line ("Whisper to Phoneshaman…") stays on the box's one line and ends in an ellipsis. */
.shell.wayfarer-shell .community-chat #chatForm textarea::placeholder{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* Whisper name suggestions (18 Oct): matching players under the "New whisper: name" box, styled like the @marchbugreport suggestion. */
.community-chat .whisper-route{position:relative}
.community-chat .whisper-suggest{position:absolute;z-index:6;top:100%;left:12px;right:12px;margin:4px 0 0;padding:4px;list-style:none;background:#1a262c;border:1px solid #b49659;border-radius:6px;box-shadow:0 8px 22px #0009;max-height:min(300px,45vh);overflow:auto}
.community-chat .whisper-suggest[hidden]{display:none}
.community-chat .whisper-suggest li{display:flex;align-items:center;gap:8px;min-height:40px;padding:4px 10px;border-radius:4px;cursor:pointer;color:#f0dbac;font:.8125rem/1.3 system-ui}
.community-chat .whisper-suggest li:hover,.community-chat .whisper-suggest li[aria-selected=true]{background:#2c3e45;outline:1px solid #b4965980}
.community-chat .whisper-suggest-name{font-weight:700;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.community-chat .whisper-suggest-meta{color:#a9b3b6;font-size:.75rem;white-space:nowrap}
.community-chat .whisper-suggest-tag{margin-left:auto;padding:1px 8px;border-radius:9px;border:1px solid #b4965999;color:#e8c98a;font:600 .6875rem/16px system-ui;white-space:nowrap}
@media(pointer:coarse){.community-chat .whisper-suggest li{min-height:44px}}
.shell.wayfarer-shell .community-chat .chat-message.realm-buff{background:#cfad6c14;box-shadow:inset 3px 0 #f3d58a}
.shell.wayfarer-shell .community-chat .chat-message.realm-buff>div>p{color:#f3d58a}
/* Menu audit 23 Oct (no long dropdowns): Link an owned item is the Blacksmith/Enchanter item picker (search, then item tiles). */
.community-chat fieldset.chat-attachment{min-width:0;margin:2px 0 0;padding:0;border:0}
.community-chat .chat-attachment legend{padding:0;margin:0 0 4px}
.community-chat .chat-item-search{width:100%;min-height:40px;box-sizing:border-box;margin:0 0 6px}
.community-chat .chat-item-list{display:grid;gap:6px;max-height:220px;overflow:auto;overscroll-behavior:contain;padding-right:2px}
.community-chat .chat-item-tile{position:relative;margin:0;min-height:52px;padding:6px 8px;gap:8px;cursor:pointer}
.community-chat .chat-item-tile[hidden]{display:none}
.community-chat .chat-item-tile .gear-icon{width:36px;height:36px}
.community-chat .chat-item-tile strong{font-size:.8125rem}
.community-chat .chat-item-tile small{margin-top:2px}
.community-chat .chat-item-tile:has(input:checked){background:#35443c;border-color:#d6b980;box-shadow:inset 3px 0 #d6b980}
.community-chat .chat-item-tile:has(input:focus-visible){outline:2px solid #f2d38a;outline-offset:2px}
/* 0.75.0 UI QA: one row per tile (icon beside the name) so more items fit the list, and No item link is a small chip, not a big empty block. */
.shell .community-chat label.chat-item-tile{display:flex;align-items:center}
.shell .community-chat label.chat-item-tile.chat-item-none{justify-self:start;width:auto;min-height:36px;padding:4px 12px;border-radius:18px}
@media(min-width:1001px){.community-chat .chat-item-list{max-height:min(44vh,400px)}}
.community-chat .chat-item-tile>input{position:absolute;inset:0;width:1px;height:1px;min-width:0;min-height:0;margin:0;padding:0;border:0;opacity:0;pointer-events:none}

/* /friends.css */
/* Invite friends (IRP_BRING_A_FRIEND_VERSION, public/friends-ui.js). Built on the UI kit: frames, headings, chips and buttons are the kit's; this file adds the
   Dawn Crown medallion, the road to level 10, the three steps and the friend cards. Colours are kit tokens; the coin is the game's own Dawn Crown painting. */
.fantasy-icon.friends-emblem{background:url('/art/interface/icon-friends-v2.webp') center/contain no-repeat}

.fr-page .fr-coin{display:inline-block;flex:0 0 auto;width:22px;height:22px;background:url('/art/ui/dawn-crowns-v1.webp') center/contain no-repeat;filter:drop-shadow(0 1px 2px #000a)}
.fr-page .fr-coin-sm{width:18px;height:18px}
.fr-page .fr-coin-md{width:34px;height:34px}
.fr-page .fr-coin-lg{width:56px;height:56px;filter:drop-shadow(0 0 10px #f0ce8366) drop-shadow(0 2px 3px #000c)}
.fr-page .fr-coin-xl{width:112px;height:112px;filter:drop-shadow(0 0 22px #f0ce8380) drop-shadow(0 4px 6px #000c)}
.fr-page .fr-head .uk-head-icon{display:grid;place-items:center}

/* Your welcome gift: a big medallion on the left, the road and the button on the right. */
.fr-page .fr-gift{display:grid;grid-template-columns:180px minmax(0,1fr);gap:22px;align-items:center}
.fr-page .fr-gift-art{position:relative;display:grid;place-items:center;min-height:170px;border-radius:50%;background:radial-gradient(circle at 50% 45%,#f0ce8333 0,#f0ce8314 38%,transparent 68%)}
.fr-page .fr-gift-amount{position:absolute;bottom:4px;left:50%;transform:translateX(-50%);padding:2px 12px;border:1px solid var(--uk-gold-dim);border-radius:12px;background:var(--uk-navy-0);color:var(--uk-gold-text);font:700 1.05rem/1.2 var(--uk-serif);letter-spacing:.04em}
.fr-page .fr-gift-body{display:grid;gap:10px;min-width:0}
.fr-page .fr-gift-body p{margin:0}
.fr-page .fr-eyebrow{color:var(--uk-gold);font:700 .75rem/1.2 var(--uk-sans);letter-spacing:.14em;text-transform:uppercase}
.fr-page .fr-gift .uk-heading{margin:0}
.fr-page .fr-next{color:var(--uk-ivory)}
.fr-page .fr-next strong{color:var(--uk-gold-text)}
.fr-page .fr-gift-action{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.fr-page .fr-collect{display:inline-flex;align-items:center;gap:8px}
.fr-page .fr-gift.is-ready{box-shadow:0 0 0 1px var(--uk-gold),0 0 28px #f0ce8340}
@media (prefers-reduced-motion:no-preference){
 .fr-page .fr-gift.is-ready .fr-coin-xl{animation:fr-glow 2.4s ease-in-out infinite}
 .fr-page .fr-collect{animation:fr-pulse 2.4s ease-in-out infinite}
}
@keyframes fr-glow{0%,100%{filter:drop-shadow(0 0 16px #f0ce8366) drop-shadow(0 4px 6px #000c)}50%{filter:drop-shadow(0 0 30px #f0ce83aa) drop-shadow(0 4px 6px #000c)}}
@keyframes fr-pulse{0%,100%{box-shadow:0 0 0 0 #f0ce8300}50%{box-shadow:0 0 0 6px #f0ce8326}}
.fr-page .fr-gift.is-claimed .fr-coin-xl{filter:grayscale(.15) drop-shadow(0 4px 6px #000c)}

/* The road: a gold bar behind four stops; done stops are lit, the last is the Crown. */
.fr-page .fr-track{position:relative;padding:4px 0 0}
.fr-page .fr-track-bar{position:absolute;left:12.5%;right:12.5%;top:21px;height:6px;border:1px solid var(--uk-gold-dim);border-radius:4px;background:var(--uk-navy-0);overflow:hidden}
.fr-page .fr-track-bar>span{display:block;height:100%;background:linear-gradient(90deg,var(--uk-gold-dim),var(--uk-gold-hi));box-shadow:0 0 8px #f0ce8399}
.fr-page .fr-track.is-claimed .fr-track-bar>span{background:linear-gradient(90deg,var(--uk-done-dim),var(--uk-done))}
.fr-page .fr-stops{position:relative;display:grid;grid-template-columns:repeat(4,1fr);margin:0;padding:0;list-style:none}
.fr-page .fr-stop{display:grid;justify-items:center;gap:6px;text-align:center;min-width:0}
.fr-page .fr-stop-dot{display:grid;place-items:center;width:34px;height:34px;box-sizing:border-box;border:2px solid var(--uk-gold-dim);border-radius:50%;background:var(--uk-navy-1);color:var(--uk-gold-dim)}
.fr-page .fr-stop-dot .uk-art{width:18px;height:18px;opacity:.55}
.fr-page .fr-stop.is-done .fr-stop-dot{border-color:var(--uk-gold-hi);background:var(--uk-navy-0);box-shadow:0 0 10px #f0ce8366}
.fr-page .fr-stop.is-done .fr-stop-dot .uk-art{opacity:1}
.fr-page .fr-stop.is-goal .fr-stop-dot{width:40px;height:40px;margin-top:-3px;border-color:var(--uk-gold)}
.fr-page .fr-stop.is-goal .fr-coin{width:26px;height:26px;opacity:.6;filter:grayscale(.6)}
.fr-page .fr-stop.is-goal.is-done .fr-coin{opacity:1;filter:drop-shadow(0 0 6px #f0ce83aa)}
.fr-page .fr-stop-label{color:var(--uk-ivory-dim);font:600 .75rem/1.2 var(--uk-sans)}
.fr-page .fr-stop.is-done .fr-stop-label{color:var(--uk-gold-text)}

/* Invite a friend: three steps joined by a dotted line, then the link. */
.fr-page .fr-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:0;padding:0;list-style:none}
.fr-page .fr-step{position:relative;display:grid;justify-items:center;gap:4px;text-align:center;padding:12px 8px;border:1px solid var(--uk-rule);border-radius:var(--uk-radius-card);background:var(--uk-navy-0)}
.fr-page .fr-step+.fr-step::before{content:"";position:absolute;left:-14px;top:42px;width:14px;border-top:2px dotted var(--uk-gold-dim)}
.fr-page .fr-step strong{color:var(--uk-gold-text);font:700 1rem/1.25 var(--uk-serif)}
.fr-page .fr-step-icon{position:relative;display:grid;place-items:center;width:58px;height:58px;box-sizing:border-box;border:1px solid var(--uk-gold-dim);border-radius:50%;background:var(--uk-navy-1);box-shadow:inset 0 0 0 3px var(--uk-navy-0),0 0 12px #f0ce8326}
.fr-page .fr-step-icon .uk-art-md{width:34px;height:34px}
.fr-page .fr-step-n{position:absolute;top:-6px;left:-6px;display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:var(--uk-gold);color:var(--uk-navy-0);font:800 .78rem/1 var(--uk-sans)}
.fr-page .fr-link{display:flex;gap:8px;align-items:stretch}
.fr-page .fr-link .uk-input{flex:1 1 auto;min-width:0;color:var(--uk-gold-text)}
.fr-page .fr-link .uk-btn{flex:0 0 auto;white-space:nowrap}
.fr-page .fr-perk{display:flex;gap:8px;align-items:flex-start;margin:0;color:var(--uk-ivory-dim)}
.fr-page .fr-perk strong{color:var(--uk-gold-text)}

/* Your friends: a card each, portrait, level and the road to their Crowns. */
.fr-page .fr-friends{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:12px;margin:0;padding:0;list-style:none}
.fr-page .fr-friend{display:grid;gap:12px;padding:14px;border:1px solid var(--uk-gold-dim);border-radius:var(--uk-radius-card);background:var(--uk-card-bg,var(--uk-navy-1))}
.fr-page .fr-friend.is-ready{border-color:var(--uk-gold-hi);box-shadow:0 0 18px #f0ce8333}
.fr-page .fr-friend.is-claimed{border-color:var(--uk-done-dim)}
.fr-page .fr-friend-head{display:flex;align-items:center;gap:12px;min-width:0}
.fr-page .fr-portrait{flex:0 0 52px;width:52px;height:52px;overflow:hidden;border:2px solid var(--uk-gold-dim);border-radius:50%;background:var(--uk-navy-0);display:grid;place-items:center}
.fr-page .fr-portrait img{width:100%;height:100%;object-fit:cover}
.fr-page .fr-portrait.is-empty .uk-art{width:30px;height:30px;opacity:.6}
.fr-page .fr-friend-who{display:grid;gap:2px;min-width:0;flex:1 1 auto}
.fr-page .fr-friend-who strong{color:var(--uk-gold-text);font:700 1.05rem/1.2 var(--uk-serif);overflow-wrap:anywhere}
.fr-page .fr-online{color:var(--uk-done)}
.fr-page .fr-friend-level{display:grid;justify-items:center;flex:0 0 auto;min-width:54px}
.fr-page .fr-friend-level small{color:var(--uk-ivory-dim);font:700 .72rem/1 var(--uk-sans);letter-spacing:.12em}
.fr-page .fr-friend-level b{color:var(--uk-gold-hi);font:700 1.6rem/1.1 var(--uk-serif)}
.fr-page .fr-friend-foot{display:flex;flex-wrap:wrap;gap:8px}
.fr-page .fr-chip-ready{border-color:var(--uk-gold-hi);color:var(--uk-gold-hi)}
.fr-page .fr-empty{display:grid;justify-items:center;gap:6px;padding:18px 8px;text-align:center}
.fr-page .fr-empty h3{margin:4px 0 0;color:var(--uk-gold-text);font:700 1.15rem/1.2 var(--uk-serif)}
.fr-page .fr-empty p{max-width:34em;margin:0}

@media (max-width:640px){
 .fr-page .fr-gift{grid-template-columns:1fr;justify-items:stretch;gap:10px}
 .fr-page .fr-gift-art{min-height:130px}
 .fr-page .fr-coin-xl{width:88px;height:88px}
 .fr-page .fr-steps{grid-template-columns:1fr;gap:10px}
 .fr-page .fr-step{grid-template-columns:58px 1fr;justify-items:start;text-align:left;column-gap:12px}
 .fr-page .fr-step-icon{grid-row:span 2}
 .fr-page .fr-step+.fr-step::before{left:40px;top:-10px;width:0;height:10px;border-top:0;border-left:2px dotted var(--uk-gold-dim)}
 .fr-page .fr-link{flex-wrap:wrap}
 .fr-page .fr-link .uk-input{flex:1 1 100%}
 .fr-page .fr-link .uk-btn{flex:1 1 0}
 .fr-page .fr-friends{grid-template-columns:1fr}
 .fr-page .fr-stop-label{font-size:.72rem}
 /* Four numbers in the header: two rows of two, so none wraps mid-number. */
 .fr-page .fr-head .uk-stats{grid-auto-flow:row;grid-template-columns:repeat(2,minmax(0,1fr));row-gap:6px}
 .fr-page .fr-head .uk-stat dd{white-space:nowrap}
}

/* /mobile-pass.css */
/* Phone pass (switch IRP_MOBILE_PASS_VERSION, default off; public/mobile-pass.js adds html.mp-on). Pat, 23 Oct 2026: give mobile the same love as PC.
   Layout only: colours, borders and icons come from the game's own parts (navigation sprite, ui-kit.css). Nothing here matches with the switch off. */

/* Keystones Hero tab: the painted keystone from the Keystone Altar art, like the other Hero tabs (it had no icon). Every width. */
html.mp-on .section-tab-art.mp-art-keystones{background:url(/assets/three-paths/icons/keystones-v1.webp) 0 0/400% 300% no-repeat}

/* PC side menu: the same New mark and green dot overlap ("Ne●" on Gathering); the mark moves left of the dot. */
@media(min-width:1001px){html.mp-on .shell.mmo-shell>.topbar>nav>.nav-button.nav-grouped:has(>.daily-dot)>.nav-copy>:is(.nav-new,.boss-hunt-new){right:18px}}
/* 0.75.0 UI QA: a long label (Auction House, Companions, Leaderboards) ran under the New mark; the mark sits 4px higher, clear of the label's line, so no label has to wrap. */
@media(min-width:1001px){html.mp-on .shell.mmo-shell>.topbar>nav>.nav-button.nav-grouped>.nav-copy>:is(.nav-new,.boss-hunt-new){top:-2px}}

/* Raid finder label: only the phone top bar shows it (below). */
html.mp-on .rf-eye>.mp-rf-label{display:none}

@media(max-width:1000px){
 /* Bottom bar: the tabs share the full width whatever their number. A new hero has four (Hero, Map, Town, More) and the fifth column used to sit empty. */
 html.mp-on .mmo-shell>.topbar>nav{grid-template-columns:none!important;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr)}
 /* More is a tab like the others (it was a boxed button with a line icon); open or holding the current page it lights like the selected tab. */
 html.mp-on .mmo-shell>.topbar>nav .nav-more>summary{border-color:transparent;border-radius:3px;background:none;color:#bebba9;font-weight:500}
 html.mp-on .mmo-shell>.topbar>nav .nav-more>summary>.fantasy-icon{width:26px;height:26px;flex:none}
 /* The painted signpost (ChatGPT prompt 63) fills about 80% of its square, so it is drawn a little larger to match the sprite icons beside it. */
 html.mp-on .mmo-shell>.topbar>nav .nav-more>summary>.mp-more-art{width:32px;height:32px;margin:-3px;flex:none;object-fit:contain}
 /* 0.75.0 UI QA: while the More sheet is open it is the lit tab; the page's own tab (Map) no longer lights up beside it. */
 html.mp-on .mmo-shell>.topbar>nav:has(.nav-more[open]) .nav-button.active:not(.nav-more-panel *){background:none!important;box-shadow:none!important;border-color:transparent!important;color:#bebba9!important}
 html.mp-on .mmo-shell>.topbar>nav :is(.nav-more[open],.nav-more.nav-more-current)>summary{background:linear-gradient(90deg,#cda25c25,#0000);box-shadow:inset 2px 0 #d0aa66;border-color:transparent;color:#f1d39c}
 /* The New mark and a green dot shared one corner in the More sheet ("Ne●"): the mark moves left of the dot. */
 html.mp-on .mmo-shell>.topbar>nav .nav-more-panel>.nav-button:has(>.daily-dot) :is(.nav-new,.boss-hunt-new){right:22px}
 /* Sign out and Switch character now sit at the foot of More, named, next to Settings and Patch notes; the top row keeps the portrait, Chat and Bag. */
 html.mp-on .shell .nav-account .account-block>.icon-button:is([data-character-menu],[data-action="logout"]){display:none}
 html.mp-on .nav-more-utilities>.mp-account{border-color:#6d5a3a}
 /* The eye in the top bar is named: "Raid finder" beside it, in the room Switch character and Sign out left. In the chat header it stays an eye. */
 html.mp-on .rf.rf-dock:not(.rf-in-chat) .rf-eye:has(>.mp-rf-label){width:auto;border-radius:22px;grid-auto-flow:column;gap:6px;padding:0 12px 0 9px}
 html.mp-on .rf.rf-dock:not(.rf-in-chat) .rf-eye>.mp-rf-label{display:block;font:600 .75rem/1 var(--uk-font,system-ui);color:var(--uk-gold-hi,#f1d39c);white-space:nowrap}
 /* Hero tabs: four tabs read two by two, five read three then two, so no tab sits alone on its own row. */
 html.mp-on .mmo-shell .section-tabs:has(>.section-tab:nth-child(4):last-child){display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
 html.mp-on .mmo-shell .section-tabs:has(>.section-tab:nth-child(5):last-child){display:grid;grid-template-columns:repeat(6,minmax(0,1fr))}
 html.mp-on .mmo-shell .section-tabs:has(>.section-tab:nth-child(5):last-child)>.section-tab{grid-column:span 2}
 html.mp-on .mmo-shell .section-tabs:has(>.section-tab:nth-child(5):last-child)>.section-tab:nth-child(n+4){grid-column:span 3}
}

@media(max-width:760px){
 /* Battle screen: your hero card (health, Focus, cooldowns) sat below the actions and the enemy list, about two screens under the fight.
    It now comes straight after the battlefield, so the fight and your hero fit on one screen. Order only; the battlefield keeps its old height. */
 html.mp-on .mmo-shell main.combat-grid>.arena-column{display:contents}
 html.mp-on .mmo-shell main.combat-grid>.arena-column>.arena-heading{order:1}
 html.mp-on .mmo-shell main.combat-grid>.arena-column>.battlefield{order:2;flex:none;height:clamp(260px,38svh,360px)}
 html.mp-on .mmo-shell main.combat-grid>.party-rail{order:3}
 html.mp-on .mmo-shell main.combat-grid>.arena-column>.field-controls{order:4}
 html.mp-on .mmo-shell main.combat-grid>.arena-column>.battle-controls{order:5}
 html.mp-on .mmo-shell main.combat-grid>.right-rail{order:6}
 /* The painted frame went round the whole column; it now frames the battlefield alone, so it no longer crosses the hero card. */
 html.mp-on .mmo-shell main.combat-grid>.arena-column::after{display:none}
 html.mp-on .mmo-shell main.combat-grid>.arena-column>.battlefield::after{content:"";position:absolute;inset:0;pointer-events:none;z-index:400;border:14px solid transparent;border-image:url('/art/interface/panel-frame-v1.webp') 18% / 14px / 0 stretch;will-change:transform}
 /* Frame rate on phones (31 Oct, Pat: "feels really low fps"): its own layer, so the fight under it is no longer repainted into one full-screen layer with the frame on every frame. */
}
@media(max-width:600px){
 html.mp-on .mmo-shell main.combat-grid>.arena-column.has-zone-boss-arena>.battlefield{height:clamp(250px,70vw,340px)}
 /* 0.75.0 UI QA: the three action buttons under the fight (Taunt, Combat review, Leave expedition) wrapped onto the button edges; smaller words and padding. */
 html.mp-on .shell .field-controls>.field-action-controls>button{font-size:.8125rem;line-height:1.15;padding-inline:6px}
 html.mp-on .shell .field-controls>.field-action-controls>.action-key{gap:4px}
 html.mp-on .shell .field-controls>.field-action-controls>.action-key small{padding-inline:4px}
}

@media(max-width:760px){
 /* Map: the card for the chosen destination (or the next chapter) comes first, under the heading; then the region tabs, the marker key and
    the map; Ready now and the route list follow. Before, a phone scrolled past Ready now and the whole map to reach them. Order only.
    A new hero's Stonewake map has .map-workspace straight under main (no section), so both shapes are listed. */
 html.mp-on main.world-map-page{display:flex;flex-direction:column}
 html.mp-on main.world-map-page>section:has(>.map-workspace),html.mp-on main.world-map-page>section>.map-workspace,html.mp-on main.world-map-page>.map-workspace{display:contents}
 html.mp-on main.world-map-page>.map-head{order:1}
 html.mp-on main.world-map-page>section>.map-workspace>:is(.map-destination,.map-invitation),html.mp-on main.world-map-page>.map-workspace>:is(.map-destination,.map-invitation){order:2;margin-bottom:12px}
 html.mp-on main.world-map-page>.region-tabs{order:3}
 html.mp-on main.world-map-page>.map-objective-key{order:4}
 html.mp-on main.world-map-page>section>.map-workspace>.world-map-scroll,html.mp-on main.world-map-page>.map-workspace>.world-map-scroll{order:5}
 html.mp-on main.world-map-page>.ready-now{order:6;margin-top:12px}
 html.mp-on main.world-map-page>.chapter-destinations{order:7}
}
/* Tablet top bar (761-1000px, 27 Oct): equal columns left the account column 128px at 820px, too narrow for portrait, chat and bag, so chat
   sat over the portrait. The account column now takes the width its three buttons need and the page buttons share the rest. */
@media (min-width:761px) and (max-width:1000px){html.mp-on .mmo-shell>.topbar>nav:has(>.nav-account){grid-template-columns:max-content!important}}
/* Tablet top bar with the docked Raid finder (27 Oct): the account column keeps a 44px slot between the portrait and chat for the finder's eye
   (raid-finder.js docks it just left of chat), so it never floats down into the bottom corner where quest and loot toasts sit. */
@media (min-width:761px) and (max-width:1000px){html.mp-on body:has(>.rf.rf-dock:not([hidden])) .shell .nav-account>.account-block{margin-right:60px}}
@media (min-width:761px) and (max-width:1000px){html.mp-on body>.rf.rf-dock:not(.rf-in-chat) .rf-eye{width:44px!important;padding:0!important;gap:0!important;border-radius:50%!important} html.mp-on body>.rf.rf-dock:not(.rf-in-chat) .rf-eye>.mp-rf-label{display:none!important}}

/* /phone-pass.css */
/* Phone deep dive (switch IRP_PHONE_PASS_VERSION, default off; public/phone-pass.js adds html.pp-on). Pat, 24 Oct 2026: on a phone every screen should be
   easy to use and to understand, with nothing out of place. Layout and order only: colours, borders and icons stay the game's own (ui-kit.css).
   Nothing here matches with the switch off. */

/* Battle screen, every width: "While you level: defeat Tautra 3 more times to open Sablewater Mill" sat right above "Next: Sablewater Mill. Defeat Tautra
   the Butcher 3 times (0 / 3)", the same goal twice. While Next up shows that goal (public/app.js marks it data-route), the second line stays hidden.
   Any other next step (points to spend, an upgrade in the bag, a companion too low) still shows. */
html.pp-on #nextUp[data-route]:not([hidden])+#battleGoals:has(>.next-step-route){display:none}

@media(max-width:1000px){
 /* Bottom bar: a New mark sat under its tab's name and pushed the name up out of line with the other tabs ("Party" over "New"). It is a small corner
    tag now, as in the More sheet. */
 html.pp-on .mmo-shell>.topbar>nav>.nav-button{position:relative}
 html.pp-on .mmo-shell>.topbar>nav>.nav-button>.nav-copy>:is(.nav-new,.boss-hunt-new){position:absolute;top:3px;right:4px;margin:0;padding:0 3px;border-radius:3px;font:700 .5rem/.625rem system-ui,sans-serif}
}

@media(max-width:760px){
 /* Equipment: on a phone the gear you wear sat under the whole 50-slot Bag, two screens down, while the tab and the tour say "Equipment shows what you
    wear". Equipped items now come first, then the Bag. Order only. */
 html.pp-on main.equipment-page>.equipment-workspace>.exp-panel:has(>.equipped-grid){order:-1}
 /* The worn grid had one column per two items, so a new hero's single bow filled a 324 px tile and the screen. Five across, like the bag. */
 html.pp-on main.equipment-page .item-grid.equipped-grid{grid-template-columns:repeat(5,minmax(0,1fr))!important}
 /* Ability bar: the Ultimate slot sat alone in the left half of its own row. It spans the row. */
 html.pp-on .bar-slots.five>.bar-slot:nth-child(5):last-child{grid-column:1/-1}
 /* Enchanter: Roll Shards sat alone on a second row under three tabs. Four tabs read two by two. */
 html.pp-on .workshop-service-tabs:has(>:nth-child(4):last-child){grid-template-columns:repeat(2,minmax(0,1fr))}
 /* Town square: six service buttons sat above the Stonewake heading, and the list under the square names the same six people again, so a phone
    showed each choice twice before the town itself. On the square the list is the one way in; inside a service the buttons still switch services. */
 html.pp-on .mmo-shell:has(>main.town-whole)>nav.section-tabs{display:none}
}

@media(max-width:600px){
 /* Companions: "Unlock the earlier slot first" was squeezed into the 44 px portrait column under a locked slot and broke one word per line
    ("Unloc / k the / earlier"). It runs under the button, the full width of the card. */
 html.pp-on .companion-roster .companion-seat>.small-note{grid-column:1/-1}
 /* Choose your class: the portraits were 30 px faces inside cards three times as wide. They are larger, so each class reads at a glance. */
 html.pp-on .creator .choice .outfit-portrait{width:46px;height:50px;flex-basis:46px}
 /* Gathering: each squire card was a full-width painting over a column of rows, about a screen tall, so the four squires took four screens. On a
    phone the painting is a square beside the name, skill and progress, and Yield and Tiers share a row: all four fit in about two screens. */
 html.pp-on .shell .gathering-page.ms-page .gather-squire{display:grid;grid-template-columns:96px minmax(0,1fr);column-gap:12px;align-items:start;padding:12px}
 html.pp-on .shell .gathering-page.ms-page .gather-squire>*{grid-column:2;margin-left:0;margin-right:0}
 html.pp-on .shell .gathering-page.ms-page .gather-squire>.squire-scene{grid-column:1;grid-row:1/span 5;width:96px;height:96px;margin:0;border-radius:4px}
 html.pp-on .shell .gathering-page.ms-page .gather-squire>:nth-child(n+7){grid-column:1/-1}
 html.pp-on .shell .gathering-page.ms-page .gather-squire>h2{font-size:1.25rem;margin:2px 0}
 html.pp-on .shell .gathering-page.ms-page .gather-squire>p{margin:2px 0}
 html.pp-on .shell .gathering-page.ms-page .gather-squire>dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 16px;margin:10px 0}
 html.pp-on .shell .gathering-page.ms-page .gather-squire>dl>div{margin:0}
 html.pp-on .shell .gathering-page.ms-page .gather-squire>dl>.gather-aura{grid-column:1/-1}
 /* Guild members: each member was a card of four rows with a full-width Manage button, about 170 px, so five members filled two screens. Name, a
    Manage button sized to its word and level lead, then role beside status and join date: about 110 px each. */
 html.pp-on .gm-roster tbody tr{grid-template-columns:auto minmax(0,1fr) auto auto;grid-template-areas:"who who act lvl" "role status status status" "role joined joined joined";row-gap:2px;padding:10px 12px}
 html.pp-on .gm-roster .gm-c-who{margin-bottom:4px}
 html.pp-on .gm-roster :is(.gm-c-status,.gm-c-joined){justify-self:start;text-align:left;font-size:.78rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
 html.pp-on .gm-roster .gm-c-act{justify-self:end}
 html.pp-on .gm-roster .gm-c-act>button{width:auto;padding-inline:14px}
 /* Guild member sort: five chips read two by two with "Joined" alone on a full-width row. Three then two. */
 html.pp-on .gm-page .gm-sort-select.pick-grid>.pick-chip{grid-column:span 2}
 html.pp-on .gm-page .gm-sort-select.pick-grid>.pick-chip:nth-last-child(-n+2):nth-child(n+4){grid-column:span 3}
 /* Seven tabs (Your guild) read four then three under a part-empty row. The first four take a quarter each and the last three a third, so both rows are full. */
 /* --gm-tab-cols: the guild menu's own grid rule (public/guild-menu.css, .shell.shell .gm-page) (and its phone rule's !important 4) outranks this one and drew 4 columns, so the tabs sat at three quarters width (QA, 5 Nov). */
 html.pp-on .uk-tabs.gm-tabs[data-tab-count="7"]{--gm-tab-cols:12!important;display:grid;grid-template-columns:repeat(12,minmax(0,1fr))}
 html.pp-on .uk-tabs.gm-tabs[data-tab-count="7"]>*{grid-column:span 3;width:auto}
 html.pp-on .uk-tabs.gm-tabs[data-tab-count="7"]>:nth-child(n+5){grid-column:span 4}
 /* Auction House categories: ten tiles read four, four, then Gems and Shards alone. Five by two. */
 html.pp-on .ah-cats.ah-cats-even:has(>:nth-child(10):last-child){display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}
 html.pp-on .ah-cats.ah-cats-even:has(>:nth-child(10):last-child)>.ah-cat{min-width:0;width:auto;padding-inline:2px;font-size:.6875rem;line-height:1.2;white-space:normal}
 /* The status chips under the top bar (a squire home, a timer): one chip sat alone at the left of its own row. The chips share the row, so one chip
    is a full-width bar and two are halves. Live QA, 25 Oct: they grow from their own width (not 0), so four chips wrap to a second row instead of cutting
    "Squires" to "Squi…" and "World boss" to "W". */
 html.pp-on .ush-strip .ush-chips>.ush-chip.uk-btn{flex:1 1 auto;justify-content:center}
}

/* /phone-lean.css */
/* Simpler phone screen (public/phone-lean.js adds html.pl-on). Phones only (760 px and under). Colours, frames and icons are the game's own. */
@media(max-width:760px){
 /* The old bars: wallet strip, portrait row, Alpha strip and the bottom bar. Their buttons are all in the Menu sheet now. */
 html.pl-on .shell.mmo-shell>.topbar{display:none!important}
 html.pl-on .shell.mmo-shell>.ush-strip:not(:has(.ush-chip.active)){display:none!important}
 /* A notice opened from the Menu (Alpha and the like) sits over the page (whole-game review, 17 Nov 2026). In the page flow it opened under the fight, the Map, the Town and every full page, so its Menu tile looked dead. Above the pages (92 to 97), under the Menu sheet (110). */
 html.pl-on .shell.mmo-shell>.ush-strip:has(.ush-chip.active){position:fixed;left:8px;right:8px;top:calc(118px + env(safe-area-inset-top,0px));margin:0;z-index:100}
 html.pl-on .shell.mmo-shell{padding-top:60px!important;padding-bottom:88px!important}
 /* The old bottom nav is hidden, so it measures 0; toasts, the news card and the next-step banner sit above the round buttons instead. */
 html.pl-on{--mobile-nav-height:80px!important}
 /* Not on the sign-in page: there is no hero yet (Pat, 30 Oct: the login screen showed Level 1, 0 gold, Menu and Chat). */
 /* Nor on How do you want to play and the character creator, for the same reason (menu audit, 1 Nov: the empty hero bar covered the EVERMARCH name). */
 html.pl-on:has(.auth-page,.creator-shell) :is(.pl-top,.pl-hud,.pl-sheet,.pl-points){display:none!important}
 html.pl-on{scroll-padding-top:68px;scroll-padding-bottom:96px}

 /* Top bar: portrait with level, name and XP, gold, Bag. */
 .pl-top{position:fixed;top:0;left:0;right:0;z-index:111;display:flex;align-items:center;gap:10px;height:56px;padding:0 12px 0 8px;box-sizing:border-box;background:#0e1726;border-bottom:1px solid #c7a46766;box-shadow:0 2px 10px #0008}
 .pl-portrait{position:relative;flex:none;width:44px;height:44px;padding:0;border:1px solid #c7a467;border-radius:6px;background:#142135;overflow:visible}
 .pl-portrait img{display:block;width:100%;height:100%;object-fit:cover;border-radius:5px}
 .pl-lv{position:absolute;right:-6px;bottom:-5px;min-width:20px;height:18px;padding:0 4px;box-sizing:border-box;border:1px solid #c7a467;border-radius:9px;background:#0e1726;color:#ffe1aa;font:700 .6875rem/16px system-ui,sans-serif;text-align:center}
 .pl-who{flex:1;min-width:0;display:grid;gap:3px}
 .pl-who strong{overflow:hidden;color:#f3e3bd;font:600 .875rem/1.1 Georgia,serif;white-space:nowrap;text-overflow:ellipsis}
 .pl-who small{color:#b9ad95;font:500 .625rem/1 system-ui,sans-serif;letter-spacing:.02em}
 .pl-xp{display:block;height:5px;max-width:150px;border-radius:3px;background:#24324a;overflow:hidden;box-shadow:inset 0 0 0 1px #0006}
 .pl-xp>i{display:block;height:100%;background:linear-gradient(90deg,#8f6a2b,#e2c084)}
 .pl-gold{display:flex;align-items:center;gap:6px;color:#f3e3bd;font:700 .875rem system-ui,sans-serif}
 .pl-icon{flex:none;display:grid;place-items:center;width:44px;height:44px;padding:0;border:1px solid #c7a46799;border-radius:6px;background:linear-gradient(180deg,#1c2a42,#121c2e)}
 .pl-icon .side-art{width:28px;height:28px;flex-basis:28px}

 /* Bottom: Menu in the middle, Chat on the right, Taunt (in a fight) on the left. No bar behind them, so the fight shows through. */
 .pl-hud{position:fixed;left:0;right:0;bottom:0;z-index:111;height:76px;pointer-events:none;background:linear-gradient(0deg,#0b1220e6 0%,#0b122099 55%,transparent)}
 .pl-hud>*{pointer-events:auto}
 .pl-menu{position:absolute;left:50%;bottom:calc(10px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);display:grid;place-items:center;gap:1px;width:64px;height:64px;padding:0;border:2px solid #d7b475;border-radius:50%;background:radial-gradient(circle at 50% 35%,#2a3b5a,#101a2c 70%);box-shadow:0 0 0 3px #0e1726,0 4px 14px #000a,inset 0 1px #ffe6a133;color:#ffe1aa;font:700 .625rem/1 system-ui,sans-serif;letter-spacing:.04em;text-transform:uppercase}
 .pl-menu img{width:28px;height:28px;margin-top:6px}
 .pl-menu span{margin-bottom:8px}
 html.pl-sheet-open .pl-menu{border-color:#ffe1aa;background:radial-gradient(circle at 50% 35%,#3a4c6e,#16233a 70%)}
 .pl-chat{position:absolute;right:14px;bottom:calc(16px + env(safe-area-inset-bottom,0px));display:grid;place-items:center;width:50px;height:50px;padding:0;border:1px solid #c7a467;border-radius:50%;background:linear-gradient(180deg,#1c2a42,#121c2e);box-shadow:0 3px 10px #000a}
 .pl-chat .side-art{width:28px;height:28px;flex-basis:28px}
 .pl-unread,.pl-dot{position:absolute;top:-3px;right:-3px;min-width:18px;height:18px;padding:0 4px;box-sizing:border-box;border-radius:9px;background:#c0392b;color:#fff;font:700 .625rem/18px system-ui,sans-serif;text-align:center;box-shadow:0 0 0 2px #0e1726}
 .pl-dot{top:2px;right:2px;min-width:12px;width:12px;height:12px;padding:0;background:#3ecf6e}
 .pl-unread[hidden],.pl-dot[hidden]{display:none}

 /* The fight: Taunt is the one fight button left on screen, round, bottom left. The rest are in Menu under This fight. */
 html.pl-on .field-controls{position:static!important;min-height:0!important;padding:0!important;margin:0!important;border:0!important;background:none!important}
 html.pl-on .field-action-controls>:not([data-action="taunt"]):not([data-field-enter]:not([hidden])){display:none!important}
 html.pl-on .field-action-controls{display:contents!important}
 html.pl-on .field-action-controls>[data-action="taunt"]{position:fixed!important;left:14px;bottom:calc(14px + env(safe-area-inset-bottom,0px));z-index:96;display:grid!important;place-items:center;width:54px!important;min-width:0!important;height:54px!important;min-height:0!important;padding:0!important;border:2px solid #c7a467!important;border-radius:50%!important;background:radial-gradient(circle at 50% 35%,#24344f,#101a2c 70%)!important;box-shadow:0 3px 10px #000a}
 html.pl-on .field-action-controls>[data-action="taunt"] .skill-icon{width:36px;height:36px;margin:0;border:0!important;background:none!important;box-shadow:none!important}
 html.pl-on .field-action-controls>[data-action="taunt"]>:is(.action-label,small){position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
 /* Its own height: the fight row's height:100% would stretch a fixed button over the whole screen (Pat, 30 Oct, Android: "a giant fight boss rectangle"). */
 html.pl-on .field-action-controls>[data-field-enter]:not([hidden]){position:fixed!important;left:50%;bottom:92px;z-index:96;transform:translateX(-50%);width:auto!important;height:auto!important;min-height:48px!important;padding:0 22px!important;white-space:nowrap}
 html.pl-on .field-controls>.field-options{display:none}
 html.pl-on.pl-options .field-controls>.field-options{display:block;position:fixed;left:10px;right:10px;bottom:90px;z-index:97;max-height:60vh;overflow:auto;background:#0e1726;border:1px solid #c7a467;box-shadow:0 6px 24px #000c}
 html.pl-on .field-controls>.field-progress{display:none}

 /* The battle header: zone, floor and packs on two short lines, the hero's health under them. */
 html.pl-on .arena-heading .zone-badge{padding-top:4px!important;padding-bottom:6px!important}
 html.pl-on .arena-heading .zone-badge>span:first-child{font-size:1.125rem!important}
 /* The fight fills what is left of the screen above the Menu button. */
 html.pl-on .simple-battle .battlefield{height:calc(100svh - var(--pl-above,214px) - 12px)!important;min-height:320px!important;max-height:none!important}
 html.pl-on .battlefield .battle-minimap{bottom:84px!important}

 /* Skill tree toolbar: the Tactics card (three skill icons, then its name) was squeezed to a third of the row, so its name spilled 21 px past the
    phone and the whole page scrolled sideways. It takes its own row. */
 html.pl-on .tree-menus>.tx-summary{flex:1 1 100%!important;overflow:hidden}

 /* Raid finder: it docked beside the old portrait row, which this layout hides, so it sat on top of the new top bar. It waits above Chat. */
 html.pl-on .rf.rf-dock:not(.rf-in-chat){top:auto!important;bottom:calc(84px + env(safe-area-inset-bottom,0px))!important;right:14px!important;flex-direction:column!important}
 html.pl-on .rf.rf-dock:not(.rf-in-chat) :is(.rf-pop,.rf-toast){top:auto!important;bottom:calc(150px + env(safe-area-inset-bottom,0px))!important}

 /* Menu sheet */
 .pl-sheet{position:fixed;inset:0;z-index:110}
 .pl-sheet[hidden]{display:none}
 .pl-scrim{position:absolute;inset:0;background:#05080fb3}
 .pl-panel{position:absolute;left:0;right:0;bottom:0;max-height:calc(100svh - 64px);overflow:auto;padding:0 14px 104px;box-sizing:border-box;background:linear-gradient(180deg,#152238,#0e1726 140px);border-top:2px solid #d7b475;border-radius:14px 14px 0 0;box-shadow:0 -8px 30px #000c;overscroll-behavior:contain}
 .pl-panel>header{position:sticky;top:0;z-index:1;display:flex;align-items:center;justify-content:space-between;height:52px;margin:0 -14px;padding:0 6px 0 18px;background:#152238;border-bottom:1px solid #c7a46744}
 .pl-panel>header strong{color:#f3e3bd;font:600 1.125rem Georgia,serif}
 .pl-close{width:44px;height:44px;padding:0;border:0;background:none;color:#e8ce92;font-size:1.5rem}
 .pl-group h3{margin:16px 2px 8px;color:#c7a467;font:700 .6875rem system-ui,sans-serif;letter-spacing:.14em;text-transform:uppercase}
 .pl-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
 .pl-tile{position:relative;display:grid;justify-items:center;align-content:start;gap:6px;min-height:84px;padding:10px 4px 8px;border:1px solid #c7a46766;border-radius:8px;background:linear-gradient(180deg,#1c2a42,#121c2e);color:#e9dcc0;font:600 .6875rem/1.15 system-ui,sans-serif;text-align:center}
 .pl-tile.current{border-color:#e6c889;box-shadow:inset 0 2px #e6c889;background:linear-gradient(180deg,#b98d3933,#142135);color:#ffe1aa}
 .pl-tile-art{display:grid;place-items:center;width:36px;height:36px}
 .pl-tile-art>*{max-width:36px;max-height:36px}
 .pl-tile-art .fantasy-icon,.pl-tile-art .side-art{width:32px!important;height:32px!important;flex-basis:32px!important}
 .pl-tile-art img{width:32px;height:32px;object-fit:contain}
 .pl-tile-art .outfit-portrait{display:block;width:34px;height:34px;border:1px solid #c7a467;border-radius:5px;overflow:hidden}
 .pl-tile-art .outfit-portrait img{width:100%;height:100%;object-fit:cover}
 .pl-tile-art svg{width:28px;height:28px;color:#e8ce92}
 .pl-tile-art .uk-ico{width:30px;height:30px}
 .pl-badge{position:absolute;top:4px;right:4px;min-width:16px;padding:0 4px;box-sizing:border-box;border-radius:8px;background:#c0392b;color:#fff;font:700 .5625rem/16px system-ui,sans-serif}
 .pl-new{position:absolute;top:4px;right:4px;padding:0 4px;border-radius:3px;background:#e2c084;color:#1a1206;font:700 .5rem/.75rem system-ui,sans-serif}
}
@media(min-width:761px){.pl-top,.pl-hud,.pl-sheet{display:none!important}}

/* Character sheet: Spend attribute points (public/ui-character.js), every width. */
/* Three buttons per attribute: − +1 +5 in one row, one attribute per row on a phone. */
html.pl-on .uc-alloc-btns{grid-column:1/-1;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
html.pl-on .uc-alloc-btns>.uk-btn{min-width:0;min-height:44px;padding:0 4px}
@media(max-width:760px){html.pl-on .uc-alloc{grid-template-columns:1fr}}
.uc-main{margin-left:6px;padding:1px 6px;border:1px solid #c7a467;border-radius:9px;color:#ffe1aa;font:700 .625rem/1.4 system-ui,sans-serif;letter-spacing:.06em;text-transform:uppercase;vertical-align:middle}
/* Skill trees on a phone (Pat, 28 Oct: "just make it more user friendly for phone"), hero and Artisan: the tree comes straight after the heading (the
   ability bar, builds and tactics follow it), skills you can learn now glow, each hero branch tab counts what it has to learn, and a chip under the
   bar keeps your free points in view (public/phone-lean.js points). The tree itself is unchanged. */
@media(max-width:760px){
 html.pl-on .paths-page.skill-compact{display:flex;flex-direction:column}
 html.pl-on .paths-page.skill-compact>*{order:4}
 html.pl-on .paths-page.skill-compact>.paths-heading{order:1}
 html.pl-on .paths-page.skill-compact>.paths-workspace{order:2}
 html.pl-on .paths-page.skill-compact>.skill-bar-compact{order:3}
 html.pl-on .class-tree:not(.at-tree){display:flex;flex-direction:column}
 html.pl-on .class-tree:not(.at-tree)>.tree-toolbar{display:contents}
 html.pl-on .class-tree:not(.at-tree) .tree-toolbar>nav{order:1}
 html.pl-on .class-tree:not(.at-tree)>.tree-legend{order:2}
 html.pl-on .class-tree:not(.at-tree)>.class-tree-viewport{order:3}
 html.pl-on .class-tree:not(.at-tree) .tree-toolbar>:not(nav){order:4}
 html.pl-on .class-tree-skill.available .class-tree-node{box-shadow:0 0 0 3px #f0ce83,0 0 18px 4px #f0ce83aa;animation:pl-glow 1.6s ease-in-out infinite alternate}
 html.pl-on [data-tree-focus]{position:relative}
 html.pl-on .pl-count{position:absolute;top:-7px;right:-5px;min-width:20px;height:20px;padding:0 5px;box-sizing:border-box;border-radius:10px;background:#f0ce83;color:#1a1408;font:800 .75rem/20px system-ui,sans-serif;text-align:center;box-shadow:0 1px 4px #000a}
 .pl-points{position:fixed;top:62px;left:50%;transform:translateX(-50%);z-index:110;max-width:calc(100vw - 32px);min-height:36px;padding:6px 14px;border:1px solid #f0ce83;border-radius:18px;background:#14100a;color:#f3e3bd;font:700 .8125rem/1.3 system-ui,sans-serif;box-shadow:0 4px 14px #000c;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .pl-points[hidden]{display:none}
 html.pl-on.pl-has-points .shell.mmo-shell{padding-top:104px!important}
}
@media(min-width:761px){.pl-points{display:none!important}}
@keyframes pl-glow{from{box-shadow:0 0 0 2px #f0ce83,0 0 8px 2px #f0ce8366}to{box-shadow:0 0 0 3px #f0ce83,0 0 20px 6px #f0ce83bb}}
@media(prefers-reduced-motion:reduce){html.pl-on .class-tree-skill.available .class-tree-node{animation:none}}
/* Artisan profession trees on a phone: every profession button in view (two to a row), none hidden off the side. */
@media(max-width:760px){
 html.pl-on .at-toolbar .at-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;overflow:visible}
 html.pl-on .at-toolbar .at-row button{min-height:44px;justify-content:flex-start}
 html.pl-on .at-toolbar .at-row button em{margin-left:auto}
}
/* Artisan pages on a phone: finger-sized targets. Map pins get a wider touch area (the picture stays the same size), the How many buttons and the
   skill chips on the boards are at least 44 px tall. */
@media(max-width:760px){
 html.pl-on .artisan-shell .as-pin::after{content:'';position:absolute;inset:-6px}
 html.pl-on .artisan-shell :is(.ah-amt,.uk-btn){min-height:44px}
 html.pl-on .artisan-shell .uk-chip.ac-skill{min-height:44px;display:inline-flex;align-items:center}
}
/* A group of five (the Artisan's Town: Town, Auction House, Dawn Shop, Crafters' Hall, Recipe book) left its fifth tile alone on a second row
   (QA, 1 Nov; UI kit: no lone item wrapping onto a row). Five sit in one row of narrower tiles. */
.pl-grid:has(>:nth-child(5):last-child){grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}
/* Narrower tiles need the smaller label only on a phone; in the wide Menu window the five tiles are as wide as the rest, so their labels match (audit, 6 Nov). */
@media(max-width:760px){.pl-grid:has(>:nth-child(5):last-child)>.pl-tile{padding-inline:2px;font-size:.625rem;line-height:1.15}}
/* Whole-game review item 22 (18 Nov): groups of one or two places share a row (public/phone-lean.js wraps them in .pl-pair), each as wide as its tiles on the four columns. */.pl-pair{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));column-gap:8px}.pl-pair>.pl-group{grid-column:span var(--pl-n,1);min-width:0}.pl-pair>.pl-group>.pl-grid{grid-template-columns:repeat(var(--pl-n,1),minmax(0,1fr))}
/* Whole-game review (18 Nov, the first wait): while the page still reads "Opening the realm…" the phone's hero bar (an empty "Level 1", 0 gold) and the round buttons wait. */body:has(>#app>.boot) :is(.pl-top,.pl-hud){display:none!important}

/* /party-pointer.css */
/* Party pointer (public/party-pointer.js, IRP_PARTY_POINTER_VERSION): the other players in the fight's heading, and the first-boss party card. UI kit colours. */
.combat-grid .arena-heading .pp-here{margin-left:12px;font:600 .75rem/1.2 system-ui,sans-serif;letter-spacing:.04em;color:#cdbb92;text-transform:none}
.party-pointer{position:fixed;z-index:240;left:16px;bottom:16px;width:min(340px,calc(100vw - 32px));box-sizing:border-box;padding:14px 16px;background:var(--pl-surface-art,none) center/512px repeat,#1c1a18;border:1px solid #b68f56;border-radius:var(--uk-radius,8px);box-shadow:0 10px 28px #000a;color:#efe6d2}
.party-pointer .pp-eyebrow{margin:0 0 4px;font:600 .6875rem/1.2 system-ui,sans-serif;letter-spacing:.14em;text-transform:uppercase;color:#c9a468}
.party-pointer .pp-title{margin:0 0 6px;font:1.0625rem/1.3 Georgia,serif;color:#f3e3bd}
.party-pointer .pp-text{margin:0;font:.875rem/1.4 system-ui,sans-serif;color:#d9cfb8}
.party-pointer .pp-actions{display:flex;align-items:center;gap:12px;margin-top:12px}
.party-pointer .tour-skip{min-height:44px;padding:0 10px;background:none;border:0;color:#c9bfa8;text-decoration:underline}
@media(max-width:760px){.party-pointer{left:12px;right:12px;width:auto;bottom:112px}.combat-grid .arena-heading .pp-here{display:block;margin:2px 0 0}}
.party-pointer .pp-go{min-height:var(--uk-tap,44px);padding:9px 22px;border:1px solid #e6c98f;border-radius:var(--uk-radius,6px);background:linear-gradient(180deg,#c9a468,#8f6f3c);color:#1b1509;font:700 .875rem/1.3 system-ui,sans-serif;box-shadow:inset 0 1px 0 #fff2c95c,inset 0 0 0 2px #8a682f66,0 2px 5px #0005;cursor:pointer}
.party-pointer .pp-go:hover{border-color:#fbe3ac;background:linear-gradient(180deg,#d8b674,#9c7a44)}
/* 0.77.2 QA at 390: with the fight HUD on, the heading is one centred row, so "1 other player hunting here" pushed the zone name off the left edge.
   Outside a zone fight (a Hunt, raid and the like, as in 0.77.2) the phone heading may wrap: the first line stays and the other players go on a line of their own.
   In a zone fight (html.ex-zone-line, public/adventure-notices.js), 0.77.3 sweep (3 Nov): wrapping put the other players, and then Gold/h, over the enemy's
   name in the target frame, so the place line stays one line (XP/h, the place, the packs, Gold/h), the other players get a line of their own just under it, and
   the target frame moves down by that line while it shows (public/party-pointer.js sets pp-here-on on the page). */
@media(max-width:760px){html.fh-on.cx-on.cx-fight:not(.ex-zone-line) main.combat-grid .arena-heading:has(.pp-here){flex-wrap:wrap!important;justify-content:center;row-gap:2px!important;max-width:calc(100vw - 24px)!important}
 html.fh-on.cx-on.cx-fight:not(.ex-zone-line) main.combat-grid .arena-heading .pp-here{flex-basis:100%;margin:0;text-align:center}
 html.fh-on.cx-on.cx-fight.ex-zone-line main.combat-grid .arena-heading{flex-wrap:nowrap!important}
 html.fh-on.cx-on.cx-fight.ex-zone-line main.combat-grid .arena-heading .pp-here{position:absolute;z-index:2;left:0;right:0;top:100%;margin:-7px 0 0;text-align:center;text-shadow:0 1px 2px #000,0 0 4px #000;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;pointer-events:none}
 html.fh-on.cx-on.cx-fight.ex-zone-line.pp-here-on .fh-target{top:52px!important}}

/* /hero-buyers.css */
/* Heroes bought your work (public/hero-buyers.js, IRP_HERO_BUYERS_VERSION): the Hall line and the strip under the top bar, drawn like the guest strip. */
.hb-line strong{color:var(--uk-gold-text,#ffe1aa);margin-right:4px}
.hero-buyers-note{display:flex;align-items:center;gap:12px;margin:8px 16px 0;padding:8px 10px 8px 12px;border:1px solid var(--uk-gold-dim,#8f7645);border-left:3px solid var(--uk-gold,#d6b575);border-radius:4px;background:linear-gradient(110deg,#2a2416,#111c2b);color:var(--uk-ivory,#eadbb9)}
.hero-buyers-note p{flex:1;min-width:0;margin:0;font-size:.85rem;line-height:1.35}
.hero-buyers-note strong{color:var(--uk-gold-text,#ffe1aa);margin-right:4px}
.hero-buyers-note .uk-btn{flex:none;min-height:36px}
html.cx-on .cx-pop .hero-buyers-note{margin:0}

/* /combat-hud.css */
/* Combat HUD polish (12 Oct 2026). Presentation only: party frames, battlefield plates, enemy cards and the
   combat meter. Loaded last so it can refine the older layers without editing them. No layout here changes size
   while a fight runs, so the battle screen does not jump as health, casts or deaths change. */
.mmo-shell .combat-grid{--hud-tank:#6d9be0;--hud-healer:#6cc893;--hud-dps:#df7a5c;--hud-hp-a:#6fd36f;--hud-hp-b:#2f8d3f;--hud-low-a:#ff7656;--hud-low-b:#b42a1c;--hud-track:#081015}

/* Party frames: a role stripe, a taller green health bar that turns red under 35%, and coloured resource bars. */
.mmo-shell .combat-grid .compact-party-card{border-radius:6px;border-left-width:4px;background:linear-gradient(160deg,#1d2a30,#11191e 70%);box-shadow:0 2px 8px #0008,inset 0 1px #ffffff0d}
.mmo-shell .combat-grid .compact-party-card.role-tank{border-left-color:var(--hud-tank)}
.mmo-shell .combat-grid .compact-party-card.role-healer{border-left-color:var(--hud-healer)}
.mmo-shell .combat-grid .compact-party-card.role-dps{border-left-color:var(--hud-dps)}
.mmo-shell .combat-grid .compact-party-card .raid-frame-title small{letter-spacing:.02em}
.mmo-shell .combat-grid .compact-party-card .hud-bar{height:18px;min-height:18px;margin:5px 0 3px;border:1px solid #000b;border-radius:4px;background:var(--hud-track);box-shadow:inset 0 1px 3px #000d,0 0 0 1px #ffffff10}
.mmo-shell .combat-grid .compact-party-card .hud-bar>i{border-radius:3px 0 0 3px}
.mmo-shell .combat-grid .compact-party-card .hud-bar.health>i{background:linear-gradient(#8ae889,var(--hud-hp-a) 35%,var(--hud-hp-b));box-shadow:inset 0 1px #ffffff55}
.mmo-shell .combat-grid .compact-party-card .hud-bar em{font:600 11px/18px system-ui;letter-spacing:.02em;color:#fff;text-shadow:0 1px 2px #000,0 0 3px #000}
.mmo-shell .combat-grid .compact-party-card .hud-bar.resource{height:13px;min-height:13px;margin:0 0 4px}
.mmo-shell .combat-grid .compact-party-card .hud-bar.resource em{font:600 9.5px/13px system-ui}
.mmo-shell .combat-grid .compact-party-card .hud-bar.resource>i{background:linear-gradient(#6ab7ff,#2463d6)}
.mmo-shell .combat-grid .compact-party-card .hud-bar.resource[title=Rage]>i{background:linear-gradient(#f0775e,#a8291c)}
.mmo-shell .combat-grid .compact-party-card .hud-bar.resource:is([title=Focus],[title=Energy])>i{background:linear-gradient(#f6d76a,#c08b1c)}
.mmo-shell .combat-grid .compact-party-card:not(.fallen):has(.hud-bar.health>i.low){box-shadow:0 2px 8px #0008,inset 0 0 0 1px #ff5a3c88,inset 0 0 14px #ff3b2033}
.mmo-shell .combat-grid .compact-party-card .hud-bar.health>i.low{background:linear-gradient(#ff9b80,var(--hud-low-a) 35%,var(--hud-low-b))}
.mmo-shell .combat-grid .compact-party-card.fallen{opacity:.6}
.mmo-shell .combat-grid .compact-party-card.fallen .party-status-portrait{filter:grayscale(1)}

/* Battlefield plates. Ordinary enemies keep their slim bar (it had shrunk to a 6px square), and party members
   now carry the same slim bar over their heads so you can see who is hurt without looking away from the fight. */
.dungeon-battlefield .enemy-unit:not(.rare-unit):not(.boss-unit):not(.focus-target) .unit-hp,
.dungeon-battlefield .hero-unit .unit-hp{height:5px;margin:0;border:1px solid #000c;border-radius:2px;box-shadow:0 1px 2px #000,0 0 0 1px #ffffff1a}
.dungeon-battlefield .hero-unit .unit-name{display:block;width:44px!important;left:-22px!important}
.dungeon-battlefield .hero-unit .unit-name>:not(.unit-hp){display:none}
.dungeon-battlefield .hero-unit .unit-hp>i{background:linear-gradient(#8ae889,#2f8d3f)}
/* Raids: a healthy ally who is not a tank wears a small faint bar and an ordinary monster a thin one (public/app.js raid-minor), so a packed fight's plates stay readable. */
.dungeon-battlefield .hero-unit.raid-minor .unit-hp{height:3px;margin:0 9px;opacity:.55;box-shadow:none}
.dungeon-battlefield .enemy-unit.raid-minor:not(.rare-unit):not(.boss-unit):not(.focus-target) .unit-hp{height:3px;box-shadow:none}

/* Enemy cards: health reads inside a thicker bar, elites stand out, the focus target glows. */
.mmo-shell .combat-grid .enemy-card{border-radius:6px;background:linear-gradient(160deg,#1e2a2f,#121b20 70%);box-shadow:0 2px 6px #0007}
.mmo-shell .combat-grid .enemy-card.focused{border-color:#f2c86e;box-shadow:0 0 0 1px #f2c86e,0 0 12px #f2c86e55}
.mmo-shell .combat-grid .enemy-card.fallen{opacity:.5}
.mmo-shell .combat-grid .enemy-identity>span{display:grid;grid-template-columns:minmax(0,1fr);align-content:center}
.mmo-shell .combat-grid .enemy-identity [data-enemy-health]{grid-row:4;grid-column:1;z-index:1;margin:2px 0 0;text-align:center;font:600 10px/14px system-ui;font-variant-numeric:tabular-nums;color:#fff;text-shadow:0 1px 2px #000,0 0 3px #000}
.mmo-shell .combat-grid .enemy-identity .enemy-health{grid-row:4;grid-column:1;height:14px;margin-top:2px;border:1px solid #000b;border-radius:3px;background:#1d0d0b;box-shadow:inset 0 1px 3px #000d,0 0 0 1px #ffffff10}
.mmo-shell .combat-grid .enemy-health i{background:linear-gradient(#ff8a68,#d24a33 40%,#8f2216)}
/* Defeated enemies move after the living ones, so on a phone the enemy still fighting is the first card you see. */
.mmo-shell .combat-grid .enemy-card.fallen{order:1}
.mmo-shell .combat-grid .enemy-card.fallen :is(.enemy-health,[data-enemy-health]){visibility:hidden}
/* A waiting enemy's cast line stays in place but reads quietly; its effects get one fixed row that scrolls. */
.mmo-shell .combat-grid .enemy-card .portrait-cast:not(.casting){border-color:#ffffff14;background:#0000002e;color:#9fb0b2}
/* Effects wrap onto up to three rows, then scroll, so two-line chips like "Doom ×3 / Until guards fall" and chips at a phone card's right edge are never cut off. */
.mmo-shell .combat-grid .enemy-card .portrait-effects{flex-wrap:wrap;align-items:flex-start;height:auto;min-height:30px;max-height:79px;margin-top:4px;overflow-x:hidden;overflow-y:auto;scrollbar-gutter:auto;scrollbar-width:thin}
.mmo-shell .combat-grid .enemy-card .portrait-effect{flex-shrink:0;max-width:100%}

/* Combat meter: one bar per person, filled in their class colour, with the numbers on the bar.
   The whole row opens the breakdown, so each row is still a full-size touch target. */
.mmo-shell .combat-grid .damage-meter header{align-items:baseline}
.mmo-shell .combat-grid .damage-meter header h3{font-size:1rem;margin:0}
.mmo-shell .combat-grid .damage-meter header>strong{font-size:.9375rem}
/* Tabs fill the row in equal columns of at least 72px, so Damage, Healing, Threat and Reset never cut off: two by two in a narrow
   party rail, one row where there is room. */
.mmo-shell .combat-grid .damage-meter .meter-tabs{display:grid;grid-template-columns:repeat(auto-fit,minmax(72px,1fr));gap:4px;margin:10px 0 8px}
.mmo-shell .combat-grid .damage-meter .meter-tabs button{min-width:0;padding:0 4px;border-radius:4px;font-size:.8125rem;white-space:nowrap}
.mmo-shell .combat-grid .damage-meter .meter-tabs [data-meter-reset]{background:transparent;color:#c9b88f}
.mmo-shell .combat-grid [data-meter-rows] .meter-row{position:relative;align-items:center;gap:6px;min-height:44px;box-sizing:border-box;margin:3px 0;padding:4px 8px 4px 6px;border-radius:4px;background:#0a151b;box-shadow:inset 0 0 0 1px #ffffff0d;overflow:hidden}
.mmo-shell .combat-grid [data-meter-rows] .meter-track{position:absolute;inset:0;height:auto;margin:0;border-radius:4px;background:transparent}
.mmo-shell .combat-grid [data-meter-rows] .meter-track i{border-radius:0;background:linear-gradient(90deg,color-mix(in srgb,var(--meter-color) 18%,transparent),color-mix(in srgb,var(--meter-color) 48%,transparent))}
.mmo-shell .combat-grid [data-meter-rows] .meter-person{position:static}
.mmo-shell .combat-grid [data-meter-rows] :is(.meter-rank,.meter-person>div:first-child,.meter-totals){position:relative;z-index:1}
.mmo-shell .combat-grid [data-meter-rows] .meter-rank{min-width:1ch;padding:0;font:600 .6875rem system-ui;color:#c9d2d2;text-shadow:0 1px 2px #000}
.mmo-shell .combat-grid [data-meter-rows] .meter-person>div:first-child{align-items:baseline}
.mmo-shell .combat-grid [data-meter-rows] .meter-name{min-height:0;padding:0;font:700 .8125rem/1.3 system-ui;text-decoration:none;color:var(--meter-color);text-shadow:0 1px 2px #000;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mmo-shell .combat-grid [data-meter-rows] .meter-name::after{content:'';position:absolute;inset:-4px -8px -4px -30px}
.mmo-shell .combat-grid [data-meter-rows] .meter-name:focus-visible{outline:none}
.mmo-shell .combat-grid [data-meter-rows] .meter-row:has(.meter-name:focus-visible){outline:2px solid #f2c86e;outline-offset:1px}
.mmo-shell .combat-grid [data-meter-rows] .meter-row:has(.meter-name:hover){box-shadow:inset 0 0 0 1px #ffffff33}
.mmo-shell .combat-grid [data-meter-rows] .meter-person b{font-size:.8125rem;color:#fff;text-shadow:0 1px 2px #000}
.mmo-shell .combat-grid [data-meter-rows] .meter-totals{color:#d0d8d8;text-shadow:0 1px 2px #000;margin-top:1px}
.mmo-shell .combat-grid .damage-meter .meter-note{margin-top:8px}


/* Dungeon floors and boss arenas narrower than the stage (Prison Cellar, Tautra, world bosses) leave empty space beside the painting.
   Fill that space with a dim, blurred copy of the same painting so the arena never sits in dark strips. */
.mmo-shell .battlefield.dungeon-battlefield::before{content:'';position:absolute;inset:-40px;z-index:-1;pointer-events:none;background:var(--arena-backdrop,none) center/cover no-repeat;filter:blur(14px) brightness(.8) saturate(.85)}
.mmo-shell .battlefield.dungeon-battlefield .arena-background{box-shadow:0 0 28px 10px #05080a99}
/* A fallen member's ability slots stay greyed; the card already shows the revive timer, so no placeholder dash. */
.path-portrait-skill[data-skill-state=defeated] small{visibility:hidden}
/* Landscape phones (about 390px tall): the top bar took three rows and pushed the battlefield below the fold.
   Put the page buttons and the account buttons on one row, and tighten the battle heading. */
@media (orientation:landscape) and (max-height:500px){
 /* The nav is a five-track grid everywhere else; with the More menu and the account block it has six children, so one row needs a flex row. */
 .shell.mmo-shell>.topbar>nav{display:flex!important;flex-wrap:nowrap;align-items:center;gap:4px;padding-top:4px;padding-bottom:4px}
 .shell.mmo-shell>.topbar>nav>.nav-button{flex:1 1 0;min-width:0;min-height:44px}
 .shell.mmo-shell>.topbar>nav>.nav-more{flex:0 0 auto}
 .shell.mmo-shell>.topbar>nav>.nav-account,.shell.mmo-shell.wayfarer-shell>.topbar>nav>.nav-account{flex:0 0 auto;width:auto;margin-left:auto;grid-column:auto}
 .shell.mmo-shell>.topbar>nav>.nav-account .account-block{flex:0 0 auto;width:max-content}
 /* The battle heading keeps the zone name, mode, rates and the hero bar; the boss modifier line and the points banner wait for portrait (the Hero badge still counts the points). */
 .mmo-shell .combat-grid .arena-heading{padding-top:4px;padding-bottom:4px}
 .mmo-shell .combat-grid .arena-heading .zone-badge .challenge-threat-summary{display:none}
 .mmo-shell .combat-grid .arena-heading>.battle-goals{display:none}
}
/* Phones: the round minimap sat over boss nameplates near the top of the field. Plates sit above heads, so dock it bottom right. */
@media(max-width:600px){.shell.mmo-shell .battlefield .battle-minimap{top:auto;bottom:8px}.mmo-shell .combat-grid .enemy-card .portrait-effects{max-height:72px}}
/* Unique Find callout (lib/unique-find.js decided): a Unique that only dropped because of the find bonus says so on its flight. */
.loot-flight.by-unique-find::after{content:'Unique Find';position:absolute;left:50%;top:-20px;transform:translateX(-50%);white-space:nowrap;padding:1px 6px;border-radius:3px;background:#2a1d08e6;border:1px solid #e0b25a;color:#ffd98a;font:600 11px/16px var(--ui,Arial,sans-serif);letter-spacing:.3px}
/* Enemy buff and debuff icons (21 Oct 2026): the same icons as the hero cards (skill-cast-hud.css .combat-effect-icon), wrapping onto as many
   rows as they need, so a card never scrolls. The row keeps one icon's height when empty so the cards do not jump as effects come and go. */
.mmo-shell .combat-grid .enemy-card .portrait-effects.enemy-effect-icons,.enemy-card .portrait-effects.enemy-effect-icons{display:flex;flex-wrap:wrap;align-content:flex-start;gap:4px;height:auto;min-height:40px;max-height:none;margin:5px 0 0;overflow:visible;scrollbar-gutter:auto}
@media(pointer:coarse),(max-width:480px){.mmo-shell .combat-grid .enemy-card .portrait-effects.enemy-effect-icons,.enemy-card .portrait-effects.enemy-effect-icons{min-height:44px}}
.combat-effect-icon .effect-stacks{position:absolute;left:1px;top:-3px;font:bold .625rem system-ui;color:#fff3d6;text-shadow:0 1px 1px #000,0 0 2px #000}.combat-effect-icon .effect-stacks[hidden]{display:none}
/* QA 1 Nov: a drop's flying icon kept the item tile's near-black background, so until the item sheet loaded (often the first drop of a session) a black
   square sat at the drop point for most of a second. The flying icon has no tile behind it: only the item picture and its rarity glow. */
.loot-flight>.rarity-art,.loot-flight .rarity-art{background-color:transparent!important;box-shadow:none}

/* /raid-finder.css */
/* Raid Finder: floating eye and pop-up. Kit colours only. */
.rf{position:fixed;right:14px;bottom:20px;z-index:40;display:flex;flex-direction:column;align-items:flex-end;gap:10px;max-width:calc(100vw - 28px)}
.rf[hidden]{display:none}
@media (max-width:820px){.rf{bottom:calc(84px + env(safe-area-inset-bottom,0px))}}
.rf-eye{position:relative;width:52px;height:52px;min-width:44px;min-height:44px;border-radius:50%;border:2px solid var(--uk-gold-dim);background:var(--uk-navy-0);color:var(--uk-gold);display:grid;place-items:center;padding:0;cursor:pointer}
.rf-eye svg{width:28px;height:28px}
.rf-eye.is-lit,.rf-eye.is-in{border-color:var(--uk-gold);color:var(--uk-gold-hi)}
.rf-eye.is-lit{animation:rf-pulse 2.4s ease-in-out infinite}
@keyframes rf-pulse{0%,100%{opacity:1}50%{opacity:.72}}
@media (prefers-reduced-motion:reduce){.rf-eye.is-lit{animation:none}}
.rf-eye:focus-visible,.rf-btn:focus-visible,.rf-x:focus-visible,.rf-toast:focus-visible{outline:2px solid var(--uk-focus);outline-offset:2px}
.rf-badge{position:absolute;top:-4px;right:-4px;min-width:22px;height:22px;padding:0 5px;border-radius:11px;background:var(--uk-gold);color:var(--uk-navy-0);font:700 12px/22px var(--uk-sans);text-align:center}
.rf-toast{display:flex;flex-direction:column;gap:2px;text-align:left;max-width:280px;padding:10px 14px;border:1px solid var(--uk-gold-dim);border-radius:var(--uk-radius);background:var(--uk-navy-0);color:var(--uk-ivory);font:14px/1.3 var(--uk-sans);cursor:pointer;min-height:44px}
.rf-toast strong{color:var(--uk-gold-text);font-family:var(--uk-serif)}
.rf-toast span{color:var(--uk-ivory-dim);font-size:13px}
.rf-pop{width:min(340px,calc(100vw - 28px));max-height:min(70vh,520px);display:flex;flex-direction:column;border:1px solid var(--uk-gold-dim);border-radius:var(--uk-radius);background:var(--uk-navy-0);color:var(--uk-ivory);font:14px/1.35 var(--uk-sans)}
.rf-bar{display:flex;align-items:center;justify-content:space-between;padding:8px 8px 8px 14px;border-bottom:1px solid var(--uk-gold-dim)}
.rf-bar h2{margin:0;font:600 17px var(--uk-serif);color:var(--uk-gold-text)}
.rf-x{width:44px;height:44px;border:0;background:none;color:var(--uk-ivory);font-size:24px;cursor:pointer}
.rf-body{overflow-y:auto;padding:10px 14px 14px;display:flex;flex-direction:column;gap:10px}
.rf-queues,.rf-members{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.rf-queue{padding:8px 0;border-bottom:1px solid var(--uk-locked);display:flex;flex-direction:column;gap:6px}
.rf-queue.is-invited .rf-qtop strong{color:var(--uk-gold-hi)}
.rf-qtop,.rf-head2,.rf-qmid{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap}
.rf-count{color:var(--uk-gold-text);font-weight:700}
.rf-meta,.rf-note{color:var(--uk-ivory-dim);font-size:13px;margin:0}
.rf-warn{color:var(--uk-danger-text)}
.rf-pips{display:flex;gap:8px}
.rf-pip{display:inline-flex;align-items:center;gap:3px;font-size:13px}
.rf-pip svg{width:16px;height:16px}
.rf-pip.is-full{color:var(--uk-done)}.rf-pip.is-open{color:var(--uk-gold-text)}
.rf-pip i{font-style:normal;opacity:.85}
.rf-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.rf-row{display:flex;flex-wrap:wrap;gap:8px}
.rf-btn{min-height:44px;flex:1 1 auto}
.rf-btn.is-off{opacity:.5;cursor:not-allowed}
.rf-member{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.rf-member .rf-kick{flex:0 0 auto;min-height:44px}
.rf-member em{font-style:normal;color:var(--uk-gold-text);font-size:12px}
.rf-name{font-weight:600}
.rf-dot{width:8px;height:8px;border-radius:50%;background:var(--uk-locked)}.rf-dot.is-on{background:var(--uk-done)}
.rf-invite{display:flex;gap:8px}.rf-invite input{flex:1 1 120px;min-height:44px;min-width:0}
.rf-open{display:flex;flex-direction:column;gap:6px}
.rf-queues{gap:0;border:1px solid var(--uk-locked);border-radius:var(--uk-radius)}
.rf-queues li+li{border-top:1px solid var(--uk-locked)}
.rf-row-q{width:100%;min-height:52px;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 10px;background:none;border:0;color:inherit;text-align:left;cursor:pointer;font:inherit}
.rf-row-q.is-sel{background:var(--uk-locked-bg);outline:1px solid var(--uk-gold)}
.rf-row-q:focus-visible{outline:2px solid var(--uk-focus);outline-offset:-2px}
.rf-qtext{display:flex;flex-direction:column;min-width:0}
.rf-qtext strong{color:var(--uk-gold-text);font:600 15px var(--uk-serif);overflow-wrap:anywhere}
.rf-qtext small{color:var(--uk-ivory-dim);font-size:12px}
.rf-slots{display:flex;flex-wrap:wrap;gap:2px;justify-content:flex-end;max-width:116px}
.rf-slot{width:20px;height:20px;border-radius:50%;border:1px solid var(--uk-gold-dim);display:grid;place-items:center;color:var(--uk-gold-text)}
.rf-slot svg{width:12px;height:12px}
.rf-slot.is-empty{border-color:var(--uk-locked);background:none}
.rf-empty{margin:0;padding:18px 0;text-align:center;color:var(--uk-ivory-dim)}
.rf-foot{display:flex;flex-direction:column;gap:8px}
.rf-tools{display:flex}.rf-refresh{font-size:20px}

/* Polish: painted gold frame, glowing eye, framed buttons */
.rf-eye{width:56px;height:56px;border:2px solid var(--uk-gold);background:radial-gradient(circle at 50% 40%,#24344d,#0b111d 72%);box-shadow:0 0 0 3px #0b111d,0 0 0 4px var(--uk-gold-dim),0 6px 16px rgba(0,0,0,.6)}
.rf-eye.is-lit{box-shadow:0 0 0 3px #0b111d,0 0 0 4px var(--uk-gold),0 0 18px rgba(240,200,110,.55),0 6px 16px rgba(0,0,0,.6);animation:rf-glow 2.4s ease-in-out infinite}
@keyframes rf-glow{0%,100%{box-shadow:0 0 0 3px #0b111d,0 0 0 4px var(--uk-gold),0 0 10px rgba(240,200,110,.35),0 6px 16px rgba(0,0,0,.6)}50%{box-shadow:0 0 0 3px #0b111d,0 0 0 4px var(--uk-gold),0 0 24px rgba(240,200,110,.8),0 6px 16px rgba(0,0,0,.6)}}
@media (prefers-reduced-motion:reduce){.rf-eye.is-lit{animation:none}}
.rf-badge{border:2px solid #0b111d;box-shadow:0 0 0 1px var(--uk-gold-dim)}
.rf-pop,.rf-toast{background:linear-gradient(180deg,#16213a,#0b111d);border:2px solid var(--uk-gold-dim);box-shadow:inset 0 0 0 1px #0b111d,inset 0 0 0 2px rgba(200,160,80,.35),0 12px 28px rgba(0,0,0,.65)}
.rf-toast{border-color:var(--uk-gold);animation:rf-in .35s ease-out}
@keyframes rf-in{from{transform:translateY(8px);opacity:0}to{transform:none;opacity:1}}
@media (prefers-reduced-motion:reduce){.rf-toast{animation:none}}
.rf-bar{background:linear-gradient(180deg,rgba(200,160,80,.18),rgba(200,160,80,0));border-bottom:1px solid var(--uk-gold-dim)}
.rf-bar h2{letter-spacing:.04em;text-transform:uppercase;font-size:15px}
.rf-x{color:var(--uk-gold-text)}
.rf-queues{border:1px solid var(--uk-gold-dim);background:rgba(5,9,16,.55)}
.rf-queues li+li{border-top:1px solid rgba(200,160,80,.25)}
.rf-row-q.is-sel{background:linear-gradient(90deg,rgba(200,160,80,.28),rgba(200,160,80,.06));outline:1px solid var(--uk-gold)}
.rf-slots{max-width:104px;gap:3px}
.rf-slot{width:18px;height:18px;border:1px solid var(--uk-gold);background:rgba(200,160,80,.14)}
.rf-slot.is-Tank{color:#8fb7e8;border-color:#8fb7e8;background:rgba(110,160,220,.16)}
.rf-slot.is-Healer{color:#7fd29a;border-color:#7fd29a;background:rgba(90,190,130,.16)}
.rf-slot.is-DPS{color:#e58a7c;border-color:#e58a7c;background:rgba(220,110,95,.16)}
.rf-slot.is-empty{border:1px dashed rgba(154,163,176,.55);background:none}
.rf .rf-btn{border:1px solid var(--uk-gold-dim);background:linear-gradient(180deg,#22304a,#121b2d);color:var(--uk-ivory);font:600 14px var(--uk-sans);border-radius:var(--uk-radius)}
.rf .rf-btn.is-primary{border-color:var(--uk-gold);background:linear-gradient(180deg,#e2bb6a,#a97d32);color:#1a1206}
.rf .rf-btn.is-danger{border-color:var(--uk-danger-text);color:var(--uk-danger-text)}
.rf .rf-btn.is-on{border-color:var(--uk-done);color:var(--uk-done)}
.rf .rf-btn.is-off{opacity:.45;filter:grayscale(.6)}
.rf-invite input{background:#0b111d;border:1px solid var(--uk-gold-dim);color:var(--uk-ivory);padding:0 10px;border-radius:var(--uk-radius);font:14px var(--uk-sans)}
.rf-pip{padding:1px 6px;border:1px solid currentColor;border-radius:10px}
.rf-member .rf-kick{margin-left:auto;min-height:36px;padding:0 12px}.rf-badge{white-space:nowrap}

/* Painted pass: the game's own gold frame and raid banner art */
.rf-pop{position:relative;padding:16px;border:0;background:linear-gradient(180deg,#141d33,#0a1020);box-shadow:0 14px 34px rgba(0,0,0,.7)}
.rf-pop::after,.rf-toast::after{content:"";position:absolute;inset:0;pointer-events:none;border:16px solid transparent;border-image:url('/art/interface/panel-frame-v1.webp') 18% / 16px / 0 stretch}
.rf-bar{margin:-2px -2px 0;border:1px solid var(--uk-gold-dim);border-radius:2px;min-height:64px;padding:8px 4px 8px 14px;background:linear-gradient(90deg,rgba(8,12,22,.78),rgba(8,12,22,.12) 65%,rgba(8,12,22,.45)),url('/art/interface/banner-raids-v1.webp') center/cover}
.rf-bar h2{font-size:18px;letter-spacing:.08em;color:var(--uk-gold-hi);text-shadow:0 2px 6px #000}
.rf-body{padding:12px 0 2px}
.rf-queues{border:0;background:none;gap:8px}
.rf-queues li+li{border:0}
.rf-row-q{min-height:58px;padding:9px 12px;border:1px solid rgba(200,160,80,.35);border-radius:3px;background:linear-gradient(180deg,rgba(34,48,74,.75),rgba(14,22,38,.85));transition:border-color .15s,background .15s}
.rf-row-q.is-sel{outline:0;border-color:var(--uk-gold);background:linear-gradient(90deg,rgba(214,170,84,.34),rgba(34,48,74,.8));box-shadow:inset 3px 0 0 var(--uk-gold),0 0 12px rgba(240,200,110,.25)}
.rf-qtext strong{font-size:16px;text-shadow:0 1px 3px #000}
.rf-qtext small{font-size:12.5px}
.rf-slots{max-width:112px;gap:4px}
.rf-slot{width:19px;height:19px;box-shadow:inset 0 0 4px rgba(0,0,0,.6)}
.rf-slot.is-empty{background:rgba(0,0,0,.35)}
.rf-empty{padding:26px 8px;font:italic 15px var(--uk-serif);background:rgba(0,0,0,.25);border:1px dashed rgba(200,160,80,.35);border-radius:3px}
.rf-toast{position:relative;padding:14px 16px 14px 18px;min-height:64px;max-width:300px;border:0;background:linear-gradient(90deg,rgba(8,12,22,.8),rgba(8,12,22,.25)),url('/art/interface/event-raid-opening-v1.webp') center/cover;box-shadow:0 10px 26px rgba(0,0,0,.7),0 0 18px rgba(240,200,110,.3)}
.rf-toast strong{font-size:16px;color:var(--uk-gold-hi);text-shadow:0 2px 4px #000}
.rf-toast span{color:var(--uk-ivory);font-size:13px}
.rf-eye{width:60px;height:60px;background:radial-gradient(circle at 50% 35%,#34486b,#0b111d 70%)}
.rf-eye svg{width:30px;height:30px;filter:drop-shadow(0 0 4px rgba(240,200,110,.6))}
.rf .rf-btn.is-primary{box-shadow:inset 0 1px 0 rgba(255,255,255,.35),0 2px 8px rgba(0,0,0,.5);text-shadow:0 1px 0 rgba(255,255,255,.25)}
.rf-members .rf-member{padding:6px 8px;border-radius:3px;background:rgba(0,0,0,.25)}
.rf-head2 strong{font:600 17px var(--uk-serif);color:var(--uk-gold-text)}
.rf-pip{background:rgba(0,0,0,.3)}
.rf-pip.is-want{color:var(--uk-ivory-dim);border-style:dashed}
/* Raid size step (17 Oct): two framed choices, the size large and the role mix beneath it. */
.rf .rf-btn.rf-size{flex:1 1 0;min-height:64px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding:6px 8px}
.rf-size strong{font:600 17px var(--uk-serif);color:var(--uk-gold-text)}
.rf-size small{font-size:12px;color:var(--uk-ivory-dim);font-weight:400}
.rf-note strong{color:var(--uk-gold-text)}
.rf-mix{display:flex;gap:8px;justify-content:center;white-space:nowrap}
.rf-mix span{display:inline-flex;align-items:center;gap:2px;font-weight:600}
.rf-mix svg{width:13px;height:13px}
.rf-mix .is-Tank{color:#8fb7e8}.rf-mix .is-Healer{color:#7fd29a}.rf-mix .is-DPS{color:#e58a7c}
.rf-cd{color:var(--uk-gold-text);white-space:nowrap}
/* Switch IRP_FINDER_DOCK_VERSION (lib/finder-dock.js): below 1001px the eye is a 44px button in the top bar beside chat and bags; its pop-up and toast open under the bar, right-aligned. */
@media (max-width:1000px){
 .rf.rf-dock{top:var(--rf-top,51px);right:var(--rf-right,110px);bottom:auto;z-index:91;flex-direction:column-reverse}
 .rf.rf-dock .rf-eye{width:44px;height:44px;box-shadow:none}
 .rf.rf-dock .rf-eye svg{width:24px;height:24px}
 .rf.rf-dock .rf-pop,.rf.rf-dock .rf-toast{position:fixed;top:calc(var(--rf-top,51px) + 54px);right:14px;max-height:calc(100dvh - var(--rf-top,51px) - 150px)}
}
/* Chat open over the eye (raid-finder.js dock): the eye sits in the chat header beside its close button, at every width; its pop-up opens under it. */
.rf.rf-dock.rf-in-chat{top:var(--rf-top,8px);right:var(--rf-right,66px);bottom:auto;z-index:91;flex-direction:column-reverse}
.rf.rf-dock.rf-in-chat .rf-eye{width:44px;height:44px;box-shadow:none}
.rf.rf-dock.rf-in-chat .rf-eye svg{width:24px;height:24px}
.rf.rf-dock.rf-in-chat .rf-pop,.rf.rf-dock.rf-in-chat .rf-toast{position:fixed;top:calc(var(--rf-top,8px) + 54px);right:14px;max-height:calc(100dvh - var(--rf-top,8px) - 150px)}
/* Room under the page for the floating eye (bottom right), so the last buttons of a page can scroll clear of it. Nothing changes while the eye
   is hidden, sits in the top bar (rf-dock below 1001px) or sits in the chat header (rf-in-chat). 96px = the eye's 20px offset + 60px + a gap;
   at 820px and below the eye floats 84px higher, over the bottom menu. */
@media (min-width:1001px){body:has(>.rf:not([hidden]):not(.rf-in-chat)) .shell>main{padding-bottom:96px!important}}
@media (min-width:821px) and (max-width:1000px){body:has(>.rf:not([hidden]):is(:not(.rf-dock),.rf-undock):not(.rf-in-chat)) .shell>main{padding-bottom:96px!important}}
@media (max-width:820px){body:has(>.rf:not([hidden]):is(:not(.rf-dock),.rf-undock):not(.rf-in-chat)) .shell>main{padding-bottom:calc(156px + env(safe-area-inset-bottom,0px))!important}}
/* Phone top bar with a fight running (27 Oct): the docked finder sits just left of chat and bag, which is the right end of "Back to Battle".
   The Back button keeps clear of it; on the narrowest phones the finder shows as the eye alone so Back keeps room for its words. */
@media (max-width:760px){body:has(>.rf.rf-dock:not([hidden]):not(.rf-in-chat)) .shell .nav-account>.nav-battle:not([hidden]){width:auto;margin-right:var(--rf-reserve,134px)}}
@media (max-width:560px){body:has(>.rf.rf-dock:not([hidden]):not(.rf-in-chat)):has(.nav-account>.nav-battle:not([hidden])){--rf-reserve:58px} body:has(.nav-account>.nav-battle:not([hidden]))>.rf.rf-dock:not(.rf-in-chat) .rf-eye{width:44px;padding:0;gap:0;border-radius:50%} body:has(.nav-account>.nav-battle:not([hidden]))>.rf.rf-dock:not(.rf-in-chat) .rf-eye>.mp-rf-label{display:none}}
/* The eye floats bottom-right when the bar has no room beside chat (raid-finder.js dock()). */
@media (max-width:1000px){.rf.rf-dock.rf-undock{top:auto;right:14px;bottom:20px;z-index:40;flex-direction:column}
 .rf.rf-dock.rf-undock .rf-pop,.rf.rf-dock.rf-undock .rf-toast{position:relative;top:auto;right:auto}}
@media (max-width:820px){.rf.rf-dock.rf-undock{bottom:calc(84px + env(safe-area-inset-bottom,0px))}}

/* /screen-settings.css */
/* Screen settings (IRP_SCREEN_SETTINGS_VERSION, public/screen-settings.js adds .is-tabbed and the controls only while on). UI kit v1 tabs and chips.
   Settings in tabs: one group at a time, so nothing needs a long scroll (Pat: "if a player has to scroll alot to get info we have designed the ui wrong"). */
.settings-modal.is-tabbed{width:min(720px,calc(100vw - 24px))}
.settings-modal.is-tabbed>.settings-tabs{gap:6px;margin:6px 0 0}
.settings-modal.is-tabbed .settings-group[hidden]{display:none!important}
.settings-modal.is-tabbed .settings-group{border-top:0;margin-top:10px;padding-top:0;align-content:start}
/* The tab already names the group. */
.settings-modal.is-tabbed .settings-group-title{display:none}
/* Every tab the same height on a computer, so the window does not jump as you switch. */
@media (min-width:701px){.settings-modal.is-tabbed .settings-group{min-height:min(360px,calc(100dvh - 300px))}}
.screen-settings{display:grid;gap:8px}
.screen-settings>.pick-set{display:flex;flex-direction:column;gap:8px;margin:8px 0 0;padding:0;border:0;min-width:0}
.screen-settings>.small-note{margin:0}
.screen-settings>.screen-full{justify-self:start;min-height:44px;margin-top:6px}
/* Help: the patch notes, Report a problem and Discord buttons side by side. Account: the four policy links two by two. */
.settings-modal.is-tabbed .settings-help-links{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr));gap:8px}
.settings-modal.is-tabbed .settings-help-links>*{width:100%;margin:0;min-height:44px}
@media (min-width:701px){.settings-modal.is-tabbed .settings-group-account .settings-policies{display:grid;grid-template-columns:1fr 1fr;gap:8px}
 .settings-modal.is-tabbed .settings-group-account .settings-policies>:is(h3,p){grid-column:1/-1;margin:0}
 .settings-modal.is-tabbed .settings-group-account .settings-policies>a{margin:0}}
/* A computer: Display in two columns, the screen controls beside battle and motion, so the tab fits without a scroll. */
@media (min-width:1001px){.settings-modal.is-tabbed{width:min(900px,calc(100vw - 24px))}
 .settings-modal.is-tabbed .settings-group-display:has(>.settings-display-rest){grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:28px;align-items:start}
}
/* A phone: six tabs as two even rows of three, three Map zoom choices in one row, links and policies two by two. */
@media (max-width:600px){.settings-modal.is-tabbed>.settings-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
 .settings-modal.is-tabbed>.settings-tabs>button{min-width:0;padding-inline:4px}
 .screen-settings #screenMapZoom .pick-grid>.pick-chip{grid-column:span 2!important}
 .settings-modal.is-tabbed .settings-help-links{grid-template-columns:1fr 1fr}
 .settings-modal.is-tabbed .settings-group-account .settings-policies{display:grid;grid-template-columns:1fr 1fr;gap:8px}
 .settings-modal.is-tabbed .settings-group-account .settings-policies>:is(h3,p){grid-column:1/-1;margin:0}
 .settings-modal.is-tabbed .settings-group-account .settings-policies>a{margin:0;min-width:0;white-space:normal}}
/* The rest of Display keeps the group's own spacing at every width. */
.settings-modal.is-tabbed .settings-group-display>.settings-display-rest{display:grid;gap:8px;align-content:start;min-width:0}
.settings-modal.is-tabbed .settings-group-display>.settings-display-rest>*{margin-top:0;margin-bottom:0}

/* /ui-kit.css */
/* Evermarch shared UI kit.
   One place that defines how framed panels, tab strips, buttons, icon buttons and section headings look,
   so every page reads as one painted-fantasy interface: midnight-blue surfaces, ivory text, thin gold frames with an inner rule.
   No animation is used anywhere in this file.

   How to use it on a new screen (add the class, or add your class to the lists below):
     .uk-card        framed panel (gold line + inner rule); .uk-card-light for small panels
     .uk-tabs        tab strip; put buttons directly inside, mark the current one with aria-selected, aria-pressed, aria-current or .active
     .uk-btn         secondary button (also every plain .secondary button)   .uk-btn-primary gold button   .uk-btn-danger red button
     .uk-icon-btn    44px rounded-square icon button with a gold ring; put IRPUiIcons.svg('name') inside and keep aria-label + title
     .uk-heading     section heading with a small ornament rule
     .uk-disclosure  <details> with a framed summary
   Existing class names are mapped in the lists below so old markup inherits the look without being rewritten. */

:root{
 --uk-gold:#d6b575;--uk-gold-hi:#f0ce83;--uk-gold-dim:#8f7645;--uk-gold-text:#ffe1aa;
 --uk-ivory:#eadbb9;--uk-ivory-dim:#c9c3b4;--uk-focus:#f4cd86;
 --uk-navy-0:#0c1723;--uk-navy-1:#101a2a;--uk-navy-2:#152131;--uk-navy-3:#29374a;
 --uk-radius:4px;--uk-radius-card:6px;--uk-radius-icon:8px;--uk-tap:44px;
 --uk-rule:inset 0 0 0 2px var(--uk-navy-0),inset 0 0 0 3px #b8955a3d;
 --uk-surface:linear-gradient(180deg,var(--uk-navy-3),var(--uk-navy-2));
 --uk-surface-hover:linear-gradient(180deg,#35455b,#1c2c40);
 --uk-surface-lit:linear-gradient(180deg,#77602f,#3a2f22);
 --uk-tab-surface:linear-gradient(180deg,#1e2c41,#111b2c);
}

/* ---- 1. Panels and cards -------------------------------------------------------------------- */
.uk-card,
:is(.shell,.modal-backdrop,.handbook,.loot-roll-window,.adventure-notices) :is(.squire-idle-reminder,.world-spawn-banner,.map-invitation,.raid-companion-builds,.raid-boss-guide,.attribute-panel,.gather-log,.gather-materials,.gather-coming,.crown-alpha-notice,.quest-records){
 position:relative;border:1px solid var(--uk-gold-dim);border-radius:var(--uk-radius-card);
 background:var(--uk-card-bg,linear-gradient(150deg,#1c2b40,#101a2b));
 box-shadow:var(--uk-rule),0 6px 16px #0004;color:var(--realm-ink,#e6e3d9);
}
.uk-card-light{border:1px solid #6f5d3c;border-radius:var(--uk-radius-card);background:linear-gradient(150deg,#182438,#0f1928);box-shadow:inset 0 0 0 2px var(--uk-navy-0),inset 0 0 0 3px #b8955a26}
:is(.shell,.modal-backdrop,.handbook,.loot-roll-window,.adventure-notices) .squire-idle-reminder{--uk-card-bg:linear-gradient(110deg,#253127,#111c2b);border-top:2px solid var(--uk-gold)}
:is(.shell,.modal-backdrop,.handbook,.loot-roll-window,.adventure-notices) .world-spawn-banner{--uk-card-bg:linear-gradient(105deg,#20364a,#15202e);border-color:#9a8556}
:is(.shell,.modal-backdrop,.handbook,.loot-roll-window,.adventure-notices) .crown-alpha-notice{border-width:1px;border-left:1px solid var(--uk-gold-dim)}
:is(.shell,.modal-backdrop,.handbook,.loot-roll-window,.adventure-notices) .quest-records{border-inline:1px solid var(--uk-gold-dim);padding-inline:12px}
.uk-panel{position:relative;background:linear-gradient(135deg,#25313880,transparent 65%),#121e24;border:18px solid transparent;border-image:url('/art/interface/panel-frame-v1.webp') 18% / 18px / 0 stretch}

/* ---- 2. Tab strips (sub-tabs, segmented buttons) ------------------------------------------------ */
:is(.shell,.modal-backdrop,.handbook,.loot-roll-window,.adventure-notices):is(.shell,.modal-backdrop,.handbook,.loot-roll-window,.adventure-notices) :is(.section-tabs,.region-tabs,.market-tabs,.rank-tabs,.notice-board-tabs,.workshop-service-tabs,.inventory-tabs,.inventory-dialog-tabs,.dev-tabs,.crown-categories,.chat-channels,.tree-toolbar>nav,.uk-tabs):not(.market-category-group):not(.chat-channels){
 gap:6px;background:transparent;border:0;border-bottom:1px solid #b69a6044;box-shadow:none;
}
:is(.shell,.modal-backdrop,.handbook,.loot-roll-window,.adventure-notices):is(.shell,.modal-backdrop,.handbook,.loot-roll-window,.adventure-notices) :is(.section-tabs,.region-tabs,.market-tabs,.rank-tabs,.notice-board-tabs,.workshop-service-tabs,.inventory-tabs,.inventory-dialog-tabs,.dev-tabs,.crown-categories,.chat-channels,.tree-toolbar>nav,.uk-tabs)>:is(button,a),
:is(.shell,.modal-backdrop,.handbook,.loot-roll-window,.adventure-notices):is(.shell,.modal-backdrop,.handbook,.loot-roll-window,.adventure-notices) .market-category-group>button{
 position:relative;min-height:var(--uk-tap);padding:9px 14px;border:1px solid var(--uk-gold-dim);border-radius:var(--uk-radius);
 background:var(--uk-tab-surface);color:#d9d3c2;font:600 .8125rem/1.3 system-ui;text-decoration:none;
 box-shadow:var(--uk-rule);cursor:pointer;
}
:is(.shell,.modal-backdrop,.handbook,.loot-roll-window,.adventure-notices):is(.shell,.modal-backdrop,.handbook,.loot-roll-window,.adventure-notices) :is(.section-tabs,.region-tabs,.market-tabs,.rank-tabs,.notice-board-tabs,.workshop-service-tabs,.inventory-tabs,.inventory-dialog-tabs,.dev-tabs,.crown-categories,.chat-channels,.tree-toolbar>nav,.uk-tabs)>:is(button,a):hover:not(:disabled),
:is(.shell,.modal-backdrop,.handbook,.loot-roll-window,.adventure-notices):is(.shell,.modal-backdrop,.handbook,.loot-roll-window,.adventure-notices) .market-category-group>button:hover:not(:disabled){
 border-color:var(--uk-gold);background:linear-gradient(180deg,#2a3b55,#16233a);color:#fff0c8;
}
:is(.shell,.modal-backdrop,.handbook,.loot-roll-window,.adventure-notices):is(.shell,.modal-backdrop,.handbook,.loot-roll-window,.adventure-notices) :is(.section-tabs,.region-tabs,.market-tabs,.rank-tabs,.notice-board-tabs,.workshop-service-tabs,.inventory-tabs,.inventory-dialog-tabs,.dev-tabs,.crown-categories,.chat-channels,.tree-toolbar>nav,.uk-tabs)>:is(button,a):is(.active,.selected,.chosen,[aria-selected="true"],[aria-pressed="true"],[aria-current="page"],[aria-current="true"]),
:is(.shell,.modal-backdrop,.handbook,.loot-roll-window,.adventure-notices):is(.shell,.modal-backdrop,.handbook,.loot-roll-window,.adventure-notices) .market-category-group>button:is(.active,.selected,[aria-selected="true"],[aria-pressed="true"],[aria-current="page"]){
 border-color:#e0bd73;background:var(--uk-surface-lit);color:#fff1cc;
 box-shadow:inset 0 -3px 0 #e6c889,inset 0 0 0 2px var(--uk-navy-0),inset 0 0 0 3px #e6c88955;
}
:is(.shell,.modal-backdrop,.handbook,.loot-roll-window,.adventure-notices):is(.shell,.modal-backdrop,.handbook,.loot-roll-window,.adventure-notices) :is(.section-tabs,.region-tabs,.market-tabs,.rank-tabs,.notice-board-tabs,.workshop-service-tabs,.inventory-tabs,.inventory-dialog-tabs,.dev-tabs,.crown-categories,.chat-channels,.tree-toolbar>nav,.uk-tabs)>:is(button,a):is(:disabled,[aria-disabled="true"]){
 opacity:.5;cursor:not-allowed;border-color:#5b5040;color:#9c9788;background:var(--uk-tab-surface);filter:none;
}
:is(.shell,.modal-backdrop,.handbook,.loot-roll-window,.adventure-notices):is(.shell,.modal-backdrop,.handbook,.loot-roll-window,.adventure-notices) :is(.section-tabs,.region-tabs,.market-tabs,.rank-tabs,.notice-board-tabs,.workshop-service-tabs,.inventory-tabs,.inventory-dialog-tabs,.dev-tabs,.crown-categories,.chat-channels,.tree-toolbar>nav,.uk-tabs)>:is(button,a):focus-visible,
:is(.shell,.modal-backdrop,.handbook,.loot-roll-window,.adventure-notices) .market-category-group>button:focus-visible{outline:3px solid var(--uk-focus);outline-offset:2px;z-index:2}
/* The old tab underline pseudo-elements would double the new gold underline. */
:is(.shell,.modal-backdrop,.handbook,.loot-roll-window,.adventure-notices) :is(.region-tabs,.market-tabs,.rank-tabs,.section-tabs)>button::after{content:none}
/* Bag and character-sheet tabs used to run edge to edge with important overrides; keep them as framed tabs. */
.inventory-panel .inventory-tabs,.mmo-shell .inventory-panel .inventory-tabs{margin:0 0 12px;gap:6px;border-bottom:1px solid #b69a6044}
.inventory-tabs>button,.inventory-tabs>button.selected{border:1px solid var(--uk-gold-dim)!important;border-radius:var(--uk-radius)!important;background:var(--uk-tab-surface)!important;color:#d9d3c2!important;box-shadow:var(--uk-rule)!important}
.inventory-tabs>button.selected,.inventory-tabs>button[aria-pressed="true"],.inventory-tabs>button[aria-selected="true"]{border-color:#e0bd73!important;background:var(--uk-surface-lit)!important;color:#fff1cc!important;box-shadow:inset 0 -3px 0 #e6c889,inset 0 0 0 2px var(--uk-navy-0),inset 0 0 0 3px #e6c88955!important}
/* Page-level tab strip lines up with the page padding instead of touching the sidebar frame. */
:is(.shell,.modal-backdrop,.handbook,.loot-roll-window,.adventure-notices):is(.shell,.modal-backdrop,.handbook,.loot-roll-window,.adventure-notices) .section-tabs{padding:10px clamp(14px,2.5vw,36px)}
/* Category lists (Auction House): left-aligned rows that keep their words whole. */
:is(.shell,.modal-backdrop,.handbook,.loot-roll-window,.adventure-notices):is(.shell,.modal-backdrop,.handbook,.loot-roll-window,.adventure-notices) .market-category-group>button{display:flex;align-items:center;gap:8px;text-align:left;padding:8px 10px;overflow-wrap:normal;word-break:normal;hyphens:none}
/* Chat channel tabs are a compact row inside the chat header band. */
:is(.shell,.modal-backdrop,.handbook,.loot-roll-window,.adventure-notices):is(.shell,.modal-backdrop,.handbook,.loot-roll-window,.adventure-notices) .community-chat .chat-channels>button{min-height:44px;padding:6px 10px;white-space:nowrap}
/* Skill-tree focus row keeps each branch colour on its label and sits inside the toolbar without its own rule. */
:is(.shell,.modal-backdrop,.handbook,.loot-roll-window,.adventure-notices):is(.shell,.modal-backdrop,.handbook,.loot-roll-window,.adventure-notices) .tree-toolbar>nav{border-bottom:0;padding:0}
:is(.shell,.modal-backdrop,.handbook,.loot-roll-window,.adventure-notices):is(.shell,.modal-backdrop,.handbook,.loot-roll-window,.adventure-notices) .tree-toolbar>nav>button:not([aria-pressed="true"]){color:var(--branch-tone,#d9d3c2)}
:is(.shell,.modal-backdrop,.handbook,.loot-roll-window,.adventure-notices) .tree-zoom>button{min-width:var(--uk-tap);min-height:var(--uk-tap);padding:6px 12px;border:1px solid var(--uk-gold-dim);border-top:2px solid var(--uk-gold);border-radius:var(--uk-radius);background:var(--uk-surface);color:var(--uk-ivory);font:600 .875rem/1 system-ui;box-shadow:var(--uk-rule)}
:is(.shell,.modal-backdrop,.handbook,.loot-roll-window,.adventure-notices) .tree-zoom>button:hover:not(:disabled){border-color:var(--uk-gold-hi);background:var(--uk-surface-hover);color:#fff0c8}
.uk-tabs,.crown-categories{display:flex;flex-wrap:wrap}
.crown-categories>a,.uk-tabs>a{display:inline-flex;align-items:center;justify-content:center}
.crown-categories{margin:14px 0}
.uk-tabs>:is(button,a){flex:1 1 110px;min-width:0}

/* ---- 3. Buttons: secondary, primary, danger ----------------------------------------------------- */
:is(.shell,.modal-backdrop,.handbook,.loot-roll-window,.adventure-notices) :is(.secondary,.uk-btn,.handbook-button){
 min-height:var(--uk-tap);padding:9px 16px;border:1px solid var(--uk-gold-dim);border-top:2px solid var(--uk-gold);border-radius:var(--uk-radius);
 background:var(--uk-surface);color:var(--uk-ivory);font:600 .8125rem/1.3 system-ui;text-decoration:none;
 box-shadow:var(--uk-rule),0 2px 5px #0004;cursor:pointer;
}
:is(.shell,.modal-backdrop,.handbook,.loot-roll-window,.adventure-notices) :is(.secondary,.uk-btn,.handbook-button):hover:not(:disabled){border-color:var(--uk-gold-hi);background:var(--uk-surface-hover);color:#fff0c8}
:is(.shell,.modal-backdrop,.handbook,.loot-roll-window,.adventure-notices) :is(.secondary,.uk-btn,.handbook-button):where([aria-pressed="true"],.selected,.active){border-color:#e0bd73;background:var(--uk-surface-lit);color:#fff1cc}
:is(.shell,.modal-backdrop,.handbook,.loot-roll-window,.adventure-notices) :is(.secondary,.uk-btn,.handbook-button):disabled,:is(.shell,.modal-backdrop,.handbook,.loot-roll-window,.adventure-notices) :is(.secondary,.uk-btn,.handbook-button)[aria-disabled="true"]{border-color:#5b5040;border-top-color:#6d6047;color:#a5a191;cursor:not-allowed;filter:none}
.uk-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px}
:is(.shell,.modal-backdrop,.handbook,.loot-roll-window,.adventure-notices) :is(.red-button,.uk-btn-primary){
 min-height:var(--uk-tap);padding:9px 18px;border:1px solid #e6c98f;border-radius:var(--uk-radius);
 background:linear-gradient(180deg,#c9a468,#8f6f3c);color:#1b1509;font:700 .8125rem/1.3 system-ui;text-decoration:none;
 box-shadow:inset 0 1px 0 #fff2c95c,inset 0 0 0 2px #8a682f66,0 2px 5px #0005;cursor:pointer;
}
:is(.shell,.modal-backdrop,.handbook,.loot-roll-window,.adventure-notices) :is(.red-button,.uk-btn-primary):hover:not(:disabled){border-color:#fbe3ac;background:linear-gradient(180deg,#d8b674,#9c7a44)}
:is(.shell,.modal-backdrop,.handbook,.loot-roll-window,.adventure-notices) :is(.red-button,.uk-btn-primary):disabled{border-color:#7a6b4c;color:#3a3427;filter:none}
.uk-btn-primary{display:inline-flex;align-items:center;justify-content:center;gap:8px}
:is(.shell,.modal-backdrop,.handbook,.loot-roll-window,.adventure-notices) :is(button.danger,a.danger,.uk-btn-danger){
 border:1px solid #b9705c;border-top:2px solid #d99a83;border-radius:var(--uk-radius);
 background:linear-gradient(180deg,#7d2e2a,#4a1a1c);color:#ffe6d6;
 box-shadow:inset 0 0 0 2px #240d0e,inset 0 0 0 3px #d99a8340,0 2px 5px #0005;
}
:is(.shell,.modal-backdrop,.handbook,.loot-roll-window,.adventure-notices) :is(button.danger,a.danger,.uk-btn-danger):hover:not(:disabled){border-color:#f0b7a2;background:linear-gradient(180deg,#943730,#5a2022);color:#fff}
.uk-btn-danger{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:var(--uk-tap);padding:9px 16px;font:600 .8125rem/1.3 system-ui;cursor:pointer}

/* ---- 4. Icon buttons ---------------------------------------------------------------------------- */
:is(.shell,.modal-backdrop,.handbook,.loot-roll-window,.adventure-notices,.topbar) :is(.icon-button,.uk-icon-btn,.notice-close){
 display:inline-grid;place-items:center;box-sizing:border-box;min-width:var(--uk-tap);min-height:var(--uk-tap);padding:0;
 border:1px solid #b8985b;border-radius:var(--uk-radius-icon);
 background:radial-gradient(circle at 50% 28%,#24364e,#111b2b 78%);color:var(--uk-gold);
 box-shadow:inset 0 0 0 2px var(--uk-navy-0),inset 0 0 0 3px #b8985b40,0 2px 5px #0005;cursor:pointer;line-height:1;
}
:is(.shell,.modal-backdrop,.handbook,.loot-roll-window,.adventure-notices,.topbar) :is(.icon-button,.uk-icon-btn,.notice-close):hover:not(:disabled){border-color:var(--uk-gold-hi);color:var(--uk-gold-text);background:radial-gradient(circle at 50% 28%,#2f4665,#16233a 78%)}
:is(.shell,.modal-backdrop,.handbook,.loot-roll-window,.adventure-notices,.topbar) :is(.icon-button,.uk-icon-btn,.notice-close):focus-visible{outline:3px solid var(--uk-focus);outline-offset:2px}
:is(.icon-button,.uk-icon-btn) .uk-icon,.uk-icon{width:22px;height:22px;flex:0 0 22px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.notice-close{font:600 1.125rem/1 system-ui}
.uk-icon-btn[aria-pressed="true"]{border-color:#e0bd73;color:#fff1cc;background:radial-gradient(circle at 50% 28%,#77602f,#2e2618 78%)}
/* Sidebar and top bar: the utility icons sit on one row and stay on the sidebar's gold-framed glass. */
.shell .nav-account .account-block>.icon-button{padding:0}
.shell .nav-account .sidebar-character-portrait,.shell .sidebar-character-portrait:has(img){border-radius:var(--uk-radius-icon);border-color:#b8985b}

/* ---- 5. Section headings ---------------------------------------------------------------------- */
.uk-heading,
:is(.shell,.modal-backdrop,.handbook,.loot-roll-window,.adventure-notices) :is(.exp-panel,.inventory-panel,.gather-log,.gather-materials,.attribute-panel)>h2:first-child{
 padding-bottom:12px;margin-bottom:14px;
 background:
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 9'%3E%3Cpath d='M4.5 .5 8.500 4.500 4.500 8.500.5 4.500Z' fill='%23d6b575'/%3E%3C/svg%3E") 0 100%/9px 9px no-repeat,
  linear-gradient(90deg,#b69a60,#b69a6055 55%,transparent) 15px calc(100% - 5px)/calc(100% - 15px) 1px no-repeat;
}

/* ---- 6. Disclosures ---------------------------------------------------------------------------- */
.uk-disclosure>summary,
:is(.shell,.modal-backdrop,.handbook,.loot-roll-window,.adventure-notices) :is(.settings-help,.settings-danger,.release-archive,.character-limit-details,.character-attribute-details,.tree-build-management,.storage-materials,.gather-rules,.skill-calculation,.path-rank-preview,.companion-abilities,.raid-company>details,.raid-card-copy>details,.stormgrave-card>details)>summary{
 min-height:var(--uk-tap);padding:10px 14px;border:1px solid #6f5d3c;border-radius:var(--uk-radius);
 background:linear-gradient(180deg,#182438,#0f1928);box-shadow:inset 0 0 0 2px var(--uk-navy-0),inset 0 0 0 3px #b8955a26;cursor:pointer;
}
.uk-disclosure>summary::marker,:is(.shell,.modal-backdrop,.handbook,.loot-roll-window,.adventure-notices) :is(.settings-help,.settings-danger,.release-archive,.character-limit-details,.character-attribute-details,.tree-build-management,.storage-materials,.gather-rules,.skill-calculation,.path-rank-preview,.companion-abilities,.raid-company>details,.raid-card-copy>details,.stormgrave-card>details)>summary::marker{color:var(--uk-gold)}
.uk-disclosure>summary:hover,:is(.shell,.modal-backdrop,.handbook,.loot-roll-window,.adventure-notices) :is(.settings-help,.settings-danger,.release-archive,.character-limit-details,.character-attribute-details,.tree-build-management,.storage-materials,.gather-rules,.skill-calculation,.path-rank-preview,.companion-abilities,.raid-company>details,.raid-card-copy>details,.stormgrave-card>details)>summary:hover{border-color:var(--uk-gold)}

/* ---- 7. Narrow screens --------------------------------------------------------------------------- */
@media(max-width:760px){:is(.shell,.modal-backdrop,.handbook,.loot-roll-window,.adventure-notices):is(.shell,.modal-backdrop,.handbook,.loot-roll-window,.adventure-notices) .section-tabs{padding-inline:10px}}
@media(max-width:700px){
 /* Region tabs: two per row on phones, the last one spans the row. */
 :is(.shell,.modal-backdrop,.handbook,.loot-roll-window,.adventure-notices):is(.shell,.modal-backdrop,.handbook,.loot-roll-window,.adventure-notices) .region-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
 :is(.shell,.modal-backdrop,.handbook,.loot-roll-window,.adventure-notices):is(.shell,.modal-backdrop,.handbook,.loot-roll-window,.adventure-notices) .region-tabs>button{min-width:0;padding:8px 6px}
 :is(.shell,.modal-backdrop,.handbook,.loot-roll-window,.adventure-notices):is(.shell,.modal-backdrop,.handbook,.loot-roll-window,.adventure-notices) .region-tabs>button:last-child:nth-child(odd){grid-column:1/-1}
}
@media(max-width:480px){
 /* Tab words never break mid-word; tabs wrap onto extra rows instead. */
 :is(.shell,.modal-backdrop,.handbook,.loot-roll-window,.adventure-notices):is(.shell,.modal-backdrop,.handbook,.loot-roll-window,.adventure-notices) :is(.market-tabs,.rank-tabs,.notice-board-tabs,.workshop-service-tabs,.dev-tabs,.crown-categories,.uk-tabs)>:is(button,a){flex:1 1 auto;min-width:min(100%,max-content);padding:8px 10px;white-space:normal;overflow-wrap:normal;word-break:normal;text-align:center}
 :is(.shell,.modal-backdrop,.handbook,.loot-roll-window,.adventure-notices):is(.shell,.modal-backdrop,.handbook,.loot-roll-window,.adventure-notices) .section-tabs>:is(button,a){padding:8px 10px;white-space:normal;overflow-wrap:normal;word-break:normal;text-align:center}
 :is(.shell,.modal-backdrop,.handbook,.loot-roll-window,.adventure-notices) :is(.secondary,.red-button,.uk-btn,.uk-btn-primary){white-space:normal;max-width:100%}
}

/* Item hover cards must appear above the side menu (500), top bar, action bar, chat and inventory toolbar; below help tips (5000). */
.item-hover,.item-hover.market-hover{z-index:3000}

/* =====================================================================================================
   UI KIT V1 (2026-10-03): header, stat strip, card grid, progress, chips, painted frame, icon art,
   gear slots, event card. Contract and markup examples: docs/UI_KIT_V1_2026-10-03.md.
   Everything below is NEW and prefixed .uk-: it does nothing until a screen uses the class.
   The older kit classes above (.uk-btn, .uk-tabs, .uk-card, .uk-heading) still need an ancestor
   .shell / .modal-backdrop / .handbook (as in the game); the classes below work anywhere.
   ===================================================================================================== */

/* ---- 8. Kit v1 tokens: state colours, painted frame, type ---------------------------------------- */
:root{
 /* State colours. Never use colour alone: every state also has a word (.uk-state). */
 --uk-done:#7fc58a;--uk-done-dim:#3d7a52;--uk-done-bg:linear-gradient(150deg,#173223,#0f1c22);
 --uk-current:var(--uk-gold);--uk-current-bg:linear-gradient(150deg,#2f2c27,#111b2b);
 --uk-locked:#6c7788;--uk-locked-text:#9aa3b0;--uk-locked-bg:linear-gradient(150deg,#141c28,#0e1520);
 --uk-danger:#c9604f;--uk-danger-text:#ffe6d6;
 /* Rarity colours (same as the game item rarities). */
 --uk-rarity-common:#c6ced2;--uk-rarity-superior:#9ae867;--uk-rarity-rare:#76bdff;--uk-rarity-epic:#f2c865;--uk-rarity-heroic:#ff808e;
 /* Art and type. */
 --uk-frame-img:url('/art/interface/panel-frame-v1.webp');
 --uk-art-sheet:url('/art/interface/navigation-v2.webp');
 --uk-serif:Georgia,'Times New Roman',serif;--uk-sans:system-ui,-apple-system,'Segoe UI',sans-serif;
 --uk-gap:10px;--uk-pad:12px;
}

/* ---- 9. Page shell (standalone pages only; the game already has .shell) ------------------------- */
.uk-page{margin:0;min-height:100vh;color:var(--uk-ivory);font:.9375rem/1.5 var(--uk-sans);
 background:radial-gradient(ellipse at 14% 0%,#26395a55,transparent 55%),radial-gradient(ellipse at 100% 60%,#5e3c1b25,transparent 65%),var(--uk-navy-0)}
.uk-page :where(h1,h2,h3,h4){margin:0;font-family:var(--uk-serif);font-weight:500;letter-spacing:.02em;color:var(--uk-gold-text);text-wrap:balance}
.uk-page :focus-visible{outline:3px solid var(--uk-focus);outline-offset:2px}
.uk-wrap{box-sizing:border-box;max-width:1120px;margin:0 auto;padding:14px clamp(10px,3vw,28px) 40px}
.uk-stack{display:grid;gap:14px;min-width:0}
.uk-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* ---- 10. Painted frame: does NOT depend on interface-art.js decorate() ---------------------------
   Same technique as .realm-frame-light: a 9-slice of panel-frame-v1.webp drawn on ::after.
   Add .uk-frame to any box; leave the inside padding to the frame. */
.uk-frame{--uk-frame-w:18px;position:relative;box-sizing:border-box;padding:calc(var(--uk-frame-w) + 4px);
 background:linear-gradient(150deg,#1c2b40,#101a2b);box-shadow:0 6px 16px #0004;color:var(--uk-ivory)}
.uk-frame::after{content:"";position:absolute;inset:0;z-index:2;pointer-events:none;
 border:var(--uk-frame-w) solid transparent;border-image:var(--uk-frame-img) 18% / var(--uk-frame-w) / 0 stretch}
.uk-frame-sm{--uk-frame-w:12px}
@media(max-width:540px){.uk-frame{--uk-frame-w:14px}.uk-frame-sm{--uk-frame-w:10px}}

/* ---- 11. Painted icons: 16 pictograms from navigation-v2.webp (4 x 4 sheet) -------------------- */
.uk-art{display:inline-block;flex:0 0 auto;width:40px;height:40px;vertical-align:middle;
 background:var(--uk-art-sheet) var(--uk-ax,0%) var(--uk-ay,0%)/400% 400% no-repeat;filter:drop-shadow(0 2px 2px #0009)}
.uk-art-sm{width:24px;height:24px}.uk-art-md{width:32px;height:32px}.uk-art-lg{width:64px;height:64px}
.uk-art-journey{--uk-ax:0%;--uk-ay:0%}.uk-art-raids{--uk-ax:33.3333%;--uk-ay:0%}.uk-art-overview{--uk-ax:66.6667%;--uk-ay:0%}.uk-art-town{--uk-ax:100%;--uk-ay:0%}
.uk-art-party{--uk-ax:0%;--uk-ay:33.3333%}.uk-art-guild{--uk-ax:33.3333%;--uk-ay:33.3333%}.uk-art-gathering{--uk-ax:66.6667%;--uk-ay:33.3333%}.uk-art-auction{--uk-ax:100%;--uk-ay:33.3333%}
.uk-art-shop{--uk-ax:0%;--uk-ay:66.6667%}.uk-art-journal{--uk-ax:33.3333%;--uk-ay:66.6667%}.uk-art-leaderboards{--uk-ax:66.6667%;--uk-ay:66.6667%}.uk-art-guide{--uk-ax:100%;--uk-ay:66.6667%}
.uk-art-combat{--uk-ax:0%;--uk-ay:100%}.uk-art-inventory{--uk-ax:33.3333%;--uk-ay:100%}.uk-art-settings{--uk-ax:66.6667%;--uk-ay:100%}.uk-art-account-chest{--uk-ax:100%;--uk-ay:100%}

/* ---- 12. Screen header: icon + title + one-line help + strip of 2-3 key numbers ------------------ */
.uk-head{display:grid;grid-template-columns:auto minmax(0,1fr);gap:10px 14px;align-items:center;min-width:0;isolation:isolate;overflow:hidden;background:var(--uk-navy-1)}
/* Optional painted banner: <img class="uk-head-art" src="/art/interface/banner-x-v1.webp" alt=""> as the first child. */
.uk-head>.uk-head-art{position:absolute;inset:0;z-index:-2;width:100%;height:100%;object-fit:cover;object-position:right center}
.uk-head::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#0c1723f2,#0c1723d6 52%,#0c172366)}
.uk-head-icon{display:grid;place-items:center;width:64px;height:64px}
.uk-head-text{min-width:0}
.uk-head-text h1{font-size:clamp(1.55rem,5.2vw,2.15rem);line-height:1.1}
.uk-head-help{margin:4px 0 0;color:var(--uk-ivory);font-size:.95rem;line-height:1.4;text-shadow:0 1px 3px #000}
.uk-head>.uk-stats{grid-column:1/-1;padding-top:10px;border-top:1px solid #b69a6055}
@media(min-width:900px){
 .uk-head{grid-template-columns:auto minmax(0,1fr) minmax(300px,36%);min-height:112px}
 .uk-head>.uk-stats{grid-column:auto;padding:0 0 0 16px;border-top:0;border-left:1px solid #b69a6055}
}
.uk-stats{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:0;margin:0;min-width:0}
.uk-stat{display:flex;flex-direction:column-reverse;align-items:center;justify-content:center;gap:2px;min-width:0;padding:0 6px;text-align:center}
.uk-stat+.uk-stat{border-left:1px solid #b69a6040}
.uk-stat dd{margin:0;max-width:100%;font:600 clamp(1.15rem,5.4vw,1.55rem)/1.1 var(--uk-serif);color:var(--uk-gold-text);overflow-wrap:anywhere}
.uk-stat dt{max-width:100%;font:600 .72rem/1.25 var(--uk-sans);letter-spacing:.08em;text-transform:uppercase;color:var(--uk-ivory-dim)}
.uk-stat.is-done dd{color:var(--uk-done)}

/* ---- 13. Tabs with icons (use inside .uk-tabs; the look comes from the tab rules above) -------------- */
.uk-tabs>.uk-tab{display:inline-flex;align-items:center;justify-content:center;gap:8px}
.uk-tab .uk-tab-icon{flex:0 0 22px;width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.uk-tab .uk-art{width:26px;height:26px;margin:-2px 0}
.uk-badge{display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 6px;border-radius:10px;background:var(--uk-gold);color:var(--uk-navy-0);font:700 .72rem/1 var(--uk-sans)}
@media(max-width:480px){
 .uk-tabs>.uk-tab{flex-direction:column;gap:2px;min-height:56px;padding:6px 4px}
 .uk-tabs>.uk-tab .uk-tab-label{font-size:.8rem}
}

/* ---- 14. Card grid: auto-fill, two columns at 320 px --------------------------------------------- */
.uk-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,var(--uk-card-min,136px)),1fr));gap:var(--uk-gap);min-width:0;margin:0;padding:0;list-style:none}
@media(max-width:480px){.uk-grid{gap:8px}}

/* ---- 15. Card parts (.uk-card is the framed card above; these sit inside it) --------------------- */
.uk-grid>.uk-card{display:flex;flex-direction:column;gap:8px;min-width:0;padding:12px 0;container-type:inline-size}
@media(min-width:600px){.uk-grid{--uk-card-min:200px}}
.uk-card>:is(.uk-card-head,.uk-card-value,.uk-progress,.uk-chips,.uk-card-foot,.uk-card-note){margin-inline:var(--uk-pad)}
.uk-card-head{display:flex;flex-direction:column;align-items:flex-start;gap:8px;min-width:0}
@container (min-width:200px){.uk-card-head{flex-direction:row;align-items:center;gap:10px}}
.uk-card-icon{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;border:1px solid #b8985b66;border-radius:var(--uk-radius-icon);background:radial-gradient(circle at 50% 30%,#24364e,#0f1826 80%)}
.uk-card-icon .uk-art{width:34px;height:34px}
.uk-card-title{margin:0;min-width:0;font:600 1rem/1.25 var(--uk-serif);letter-spacing:.01em;color:var(--uk-ivory);overflow-wrap:break-word;text-wrap:balance}
.uk-card-value{display:flex;align-items:baseline;justify-content:space-between;gap:6px;flex-wrap:wrap;margin-block:0}
.uk-card-number{font:600 1.35rem/1.1 var(--uk-serif);color:var(--uk-gold-text);overflow-wrap:anywhere}
.uk-card-number small{font:500 .85rem var(--uk-sans);color:var(--uk-ivory-dim)}
.uk-card-note{margin-block:0;font-size:.82rem;line-height:1.35;color:var(--uk-ivory-dim)}
.uk-card-foot{margin-top:auto;display:grid;gap:6px}
.uk-state{display:inline-flex;align-items:center;gap:4px;padding:1px 7px;border:1px solid currentColor;border-radius:10px;font:700 .72rem/1.5 var(--uk-sans);letter-spacing:.07em;text-transform:uppercase;color:var(--uk-gold-text);white-space:nowrap}

/* State by colour: green = done, gold = current, dim = locked. */
.uk-card.is-current{border-color:var(--uk-gold-hi);background:var(--uk-current-bg);box-shadow:var(--uk-rule),0 0 0 1px #f0ce8340,0 0 18px #d6b57530,0 6px 16px #0004}
.uk-card.is-done{border-color:var(--uk-done-dim);background:var(--uk-done-bg);box-shadow:var(--uk-rule),0 0 0 1px #7fc58a33,0 6px 16px #0004}
.uk-card.is-done .uk-card-number{color:var(--uk-done)}
.uk-card.is-done .uk-card-icon{border-color:var(--uk-done-dim)}
.uk-card.is-done .uk-state{color:var(--uk-done)}
.uk-card.is-locked{border-color:var(--uk-locked);background:var(--uk-locked-bg);box-shadow:var(--uk-rule)}
.uk-card.is-locked .uk-card-title,.uk-card.is-locked .uk-card-number,.uk-card.is-locked .uk-card-number small{color:var(--uk-locked-text)}
.uk-card.is-locked .uk-card-icon{border-color:var(--uk-locked)}
.uk-card.is-locked .uk-card-icon .uk-art{filter:grayscale(1) brightness(.6)}
.uk-card.is-locked .uk-state{color:var(--uk-locked-text)}
.uk-card.is-locked .uk-chip{border-color:var(--uk-locked);color:var(--uk-locked-text)}

/* ---- 16. Progress bar ------------------------------------------------------------------------------ */
.uk-progress{position:relative;height:12px;box-sizing:border-box;border:1px solid var(--uk-gold-dim);border-radius:var(--uk-radius);background:var(--uk-navy-0);box-shadow:inset 0 1px 3px #000a;overflow:hidden}
.uk-progress>span{display:block;height:100%;min-width:0;border-radius:2px;background:linear-gradient(180deg,var(--uk-gold-hi),var(--uk-gold-dim));box-shadow:inset 0 1px 0 #fff4}
.uk-progress.is-done>span,.uk-card.is-done .uk-progress>span{background:linear-gradient(180deg,var(--uk-done),var(--uk-done-dim))}
.uk-card.is-done .uk-progress{border-color:var(--uk-done-dim)}
.uk-progress.is-locked,.uk-card.is-locked .uk-progress{border-color:var(--uk-locked)}
.uk-progress.is-locked>span,.uk-card.is-locked .uk-progress>span{background:var(--uk-locked)}
.uk-progress-lg{height:16px}

/* ---- 17. Reward chips ------------------------------------------------------------------------------ */
.uk-chips{display:flex;flex-wrap:wrap;gap:6px;margin-block:0;padding:0;list-style:none}
.uk-chip{display:inline-flex;align-items:center;gap:5px;min-height:26px;box-sizing:border-box;max-width:100%;padding:2px 9px 2px 4px;border:1px solid #b69a6066;border-radius:13px;background:var(--uk-navy-0);color:var(--uk-gold-text);font:600 .75rem/1.2 var(--uk-sans)}
.uk-chip .uk-art{width:18px;height:18px}
.uk-chip-plain{padding-left:10px}
.uk-chip-done{border-color:var(--uk-done-dim);color:var(--uk-done)}

/* ---- 18. Button layout helpers (the look comes from .uk-btn / .uk-btn-primary / .uk-btn-danger) ------- */
.uk-btn-block{display:flex;width:100%;box-sizing:border-box}
.uk-actions{display:flex;flex-wrap:wrap;gap:10px;margin:0}
.uk-actions>*{flex:1 1 140px}

/* ---- 19. Event card: strong colour, art, a short bullet list, two clear buttons ------------------------ */
.uk-event{--uk-accent:#c8732f;display:grid;grid-template-columns:minmax(0,1fr);gap:12px;min-width:0;overflow:hidden;
 background:linear-gradient(115deg,color-mix(in srgb,var(--uk-accent) 46%,#0c1723),#0c1723 72%)}
.uk-event-art{display:none;width:100%;height:100%;min-height:150px;object-fit:cover;object-position:right center;-webkit-mask-image:linear-gradient(90deg,transparent,#000 35%);mask-image:linear-gradient(90deg,transparent,#000 35%)}
.uk-event-body{display:grid;gap:10px;min-width:0}
.uk-event-eyebrow{margin:0;font:700 .72rem/1.3 var(--uk-sans);letter-spacing:.14em;text-transform:uppercase;color:var(--uk-gold-text)}
.uk-event :is(h2,h3){font-size:1.4rem;line-height:1.15}
.uk-bullets{display:grid;gap:6px;margin:0;padding:0;list-style:none}
.uk-bullets>li{position:relative;padding-left:20px;line-height:1.4}
.uk-bullets>li::before{content:"";position:absolute;left:3px;top:.5em;width:8px;height:8px;background:var(--uk-gold);transform:rotate(45deg)}
@media(min-width:700px){
 .uk-event{grid-template-columns:minmax(0,1fr) minmax(160px,30%);align-items:center}
 .uk-event-art{display:block;align-self:stretch}
}

/* ---- 20. Character doll: big art in the middle, gear slots around it ---------------------------------- */
.uk-doll{--uk-slot:68px;display:grid;grid-template-columns:var(--uk-slot) minmax(0,1fr) var(--uk-slot);gap:10px;align-items:stretch;min-width:0}
.uk-doll-col{display:flex;flex-direction:column;justify-content:space-between;gap:8px}
.uk-doll-art{position:relative;display:grid;align-items:end;justify-items:center;min-width:0;min-height:340px;overflow:hidden;border-radius:var(--uk-radius-card);
 isolation:isolate;background:var(--uk-navy-0)}
/* Optional backdrop: <img class="uk-doll-bg" src="/art/interface/guildhall-v1.webp" alt=""> as the first child. */
.uk-doll-art>.uk-doll-bg{position:absolute;inset:0;z-index:-2;width:100%;height:100%;object-fit:cover;object-position:60% center;opacity:.55}
.uk-doll-art::before{content:"";position:absolute;inset:0;z-index:-1;background:radial-gradient(ellipse at 50% 92%,#d6b57555,transparent 58%),linear-gradient(180deg,#0c172380,#0c1723e0)}
.uk-doll-art>.uk-doll-hero{display:block;width:auto;max-width:100%;height:100%;max-height:420px;object-fit:contain;transform:scale(1.16);transform-origin:50% 100%;filter:drop-shadow(0 8px 10px #000a)}
.uk-doll-foot{grid-column:1/-1;display:flex;flex-wrap:wrap;justify-content:center;gap:8px}
.uk-doll-name{grid-column:1/-1;display:grid;gap:6px;text-align:center}
.uk-doll-name h2{font-size:1.5rem}
.uk-doll-name p{margin:0;color:var(--uk-ivory-dim);font-size:.9rem}
.uk-slot{--uk-rarity:var(--uk-rarity-common);position:relative;display:grid;place-items:center;box-sizing:border-box;width:var(--uk-slot);height:var(--uk-slot);min-width:var(--uk-tap);min-height:var(--uk-tap);padding:0;
 border:1px solid var(--uk-rarity);border-radius:var(--uk-radius-icon);background:var(--uk-navy-0);box-shadow:0 0 0 1px var(--uk-navy-0),0 2px 6px #0007;color:var(--uk-ivory);cursor:pointer;overflow:hidden}
.uk-slot:hover{box-shadow:0 0 0 1px var(--uk-navy-0),0 0 10px var(--uk-rarity)}
/* Item icon: a cell of a painted atlas. Pick the atlas class; set --uk-sw/--uk-sh (atlas size in %) and --uk-sx/--uk-sy (cell position in %). */
.uk-slot-icon{display:block;width:100%;height:100%;background-repeat:no-repeat;background-size:var(--uk-sw,100%) var(--uk-sh,100%);background-position:var(--uk-sx,0%) var(--uk-sy,0%)}
.uk-atlas-armor{background-image:url('/assets/items-v2/armor.webp')}.uk-atlas-accessories{background-image:url('/assets/items-v2/accessories.webp')}
.uk-atlas-weapons{background-image:url('/assets/items-v2/weapons.webp')}.uk-atlas-class-weapons{background-image:url('/assets/items-v2/class-weapons.webp')}.uk-atlas-light-armor{background-image:url('/assets/items-v2/light-armor.webp')}
.uk-slot.is-empty{border:1px dashed var(--uk-locked);background:var(--uk-locked-bg);box-shadow:none;color:var(--uk-locked-text)}
.uk-slot.is-empty svg{width:70%;height:70%}
.uk-slot-label{position:absolute;inset:auto 0 0;padding:1px 2px;background:#0c1723d9;font:600 .7rem/1.2 var(--uk-sans);text-align:center;color:var(--uk-ivory);pointer-events:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.uk-r-common{--uk-rarity:var(--uk-rarity-common)}.uk-r-superior{--uk-rarity:var(--uk-rarity-superior)}.uk-r-rare{--uk-rarity:var(--uk-rarity-rare)}.uk-r-epic{--uk-rarity:var(--uk-rarity-epic)}.uk-r-heroic{--uk-rarity:var(--uk-rarity-heroic)}
@media(max-width:480px){.uk-doll{--uk-slot:52px;gap:6px}.uk-doll-art{min-height:300px}.uk-slot-label{display:none}}

/* ---- 21. One stats panel: label left, number right, grouped under small headings ----------------------- */
.uk-rows{display:grid;gap:0;margin:0}
.uk-rows>div{display:flex;align-items:baseline;justify-content:space-between;gap:12px;min-height:32px;padding:4px 2px;border-bottom:1px solid #b69a6030}
.uk-rows>div:last-child{border-bottom:0}
.uk-rows dt{margin:0;color:var(--uk-ivory)}
.uk-rows dd{margin:0;font:600 1.05rem/1.2 var(--uk-serif);color:var(--uk-gold-text);text-align:right}
.uk-rows-group{margin:14px 0 4px;font:700 .72rem/1.3 var(--uk-sans);letter-spacing:.12em;text-transform:uppercase;color:var(--uk-ivory-dim)}
.uk-rows-group:first-child{margin-top:0}
.uk-attrs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;margin:0}
.uk-attrs>div{display:flex;flex-direction:column-reverse;align-items:center;gap:1px;padding:6px 2px;border:1px solid #b69a6055;border-radius:var(--uk-radius);background:var(--uk-navy-0)}
.uk-attrs dd{margin:0;font:600 1.15rem/1.1 var(--uk-serif);color:var(--uk-gold-text)}
.uk-attrs dt{font:700 .72rem/1.2 var(--uk-sans);letter-spacing:.08em;color:var(--uk-ivory-dim)}
.uk-attrs>.is-primary{border-color:var(--uk-gold)}

/* ---- 22. Layout helpers: two-column screen body, labelled meter ------------------------------------------- */
.uk-split{display:grid;gap:14px;grid-template-columns:minmax(0,1fr);align-items:start;min-width:0}
@media(min-width:900px){.uk-split{grid-template-columns:minmax(0,1.3fr) minmax(0,1fr)}}
.uk-meter{display:grid;gap:5px}
.uk-meter-line{display:flex;align-items:baseline;justify-content:space-between;gap:8px;flex-wrap:wrap;font-size:.85rem;color:var(--uk-ivory-dim)}
.uk-meter-line b{font:600 .95rem var(--uk-serif);color:var(--uk-gold-text)}

/* ---- 23. Painted icon sheets v1 (UI icons pass): quests, rewards, stats, empty slots, actions ----------
   Five 4 x 4 sheets in /art/ui/ (256 px cells, transparent). Use them with ANY of:
     <span class="uk-art uk-ico-day">      same sizes and the same tab/chip/card sizing as the navigation icons (.uk-art-sm|md|lg)
     <span class="uk-ico uk-ico-day">      standalone: 40 px, .uk-ico-sm 24, .uk-ico-md 32, .uk-ico-lg 64
   An icon class only sets three custom properties (sheet, column, row); it never sets a size. Decorative: aria-hidden="true". */
:root{
 --uk-sheet-quests:url('/art/ui/icons-quests-v1.webp');--uk-sheet-rewards:url('/art/ui/icons-rewards-v1.webp');--uk-sheet-stats:url('/art/ui/icons-stats-v1.webp');
 --uk-sheet-slots:url('/art/ui/icons-slots-v1.webp');--uk-sheet-actions:url('/art/ui/icons-actions-v1.webp');
}
.uk-ico{display:inline-block;flex:0 0 auto;width:40px;height:40px;vertical-align:middle;
 background:var(--uk-art-sheet) var(--uk-ax,0%) var(--uk-ay,0%)/400% 400% no-repeat;filter:drop-shadow(0 2px 2px #0009)}
.uk-ico-sm{width:24px;height:24px}.uk-ico-md{width:32px;height:32px}.uk-ico-lg{width:64px;height:64px}
.uk-tab .uk-ico{width:26px;height:26px;margin:-2px 0}
.uk-card-icon .uk-ico{width:34px;height:34px}
.uk-chip .uk-ico{width:18px;height:18px}
.uk-card.is-locked .uk-card-icon .uk-ico{filter:grayscale(1) brightness(.6)}
.uk-head-icon .uk-ico{width:64px;height:64px}
/* quests sheet, row by row */
.uk-ico-day{--uk-art-sheet:var(--uk-sheet-quests);--uk-ax:0%;--uk-ay:0%}.uk-ico-week{--uk-art-sheet:var(--uk-sheet-quests);--uk-ax:33.3333%;--uk-ay:0%}.uk-ico-month{--uk-art-sheet:var(--uk-sheet-quests);--uk-ax:66.6667%;--uk-ay:0%}.uk-ico-monsters{--uk-art-sheet:var(--uk-sheet-quests);--uk-ax:100%;--uk-ay:0%}
.uk-ico-boss{--uk-art-sheet:var(--uk-sheet-quests);--uk-ax:0%;--uk-ay:33.3333%}.uk-ico-boss-hunt{--uk-art-sheet:var(--uk-sheet-quests);--uk-ax:33.3333%;--uk-ay:33.3333%}.uk-ico-raid-boss{--uk-art-sheet:var(--uk-sheet-quests);--uk-ax:66.6667%;--uk-ay:33.3333%}.uk-ico-gather-trip{--uk-art-sheet:var(--uk-sheet-quests);--uk-ax:100%;--uk-ay:33.3333%}
.uk-ico-craft-order{--uk-art-sheet:var(--uk-sheet-quests);--uk-ax:0%;--uk-ay:66.6667%}.uk-ico-workshop{--uk-art-sheet:var(--uk-sheet-quests);--uk-ax:33.3333%;--uk-ay:66.6667%}.uk-ico-salvage{--uk-art-sheet:var(--uk-sheet-quests);--uk-ax:66.6667%;--uk-ay:66.6667%}.uk-ico-market-sale{--uk-art-sheet:var(--uk-sheet-quests);--uk-ax:100%;--uk-ay:66.6667%}
.uk-ico-quest-tree{--uk-art-sheet:var(--uk-sheet-quests);--uk-ax:0%;--uk-ay:100%}.uk-ico-enchant{--uk-art-sheet:var(--uk-sheet-quests);--uk-ax:33.3333%;--uk-ay:100%}.uk-ico-alchemy{--uk-art-sheet:var(--uk-sheet-quests);--uk-ax:66.6667%;--uk-ay:100%}.uk-ico-tavern{--uk-art-sheet:var(--uk-sheet-quests);--uk-ax:100%;--uk-ay:100%}
/* rewards sheet, row by row */
.uk-ico-gold{--uk-art-sheet:var(--uk-sheet-rewards);--uk-ax:0%;--uk-ay:0%}.uk-ico-xp{--uk-art-sheet:var(--uk-sheet-rewards);--uk-ax:33.3333%;--uk-ay:0%}.uk-ico-guild-coin{--uk-art-sheet:var(--uk-sheet-rewards);--uk-ax:66.6667%;--uk-ay:0%}.uk-ico-material{--uk-art-sheet:var(--uk-sheet-rewards);--uk-ax:100%;--uk-ay:0%}
.uk-ico-quest-point{--uk-art-sheet:var(--uk-sheet-rewards);--uk-ax:0%;--uk-ay:33.3333%}.uk-ico-key{--uk-art-sheet:var(--uk-sheet-rewards);--uk-ax:33.3333%;--uk-ay:33.3333%}.uk-ico-rune{--uk-art-sheet:var(--uk-sheet-rewards);--uk-ax:66.6667%;--uk-ay:33.3333%}.uk-ico-charm{--uk-art-sheet:var(--uk-sheet-rewards);--uk-ax:100%;--uk-ay:33.3333%}
.uk-ico-check{--uk-art-sheet:var(--uk-sheet-rewards);--uk-ax:0%;--uk-ay:66.6667%}.uk-ico-lock{--uk-art-sheet:var(--uk-sheet-rewards);--uk-ax:33.3333%;--uk-ay:66.6667%}.uk-ico-gem{--uk-art-sheet:var(--uk-sheet-rewards);--uk-ax:66.6667%;--uk-ay:66.6667%}.uk-ico-chest{--uk-art-sheet:var(--uk-sheet-rewards);--uk-ax:100%;--uk-ay:66.6667%}
.uk-ico-hourglass{--uk-art-sheet:var(--uk-sheet-rewards);--uk-ax:0%;--uk-ay:100%}.uk-ico-star{--uk-art-sheet:var(--uk-sheet-rewards);--uk-ax:33.3333%;--uk-ay:100%}.uk-ico-heart{--uk-art-sheet:var(--uk-sheet-rewards);--uk-ax:66.6667%;--uk-ay:100%}.uk-ico-shield{--uk-art-sheet:var(--uk-sheet-rewards);--uk-ax:100%;--uk-ay:100%}
/* stats sheet, row by row */
.uk-ico-attack{--uk-art-sheet:var(--uk-sheet-stats);--uk-ax:0%;--uk-ay:0%}.uk-ico-health{--uk-art-sheet:var(--uk-sheet-stats);--uk-ax:33.3333%;--uk-ay:0%}.uk-ico-defense{--uk-art-sheet:var(--uk-sheet-stats);--uk-ax:66.6667%;--uk-ay:0%}.uk-ico-critical{--uk-art-sheet:var(--uk-sheet-stats);--uk-ax:100%;--uk-ay:0%}
.uk-ico-speed{--uk-art-sheet:var(--uk-sheet-stats);--uk-ax:0%;--uk-ay:33.3333%}.uk-ico-dodge{--uk-art-sheet:var(--uk-sheet-stats);--uk-ax:33.3333%;--uk-ay:33.3333%}.uk-ico-recovery{--uk-art-sheet:var(--uk-sheet-stats);--uk-ax:66.6667%;--uk-ay:33.3333%}.uk-ico-resource{--uk-art-sheet:var(--uk-sheet-stats);--uk-ax:100%;--uk-ay:33.3333%}
.uk-ico-strength{--uk-art-sheet:var(--uk-sheet-stats);--uk-ax:0%;--uk-ay:66.6667%}.uk-ico-intelligence{--uk-art-sheet:var(--uk-sheet-stats);--uk-ax:33.3333%;--uk-ay:66.6667%}.uk-ico-dexterity{--uk-art-sheet:var(--uk-sheet-stats);--uk-ax:66.6667%;--uk-ay:66.6667%}.uk-ico-vitality{--uk-art-sheet:var(--uk-sheet-stats);--uk-ax:100%;--uk-ay:66.6667%}
.uk-ico-endurance{--uk-art-sheet:var(--uk-sheet-stats);--uk-ax:0%;--uk-ay:100%}.uk-ico-luck{--uk-art-sheet:var(--uk-sheet-stats);--uk-ax:33.3333%;--uk-ay:100%}.uk-ico-magic-power{--uk-art-sheet:var(--uk-sheet-stats);--uk-ax:66.6667%;--uk-ay:100%}.uk-ico-danger{--uk-art-sheet:var(--uk-sheet-stats);--uk-ax:100%;--uk-ay:100%}
/* slots sheet, row by row */
.uk-ico-slot-helmet{--uk-art-sheet:var(--uk-sheet-slots);--uk-ax:0%;--uk-ay:0%}.uk-ico-slot-body{--uk-art-sheet:var(--uk-sheet-slots);--uk-ax:33.3333%;--uk-ay:0%}.uk-ico-slot-gloves{--uk-art-sheet:var(--uk-sheet-slots);--uk-ax:66.6667%;--uk-ay:0%}.uk-ico-slot-pants{--uk-art-sheet:var(--uk-sheet-slots);--uk-ax:100%;--uk-ay:0%}
.uk-ico-slot-boots{--uk-art-sheet:var(--uk-sheet-slots);--uk-ax:0%;--uk-ay:33.3333%}.uk-ico-slot-amulet{--uk-art-sheet:var(--uk-sheet-slots);--uk-ax:33.3333%;--uk-ay:33.3333%}.uk-ico-slot-ring{--uk-art-sheet:var(--uk-sheet-slots);--uk-ax:66.6667%;--uk-ay:33.3333%}.uk-ico-slot-weapon{--uk-art-sheet:var(--uk-sheet-slots);--uk-ax:100%;--uk-ay:33.3333%}
.uk-ico-slot-shield{--uk-art-sheet:var(--uk-sheet-slots);--uk-ax:0%;--uk-ay:66.6667%}.uk-ico-slot-charm{--uk-art-sheet:var(--uk-sheet-slots);--uk-ax:33.3333%;--uk-ay:66.6667%}.uk-ico-slot-rune{--uk-art-sheet:var(--uk-sheet-slots);--uk-ax:66.6667%;--uk-ay:66.6667%}.uk-ico-slot-shoulders{--uk-art-sheet:var(--uk-sheet-slots);--uk-ax:100%;--uk-ay:66.6667%}
.uk-ico-slot-belt{--uk-art-sheet:var(--uk-sheet-slots);--uk-ax:0%;--uk-ay:100%}.uk-ico-slot-cloak{--uk-art-sheet:var(--uk-sheet-slots);--uk-ax:33.3333%;--uk-ay:100%}.uk-ico-slot-bag{--uk-art-sheet:var(--uk-sheet-slots);--uk-ax:66.6667%;--uk-ay:100%}.uk-ico-slot-bracers{--uk-art-sheet:var(--uk-sheet-slots);--uk-ax:100%;--uk-ay:100%}
/* actions sheet, row by row */
.uk-ico-help{--uk-art-sheet:var(--uk-sheet-actions);--uk-ax:0%;--uk-ay:0%}.uk-ico-guide-book{--uk-art-sheet:var(--uk-sheet-actions);--uk-ax:33.3333%;--uk-ay:0%}.uk-ico-back{--uk-art-sheet:var(--uk-sheet-actions);--uk-ax:66.6667%;--uk-ay:0%}.uk-ico-close{--uk-art-sheet:var(--uk-sheet-actions);--uk-ax:100%;--uk-ay:0%}
.uk-ico-info{--uk-art-sheet:var(--uk-sheet-actions);--uk-ax:0%;--uk-ay:33.3333%}.uk-ico-claim{--uk-art-sheet:var(--uk-sheet-actions);--uk-ax:33.3333%;--uk-ay:33.3333%}.uk-ico-act-lock{--uk-art-sheet:var(--uk-sheet-actions);--uk-ax:66.6667%;--uk-ay:33.3333%}.uk-ico-upgrade{--uk-art-sheet:var(--uk-sheet-actions);--uk-ax:100%;--uk-ay:33.3333%}
.uk-ico-trade{--uk-art-sheet:var(--uk-sheet-actions);--uk-ax:0%;--uk-ay:66.6667%}.uk-ico-filter{--uk-art-sheet:var(--uk-sheet-actions);--uk-ax:33.3333%;--uk-ay:66.6667%}.uk-ico-search{--uk-art-sheet:var(--uk-sheet-actions);--uk-ax:66.6667%;--uk-ay:66.6667%}.uk-ico-refresh{--uk-art-sheet:var(--uk-sheet-actions);--uk-ax:100%;--uk-ay:66.6667%}
.uk-ico-add{--uk-art-sheet:var(--uk-sheet-actions);--uk-ax:0%;--uk-ay:100%}.uk-ico-edit{--uk-art-sheet:var(--uk-sheet-actions);--uk-ax:33.3333%;--uk-ay:100%}.uk-ico-notify{--uk-art-sheet:var(--uk-sheet-actions);--uk-ax:66.6667%;--uk-ay:100%}.uk-ico-favourite{--uk-art-sheet:var(--uk-sheet-actions);--uk-ax:100%;--uk-ay:100%}

/* Empty gear slot: a dim silhouette of what goes there (replaces the inline dashed SVG). Put it inside .uk-slot.is-empty. */
.uk-slot-ghost{display:block;width:78%;height:78%;opacity:.5;pointer-events:none;
 background:var(--uk-art-sheet) var(--uk-ax,0%) var(--uk-ay,0%)/400% 400% no-repeat}
.uk-slot.is-empty:hover .uk-slot-ghost,.uk-slot.is-empty:focus-visible .uk-slot-ghost{opacity:.8}

/* Stat rows and attribute tiles with an icon. Row: <dt class="has-ico"><span class="uk-art uk-art-sm uk-ico-attack"></span>Attack power</dt>.
   Tile: add the icon as the LAST child of the tile div (the tile is column-reverse, so it shows on top). */
.uk-rows dt.has-ico{display:inline-flex;align-items:center;gap:8px}
.uk-rows>div:has(>dt.has-ico){align-items:center}
.uk-rows dt.has-ico>.uk-art,.uk-rows dt.has-ico>.uk-ico{width:30px;height:30px}
.uk-rows-group.has-ico{display:flex;align-items:center;gap:8px}
.uk-attrs>div>.uk-art,.uk-attrs>div>.uk-ico{width:34px;height:34px;margin-bottom:2px}

/* ---- 24. Guide link .uk-help: a small gold "?" medallion that opens the Guide at one topic ------------------
   <a class="uk-help" href="/guide.html#daily-quests" data-guide-topic="daily-quests" aria-label="Open the Guide: Daily, weekly and monthly quests"></a>
   The medallion is 26 px; the link box is 44 x 44 (negative margin keeps the layout footprint at 26 px), so keep 8 px of gap around it.
   Always visible, never hover-only. In the game, app.js binds [data-guide-topic] and opens the topic inside the game; without that script
   the href opens /guide.html on that topic. Use it next to a screen header or a card title when a mechanic needs explaining, NOT on every card. */
.uk-help{position:relative;display:inline-block;flex:0 0 auto;box-sizing:border-box;width:var(--uk-tap);height:var(--uk-tap);margin:-9px;vertical-align:middle;
 border-radius:50%;text-decoration:none;color:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}
.uk-help::before{content:"";position:absolute;left:50%;top:50%;width:26px;height:26px;margin:-13px 0 0 -13px;border-radius:50%;
 background:var(--uk-sheet-actions) 0% 0%/400% 400% no-repeat;filter:drop-shadow(0 1px 2px #000a)}
.uk-help:hover::before{filter:drop-shadow(0 1px 2px #000a) brightness(1.25) saturate(1.1)}
.uk-help:focus-visible{outline:0}
.uk-help:focus-visible::before{outline:3px solid var(--uk-focus);outline-offset:2px}
.uk-help-lg::before{width:32px;height:32px;margin:-16px 0 0 -16px}

/* Small helpers for the icon pass: a state mark inside .uk-state, and a title row that carries a .uk-help link. */
.uk-state .uk-art,.uk-state .uk-ico{width:16px;height:16px;margin:-2px 0;filter:none}
.uk-title-row{display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px;min-width:0}
.uk-title-row>:is(h1,h2,h3){min-width:0}
.uk-stat>.uk-art,.uk-stat>.uk-ico{width:26px;height:26px;margin-bottom:2px}

/* Phone: the "Ranking rules" and "Storage guide" help links were 15 and 25 px tall; give them the 44 px touch size. */
@media(max-width:760px){
 .rankings-page footer a[data-guide-topic],.account-storage>header a[data-guide-topic]{display:inline-flex;align-items:center;min-height:44px}
}

/* ---- 25. Kit additions 2 (2026-10-04): list row, rank badge, price block, form controls, pinned row, slot badges, wrapping state ----
   Written for the Leaderboards and Auction House samples. Additions only: nothing above this line was edited, so every older component computes the same styles.
   Same gating as sections 8 to 24: these are NEW .uk- classes that do nothing until a screen puts them in its markup (a screen only does that behind its IRP_UI_<SCREEN>_VERSION switch).
   Every selector piece below starts with a .uk- class (an element name may come first), no :is() / :where() lists. No animation, no transition. Contract and markup: docs/UI_KIT_V1_2026-10-03.md section 10.

   .uk-rank                    round rank number; .is-top (or an .is-top row) gives ranks 1 to 3 the gold look
   .uk-row-list > .uk-row      one list row: .uk-row-main (flex line) holds .uk-rank, .uk-row-media, .uk-row-body (.uk-row-title, .uk-row-sub, .uk-row-extra), .uk-row-end (.uk-row-num + .uk-row-unit), .uk-row-caret
                               .uk-row-main may be a <summary> (tap-open row with .uk-row-drawer) or a plain <div>; .uk-row-foot is a price + button line under it
                               modifiers: .is-top  .is-you  .is-pinned  .is-current  .is-done  .is-locked  .has-edge (rarity colour on the left edge, with .uk-r-<rarity>)
   .uk-row-gap                 dotted break between the top of a list and your own pinned row
   .uk-price                   coin + serif number + small note; .is-big  .is-short
   .uk-field .uk-label .uk-hint   label above a control, helper line below it (.is-error)
   .uk-select  .uk-input       44 px controls, 16 px text (phones do not zoom in); .uk-input.is-big for a price; .uk-input-wrap puts a coin icon inside the field
   .uk-stepper                 minus, number, plus (44 px each)
   .uk-seg                     equal-width joined buttons with aria-pressed or aria-checked, optional small second line
   .uk-slot-badge              corner badge on a .uk-slot: count (bottom right), .is-tl lock or hourglass icon, .is-bl, .is-tr
   .uk-slot.is-selected        gold ring plus a tick in the top right corner (shape, not colour alone)
   .uk-state.is-wrap           state tag that may wrap and never spills out of a narrow card */

/* 25.1 Rank badge */
.uk-rank{display:inline-grid;place-items:center;flex:0 0 auto;box-sizing:border-box;min-width:34px;height:34px;padding:0 4px;border:1px solid var(--uk-gold-dim);border-radius:17px;background:var(--uk-navy-0);font:600 .95rem/1 var(--uk-serif);color:var(--uk-ivory);font-variant-numeric:tabular-nums}
.uk-rank.is-top,.uk-row.is-top .uk-rank{border-color:var(--uk-gold-hi);background:var(--uk-surface-lit);color:var(--uk-gold-text);font-size:1.05rem}
@media(max-width:480px){.uk-rank{min-width:30px;height:30px;border-radius:15px;font-size:.85rem}.uk-rank.is-top,.uk-row.is-top .uk-rank{font-size:.95rem}}

/* 25.2 List row. Container, states, the line inside it, the parts, the tap-open drawer, the price line. */
.uk-row-list{display:grid;gap:8px;min-width:0;margin:0;padding:0;list-style:none}
.uk-row{--uk-rarity:var(--uk-rarity-common);position:relative;box-sizing:border-box;min-width:0;margin:0;padding:0;border:1px solid var(--uk-gold-dim);border-radius:var(--uk-radius-card);
 background:var(--uk-card-bg,linear-gradient(150deg,#1c2b40,#101a2b));box-shadow:var(--uk-rule),0 4px 10px #0003;color:var(--uk-ivory);list-style:none}
.uk-row.is-current,.uk-row.is-you{border-color:var(--uk-gold-hi);background:var(--uk-current-bg);box-shadow:var(--uk-rule),0 0 0 1px #f0ce8340,0 0 18px #d6b57530,0 4px 10px #0003}
.uk-row.is-done{border-color:var(--uk-done-dim);background:var(--uk-done-bg);box-shadow:var(--uk-rule),0 0 0 1px #7fc58a33,0 4px 10px #0003}
.uk-row.is-done .uk-row-num{color:var(--uk-done)}
.uk-row.is-locked{border-color:var(--uk-locked);background:var(--uk-locked-bg);box-shadow:var(--uk-rule)}
.uk-row.is-locked .uk-row-title,.uk-row.is-locked .uk-row-num,.uk-row.is-locked .uk-price-num{color:var(--uk-locked-text)}
.uk-row.is-locked .uk-row-media{border-color:var(--uk-locked);filter:grayscale(1) brightness(.7)}
.uk-row.has-edge{border-left:4px solid var(--uk-rarity)}
/* Your own row when you are below the first page: the list ends with .uk-row-gap and this row. It stays at the bottom of the screen while the list is in view. */
.uk-row.is-pinned{position:sticky;bottom:calc(8px + max(var(--mobile-nav-height,0px),env(safe-area-inset-bottom,0px)));z-index:3;box-shadow:var(--uk-rule),0 0 0 1px #f0ce8340,0 -6px 16px #000b}
.uk-row-gap{margin:0;padding:0;line-height:1;text-align:center;list-style:none;color:var(--uk-gold-dim)}
.uk-row-gap::before{content:"\00b7\00a0\00b7\00a0\00b7";font-size:1.5rem;letter-spacing:.4em}

.uk-row-main{display:flex;align-items:center;gap:10px;box-sizing:border-box;min-width:0;min-height:64px;margin:0;padding:9px 12px;list-style:none;color:inherit;text-decoration:none}
.uk-row.is-top .uk-row-main{min-height:76px}
summary.uk-row-main{cursor:pointer}
summary.uk-row-main::-webkit-details-marker{display:none}
summary.uk-row-main:focus-visible{outline:3px solid var(--uk-focus);outline-offset:-3px}
.uk-row-body{display:grid;flex:1 1 0;gap:3px;min-width:0}
.uk-row .uk-row-title{margin:0;font:600 1rem/1.2 var(--uk-serif);letter-spacing:0;color:var(--uk-ivory);overflow-wrap:anywhere}
.uk-row-sub{display:flex;flex-wrap:wrap;align-items:center;gap:4px 6px;margin:0;font:600 .8rem/1.3 var(--uk-sans);color:var(--uk-ivory-dim)}
.uk-row-extra{display:flex;align-items:center;gap:8px;min-width:0;margin:0;font:600 .78rem/1.3 var(--uk-sans);color:var(--uk-ivory-dim)}
.uk-row-extra .uk-progress{flex:1 1 auto;height:8px;min-width:40px}
.uk-row-end{display:grid;flex:0 0 auto;justify-items:end;max-width:45%;margin:0;text-align:right}
.uk-row-num{font:600 1.5rem/1.05 var(--uk-serif);color:var(--uk-gold-text);overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.uk-row-unit{font:700 .72rem/1.2 var(--uk-sans);letter-spacing:.08em;text-transform:uppercase;color:var(--uk-ivory-dim)}
.uk-row-media{display:grid;place-items:center;flex:0 0 auto;box-sizing:border-box;width:44px;height:44px;border:1px solid #b8985b66;border-radius:var(--uk-radius-icon);
 background:radial-gradient(circle at 50% 30%,#24364e,#0f1826 80%);overflow:hidden;color:var(--uk-gold-text);font:600 1.2rem/1 var(--uk-serif)}
.uk-row-media>img{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 18%}
.uk-row-media.is-lg{width:64px;height:64px}
.uk-row-media.is-round{border-radius:50%}
.uk-row-media.is-rarity{border:2px solid var(--uk-rarity)}
.uk-row-caret{flex:0 0 auto;width:0;height:0;border:5px solid transparent;border-top:6px solid var(--uk-gold);border-bottom:0}
.uk-row details[open]>.uk-row-main .uk-row-caret{border-top:0;border-bottom:6px solid var(--uk-gold);border-width:0 5px 6px}
.uk-row-drawer{display:grid;gap:10px;min-width:0;padding:2px 12px 12px;border-top:1px solid #b69a6030}
.uk-row-foot{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 14px;min-width:0;padding:0 12px 10px}
.uk-row-foot>.uk-btn,.uk-row-foot>.uk-btn-primary{flex:1 1 140px;max-width:100%}
@media(min-width:560px){.uk-row-foot>.uk-btn,.uk-row-foot>.uk-btn-primary{flex:0 0 auto;min-width:140px}}
@media(max-width:480px){
 .uk-row-main{gap:8px;padding:9px 10px}
 .uk-row-media{width:40px;height:40px}.uk-row-media.is-lg{width:56px;height:56px}
 .uk-row-num{font-size:1.35rem}
 .uk-row-foot{padding:0 10px 10px}
}

/* 25.3 Price block: coin icon and serif number on one line, a small note under it (each price, "Need 120 more gold", time left). */
.uk-price{display:grid;gap:0;min-width:0;margin:0}
.uk-price-num{display:inline-flex;align-items:center;gap:6px;font:600 1.3rem/1.1 var(--uk-serif);color:var(--uk-gold-text);overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.uk-price-num .uk-ico,.uk-price-num .uk-art{width:24px;height:24px}
.uk-price-note{font:500 .8rem/1.3 var(--uk-sans);color:var(--uk-ivory-dim)}
.uk-price.is-big .uk-price-num{font-size:1.7rem}
.uk-price.is-big .uk-price-num .uk-ico,.uk-price.is-big .uk-price-num .uk-art{width:32px;height:32px}
.uk-price.is-short .uk-price-num{color:var(--uk-locked-text)}
.uk-price.is-short .uk-price-note{color:var(--uk-danger-text)}

/* 25.4 Form controls. The doubled class and the element name lift these over the older ".shell input" and ".wayfarer-shell input" rules (the kit is the last stylesheet). 16 px text: phones do not zoom in on focus. */
.uk-field{display:grid;align-content:start;gap:4px;min-width:0;margin:0}
.uk-label{display:block;margin:0;font:700 .72rem/1.3 var(--uk-sans);letter-spacing:.12em;text-transform:uppercase;color:var(--uk-ivory-dim)}
.uk-hint{margin:0;font:500 .82rem/1.35 var(--uk-sans);color:var(--uk-ivory-dim)}
.uk-hint.is-error{color:var(--uk-danger-text)}
input.uk-input.uk-input,textarea.uk-input.uk-input,select.uk-select.uk-select{box-sizing:border-box;width:100%;min-width:0;max-width:100%;min-height:var(--uk-tap);margin:0;padding:0 12px;
 border:1px solid var(--uk-gold-dim);border-radius:var(--uk-radius);background:var(--uk-navy-0);color:var(--uk-ivory);font:600 1rem/1.3 var(--uk-sans);box-shadow:inset 0 1px 3px #000a;color-scheme:dark}
textarea.uk-input.uk-input{min-height:88px;padding:10px 12px;line-height:1.4;resize:vertical}
select.uk-select.uk-select{padding-right:40px;-webkit-appearance:none;appearance:none;cursor:pointer;
 background-image:linear-gradient(45deg,transparent 50%,var(--uk-gold) 50%),linear-gradient(135deg,var(--uk-gold) 50%,transparent 50%),var(--uk-tab-surface);
 background-position:calc(100% - 20px) 50%,calc(100% - 14px) 50%,0 0;background-size:6px 6px,6px 6px,100% 100%;background-repeat:no-repeat}
select.uk-select option{background:var(--uk-navy-1);color:var(--uk-ivory)}
input.uk-input.uk-input::placeholder,textarea.uk-input.uk-input::placeholder{color:var(--uk-locked-text);opacity:1}
input.uk-input.uk-input:hover:not(:disabled),textarea.uk-input.uk-input:hover:not(:disabled),select.uk-select.uk-select:hover:not(:disabled){border-color:var(--uk-gold)}
input.uk-input.uk-input:focus-visible,textarea.uk-input.uk-input:focus-visible,select.uk-select.uk-select:focus-visible{outline:3px solid var(--uk-focus);outline-offset:2px;border-color:var(--uk-gold-hi)}
input.uk-input.uk-input:disabled,textarea.uk-input.uk-input:disabled,select.uk-select.uk-select:disabled{border-color:#5b5040;opacity:.55;cursor:not-allowed}
input.uk-input.uk-input[aria-invalid="true"],textarea.uk-input.uk-input[aria-invalid="true"],select.uk-select.uk-select[aria-invalid="true"],input.uk-input.uk-input.is-invalid,select.uk-select.uk-select.is-invalid{border-color:var(--uk-danger)}
input.uk-input.uk-input.is-big{min-height:56px;font:600 1.5rem/1.2 var(--uk-serif);color:var(--uk-gold-text);font-variant-numeric:tabular-nums}
.uk-input-wrap{position:relative;min-width:0}
.uk-input-wrap>.uk-ico,.uk-input-wrap>.uk-art{position:absolute;left:10px;top:50%;width:30px;height:30px;margin-top:-15px;pointer-events:none}
.uk-input-wrap>input.uk-input.uk-input{padding-left:46px}

/* Stepper: minus, number, plus. Buttons are 44 px; the number is a real input (inputmode numeric) so it can be typed. */
.uk-stepper{display:grid;grid-template-columns:var(--uk-tap) minmax(0,1fr) var(--uk-tap);gap:6px;align-items:stretch;min-width:0}
.uk-stepper>.uk-stepper-btn{display:grid;place-items:center;box-sizing:border-box;min-width:var(--uk-tap);min-height:var(--uk-tap);margin:0;padding:0;border:1px solid var(--uk-gold-dim);border-top:2px solid var(--uk-gold);border-radius:var(--uk-radius);
 background:var(--uk-surface);color:var(--uk-ivory);font:600 1.4rem/1 var(--uk-serif);box-shadow:var(--uk-rule),0 2px 5px #0004;cursor:pointer;-webkit-tap-highlight-color:transparent}
.uk-stepper>.uk-stepper-btn:hover:not(:disabled){border-color:var(--uk-gold-hi);background:var(--uk-surface-hover);color:var(--uk-gold-text)}
.uk-stepper>.uk-stepper-btn:focus-visible{outline:3px solid var(--uk-focus);outline-offset:2px;z-index:2}
.uk-stepper>.uk-stepper-btn:disabled{border-color:#5b5040;border-top-color:#6d6047;opacity:.5;cursor:not-allowed}
input.uk-input.uk-input.uk-stepper-input{padding:0 4px;text-align:center;-moz-appearance:textfield;appearance:textfield}
input.uk-stepper-input::-webkit-inner-spin-button,input.uk-stepper-input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}

/* Segmented choice: two to four equal buttons joined into one control. Mark the chosen one with aria-pressed="true" (or aria-checked="true" on role="radio"). */
.uk-seg{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);min-width:0;margin:0}
.uk-seg>.uk-seg-btn{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;box-sizing:border-box;min-width:0;min-height:var(--uk-tap);margin:0 0 0 -1px;padding:6px 8px;
 border:1px solid var(--uk-gold-dim);border-radius:0;background:var(--uk-tab-surface);color:var(--uk-ivory);font:600 .8125rem/1.25 var(--uk-sans);text-align:center;overflow-wrap:break-word;box-shadow:var(--uk-rule);cursor:pointer;-webkit-tap-highlight-color:transparent}
.uk-seg>.uk-seg-btn:first-child{margin-left:0;border-radius:var(--uk-radius) 0 0 var(--uk-radius)}
.uk-seg>.uk-seg-btn:last-child{border-radius:0 var(--uk-radius) var(--uk-radius) 0}
.uk-seg>.uk-seg-btn:only-child{border-radius:var(--uk-radius)}
.uk-seg>.uk-seg-btn>small{display:block;font:500 .71875rem/1.2 var(--uk-sans);color:var(--uk-ivory-dim)}
.uk-seg>.uk-seg-btn:hover:not(:disabled){border-color:var(--uk-gold);background:linear-gradient(180deg,#2a3b55,#16233a);color:var(--uk-gold-text);z-index:1}
.uk-seg>.uk-seg-btn[aria-pressed="true"],.uk-seg>.uk-seg-btn[aria-checked="true"],.uk-seg>.uk-seg-btn.is-selected{z-index:1;border-color:var(--uk-gold-hi);background:var(--uk-surface-lit);color:var(--uk-gold-text);
 box-shadow:inset 0 -3px 0 var(--uk-gold-hi),inset 0 0 0 2px var(--uk-navy-0),inset 0 0 0 3px #e6c88955}
.uk-seg>.uk-seg-btn[aria-pressed="true"]>small,.uk-seg>.uk-seg-btn[aria-checked="true"]>small,.uk-seg>.uk-seg-btn.is-selected>small{color:var(--uk-ivory)}
.uk-seg>.uk-seg-btn:focus-visible{outline:3px solid var(--uk-focus);outline-offset:2px;z-index:2}
.uk-seg>.uk-seg-btn:disabled{border-color:#5b5040;opacity:.5;cursor:not-allowed}

/* 25.5 Slot corner badges and the selected state. A badge sits inside a .uk-slot: count at the bottom right, or a small icon (lock, hourglass, E for equipped) at a top corner. Badges are not tappable. */
.uk-slot-badge{position:absolute;right:2px;bottom:2px;z-index:1;box-sizing:border-box;min-width:18px;padding:0 4px;border:1px solid var(--uk-gold-dim);border-radius:9px;background:var(--uk-navy-0);color:var(--uk-gold-text);font:700 .72rem/1.5 var(--uk-sans);text-align:center;pointer-events:none}
.uk-slot-badge.is-tl,.uk-slot-badge.is-tr,.uk-slot-badge.is-bl{display:grid;place-items:center;width:22px;height:22px;min-width:0;padding:0;border-radius:11px;line-height:1}
.uk-slot-badge.is-tl{top:2px;left:2px;right:auto;bottom:auto}
.uk-slot-badge.is-tr{top:2px;right:2px;bottom:auto}
.uk-slot-badge.is-bl{left:2px;right:auto}
.uk-slot-badge .uk-ico,.uk-slot-badge .uk-art{width:16px;height:16px;margin:0}
/* Selected: a gold ring and a tick (shape and colour; the tick sits at the top right, so use the other three corners for badges). Also set aria-pressed="true" on the button. */
.uk-slot.is-selected{border-color:var(--uk-gold-hi);box-shadow:0 0 0 1px var(--uk-navy-0),0 0 0 3px var(--uk-gold-hi),0 0 12px #f0ce8366}
.uk-slot.is-selected::after{content:"\2713";position:absolute;top:2px;right:2px;z-index:1;display:grid;place-items:center;width:18px;height:18px;border-radius:50%;background:var(--uk-gold-hi);color:var(--uk-navy-0);font:700 .75rem/1 var(--uk-sans);pointer-events:none}

/* 25.6 State tag that may wrap: "Limit reached" or "Awaiting refund" in a two-column card at 320 px (the plain tag is nowrap). */
.uk-state.is-wrap{box-sizing:border-box;max-width:100%;padding:2px 8px;justify-content:center;border-radius:12px;line-height:1.35;white-space:normal;overflow-wrap:break-word;text-align:center}
/* ---- Tier 0 line on the item card: the gold highlight frame, one level above a normal card. Drawn only while IRP_T0_AFFIXES_VERSION is on
   (public/equipment-view.js tierZeroLine). Name, sentence and note are always visible; nothing is hover-only. Wraps at 320px. ---- */
.tier0-line{position:relative;margin:10px 0;padding:10px 12px;border:1px solid var(--uk-gold-hi);border-radius:var(--uk-radius-card);background:var(--uk-surface-lit);box-shadow:var(--uk-rule),0 0 10px #f0ce8333;color:var(--uk-ivory);overflow-wrap:anywhere}
.tier0-line .tier0-kicker{display:inline-block;margin-right:8px;padding:1px 6px;border:1px solid var(--uk-gold);border-radius:var(--uk-radius);color:var(--uk-gold-text);font-size:.75rem;letter-spacing:.06em;text-transform:uppercase}
.tier0-line strong{color:var(--uk-gold-text);font-size:1rem}
/* Round five (QA R3): the class is written twice so that this rule wins on WEIGHT (0,2,1), not on the order of the stylesheets, against any `.some-card p` rule (0,1,1). */
.tier0-line.tier0-line p{margin:6px 0 4px;font-size:.9375rem;line-height:1.5;color:#fff0c8}
/* Round six (fifth QA read R2): the Need / Greed / Pass window. The line's NAME sits in each card's existing detail line (the .tier0-tag below, beside class and rarity), and nothing else of the line is inside a card, so a Tier 0 card is exactly as high as any other card and its three buttons are where they are on every card. What the line does is written AFTER the last card (public/loot-roll-window.js notes()): one closed row per line, the name and ONE SHORT LINE, 44px high to tap; a tap opens the whole sentence (never hover-only). Closed, the row is one line (nowrap, ellipsis); open, it wraps. Every selector carries .tier0-roll-text, which is drawn only while IRP_T0_AFFIXES_VERSION is on. */
.loot-roll-window details.tier0-roll-text{margin:0;border-top:1px solid #ffffff20;color:#fff0c8;font-size:.8125rem}
.loot-roll-window details.tier0-roll-text summary{box-sizing:border-box;min-height:44px;padding:12px 0;line-height:1.25rem;cursor:pointer;white-space:normal;overflow-wrap:anywhere}
.loot-roll-window details.tier0-roll-text[open] summary{white-space:normal;overflow-wrap:anywhere}
.loot-roll-window details.tier0-roll-text summary strong{color:var(--uk-gold-text)}
.loot-roll-window details.tier0-roll-text p{margin:0 0 10px;color:#fff0c8;font-size:.875rem;line-height:1.45;overflow-wrap:anywhere}
.tier0-line small{display:block;color:var(--uk-ivory-dim);font-size:.8125rem;line-height:1.45}
/* Tier 0 in the Enchanter (round three): the line is a FIXED row, gold-framed like the card block, with a small closed lock where other rows have the lock button. Nothing is hover-only. */
/* Round five (QA R3): `.tier0-fixed` is written twice in the three rules below (frame, name, sentence) and in the note rule, so that they win on WEIGHT against `.workshop-page .enchanter-affix`, `.enchanter-sheet .enchanter-affix` (0,2,0) and `.workshop-page .enchanter-affix small` / `strong` (0,2,1) whatever the order of the stylesheets. */
.enchanter-affix.tier0-fixed.tier0-fixed{border:1px solid var(--uk-gold-hi);border-radius:var(--uk-radius-card);background:var(--uk-surface-lit);box-shadow:var(--uk-rule),0 0 10px #f0ce8333;color:var(--uk-ivory);padding:8px 10px;overflow-wrap:anywhere}
.enchanter-affix.tier0-fixed.tier0-fixed strong{color:var(--uk-gold-text)}
.enchanter-affix.tier0-fixed .tier0-kicker{display:inline-block;margin-right:6px;padding:1px 6px;border:1px solid var(--uk-gold);border-radius:var(--uk-radius);color:var(--uk-gold-text);font-size:.75rem;letter-spacing:.06em;text-transform:uppercase}
/* Round four (QA N1): the row holds a sentence, so it must wrap. workshops-combat.css:141 makes .enchanter-affix-main a flex row and :143 sets white-space:nowrap on its small; both are undone here for the Tier 0 fixed row ONLY (every selector carries .tier0-fixed, so no other Enchanter row changes). The row is not a control: default cursor, text from the top. */
.enchanter-affix.tier0-fixed .enchanter-affix-main{display:block}
.enchanter-sheet .enchanter-affix.tier0-fixed,.enchanter-affix.tier0-fixed{cursor:default;align-items:flex-start}
.enchanter-affix.tier0-fixed .enchanter-affix-main strong{display:block;white-space:normal}
.enchanter-affix.tier0-fixed.tier0-fixed small{display:block;margin-top:4px;color:#fff0c8;font-size:.875rem;line-height:1.45;white-space:normal;overflow-wrap:anywhere}
.enchanter-affix.tier0-fixed .enchanter-affix-main small{white-space:normal}
.enchanter-affix.tier0-fixed.tier0-fixed small.tier0-fixed-note{color:var(--uk-ivory-dim);font-size:.8125rem}
.tier0-lock{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:48px;color:var(--uk-gold-text);font-size:.75rem}
.tier0-lock svg{width:18px;height:20px}
/* Tier 0 marks outside the card (round three): the loot line, the bag tile and the comparison say "Tier 0" in gold, in words. */
.tier0-tag{display:inline-block;margin-left:6px;padding:0 6px;border:1px solid var(--uk-gold);border-radius:var(--uk-radius);color:var(--uk-gold-text);font-size:.75rem;letter-spacing:.04em;white-space:nowrap}
/* The gold Tier 0 frame on every tile, card and list row that uses the rarity class (bag, chests, market, inspection, salvage list, loot flight) and on
   the Enchanter's and Blacksmith's equipment list (public/workshop-view.js t0Tile). Nothing moves: an outline and shadows only.
   Tidy-up round: the frame wins on WEIGHT. The class is written four times (0,4,0), so it beats `.item-tile:has(.oath-gear)` (0,2,0, public/oath.css:
   box-shadow:none, which had left only a thin inner line on a bag tile), `.workshop-page .workshop-item[aria-pressed=true]` (0,3,0) and every other
   rarity, list or theme rule of a tile, whatever the order of the stylesheets.
   Seen at a glance, also on an Epic tile whose own border is gold: a pale ring 3 px wide just inside the tile's edge (an outline is painted over the item
   picture), and outside the edge a dark line, a gold ring and a gold glow. */
.tier0-item.tier0-item.tier0-item.tier0-item{outline:3px solid #fff1b8;outline-offset:-5px;box-shadow:0 0 0 1px #1a1206,0 0 0 3px #ffd86b,0 0 14px 4px #f0ce83b3}
/* The states the outline would otherwise hide, one level heavier (0,5,0): keyboard focus keeps the focus ring, a selected tile (market bag, account
   chest) keeps its selection ring outside the tile, and the chosen row of the equipment list keeps its gold bar on the left. */
.tier0-item.tier0-item.tier0-item.tier0-item:focus-visible{outline:3px solid var(--uk-focus);outline-offset:1px}
.tier0-item.tier0-item.tier0-item.tier0-item.selected{outline:2px solid #f0d38b;outline-offset:1px}
.workshop-item.tier0-item.tier0-item.tier0-item.tier0-item[aria-pressed=true]{box-shadow:inset 3px 0 #cfad6c,0 0 0 1px #1a1206,0 0 0 3px #ffd86b,0 0 14px 4px #f0ce83b3}
.tier0-compare-note{margin:6px 0;padding:6px 8px;border:1px solid var(--uk-gold);border-radius:var(--uk-radius);color:#fff0c8;font-size:.875rem;line-height:1.45;overflow-wrap:anywhere}
/* Closeable banners (public/banner-close.js): every [data-banner] gets a × that hides it until what it says changes. */
[data-banner][hidden],[data-banner-host][hidden]{display:none!important}
.banner-has-corner-close{position:relative;padding-right:58px!important}
.banner-has-corner-close>.banner-close{position:absolute;top:6px;right:6px;margin:0;width:44px;min-width:44px;min-height:44px;font:600 1.125rem/1 system-ui}
.next-step.banner-has-corner-close>.banner-close{top:50%;transform:translateY(-50%)}
/* Earned titles (IRP_EARNED_TITLES_VERSION): the title under the name, and the Titles list on the character screen. */
.uk-doll-name .uk-doll-title{color:var(--uk-gold,#e2b85c);font-style:italic}
.uc-titles .uc-title-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,220px),1fr));gap:8px;margin-top:8px}
.uc-title{display:grid;gap:2px;min-height:44px;padding:8px 10px;text-align:left;border:1px solid rgba(226,184,92,.35);border-radius:6px;background:rgba(0,0,0,.25);color:inherit}
.uc-title small{color:var(--uk-ivory-dim);font-size:.8rem}
.uc-title.is-selected{border-color:var(--uk-gold,#e2b85c);box-shadow:0 0 0 1px var(--uk-gold,#e2b85c) inset}
.uc-title.is-locked{opacity:.55}
/* Zone boss streak (IRP_ZONE_BOSS_STREAK_VERSION, default off; lib/zone-boss-streak.js): one small full-width line in the zone controls, only while a streak is live. */
.shell .field-controls>.field-streak,.field-controls>.field-streak{display:block;grid-column:1/-1;flex-basis:100%;min-width:0;margin:0;padding:2px 4px;color:#f0d38b;font-size:.75rem;line-height:1.35;text-align:center;overflow-wrap:anywhere}
.shell .field-controls>.field-streak[hidden],.field-controls>.field-streak[hidden]{display:none}
/* The level-up prompt and the first-fight card sit outside the page shell, so section 9 never reached them and they kept the old red button.
   They use the same gold main button (13 Oct pass). */
:is(.next-prompt-host,.combat-intro-card) :is(.red-button,.uk-btn-primary){min-height:var(--uk-tap);padding:9px 18px;border:1px solid #e6c98f;border-radius:var(--uk-radius);background:linear-gradient(180deg,#c9a468,#8f6f3c);color:#1b1509;font:700 .8125rem/1.3 system-ui;text-decoration:none;box-shadow:inset 0 1px 0 #fff2c95c,inset 0 0 0 2px #8a682f66,0 2px 5px #0005;cursor:pointer}
:is(.next-prompt-host,.combat-intro-card) :is(.red-button,.uk-btn-primary):hover:not(:disabled){border-color:#fbe3ac;background:linear-gradient(180deg,#d8b674,#9c7a44)}
:is(.next-prompt-host,.combat-intro-card) :is(.red-button,.uk-btn-primary):disabled{border-color:#7a6b4c;color:#3a3427;filter:none}
/* Release polish QA (14 Oct): the party invitation pop-up also sits outside the shell, so its Accept kept the old red; the same gold main button. */
#partyInvitations :is(.red-button,.uk-btn-primary){min-height:var(--uk-tap);padding:9px 18px;border:1px solid #e6c98f;border-radius:var(--uk-radius);background:linear-gradient(180deg,#c9a468,#8f6f3c);color:#1b1509;font:700 .8125rem/1.3 system-ui;text-decoration:none;text-shadow:none;box-shadow:inset 0 1px 0 #fff2c95c,inset 0 0 0 2px #8a682f66,0 2px 5px #0005;cursor:pointer}
#partyInvitations :is(.red-button,.uk-btn-primary):hover:not(:disabled){border-color:#fbe3ac;background:linear-gradient(180deg,#d8b674,#9c7a44)}
#partyInvitations :is(.red-button,.uk-btn-primary):disabled{border-color:#7a6b4c;color:#3a3427;filter:none}
/* The prompt keeps its narrow side padding, so Level N!, Spend points and the close button still share one line in its 360 px box. */
.next-prompt-host .next-prompt :is(.red-button,.uk-btn-primary){padding:0 12px}
/* Touch screens keep :hover on the last tapped tab, and the hover look (gold edge) then read as a second selected tab next to the real one
   (13 Oct pass, phone Town tabs). Where there is no real hover, an unselected tab keeps its resting look. */
@media(hover:none){:is(.shell,.modal-backdrop,.handbook,.loot-roll-window,.adventure-notices):is(.shell,.modal-backdrop,.handbook,.loot-roll-window,.adventure-notices) :is(.section-tabs,.region-tabs,.market-tabs,.rank-tabs,.notice-board-tabs,.workshop-service-tabs,.inventory-tabs,.inventory-dialog-tabs,.dev-tabs,.crown-categories,.chat-channels,.tree-toolbar>nav,.uk-tabs)>:is(button,a):hover:not(:disabled):not(.active,.selected,.chosen,[aria-selected="true"],[aria-pressed="true"],[aria-current="page"],[aria-current="true"]),
:is(.shell,.modal-backdrop,.handbook,.loot-roll-window,.adventure-notices):is(.shell,.modal-backdrop,.handbook,.loot-roll-window,.adventure-notices) .market-category-group>button:hover:not(:disabled):not(.active,.selected,.chosen,[aria-selected="true"],[aria-pressed="true"],[aria-current="page"],[aria-current="true"]){border-color:var(--uk-gold-dim);background:var(--uk-tab-surface);color:#d9d3c2}}
/* Tier III Ultimates (IRP_SKILL_TIER3_VERSION=1; only Ultimate nodes and the Ultimate slot carry these classes, so with the switch off nothing matches).
   The tree node wears a gold double ring in every state, dimmer before it is learned (as other skills show available/learned), and the ability-bar slot header gets a native star glyph. */
.class-tree-skill.ultimate .class-tree-node:not(.selected){border-color:#8f7643!important;box-shadow:0 3px 9px #000b,0 0 0 4px #0d1420,0 0 0 5.5px #a3854a99!important}
.class-tree-skill.ultimate.available .class-tree-node:not(.selected){border-color:#c9a254!important;box-shadow:0 3px 9px #000b,0 0 0 4px #0d1420,0 0 0 5.5px #c9a254cc,0 0 16px #c9a25444!important}
.class-tree-skill.ultimate.learned .class-tree-node:not(.selected){border-color:#f2d27e!important;box-shadow:0 0 0 4px #171b20,0 0 0 6.5px #e6bf62,0 0 26px #e6bf6270!important}
.class-tree-skill.ultimate.locked .class-tree-node:not(.selected){border-color:#6d6450!important;box-shadow:0 3px 9px #000b,0 0 0 4px #0d1420,0 0 0 5.5px #6d645099!important}
.ultimate-glyph{display:inline-block;flex:none;width:1.25em;height:1.25em;margin-right:.4em;vertical-align:-.3em;line-height:0}
.ultimate-glyph svg{width:100%;height:100%;fill:#f1cf78;stroke:#5a3f12;stroke-width:.8;stroke-linejoin:round;filter:drop-shadow(0 0 3px #e6bf6288)}
/* Sound settings (IRP_SOUND_VERSION; public/sound-fx.js panel()): the toggle sits in the dialog's .checkbox-row, the volume slider takes the gold accent and shows its value as a %. */
.sound-settings{display:grid;gap:6px;margin:4px 0 8px}
.sound-settings h3{margin:0}
.sound-settings .checkbox-row input{accent-color:#b99956}
.sound-settings .checkbox-row{margin:0}
.sound-settings .sound-volume{display:grid;gap:4px;min-height:44px;font-size:.8125rem;color:#e6dbc4}
.sound-settings .sound-volume-line{display:flex;justify-content:space-between;align-items:baseline;gap:10px}
.sound-settings .sound-volume output{min-width:3.5ch;text-align:right;font-variant-numeric:tabular-nums;color:#e2c27f;font-weight:600}
.sound-settings input[type=range]{width:100%;min-height:32px;margin:0;accent-color:#b99956;cursor:pointer}
/* Alerts (IRP_ALERTS_VERSION; public/alerts.js panel()): sits under Sound in Settings with the same h3. Header row: bell tile, title and one line, On/Off state.
   The five alerts are one light card of rows: painted icon tile, name and one short line, a checkbox on the right (44 px tap). Rows dim while alerts are off on this device. */
.alerts-settings{display:grid;gap:10px;margin:14px 0 8px;min-width:0}
.alerts-settings .alerts-head{display:grid;grid-template-columns:40px minmax(0,1fr) auto;gap:10px;align-items:center}
.alerts-settings .alerts-title h3{margin:0}
.alerts-settings .alerts-title .uk-hint{margin-top:2px}
.alerts-settings .uk-state{align-self:start;margin-top:4px;color:var(--uk-locked-text)}
.alerts-settings .uk-state.is-on{color:var(--uk-done)}
.alerts-settings .alerts-line{margin:0;padding:8px 10px;border:1px solid #b69a6066;border-radius:var(--uk-radius);background:var(--uk-navy-0);color:var(--uk-ivory);font:500 .8125rem/1.4 var(--uk-sans)}
.alerts-settings .alerts-buttons{display:flex;flex-wrap:wrap;gap:8px}
.alerts-settings .alerts-buttons>button{flex:1 1 9rem;min-height:44px;margin:0}
.alerts-settings .alerts-kinds{display:grid;margin:0;padding:4px 10px;list-style:none;border:1px solid #6f5d3c;border-radius:var(--uk-radius-card);background:linear-gradient(150deg,#182438,#0f1928);box-shadow:inset 0 0 0 2px var(--uk-navy-0),inset 0 0 0 3px #b8955a26}
.alerts-settings .alerts-kinds>li+li{border-top:1px solid #b69a6033}
.alerts-settings .alerts-kind{display:grid;grid-template-columns:36px minmax(0,1fr) 44px;gap:10px;align-items:center;min-height:52px;margin:0;padding:6px 0;cursor:pointer}
.alerts-settings .alerts-kind .uk-icon-tile{width:36px;height:36px}
.alerts-settings .alerts-kind-text{display:grid;gap:1px;min-width:0}
.alerts-settings .alerts-kind-text strong{color:var(--uk-ivory);font:600 .875rem/1.3 var(--uk-sans)}
.alerts-settings .alerts-kind-text small{color:var(--uk-ivory-dim);font:500 .75rem/1.3 var(--uk-sans)}
.alerts-settings .alerts-kind input{justify-self:center;width:22px;height:22px;min-height:0;margin:0;accent-color:#b99956;cursor:pointer}
.alerts-settings .alerts-kind.is-off{cursor:default}
.alerts-settings .alerts-kind.is-off .uk-icon-tile,.alerts-settings .alerts-kind.is-off .alerts-kind-text{opacity:.55}
.alerts-settings .alerts-status:empty{display:none}
/* Earned titles on the default Hero screen (IRP_EARNED_TITLES_VERSION, IRP_UI_CHARACTER_VERSION off; public/expansion-ui.js earnedTitles): the chosen title under the name and the Titles list. */
.exp-heading .exp-heading-title{margin:2px 0 0;color:#e2b85c;font:italic 1.125rem/1.3 Georgia,'Times New Roman',serif;letter-spacing:.02em;text-shadow:0 1px 3px #000}
.legacy-titles{margin:0 0 18px;min-width:0}
.legacy-titles .uc-titles{border:1px solid var(--exp-border,#625337);border-radius:6px;background:linear-gradient(180deg,#14212acc,#0b1217e6);padding:0 14px}
.legacy-titles .uc-titles>summary{min-height:44px;display:flex;align-items:center;cursor:pointer;font:1.0625rem/1.3 Georgia,'Times New Roman',serif;color:var(--exp-gold,#d2b576)}
.legacy-titles .uc-titles[open]{padding-bottom:14px}
.legacy-titles .uc-titles .small-note{margin:4px 0 0;color:#aaa28f;font-size:.8125rem}
.legacy-titles .uc-title{cursor:pointer;font:inherit;color:#e7ddc6}
.legacy-titles .uc-title b{font-family:Georgia,'Times New Roman',serif;font-weight:normal;color:#ead6a4}
.legacy-titles .uc-title small{color:#b8ae98}
.legacy-titles .uc-title.is-locked{cursor:default}
.legacy-titles .uc-title-list>.secondary{min-height:44px;grid-column:1/-1;justify-self:start}
/* QA 2026-10-16: on a phone the header text runs across the whole banner, so the painted right side (lamps, coins) sat under the words. Keep the veil strong across the full width there. */
@media(max-width:899px){.uk-head::before{background:linear-gradient(90deg,#0c1723f2,#0c1723e6 60%,#0c1723c4)}.uk-head-text h1{text-shadow:0 1px 4px #000}}
/* QA 2026-10-16: header stat numbers share one baseline when a label wraps to two lines (kept after section 25 because the kit above is frozen). */
.uk-stat{justify-content:flex-end}
/* Auction House buy-order picker: the chosen category and material (IRP_UI_BUY_CATEGORIES_VERSION). */
.shell .ah-page .ah-bcat.is-on,.shell .ah-page .ah-bmat.is-on{border-color:var(--uk-gold,#e0b85a);box-shadow:inset 0 0 0 2px var(--uk-gold,#e0b85a)}
/* Icon tile (menu standard, docs/MENU_STANDARD.md): one square behind every small picture in a row of choices, so painted items,
   painted scrolls and gems read as one set. The ground is the item paintings' own dark teal, so a cell of an item sheet sits on it with no seam.
   Put the art straight inside; rarity frames, badges and backgrounds inside are switched off. */
.uk-icon-tile{display:grid;place-items:center;box-sizing:border-box;width:40px;height:40px;padding:2px;overflow:hidden;border:1px solid var(--uk-gold-dim);border-radius:var(--uk-radius-icon);background:#13242c;box-shadow:inset 0 0 0 1px var(--uk-navy-0)}
.uk-icon-tile>*{display:block;width:100%;height:100%;margin:0;border:0;border-radius:0;box-shadow:none;background-color:transparent;filter:none;object-fit:contain}
.uk-icon-tile .item-tier-badge,.uk-icon-tile>b{display:none}
:is(button,a)[aria-pressed="true"] .uk-icon-tile,:is(button,a)[aria-selected="true"] .uk-icon-tile{border-color:var(--uk-gold-hi)}

/* ==== Menu standard pass (docs/MENU_STANDARD.md, 17 Oct 2026) ===============================================================
   Shared bits for menus moved onto the Leaderboards look: a small eyebrow over the title, a portrait in the header icon slot,
   painted icons in link tabs, and framed sections that stack with one gap. Each menu's own rules follow, scoped to its page class. */
.ms-eyebrow{margin:0 0 2px;color:var(--uk-gold);font:600 .6875rem/1.3 var(--uk-sans,system-ui);letter-spacing:.14em;text-transform:uppercase;text-shadow:0 1px 3px #000}
.uk-head>.ms-strip{grid-column:1/-1;padding:10px 12px;border-radius:var(--uk-radius);background:var(--uk-navy-0)}
.ms-strip .uk-stats{padding:0;border:0}
.ms-strip .uk-stat dd{white-space:nowrap}
@media(max-width:560px){.uk-head>.ms-strip{padding:6px 10px}.ms-strip .uk-stat dd{font-size:1.05rem}.ms-head .uk-head-icon,.ms-head .ms-eyebrow{display:none}.ms-head{grid-template-columns:minmax(0,1fr);gap:8px}.ms-head::before{background:linear-gradient(90deg,#0c1723f5,#0c1723e6 70%,#0c1723d0)}}
.shell .uk-tabs.ms-tabs>a{gap:8px}
.shell .uk-tabs.ms-tabs .uk-art{width:26px;height:26px;margin:-2px 0}
.shell :is(.ms-shop,.ms-page) .uk-head{margin:0 0 14px}
.shell :is(.ms-shop,.ms-page)>.uk-frame+.uk-frame{margin-top:14px}
.shell :is(.ms-shop,.ms-page) .uk-frame>.uk-heading{margin-top:0}

/* Dawn Shop: framed category sections; each product is one wide card (picture left, words and the one button right), two to a row. */
.shell .ms-shop{max-width:none}
.shell .ms-shop .crown-alpha-notice{margin:0 0 14px}
.shell .ms-shop .crown-categories.ms-tabs{margin:0 0 14px;padding:0 0 10px;gap:6px;overflow:visible}
.shell .ms-shop .crown-category{margin:0 0 14px;scroll-margin-top:85px}
.shell .ms-shop .crown-category>h2.uk-heading{padding:0 0 12px;margin:0 0 14px;border:0;font:1.375rem/1.2 var(--uk-serif,Georgia);color:var(--uk-gold-text)}
.shell .ms-shop .crown-products{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,400px),1fr));gap:10px}
.shell .ms-shop .crown-products article{display:grid;grid-template-columns:128px minmax(0,1fr);align-items:stretch;padding:0;border:1px solid var(--uk-gold-dim);border-radius:var(--uk-radius-card);background:linear-gradient(150deg,#1c2b40,#101a2b);box-shadow:var(--uk-rule);overflow:hidden}
.shell .ms-shop .crown-art-stage{height:auto;min-height:0;margin:0;border:0;border-right:1px solid #b69a6033;background:radial-gradient(ellipse at 50% 60%,#b5986133,transparent 70%)}
.shell .ms-shop .crown-art-stage .crown-product-art{width:100%;height:100%;max-height:150px;margin:0;padding:22px 10px 8px;box-sizing:border-box}
.shell .ms-shop .crown-scope{left:6px;top:6px;padding:2px 5px;font-size:.6875rem;letter-spacing:.06em}
.shell .ms-shop .crown-product-copy{display:flex;flex-direction:column;gap:2px;padding:12px 14px}
.shell .ms-shop .crown-products h3{margin:0 0 2px;font:1.125rem/1.25 var(--uk-serif,Georgia);color:var(--uk-gold-text)}
.shell .ms-shop .crown-products p{margin:0;font:.875rem/1.45 var(--uk-sans,system-ui);color:var(--uk-ivory)}
.shell .ms-shop .crown-product-meta{margin:auto 0 8px;padding-top:6px}
.shell .ms-shop .crown-product-meta small{font-size:.75rem;color:var(--uk-ivory-dim)}
.shell .ms-shop .crown-products button[data-shop-claim]{width:100%;font-size:.8125rem}
.shell .ms-shop .crown-offline-cap b{font-size:1.25rem}
.shell .ms-shop .ms-notes ul{margin:0;padding-left:1.1em;display:grid;gap:6px;line-height:1.45}
.shell .ms-shop .ms-notes>p{margin:0 0 8px;color:var(--uk-ivory-dim)}
.shell .ms-shop .crown-shop-footer{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin-top:4px}
@media(max-width:560px){
 .shell .ms-shop .crown-products article{grid-template-columns:96px minmax(0,1fr)}
 .shell .ms-shop .crown-art-stage .crown-product-art{max-height:120px;padding:22px 4px 6px}
 .shell .ms-shop .crown-categories.ms-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
 .shell .ms-shop .crown-categories.ms-tabs>a{flex-direction:column;gap:2px;padding:6px 4px;font-size:.75rem}
}

/* Gathering: the four squire cards end on one line (the button sits at the bottom of every card), and the rows below are framed like the rest. */
.shell .gathering-page.ms-page .gather-squire{display:flex;flex-direction:column}
.shell .gathering-page.ms-page .gather-squire>form{margin-top:auto;padding-top:10px}
.shell .gathering-page.ms-page .gather-squire>form button{width:100%}
.shell .gathering-page.ms-page .gather-ready{margin:0 0 12px}
.shell .gathering-page.ms-page .gather-squire dl>.gather-aura{display:block}
.shell .gathering-page.ms-page .gather-squire dl>.gather-aura dd{margin:2px 0 0;text-align:left}

/* Account and guild chest: the finished-crafts and carried-stock panels sit in the same light frame as the chest columns above them. */
.shell .account-storage.ms-page>.crafted-bank,.shell .account-storage.ms-page>.craft-stock{margin:16px 0 0;padding:18px;border:0;background:linear-gradient(135deg,#182638,#0c1624)}
.shell .account-storage.ms-page>.craft-stock>header{margin-top:0}

/* Quests: the four tabs share the full row like every other kit tab strip (endgame.css capped each at 240 px). */
.shell .quest-menu.ms-page .quest-tabs.ms-tabs{margin:16px 0 24px}
.shell .quest-menu.ms-page .quest-tabs.ms-tabs>button{max-width:none}
/* Phones (24 Oct): the four tabs in two even rows of two, never three over one or two over two of different widths. */
@media(min-width:361px) and (max-width:560px){.shell .quest-menu.ms-page .quest-tabs.ms-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.shell .quest-menu.ms-page .quest-tabs.ms-tabs>button{width:100%;min-width:0}}

/* ==== Compact working headers (switch IRP_COMPACT_HEADS_VERSION, lib/compact-heads.js; review UX07, visual handoff 19 Oct) ==
   The painted banner stays as a dimmed crop; the header keeps its title, one sentence and its numbers, but on one band: about 88px on a
   desktop and a little more on a phone, so the first task sits in the first screen. The class is set on <html> by public/ui-shell.js.
   Height still grows for long titles and enlarged text. Off: no class, nothing here applies. */
:root.uk-compact-heads .shell .uk-head{grid-template-columns:auto minmax(0,1fr) auto;min-height:0;gap:2px 14px;padding:10px 18px;--uk-frame-w:12px}
:root.uk-compact-heads .shell .uk-head .uk-head-icon,:root.uk-compact-heads .shell .uk-head .uk-head-icon .uk-art,:root.uk-compact-heads .shell .uk-head .uk-head-icon .uk-ico{width:44px;height:44px}
:root.uk-compact-heads .shell .uk-head-text h1{font-size:clamp(1.3rem,4.4vw,1.65rem)}
:root.uk-compact-heads .shell .uk-head .ms-eyebrow{display:none}
:root.uk-compact-heads .shell .uk-head-help{margin-top:2px;font-size:.9rem;line-height:1.35}
:root.uk-compact-heads .shell .uk-head>:is(.uk-stats,.ms-strip,.uk-lb-strip){grid-column:3;grid-row:1/span 2;align-self:center;margin:0;padding:8px 10px;border:1px solid #b69a6040;border-radius:var(--uk-radius);background:#0c1723d9}
:root.uk-compact-heads .shell .uk-head .uk-stats{grid-auto-columns:minmax(72px,auto)}
:root.uk-compact-heads .shell .uk-head>.uk-head-text{grid-column:2}
:root.uk-compact-heads .shell .uk-head>.uk-head-icon{grid-column:1;grid-row:1/span 2}
:root.uk-compact-heads .shell .uk-head .uk-stat>.uk-art{display:none}
:root.uk-compact-heads .shell .uk-head .uk-stat dd{font-size:1.2rem}
:root.uk-compact-heads .shell .uk-head .uk-stat dt{font-size:.66rem}
:root.uk-compact-heads .shell .painted-page-heading{min-height:0;padding:12px 18px!important}
:root.uk-compact-heads .shell .painted-page-heading>.eyebrow{display:none}
:root.uk-compact-heads .shell .painted-page-heading h1{margin:0;font-size:clamp(1.3rem,4.4vw,1.65rem)}
:root.uk-compact-heads .shell .painted-page-heading>p{margin:2px 0 0}
:root.uk-compact-heads .shell .painted-page-heading>.az-actions{margin-top:6px}
@media(max-width:700px){
 /* Phone: title and sentence on the left; the numbers become one short row under them. */
 :root.uk-compact-heads .shell .uk-head{grid-template-columns:minmax(0,1fr);padding:8px 12px;--uk-frame-w:10px}
 :root.uk-compact-heads .shell .uk-head .uk-head-icon{display:none}
 :root.uk-compact-heads .shell .uk-head>.uk-head-text{grid-column:1/-1}
 :root.uk-compact-heads .shell .uk-head-help{font-size:.85rem}
 :root.uk-compact-heads .shell .uk-head>:is(.uk-stats,.ms-strip,.uk-lb-strip){grid-row:auto;grid-column:1/-1;padding:6px 0 0;border:0;border-top:1px solid #b69a6040;border-radius:0;background:none}
 :root.uk-compact-heads .shell .uk-head .uk-stats{grid-auto-columns:minmax(0,1fr)}
 :root.uk-compact-heads .shell .uk-head .uk-stat{flex-direction:row-reverse;justify-content:center;align-items:baseline;gap:5px;padding:0 4px}
 :root.uk-compact-heads .shell .uk-head .uk-stat dd{font-size:1rem;flex-shrink:0;white-space:nowrap;overflow-wrap:normal}/* a number such as "0 of 1" stays on one line; its label wraps instead (full QA, 2 Nov) */
 :root.uk-compact-heads .shell .uk-head .uk-stat dt{font-size:.62rem;letter-spacing:.04em}
 :root.uk-compact-heads .shell .painted-page-heading{padding:10px 12px!important}
}
/* Quest groups (IRP_QUEST_GROUPS_VERSION, public/quest-menu.js): one next step, then Ready to claim, Accepted and a folded Available group; Events as a short inbox. */
.quest-menu .quest-next{display:grid;gap:6px;padding:var(--uk-pad,16px);margin:14px 0}
.quest-menu .quest-next h2{margin:0;font:1.25rem/1.25 var(--uk-serif,Georgia);color:var(--uk-gold-text)}
.quest-menu .quest-next p{margin:0;color:var(--uk-ivory)}
/* One goal (IRP_ONE_GOAL_VERSION): the same Next step box above Ready now on the Map. */
.world-map-page .one-goal-card{display:grid;gap:6px;padding:var(--uk-pad,16px);margin:14px 0}.world-map-page .one-goal-card h2{margin:0;font:1.25rem/1.25 var(--uk-serif,Georgia);color:var(--uk-gold-text)}.world-map-page .one-goal-card p{margin:0;color:var(--uk-ivory)}.world-map-page .one-goal-card .quest-next-eyebrow{margin:0;color:var(--uk-gold);font:600 .6875rem/1.3 var(--uk-sans,system-ui);letter-spacing:.14em;text-transform:uppercase}.world-map-page .one-goal-card button{justify-self:start;min-height:44px}
.quest-menu .quest-next>button{justify-self:start;min-height:44px}
.quest-menu .quest-next-eyebrow{margin:0;color:var(--uk-gold);font:600 .6875rem/1.3 var(--uk-sans,system-ui);letter-spacing:.14em;text-transform:uppercase}
.quest-menu .quest-group{margin:18px 0 0}
.quest-menu .quest-group>h2,.quest-menu details.quest-group>summary h2{margin:0 0 10px;font:1.125rem/1.25 var(--uk-serif,Georgia);color:var(--uk-gold-text)}
.quest-menu details.quest-group>summary{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px;min-height:44px;padding:8px 12px;border:1px solid var(--uk-rule,#3d382e);border-radius:var(--uk-radius,8px);cursor:pointer;list-style:none}
.quest-menu details.quest-group>summary::-webkit-details-marker{display:none}
.quest-menu details.quest-group>summary h2{margin:0}
.quest-menu details.quest-group>summary::after{content:"";margin-left:auto;align-self:center;width:8px;height:8px;border-right:2px solid var(--uk-gold);border-bottom:2px solid var(--uk-gold);transform:rotate(45deg)}
.quest-menu details.quest-group[open]>summary{margin-bottom:10px}
.quest-menu details.quest-group[open]>summary::after{transform:rotate(-135deg)}
.quest-menu .quest-group-hint{color:var(--uk-ivory-dim);font-size:.85rem}
.quest-menu .quest-group-note{margin:0 0 8px;color:var(--uk-ivory-dim)}
.quest-menu .quest-group-note button{margin-left:6px;min-height:44px}
/* Quest rows (menu pass, 30 Oct; public/quest-menu.js questRow, stepCard): each group a framed section of kit rows, the next step a painted event card with the zone's art. */
.quest-menu .quest-group.uk-frame{margin:16px 0 0}
.quest-menu .quest-group>h2.uk-heading{margin:0 0 12px;font:1.25rem/1.2 var(--uk-serif,Georgia)}
.quest-menu .quest-row .uk-row-main{align-items:flex-start;padding-bottom:6px}
.quest-menu .quest-row-art>img{object-position:50% 50%}
.quest-menu .quest-row-icon{flex:0 0 auto;width:52px;height:52px}
.quest-menu .quest-row-icon .uk-art{width:42px;height:42px}
.shell .quest-menu .quest-row p.quest-row-kicker{margin:0;font:700 .7rem/1.3 var(--uk-sans);letter-spacing:.1em;text-transform:uppercase;color:var(--uk-gold-text)}
.shell .quest-menu .quest-row .uk-row-title{font-size:1.1rem}
.shell .quest-menu .quest-row p.quest-row-goal{margin:0;font:400 .9rem/1.4 var(--uk-sans);color:var(--uk-ivory)}
.quest-menu .quest-row .uk-row-extra{margin-top:4px;max-width:420px}
.quest-menu .quest-row-count{flex:0 0 auto;font:600 .85rem/1 var(--uk-serif);color:var(--uk-gold-text);font-variant-numeric:tabular-nums}
/* Under the text, past the painted look's 56 px row art (painted-look.css) and the row gap. */
.quest-menu .quest-row .uk-row-foot{padding-left:78px}
.quest-menu .quest-row .uk-row-foot>button{flex:0 0 auto;min-width:150px;min-height:44px}
.quest-menu .quest-rewards{display:flex;flex-wrap:wrap;gap:6px;margin:0;padding:0;list-style:none}
.quest-menu .quest-rewards .uk-chip{min-height:30px;font-size:.8rem}
.quest-menu .quest-rewards .uk-chip .uk-art{width:22px;height:22px}
.quest-menu .quest-next.uk-event{--uk-accent:#8a6a2c;gap:0;padding:0;margin:14px 0 0}
.quest-menu .quest-next .uk-event-body{gap:8px;padding:20px 22px}
.quest-menu .quest-next h2{font-size:1.5rem}
.shell .quest-menu .quest-next p.quest-next-lore{margin:0;max-width:62ch;font:italic 400 .95rem/1.45 var(--uk-serif,Georgia);color:var(--uk-ivory-dim)}
.quest-menu .quest-next-goal{margin:0;font-size:1rem;color:var(--uk-ivory)}
.quest-menu .quest-next-progress{display:flex;align-items:center;gap:10px;max-width:440px}
.quest-menu .quest-next-progress .uk-progress{flex:1 1 auto}
.quest-menu .quest-next-action{margin-top:4px}
.quest-menu .quest-next-action>button{min-width:180px;min-height:44px}
.quest-menu .quest-next-art{min-height:170px;object-position:center}
@media(max-width:699px){
 .quest-menu .quest-next-art{display:block;order:-1;height:110px;min-height:0;object-position:center 40%;-webkit-mask-image:linear-gradient(180deg,#000 55%,transparent);mask-image:linear-gradient(180deg,#000 55%,transparent)}
 .quest-menu .quest-next .uk-event-body{padding:0 16px 16px}
 .quest-menu .quest-next h2{font-size:1.3rem}
 .quest-menu .quest-next-action>button{width:100%}
}
@media(max-width:560px){
 .quest-menu .quest-row .uk-row-foot{padding-left:10px}
 .quest-menu .quest-row .uk-row-foot>button{flex:1 1 100%}
}
.event-inbox details.event-older>summary{min-height:44px;display:flex;align-items:center;cursor:pointer;color:var(--uk-gold-text)}

/* ---- Card foot pin (alignment pass, 21 Oct): a .uk-card-foot that is also .uk-actions keeps its auto top margin, so the buttons of every card in a row line up
   at the bottom. Section 18 sets .uk-actions{margin:0} after section 15 and used to cancel the pin. */
.uk-card>.uk-card-foot{margin-top:auto}

/* Menu pass 21 Oct: page section tabs (Hero, Town services, Guide, Party) carry a painted icon beside the label. */
.section-tab:has(>.section-tab-art){display:inline-flex;align-items:center;justify-content:center;gap:7px}
.section-tab>.section-tab-art{flex:0 0 22px;width:22px;height:22px;margin:-3px 0}
@media(max-width:480px){.section-tab:has(>.section-tab-art){flex-direction:column;gap:2px}.section-tab>.section-tab-art{width:20px;height:20px;flex-basis:20px}}
/* Menu pass 21 Oct: Bag, Gems and Materials (and Party bag) sit in one even row with their icons, so Materials never wraps alone. */
:is(.shell,.modal-backdrop) :is(.inventory-panel,.inventory-dialog-tabs,.mmo-shell .inventory-panel) .inventory-tabs{display:grid;grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr)}
.inventory-tabs>button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:0}
.inventory-tabs .bag-tab-art{flex:0 0 22px;width:22px;height:22px}
.inventory-tabs .bag-tab-label{min-width:0;overflow-wrap:normal;word-break:normal;white-space:nowrap}
/* A narrow side bag (Town services, about 190 px): icon above the word, smaller type, so no label breaks inside a word. */
:is(.shell,.modal-backdrop) .inventory-tabs{container-type:inline-size}
@container (max-width:300px){.inventory-tabs>button{flex-direction:column;gap:2px;padding:6px 2px;font-size:.75rem}.inventory-tabs .bag-tab-art{width:18px;height:18px;flex-basis:18px}}
@media(max-width:480px){.inventory-tabs>button{flex-direction:column;gap:2px;padding:6px 4px;font-size:.8rem}}
/* Menu pass 21 Oct: Bestiary research steps as one row of four (two by two on a phone). A step lights once any zone has reached it. */
.fg-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:12px 0 14px;padding:0;list-style:none}
.fg-step{display:flex;flex-direction:column;gap:2px;padding:9px 12px;border:1px solid #b69a6040;border-radius:6px;background:var(--uk-navy-0);color:var(--uk-ivory);font-size:.875rem;line-height:1.3}
.fg-step strong{color:var(--uk-gold-text);font-weight:600}
.fg-step.fg-step-on{border-color:#d8b46c99}
@media(max-width:600px){.fg-steps{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Menu pass 21 Oct: Blacksmith and Enchanter say what the workshop is for under the name, like Alchemy and Scrolls. */
.workshop-heading .workshop-purpose{margin:4px 0 0;color:var(--uk-ivory,#efe6d2);font-size:.95rem;line-height:1.4;text-shadow:0 1px 3px #000}
@media(max-width:600px){.workshop-heading .workshop-purpose{font-size:.875rem}}
/* Menu pass 21 Oct: Auction House reviews show the exchange as a receipt: one row per amount, the total, then your gold after. */
.ah-receipt{display:grid;gap:0;margin:12px 0;padding:6px 14px;border:1px solid #b69a6055;border-radius:6px;background:var(--uk-navy-0,#0d1724)}
.ah-rc-row{display:flex;justify-content:space-between;align-items:baseline;gap:16px;padding:7px 0;border-top:1px solid #b69a6026}
.ah-rc-row:first-child{border-top:0}
.ah-rc-row dt{color:var(--uk-ivory,#efe6d2);font-size:.9rem}
.ah-rc-row dd{margin:0;color:var(--uk-gold-text,#ffe1aa);font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap}
.ah-rc-total{border-top:1px solid #d8b46c88}
.ah-rc-total dt,.ah-rc-total dd{font-weight:700;font-size:1rem}
.ah-rc-after dt,.ah-rc-after dd{color:#aab7c5;font-weight:500;font-size:.85rem}
.ah-rc-after.is-short dt,.ah-rc-after.is-short dd{color:#ff9c8a}
.ah-rc-what{margin:4px 0 0;font-weight:600}
.ah-rc-note{margin:6px 0 0;color:#c9cdd2;font-size:.875rem;line-height:1.45}
/* Menu pass 21 Oct: Welcome back says "All saved" up top as a chip, and the small print folds under one line at the foot. */
.return-dialog .return-saved{display:inline-flex;align-items:center;margin:6px 0 0 10px;padding:2px 10px;border:1px solid #7fbf8a88;border-radius:12px;background:#12261acc;color:#bfe8c6;font:600 .75rem/1.5 var(--uk-sans,system-ui)}
.return-dialog .return-stats+.return-note{margin-top:12px}
.return-dialog .return-rules{margin-top:14px;color:#c9cdd2;font-size:.875rem}
.return-dialog .return-rules{border-top:1px solid #52605b}
.return-dialog .return-rules>summary{cursor:pointer;min-height:44px;padding:12px 0;box-sizing:border-box;color:#f3d69e}
.return-dialog .return-rules>p{margin:4px 0 0;line-height:1.45}
/* Menu pass 21 Oct, combat strip: from level 10 your health bar sits above the fight on phones and tablets, as it already does below level 10. Wide screens show the party frame beside the field instead. */
.battle-hero-strip{justify-content:stretch}
@media(min-width:1180px){.battle-simple-row.battle-hero-strip{display:none}}
/* Menu pass 21 Oct, raid readiness: level and raid group as two ticked rows right above Enter. */
.uh-ready{display:flex;flex-wrap:wrap;gap:6px 14px;margin:10px 0 4px;padding:0;list-style:none}
.uh-ready>li{display:inline-flex;align-items:center;gap:6px;font-size:.875rem;color:var(--uk-ivory,#efe6d2)}
.uh-ready>li>.uk-art{width:20px;height:20px;flex:0 0 20px}
.uh-ready>li.is-no{color:#f0b9a8}
.uh-ready>li.is-ok{color:#bfe8c6}
/* Menu pass 21 Oct, compact workshops (Pat's video: "a bit of scrolling to see all the information"). Same content, tighter: a shorter banner and tabs, the
   Enchanter's price and button in the right column under the method, one-line modifier rows, and the Blacksmith's controls beside the item on wide screens. */
.shell .workshop-page .workshop-heading{padding-top:12px;padding-bottom:12px;min-height:0}
.shell .workshop-page .workshop-heading h1{font-size:1.6rem;margin:2px 0 0}
.shell .workshop-page .workshop-heading .workshop-purpose{font-size:.875rem;margin-top:2px}
.shell .workshop-page .workshop-service-tabs{margin:10px 0;gap:8px}
.shell .workshop-page .workshop-service-tabs>button{min-height:44px;padding:6px 14px;flex-direction:row;gap:8px}
.shell .workshop-page .workshop-service-tabs>button .workshop-art,.shell .workshop-page .workshop-service-tabs>button .rune-tab-mark{width:28px;height:28px;flex:0 0 28px}
.shell .workshop-page .workshop-service-tabs>button .workshop-art svg,.shell .workshop-page .workshop-service-tabs>button .rune-tab-mark img{width:28px;height:28px}
/* Enchanter: the form is one grid; the editor's two halves and the price strip are its cells (display:contents), so the price sits under the method. */
.shell .enchanter-window>.enchanter-sheet{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-areas:"item op" "item pay";align-items:start}
.shell .enchanter-window>.enchanter-sheet>.enchanter-editor{display:contents}
.shell .enchanter-window .enchanter-item{grid-area:item;padding:16px 18px;align-self:stretch}
.shell .enchanter-window .enchanter-operation{grid-area:op;padding:14px 18px 8px}
.shell .enchanter-window .enchanter-action-strip{grid-area:pay;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px 14px;align-items:center;margin:0 18px 16px;padding:12px;border:1px solid #74634d;border-radius:6px;background:#27231f}
.shell .enchanter-window .enchanter-action-strip .workshop-cost-title{grid-column:1/-1;margin:0}
.shell .enchanter-window .enchanter-payment{display:contents}
.shell .enchanter-window .enchanter-payment .workshop-cost{display:flex;gap:8px;margin:0;grid-column:1}
.shell .enchanter-window .enchanter-payment .workshop-cost>div{flex:1 1 0;min-width:0;padding:6px 8px}
.shell .enchanter-window .enchanter-payment .workshop-cost dd strong{font-size:1.05rem}
.shell .enchanter-window .enchanter-payment .workshop-cost dd span{font-size:.72rem}
.shell .enchanter-window .enchanter-payment>small{grid-column:1/-1;font-size:.75rem;color:#c9b48d}
.shell .enchanter-window .enchanter-confirm{grid-column:2;grid-row:2}
.shell .enchanter-window .enchanter-confirm .red-button{width:100%;min-height:44px}
.shell .enchanter-window .enchanter-confirm .workshop-risk{margin:6px 0 0;font-size:.75rem;line-height:1.35;text-align:center}
.shell .enchanter-window .enchanter-item-heading{margin-bottom:12px;padding-bottom:10px;gap:12px}
.shell .enchanter-window .enchanter-item-heading .gear-icon{width:56px;height:56px}
.shell .enchanter-window .enchanter-item-heading h2{font-size:1.2rem}
.shell .enchanter-window .enchanter-item-heading p{margin-top:2px!important}
.shell .enchanter-window .enchanter-affixes legend{margin-bottom:4px}
.shell .enchanter-window .enchanter-sheet p.enchanter-affix-caption{margin:4px 0 6px}
.shell .enchanter-window .enchanter-sheet .enchanter-affix{min-height:44px;padding:5px 10px;margin:0 0 4px}
.shell .enchanter-window .enchanter-affix-row .affix-lock{min-height:44px}
.shell .enchanter-window .enchanter-operation .workshop-operations{margin:0 0 10px}
.shell .enchanter-window .enchanter-operation .workshop-operations>button{min-height:58px;padding:6px 2px 8px;gap:4px}
.shell .enchanter-window .enchanter-operation .workshop-operations .gear-icon{width:28px;height:28px}
.shell .enchanter-window .enchanter-operation>header h3{font-size:1.15rem;margin:0 0 2px}
.shell .enchanter-window .enchanter-operation>header p{font-size:.8rem;line-height:1.45}
.shell .enchanter-window .enchanter-operation>header{margin-bottom:10px}
.shell .enchanter-window .enchanter-sheet p.enchanter-preview-target{margin:0 0 6px;font-size:.85rem}
.shell .enchanter-window .enchanter-sheet p.enchanter-preview-note{margin:6px 0 0;line-height:1.45}
.shell .enchanter-window .enchanter-pool{gap:4px 10px;margin:0 0 4px}
.shell .enchanter-window .enchanter-pool>span{font-size:.78rem}
.shell .enchanter-window .enchanter-affix.tier-heading{min-height:0;padding:0;margin:8px 0 4px;background:none}
.shell .enchanter-window dl.tier-odds{display:flex;flex-wrap:wrap;gap:4px;margin:0}
.shell .enchanter-window dl.tier-odds>div{flex:1 1 0;min-width:72px;padding:4px 8px;display:flex;justify-content:space-between;gap:6px;align-items:baseline}
.shell .enchanter-window dl.tier-odds dt,.shell .enchanter-window dl.tier-odds dd{margin:0;font-size:.78rem}
.shell .enchanter-window .enchanter-roll-preview{padding:8px 10px;margin:0}
.shell .enchanter-window .enchant-targets{padding:10px 12px;margin:0 0 10px}
.shell .enchanter-window .enchant-targets .et-chips{gap:6px}
.shell .enchanter-window .enchant-targets .et-chip>span{padding:4px 10px;min-height:32px}
.shell .enchanter-window .enchant-targets .et-chip.is-off{opacity:.45}
.shell .enchanter-window .enchant-targets .et-summary{margin:8px 0 0;font-size:.8rem;line-height:1.45}
.shell .enchanter-window .enchant-targets .enchant-target-stat{display:flex;flex-direction:column;gap:4px;font-size:.8rem}
.shell .enchanter-window .enchant-targets .ta-limits{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:8px;margin-top:8px}
.shell .enchanter-window .workshop-guide{margin-top:8px}
.shell .enchanter-window .enchanter-properties{margin-top:8px}
.shell .enchanter-window .enchant-tax-note{grid-column:1/-1;font-size:.75rem;color:#9fd3a6}
/* Ascend to Heroic inside the Enchanter's item column: the brown of the bench (not navy), inside the column's own padding, the price on one row. */
.shell .enchanter-window .ascend-panel.uk-card-light{margin:12px 0 0;padding:12px 14px;background:#27231f;border:1px solid #74634d;border-radius:6px;box-shadow:none}
.shell .enchanter-window .ascend-panel>h3{margin:0 0 2px}
.shell .enchanter-window .ascend-panel>h4{display:none}
.shell .enchanter-window .ascend-panel>.ascend-cost{display:flex;flex-wrap:wrap;gap:6px;margin:6px 0}
.shell .enchanter-window .ascend-panel>.ascend-cost>div{flex:1 1 140px;padding:6px 10px;background:#1c1915}
.shell .enchanter-window .ascend-panel.uk-card-light .uk-btn{margin:4px 0}
.shell .enchanter-window .ascend-panel .ascend-warning{background:#1c1915}
.shell .enchanter-window .ascend-panel .ascend-details{margin-top:6px}
/* Blacksmith: on wide screens the controls stand beside the item, its ranks and the extra details. */
@media(min-width:1100px){
 .shell .workshop-forge .workshop-layout{grid-template-columns:260px minmax(0,1fr)}
 .shell .workshop-forge .workshop-bench{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);column-gap:22px;row-gap:0;align-items:start;align-content:start;padding:16px 18px}
 .shell .workshop-forge .workshop-bench>*{grid-column:1;margin-top:0}
 .shell .workshop-forge .workshop-bench>form.workshop-target,.shell .workshop-forge .workshop-bench>.workshop-complete{grid-column:2;grid-row:1/span 12}
}
.shell .workshop-forge .workshop-bench>.eyebrow{margin:0 0 6px}
.shell .workshop-forge .workshop-workpiece{gap:12px;padding-bottom:10px;margin-bottom:10px}
.shell .workshop-forge .workshop-workpiece{grid-template-columns:96px minmax(0,1fr)}
.shell .workshop-forge .workshop-item-stage{width:96px;height:96px}
.shell .workshop-forge .workshop-stage-rank{white-space:nowrap}
.shell .workshop-forge .workshop-workpiece h2{font-size:1.25rem;margin:0}
.shell .workshop-forge .workshop-workpiece p{margin:2px 0 0}
.shell .workshop-forge .workshop-ranks{padding:8px 12px;margin:0 0 10px}
.shell .workshop-forge .workshop-ranks strong{font-size:1.35rem}
.shell .workshop-forge .workshop-result{margin:0 0 10px;padding:8px 12px}
.shell .workshop-forge .workshop-controls{gap:10px;margin:0 0 8px}
.shell .workshop-forge .workshop-control label{font-size:.8rem;margin-bottom:2px}
.shell .workshop-forge .workshop-control :is(select,input){min-height:40px;padding:6px 10px}
.shell .workshop-forge .es-panel{margin:6px 0}
.shell .workshop-forge .workshop-chance{margin:8px 0;gap:4px}
.shell .workshop-forge .workshop-chance strong{font-size:1.2rem}
.shell .workshop-forge .workshop-cost-title{margin:8px 0 4px}
.shell .workshop-forge .workshop-cost>div{padding:6px 10px}
.shell .workshop-forge .workshop-cost dd strong{font-size:1.05rem}
.shell .workshop-forge .workshop-bench .workshop-target p.workshop-risk{margin:6px 0;font-size:.8rem;line-height:1.4}
.shell .workshop-forge .es-toggles{display:grid;grid-template-columns:minmax(0,1fr);gap:6px}
.shell .workshop-forge .es-toggles>.es-heading{margin:4px 0 0;font-size:.95rem}
.shell .workshop-forge .es-tile{grid-template-columns:auto minmax(0,1fr);align-items:center;gap:4px 10px;padding:6px 10px}
.shell .workshop-forge .es-tile .es-icon{width:32px;height:32px;flex-basis:32px}
.shell .workshop-forge .es-tile>.es-tile-head{grid-column:1;grid-row:1}
.shell .workshop-forge .es-tile>:is(.es-switch,.es-chips){grid-column:2;grid-row:1;justify-self:end}
.shell .workshop-forge .es-tile>.es-help{grid-column:1;grid-row:2;margin:0;font-size:.75rem;line-height:1.3}
.shell .workshop-forge .es-tile>.es-from{grid-column:2;grid-row:2;justify-self:end;margin:0;display:flex;align-items:center;gap:6px;font-size:.75rem}
.shell .workshop-forge .es-tile>.es-from input{width:56px;min-height:34px;padding:4px 8px}
.shell .workshop-forge .es-toggles label.es-chip{min-width:44px;min-height:40px}
.shell .workshop-forge .workshop-confirm{margin:6px 0}
.shell .workshop-forge .workshop-confirm .red-button{min-height:44px}
.shell .workshop-forge .workshop-confirm small{font-size:.72rem}
.shell .workshop-forge :is(.workshop-estimate,.workshop-preview,.workshop-properties){margin:6px 0}
.shell .workshop-forge :is(.workshop-preview,.workshop-properties)>summary{min-height:36px}
@media(max-width:760px){
 .shell .enchanter-window>.enchanter-sheet{grid-template-columns:minmax(0,1fr);grid-template-areas:"item" "op" "pay"}
 .shell .enchanter-window .enchanter-item{border-right:0;padding:12px}
 .shell .enchanter-window .enchanter-operation{padding:10px 12px 6px;border-top:1px solid #56504b}
 .shell .enchanter-window .enchanter-action-strip{margin:0 12px 12px}
 .shell .enchanter-window .enchanter-operation .workshop-operations{grid-template-columns:repeat(5,minmax(0,1fr))}
 .shell .enchanter-window .enchanter-operation .workshop-operations>button{min-height:56px}
 .shell .enchanter-window .enchanter-operation .workshop-operations strong{font-size:.66rem;line-height:1.2}
 .shell .workshop-page .workshop-service-tabs{display:grid;grid-template-columns:repeat(auto-fit,minmax(100px,1fr))}
 .shell .workshop-page .workshop-service-tabs>button{padding:6px 8px;font-size:.8rem;justify-content:center}
 .shell .workshop-page .workshop-heading h1{font-size:1.35rem}
}
.shell .enchanter-window .enchanter-roll-preview strong{font-size:.9rem;line-height:1.35}
.shell .enchanter-window .enchanter-roll-preview small{font-size:.7rem}
.shell .workshop-forge .workshop-bench .workshop-workpiece{column-gap:16px}
.shell .workshop-forge .es-tile>p.es-help{font-size:.75rem;line-height:1.3;margin:0}
/* The page-wide ".shell .exp-page p:not(.eyebrow):not(.small-note)" (0,4,1) sets 1rem; these small notes win on equal weight by coming later. */
.shell .exp-page .enchanter-window p:is(.enchanter-preview-note,.et-summary,.workshop-risk,.tier-auto-best){font-size:.8rem;line-height:1.45}
.shell .exp-page .enchanter-window p:is(.enchanter-preview-target){font-size:.85rem;line-height:1.45}
.shell .exp-page .enchanter-window .ascend-panel p:is(p){font-size:.82rem;line-height:1.45}
.shell .exp-page .workshop-forge .workshop-bench p:is(.workshop-risk){font-size:.8rem;line-height:1.4}
/* With an auto-roll picker open, its chips already list the possible modifiers: the plain list under it is hidden. */
.shell .enchanter-window .enchanter-operation:has([data-reforge-auto],[data-enchant-targets]) .enchanter-pool{display:none}
@media(max-width:760px){
 .shell .workshop-page .workshop-heading{display:flex;flex-direction:row;align-items:flex-end;gap:8px;padding:10px 12px}
 .shell .workshop-page .workshop-heading>div{flex:1 1 auto;min-width:0}
 .shell .workshop-page .workshop-heading>button{flex:none;min-height:40px;padding:6px 10px;font-size:.75rem;max-width:96px}
 .shell .enchanter-window .enchanter-action-strip{grid-template-columns:minmax(0,1fr)}
 .shell .enchanter-window .enchanter-confirm{grid-column:1;grid-row:auto}
 .shell .enchanter-window .enchanter-picker{margin-bottom:0}
}
@media(max-width:760px){
 .shell .workshop-forge .es-tile>.es-chips{grid-column:1/-1;grid-row:2;justify-self:stretch;display:grid;grid-template-columns:repeat(5,minmax(0,1fr))}
 .shell .workshop-forge .es-tile>.es-chips~.es-from{grid-row:3}
 .shell .workshop-forge .es-toggles label.es-chip{min-width:0}
}
.shell .enchanter-window>.enchanter-sheet{grid-template-rows:min-content 1fr}
.shell .enchanter-window .enchanter-operation{align-self:start}
.shell .enchanter-window .enchanter-action-strip{align-self:start}
.shell .workshop-page .workshop-service-tabs>button .rune-tab-mark{display:inline-grid;place-items:center;overflow:hidden}
.shell .workshop-page .workshop-service-tabs>button .rune-tab-mark img{width:28px!important;height:28px!important}
.shell .enchanter-window .enchanter-preview{min-height:0}
.shell .enchanter-window .enchanter-preview{margin:10px 0 4px}

/* ==== Hero doll stage (25 Oct 2026, Pat: the hero was cut off, floated over a muddy Guild Hall slice) ==========================
   <div class="uk-doll-art uk-doll-fit"><img class="uk-doll-hero" style="--uc-fig-s;--uc-fig-x;--uc-fig-y;--uc-fig-max"></div> (public/ui-character.js figure()).
   The picture is placed absolutely so it never sets the frame's size; it is scaled and centred from its measured figure bounds, never wider than the frame,
   and stands on a lit floor with a contact shadow. The backdrop is the painted armoury alcove (.uk-doll-room below), over a lit stone gradient in the kit colours. */
.uk-doll-art.uk-doll-fit{container-type:inline-size;background:radial-gradient(ellipse 70% 55% at 50% 42%,#e2b85c42,transparent 70%),radial-gradient(ellipse 120% 30% at 50% 100%,#4a3c24,transparent 70%),linear-gradient(180deg,#16233a 0%,#0f1a2b 62%,#1a1810 86%,#100e0a 100%)}
.uk-doll-art.uk-doll-fit::before{background:radial-gradient(ellipse 85% 75% at 50% 45%,transparent 55%,#05080dcc 100%);box-shadow:inset 0 0 0 1px #e2b85c33}
.uk-doll-art.uk-doll-fit::after{content:"";position:absolute;z-index:0;left:50%;bottom:1.5%;width:58%;height:7%;transform:translateX(-50%);border-radius:50%;background:radial-gradient(closest-side,#000d,#0006 60%,transparent);pointer-events:none}
/* The painted armoury alcove (ART 88-91 step 2, hero-backdrop-v1): square, its round platform at the bottom middle. The picture hangs 13.5% of its own
   height below the frame, so the middle of the platform (84% down the painting) sits where the hero's feet stand; it is at least 116% of the frame tall
   so its top still reaches the frame, and a tall phone frame crops it from the sides. The kit gradient above stays behind it while it loads. */
.uk-doll-art.uk-doll-fit>.uk-doll-room{z-index:-2;inset:auto 0 0 0;width:100%;height:auto;min-height:116%;opacity:1;object-fit:cover;object-position:50% 100%;transform:translateY(13.5%)}
.uk-doll-art.uk-doll-fit:has(>.uk-doll-room)::before{background:radial-gradient(ellipse 90% 80% at 50% 45%,transparent 62%,#05080d99 100%)}
.uk-doll-art.uk-doll-fit>.uk-doll-hero{position:absolute;z-index:1;left:50%;bottom:0;width:auto;max-width:none;height:min(100%,calc(100cqw * var(--uc-fig-max,1.5)));max-height:none;
 transform:translate(calc(-50% + var(--uc-fig-x,0%)),var(--uc-fig-y,0%)) scale(var(--uc-fig-s,1));transform-origin:50% 100%;object-fit:contain;object-position:50% 100%;filter:drop-shadow(0 6px 6px #000c) drop-shadow(0 0 18px #0009)}
/* A closed slot (an off-hand behind a two-handed weapon): the item that closes it, faded. */
.uk-slot.is-empty.is-closed{cursor:default}
.uk-slot.is-closed>.uk-slot-icon{opacity:.35;filter:grayscale(.7)}

/* ==== Stat rows with a breakdown tip and a bar (25 Oct 2026, Pat: Defense bars in the stats list, hover any stat for where it comes from) ======
   <div class="uc-stat has-bar is-zone" tabindex="0" data-ui-tip ...><dt>..</dt><dd>..</dd><span class="uk-progress uk-progress-xs">..</span></div> (public/ui-character.js statRow). */
.uk-progress-xs{height:6px;border-radius:3px}
.uk-rows>.uc-stat{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:baseline;column-gap:10px;row-gap:3px;cursor:help;border-radius:var(--uk-radius)}
.uk-rows>.uc-stat:hover,.uk-rows>.uc-stat:focus-visible,.uk-attrs>.uc-tile:hover,.uk-attrs>.uc-tile:focus-visible{background:#e2b85c14}
.uk-attrs>.uc-tile{cursor:help}
.uk-rows>.uc-stat>.uc-row-bar{grid-column:1/-1;margin-bottom:2px}
.uk-rows>.uc-stat.is-zone>.uc-row-bar{border-color:var(--uk-gold)}
.uc-zone-chip{min-height:0;white-space:nowrap;margin-left:6px;padding:0 6px;font-size:.72rem;vertical-align:1px}
.uc-zone-line{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:4px 8px;margin:0 2px 4px;color:var(--uk-ivory-dim);font-size:.85rem}
.uc-zone-line .uk-chip{font-size:.75rem}
.uc-zone-line .uc-short{border-color:#d98b5a;color:#f0b48a}
.uk-rows>.uc-stat>dd{white-space:nowrap}
/* Character portraits, one standard everywhere a hero or companion face shows (Pat, 27 Oct: "all character panel portraits need to be fixed and aligned properly").
   Before: square on the Party cards and roster, stretched on recruitment cards, a tall box on the companion card, round only on the party seats.
   Now: a round face in a thin gold ring, never stretched. Each place keeps its own width; the height follows it. */
.tavern-portrait{aspect-ratio:1/1;height:auto!important;object-fit:cover!important;object-position:50% 25%;border-radius:50%!important;border:2px solid #b59a67;box-sizing:border-box;background:#101722}
.uh-face:has(>.tavern-portrait){border-radius:50%;overflow:hidden}
/* Side-menu portrait (Pat, 27 Oct: "this smaller portrait is still not aligned"): the button kept its default side padding and the picture was
   wider than the 38 px box, so the face sat right of centre and was cut at the right and bottom. The picture now fills the box exactly. */
.sidebar-character-portrait{padding:0!important;box-sizing:border-box}
.sidebar-character-portrait>img,.sidebar-character-portrait>.outfit-portrait,.sidebar-character-portrait>.outfit-portrait:not(.cropped)>img{display:block;width:100%!important;height:100%!important;margin:0;object-fit:cover;object-position:50% 30%}

/* Resistance, protection and block icons (art 103, 28 Oct): one painting each, so each defence row on the Hero screen has its own icon instead of the same shield. */
.uk-art.uk-ico-res-fire,.uk-ico.uk-ico-res-fire{background-image:url('/art/ui/resistances/resistance-fire.webp');background-size:contain;background-position:center}
.uk-art.uk-ico-res-frost,.uk-ico.uk-ico-res-frost{background-image:url('/art/ui/resistances/resistance-frost.webp');background-size:contain;background-position:center}
.uk-art.uk-ico-res-nature,.uk-ico.uk-ico-res-nature{background-image:url('/art/ui/resistances/resistance-nature.webp');background-size:contain;background-position:center}
.uk-art.uk-ico-res-shadow,.uk-ico.uk-ico-res-shadow{background-image:url('/art/ui/resistances/resistance-shadow.webp');background-size:contain;background-position:center}
.uk-art.uk-ico-protection,.uk-ico.uk-ico-protection{background-image:url('/art/ui/resistances/protection-other.webp');background-size:contain;background-position:center}
.uk-art.uk-ico-block,.uk-ico.uk-ico-block{background-image:url('/art/ui/resistances/block.webp');background-size:contain;background-position:center}
/* Vitality shows the Health heart (Pat, 28 Oct: "why is vitality icon a acorn and leaf?"; picked the heart). */
.uk-ico-vitality{--uk-ax:33.3333%;--uk-ay:0%}
/* The combat meter (Pat, 1 Nov: "can we addd a icon for the meter"): its own painted picture, not on a sheet (art item 133). */
.uk-art.uk-ico-meter,.uk-ico.uk-ico-meter{background-image:url('/art/ui/icon-meter-v1.webp');background-size:contain;background-position:center}
/* The zone map: the painted map and compass (Pat, 2 Nov: "how does a bag show as a zone overview"; it was the gathering satchel). */
.uk-ico-zone-map{--uk-art-sheet:url('/art/interface/navigation-v2.webp');--uk-ax:0%;--uk-ay:0%}
/* What a first reward is for (whole-game review item 14, 18 Nov 2026; public/quest-menu.js rewardUses): one short line under the rewards, below level 20. */
.quest-reward-uses.small-note{margin:6px 0 0;padding:0;font-size:.8125rem;line-height:1.4;color:#d9cfb8}

