@import url("/starvault-theme.css");

:root {
  --panel: color-mix(in srgb, var(--sv-color-surface) 88%, transparent);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  letter-spacing: 0;
}

/* ???????????????????????? */
html:has(#appView:not(.hidden)),
html:has(#appView:not(.hidden)) body {
  background: #000;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html:has(#appView:not(.hidden))::-webkit-scrollbar,
html:has(#appView:not(.hidden)) body::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

button,
input,
textarea,
select {
  font: inherit;
  color-scheme: dark;
}

select {
  background-color: #141515;
  color: var(--text);
}

select option {
  background-color: #141515;
  color: #f5f2ea;
}

button {
  cursor: pointer;
}

svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hidden {
  display: none !important;
}

.sv-landing {
  position: relative;
  min-height: 100dvh;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #050606;
}

.sv-fluid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.sv-grain {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.026) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at center, black 0, black 34%, transparent 76%);
}

.sv-landing::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at center, transparent 0 42%, rgba(0, 0, 0, 0.34) 74%, rgba(0, 0, 0, 0.78) 100%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.22));
}

.sv-landing-top {
  position: absolute;
  top: 28px;
  left: clamp(20px, 4vw, 64px);
  right: clamp(20px, 4vw, 64px);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sv-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}

.sv-mark-icon,
.sv-rail-brand {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.sv-hero {
  position: relative;
  z-index: 1;
  width: min(900px, calc(100vw - 40px));
  text-align: center;
  padding: 16vh 0 18vh;
}

.sv-kicker {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.sv-hero h1 {
  margin: 0;
  font-size: clamp(4.6rem, 14vw, 11rem);
  line-height: 0.82;
  font-weight: 800;
  text-wrap: balance;
}

.sv-hero-copy {
  width: min(560px, 100%);
  margin: 32px auto 0;
  color: rgba(245, 242, 234, 0.72);
  font-size: clamp(1.05rem, 2vw, 1.34rem);
  line-height: 1.55;
}

.sv-hero-copy-cn {
  width: min(680px, 100%);
  margin: 14px auto 0;
  color: rgba(245, 242, 234, 0.64);
  font-size: clamp(0.98rem, 1.6vw, 1.16rem);
  line-height: 1.85;
  text-wrap: pretty;
}

.sv-hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
  flex-wrap: wrap;
}

.sv-btn {
  min-height: var(--sv-control-height-lg);
  border: 1px solid var(--sv-color-border);
  border-radius: var(--sv-radius-control);
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition:
    transform var(--sv-duration-fast) var(--sv-ease),
    border-color var(--sv-duration-fast) var(--sv-ease),
    background var(--sv-duration-fast) var(--sv-ease),
    box-shadow var(--sv-duration-fast) var(--sv-ease);
}

.sv-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(var(--sv-brand-rgb), 0.46);
}

.sv-btn:active {
  transform: translateY(0) scale(0.98);
}

.sv-btn-primary {
  border-color: rgba(var(--sv-brand-rgb), 0.5);
  background: var(--sv-color-brand);
  color: var(--sv-color-on-brand);
  font-weight: 700;
  box-shadow: 0 8px 22px rgba(var(--sv-brand-rgb), 0.15);
}

.sv-btn-soft,
.sv-btn-ghost {
  background: var(--sv-color-surface-strong);
  color: var(--sv-color-text);
}

.sv-hero-foot {
  position: absolute;
  left: clamp(20px, 4vw, 64px);
  right: clamp(20px, 4vw, 64px);
  bottom: 28px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  color: var(--faint);
  font-size: 0.78rem;
}

.sv-landing-pages {
  --site-ink: #0a0b0b;
  --site-paper: #f2f0eb;
  --site-paper-bright: #f8f7f3;
  --site-warm-white: #f3efe6;
  --site-muted-dark: #a4a6a2;
  --site-muted-light: #696c68;
  --site-moss: #667c67;
  --site-line-dark: rgba(242, 239, 230, 0.13);
  --site-line-light: rgba(19, 21, 20, 0.1);
  --site-ease: cubic-bezier(0.32, 0.72, 0, 1);
  width: 100%;
}

html:has(.sv-landing-pages:not(.hidden)) {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
}

.sv-landing-pages > section {
  min-height: 100dvh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.sv-site-section {
  width: 100%;
  font-family: "Aptos", "Microsoft YaHei UI", "PingFang SC", sans-serif;
}

.sv-site-section h2 {
  margin: 0;
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -0.045em;
  word-break: keep-all;
  overflow-wrap: normal;
}

.sv-site-section figure {
  margin-right: auto;
  margin-left: auto;
}

.sv-site-section img {
  display: block;
  width: 100%;
}

.sv-site-light {
  color: var(--site-ink);
  background: var(--site-paper);
}

.sv-site-dark {
  color: var(--site-warm-white);
  background: var(--site-ink);
}

.sv-site-number {
  margin: 0 0 1.35rem;
  color: var(--site-moss);
  font-size: 0.69rem;
  font-weight: 650;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.sv-site-heading-center {
  max-width: 73rem;
  margin: 0 auto;
  text-align: center;
}

.sv-site-heading h2 span,
.sv-site-asset-copy h2 span,
.sv-site-closing-inner h2 span {
  display: block;
  white-space: nowrap;
}

.sv-site-heading h2 {
  font-size: clamp(3.4rem, 6.2vw, 7rem);
}

.sv-site-heading > p:last-child,
.sv-site-workflow-heading > p:last-child {
  max-width: 52rem;
  margin: 2rem auto 0;
  color: var(--site-muted-light);
  font-size: clamp(1rem, 1.3vw, 1.3rem);
  line-height: 1.75;
}

.sv-site-value {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  align-content: start;
  height: 100dvh;
  padding: clamp(7.5rem, 10vh, 9rem) 4vw 0;
  overflow: hidden;
}

.sv-site-product-shell {
  width: min(88vw, 88rem);
  margin-top: clamp(2.5rem, 5vh, 4.5rem);
  padding: 0.5rem;
  border-radius: 2.1rem;
}

.sv-site-product-light {
  background: rgba(10, 11, 11, 0.035);
  box-shadow: 0 4rem 9rem rgba(80, 70, 50, 0.11);
}

.sv-site-product-dark {
  width: 100%;
  margin: 0;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: 0 4rem 10rem rgba(0, 0, 0, 0.25);
}

.sv-site-product-core {
  overflow: hidden;
  border-radius: 1.7rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.11);
}

.sv-site-asset {
  display: grid;
  align-items: center;
  height: 100dvh;
  padding: clamp(7rem, 10vh, 9rem) 5vw 3rem;
  overflow: hidden;
}

.sv-site-asset-grid {
  display: grid;
  grid-template-columns: minmax(24rem, 0.82fr) minmax(32rem, 1.18fr);
  gap: clamp(3rem, 6vw, 7rem);
  align-items: center;
  width: min(92vw, 96rem);
  margin: 0 auto;
}

.sv-site-asset-copy h2 {
  font-size: clamp(3rem, 4.25vw, 5.2rem);
}

.sv-site-asset-copy > p:not(.sv-site-number) {
  max-width: 35rem;
  margin: 2rem 0 0;
  color: var(--site-muted-dark);
  font-size: 1rem;
  line-height: 1.9;
}

.sv-site-text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 3rem;
  color: var(--site-muted-dark);
  text-decoration: none;
  font-size: 0.9rem;
  transition:
    color 500ms var(--site-ease),
    transform 500ms var(--site-ease);
}

.sv-site-text-link:hover,
.sv-site-text-link:focus-visible {
  color: var(--site-warm-white);
  transform: translateX(3px);
}

.sv-site-workflow {
  display: grid;
  grid-template-rows: auto auto auto;
  align-content: center;
  height: 100dvh;
  padding: clamp(6.5rem, 8vh, 8rem) 5vw 2.5rem;
  overflow: hidden;
}

.sv-site-workflow-heading {
  width: min(100%, 87rem);
  margin: 0 auto;
}

.sv-site-workflow-heading h2 {
  font-size: clamp(3.6rem, 6vw, 6.8rem);
}

.sv-site-workflow-heading > p:last-child {
  margin-right: 0;
  margin-left: 0;
}

.sv-site-workflow-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  width: min(100%, 92rem);
  margin: clamp(2.5rem, 5vh, 4.5rem) auto 0;
  padding: 0;
  list-style: none;
}

.sv-site-workflow-steps li {
  position: relative;
  padding-right: 1.5rem;
}

.sv-site-workflow-steps li:not(:last-child)::after {
  position: absolute;
  top: 2.25rem;
  right: -0.4rem;
  width: 2.2rem;
  height: 1px;
  content: "";
  background: var(--site-line-light);
}

.sv-site-step-number {
  display: block;
  margin-bottom: 1.1rem;
  font-family: "Bahnschrift", "Aptos Display", sans-serif;
  font-size: clamp(2.7rem, 4vw, 4.8rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

.sv-site-workflow-steps strong {
  display: block;
  font-size: 1.05rem;
}

.sv-site-workflow-steps p {
  max-width: 12rem;
  margin: 0.8rem 0 0;
  color: var(--site-muted-light);
  font-size: 0.83rem;
  line-height: 1.65;
}

.sv-site-step-active .sv-site-step-number,
.sv-site-step-active strong {
  color: var(--site-moss);
}

.sv-site-compose-proof {
  width: min(86vw, 72rem);
  max-width: 100%;
  margin: clamp(2.5rem, 5vh, 4rem) auto 0;
  padding: 0.45rem;
  background: rgba(10, 11, 11, 0.035);
  border-radius: 2rem;
}

.sv-site-compose-label {
  padding: 1.15rem 1.6rem;
  font-size: 0.76rem;
  font-weight: 650;
  border-bottom: 1px solid var(--site-line-light);
}

.sv-site-compose-row {
  display: grid;
  grid-template-columns: 1.2fr auto 1fr auto 1fr auto 1fr auto 1.2fr;
  gap: 1rem;
  align-items: center;
  padding: 1.3rem;
  background: var(--site-paper-bright);
  border-radius: 0 0 1.6rem 1.6rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 2.5rem 6rem rgba(80, 70, 50, 0.08);
}

.sv-site-compose-image,
.sv-site-compose-slot {
  display: grid;
  min-height: 6.5rem;
  place-items: center;
  border-radius: 1rem;
}

.sv-site-compose-image {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.18)),
    url("/starvault-redesign-detail-v2.png") center / cover;
}

.sv-site-compose-result {
  background-position: 30% 50%;
}

.sv-site-compose-image span {
  position: absolute;
  bottom: 0.65rem;
  left: 0.75rem;
  font-size: 0.7rem;
}

.sv-site-compose-slot {
  padding: 1rem;
  text-align: center;
  background: #eceae5;
}

.sv-site-compose-slot small {
  color: var(--site-muted-light);
}

.sv-site-compose-slot strong {
  font-size: 0.9rem;
}

.sv-site-compose-plus,
.sv-site-compose-arrow {
  color: var(--site-muted-light);
}

.sv-site-closing {
  position: relative;
  display: grid;
  height: 100dvh;
  padding: 3.5rem 5vw 10rem;
  overflow: hidden;
  place-items: center;
}

.sv-site-closing::before {
  position: absolute;
  inset: 8% 12% 20%;
  content: "";
  opacity: 0.36;
  background: radial-gradient(circle, rgba(102, 124, 103, 0.22), transparent 64%);
}

.sv-site-closing-inner {
  position: relative;
  width: min(100%, 80rem);
  text-align: center;
}

.sv-site-closing-inner h2 {
  display: grid;
  width: 100%;
  font-size: clamp(3.8rem, 7vw, 8rem);
  line-height: 1.06;
  justify-items: center;
}

.sv-site-closing-inner h2 span {
  width: 100%;
  text-align: center;
}

.sv-site-closing-inner > p:not(.sv-site-number) {
  margin: 2rem auto 0;
  color: var(--site-muted-dark);
  font-size: 1rem;
  line-height: 1.8;
}

.sv-site-closing-actions {
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
}

.sv-site-register {
  display: inline-flex;
  min-width: 7.8rem;
  min-height: 3.5rem;
  padding: 0 1.65rem;
  align-items: center;
  justify-content: center;
  color: var(--site-ink);
  background: var(--site-warm-white);
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 650;
  transition: transform 500ms var(--site-ease);
}

.sv-site-register:hover,
.sv-site-register:focus-visible {
  transform: translateY(-2px);
}

.sv-site-footer {
  position: absolute;
  right: 5vw;
  bottom: 0;
  left: 5vw;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  padding: 2rem 0;
  color: rgba(243, 239, 230, 0.55);
  border-top: 1px solid var(--site-line-dark);
  font-size: 0.75rem;
}

.sv-site-footer p {
  margin: 0;
}

.sv-site-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  width: max-content;
  color: inherit;
  text-decoration: none;
  font-weight: 650;
}

.sv-site-footer-brand svg {
  width: 1.7rem;
  height: 1.7rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.35;
}

.sv-site-copyright {
  text-align: right;
}

.sv-site-reveal {
  opacity: 0;
  transform: translate3d(0, 3.5rem, 0);
  transition:
    opacity 900ms var(--site-ease),
    transform 900ms var(--site-ease);
}

.sv-site-reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.sv-site-workflow-steps .sv-site-reveal:nth-child(2) {
  transition-delay: 80ms;
}

.sv-site-workflow-steps .sv-site-reveal:nth-child(3) {
  transition-delay: 160ms;
}

.sv-site-workflow-steps .sv-site-reveal:nth-child(4) {
  transition-delay: 240ms;
}

.sv-site-workflow-steps .sv-site-reveal:nth-child(5) {
  transition-delay: 320ms;
}

.sv-app {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: var(--app-rail-width, 64px) minmax(0, 1fr);
  background: #000;
}

.sv-rail-mount {
  position: sticky;
  top: 0;
  z-index: 120;
  height: 100dvh;
  width: var(--app-rail-width, 64px);
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #000;
  border-right: 1px solid var(--line-soft);
  overflow: visible;
}

.sv-rail-mount > .app-rail {
  position: static;
  flex: 1;
  min-height: 0;
  width: 100%;
  height: auto;
  border-right: none;
  background: transparent;
  backdrop-filter: none;
}

