/**
 * Storyverse Design System
 * Based on storyverse.pen prototype
 */
@import url('../../css/storyverse-reader-protection.css');
/* Google Fonts는 head.jsp의 <link> 태그로 로드 (preconnect + 병렬 로딩) */

:root {
  /* Colors */
  --accent-amber: #FFB547;
  --accent-coral: #E85A4F;
  --accent-green: #32D583;
  --accent-indigo: #6366F1;
  --accent-indigo-dark: #4F46E5;
  --bg-card: #16161A;
  --bg-elevated: #1A1A1E;
  --bg-input: #222228;
  --bg-primary: #0B0B0E;
  --border-strong: #3A3A40;
  --border-subtle: #2A2A2E;
  --text-muted: #8E8E93;
  --text-primary: #FAFAF9;
  --text-secondary: #6B6B70;
  --text-tertiary: #4A4A50;
  --white: #FFFFFF;
  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-pill: 31px;
  /* Spacing */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 12px;
  --spacing-lg: 16px;
  --spacing-xl: 24px;
  --spacing-2xl: 32px;
  /* Layout */
  --app-width: 402px;
  --header-height: 56px;
  --tabbar-height: 62px;
  /* Breakpoints (for reference) */
  --bp-mobile: 0;
  --bp-tablet: 768px;
  --bp-desktop: 1024px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
  font-family: 'Noto Sans KR', 'DM Sans', -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif,
               'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.sv-app {
  max-width: var(--app-width);
  margin: 0 auto;
  min-height: 100vh;    /* fallback */
  min-height: 100dvh;   /* iOS Safari 15.4+ 다이나믹 뷰포트 (주소창 포함 안 함) */
  background: var(--bg-primary);
  position: relative;
  overflow-x: hidden;
}
.sv-app::before,
.sv-app::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.sv-app::before {
  background:
    radial-gradient(circle at 12% 10%, rgba(92, 111, 255, 0.18), transparent 50%),
    radial-gradient(circle at 88% 18%, rgba(46, 213, 158, 0.14), transparent 52%),
    radial-gradient(circle at 30% 80%, rgba(255, 183, 97, 0.12), transparent 48%);
}
.sv-app::after {
  background: radial-gradient(520px circle at var(--sv-pointer-x, 50%) var(--sv-pointer-y, 30%), rgba(99, 102, 241, 0.22), transparent 60%);
}
.sv-app.sv-app--pc::before { opacity: 1; }
.sv-app.sv-pointer-glow::after { opacity: 1; }
.sv-content,
.sv-tabbar,
.sv-header {
  position: relative;
  z-index: 1;
}

.sv-header {
  height: var(--header-height);
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-primary);
}
.sv-header__logo { font-family: 'Fraunces', 'Noto Sans KR', sans-serif; font-size: 22px; font-weight: 600; }
.sv-header__right { display: flex; gap: var(--spacing-lg); align-items: center; }
.sv-header--pc-enhanced {
  position: sticky;
  top: 0;
  z-index: 48;
  min-height: var(--header-height);
  height: auto;
  padding-top: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(11, 11, 14, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.sv-header--pc-enhanced.is-scrolled {
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.28);
}
.sv-header__brand {
  display: inline-flex;
  flex-direction: column;
  gap: 1px;
  text-decoration: none;
  color: var(--text-primary);
}
.sv-header__brand-main {
  font-family: 'Fraunces', 'Noto Sans KR', sans-serif;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.2px;
  line-height: 1.1;
}
.sv-header__brand-sub {
  color: #8c95b7;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
.sv-header__chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid #3b4266;
  background: rgba(26, 31, 53, 0.78);
  color: #d8defd;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}
.sv-header__brand-main,
.sv-header__brand-sub {
  white-space: nowrap;
}
.sv-header__chip:hover {
  border-color: #5e68a1;
  color: #f0f3ff;
}
.sv-nav-menu {
  position: relative;
  display: inline-flex;
}
.sv-header__chip--collapsible {
  display: none;
}
.sv-nav-menu__panel {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  border: 1px solid #313859;
  border-radius: 10px;
  background: rgba(14, 18, 31, 0.96);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  z-index: 64;
}
.sv-nav-menu.is-open .sv-nav-menu__panel {
  display: block;
}
.sv-nav-menu__item {
  display: flex;
  align-items: center;
  width: 100%;
  height: 40px;
  padding: 0 14px;
  border: 0;
  background: transparent;
  color: #e8ecff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
}
.sv-nav-menu__item + .sv-nav-menu__item {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.sv-nav-menu__item:hover {
  background: rgba(102, 113, 173, 0.24);
}
.sv-icon-btn--nav {
  display: inline-flex;
}

.sv-account-menu {
  position: relative;
}
.sv-account-menu__panel {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 132px;
  border: 1px solid #313859;
  border-radius: 10px;
  background: rgba(14, 18, 31, 0.96);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  z-index: 64;
}
.sv-account-menu.is-open .sv-account-menu__panel {
  display: block;
}
.sv-account-menu__item {
  display: flex;
  align-items: center;
  width: 100%;
  height: 36px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: #e8ecff;
  text-decoration: none;
  font-size: 12px;
  text-align: left;
  cursor: pointer;
}
.sv-account-menu__item:hover {
  background: rgba(102, 113, 173, 0.24);
}
.sv-account-menu__item--btn {
  font-family: inherit;
}
.sv-icon-btn {
  position: relative;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  padding: 4px;
}
.sv-icon-btn:hover { color: var(--text-secondary); }
.sv-icon-btn.is-current {
  color: #aeb6ff;
}
.sv-icon-btn svg,
.sv-detail-topbar__icon svg {
  display: block;
  flex-shrink: 0;
}
.sv-topbar .sv-icon-btn svg {
  width: 22px;
  height: 22px;
}
.sv-icon-btn__dot {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #ff6b6b;
  box-shadow: 0 0 0 2px rgba(11, 11, 14, 0.9);
}

.sv-tabbar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  width: 100%;
  max-width: var(--app-width);
  min-height: var(--tabbar-height);
  padding: 10px 14px;
  padding-bottom: max(8px, env(safe-area-inset-bottom)); /* iOS 홈 인디케이터 대응 */
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: rgba(15, 16, 21, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 0 0 0 0;
  box-shadow: 0 -10px 18px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.sv-tabbar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  min-height: 46px;
  min-width: 52px;
  border-radius: 14px;
  color: var(--text-tertiary);
  text-decoration: none;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.sv-tabbar a.active {
  color: var(--text-primary);
  font-weight: 700;
  background: rgba(124, 144, 255, 0.2);
  transform: translateY(-1px);
}
.sv-tabbar a:hover { color: var(--text-secondary); }

/* 저작권 푸터 (site-legal-footer.jsp) — 고정 sv-tabbar 에 가리지 않도록 */
.sv-site-legal {
  text-align: center;
  font-size: 10px;
  line-height: 1.5;
  color: var(--text-secondary);
  opacity: 0.88;
  max-width: 640px;
  margin: 0 auto;
  letter-spacing: 0.01em;
  padding: 10px 14px 14px;
}
.sv-site-legal__reg {
  font-size: 6px;
  line-height: 0;
  vertical-align: super;
}
.sv-site-legal__sub {
  display: block;
  margin-top: 5px;
  font-size: 9px;
  opacity: 0.95;
}
body:has(.sv-tabbar) .sv-site-legal {
  padding-bottom: calc(var(--tabbar-height) + env(safe-area-inset-bottom, 0px) + 14px);
}

.sv-content { padding: 20px; padding-bottom: calc(var(--tabbar-height) + 20px + env(safe-area-inset-bottom, 0)); }

.sv-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  background: var(--accent-indigo);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  text-decoration: none;
}
.sv-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  background: var(--bg-elevated);
  color: var(--text-primary);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  cursor: pointer;
  text-decoration: none;
}

.sv-badge {
  display: inline-flex;
  padding: 4px 10px;
  background: rgba(99, 102, 241, 0.2);
  color: var(--accent-indigo);
  font-size: 11px;
  font-weight: 600;
  border-radius: var(--radius-sm);
}

.sv-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--spacing-md);
}
.sv-section-header__title { font-family: 'Fraunces', 'Noto Sans KR', sans-serif; font-size: 20px; font-weight: 600; }
.sv-section-header__more { color: var(--text-secondary); font-size: 13px; font-weight: 500; }

