

.sa-panel {
  border: 1px solid var(--line, #2a2a2a);
  border-radius: 6px;
  padding: 1rem;
  margin: 1rem 0;
}
.sa-panel h2 { margin: 0 0 .5rem; font-size: 1rem; }

.sa-row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }

#wallet-input {
  flex: 1 1 22rem;
  min-width: 0;
  font-family: ui-monospace, monospace;
  font-size: .85rem;
  padding: .45rem .6rem;
}

.sa-summary {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: .75rem 0;
}
.sa-stat {
  display: flex;
  flex-direction: column;
  gap: .1rem;
  padding: .45rem .7rem;
  border: 1px solid var(--line, #2a2a2a);
  border-radius: 5px;
  min-width: 6.5rem;
}
.sa-stat-k { font-size: .7rem; letter-spacing: .04em; text-transform: uppercase; opacity: .6; }
.sa-stat-v { font-size: 1rem; font-variant-numeric: tabular-nums; }

.sa-tabs { display: flex; gap: .4rem; margin: .5rem 0; align-items: center; flex-wrap: wrap; }
.sa-tab.is-on { border-color: var(--fg-1, #eee); font-weight: 600; }
.sa-search {
  flex: 1 1 14rem;
  min-width: 0;
  padding: .35rem .55rem;
  font-size: .85rem;
}
#search-hint { font-size: .78rem; }

.sa-tfilter:not([hidden]) {
  display: grid;
  gap: .45rem;
  margin: .4rem 0 .6rem;
  padding: .55rem;
  border: 1px solid var(--line, #2a2a2a);
  border-radius: 5px;
}
.sa-tfilter-head { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .6rem; font-size: .78rem; }
.sa-tfilter-k { font-weight: 600; font-size: .85rem; }
.sa-tfilter-head .btn { margin-left: auto; }
.sa-tfilter-head .btn[hidden] { display: none; }
.sa-tfilter-cats { display: flex; flex-wrap: wrap; gap: 4px; }
.sa-tcat, .sa-tval {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: 3px 8px 3px 3px;
  border: 1px solid var(--line, #2a2a2a);
  border-radius: 4px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: .8rem;
  cursor: pointer;
  min-width: 0;
}
.sa-tcat:hover, .sa-tval:hover { border-color: var(--line-2, #3a3d44); }
.sa-tcat[aria-pressed="true"], .sa-tval[aria-pressed="true"] {
  border-color: var(--accent, #6f8fd0);
  background: color-mix(in srgb, var(--accent, #6f8fd0) 16%, transparent);
}
.sa-tcat-art, .sa-tval-art { width: 28px; height: 28px; flex: none; border-radius: 3px; background: #111; object-fit: cover; }
.sa-tcat-n {
  min-width: 1.2em;
  padding: 0 .3em;
  border-radius: 999px;
  background: var(--accent, #6f8fd0);
  color: #000;
  font-size: .7rem;
  text-align: center;
}
.sa-tfilter-vals {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 4px;
  max-height: 260px;
  overflow-y: auto;
}
.sa-tval-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
.sa-tval-n { flex: none; font-variant-numeric: tabular-nums; }

.sa-coll {
  border: 1px solid var(--line, #2a2a2a);
  border-radius: 5px;
  margin: .4rem 0;
}
.sa-coll-head {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .5rem .7rem;
  cursor: pointer;
  list-style: none;
}
.sa-coll-head::-webkit-details-marker { display: none; }

.sa-coll-head::before { content: "▸"; opacity: .6; }
.sa-coll[open] > .sa-coll-head::before { content: "▾"; }
.sa-coll-img { width: 26px; height: 26px; object-fit: cover; border-radius: 3px; background: #111; }
.sa-coll-name { font-weight: 600; }
.sa-coll-count { font-size: .8rem; }

.sa-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: .7rem;
  padding: .7rem;
  border-top: 1px solid var(--line, #2a2a2a);
}

.sa-card {
  border: 1px solid var(--line, #2a2a2a);
  border-radius: 5px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.sa-card[hidden] { display: none; }
.sa-task-trait { display: flex; flex-wrap: wrap; gap: .4rem; }
.sa-task-trait select { flex: 1 1 10rem; min-width: 0; }
.sa-card-thumb { aspect-ratio: 1 / 1; background: #111; }
.sa-card-img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sa-card-body { padding: .5rem; display: grid; gap: .35rem; }
.sa-card-title {
  margin: 0;
  font-weight: 600;
  font-size: .85rem;
  overflow-wrap: anywhere;
}
.sa-card-sub { margin: 0; font-size: .75rem; }
.sa-card-note { margin: 0; font-size: .75rem; }

.btn.btn-danger {
  border-color: #7a3d3d;
  color: var(--danger);
}
.btn.btn-danger:hover:not(:disabled) {
  border-color: var(--danger);
  background: #2a1c1c;
}

.btn.btn-danger:disabled {
  border-color: var(--line);
  color: var(--fg-3);
  cursor: not-allowed;
}

.sa-confirm {
  display: grid;
  gap: .4rem;
  padding: .5rem;
  margin-top: .3rem;
  border: 1px solid #7a3d3d;
  border-radius: var(--radius);
  background: #221a1a;
}
.sa-confirm-q {
  margin: 0;
  font-size: .76rem;
  line-height: 1.35;
  color: var(--fg-2);
}

.btn.sa-listed {
  border-color: #3d7a4a;
  color: #7fd699;
  font-weight: 600;
}

.sa-trow {
  display: grid;
  grid-template-columns: 28px minmax(3rem, auto) 1fr auto auto;
  gap: .6rem;
  align-items: center;
  padding: .45rem .6rem;
  border: 1px solid var(--line, #2a2a2a);
  border-radius: 5px;
  margin: .35rem 0;
}
.sa-trow-img { width: 28px; height: 28px; object-fit: contain; background: #111; border-radius: 3px; }
.sa-trow-sym { font-weight: 600; }
.sa-trow-name { font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sa-trow-bal { font-variant-numeric: tabular-nums; }

#listings-grid { border: 0; padding: .25rem 0 0; }

.sa-card-price { margin: 0; font-weight: 600; font-size: .85rem; overflow-wrap: anywhere; }
.sa-card-acts { display: flex; flex-wrap: wrap; gap: .3rem; }
.sa-card-acts .btn { font-size: .78rem; padding: .25rem .5rem; }

.sa-badge {
  justify-self: start;
  font-size: .68rem;
  padding: .1rem .4rem;
  border: 1px solid var(--line-2, #3a3a3a);
  border-radius: 999px;
}
.sa-badge.is-available { border-color: #3d7a4a; }
.sa-badge.is-on_hold { border-color: #8a6d1f; font-weight: 600; }
.sa-badge.is-sold { border-color: var(--line, #2a2a2a); opacity: .6; }
.sa-badge.is-reserved,
.sa-badge.is-delisted { opacity: .6; }

.row-note { margin: 0; font-size: .75rem; }

.sa-wiz {
  border: 1px solid var(--line-2, #3a3a3a);
  border-radius: 8px;
  background: var(--bg-1, #16181c);
  color: inherit;
  padding: 0;
  width: min(94vw, 34rem);
  max-height: 88vh;
}
.sa-wiz::backdrop { background: rgba(0, 0, 0, .62); }
.sa-wiz-form { display: flex; flex-direction: column; max-height: 88vh; }

.sa-wiz-head { padding: .9rem 1rem .4rem; border-bottom: 1px solid var(--line, #2a2a2a); }
.sa-wiz-title { margin: 0 0 .5rem; font-size: 1rem; }
.sa-steps { display: flex; gap: .5rem; margin: 0; padding: 0; list-style: none; flex-wrap: wrap; }
.sa-step { font-size: .75rem; opacity: .45; }
.sa-step.is-on { opacity: 1; font-weight: 600; }
.sa-step.is-done { opacity: .8; }

.sa-wiz-body { padding: .9rem 1rem; overflow-y: auto; display: grid; gap: .8rem; }

.sa-wiz-item { display: flex; gap: .7rem; align-items: center; }
.sa-wiz-img { width: 56px; height: 56px; object-fit: cover; border-radius: 4px; background: #111; }
.sa-wiz-item-name { margin: 0; font-weight: 600; }

.sa-opt {
  border: 1px solid var(--line, #2a2a2a);
  border-radius: 5px;
  overflow: hidden;
}
.sa-opt-head {
  display: flex;
  gap: .55rem;
  align-items: baseline;
  padding: .5rem .6rem;
  cursor: pointer;
}
.sa-opt-head input { margin: 0; }
.sa-opt-k { font-weight: 600; }
.sa-opt-d { font-size: .78rem; }

.sa-opt-body {
  display: none;
  gap: .5rem;
  padding: 0 .6rem .6rem;
}
.sa-opt.is-on { border-color: var(--fg-1, #eee); }
.sa-opt.is-on > .sa-opt-body { display: grid; }

.sa-opt.is-blocked { opacity: .45; }
.sa-opt.is-blocked > .sa-opt-head { cursor: not-allowed; }

.sa-paymode {
  margin: .6rem 0 .2rem;
  padding: .6rem .75rem;
  border: 1px solid var(--fg-1, #eee);
  border-radius: .4rem;
}
.sa-paymode-q { margin: 0 0 .4rem; font-size: .85rem; font-weight: 600; }
.sa-paymode-opt {
  display: flex;
  gap: .5rem;
  align-items: baseline;
  padding: .2rem 0;
  font-size: .84rem;
  cursor: pointer;
}

.sa-paymode-preview {
  margin: .45rem 0 0;
  font-size: .8rem;
  opacity: .95;
  font-style: italic;
}
.sa-paymode-preview:empty { display: none; }

.sa-field { display: grid; gap: .25rem; }
.sa-field-k { font-size: .78rem; opacity: .75; }
.sa-field input,
.sa-field select { width: 100%; min-width: 0; padding: .4rem .5rem; font-size: .9rem; }
.sa-field input:disabled,
.sa-field select:disabled { cursor: not-allowed; }

.sa-trait-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: .35rem;
  margin-bottom: .35rem;
}
.sa-trait-row select { min-width: 0; padding: .35rem .45rem; font-size: .85rem; }
.sa-trait-del { padding: .2rem .5rem; line-height: 1; }
.sa-add-trait { font-size: .8rem; padding: .25rem .5rem; }

html.sa-modal-open { overflow: hidden; }

.sa-preview {
  border: 1px solid var(--line, #2a2a2a);
  border-radius: 5px;
  padding: .6rem;
  display: grid;
  gap: .2rem;
}
.sa-preview-price { font-size: 1.05rem; font-weight: 600; }
.sa-preview-sec { font-size: .8rem; opacity: .7; }

.sa-review { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .2rem .7rem; font-size: .8rem; }
.sa-review dt { opacity: .6; }
.sa-review dd { margin: 0; overflow-wrap: anywhere; }

.sa-reassure { margin: 0; font-size: .78rem; opacity: .75; }
.sa-warn { margin: 0; font-size: .75rem; line-height: 1.35; opacity: .85; }
.sa-wiz-error { margin: 0; font-size: .82rem; }

.sa-wiz-foot {
  display: flex;
  gap: .5rem;
  align-items: center;
  padding: .7rem 1rem .9rem;
  border-top: 1px solid var(--line, #2a2a2a);
}
.sa-spacer { flex: 1 1 auto; }

@media (max-width: 420px) {
  .sa-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .sa-trow { grid-template-columns: 24px auto 1fr; row-gap: .3rem; }
}

.sa-bulkbar {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  left: auto;
  z-index: 20;
  max-width: calc(100vw - 2rem);
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
  padding: .6rem .8rem;
  margin: 0;
  border-radius: 10px;
  background: var(--panel, #1a1a20);
  border: 1px solid var(--line, rgba(255, 255, 255, .12));
  box-shadow: 0 8px 24px rgba(0, 0, 0, .45);
}
.sa-pick { display: inline-flex; align-items: center; gap: .35rem; margin-right: .5rem; font-size: .85em; }
.sa-pick-box { width: 1rem; height: 1rem; }

.sa-pick-actions { display: flex; gap: .4rem; margin: 0 0 .5rem; }
.sa-pick-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 44vh;
  overflow-y: auto;
  border: 1px solid var(--line, #2a2a2a);
  border-radius: 6px;
}
.sa-pick-row {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
  justify-content: space-between;
  padding: .4rem .6rem;
  border-bottom: 1px solid var(--line, #2a2a2a);
  font-size: .85rem;
}
.sa-pick-row:last-child { border-bottom: 0; }

.sa-pick-thumb {
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  border-radius: 4px;
  overflow: hidden;
  background: var(--panel-2, #1b1b1b);
}
.sa-pick-img { width: 100%; height: 100%; object-fit: cover; display: block; }

.sa-pick-name { flex: 1 1 12rem; min-width: 0; overflow-wrap: anywhere; }
.sa-pick-choice { display: flex; gap: .75rem; flex: 0 0 auto; }
.sa-pick-opt { display: inline-flex; align-items: center; gap: .3rem; cursor: pointer; }

.sa-pick-opt:has(.sa-pick-bundle:checked) { font-weight: 600; }

.sa-pick-summary { margin: .6rem 0 0; font-size: .85rem; }
.sa-pick-warn { color: var(--danger, #ff6b6b); }

.sa-price-for { margin: 0 0 .4rem; font-weight: 600; font-size: .9rem; }

.sa-transcript {
  margin-top: .5rem;
  padding: .5rem;
  border-radius: 6px;
  background: rgba(0, 0, 0, .25);
  max-height: 320px;
  overflow-y: auto;
  font-size: .85em;
}
.sa-msg { margin: 0 0 .35rem; line-height: 1.4; word-break: break-word; }
.sa-msg-deleted { text-decoration: line-through; opacity: .75; }
.sa-msg-tag { color: #ff8080; text-decoration: none; display: inline-block; }
.sa-msg-was { text-decoration: none; display: inline-block; }

.sa-msg-day {
  margin: .7rem 0 .3rem;
  font-size: .72rem;
  font-weight: 600;
  opacity: .6;
  letter-spacing: .04em;
  border-bottom: 1px solid var(--line, #2a2a2a);
  padding-bottom: .2rem;
}

.sa-msg-time {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .72rem;
  opacity: .55;
  text-decoration: none;
  display: inline-block;
}

.sa-msg-pfp {
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 50%;
  vertical-align: -.18rem;
  margin-right: .3rem;
  object-fit: cover;
}

.sa-msg-dl { margin-top: .6rem; display: inline-block; }

.sa-offsale {
  margin-top: 1rem;
  padding: .5rem .75rem;
  border-radius: 8px;
  border: 1px solid var(--line, rgba(255, 255, 255, .1));
  background: rgba(255, 255, 255, .02);
}
.sa-offsale > summary { cursor: pointer; font-weight: 600; }
.sa-offsale > summary > .muted { font-weight: 400; margin-left: .4rem; }
.sa-offsale .sa-grid { margin-top: .75rem; opacity: .85; }

.sa-sep-mode {
  margin: .5rem 0 .75rem;
  padding: .5rem .6rem;
  border: 1px solid var(--line, #2a2a2a);
  border-radius: 6px;
  background: var(--panel-2, #1b1b1b);
}
.sa-sep-opt { display: flex; flex-wrap: wrap; gap: 1rem; font-size: .85rem; }
.sa-sep-opt label { display: inline-flex; align-items: center; gap: .35rem; cursor: pointer; }

.sa-sep-list { list-style: none; margin: .6rem 0 0; padding: 0; max-height: 15rem; overflow-y: auto; }

.sa-sep-row {
  display: flex;
  align-items: center;
  gap: .55rem;
  width: 100%;
  margin-bottom: .35rem;
  padding: .5rem .6rem;
  border: 1px solid var(--line, #2a2a2a);
  border-radius: .4rem;
  background: var(--bg-2, rgba(255, 255, 255, .03));
  color: inherit;
  font: inherit;
  font-size: .85rem;
  text-align: left;
  cursor: pointer;
  transition: border-color .12s, background .12s;
}
.sa-sep-row:hover,
.sa-sep-row:focus-visible {
  border-color: var(--fg-1, #eee);
  background: var(--bg-3, rgba(255, 255, 255, .07));
}
.sa-sep-row:focus-visible { outline: 2px solid var(--fg-1, #eee); outline-offset: 1px; }
.sa-sep-row:last-child { margin-bottom: 0; }

.sa-sep-go {
  flex: 0 0 auto;
  margin-left: .15rem;
  font-size: .78rem;
  font-weight: 600;
  opacity: .75;
  white-space: nowrap;
}
.sa-sep-row:hover .sa-sep-go,
.sa-sep-row:focus-visible .sa-sep-go { opacity: 1; }

.sa-sep-lead {
  margin: .5rem 0 .45rem;
  font-size: .8rem;
  opacity: .95;
}
.sa-sep-lead:empty { display: none; }

.sa-sep-gate { flex: 0 0 auto; font-size: .75rem; opacity: .6; }
.sa-sep-gate.is-own { opacity: .95; font-weight: 600; }

.sa-gate-scope { margin: 0 0 .5rem; font-size: .8rem; opacity: .95; }
.sa-gate-scope.is-item { font-weight: 600; }
.sa-gate-scope:empty { display: none; }
.sa-sep-name { flex: 1 1 8rem; min-width: 0; overflow-wrap: anywhere; }
.sa-sep-cur { flex: 0 0 auto; }

.sa-sep-price {
  flex: 1 1 auto;
  text-align: right;
  font-size: .8rem;
  overflow-wrap: anywhere;
}

.sa-sep-price.is-set { opacity: 1; font-weight: 600; }

.sa-gate-wrap {
  margin-top: 1rem;
  padding-top: .85rem;
  border-top: 1px solid var(--line, #2a2a2a);
}
.sa-gate-head {
  margin: 0 0 .5rem;
  font-weight: 600;
  font-size: .9rem;
}

.sa-next-note {
  margin: .5rem 0 0;
  padding: .5rem .7rem;
  border-left: 3px solid var(--fg-1, #eee);
  background: var(--bg-2, rgba(255, 255, 255, .04));
  font-size: .82rem;
  line-height: 1.5;
  opacity: 1;
}

.sa-q-head {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: .9rem 0 .35rem;
  font-size: .92rem;
  font-weight: 600;
}
.sa-q-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  border: 1px solid var(--fg-1, #eee);
  font-size: .74rem;
  font-weight: 700;
}

.sa-gate-wrap.is-closed { opacity: .4; pointer-events: none; }
.sa-gate-wrap.is-closed .sa-q-head { opacity: 1; }

.sa-sofar {
  margin: .9rem 0 0;
  padding: .5rem .65rem;
  border-left: 3px solid var(--fg-1, #eee);
  background: var(--bg-2, rgba(255, 255, 255, .04));
  font-size: .82rem;
  line-height: 1.5;
}
.sa-sofar:empty { display: none; }

.sa-gate-extra { display: grid; gap: .5rem; margin: .5rem 0; }
.sa-gate-group {
  display: grid;
  gap: .45rem;
  padding: .55rem .65rem;
  border: 1px dashed var(--line, #2a2a2a);
  border-radius: .4rem;
}
.sa-gate-group-head { display: flex; align-items: center; justify-content: space-between; }
.sa-gate-group-k { font-size: .8rem; font-weight: 600; opacity: .85; }
.sa-gate-group-del { padding: 0 .4rem; line-height: 1.4; }

.sa-gate-plus {
  margin: .1rem 0 .5rem;
  font-size: .8rem;
  font-weight: 600;
  opacity: .95;
}
.sa-gate-plus:empty { display: none; }

.sa-note {
  margin: .5rem 0 0;
  padding: .45rem .6rem;
  border-radius: 6px;
  border: 1px solid rgba(120, 200, 140, .35);
  background: rgba(120, 200, 140, .08);
  font-size: .78rem;
  line-height: 1.45;
}

.sa-top { padding: 0; }
.sa-top-in {
  max-width: 1080px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  flex-wrap: wrap;
}
.sa-top h1 { font-size: 22px; font-weight: 800; letter-spacing: -.01em; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sa-who {
  font-size: 12px;
  font-weight: 600;
  color: var(--fg-2);
  background: var(--bg-3);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 3px 10px;
}
.sa-nav { margin: 0; gap: 6px; align-items: center; }
.sa-nav .btn {
  align-self: center;
  background: transparent;
  border-color: transparent;
  border-radius: 999px;
  padding: 7px 14px;
  color: var(--fg-2);
  text-decoration: none;
  font-weight: 600;
}
.sa-nav .btn:hover { background: var(--bg-3); color: var(--fg); }
.sa-nav #disconnect { color: #ff5a5a; border-color: rgb(255 90 90 / 45%); }
.sa-nav #disconnect:hover { color: #ff7a7a; background: rgb(255 90 90 / 12%); }
.sa-nav .sa-page.is-on { background: var(--bg-3); color: var(--fg); }

.sa-main {
  max-width: 1080px;
  margin: 28px auto 72px;
  padding: 0 20px;
  box-sizing: border-box;
}
#state-admin:not([hidden]) { display: grid; gap: 20px; }
.sa-main .sa-panel {
  margin: 0;
  padding: 24px;
  background: #1a1b1f;
  border: 1px solid var(--line);
  border-radius: 18px;
}
#state-locked, #state-denied { max-width: 460px; margin: 60px auto 0; text-align: center; }
#state-locked:not([hidden]), #state-denied:not([hidden]) { display: grid; gap: 14px; justify-items: center; }
#state-locked p, #state-denied p { margin: 0; }

.sa-addr { display: block; margin: 4px 0; font-family: var(--mono, monospace); overflow-wrap: anywhere; color: var(--fg); font-size: min(13px, 3.1vw); }
.sa-main .sa-panel h2 { margin: 0; font-size: 18px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.sa-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; }
.sa-n {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: #f2ead6;
  color: #111;
  font-size: 13px;
  font-weight: 800;
}
.sa-count { font-size: 13px; font-weight: 600; color: var(--fg-2); }
.sa-count:empty { display: none; }
.sa-hint { margin: 6px 0 18px; color: var(--fg-3); font-size: 13px; max-width: 62ch; }
.sa-status { margin: -10px 0 18px; color: var(--fg-2); font-size: 13px; }
.sa-status:empty { display: none; }
.sa-empty:not([hidden]) {
  display: block;
  margin: 0;
  padding: 40px 16px;
  text-align: center;
  color: var(--fg-2);
  font-size: 14px;
  border: 1.5px dashed var(--line-2);
  border-radius: 14px;
}

.sa-main .btn, .sa-wiz .btn, .sa-bulkbar .btn {
  border-radius: 10px;
  padding: 8px 14px;
  font-weight: 600;
  text-decoration: none;
}
#load-holdings, #wiz-next, #wiz-confirm, #bulk-list, #connect, #signin-discord, .btn.sa-list:not(.sa-listed) {
  background: #f2ead6;
  border-color: #f2ead6;
  color: #111;
}
#load-holdings:hover, #wiz-next:hover, #wiz-confirm:hover, #bulk-list:hover, #connect:hover, #signin-discord:hover, .btn.sa-list:not(.sa-listed):hover:not(:disabled) {
  background: #fff;
  border-color: #fff;
}
#signin-discord { background: #5865f2; border-color: #5865f2; color: #fff; padding: 11px 22px; }
#signin-discord:hover { background: #4752c4; border-color: #4752c4; }

.sa-lookup { flex-wrap: nowrap; gap: 10px; }
.sa-main #wallet-input, .sa-main .sa-search {
  background: #111214;
  color: var(--fg);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  font-family: var(--mono);
}
.sa-main #wallet-input { padding: 12px 14px; font-size: 14px; }
.sa-main .sa-search { padding: 9px 12px; font-family: var(--font); }
.sa-main #wallet-input:focus, .sa-main .sa-search:focus { outline: none; border-color: #f2ead6; }
#load-holdings { padding: 12px 22px; white-space: nowrap; }

.sa-lookup { align-items: stretch; }
.sa-lookup .btn { padding: 12px 22px; white-space: nowrap; }

.sa-main .sa-summary { gap: 10px; margin: 18px 0 8px; }
.sa-main .sa-stat { flex: 1 1 120px; border: 0; border-radius: 12px; background: var(--bg-3); padding: 12px 16px; }
.sa-main .sa-stat-k { text-transform: none; letter-spacing: 0; font-size: 12px; }
.sa-main .sa-stat-v { font-size: 20px; font-weight: 700; }
.sa-main .sa-badge { text-transform: none; letter-spacing: 0; font-size: 11px; }

.sa-main .sa-tabs { margin: 16px 0 10px; gap: 8px; }
.sa-main .sa-tab { border-radius: 999px; padding: 7px 16px; }
.sa-main .sa-tab.is-on { background: #f2ead6; border-color: #f2ead6; color: #111; }

.sa-main .sa-coll { border-radius: 12px; background: #16171a; margin: 8px 0; }
.sa-main .sa-coll-head { padding: 10px 14px; }
.sa-main .sa-coll-img { width: 30px; height: 30px; border-radius: 8px; }
.sa-main .sa-grid { gap: 14px; padding: 14px; }
.sa-main #listings-grid { padding: 0; }
.sa-main .sa-card { border-radius: 14px; background: #141518; }
.sa-main .sa-card-body { padding: 10px 12px 12px; gap: 6px; }
.sa-main .sa-card-title { font-size: 14px; }
.sa-main .sa-offsale { margin-top: 18px; padding: 12px 16px; border-radius: 14px; }
.sa-main .sa-trow { border-radius: 12px; padding: 10px 14px; }
.sa-bulkbar { border-radius: 14px; padding: 10px 14px; }

.sa-wiz { border-radius: 18px; background: #1a1b1f; }
.sa-wiz .sa-opt { border-radius: 12px; }
.sa-wiz .sa-q-n { background: #f2ead6; color: #111; }

.sa-wiz { width: min(94vw, 33rem); overflow: hidden; }
.sa-wiz-head { padding: 14px 16px 12px; }
.sa-wiz-head .sa-wiz-item { gap: 12px; }
.sa-wiz-head .sa-wiz-img { width: 52px; height: 52px; border-radius: 10px; flex: 0 0 auto; }
.sa-wiz-head .sa-wiz-img[hidden] { display: none; }
.sa-wiz-item-text { min-width: 0; flex: 1 1 auto; }
.sa-wiz-item-text p { margin: 0; overflow-wrap: anywhere; }
.sa-wiz .sa-wiz-title { margin: 0; font-size: 12px; font-weight: 600; color: var(--fg-3, #8b8e95); }
.sa-wiz-item-text .sa-wiz-item-name { font-size: 16px; font-weight: 700; }
.sa-wiz-item-text .muted { font-size: 13px; }
.sa-wiz-x {
  align-self: flex-start; flex: 0 0 auto; background: none; border: 0; color: var(--fg-3, #8b8e95);
  font-size: 24px; line-height: 1; padding: 2px 6px; cursor: pointer; border-radius: 8px;
}
.sa-wiz-x:hover { color: var(--fg, #ececee); }

.sa-progress { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.sa-wiz .sa-steps { flex: 1 1 auto; display: flex; gap: 6px; flex-wrap: nowrap; }
.sa-wiz .sa-step { flex: 1 1 0; height: 4px; border-radius: 4px; background: var(--line-2, #34363d); opacity: 1; font-size: 0; }
.sa-wiz .sa-step.is-on, .sa-wiz .sa-step.is-done { background: #f2ead6; }
.sa-progress-k { flex: 0 0 auto; font-size: 12px; color: var(--fg-3, #8b8e95); white-space: nowrap; }

.sa-wiz-body { padding: 16px; gap: 0; }
.sa-wiz-step { display: grid; gap: 10px; align-content: start; }
.sa-wiz-step[hidden] { display: none; }
#wiz-step-1:not([hidden]) + #wiz-step-claim:not([hidden]) { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line, #2a2a2a); }
.sa-q-title { margin: 0; font-size: 19px; line-height: 1.25; }
.sa-q-sub { margin: -4px 0 2px; font-size: 14px; color: var(--fg-2, #a3a6ad); }
.sa-q-sub:empty { display: none; }

.sa-vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); border: 0; }

.sa-price-form { display: grid; gap: 10px; }
.sa-price-form[hidden], .sa-kind-body[hidden], .sa-wiz .sa-opt[hidden] { display: none; }
.sa-kind-body { display: grid; gap: 8px; }
.sa-choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sa-choice {
  display: grid; gap: 2px; padding: 10px 8px; text-align: center; cursor: pointer;
  background: #232429; color: inherit; font: inherit; border: 2px solid var(--line-2, #34363d); border-radius: 12px;
}
.sa-choice b { font-size: 15px; }
.sa-choice small { font-size: 12px; color: var(--fg-2, #a3a6ad); }
.sa-choice:hover { border-color: var(--fg-3, #8b8e95); }
.sa-choice.is-on { border-color: #f2ead6; background: #2c2a24; }

.sa-wiz .sa-leg { background: #232429; border-color: var(--line-2, #34363d); }
.sa-wiz .sa-leg.is-on { border-color: var(--line-2, #34363d); }
.sa-leg-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; }
.sa-leg-k { flex: 0 0 52px; font-weight: 700; }
.sa-leg-row input[type="text"], .sa-leg-row input[type="number"] {
  flex: 1 1 auto; min-width: 0; padding: 9px 10px; font: inherit; color: inherit;
  background: #111214; border: 1px solid var(--line-2, #34363d); border-radius: 8px;
}
.sa-leg-row input:focus { outline: none; border-color: #f2ead6; }
.sa-leg-del { flex: 0 0 auto; background: none; border: 0; color: var(--fg-3, #8b8e95); font-size: 20px; line-height: 1; padding: 4px 8px; cursor: pointer; border-radius: 8px; }
.sa-leg-del:hover { color: var(--fg, #ececee); }
.sa-leg-del[hidden] { display: none; }
.sa-leg .sa-opt-body { padding: 0 10px 10px; }

.sa-adds { display: flex; flex-wrap: wrap; gap: 6px; }
.sa-add {
  background: none; border: 1px dashed var(--line-2, #34363d); color: var(--fg-2, #a3a6ad);
  border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 13px; cursor: pointer;
}
.sa-add:hover { color: var(--fg, #ececee); border-color: var(--fg-3, #8b8e95); }
.sa-add[hidden] { display: none; }

.sa-wiz .sa-paymode { margin: 0; padding: 0; border: 0; display: grid; gap: 6px; }
.sa-paymode[hidden] { display: none; }
.sa-seg { display: inline-flex; justify-self: start; border: 1px solid var(--line-2, #34363d); border-radius: 999px; overflow: hidden; }
.sa-seg label { position: relative; cursor: pointer; }
.sa-seg input { position: absolute; opacity: 0; pointer-events: none; }
.sa-seg span { display: block; padding: 7px 14px; font-size: 13px; color: var(--fg-2, #a3a6ad); }
.sa-seg input:checked + span { background: #f2ead6; color: #111; font-weight: 600; }
.sa-seg input:focus-visible + span { outline: 2px solid #f2ead6; outline-offset: -2px; }
.sa-wiz .sa-paymode-preview { margin: 0; font-style: normal; font-size: 13px; color: var(--fg-2, #a3a6ad); }

.sa-tip { margin: 0; font-size: 13px; line-height: 1.45; color: var(--fg-2, #a3a6ad); }
.sa-wiz #opt-free, .sa-wiz #opt-bounty { border: 0; overflow: visible; display: grid; gap: 8px; }
.sa-wiz #opt-free[hidden], .sa-wiz #opt-bounty[hidden] { display: none; }
.sa-wiz .sa-field input[type="text"], .sa-wiz .sa-field input[type="number"], .sa-wiz .sa-field select {
  background: #111214; color: inherit; border: 1px solid var(--line-2, #34363d); border-radius: 8px; padding: 9px 10px;
}

.sa-wiz .sa-gate-wrap { margin: 0; padding: 0; border: 0; display: grid; gap: 8px; }
.sa-radio {
  display: flex; gap: 10px; align-items: flex-start; padding: 11px 12px; cursor: pointer;
  background: #232429; border: 2px solid var(--line-2, #34363d); border-radius: 12px;
}
.sa-radio input { margin: 3px 0 0; accent-color: #f2ead6; width: 16px; height: 16px; flex: 0 0 auto; }
.sa-radio span { display: grid; gap: 1px; }
.sa-radio small { font-size: 13px; color: var(--fg-2, #a3a6ad); }
.sa-radio:has(input:checked) { border-color: #f2ead6; }
.sa-wiz #opt-gate { border: 0; background: none; }
.sa-wiz #opt-gate > .sa-opt-body { padding: 4px 0 0; }
.sa-wiz .sa-gate-scope { font-weight: 400; }
.sa-wiz .sa-note { margin: 0; font-size: 13px; color: var(--fg-2, #a3a6ad); }

.sa-wiz .sa-preview { background: #f2ead6; color: #111; border: 0; border-radius: 14px; padding: 14px 16px; gap: 2px; }
.sa-preview-k { margin: 0; font-size: 12px; opacity: .65; }
.sa-wiz .sa-preview-price { margin: 0; font-size: 22px; font-weight: 900; overflow-wrap: anywhere; }
.sa-preview-who { margin: 0; font-size: 14px; }
.sa-wiz .sa-preview p { margin: 0; }
.sa-wiz .sa-review { gap: 0; grid-template-columns: auto 1fr; font-size: 14px; }
.sa-wiz .sa-review dt, .sa-wiz .sa-review dd { padding: 8px 0; border-bottom: 1px solid var(--line, #2a2a2a); }
.sa-wiz .sa-review dt { opacity: 1; color: var(--fg-2, #a3a6ad); padding-right: 12px; }
.sa-wiz .sa-review dd { text-align: right; }
.sa-wiz .sa-reassure { font-size: 13px; opacity: 1; color: var(--fg-2, #a3a6ad); }
.sa-wiz .sa-wiz-error:not([hidden]) { margin-top: 12px; color: #ff8a80; font-size: 14px; }

.sa-wiz .sa-wiz-foot { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 12px 16px; background: #17181b; }
.sa-wiz .sa-sofar {
  flex: 1 1 12rem; min-width: 0; margin: 0; padding: 0; border: 0; background: none;
  font-size: 13px; color: var(--fg-2, #a3a6ad); overflow-wrap: anywhere;
}
.sa-wiz-btns { display: flex; gap: 8px; margin-left: auto; }
.sa-wiz-btns .btn[hidden] { display: none; }

@media (max-width: 640px) {
  .sa-wiz { width: 100vw; max-width: 100vw; max-height: 100dvh; margin: auto 0 0; border-radius: 18px 18px 0 0; }
  .sa-wiz-form { max-height: 100dvh; }
  .sa-choice { padding: 10px 4px; }
  .sa-choice b { font-size: 14px; }
  .sa-leg-row input[type="text"], .sa-leg-row input[type="number"] { min-height: 44px; font-size: 16px; }
  .sa-leg-del, .sa-wiz-x { min-width: 44px; min-height: 44px; }
  .sa-add, .sa-seg span { min-height: 44px; display: inline-flex; align-items: center; font-size: 14px; }
  .sa-wiz .sa-sofar { flex-basis: 100%; }
  .sa-wiz-btns { width: 100%; }
  .sa-wiz-btns .btn { flex: 1 1 0; }
}

@media (max-width: 640px) {
  .sa-top-in { padding: 12px 16px; }
  .sa-top h1 { font-size: 19px; }
  .sa-nav .btn { padding: 6px 10px; }
  .sa-main { margin-top: 16px; padding: 0 12px; }
  .sa-main .sa-panel { padding: 18px 16px; border-radius: 16px; }
  .sa-lookup { flex-wrap: wrap; }
  .sa-lookup .btn { flex: 1 1 100%; }
  .sa-panel-head #reconcile { width: 100%; }
  .sa-act-row { padding: 10px 12px; }
}

.sa-main .sa-sold { margin: 0 0 14px; }
.sa-main .sa-sold .sa-stat { flex: 0 1 170px; }
.sa-act-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.sa-act-list:empty { display: none; }
.sa-act-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  background: #16171a;
}
.sa-act-row:last-child { border-bottom: 0; }
.sa-act-thumb {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  overflow: hidden;
  background: var(--bg-3);
}
.sa-act-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sa-act-body { display: grid; gap: 2px; min-width: 0; }
.sa-act-text { font-size: 14px; overflow-wrap: anywhere; }
.sa-act-meta { font-size: 12px; color: var(--fg-3); overflow-wrap: anywhere; }
.sa-act-tag {
  font-size: 11px;
  font-weight: 600;
  color: #e6c46a;
  border: 1px solid #6b5a2a;
  border-radius: 999px;
  padding: 1px 8px;
  white-space: nowrap;
}
.sa-main .sa-act-more { margin-top: 12px; width: 100%; }

@media (max-width: 640px) {
  .sa-nav .btn, .sa-nav #disconnect { min-height: 44px; display: inline-flex; align-items: center; }
  .sa-who { font-size: 14px; }

  .sa-main .btn, .sa-bulkbar .btn, .sa-wiz .btn { min-height: 44px; font-size: 14px; }
  .sa-main .sa-card-acts .btn { flex: 1 1 100%; padding: 8px 10px; }

  .sa-main .sa-hint, .sa-status, .sa-count, .sa-main .sa-card-sub, .sa-card-price, .sa-card-note,
  .row-note, .sa-confirm-q, .sa-act-meta, .sa-main .sa-stat-k, .sa-coll-count, .sa-trow-name,
  .sa-transcript, #search-hint, .sa-offsale > summary { font-size: 14px; }
  .sa-main .sa-badge, .sa-act-tag { font-size: 14px; }

  .sa-main #wallet-input, .sa-main .sa-search { min-height: 44px; font-size: 16px; }
  .sa-main .sa-tab { min-height: 44px; }

  .sa-main .sa-coll-head, .sa-offsale > summary { min-height: 44px; box-sizing: border-box; }
  .sa-offsale > summary { display: flex; align-items: center; flex-wrap: wrap; }

  .sa-pick { min-height: 44px; font-size: 14px; }
  .sa-pick-box { width: 20px; height: 20px; }

  .sa-main .sa-trow { grid-template-columns: 28px auto 1fr; }
  .sa-main .sa-trow .sa-list { grid-column: 1 / -1; }

  .sa-field input, .sa-field select, .sa-trait-row select { min-height: 44px; font-size: 16px; }
  .sa-opt-head, .sa-pick-opt, .sa-paymode-opt, .sa-sep-opt label { min-height: 44px; align-items: center; }
  .sa-opt-head input { width: 20px; height: 20px; flex: 0 0 auto; }
  .sa-sep-row { min-height: 44px; }
  .sa-step, .sa-opt-d, .sa-field-k, .sa-warn, .sa-note, .sa-reassure, .sa-review, .sa-sofar,
  .sa-preview-sec, .sa-pick-row, .sa-pick-summary, .sa-sep-opt, .sa-sep-row, .sa-sep-go,
  .sa-sep-gate, .sa-sep-price, .sa-sep-lead, .sa-gate-scope, .sa-gate-plus, .sa-gate-group-k,
  .sa-next-note, .sa-paymode-opt, .sa-paymode-preview, .sa-wiz-error { font-size: 14px; }
  .sa-add-trait { font-size: 14px; }
  .sa-trait-del, .sa-gate-group-del { min-width: 44px; }
}

.sa-guide {
  border: 1px solid var(--accent, #6f8fd0);
  border-radius: 6px;
  background: var(--bg-2, #191a1d);
  padding: 12px 14px;
  margin: 12px 0 16px;
}
.sa-guide-title { font-size: 15px; margin: 0 0 8px; }
.sa-guide-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sa-guide-list li { line-height: 1.45; color: var(--fg, #e8e8ea); }
.sa-guide-n {
  display: inline-block; min-width: 1.6em; text-align: center; font-weight: 700;
  background: var(--bg-3, #1f2024); border: 1px solid var(--line-2, #3a3d44); border-radius: 4px; margin-right: 4px;
}
.sa-guide-have { display: block; color: var(--fg-2, #a5a7ad); font-size: 14px; }
.sa-guide-have:empty { display: none; }
.sa-guide-note { margin: 10px 0 0; color: var(--fg-2, #a5a7ad); font-size: 14px; }
.sa-guide-note:empty { display: none; }

.sa-board-status { margin: 0 0 10px; color: var(--fg, #e8e8ea); font-weight: 600; }
.sa-board-status:empty { display: none; }
.sa-refills { margin: 10px 0 0; color: var(--fg-2, #a5a7ad); font-size: 14px; }
.sa-sub { font-size: 15px; margin: 18px 0 4px; }
.sa-sub-count { font-weight: 400; color: var(--fg-2, #a5a7ad); }
.sa-lead {
  margin: 4px 0 8px; padding: 10px 14px; line-height: 1.5;
  border-left: 3px solid var(--accent, #6f8fd0); background: var(--bg-2, #191a1d); border-radius: 4px;
}
.sa-line-n {
  flex: 0 0 auto; min-width: 1.8em; text-align: center; font-weight: 700;
  background: var(--bg-3, #1f2024); border: 1px solid var(--line-2, #3a3d44); border-radius: 4px; padding: 2px 4px;
}
.sa-line .sa-qrow:first-child .sa-line-n { border-color: var(--accent, #6f8fd0); color: var(--accent, #6f8fd0); }
.sa-qctl .sa-qadd { min-height: 40px; padding: 6px 16px; }

.sa-spots {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.sa-spot {
  border: 1px solid var(--line-2, #3a3d44);
  border-radius: 6px;
  padding: 10px;
  background: var(--bg-2, #191a1d);
  min-width: 0;
}
.sa-spot.is-empty { border-style: dashed; }
.sa-spot-head { display: grid; gap: 6px; }
.sa-spot-n { font-weight: 700; }
.sa-spot-live { display: flex; gap: 10px; align-items: center; min-width: 0; }
.sa-spot-emptytext { color: var(--fg-2, #a5a7ad); }
.sa-qhead { margin: 10px 0 4px; color: var(--fg-2, #a5a7ad); font-size: 14px; }

.sa-queue { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.sa-qrow {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  border-top: 1px solid var(--line, #2c2e33); padding-top: 6px; min-width: 0;
}
.sa-qinfo { display: flex; flex-direction: column; min-width: 0; flex: 1 1 140px; }
.sa-qname { font-weight: 600; overflow-wrap: anywhere; }
.sa-qsub { color: var(--fg-2, #a5a7ad); font-size: 14px; overflow-wrap: anywhere; }
.sa-qctl { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; flex: 1 1 100%; }
.sa-qsel {
  min-height: 40px; min-width: 0; flex: 1 1 160px; font: inherit;
  color: var(--fg, #e8e8ea); background: var(--bg-3, #1f2024);
  border: 1px solid var(--line-2, #3a3d44); border-radius: 4px; padding: 4px 8px;
}
.sa-qctl .btn { min-height: 40px; align-self: auto; }
.sa-qremove { color: #ff9a9a; }
.sa-qempty { color: var(--fg-2, #a5a7ad); font-size: 14px; padding: 4px 0; }
.sa-thumb {
  width: 44px; height: 44px; object-fit: cover; flex: 0 0 auto;
  border-radius: 4px; background: var(--bg-3, #1f2024);
}
.sa-thumb.is-blank { visibility: hidden; }

.sa-coat-head { display: flex; align-items: center; gap: 8px 16px; flex-wrap: wrap; margin-bottom: 10px; }
.sa-coat-head h2 { margin: 0; }
.sa-coat-head .sa-board-status { flex: 1 1 260px; margin: 0; }
.sa-coat-head #board-refresh { margin-left: auto; }
.sa-coat-wrap {
  --coat-h: max(420px, min(calc(100vh - 270px), 760px));
  display: grid; gap: 14px; grid-template-columns: auto minmax(300px, 1fr);
  grid-template-rows: var(--coat-h); align-items: stretch;
}
.sa-coat {
  position: relative; height: var(--coat-h); aspect-ratio: 1; max-width: 100%; overflow: hidden; border-radius: 8px;
  background: #0b0c10; border: 1px solid var(--line-2, #3a3d44);
}
.sa-coat-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.85; }
.sa-coat-fig { position: absolute; width: 150%; aspect-ratio: 1; left: -25.7%; top: -22%; }
.sa-coat-seller { position: absolute; inset: 0; width: 100%; height: 100%; }
.sa-coat-boards { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; }
.sa-board {
  position: absolute;
  left: calc(var(--sx) * 100%); top: calc(var(--sy) * 100%); width: calc(var(--slot) * 100%);
  aspect-ratio: 1; padding: 0; border: 0; background: none; cursor: pointer;
}
.sa-board-frame { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.sa-board-win {
  container-type: size;
  position: absolute; left: 26.3%; top: 22.9%; width: 50.2%; height: 65.3%;
  display: flex; flex-direction: column; overflow: hidden; background: #15161a; border-radius: 2px;
}
.sa-board-art { flex: 1 1 auto; min-height: 0; width: 100%; height: auto; object-fit: cover; border-radius: 0; }
.sa-board-price {
  flex: 0 0 auto; background: #000; color: #fff; font-weight: 700; text-align: center;
  font-size: max(10px, 13cqh); line-height: 1.3; padding: 1px 2px;
  white-space: nowrap; overflow: hidden; text-overflow: clip;
}
.sa-board-empty {
  margin: auto; color: #c9cbd1; font-weight: 700; font-size: max(10px, 14cqh);
}
.sa-board.is-empty .sa-board-win { background: rgba(0, 0, 0, 0.55); border: 2px dashed #6b6e76; }

.sa-set-n {
  position: absolute; top: 2px; right: 2px; padding: 0 3px; border-radius: 999px;
  background: #f2ead6; color: #111; font-weight: 800; line-height: 1.3;
  font-size: max(8px, 12cqh); pointer-events: none;
}
.sa-board-n {
  position: absolute; left: 14%; top: 4%; min-width: 1.6em; padding: 0 4px; border-radius: 999px;
  background: #f2ead6; color: #111; border: 2px solid #000; font-weight: 800; font-size: 12px; line-height: 1.4;
}

.sa-board-next {
  position: absolute; left: 50%; top: 90%; transform: translateX(-50%); z-index: 3; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 3px; padding: 1px 5px 1px 3px; border-radius: 999px;
  background: #17181b; border: 1px solid #f2f2f4; color: #f2f2f4; font-weight: 700; font-size: 11px; line-height: 1.4;
}
.sa-board-next.is-line { border-color: rgba(255, 255, 255, 0.18); background: rgba(0, 0, 0, 0.72); color: #b9bbc1; font-weight: 600; }
.sa-board-next .sa-ico { width: 11px; height: 11px; }
.sa-drag { cursor: grab; }
.sa-drag:active { cursor: grabbing; }
.sa-coat.is-dragging .sa-pop > :not(.sa-pop-drop) { opacity: 0.3; }
.sa-pop-drop { margin: 0 -6px; padding: 0 6px 6px; border-radius: 10px; border: 2px solid transparent; }
.sa-pop-drop-say { display: none; margin: 8px 0 0; text-align: center; font-size: 12px; font-weight: 700; color: #6fcf8f; }
.sa-coat.is-dragging .sa-pop-drop { border: 2px dashed #6fcf8f; }
.sa-coat.is-dragging .sa-pop-drop-say { display: block; }
.sa-pop-drop.is-drop { border-style: solid; background: rgba(111, 207, 143, 0.12); }
.sa-coat.is-dragging .sa-board-next {
  padding: 3px 8px; border: 1px dashed #f2f2f4; background: rgba(0, 0, 0, 0.85); color: #f2f2f4; font-size: 12px;
}
.sa-coat.is-dragging .sa-board-next > * { display: none; }
.sa-coat.is-dragging .sa-board-next::after { content: "Make next"; }
.sa-board.is-drop .sa-board-win { outline: 3px solid #6fcf8f; outline-offset: 1px; }
.sa-board-next.is-drop { background: #6fcf8f; border-color: #6fcf8f; color: #111; }
.sa-tray.is-dragging .sa-tray-body { outline: 1px dashed #3a3d44; outline-offset: -2px; border-radius: 10px; }
.sa-tray-body.is-drop { outline: 2px solid #6fcf8f; }
.sa-board-next-art { width: 18px; height: 18px; object-fit: cover; border-radius: 50%; }

.sa-board:hover .sa-board-win { outline: 3px solid rgba(255, 77, 77, 0.55); outline-offset: 1px; }
.sa-board.is-on .sa-board-win { outline: 3px solid #ff4d4d; outline-offset: 1px; }
.sa-board:focus-visible { outline: none; }
.sa-board:focus-visible .sa-board-win { outline: 3px solid #fff; outline-offset: 1px; }

.sa-ico { width: 18px; height: 18px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sa-pop {
  position: absolute; z-index: 10; width: 264px; max-height: calc(100% - 12px); overflow-y: auto;
  padding: 12px; border-radius: 12px; background: #17181b; border: 1px solid #34363c;
  box-shadow: 0 0 0 2px rgba(255, 77, 77, 0.9), 0 12px 32px rgba(0, 0, 0, 0.6);
}
.sa-pop[hidden] { display: none; }
.sa-pop-head { display: flex; align-items: center; gap: 10px; }
.sa-pop-n {
  flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: #f2ead6; color: #111; border: 2px solid #000; font-weight: 800; font-size: 14px;
}
.sa-pop-title { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sa-pop-title strong { font-size: 15px; line-height: 1.2; }
.sa-pill {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 600; color: var(--fg-2, #a5a7ad); line-height: 1.2;
}
.sa-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.sa-pill.is-live { color: #6fcf8f; }
.sa-pill.is-held { color: #e8b04a; }
.sa-pill.is-empty { color: var(--fg-3, #74777e); }
.sa-icon-btn {
  min-width: 34px; min-height: 34px; padding: 0; display: inline-grid; place-items: center;
  border-radius: 8px; color: var(--fg-2, #a5a7ad);
}
.sa-icon-btn:hover:not(:disabled) { color: var(--fg, #e8e8ea); }
.sa-icon-btn:disabled { opacity: 0.35; }
.sa-pop-now {
  display: flex; gap: 10px; align-items: center; margin: 12px 0 0; padding: 8px; min-width: 0;
  border-radius: 10px; background: #202125;
}
.sa-pop-now .sa-thumb { width: 48px; height: 48px; border-radius: 6px; }
.sa-pop-now .sa-qname { font-size: 14px; }
.sa-pop-empty {
  margin: 12px 0 0; padding: 14px 8px; border-radius: 10px; border: 1px dashed #3a3d44;
  color: var(--fg-2, #a5a7ad); text-align: center; font-size: 13px;
}
.sa-pop-acts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 10px 0 0; }
.btn.sa-tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  min-height: 58px; padding: 6px 4px; border-radius: 10px; font-size: 12px; font-weight: 600;
  background: #202125; border: 1px solid #2f3136; color: var(--fg, #e8e8ea);
}
.btn.sa-tile:hover:not(:disabled) { border-color: rgba(255, 77, 77, 0.7); background: #26272c; }
.btn.sa-tile .sa-ico { width: 20px; height: 20px; }
.sa-pop-sec {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
  margin: 14px 0 6px; padding-top: 10px; border-top: 1px solid #2a2c31;
}
.sa-pop-sec-t { font-weight: 700; font-size: 13px; }
.sa-pop-sec-s { font-size: 12px; color: var(--fg-3, #74777e); text-align: right; }
.sa-pop-queue { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.sa-pop-row {
  display: grid; grid-template-columns: auto 32px minmax(0, 1fr); gap: 4px 8px; align-items: center;
  padding: 6px; border-radius: 8px; background: #202125;
}
.sa-pop-row .sa-thumb { width: 32px; height: 32px; border-radius: 4px; }
.sa-pop-row .sa-qname { font-size: 13px; overflow: hidden; white-space: nowrap; text-overflow: clip; }
.sa-pop-ctl { grid-column: 1 / -1; display: flex; gap: 2px; align-items: center; }
.sa-pop-ctl .sa-icon-btn { min-width: 32px; min-height: 32px; border-color: transparent; background: none; }
.sa-pop-ctl .sa-icon-btn:hover:not(:disabled) { background: #2a2c31; }
.sa-pop-ctl .sa-chip-btn { margin-left: auto; }
.sa-pop-line {
  display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 8px;
  border: 1px dashed #3a3d44; color: var(--fg-2, #a5a7ad); font-size: 13px;
}
.sa-pop-hint { margin: 10px 0 0; color: var(--fg-3, #74777e); font-size: 12px; }
.sa-pop-delist { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; margin: 6px 0 0; }
.sa-pop-delist > .btn:first-child:not(:last-child):not(.btn-danger) { margin-right: auto; }

.sa-pop-delist > .btn:first-child:not(.btn-danger):has(+ .btn:not(.btn-danger)) { margin-right: 0; }
.sa-pop-delist > .btn:first-child:not(.btn-danger) + .btn:not(.btn-danger) { margin-right: auto; }
.sa-pop-delist .btn.sa-chip-btn { min-height: 28px; padding: 2px 8px; font-size: 12px; }
.sa-pop-confirm {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px; width: 100%;
  padding: 8px; border-radius: 8px; border: 1px solid rgba(255, 77, 77, 0.6); font-size: 12px;
}
.sa-pop-confirm[hidden] { display: none; }
.sa-pop-confirm span { flex: 1 1 100%; color: var(--fg, #e8e8ea); }
.btn.sa-chip-btn {
  display: inline-flex; align-items: center; gap: 5px; min-height: 32px; padding: 2px 10px;
  border-radius: 8px; font-size: 13px; font-weight: 600;
}
.btn.sa-chip-btn .sa-ico { width: 16px; height: 16px; }
.btn.sa-solid {
  display: inline-flex; align-items: center; gap: 5px; min-height: 32px; padding: 2px 12px;
  border-radius: 8px; font-size: 13px; font-weight: 700;
  background: #f2f2f4; color: #111; border-color: #f2f2f4;
}
.btn.sa-solid:hover:not(:disabled) { background: #fff; border-color: #fff; }
.btn.sa-solid .sa-ico { width: 16px; height: 16px; }

.sa-tray {
  display: flex; flex-direction: column; min-height: 0; min-width: 0; height: 100%;
  border: 1px solid var(--line-2, #3a3d44); border-radius: 12px; background: var(--bg-2, #191a1d); padding: 12px;
}
.sa-tray-head .sa-sub { margin: 0; font-size: 16px; }
.sa-tray-tabs { display: flex; gap: 4px; padding: 3px; border-radius: 10px; background: #202125; }
.sa-tray-tab {
  flex: 1 1 0; min-height: 34px; padding: 4px 6px; border: 0; border-radius: 8px; cursor: pointer; white-space: nowrap;
  background: transparent; color: var(--fg-2, #a5a7ad); font: inherit; font-size: 14px; font-weight: 700;
}
.sa-tray-tab:hover { color: var(--fg, #e8e8ea); }
.sa-tray-tab.is-on { background: #34363c; color: var(--fg, #e8e8ea); }
.sa-tray-tab .sa-sub-count { font-weight: 500; }
.sa-tray.is-dragging #tray-tab-waiting, .sa-tray.is-dragging #tray-tab-inv { outline: 2px dashed #6fcf8f; outline-offset: -2px; }
.sa-tray-tab.is-drop { outline-style: solid; background: rgba(111, 207, 143, 0.18); color: var(--fg, #e8e8ea); }
.sa-trow .sa-pop-delist { margin: 0 0 0 auto; }
.sa-tray-hint {
  display: flex; align-items: center; gap: 6px; margin: 8px 0 4px; padding: 7px 10px; border-radius: 8px;
  background: #202125; color: var(--fg-2, #a5a7ad); font-size: 13px;
}
.sa-tray-hint .sa-ico { width: 16px; height: 16px; }
.sa-tray-hint.is-on { color: var(--fg, #e8e8ea); box-shadow: inset 3px 0 0 #ff4d4d; }
.sa-tray-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.sa-tray .sa-qhead {
  margin: 12px 0 6px; font-weight: 700; color: var(--fg-3, #74777e); font-size: 12px; letter-spacing: 0.02em;
}
.sa-tray-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.sa-trow {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 6px 10px; align-items: center;
  padding: 8px; border-radius: 10px; background: #202125; border: 1px solid transparent;
}
.sa-trow:hover { border-color: #34363c; }
.sa-trow .sa-thumb { border-radius: 6px; }
.sa-trow-ctl { grid-column: 1 / -1; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.sa-trow-ctl:empty { display: none; }
.sa-trow-tail { display: inline-flex; gap: 0; grid-column: 3; grid-row: 1; align-self: start; }
.sa-trow-tail .sa-icon-btn {
  width: 26px; min-width: 26px; height: 28px; min-height: 28px; padding: 0; border-color: transparent; background: none;
}
.sa-trow-tail .sa-ico { width: 16px; height: 16px; }
.sa-trow .sa-qsub { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sa-trow-tail .sa-icon-btn:hover:not(:disabled) { background: #2a2c31; }
.sa-tray .sa-guide { border-color: #34363c; }
.btn.sa-chip-btn, .btn.sa-solid { white-space: nowrap; }
.sa-tray-empty {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px;
  margin: 28px 8px 0; padding: 22px 14px; border-radius: 12px; border: 1px dashed #3a3d44;
  color: var(--fg-2, #a5a7ad); font-size: 13px;
}
.sa-tray-empty .sa-ico { width: 30px; height: 30px; stroke-width: 1.6; color: var(--fg-3, #74777e); }
.sa-tray-empty strong { color: var(--fg, #e8e8ea); font-size: 14px; }
.sa-tray .sa-refills {
  display: flex; align-items: center; gap: 8px; margin: 10px 0 0; padding-top: 10px;
  border-top: 1px solid #2a2c31; font-size: 13px; color: var(--fg-2, #a5a7ad);
}
.sa-meter { display: inline-flex; gap: 4px; }
.sa-meter-dot { width: 10px; height: 10px; border-radius: 50%; background: #34363c; }
.sa-meter-dot.is-on { background: #6fcf8f; }
.sa-meter-n { margin-left: auto; color: var(--fg, #e8e8ea); font-weight: 600; }
.sa-tray .sa-guide { margin: 8px 0 0; padding: 6px 10px; border-radius: 8px; }
.sa-tray .sa-guide-title { cursor: pointer; margin: 0; font-size: 13px; }
.sa-tray .sa-guide-list { margin-top: 6px; font-size: 13px; }

.sa-arrows { display: inline-flex; gap: 4px; flex: 0 0 auto; }
.sa-arrow { min-width: 40px; min-height: 40px; padding: 0; font-size: 18px; line-height: 1; }
.sa-pick-grid {
  list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 6px;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); max-height: 360px; overflow-y: auto;
}
.sa-pick {
  display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 8px; align-items: center;
  width: 100%; text-align: left; padding: 6px; font: inherit; color: inherit; cursor: pointer;
  background: var(--bg-3, #1f2024); border: 2px solid var(--line-2, #3a3d44); border-radius: 6px;
}
.sa-pick .sa-thumb { grid-row: span 2; }
.sa-pick:hover { border-color: rgba(255, 77, 77, 0.55); }
.sa-pick.is-on { border-color: #ff4d4d; }
.sa-pick-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.sa-pick-acts .btn { min-height: 44px; }

.sa-board.is-switch .sa-board-win { outline: 3px dashed rgba(255, 77, 77, 0.8); outline-offset: 1px; }

.sa-list-target {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px; justify-content: space-between;
  margin: 0 0 12px; padding: 10px 14px; border-left: 3px solid #ff4d4d; border-radius: 4px;
  background: var(--bg-2, #191a1d); font-weight: 600;
}
.sa-list-target[hidden] { display: none; }

@media (max-width: 900px) {
  .sa-coat-wrap { grid-template-columns: 1fr; grid-template-rows: auto; }
  .sa-coat { height: auto; width: 100%; }
  .sa-tray { height: auto; }
  .sa-tray-body { max-height: 60vh; }
  .sa-board-n { font-size: 11px; }

  .sa-pop { position: fixed; left: 8px !important; right: 8px; top: auto !important; bottom: 8px; width: auto; max-height: 70vh; }
}

.sa-check-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin: 10px 0; }
.sa-check-field { display: flex; flex-direction: column; gap: 4px; flex: 1 1 260px; min-width: 0; font-weight: 600; }
.sa-check-field input, .sa-check-field select {
  font: inherit; font-weight: 400; min-height: 44px; min-width: 0; box-sizing: border-box; width: 100%;
  color: var(--fg, #e8e8ea); background: var(--bg-3, #1f2024);
  border: 1px solid var(--line-2, #3a3d44); border-radius: 4px; padding: 6px 10px;
}
.sa-check-field input { font-family: var(--mono, monospace); font-size: 15px; }

.sa-primary {
  min-height: 44px; padding: 8px 22px; font-weight: 700;
  background: #f2ead6; border-color: #f2ead6; color: #111;
}
.sa-primary:hover:not(:disabled) { background: #fff; border-color: #fff; }
.sa-check-result { margin-top: 12px; }
.sa-verdict {
  --tone: #f2cc6b;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px;
  margin: 0 0 6px; padding: 16px 20px; border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--tone) 55%, transparent);
  background: linear-gradient(90deg, color-mix(in srgb, var(--tone) 16%, transparent), color-mix(in srgb, var(--tone) 4%, transparent));
}
.sa-verdict.is-ok { --tone: #4fd68a; }
.sa-verdict.is-no { --tone: #ff7a7a; }
.sa-verdict.is-unknown { --tone: #f2cc6b; }
.sa-verdict-main { display: flex; align-items: center; gap: 12px; }
.sa-verdict-icon {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--tone); color: #111; font-size: 22px; font-weight: 900; flex: none;
}
.sa-verdict-word { font-size: 30px; font-weight: 800; color: var(--tone); line-height: 1.1; }
.sa-verdict-count { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 2px 10px; }
.sa-count-num { margin: 0; font-size: 30px; font-weight: 800; color: #fff; line-height: 1; font-variant-numeric: tabular-nums; }
.sa-count-of { font-size: 18px; font-weight: 700; color: var(--fg-2, #a5a7ad); }
.sa-count-label { margin: 0; font-size: 14px; color: var(--fg-2, #c9cbd1); }
.sa-pips { grid-column: 1 / -1; display: flex; gap: 5px; margin-top: 8px; }
.sa-pips span { width: 26px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.14); }
.sa-pips span.is-on { background: var(--tone); }
.sa-check-reason { margin: 8px 0; line-height: 1.5; }
.sa-check-list { margin: 0; padding-left: 20px; display: grid; gap: 4px; font-family: var(--mono, monospace); font-size: 14px; }
.sa-chk-rules {
  display: grid; gap: 10px; margin: 12px 0 18px; padding: 14px 16px; border-radius: 10px;
  background: var(--bg-3, #1c1d21); border: 1px solid var(--line-2, #2f3238);
}
.sa-chk-rules[hidden], #chk-cons[hidden] { display: none; }
.sa-chk-rule { display: grid; grid-template-columns: 130px 1fr; align-items: start; gap: 4px 14px; }
.sa-chk-rule-k { margin: 0; font-size: 13px; font-weight: 600; color: var(--fg-2, #a5a7ad); padding-top: 2px; }
.sa-chk-rule-v { margin: 0; line-height: 1.5; color: #fff; }
.sa-trait-chip {
  grid-column: 2; justify-self: start; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 700;
  color: #7ee2a0; background: rgba(46, 194, 126, 0.14); border: 1px solid rgba(46, 194, 126, 0.45);
}
.sa-chk-head { display: flex; align-items: center; gap: 8px; margin: 18px 0 10px; font-size: 15px; font-weight: 700; }
.sa-chk-n {
  min-width: 22px; padding: 1px 7px; border-radius: 999px; text-align: center;
  font-size: 12px; background: rgba(255, 255, 255, 0.1); color: var(--fg-2, #c9cbd1);
}
.sa-chk-cons {
  list-style: none; margin: 0; padding: 0; display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.sa-chk-con {
  display: grid; gap: 12px; align-content: start; padding: 12px; border-radius: 10px;
  background: var(--bg-2, #17181b); border: 1px solid var(--line-2, #2f3238);
}
.sa-chk-con.is-fit { border-color: rgba(46, 194, 126, 0.7); background: linear-gradient(180deg, rgba(46, 194, 126, 0.08), var(--bg-2, #17181b) 60%); }
.sa-chk-con.is-off .sa-chk-art { filter: saturate(0.6); opacity: 0.8; }
.sa-chk-top { display: flex; gap: 12px; align-items: center; }
.sa-chk-art { width: 64px; height: 64px; flex: none; border-radius: 8px; object-fit: cover; background: #111; }
.sa-chk-id { display: grid; gap: 6px; justify-items: start; min-width: 0; }
.sa-chk-name { margin: 0; font-weight: 700; font-size: 15px; }
.sa-chk-tag { padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.sa-chk-tag.is-ok { color: #111; background: #4fd68a; }
.sa-chk-tag.is-warn { color: #111; background: #f2cc6b; }
.sa-chk-tag.is-off { color: var(--fg-2, #a5a7ad); background: rgba(255, 255, 255, 0.08); }
.sa-chk-traits { margin: 0; display: grid; gap: 2px; font-size: 13px; }
.sa-chk-traits > div {
  display: grid; grid-template-columns: 92px 1fr; gap: 8px; padding: 4px 8px; border-radius: 6px;
}
.sa-chk-traits > div:nth-child(odd) { background: rgba(255, 255, 255, 0.03); }
.sa-chk-traits dt { color: var(--fg-2, #8d9096); }
.sa-chk-traits dd { margin: 0; color: #e8e8ea; overflow-wrap: anywhere; }
.sa-chk-traits > div.is-match { background: rgba(46, 194, 126, 0.16); box-shadow: inset 2px 0 0 #4fd68a; }
.sa-chk-traits > div.is-match dt, .sa-chk-traits > div.is-match dd { color: #7ee2a0; font-weight: 700; }
.sa-chk-tickets[hidden], .sa-chk-wallet[hidden] { display: none; }
.sa-chk-none {
  margin: 0; padding: 18px; border-radius: 10px; text-align: center;
  color: var(--fg-2, #a5a7ad); border: 1px dashed var(--line-2, #2f3238);
}
.sa-trait-pic {
  grid-column: 2; display: flex; align-items: center; gap: 12px; justify-self: start;
  padding: 6px 14px 6px 6px; border-radius: 12px;
  background: rgba(46, 194, 126, 0.1); border: 1px solid rgba(46, 194, 126, 0.45);
}
.sa-trait-pic img { width: 64px; height: 64px; border-radius: 8px; object-fit: contain; background: #232428; flex: none; }
.sa-trait-pic-v { margin: 0; font-weight: 800; color: #7ee2a0; }
.sa-trait-pic-k { margin: 2px 0 0; font-size: 12px; color: var(--fg-2, #a5a7ad); }

.sa-tix { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 14px; }
.sa-tix-card {
  display: grid; grid-template-columns: 112px 1fr; gap: 16px; padding: 14px; border-radius: 12px;
  background: var(--bg-2, #17181b); border: 1px solid var(--line-2, #2f3238);
}
.sa-tix-art { width: 112px; height: 112px; border-radius: 10px; object-fit: cover; background: #111; }
.sa-tix-body { display: grid; gap: 10px; min-width: 0; }
.sa-tix-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 10px 16px; }
.sa-tix-title { min-width: 0; }
.sa-tix-name { margin: 0; font-size: 17px; font-weight: 800; }
.sa-tix-meta { margin: 3px 0 0; font-size: 13px; color: var(--fg-2, #a5a7ad); }
.sa-tix-via { margin: 4px 0 0; font-size: 13px; color: #f2cc6b; }
.sa-tix-body .sa-chk-rules { margin: 0; }
.sa-tix-side { display: grid; gap: 6px; justify-items: end; }
.sa-tix-paid { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; justify-items: end; font-size: 14px; font-weight: 700; }
.sa-tix-paid .is-ok { color: #4fd68a; }
.sa-tix-paid .is-no { color: #ff7a7a; }
.sa-tix-paid .is-warn { color: #f2cc6b; }
.sa-tix-paid .is-plain { color: var(--fg-2, #a5a7ad); }
@media (max-width: 560px) { .sa-tix-side, .sa-tix-paid { justify-items: start; } }
.sa-tix-open {
  justify-self: start; padding: 8px 16px; border-radius: 8px; border: 0;
  background: #5865f2; color: #fff; font-weight: 700; text-decoration: none;
}
.sa-tix-open:hover { background: #4752c4; }
.sa-verdict.sa-verdict-sm { margin: 0; padding: 10px 14px; gap: 10px 18px; }
.sa-verdict-sm .sa-verdict-icon { width: 28px; height: 28px; font-size: 15px; }
.sa-verdict-sm .sa-verdict-word { font-size: 20px; }
.sa-verdict-sm .sa-count-num { font-size: 22px; }
.sa-verdict-sm .sa-count-of { font-size: 14px; }
.sa-verdict-sm .sa-count-label { font-size: 13px; }
.sa-verdict-sm .sa-pips { margin-top: 6px; }
.sa-verdict-sm .sa-pips span { width: 20px; height: 5px; }

.sa-wos {
  list-style: none; margin: 0; padding: 0; display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
}
.sa-wos-card {
  display: flex; flex-direction: column; overflow: hidden; border-radius: 12px;
  background: var(--bg-2, #17181b); border: 1px solid var(--line-2, #2f3238);
}
.sa-wos-card.is-fit { border-color: rgba(46, 194, 126, 0.8); box-shadow: 0 0 0 1px rgba(46, 194, 126, 0.5); }
.sa-wos-art { aspect-ratio: 1; background: #111; }
.sa-wos-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sa-wos-info { display: grid; gap: 8px; padding: 10px 12px 12px; }
.sa-wos-num { margin: 0; font-size: 18px; font-weight: 800; }
.sa-wos-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.sa-wos-tag {
  padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; color: #111; background: #4fd68a;
}
.sa-wos-tag.is-warn { background: #f2cc6b; }
.sa-wos-info .sa-chk-traits > div { grid-template-columns: 82px 1fr; padding: 3px 6px; }

@media (max-width: 600px) {
  .sa-chk-rule { grid-template-columns: 1fr; }
  .sa-trait-chip, .sa-trait-pic { grid-column: 1; }
  .sa-tix-card { grid-template-columns: 72px 1fr; gap: 12px; }
  .sa-tix-art { width: 72px; height: 72px; }
  .sa-wos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}

@media (max-width: 600px) {
  .sa-spots { grid-template-columns: 1fr; }
  .sa-check-form .sa-primary { width: 100%; }
  .sa-qsel { font-size: 16px; min-height: 44px; }
  .sa-qctl .btn { min-height: 44px; }
}

#board .sa-hint, #checker .sa-hint, #orders .sa-hint { color: var(--fg-2, #a5a7ad); }
.sa-check-detail[hidden] { display: none; }

.sa-ord-acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sa-ord-acts .btn { display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; }
.sa-ord-row { align-items: flex-start; padding: 14px 16px; }
.sa-ord-row .sa-act-body { flex: 1 1 auto; gap: 6px; }
.sa-ord-facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px 16px; margin: 4px 0 0;
}
.sa-ord-fact { min-width: 0; }
.sa-ord-fact dt { font-size: 12px; color: var(--fg-3); }
.sa-ord-fact dd { margin: 0; font-size: 14px; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.sa-ord-fact a { color: #7ee2a0; }
.sa-ord-fact a:hover { color: #fff; }

@media (max-width: 640px) {
  .sa-ord-acts { width: 100%; align-items: stretch; }
  .sa-ord-acts .btn { flex: 1 1 auto; }
  .sa-ord-facts { grid-template-columns: 1fr 1fr; }
  .sa-ord-fact dt { font-size: 14px; }
}