.sv-rail {
  position: sticky;
  top: 0;
  z-index: 120;
  height: 100dvh;
  border-right: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 0;
  background: rgba(5, 6, 6, 0.78);
  backdrop-filter: blur(18px);
  overflow: visible;
}

.sv-rail-brand {
  color: var(--text);
  text-decoration: none;
}

.sv-rail-nav {
  display: grid;
  gap: 12px;
  margin-top: 44px;
  overflow: visible;
}

.sv-icon-btn {
  position: relative;
  width: 42px;
  height: 42px;
  border: 1px solid transparent;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: transparent;
  color: rgba(245, 242, 234, 0.68);
  transition: 180ms ease;
}

.sv-icon-btn:hover,
.sv-icon-btn.active {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.055);
}

.sv-icon-btn::after {
  content: attr(data-tip);
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%) translateX(-4px);
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  padding: 6px 10px;
  border-radius: 6px;
  background: #f5f2ea;
  color: #111;
  font-size: 0.72rem;
  transition: 140ms ease;
  z-index: 30;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.sv-icon-btn:hover::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.sv-icon-btn.active::after {
  opacity: 0;
  pointer-events: none;
}

.sv-rail-bottom {
  margin-top: 0;
}

.sv-rail-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding-bottom: 4px;
  overflow: visible;
}

.sv-rail-settings-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.sv-rail-settings-menu {
  position: fixed;
  left: 0;
  bottom: 0;
  min-width: 220px;
  padding: 0.55rem;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: rgba(14, 15, 15, 0.98);
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
  z-index: 500;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  white-space: nowrap;
}

.sv-rail-settings-menu.hidden {
  display: none;
}

.sv-rail-settings-user {
  padding: 0.45rem 0.55rem 0.55rem;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 0.25rem;
  font-size: 0.82rem;
  color: var(--faint);
  line-height: 1.35;
}

.sv-rail-settings-link,
.sv-rail-settings-btn {
  display: block;
  width: 100%;
  padding: 0.5rem 0.65rem;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  text-decoration: none;
  font-size: 0.88rem;
  text-align: left;
  cursor: pointer;
  white-space: nowrap;
}

.sv-rail-settings-link:hover,
.sv-rail-settings-btn:hover {
  background: rgba(255, 255, 255, 0.06);
}

.sv-rail-settings-btn--danger {
  color: #f87171;
  margin-top: 0.15rem;
  border-top: 1px solid var(--line-soft);
  padding-top: 0.65rem;
  border-radius: 0 0 8px 8px;
}

.sv-card-uploader {
  position: absolute;
  top: 6px;
  left: 6px;
  right: auto;
  z-index: 4;
  max-width: calc(100% - 52px);
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.72);
  color: #f5f2ea;
  font-size: 0.62rem;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}

.sv-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 2px;
  padding-right: 36px; /* ????????? */
}

.sv-detail-uploader {
  flex-shrink: 0;
  max-width: 48%;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--faint);
  font-size: 0.72rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sv-detail-uploader.hidden {
  display: none;
}

.sv-categories {
  position: fixed;
  left: var(--app-rail-width, 64px);
  top: 0;
  bottom: 0;
  z-index: 9;
  display: flex;
  flex-direction: column;
  width: 252px;
  transform: translateX(-105%);
  opacity: 0;
  pointer-events: none;
  border-right: 1px solid var(--line-soft);
  padding: 24px 14px;
  background: rgba(10, 11, 11, 0.92);
  backdrop-filter: blur(18px);
  box-shadow: 24px 0 80px rgba(0, 0, 0, 0.36);
  transition: transform 220ms ease, opacity 220ms ease;
}

.sv-categories-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  margin: 0 -4px;
  padding: 0 4px;
}

.sv-categories-foot {
  flex-shrink: 0;
  padding-top: 12px;
  margin-top: 8px;
  border-top: 1px solid var(--line-soft);
}

.sv-categories-edit-btn {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 0.88rem;
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.sv-categories-edit-btn:hover {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.045);
}

.sv-app.categories-open .sv-categories {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.sv-panel-head p,
.sv-title-block p {
  margin: 0 0 4px;
  color: var(--faint);
  font-size: 0.76rem;
}

.sv-panel-head strong {
  display: block;
  margin-bottom: 24px;
  font-size: 1.26rem;
}

.sv-cat {
  width: 100%;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 10px;
  text-align: left;
}

.sv-cat.active,
.sv-cat:hover {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.045);
}

.sv-cat em {
  font-style: normal;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}

.sv-mini-stat {
  margin-top: 28px;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.sv-mini-stat span {
  display: block;
  color: var(--faint);
  font-size: 0.78rem;
}

.sv-mini-stat strong {
  display: block;
  margin-top: 8px;
  font-size: 1.7rem;
}

.sv-workspace {
  grid-column: 2;
  min-width: 0;
  padding: 18px clamp(10px, 1.5vw, 22px) 36px;
  position: relative;
}

.sv-workspace.sv-drop-target {
  box-shadow: inset 0 0 0 2px rgba(215, 247, 42, 0.55);
  background: rgba(215, 247, 42, 0.06);
}

.sv-workspace.sv-drop-target::after {
  content: attr(data-drop-status);
  position: absolute;
  z-index: 20;
  left: 50%;
  top: 28%;
  transform: translateX(-50%);
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(20, 24, 22, 0.82);
  color: #f4f7f5;
  font-size: 0.9rem;
  pointer-events: none;
  white-space: nowrap;
}
.sv-workspace.sv-drop-target.is-reading-folder::after {
  color: #d7f72a;
  border: 1px solid rgba(215, 247, 42, 0.42);
  letter-spacing: 0.04em;
}

.sv-gallery-sticky-top {
  position: sticky;
  top: 0;
  z-index: 40;
  margin: -18px calc(-1 * clamp(10px, 1.5vw, 22px)) 0;
  padding: 18px clamp(10px, 1.5vw, 22px) 10px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.98) 0%, rgba(0, 0, 0, 0.94) 88%, rgba(0, 0, 0, 0.9));
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  overflow: visible;
}

.sv-app-header {
  position: static;
  z-index: auto;
  display: grid;
  grid-template-columns: minmax(140px, 220px) minmax(260px, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 10px 0 12px;
  background: transparent;
  backdrop-filter: none;
}

.sv-title-block h2 {
  margin: 0;
  font-size: 1.45rem;
}

.sv-search {
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.sv-search-cluster { position: relative; min-width: 0; }
.sv-search-cluster > .sv-search { width: 100%; }

.sv-search:focus-within {
  border-color: rgba(var(--sv-brand-rgb), 0.42);
  box-shadow: 0 0 0 3px rgba(var(--sv-brand-rgb), 0.06);
}

.sv-search.is-image-search {
  border-color: rgba(var(--sv-brand-rgb), 0.46);
  background: rgba(var(--sv-brand-rgb), 0.07);
}

.sv-search-keyword-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  color: var(--faint);
}

.sv-search-image-preview {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(var(--sv-brand-rgb), 0.52);
}

.sv-search.is-image-search .sv-search-keyword-icon { display: none; }

.sv-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.sv-search input::placeholder {
  color: var(--faint);
}

.sv-search-image-btn {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--muted);
  background: rgba(255,255,255,.055);
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.sv-search-image-btn:hover {
  color: var(--text);
  background: rgba(var(--sv-brand-rgb), 0.13);
  transform: translateY(-1px);
}

.sv-search-image-btn svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
}

.sv-search-inline-clear {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--muted);
  background: transparent;
  font: 300 22px/1 Georgia, serif;
  cursor: pointer;
}

.sv-search-inline-clear.hidden { display: none; }
.sv-search-inline-clear:hover { color: var(--text); background: rgba(255,255,255,.08); }

.sv-image-search-status {
  min-height: 42px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  margin: 0 0 10px;
  border: 1px solid rgba(var(--sv-brand-rgb), 0.2);
  border-radius: 13px;
  padding: 7px 10px 7px 13px;
  background: linear-gradient(90deg, rgba(var(--sv-brand-rgb), 0.075), rgba(255,255,255,.025));
}

.sv-image-search-status.hidden { display: none; }
.sv-image-search-status strong, .sv-image-search-status small { display: block; }
.sv-image-search-status strong { color: var(--text); font-size: 11px; }
.sv-image-search-status small { margin-top: 2px; color: var(--faint); font-size: 9px; }
.sv-image-search-status button { border: 1px solid var(--line); border-radius: 999px; padding: 6px 10px; color: var(--muted); background: rgba(0,0,0,.18); font: inherit; font-size: 9px; cursor: pointer; }
.sv-image-search-status button:hover { color: var(--text); border-color: rgba(255,255,255,.24); }
.sv-image-search-pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--sv-brand, #d7f72a); box-shadow: 0 0 14px rgba(var(--sv-brand-rgb),.48); }
.sv-image-search-status.is-loading .sv-image-search-pulse { animation: sv-image-search-pulse 900ms ease-in-out infinite alternate; }

@keyframes sv-image-search-pulse { to { opacity: .3; transform: scale(.65); } }

.sv-image-search-dialog {
  position: absolute;
  z-index: 160;
  top: calc(100% + 11px);
  right: 0;
  width: min(540px, calc(100vw - 92px));
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 20px;
  overflow: hidden;
  color: var(--text);
  background: rgba(16,17,16,.98);
  box-shadow: 0 24px 70px rgba(0,0,0,.62), 0 0 0 1px rgba(0,0,0,.4);
  backdrop-filter: blur(22px);
}

