.ws-bar {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  margin-right: 6px;
}
.ws-look {
  display: flex;
  height: 36px;
}
.ws-look .ws-name {
  width: 170px;
  border: 0;
  border-radius: 0;
  background: var(--panel);
  padding: 0 10px;
}
.ws-box {
  position: relative;
}
.ws-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 12px;
  border: 0;
  background: var(--tab);
  color: var(--text);
  font: 600 13px var(--sans);
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}
.ws-chip:hover {
  background: var(--tab-on);
}
.ws-chip:focus-visible {
  outline: 2px solid #c99a2e;
  outline-offset: -2px;
}
.ws-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #56b33a;
  box-shadow: 0 0 0 2px rgba(86, 179, 58, .25);
  flex: none;
}
.ws-dot.off {
  background: var(--muted);
  box-shadow: none;
}
.ws-chip .ws-s {
  color: var(--muted);
  font-weight: 400;
}
.ws-chip .ws-only-s {
  display: none;
}
.ws-panel {
  position: absolute;
  right: 0;
  top: 100%;
  z-index: 30;
  width: 300px;
  margin-top: 4px;
  padding: 12px 14px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
  font-size: 14px;
}
.ws-title {
  display: block;
  font: 700 16px var(--serif);
  margin-bottom: 2px;
}
.ws-help {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  text-wrap: pretty;
}
.ws-row {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}
.ws-server,
.ws-name {
  min-width: 0;
  padding: 7px 8px;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: var(--content);
  color: var(--text);
  font: 14px var(--sans);
}
.ws-server {
  flex: none;
}
.ws-name {
  flex: 1;
}
.ws-go,
.ws-clear {
  padding: 7px 12px;
  border: 1px solid transparent;
  border-radius: 3px;
  font: 600 13px var(--sans);
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}
.ws-go {
  flex: 1;
  background: var(--btn);
  color: var(--btn-text);
}
.ws-go:hover {
  filter: brightness(1.15);
}
.ws-clear {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.ws-clear:hover {
  background: var(--th);
}
.ws-msg {
  margin: 0 0 6px;
  min-height: 1.3em;
  font-size: 13px;
  line-height: 1.45;
  text-wrap: pretty;
}
.ws-msg:empty {
  display: none;
}
.ws-in {
  display: block;
  width: 100%;
  margin-bottom: 8px;
  padding: 7px 8px;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: var(--content);
  color: var(--text);
  font: 14px var(--sans);
}
.ws-fine {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}
.ws-chars {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
  max-height: 50vh;
  overflow: auto;
}
.ws-char {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  width: 100%;
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: 3px;
  background: none;
  color: var(--text);
  font: 14px var(--sans);
  text-align: left;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}
.ws-char:hover {
  background: var(--th);
}
.ws-char.on {
  border-color: #56b33a;
  background: color-mix(in srgb, var(--panel) 85%, #56b33a);
}
.ws-char small {
  color: var(--muted);
  white-space: nowrap;
}
.ws-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--soft);
  font-size: 14px;
}
.ws-links .ws-clear {
  align-self: flex-start;
  margin-top: 4px;
}
.ws-note {
  margin: 0 0 14px;
  padding: 8px 12px;
  background: var(--table);
  border: 1px solid var(--border);
  border-left: 4px solid var(--muted);
  border-radius: 4px;
  font-size: 14.5px;
  line-height: 1.5;
  text-wrap: pretty;
}
.ws-note.good {
  border-left-color: #56b33a;
}
.ws-note.bad {
  border-left-color: #c94a3a;
}
.ws-note.warn {
  border-left-color: #c99a2e;
}
.ws-tag {
  display: inline-block;
  padding: 0 8px;
  margin-right: 4px;
  border-radius: 3px;
  background: var(--btn);
  color: var(--btn-text);
  font: 700 12px/20px var(--sans);
  white-space: nowrap;
  vertical-align: 1px;
  user-select: none;
  -webkit-user-select: none;
}
.ws-q {
  display: inline-block;
  margin: 2px 4px 0 0;
  padding: 0 8px;
  border-radius: 3px;
  border: 1px solid var(--border);
  font-size: 13px;
  white-space: nowrap;
}
.ws-q.done {
  border-color: #56b33a;
}
.ws-q.done::before {
  content: "✓ ";
  color: #3f7a1e;
  font-weight: 700;
}
.ws-q.active::before {
  content: "… ";
  color: #a07412;
  font-weight: 700;
}
.ws-load {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 12px;
  padding: 8px 12px;
  background: var(--table);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 14px;
}
.ws-load .ws-go {
  flex: none;
}
.sn-slot.ws-worn {
  border-color: #56b33a;
  box-shadow: inset 0 0 0 1px #56b33a;
}
.sn-slot.ws-bag {
  border-color: #c99a2e;
  box-shadow: inset 0 0 0 1px #c99a2e;
}
.ws-mark {
  position: absolute;
  top: 2px;
  right: 2px;
  z-index: 2;
  padding: 0 4px;
  border-radius: 2px;
  background: #56b33a;
  color: #0d1a07;
  font: 700 9px/14px var(--sans);
  letter-spacing: .03em;
  text-transform: uppercase;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
}
.ws-bag .ws-mark {
  background: #c99a2e;
  color: #1b1407;
}
.sn-slot.ws-vault {
  border-color: #6a8fd0;
  box-shadow: inset 0 0 0 1px #6a8fd0;
}
.ws-vault .ws-mark {
  background: #6a8fd0;
  color: #0b1426;
}
.wsp-signin,
.wsp-none {
  padding: 14px 16px;
  background: var(--table);
  border: 1px solid var(--border);
  border-radius: 4px;
}
.wsp-msg {
  min-height: 1.4em;
  margin: 6px 0;
  font-size: 14px;
}
.wsp-msg.bad {
  color: #b3261e;
}
.wsp-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 8px 0;
}
.wsp-lab {
  font-weight: 600;
  font-size: 14px;
  min-width: 150px;
}
.wsp-char {
  margin: 18px 0;
  padding: 12px 16px 16px;
  background: var(--table);
  border: 1px solid var(--border);
  border-radius: 4px;
}
.wsp-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
}
.wsp-head h2 {
  margin: 0;
  border: 0;
  padding: 0;
}
.wsp-view {
  margin-left: auto;
  font-size: 14px;
}
.wsp-parts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 4px 18px;
  margin-top: 10px;
}
.wsp-part {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 6px 4px;
  border-radius: 3px;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}
