dialog.paper-profile{
  width:min(96vw,86vh,680px);width:min(96vw,88svh,680px);max-width:none;max-height:none;
  color:#182c50;background:#17223b;border:0;padding:0;overflow:visible;border-radius:5px;
  box-shadow:0 12px 42px #0e1425b0;font-family:Georgia,serif
}
dialog.paper-profile::backdrop{background:#12182772}
dialog.paper-profile-picker{width:min(96vw,80vh,620px);width:min(96vw,81svh,620px)}
dialog.paper-profile:is(.paper-account,.paper-profile-picker){
  background:transparent;border:0;outline:none;box-shadow:none;
  filter:drop-shadow(0 8px 18px #0e142588)
}
.paper-profile .paper-profile-board{
  position:relative;isolation:isolate;container-type:inline-size;aspect-ratio:1;
  background:var(--board) center/100% 100% no-repeat;
  clip-path:polygon(2% 6%,4% 2.4%,9% 1.4%,14% 1%,18% 1.7%,23% 1.4%,28% 1.9%,34% 1%,40% 1.5%,
    48% 1.1%,55% 1.8%,62% 1.2%,70% 1.7%,76% 1.3%,82% 2%,88% 1.4%,94% 1%,97.8% 2.5%,98.5% 7%,
    97.7% 14%,98.8% 20%,98% 27%,98.9% 34%,98.3% 41%,98.7% 48%,98.2% 55%,98.8% 63%,98.1% 70%,
    98.5% 77%,97.9% 84%,98.6% 91%,97.6% 95.6%,95.5% 98.4%,90% 98%,84% 98.6%,78% 98%,71% 98.6%,
    64% 98.1%,57% 98.8%,51% 98.1%,43% 98.6%,36% 98.1%,29% 98.5%,23% 98%,16% 98.5%,9% 98%,4% 97%,
    1.7% 94%,2.1% 87%,1.3% 80%,2% 73%,1.5% 66%,2.1% 59%,1.3% 51%,1.9% 44%,1.5% 37%,2% 30%,
    1.3% 23%,2% 16%,1.5% 10%)
}
.paper-profile-picker .paper-profile-board{aspect-ratio:1199/1312}
.paper-profile .paper-profile-control{
  position:absolute;display:grid;place-items:center;left:var(--x);top:var(--y);width:var(--w);height:var(--h);
  min-height:0;margin:0;padding:0;background:none;border:0;color:#172e55;border-radius:8px;
  box-shadow:none;font:700 4.3cqw/1 Georgia,serif;cursor:pointer
}
.paper-profile :is(.paper-profile-control,.paper-slot,.paper-type-menu button):focus-visible{outline:2px solid #902e21;outline-offset:1px}
.paper-profile button.paper-profile-control:hover:not(:disabled){filter:brightness(1.06);box-shadow:inset 0 0 0 2px #1d3d655a}
.paper-profile .paper-reference-action:disabled{opacity:1;cursor:default}
.paper-profile .paper-profile-close{font-size:0;order:0;z-index:4;float:none}
.paper-profile .paper-profile-name,.paper-profile .paper-profile-mode,.paper-profile .paper-vehicle,.paper-profile .paper-variant{
  background:#f4d7b3 url('art/paper.jpg') center/100% auto;background-blend-mode:luminosity
}
.paper-profile .paper-profile-name{
  padding:0 2%;border-radius:2px 0 0 2px;font:700 6.1cqw/1 Georgia,serif;
  box-sizing:border-box;cursor:default;text-align:left;justify-items:start;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block
}
.paper-profile .paper-profile-name.pressed{font-size:4.75cqw}
.paper-profile .paper-profile-mode{
  position:absolute;left:29.8%;top:36.7%;width:34.9%;height:4.4%;align-content:center;text-align:center;
  background:#34456a;color:#fff1d7;border-radius:15% 9% 13% 9% / 20%;font:700 3.75cqw/1 Georgia,serif
}
.paper-profile .paper-profile-avatar{
  overflow:hidden;border-radius:50%;border:max(2px,.55cqw) solid #182438;background:#f2d4ac;
  box-shadow:0 .55cqw 1.2cqw #211a17a0
}
.paper-profile-avatar img{width:100%;height:100%;object-fit:cover;margin:0}
.paper-rarity-rows{position:absolute;inset:var(--rows-top) 5.5% var(--rows-bottom) 31.7%;display:grid;grid-template-rows:repeat(4,1fr)}
.paper-rarity-row{
  align-self:center;display:flex;align-items:center;gap:2%;min-width:0;height:84%;padding:0 1%;
  overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scrollbar-width:none;
  background:#f7dbbc;
  border-radius:2px
}
.paper-rarity-row[data-rail=common]{margin-left:-2.5%;padding-left:3.5%}
.paper-rarity-row::-webkit-scrollbar{display:none}
.paper-profile .paper-slot{
  position:relative;display:grid;place-items:center;flex:0 0 17.6%;aspect-ratio:1;min-width:38px;min-height:0;padding:0;margin:0;
  border:2px solid #1a416c;border-radius:50%;background:#f7d9b7;box-shadow:none;overflow:hidden
}
.paper-profile .paper-slot[aria-pressed=true]{border-color:#a13526;box-shadow:inset 0 0 0 1px #a13526}
.paper-profile .paper-slot img{width:100%;height:100%;object-fit:cover;display:block;margin:0}
.paper-slot-count{position:absolute;right:7%;bottom:10%;padding:.14em .3em;border-radius:1em;
  background:#f7dbbc;color:#182c50;font:700 2.55cqw/1 var(--font-ui)}
.paper-profile .paper-empty-slot{border-style:dashed;color:#706154;font-size:3.5cqw}
.paper-lock{width:29%;height:30%;border:2px solid currentColor;border-radius:22%;position:relative;margin-top:10%}
.paper-lock::before{content:'';position:absolute;left:14%;right:14%;bottom:100%;height:65%;border:2px solid currentColor;border-bottom:0;border-radius:70% 70% 0 0}
.paper-profile .paper-vehicle,.paper-profile .paper-variant{border-radius:2px}
.paper-profile .paper-vehicle{
  grid-template: minmax(0,1fr) / minmax(0,1fr);
  overflow:hidden
}
.paper-profile .paper-vehicle img{
  display:block;width:6.7cqw;height:6.7cqw;max-width:68%;max-height:100%;object-fit:contain;margin:0
}
.paper-variant-label{max-width:84%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.paper-choice-arrow{position:absolute;right:5%;top:50%;transform:translateY(-50%);font-size:2.6cqw}
.paper-profile .paper-equipped-camo{overflow:hidden;border-radius:50%;box-shadow:none}
.paper-equipped-camo img{width:100%;height:100%;object-fit:cover;margin:0}
.paper-profile .paper-install-label{background:#f4d7b3 url('art/paper.jpg') center;background-blend-mode:luminosity;font-size:4.5cqw}
.paper-type-menu{
  position:absolute;z-index:3;left:9%;top:24.1%;width:50%;max-height:53%;overflow:auto;
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;padding:6px;
  background:#f4d7b3 url('art/paper.jpg');border:2px solid #173c67;border-radius:9px
}
.paper-type-menu.paper-variant-menu{left:auto;right:9%;width:39%;grid-template-columns:1fr}
.paper-type-menu button{
  display:grid;justify-items:center;gap:2px;min-height:0;padding:4px;
  color:#182e52;background:#f4d7b3;border:1px solid #35506d;box-shadow:none;font:700 2.7cqw/1.15 Georgia,serif
}
.paper-type-menu button img{display:block;width:6.5cqw;height:6.5cqw;max-width:100%;object-fit:contain;margin:0}
.paper-type-menu button[aria-pressed=true]{border-color:#9b3425;background:#edd0a8}
.paper-profile .paper-account-status{position:absolute;z-index:5;bottom:4%;left:6%;right:6%;margin:0;background:#f5d9bb;color:#581e1c;padding:3px;text-align:center;font-size:3cqw}
.paper-profile .paper-account-status:empty{display:none}
dialog.paper-account-extra,dialog.paper-fitting{padding:16px;width:min(92vw,620px);overflow:auto;max-height:90vh;background:#f3dfc1 url('art/paper.jpg');color:#182e52}
.paper-account-extra header,.paper-fitting header{display:flex;align-items:center;justify-content:space-between;gap:.5em}
.paper-account-extra h2,.paper-fitting h2{margin:0 0 .3em}
.paper-fitting canvas{width:100%;height:auto;display:block;touch-action:none;cursor:grab;border:1px solid #19365e}
.paper-fitting canvas:active{cursor:grabbing}
.paper-fitting footer{display:flex;justify-content:center;flex-wrap:wrap;gap:.6em;margin-top:10px}
.paper-fitting footer button,.paper-account-extra button{color:#182e52;background:#f4d7b3;border-color:#19365e}
.paper-rename{display:grid;gap:.65em}
.paper-rename label{display:grid;gap:.35em}
.paper-rename input{width:100%;box-sizing:border-box}
.paper-rename p{margin:0}
.paper-rename button{justify-self:start}