.sv-image-search-dialog.hidden { display: none; }
.sv-image-search-dialog::before { content: ""; position: absolute; top: -6px; right: 45px; width: 11px; height: 11px; border-top: 1px solid rgba(255,255,255,.12); border-left: 1px solid rgba(255,255,255,.12); background: #101110; transform: rotate(45deg); }
.sv-image-search-dialog-shell { position: relative; padding: 20px; }
.sv-image-search-dialog header { display: flex; align-items: start; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.sv-image-search-dialog header p { margin: 0 0 6px; color: var(--sv-brand,#d7f72a); font-size: 9px; font-weight: 900; letter-spacing: .18em; }
.sv-image-search-dialog header h2 { margin: 0; color: var(--text); font: 700 23px/1.15 "STSong", "Songti SC", serif; }
.sv-image-search-dialog header button { width: 34px; height: 34px; border: 0; border-radius: 50%; color: var(--muted); background: rgba(255,255,255,.05); font: 300 25px/1 Georgia,serif; cursor: pointer; }
.sv-image-search-dialog header button:hover { color: var(--text); background: rgba(255,255,255,.09); }

.sv-image-search-dropzone {
  width: 100%;
  min-height: 232px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border: 1px dashed rgba(255,255,255,.25);
  border-radius: 20px;
  padding: 34px;
  color: var(--muted);
  background: radial-gradient(circle at 50% 42%, rgba(var(--sv-brand-rgb),.08), transparent 12rem), rgba(255,255,255,.018);
  font: inherit;
  text-align: center;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.sv-image-search-dropzone:hover, .sv-image-search-dropzone.is-dragging { border-color: rgba(var(--sv-brand-rgb),.65); background: radial-gradient(circle at 50% 42%, rgba(var(--sv-brand-rgb),.14), transparent 12rem), rgba(255,255,255,.03); }
.sv-image-search-dropzone.is-dragging { transform: scale(.992); }
.sv-image-search-upload-icon { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 18px; border: 1px solid rgba(var(--sv-brand-rgb),.45); border-radius: 50%; color: var(--sv-brand,#d7f72a); background: rgba(var(--sv-brand-rgb),.06); }
.sv-image-search-upload-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.sv-image-search-dropzone strong { color: var(--text); font-size: 15px; }
.sv-image-search-dropzone > span:not(.sv-image-search-upload-icon) { margin-top: 9px; color: var(--muted); font-size: 11px; }
.sv-image-search-dropzone small { margin-top: 22px; color: var(--faint); font-size: 9px; }
.sv-image-search-dialog footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 16px; }
.sv-image-search-dialog footer span { color: var(--faint); font-size: 9px; }
.sv-image-search-dialog footer button { min-height: 36px; border: 0; border-radius: 999px; padding: 0 16px; color: var(--sv-color-on-brand,#050505); background: var(--sv-brand,#d7f72a); font: inherit; font-size: 10px; font-weight: 900; cursor: pointer; }

@media (max-width: 560px) {
  .sv-image-search-dialog { position: fixed; top: 78px; right: 14px; left: 14px; width: auto; }
  .sv-image-search-dialog-shell { padding: 18px; }
  .sv-image-search-dropzone { min-height: 220px; padding: 24px 18px; }
  .sv-image-search-dialog footer { align-items: stretch; flex-direction: column; }
}

.sv-header-actions {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sv-header-actions .sv-header-sort {
  position: relative;
  z-index: 50;
}

.sv-header-actions .sv-header-sort .sv-filter-menu-panel {
  right: 0;
  left: auto;
  min-width: 128px;
  z-index: 51;
}

.sv-filter-btn,
.sv-upload-btn {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  padding: 0 12px;
}

.sv-filter-btn.active,
.sv-filter-btn:hover,
.sv-upload-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.sv-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
}

.sv-upload-btn svg {
  width: 16px;
  height: 16px;
}

.sv-avatar-wrap {
  position: relative;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.sv-support-btn {
  position: relative;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
}

.sv-support-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.sv-support-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sv-avatar {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0;
  overflow: hidden;
  background: transparent;
}

.sv-avatar img,
.sv-avatar-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sv-avatar-card {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  z-index: 12;
  width: 312px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 14px;
  padding: 16px;
  background:
    linear-gradient(145deg, rgba(27, 29, 29, 0.985), rgba(15, 16, 16, 0.985));
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.52),
    inset 0 1px rgba(255, 255, 255, 0.035);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: 160ms ease;
}

.sv-avatar-card.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.sv-avatar-identity {
  position: relative;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  padding-bottom: 14px;
  padding-right: 72px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sv-avatar-cloud-site {
  position: absolute;
  top: 0;
  right: 0;
  margin: 0;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(248, 248, 243, 0.82);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.sv-avatar-cloud-site:hover {
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.09);
  color: #f4f4ef;
}

.sv-avatar-cloud-site.hidden {
  display: none;
}

.sv-avatar-copy {
  min-width: 0;
}

.sv-avatar-name-row {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.sv-avatar-name-row strong {
  min-width: 0;
}

.sv-edition-badge {
  flex: 0 0 auto;
  padding: 2px 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(245, 245, 239, 0.64) !important;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.02em;
}

.sv-edition-badge[data-edition="studio"] {
  border-color: rgba(var(--sv-brand-rgb, 215, 247, 42), 0.28);
  background: rgba(var(--sv-brand-rgb, 215, 247, 42), 0.1);
  color: #e7f986 !important;
}

.sv-edition-badge[data-edition="saas"] {
  border-color: rgba(125, 211, 252, 0.24);
  background: rgba(56, 189, 248, 0.09);
  color: #bdefff !important;
}

.sv-avatar-card img {
  width: 52px;
  height: 52px;
  border-radius: 10px;
}

.sv-avatar-edit {
  position: relative;
  display: block;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  overflow: hidden;
  background: transparent;
  cursor: pointer;
}

.sv-avatar-edit img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0;
}

.sv-avatar-edit-tip {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 3px 0;
  font-size: 10px;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  transition: opacity 120ms ease;
}

.sv-avatar-edit:hover .sv-avatar-edit-tip {
  opacity: 1;
}

.sv-avatar-card strong,
.sv-avatar-card span {
  display: block;
}

.sv-avatar-card strong {
  margin: 0 0 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #f4f4ef;
  font-size: 15px;
  line-height: 1.25;
}

.sv-avatar-card span {
  color: var(--muted);
}

.sv-avatar-copy > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11.5px;
  letter-spacing: 0.01em;
}

.sv-avatar-meta {
  margin-top: 13px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.sv-avatar-section-head,
.sv-sync-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
}

.sv-avatar-section-head > span,
.sv-sync-head > span {
  color: rgba(245, 245, 239, 0.52);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sv-avatar-meta-row {
  font-size: 11.5px;
  color: rgba(245, 245, 239, 0.68);
  line-height: 1.4;
  width: 100%;
}

.sv-avatar-meta-row--split {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.sv-avatar-meta-row--split [data-member-plan] {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sv-avatar-points {
  flex-shrink: 0;
  padding: 3px 7px;
  border: 1px solid rgba(215, 247, 42, 0.14);
  border-radius: 999px;
  background: rgba(215, 247, 42, 0.06);
  color: rgba(229, 246, 130, 0.78) !important;
  font-size: 10.5px;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}

.sv-avatar-actions {
  margin-top: 13px;
  padding-top: 11px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sv-avatar-actions button {
  width: auto;
  min-height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(248, 113, 113, 0.88);
  font-size: 11.5px;
  cursor: pointer;
}

.sv-sync-panel {
  margin: 13px 0 0;
  padding: 13px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: block;
  width: 100%;
}

.sv-sync-panel.hidden,
.sv-sync-bind-panel.hidden {
  display: none !important;
}

.sv-sync-quota,
.sv-sync-status {
  font-size: 11.5px;
  color: rgba(245, 245, 239, 0.58);
  line-height: 1.45;
}

.sv-sync-status {
  margin-top: 9px;
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.035);
}

.sv-sync-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: 9px;
}

.sv-sync-btn {
  width: auto;
  min-width: 0;
  margin: 0;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.045);
  color: rgba(248, 248, 243, 0.88);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition:
    border-color 140ms ease,
    background 140ms ease,
    transform 100ms ease;
}

.sv-sync-btn:hover:not(:disabled) {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.075);
}

.sv-sync-btn:active:not(:disabled) {
  transform: translateY(1px);
}

.sv-sync-btn--primary {
  border-color: rgba(var(--sv-brand-rgb, 215, 247, 42), 0.38);
  background: rgba(var(--sv-brand-rgb, 215, 247, 42), 0.1);
  color: #e8f99a;
}

.sv-sync-btn--primary:hover:not(:disabled) {
  border-color: rgba(var(--sv-brand-rgb, 215, 247, 42), 0.58);
  background: rgba(var(--sv-brand-rgb, 215, 247, 42), 0.15);
}

.sv-sync-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

#btnCouponRedeem {
  width: auto;
  min-height: 25px;
  margin: 0;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: rgba(245, 245, 239, 0.7);
  font-size: 10.5px;
  font-weight: 500;
  cursor: pointer;
}

#btnCouponRedeem.hidden {
  display: none !important;
}

.sv-coupon-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.sv-coupon-actions .sv-btn {
  flex: 1;
}

a.sv-sync-log-link {
  min-height: auto;
  border: 0;
  background: transparent;
  color: rgba(245, 245, 239, 0.5);
  font-size: 10.5px;
  text-decoration: none;
}

a.sv-sync-log-link:hover {
  color: rgba(245, 245, 239, 0.82);
}

.sv-sync-bind-panel {
  display: grid;
  gap: 6px;
  margin: 6px 0 8px;
}

.sv-sync-bind-panel input {
  width: 100%;
  min-height: 32px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  padding: 0 8px;
  box-sizing: border-box;
}

#avatarLogout {
  color: rgba(248, 113, 113, 0.88);
}

.sv-color-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 0 0 6px;
  flex-wrap: wrap;
}

.sv-filter-zone {
  position: relative;
  z-index: 6;
  flex: 1 1 420px;
  min-width: 0;
}

.sv-filter-menus {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.sv-filter-trigger {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 0;
  border-radius: 6px;
  padding: 0 8px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease;
}

.sv-filter-trigger::after {
  content: "";
  width: 5px;
  height: 5px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-1px) rotate(45deg);
  opacity: 0.5;
  transition: transform 140ms ease, opacity 140ms ease;
}

.sv-filter-trigger.is-open::after {
  transform: translateY(1px) rotate(225deg);
  opacity: 0.72;
}

.sv-filter-trigger:hover,
.sv-filter-trigger.is-open {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.sv-filter-trigger.has-selection {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
}

.sv-filter-trigger span {
  color: rgba(245, 242, 234, 0.42);
  font-size: 0.68rem;
}

.sv-filter-trigger strong {
  color: rgba(245, 242, 234, 0.86);
  font-size: 0.74rem;
  font-weight: 600;
  max-width: min(24vw, 180px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sv-filter-panel {
  position: absolute;
  left: 0;
  right: auto;
  top: calc(100% + 2px);
  z-index: 8;
  width: max-content;
  max-width: min(100%, 42rem);
  margin: 0;
  padding: 8px 10px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(12, 13, 13, 0.96);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.sv-filter-panel.hidden {
  display: none;
}

.sv-filter-panel-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.sv-filter-chip {
  min-height: 24px;
  padding: 0 8px;
  border: 0;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font: inherit;
  font-size: 0.72rem;
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease;
}

.sv-filter-chip:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.sv-filter-chip.active {
  background: rgba(255, 255, 255, 0.11);
  color: rgba(245, 242, 234, 0.9);
}

.sv-filter-chip.exclude {
  background: rgba(248, 113, 113, 0.1);
  color: #fca5a5;
}

.sv-filter-chip-status {
  font-weight: 500;
}

.sv-filter-chip-untagged:not(.active) {
  border-style: dashed;
}

.sv-filter-chip-sep {
  align-self: center;
  width: 1px;
  height: 14px;
  margin: 0 2px;
  background: rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
}

.sv-color-row > .sv-swatch,
.sv-color-swatches > .sv-swatch {
  align-self: center;
}

.sv-color-swatches {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-left: auto;
}

#galleryCount {
  margin-left: 0;
  color: var(--faint);
  font-size: 0.82rem;
  align-self: center;
}

.sv-filter-menu {
  position: relative;
}

.sv-filter-menu summary {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 999px;
  padding: 0 8px 0 10px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  list-style: none;
  user-select: none;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.sv-filter-menu summary::-webkit-details-marker {
  display: none;
}

.sv-filter-menu summary::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  opacity: 0.72;
  transition: transform 160ms ease;
}

.sv-filter-menu[open] summary::after {
  transform: translateY(1px) rotate(225deg);
}

.sv-filter-menu summary:hover,
.sv-filter-menu[open] summary {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.075);
}

.sv-filter-menu summary span {
  color: rgba(245, 242, 234, 0.48);
  font-size: 0.7rem;
}

.sv-filter-menu summary strong {
  color: rgba(245, 242, 234, 0.82);
  font-size: 0.8rem;
  font-weight: 650;
}

.sv-filter-menu-panel {
  position: absolute;
  top: calc(100% + 7px);
  left: 0;
  z-index: 30;
  min-width: 116px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(15, 16, 16, 0.96);
  box-shadow: 0 18px 56px rgba(0, 0, 0, 0.42);
}

.sv-filter-menu-panel button {
  width: 100%;
  min-height: 28px;
  border: 0;
  border-radius: 6px;
  padding: 0 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  color: var(--muted);
  font-size: 0.84rem;
  text-align: left;
}

.sv-filter-menu-panel button.active,
.sv-filter-menu-panel button:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.075);
}

.sv-filter-menu-panel button.active::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(217, 209, 190, 0.42);
}

.sv-date-filters {
  display: none;
  align-items: center;
  gap: 6px;
  margin-right: 10px;
}

.sv-date-filters button {
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
}

.sv-date-filters button.active,
.sv-date-filters button:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.09);
}

.sv-swatch {
  width: 28px;
  height: 28px;
}

.sv-detail-swatches button {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.sv-swatch,
.sv-detail-swatches button {
  border: 0;
  border-radius: 999px;
  background: var(--swatch);
  opacity: 0.52;
  filter: saturate(0.72) brightness(0.72);
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.42);
  transition: transform 160ms ease, opacity 160ms ease, filter 160ms ease, box-shadow 160ms ease;
}

.sv-swatch-clear {
  display: inline-grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.025);
  box-shadow: inset 0 0 0 1px rgba(245, 242, 234, 0.22);
}

.sv-swatch-clear svg {
  width: 15px;
  height: 15px;
  color: rgba(245, 242, 234, 0.58);
  stroke-width: 1.7;
}

.sv-swatch-light,
.sv-theme-swatch-light {
  box-shadow: inset 0 0 0 1px rgba(245, 242, 234, 0.38);
}

.sv-swatch-light.active,
.sv-detail-swatches button.sv-theme-swatch-light.active {
  box-shadow:
    inset 0 0 0 1px rgba(245, 242, 234, 0.48),
    0 0 0 2px rgba(245, 242, 234, 0.12),
    0 0 14px rgba(245, 242, 234, 0.16);
}

.sv-swatch.active,
.sv-detail-swatches button.active {
  opacity: 1;
  filter: saturate(1.06) brightness(1.12);
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.18),
    0 0 0 2px rgba(245, 242, 234, 0.12),
    0 0 14px rgba(245, 242, 234, 0.16);
}

.sv-swatch-clear.active {
  filter: none;
  box-shadow:
    inset 0 0 0 1px rgba(245, 242, 234, 0.28),
    0 0 0 3px rgba(245, 242, 234, 0.08);
}

.sv-swatch:hover,
.sv-detail-swatches button:hover {
  opacity: 0.86;
  filter: saturate(0.95) brightness(0.98);
  transform: translateY(-1px);
}

.sv-view-toggle {
  width: 42px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  transition: 180ms ease;
}

.sv-view-toggle svg {
  width: 18px;
  height: 18px;
}

.sv-view-toggle:hover,
.sv-view-toggle.active {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
}

.sv-card-title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: none;
  padding: 22px 10px 8px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
  color: #fff;
  font-size: 0.78rem;
  font-weight: 550;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}

.sv-card-title:empty {
  display: none !important;
}

.sv-grid.sv-grid--show-titles .sv-card-title {
  display: block;
}

.sv-edit-toggle {
  min-height: 36px;
  padding: 0 12px 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: 180ms ease;
  font-size: 0.82rem;
  font-weight: 550;
  letter-spacing: 0.01em;
}

.sv-edit-toggle svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

.sv-edit-toggle:hover,
.sv-edit-toggle.active {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
}

.sv-edit-toggle.active {
  color: #111412;
  border-color: rgba(190, 214, 188, 0.75);
  background: #bed6bc;
}

.sv-edit-toggle.active:hover {
  background: #d0e3ce;
}

.sv-batch-bar {
  position: fixed;
  z-index: 210;
  left: 50%;
  bottom: max(24px, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  max-width: calc(100vw - 40px);
  padding: 10px 12px 10px 14px;
  border: 1px solid rgba(190, 214, 188, 0.2);
  border-radius: 16px;
  background: rgba(18, 21, 20, 0.9);
  font-size: 0.84rem;
  box-shadow:
    0 20px 70px rgba(0, 0, 0, 0.55),
    inset 0 1px rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px) saturate(115%);
  transform: translateX(-50%);
  animation: sv-batch-bar-in 220ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.sv-batch-summary,
.sv-batch-actions,
.sv-batch-selection-actions {
  display: flex;
  align-items: center;
}

.sv-batch-summary {
  gap: 8px;
  white-space: nowrap;
}

.sv-batch-summary strong {
  font-size: 0.8rem;
  font-weight: 650;
  color: var(--text);
}

.sv-batch-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #a7c4a6;
  box-shadow: 0 0 0 5px rgba(167, 196, 166, 0.1);
}

.sv-batch-divider {
  width: 1px;
  height: 22px;
  flex: 0 0 auto;
  background: rgba(255, 255, 255, 0.1);
}

.sv-batch-actions {
  gap: 6px;
}

