/* Fashion layout. Colours, type, the top bar and buttons come from the
   app's css/app.css, so this reads as part of Brighter Atlas. */
/* the page never scrolls (only its panels do): on iOS the document otherwise gains a scrollbar of its own */
html,
body {
  touch-action: manipulation;
  overscroll-behavior: none;
  overflow: hidden;
}
/* an app, not a document: a long press never starts a text selection or the iOS callout (which, once
   dismissed, left the page ignoring taps); the search box and the saved picture keep theirs */
.fashion,
.creator {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}
.fashion input,
.fashion textarea {
  -webkit-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
}
.fashion {
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  /* every drawer of the side panel (equipment, animations, the phone's background menu, the designer's panel) takes
     its insets from these: one place to change them, so the drawers never drift apart */
  --drawer-pad: 0.75rem;
  --drawer-gap: 0.625rem;
  --drawer-pad-bottom: 0.75rem;
}
/* a drawer, and the list in it that scrolls (its gutter and themed scrollbar from the site's scrollbar host) */
.of-drawer {
  display: flex;
  flex-direction: column;
  gap: var(--drawer-gap);
  flex: 1;
  min-height: 0;
  padding: var(--drawer-pad) var(--drawer-pad) var(--drawer-pad-bottom);
}
.of-drawer-list {
  flex: 1 1 0;
  min-height: 0;
  overflow: auto;
}
.fashion svg.ic {
  width: 0.875rem;
  height: 0.875rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.of-icon,
.of-icon-sm,
.of-share {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}
/* the view's toolbar: along its top, on the right, in the view's own glass (as the column of buttons) */
.of-toolbar {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  display: flex;
  gap: 0.375rem;
}
.of-toolbar[hidden] {
  display: none;
}
.of-toolbar .btn-mini {
  min-height: 2rem;
  padding: 0 0.625rem;
  background: rgba(13, 15, 19, 0.8);
  backdrop-filter: blur(6px);
}
.of-toolbar .btn-mini:disabled {
  opacity: 0.5;
}
/* the toolbar's one primary button (Share), in the app's call-to-action colours */
.of-toolbar .btn-mini.of-primary {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600;
}
.of-toolbar .btn-mini.of-primary:hover {
  background: var(--accent);
  color: #0d0f13;
}
.of-icon {
  padding: 0.1875rem 0.4375rem;
}
.of-share {
  padding: 0.25rem 0.75rem;
}
.btn-mini {
  display: inline-flex;
  align-items: center;
  gap: 0.3125rem;
}
.btn-mini:disabled {
  opacity: 0.35;
  cursor: default;
}

/* the side panel's column: its own width, or as dragged at its inner edge (--panel-w, as Brighter Data's panels) */
main {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--panel-w, 26.25rem);
  overflow: clip;
}
@media (max-width: 1280px) {
  main {
    grid-template-columns: minmax(0, 1fr) var(--panel-w, 23.75rem);
  }
}
/* (phones: the drawer is under the view, sized by its grab bar) */
@media (max-width: 860px) {
  .of-right > .rz-handle {
    display: none;
  }
}

.segmented {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 0.375rem;
  overflow: hidden;
  background: var(--bg2);
}
.segmented button {
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--fg1);
  padding: 0.3125rem 0.625rem;
  cursor: pointer;
  white-space: nowrap;
  font: inherit;
}
.segmented button + button {
  border-left: 1px solid var(--line);
}
.segmented button:hover:not(:disabled) {
  background: var(--bg3);
  color: var(--fg0);
}
.segmented button.on {
  background: var(--accent-dim);
  color: #fff;
}
.segmented button:disabled {
  opacity: 0.4;
  cursor: default;
}
.of-wide {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.4375rem 0.6875rem;
  text-align: left;
}
.small {
  font-size: 0.75rem;
}

/* ---- the viewer ---- */
.of-viewer {
  position: relative;
  min-height: 0;
  overflow: hidden;
}
.of-viewer canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
  touch-action: none;
  outline: none;
}
.of-viewer canvas.dragging {
  cursor: grabbing;
}
/* a place's view turned: the way back, and the hint the first turning place gives */
.of-viewer .of-viewback {
  position: absolute;
  left: 50%;
  bottom: 0.75rem;
  transform: translateX(-50%);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  border-radius: 999px;
  background: rgba(13, 15, 19, 0.72);
  border: 1px solid var(--line);
  color: var(--fg0);
  font: inherit;
  font-size: 0.8125rem;
  cursor: pointer;
}
.of-viewer .of-viewback .ic {
  width: 1rem;
  height: 1rem;
}
.of-viewer .of-viewhint {
  position: absolute;
  left: 50%;
  bottom: 0.75rem;
  transform: translateX(-50%);
  z-index: 3;
  max-width: calc(100% - 2rem);
  padding: 0.5rem 0.875rem;
  border-radius: 0.5rem;
  background: rgba(13, 15, 19, 0.78);
  color: var(--fg0);
  font-size: 0.8125rem;
  text-align: center;
  pointer-events: none;
  animation: of-hint 7s ease forwards;
}
@keyframes of-hint {
  0% {
    opacity: 0;
  }
  8% {
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
/* (beside the character: a drag from there turns the view and takes it up and down, the four-way cursor) */
.of-viewer canvas[data-turn='around'],
.of-viewer canvas[data-turn='around'].dragging {
  cursor: move;
}
.of-bg {
  position: relative;
}
/* the settings: a drawer of the side panel, in the equipment's place while Settings shows pressed */
.of-bgpop {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  padding: var(--drawer-pad) var(--drawer-pad) var(--drawer-pad-bottom);
}
#fashion.bg-mode .of-right .wardrobe {
  display: none;
}
.of-bgpop button {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.4375rem 0.625rem;
  border: 0;
  border-radius: 0.375rem;
  background: transparent;
  color: var(--fg0);
  text-align: left;
  cursor: pointer;
  font: inherit;
}
.of-bgpop button:hover {
  background: var(--bg3);
}
.of-bgpop button.on {
  background: var(--sel);
}
.of-bgpop button:disabled {
  opacity: 0.4;
  cursor: default;
  background: transparent;
}
.of-bghead {
  padding: 0.375rem 0.625rem 0.125rem;
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--fg2);
}
.of-bgdot.place {
  border-radius: 0.25rem;
}
.of-bgdot {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  flex: none;
}
/* (a place: its icon, in its colour) */
.of-bgdot.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  box-shadow: none;
}
.fashion .of-bgdot.icon svg.ic {
  width: 1.25rem;
  height: 1.25rem;
  stroke-width: 1.6;
}
/* the viewer's toggles: square icon buttons at the right edge, stacked when both show */
/* bottom right; the sword is the bottom one, the effect above it */
.of-controls {
  position: absolute;
  right: 0.75rem;
  bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
} /* from the top: weapons, effect, background, then (phones) Character and Equipment */
.of-controls .of-pose,
.of-controls .of-bgbtn {
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  display: grid;
  place-items: center;
  background: rgba(13, 15, 19, 0.8);
  backdrop-filter: blur(6px);
}
/* toggles: off is a dim icon; on is lit (white icon on a lighter glass), never the primary blue */
.of-controls .of-pose {
  color: var(--fg2);
}
.of-controls .of-pose.active,
.of-controls .of-bgbtn.active {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.42);
  color: #fff;
}
.of-controls .of-pose svg.ic,
.of-controls .of-bgbtn svg.ic {
  width: 1.125rem;
  height: 1.125rem;
}
.of-controls .fx-glyph {
  display: grid;
}
.of-pose:disabled {
  opacity: 0.45;
}
.of-controls [hidden] {
  display: none;
}
/* wider screens: bigger icon buttons, each named in a tooltip on hover or keyboard focus (its name, its keys, what it
   does); phones show the icons alone, and neither the tooltips nor the column's rule */