.wsp-part:hover {
  background: var(--th);
}
.wsp-part input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.wsp-sw {
  flex: none;
  position: relative;
  width: 38px;
  height: 22px;
  margin-top: 2px;
  border-radius: 11px;
  background: var(--soft);
  border: 1px solid var(--border);
  transition: background .15s;
}
.wsp-sw::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .3);
  transition: left .15s;
}
.wsp-part input:checked + .wsp-sw {
  background: #56b33a;
  border-color: #3f7a1e;
}
.wsp-part input:checked + .wsp-sw::after {
  left: 18px;
}
.wsp-part input:focus-visible + .wsp-sw {
  outline: 2px solid #c99a2e;
  outline-offset: 2px;
}
.wsp-txt {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}
.wsp-txt b {
  text-wrap: balance;
}
.wsp-txt small {
  color: var(--muted);
  font-size: 13px;
  text-wrap: pretty;
}
.wsp-card {
  margin-top: 12px;
}
.wsp-card summary {
  cursor: pointer;
  font-weight: 700;
  user-select: none;
  -webkit-user-select: none;
}
.wsp-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 10px 0;
}
.wsp-feat {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 6px;
  flex: 1;
}
.wsp-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  background: #141210;
  border: 1px solid #3a342c;
  border-radius: 4px;
  color: #fff !important;
  font-size: 13px;
  text-decoration: none !important;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}