.sv-batch-action,
.sv-batch-link {
  min-height: 32px;
  border: 0;
  border-radius: 9px;
  color: rgba(245, 245, 244, 0.76);
  background: transparent;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.sv-batch-action {
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
}

.sv-batch-action--primary {
  color: #111412;
  border-color: rgba(190, 214, 188, 0.75);
  background: #bed6bc;
}

.sv-batch-action--danger {
  color: #ffb7b7;
  border-color: rgba(255, 105, 105, 0.28);
  background: rgba(122, 28, 28, 0.18);
}

.sv-batch-action:hover,
.sv-batch-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.sv-batch-action--primary:hover {
  color: #0d100e;
  background: #d0e3ce;
}

.sv-batch-action--danger:hover {
  color: #fff;
  border-color: rgba(255, 120, 120, 0.5);
  background: rgba(172, 42, 42, 0.42);
}

.sv-batch-selection-actions {
  gap: 2px;
}

.sv-batch-link {
  padding: 0 8px;
  font-size: 0.77rem;
}

.sv-batch-action:disabled,
.sv-batch-link:disabled {
  opacity: 0.4;
  pointer-events: none;
}

@keyframes sv-batch-bar-in {
  from {
    opacity: 0;
    transform: translate(-50%, 12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
}

@media (max-width: 760px) {
  .sv-batch-bar {
    right: 12px;
    bottom: 14px;
    left: 12px;
    gap: 8px;
    width: auto;
    max-width: none;
    overflow-x: auto;
    padding: 9px 10px;
    transform: none;
    scrollbar-width: none;
  }

  .sv-batch-bar::-webkit-scrollbar {
    display: none;
  }

  .sv-batch-actions,
  .sv-batch-selection-actions {
    flex: 0 0 auto;
  }

  .sv-batch-divider:last-of-type,
  .sv-batch-selection-actions {
    display: none;
  }

  @keyframes sv-batch-bar-in {
    from { opacity: 0; transform: translateY(12px) scale(.98); }
    to { opacity: 1; transform: none; }
  }
}

.sv-auto-tag-job-toast {
  position: fixed;
  left: 50%;
  top: 22px;
  bottom: auto;
  transform: translateX(-50%);
  z-index: 320;
  max-width: min(560px, calc(100vw - 32px));
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--accent-border);
  background: rgba(18, 19, 19, 0.94);
  color: var(--text);
  font-size: 0.82rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
  pointer-events: none;
}

@media (max-width: 760px) {
  .sv-auto-tag-job-toast {
    top: 12px;
  }
}

.sv-auto-tag-job-toast.hidden {
  display: none;
}

.sv-batch-tag-modal {
  position: fixed;
  inset: 0;
  z-index: 280;
  display: grid;
  place-items: center;
  padding: 24px;
}

.sv-batch-tag-modal.hidden {
  display: none;
}

.sv-batch-tag-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(2, 3, 3, 0.72);
  backdrop-filter: blur(10px);
  cursor: default;
}

.sv-batch-tag-dialog {
  position: relative;
  width: min(760px, calc(100vw - 48px));
  height: min(590px, calc(100vh - 72px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(190, 214, 188, 0.18);
  border-radius: 18px;
  background:
    radial-gradient(circle at 92% 0, rgba(167, 196, 166, 0.1), transparent 240px),
    rgba(13, 15, 14, 0.98);
  box-shadow: 0 32px 110px rgba(0, 0, 0, 0.72);
  animation: sv-batch-tag-modal-in 220ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes sv-batch-tag-modal-in {
  from { opacity: 0; transform: translateY(14px) scale(0.985); }
  to { opacity: 1; transform: none; }
}

.sv-batch-tag-drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line-soft);
  flex-shrink: 0;
}

.sv-batch-tag-drawer-meta {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.sv-batch-tag-kicker,
.sv-batch-tag-column-label {
  margin: 0;
  color: #9eb69c;
  font-size: 0.65rem;
  font-weight: 650;
  letter-spacing: 0.15em;
}

.sv-batch-tag-title {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text);
}

.sv-batch-tag-hint {
  font-size: 0.74rem;
  color: var(--faint);
  line-height: 1.45;
}

.sv-batch-tag-close {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.sv-batch-tag-close:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.sv-batch-tag-drawer-split {
  display: grid;
  grid-template-columns: minmax(190px, 0.72fr) minmax(0, 1.28fr);
  min-height: 0;
  flex: 1;
}

.sv-batch-tag-drawer-groups-wrap {
  display: flex;
  min-height: 0;
  flex-direction: column;
  padding: 18px 14px 14px;
  border-right: 1px solid var(--line-soft);
}

.sv-batch-tag-drawer-groups {
  overflow: auto;
  margin-top: 12px;
  padding: 0 4px 0 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sv-batch-tag-group-btn {
  width: 100%;
  text-align: left;
}

.sv-batch-tag-drawer-tags {
  overflow: auto;
  padding: 18px 20px 20px;
  min-width: 0;
}

.sv-batch-tag-drawer-tags-label {
  margin: 22px 0 12px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.sv-batch-tag-drawer-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sv-batch-tag-drawer-chips .sv-filter-chip {
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 9px;
}

.sv-batch-tag-drawer-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  border-top: 1px solid var(--line-soft);
  flex-shrink: 0;
}

.sv-batch-tag-drawer-foot > span {
  color: var(--faint);
  font-size: 0.72rem;
}

.sv-batch-tag-drawer-foot > div {
  display: flex;
  gap: 10px;
}

@media (max-width: 680px) {
  .sv-batch-tag-modal { padding: 12px; }
  .sv-batch-tag-dialog {
    width: calc(100vw - 24px);
    height: min(680px, calc(100dvh - 24px));
  }
  .sv-batch-tag-drawer-split {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
  }
  .sv-batch-tag-drawer-groups-wrap {
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }
  .sv-batch-tag-drawer-groups {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 2px;
  }
  .sv-batch-tag-group-btn {
    width: auto;
    flex: 0 0 auto;
  }
  .sv-batch-tag-drawer-foot > span { display: none; }
  .sv-batch-tag-drawer-foot > div {
    width: 100%;
    justify-content: flex-end;
  }
}

.sv-grid {
  position: relative;
  padding: 0;
  padding-bottom: 60px;
  min-height: 0;
}

.sv-gallery-load-more {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.5rem 1rem 0.75rem;
  pointer-events: none;
}

.sv-gallery-load-more.hidden {
  display: none;
}

.sv-gallery-load-more-hint {
  font-size: 0.78rem;
  color: var(--faint);
}

.sv-gallery-load-more.is-loading .sv-gallery-load-more-hint {
  color: var(--text);
}

.sv-gallery-scroll-end {
  display: none;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 1.25rem 1.5rem 2.25rem;
  color: rgba(245, 242, 234, 0.38);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  user-select: none;
  pointer-events: none;
}

.sv-gallery-scroll-end.is-visible {
  display: flex;
}

.sv-gallery-scroll-end-line {
  display: block;
  width: 36px;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.sv-gallery-scroll-end-text {
  letter-spacing: 0.08em;
  opacity: 0.9;
}

.sv-grid.sv-grid--cards .sv-card {
  position: absolute;
  margin: 0;
  will-change: top, left;
  visibility: hidden;
}

.sv-grid.sv-grid--cards.sv-grid--ready .sv-card {
  visibility: visible;
}

.sv-grid.sv-grid--batch {
  display: grid;
  grid-template-columns: repeat(auto-fill, 120px);
  gap: 12px;
  justify-content: start;
  align-content: start;
  /* ??/????????????????????? */
  width: 100%;
  min-height: min(70vh, 720px);
}

.sv-grid.sv-grid--batch .sv-card {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  width: 120px !important;
  height: 120px !important;
  min-width: 120px;
  min-height: 120px;
  max-width: 120px;
  max-height: 120px;
  visibility: visible;
}

.sv-grid.sv-grid--batch .sv-card-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
}

.sv-grid.sv-grid--batch .sv-card img,
.sv-grid.sv-grid--batch .sv-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sv-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: var(--sv-card-ar, 3 / 4);
  overflow: hidden;
  background: #090a0a;
}

.sv-visual-match-badge {
  position: absolute;
  z-index: 4;
  top: 9px;
  left: 9px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  padding: 5px 8px;
  color: #f7f5ef;
  background: rgba(5,6,6,.75);
  box-shadow: 0 6px 18px rgba(0,0,0,.22);
  backdrop-filter: blur(9px);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .02em;
}

.sv-visual-match-badge.is-exact { color: var(--sv-color-on-brand,#050505); border-color: var(--sv-brand,#d7f72a); background: var(--sv-brand,#d7f72a); }
.sv-visual-match-badge.is-near { color: var(--sv-brand,#d7f72a); border-color: rgba(var(--sv-brand-rgb),.52); }
.sv-visual-match-badge.is-semantic { color: var(--sv-brand,#d7f72a); border-color: rgba(var(--sv-brand-rgb),.44); background: rgba(10,12,10,.8); }

.sv-grid.sv-grid--batch .sv-card:hover {
  transform: none;
}

.sv-card {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(45deg, rgba(255, 255, 255, 0.025) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255, 255, 255, 0.025) 25%, transparent 25%),
    #090a0a;
  background-size: 16px 16px;
  isolation: isolate;
  color: var(--text);
  text-align: left;
  transition: transform 180ms ease, border-color 180ms ease, filter 180ms ease;
}

.sv-grid.sv-grid--batch .sv-card.is-selected {
  border-color: rgba(255, 255, 255, 0.62);
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.38),
    inset 0 0 0 999px rgba(0, 0, 0, 0.28);
}

.sv-grid.sv-grid--cards .sv-card.is-selected {
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.28);
}

.sv-grid.sv-grid--editing.sv-grid--cards .sv-card.is-selected {
  border-color: rgba(255, 255, 255, 0.62);
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.38),
    inset 0 0 0 999px rgba(0, 0, 0, 0.18);
}

.sv-grid.sv-grid--batch .sv-card.is-selected .sv-card-media::after,
.sv-grid.sv-grid--editing.sv-grid--cards .sv-card.is-selected .sv-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(8, 10, 12, 0.46);
  pointer-events: none;
  z-index: 2;
}

.sv-grid.sv-grid--batch .sv-card.is-selected img,
.sv-grid.sv-grid--editing.sv-grid--cards .sv-card.is-selected img {
  filter: grayscale(0.25) brightness(0.68);
}

.sv-grid.sv-grid--editing .sv-card.is-selected .sv-card-chk {
  opacity: 1;
  transform: scale(1.08);
}

.sv-grid.sv-grid--editing .sv-card-chk {
  opacity: 0.72;
}

.sv-card-chk {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 5;
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
}

.sv-grid.sv-grid--editing .sv-card-action,
.sv-grid.sv-grid--editing .sv-card-source {
  display: none;
}

.sv-grid.sv-grid--marquee {
  user-select: none;
}

.sv-workspace--marquee {
  user-select: none;
  cursor: crosshair;
}

.sv-marquee.hidden {
  display: none;
}

.sv-marquee {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 200;
  border: 1px solid var(--accent);
  background: rgba(215, 247, 42, 0.12);
  pointer-events: none;
  box-sizing: border-box;
  transform: translate3d(0, 0, 0);
  transform-origin: 0 0;
  will-change: transform, width, height;
}

.sv-ctx-menu.hidden {
  display: none;
}

.sv-ctx-menu {
  position: fixed;
  z-index: 210;
  min-width: 170px;
  max-width: min(92vw, 360px);
  background: rgba(14, 15, 15, 0.98);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.sv-ctx-menu--cascade {
  overflow: visible;
}

.sv-ctx-cascade-item {
  position: relative;
  width: 100%;
}

.sv-ctx-cascade-item:hover,
.sv-ctx-cascade-item:focus-within {
  z-index: 80;
}

.sv-ctx-cascade-panel {
  position: absolute;
  top: auto;
  bottom: -1px;
  left: calc(100% - 2px);
  min-width: 210px;
  max-width: min(80vw, 320px);
  overflow: visible;
  display: none;
  background: rgba(14, 15, 15, 0.98);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  padding: 4px 0;
}

.sv-ctx-cascade-panel::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -10px;
  width: 12px;
}

.sv-ctx-cascade-item--panel-down > .sv-ctx-cascade-panel {
  top: -1px;
  bottom: auto;
}

.sv-ctx-cascade-panel--leaf {
  max-height: min(78vh, 560px);
  overflow-y: auto;
  overflow-x: hidden;
}

.sv-ctx-cascade-item:hover > .sv-ctx-cascade-panel,
.sv-ctx-cascade-item:focus-within > .sv-ctx-cascade-panel {
  display: block;
}

.sv-ctx-cascade-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
}

.sv-ctx-cascade-panel > .sv-ctx-cascade-item .sv-ctx-cascade-head {
  padding: 0.5rem 0.75rem;
}

.sv-ctx-cascade-caret {
  color: var(--faint);
  font-size: 0.72rem;
}

.sv-ctx-cascade-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0.45rem 0.65rem 0.35rem;
}

.sv-ctx-cascade-tag {
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 0.82rem;
  padding: 0.28rem 0.62rem;
  cursor: pointer;
}

.sv-ctx-cascade-tag:hover {
  border-color: rgba(215, 247, 42, 0.45);
  background: rgba(215, 247, 42, 0.1);
}

.sv-ctx-cascade-tag.active {
  border-color: var(--accent);
  background: rgba(215, 247, 42, 0.18);
  color: var(--text);
}

.sv-ctx-cascade-tag.exclude.active {
  border-color: #f87171;
  background: rgba(248, 113, 113, 0.16);
}

.sv-ctx-cascade-empty {
  margin: 0.35rem 0.65rem;
  font-size: 0.78rem;
  color: var(--faint);
}

.sv-ctx-cascade-apply {
  display: block;
  width: calc(100% - 1rem);
  margin: 0.35rem 0.5rem 0.45rem;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: rgba(215, 247, 42, 0.14);
  color: var(--text);
  font-size: 0.82rem;
  padding: 0.42rem 0.55rem;
  cursor: pointer;
}

.sv-ctx-cascade-apply:hover:not(:disabled) {
  background: rgba(215, 247, 42, 0.24);
}

.sv-ctx-cascade-apply:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.sv-ctx-menu button {
  width: 100%;
  border: none;
  background: transparent;
  color: var(--text);
  text-align: left;
  padding: 0.55rem 0.75rem;
  cursor: pointer;
  font-size: 0.88rem;
}

.sv-ctx-menu button:hover {
  background: rgba(215, 247, 42, 0.16);
}

.sv-ctx-menu button.danger {
  color: #ffb4b4;
}

.sv-ctx-menu button.danger:hover {
  background: rgba(232, 93, 93, 0.18);
}

.sv-ctx-title {
  font-size: 0.75rem;
  color: var(--faint);
  padding: 0.45rem 0.75rem;
  border-bottom: 1px solid var(--line-soft);
}

.sv-ctx-sep {
  height: 1px;
  margin: 0.15rem 0;
  background: var(--line-soft);
}

.sv-batch-picker-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-height: min(52vh, 420px);
  overflow: auto;
  margin: 0.75rem 0 1rem;
}

.sv-batch-picker-item {
  width: 100%;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  text-align: left;
  padding: 0.55rem 0.75rem;
  cursor: pointer;
  font-size: 0.88rem;
}

.sv-batch-picker-item:hover {
  border-color: rgba(215, 247, 42, 0.45);
}

.sv-batch-picker-item--active {
  border-color: var(--accent);
  background: rgba(215, 247, 42, 0.12);
}

.sv-batch-picker-item--muted {
  color: var(--faint);
}

.sv-batch-tag-picker {
  margin: 0.25rem 0 0.5rem;
}

.sv-batch-tag-picker .sv-admin-list--scroll {
  min-height: min(46dvh, 360px);
}

.sv-batch-tag-group {
  margin-bottom: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
  flex-shrink: 0;
}

.sv-batch-tag-group-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.sv-batch-tag-group-head:hover,
.sv-batch-tag-group-head.is-open {
  background: rgba(255, 255, 255, 0.04);
}

.sv-batch-tag-group-head.is-open .sv-batch-tag-group-caret {
  transform: rotate(90deg);
}

.sv-batch-tag-group-caret {
  color: var(--faint);
  font-size: 1rem;
  line-height: 1;
  transition: transform 160ms ease;
}

.sv-batch-tag-group-body {
  padding: 0.15rem 0.75rem 0.55rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.sv-batch-tag-group-body[hidden] {
  display: none !important;
}

.sv-batch-tag-group-title {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  color: var(--faint);
  font-weight: 600;
}

.sv-batch-tag-opt {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.28rem 0;
  font-size: 0.86rem;
  cursor: pointer;
}

.sv-muted-small {
  margin: 0.35rem 0;
  font-size: 0.82rem;
  color: var(--faint);
}

.sv-export-zip-opts {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin: 0.75rem 0 0.5rem;
}

.sv-export-zip-opt {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
  cursor: pointer;
}

.sv-export-zip-opt input {
  accent-color: var(--accent);
}

.sv-card:nth-child(3n) {
  min-height: 0;
}

.sv-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-soft);
}