.of-tip,
.of-sep {
  display: none;
}
@media (min-width: 861px) {
  .of-controls {
    align-items: flex-end;
  }
  .of-controls .of-pose {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    position: relative;
  }
  .of-controls .of-pose svg.ic {
    width: 1.375rem;
    height: 1.375rem;
  }
  .of-controls [hidden] {
    display: none;
  }
  .of-sep {
    display: block;
    width: 2rem;
    height: 1px;
    margin: 0.125rem 0.5rem;
    background: rgba(255, 255, 255, 0.12);
  }
  .of-toolbar .btn-mini {
    min-height: 2.5rem;
    border-radius: 0.625rem;
    position: relative;
  }
  .of-toolbar .of-icon,
  .of-toolbar .of-share {
    width: 2.5rem;
    padding: 0;
    justify-content: center;
  }
  .of-toolbar .btn-mini.of-primary {
    padding: 0 0.875rem;
  }
  .of-toolbar .btn-mini svg.ic,
  .of-toolbar .of-bgbtn svg.ic {
    width: 1.125rem;
    height: 1.125rem;
  }
  .of-tip {
    display: block;
    position: absolute;
    z-index: 5;
    pointer-events: none;
    opacity: 0;
    width: max-content;
    max-width: 15rem;
    padding: 0.375rem 0.5625rem;
    border-radius: 0.4375rem;
    background: #f2f5f9;
    color: #11141a;
    font-size: 0.75rem;
    line-height: 1.35;
    font-weight: 400;
    text-align: left;
    white-space: normal;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
    transition:
      opacity 0.12s,
      transform 0.12s;
  }
  .of-tip b {
    display: block;
    font-weight: 700;
    font-size: 0.8125rem;
  }
  .of-tip kbd {
    font: 600 0.625rem/1 var(--sans);
    background: #dde3ea;
    color: #3a4250;
    border-radius: 0.1875rem;
    padding: 0.125rem 0.25rem;
    margin-left: 0.375rem;
    vertical-align: 0.0625rem;
  }
  /* the column's to their left, the toolbar's under them */
  .of-controls .of-tip {
    right: calc(100% + 0.625rem);
    top: 50%;
    transform: translate(0.25rem, -50%);
  }
  .of-toolbar .of-tip {
    top: calc(100% + 0.5rem);
    right: 0;
    transform: translateY(-0.25rem);
  }
  .of-controls .of-pose:is(:hover, :focus-visible) > .of-tip {
    opacity: 1;
    transform: translate(0, -50%);
    transition-delay: 0.3s;
  }
  .of-toolbar .btn-mini:is(:hover, :focus-visible) > .of-tip {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
  }
}
@media (min-width: 861px) and (prefers-reduced-motion: reduce) {
  .of-tip {
    transition: none;
  }
}
.fx-glyph {
  color: #9fe0b8;
}

/* ---- equipment ---- */
.of-right {
  background: var(--bg1);
  border-left: 1px solid var(--line);
  overflow: clip; /* clip, not hidden: nothing may scroll the panel (it would carry the grab bar away) */
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.of-wardhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.of-wardhead h2 {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.1px;
  color: var(--fg2);
}
.of-wardactions {
  display: flex;
  gap: 0.375rem;
}
.slots {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.375rem;
  flex: none;
}
.slot-cell {
  position: relative;
  min-width: 0;
  display: flex;
}
.slot {
  position: relative;
  flex: 1;
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1875rem;
  padding: 0.375rem 0.25rem 0.3125rem;
  min-height: 3.75rem;
  border-radius: 0.375rem;
  border: 1px solid var(--line);
  background: var(--bg2);
  color: var(--fg1);
  cursor: pointer;
  font: inherit;
}
.slot:hover {
  background: var(--bg3);
  color: var(--fg0);
}
.slot img {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
  flex: none;
}
.slot-glyph {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  color: var(--fg2);
}
.slot-glyph svg.ic {
  width: 1.375rem;
  height: 1.375rem;
}
.slot-name {
  font-size: 0.6875rem;
}
.slot.on {
  border-color: var(--accent);
  background: var(--sel);
  color: var(--fg0);
}
.slot.filled .slot-name {
  color: var(--fg0);
}
.slot-x {
  position: absolute;
  top: 1px;
  right: 1px;
  width: 1.5rem;
  height: 1.5rem;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 0 0.375rem 0 0.5rem;
  color: var(--fg2);
  font: inherit;
  font-size: 0.9375rem;
  cursor: pointer;
}
.slot-x:hover {
  color: #fff;
  background: var(--bad);
}
.search {
  width: 100%;
  padding: 0.4375rem 0.625rem;
  border-radius: 0.375rem;
  background: var(--bg3);
  border: 1px solid var(--line);
  color: var(--fg0);
  font: inherit;
  outline: none;
  flex: none;
}
.search:focus {
  border-color: var(--accent-dim);
}
.search::placeholder {
  color: var(--fg2);
}
.items {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-height: 7.5rem;
  padding-right: 0.125rem;
  border-radius: 0.375rem;
}
.items:focus-visible {
  outline: 1px solid var(--accent-dim);
}
.group {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--bg1);
  padding: 0.5rem 0.25rem 0.25rem;
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--fg2);
}
/* (the list's two halves: equipment, then transmogs) */
.section {
  padding: 0.75rem 0.25rem 0.125rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--fg1);
  border-bottom: 1px solid var(--line);
  margin-bottom: 0.125rem;
}
.section:first-child,
.item.none + .section {
  padding-top: 0.375rem;
}
.item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-align: left;
  padding: 0.25rem 0.375rem;
  border: 1px solid transparent;
  border-radius: 0.375rem;
  background: transparent;
  color: var(--fg0);
  cursor: pointer;
  font: inherit;
  flex: none;
}
.item:hover {
  background: var(--bg2);
}
.item.on {
  background: var(--sel);
  border-color: var(--accent-dim);
}
.item img {
  width: 2.25rem;
  height: 2.25rem;
  object-fit: contain;
  flex: none;
}
.item-glyph {
  width: 2.25rem;
  height: 2.25rem;
  flex: none;
  border-radius: 0.375rem;
  background: var(--bg2);
  display: grid;
  place-items: center;
  color: var(--fg2);
}
.item-glyph svg.ic {
  width: 1.125rem;
  height: 1.125rem;
}
.item-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.item-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.item-sub {
  font-size: 0.6875rem;
  color: var(--fg2);
}
.item-count {
  font-size: 0.6875rem;
  color: var(--fg1);
  background: var(--bg3);
  border-radius: 0.625rem;
  padding: 0 0.4375rem;
}
.dye-badge {
  display: inline-block;
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  margin-left: 0.375rem;
  background: conic-gradient(#c05050, #d0b050, #50a060, #4080c0, #9050a0, #c05050);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4);
}
.empty,
.hint {
  color: var(--fg2);
  margin: 0.375rem 0.125rem;
}
.details {
  border-top: 1px solid var(--line);
  padding-top: 0.625rem;
  flex: 0 1 auto;
  max-height: 48%;
  overflow: auto;
}
.detail-head {
  display: flex;
  gap: 0.625rem;
  align-items: center;
}
.detail-head img,
.thumb-lg {
  width: 2.75rem;
  height: 2.75rem;
  object-fit: contain;
  flex: none;
}
img.rendered {
  background: radial-gradient(circle, #2a3140, #1a1e26);
  border-radius: 0.375rem;
}
.detail-title {
  flex: 1;
  min-width: 0;
}
.details h3 {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 650;
}
.examine {
  margin: 0.5rem 0 0;
  color: var(--fg1);
  font-style: italic;
}
.label {
  margin: 0.75rem 0 0.375rem;
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--fg2);
}
.label b {
  color: var(--fg0);
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.75rem;
  font-weight: 600;
  margin-left: 0.25rem;
}
.sublabel {
  margin: 0.375rem 0 0.25rem;
  font-size: 0.6875rem;
  color: var(--fg2);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3125rem;
}
.chips button {
  padding: 0.125rem 0.5rem;
  font-size: 0.75rem;
  border-radius: 62.4375rem;
  border: 1px solid var(--line);
  background: var(--bg2);
  color: var(--fg1);
  cursor: pointer;
  font: inherit;
}
.chips button:hover {
  background: var(--bg3);
  color: var(--fg0);
}
.chips button.on {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: #fff;
}
/* (one size everywhere: the phones' targets, which a mouse finds easily too) */
.swatches {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(2.125rem, 1fr));
  gap: 0.4375rem;
}
.swatch {
  aspect-ratio: 1;
  padding: 0;
  border-radius: 0.3125rem;
  border: 2px solid transparent;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  cursor: pointer;
}
.swatch:hover {
  transform: scale(1.08);
}
.swatch.on {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.of-set {
  margin-top: 0.625rem;
  justify-content: center;
}
.of-dyeall {
  margin: 0.125rem 0 0.375rem;
  justify-content: center;
}
.fx-badge {
  color: #9fe0b8;
  margin-left: 0.375rem;
  font-size: 0.75rem;
}
.fx-note {
  margin: 0.5rem 0 0;
  color: var(--fg1);
  font-size: 0.75rem;
}
.fx-note .fx-badge {
  margin: 0 0.125rem 0 0;
}

/* toasts: the message bar's look and place (top centre of the view), below it when it shows, fading in and out */
#toast {
  position: absolute;
  left: 50%;
  top: 3.5rem;
  transform: translate(-50%, -0.25rem);
  z-index: 3;
  width: max-content;
  max-width: calc(100% - 1.5rem);
  background: rgba(13, 15, 19, 0.85);
  border: 1px solid var(--line);
  color: var(--fg1);
  font-size: 0.78125rem;
  line-height: 1.35;
  text-align: center;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  backdrop-filter: blur(6px);
  opacity: 0;
  transition:
    opacity 0.2s,
    transform 0.2s;
  pointer-events: none;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
/* a look's link (the looks' panel, the picture): the link in a field, selected to copy, and Copy beside it */
.share-field {
  display: flex;
  align-items: stretch;
  gap: 0.375rem;
  width: 100%;
  min-width: 0;
}
.share-url {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0.4375rem 0.5625rem;
  border-radius: 0.375rem;
  border: 1px solid var(--line);
  background: var(--bg1);
  color: var(--fg0);
  font: 0.78125rem var(--mono);
  text-overflow: ellipsis;
}
.share-field.ready .share-url {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, var(--bg1));
}
.share-url::placeholder {
  color: var(--fg2);
  font-family: inherit;
}
.share-field .btn {
  flex: none;
  min-height: 2.125rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0 0.875rem;
}
.share-field .share-copy {
  min-width: 4.5rem;
}
.share-field .share-copy:disabled {
  opacity: 1;
}
.share-field .share-send svg.ic {
  width: 1rem;
  height: 1rem;
}
/* (the wheel in Copy while the link is made) */
.share-wheel {
  width: 0.875rem;
  height: 0.875rem;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  animation: share-spin 0.8s linear infinite;
}
@keyframes share-spin {
  to {
    transform: rotate(360deg);
  }
}
/* "Copied to clipboard", just above where the click or tap was, over everything */
.of-bubble {
  position: fixed;
  z-index: 1100;
  transform: translate(-50%, calc(-100% - 0.625rem));
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5625rem 0.875rem;
  border-radius: 62.4375rem;
  background: var(--accent);
  color: #0d0f13;
  font-weight: 700;
  font-size: 0.875rem;
  white-space: nowrap;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  animation: of-bubble 1.8s ease-out forwards;
}
.of-bubble-tick {
  display: grid;
  place-items: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: #0d0f13;
  color: var(--accent);
  font-size: 0.75rem;
}
@keyframes of-bubble {
  0% {
    opacity: 0;
    transform: translate(-50%, calc(-100% + 0.125rem)) scale(0.9);
  }
  12% {
    opacity: 1;
    transform: translate(-50%, calc(-100% - 0.625rem)) scale(1);
  }
  80% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .of-bubble {
    animation: none;
  }
  .share-wheel {
    animation-duration: 2.4s;
  }
}