.sv-card-world {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.sv-card-world__cover { height: 120px; background: var(--bg-elevated); }
.sv-noimg {
  background-color: var(--bg-elevated);
  background-image: url('../images/no-image.svg');
  background-position: center;
  background-repeat: no-repeat;
  background-size: 40%;
}

/* Thumbnail Generating State */
.sv-thumb-generating {
  background-color: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.sv-thumb-generating::after {
  content: '생성 중...';
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  z-index: 1;
}
.sv-thumb-generating::before {
  content: '';
  position: absolute;
  top: 0; left: -100%; right: 0; bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  animation: sv-loading-shimmer 1.5s infinite linear;
}

@keyframes sv-loading-shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Thumbnail Failed State */
.sv-thumb-failed {
  background-color: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
}
.sv-thumb-failed::after {
  content: '생성 실패';
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
}
.sv-cover-section.sv-noimg { background-size: 30%; }
.sv-noimg-avatar { background-size: 50%; }
.sv-card-world__info { padding: 16px; }
.sv-card-world__title { font-weight: 600; margin-bottom: 8px; }
.sv-card-world__meta { color: var(--text-secondary); font-size: 12px; }

.sv-new-story-world-select {
  position: relative;
  border: 2px solid var(--border-subtle, #2a2d3f);
  border-radius: var(--radius-lg, 12px);
  background: var(--bg-card);
  transition: border-color 0.2s;
}
.sv-new-story-world-select:focus-within {
  border-color: var(--accent-indigo);
}
.sv-new-story-world-select__input {
  width: 100%;
  border: none;
  background: transparent;
  color: var(--text-primary);
  padding: 12px 14px;
  font-size: 15px;
  outline: none;
}
.sv-new-story-world-select__input::placeholder {
  color: var(--text-tertiary, #7f86a3);
}
.sv-new-story-world-select__list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  max-height: 260px;
  overflow-y: auto;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  z-index: 100;
}
.sv-new-story-world-select__list[aria-hidden="true"] {
  display: none;
}
.sv-new-story-world-select__item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 14px;
  cursor: pointer;
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.15s;
}
.sv-new-story-world-select__item:last-child {
  border-bottom: none;
}
.sv-new-story-world-select__item:hover {
  background: var(--bg-elevated);
}
.sv-new-story-world-select__item strong {
  font-size: 15px;
  color: var(--text-primary);
}
.sv-new-story-world-select__item span {
  font-size: 12px;
  color: var(--text-secondary);
}
.sv-new-story-world-select__item.sv-new-story-world-select__item--empty-world {
  background: rgba(110,124,255,0.08);
}
.sv-new-story-world-select__item.sv-new-story-world-select__empty {
  cursor: default;
  color: var(--text-tertiary);
  font-size: 14px;
}
.sv-new-story-world-select__item.sv-new-story-world-select__empty:hover {
  background: transparent;
}

.sv-new-story-topbar {
  justify-content: flex-start;
  gap: 8px;
  border-bottom: 1px solid var(--border-subtle);
}
.sv-new-story-topbar__back {
  background: transparent;
  border: 0;
  color: var(--text-primary);
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.sv-new-story-topbar__title {
  color: var(--text-primary);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.3px;
}
.sv-new-story-page {
  padding-top: 16px;
}
.sv-new-story-step {
  margin-bottom: 20px;
}
.sv-new-story-step__heading {
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 700;
}
.sv-new-story-step__num {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--bg-elevated, #2a2d3f);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 700;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  flex-shrink: 0;
}
.sv-new-story-step[data-sv-step-state="active"] .sv-new-story-step__num {
  background: var(--accent-indigo);
  color: #fff;
  box-shadow: 0 0 0 3px rgba(110, 124, 255, 0.18);
}
.sv-new-story-step[data-sv-step-state="done"] .sv-new-story-step__num {
  background: #24d691;
  color: #0c1520;
  font-size: 0;
}
.sv-new-story-step[data-sv-step-state="done"] .sv-new-story-step__num::after {
  content: '\2713';
  font-size: 14px;
  font-weight: 800;
}

.sv-new-story-step__label {
  flex: 1 1 auto;
  min-width: 0;
}
.sv-new-story-step__badge {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  letter-spacing: 0.2px;
}
.sv-new-story-step__badge--required {
  background: rgba(255, 95, 104, 0.12);
  color: #ff8a90;
  border: 1px solid rgba(255, 95, 104, 0.35);
}
.sv-new-story-step__badge--optional {
  background: rgba(110, 124, 255, 0.12);
  color: #8d93ff;
  border: 1px solid rgba(110, 124, 255, 0.3);
}
.sv-new-story-form {
  margin: 0;
}
.sv-new-story-textarea {
  width: 100%;
  min-height: 120px;
  resize: none;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: var(--bg-input);
  color: var(--text-primary);
  padding: 14px;
  font-size: 15px;
  line-height: 1.6;
  outline: none;
}
.sv-new-story-textarea:focus {
  border-color: var(--accent-indigo);
}
.sv-new-story-textarea.is-guide {
  color: var(--text-secondary);
}
.sv-new-story-count {
  margin-top: 6px;
  text-align: right;
  color: var(--text-secondary);
  font-size: 12px;
}
.sv-new-story-step__desc {
  margin: 0 0 10px;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.5;
}
.sv-new-story-title-field {
  display: flex;
  flex-direction: column;
}
.sv-new-story-title-field__input {
  width: 100%;
  padding: 14px;
  font-size: 15px;
  line-height: 1.4;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: var(--bg-input);
  color: var(--text-primary);
  outline: none;
  font-family: inherit;
}
.sv-new-story-title-field__input:focus {
  border-color: var(--accent-indigo);
}
.sv-new-story-title-field__input::placeholder {
  color: var(--text-muted, var(--text-secondary));
}
.sv-new-story-title-field__count {
  margin-top: 6px;
}
.sv-new-story-outline {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  padding: 14px;
}
.sv-new-story-outline__status {
  margin: 0 0 10px;
  color: var(--text-secondary);
  font-size: 14px;
}
.sv-new-story-outline__meta {
  margin: -4px 0 10px;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.5;
}
.sv-new-story-outline__phase-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 10px;
}
.sv-new-story-outline__phase-chip {
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  cursor: pointer;
}
.sv-new-story-outline__phase-chip.is-selected {
  background: rgba(110,124,255,0.14);
  border-color: rgba(110,124,255,0.4);
  color: var(--text-primary);
}
.sv-new-story-outline__generate-btn {
  width: 100%;
  margin: 0 0 10px;
  min-height: 46px;
  border: 1px solid rgba(110, 124, 255, 0.42);
  background: linear-gradient(180deg, rgba(110, 124, 255, 0.24) 0%, rgba(110, 124, 255, 0.14) 100%);
  color: var(--text-primary);
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(72, 82, 212, 0.18);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}
.sv-new-story-outline__generate-btn:hover:not([disabled]),
.sv-new-story-outline__generate-btn:focus-visible:not([disabled]) {
  border-color: rgba(110, 124, 255, 0.62);
  background: linear-gradient(180deg, rgba(110, 124, 255, 0.32) 0%, rgba(110, 124, 255, 0.2) 100%);
  box-shadow: 0 12px 24px rgba(72, 82, 212, 0.24);
  transform: translateY(-1px);
}
.sv-new-story-outline__generate-btn:active:not([disabled]) {
  transform: translateY(0);
  box-shadow: 0 6px 12px rgba(72, 82, 212, 0.18);
}
.sv-new-story-outline__generate-btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}
.sv-new-story-outline__actions {
  display: flex;
  gap: 8px;
  margin: 0 0 10px;
}
.sv-new-story-outline__action-btn {
  flex: 1 1 0;
  min-height: 38px;
  padding: 10px 14px;
  font-size: 13px;
}
.sv-new-story-outline[data-outline-ready] .sv-new-story-outline__status {
  display: none;
}
.sv-new-story-outline[data-outline-ready] .sv-new-story-outline__meta {
  display: none;
}
.sv-new-story-outline[data-outline-ready] .sv-new-story-outline__actions {
  display: none;
}
.sv-new-story-outline__title {
  margin: 0 0 10px;
  color: var(--accent-indigo);
  font-size: 14px;
  font-weight: 700;
}
.sv-new-story-outline__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.sv-new-story-outline__item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.02);
  padding: 9px 10px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  border: 1px solid transparent;
}
.sv-new-story-outline__item:hover {
  background: rgba(255,255,255,0.05);
}
.sv-new-story-outline__item:has(.sv-outline-typing--waiting),
.sv-new-story-outline__item.sv-outline-empty {
  cursor: not-allowed;
  opacity: 0.6;
}
.sv-new-story-outline__item:has(.sv-outline-typing--waiting):hover,
.sv-new-story-outline__item.sv-outline-empty:hover {
  background: rgba(255,255,255,0.02);
}
.sv-new-story-outline__item.is-selected {
  background: rgba(110, 124, 255, 0.12);
  border-color: rgba(110, 124, 255, 0.4);
}
.sv-new-story-outline__item.is-selected .sv-new-story-outline__check {
  background: var(--accent-indigo, #6e7cff);
  border-color: var(--accent-indigo, #6e7cff);
}
.sv-new-story-outline__item.is-selected .sv-new-story-outline__check::after {
  content: '\2713';
  display: block;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.sv-new-story-outline__check {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-left: auto;
  border: 1.5px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sv-new-story-outline__dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  margin-top: 6px;
  flex-shrink: 0;
}
.sv-new-story-outline__dot--green { background: #24d691; }
.sv-new-story-outline__dot--blue { background: #6e7cff; }
.sv-new-story-outline__dot--amber { background: #ffba47; }
.sv-new-story-outline__dot--red { background: #ff5f68; }
.sv-new-story-outline__dot--white { background: #e8ebf9; }
.sv-new-story-outline__content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sv-new-story-outline__content strong {
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 700;
}
.sv-new-story-outline__content span {
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.45;
}
.sv-outline-typing--waiting {
  color: var(--text-muted);
  font-style: italic;
}
.sv-outline-typing--waiting::after {
  content: '';
  display: inline-block;
  width: 4px;
  height: 1em;
  margin-left: 2px;
  background: currentColor;
  vertical-align: -0.2em;
  animation: sv-outline-cursor 0.8s ease-in-out infinite;
}
@keyframes sv-outline-cursor {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}
.sv-new-story-actions {
  margin-top: 24px;
}
.sv-new-story-actions__btn {
  width: 100%;
  justify-content: center;
}

.sv-new-story-actions__btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* --- New story v2 improvements (pcweb) --- */

.sv-new-story-page {
  padding-bottom: 140px;
}

.sv-new-story-world-select__input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.sv-new-story-world-select__clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.sv-new-story-world-select__clear:hover {
  background: rgba(255, 255, 255, 0.16);
}
.sv-new-story-world-select__clear[hidden] {
  display: none;
}

.sv-new-story-world-card {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-lg, 14px);
  border: 1px solid rgba(110, 124, 255, 0.4);
  background: linear-gradient(135deg, rgba(110, 124, 255, 0.1) 0%, rgba(110, 124, 255, 0.04) 100%);
}
.sv-new-story-world-card[hidden] {
  display: none;
}
.sv-new-story-world-card__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(110, 124, 255, 0.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.sv-new-story-world-card__body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sv-new-story-world-card__title {
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sv-new-story-world-card__meta {
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sv-new-story-world-card__clear {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}
.sv-new-story-world-card__clear:hover {
  background: rgba(255, 255, 255, 0.16);
}

.sv-new-story-count.is-warn {
  color: #ffba47;
}
.sv-new-story-count.is-danger {
  color: #ff5f68;
  font-weight: 700;
}

.sv-new-story-outline {
  position: relative;
}
.sv-new-story-outline__gated-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg, 14px);
  background: rgba(10, 12, 20, 0.72);
  backdrop-filter: blur(2px);
  color: var(--text-secondary);
  font-size: 13px;
  padding: 16px;
  text-align: center;
  pointer-events: auto;
}
.sv-new-story-step[data-sv-step-gated="1"] .sv-new-story-outline {
  opacity: 0.85;
}
.sv-new-story-step[data-sv-step-gated="0"] .sv-new-story-outline__gated-overlay {
  display: none;
}
.sv-new-story-step[data-sv-step-gated="1"] .sv-new-story-outline__phase-chip,
.sv-new-story-step[data-sv-step-gated="1"] .sv-new-story-outline__phase-toggle-all,
.sv-new-story-step[data-sv-step-gated="1"] .sv-new-story-outline__generate-btn,
.sv-new-story-step[data-sv-step-gated="1"] .sv-new-story-outline__action-btn {
  pointer-events: none;
}

.sv-new-story-outline__phase-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 8px;
}
.sv-new-story-outline__phase-hint {
  color: var(--text-secondary);
  font-size: 12px;
}
.sv-new-story-outline__phase-toggle-all {
  border: none;
  background: transparent;
  color: #8d93ff;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 4px;
  cursor: pointer;
}
.sv-new-story-outline__phase-toggle-all:hover {
  text-decoration: underline;
}

.sv-new-story-outline.is-generating .sv-new-story-outline__phase-chip {
  opacity: 0.5;
  cursor: not-allowed;
}

.sv-new-story-outline__helper {
  margin: -4px 0 10px;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.5;
  min-height: 1em;
}
.sv-new-story-outline__helper:empty {
  display: none;
}

.sv-new-story-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  margin: 6px 0 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  font-size: 12px;
}
.sv-new-story-summary__label {
  color: var(--text-secondary);
  font-weight: 700;
  flex-shrink: 0;
}
.sv-new-story-summary__text {
  color: var(--text-primary);
  line-height: 1.4;
}

.sv-new-story-actions-bar {
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 16px 16px;
  background: linear-gradient(180deg, rgba(10, 12, 20, 0) 0%, rgba(10, 12, 20, 0.96) 32%, #0a0c14 100%);
  z-index: 20;
}
.sv-app:has(.sv-tabbar) .sv-new-story-actions-bar {
  bottom: calc(var(--tabbar-height) + env(safe-area-inset-bottom, 0px));
}
.sv-new-story-actions {
  margin-top: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sv-new-story-actions__label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.sv-new-story-actions__spinner {
  display: none;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 999px;
  animation: sv-ns-spin 0.75s linear infinite;
  margin-left: 8px;
}
.sv-new-story-actions__btn.is-loading .sv-new-story-actions__spinner {
  display: inline-block;
}
.sv-new-story-actions__btn.is-loading {
  pointer-events: none;
}
@keyframes sv-ns-spin {
  to { transform: rotate(360deg); }
}
.sv-new-story-actions__helper {
  margin: 0;
  color: var(--text-secondary);
  font-size: 12px;
  text-align: center;
  min-height: 1em;
  transition: color 0.2s;
}
.sv-new-story-actions__helper.is-ready {
  color: #24d691;
}

.sv-card-story {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.sv-card-story__thumb { height: 200px; background-color: var(--bg-elevated); background-image: url('../images/no-image.svg'); background-position: center; background-repeat: no-repeat; background-size: 35%; }
.sv-card-story__info { padding: 12px; }
.sv-card-story--feature,
.sv-world-card.sv-card-story--feature,
.sv-card-world.sv-card-story--feature {
  display: flex;
  flex-direction: column;
  min-width: 0;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(24, 27, 42, 0.96), rgba(14, 16, 25, 0.96));
}
.sv-card-story--home {
  flex: 0 0 220px;
}
.sv-card-story__media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.sv-card-story__media .sv-card-story__thumb {
  height: 230px;
}
.sv-card-story__overlay {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  pointer-events: none;
}
.sv-card-story__overlay span,
.sv-trend-info__meta span {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(8, 10, 18, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #d9ddf5;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  backdrop-filter: blur(8px);
}
.sv-card-story__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}
.sv-card-story__author {
  min-height: 24px;
  margin-top: 8px;
}
.sv-card-story__author .sv-level-chip {
  margin-left: 0;
}
.sv-card-story--compact .sv-card-story__media .sv-card-story__thumb {
  height: 148px;
}
.sv-card-story--compact .sv-card-story__overlay span:nth-child(n+4) {
  display: none;
}

.sv-card-story__new-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 2px 7px;
  background: #e8405a;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.4px;
  border-radius: 4px;
  pointer-events: none;
  z-index: 2;
}

.sv-world-meta-row {
  position: relative;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 13px;
  color: var(--text-muted);
}
.sv-world-sort-btn {
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  cursor: pointer;
}
.sv-world-sort-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 4px;
  min-width: 100px;
  background: var(--surface-raised, #1e2035);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  z-index: 100;
}
.sv-world-sort-dropdown.is-open { display: block; }
.sv-world-sort-opt {
  display: block;
  width: 100%;
  padding: 8px 14px;
  border: 0;
  background: transparent;
  color: var(--text-primary);
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}
.sv-world-sort-opt:hover { background: var(--border-subtle); }

.sv-search-input {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 14px;
}

.sv-topbar {
  height: 48px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sv-topbar--transparent { background: transparent; }

.sv-stats-bar {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 16px 20px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-subtle);
}

.sv-tabnav {
  display: flex;
  align-items: center;
  padding: 0 20px;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-subtle);
}
.sv-tabnav__item {
  padding: 12px 0;
  margin-right: 24px;
  color: var(--text-tertiary);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.sv-tabnav__item.active { color: var(--text-primary); font-weight: 600; border-color: var(--accent-indigo); }

.sv-tabnav--scroll {
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.sv-tabnav--scroll::-webkit-scrollbar { display: none; }
.sv-tabnav--scroll .sv-tabnav__item {
  flex-shrink: 0;
  white-space: nowrap;
}

.sv-genre-filters { display: flex; gap: 8px; padding: 12px 20px; overflow-x: auto; }
.sv-genre-filters::-webkit-scrollbar { display: none; }
.sv-genre-chip {
  padding: 8px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  color: var(--text-secondary);
  font-size: 13px;
  white-space: nowrap;
  cursor: pointer;
}
.sv-genre-chip.active { background: var(--accent-indigo); border-color: var(--accent-indigo); color: var(--white); }

.sv-grid { display: grid; gap: 12px; }
.sv-grid--2 { grid-template-columns: repeat(2, 1fr); }
.sv-grid--1 { grid-template-columns: 1fr; }

.sv-banner-hero-promo {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: linear-gradient(135deg, #6366F1 0%, #4F46E5 50%, #3730A3 100%);
  border-radius: var(--radius-xl);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.2);
}
.sv-banner-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; background: rgba(255,255,255,0.2); border-radius: 8px; color: #fff; font-size: 11px; font-weight: 600; width: fit-content; }
.sv-banner-hero-promo h3 { margin: 0; font-family: 'Fraunces', 'Noto Sans KR', sans-serif; font-size: 24px; font-weight: 600; line-height: 1.3; color: #fff; }
.sv-banner-hero-promo p { margin: 0; font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.8); }
.sv-banner-btn { display: inline-flex; align-items: center; gap: 6px; padding: 12px 24px; background: #fff; color: #4F46E5; font-size: 14px; font-weight: 600; border-radius: 10px; text-decoration: none; width: fit-content; }
.sv-banner-hero-promo--hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(168, 181, 255, 0.22);
  background:
    radial-gradient(circle at 16% 14%, rgba(154, 169, 255, 0.35), transparent 44%),
    radial-gradient(circle at 82% 78%, rgba(62, 214, 175, 0.24), transparent 48%),
    linear-gradient(132deg, #5e66ff 0%, #6c59ff 38%, #3f47c8 68%, #222a8e 100%);
  box-shadow:
    0 14px 36px rgba(65, 73, 196, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.sv-banner-hero-promo--hero.sv-banner-hero-promo--intense {
  box-shadow:
    0 18px 42px rgba(65, 73, 196, 0.44),
    0 0 22px rgba(133, 158, 255, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.sv-banner-hero-promo--hero.sv-banner-hero-promo--intense::before,
.sv-banner-hero-promo--hero.sv-banner-hero-promo--intense::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: -1;
}
.sv-banner-hero-promo--hero.sv-banner-hero-promo--intense::before {
  width: 260px;
  height: 260px;
  right: -90px;
  top: -130px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0));
  animation: sv-banner-glow 5.8s ease-in-out infinite;
}
.sv-banner-hero-promo--hero.sv-banner-hero-promo--intense::after {
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.22) 34%, rgba(255,255,255,0) 56%);
  transform: translateX(-130%);
  animation: sv-banner-shine 4.2s ease-in-out infinite;
}
.sv-banner-hero-promo__fx {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  display: none;
}
.sv-banner-hero-promo--hero.sv-banner-hero-promo--intense .sv-banner-hero-promo__fx { display: block; }
.sv-banner-hero-promo__orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(1px);
  mix-blend-mode: screen;
}
.sv-banner-hero-promo__orb--a {
  width: 180px;
  height: 180px;
  left: -40px;
  bottom: -80px;
  background: radial-gradient(circle, rgba(139, 255, 226, 0.55), rgba(88, 127, 255, 0));
  animation: sv-banner-orb-a 7.6s ease-in-out infinite;
}
.sv-banner-hero-promo__orb--b {
  width: 140px;
  height: 140px;
  right: 10%;
  top: 22%;
  background: radial-gradient(circle, rgba(255, 165, 243, 0.55), rgba(108, 79, 255, 0));
  animation: sv-banner-orb-b 5.8s ease-in-out infinite;
}
.sv-banner-hero-promo__gridline {
  position: absolute;
  inset: 0;
  opacity: 0.25;
  background-image:
    linear-gradient(90deg, rgba(255,255,255,0.12) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,0.1) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.75), transparent 75%);
  animation: sv-banner-grid 12s linear infinite;
}
.sv-banner-hero-promo__scan {
  position: absolute;
  left: 0;
  right: 0;
  top: -28%;
  height: 42%;
  background: linear-gradient(180deg, rgba(180, 198, 255, 0), rgba(180, 198, 255, 0.22), rgba(180, 198, 255, 0));
  mix-blend-mode: screen;
  pointer-events: none;
  display: none;
}
.sv-banner-hero-promo--hero.sv-banner-hero-promo--intense .sv-banner-hero-promo__scan {
  display: block;
  animation: sv-banner-scan 4.6s ease-in-out infinite;
}
.sv-banner-hero-title {
  text-shadow: 0 2px 10px rgba(44, 27, 141, 0.45);
}
.sv-banner-hero-promo--hero.sv-banner-hero-promo--intense .sv-banner-hero-title {
  animation: sv-banner-title-float 4.4s ease-in-out infinite;
}
.sv-banner-hero-promo__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.sv-banner-hero-promo__meta span {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(14, 18, 42, 0.26);
  color: rgba(247, 250, 255, 0.92);
  font-size: 11px;
  font-weight: 600;
  backdrop-filter: blur(2px);
}
.sv-banner-ai-lab {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(214, 224, 255, 0.28);
  background: linear-gradient(135deg, rgba(12, 18, 49, 0.54) 0%, rgba(36, 23, 96, 0.42) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.sv-banner-ai-lab__icons {
  position: relative;
  width: 70px;
  height: 54px;
  flex-shrink: 0;
}
.sv-banner-ai-lab__icon {
  position: absolute;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(227, 236, 255, 0.32);
  background: rgba(14, 20, 52, 0.78);
  color: #f3f7ff;
  font-size: 18px;
  box-shadow: 0 6px 14px rgba(9, 12, 31, 0.32);
}
.sv-banner-ai-lab__icon--book {
  left: 0;
  top: 8px;
  animation: sv-ai-icon-float-a 4.2s ease-in-out infinite;
}
.sv-banner-ai-lab__icon--pen {
  left: 18px;
  top: 0;
  animation: sv-ai-icon-float-b 3.6s ease-in-out infinite;
}
.sv-banner-ai-lab__icon--ai {
  left: 36px;
  top: 10px;
  animation: sv-ai-icon-float-c 4.8s ease-in-out infinite;
}
.sv-banner-ai-lab__body {
  min-width: 0;
  flex: 1;
}
.sv-banner-ai-lab__body strong {
  display: block;
  color: #f5f8ff;
  font-size: 13px;
  letter-spacing: 0.1px;
}
.sv-banner-ai-lab__body p {
  margin: 4px 0 8px;
  color: rgba(233, 239, 255, 0.88);
  font-size: 12px;
  line-height: 1.45;
}
.sv-banner-ai-lab__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.sv-banner-ai-lab__chips span {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(214, 222, 255, 0.35);
  color: #e8eeff;
  font-size: 10px;
  background: rgba(20, 28, 72, 0.55);
}
.sv-banner-hero-promo--hero .sv-banner-btn {
  box-shadow: 0 10px 20px rgba(12, 17, 74, 0.26);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.sv-banner-hero-promo--hero .sv-banner-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 24px rgba(12, 17, 74, 0.34);
}
.sv-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.sv-banner-hero-promo__progress {
  display: none;
  height: 5px;
  border-radius: 999px;
  background: rgba(10, 14, 40, 0.38);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.sv-banner-hero-promo--hero.sv-banner-hero-promo--intense .sv-banner-hero-promo__progress {
  display: block;
}
.sv-banner-hero-promo__progress span {
  display: block;
  height: 100%;
  width: 66%;
  background: linear-gradient(90deg, #72f1c8 0%, #84b6ff 45%, #f5b6ff 100%);
  box-shadow: 0 0 12px rgba(132, 182, 255, 0.8);
  animation: sv-banner-progress 2.8s ease-in-out infinite;
}
.sv-banner-btn--pulse {
  position: relative;
}
.sv-banner-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid rgba(228, 236, 255, 0.5);
  background: rgba(18, 24, 58, 0.46);
  color: #f2f6ff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  backdrop-filter: blur(2px);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.sv-banner-btn-secondary:hover {
  transform: translateY(-1px);
  background: rgba(28, 36, 81, 0.62);
  border-color: rgba(236, 241, 255, 0.72);
}
.sv-banner-hero-promo--hero.sv-banner-hero-promo--intense .sv-banner-btn--pulse::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 12px;
  border: 1px solid rgba(216, 225, 255, 0.45);
  opacity: 0;
  animation: sv-banner-btn-pulse 1.9s ease-out infinite;
}
@keyframes sv-banner-glow {
  0%, 100% { opacity: 0.7; transform: translate3d(0, 0, 0); }
  50% { opacity: 1; transform: translate3d(-10px, 10px, 0); }
}
@keyframes sv-banner-shine {
  0%, 18% { transform: translateX(-130%); }
  38%, 100% { transform: translateX(130%); }
}
@keyframes sv-banner-orb-a {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.8; }
  50% { transform: translate3d(12px, -10px, 0) scale(1.08); opacity: 1; }
}
@keyframes sv-banner-orb-b {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.65; }
  50% { transform: translate3d(-8px, 12px, 0) scale(1.12); opacity: 1; }
}
@keyframes sv-banner-grid {
  from { background-position: 0 0, 0 0; }
  to { background-position: 44px 0, 0 44px; }
}
@keyframes sv-banner-progress {
  0%, 100% { transform: translateX(-2%); }
  50% { transform: translateX(8%); }
}
@keyframes sv-banner-scan {
  0%, 100% { transform: translateY(-110%); opacity: 0; }
  22% { opacity: 0.85; }
  48% { transform: translateY(250%); opacity: 0.2; }
  60% { opacity: 0; }
}
@keyframes sv-banner-title-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}
@keyframes sv-banner-btn-pulse {
  0% { transform: scale(0.96); opacity: 0.6; }
  70% { transform: scale(1.04); opacity: 0; }
  100% { opacity: 0; }
}
@keyframes sv-ai-icon-float-a {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
@keyframes sv-ai-icon-float-b {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(2px); }
}
@keyframes sv-ai-icon-float-c {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}
@media (prefers-reduced-motion: reduce) {
  .sv-banner-hero-promo--hero.sv-banner-hero-promo--intense::before,
  .sv-banner-hero-promo--hero.sv-banner-hero-promo--intense::after,
  .sv-banner-hero-promo--hero.sv-banner-hero-promo--intense .sv-banner-hero-promo__scan,
  .sv-banner-hero-promo--hero.sv-banner-hero-promo--intense .sv-banner-hero-title,
  .sv-banner-hero-promo__progress span,
  .sv-banner-hero-promo--hero.sv-banner-hero-promo--intense .sv-banner-btn--pulse::after,
  .sv-banner-hero-promo__orb,
  .sv-banner-hero-promo__gridline,
  .sv-banner-ai-lab__icon {
    animation: none !important;
  }
}
.sv-scroll-row { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 4px; }
.sv-scroll-row::-webkit-scrollbar { display: none; }
.sv-trend-row { display: flex; align-items: stretch; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border-subtle); color: inherit; }
.sv-trend-row:last-child { border-bottom: none; }
.sv-trend-row__main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.sv-trend-author {
  flex-shrink: 0;
  width: 76px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px 6px;
  border-radius: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
}
.sv-trend-author__avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.35), rgba(14, 165, 233, 0.25));
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 15px;
  font-weight: 800;
  color: #eef0ff;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
}
.sv-trend-author__avatar.has-image { color: transparent; }
.sv-trend-author__name {
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-primary);
}
.sv-trend-author__level { display: flex; justify-content: center; }
.sv-trend-author__level .sv-level-chip { font-size: 10px; padding: 2px 6px; }
.sv-trend-rank { font-size: 18px; font-weight: 700; color: var(--accent-indigo); }
.sv-trend-rank.sv-trend-rank--3 { color: var(--accent-coral); }
.sv-trend-thumb { width: 48px; height: 64px; flex-shrink: 0; border-radius: 8px; background-color: var(--bg-elevated); background-image: url('../images/no-image.svg'); background-position: center; background-repeat: no-repeat; background-size: 60%; }
.sv-trend-info { flex: 1; min-width: 0; }
.sv-trend-info__title { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.sv-trend-info__meta { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12px; font-weight: 500; color: var(--text-secondary); }
.sv-reward-promo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--text-primary);
  transition: background 0.18s;
}
.sv-reward-promo:hover { background: var(--bg-card-hover, #1e2035); }
.sv-reward-promo__icon { font-size: 22px; flex-shrink: 0; }
.sv-reward-promo__body { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.sv-reward-promo__title { font-size: 14px; font-weight: 600; }
.sv-reward-promo__desc { font-size: 12px; color: var(--text-muted); }
.sv-reward-promo__tag {
  flex-shrink: 0;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(234, 179, 8, 0.15);
  color: #ca8a04;
}
.sv-reward-promo__arrow { flex-shrink: 0; color: var(--text-muted); font-size: 16px; }

.sv-untold-card { background: var(--bg-card); border-radius: var(--radius-lg); padding: 20px; border: 1px solid var(--border-subtle); display: flex; flex-direction: column; gap: 12px; }
.sv-untold-badge { display: inline-flex; padding: 4px 10px; border-radius: 8px; font-size: 11px; font-weight: 600; width: fit-content; }
.sv-untold-badge--coral { background: rgba(232,90,79,0.13); color: var(--accent-coral); }
.sv-untold-badge--green { background: rgba(50,213,131,0.13); color: var(--accent-green); }
.sv-untold-title { font-family: 'Fraunces', 'Noto Sans KR', sans-serif; font-size: 16px; font-weight: 600; line-height: 1.4; }
.sv-untold-desc { font-size: 13px; line-height: 1.5; color: var(--text-secondary); }
.sv-untold-btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 20px; background: var(--accent-indigo); color: #fff; font-size: 13px; font-weight: 600; border-radius: 10px; text-decoration: none; width: fit-content; }

.sv-cover-section {
  height: 220px;
  padding: 20px;
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
}

.sv-cover-hero {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.sv-cover-hero__season,
.sv-detail-hero__season {
  margin: 8px 0 4px;
}

.sv-cover-hero__season .sv-work-chip--season,
.sv-detail-hero__season .sv-work-chip--season {
  vertical-align: middle;
}

.sv-author-works__season {
  margin-left: 8px;
  vertical-align: middle;
}

.sv-library-item__title .sv-author-works__season {
  display: inline-flex;
  margin-left: 6px;
}

.sv-cover-hero__title {
  margin: 0;
  font-family: Fraunces, serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--text-primary, #f4f6ff);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}

.sv-cover-author {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.sv-cover-author__avatar {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.35), rgba(14, 165, 233, 0.25));
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 14px;
  font-weight: 800;
  color: #eef0ff;
  flex-shrink: 0;
  overflow: hidden;
}

.sv-cover-author__avatar.has-image {
  color: transparent;
}

.sv-cover-author__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
}

.sv-cover-author__name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary, #eef0ff);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

.sv-cover-author__level .sv-level-chip {
  margin: 0;
}
.sv-cover-section--img { background-size: cover; background-position: center; }

.sv-synopsis__title { font-family: 'Fraunces', serif; font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.sv-synopsis__text { color: var(--text-secondary); font-size: 14px; line-height: 1.6; }

.sv-chapter-list { border-top: 1px solid var(--border-subtle); }
.sv-chapter-item {
  padding: 12px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
}
.sv-chapter-item:last-child { border-bottom: none; }

.sv-reader-body {
  padding: 24px 28px;
}
.sv-reader-body h1 { font-family: 'Fraunces', 'Noto Sans KR', sans-serif; font-size: 22px; font-weight: 600; margin: 0 0 20px 0; }
.sv-reader-body .divider { height: 2px; width: 40px; background: var(--accent-indigo); margin-bottom: 20px; }
.sv-reader-body p { font-size: 16px; line-height: 1.9; margin: 0 0 1em 0; }

.sv-reader-node__label {
  margin-top: 32px !important;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
}
.sv-reader-node:first-child .sv-reader-node__label { margin-top: 8px !important; }

.sv-reader-node__scene {
  text-align: center;
  letter-spacing: 0.15em;
  margin: 24px 0 16px;
  opacity: 0.5;
}
.sv-reader-node__scene::before { content: '— '; }
.sv-reader-node__scene::after  { content: ' —'; }

.sv-reader-node[data-reader-locked="1"] { position: relative; }
.sv-reader-node[data-reader-locked="1"] .sv-reader-node__body {
  padding: 24px;
  border: 1px solid rgba(124,58,237,0.25);
  border-radius: 16px;
  background: rgba(124,58,237,0.06);
  text-align: center;
}
.sv-reader-node[data-reader-locked="1"]::before {
  content: '';
  display: block;
  height: 40px;
  margin-bottom: -40px;
  background: linear-gradient(to bottom, transparent, var(--bg-base, #0B0B0E));
  pointer-events: none;
}

.sv-reader-unlock-btn {
  margin-top: 8px !important;
  padding: 12px 24px !important;
  font-size: 15px !important;
  border-radius: 14px !important;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 12px rgba(124,58,237,0.35);
  transition: opacity 0.15s;
}
.sv-reader-unlock-btn:hover { opacity: 0.88; }

[data-sv-font-size-toggle] { font-family: inherit; font-weight: 700; font-size: 13px !important; }

/* ===========================================================
   Responsive: Tablet (768px+)
   =========================================================== */
@media (min-width: 768px) {
  :root {
    --app-width: 640px;
    --header-height: 60px;
  }

  .sv-app {
    max-width: 640px;
  }

  .sv-header__logo { font-size: 24px; }
  .sv-header__chip--collapsible { display: inline-flex; }
  .sv-nav-menu { display: none; }
  .sv-content { padding: 24px; padding-bottom: calc(var(--tabbar-height) + 24px + env(safe-area-inset-bottom, 0)); }
  .sv-tabbar { max-width: 640px; }
  .sv-section-header__title { font-size: 22px; }
  .sv-grid--2 { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .sv-card-world__cover { height: 140px; }
  .sv-card-story__thumb { height: 220px; }
  .sv-cover-section { height: 260px; padding: 24px; }
  .sv-reader-body { padding: 32px 48px; max-width: 640px; margin: 0 auto; }
  .sv-reader-body h1 { font-size: 24px; }
  .sv-reader-body p { font-size: 17px; max-width: 55ch; }
}

/* ===========================================================
   Responsive: PC / Desktop (1024px+)
   =========================================================== */
@media (min-width: 1024px) {
  :root {
    --app-width: 1200px;
    --header-height: 64px;
    --tabbar-height: 64px;
  }

  .sv-app {
    max-width: 1200px;
    padding: 0 24px;
  }

  .sv-header {
    padding: 0 24px;
  }

  .sv-header__logo { font-size: 26px; }
  .sv-header__brand-main { font-size: 28px; }
  .sv-header__brand-sub { font-size: 12px; }
  .sv-header__chip { height: 32px; font-size: 12px; }
  .sv-header__right { gap: 24px; }
  .sv-content { padding: 32px; padding-bottom: calc(var(--tabbar-height) + 32px + env(safe-area-inset-bottom, 0)); }
  .sv-tabbar {
    max-width: 1200px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 24px;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  }
  .sv-tabbar a { font-size: 13px; }
  .sv-section-header__title { font-size: 24px; }
  .sv-section-header__more { font-size: 14px; }
  .sv-grid { gap: 20px; }
  .sv-grid--2 { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .sv-grid--3 { grid-template-columns: repeat(3, 1fr); }
  .sv-grid--4 { grid-template-columns: repeat(4, 1fr); }
  .sv-card-world__cover { height: 160px; }
  .sv-card-world__info { padding: 20px; }
  .sv-card-world__title { font-size: 17px; }
  .sv-card-story__thumb { height: 240px; }
  .sv-card-story__info { padding: 16px; }
  .sv-banner-hero-promo { padding: 32px; }
  .sv-cover-section { height: 300px; padding: 32px; }
  .sv-stats-bar { padding: 20px 32px; }
  .sv-tabnav { padding: 0 24px; }
  .sv-tabnav__item { margin-right: 32px; font-size: 15px; }
  .sv-genre-filters { padding: 16px 24px; gap: 12px; }
  .sv-reader-body {
    padding: 48px 80px;
    max-width: 720px;
    margin: 0 auto;
  }
  .sv-reader-body h1 { font-size: 28px; }
  .sv-reader-body p { font-size: 18px; line-height: 2; }
}

/* Grid variants for desktop: 3/4 columns on home, world explore */
@media (min-width: 1024px) {
  .sv-grid--2.sv-grid--tablet-3 { grid-template-columns: repeat(3, 1fr); }
  .sv-grid--2.sv-grid--tablet-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ══════════════════════════════════════════════
   Ripple (공통)
   ══════════════════════════════════════════════ */
.sv-ripple { position: relative; overflow: hidden; }
.sv-ripple-dot {
  position: absolute;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  transform: translate(-50%,-50%) scale(0);
  animation: sv-ripple-anim 0.55s ease-out forwards;
  pointer-events: none;
}
@keyframes sv-ripple-anim {
  to { transform: translate(-50%,-50%) scale(60); opacity: 0; }
}

/* ══════════════════════════════════════════════
   Scroll Reveal (공통)
   ══════════════════════════════════════════════ */
.sv-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.sv-reveal--in {
  opacity: 1;
  transform: translateY(0);
}
.sv-reveal--d1 { transition-delay: 0.08s; }
.sv-reveal--d2 { transition-delay: 0.16s; }
.sv-reveal--d3 { transition-delay: 0.24s; }
.sv-reveal--d4 { transition-delay: 0.32s; }

/* PC visual enhancement: HTML5 + Unity hybrid */
.sv-pc-tech-showcase {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 28px;
}

.sv-pc-tech-card {
  border: 1px solid #2b3047;
  border-radius: 16px;
  background: linear-gradient(180deg, #141826 0%, #0f121b 100%);
  padding: 14px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.sv-pc-tech-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.sv-pc-tech-card__head strong {
  color: #eef1ff;
  font-size: 14px;
  letter-spacing: 0.1px;
}

.sv-pc-tech-card__head span {
  color: #8992b4;
  font-size: 11px;
}

.sv-pc-tech-card p {
  margin: 10px 0 0;
  color: #8992b4;
  font-size: 12px;
}

.sv-pc-orbit-canvas {
  width: 100%;
  height: 180px;
  border-radius: 12px;
  border: 1px solid #2b3047;
  background: radial-gradient(circle at 20% 10%, #262e52 0%, #171c31 45%, #0f111a 100%);
}

.sv-pc-unity-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 28px;
  padding: 16px;
  border: 1px solid rgba(115, 126, 255, 0.28);
  border-radius: 22px;
  background:
    radial-gradient(circle at 12% 6%, rgba(46, 213, 158, 0.22), transparent 34%),
    radial-gradient(circle at 92% 16%, rgba(126, 87, 255, 0.26), transparent 36%),
    linear-gradient(180deg, rgba(18, 24, 46, 0.96), rgba(9, 11, 20, 0.98));
  box-shadow: 0 18px 46px rgba(4, 8, 24, 0.48);
}

.sv-pc-unity-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.7), transparent 78%);
}

.sv-pc-unity-hero__head {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.sv-pc-unity-hero__eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border: 1px solid rgba(174, 185, 255, 0.32);
  border-radius: 999px;
  background: rgba(91, 103, 255, 0.18);
  color: #cbd5ff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.sv-pc-unity-hero__head h2 {
  margin: 0;
  color: #f7f9ff;
  font-family: 'Fraunces', 'Noto Sans KR', sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.4px;
}

.sv-pc-unity-hero__head p {
  margin: 0;
  color: #aeb8dd;
  font-size: 13px;
}

.sv-pc-unity-hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.sv-pc-unity-hero__chips span {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: #e6ebff;
  font-size: 11px;
  font-weight: 700;
}

.sv-pc-unity-stage-frame {
  position: relative;
  z-index: 1;
  overflow: hidden;
  height: 420px;
  border: 1px solid rgba(130, 145, 255, 0.32);
  border-radius: 18px;
  background: #090d18;
  box-shadow:
    0 16px 38px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.sv-pc-unity-stage-frame__iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.sv-pc-unity-slot {
  border: 1px dashed #3a4164;
  border-radius: 12px;
  background: rgba(16, 21, 37, 0.75);
  padding: 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sv-pc-unity-slot__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 18px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(108, 116, 255, 0.2);
  color: #a9b1ff;
  font-size: 10px;
  font-weight: 700;
}

.sv-pc-unity-slot h4 {
  margin: 8px 0 4px;
  color: #eef1ff;
  font-size: 14px;
}

.sv-pc-unity-slot p {
  margin: 0 0 12px;
  color: #8a93b4;
  font-size: 12px;
}

.sv-pc-unity-slot.is-active {
  border-color: #6f76ff;
  box-shadow: 0 0 0 2px rgba(111, 118, 255, 0.18);
}

.sv-pc-unity-btn {
  border: 1px solid #404975;
  border-radius: 10px;
  background: #1c2342;
  color: #e8ebff;
  font-size: 12px;
  font-weight: 700;
  height: 34px;
  min-width: 94px;
  padding: 0 12px;
  cursor: pointer;
}

.sv-pc-unity-slot.is-active .sv-pc-unity-btn {
  background: #6368f5;
  border-color: #6368f5;
}
.sv-pc-unity-runtime {
  display: none;
  margin-top: 10px;
  border: 1px solid #30395e;
  border-radius: 10px;
  overflow: hidden;
  background: #0c0f17;
}
.sv-pc-unity-runtime canvas {
  width: 100%;
  height: 220px;
  display: block;
  background: #080a11;
}
.sv-pc-unity-runtime__progress {
  padding: 7px 10px;
  color: #93a0ce;
  font-size: 11px;
}

.sv-pc-world-lab {
  margin-top: 24px;
}

.sv-pc-world-lab__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.sv-pc-world-lab__panel {
  border: 1px solid #2b3047;
  border-radius: 14px;
  background: linear-gradient(180deg, #141826 0%, #0f121b 100%);
  padding: 12px;
}

.sv-pc-world-lab__panel h4 {
  margin: 0 0 8px;
  color: #eef1ff;
  font-size: 14px;
}

.sv-pc-world-lab__panel p {
  margin: 10px 0 0;
  color: #8a93b4;
  font-size: 12px;
}

a.sv-pc-world-lab__panel {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.sv-pc-character-placeholder {
  border: 1px solid #2b3047;
  border-radius: 14px;
  background: linear-gradient(180deg, #131722 0%, #0f121a 100%);
  padding: 14px;
}

.sv-pc-character-placeholder p {
  margin: 0;
  color: #8a93b4;
  font-size: 13px;
}

/* ══════════════════════════════════════════════
   Studio – Canvas 배경
   ══════════════════════════════════════════════ */
.sv-studio-canvas-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.sv-studio-content { position: relative; z-index: 1; }

.sv-studio-page--dashboard .sv-studio-top-actions { margin-bottom: 20px; }
.sv-studio-page--dashboard .sv-studio-top-actions .sv-btn-primary { width: 100%; justify-content: center; }

.sv-studio-layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.sv-studio-rail {
  background: rgba(18, 20, 32, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 14px;
  max-height: calc(100vh - 220px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.sv-studio-rail__header { margin-bottom: 10px; flex-shrink: 0; }
.sv-studio-rail__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  padding-right: 2px;
}
.sv-studio-rail__item {
  display: flex;
  gap: 10px;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.02);
  color: inherit;
  cursor: pointer;
  font: inherit;
}
.sv-studio-rail__item:hover { background: rgba(255, 255, 255, 0.05); }
.sv-studio-rail__item.is-active {
  border-color: rgba(99, 102, 241, 0.45);
  background: rgba(99, 102, 241, 0.12);
}
.sv-studio-rail__thumb {
  width: 44px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  background-size: cover;
  background-position: center;
}
.sv-studio-rail__text { min-width: 0; flex: 1; }
.sv-studio-rail__title {
  display: block;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sv-studio-rail__meta { display: block; font-size: 12px; color: var(--text-secondary); margin-top: 2px; }
.sv-studio-rail__empty { font-size: 13px; color: var(--text-secondary); padding: 8px 4px; }

.sv-studio-panel {
  background: rgba(18, 20, 32, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 18px;
}
.sv-studio-panel__hero { display: flex; gap: 16px; margin-bottom: 18px; }
.sv-studio-panel__thumb {
  width: 88px;
  height: 110px;
  flex-shrink: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  background-size: cover;
  background-position: center;
}
.sv-studio-panel__info { flex: 1; min-width: 0; }
.sv-studio-panel__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 6px; }
.sv-studio-panel__title { margin: 0; font-size: 20px; line-height: 1.3; }
.sv-studio-panel__lifecycle {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.18);
  color: #c7d2fe;
}
.sv-studio-panel__meta { margin: 0 0 8px; font-size: 13px; color: var(--text-secondary); }
.sv-studio-panel__summary {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: #b8bfd6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sv-studio-section-title { margin: 0 0 10px; font-size: 15px; font-weight: 600; }
.sv-studio-metric-cards { margin-bottom: 10px; }
.sv-studio-insight {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.5;
  color: #9aa3c7;
}
.sv-studio-chapter-group { margin-bottom: 12px; }
.sv-studio-chapter-group h4 { margin: 0 0 6px; font-size: 13px; color: var(--text-secondary); font-weight: 600; }
.sv-studio-chapter-list { list-style: none; margin: 0; padding: 0; }
.sv-studio-chapter-list li { margin-bottom: 6px; }
.sv-studio-chapter-link { color: #c7d2fe; text-decoration: none; font-size: 14px; }
.sv-studio-chapter-link:hover { text-decoration: underline; }
.sv-studio-chapter-static { font-size: 14px; color: #b8bfd6; }
.sv-studio-chapters-empty { margin: 0; font-size: 13px; color: var(--text-secondary); }
.sv-studio-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.sv-studio-panel__actions .sv-btn-primary,
.sv-studio-panel__actions .sv-btn-secondary { flex: 1 1 140px; text-align: center; text-decoration: none; justify-content: center; }
.sv-studio-panel__empty { text-align: center; padding: 24px 12px; }
.sv-studio-panel__empty p { color: var(--text-secondary); font-size: 14px; margin-bottom: 16px; }

@media (max-width: 900px) {
  .sv-studio-layout { grid-template-columns: 1fr; }
  .sv-studio-rail { max-height: none; }
}

/* Publish settings page (pcweb - 모바일과 동일 구조) */
.sv-publish-topbar {
  justify-content: flex-start;
  gap: 8px;
  border-bottom: 1px solid #1d1f2a;
}

.sv-publish-topbar__back {
  background: transparent;
  border: 0;
  color: #e9eaf5;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sv-publish-topbar__title {
  color: #f4f5fb;
  font-size: 34px;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.6px;
}

.sv-publish-page {
  padding-top: 14px;
}

.sv-publish-form {
  margin: 0;
}

.sv-publish-block {
  margin-bottom: 18px;
}

.sv-publish-block__title {
  margin: 0 0 6px;
  color: #f0f2fa;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.sv-publish-block__desc {
  margin: 0 0 10px;
  color: #767e9b;
  font-size: 12px;
  line-height: 1.45;
}

.sv-publish-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sv-publish-chip {
  height: 34px;
  border: 0;
  border-radius: 999px;
  padding: 0 12px;
  background: #5f63f5;
  color: #f4f6ff;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.sv-publish-chip--ghost {
  background: #151824;
  border: 1px solid #2e3244;
  color: #8e95b3;
}

.sv-publish-option-list {
  display: grid;
  gap: 9px;
}

.sv-publish-option {
  width: 100%;
  border: 1px solid #2b2e40;
  border-radius: 13px;
  background: #151823;
  color: #f2f4fc;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  cursor: pointer;
}

.sv-publish-option.is-selected {
  border-color: #5f63f5;
  box-shadow: inset 0 0 0 1px #5f63f5;
}

.sv-publish-option__radio {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid #8a90ab;
  flex-shrink: 0;
  margin-top: 1px;
}

.sv-publish-option.is-selected .sv-publish-option__radio {
  border-color: #5f63f5;
  background: radial-gradient(circle, #5f63f5 0 5px, transparent 6px);
}

.sv-publish-option__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.sv-publish-option__text strong {
  color: #f4f6ff;
  font-size: 17px;
  line-height: 1.25;
}

.sv-publish-option__text span {
  color: #7f86a3;
  font-size: 13px;
  line-height: 1.3;
}

.sv-publish-segment {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.sv-publish-segment__btn {
  height: 49px;
  border: 1px solid #2d3042;
  border-radius: 12px;
  background: #151823;
  color: #6f7694;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.4px;
  cursor: pointer;
}

.sv-publish-segment__btn.is-selected {
  border-color: #1ee798;
  box-shadow: inset 0 0 0 1px #1ee798;
  color: #1ee798;
}

.sv-publish-segment__btn.is-outline {
  border-color: #5f63f5;
  box-shadow: inset 0 0 0 1px #5f63f5;
  color: #5f63f5;
}

.sv-publish-select {
  width: 100%;
  height: 52px;
  border: 1px solid #2d3042;
  border-radius: 12px;
  background: #151823;
  color: #f4f6ff;
  font-size: 16px;
  font-weight: 500;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.sv-publish-actions {
  margin-top: 24px;
}

.sv-publish-actions__btn {
  width: 100%;
  justify-content: center;
}

/* Studio detail pages: works / analytics */
.sv-works-topbar,
.sv-analytics-topbar {
  height: 56px;
  border-bottom: 1px solid #1f2233;
}

.sv-works-topbar__left,
.sv-analytics-topbar__left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sv-works-topbar__back,
.sv-analytics-topbar__back {
  background: transparent;
  border: 0;
  color: #edf0ff;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sv-works-topbar__title,
.sv-analytics-topbar__title {
  color: #f3f5ff;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.6px;
  line-height: 1.1;
}

.sv-works-topbar__new {
  height: 36px;
  padding: 0 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, #6f75ff 0%, #5f63f5 100%);
  color: #eef0ff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
}

.sv-works-tabnav {
  justify-content: flex-start;
  gap: 28px;
  padding: 0 20px;
  border-bottom-color: #202334;
}

.sv-works-tabnav .sv-tabnav__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 0;
  font-size: 13px;
  color: #7f87a7;
}

.sv-works-tabnav .sv-tabnav__item.active {
  color: #eef0ff;
  border-bottom-color: #6267f4;
}

.sv-works-tabnav__count {
  padding: 1px 7px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: #7f87a7;
  min-width: 20px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  line-height: 1.4;
}

.sv-works-tabnav .sv-tabnav__item.active .sv-works-tabnav__count {
  background: rgba(98, 103, 244, 0.22);
  color: #c7d2fe;
}

.sv-works-page {
  padding-top: 14px;
}

.sv-work-card {
  border: 1px solid #2a2e42;
  border-radius: 16px;
  background: linear-gradient(180deg, #141722 0%, #10121a 100%);
  padding: 14px;
  margin-bottom: 12px;
}

.sv-work-card__thumb-wrap {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.sv-work-card__thumb {
  flex: 0 0 auto;
  width: 90px;
  aspect-ratio: 3 / 4;
  border-radius: 10px;
  background-color: #1a1e2e;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  border: 1px solid #2a2e42;
  overflow: hidden;
}

.sv-work-card__thumb-upload {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}

.sv-work-card__thumb-file {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.sv-work-card__thumb-btn {
  height: 36px;
  padding: 0 12px;
  font-size: 13px;
}

.sv-work-card__thumb-hint {
  margin: 0;
  color: #7f86a4;
  font-size: 11px;
  line-height: 1.45;
}

.sv-work-card.is-featured {
  border-color: #303651;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.26);
}

.sv-work-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.sv-work-card__head h3 {
  margin: 0;
  color: #f2f4ff;
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.sv-work-card__meta {
  margin: 7px 0 8px;
  color: #7f86a4;
  font-size: 13px;
}

.sv-work-card__stats {
  display: flex;
  gap: 18px;
  color: #969dba;
  font-size: 12px;
}

.sv-work-draft-chapters {
  margin-top: 10px;
  padding: 10px;
  border: 1px solid rgba(98, 103, 244, 0.24);
  border-radius: 12px;
  background: rgba(98, 103, 244, 0.08);
}

.sv-work-draft-chapters__title {
  margin-bottom: 8px;
  color: #c7d2fe;
  font-size: 12px;
  font-weight: 800;
}

.sv-work-draft-chapter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 36px;
  padding: 8px 10px;
  border-radius: 10px;
  color: #eef0ff;
  background: rgba(255, 255, 255, 0.04);
  text-decoration: none;
}

.sv-work-draft-chapter + .sv-work-draft-chapter {
  margin-top: 6px;
}

.sv-work-draft-chapter__label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #dfe3ff;
  font-size: 13px;
}

.sv-work-draft-chapter__actions {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.sv-work-draft-chapter__action {
  flex: 0 0 auto;
  color: #86efac;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.sv-work-draft-chapter__delete {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: #fca5a5;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.sv-work-draft-chapter__delete:disabled {
  cursor: progress;
  opacity: 0.6;
}

.sv-work-draft-chapters--rejected {
  border-color: rgba(248, 113, 113, 0.32);
  background: rgba(248, 113, 113, 0.06);
}

.sv-work-draft-chapters--rejected .sv-work-draft-chapters__title {
  color: #fda4af;
}

.sv-work-draft-chapter__hint {
  display: block;
  margin-top: 2px;
  color: #fca5a5;
  font-size: 11px;
  font-weight: 600;
  white-space: normal;
}

.sv-work-card__actions {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.sv-work-card__actions .sv-btn-primary,
.sv-work-card__actions .sv-btn-secondary {
  height: 40px;
  padding: 0 10px;
}

.sv-work-card__actions .sv-btn-primary {
  background: #6267f4;
}

.sv-work-card__actions .sv-btn-secondary {
  background: transparent;
  border-color: #2f3348;
}

.sv-work-card__delete-project {
  grid-column: 1 / -1;
  height: 38px;
  margin-top: 2px;
  border: 1px solid rgba(239, 68, 68, 0.45);
  border-radius: 10px;
  background: rgba(239, 68, 68, 0.08);
  color: #fca5a5;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.sv-work-card__delete-project:hover:not(:disabled) {
  background: rgba(239, 68, 68, 0.16);
}

.sv-work-card__delete-project:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.sv-work-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  height: 24px;
  border-radius: 999px;
  background: rgba(129, 137, 172, 0.18);
  color: #b7bdd6;
  font-size: 11px;
  font-weight: 700;
}

.sv-work-chip--green {
  background: rgba(53, 214, 142, 0.2);
  color: #4de1a3;
}

.sv-work-chip--amber {
  background: rgba(255, 188, 82, 0.18);
  color: #f8c069;
}

.sv-work-chip--indigo {
  background: rgba(108, 116, 255, 0.22);
  color: #8f95ff;
}

.sv-work-chip--season {
  background: rgba(124, 58, 237, 0.2);
  color: #c4b5fd;
}

.sv-work-card__progress {
  width: 100%;
  height: 5px;
  border-radius: 999px;
  background: #252941;
  overflow: hidden;
  margin-top: 8px;
}

.sv-work-card__progress span {
  display: block;
  height: 100%;
  background: #ffbf50;
}

.sv-work-card__sub {
  margin: 7px 0 0;
  color: #8f96b2;
  font-size: 12px;
}

.sv-works-empty {
  color: #7f86a4;
  font-size: 12px;
}

.sv-analytics-page {
  padding-top: 14px;
}

.sv-analytics-title {
  margin: 0 0 12px;
  color: #6f76ff;
  font-size: 34px;
  line-height: 1.1;
  letter-spacing: -0.6px;
}

.sv-analytics-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.sv-analytics-card {
  border: 1px solid #272b3f;
  border-radius: 16px;
  background: linear-gradient(180deg, #141722 0%, #10131b 100%);
  padding: 12px;
}

.sv-analytics-card span {
  display: block;
  color: #7f86a4;
  font-size: 12px;
}

.sv-analytics-card strong {
  display: block;
  margin-top: 2px;
  color: #f2f4ff;
  font-size: 24px;
  letter-spacing: -0.2px;
}

.sv-analytics-card strong.is-green { color: #2fe098; }
.sv-analytics-card strong.is-amber { color: #f8bc58; }

.sv-analytics-card em {
  display: block;
  margin-top: 2px;
  color: #2dd38f;
  font-style: normal;
  font-size: 12px;
}

.sv-analytics-section {
  margin-top: 18px;
}

.sv-analytics-section h3 {
  margin: 0;
  color: #f2f4ff;
  font-size: 18px;
}

.sv-analytics-section p {
  margin: 4px 0 0;
  color: #7f86a4;
  font-size: 12px;
}

.sv-ai-review-chapters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 4px;
}

.sv-ai-review-chapters__item {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid #2f3448;
  color: #a8aec8;
  font-size: 12px;
  text-decoration: none;
}

button.sv-ai-review-chapters__item {
  cursor: pointer;
  background: transparent;
  font-family: inherit;
}

.sv-ai-review-chapters__item.is-active {
  border-color: #6267f4;
  background: rgba(98, 103, 244, 0.18);
  color: #e8eaff;
}

.sv-ai-review__meta {
  margin: 0 0 4px;
  font-size: 11px;
  color: var(--text-muted);
  font-style: italic;
  letter-spacing: 0.2px;
  min-height: 1em;
}

.sv-ai-review__text {
  margin: 12px 0 0;
  color: #e8ebff;
  font-size: 14px;
  line-height: 1.65;
}

.sv-ai-review__loading,
.sv-ai-review__hint,
.sv-ai-review__empty,
.sv-ai-review__error {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.55;
}

.sv-ai-review__loading { color: #c7d2fe; }
.sv-ai-review__hint,
.sv-ai-review__empty { color: #7f86a4; }
.sv-ai-review__error { color: #f87171; }

.sv-analytics-bars {
  margin-top: 14px;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 100px;
}

.sv-analytics-bars span {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: #3ad68f;
}

.sv-analytics-bars span.is-green { background: #34d58b; }
.sv-analytics-bars span.is-amber { background: #f7ba51; }
.sv-analytics-bars span.is-red { background: #ef5e58; }

.sv-analytics-warning {
  margin-top: 12px;
  border: 1px solid rgba(219, 72, 72, 0.45);
  border-radius: 12px;
  background: rgba(113, 24, 24, 0.28);
  color: #ff887f;
  font-size: 13px;
  padding: 10px 12px;
}

.sv-analytics-reactions {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.sv-analytics-reactions li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #f1f3ff;
  font-size: 14px;
}

.sv-analytics-reactions li span {
  color: #dfe2f4;
}

.sv-analytics-reactions li strong {
  color: #f8f9ff;
}

/* Profile page (pcweb) */
.sv-profile-header .sv-header__logo {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.6px;
}

.sv-profile-header__setting {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #8d93b2;
  text-decoration: none;
  font-size: 14px;
}

.sv-profile-page {
  padding-top: 10px;
}

.sv-profile-card {
  border: 1px solid #272b3f;
  border-radius: 16px;
  background: linear-gradient(180deg, #141722 0%, #10121a 100%);
  padding: 16px 14px 14px;
  text-align: center;
}

.sv-profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  margin: 0 auto;
  background: linear-gradient(135deg, #8d8dff 0%, #6f76ff 100%);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 800;
  color: #eef0ff;
  overflow: hidden;
}

.sv-profile-avatar.has-image {
  color: transparent;
}

.sv-profile-name {
  margin: 10px 0 3px;
  color: #f2f4ff;
  font-size: 24px;
  letter-spacing: -0.2px;
}

.sv-profile-desc {
  margin: 0;
  color: #7f86a4;
  font-size: 12px;
  line-height: 1.45;
}

.sv-profile-stats {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.sv-profile-stats strong {
  display: block;
  color: #f3f5ff;
  font-size: 24px;
  line-height: 1.1;
}

.sv-profile-stats span {
  color: #7f86a4;
  font-size: 11px;
}

.sv-profile-edit {
  margin-top: 12px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid #2e3348;
  background: rgba(255, 255, 255, 0.02);
  color: #eef0ff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  font-size: 13px;
  font-weight: 600;
}

.sv-profile-balance,
.sv-profile-coin {
  margin-top: 10px;
  border: 1px solid #272b3f;
  border-radius: 14px;
  background: linear-gradient(180deg, #141722 0%, #10121a 100%);
  padding: 12px;
}

.sv-profile-balance {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sv-profile-balance__label {
  color: #8f96b5;
  font-size: 11px;
}

.sv-profile-balance__value {
  min-width: 0;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sv-profile-balance__value em {
  font-style: normal;
  height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  background: #6368f5;
  color: #f5f7ff;
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
}

.sv-profile-balance__value span {
  color: #f2f4ff;
  font-size: 13px;
  font-weight: 600;
}

.sv-profile-balance__more {
  color: #7d84a3;
  text-decoration: none;
  font-size: 20px;
  line-height: 1;
}

.sv-profile-coin {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.sv-profile-coin__left span {
  display: block;
  color: #8f96b5;
  font-size: 11px;
}

.sv-profile-coin__left strong {
  display: block;
  margin-top: 2px;
  color: #f0ad3a;
  font-size: 22px;
}

.sv-profile-coin__charge {
  width: 70px;
  height: 32px;
  border-radius: 8px;
  background: #6368f5;
  color: #eef0ff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

.sv-profile-header--with-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sv-profile-header--with-actions > .sv-icon-btn[data-sv-share-profile] {
  margin-left: auto;
}

.sv-profile-works {
  margin-top: 16px;
  padding: 0 0 24px;
}

.sv-profile-works__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
}

.sv-profile-works__head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #edf0ff;
}

.sv-profile-works__head span {
  font-size: 13px;
  color: #8d94b2;
}

.sv-profile-works__list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sv-profile-works__item {
  border-bottom: 1px solid #22263a;
}

.sv-profile-works__empty {
  color: #8d94b2;
  font-size: 14px;
  text-align: center;
  padding: 20px 0;
}

.sv-profile-points {
  display: block;
  margin: 12px 0 6px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.35);
  color: #edf0ff;
  text-decoration: none;
  font-size: 14px;
  text-align: center;
}

.sv-profile-points strong {
  color: #c4b5fd;
  font-weight: 700;
}

.sv-profile-points-page {
  padding: 16px;
}

.sv-profile-points-summary {
  margin-bottom: 16px;
  padding: 16px;
  border-radius: 14px;
  background: linear-gradient(180deg, #1a1d2b 0%, #141722 100%);
  border: 1px solid #2a2f45;
  text-align: center;
}

.sv-profile-points-summary__label {
  margin: 0 0 6px;
  font-size: 13px;
  color: #8d94b2;
}

.sv-profile-points-summary__balance {
  margin: 0;
  font-size: 22px;
  color: #edf0ff;
}

.sv-profile-points-summary__balance strong {
  color: #c4b5fd;
  font-weight: 700;
}

.sv-profile-points-hint {
  margin: 0 0 12px;
  font-size: 13px;
  color: #8d94b2;
}

.sv-point-ledger__item {
  padding: 12px 0;
  border-bottom: 1px solid #22263a;
}

.sv-point-ledger__main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sv-point-ledger__main strong {
  font-size: 14px;
  font-weight: 600;
  color: #edf0ff;
}

.sv-point-ledger__amount {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.sv-point-ledger__amount--plus {
  color: #86efac;
}

.sv-point-ledger__amount--minus {
  color: #fca5a5;
}

.sv-point-ledger__date {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #8d94b2;
}

.sv-point-ledger__empty {
  color: #8d94b2;
  font-size: 14px;
}

.sv-profile-menu {
  margin-top: 10px;
  border: 1px solid #272b3f;
  border-radius: 14px;
  background: linear-gradient(180deg, #141722 0%, #10121a 100%);
  overflow: hidden;
}

.sv-profile-menu__item {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 42px;
  padding: 0 12px;
  color: #edf0ff;
  text-decoration: none;
  border-bottom: 1px solid #22263a;
}

.sv-profile-menu__item:last-child {
  border-bottom: 0;
}

.sv-profile-menu__icon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 13px;
  color: #f5f7ff;
  background: rgba(123, 130, 195, 0.22);
}

.sv-profile-menu__icon[data-sv-profile-link-icon='works'] {
  background: rgba(108, 124, 255, 0.26);
  color: #dae1ff;
}

.sv-profile-menu__icon[data-sv-profile-link-icon='notifications'] {
  background: rgba(50, 213, 131, 0.2);
  color: #8ff0c3;
}

.sv-profile-menu__icon[data-sv-profile-link-icon='support'] {
  background: rgba(244, 63, 94, 0.2);
  color: #ffd6dc;
}

.sv-profile-menu__item > span:nth-child(2) {
  min-width: 0;
  flex: 1;
}

.sv-profile-menu__label {
  font-size: 13px;
  color: #edf0ff;
}

.sv-profile-menu__arrow {
  color: #7d84a3;
  font-size: 14px;
}

.sv-profile-menu__item em {
  font-style: normal;
  color: #7d84a3;
}

/* Story detail tabs (appweb/pcweb shared class names) */
.sv-detail-topbar {
  border-bottom: 1px solid #1f2233;
}

.sv-detail-topbar__back,
.sv-detail-topbar__icon {
  border: 0;
  background: transparent;
  color: #f2f4ff;
  cursor: pointer;
}

.sv-detail-topbar__back {
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sv-detail-topbar__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sv-detail-topbar__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  padding: 0;
  min-width: 28px;
  min-height: 28px;
}
.sv-detail-topbar__icon svg {
  width: 20px;
  height: 20px;
}

[data-sv-subscribe-placeholder] .sv-icon-subscribe__shape {
  fill: none;
  transition: fill 0.15s ease, stroke 0.15s ease;
}
[data-sv-subscribe-placeholder][aria-pressed="true"] {
  color: var(--brand-primary, #7c3aed);
}
[data-sv-subscribe-placeholder][aria-pressed="true"] .sv-icon-subscribe__shape {
  fill: currentColor;
}

/* Reader: 탑바 fixed (reader 페이지 전용) */
body.sv-is-reader-page .sv-detail-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--bg-primary, #0B0B0E);
  transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);
}
body.sv-is-reader-page .sv-reader-body {
  padding-top: 72px;
}
body.sv-is-reader-page .sv-app {
  padding-bottom: 80px;
}

/* Reader: 챕터 네비게이션 */
.sv-reader-chapter-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  padding-bottom: max(10px, env(safe-area-inset-bottom));
  background: var(--bg-elevated, #111118);
  border-top: 1px solid var(--border-subtle);
  transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);
}
.sv-reader-chapter-nav button {
  min-height: 44px;
  min-width: 80px;
  padding: 10px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.sv-reader-chapter-nav button.is-disabled {
  opacity: 0.35;
  pointer-events: none;
}
.sv-reader-chapter-nav__current {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Reader: 몰입 모드 */
body.sv-reader-ui-hidden .sv-detail-topbar {
  transform: translateY(-100%);
}
body.sv-reader-ui-hidden .sv-reader-chapter-nav {
  transform: translateY(100%);
}

.sv-detail-cover {
  height: 120px;
  margin: 0 20px;
  border-radius: 10px;
  background-size: 35%;
}

.sv-detail-hero {
  padding: 12px 20px 10px;
}

.sv-detail-hero__title {
  margin: 0;
  color: #f3f5ff;
  font-size: 30px;
  line-height: 1.05;
  letter-spacing: -0.6px;
}

.sv-detail-hero__meta {
  margin: 6px 0 0;
  color: #8a90ad;
  font-size: 12px;
}

.sv-detail-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 10px 20px 12px;
  border-top: 1px solid #1f2232;
  border-bottom: 1px solid #1f2232;
}

.sv-detail-stats div {
  text-align: center;
}

.sv-detail-stats strong {
  display: block;
  color: #f2f4ff;
  font-size: 20px;
  line-height: 1.2;
}

.sv-detail-stats span {
  color: #7f86a3;
  font-size: 11px;
}

.sv-detail-tabnav {
  border-bottom-color: #1f2232;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.sv-detail-tabnav::-webkit-scrollbar { display: none; }

.sv-detail-tabnav .sv-tabnav__item {
  flex-shrink: 0;
  white-space: nowrap;
  margin-right: 18px;
  font-size: 13px;
}

.sv-detail-page {
  padding-top: 14px;
}

.sv-detail-section {
  margin-bottom: 18px;
}

.sv-detail-section h2 {
  margin: 0 0 8px;
  color: #f2f4ff;
  font-size: 18px;
}

.sv-detail-section p {
  margin: 0;
  color: #8a90ad;
  font-size: 13px;
  line-height: 1.55;
}

.sv-detail-rule {
  border: 1px solid #282c3f;
  border-radius: 12px;
  background: #131723;
  padding: 10px;
  margin-bottom: 8px;
}

.sv-detail-rule strong {
  display: block;
  color: #f2f4ff;
  font-size: 12px;
}

.sv-detail-rule p {
  margin-top: 4px;
  font-size: 12px;
}

.sv-detail-actions {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.sv-detail-actions a {
  justify-content: center;
}

.sv-detail-list {
  display: grid;
  gap: 10px;
}

.sv-detail-char {
  display: flex;
  gap: 10px;
  border: 1px solid #272b3f;
  border-radius: 12px;
  background: #131723;
  padding: 10px;
}

.sv-detail-char__avatar {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  flex-shrink: 0;
}

.sv-detail-char__avatar--indigo { background: #6f76ff; }
.sv-detail-char__avatar--coral { background: #ef6467; }
.sv-detail-char__avatar--amber { background: #f7b74b; }

.sv-detail-char__body strong {
  display: block;
  color: #f3f5ff;
  font-size: 14px;
}

.sv-detail-char__body p {
  margin: 2px 0;
  color: #8a90ad;
  font-size: 12px;
}

.sv-detail-char__body span {
  color: #757c99;
  font-size: 12px;
  line-height: 1.4;
}

.sv-detail-subhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  color: #8a90ad;
  font-size: 12px;
}

.sv-detail-subhead button {
  border: 0;
  background: #15192a;
  color: #8a90ad;
  height: 24px;
  border-radius: 8px;
  padding: 0 8px;
}

.sv-detail-deri {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid #272b3f;
  border-radius: 12px;
  background: #131723;
  padding: 12px;
}

.sv-detail-deri strong {
  display: block;
  color: #f3f5ff;
  font-size: 14px;
}

.sv-detail-deri p {
  margin: 4px 0 3px;
  color: #8a90ad;
  font-size: 12px;
}

.sv-detail-deri span {
  color: #f5c15f;
  font-size: 11px;
}

.sv-detail-empty-header {
  border: 1px solid #272b3f;
  border-radius: 12px;
  background: #131723;
  padding: 10px;
  margin-bottom: 10px;
}

.sv-detail-empty-header strong {
  display: block;
  color: #9da6ff;
  font-size: 14px;
}

.sv-detail-empty-header p {
  margin: 4px 0 0;
  color: #7d85a3;
  font-size: 12px;
}

.sv-detail-empty-card {
  border: 1px solid #272b3f;
  border-radius: 12px;
  background: #131723;
  padding: 11px;
}

.sv-detail-empty-card h3 {
  margin: 0;
  color: #f2f4ff;
  font-size: 14px;
}

.sv-detail-empty-card p {
  margin: 5px 0 10px;
  color: #838ba8;
  font-size: 12px;
  line-height: 1.45;
}

.sv-detail-empty-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 32px;
  border-radius: 9px;
  background: #6267f4;
  color: #f3f5ff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}

/* ══════════════════════════════════════════════
   Editor – 몰입 모드 오버레이
   ══════════════════════════════════════════════ */
#sv-ambiance-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease;
}
#sv-ambiance-overlay.active { opacity: 1; }
#sv-ambiance-canvas { width: 100%; height: 100%; display: block; }
#sv-unity-container {
  position: absolute;
  inset: 0;
  display: none;
}
#sv-unity-container.active { display: block; }
#unity-canvas { width: 100%; height: 100%; }

.sv-immersive-btn {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.sv-immersive-btn.active {
  background: var(--accent-indigo);
  border-color: var(--accent-indigo);
  color: #fff;
}
.sv-editor-immersive-on .sv-editor-manuscript {
  background: rgba(22,22,26,0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ══════════════════════════════════════════════
   Analytics – 카운터 애니메이션
   ══════════════════════════════════════════════ */
.sv-stat-num {
  display: inline-block;
  transition: transform 0.2s ease;
}
.sv-stat-num.bump {
  animation: sv-bump 0.3s ease;
}
@keyframes sv-bump {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.15); }
  100% { transform: scale(1); }
}

@media (min-width: 1024px) {
  .sv-pc-tech-showcase {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 16px;
  }

  .sv-pc-world-lab__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* === Policy Pages (이용약관 / 개인정보처리방침) === */
.sv-policy-page { padding: 32px 20px; }
.sv-policy-wrap { max-width: 760px; margin: 0 auto; }
.sv-policy-main-title { font-size: 22px; font-weight: 700; margin-bottom: 24px; line-height: 1.4; }
.sv-policy-intro { font-size: 14px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 28px; }
.sv-policy-chapter { margin-bottom: 32px; }
.sv-policy-chapter h2 { font-size: 16px; font-weight: 700; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--border-subtle); }
.sv-policy-chapter h3 { font-size: 15px; font-weight: 600; margin: 18px 0 10px; }
.sv-policy-chapter p,
.sv-policy-chapter li,
.sv-policy-chapter dd { font-size: 14px; color: var(--text-secondary); line-height: 1.75; margin-bottom: 8px; }
.sv-policy-chapter ul,
.sv-policy-chapter ol { padding-left: 20px; }
.sv-policy-chapter li { margin-bottom: 6px; }
.sv-policy-chapter dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; }
.sv-policy-chapter dt { font-size: 14px; font-weight: 600; color: var(--text-primary); padding-top: 2px; }
.sv-policy-chapter dd { margin: 0; }
.sv-policy-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 12px; }
.sv-policy-table th,
.sv-policy-table td { padding: 10px 14px; border: 1px solid var(--border-subtle); vertical-align: top; line-height: 1.6; }
.sv-policy-table th { background: var(--bg-elevated); font-weight: 600; text-align: left; }
.sv-policy-addendum { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border-subtle); }
.sv-policy-addendum p { font-size: 13px; color: var(--text-secondary); }
.sv-policy-embed-body { margin: 0; background: var(--bg-base, #fff); }
.sv-policy-page--embed { padding: 16px 20px 24px; }
.sv-policy-page--embed .sv-policy-main-title { font-size: 18px; margin-bottom: 16px; }
.sv-policy-page--embed .sv-policy-wrap { max-width: none; }

/* ══════════════════════════════════════════════
   FX — Card Hover Glow + Micro-animations (pcweb)
   ══════════════════════════════════════════════ */

/* — Card Hover Glow — */
.sv-card-world,
.sv-card-story,
.sv-pc-tech-card,
.sv-pc-world-lab__panel,
.sv-pc-character-placeholder {
  border: 1px solid var(--border-subtle);
  transition: transform 0.22s cubic-bezier(0.22,1,0.36,1),
              box-shadow 0.22s ease, border-color 0.22s ease;
  will-change: transform;
}
.sv-card-world:hover,
.sv-card-story:hover,
.sv-pc-tech-card:hover,
.sv-pc-world-lab__panel:hover,
.sv-pc-character-placeholder:hover,
.sv-card-world.sv-card--glow,
.sv-card-story.sv-card--glow,
.sv-pc-tech-card.sv-card--glow,
.sv-pc-world-lab__panel.sv-card--glow {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 8px 32px rgba(99,102,241,0.22), 0 2px 8px rgba(0,0,0,0.4);
  border-color: rgba(99,102,241,0.35);
  z-index: 2;
}
.sv-trend-row,
.sv-untold-card,
.sv-publish-option,
.sv-work-card,
.sv-analytics-card,
.sv-profile-card,
.sv-pc-world-lab,
.sv-pc-world-lab__panel,
.sv-pc-character-placeholder,
.sv-pc-tech-card,
.sv-profile-balance,
.sv-profile-coin,
.sv-profile-menu,
.sv-detail-char,
.sv-detail-rule,
.sv-detail-deri,
.sv-detail-empty-card,
.sv-detail-empty-header,
.sv-library-item,
.sv-library-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.sv-library-page--finished {
  padding-top: 8px;
}

.sv-library-intro {
  margin-bottom: 14px;
}

.sv-library-intro__title {
  margin: 0 0 6px;
  font-family: Fraunces, serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary, #f1f3ff);
}

.sv-library-intro__desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary, #8b93b8);
}

.sv-library-list--finished {
  display: grid;
  gap: 12px;
}

.sv-library-card {
  border-radius: 14px;
  border: 1px solid var(--border-subtle, #2a2f45);
  background: var(--bg-card, linear-gradient(145deg, rgba(18, 21, 34, 0.98) 0%, rgba(12, 14, 24, 0.98) 100%));
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.sv-library-card--finished {
  border-color: rgba(99, 102, 241, 0.28);
}

.sv-library-card__link {
  display: flex;
  gap: 12px;
  padding: 12px;
  text-decoration: none;
  color: inherit;
}

.sv-library-card__thumb {
  width: 72px;
  height: 96px;
  border-radius: 10px;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
}

.sv-library-card__body {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sv-library-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.sv-library-card__title {
  margin: 0;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--text-primary, #f4f6ff);
}

.sv-library-card__meta {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-secondary, #8b93b8);
}

.sv-library-card__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}

.sv-library-card__date {
  font-size: 11px;
  color: var(--text-secondary, #6f789c);
}

.sv-library-pill {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
}

.sv-library-pill--finished {
  background: rgba(99, 102, 241, 0.2);
  color: #c7d2fe;
}

.sv-library-pill--green {
  background: rgba(35, 215, 141, 0.18);
  color: #4de1a3;
}
.sv-trend-row__main:hover,
.sv-trend-row:hover,
.sv-untold-card:hover,
.sv-publish-option:hover,
.sv-work-card:hover,
.sv-analytics-card:hover,
.sv-profile-card:hover,
.sv-profile-balance:hover,
.sv-profile-coin:hover,
.sv-pc-world-lab:hover,
.sv-pc-world-lab__panel:hover,
.sv-pc-character-placeholder:hover,
.sv-pc-tech-card:hover,
.sv-profile-menu__item:hover,
.sv-detail-char:hover,
.sv-detail-rule:hover,
.sv-detail-deri:hover,
.sv-detail-empty-card:hover,
.sv-detail-empty-header:hover,
.sv-library-item:hover,
.sv-library-card:hover,
.sv-pc-world-lab:focus-visible,
.sv-pc-world-lab__panel:focus-visible,
.sv-pc-character-placeholder:focus-visible,
.sv-pc-tech-card:focus-visible,
.sv-pc-unity-slot:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(12, 16, 35, 0.35);
  border-color: rgba(99, 102, 241, 0.35);
}

/* — Genre Chip Pop — */
@keyframes sv-chip-pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.12); }
  70% { transform: scale(0.95); }
  100% { transform: scale(1); }
}
.sv-chip-pop { animation: sv-chip-pop 0.28s ease; }
.sv-genre-chip {
  transition: background 0.2s ease, border-color 0.2s ease,
              color 0.2s ease, box-shadow 0.2s ease;
}
.sv-genre-chip.active { box-shadow: 0 0 0 3px rgba(99,102,241,0.25); }

/* — Tab Bounce — */
@keyframes sv-tab-bounce {
  0%, 100% { transform: translateY(0) scale(1); }
  30% { transform: translateY(-5px) scale(1.2); }
  60% { transform: translateY(-2px) scale(1.06); }
  80% { transform: translateY(-1px) scale(1.02); }
}
.sv-bounce { animation: sv-tab-bounce 0.4s cubic-bezier(0.22,1,0.36,1); }

/* — Button Hover — */
.sv-btn-primary, .sv-untold-btn {
  transition: opacity 0.15s, transform 0.15s, box-shadow 0.18s;
}
.sv-btn-primary:hover, .sv-untold-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(99,102,241,0.35);
}
.sv-btn-primary:active, .sv-untold-btn:active { transform: none; }
.sv-tabbar a:hover {
  transform: translateY(-2px);
  background: rgba(124, 144, 255, 0.12);
}
.sv-tabbar a:active { transform: translateY(0); }

/* — No-image Genre Gradient Placeholders — */
.sv-noimg-fantasy  { background-image: linear-gradient(135deg,#1a1040 0%,#2d1b69 50%,#0f0f1e 100%) !important; }
.sv-noimg-sf       { background-image: linear-gradient(135deg,#0f1729 0%,#0e3460 50%,#061020 100%) !important; }
.sv-noimg-romance  { background-image: linear-gradient(135deg,#1a0a20 0%,#4a1850 50%,#140010 100%) !important; }
.sv-noimg-thriller { background-image: linear-gradient(135deg,#0e1410 0%,#163010 50%,#080d06 100%) !important; }
.sv-noimg-modern   { background-image: linear-gradient(135deg,#0e1218 0%,#1c2d40 50%,#080c12 100%) !important; }

/* — Orbit Canvas Wrap — */
.sv-orbit-canvas-wrap { position: relative; z-index: 0; overflow: hidden; }
.sv-orbit-canvas-wrap > canvas[data-sv-orbit-canvas] {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none; z-index: 0;
  border-radius: inherit;
}
.sv-orbit-canvas-wrap > *:not(canvas) { position: relative; z-index: 1; }

/* — Reduced Motion Overrides — */
@media (prefers-reduced-motion: reduce) {
  .sv-card-world, .sv-card-story,
  .sv-btn-primary, .sv-genre-chip {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}

.sv-pc-unity-slot__status {
  margin: 0 0 12px;
  color: #8a93b4;
  font-size: 12px;
  line-height: 1.4;
}

.sv-pc-unity-slot--error {
  border-color: rgba(244, 63, 94, 0.6);
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.11), rgba(18, 23, 46, 0.86));
}

.sv-pc-unity-slot--error .sv-pc-unity-slot__badge {
  background: rgba(244, 63, 94, 0.28);
  color: #ffd0da;
}

.sv-pc-unity-slot__error-panel {
  margin: 10px 0 0;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(244, 63, 94, 0.35);
  background: rgba(244, 63, 94, 0.08);
  color: #e2e8f5;
}

.sv-pc-unity-slot__error-figure {
  margin: 0;
  display: grid;
  gap: 8px;
}

.sv-pc-unity-slot__error-image {
  width: 100%;
  max-height: 160px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.sv-pc-unity-slot__error-figure figcaption {
  font-size: 12px;
  color: #e5e7ff;
}

.sv-pc-unity-slot__retry {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid rgba(244, 63, 94, 0.45);
  background: rgba(244, 63, 94, 0.15);
  color: #ffd0da;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.sv-pc-unity-btn[disabled],
.sv-pc-unity-btn[aria-busy='true'] {
  opacity: 0.72;
  cursor: progress;
}

/* ============================================================
 * Notification page (sv-notify-*) — commercial-grade polish
 * Unity-inspector style modular composition + HTML5 semantics
 * ============================================================ */
.sv-notify-shell {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xl);
  padding-top: var(--spacing-lg);
  padding-bottom: var(--spacing-2xl);
}

.sv-notify-hero {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}
.sv-notify-hero__title {
  font-family: 'Fraunces', 'Noto Sans KR', sans-serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.15;
  margin: 0;
}
.sv-notify-hero__subtitle {
  margin: 0 0 var(--spacing-md);
  color: var(--text-secondary);
  font-size: 13px;
}

.sv-notify-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-md);
}
.sv-notify-kpi {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--spacing-md) var(--spacing-lg);
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  overflow: hidden;
  transition: transform .15s ease, border-color .15s ease;
}
.sv-notify-kpi:hover { transform: translateY(-1px); }
.sv-notify-kpi__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  text-transform: uppercase;
}
.sv-notify-kpi__value {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}
.sv-notify-kpi__sub {
  font-size: 12px;
  color: var(--text-secondary);
}
.sv-notify-kpi--accent {
  border-color: rgba(99, 102, 241, 0.45);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.10) inset;
}
.sv-notify-kpi--accent .sv-notify-kpi__value { color: var(--accent-indigo); }

.sv-notify-tabs {
  display: flex;
  gap: var(--spacing-xs);
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: var(--spacing-sm);
}
.sv-notify-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  transition: background .15s ease, color .15s ease;
}
.sv-notify-tab:hover { color: var(--text-primary); background: rgba(255,255,255,0.03); }
.sv-notify-tab.is-active {
  background: rgba(99, 102, 241, 0.12);
  color: var(--accent-indigo);
}
.sv-notify-tab__count {
  padding: 2px 8px;
  background: var(--bg-elevated);
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  min-width: 22px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.sv-notify-tab.is-active .sv-notify-tab__count {
  background: rgba(99, 102, 241, 0.22);
  color: var(--accent-indigo);
}

.sv-notify-feed {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}
.sv-notify-card {
  position: relative;
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: var(--spacing-md);
  align-items: center;
  padding: var(--spacing-md) var(--spacing-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  overflow: hidden;
}
a.sv-notify-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  border-color: var(--border-strong);
}
.sv-notify-card--unread {
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.08), var(--bg-card) 45%);
}
.sv-notify-card--unread::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10%;
  bottom: 10%;
  width: 3px;
  border-radius: 0 2px 2px 0;
  background: var(--accent-indigo);
}
.sv-notify-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  color: var(--text-secondary);
  flex-shrink: 0;
}
.sv-notify-card__icon svg { width: 20px; height: 20px; }
.sv-notify-card--like .sv-notify-card__icon {
  background: rgba(232, 90, 79, 0.15);
  color: var(--accent-coral);
}
.sv-notify-card--comment .sv-notify-card__icon {
  background: rgba(99, 102, 241, 0.15);
  color: var(--accent-indigo);
}
.sv-notify-card--system .sv-notify-card__icon {
  background: rgba(50, 213, 131, 0.15);
  color: var(--accent-green);
}
.sv-notify-card--subscribe_episode .sv-notify-card__icon {
  background: rgba(255, 181, 71, 0.15);
  color: var(--accent-amber);
}
.sv-notify-card__body { min-width: 0; }
.sv-notify-card__msg {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sv-notify-card__meta {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-secondary);
}
.sv-notify-card__time { font-variant-numeric: tabular-nums; }
.sv-notify-card__chevron {
  color: var(--text-tertiary);
  font-size: 18px;
  transition: transform .15s ease, color .15s ease;
}
a.sv-notify-card:hover .sv-notify-card__chevron {
  transform: translateX(2px);
  color: var(--text-secondary);
}

.sv-notify-card--skeleton {
  pointer-events: none;
}
.sv-notify-card--skeleton .sv-notify-card__icon {
  background: var(--bg-elevated);
}
.sv-skeleton {
  position: relative;
  display: block;
  background: var(--bg-elevated);
  border-radius: 4px;
  overflow: hidden;
}
.sv-skeleton::before {
  content: '';
  position: absolute;
  top: 0; left: -100%; right: 0; bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
  animation: sv-loading-shimmer 1.5s infinite linear;
}
.sv-skeleton--line { height: 12px; width: 78%; }
.sv-skeleton--line-short { width: 32%; margin-top: 8px; }

.sv-notify-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--spacing-2xl) var(--spacing-lg);
  background: var(--bg-card);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-lg);
  gap: var(--spacing-sm);
  min-height: 220px;
}
.sv-notify-empty__art {
  width: 64px;
  height: 64px;
  color: var(--accent-indigo);
  opacity: 0.55;
}
.sv-notify-empty__title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}
.sv-notify-empty__desc {
  margin: 0;
  font-size: 13px;
  color: var(--text-secondary);
  max-width: 320px;
}

.sv-notify-login {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--spacing-2xl) var(--spacing-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  gap: var(--spacing-md);
}
.sv-notify-login__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: var(--accent-indigo);
  color: var(--white);
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
}

@media (max-width: 480px) {
  .sv-notify-kpis { gap: var(--spacing-sm); }
  .sv-notify-kpi { padding: var(--spacing-sm) var(--spacing-md); }
  .sv-notify-kpi__value { font-size: 22px; }
  .sv-notify-kpi__sub { font-size: 11px; }
  .sv-notify-hero__title { font-size: 24px; }
  .sv-notify-card { padding: var(--spacing-md); gap: var(--spacing-sm); }
}

@media (prefers-reduced-motion: reduce) {
  .sv-notify-card,
  .sv-notify-kpi,
  .sv-notify-card__chevron {
    transition: none !important;
    transform: none !important;
  }
  .sv-skeleton::before { animation: none !important; }
}

/* ============================================================
 * Global secondary bar (.sv-subbar)
 * Sits beneath the global header for context actions
 * (back, page title, share / subscribe / filter etc).
 * ============================================================ */
.sv-subbar {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  min-height: 48px;
  padding: 0 var(--spacing-lg);
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-subtle);
}
.sv-subbar__back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: 0;
  padding: 6px 8px;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
}
.sv-subbar__back:hover { background: rgba(255, 255, 255, 0.04); }
.sv-subbar__back svg { width: 20px; height: 20px; }
.sv-subbar__title {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sv-subbar__title-main {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sv-subbar__title-sub {
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sv-subbar__actions {
  display: inline-flex;
  gap: var(--spacing-xs);
  align-items: center;
}
.sv-subbar__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 0;
  padding: 0;
  color: var(--text-primary);
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
}
.sv-subbar__action:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--accent-indigo);
}
.sv-subbar__action svg { width: 20px; height: 20px; }

.sv-detail-author {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  background: var(--bg-card);
  padding: 10px;
}
.sv-detail-author__avatar {
  position: relative;
  overflow: visible;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(124, 58, 237, .55), rgba(14, 165, 233, .45));
  cursor: pointer;
}
.sv-detail-author__avatar::after {
  content: attr(data-level);
  position: absolute;
  right: -8px;
  bottom: -6px;
  min-width: 22px;
  height: 15px;
  padding: 0 4px;
  border-radius: 999px;
  border: 1px solid #0b0f1a;
  background: linear-gradient(135deg, #f59e0b, #8b5cf6);
  color: #fff7ed;
  font-size: 9px;
  font-weight: 900;
  line-height: 15px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .35);
}
.sv-detail-author__info {
  min-width: 0;
  flex: 1;
}
.sv-detail-author__info strong {
  display: block;
  color: var(--text-primary);
  font-size: 13px;
}
.sv-detail-author__info span {
  color: var(--text-secondary);
  font-size: 11px;
}
.sv-detail-author button {
  height: 28px;
  border: 0;
  border-radius: 8px;
  background: var(--brand-primary, #6267f4);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

/* PC home level / badge summary */
.sv-home-level-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}
.sv-home-level-card {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  background:
    radial-gradient(circle at 92% 12%, rgba(255, 255, 255, 0.12), transparent 28%),
    rgba(255, 255, 255, 0.045);
}
.sv-home-level-card__head {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 800;
}
.sv-home-level-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 11px;
  background: rgba(14, 165, 233, 0.16);
  color: #bae6fd;
}
.sv-home-level-card--creator .sv-home-level-card__icon {
  background: rgba(245, 158, 11, 0.17);
  color: #fde68a;
}
.sv-home-level-card__value {
  margin-top: 12px;
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 900;
}
.sv-home-level-card__value span {
  margin-left: 6px;
  color: #ddd6fe;
  font-size: 14px;
}
.sv-home-level-card--creator .sv-home-level-card__value span {
  color: #fde68a;
}
.sv-home-level-guest-label {
  margin-left: 0;
  display: block;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
}
.sv-home-level-card--creator .sv-home-level-guest-label {
  color: #fde68a;
}
.sv-home-level-card__meta {
  margin-top: 6px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
}
.sv-home-level-card__track {
  height: 6px;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}
.sv-home-level-card__track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #38bdf8, #8b5cf6);
}
.sv-home-level-card--creator .sv-home-level-card__track span {
  background: linear-gradient(90deg, #f59e0b, #a78bfa);
}
@media (max-width: 720px) {
  .sv-home-level-board {
    grid-template-columns: 1fr;
  }
}

/* Editor save / review-request loading overlay */
body.sv-editor-save-overlay-open {
  overflow: hidden;
}
.sv-editor-save-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(8, 10, 18, 0.52);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, visibility 0.18s ease;
}
.sv-editor-save-overlay.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.sv-editor-save-overlay__panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  min-width: 200px;
  padding: 22px 28px;
  border-radius: 14px;
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.12));
  background: linear-gradient(180deg, rgba(28, 32, 48, 0.98), rgba(17, 20, 30, 0.98));
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}
.sv-editor-save-overlay__spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--accent-indigo, #8ea2ff);
  border-radius: 999px;
  animation: sv-ns-spin 0.75s linear infinite;
}
.sv-editor-save-overlay__msg {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary, #f4f4f5);
  text-align: center;
}

/* Library page (pcweb) */
.sv-library-page { padding-top: 12px; }
.sv-library-list { display: grid; gap: 10px; }

.sv-library-item {
  text-decoration: none;
  color: inherit;
  display: flex;
  gap: 10px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle, #23273a);
  background: var(--bg-card, linear-gradient(180deg, #121522 0%, #0f121b 100%));
  padding: 10px;
}
.sv-library-item__thumb {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  flex-shrink: 0;
  background-size: 55%;
}
.sv-library-item__body { min-width: 0; flex: 1; }
.sv-library-item__title {
  display: block;
  font-size: 14px;
  line-height: 1.3;
  color: var(--text-primary, #f1f3ff);
  margin-bottom: 3px;
}
.sv-library-item__meta {
  margin: 0;
  color: var(--text-secondary, #7f87a8);
  font-size: 11px;
  line-height: 1.35;
}
.sv-library-item__sub {
  margin: 5px 0 0;
  color: var(--text-secondary, #9da3bf);
  font-size: 10px;
  line-height: 1.3;
}

.sv-library-progress {
  margin-top: 6px;
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: var(--bg-elevated, #22263a);
  overflow: hidden;
}
.sv-library-progress__bar {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #6a6ef7 0%, #7f82ff 100%);
}

.sv-library-follow { margin-top: 20px; }
.sv-library-follow__head { margin-bottom: 10px; }
.sv-library-follow__head .sv-section-header__title { font-size: 16px; }
.sv-library-follow__avatars { display: flex; gap: 10px; flex-wrap: wrap; }

.sv-library-avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg-elevated, #22263a);
  color: var(--text-primary, #f1f3ff);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  flex-shrink: 0;
}

.sv-library-pill--amber {
  background: rgba(248, 179, 77, 0.18);
  color: #f6bd62;
}

.sv-library-header .sv-header__logo,
.sv-library-header .sv-header__page-title {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.6px;
}

/* AI creator notices (writing studio / editor) */
.sv-ai-creator-notice {
  margin: 0;
  color: var(--text-muted, #9aa3b2);
  font-size: 12px;
  line-height: 1.55;
}
.sv-ai-creator-notice strong {
  color: var(--text-secondary, #c5cad6);
  font-weight: 600;
}
.sv-ai-creator-notice--banner {
  margin: 10px 14px 0;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(124, 58, 237, 0.28);
  background: rgba(124, 58, 237, 0.08);
}
.sv-ai-creator-notice--banner .sv-ai-creator-notice__title {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary, #e8eaef);
}
.sv-ai-creator-notice--banner .sv-ai-creator-notice__list {
  margin: 0;
  padding-left: 18px;
}
.sv-ai-creator-notice--banner .sv-ai-creator-notice__list li {
  margin-bottom: 4px;
}
.sv-ai-creator-notice--banner .sv-ai-creator-notice__list li:last-child {
  margin-bottom: 0;
}
.sv-ai-creator-notice--inline {
  margin: 0 0 10px;
  padding: 8px 10px;
  border-radius: 8px;
  border-left: 3px solid rgba(124, 58, 237, 0.45);
  background: rgba(255, 255, 255, 0.03);
}
.sv-ai-creator-notice--compact {
  margin: 0 0 8px;
  font-size: 11px;
  opacity: 0.92;
}
.sv-editor-web__ai > .sv-ai-creator-notice--banner {
  margin: 0 0 12px;
}
.sv-editor-web__outline-wrap .sv-ai-creator-notice--inline {
  margin: 8px 0 0;
}
.sv-editor-assistant > .sv-ai-creator-notice--inline:first-of-type {
  margin-top: 0;
  margin-bottom: 12px;
}
.sv-manuscript-stage .sv-ai-creator-notice--inline {
  margin-bottom: 12px;
}
.sv-editor-web__top .sv-ai-creator-notice--job,
.sv-editor-topbar .sv-ai-creator-notice--job {
  grid-column: 1 / -1;
  width: 100%;
  margin: 4px 0 0;
}
.sv-conflict-ignored-notice {
  color: rgba(124, 58, 237, 0.9);
  background: rgba(124, 58, 237, 0.06);
}
.sv-conflict-ignore-reset {
  margin-left: 6px;
  font-size: 11px;
  color: var(--nika-text-muted, #9aa3b2);
  text-decoration: underline;
  cursor: pointer;
}
.sv-conflict-ignore-reset:hover {
  color: rgba(124, 58, 237, 0.9);
}
.sv-conflict-no-ask {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--nika-border-muted, #e5e7eb);
  font-size: 13px;
  color: var(--nika-text-secondary, #6b7280);
  cursor: pointer;
  user-select: none;
}
.sv-conflict-no-ask input[type="checkbox"] {
  width: 14px;
  height: 14px;
  accent-color: #7c3aed;
  cursor: pointer;
  flex-shrink: 0;
}

/* ── Phase illustrations ──────────────────────────────────────────────── */
.sv-editor-phase-illust {
  display: none;
  width: 100%;
  max-width: 100%;
  margin: 4px 0 10px;
  height: 180px;
  overflow: visible;
  align-items: center;
  gap: 10px;
}
.sv-editor-phase-illust--anchored {
  width: auto;
  max-width: none;
  margin: 0;
  height: auto;
}
@keyframes sv-illust-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-7px); }
}
.sv-editor-phase-illust svg {
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.11));
  animation: sv-illust-float 3.2s ease-in-out infinite;
}
.sv-editor-phase-illust:not(.sv-editor-phase-illust--anchored) svg {
  flex: 0 0 auto;
  width: 100px !important;
  height: auto !important;
  max-height: 160px;
}
.sv-illust-caption {
  position: relative;
  font-size: 9px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  text-align: left;
  padding: 8px 10px;
  background: rgba(10, 12, 28, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 10px;
  letter-spacing: 0.01em;
  line-height: 1.6;
  pointer-events: none;
  flex: 1 1 0;
  min-width: 0;
  white-space: pre-line;
  word-break: keep-all;
}
.sv-editor-phase-illust:not(.sv-editor-phase-illust--anchored) .sv-illust-caption::before {
  content: '';
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 7px solid transparent;
  border-right: 7px solid rgba(148, 163, 184, 0.22);
}
.sv-editor-phase-illust:not(.sv-editor-phase-illust--anchored) .sv-illust-caption::after {
  content: '';
  position: absolute;
  right: calc(100% - 1px);
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-right: 6px solid rgba(10, 12, 28, 0.72);
}

.sv-ai-cowrite-banner {
  background: #1E1F22;
  color: #9499A6;
  font-size: 12px;
  line-height: 1.6;
  padding: 10px 14px;
  border-radius: 6px;
  margin-bottom: 20px;
}

/* ── Banner icon img alignment ─────────────────────────── */
.sv-banner-hero-promo__meta span img,
.sv-banner-badge img,
.sv-banner-btn-secondary img {
  vertical-align: middle;
  margin-right: 4px;
  display: inline-block;
}

/* ── Banner Carousel ────────────────────────────────────── */
.sv-banner-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.sv-banner-carousel__track {
  display: flex;
  width: 100%;
  max-width: 100%;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.sv-banner-carousel__slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  border-radius: 0;
  margin-bottom: 0 !important;
  overflow: hidden;
}
.sv-banner-carousel .sv-banner-hero-promo {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow: hidden;
}
.sv-banner-carousel .sv-banner-hero-promo > * {
  min-width: 0;
  max-width: 100%;
}
.sv-banner-carousel .sv-banner-hero-title,
.sv-banner-carousel .sv-banner-hero-promo p,
.sv-banner-carousel .sv-grand-open-title,
.sv-banner-carousel .sv-grand-open-desc {
  min-width: 0;
  max-width: 100%;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.sv-banner-carousel .sv-banner-hero-promo__meta {
  max-width: 100%;
  flex-wrap: wrap;
}
.sv-banner-carousel .sv-banner-actions {
  width: 100%;
  max-width: 100%;
}
.sv-banner-carousel .sv-banner-btn,
.sv-banner-carousel .sv-banner-btn-secondary {
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  text-align: center;
}
.sv-banner-carousel__dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
}
.sv-banner-carousel__dot {
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.45);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: width 0.3s ease, background 0.3s ease;
}
.sv-banner-carousel__dot--active {
  width: 20px;
  background: rgba(255, 255, 255, 0.95);
}

/* ── 그랜드 오픈 배너 (슬라이드 1) ─────────────────────── */
.sv-banner-hero-promo--grand-open {
  background: linear-gradient(135deg, #0A1628 0%, #0F2645 35%, #1A3D6B 65%, #0D2440 100%);
  box-shadow:
    0 8px 40px rgba(15, 38, 69, 0.60),
    0 2px 12px rgba(10, 22, 40, 0.40),
    inset 0 1px 0 rgba(255, 255, 255, 0.10);
}
.sv-grand-open-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.sv-grand-open-label__ring {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #FCD34D;
  box-shadow: 0 0 0 0 rgba(252, 211, 77, 0.7);
  animation: sv-grand-open-ping 1.6s ease-out infinite;
}
.sv-grand-open-label__text {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.95);
  text-transform: uppercase;
}
@keyframes sv-grand-open-ping {
  0%   { box-shadow: 0 0 0 0 rgba(252, 211, 77, 0.7); }
  70%  { box-shadow: 0 0 0 10px rgba(252, 211, 77, 0); }
  100% { box-shadow: 0 0 0 0 rgba(252, 211, 77, 0); }
}
.sv-grand-open-title {
  font-size: clamp(22px, 5vw, 30px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.2;
  word-break: keep-all;
  overflow-wrap: anywhere;
  text-shadow:
    0 2px 16px rgba(26, 61, 107, 0.70),
    0 1px 2px rgba(0, 0, 0, 0.50);
}
.sv-grand-open-desc {
  font-size: 14px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.9);
  margin: 10px 0 14px;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.sv-grand-open-desc strong {
  color: #FCD34D;
  font-weight: 700;
}
.sv-grand-open-meta span {
  border-color: rgba(252, 211, 77, 0.5) !important;
  background: rgba(252, 211, 77, 0.15) !important;
  color: rgba(255, 255, 255, 0.95) !important;
}
.sv-grand-open-btn {
  background: #FCD34D !important;
  color: #1E1B4B !important;
  font-weight: 800;
  letter-spacing: 0.01em;
}

/* ── 앱 전용 배너 (슬라이드 3) ──────────────────────────── */
.sv-banner-hero-promo--app {
  background: linear-gradient(135deg, #0E7490 0%, #0284C7 50%, #1D4ED8 100%);
}

@media (prefers-reduced-motion: reduce) {
  .sv-banner-carousel__track  { transition: none; }
  .sv-banner-carousel__dot    { transition: none; }
  .sv-grand-open-label__ring  { animation: none; }
}

@media (max-width: 768px) {
  .sv-banner-hero-promo { padding: 20px; gap: 12px; }
  .sv-banner-hero-promo h3 { font-size: 22px; }
  .sv-grand-open-title { font-size: clamp(18px, 4vw, 22px); line-height: 1.3; }
  .sv-grand-open-desc { font-size: 13px; line-height: 1.6; margin: 8px 0 12px; }

  .sv-header { padding: 0 12px; }
  .sv-header__right { gap: 6px; }
  .sv-header__chip { height: 28px; padding: 0 8px; font-size: 11px; }
  .sv-header__brand-main { font-size: 18px; }
  .sv-header__brand-sub { font-size: 10px; letter-spacing: 0.2px; }
}

@media (max-width: 480px) {
  .sv-banner-hero-promo { padding: 14px; gap: 8px; }
  .sv-banner-hero-promo h3 { font-size: 17px; }
  .sv-grand-open-title { font-size: 16px; line-height: 1.35; }
  .sv-grand-open-desc { font-size: 12px; line-height: 1.55; margin: 4px 0 8px; }
  .sv-grand-open-meta span { font-size: 10px; height: 22px; padding: 0 8px; }
  .sv-banner-ai-lab { flex-direction: column; align-items: flex-start; gap: 8px; }
  .sv-banner-ai-lab__icons { width: 100px; height: 36px; }
  .sv-banner-btn,
  .sv-banner-btn-secondary { width: 100%; justify-content: center; box-sizing: border-box; }
}

@media (max-width: 360px) {
  .sv-grand-open-title { font-size: 14px; }
  .sv-grand-open-desc { font-size: 11px; }
  .sv-grand-open-meta span { font-size: 9px; }
}