.sv-card img,
.sv-card video {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.02);
  transition: transform 360ms ease;
  background: #090a0a;
}

.sv-grid.sv-grid--cards .sv-card:hover img,
.sv-grid.sv-grid--cards .sv-card:hover video {
  transform: scale(1.035);
}

.sv-card-action {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(245, 242, 234, 0.94);
  color: #101111;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: auto;
  transition: opacity 160ms ease, transform 160ms ease, background 160ms ease;
}

.sv-card-action svg {
  width: 18px;
  height: 18px;
}

.sv-card-source {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 4;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(245, 242, 234, 0.94);
  color: #101111;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
  opacity: 0;
  transform: scale(0.9);
  pointer-events: auto;
  text-decoration: none;
  transition: opacity 160ms ease, transform 160ms ease, background 160ms ease;
}

.sv-card-source svg {
  width: 18px;
  height: 18px;
}

.sv-card-source svg path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sv-card-heart {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 5;
}

.sv-card:hover .sv-card-action,
.sv-card:focus-within .sv-card-action,
.sv-card:hover .sv-card-source,
.sv-card:focus-within .sv-card-source {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.sv-card-action:hover,
.sv-card-source:hover {
  background: #fff;
}

.sv-card-source:hover {
  transform: scale(1.06);
}

.sv-card-heart.is-liked {
  color: #d34a4a;
}

.sv-card-heart.is-liked svg path {
  fill: currentColor;
}

.sv-login,
.sv-detail {
  position: fixed;
  inset: 0;
  /* ?????? FAB/???? 2390?2410?????????? */
  z-index: 2600;
  display: grid;
  place-items: center;
  padding: 18px;
}

/* ????????? */
.sv-detail:not(.hidden):not(.sv-detail--pin-page) {
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 18px;
}

.sv-detail.is-closing {
  /* ???????????????????????????? */
  pointer-events: auto;
}

.sv-detail:not(.sv-detail--pin-page) .sv-detail-scroll {
  width: min(1410px, calc(100vw - 40px));
  margin: 0;
  display: block;
  gap: 0;
}

.sv-detail:not(.sv-detail--pin-page) .sv-detail-panel {
  width: min(1280px, calc(100vw - 56px));
  flex: 1 1 auto;
  min-width: 0;
}

.sv-detail:not(.sv-detail--pin-page) .sv-pin-top {
  display: flex;
  align-items: stretch;
  gap: 10px;
  width: 100%;
}

.sv-detail:not(.sv-detail--pin-page) .sv-pin-top:has(#detailLinkedRail.hidden) .sv-detail-panel {
  width: min(1280px, calc(100vw - 56px));
}

.sv-detail:not(.sv-detail--pin-page) .sv-pin-back,
.sv-detail:not(.sv-detail--pin-page) .sv-related-rail,
.sv-detail:not(.sv-detail--pin-page) .sv-related-section {
  display: none !important;
}

.sv-linked-rail {
  display: flex;
  flex-direction: column;
  flex: 0 0 108px;
  width: 108px;
  max-height: min(780px, calc(100dvh - 70px));
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 10, 14, 0.92);
  overflow: hidden;
}

.sv-linked-rail.hidden {
  display: none !important;
}

.sv-linked-rail-drop {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  scrollbar-width: thin;
  transition: background 160ms ease, box-shadow 160ms ease;
}

.sv-linked-rail-drop.is-empty {
  justify-content: center;
  align-items: center;
  cursor: pointer;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  margin: 2px;
  min-height: 120px;
}

.sv-linked-rail-drop.is-empty:not(.is-readonly):hover,
.sv-linked-rail-drop.is-dragover {
  border-color: rgba(var(--sv-brand-rgb), 0.55);
  background: rgba(var(--sv-brand-rgb), 0.08);
}

.sv-linked-rail-drop.is-readonly {
  cursor: default;
}

.sv-linked-rail-drop.is-uploading {
  opacity: 0.72;
  pointer-events: none;
}

.sv-linked-rail-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.sv-linked-rail .sv-linked-images-cell-wrap {
  width: 100%;
}

.sv-linked-rail .sv-linked-images-cell {
  border-radius: 8px;
}

.sv-detail-action-btn.is-active {
  border-color: rgba(var(--sv-brand-rgb), 0.55);
  background: rgba(var(--sv-brand-rgb), 0.18);
  color: var(--text);
}

/* ???Pinterest ??? */
.sv-detail.sv-detail--pin-page:not(.hidden) {
  display: block;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px 20px 64px;
  place-items: unset;
  background: #050505;
}

.sv-detail.sv-detail--pin-page .sv-modal-backdrop {
  display: none;
}

.sv-detail.sv-detail--pin-page .sv-detail-scroll {
  width: min(1480px, calc(100vw - 40px));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.sv-detail .sv-modal-backdrop {
  position: fixed;
}

.sv-detail-scroll {
  position: relative;
  z-index: 1;
}

.sv-pin-back {
  align-self: flex-start;
  appearance: none;
  border: 0;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(245, 242, 234, 0.92);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  font: inherit;
  font-size: 0.88rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.sv-pin-back:hover {
  background: rgba(255, 255, 255, 0.14);
}

.sv-pin-back.hidden {
  display: none !important;
}

.sv-pin-top {
  display: contents;
}

.sv-detail.sv-detail--pin-page .sv-pin-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 108px 168px;
  gap: 16px;
  align-items: start;
}

.sv-detail.sv-detail--pin-page .sv-pin-top:has(#detailLinkedRail.hidden):has(#detailRelatedRail.hidden) {
  grid-template-columns: 1fr;
}

.sv-detail.sv-detail--pin-page .sv-pin-top:has(#detailLinkedRail.hidden):not(:has(#detailRelatedRail.hidden)) {
  grid-template-columns: minmax(0, 1fr) 168px;
}

.sv-detail.sv-detail--pin-page .sv-pin-top:not(:has(#detailLinkedRail.hidden)):has(#detailRelatedRail.hidden) {
  grid-template-columns: minmax(0, 1fr) 108px;
}

.sv-detail.sv-detail--pin-page .sv-linked-rail {
  max-height: min(720px, calc(100dvh - 160px));
}

.sv-related-rail {
  min-width: 0;
  max-height: min(780px, calc(100dvh - 120px));
  overflow: auto;
  scrollbar-width: thin;
}

.sv-related-rail.hidden {
  display: none !important;
}

.sv-related-rail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.sv-related-rail .sv-related-card {
  aspect-ratio: 3 / 4;
  border-radius: 10px;
}

.sv-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(10px);
}

.sv-login-card {
  position: relative;
  z-index: 1;
  width: min(390px, 100%);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 28px;
  padding: 42px 36px 34px;
  background: #f4f3ef;
  color: #111;
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.48);
}

.sv-login-close,
.sv-detail-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: currentColor;
  font-size: 1.35rem;
}

.sv-spinner {
  width: 36px;
  height: 36px;
  margin: 0 auto 26px;
  border-radius: 50%;
  border: 6px solid #111;
  border-right-color: transparent;
  animation: spin 900ms linear infinite;
}

.sv-login-card h2 {
  margin: 0;
  text-align: center;
  font-size: 1.95rem;
}

.sv-login-card p {
  margin: 10px 0 26px;
  color: #6b6b6b;
  text-align: center;
}

.sv-login-subtitle {
  line-height: 1.55;
}

.sv-login-subtitle strong {
  color: #111;
}

.sv-login-card label {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
  color: #555;
  font-size: 0.78rem;
}

.sv-login-card input {
  height: 42px;
  border: 1px solid #d6d4ce;
  border-radius: 999px;
  padding: 0 14px;
  background: #fff;
  color: #111;
  outline: 0;
}

.sv-login-card .sv-btn {
  width: 100%;
  margin-top: 4px;
  border-color: #111;
  background: #111;
  color: #fff;
}

.sv-login-error {
  min-height: 1.25em;
  margin: -2px 0 10px !important;
  color: #b23838 !important;
  text-align: left !important;
  font-size: 0.84rem;
}

.sv-login-link {
  border: 0;
  background: transparent;
  display: block;
  margin: 18px auto 0;
  text-decoration: none;
  color: #777;
}

.sv-login-note {
  margin: 16px 0 0 !important;
  color: #777 !important;
  text-align: left !important;
  font-size: 0.78rem;
  line-height: 1.55;
}

.sv-login-note code {
  padding: 1px 5px;
  border-radius: 5px;
  background: #e5e2da;
  color: #111;
}

.sv-detail-panel {
  position: relative;
  z-index: 1;
  width: min(1280px, calc(100vw - 56px));
  height: min(780px, calc(100dvh - 70px));
  flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(340px, 0.7fr);
  background: #000;
  box-shadow: 0 34px 120px rgba(0, 0, 0, 0.58);
}

.sv-detail:not(.sv-detail--pin-page) .sv-detail-panel {
  will-change: transform, opacity;
}

.sv-detail:not(.sv-detail--pin-page) .sv-modal-backdrop {
  will-change: opacity;
}

/* ?? Pin??????????????? grid ?? */
.sv-detail.sv-detail--pin-page .sv-detail-panel {
  width: 100%;
  height: min(720px, calc(100dvh - 160px));
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, 0.62fr);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
}

.sv-detail.sv-detail--pin-page .sv-detail-close {
  display: none;
}

.sv-detail.sv-detail--pin-page .sv-detail-side {
  max-width: none;
}

.sv-detail.sv-detail--pin-page .sv-detail-side section.sv-prompt-box textarea {
  min-height: 120px;
  max-height: 200px;
}

@media (max-width: 1200px) {
  .sv-detail.sv-detail--pin-page .sv-pin-top {
    grid-template-columns: 1fr;
  }

  .sv-detail.sv-detail--pin-page .sv-related-rail {
    display: none !important;
  }
}

.sv-detail-close {
  z-index: 3;
  color: var(--text);
  background: rgba(0, 0, 0, 0.36);
}

.sv-detail-image {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  background: #000;
}

.sv-detail-image-counter {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  max-width: calc(100% - 72px);
  padding: 0.34rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(9, 13, 22, 0.72);
  color: rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(8px);
  font-size: 0.8rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}

.sv-detail-image-counter.hidden {
  display: none !important;
}

.sv-detail-link-badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  max-width: calc(100% - 24px);
  padding: 0.34rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(9, 13, 22, 0.72);
  color: rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(8px);
  font-size: 0.78rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}

.sv-detail-link-badge.hidden {
  display: none !important;
}

.sv-detail-gallery-like {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: rgba(245, 242, 234, 0.94);
  color: #101111;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
  cursor: pointer;
  opacity: 0;
  transform: scale(0.92);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease, background 160ms ease, color 160ms ease;
}

.sv-detail-image:hover .sv-detail-gallery-like:not(.hidden),
.sv-detail-image:focus-within .sv-detail-gallery-like:not(.hidden),
.sv-detail-gallery-like.is-liked,
.sv-detail-gallery-like.is-visible {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.sv-detail-gallery-like:hover {
  background: #fff;
  transform: scale(1.04);
}

.sv-detail-gallery-like svg {
  width: 18px;
  height: 18px;
}

.sv-detail-gallery-like svg path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linejoin: round;
}

.sv-detail-gallery-like.is-liked {
  color: #d34a4a;
}

.sv-detail-gallery-like.is-liked svg path {
  fill: currentColor;
  stroke: currentColor;
}

.sv-detail-source-link {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 3;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(245, 242, 234, 0.94);
  color: #101111;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
  text-decoration: none;
  transition: background 160ms ease, transform 160ms ease;
}

.sv-detail-source-link:hover {
  background: #fff;
  transform: scale(1.04);
}

.sv-detail-source-link svg {
  width: 18px;
  height: 18px;
}

.sv-detail-source-link svg path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sv-detail-image > img,
.sv-detail-image > video {
  display: none;
  position: absolute;
  inset: 0;
  /* ???????? contain????????????????? */
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

.sv-detail-image > img.is-active,
.sv-detail-image > video.is-active {
  display: block !important;
}

.sv-detail-image > img[hidden],
.sv-detail-image > video[hidden],
.sv-detail-image > img[aria-hidden="true"],
.sv-detail-image > video[aria-hidden="true"] {
  display: none !important;
}

.sv-detail-image {
  overscroll-behavior: contain;
}

.sv-detail-image > img,
.sv-detail-image > video {
  will-change: transform, opacity;
}

.sv-detail-side {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 24px 24px 18px;
  border-left: 1px solid var(--line-soft);
  background: rgba(18, 19, 19, 0.96);
}

.sv-detail-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  overflow: auto;
}

.sv-detail-side.ai-mode .sv-detail-info {
  display: none;
}