.of-short {
  display: none;
}

/* ---- desktop: the list keeps the panel's height; the worn item's tier and dye open in its place, a level of their
   own as on phones (the worn row's Customise opens them, the breadcrumb or Escape comes back) ---- */
@media (min-width: 861px) {
  .details {
    max-height: none;
    padding-top: 0;
    flex: none;
    border-top: 0;
  }
  .wardrobe:not(.adjusting) .details > :not(.hint) {
    display: none;
  }
  .wardrobe.adjusting .items,
  .wardrobe.adjusting .search {
    display: none;
  }
  .wardrobe.adjusting .details {
    flex: 1;
    overflow: auto;
  }
}
/* ---- short windows: tighter slots ---- */
@media (max-height: 800px) and (min-width: 861px) {
  .slots {
    gap: 0.25rem;
  }
  .slot {
    gap: 1px;
    min-height: 2.875rem;
    padding: 0.1875rem 0.25rem;
  }
  .slot img,
  .slot-glyph {
    width: 1.375rem;
    height: 1.375rem;
  }
  .slot-name {
    font-size: 0.6875rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
  }
}

/* ---- phones ---- */
@media (max-width: 860px) {
  .of-controls {
    right: 0.5rem;
    bottom: 0.5rem;
  }
  .of-icon-sm span,
  .of-share span {
    display: none;
  }
  /* (Share, the page's key action, keeps its word on phones; the others are icons) */
  .of-toolbar .of-primary span {
    display: inline;
  }
  .of-toolbar .btn-mini.of-primary {
    padding: 0 0.75rem;
  }
  .of-toolbar {
    top: 0.5rem;
    right: 0.5rem;
  }
  .of-toolbar .btn-mini {
    min-width: 2.375rem;
    min-height: 2.25rem;
    justify-content: center;
    padding: 0 0.5rem;
  }
  .fashion svg.ic {
    width: 1.0625rem;
    height: 1.0625rem;
  }
  main {
    display: flex;
    flex-direction: column;
  }
  .of-viewer {
    flex: 0 0 auto;
    height: 40dvh;
  }
  .of-right {
    flex: 1;
    min-height: 7.25rem;
    border: 0;
    border-top: 1px solid var(--line);
  } /* never squeezed out: the grab bar and slots stay */
  .fashion {
    --drawer-pad: 0.625rem;
    --drawer-gap: 0.5rem;
    --drawer-pad-bottom: calc(0.625rem + env(safe-area-inset-bottom, 0px));
  }
  .slots {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    margin: 0 calc(-1 * var(--drawer-pad));
    padding: 0 var(--drawer-pad) 0.125rem;
  }
  .slot-cell {
    flex: 0 0 4.125rem;
  }
  .slot {
    min-height: 3.625rem;
  }
  .slot-x {
    width: 1.75rem;
    height: 1.75rem;
  }
  .items {
    min-height: 5.625rem;
  }
  .item {
    padding: 0.375rem;
  }
  .details {
    max-height: none;
    padding-top: 0;
    flex: none;
  }
  .details .detail-head,
  .details .examine {
    display: none;
  }
  .wardrobe:not(.adjusting) .details > :not(.hint) {
    display: none;
  }
  .wardrobe.adjusting .items,
  .wardrobe.adjusting .search {
    display: none;
  }
  .wardrobe.adjusting .details {
    flex: 1;
    overflow: auto;
  }
  .chips button {
    padding: 0.25rem 0.6875rem;
    font-size: 0.8125rem;
  }
  .of-wardactions .btn-mini {
    min-height: 2.125rem;
  }
  .details .hint {
    display: none;
  }
  .of-viewer {
    height: 37dvh;
  }
  .of-wardactions .of-long {
    display: none;
  }
  .of-wardactions .of-short {
    display: inline;
  }
  .of-wardhead h2 {
    display: none;
  }
  .of-wardactions {
    width: 100%;
    display: flex;
    gap: 0.375rem;
    justify-content: flex-start;
  }
}
@media (max-width: 860px) and (orientation: landscape) and (max-height: 520px) {
  main {
    flex-direction: row;
  }
  .slot-cell {
    flex-basis: 3.375rem;
  }
  .slot-x {
    width: 1.25rem;
    height: 1.25rem;
    font-size: 0.8125rem;
  }
  .slot {
    min-height: 2.75rem;
    padding: 0.1875rem;
  }
  .slot-name {
    font-size: 0.625rem;
  }
  .of-viewer {
    height: auto;
    flex: 1 1 55%;
  }
  .of-right {
    flex: 1 1 45%;
    border-top: 0;
    border-left: 1px solid var(--line);
  }
}
@media (max-width: 860px), (pointer: coarse) {
  .of-long {
    display: none;
  }
  .of-short {
    display: inline;
  }
}
@media (pointer: coarse) {
  .segmented button {
    min-height: 2.25rem;
  }
  .chips button {
    min-height: 2rem;
  }
}
/* rendered thumbnails: a soft pool of light behind, so dark pieces (a black hat) read on the dark list */
img.rendered {
  background: radial-gradient(circle at 50% 48%, rgba(176, 192, 218, 0.26), rgba(176, 192, 218, 0) 68%);
}