.wsp-item:hover {
  border-color: #c99a2e;
}
.wsp-item.on {
  border-color: #56b33a;
  box-shadow: inset 0 0 0 1px #56b33a;
}
.wsp-item img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex: none;
}
.wsp-item .exc {
  color: #1aff80;
}
.wsp-item .anc {
  color: #1aff80;
  text-shadow: 0 0 4px #3c3cc8;
}
.wsp-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 6px;
  background-size: cover;
  background-position: center 40%;
  color: #fff;
}
.wsp-badge {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #2a2118;
  border: 2px solid #c99a2e;
  font: 700 22px var(--serif);
  color: #ffd76a;
  user-select: none;
  -webkit-user-select: none;
}
.wsp-who {
  display: flex;
  flex-direction: column;
}
.wsp-who b {
  font: 700 26px/1.2 var(--serif);
}
.wsp-who small {
  opacity: .8;
}
.wsp-stall {
  margin-left: auto;
  text-decoration: none !important;
}
.wsp-cols {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 0 28px;
}
.wsp-sec h2 {
  font-size: 20px;
}
.wsp-dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 4px 16px;
  margin: 0;
}
.wsp-dl dt {
  color: var(--muted);
}
.wsp-dl dd {
  margin: 0;
}
.wsp-ranks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  padding: 0;
}
.wsp-ranks a {
  display: inline-block;
  padding: 2px 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--table);
  white-space: nowrap;
}
.wsp-kudos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
}
.wsp-kudos li {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 4px;
  background: var(--table);
  border: 1px solid var(--border);
  border-radius: 4px;
  text-align: center;
  font-size: 13px;
}
.wsp-kudos b {
  font: 700 22px var(--serif);
}
.wsp-by {
  color: var(--muted);
  font-size: 13px;
}
.wsp-give {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}
@media (max-width: 820px) {
  .wsp-cols {
    grid-template-columns: 1fr;
  }
  .wsp-lab {
    min-width: 0;
    width: 100%;
  }
  .wsp-stall {
    margin-left: 0;
  }
}
@media (prefers-color-scheme: dark) {
  .ws-q.done::before {
    color: #7fd35a;
  }
  .ws-q.active::before {
    color: #ffd76a;
  }
}
@media (max-width: 820px) {
  .ws-bar.ws-strip {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 4px 8px;
    gap: 6px;
    background: var(--tab);
    border-bottom: 1px solid var(--border);
  }
  .ws-strip .ws-look {
    flex: 1;
    height: 34px;
    min-width: 0;
  }
  .ws-strip .ws-look .ws-name {
    flex: 1;
    width: auto;
    min-width: 0;
  }
  .ws-bar.ws-strip {
    position: relative;
  }
  .ws-strip .ws-box {
    flex: none;
    max-width: 45%;
    position: static;
  }
  .ws-strip .ws-chip {
    height: 34px;
    padding: 0 10px;
    background: var(--tab-on);
    border-radius: 3px;
    max-width: 100%;
  }
  .ws-strip .ws-chip:hover {
    background: var(--tab-on);
  }
  .ws-strip .ws-chip .ws-l {
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .ws-strip .ws-chip::after {
    content: "▾";
    margin-left: auto;
    color: var(--muted);
  }
  .ws-panel {
    position: absolute;
    left: 8px;
    right: 8px;
    top: 100%;
    width: auto;
  }
  .ws-server,
  .ws-name {
    font-size: 16px;
  }
}
.cb-real {
  margin: 0 0 10px;
  padding: 8px 10px;
  border: 1px solid #c99a2e;
  border-radius: 4px;
  background: rgba(201, 154, 46, .12);
}
.cb-real p {
  margin: 0 0 6px;
}
.cb-plan {
  font-weight: 700;
}
.cb-ro .cb-num[readonly] {
  opacity: .85;
  cursor: default;
}