.sv-detail-side.ai-mode .sv-detail-foot {
  display: none;
}

.sv-detail-side.ai-mode .sv-ai-editor {
  display: flex;
  flex: 1;
  min-height: 0;
}

.sv-detail-side.ai-mode .sv-linked-panel,
.sv-detail-side.linked-mode .sv-ai-editor {
  display: none;
}

.sv-detail-side.linked-mode .sv-detail-info,
.sv-detail-side.linked-mode .sv-detail-foot {
  display: none;
}

.sv-detail-side.linked-mode .sv-linked-panel {
  display: flex;
  flex: 1;
  min-height: 0;
}

.sv-linked-panel {
  display: none;
  flex-direction: column;
  min-height: 0;
  gap: 10px;
  padding: 4px 2px 0;
}

.sv-linked-panel-head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.sv-linked-panel-head h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 650;
}

.sv-linked-dropzone {
  flex: 1;
  min-height: 0;
  overflow: auto;
  border: 1px dashed transparent;
  border-radius: 12px;
  padding: 8px;
  transition: border-color 160ms ease, background 160ms ease;
}

.sv-linked-dropzone.is-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
}

.sv-linked-dropzone.is-empty:not(.is-readonly):hover,
.sv-linked-dropzone.is-dragover {
  border-color: rgba(var(--sv-brand-rgb), 0.55);
  background: rgba(var(--sv-brand-rgb), 0.08);
}

.sv-linked-dropzone.is-readonly {
  cursor: default;
}

.sv-linked-dropzone.is-uploading {
  opacity: 0.72;
  pointer-events: none;
}

.sv-linked-drop-hint {
  margin: 0;
  text-align: center;
}

.sv-linked-images-cell-wrap {
  position: relative;
}

.sv-linked-images-cell {
  position: relative;
  width: 100%;
}

.sv-linked-images-unlink {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.sv-linked-images-unlink:hover {
  background: rgba(220, 38, 38, 0.85);
}

.sv-detail-side h2 {
  margin: 0;
  font-size: 1.55rem;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sv-detail-title-editor {
  position: relative;
  min-width: 0;
}

.sv-detail-title-editor.is-editable h2 {
  padding-right: 22px;
  cursor: text;
}

.sv-detail-title-editor.is-editable::after {
  content: "?????";
  position: absolute;
  right: 0;
  bottom: -18px;
  color: var(--faint);
  font-size: 0.64rem;
  letter-spacing: 0.02em;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--sv-duration-fast) var(--sv-ease);
}

.sv-detail-title-editor.is-editable:hover::after,
.sv-detail-title-editor.is-editable:focus-within::after {
  opacity: 1;
}

.sv-detail-title-editor.is-editable h2:hover {
  color: var(--sv-color-brand-hover);
}

.sv-detail-title-editor h2:focus-visible {
  outline: 0;
  border-radius: 4px;
  box-shadow: var(--sv-focus-ring);
}

.sv-detail-title-input {
  width: 100%;
  height: 38px;
  padding: 0 10px;
  border: 1px solid rgba(var(--sv-brand-rgb), 0.62);
  border-radius: var(--sv-radius-control);
  background: var(--sv-color-surface-strong);
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 700;
  outline: 0;
  box-shadow: var(--sv-focus-ring);
}

.sv-detail-meta {
  display: flex;
  gap: 8px;
  margin: 12px 0 22px;
  color: var(--muted);
  font-size: 0.82rem;
  min-width: 0;
}

.sv-detail-meta span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sv-detail-meta span:first-child {
  flex-shrink: 0;
}

.sv-detail-side section {
  padding: 16px 0;
  border-top: 1px solid var(--line-soft);
}

.sv-detail-side h3 {
  margin: 0 0 10px;
  font-size: 0.84rem;
  color: var(--muted);
  font-weight: 600;
}

.sv-related-section {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 8px 2px 24px;
  min-height: 120px;
}

.sv-related-section .sv-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.sv-related-section .sv-section-head h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: rgba(245, 242, 234, 0.92);
  letter-spacing: 0.02em;
}

.sv-related-status {
  margin: 0 0 14px;
  font-size: 0.82rem;
  color: rgba(245, 242, 234, 0.62);
  min-height: 1.2em;
}

.sv-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 12px;
}

.sv-related-card {
  appearance: none;
  border: 0;
  padding: 0;
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  aspect-ratio: 3 / 4;
  transition: transform 160ms ease, outline-color 160ms ease;
}

.sv-related-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sv-related-card:hover {
  outline: 1px solid rgba(245, 242, 234, 0.28);
  transform: translateY(-2px);
}

.sv-related-sentinel {
  height: 1px;
  width: 100%;
  pointer-events: none;
}

.sv-related-section.hidden {
  display: none;
}

.sv-chip-row,
.sv-rating,
.sv-detail-tag-chips {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.sv-detail-swatches {
  display: flex;
  gap: 2px;
  flex-wrap: nowrap;
}

.sv-detail-tag-groups {
  display: none;
}

.sv-chip-row button.active,
.sv-chip-row button.is-on {
  background: rgba(255, 255, 255, 0.09);
  color: rgba(245, 242, 234, 0.82);
}

.sv-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.sv-tags-section .sv-section-head {
  margin-bottom: 10px;
}

.sv-tags-section h3 {
  margin: 0;
}

.sv-ai-keywords {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.sv-ai-keywords.hidden {
  display: none;
}

.sv-ai-keywords-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.sv-ai-keyword-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  line-height: 1.3;
  color: rgba(245, 242, 234, 0.62);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.sv-ai-keywords-more {
  border: 0;
  background: transparent;
  color: rgba(212, 198, 120, 0.85);
  font-size: 11px;
  padding: 0;
  cursor: pointer;
}

.sv-ai-keywords-more:hover {
  color: rgba(245, 230, 150, 0.95);
  text-decoration: underline;
}

.sv-text-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.78rem;
  padding: 0;
  cursor: pointer;
}

.sv-text-btn:hover {
  color: var(--text);
}

.sv-text-btn.is-loading,
.sv-text-btn:disabled {
  opacity: 0.55;
  cursor: wait;
}

.sv-auto-tag-inline-status {
  margin: 8px 0 0;
  min-height: 1.2em;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--muted);
}

.sv-auto-tag-inline-status.is-loading {
  color: #fcd34d;
}

.sv-auto-tag-inline-status.is-ok {
  color: #86efac;
}

.sv-auto-tag-inline-status.is-warn {
  color: #fcd34d;
}

.sv-auto-tag-inline-status.is-error {
  color: #fca5a5;
}

.sv-featured-readonly-hint {
  margin: 10px 0 0;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(245, 242, 234, 0.62);
  font-size: 0.78rem;
  line-height: 1.45;
}

.sv-text-btn-danger {
  color: #fca5a5;
}

.sv-detail-foot {
  flex-shrink: 0;
  border-top: 1px solid var(--line-soft);
  padding-top: 12px;
  margin-top: 0;
}

.sv-detail-trash-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 10px;
  min-height: 0;
}

.sv-detail-catalog-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-bottom: 0;
  min-height: 44px;
}

.sv-detail-catalog-actions-spacer {
  flex: 1 1 auto;
  min-width: 8px;
}

.sv-detail-catalog-actions.hidden {
  display: none;
}

.sv-detail-collect-heart {
  appearance: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(245, 242, 234, 0.78);
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease, border-color 160ms ease;
}

.sv-detail-collect-heart svg {
  width: 22px;
  height: 22px;
}

.sv-detail-collect-heart svg path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linejoin: round;
}

.sv-detail-collect-heart:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  transform: scale(1.04);
}

.sv-detail-collect-heart.is-collected {
  color: #e85d5d;
  border-color: rgba(232, 93, 93, 0.35);
  background: rgba(232, 93, 93, 0.12);
}

.sv-detail-collect-heart.is-collected svg path {
  fill: currentColor;
  stroke: currentColor;
}

.sv-detail-collect-heart:disabled {
  cursor: default;
  opacity: 1;
}

.sv-detail-collect-heart.is-collected:hover {
  transform: none;
}

.sv-card-collected {
  pointer-events: none;
  font-size: 0.85rem;
  font-weight: 700;
  color: #c9a227;
  background: rgba(20, 18, 14, 0.55);
}

.appView.sv-featured-mode .sv-sidebar,
#appLayout.sv-featured-mode .sv-sidebar {
  opacity: 0.55;
  pointer-events: none;
}

.appView.sv-featured-mode .sv-color-row,
#appLayout.sv-featured-mode .sv-color-row {
  display: none;
}

.sv-detail-trash-actions:empty,
.sv-detail-trash-actions:not(:has(button:not(.hidden))) {
  display: none;
  margin-bottom: 0;
}

.sv-btn-compact {
  min-height: 32px;
  padding: 0 10px;
  font-size: 0.82rem;
}

.sv-detail-tag-group-head {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.82rem;
  padding: 4px 0;
  cursor: pointer;
  text-align: left;
}

.sv-detail-tag-chev {
  width: 1em;
  flex-shrink: 0;
}

.sv-detail-tag-chip {
  min-height: 22px;
  border: 0;
  border-radius: 5px;
  padding: 0 7px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(245, 242, 234, 0.72);
  font-size: 0.72rem;
  cursor: pointer;
}

.sv-detail-tag-chip.active {
  background: rgba(255, 255, 255, 0.09);
  color: rgba(245, 242, 234, 0.82);
}

.sv-tag-empty {
  font-size: 0.76rem;
}

.sv-chip-row button {
  min-height: 22px;
  border: 0;
  border-radius: 5px;
  padding: 0 7px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(245, 242, 234, 0.72);
  font-size: 0.72rem;
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease;
}

.sv-chip-row button:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.sv-detail-tag-chip-wrap {
  position: relative;
  display: inline-flex;
}

.sv-detail-tag-picker {
  position: fixed;
  z-index: 320;
  min-width: 132px;
  max-width: min(240px, calc(100vw - 24px));
  max-height: min(280px, 50vh);
  overflow: auto;
  padding: 6px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #141515;
  color: var(--text);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
  scrollbar-width: thin;
}

.sv-detail-tag-picker-head {
  padding: 4px 8px 6px;
  font-size: 0.7rem;
  color: var(--faint);
  letter-spacing: 0.02em;
}

.sv-detail-tag-picker-item {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: rgba(245, 242, 234, 0.86);
  font: inherit;
  font-size: 0.78rem;
  padding: 7px 8px;
  cursor: pointer;
}

.sv-detail-tag-picker-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.sv-detail-tag-picker-item.is-active {
  background: var(--accent-soft);
  color: var(--text);
}

.sv-detail-tag-picker-clear {
  margin-top: 4px;
  border-top: 1px solid var(--line-soft);
  border-radius: 0 0 6px 6px;
  color: #fca5a5;
}

.sv-detail-tag-picker-clear:hover {
  background: rgba(201, 104, 104, 0.14);
  color: #fecaca;
}

.sv-rating button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.4rem;
  cursor: pointer;
}

.sv-rating button.is-active {
  color: var(--accent);
}

.sv-prompt-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.sv-prompt-box textarea {
  flex: 1;
  min-height: 120px;
}

.sv-prompt-rev-row {
  margin-bottom: 8px;
}

.sv-prompt-rev-row.hidden {
  display: none;
}

.sv-prompt-rev-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.sv-prompt-rev-select {
  flex: 1;
  min-width: 180px;
  min-height: 36px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #141515;
  color: var(--text);
  color-scheme: dark;
  padding: 0 10px;
}

/* Windows/Chrome ?? option ?????????????????? */
.sv-prompt-rev-select option {
  background-color: #141515;
  color: #f5f2ea;
}

.sv-color-hint {
  margin: 0 0 8px;
}

.sv-theme-swatch[data-theme="none"] {
  display: inline-grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.025);
  box-shadow: inset 0 0 0 1px rgba(245, 242, 234, 0.22);
  opacity: 1;
  filter: none;
}

.sv-theme-swatch[data-theme="none"] svg {
  width: 12px;
  height: 12px;
  stroke: rgba(245, 242, 234, 0.58);
  fill: none;
  stroke-width: 1.7;
}

.sv-theme-swatch[data-theme="none"].active {
  box-shadow:
    inset 0 0 0 1px rgba(245, 242, 234, 0.28),
    0 0 0 3px rgba(245, 242, 234, 0.08);
}

.sv-btn-danger {
  color: #fca5a5;
  border-color: rgba(248, 113, 113, 0.35);
}

.sv-cat-trash span {
  color: #fca5a5;
}

.sv-cat-trash.active {
  border-color: rgba(248, 113, 113, 0.45);
}

.sv-detail-actions {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 7px;
  min-height: 34px;
}

.sv-detail-save-status {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: min(48%, 240px);
  margin-right: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: none;
}

.sv-tag-empty {
  font-size: 0.82rem;
}

.sv-ai-edit-btn {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(245, 242, 234, 0.2);
  border-radius: var(--sv-radius-control);
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
  cursor: pointer;
}

.sv-ai-edit-btn svg {
  width: 17px;
  height: 17px;
}

.sv-ai-edit-btn:hover {
  color: var(--sv-color-on-brand);
  border-color: rgba(var(--sv-brand-rgb), 0.55);
  background: var(--sv-color-brand);
  transform: translateY(-1px);
}

.sv-detail-action-btn {
  min-height: 34px;
  height: 34px;
  padding: 0 11px;
  gap: 6px;
  font-size: 0.76rem;
  border-radius: var(--sv-radius-control);
  box-shadow: none;
}

.sv-detail-action-btn svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sv-linked-images-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 8px;
  width: 100%;
}

.sv-linked-dropzone:not(.is-empty) .sv-linked-images-grid {
  align-content: start;
}

.sv-linked-images-empty {
  margin: 0;
  grid-column: 1 / -1;
}

.sv-linked-images-cell {
  appearance: none;
  display: block;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  cursor: pointer;
  overflow: hidden;
  text-align: left;
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.sv-linked-images-cell:hover:not(:disabled) {
  border-color: rgba(var(--sv-brand-rgb), 0.55);
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.06);
}

.sv-linked-images-cell:disabled,
.sv-linked-images-cell.is-missing {
  cursor: default;
  opacity: 0.65;
}

.sv-linked-images-cell img,
.sv-linked-images-ph {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  background: rgba(0, 0, 0, 0.25);
}