/* the narrowest phones: the top bar keeps its buttons on screen */
@media (max-width: 380px) {
  #topbar .top-right {
    gap: 0.25rem;
  }
}
/* while designing, the page underneath is out of the way (the designer's glass shows only the room) */
/* designing (wider screens): the designer is the side panel's drawer, in the equipment's place */
#fashion.designing:not(.design-sheet) .of-right .wardrobe {
  display: none;
}
.cp-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
/* phones: the designer's sheet over the page, the drawer under it out of the way (the column of buttons works on) */
#fashion.design-sheet .of-right {
  visibility: hidden;
}
/* ---- the wardrobe panel folds away (desktop: a rail on its inner edge, as the Brighter Atlas side panels) ---- */
.of-right {
  position: relative;
}
.of-grip {
  position: absolute;
  left: -0.9375rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 27;
}
.of-grip-bar {
  display: none;
}
.of-panel-toggle {
  width: 0.9375rem;
  height: 4rem;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg1);
  border: 1px solid var(--line);
  border-right: none;
  border-radius: 0.375rem 0 0 0.375rem;
  color: var(--fg2);
  font-size: 0.8125rem;
  line-height: 1;
  cursor: pointer;
}
.of-panel-toggle:hover {
  background: var(--bg3);
  color: var(--fg0);
}
.of-panel-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
@media (min-width: 861px) {
  /* (the pull-tab straddles the panel's inner edge, outside its box, as Brighter Data's: the panel must not clip it; its
     own drawers scroll inside it, so nothing scrolls the panel itself) */
  .of-right {
    overflow: visible;
  }
  #fashion.panel-collapsed main {
    grid-template-columns: minmax(0, 1fr) 2rem;
  }
  #fashion.panel-collapsed .of-right > :not(.of-grip) {
    display: none;
  }
  #fashion.panel-collapsed .of-grip {
    inset: 0;
    left: 0;
    transform: none;
  }
  #fashion.panel-collapsed .of-panel-toggle {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 0;
    background: none;
  }
  #fashion.panel-collapsed .of-panel-toggle:hover {
    background: var(--bg2);
  }
}
/* phones: a grab bar between the character and the wardrobe; drag to resize, the chevron folds the wardrobe to its slots */
@media (max-width: 860px) {
  .of-grip {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    flex: none;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: none;
    cursor: ns-resize;
    border-bottom: 1px solid var(--line-soft, var(--line));
  }
  /* the handle: two thin lines, centred in a band that never shrinks */
  .of-grip-bar {
    display: block;
    width: 1.75rem;
    height: 0.375rem;
    border-top: 1.5px solid var(--fg2);
    border-bottom: 1.5px solid var(--fg2);
    opacity: 0.75;
  }
  .of-grip:hover .of-grip-bar {
    opacity: 1;
  }
  .of-grip.dragging .of-grip-bar {
    border-color: var(--accent);
    opacity: 1;
  }
  .of-panel-toggle {
    display: none;
  } /* the bar itself folds (tap) and resizes (drag) */
  .of-grip {
    flex: 0 0 1.75rem;
    height: 1.75rem;
    min-height: 1.75rem;
    box-sizing: border-box;
    cursor: row-resize;
  }
  .of-grip:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: -2px;
  }
  .of-viewer {
    flex: 0 0 auto;
  }
}
@media (max-width: 860px) and (orientation: portrait) {
  #fashion.panel-collapsed .of-viewer {
    flex: 1 1 auto;
    height: auto !important;
  }
  /* folded (Character and Equipment both off): no drawer at all, the character fills the screen; the
     column's buttons sit as far from the foot as from the side, clear of the home indicator (the page
     itself ends above iOS Safari's floating toolbar) */
  main {
    position: relative;
  }
  #fashion.panel-collapsed .of-right {
    display: none;
  }
  #fashion.panel-collapsed .of-controls {
    bottom: calc(env(safe-area-inset-bottom, 0px) + 0.5rem);
  }
}
/* iPhone Safari's toolbar floats over the page's bottom strip: keep the controls clear of it */
@media (max-width: 860px) {
  .ios-browser .fashion {
    --drawer-pad-bottom: calc(max(env(safe-area-inset-bottom, 0px), 1.875rem) + 0.25rem);
  } /* just clear of the toolbar */
}
@media (max-width: 860px) and (orientation: landscape) and (max-height: 520px) {
  .of-grip {
    display: none;
  }
  .ios-browser .fashion {
    --drawer-pad-bottom: 0.75rem;
  }
}
/* an equipped piece the composer drops (something drawn earlier covers the same place) */
.hidden-note {
  margin: 0.5rem 0 0.125rem;
  padding: 0.5rem 0.625rem;
  border-radius: 0.5rem;
  border: 1px solid var(--warn, #d9a441);
  background: rgba(217, 164, 65, 0.08);
  color: var(--fg0);
  font-size: 0.78125rem;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  align-items: flex-start;
}
.hidden-note p {
  margin: 0;
}
.slot.covered .slot-img,
.slot.covered .slot-glyph {
  opacity: 0.4;
}
/* a worn piece that is not showing: the slot outlined amber (picked or not), its picture dimmed, and a strip along
   its bottom saying what covers it, the whole strip a button (a tap says why and offers to take that off) */
.slot.covered,
.slot.covered.on {
  border-color: var(--warn, #d9a441);
}
.slot.covered {
  padding-bottom: 1.375rem;
}
.slot-covered {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.1875rem;
  padding: 0 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  border-radius: 0 0 0.3125rem 0.3125rem;
  border-top: 1px solid rgba(217, 164, 65, 0.35);
  background: rgba(217, 164, 65, 0.18);
  color: #f0c46a;
  font-size: 0.65625rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background 0.12s,
    color 0.12s;
}
.slot-covered-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.slot-covered:hover,
.slot-covered:focus-visible {
  background: rgba(217, 164, 65, 0.32);
  color: #ffd98a;
  outline: none;
}
.slot-covered:focus-visible {
  box-shadow: inset 0 0 0 2px rgba(255, 217, 138, 0.7);
}
.fashion .slot-covered svg.ic {
  width: 0.75rem;
  height: 0.75rem;
  flex: none;
  color: var(--warn, #d9a441);
  stroke-width: 2.4;
}
.covered-note {
  max-width: 23.75rem;
}
/* the random outfit's settings (the app's dialog) */
/* the settings menu's two folding sections (Background; Randomize equipment), each named with its icon */
.of-bgsec > summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5625rem 0.625rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--fg0);
  cursor: pointer;
  user-select: none;
}
.of-bgsec > summary::-webkit-details-marker {
  display: none;
}
.of-bgsec > summary:hover {
  background: var(--bg3);
}
.of-bgsec > summary svg.ic {
  width: 1rem;
  height: 1rem;
  color: var(--fg1);
}
.of-bgsec > summary::after {
  content: '';
  margin-left: auto;
  width: 0.4375rem;
  height: 0.4375rem;
  border-right: 1.5px solid var(--fg2);
  border-bottom: 1.5px solid var(--fg2);
  transform: rotate(-45deg);
  transition: transform 0.15s;
}
.of-bgsec[open] > summary::after {
  transform: rotate(45deg);
}
.of-bgsec + .of-bgsec {
  border-top: 1px solid var(--line);
  margin-top: 0.125rem;
  padding-top: 0.125rem;
}
/* (a section's rows: the whole width is the row, to tap and to show it picked) */
.of-bgsec > button {
  width: 100%;
  box-sizing: border-box;
  text-align: left;
}
.of-bgsec > .of-bghead:first-of-type {
  padding-top: 0.125rem;
}
.of-right > .of-bgpop .of-bgsec > summary {
  padding: 0.75rem 0.5rem;
  font-size: 0.875rem;
}
/* the random outfit's settings, in the settings menu (a section after the background and ground) */
.of-bgpop .rs-label {
  padding: 0.5rem 0.625rem 0.25rem;
  font-size: 0.75rem;
  color: var(--fg1);
}
/* (the faction picker: the tier picker's own pills, .chips) */
.of-bgpop .rs-faction {
  padding: 0.125rem 0.625rem 0.5rem;
}
.of-bgpop .rs-checks {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  padding: 0 0.375rem;
}
.of-bgpop .rs-check {
  min-height: 2.125rem;
  padding: 0 0.25rem;
}
.of-bgpop .rs-reset {
  margin: 0.375rem 0.375rem 0.125rem;
  justify-content: center;
  border: 1px solid var(--line);
}
/* the rendering settings (a section after the random outfit): lighting, shadows, glow, the sun */
.of-bgpop .rd-lighting {
  padding: 0.125rem 0.625rem 0.5rem;
}
.of-bgpop .rd-range {
  display: block;
  padding: 0 0 0.375rem;
}
.of-bgpop .rd-range .rs-label {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}
.of-bgpop .rd-range .rs-label b {
  font-weight: 500;
  color: var(--fg0, inherit);
}
.of-bgpop .rd-range input[type='range'] {
  display: block;
  width: calc(100% - 1.25rem);
  margin: 0.125rem 0.625rem 0;
  accent-color: var(--accent);
}
.of-bgpop .rd-range input:disabled,
.of-bgpop .rs-check input:disabled + span {
  opacity: 0.45;
}
.of-bgpop .rd-hint {
  margin: -0.375rem 0.25rem 0.25rem 1.875rem;
  color: var(--fg2);
  font-size: 0.75rem;
  line-height: 1.35;
}
.of-bgpop .rd-note {
  margin: 0.25rem 0.625rem 0.375rem;
  padding: 0.5rem 0.625rem;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  color: var(--fg1);
  font-size: 0.75rem;
  line-height: 1.4;
}

/* ---- the designer on phones: a sheet in the drawer's place, under the page's own view, which frames the part being
   chosen with the page's backdrop, weapons and effect; only its drawer and grab bar take touches, the view above turns
   and zooms as always (wider screens: a drawer of the side panel, .cp-list) ---- */
.creator {
  position: fixed;
  inset: 0;
  top: calc(var(--topbar-h) + env(safe-area-inset-top, 0px));
  z-index: 50;
  display: flex;
  pointer-events: none;
  padding: 0 env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
}
.creator[hidden] {
  display: none;
}
.creator-box {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  overflow: hidden;
}
.creator-drawer {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-left: 1px solid var(--line);
  pointer-events: auto;
  background: var(--bg1);
}
.creator-drawer .creator-panel {
  flex: 1;
  border-left: 0;
}
.cp-tools {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.cp-tools .cp-random {
  flex: 1;
  justify-content: center;
}
.of-check {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--fg1);
  cursor: pointer;
  white-space: nowrap;
  font-size: 0.8125rem;
}
.of-check input {
  accent-color: var(--accent);
  margin: 0;
}
.creator-body {
  display: grid;
  min-height: 0;
}
.creator-stage {
  position: relative;
  min-height: 0;
}
.creator-grip {
  display: none;
}
.creator-panel {
  padding: var(--drawer-pad) var(--drawer-pad) var(--drawer-pad-bottom);
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
} /* (a drawer's insets) */
.cp-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.cp-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.1px;
  color: var(--fg2);
}
.cp-head b {
  text-transform: none;
  letter-spacing: 0;
  color: var(--fg1);
  font-size: 0.75rem;
  font-weight: 600;
}
.cp-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.cp-gender {
  flex: 1;
}
.cp-random {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}
.cp-parts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.375rem;
}
.cp-parts button {
  padding: 0.4375rem 0.25rem;
  border-radius: 0.375rem;
  border: 1px solid var(--line);
  background: var(--bg2);
  color: var(--fg1);
  font: inherit;
  cursor: pointer;
}
.cp-parts button:hover {
  background: var(--bg3);
  color: var(--fg0);
}
.cp-parts button.on {
  background: var(--sel);
  border-color: var(--accent-dim);
  color: var(--fg0);
}
.cp-step {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr) 2.25rem;
  align-items: center;
  gap: 0.625rem;
}
.cp-step .btn {
  height: 2.125rem;
  padding: 0;
  display: grid;
  place-items: center;
}
.cp-range {
  width: 100%;
  accent-color: var(--accent);
}
.cp-colours {
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 0.375rem;
}
.creator-keys {
  margin: auto 0 0;
  color: var(--fg2);
  font-size: 0.75rem;
}
@media (max-width: 860px) {
  .creator-drawer {
    border-left: 0;
  }
  .of-check {
    min-height: 2.25rem;
    font-size: 0.78125rem;
    gap: 0.3125rem;
  }
  .creator-body {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: var(--stage-h, 42%) auto minmax(0, 1fr);
  }
  .creator-body .creator-grip {
    display: flex;
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    height: 1.8125rem;
    min-height: 1.8125rem;
    border-bottom: 1px solid var(--line-soft); /* (the page's grab bar to the pixel: its drawer's top border, 27px, a soft line) */
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    touch-action: none;
    cursor: row-resize;
    border-top: 1px solid var(--line);
    background: var(--bg1);
    pointer-events: auto;
  }
  .creator-panel {
    gap: 0.875rem;
  }
  .creator-keys {
    display: none;
  }
  .cp-parts button {
    padding: 0.5625rem 0.25rem;
  }
  .cp-step {
    grid-template-columns: 2.75rem minmax(0, 1fr) 2.75rem;
  }
  .cp-step .btn {
    height: 2.5rem;
  }
}
@media (max-width: 860px) and (orientation: landscape) and (max-height: 520px) {
  .creator-body {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: none;
  }
  .creator-body .creator-grip {
    display: none;
  }
  .creator-drawer {
    border-left: 1px solid var(--line);
  }
  .creator-panel {
    border-top: 0;
  }
}
@media (max-width: 400px) {
}

