.menu-screen.cs-screen {
  position:fixed; inset:0; display:grid; place-items:center; min-height:0; height:100dvh; padding:0;
  background:rgba(21,30,57,.12); overflow:hidden;
}
.pz-suspended:has(+ .city-service-screen .cs-screen) .pz-map > canvas {filter:brightness(.86) saturate(.9) blur(1.2px)}
.cs-sheet {
  --cs-line:#a9bde7; --cs-ink:#1c305a; --cs-blue:#496dad;
  --cs-paper:linear-gradient(138deg,#fcfdff,#f5f7fe 65%,#ebf1fc); --cs-border:#c1ceed;
  position:relative; isolation:isolate; display:flex; flex-direction:column; width:min(91.5vw,1630px); height:88.3dvh;
  max-height:1030px; min-width:0; color:var(--cs-ink); font:600 clamp(13px,1.09vw,18px)/1.3 'RO Nunito','Microsoft JhengHei','Noto Sans TC',sans-serif;
  border:1px solid #7e99cc; border-radius:clamp(14px,1.3vw,23px);
  background:linear-gradient(125deg,#fff,#f6f9ff 33%,#eff4fc 76%,#fff);
  box-shadow:inset 0 0 0 2px #fff,0 3px 6px #1624457d,0 12px 30px #15203b40;
}
.cs-sheet button {color:inherit}
.cs-sheet .cs-icon {width:1.25em;height:1.25em;display:block;flex:none;fill:none;stroke:currentColor;stroke-width:1.85;stroke-linecap:round;stroke-linejoin:round}
.cs-header {
  height:clamp(53px,8.2dvh,86px); min-height:45px; flex:none; position:relative; z-index:3; display:flex; align-items:center; gap:1em;
  border:1px solid #a2b7dc; border-radius:inherit; border-bottom-left-radius:0; border-bottom-right-radius:0;
  padding:0 0 0 2%; color:white;
  background:#6c8bc5 url('/assets/interface/character-banner.webp') center 86%/cover no-repeat;
  box-shadow:inset 0 2px 2px #ffffffab,inset 0 -1px #41629c;
}
.cs-header:before {content:'';position:absolute;inset:0;pointer-events:none;border-radius:inherit;background:linear-gradient(90deg,#5976af42,transparent 38%,transparent 62%,#5678b755);z-index:-1}
.cs-crest {position:relative;align-self:stretch;flex:none;margin:0 .35em 0 0;width:clamp(62px,6.6vw,111px);border:0;padding:0;background:none}
.cs-crest img {width:100%;height:165%;max-height:148px;position:absolute;left:0;bottom:-15%;object-fit:contain;filter:drop-shadow(0 3px 2px #3e507780)}
.cs-heading {color:white;text-shadow:0 2px 3px #324b7f;line-height:1;flex:1}
.cs-heading h2 {font:700 clamp(24px,2.3vw,40px)/1.05 'Noto Serif TC','PMingLiU','Songti TC',serif;letter-spacing:.09em;margin:0 0 .1em}
.cs-heading>span {font:700 clamp(8px,.8vw,14px)/1 'RO Nunito',sans-serif;letter-spacing:.31em}
.cs-score {display:flex;align-items:center;justify-content:space-between;min-width:clamp(105px,11.6vw,195px);height:49%;margin-right:clamp(7px,2vw,31px);
  padding:0 .65em 0 0;border-radius:100px;background:linear-gradient(#2c4987ab,#476aa6bd);border:1px solid #bbcdf0;box-shadow:inset 0 1px 3px #324b7e;
  color:inherit;text-shadow:0 1px 2px #22376a;font-variant-numeric:tabular-nums}
.cs-coin {align-self:center;display:grid;place-items:center;aspect-ratio:1;height:110%;min-width:21px;color:#fff6d5;border:2px solid #794117;border-radius:100%;
  font:900 .95em Georgia,serif;background:radial-gradient(ellipse at 35% 25%,#d79740,#884518 57%,#a86623 63%,#d59b44 77%,#7c491e);box-shadow:inset 0 0 0 1px #ffedba,0 1px 2px #243451}
.cs-close {background:linear-gradient(#fff,#f7faff 45%,#d8e5fb);border:1px solid #7e99ce;border-radius:.6em;width:clamp(47px,4.7vw,76px);height:91%;margin-right:-1px;
  box-shadow:inset 0 2px 1px #fff,inset 0 -3px 2px #afc4e5,0 1px 2px #384d75;display:grid;place-items:center}
.cs-sheet .cs-close .cs-icon {width:64%;height:64%;color:#47669f;stroke-width:2.8}
.cs-layout {
  flex:1;min-height:0;min-width:0;display:grid;grid-template-columns:minmax(145px,15.1fr) minmax(225px,31fr) minmax(0,52fr);
  grid-template-rows:minmax(clamp(53px,7.7dvh,81px),max-content) minmax(0,1fr);
  grid-template-areas:"side identity identity" "side profile bag";
  gap:0 clamp(7px,.58vw,12px);padding:clamp(7px,.7vw,13px) clamp(8px,.7vw,13px) clamp(9px,1vw,18px); overflow:hidden;
}
.cs-side,.cs-profile,.cs-identity,.cs-service {
  border:1px solid var(--cs-border);background:var(--cs-paper);box-shadow:inset 0 0 0 1px #ffffffb3;border-radius:clamp(8px,.9vw,15px);
}
.cs-side {grid-area:side;display:flex;flex-direction:column;align-items:stretch;padding:clamp(5px,.48vw,9px) .2em;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#b6c9e5 transparent}
.cs-side-link {position:relative;flex:1 0 auto;display:flex;align-items:center;text-align:left;gap:clamp(9px,.9vw,17px);min-height:31px;padding:.14em .65em .14em 12%;
  border:0;border-bottom:1px solid #cfdcf19c;background:transparent;white-space:nowrap;letter-spacing:.05em;font-weight:750;font-size:clamp(13px,1.18vw,20px)}
.cs-side-link .cs-icon {color:#4566a3;width:1.32em;height:1.32em;stroke-width:2.2}
.cs-side-link:hover {background:#dfe9fb}
.cs-side-link[aria-current=page],.cs-side-link[aria-current=page]:hover {color:white;background:linear-gradient(160deg,#779ad7,#486cad 82%);
  border:1px solid #86a1ce;border-radius:.65em 1.5em 1.5em .65em;box-shadow:inset 0 1px 2px #d5e4ff,inset 0 -2px 2px #5879af,0 1px 3px #38558742;text-shadow:0 1px 2px #365184}
.cs-side-link[aria-current=page] .cs-icon {color:#fff}
.cs-side-divider {display:flex;align-items:center;justify-content:center;gap:.35em;white-space:nowrap;color:#4c70b2;text-align:center;padding:.23em .4em .03em;letter-spacing:.06em;font-size:.92em}
.cs-side-divider:before,.cs-side-divider:after {content:'';flex:1;height:1px;background:linear-gradient(90deg,#6c8fc8,#c1d1ed)}
.cs-side-divider:after {transform:scaleX(-1)}
.cs-identity {grid-area:identity;min-width:0;display:grid;align-content:center;grid-template-columns:auto minmax(0,1fr);grid-template-rows:auto auto;column-gap:.7em;
  padding:.25em clamp(7px,.85vw,15px);border-bottom:0;border-radius:clamp(8px,.85vw,15px) clamp(8px,.85vw,15px) 0 0;position:relative}
.cs-identity:after {content:'';position:absolute;bottom:0;left:4%;right:4%;height:1px;background:linear-gradient(90deg,#c1d0ee,#c9d8ef66,#bacbe8)}
.cs-job-icon {grid-row:1/3;align-self:center;width:clamp(32px,3.2vw,56px);height:clamp(32px,3.2vw,56px);position:relative}
.cs-job-icon img {position:absolute;inset:0;width:100%;height:100%;object-fit:contain;image-rendering:pixelated}
.cs-name,.cs-ident-levels {display:flex;align-items:center;gap:.35em;min-width:0}
.cs-name b {overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:clamp(15px,1.3vw,23px)}
.cs-equipped-title {overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:#716194;font-size:.74em}
.cs-ident-levels {justify-content:space-between;font-size:clamp(13px,1.22vw,22px);font-weight:800}
.cs-profile {grid-area:profile;display:flex;flex-direction:column;min-height:0;min-width:0;border-top:0;border-radius:0 0 clamp(8px,.85vw,15px) clamp(8px,.85vw,15px);padding:0 .5em .38em}
.cs-stage {position:relative;isolation:isolate;flex:1;min-height:0;display:grid;grid-template-columns:minmax(4.75em,18%) minmax(0,1fr) minmax(4.75em,18%);grid-template-rows:minmax(0,1fr);grid-template-areas:"left stand right";
  align-items:stretch;gap:0;padding:clamp(8px,1.1vw,19px) .52em clamp(7px,.7vw,12px);
  background:#edf3ff url('/assets/interface/character-stage.webp') center center/100% 100% no-repeat}
.cs-slots {position:relative;z-index:1;display:grid;grid-template-rows:repeat(5,minmax(0,1fr));align-items:center;gap:clamp(3px,.5dvh,8px);min-height:0}
.cs-slots.left{grid-area:left}.cs-slots.right{grid-area:right}
.cs-slot {position:relative;align-self:stretch;justify-self:center;min-width:0;min-height:0;width:100%;max-width:90px;max-height:103px;
  border:1px solid var(--cs-line);border-radius:.57em;background:linear-gradient(140deg,#f9fbff,#e5ebf7 75%,#eff4ff);box-shadow:inset 0 0 0 1px #fff9,0 1px 1px #9ab0d7;
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;padding:2px;overflow:hidden}
.cs-slot[data-slot=weapon]:has(img) {border:1px solid #bc89f1;box-shadow:inset 0 0 0 2px #f6dcff,0 0 2px 1px #c3a3f3}
.cs-slot .cs-icon {color:#a1b4db;fill:#c8d4ec;stroke-width:1.3;width:59%;height:58%;max-height:46px;filter:drop-shadow(0 1px 0 #fff)}
.cs-slot-item {object-fit:contain;width:75%;height:65%;image-rendering:pixelated}
.cs-slot-label {font-size:clamp(10px,.94vw,16px);color:#39425e;line-height:1.07;white-space:nowrap}
.cs-refine {position:absolute;right:6%;bottom:22%;font-size:.88em;font-weight:900;color:#352b29;text-shadow:1px 0 white,-1px 0 white,0 1px white}
.cs-avatar {grid-area:stand;z-index:0;position:absolute;left:50%;bottom:10%;transform:translateX(-50%);width:112%;height:74%;object-fit:contain;object-position:center bottom;image-rendering:pixelated;pointer-events:none}
.cs-basics {flex:none;position:relative;margin:clamp(10px,1.3vw,21px) 0 0;padding:.8em .42em .3em;background:var(--cs-paper);border:1px solid var(--cs-border);border-radius:.6em}
.cs-ribbon {position:absolute;top:0;left:.15em;transform:translateY(-63%);margin:0;min-width:31%;padding:.16em 1.05em;text-align:center;
  clip-path:polygon(8% 0,92% 0,100% 50%,92% 100%,8% 100%,0 50%);background:#96acd5;color:#2d4776;font-size:.98em;letter-spacing:.05em;isolation:isolate}
.cs-ribbon:before {content:'';position:absolute;inset:1px;clip-path:inherit;background:linear-gradient(#eff5ff,#d8e4f9 55%,#c0d2ef);z-index:-1}
.cs-xp {padding:.17em .48em .32em}
.cs-xp+.cs-xp {margin-top:.12em}
.cs-xp-line {display:flex;align-items:center;justify-content:space-between;gap:3px;color:#253960;font-size:.91em;font-variant-numeric:tabular-nums}
.cs-xp-line span {font-size:.87em;white-space:nowrap}
.cs-track {height:clamp(6px,.84vw,14px);border-radius:99px;margin-top:.12em;background:linear-gradient(#c5d3e8,#d9e2f1);box-shadow:inset 0 1px 2px #acbfde80}
.cs-track i {display:block;height:100%;border:1px solid #648cdb;border-radius:inherit;background:linear-gradient(#b2f1fd,#6dccff 48%,#75aaff);box-shadow:inset 0 1px #e6fcff}
.cs-xp-job .cs-track i {border-color:#dfaa51;background:linear-gradient(#fff3b0,#ffcc6b 48%,#ffc451)}
.cs-attributes {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px .4em;margin:.5em 0 0}
.cs-attribute {display:flex;align-items:center;min-width:0;gap:.45em;padding:.17em .48em;background:linear-gradient(100deg,#eaf0fc,#fbfdff 60%,#eff4fe);
  border:1px solid #c8d6ee;border-radius:.44em;font-size:clamp(11px,.99vw,17px)}
.cs-attribute strong {margin-left:auto;font-size:1.12em}
.cs-attribute .cs-icon {width:1.18em;height:1.18em;color:#4267aa}
.cs-attribute[data-icon=heart] .cs-icon {fill:#ff8e80;stroke:#e96863}
.cs-attribute[data-icon=flask] .cs-icon {fill:#b3d9ff}
.cs-standard {display:flex;align-items:center;justify-content:center;gap:clamp(3px,.52vw,9px);padding:2px 4px;border:1px solid #adc0e8;
  border-radius:.7em;background:linear-gradient(145deg,#fff,#f2f6ff 60%,#e4ecfb);box-shadow:inset 0 1px #fff,0 1px 1px #a8bcdf;color:#263d67;
  font-size:clamp(12px,1.22vw,20px);font-weight:800;white-space:nowrap}
.cs-bag-body {grid-area:bag;min-width:0;min-height:0}
.cs-mobile-tabs,.cs-service {display:none}
.cs-detail-mode .cs-layout {grid-template-rows:clamp(53px,7.7dvh,81px) minmax(0,1fr);grid-template-areas:"side identity identity" "side detail detail"}
.cs-detail-mode .cs-identity {border-bottom:1px solid var(--cs-border);border-radius:.65em;margin-bottom:.65em}
.cs-detail-mode .cs-identity:after {display:none}
.cs-detail-mode .cs-service {display:block;grid-area:detail;overflow:auto;min-height:0;min-width:0;padding:clamp(9px,1vw,18px);scrollbar-width:thin}
.cs-service .inv-room,.cs-service .adv-progress,.cs-service .gs-room {margin:0}
.cs-titles h3,.cs-titles p {margin:0 0 .85em}
.cs-titles select {border:1px solid #96aed7;border-radius:6px;padding:.4em;color:#243b64;background:#fff}
.cs-standard {width:fit-content;display:inline-flex;padding:.45em .9em;font-size:1em}
.cs-titles select+.cs-standard {margin-left:.5em}
.cs-feedback {display:block;color:#71512c;min-height:1.25em}
.cs-popup {width:min(350px,90vw);border:1px solid #91a9d2;border-radius:12px;padding:0;color:#223958;background:var(--cs-paper);box-shadow:0 6px 32px #21375666;font:inherit}
.cs-popup::backdrop {background:#17263c70}
.cs-popup-head {display:flex;align-items:center;justify-content:space-between;background:linear-gradient(#91afe0,#5879b5);color:#fff;padding:.5em .8em}
.cs-popup-head h3 {margin:0}
.cs-popup-close {background:none;border:0;color:inherit!important;padding:3px}
.cs-wallet {padding:.4em 1em}.cs-wallet>div {display:flex;justify-content:space-between;padding:.55em .25em}.cs-wallet>div+div {border-top:1px solid var(--cs-border)}
@media(max-height:650px) and (min-width:761px) and (orientation:landscape){
  .cs-sheet {height:91dvh;width:95vw}.cs-layout {grid-template-rows:minmax(45px,max-content) minmax(0,1fr)}.cs-side-link {min-height:29px}
  .cs-profile {overflow:auto}.cs-stage {min-height:196px}.cs-header {height:42px}.cs-basics {margin-top:10px}
}
@media(max-height:520px) and (min-width:761px) and (orientation:landscape){
  .cs-sheet:not(.cs-detail-mode) .cs-layout {grid-template-rows:minmax(45px,max-content) minmax(335px,1fr);overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}
  .cs-sheet:not(.cs-detail-mode) .cs-profile {overflow:visible}.cs-crest img {height:140%}
}
@media(max-width:760px), (pointer:coarse), (max-width:1000px) and (orientation:portrait){
  .cs-sheet {
    box-sizing:border-box;width:min(100vw,440px);height:100dvh;max-height:none;border:0;border-radius:0;
    padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
    box-shadow:none;container-type:inline-size;font-size:clamp(12px,2vw,15px);
  }
  .pz-suspended:has(+ .city-service-screen .cs-screen) .pz-map > canvas {filter:brightness(.82) blur(2px)}
  .cs-header {height:clamp(40px,10cqw,46px);min-height:40px;padding-left:2%;gap:clamp(7px,2cqw,10px)}
  .cs-crest {width:clamp(42px,11cqw,54px);margin:0 0 0 1%}
  .cs-crest img {height:112%;bottom:-13%}
  .cs-heading h2 {font-size:clamp(18px,5cqw,24px)}.cs-heading>span {font-size:clamp(7px,1.8cqw,10px)}
  .cs-score {margin-right:.06em;min-width:clamp(66px,19cqw,90px);height:49%;font-size:.92em}
  .cs-coin {min-width:16px;border-width:1px}.cs-close {height:84%;width:clamp(36px,8cqw,42px);margin-right:1%}
  .cs-layout,.cs-detail-mode .cs-layout {display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto;grid-auto-rows:max-content;align-content:start;
    grid-template-areas:"identity" "profile" "bag";gap:clamp(4px,1.23vw,13px) 0;padding:clamp(5px,1.4vw,14px) clamp(7px,2vw,22px) clamp(6px,1.4vw,15px);
    overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#aec1de transparent;scroll-padding:5px}
  .cs-side {display:none}
  .cs-detail-mode .cs-layout {grid-template-areas:"identity" "detail"}
  .cs-mobile-tabs {
    flex:none;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;
    padding:6px 8px;background:#e7effd;border-bottom:1px solid var(--cs-border);
  }
  .cs-mobile-tab {
    display:flex;align-items:center;justify-content:center;gap:.4em;min-width:0;min-height:40px;
    padding:3px 2px;border:1px solid var(--cs-line);border-radius:8px;
    background:linear-gradient(#fafcff,#e9f1ff);font:inherit;font-size:clamp(12px,3.5cqw,14px);font-weight:800;white-space:nowrap;
  }
  .cs-mobile-tab[aria-current=page] {
    color:#fff;border-color:#5375ab;background:linear-gradient(160deg,#6a8dc9,#4566a3);
    box-shadow:inset 0 1px #ffffff63;
  }
  .cs-mobile-tab:focus-visible {outline:2px solid #315c99;outline-offset:1px}
  .cs-identity,.cs-detail-mode .cs-identity {display:grid;height:clamp(35px,8vw,78px);grid-template-columns:auto minmax(0,1fr) auto;
    grid-template-rows:1fr 1fr;align-content:center;border:1px solid var(--cs-border);border-radius:.65em;padding:.15em 4%;margin:0;column-gap:.75em}
  .cs-identity:after {display:none}.cs-name {grid-column:2;grid-row:1;align-self:end}
  .cs-name b {font-size:clamp(12px,2.85vw,24px)}
  .cs-job-icon {width:clamp(27px,6.5vw,60px);height:clamp(27px,6.5vw,60px)}
  .cs-ident-levels {display:contents}.cs-ident-levels span {font-size:clamp(11px,2.25vw,21px);font-weight:750;line-height:1.05}
  .cs-ident-levels span:first-child {grid-row:2;grid-column:2;align-self:start}
  .cs-ident-levels span:last-child {grid-column:3;grid-row:1/3;align-self:center;padding:.32em 0 .32em .85em;border-left:1px solid #c7d4eb}
  .cs-profile {display:flex;gap:0;border:0;background:transparent;box-shadow:none;padding:0}
  .cs-stage {flex:none;min-height:0;height:clamp(230px,46vw,413px);padding:clamp(4px,1vw,10px) 10%;
    grid-template-columns:23% minmax(0,1fr) 23%;border:1px solid var(--cs-border);border-radius:.8em;background-size:100% 100%;overflow:hidden}
  .cs-slots {gap:clamp(2px,.55vw,6px)}.cs-slot {max-width:120px;max-height:none;border-radius:.45em;padding:0;box-shadow:inset 0 0 0 1px #fff9}
  .cs-slot-item {height:60%;width:80%}.cs-refine {right:9%;bottom:26%}
  .cs-slot-label {font-size:clamp(10px,1.73vw,16px);line-height:1.2;font-weight:700}
  .cs-avatar {height:84%;bottom:3%;width:115%}
  .cs-basics {margin:clamp(9px,2.3vw,19px) 0 0;padding:.76em 2.5% .4em}
  .cs-ribbon {left:.05em;min-width:23%;font-size:clamp(10px,2.35vw,22px)}
  .cs-xp {padding:.13em .3em .21em}.cs-xp-line {font-size:clamp(11px,2.46vw,23px)}
  .cs-xp-line span {font-size:.85em}.cs-track {height:clamp(5px,1.2vw,11px)}
  .cs-attributes {gap:1px .7em;margin:.33em 0 0}.cs-attribute {padding:.06em .5em;font-size:clamp(10px,2.12vw,18px);line-height:1.25}
  .cs-attribute strong {font-size:1.05em}.cs-attribute .cs-icon {width:1em;height:1em}
  .cs-detail-mode .cs-service {max-width:100%;height:auto;overflow:visible;padding:.55em}
  .cs-service[data-page=pets] .gs-nav {display:none}
  .cs-service[data-page=pets] :is(.gs-select,.gs-companion .gs-btn) {min-height:44px}
  .cs-service[data-page=pets] .gs-select {width:100%;font-size:16px}
}

.collection-album {display:grid;gap:12px;color:#1d355c;container-type:inline-size}
.collection-feedback {margin:0;color:#224773}
.collection-feedback:empty,.collection-item-filter:empty {display:none}
.collection-sets {display:grid;grid-template-columns:minmax(0,1fr);gap:12px;align-items:start}
@container (min-width:690px){
  .collection-sets {grid-template-columns:repeat(2,minmax(0,1fr))}
}
.collection-set {overflow:hidden;min-width:0;border:1px solid #b2c5e4;border-radius:12px;background:#f8fbff;box-shadow:0 2px 4px #31517b17}
.collection-set-heading {display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:5px;padding:9px 10px;background:linear-gradient(110deg,#e9f1ff,#d5e3f8);border-bottom:1px solid #becfed}
.collection-set-name {display:flex;flex-wrap:wrap;align-items:center;gap:5px 8px;min-width:0}
.collection-set h3 {margin:0;font-size:1.05em;letter-spacing:.02em}
.collection-effects {display:flex;flex-wrap:wrap;gap:4px;min-width:0}
.collection-effect {padding:.25em .58em;border-radius:999px;border:1px solid #d8b673;background:#fff7e3;color:#744b12;font-size:.8em;line-height:1.3;font-weight:800}
.collection-rank {border-radius:5px;background:#e9e1f5;color:#473169;font-size:.76em;padding:2px 5px;white-space:nowrap}
.collection-complete {border-color:#8fb5a6}
.collection-complete .collection-set-heading {background:linear-gradient(116deg,#edf8ee,#cce9db);border-color:#a6c5b8}
.collection-item {display:grid;grid-template-columns:36px minmax(0,1fr) auto auto;align-items:center;gap:8px;padding:7px 9px;border-bottom:1px solid #e2eafa}
.collection-item:last-child {border-bottom:0}
.collection-item-art {display:grid;place-items:center;aspect-ratio:1;border:1px solid #c6d8f0;border-radius:8px;background:#eaf2ff}
.collection-item-art img {width:86%;height:32px;object-fit:contain;image-rendering:pixelated}
.collection-item-lines {display:grid;gap:2px;min-width:0;overflow-wrap:anywhere}
.collection-item-lines span {color:#496181;font-size:.8em}
.collection-progress {white-space:nowrap;color:#365c86;font-size:.85em;font-variant-numeric:tabular-nums}
.collection-progress-ready {color:#225f50;font-weight:800}
.collection-control {min-height:36px;padding:4px .7em;border:1px solid #9db8de;border-radius:7px;background:#f0f5fe;font:inherit;font-weight:800;white-space:nowrap}
.collection-control:disabled {color:#516581;background:#e9eff7;opacity:1}
.collection-control:not(:disabled):hover {border-color:#bc9451;background:#fff5db}
.collection-control:focus-visible {outline:2px solid #2861aa;outline-offset:2px}
.collection-control.collection-primary:not(:disabled) {background:linear-gradient(#457aba,#234f8a);border-color:#9b743d;color:white}
.collection-toolbar,.collection-tabs,.collection-filters,.collection-pages {display:grid;gap:8px}
.collection-tabs {grid-template-columns:repeat(4,minmax(0,1fr))}
.collection-tabs button[aria-pressed=true]:not(:disabled) {background:linear-gradient(#477ebf,#244e87);border-color:#b99351;color:#fff}
.collection-item-filter {display:flex;align-items:center;justify-content:space-between;gap:8px;padding:5px 8px 5px 11px;border:1px solid #bbceea;border-radius:8px;background:#eaf2ff;font-weight:750}
.collection-item-filter span {min-width:0;overflow-wrap:anywhere}
.collection-filters {grid-template-columns:minmax(0,1fr) auto auto}
.collection-filters :is(input,select) {
  width:100%;min-width:0;min-height:36px;padding:5px 8px;border:1px solid #a4bde1;border-radius:7px;color:inherit;background:#fff;font:inherit;
}
.collection-filters :is(input,select):focus-visible {outline:2px solid #2861aa;outline-offset:2px}
.collection-filters select:disabled {background:#e8edf6;color:#516581}
.collection-empty {grid-column:1/-1;margin:0;padding:20px;border:1px solid #c6d8f0;border-radius:9px;text-align:center;background:#f4f8fe}
.collection-pages {grid-template-columns:auto minmax(0,1fr) auto;align-items:center;justify-self:center;text-align:center}
.collection-pages span {padding-inline:4px;color:#3c557d;font-size:.88em;font-variant-numeric:tabular-nums}
@media (max-width:440px){
  .collection-item {grid-template-columns:32px minmax(0,1fr) auto auto;gap:6px;padding-inline:6px}
  .collection-item-art img {height:27px}
  .collection-control {min-height:40px}
  .collection-filters {grid-template-columns:repeat(2,minmax(0,1fr))}
  .collection-filters input {grid-column:1/-1;font-size:16px}
  .collection-filters select {min-height:40px}
  .cs-mobile-tab {gap:.22em;font-size:clamp(11px,3.15cqw,14px)}
}

@media (min-width:761px) and (orientation:landscape) and (pointer:fine), (min-width:1001px) and (pointer:fine) {
  .cs-sheet {
    --cs-gold:#d9b982;
    --cs-royal:linear-gradient(148deg,#527ab8,#2b4f88);
    --cs-paper:linear-gradient(145deg,#fffefc,#eef4fe 75%,#e8f0fd);
    width:min(95vw,1510px);height:min(91dvh,960px);
    border:1px solid var(--cs-gold);
    background:linear-gradient(128deg,#fcfdff,#eef3fb 58%,#e3edfa);
    box-shadow:inset 0 0 0 2px #fffbeca8,0 15px 48px #14274781;
  }
  .cs-header {
    height:clamp(49px,8.1dvh,80px);
    padding-inline:clamp(11px,1.5vw,24px) 12px;
    border:0;border-bottom:1px solid var(--cs-gold);
    background:linear-gradient(90deg,#1c315ced,#293f766a 58%,#13254e52),
      url('/assets/interface/desktop-plaza-city.webp') center 53%/cover no-repeat,#2b4b80;
  }
  .cs-crest {width:clamp(43px,4.7vw,70px);margin:0}
  .cs-crest img {height:111%;bottom:-9%}
  .cs-heading h2 {font-size:clamp(23px,2.2vw,36px)}
  .cs-heading > span {color:#e8efff;letter-spacing:.2em}
  .cs-score {min-width:0;height:46%;gap:7px;margin-right:0;border-color:#dec490;background:#193360c4}
  .cs-sheet .cs-close {
    flex:none;width:clamp(38px,4vw,53px);height:87%;margin:0;
    border:0;background:url('/assets/interface/plaza-chat-close-gem.webp') center/contain no-repeat;
    box-shadow:none;
  }
  .cs-sheet .cs-close .cs-icon {display:none}
  .cs-sheet .cs-close:hover {filter:drop-shadow(0 0 4px #ffebbb)}
  .cs-sheet :is(.cs-close,.cs-score,.cs-side-link,.cs-mobile-tab):focus-visible {
    outline:2px solid #547ebd;outline-offset:2px;
  }
  .cs-mobile-tabs {
    flex:none;display:flex;gap:6px;padding:6px clamp(9px,1.1vw,17px);
    border-bottom:1px solid #cbd8ee;background:#dce8f9b5;
  }
  .cs-mobile-tab {
    display:flex;align-items:center;justify-content:center;gap:.42em;min-height:34px;min-width:0;
    padding:3px clamp(11px,1.2vw,19px);border:1px solid #b1c5e8;border-radius:8px;
    background:linear-gradient(#fcfdff,#e8effb);font:inherit;font-weight:800;white-space:nowrap;
  }
  .cs-mobile-tab[aria-current=page] {
    color:#fff7e8;border-color:#bf9f67;background:var(--cs-royal);
    box-shadow:inset 0 1px #d9e7ff70,0 1px 3px #536c9770;
  }
  .cs-layout,.cs-detail-mode .cs-layout {
    grid-template-columns:clamp(125px,11.7vw,169px) minmax(218px,1fr) minmax(0,1.9fr);
    grid-template-rows:auto minmax(0,1fr);
    padding:clamp(7px,1vw,15px);gap:clamp(6px,.75vw,11px);
  }
  .cs-side {padding:5px;background:linear-gradient(160deg,#f8fbff,#e9f0fc)}
  .cs-side-link {flex:0 0 auto;min-height:clamp(29px,4.1dvh,41px);padding:3px 6px;gap:6px;font-size:clamp(12px,1.12vw,16px);letter-spacing:0}
  .cs-side-link:is([data-sheet-page=profile],[data-sheet-page=stats],[data-sheet-page=collection],[data-sheet-page=pets]) {display:none}
  .cs-side-divider {min-height:23px}
  .cs-identity,.cs-detail-mode .cs-identity {
    grid-template-columns:auto minmax(0,1fr) auto;grid-template-rows:auto;align-items:center;
    margin:0;padding:4px 9px;border:1px solid var(--cs-border);border-radius:10px;
  }
  .cs-identity:after {display:none}
  .cs-job-icon {grid-row:auto;width:clamp(27px,3vw,40px);height:clamp(27px,3vw,40px)}
  .cs-ident-levels {gap:6px;font-size:clamp(12px,1.05vw,16px)}
  .cs-ident-levels span {
    border:1px solid #b9c9e5;border-radius:20px;padding:3px 9px;white-space:nowrap;
    background:linear-gradient(#fbfdff,#e5effe);color:#35568a;
  }
  .cs-ident-levels span:last-child {background:linear-gradient(#f8f5ff,#ebe1fa);border-color:#d1c3e7;color:#62468b}
  .cs-profile {border:0;box-shadow:none;gap:10px;padding:0;overflow:auto;background:none;scrollbar-width:thin}
  .cs-stage {
    flex:1 0 224px;min-height:224px;grid-template-columns:minmax(46px,23%) minmax(0,1fr) minmax(46px,23%);
    padding:8px;gap:4px;overflow:hidden;border:1px solid #cbbea3;border-radius:12px;
    background:#ebf2ff url('/assets/interface/character-desktop-stage.webp') center/100% 100% no-repeat;
    box-shadow:inset 0 0 0 2px #fff9ec91;
  }
  .cs-slots {gap:5px}
  .cs-slot {max-width:75px;max-height:74px;background:linear-gradient(145deg,#fffdf9e8,#e5eefce8);border-color:#a6bfe6}
  .cs-slot:is(button):hover {border-color:#b78f4e;background:#f8f7ee}
  .cs-slot-label {font-size:clamp(10px,.85vw,14px)}
  .cs-avatar {height:74%;width:115%;bottom:13%}
  .cs-basics {margin:0;padding:.75em .35em .35em}
  .cs-xp-line span {font-size:.82em}
  .cs-track {height:clamp(6px,.67vw,9px)}
  .cs-attribute {font-size:clamp(10px,.9vw,14px);padding:.16em .36em}

  .cs-bag-body {--cb-line:#b8c9e7}
  .cb-workspace {gap:clamp(6px,.75vw,11px);grid-template-columns:minmax(0,1.7fr) minmax(184px,1fr)}
  .cb-pack,.cb-detail {border-color:#c7d4ec;padding:clamp(7px,.8vw,12px);background:var(--cs-paper)}
  .cb-pack-head {display:flex;align-items:center;justify-content:space-between;gap:5px;margin-bottom:7px}
  .cb-pack-head h3 {font-size:clamp(15px,1.2vw,19px);letter-spacing:.075em}
  .cb-pack-head .cb-counter {font-size:clamp(12px,.98vw,15px)}
  .cb-categories {width:100%;flex:none;gap:3px;margin-bottom:6px}
  .cb-categories .cb-chip,.cb-categories .cb-chip:first-child {
    flex:1;min-width:0;min-height:29px;padding:3px 1px;font-size:clamp(11px,.94vw,14px)!important;
  }
  .cb-categories .cb-chip[aria-pressed=true] {background:var(--cs-royal);border-color:#c7ab73}
  .cb-bag-actions {gap:5px}
  .cb-bag-actions .cb-button {font-size:clamp(12px,1vw,15px)}
  .cb-scroll {border-top:1px solid #d7e3f1;padding:5px 1px 2px}
  .cb-grid,.cb-grid.inv-ore-grid {grid-template-columns:repeat(auto-fill,minmax(clamp(37px,3.9vw,60px),1fr));gap:4px}
  .cb-grid.cb-list,.cb-grid.cb-list.inv-ore-grid {grid-template-columns:minmax(0,1fr)}
  .cs-bag-body .cb-cell:not(.cb-list .cb-cell) {aspect-ratio:1}
  .cb-detail {font-size:clamp(12px,1vw,16px)}
  .cb-detail-head {flex-wrap:wrap}
  .cb-detail-actions .cb-button {min-height:34px}

  .cs-detail-mode .cs-service[data-page=stats] {padding:clamp(7px,.85vw,13px);background:#edf3fc}
  .cs-service[data-page=stats] :is(.ap-contents,.ap-section) {gap:10px}
  .cs-service[data-page=stats] .ap-levels>div {
    grid-template-columns:minmax(0,1fr) auto;align-items:baseline;
    padding:7px 9px;gap:5px;background:var(--cs-paper);
  }
  .cs-service[data-page=stats] .ap-levels progress {
    grid-column:1/-1;appearance:none;height:7px;border:0;border-radius:99px;overflow:hidden;
    background:#cad9ee;--cs-meter-fill:linear-gradient(90deg,#5c94df,#79d1ee);
  }
  .cs-service[data-page=stats] .ap-levels>div:last-child progress {--cs-meter-fill:linear-gradient(90deg,#7860af,#c39fdf)}
  .cs-service[data-page=stats] .ap-levels progress::-webkit-progress-bar {background:#cad9ee}
  .cs-service[data-page=stats] .ap-levels progress::-webkit-progress-value {background:var(--cs-meter-fill)}
  .cs-service[data-page=stats] .ap-levels progress::-moz-progress-bar {background:var(--cs-meter-fill)}
  .cs-service[data-page=stats] .ap-tabs:not(.ap-branch-tabs) {
    background:#e1eafa;padding:4px;border-radius:9px;border:1px solid #c8d8ee;
  }
  .cs-service[data-page=stats] .ap-tab[aria-pressed=true] {background:var(--cs-royal);border-color:#ba9b65}
  .cs-service[data-page=stats] .ap-jobhead,.cs-service[data-page=stats] .ap-status-head {
    padding:6px 10px;background:linear-gradient(110deg,#fffdf7,#dceafb);border:1px solid #d4c3a5;border-radius:9px;
  }
  .cs-service[data-page=stats] .ap-talent-points {font-weight:800;color:#2d4f83;padding-inline:4px}
  .cs-service[data-page=stats] .ap-branches {grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
  .cs-service[data-page=stats] .ap-branch {background:linear-gradient(160deg,#fff,#e9f2ff);border-color:#afc2e1}
  .cs-service[data-page=stats] .ap-branch:nth-child(1) {background:linear-gradient(160deg,#fff,#faf0de)}
  .cs-service[data-page=stats] .ap-branch:nth-child(3) {background:linear-gradient(160deg,#fff,#eeebfb)}
  .cs-service[data-page=stats] .ap-branch-head {
    background:var(--cs-royal);border-bottom:1px solid var(--cs-gold);color:#fff6df;
  }
  .cs-service[data-page=stats] .ap-active-branch {border-color:#b5a177}
  .cs-service[data-page=stats] .ap-row {min-height:46px;padding-block:3px 5px}
  .cs-service[data-page=stats] .ap-node.ap-available {background:#fffdfa;border-color:#bd9d63}
  .cs-service[data-page=stats] .ap-node.ap-available:hover {box-shadow:0 0 0 2px #b3d0f1}
  .cs-service[data-page=stats] :is(.ap-detail,.ap-status-card) {background:var(--cs-paper);border-color:#bdcee9}
  .cs-service[data-page=stats] .ap-metric-grid > div {background:#e0ecfa}
}

@media (min-width:1230px) and (pointer:fine) {
  .cs-service[data-page=stats] .ap-tree-workspace {display:grid;grid-template-columns:minmax(0,1fr) minmax(192px,25%);gap:9px;align-items:start}
  .cs-service[data-page=stats] .ap-branches {grid-area:1 / 1}
  .cs-service[data-page=stats] .ap-detail {grid-area:1 / 2}
}

@media (min-width:761px) and (max-width:1100px) and (orientation:landscape) and (pointer:fine), (min-width:1001px) and (max-width:1100px) and (pointer:fine) {
  .cb-workspace {grid-template-columns:minmax(0,1fr);align-content:start;overflow:auto;scrollbar-width:thin}
  .cb-scroll {max-height:min(34dvh,300px)}
  .cb-detail-text {overflow:visible}
}