.sv-linked-images-ph {
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  color: var(--muted);
}

.sv-prompt-box textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  resize: vertical;
  background: rgba(0, 0, 0, 0.22);
  color: var(--text);
  line-height: 1.5;
  outline: 0;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.sv-prompt-box textarea::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.sv-ai-editor {
  display: none;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  gap: 12px;
}

.sv-ai-head {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  align-items: start;
  flex-shrink: 0;
}

.sv-ai-head h2 {
  margin: 0;
  color: rgba(245, 242, 234, 0.88);
  font-size: 1.35rem;
}

.sv-ai-back {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
}

.sv-ai-back:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.075);
}

.sv-ai-thread {
  flex: 1;
  min-height: 0;
  padding: 2px 4px;
  overflow: auto;
}

.sv-ai-thread-empty,
.sv-ai-msg {
  margin: 0 0 8px;
  color: rgba(245, 242, 234, 0.52);
  font-size: 0.86rem;
  line-height: 1.55;
}

.sv-ai-msg.user {
  color: rgba(245, 242, 234, 0.86);
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
}

.sv-ai-msg.assistant {
  color: rgba(245, 242, 234, 0.72);
  white-space: pre-wrap;
}

.sv-ai-msg-body {
  white-space: pre-wrap;
  word-break: break-word;
}

.sv-ai-msg.assistant.is-streaming .sv-ai-msg-body::after {
  content: "▍";
  margin-left: 2px;
  opacity: 0.55;
  animation: sv-ai-caret 0.9s step-end infinite;
}

@keyframes sv-ai-caret {
  50% {
    opacity: 0;
  }
}

.sv-ai-msg-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.sv-ai-write-btn {
  appearance: none;
  border: 1px solid rgba(245, 242, 234, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(245, 242, 234, 0.92);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.78rem;
  cursor: pointer;
}

.sv-ai-write-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.14);
}

.sv-ai-write-btn:disabled {
  opacity: 0.55;
  cursor: default;
}

.sv-ai-composer {
  flex-shrink: 0;
  margin-top: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(11, 11, 13, 0.92);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
}

.sv-ai-composer-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 12px;
  padding: 0;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 280ms ease, opacity 220ms ease, padding 280ms ease;
}

.sv-ai-editor.image-task .sv-ai-composer-preview:not(.hidden) {
  max-height: 72px;
  opacity: 1;
  padding: 10px 0 2px;
}

.sv-ai-composer-preview img {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--line-soft);
  flex-shrink: 0;
}

.sv-ai-composer-preview span {
  color: var(--muted);
  font-size: 0.78rem;
}

.sv-ai-tool {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  flex-shrink: 0;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.sv-ai-tool:hover,
.sv-ai-tool.is-image-mode {
  color: var(--text);
  background: rgba(255, 255, 255, 0.075);
}

.sv-ai-tool.is-image-mode {
  border-color: rgba(215, 247, 42, 0.45);
  background: rgba(215, 247, 42, 0.12);
}

.sv-ai-tool svg {
  width: 18px;
  height: 18px;
}

.sv-ai-template-select svg {
  width: 14px;
  height: 14px;
  color: rgba(245, 242, 234, 0.42);
  flex-shrink: 0;
}

.sv-ai-composer textarea {
  width: 100%;
  min-height: 72px;
  border: 0;
  resize: vertical;
  padding: 12px 14px 8px;
  background: transparent;
  color: var(--text);
  outline: 0;
  line-height: 1.55;
}

.sv-ai-composer textarea::placeholder {
  color: rgba(245, 242, 234, 0.34);
}

.sv-ai-composer-bar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--line-soft);
  padding: 8px;
}

.sv-ai-composer-main {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.sv-ai-template-select {
  flex: 1;
  min-width: 0;
}

.sv-ai-llm-select {
  flex: 1;
  min-width: 0;
}

.sv-ai-editor.image-task .sv-ai-llm-select {
  display: none;
}

.sv-ai-editor.image-task .sv-ai-template-select {
  flex: 1;
}

.sv-ai-image-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-4px);
  transition:
    max-height 280ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 220ms ease,
    transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

.sv-ai-editor.image-task .sv-ai-image-options {
  max-height: 44px;
  opacity: 1;
  transform: translateY(0);
}

.sv-ai-send {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #f5f2ea;
  color: #101111;
  flex-shrink: 0;
  transition: transform 160ms ease;
}

.sv-ai-send:hover {
  transform: translateY(-1px);
}

.sv-ai-send svg {
  width: 18px;
  height: 18px;
}

.sv-ai-inline-select {
  height: 34px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 8px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  font-size: 0.76rem;
  min-width: 0;
}

.sv-ai-inline-select span {
  color: rgba(245, 242, 234, 0.42);
  flex-shrink: 0;
}

.sv-ai-inline-select select {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: rgba(245, 242, 234, 0.86);
  outline: 0;
  font: inherit;
}

.sv-ai-inline-select option {
  background: #141515;
  color: var(--text);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.sv-admin {
  position: fixed;
  inset: 0;
  /* 高于侧栏(120)与设置菜单(500)，否则弹窗会被盖住像「没反应」 */
  z-index: 2600;
  display: grid;
  place-items: center;
  padding: 18px;
}

.sv-admin-panel {
  position: relative;
  z-index: 1;
  width: min(860px, 100%);
  max-height: min(88dvh, 820px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 28px 22px;
  background: rgba(14, 15, 15, 0.98);
  box-shadow: 0 28px 100px rgba(0, 0, 0, 0.55);
}

.sv-admin-panel--narrow {
  width: min(520px, 100%);
}

.sv-admin-panel--dedupe {
  width: min(640px, 100%);
  max-height: min(860px, calc(100dvh - 48px));
  display: flex;
  flex-direction: column;
}

.sv-admin-field-label {
  display: block;
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.78rem;
}

.sv-admin-select {
  width: 100%;
  margin-bottom: 12px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.sv-dedupe-list {
  flex: 1;
  min-height: 180px;
  max-height: 420px;
  overflow: auto;
  margin: 0 0 16px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.22);
}

.sv-dedupe-progress {
  margin: 0 0 12px;
}

.sv-dedupe-progress.hidden,
.sv-dedupe-confirm.hidden,
.sv-dedupe-result.hidden {
  display: none !important;
}

.sv-dedupe-progress-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.sv-dedupe-progress-fill {
  display: block;
  height: 100%;
  width: 28%;
  border-radius: 999px;
  background: linear-gradient(90deg, #38bdf8, #7dd3fc);
  animation: sv-dedupe-indeterminate 1.1s ease-in-out infinite;
}

.sv-dedupe-progress-fill.is-done {
  width: 100%;
  animation: none;
}

@keyframes sv-dedupe-indeterminate {
  0% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(380%);
  }
}

.sv-dedupe-progress-text,
.sv-dedupe-result-title {
  margin: 8px 0 0;
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.45;
}

.sv-dedupe-result-title {
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
}

.sv-dedupe-confirm {
  margin: 0 0 12px;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.03);
}

.sv-admin-foot--inline {
  justify-content: flex-end;
  margin-top: 10px;
  gap: 8px;
}

.sv-dedupe-item {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line-soft);
}

.sv-dedupe-item:last-child {
  border-bottom: 0;
}

.sv-dedupe-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
}

.sv-dedupe-col {
  min-width: 0;
  text-align: center;
}

.sv-dedupe-thumb {
  width: 100%;
  aspect-ratio: 3 / 4;
  max-height: 120px;
  border-radius: 8px;
  overflow: hidden;
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.sv-dedupe-col--drop .sv-dedupe-thumb {
  border-color: rgba(220, 80, 80, 0.45);
}

.sv-dedupe-col--keep .sv-dedupe-thumb {
  border-color: rgba(90, 180, 120, 0.45);
}

.sv-dedupe-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sv-dedupe-cap {
  margin-top: 6px;
  font-size: 0.72rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sv-dedupe-arrow {
  color: var(--muted);
  font-size: 0.9rem;
}

.sv-admin-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 1.35rem;
  cursor: pointer;
}

.sv-admin-close:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.sv-admin-panel h2 {
  margin: 0 0 8px;
  font-size: 1.35rem;
}

.sv-admin-desc {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.sv-admin-split {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
  gap: 18px;
}

.sv-admin-split h3,
.sv-admin-panel > h3 {
  margin: 0 0 10px;
  font-size: 0.84rem;
  color: var(--muted);
  font-weight: 600;
}

.sv-admin-sub {
  font-weight: 400;
  color: var(--faint);
}

.sv-admin-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.sv-admin-list--scroll {
  max-height: min(46dvh, 420px);
  overflow: auto;
  padding-right: 4px;
}

.sv-admin-list-btn {
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.sv-admin-list-btn.active,
.sv-admin-list-btn:hover {
  border-color: rgba(120, 190, 180, 0.45);
  background: rgba(120, 190, 180, 0.12);
  color: var(--accent);
}

.sv-admin-cat-btn {
  font-size: 0.88rem;
}

.sv-admin-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 38px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.03);
}

.sv-admin-row-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sv-admin-row-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.sv-admin-row--sortable {
  cursor: grab;
  touch-action: none;
  margin-bottom: 6px;
}

.sv-admin-row.is-dragging {
  opacity: 0.45;
  cursor: grabbing;
  position: relative;
  z-index: 2;
}

.sv-admin-row.is-drop-target {
  outline: 1px dashed rgba(215, 247, 42, 0.55);
  outline-offset: 1px;
}

.sv-admin-row--sortable .sv-admin-row-name {
  cursor: grab;
}

.sv-admin-row--sortable .sv-admin-row-actions button {
  cursor: pointer;
}

.sv-admin-group-row {
  margin-bottom: 6px;
}

.sv-admin-group-row.is-active {
  border-color: rgba(215, 247, 42, 0.45);
  background: rgba(215, 247, 42, 0.1);
}

.sv-admin-group-name {
  flex: 1;
  min-width: 0;
  color: var(--text);
  font-size: 0.88rem;
  cursor: grab;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  user-select: none;
}

.sv-admin-group-row.is-active .sv-admin-group-name {
  color: var(--accent);
}

.sv-admin-top-vis {
  min-width: 2.4em;
  font-size: 0.72rem;
  color: var(--muted);
}

.sv-admin-top-vis.is-on {
  color: var(--accent);
}

.sv-admin-empty {
  margin: 0;
  padding: 12px 2px;
  color: var(--muted);
  font-size: 0.82rem;
}

.sv-admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.sv-admin-foot {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}

.sv-admin-panel--auto-tag {
  width: min(540px, 100%);
  max-width: 540px;
  max-height: min(92dvh, 680px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px 24px 18px;
}

.sv-admin-panel--auto-tag .sv-admin-foot {
  margin-top: 2px;
  padding-top: 14px;
  gap: 10px;
}

.sv-auto-tag-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 28px;
}

.sv-admin-panel--auto-tag h2 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
}

.sv-auto-tag-status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

/* 状态只用中性灰，避免一排绿/红抢视线 */
.sv-auto-tag-pill,
.sv-auto-tag-pill.ok,
.sv-auto-tag-pill.warn {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 0.7rem;
  color: rgba(245, 242, 234, 0.55);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.sv-auto-tag-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
}

.sv-auto-tag-top {
  display: grid;
  grid-template-columns: auto 1fr 1fr;
  gap: 12px;
  align-items: end;
}

.sv-auto-tag-features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.sv-auto-tag-groups-hint {
  margin: -4px 0 0;
  font-size: 0.72rem;
  line-height: 1.4;
  color: rgba(245, 242, 234, 0.42);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sv-auto-tag-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sv-auto-tag-tab {
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  margin-bottom: -1px;
  padding: 10px 12px;
  background: transparent;
  color: rgba(245, 242, 234, 0.45);
  font-size: 0.86rem;
  cursor: pointer;
}

.sv-auto-tag-tab:hover {
  color: rgba(245, 242, 234, 0.75);
}

.sv-auto-tag-tab.is-active {
  background: transparent;
  color: var(--text);
  border-bottom-color: rgba(245, 242, 234, 0.72);
}

.sv-auto-tag-tab-panels {
  min-height: 0;
}

.sv-auto-tag-tab-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 0 0;
  border-radius: 0;
  background: transparent;
  border: 0;
}

.sv-auto-tag-tab-panel.hidden {
  display: none;
}

.sv-auto-tag-channel-status,
.sv-auto-tag-channel-status.is-ok,
.sv-auto-tag-channel-status.is-warn {
  font-size: 0.76rem;
  color: rgba(245, 242, 234, 0.5);
}

.sv-auto-tag-fields-row {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr 0.7fr;
  gap: 12px;
}

.sv-auto-tag-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.sv-auto-tag-field--inline {
  gap: 6px;
}

.sv-auto-tag-field > span {
  font-size: 0.7rem;
  color: rgba(245, 242, 234, 0.45);
}

.sv-auto-tag-field input,
.sv-auto-tag-field select {
  min-height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 0 10px;
  background: rgba(0, 0, 0, 0.22);
  color: var(--text);
  font-size: 0.82rem;
}

.sv-auto-tag-field input:focus,
.sv-auto-tag-field select:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.22);
}

.sv-auto-tag-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: rgba(245, 242, 234, 0.82);
  white-space: nowrap;
}

.sv-auto-tag-check--muted {
  color: rgba(245, 242, 234, 0.5);
}

.sv-auto-tag-check--compact {
  font-size: 0.78rem;
  color: rgba(245, 242, 234, 0.55);
}

.sv-auto-tag-mini {
  margin: 0;
  font-size: 0.7rem;
  line-height: 1.45;
  color: rgba(245, 242, 234, 0.4);
}

.sv-auto-tag-mini code {
  font-size: 0.68rem;
  color: rgba(245, 242, 234, 0.55);
}

.sv-auto-tag-test {
  margin-top: 0;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sv-auto-tag-test-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  align-items: center;
  margin: 0;
}

.sv-auto-tag-test-row input[type="text"] {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 0 10px;
  background: rgba(0, 0, 0, 0.22);
  color: var(--text);
  font-size: 0.8rem;
}

.sv-auto-tag-test-result {
  margin: 10px 0 0;
  padding: 10px 12px;
  max-height: 80px;
  overflow: auto;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.72rem;
  line-height: 1.45;
  white-space: pre-wrap;
  color: rgba(245, 242, 234, 0.5);
}