/* touch screens: the always-visible scrollbar (scrollbar.ts) in a gutter of its own; the browser's is hidden */
.cp-row {
  flex-wrap: wrap;
}
/* the Ground choices' markers: a ring, a soft shadow, nothing */
.of-bgdot.floor-ring {
  background: radial-gradient(circle, rgba(0, 0, 0, 0.6) 30%, transparent 62%);
  box-shadow: inset 0 0 0 1.5px rgba(200, 178, 122, 0.7);
}
.of-bgdot.floor-shadow {
  background: radial-gradient(circle, rgba(0, 0, 0, 0.75) 25%, transparent 70%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.of-bgdot.floor-none {
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

/* ---- the breadcrumb: back from the worn item's choices to the list (every size), and on phones from a slot's items
   to the slots (the master view) ---- */
.crumbs {
  display: none;
  align-items: center;
  gap: 0.375rem;
  min-width: 0;
  font-size: 0.8125rem;
  color: var(--fg2);
}
.wardrobe.adjusting .crumbs {
  display: flex;
}
.crumb-back {
  display: inline-flex;
  align-items: center;
  gap: 0.125rem;
  margin-left: -0.375rem;
  padding: 0.375rem 0.5rem 0.375rem 0.25rem;
  border: 0;
  border-radius: 0.375rem;
  background: none;
  color: var(--accent);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.crumb-back:hover,
.crumb-back:active {
  background: var(--bg2);
}
.fashion .crumb-back svg.ic {
  width: 1rem;
  height: 1rem;
}
.crumb-here {
  color: var(--fg0);
  font-weight: 600;
}
.crumb-item {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.crumb-item::before {
  content: '·';
  margin-right: 0.375rem;
}
/* ---- phones: master (the slots) and detail (a slot's items, under a breadcrumb) ---- */
.slot-info {
  display: none;
}
@media (max-width: 860px) and (orientation: portrait) {
  .wardrobe:not(.in-slot) .crumbs,
  .wardrobe:not(.in-slot) .search,
  .wardrobe:not(.in-slot) .items,
  .wardrobe:not(.in-slot) .details {
    display: none;
  }
  .wardrobe.in-slot .of-wardhead,
  .wardrobe.in-slot .slots {
    display: none;
  }
  /* the master: all eight slots at once, each with what is worn there */
  /* the master view scrolls as one (its Random and Unequip row with the slots, under one scrollbar's gutter) */
  .wardrobe:not(.in-slot) {
    overflow-y: auto;
  }
  .wardrobe:not(.in-slot) .slots {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: start;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    overflow: visible;
    flex: none;
  }
  .wardrobe:not(.in-slot) .slot-cell {
    flex: none;
  }
  .wardrobe:not(.in-slot) .slot {
    min-height: 4.75rem;
    height: 100%;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem 1.75rem 0.5rem 0.5rem;
    text-align: left;
  }
  .wardrobe:not(.in-slot) .slot-img,
  .wardrobe:not(.in-slot) .slot-glyph {
    width: 2.5rem;
    height: 2.5rem;
    flex: none;
  }
  .wardrobe:not(.in-slot) .slot-glyph {
    display: grid;
    place-items: center;
    border-radius: 0.375rem;
    background: var(--bg3);
  }
  .wardrobe:not(.in-slot) .slot > .slot-name {
    display: none;
  }
  .wardrobe:not(.in-slot) .slot-info {
    display: flex;
  }
  /* (a covered slot's strip: a line of its own under the row, edge to edge) */
  .wardrobe:not(.in-slot) .slot.covered {
    flex-wrap: wrap;
    row-gap: 0.5rem;
    padding-bottom: 0.5rem;
  }
  .wardrobe:not(.in-slot) .slot.covered .slot-info {
    flex: 1 1 0;
  } /* (beside the picture still, the strip alone wrapping under them) */
  .wardrobe:not(.in-slot) .slot-covered {
    order: 1;
    position: static;
    flex: 1 0 100%;
    margin: 0 -1.75rem -0.5rem -0.5rem;
    height: 1.5rem;
    padding: 0 0.625rem;
    font-size: 0.71875rem;
    justify-content: flex-start;
    gap: 0.375rem;
  }
  .wardrobe:not(.in-slot) .slot-covered svg.ic {
    width: 0.8125rem;
    height: 0.8125rem;
  }
  .slot-info {
    flex-direction: column;
    min-width: 0;
    gap: 1px;
    line-height: 1.25;
  }
  .slot-label {
    font-size: 0.65625rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--fg2);
  }
  .slot-item {
    font-size: 0.8125rem;
    color: var(--fg0);
    font-weight: 600;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow-wrap: anywhere;
  }
  .slot:not(.filled) .slot-item {
    color: var(--fg2);
    font-weight: 400;
  }
  .slot-sub {
    font-size: 0.71875rem;
    color: var(--fg2);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .wardrobe:not(.in-slot) .slot.on {
    border-color: var(--line);
    background: var(--bg2);
  } /* no slot is "open" here */
  /* the breadcrumb */
  .wardrobe.in-slot .crumbs {
    display: flex;
  }
}
/* the worn row's way into its choices */
.item-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
}
.item-wrap .item {
  padding-right: 7.25rem;
}
.item-wrap .item-count {
  display: none;
}
.item-customise {
  display: inline-flex;
  align-items: center;
  gap: 0.125rem;
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  min-height: 2.125rem;
  padding: 0 0.375rem 0 0.75rem;
  color: var(--accent);
  font-weight: 600;
}
.fashion .item-customise svg.ic {
  width: 0.9375rem;
  height: 0.9375rem;
}
@media (max-width: 860px) and (orientation: portrait) {
  .wardrobe.in-slot:not(.adjusting) .details {
    display: none;
  }
  .wardrobe.in-slot.adjusting .details {
    border-top: 0;
  }
}
@media (max-width: 860px) and (orientation: portrait) {
  .of-wardhead {
    flex-wrap: nowrap;
    gap: 0.375rem;
    justify-content: flex-start;
  }
  .of-wardactions {
    width: auto;
  }
}
@media (max-width: 860px) and (orientation: portrait) {
  .of-wardactions {
    flex: 1;
    min-width: 0;
  }
  .of-wardactions .btn-mini {
    white-space: nowrap;
    flex: 1;
    justify-content: center;
    gap: 0.3125rem;
    padding: 0 0.5rem;
  }
}

/* ---- looks: save this one, wear or share a saved one: a drawer of the side panel (.of-drawer), in the equipment's
   place while the Looks button shows pressed ---- */
#fashion.looks-mode .of-right .wardrobe {
  display: none;
}
.of-looks .lk-body {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.of-toolbar .btn-mini.active {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.42);
  color: var(--fg0);
}
.lk-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--fg2);
}
.lk-head b {
  font-weight: 600;
}
.lk-head .btn-mini {
  text-transform: none;
  letter-spacing: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.3125rem;
}
.lk-save {
  display: flex;
  gap: 0.5rem;
}
.lk-name {
  flex: 1;
  min-width: 0;
  padding: 0.4375rem 0.625rem;
  border-radius: 0.375rem;
  background: var(--bg3);
  border: 1px solid var(--line);
  color: var(--fg0);
  font: inherit;
  outline: none;
}
.lk-name:focus {
  border-color: var(--accent-dim);
}
.lk-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.lk-row {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  border-radius: 0.5rem;
  border: 1px solid transparent;
  padding: 0.125rem;
}
.lk-row.on {
  background: var(--sel);
  border-color: var(--accent-dim);
}
.lk-wear {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.25rem;
  border: 0;
  border-radius: 0.375rem;
  background: none;
  color: var(--fg0);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.lk-wear:hover {
  background: var(--bg3);
}
.lk-wear img,
.lk-noimg {
  width: 3rem;
  height: 3rem;
  border-radius: 0.375rem;
  object-fit: cover;
  flex: none;
  background: var(--bg3);
  display: grid;
  place-items: center;
}
.lk-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.lk-title {
  font-weight: 600;
  font-size: 0.8125rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lk-sub {
  font-size: 0.71875rem;
  color: var(--fg2);
}
.lk-empty {
  margin: 0;
  color: var(--fg2);
  font-size: 0.78125rem;
}
@media (max-width: 860px) {
  .of-looks .btn-mini {
    min-height: 2.25rem;
    min-width: 2.25rem;
  }
}

/* phones held sideways: too short for the viewer and the wardrobe together, so ask for portrait */
.of-rotate {
  display: none;
}
@media (orientation: landscape) and (max-height: 520px) and (pointer: coarse) {
  .of-rotate {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 200;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    padding: 1.5rem;
    background: var(--bg0, #0d0f13);
    color: var(--fg1);
    text-align: center;
    font-size: 0.8125rem;
  }
  .of-rotate .ic {
    width: 2.75rem;
    height: 2.75rem;
    stroke: var(--accent);
    animation: of-rotate 2.4s ease-in-out infinite;
  }
  .of-rotate b {
    color: var(--fg0);
    font-size: 1rem;
  }
  #fashion > header,
  #fashion > main {
    visibility: hidden;
  }
}
@keyframes of-rotate {
  0%,
  30% {
    transform: rotate(90deg);
  }
  60%,
  100% {
    transform: rotate(0deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .of-rotate .ic {
    animation: none;
  }
}

/* no data: a note in place of the page */
.of-nodata {
  position: fixed;
  inset: var(--topbar-h) 0 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 1.5rem;
  background: var(--bg0);
  color: var(--fg1);
  text-align: center;
}
.of-nodata p {
  margin: 0;
}
.of-nodata p:first-child {
  color: var(--fg0);
  font-weight: 600;
  font-size: 0.9375rem;
}
.of-nodata .btn {
  margin-top: 0.75rem;
}

@media (max-width: 860px) {
  /* the drawers' leading rows are one design: Random and Unequip all, Random and Start over */
  .cp-tools .cp-row:first-child {
    gap: 0.375rem;
  }
  .cp-tools .cp-row:first-child .btn,
  .of-wardactions .btn-mini {
    min-height: 2.125rem;
    padding: 0 0.5rem;
    font-size: 0.78125rem;
    gap: 0.3125rem;
  }
  .cp-tools .cp-row:first-child .btn svg.ic,
  .of-wardactions .btn-mini svg.ic {
    width: 0.875rem;
    height: 0.875rem;
  }
}

/* the site's lockup in a picture's lower right (the link preview, the download's preview; pictures draw the same):
   the mark, "Brighter" and "ATLAS" in the site's blue, as the home page's footer and the release pictures set it,
   its letters --s */
.of-lockup {
  position: absolute;
  right: calc(var(--s) * 1.2);
  bottom: var(--s);
  display: inline-flex;
  align-items: center;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
  font:
    600 var(--s) -apple-system,
    'Segoe UI',
    system-ui,
    Roboto,
    sans-serif;
  filter: drop-shadow(0 calc(var(--s) / 17) calc(var(--s) * 3 / 17) rgba(0, 0, 0, 0.55))
    drop-shadow(0 0 calc(var(--s) * 10 / 17) rgba(0, 0, 0, 0.35));
}
.of-lockup img {
  width: calc(var(--s) * 1.75);
  height: calc(var(--s) * 1.75);
  margin-right: calc(var(--s) * 0.5);
}
.of-lockup b {
  font-family: 'BA Brighter', sans-serif;
  font-weight: 600;
  color: #e8ecf2;
  letter-spacing: 0.02em;
}
.of-lockup i {
  font-style: normal;
  font-weight: 700;
  font-size: calc(var(--s) * 0.74);
  color: #78b7ff;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  margin-left: calc(var(--s) * 0.32);
}
#fashion.picture .of-lockup {
  z-index: 3;
}
/* ?picture: the look alone for a link's preview picture (the view only, the site's lockup in its corner) */
#fashion.picture #topbar,
#fashion.picture .of-right,
#fashion.picture .of-toolbar,
#fashion.picture .of-controls,
#fashion.picture .load-card,
#fashion.picture #toast {
  display: none !important;
}
#fashion.picture main {
  grid-template-columns: minmax(0, 1fr);
}
/* phones: the settings' rows a finger's height */
@media (max-width: 860px) {
  .of-right > .of-bgpop button {
    padding: 0.75rem 0.75rem;
    font-size: 0.875rem;
  }
  .of-right > .of-bgpop .of-bghead {
    padding: 0.75rem 0.25rem 0.375rem;
  }
}

/* the view's canvas before the first look is drawn (the page's load card is over it) */
.of-viewer canvas.wait {
  visibility: hidden;
}
/* and the panel's contents, filling in piece by piece, on its own background */
.of-right.wait > * {
  visibility: hidden;
}

/* the Animations drawer (the wardrobe's place, as the settings' on a phone) */
#fashion.anim-mode .of-right .wardrobe {
  display: none;
}
/* one row: the kinds (a segmented control), then Repeat and Pause as tall as it */
.of-anims-head {
  display: flex;
  align-items: stretch;
  gap: 0.375rem;
}
.of-anims-head .of-anims-tabs {
  flex: 1;
  min-width: 0;
}
/* Repeat and Pause: toggles, lit when on */
.of-anims-tog {
  width: 2.375rem;
  height: auto;
  padding: 0;
  display: grid;
  place-items: center;
  color: var(--fg2);
  border-radius: 0.625rem;
}
.of-anims-tog.active {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: #fff;
}
.of-anims-tog svg.ic {
  width: 1.0625rem;
  height: 1.0625rem;
}
/* the three kinds: a segmented control */
.of-anims-tabs {
  display: flex;
  gap: 0.25rem;
  padding: 0.1875rem;
  border-radius: 0.625rem;
  background: var(--bg2);
  border: 1px solid var(--line);
}
.of-anims-tabs button {
  flex: 1;
  padding: 0.4375rem 0.25rem;
  border: 0;
  border-radius: 0.4375rem;
  background: transparent;
  color: var(--fg1);
  font: inherit;
  font-size: 0.84375rem;
  cursor: pointer;
}
.of-anims-tabs button:hover {
  color: var(--fg0);
}
.of-anims-tabs button.on {
  background: var(--bg3);
  color: #fff;
}
.of-anims-tabs button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
.of-anims-list .group {
  margin: 0.75rem 0.125rem 0.375rem;
  font-size: 0.6875rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--fg2);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
}
.of-anims-list .group:first-child {
  margin-top: 0.25rem;
}
.of-anims-list .group.combat {
  color: var(--accent);
}
.of-anims-list .group b {
  color: var(--fg1);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  font-size: 0.78125rem;
}
.of-anims-list .empty {
  padding: 1rem 0.25rem;
  color: var(--fg2);
}
.of-anims-hint {
  margin: 0.625rem 0.125rem 0;
  color: var(--fg2);
  font-size: 0.8125rem;
}
/* the settings' button on the view's toolbar (pressed while the settings show in the side panel) */
.of-bg-top {
  position: relative;
}
.of-toolbar .of-bgbtn svg.ic {
  width: 1.0625rem;
  height: 1.0625rem;
}
.of-toolbar .of-bgbtn.active {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.42);
  color: #fff;
}
/* every animation a tile: the game's emote pictures (some stored on their side: turned upright), the rest their kind's icon */
.of-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(5.25rem, 1fr));
  gap: 0.375rem;
}
.of-tile {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 0.25rem 0.4375rem;
  border: 1px solid var(--line);
  border-radius: 0.625rem;
  background: var(--bg2);
  color: var(--fg0);
  font: inherit;
  font-size: 0.75rem;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
}
.of-tile > :not(.of-anim-bar) {
  position: relative;
}
.of-tile:hover {
  background: var(--bg3);
  border-color: var(--fg2);
}
.of-tile.on {
  background: var(--sel);
  border-color: var(--accent);
}
.of-tile img {
  width: 3rem;
  height: 3rem;
  object-fit: contain;
}
.of-tile img.turned {
  transform: rotate(-90deg);
}
.of-tile-pic {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  color: var(--fg1);
}
.of-tile-pic svg.ic {
  width: 1.75rem;
  height: 1.75rem;
}
.of-tile.combat {
  border-color: var(--accent-dim);
  background: #172234;
}
.of-tile.combat .of-tile-pic {
  color: var(--accent);
}
.of-tile.combat.on {
  border-color: var(--accent);
  background: var(--sel);
}
.of-tile.cta {
  border-style: dashed;
  border-color: var(--accent);
  background: transparent;
  color: var(--accent);
}
.of-tile.cta .of-tile-pic {
  color: var(--accent);
}
.of-tile.cta:hover {
  background: #172234;
}
/* the one playing: a wheel while its clip comes, then its progress across the tile (the name and picture over it) */
.of-anim-bar {
  position: absolute;
  inset: 0;
  background: rgba(120, 183, 255, 0.22);
  transform-origin: left center;
  transform: scaleX(0);
  animation-name: of-anim-progress;
  animation-timing-function: linear;
  animation-fill-mode: forwards;
  pointer-events: none;
}
@keyframes of-anim-progress {
  to {
    transform: scaleX(1);
  }
}
.of-tile-load .load-card {
  position: static;
  transform: none;
}
.of-tile-load .load-card svg {
  width: 2.125rem;
  height: 2.125rem;
  filter: none;
}
@media (prefers-reduced-motion: reduce) {
  .of-anim-bar {
    animation: none;
    transform: none;
    background: rgba(120, 183, 255, 0.14);
  }
}

/* the Animations drawer's timeline: the animation playing, and a jump to any moment of it */
.of-anim-time {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  padding: 0 0.125rem;
}
.of-anim-time-row {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}
.of-anim-time-name {
  flex: none;
  max-width: 34%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--fg1);
  font-size: 0.78125rem;
}
.of-anim-time input {
  flex: 1;
  min-width: 0;
  accent-color: var(--accent);
  height: 1.5rem;
  margin: 0;
  cursor: pointer;
}
.of-anim-time-at {
  flex: none;
  color: var(--fg2);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  min-width: 5.125rem;
  text-align: right;
}
.of-anim-time-hint {
  margin: 0;
  color: var(--fg2);
  font-size: 0.75rem;
}

/* Share's drawer replaces the others while it is open */
#fashion.share-mode .of-right > :not(.of-sharedraw):not(.of-grip) {
  display: none !important;
}
/* the record view (the download open): the crop over the view; every button stays, as with any drawer (each mode's
   button puts Share away), over the crop's shade. Phones: only turning, zooming and the crop at hand (the column would
   sit on the crop's edge in their small view), Share and Download put it away */
#fashion.record-mode .of-controls {
  z-index: 2;
}
@media (max-width: 860px) {
  #fashion.record-mode #undo,
  #fashion.record-mode #redo,
  #fashion.record-mode .of-bg-top,
  #fashion.record-mode #share,
  #fashion.record-mode .of-controls .of-mode-btn,
  #fashion.record-mode .of-controls .of-anim-btn {
    display: none !important;
  }
}
.of-rec {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.of-crop {
  position: absolute;
  outline: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 0 100vmax rgba(4, 6, 9, 0.5);
}
.of-crop-size {
  position: absolute;
  left: 0.375rem;
  top: 0.375rem;
  padding: 0.125rem 0.4375rem;
  border-radius: 0.375rem;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 0.6875rem;
  font-variant-numeric: tabular-nums;
}
.of-crop-bar {
  position: absolute;
  pointer-events: auto;
  touch-action: none;
  background: #fff;
  border-radius: 0.25rem;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.55);
}
.of-crop-bar::before {
  content: '';
  position: absolute;
  inset: -0.875rem;
} /* (a bigger target than it looks) */
.of-crop-bar.top,
.of-crop-bar.bottom {
  left: 50%;
  width: 2.5rem;
  height: 0.3125rem;
  margin-left: -1.25rem;
  cursor: ns-resize;
}
.of-crop-bar.top {
  top: -0.1875rem;
}
.of-crop-bar.bottom {
  bottom: -0.1875rem;
}
.of-crop-bar.left,
.of-crop-bar.right {
  top: 50%;
  width: 0.3125rem;
  height: 2.5rem;
  margin-top: -1.25rem;
  cursor: ew-resize;
}
.of-crop-bar.left {
  left: -0.1875rem;
}
.of-crop-bar.right {
  right: -0.1875rem;
}
.of-crop-bar:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Share's drawer: the link first, the download below it */
.of-sharedraw .sd-body {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}
.of-sharedraw .sd-sec {
  display: flex;
  flex-direction: column;
  gap: 0.5625rem;
}
.of-sharedraw .sd-sec h3 {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--fg1);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.of-sharedraw .sd-link .share-field .share-url {
  min-height: 2.5rem;
  font-size: 0.875rem;
}
.of-sharedraw .sd-link .share-field .share-copy {
  min-height: 2.5rem;
  padding: 0 1.125rem;
}
.of-sharedraw .sd-note {
  margin: 0;
  color: var(--fg2);
  font-size: 0.78125rem;
}
.of-sharedraw .sd-dl {
  padding-top: 0.75rem;
  border-top: 1px solid var(--line-soft);
}
.of-sharedraw .sd-dl-toggle {
  display: flex;
  align-items: center;
  gap: 0.5625rem;
  width: 100%;
  padding: 0.625rem 0.75rem;
  border-radius: 0.625rem;
  border: 1px solid var(--line);
  background: var(--bg2);
  color: var(--fg0);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.of-sharedraw .sd-dl-toggle:hover {
  background: var(--bg3);
}
.of-sharedraw .sd-dl-toggle span {
  flex: 1;
}
.of-sharedraw .sd-dl-toggle svg.ic {
  width: 1rem;
  height: 1rem;
}
.of-sharedraw .sd-dl-toggle svg.ic:last-child,
.of-sharedraw .sd-more svg.ic {
  transition: transform 0.15s;
}
.of-sharedraw .sd-dl-toggle[aria-expanded='true'] svg.ic:last-child,
.of-sharedraw .sd-more[aria-expanded='true'] svg.ic {
  transform: rotate(180deg);
}
.of-sharedraw .sd-transport {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.of-sharedraw .sd-transport .of-anim-time {
  flex: 1;
  min-width: 0;
}
.of-sharedraw .sd-rows {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.of-sharedraw .sd-row {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}
.of-sharedraw .sd-row > span {
  flex: none;
  width: 8.25rem;
  white-space: nowrap;
  color: var(--fg2);
  font-size: 0.8125rem;
}
.of-sharedraw .sd-row .chips button {
  padding: 0.3125rem 0.6875rem;
  font-size: 0.8125rem;
}
.of-sharedraw .sd-row .chips button:disabled {
  opacity: 0.5;
  cursor: default;
}
.of-sharedraw .sd-clear,
.of-sharedraw .sd-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.4375rem;
  font-size: 0.8125rem;
  color: var(--fg0);
  flex-wrap: wrap;
}
.of-sharedraw .sd-clear input:disabled + * {
  opacity: 0.6;
}
.of-sharedraw .sd-bg {
  color: var(--fg2);
  font-style: normal;
  font-size: 0.78125rem;
}
.of-sharedraw .sd-more {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 2.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.625rem;
  border: 1px solid var(--line-soft);
  background: transparent;
  color: var(--fg1);
  font: inherit;
  font-size: 0.84375rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.of-sharedraw .sd-more:hover {
  background: var(--bg2);
  color: var(--fg0);
}
.of-sharedraw .sd-more span {
  flex: 1;
}
.of-sharedraw .sd-more svg.ic {
  width: 0.9375rem;
  height: 0.9375rem;
  flex: none;
}
.of-sharedraw .sd-advanced {
  padding: 0.625rem 0 0.125rem;
  border-top: 1px dashed var(--line-soft);
}
.of-sharedraw .sd-sum {
  margin: 0;
  color: var(--fg1);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
}
.of-sharedraw .sd-warn {
  margin: 0;
  color: #f0c27a;
  font-size: 0.8125rem;
}
.of-sharedraw .sd-ok {
  margin: 0;
  color: #8fd8a8;
  font-size: 0.8125rem;
}
.of-sharedraw .sd-actions {
  display: flex;
  gap: 0.5rem;
}
.of-sharedraw .sd-actions .btn {
  min-height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
}
.of-sharedraw .sd-go {
  position: relative;
  overflow: hidden;
  flex: 1;
}
.of-sharedraw .sd-go > span:last-child {
  position: relative;
}
.of-sharedraw .sd-bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: var(--accent);
  transition: width 0.1s;
}
.of-sharedraw .of-primary {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600;
}
.of-sharedraw .of-primary:hover:not(:disabled) {
  background: var(--accent);
  color: #0d0f13;
}
.of-sharedraw .of-primary:disabled {
  opacity: 0.85;
}
@media (max-width: 520px) {
  .of-sharedraw .sd-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.3125rem;
  }
  .of-sharedraw .sd-row > span {
    width: auto;
    font-size: 0.78125rem;
  }
}

/* Share open: its button pressed as the toolbar's others are (the accent gives way to the lit glass) */
.of-toolbar .btn-mini.of-primary.active,
.of-toolbar .btn-mini.of-primary.active:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.42);
  color: #fff;
}
/* the nameplate's settings (a section after the lighting): its name and numbers, faction and guild pills */
.of-bgpop .np-field {
  display: block;
  padding: 0 0 0.25rem;
}
.of-bgpop .np-field .lk-name {
  display: block;
  width: calc(100% - 1.25rem);
  box-sizing: border-box;
  margin: 0 0.625rem;
}
.of-bgpop .np-field .lk-name:disabled,
.of-bgpop .np-chips button:disabled {
  opacity: 0.45;
  cursor: default;
}
.of-bgpop .np-chips {
  padding: 0.125rem 0.625rem 0.5rem;
}