.sv-auto-tag-test-result.hidden {
  display: none;
}

@media (max-width: 560px) {
  .sv-auto-tag-top {
    grid-template-columns: 1fr 1fr;
  }
  .sv-auto-tag-top .sv-auto-tag-check {
    grid-column: 1 / -1;
  }
  .sv-auto-tag-fields-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .sv-admin-split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .sv-app {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .sv-categories {
    display: none;
  }

  .sv-app-header {
    grid-template-columns: 1fr;
  }

  .sv-image-search-status {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .sv-image-search-status button {
    grid-column: 2;
    justify-self: start;
  }

  .sv-header-actions {
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .sv-detail:not(.sv-detail--pin-page) .sv-detail-scroll {
    width: min(100%, calc(100vw - 24px));
  }

  .sv-detail-panel {
    grid-template-columns: 1fr;
    height: auto;
    max-height: min(92dvh, 900px);
    overflow: auto;
  }

  .sv-detail.sv-detail--pin-page .sv-pin-top {
    grid-template-columns: 1fr;
  }

  .sv-detail.sv-detail--pin-page .sv-detail-panel {
    height: auto;
    max-height: none;
    overflow: visible;
    grid-template-columns: 1fr;
  }

  .sv-detail.sv-detail--pin-page .sv-related-rail {
    max-height: none;
    display: grid;
  }

  .sv-detail.sv-detail--pin-page .sv-related-rail-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }

  .sv-detail-image {
    min-height: 48dvh;
    height: auto;
    max-height: 70dvh;
  }

  .sv-detail-side {
    border-left: 0;
    border-top: 1px solid var(--line-soft);
  }

  .sv-related-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
  }
}

@media (max-width: 640px) {
  .sv-hero h1 {
    font-size: clamp(4rem, 22vw, 7rem);
  }

  .sv-hero-foot {
    display: none;
  }

  .sv-app {
    grid-template-columns: 1fr;
  }

  .sv-rail,
  .sv-rail-mount {
    position: fixed;
    inset: auto 12px 12px;
    z-index: 10;
    width: auto;
    height: 58px;
    border: 1px solid var(--line);
    border-radius: 12px;
    flex-direction: row;
    justify-content: center;
    padding: 0 10px;
  }

  .sv-rail-mount > .app-rail {
    flex-direction: row;
    padding: 0;
    gap: 0;
  }

  .sv-rail-mount .app-rail-main,
  .sv-rail-mount .app-rail-bottom,
  .sv-rail-mount .sv-rail-footer {
    flex-direction: row;
    display: flex;
    margin-top: 0;
    gap: 8px;
  }

  .sv-rail-brand,
  .sv-rail-bottom,
  .sv-rail-mount .app-rail-brand,
  .sv-rail-mount .app-rail-bottom,
  .sv-rail-mount .sv-rail-footer,
  .sv-rail-mount .app-rail-spacer {
    display: none;
  }

  .sv-rail-nav,
  .sv-rail-mount .app-rail-main {
    display: flex;
    margin: 0;
  }

  .sv-workspace {
    padding-bottom: 92px;
  }
}

.sv-upload-progress {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);
}

.sv-upload-progress.hidden {
  display: none !important;
}

.sv-upload-progress-card {
  width: min(420px, calc(100vw - 32px));
  padding: 20px 22px;
  border-radius: 14px;
  border: 1px solid var(--line-soft, rgba(255, 255, 255, 0.12));
  background: rgba(18, 22, 28, 0.96);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
}

.sv-upload-progress-title {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text, #f5f7fa);
}

.sv-upload-progress-text {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-muted, rgba(255, 255, 255, 0.72));
}

.sv-upload-progress .sv-dedupe-progress-fill {
  animation: none;
  width: 0%;
  transition: width 0.25s ease;
}

.sv-upload-progress .sv-dedupe-progress-fill.is-indeterminate {
  width: 32%;
  animation: sv-dedupe-indeterminate 1.1s ease-in-out infinite;
}

.sv-admin-panel--upload-dup {
  width: min(520px, calc(100vw - 28px));
  max-height: min(78vh, 720px);
  display: flex;
  flex-direction: column;
}

.sv-upload-dup-list {
  flex: 1;
  min-height: 120px;
  max-height: 42vh;
  overflow: auto;
  margin: 0 0 16px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line-soft, rgba(255, 255, 255, 0.12));
  background: rgba(0, 0, 0, 0.22);
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-muted, rgba(255, 255, 255, 0.78));
  white-space: pre-wrap;
}

.sv-admin-foot--upload-dup {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

/* ??????????? / ????? */
.sv-card--collection .sv-card-media {
  position: relative;
}
.sv-card-collection-title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 12px 10px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  pointer-events: none;
}
.sv-collection-update-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  padding: 2px 8px;
  border-radius: 4px;
  background: #c45c26;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.sv-card-collection-meta {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 2;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}
.sv-card--collection .sv-card-collection-meta {
  bottom: auto;
  top: 8px;
  left: 8px;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.45);
  text-shadow: none;
}
.sv-collection-page {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 4px 4px 40px;
  min-height: 40vh;
}
.sv-collection-page.hidden {
  display: none !important;
}
body.sv-collection-view .sv-color-row {
  display: none !important;
}
body.sv-collection-view #galleryScrollEnd {
  display: none !important;
}
.sv-collection-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  padding: 6px 2px 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}
.sv-collection-back,
.sv-collection-action-btn {
  appearance: none;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(245, 242, 234, 0.92);
  border-radius: 999px;
  min-height: 36px;
  padding: 0 14px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}
.sv-collection-back svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.sv-collection-back svg path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sv-collection-back:hover,
.sv-collection-action-btn.ghost:hover {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.sv-collection-back:active,
.sv-collection-action-btn:active {
  transform: translateY(1px) scale(0.98);
}
.sv-collection-action-btn.primary {
  background: rgba(245, 242, 234, 0.94);
  border-color: rgba(245, 242, 234, 0.94);
  color: #121212;
  font-weight: 700;
}
.sv-collection-action-btn.primary:hover {
  background: #fff;
  border-color: #fff;
}
.sv-collection-action-btn.ghost {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(245, 242, 234, 0.88);
}
.sv-collection-action-btn.is-following {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.14);
  color: rgba(245, 242, 234, 0.78);
}
.sv-collection-action-btn.hidden {
  display: none !important;
}
.sv-collection-heading {
  flex: 1;
  min-width: 160px;
}
.sv-collection-kicker {
  margin: 0 0 4px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: none;
  color: var(--text-muted, rgba(255, 255, 255, 0.55));
}
.sv-collection-heading h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.sv-collection-meta {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--text-muted, rgba(255, 255, 255, 0.65));
}
.sv-collection-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-left: auto;
}
.sv-collection-more {
  display: flex;
  justify-content: center;
  padding: 8px 0 4px;
}
.sv-collection-more.hidden {
  display: none !important;
}
.sv-collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 14px;
}
.sv-collection-work-card {
  position: relative;
}
.sv-collection-work-card .sv-card-media {
  position: relative;
  overflow: hidden;
}
.sv-collection-work-card .sv-collection-work-metrics {
  position: absolute;
  left: 8px;
  bottom: 8px;
  right: auto;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.01em;
  pointer-events: none;
  backdrop-filter: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.75), 0 0 6px rgba(0, 0, 0, 0.45);
}
.sv-collection-work-metrics .sv-xhs-metric {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.sv-collection-work-metrics .sv-xhs-metric svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}
.sv-collection-work-metrics .sv-xhs-metric svg path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sv-collection-work-metrics .sv-xhs-metric em {
  font-style: normal;
  font-size: 11px;
  line-height: 1;
}
.sv-collection-work-modal {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sv-collection-work-modal.hidden {
  display: none !important;
}
.sv-collection-work-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
}
.sv-collection-work-dialog {
  position: relative;
  z-index: 1;
  max-width: min(920px, 88vw);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.sv-collection-work-stage {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  max-height: 78vh;
}
.sv-collection-work-dialog img,
.sv-collection-work-stage img {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 8px;
  background: #111;
  display: block;
}
.sv-collection-work-close {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  z-index: 2;
}
.sv-collection-work-stage .sv-collection-work-toolbar {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  pointer-events: none;
  min-height: 38px;
}
.sv-collection-work-xhs-stats {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  flex-wrap: wrap;
  color: #fff;
  font-size: 13px;
  min-width: 0;
  flex: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.75), 0 0 8px rgba(0, 0, 0, 0.4);
  pointer-events: none;
}
.sv-collection-work-xhs-stats.is-empty {
  visibility: hidden;
}
.sv-collection-work-xhs-stats .sv-collection-work-metrics {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  position: static;
  background: transparent;
  padding: 0;
  text-shadow: inherit;
}
.sv-collection-work-xhs-stats .sv-xhs-metric svg {
  width: 14px;
  height: 14px;
}
.sv-collection-work-xhs-stats .sv-xhs-metric em {
  font-size: 13px;
}
.sv-collection-work-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-shrink: 0;
  pointer-events: auto;
}
.sv-collection-work-icon-btn {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  padding: 0;
  background: rgba(245, 242, 234, 0.94);
  color: #101111;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
}
.sv-collection-work-icon-btn svg {
  width: 16px;
  height: 16px;
}
.sv-collection-work-icon-btn svg path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sv-collection-work-icon-btn#svCollectionWorkLike svg path {
  stroke-width: 1.6;
}
.sv-collection-work-icon-btn.is-liked {
  color: #d34a4a;
}
.sv-collection-work-icon-btn.is-liked svg path {
  fill: currentColor;
  stroke: currentColor;
}
.sv-collection-work-icon-btn.hidden {
  display: none !important;
}
.sv-collection-work-icon-btn:hover {
  background: #fff;
}
.sv-collection-work-counter {
  margin: 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
  white-space: nowrap;
  text-align: center;
}
.sv-collection-work-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.sv-collection-work-nav:hover {
  background: rgba(30, 41, 59, 0.9);
}
.sv-collection-work-nav.prev {
  left: max(12px, calc(50% - min(460px, 44vw) - 64px));
}
.sv-collection-work-nav.next {
  right: max(12px, calc(50% - min(460px, 44vw) - 64px));
}
.sv-collection-work-nav.is-disabled {
  opacity: 0.28;
  pointer-events: none;
}
@media (max-width: 720px) {
  .sv-collection-work-nav.prev {
    left: 8px;
  }
  .sv-collection-work-nav.next {
    right: 8px;
  }
  .sv-collection-work-nav {
    width: 40px;
    height: 40px;
    font-size: 24px;
  }
}

/* ???? ???????? ???? */

/* Onboarding tour */
.sv-onboarding-spotlight {
  position: relative;
  z-index: 1150 !important;
  box-shadow: 0 0 0 2px rgba(250, 250, 249, 0.92), 0 0 0 6px rgba(250, 250, 249, 0.16) !important;
  border-radius: 10px;
}

.sv-onboarding-panel {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1180;
  width: min(320px, calc(100vw - 28px));
  max-height: none;
  overflow: visible;
  padding: 0.85rem 0.9rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background:
    linear-gradient(165deg, rgba(28, 28, 27, 0.98) 0%, rgba(12, 12, 12, 0.98) 100%);
  backdrop-filter: blur(18px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 22px 48px rgba(0, 0, 0, 0.55);
  color: var(--text, #f5f5f4);
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.sv-onboarding-panel::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.sv-onboarding-panel.hidden {
  display: none;
}

.sv-onboarding-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.2rem;
}

.sv-onboarding-kicker {
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(168, 162, 158, 0.9);
}

.sv-onboarding-head strong {
  display: block;
  margin-top: 0.12rem;
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.sv-onboarding-x {
  border: none;
  background: transparent;
  color: rgba(168, 162, 158, 0.9);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.15rem;
}

.sv-onboarding-lead {
  margin: 0 0 0.7rem;
  font-size: 0.78rem;
  line-height: 1.35;
  color: rgba(214, 211, 209, 0.78);
}

.sv-onboarding-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.sv-onboarding-step {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.55rem;
  align-items: start;
  padding: 0.55rem 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.sv-onboarding-step:hover {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
}

.sv-onboarding-step.is-settled {
  opacity: 0.55;
}

.sv-onboarding-idx {
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  color: rgba(250, 250, 249, 0.88);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.sv-onboarding-step.is-settled .sv-onboarding-idx {
  color: #86efac;
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.18);
}

.sv-onboarding-step-body {
  min-width: 0;
}

.sv-onboarding-step-top {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
  margin-bottom: 0.4rem;
}

.sv-onboarding-step-top strong {
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.sv-onboarding-hint {
  font-size: 0.72rem;
  line-height: 1.3;
  color: rgba(168, 162, 158, 0.95);
}

.sv-onboarding-step-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.sv-onboarding-act,
.sv-onboarding-skip {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 0.22rem 0.65rem;
  font-size: 0.72rem;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text, #f5f5f4);
}

.sv-onboarding-act:hover {
  background: rgba(250, 250, 249, 0.92);
  color: #0c0c0c;
  border-color: transparent;
}

.sv-onboarding-skip {
  background: transparent;
  color: rgba(168, 162, 158, 0.95);
}

.sv-onboarding-act:disabled,
.sv-onboarding-skip:disabled {
  opacity: 0.4;
  cursor: default;
  pointer-events: none;
}

.sv-onboarding-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
  margin-top: 0.7rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.sv-onboarding-link {
  border: none;
  background: transparent;
  color: rgba(168, 162, 158, 0.95);
  font-size: 0.78rem;
  cursor: pointer;
  padding: 0.2rem 0.35rem;
}

.sv-onboarding-link:hover {
  color: #f5f5f4;
}

.sv-gallery-empty {
  grid-column: 1 / -1;
  min-height: 42vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.55rem;
  padding: 2rem 1rem;
  color: var(--muted, #d6d3d1);
}

.sv-gallery-empty p {
  margin: 0;
  font-size: 1.05rem;
  color: var(--text, #f5f5f4);
}

.sv-gallery-empty-sub {
  font-size: 0.88rem !important;
  color: var(--faint, #a8a29e) !important;
  max-width: 28rem;
}

.sv-gallery-empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.65rem;
  justify-content: center;
}

@media (max-width: 720px) {
  .sv-onboarding-panel {
    right: 12px;
    left: 12px;
    bottom: 84px;
    width: auto;
  }
}
