:root {
  color-scheme: dark;
  --bg: #07080d;
  --surface: #0e111a;
  --surface-2: #151927;
  --surface-3: #1c2232;
  --line: rgba(255, 255, 255, 0.1);
  --muted: #8d96aa;
  --text: #f4f6fb;
  --soft: #c6ccda;
  --pink: #ff2f7d;
  --pink-2: #ff6aa5;
  --cyan: #4bd6ff;
  --green: #4fe39a;
  --yellow: #ffd166;
  --danger: #ff5a67;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 47, 125, 0.22), transparent 34rem),
    radial-gradient(circle at 84% 8%, rgba(75, 214, 255, 0.13), transparent 30rem),
    var(--bg);
  color: var(--text);
  font-family:
    Inter, Pretendard, "Noto Sans KR", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  letter-spacing: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  min-height: 68px;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 8, 13, 0.86);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 20px;
  font-weight: 900;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--pink), #8b5cf6);
  box-shadow: 0 0 24px rgba(255, 47, 125, 0.45);
}

.nav {
  display: flex;
  gap: 6px;
  align-items: center;
}

.nav button,
.ghost-btn,
.icon-btn {
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--soft);
}

.nav button {
  padding: 0 12px;
  white-space: nowrap;
}

.nav button:hover,
.nav button.active,
.ghost-btn:hover,
.icon-btn:hover {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
}

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

.searchbox {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(30vw, 320px);
  min-width: 180px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.adult-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.adult-toggle:hover {
  border-color: rgba(255, 47, 125, 0.42);
  color: var(--text);
}

.adult-toggle-knob {
  position: relative;
  width: 34px;
  height: 20px;
  border-radius: 999px;
  background: rgba(141, 150, 170, 0.28);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.adult-toggle-knob::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--muted);
  transition: transform 160ms ease, background 160ms ease;
}

.adult-toggle.on {
  border-color: rgba(255, 47, 125, 0.58);
  background: rgba(255, 47, 125, 0.14);
  color: var(--pink-2);
  box-shadow: 0 0 26px rgba(255, 47, 125, 0.16);
}

.adult-toggle.on .adult-toggle-knob {
  background: rgba(255, 47, 125, 0.34);
}

.adult-toggle.on .adult-toggle-knob::after {
  transform: translateX(14px);
  background: var(--pink-2);
}

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

.search-page-form {
  display: flex;
  width: min(640px, 100%);
  gap: 10px;
  align-items: center;
  margin-bottom: 18px;
}

.search-page-form .searchbox {
  width: 100%;
  min-width: 0;
  margin: 0;
}

/* 검색 범위 선택(작품명·작가명·태그) */
.search-page-form .search-scope {
  flex: 0 0 116px;
}

.search-page-form .search-scope .custom-select-trigger {
  min-height: 46px;
  border-radius: 10px;
  font-weight: 800;
}

.search-history {
  width: min(640px, 100%);
  margin: -4px 0 18px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.search-history.empty-history {
  color: var(--muted);
  font-size: 13px;
}

.search-history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.search-history-head strong {
  color: var(--soft);
  font-size: 13px;
}

.search-history-head button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
}

.search-history-head button:hover {
  color: var(--pink-2);
}

.search-history-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.search-chip {
  display: inline-flex;
  overflow: hidden;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.search-chip-main,
.search-chip-remove {
  min-height: 30px;
  border: 0;
  background: transparent;
  color: var(--soft);
}

.search-chip-main {
  padding: 0 10px 0 12px;
  font-size: 13px;
}

.search-chip-remove {
  width: 30px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 16px;
}

.search-chip:hover {
  border-color: rgba(255, 47, 125, 0.38);
  background: rgba(255, 47, 125, 0.1);
}

.search-chip-remove:hover {
  color: var(--pink-2);
}

.primary-btn,
.danger-btn,
.plain-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  color: white;
  font-weight: 800;
  white-space: nowrap;
}

.primary-btn {
  background: linear-gradient(135deg, var(--pink), #e80060);
  box-shadow: 0 12px 28px rgba(255, 47, 125, 0.3);
}

.danger-btn {
  background: var(--danger);
}

.plain-btn {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.08);
}

.ghost-btn {
  padding: 0 14px;
}

.icon-btn {
  display: grid;
  width: 40px;
  padding: 0;
  place-items: center;
}

.main {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 28px;
}

.hero {
  position: relative;
  display: grid;
  width: min(1384px, calc(100% - 56px));
  margin: 24px auto 0;
  min-height: 360px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(7, 8, 13, 0.95) 0%, rgba(7, 8, 13, 0.72) 38%, rgba(7, 8, 13, 0.2) 100%),
    url("./assets/hero-red-omega.jpg") center right / cover;
}

.hero-inner {
  display: grid;
  align-content: center;
  gap: 18px;
  width: min(620px, 100%);
  padding: 48px;
}

/* 히어로 바로 아래 콘텐츠 영역 상단 여백 정리 */
.hero + .main {
  padding-top: 24px;
}

.eyebrow {
  color: var(--pink-2);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero h1,
.page-title h1 {
  margin: 0;
  font-size: 56px;
  line-height: 1.02;
}

.hero p,
.page-title p {
  margin: 0;
  color: var(--soft);
  font-size: 17px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 100%;
}

.hero {
  cursor: pointer;
}

/* 에디터 설명: 정확히 2줄 박스, 절대 넘치지 않음 */
.hero-note {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 460px;
  max-height: calc(1.7em * 2);
}

.hero-dots {
  position: absolute;
  right: 24px;
  bottom: 20px;
  display: flex;
  gap: 8px;
}

.hero-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  cursor: pointer;
  transition: width 0.2s ease;
}

.hero-dots button.on {
  width: 22px;
  background: var(--pink-2, #ff7aa8);
}

/* 관리자: 히어로 배너 설정 */
.admin-home-divider {
  margin-top: 6px;
  padding: 10px 4px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.hero-config {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.hero-config-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.hero-config-head h3 {
  margin: 0;
  font-size: 16px;
}

.hero-config-head span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.hero-slot {
  display: grid;
  grid-template-columns: 26px 120px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
}

.hero-slot-num {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: rgba(255, 47, 125, 0.18);
  color: var(--pink-2, #ff7aa8);
  font-weight: 900;
}

.hero-slot-preview {
  display: grid;
  place-items: center;
  width: 120px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
  background: var(--surface-2, #15151c);
  color: var(--muted);
  font-size: 12px;
}

.hero-slot-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slot-fields {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.hero-slot-fields select,
.hero-note-input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.hero-note-input {
  resize: none;
  font-family: inherit;
  line-height: 1.5;
}

.hero-img-upload {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-self: start;
  padding: 8px 12px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--soft);
  font-size: 13px;
  cursor: pointer;
}

.hero-img-upload small {
  color: var(--muted);
}

.hero-slot-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

@media (max-width: 760px) {
  .hero-slot {
    grid-template-columns: 26px 1fr;
  }
  .hero-slot-preview {
    grid-column: 1 / -1;
    width: 100%;
  }
  .hero-slot-actions {
    flex-direction: row;
  }
}

.stat-pill {
  flex: 1 1 128px;
  min-width: 128px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

.stat-pill strong {
  display: block;
  font-size: 20px;
}

.stat-pill span {
  color: var(--muted);
  font-size: 12px;
}

.section {
  margin-top: 34px;
}

.section-head,
.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  margin-bottom: 14px;
}

.section-head h2,
.panel-head h2 {
  margin: 0;
  font-size: 22px;
}

.section-head p,
.panel-head p {
  margin: 4px 0 0;
  color: var(--muted);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

/* 홈 테마 가로 스크롤 행 */
.home-themes {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 36px;
}

.theme-row {
  min-width: 0;
}

.theme-row-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 14px;
}

.theme-row-head h2 {
  margin: 0;
  font-size: 21px;
}

.theme-row-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.theme-row-scroll {
  display: flex;
  gap: 14px;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 10px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}

.theme-row-scroll::-webkit-scrollbar {
  height: 8px;
}

.theme-row-scroll::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 999px;
}

.theme-card {
  display: grid;
  gap: 8px;
  /* 적으면 늘어나 폭을 채우고(최대 220), 많으면 168 기준으로 가로 스크롤 */
  flex: 1 0 168px;
  max-width: 220px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  scroll-snap-align: start;
}

.theme-poster {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 10px;
  background: var(--surface-2, #15151c);
}

.theme-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.theme-card:hover .theme-poster img {
  transform: scale(1.04);
}

.theme-poster .badge {
  position: absolute;
  top: 8px;
  left: 8px;
}

.theme-card strong {
  font-size: 14px;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.theme-card span {
  color: var(--muted);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.theme-card-tags b {
  color: var(--pink-2, #ff7aa8);
  font-weight: 700;
}

.theme-card-sub {
  margin-top: -2px;
  font-size: 11px;
}

@media (max-width: 760px) {
  .theme-card {
    flex-basis: 132px;
    max-width: 160px;
  }
}

/* 카테고리(더보기) 페이지 */
.category-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 8px 0 20px;
}

.category-head h1 {
  margin: 0;
  font-size: 24px;
}

.category-head span {
  color: var(--muted);
  font-size: 14px;
}

/* 관리자 홈 구성 */
.admin-home-config {
  display: grid;
  gap: 16px;
}

.admin-home-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 5;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2, #15151c);
}

.admin-home-count {
  font-weight: 800;
}

.admin-home-toolbar-btns {
  display: flex;
  gap: 10px;
}

.home-row-config {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.home-row-config-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.home-row-num {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  border-radius: 8px;
  background: rgba(255, 47, 125, 0.18);
  color: var(--pink-2, #ff7aa8);
  font-weight: 900;
}

.home-row-title {
  flex: 1;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-weight: 800;
}

.home-row-config-actions {
  display: flex;
  gap: 6px;
}

.home-row-config-actions .icon-btn.danger {
  color: #ff9aa4;
}

.home-config-block > label {
  display: block;
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 6px;
}

.home-config-block > label span {
  color: var(--muted);
  font-weight: 600;
  font-size: 12px;
}

.home-config-hint {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12px;
}

.home-work-search {
  width: 100%;
  min-height: 40px;
  margin-bottom: 8px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.home-work-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
  max-height: 240px;
  overflow-y: auto;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.home-work-pick {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.home-work-pick.on {
  border-color: rgba(255, 47, 125, 0.6);
  background: rgba(255, 47, 125, 0.12);
}

.home-work-pick img {
  width: 28px;
  height: 36px;
  object-fit: cover;
  border-radius: 5px;
  flex: 0 0 auto;
}

.home-work-pick span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}

.home-work-pick em {
  color: var(--pink-2, #ff7aa8);
  font-style: normal;
  font-weight: 900;
}

.home-genre-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.home-genre-chips .chip {
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--soft);
  font-size: 12px;
  cursor: pointer;
}

.home-genre-chips .chip.on {
  border-color: rgba(255, 47, 125, 0.6);
  background: rgba(255, 47, 125, 0.14);
  color: var(--pink-2, #ff7aa8);
}

.home-range-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.home-range-grid > label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}

.home-range,
.home-random {
  display: flex;
  align-items: center;
  gap: 6px;
}

.home-range input,
.home-random input,
.home-range-grid select {
  min-height: 38px;
  min-width: 0;
  flex: 1;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.home-random input {
  max-width: 70px;
  flex: 0 0 auto;
}

.home-random span {
  font-size: 12px;
  color: var(--muted);
}

.mini-toggle {
  min-width: 48px;
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.mini-toggle.on {
  border-color: rgba(79, 227, 154, 0.5);
  background: rgba(79, 227, 154, 0.16);
  color: #8ee5b8;
}

.webtoon-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  text-align: left;
  transition: transform 160ms ease, border-color 160ms ease;
}

.webtoon-card:hover {
  border-color: rgba(255, 47, 125, 0.45);
  transform: translateY(-3px);
}

.poster {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--surface-2);
}

.poster img,
.wide-art img,
.episode-frame img,
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(255, 47, 125, 0.16);
  color: var(--pink-2);
  font-size: 12px;
  font-weight: 800;
}

.badge.alt {
  background: rgba(75, 214, 255, 0.16);
  color: var(--cyan);
}

.badge.ok {
  background: rgba(79, 227, 154, 0.14);
  color: var(--green);
}

.poster .badge {
  position: absolute;
  top: 10px;
  left: 10px;
}

.card-body {
  padding: 12px;
}

.card-body h3 {
  margin: 0 0 6px;
  overflow: hidden;
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--soft);
  font-size: 12px;
}

button.tag {
  cursor: pointer;
}

.tag.active,
.genre-filter:hover {
  border-color: rgba(255, 47, 125, 0.56);
  background: rgba(255, 47, 125, 0.14);
  color: var(--text);
}

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

.panel,
.table-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(14, 17, 26, 0.86);
  box-shadow: var(--shadow);
}

.panel {
  padding: 18px;
}

.table-panel {
  overflow: hidden;
}

.detail-hero {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  align-items: end;
}

.detail-poster {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  aspect-ratio: 3 / 4;
}

/* 표지가 박스를 넘쳐 잘려 확대돼 보이던 문제 수정: 박스에 맞춰 채움 */
.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.detail-info h1 {
  margin: 10px 0 10px;
  font-size: 44px;
}

.detail-info p {
  color: var(--soft);
  line-height: 1.75;
}

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

.episode-item,
.review-item,
.notice-item {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  text-align: left;
}

.episode-thumb {
  overflow: hidden;
  width: 84px;
  height: 64px;
  border-radius: 6px;
  background: var(--surface-2);
}

.episode-copy h3,
.review-copy h3 {
  margin: 0 0 5px;
  font-size: 15px;
}

.episode-copy p,
.review-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.support-box {
  display: grid;
  gap: 14px;
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.price-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.price-card strong {
  display: block;
  font-size: 20px;
}

.price-card span {
  color: var(--muted);
  font-size: 12px;
}

.ranking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 18px;
}

.ranking-layout.compact {
  grid-template-columns: minmax(0, 1fr);
}

.ranking-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

/* 랭킹 대분류 (종합 · 서브컬쳐 · 여성향) — 랭킹보다 작은 서브 내비 */
.ranking-divisions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.ranking-division {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--soft);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.ranking-division:hover {
  border-color: rgba(255, 47, 125, 0.4);
  color: var(--text);
}

.ranking-division.on {
  border-color: rgba(255, 47, 125, 0.72);
  background: linear-gradient(135deg, rgba(255, 47, 125, 0.92), rgba(198, 30, 92, 0.92));
  color: #fff;
  box-shadow: 0 8px 18px rgba(255, 47, 125, 0.24);
}

.ranking-settings-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
}

.ranking-settings-btn:hover {
  border-color: rgba(255, 47, 125, 0.46);
  background: rgba(255, 47, 125, 0.12);
}

.rank-row {
  display: grid;
  grid-template-columns: 56px 160px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  width: 100%;
  padding: 14px 16px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  text-align: left;
}

.rank-no {
  color: var(--pink-2);
  font-size: 22px;
  font-weight: 900;
}

.wide-art {
  overflow: hidden;
  height: 96px;
  border-radius: 6px;
}

.rank-row .wide-art img {
  object-position: center 38%;
}

.tabs,
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tab {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--soft);
}

.tab.active {
  border-color: rgba(255, 47, 125, 0.6);
  background: rgba(255, 47, 125, 0.16);
  color: var(--text);
}

.dashboard {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  min-height: calc(100vh - 124px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(14, 17, 26, 0.72);
  overflow: hidden;
}

.library-main {
  display: flex;
  justify-content: center;
}

.library-panel {
  width: min(760px, 100%);
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(14, 17, 26, 0.9);
  box-shadow: var(--shadow);
}

.library-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.library-head h1 {
  margin: 4px 0 0;
  font-size: 28px;
}

.library-tabs {
  display: flex;
  gap: 22px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.library-tabs button {
  position: relative;
  min-height: 40px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 900;
}

.library-tabs button.active {
  color: var(--pink-2);
}

.library-tabs button.active::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--pink);
}

.library-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.library-card {
  position: relative;
  display: grid;
  gap: 7px;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
}

.library-cover {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-2);
}

.library-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 160ms ease;
}

.library-card:hover .library-cover img {
  transform: scale(1.035);
}

.library-card strong {
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.library-card span {
  color: var(--muted);
  font-size: 12px;
}

.library-fav {
  position: absolute;
  top: 8px;
  left: 8px;
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 1px solid rgba(255, 47, 125, 0.45);
  border-radius: 999px;
  background: rgba(255, 47, 125, 0.78);
  color: #fff;
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(255, 47, 125, 0.28);
}

.library-up {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  min-width: 30px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  background: var(--pink);
  color: white !important;
  font-size: 10px !important;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(255, 47, 125, 0.34);
}

.mypage-main {
  display: grid;
  gap: 16px;
}

.mypage-hero,
.mypage-panel,
.mypage-quick-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(14, 17, 26, 0.86);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
}

.mypage-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px 210px;
  gap: 22px;
  align-items: center;
  padding: 26px;
}

.mypage-profile {
  display: flex;
  gap: 18px;
  align-items: center;
}

.mypage-avatar {
  position: relative;
  width: 112px;
  height: 112px;
}

.mypage-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  object-fit: cover;
}

.mypage-avatar button {
  position: absolute;
  right: 3px;
  bottom: 5px;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(5, 7, 12, 0.9);
  color: var(--text);
}

.mypage-profile h1 {
  margin: 0;
  font-size: 30px;
}

.mypage-profile span,
.mypage-profile p {
  color: var(--muted);
}

.mypage-profile p {
  margin: 12px 0 0;
}

.mypage-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.mypage-stats div {
  padding: 18px 12px;
  text-align: center;
}

.mypage-stats div + div {
  border-left: 1px solid var(--line);
}

.mypage-stats span {
  display: block;
  color: var(--muted);
  font-weight: 800;
}

.mypage-stats strong {
  display: block;
  margin-top: 6px;
  color: var(--pink);
  font-size: 28px;
}

.mypage-hero-actions {
  display: grid;
  gap: 10px;
}

.mypage-quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.mypage-quick-card {
  position: relative;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 92px;
  padding: 16px;
  color: var(--text);
  text-align: left;
}

.mypage-quick-card > span {
  color: var(--pink);
  font-size: 36px;
}

.mypage-quick-card strong,
.mypage-quick-card small {
  grid-column: 2;
}

.mypage-quick-card small {
  color: var(--muted);
}

.mypage-quick-card em {
  grid-column: 3;
  grid-row: 1 / span 2;
  color: var(--muted);
  font-size: 28px;
  font-style: normal;
}

.mypage-panel {
  padding: 18px;
}

.mypage-section-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.mypage-section-head h2 {
  margin: 0;
  font-size: 19px;
}

.mypage-section-head button {
  border: 0;
  background: transparent;
  color: var(--muted);
}

.continue-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.continue-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 110px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  text-align: left;
}

.continue-card img {
  width: 92px;
  height: 82px;
  border-radius: 6px;
  object-fit: cover;
}

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

.continue-card span {
  margin: 8px 0;
  color: var(--muted);
  font-size: 12px;
}

.continue-card em {
  color: var(--soft);
  font-style: normal;
  font-size: 13px;
}

.progress-bar {
  overflow: hidden;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.progress-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--pink);
}

.mypage-bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 16px;
}

.creator-sub-list {
  display: grid;
}

.creator-sub-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) 120px 170px auto 40px;
  gap: 12px;
  align-items: center;
  min-height: 58px;
  border-top: 1px solid var(--line);
  color: var(--soft);
}

.creator-sub-row small,
.creator-sub-row span {
  color: var(--muted);
}

.creator-sub-row .profile-row {
  gap: 10px;
}

.creator-sub-row .profile-row > div span {
  display: block;
  margin-top: 3px;
  font-size: 12px;
}

.creator-sub-row em {
  color: var(--pink-2);
  font-style: normal;
  font-weight: 800;
}

.settings-list {
  display: grid;
}

.settings-list button {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 54px;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  color: var(--soft);
  text-align: left;
}

.settings-list button span {
  color: var(--muted);
  font-size: 18px;
  text-align: center;
}

.settings-list button em {
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
}

.supports-main {
  display: grid;
  gap: 16px;
}

.supports-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.supports-head h1 {
  margin: 4px 0 8px;
  font-size: 34px;
}

.support-total-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-width: 420px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.support-total-grid div {
  padding: 18px 22px;
  background: rgba(255, 255, 255, 0.035);
}

.support-total-grid div + div {
  border-left: 1px solid var(--line);
}

.support-total-grid span,
.support-meta span,
.support-info label span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.support-total-grid strong {
  display: block;
  margin-top: 8px;
  color: var(--pink);
  font-size: 26px;
}

.supports-toolbar form {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 220px auto;
  gap: 10px;
}

.supports-toolbar .searchbox {
  width: 100%;
}

.supports-toolbar select {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  padding: 0 12px;
}

.supports-list {
  display: grid;
  gap: 12px;
}

.support-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) 430px auto;
  gap: 16px;
  align-items: center;
}

.support-thumb {
  overflow: hidden;
  width: 88px;
  height: 88px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.support-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.support-title-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.star-btn {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-size: 19px;
}

.star-btn.on {
  border-color: rgba(255, 209, 102, 0.72);
  background: rgba(255, 209, 102, 0.16);
  color: var(--yellow);
}

.support-title-row h2 {
  margin: 0;
  font-size: 19px;
}

.support-title-row span {
  color: var(--muted);
  font-size: 13px;
}

.support-info textarea {
  width: 100%;
  min-height: 54px;
  margin-top: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--soft);
  padding: 10px;
  resize: vertical;
}

.support-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.support-meta div {
  min-height: 66px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.support-meta strong {
  display: block;
  margin-top: 8px;
  font-size: 15px;
}

.notification-main {
  display: grid;
  gap: 16px;
}

.notification-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.notification-hero h1 {
  margin: 4px 0 8px;
  font-size: 34px;
}

.notification-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  min-width: 320px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.notification-summary div {
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.035);
  text-align: center;
}

.notification-summary div + div {
  border-left: 1px solid var(--line);
}

.notification-summary strong {
  display: block;
  color: var(--pink);
  font-size: 24px;
}

.notification-summary span {
  color: var(--muted);
  font-size: 12px;
}

.notification-list {
  display: grid;
  gap: 12px;
}

.notification-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 330px;
  gap: 16px;
  align-items: start;
}

.notification-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--pink-2);
  font-size: 22px;
}

.notification-row.cyan .notification-icon {
  color: var(--cyan);
}

.notification-row.yellow .notification-icon {
  color: var(--yellow);
}

.notification-row.green .notification-icon {
  color: var(--green);
}

.notification-title-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.notification-title-row h2 {
  margin: 0;
  font-size: 20px;
}

.notification-copy p {
  margin: 8px 0 12px;
  color: var(--soft);
}

.notification-example {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.notification-example span,
.notification-options span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.notification-example strong {
  font-size: 14px;
}

.notification-options {
  display: grid;
  gap: 12px;
}

.notification-options > div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.notification-options strong {
  display: block;
  margin-top: 6px;
}

.channel-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.channel-row button {
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(255, 47, 125, 0.42);
  border-radius: 999px;
  background: rgba(255, 47, 125, 0.12);
  color: var(--pink-2);
  font-size: 12px;
  font-weight: 900;
}

.channel-row button.muted {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
}

.setting-toggle {
  position: relative;
  width: 48px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.setting-toggle span {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--muted);
  transition: transform 160ms ease, background 160ms ease;
}

.setting-toggle.on {
  border-color: rgba(255, 47, 125, 0.5);
  background: rgba(255, 47, 125, 0.18);
}

.setting-toggle.on span {
  transform: translateX(20px);
  background: var(--pink);
}

.notification-rules {
  max-width: 860px;
}

.notification-board-main {
  display: grid;
  gap: 16px;
}

.notification-board-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.notification-board-hero h1 {
  margin: 4px 0 8px;
  font-size: 34px;
}

.notification-board-hero p {
  margin: 0;
  color: var(--soft);
}

.notification-board-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(76px, 1fr));
  min-width: 380px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.notification-board-summary div {
  padding: 14px 12px;
  background: rgba(255, 255, 255, 0.035);
  text-align: center;
}

.notification-board-summary div + div {
  border-left: 1px solid var(--line);
}

.notification-board-summary strong {
  display: block;
  color: var(--pink);
  font-size: 23px;
}

.notification-board-summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.notification-board {
  padding: 0;
  overflow: hidden;
}

.notification-board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.notification-board-head h2 {
  margin: 0;
  font-size: 20px;
}

.notification-board-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.notification-board-tabs button {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--soft);
  font-size: 13px;
  font-weight: 900;
}

.notification-board-tabs button.active {
  border-color: rgba(255, 47, 125, 0.55);
  background: rgba(255, 47, 125, 0.16);
  color: var(--pink-2);
}

.notification-table {
  display: grid;
}

.notification-table-row {
  display: grid;
  grid-template-columns: 86px 84px minmax(0, 1fr) 150px 150px 74px;
  gap: 14px;
  align-items: center;
  min-height: 58px;
  padding: 0 20px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  text-align: left;
}

.notification-table-label {
  min-height: 42px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

.notification-item {
  width: 100%;
  cursor: pointer;
  transition: background 160ms ease;
}

.notification-item:hover {
  background: rgba(255, 255, 255, 0.045);
}

.notification-no,
.notification-source,
.notification-date,
.notification-state {
  color: var(--soft);
  font-size: 13px;
  white-space: nowrap;
}

.notification-theme {
  display: inline-flex;
  width: fit-content;
  min-width: 52px;
  min-height: 26px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 47, 125, 0.42);
  border-radius: 999px;
  background: rgba(255, 47, 125, 0.13);
  color: var(--pink-2);
  font-size: 12px;
  font-weight: 900;
}

.notification-item.cyan .notification-theme {
  border-color: rgba(57, 208, 255, 0.36);
  background: rgba(57, 208, 255, 0.11);
  color: var(--cyan);
}

.notification-item.green .notification-theme {
  border-color: rgba(42, 231, 146, 0.34);
  background: rgba(42, 231, 146, 0.1);
  color: var(--green);
}

.notification-item.yellow .notification-theme {
  border-color: rgba(255, 211, 92, 0.34);
  background: rgba(255, 211, 92, 0.1);
  color: var(--yellow);
}

.notification-item.purple .notification-theme {
  border-color: rgba(189, 132, 255, 0.38);
  background: rgba(189, 132, 255, 0.12);
  color: #dcb8ff;
}

.notification-message {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.notification-message strong {
  overflow: hidden;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notification-message em {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notification-state {
  justify-self: end;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  font-weight: 900;
}

@media (max-width: 1180px) {
  .supports-head,
  .support-row,
  .notification-hero,
  .notification-row,
  .notification-board-hero {
    grid-template-columns: 1fr;
  }

  .supports-head,
  .notification-hero,
  .notification-board-hero {
    display: grid;
  }

  .support-total-grid {
    min-width: 0;
  }

  .notification-board-summary {
    min-width: 0;
  }

  .notification-table-row {
    grid-template-columns: 64px 72px minmax(0, 1fr) 120px 120px;
  }

  .notification-table-row > :last-child {
    display: none;
  }

  .support-row {
    align-items: stretch;
  }
}

@media (max-width: 760px) {
  .supports-toolbar form,
  .support-meta,
  .support-total-grid,
  .notification-board-summary {
    grid-template-columns: 1fr;
  }

  .support-total-grid div + div,
  .notification-board-summary div + div {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .notification-board-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .notification-table-label {
    display: none;
  }

  .notification-table-row {
    grid-template-columns: 58px minmax(0, 1fr) auto;
    gap: 9px 10px;
    min-height: 0;
    padding: 14px;
  }

  .notification-table-row > :last-child {
    display: inline-flex;
  }

  .notification-no {
    align-self: start;
    font-size: 11px;
  }

  .notification-theme {
    grid-column: 3;
    justify-self: end;
  }

  .notification-message {
    grid-column: 1 / 4;
  }

  .notification-message strong,
  .notification-message em {
    white-space: normal;
  }

  .notification-source {
    grid-column: 1 / 3;
  }

  .notification-date {
    grid-column: 1 / 4;
    color: var(--muted);
    font-size: 12px;
  }

  .notification-state {
    grid-column: 3;
    justify-self: end;
  }
}

@media (max-width: 1180px) {
  .mypage-hero,
  .mypage-bottom-grid {
    grid-template-columns: 1fr;
  }

  .mypage-quick-grid,
  .continue-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.sidebar {
  border-right: 1px solid var(--line);
  background: rgba(8, 10, 16, 0.55);
  padding: 18px;
}

.side-title {
  color: var(--pink-2);
  font-weight: 900;
  margin-bottom: 20px;
}

.side-nav {
  display: grid;
  gap: 6px;
}

.side-nav button {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--soft);
  text-align: left;
}

.side-nav button.active,
.side-nav button:hover {
  border-color: var(--line);
  background: rgba(255, 47, 125, 0.11);
  color: var(--text);
}

.dash-content {
  padding: 22px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.metric {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.metric span {
  color: var(--muted);
  font-size: 13px;
}

.metric strong {
  display: block;
  margin-top: 8px;
  font-size: 24px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field {
  display: grid;
  gap: 8px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  color: var(--soft);
  font-size: 13px;
  font-weight: 800;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  padding: 10px 12px;
  outline: 0;
}

.field textarea {
  min-height: 116px;
  resize: vertical;
}

.upload-zone {
  display: grid;
  min-height: 150px;
  place-items: center;
  border: 1px dashed rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  text-align: center;
}

.creator-studio-main {
  width: min(1380px, calc(100% - 40px));
  margin: 28px auto 64px;
}

.creator-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: calc(100vh - 128px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(12, 15, 24, 0.92);
  box-shadow: var(--shadow);
}

.creator-side {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 18px;
  padding: 22px 16px;
  border-right: 1px solid var(--line);
  background: rgba(8, 10, 16, 0.65);
}

.creator-side-brand {
  width: fit-content;
  border: 0;
  background: transparent;
  color: var(--pink-2);
  font-size: 16px;
  font-weight: 900;
}

.creator-side-profile {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 8px;
  width: 100%;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.creator-side-profile:hover {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.creator-side-profile .avatar {
  width: 48px;
  height: 48px;
}

.creator-side-profile strong,
.creator-side-profile span {
  display: block;
}

.creator-side-profile span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.creator-side-nav {
  display: grid;
  align-content: start;
  gap: 8px;
}

.creator-side-nav button,
.creator-guide {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--soft);
  font-weight: 800;
  text-align: left;
}

.creator-side-nav button span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted);
  font-size: 11px;
}

.creator-side-nav button.active,
.creator-side-nav button:hover {
  border-color: rgba(255, 47, 125, 0.28);
  background: rgba(255, 47, 125, 0.17);
  color: var(--text);
}

.creator-side-nav button.active span {
  border-color: rgba(255, 47, 125, 0.5);
  background: rgba(255, 47, 125, 0.18);
  color: var(--pink-2);
}

.creator-guide {
  justify-content: center;
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.035);
}

.creator-workspace {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(255, 47, 125, 0.04), transparent 260px),
    rgba(10, 13, 21, 0.78);
}

.creator-mobile-menu {
  display: none;
}

.creator-studio-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
}

.creator-studio-head h1 {
  margin: 4px 0 6px;
  font-size: 32px;
}

.creator-studio-head p {
  margin: 0;
  color: var(--muted);
}

.creator-head-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.creator-head-actions select,
.creator-mobile-menu select {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  padding: 0 12px;
}

.creator-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.creator-metric-card,
.creator-panel,
.creator-support-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.creator-metric-card {
  min-height: 128px;
  padding: 18px;
}

.creator-metric-card span,
.creator-support-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.creator-metric-card strong,
.creator-support-card strong {
  display: block;
  margin: 18px 0 8px;
  font-size: 25px;
}

.creator-metric-card em,
.creator-support-card em {
  color: var(--pink-2);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.creator-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.8fr);
  gap: 18px;
}

.creator-panel {
  padding: 18px;
}

.creator-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.creator-section-head h2 {
  margin: 0;
  font-size: 20px;
}

.creator-count {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 47, 125, 0.2);
  color: var(--pink-2);
  font-size: 12px;
  font-weight: 900;
}

.creator-activity-list,
.creator-queue-list,
.creator-work-list,
.creator-settlement-list {
  display: grid;
}

.creator-activity,
.creator-queue,
.creator-work-row,
.creator-notice-line,
.creator-settlement-list div {
  display: grid;
  gap: 12px;
  align-items: center;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

.creator-activity {
  grid-template-columns: 34px minmax(0, 1fr) auto;
}

.creator-activity > span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--pink-2);
  font-size: 12px;
  font-weight: 900;
}

.creator-activity strong,
.creator-activity em,
.creator-activity small,
.creator-queue strong,
.creator-queue span,
.creator-work-row strong,
.creator-work-row span {
  display: block;
}

.creator-activity em,
.creator-queue span,
.creator-work-row span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.creator-activity small {
  margin-top: 4px;
  color: var(--muted);
}

.creator-queue {
  grid-template-columns: 62px minmax(0, 1fr) auto;
}

.creator-queue img,
.creator-work-row img {
  width: 56px;
  height: 56px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
}

.creator-queue em,
.creator-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid rgba(255, 209, 102, 0.35);
  border-radius: 999px;
  background: rgba(255, 209, 102, 0.1);
  color: var(--yellow);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.creator-pill.hot {
  border-color: rgba(255, 47, 125, 0.45);
  background: rgba(255, 47, 125, 0.13);
  color: var(--pink-2);
}

.creator-work-row {
  grid-template-columns: 64px minmax(0, 1fr) 86px 80px 110px auto;
}

.creator-upload-grid,
.creator-support-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 18px;
}

.studio-wide {
  width: 100%;
  margin-top: 14px;
}

.creator-support-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.creator-support-card {
  padding: 18px;
}

.creator-support-notice {
  grid-column: 1 / -1;
}

.creator-notice-line {
  grid-template-columns: minmax(0, 1fr) auto;
}

.creator-notice-line span,
.creator-settlement-list em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.creator-bars {
  display: grid;
  gap: 16px;
}

.creator-bar-row {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) 90px;
  gap: 14px;
  align-items: center;
}

.creator-bar-row span,
.creator-bar-row strong {
  font-size: 14px;
}

.creator-bar-row div {
  overflow: hidden;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
}

.creator-bar-row i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--pink), var(--cyan));
}

.creator-settlement-list div {
  grid-template-columns: 120px minmax(0, 1fr) auto;
}

.creator-settlement-list strong {
  font-size: 18px;
}

.creator-work-create {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 18px;
  align-items: start;
}

.creator-works-main {
  padding: 0;
  overflow: hidden;
}

.creator-works-tabs {
  display: flex;
  gap: 24px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
}

.creator-works-backbar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
}

.creator-works-backbar strong {
  font-size: 15px;
}

/* ===== 후원 등급(티어) 설정 ===== */
.tier-config {
  margin-bottom: 18px;
}

.tier-help {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.tier-list {
  display: grid;
  gap: 12px;
}

.tier-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  padding: 14px;
}

.tier-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.tier-name {
  flex: 1 1 auto;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-weight: 800;
  font-size: 15px;
}

.tier-criteria {
  display: grid;
  gap: 8px;
}

.tier-crit {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font-size: 13px;
}

.tier-crit.on {
  border-color: rgba(255, 47, 125, 0.4);
  color: var(--soft);
}

.tier-crit input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--pink, #ff2f7d);
  flex: 0 0 auto;
}

.tier-crit > span {
  flex: 0 0 72px;
  font-weight: 700;
}

.tier-crit input[type="number"] {
  width: 140px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.tier-crit input[type="number"]:disabled {
  opacity: 0.4;
}

.tier-crit em {
  font-style: normal;
  color: var(--muted);
}

.tier-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}

@media (max-width: 640px) {
  .tier-crit {
    flex-wrap: wrap;
  }
  .tier-crit input[type="number"] {
    width: 100%;
  }
}

.creator-works-tabs button {
  position: relative;
  min-height: 50px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 900;
}

.creator-works-tabs button.active {
  color: var(--pink-2);
}

.creator-works-tabs button.active::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--pink);
}

.studio-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
  gap: 22px 26px;
  padding: 22px 18px 16px;
}

.studio-field {
  display: grid;
  align-content: start;
  gap: 10px;
}

.studio-field.full {
  grid-column: 1 / -1;
}

.studio-field label {
  color: var(--text);
  font-size: 15px;
  font-weight: 900;
}

.studio-field label span,
.studio-field label em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.studio-field input,
.studio-field select,
.studio-field textarea,
.studio-input-with-count {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
}

.studio-field input,
.studio-field select,
.studio-field textarea {
  padding: 10px 12px;
  outline: 0;
}

/* 작품 상태 등 드롭다운: 닫힌 박스·열린 옵션 목록 모두 어둡게 + 커스텀 화살표 */
.studio-field select {
  background-color: #15161d;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%23b9bdc9' stroke-width='1.6' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 34px;
  cursor: pointer;
}
.studio-field select:hover {
  border-color: rgba(255, 255, 255, 0.22);
}
.studio-field select option {
  background-color: #15161d;
  color: var(--text);
  padding: 8px;
}
.studio-field select option:checked {
  color: var(--pink-2);
}

.studio-input-with-count {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-right: 12px;
}

.studio-input-with-count input {
  min-height: 42px;
  border: 0;
  background: transparent;
}

.studio-input-with-count span,
.studio-textarea-wrap span {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.studio-choice-row,
.studio-tag-grid,
.studio-token-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.studio-choice-row button,
.studio-tag-grid button,
.studio-token-row button {
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--soft);
  font-size: 13px;
  font-weight: 900;
}

/* 핵심 태그 그리드: 30~40개도 깔끔히 — 작고 아담한 칩 */
.studio-tag-grid button {
  min-height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.studio-choice-row button {
  flex: 1 1 120px;
}

.studio-choice-row button.active,
.studio-tag-grid button.active {
  border-color: rgba(255, 47, 125, 0.58);
  background: rgba(255, 47, 125, 0.16);
  color: var(--pink-2);
}

.studio-token-row button {
  border-radius: 999px;
  color: var(--soft);
}

.studio-textarea-wrap {
  position: relative;
}

.studio-textarea-wrap textarea {
  min-height: 188px;
  resize: vertical;
}

.studio-textarea-wrap span {
  position: absolute;
  right: 12px;
  bottom: 10px;
}

.studio-upload-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 128px;
  gap: 12px;
}

.studio-dropzone {
  display: grid;
  min-height: 150px;
  place-items: center;
  border: 1px dashed rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  text-align: center;
  cursor: pointer;
}

.studio-dropzone:hover,
.episode-dropzone:hover {
  border-color: rgba(255, 47, 125, 0.5);
  background: rgba(255, 47, 125, 0.06);
}

.studio-dropzone strong {
  color: var(--soft);
}

.studio-dropzone span {
  font-size: 12px;
  line-height: 1.6;
}

.studio-thumb-preview,
.studio-preview-cover {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.studio-thumb-preview img,
.studio-preview-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.studio-thumb-preview {
  min-height: 150px;
}

.studio-thumb-preview button {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 26px;
  height: 26px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: var(--text);
}

.studio-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 0 18px 18px;
}

.studio-form-actions button {
  min-width: 128px;
}

.creator-preview-panel {
  position: sticky;
  top: 92px;
}

.creator-preview-panel h2 {
  margin: 0 0 6px;
  font-size: 19px;
}

.creator-preview-panel > p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 13px;
}

.studio-preview-card {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.studio-preview-cover {
  aspect-ratio: 3 / 4;
}

.studio-preview-cover span {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--pink);
  color: white;
  font-size: 11px;
  font-weight: 900;
}

.studio-preview-cover em {
  position: absolute;
  bottom: 10px;
  left: 10px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: white;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.studio-preview-card h3 {
  margin: 14px 0 4px;
  font-size: 18px;
}

.studio-preview-meta,
.studio-preview-card p,
.studio-preview-stats {
  color: var(--muted);
  font-size: 13px;
}

.studio-preview-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0;
}

.studio-preview-tags span {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--soft);
  font-size: 11px;
  font-weight: 800;
}

.studio-preview-tags span.core {
  border-color: rgba(255, 47, 125, 0.46);
  background: rgba(255, 47, 125, 0.13);
  color: var(--pink-2);
}

.studio-preview-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.creator-episode-upload {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: start;
}

.creator-episode-main {
  padding: 0;
  overflow: hidden;
}

.episode-upload-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.studio-select-card {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 44px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.studio-select-card img {
  width: 34px;
  height: 34px;
  border-radius: 7px;
  object-fit: cover;
}

.studio-select-card select {
  min-height: 34px;
  border: 0;
  background: transparent;
}

.episode-dropzone {
  display: grid;
  min-height: 120px;
  place-items: center;
  border: 1px dashed rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  text-align: center;
  cursor: pointer;
}

.episode-dropzone strong {
  color: var(--soft);
  font-size: 16px;
}

.episode-dropzone span {
  font-size: 13px;
  line-height: 1.6;
}

.episode-uploaded-head {
  margin-top: 2px;
  color: var(--soft);
  font-size: 14px;
  font-weight: 900;
}

.episode-uploaded-head span {
  color: var(--muted);
  font-size: 12px;
}

.episode-thumb-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 10px;
}

/* 드래그 정렬 가능한 썸네일 아이템 */
.episode-thumb-item {
  position: relative;
  overflow: hidden;
  min-height: 92px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: grab;
}
.episode-thumb-item:active {
  cursor: grabbing;
}
.episode-thumb-item .thumb-no {
  position: absolute;
  top: 6px;
  left: 6px;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.62);
  font-size: 11px;
  font-weight: 900;
}
.episode-thumb-item .thumb-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
}
.episode-thumb-item .thumb-remove:hover {
  background: rgba(255, 90, 110, 0.85);
}
.thumb-reorder-hint {
  font-style: normal;
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
}

/* 업로드 진행바 */
.upload-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
}
.upload-progress-bar {
  flex: 1 1 auto;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.upload-progress-bar i {
  display: block;
  height: 100%;
  background: var(--pink-2);
  transition: width 0.2s;
}

.episode-thumb-strip button {
  position: relative;
  overflow: hidden;
  min-height: 92px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.episode-thumb-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.episode-thumb-strip span,
.episode-thumb-strip em {
  position: absolute;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.62);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.episode-thumb-strip span {
  top: 6px;
  left: 6px;
}

.episode-thumb-strip em {
  top: 6px;
  right: 6px;
}

.episode-thumb-strip .episode-more {
  min-height: 92px;
  font-size: 24px;
}

.episode-choice-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.episode-choice-cards button {
  display: grid;
  gap: 8px;
  min-height: 118px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  text-align: left;
}

.episode-choice-cards button.active {
  border-color: rgba(255, 47, 125, 0.6);
  background: rgba(255, 47, 125, 0.14);
}

.episode-choice-cards span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.episode-readmode-fixed {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(255, 47, 125, 0.4);
  border-radius: 8px;
  background: rgba(255, 47, 125, 0.1);
}

.episode-readmode-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 20px;
  line-height: 1;
}

.episode-readmode-body {
  display: grid;
  gap: 4px;
  flex: 1;
}

.episode-readmode-body strong {
  font-size: 15px;
}

.episode-readmode-body span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.episode-readmode-fixed em {
  flex: 0 0 auto;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 47, 125, 0.2);
  color: var(--pink-2, #ff7aa8);
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}

.episode-readmode-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.episode-readmode-note b {
  color: var(--text);
}

.studio-preview-readmode {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.studio-preview-readmode span {
  color: var(--muted);
  font-size: 12px;
}

.studio-preview-readmode strong {
  font-size: 13px;
}

.episode-preview-panel {
  position: sticky;
  top: 92px;
}

.episode-preview-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.episode-preview-head h2 {
  margin: 0 0 6px;
}

.episode-preview-head p,
.episode-preview-caption {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.episode-preview-head span,
.episode-access-note span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(255, 47, 125, 0.42);
  border-radius: 999px;
  background: rgba(255, 47, 125, 0.12);
  color: var(--pink-2);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.phone-preview {
  overflow: hidden;
  width: min(300px, 100%);
  margin: 0 auto 14px;
  border: 5px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  background: #050711;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
}

.phone-top,
.phone-title {
  display: flex;
  justify-content: space-between;
  padding: 12px 16px;
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
}

.phone-title {
  display: block;
  padding-top: 0;
  font-size: 13px;
}

.phone-canvas {
  display: flex;
  overflow: hidden;
  height: 430px;
  background: #000;
}

.phone-preview.scroll .phone-canvas {
  flex-direction: column;
  overflow-y: auto;
  scrollbar-width: none;
}

.phone-preview.scroll .phone-canvas::-webkit-scrollbar {
  display: none;
}

.phone-canvas img {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone-preview.scroll .phone-canvas img {
  flex: 0 0 auto;
  min-height: 360px;
}

.phone-preview.page .phone-canvas img {
  flex-basis: 100%;
}

.phone-progress {
  width: 88px;
  height: 4px;
  margin: 10px auto 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
}

.episode-access-note {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.episode-access-note strong {
  margin-right: 8px;
}

.episode-access-note p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.admin-access-main,
.admin-console {
  min-height: calc(100vh - 68px);
  background:
    radial-gradient(circle at 50% 12%, rgba(255, 47, 125, 0.13), transparent 36rem),
    #06070b;
}

.admin-access-top {
  display: flex;
  gap: 26px;
  align-items: center;
  width: min(1480px, calc(100% - 48px));
  margin: 0 auto;
  padding: 34px 0;
}

.admin-access-top strong,
.admin-brand {
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 28px;
  font-weight: 1000;
  letter-spacing: 0;
}

.admin-access-top span,
.admin-brand span {
  color: var(--pink);
}

.admin-access-top em {
  padding-left: 24px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-style: normal;
}

.admin-access-layout {
  display: grid;
  grid-template-columns: minmax(0, 640px) 330px;
  gap: 18px;
  justify-content: center;
  align-items: center;
  width: min(1180px, calc(100% - 48px));
  margin: 18px auto 0;
}

.admin-login-card,
.admin-policy-card,
.admin-search-panel,
.admin-member-card,
.admin-review-tools,
.admin-review-table,
.admin-review-detail,
.admin-crud-toolbar,
.admin-crud-form,
.admin-crud-list,
.admin-settlement-summary div,
.admin-settlement-table {
  border: 1px solid rgba(255, 47, 125, 0.2);
  border-radius: 8px;
  background: rgba(15, 17, 24, 0.9);
  box-shadow: var(--shadow);
}

.admin-login-card {
  display: grid;
  justify-items: center;
  padding: 56px 78px;
  text-align: center;
}

.admin-shield {
  display: grid;
  width: 92px;
  height: 92px;
  place-items: center;
  border: 1px solid rgba(255, 47, 125, 0.42);
  border-radius: 24px;
  background: rgba(255, 47, 125, 0.16);
  color: var(--pink);
  font-size: 42px;
  box-shadow: 0 0 50px rgba(255, 47, 125, 0.22);
}

.admin-login-card h1 {
  margin: 30px 0 10px;
  font-size: 38px;
}

.admin-login-card p,
.admin-security-note span,
.admin-policy-card p {
  color: var(--muted);
  line-height: 1.7;
}

.admin-google-btn {
  width: min(480px, 100%);
  min-height: 56px;
  margin: 28px 0;
  border: 0;
  border-radius: 8px;
  background: white;
  color: #111;
  font-weight: 900;
}

.admin-security-note {
  display: grid;
  width: 100%;
  gap: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  text-align: left;
}

.admin-security-note strong {
  color: var(--pink-2);
}

.admin-policy-card {
  padding: 20px;
}

.admin-policy-card div {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 6px 12px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.admin-policy-card div:last-child {
  border-bottom: 0;
}

.admin-policy-card span {
  grid-row: span 2;
  color: var(--pink);
}

.admin-policy-card strong {
  color: var(--text);
}

.admin-policy-card p {
  margin: 0;
  font-size: 13px;
}

.admin-console {
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
}

.admin-sidebar {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 28px;
  min-height: calc(100vh - 68px);
  padding: 30px 22px;
  border-right: 1px solid var(--line);
  background: rgba(9, 10, 15, 0.9);
}

.admin-brand {
  width: fit-content;
  font-size: 24px;
}

.admin-account {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.admin-account > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 47, 125, 0.14);
  color: var(--pink-2);
}

.admin-account strong,
.admin-account em {
  display: block;
}

.admin-account em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.admin-nav {
  display: grid;
  align-content: start;
  gap: 10px;
}

.admin-nav button,
.admin-logout {
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--soft);
  font-weight: 900;
}

.admin-nav button span {
  color: var(--pink-2);
}

.admin-nav button.active {
  border-color: rgba(255, 47, 125, 0.34);
  background: rgba(255, 47, 125, 0.16);
  color: var(--pink-2);
  box-shadow: inset -3px 0 0 var(--pink);
}

.admin-logout {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.035);
}

.admin-content {
  display: grid;
  align-content: start;
  gap: 20px;
  padding: 42px;
}

.admin-mobile-tabs {
  display: none;
}

.admin-page-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
}

.admin-page-head h1 {
  margin: 0 0 8px;
  font-size: 32px;
}

.admin-page-head p,
.admin-page-head span {
  margin: 0;
  color: var(--muted);
}

.admin-search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  gap: 12px;
  padding: 28px;
  background: rgba(255, 47, 125, 0.045);
}

.admin-search-panel label {
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 58px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.admin-search-panel span {
  color: var(--pink-2);
  font-size: 26px;
}

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

.admin-member-card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
  overflow: hidden;
}

.admin-member-profile,
.admin-member-state,
.admin-member-actions {
  padding: 30px;
}

.admin-member-profile {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 26px;
  border-right: 1px solid var(--line);
}

.admin-user-icon {
  display: grid;
  width: 118px;
  height: 118px;
  place-items: center;
  border: 2px solid var(--pink);
  border-radius: 999px;
  color: var(--pink);
  font-size: 54px;
}

.admin-member-card dl {
  display: grid;
  gap: 18px;
  margin: 0;
}

.admin-member-card dl div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 14px;
}

.admin-member-card dt {
  color: var(--soft);
  font-weight: 900;
}

.admin-member-card dd {
  margin: 0;
  color: var(--text);
}

.admin-status {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
}

.admin-status.ok {
  background: rgba(79, 227, 154, 0.14);
  color: var(--green);
}

.admin-status.warn {
  background: rgba(255, 47, 125, 0.14);
  color: var(--pink-2);
}

.admin-member-state label,
.admin-review-detail label {
  display: grid;
  gap: 8px;
  margin-top: 22px;
  color: var(--soft);
  font-weight: 900;
}

.admin-member-state textarea,
.admin-review-detail textarea {
  min-height: 86px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  padding: 12px;
  resize: vertical;
}

.admin-member-state label span,
.admin-review-detail label span {
  justify-self: end;
  color: var(--muted);
  font-size: 12px;
}

.admin-member-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 28px;
  align-items: center;
  justify-content: flex-end;
  border-top: 1px solid var(--line);
}

.admin-member-actions strong {
  margin-right: auto;
}

.admin-member-actions label {
  display: flex;
  gap: 10px;
  align-items: center;
}

.admin-switch {
  position: relative;
  width: 48px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.admin-switch span {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--muted);
}

.admin-switch.on {
  background: rgba(255, 47, 125, 0.2);
}

.admin-switch.on span {
  transform: translateX(20px);
  background: var(--pink-2);
}

.admin-review-tools {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 14px;
}

.admin-review-tools button {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--soft);
  font-weight: 900;
}

.admin-review-tools button.active {
  border-color: rgba(255, 47, 125, 0.55);
  background: rgba(255, 47, 125, 0.16);
  color: var(--pink-2);
}

.admin-review-tools button span {
  margin-left: 8px;
}

.admin-review-tools select {
  margin-left: auto;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  padding: 0 12px;
}

.admin-review-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 0.85fr);
  gap: 12px;
}

.admin-review-table {
  overflow: hidden;
}

.admin-review-row {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr 0.85fr 0.7fr 0.7fr;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 56px;
  padding: 0 18px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--soft);
  text-align: left;
}

.admin-review-row.head {
  min-height: 46px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.admin-review-row.active {
  border-color: rgba(255, 47, 125, 0.55);
  background: rgba(255, 47, 125, 0.1);
  color: var(--text);
}

.admin-review-row em {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 8px;
  border: 1px solid rgba(255, 47, 125, 0.34);
  border-radius: 7px;
  color: var(--pink-2);
  font-style: normal;
  font-weight: 900;
}

.admin-review-row i {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  border-radius: 999px;
  background: #ff9f1c;
}

.admin-review-detail {
  padding: 18px;
}

.admin-review-detail-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
}

.admin-review-detail h2 {
  margin: 24px 0 8px;
}

.admin-review-detail h2 span {
  margin-left: 8px;
  color: var(--pink-2);
  font-size: 12px;
}

.admin-review-detail p {
  color: var(--muted);
}

.admin-review-hero {
  overflow: hidden;
  height: 220px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-review-hero img,
.admin-review-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-review-thumbs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.admin-review-thumbs img {
  height: 54px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.admin-review-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

.admin-settlement-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.admin-settlement-summary div {
  padding: 18px;
}

.admin-settlement-summary span {
  color: var(--muted);
  font-size: 13px;
}

.admin-settlement-summary strong {
  display: block;
  margin-top: 10px;
  font-size: 24px;
}

.admin-settlement-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1.3fr 0.9fr 1fr 0.9fr;
  gap: 12px;
  align-items: center;
  min-height: 58px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
}

.admin-settlement-row.head {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.admin-settlement-row .muted,
.admin-settlement-row em.muted {
  color: var(--muted);
  font-style: normal;
}

.admin-settlement-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin: 14px 0;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
}

.admin-settlement-note {
  flex: 1;
  min-width: 220px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.admin-settlement-buttons {
  display: flex;
  gap: 10px;
  flex: 0 0 auto;
}

/* 작가 정산 계좌/요약 */
.creator-settlement-page {
  display: grid;
  gap: 18px;
}

.payout-earnings-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.payout-earnings-grid div {
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
}

.payout-earnings-grid span {
  color: var(--muted);
  font-size: 12px;
}

.payout-earnings-grid strong {
  font-size: 20px;
}

.payout-note {
  margin: 6px 0 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.payout-note b {
  color: var(--text);
}

.payout-status {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.payout-status.ok {
  background: rgba(79, 227, 154, 0.16);
  color: #8ee5b8;
}

.payout-status.warn {
  background: rgba(255, 193, 7, 0.18);
  color: #ffd166;
}

.payout-form {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: 12px;
}

.payout-form .field {
  display: grid;
  gap: 8px;
}

.payout-form label {
  font-size: 13px;
  font-weight: 700;
  color: var(--soft);
}

.payout-form input,
.payout-form select {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.payout-actions {
  margin-top: 14px;
}

/* 정산 폼(셸) */
.settlement-form {
  display: grid;
  gap: 18px;
}

.settlement-period {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.settlement-period > label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.settlement-period input[type="month"] {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2, #15151c);
  color: var(--text);
  color-scheme: dark;
}

.settlement-period-meta {
  display: grid;
  gap: 4px;
  text-align: right;
  color: var(--muted);
  font-size: 12px;
}

.settlement-period-meta strong {
  color: var(--text);
}

.settlement-section {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.settlement-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.settlement-section-head h3 {
  font-size: 16px;
}

.settlement-section-head > div:first-child span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.admin-settlement-row.carry {
  grid-template-columns: 1fr 1fr 1fr;
}

.ok-tag {
  font-style: normal;
  color: #8ee5b8;
  font-size: 12px;
  font-weight: 800;
}

.warn-tag {
  font-style: normal;
  color: #ffd166;
  font-size: 12px;
  font-weight: 800;
}

.admin-settlement-row em {
  color: var(--pink-2);
  font-style: normal;
  font-weight: 900;
}

.admin-crud-shell {
  display: grid;
  gap: 14px;
}

.admin-crud-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 14px;
}

.admin-crud-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-crud-tabs button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--soft);
  font-weight: 900;
}

.admin-crud-tabs button.active {
  border-color: rgba(255, 47, 125, 0.55);
  background: rgba(255, 47, 125, 0.16);
  color: var(--pink-2);
}

.admin-crud-alert {
  padding: 12px 14px;
  border: 1px solid rgba(255, 209, 102, 0.34);
  border-radius: 8px;
  background: rgba(255, 209, 102, 0.1);
  color: var(--yellow);
  font-size: 13px;
  font-weight: 800;
}

.admin-crud-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.52fr) minmax(0, 1fr);
  gap: 14px;
}

.admin-crud-form,
.admin-crud-list {
  padding: 20px;
}

.admin-crud-form-head,
.admin-crud-list-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  margin-bottom: 16px;
}

.admin-crud-form-head h2,
.admin-crud-list-head h2 {
  margin: 0 0 6px;
}

.admin-crud-form-head p,
.admin-crud-list-head span {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.admin-crud-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-crud-fields label {
  display: grid;
  gap: 7px;
  color: var(--soft);
  font-size: 12px;
  font-weight: 900;
}

.admin-crud-fields label.full {
  grid-column: 1 / -1;
}

.admin-crud-fields input,
.admin-crud-fields select,
.admin-crud-fields textarea {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  padding: 0 12px;
}

.admin-crud-fields textarea {
  min-height: 92px;
  padding: 12px;
  resize: vertical;
}

.admin-crud-check {
  align-content: start;
}

.admin-crud-check input {
  display: none;
}

.admin-crud-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

.admin-crud-table {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-crud-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(110px, 1fr)) minmax(150px, auto);
  gap: 10px;
  align-items: center;
  min-width: 900px;
  min-height: 52px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
}

.admin-crud-row.head {
  min-height: 42px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.admin-crud-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-crud-row-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.admin-crud-row-actions .ghost-btn,
.admin-crud-row-actions .danger-btn {
  min-height: 34px;
  padding: 0 10px;
}

.admin-crud-empty {
  padding: 30px;
  color: var(--muted);
  text-align: center;
}

.reader-mode-tabs {
  display: flex;
  gap: 6px;
}

/* 후원 모달 · 구독 */
.sub-label {
  margin: 14px 0 8px;
  font-size: 13px;
  font-weight: 800;
  color: var(--soft);
}

.sub-section {
  margin-top: 4px;
}

.sub-grid .price-card strong {
  font-size: 14px;
}

.sub-active {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 47, 125, 0.4);
  border-radius: 10px;
  background: rgba(255, 47, 125, 0.08);
  font-size: 13px;
}

.sub-coin-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 12px;
}

.sub-status {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.sub-status.active {
  background: rgba(120, 200, 160, 0.16);
  color: #8fe3b8;
}

.sub-status.lapsed {
  background: rgba(255, 176, 32, 0.16);
  color: #ffce6e;
}

.sub-status.canceled {
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
}

@media (max-width: 640px) {
  .sub-coin-row {
    grid-template-columns: 1fr auto;
  }
}

/* 작품 삭제 위험 구역 + 삭제 모달 */
.studio-field-hint {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.studio-danger-zone {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 18px;
  padding: 16px;
  border: 1px solid rgba(255, 90, 103, 0.4);
  border-radius: 12px;
  background: rgba(255, 90, 103, 0.06);
}

.studio-danger-zone strong {
  display: block;
  color: #ff9aa4;
}

.studio-danger-zone span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.danger-btn {
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid rgba(255, 90, 103, 0.6);
  border-radius: 8px;
  background: rgba(255, 90, 103, 0.16);
  color: #ff9aa4;
  font-weight: 800;
  cursor: pointer;
  flex: 0 0 auto;
}

.danger-btn:hover {
  background: rgba(255, 90, 103, 0.28);
}

.delete-work-msg {
  margin: 0 0 10px;
  line-height: 1.6;
}

.delete-work-sub {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.delete-pw-field {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}

.delete-pw-field span {
  font-size: 13px;
  font-weight: 700;
  color: var(--soft);
}

.delete-pw-field input {
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  letter-spacing: 0.3em;
  font-size: 18px;
}

.delete-work-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

.reader-illust-tag {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(255, 47, 125, 0.55);
  border-radius: 999px;
  background: rgba(255, 47, 125, 0.16);
  color: var(--pink-2);
  font-size: 13px;
  font-weight: 800;
}

.reader-mode-tabs button {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--soft);
  font-size: 12px;
  font-weight: 900;
}

.reader-mode-tabs button.active {
  border-color: rgba(255, 47, 125, 0.55);
  background: rgba(255, 47, 125, 0.16);
  color: var(--pink-2);
}

.reader-paged {
  position: relative;
  display: grid;
  min-height: calc(100vh - 146px);
  grid-template-columns: 64px minmax(0, 760px) 64px;
  gap: 16px;
  align-items: center;
  justify-content: center;
  padding: 24px 12px 54px;
  background: #000;
}

.reader-page-frame {
  display: grid;
  overflow: hidden;
  max-height: calc(100vh - 210px);
  place-items: center;
  background: #000;
}

.reader-page-frame img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 210px);
  object-fit: contain;
}

.reader-page-arrow {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 34px;
}

.reader-page-arrow:disabled {
  cursor: default;
  opacity: 0.35;
}

.reader-page-status {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--soft);
  font-size: 12px;
  font-weight: 900;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 14px;
}

th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.reader {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 18px;
}

.reader-stage {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #000;
}

.reader-toolbar {
  position: sticky;
  top: 68px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(3, 4, 7, 0.9);
  backdrop-filter: blur(16px);
}

.reader-strip {
  display: grid;
  justify-items: center;
  gap: 0;
  padding: 0 0 36px;
  background: #000;
}

/* ===== 작가 미니홈 페이지 ===== */
.author-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
  margin-bottom: 20px;
}

.author-banner {
  position: relative;
  height: 220px;
  background-size: cover;
  background-position: center;
}

.author-banner.default {
  background:
    radial-gradient(120% 140% at 20% 0%, rgba(255, 47, 125, 0.45), transparent 55%),
    radial-gradient(120% 140% at 90% 10%, rgba(120, 90, 255, 0.4), transparent 55%),
    linear-gradient(180deg, #1a1320, #0b0c12);
}

.author-banner-edit {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.author-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 18px;
  padding: 16px 24px 18px;
}

.author-avatar {
  width: 108px;
  height: 108px;
  margin-top: -64px; /* 아바타만 배너 위로 걸침 */
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #0b0c12;
  background: var(--surface-2, #15151c);
  flex: 0 0 auto;
}

.author-actions {
  align-self: center;
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-meta {
  min-width: 0;
  padding-bottom: 4px;
}

.author-meta h1 {
  margin: 0;
  font-size: 26px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.author-verified {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--pink, #ff2f7d);
  color: #fff;
  font-size: 11px;
  font-style: normal;
}

.author-bio {
  margin: 6px 0 8px;
  color: var(--soft);
  font-size: 14px;
}

.author-stats {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 13px;
}

.author-stats b {
  color: var(--text);
}

.author-actions {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
  padding-bottom: 4px;
}

.author-tabs {
  display: flex;
  gap: 24px;
  padding: 0 24px;
  border-top: 1px solid var(--line);
}

.author-tabs button {
  position: relative;
  min-height: 48px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  cursor: pointer;
}

.author-tabs button.on {
  color: var(--pink-2, #ff7aa8);
}

.author-tabs button.on::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--pink, #ff2f7d);
}

.author-works {
  flex-wrap: wrap;
}

@media (max-width: 720px) {
  .author-head {
    grid-template-columns: 1fr;
    justify-items: start;
    text-align: left;
  }
  .author-actions {
    width: 100%;
  }
  .author-actions .primary-btn {
    flex: 1;
  }
}

/* ===== 작가 공지 게시판 + 댓글 ===== */
.post-board-head {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.post-form {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  margin-bottom: 16px;
}

.post-form-title,
.post-form-body,
.comment-box input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
}

.post-form-body {
  resize: vertical;
  line-height: 1.6;
}

.post-form-perm {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

.post-form-perm button {
  min-height: 32px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--soft);
  font-weight: 700;
  cursor: pointer;
}

.post-form-perm button.on {
  border-color: rgba(255, 47, 125, 0.6);
  background: rgba(255, 47, 125, 0.14);
  color: var(--pink-2);
}

.post-form-actions {
  display: flex;
  justify-content: flex-end;
}

.post-list {
  display: grid;
  gap: 8px;
}

.post-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.post-item:hover {
  border-color: rgba(255, 47, 125, 0.4);
}

.post-item strong {
  display: block;
}

.post-item span {
  color: var(--muted);
  font-size: 12px;
}

.post-item em {
  color: var(--muted);
  font-style: normal;
}

.post-detail .post-title {
  margin: 12px 0 4px;
  font-size: 22px;
}

.post-date {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 16px;
}

.post-body {
  white-space: pre-wrap;
  line-height: 1.85;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  margin-bottom: 16px;
}

.post-comments h3 {
  font-size: 16px;
  margin: 8px 0 12px;
}

.post-comments h3 span {
  color: var(--pink-2);
}

.comment-box {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.comment-list {
  display: grid;
  gap: 12px;
}

.comment-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}

.comment-row strong {
  font-size: 13px;
}

.comment-row p {
  margin: 2px 0 0;
  color: var(--soft);
  line-height: 1.6;
  word-break: break-word;
}

.comment-row em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}

.comment-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
}

/* 대댓글(들여쓰기) + 답글 입력 */
.yt-replies {
  margin-top: 12px;
  display: grid;
  gap: 12px;
  padding-left: 6px;
  border-left: 2px solid rgba(255, 255, 255, 0.06);
}
.yt-comment.reply .yt-avatar {
  width: 30px;
  height: 30px;
}
.yt-reply-box {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.yt-reply-box input {
  flex: 1 1 auto;
  background: none;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  padding: 6px 2px;
  color: var(--text);
  font-size: 13px;
}
.yt-reply-box input:focus {
  outline: none;
  border-bottom-color: var(--pink-2);
}

/* 회차 상태 배지 색 + 반려 사유 */
.ep-status.rejected {
  color: #ff7a8a;
  font-weight: 700;
}
.ep-status.pending {
  color: #f0b43c;
}
.ep-status.approved {
  color: #58d68d;
}
.ep-reject {
  display: block;
  color: #ff7a8a;
  font-size: 11px;
  font-style: normal;
  margin-top: 2px;
}

/* ===== 유튜브 스타일 댓글 ===== */
.comment-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 8px 0 16px;
}
.comment-head h3 {
  font-size: 16px;
  margin: 0;
}
.comment-sort {
  display: inline-flex;
  gap: 4px;
}
.comment-sort button {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.comment-sort button:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--soft);
}
.comment-sort button.on {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.comment-compose {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}
.comment-compose .avatar.mini {
  flex: 0 0 auto;
}
.comment-compose input {
  flex: 1 1 auto;
  background: none;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0;
  padding: 8px 2px;
  color: var(--text);
  font-size: 14px;
}
.comment-compose input:focus {
  outline: none;
  border-bottom-color: var(--pink-2);
}

.yt-comment {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
.yt-avatar {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  background: #1a1c26;
}
.yt-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.yt-body {
  min-width: 0;
}
.yt-meta {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.yt-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}
.yt-time {
  font-size: 12px;
  color: var(--muted);
}
.yt-text {
  margin: 3px 0 0;
  color: var(--soft);
  line-height: 1.55;
  font-size: 14px;
  word-break: break-word;
  white-space: pre-wrap;
}
.yt-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
}
.yt-like {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 12px;
  padding: 6px 10px 6px 6px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.yt-like:hover {
  background: rgba(255, 255, 255, 0.06);
}
.yt-like .yt-thumb {
  font-size: 15px;
  filter: grayscale(1) opacity(0.7);
  transition: filter 0.15s, transform 0.1s;
}
.yt-like.on {
  color: var(--pink-2);
}
.yt-like.on .yt-thumb {
  filter: none;
  transform: scale(1.05);
}
.yt-like-n {
  font-weight: 600;
}
.yt-mod {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.yt-mod:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--soft);
}
.yt-mod.danger:hover {
  background: rgba(255, 90, 110, 0.14);
  color: #ff7a8a;
}

/* 회차 잠금(열람 권한 부족) 화면 */
.reader-lock {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 12px;
  min-height: 360px;
  padding: 48px 20px;
  text-align: center;
  background: #000;
}

.reader-lock-icon {
  font-size: 40px;
  opacity: 0.85;
}

.reader-lock h2 {
  margin: 0;
  font-size: 20px;
}

.reader-lock p {
  margin: 0;
  color: var(--muted);
}

.reader-lock .primary-btn {
  margin-top: 8px;
}

/* 페이지 뷰: 다음/이전 장 미리 받기(화면엔 안 보임) */
.reader-preload {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.episode-frame {
  width: min(760px, 100%);
  line-height: 0;
  background: #000;
}

.episode-frame + .episode-frame {
  margin-top: -6px;
}

.episode-frame img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* 뷰어 이미지 보호: 드래그·선택·길게눌러 저장 방지(우클릭은 컨테이너에서 차단) */
.reader-strip img,
.reader-page-frame img {
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  pointer-events: none;
}

.reader-side {
  position: sticky;
  top: 88px;
  align-self: start;
}

.avatar {
  overflow: hidden;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  background: var(--surface-2);
}

.avatar.mini {
  width: 30px;
  height: 30px;
}

.profile-menu-wrap {
  position: relative;
}

.profile-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 4px 10px 4px 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-weight: 800;
}

.profile-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 60;
  width: 276px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(13, 18, 27, 0.98);
  box-shadow: var(--shadow), 0 0 0 1px rgba(255, 47, 125, 0.05);
}

.profile-popover-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.profile-popover-head .avatar {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.profile-popover-head strong {
  display: block;
  color: var(--text);
  font-size: 14px;
  line-height: 1.2;
}

.profile-popover-head span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.profile-menu-list {
  display: grid;
  padding: 8px;
}

.profile-menu-item {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 38px;
  padding: 0 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--soft);
  text-align: left;
}

.profile-menu-item strong {
  min-width: 0;
  overflow: hidden;
  font-size: 13px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-menu-icon {
  color: var(--muted);
  font-size: 16px;
  text-align: center;
}

.profile-menu-item:hover {
  background: rgba(255, 47, 125, 0.12);
  color: var(--text);
}

.profile-menu-item.featured {
  margin: 3px 0;
  border: 1px solid rgba(255, 47, 125, 0.58);
  background: rgba(255, 47, 125, 0.12);
  color: var(--pink-2);
  box-shadow: inset 0 0 0 1px rgba(255, 47, 125, 0.08);
}

.profile-menu-item.featured .profile-menu-icon {
  color: var(--pink-2);
}

.profile-menu-item.admin-link {
  color: var(--cyan);
}

.profile-menu-item.logout {
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  border-radius: 0;
}

.new-badge {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--pink);
  color: white;
  font-size: 10px;
  font-weight: 900;
}

.profile-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  width: 100vw;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(12px);
}

.modal {
  width: min(520px, 100%);
  max-height: min(760px, 90vh);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #10131e;
  box-shadow: var(--shadow);
}

.modal-head,
.modal-body {
  padding: 20px;
}

.modal-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.modal-head h2 {
  margin: 0;
}

.ranking-settings-modal {
  width: min(360px, calc(100vw - 32px));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: rgba(14, 17, 26, 0.98);
  box-shadow: var(--shadow), 0 0 0 1px rgba(255, 47, 125, 0.08);
}

@media (max-width: 430px) {
  .ranking-settings-modal {
    width: calc(100vw - 28px);
  }

  .ranking-settings-head,
  .ranking-settings-section,
  .ranking-settings-actions {
    padding-left: 18px;
    padding-right: 18px;
  }
}

.ranking-settings-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 22px 14px;
}

.ranking-settings-head h2 {
  margin: 0;
  font-size: 24px;
}

.ranking-settings-section {
  padding: 16px 22px;
  border-top: 1px solid var(--line);
}

.settings-label {
  margin-bottom: 12px;
  color: var(--soft);
  font-size: 13px;
  font-weight: 900;
}

.settings-label span,
.settings-label em {
  color: var(--muted);
}

.settings-label.row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.settings-label small {
  color: var(--muted);
  font-size: 12px;
}

.settings-radio-list {
  display: grid;
  gap: 12px;
}

.settings-radio {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 28px;
  border: 0;
  background: transparent;
  color: var(--muted);
  text-align: left;
}

.settings-radio span {
  width: 20px;
  height: 20px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
}

.settings-radio.active {
  color: var(--text);
}

.settings-radio.active span {
  border: 2px solid var(--pink);
  box-shadow: inset 0 0 0 4px rgba(14, 17, 26, 0.98), 0 0 0 2px rgba(255, 47, 125, 0.16);
  background: var(--pink);
}

.settings-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.settings-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--soft);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.settings-chip span {
  line-height: 1;
}

.settings-chip strong {
  font-size: 11px;
  line-height: 1;
}

.settings-chip.active {
  border-color: rgba(255, 47, 125, 0.72);
  background: linear-gradient(135deg, rgba(255, 47, 125, 0.88), rgba(198, 30, 92, 0.9));
  color: white;
  box-shadow: 0 8px 18px rgba(255, 47, 125, 0.22);
}

@media (max-width: 520px) {
  .settings-chip {
    min-height: 32px;
    padding: 0 11px;
    font-size: 12px;
  }
}

.settings-status-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.settings-radio.compact {
  justify-content: center;
}

.ranking-settings-actions {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 12px;
  padding: 18px 22px 22px;
  border-top: 1px solid var(--line);
}

.login-form {
  display: grid;
  gap: 14px;
}

.social-login {
  display: grid;
  gap: 10px;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.05s ease;
}

.social-btn:hover {
  filter: brightness(0.96);
}

.social-btn:active {
  transform: translateY(1px);
}

.social-btn .social-icon {
  flex: 0 0 auto;
}

.social-google {
  background: #ffffff;
  color: #1f1f1f;
  border-color: #dadce0;
}

.social-apple {
  background: #000000;
  color: #ffffff;
  border-color: #000000;
}

.social-kakao {
  background: #fee500;
  color: #191600;
  border-color: #fee500;
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 16px;
  color: var(--muted);
  font-size: 12px;
}

.login-divider::before,
.login-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* 약관 동의 (#5) */
.login-signup-hint {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.terms-agreed-note {
  margin-top: 14px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(79, 227, 154, 0.1);
  color: #8ee5b8;
  font-size: 12px;
  text-align: center;
}

.link-btn {
  border: 0;
  background: transparent;
  color: var(--pink-2, #ff7aa8);
  font-size: 12px;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

.terms-consent {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
}

.terms-all {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 6px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
}

.terms-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.terms-check {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  color: transparent;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.terms-check.on {
  border-color: var(--pink-2, #ff4f7d);
  background: rgba(255, 47, 125, 0.18);
  color: var(--pink-2, #ff7aa8);
}

.terms-label {
  flex: 1;
  font-size: 13px;
  color: var(--soft);
}

.terms-label b {
  color: var(--muted);
  font-weight: 700;
}

.terms-view {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  text-decoration: underline;
  cursor: pointer;
}

.terms-view-backdrop {
  z-index: 130;
}

.terms-view-modal {
  max-width: 520px;
}

.terms-doc-text {
  max-height: 50vh;
  overflow: auto;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.25);
  color: var(--soft);
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-wrap;
  font-family: inherit;
}

.terms-view-actions {
  display: flex;
  justify-content: flex-end;
  padding: 14px 0 4px;
}

/* 성인 인증 (#6) */
.adult-verify-modal {
  max-width: 420px;
}

.adult-verify-msg {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.6;
}

.adult-verify-sub {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.adult-verify-sub em {
  font-style: normal;
  color: var(--pink-2, #ff7aa8);
}

.adult-verify-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.adult-verify-actions button {
  flex: 1;
}

/* 창작자 시작 페이지 (#6) */
.creator-intro {
  display: grid;
  place-items: center;
  min-height: 70vh;
  padding: 40px 20px;
}

.creator-intro-card {
  width: min(520px, 100%);
  padding: 40px 32px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface, rgba(255, 255, 255, 0.03));
  text-align: center;
}

.creator-intro-badge {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 16px;
  background: rgba(255, 47, 125, 0.16);
  color: var(--pink-2, #ff7aa8);
  font-size: 30px;
}

.creator-intro-card h1 {
  font-size: 24px;
  margin-bottom: 10px;
}

.creator-intro-card > p {
  color: var(--muted);
  line-height: 1.7;
}

.creator-intro-list {
  display: grid;
  gap: 10px;
  margin: 22px 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.creator-intro-list li {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--soft);
  font-size: 13px;
  line-height: 1.6;
}

.creator-intro-list strong {
  color: var(--text);
}

.creator-intro-cta {
  width: 100%;
  min-height: 50px;
  font-size: 16px;
}

.creator-intro-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
}

.form-error {
  padding: 10px 12px;
  border: 1px solid rgba(255, 90, 103, 0.35);
  border-radius: 8px;
  background: rgba(255, 90, 103, 0.12);
  color: #ff9aa4;
  font-size: 13px;
}

.login-hint {
  display: grid;
  gap: 6px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 120;
  max-width: 360px;
  padding: 14px 16px;
  border: 1px solid rgba(79, 227, 154, 0.35);
  border-radius: 8px;
  background: rgba(15, 30, 25, 0.96);
  color: var(--text);
  box-shadow: var(--shadow);
}

.empty {
  display: grid;
  min-height: 180px;
  place-items: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 8px;
}

@media (max-width: 1100px) {
  .card-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .split,
  .ranking-layout,
  .reader {
    grid-template-columns: 1fr;
  }

  .reader-side {
    position: static;
  }

  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .creator-shell {
    grid-template-columns: 1fr;
  }

  .creator-side {
    display: none;
  }

  .creator-mobile-menu {
    display: block;
  }

  .creator-mobile-menu label {
    display: grid;
    gap: 8px;
  }

  .creator-mobile-menu span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
  }

  .creator-mobile-menu select {
    width: 100%;
  }

  .creator-studio-head,
  .creator-head-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .creator-head-actions select,
  .creator-head-actions button {
    width: 100%;
  }

  .creator-metrics,
  .creator-dashboard-grid,
  .creator-upload-grid,
  .creator-support-grid,
  .creator-work-create,
  .creator-episode-upload,
  .studio-form-grid {
    grid-template-columns: 1fr;
  }

  .creator-preview-panel {
    position: static;
  }

  .episode-preview-panel {
    position: static;
  }

  .episode-thumb-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .episode-choice-cards {
    grid-template-columns: 1fr;
  }

  .creator-support-notice {
    grid-column: auto;
  }

  .creator-work-row {
    grid-template-columns: 58px minmax(0, 1fr) auto;
  }

  .creator-work-row > span:nth-of-type(2),
  .creator-work-row > span:nth-of-type(3),
  .creator-work-row > button {
    grid-column: 2 / 4;
  }
}

@media (max-width: 820px) {
  .topbar {
    grid-template-columns: 1fr auto;
    padding: 10px 14px;
  }

  .nav {
    grid-column: 1 / -1;
    order: 3;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav button {
    flex: 0 0 auto;
  }

  .actions .searchbox {
    display: none;
  }

  .actions .adult-toggle {
    display: none;
  }

  .search-page-form {
    align-items: stretch;
    flex-direction: column;
  }

  .search-page-form .search-scope {
    flex: 0 0 auto;
  }

  .main {
    padding: 18px 14px 28px;
  }

  .hero {
    min-height: 520px;
    background:
      linear-gradient(180deg, rgba(7, 8, 13, 0.72), rgba(7, 8, 13, 0.98)),
      url("./assets/hero-red-omega.jpg") center / cover;
  }

  .hero-inner {
    align-content: end;
    padding: 36px 18px;
  }

  .hero h1,
  .page-title h1 {
    font-size: 38px;
  }

  .hero p,
  .page-title p {
    font-size: 16px;
  }

  .stat-pill {
    flex-basis: calc(50% - 6px);
    min-width: 0;
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .detail-hero,
  .dashboard {
    grid-template-columns: 1fr;
  }

  .detail-poster {
    width: min(260px, 100%);
  }

  .sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .side-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-grid,
  .metric-grid,
  .price-grid {
    grid-template-columns: 1fr;
  }

  .creator-studio-main {
    width: 100%;
    margin: 0 0 44px;
  }

  .creator-shell {
    min-height: 0;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .creator-workspace {
    padding: 18px 14px;
  }

  .creator-studio-head h1 {
    font-size: 28px;
  }

  .creator-metric-card {
    min-height: 104px;
  }

  .creator-activity {
    grid-template-columns: 32px minmax(0, 1fr);
  }

  .creator-activity button {
    grid-column: 2;
    width: fit-content;
  }

  .creator-queue {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .creator-queue em {
    grid-column: 2;
    justify-self: start;
  }

  .creator-bar-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .creator-settlement-list div,
  .creator-notice-line {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .creator-works-tabs {
    overflow-x: auto;
    padding: 0 14px;
    scrollbar-width: none;
  }

  .creator-works-tabs::-webkit-scrollbar {
    display: none;
  }

  .creator-works-tabs button {
    flex: 0 0 auto;
  }

  .studio-form-grid {
    gap: 18px;
    padding: 18px 14px 14px;
  }

  .episode-upload-form {
    grid-template-columns: 1fr;
  }

  .studio-upload-row {
    grid-template-columns: 1fr;
  }

  .studio-thumb-preview {
    aspect-ratio: 3 / 4;
    min-height: 0;
    width: min(160px, 100%);
  }

  .studio-form-actions {
    flex-direction: column;
    padding: 0 14px 14px;
  }

  .studio-form-actions button {
    width: 100%;
  }

  .reader-toolbar {
    align-items: stretch;
    flex-direction: column;
    padding: 10px 14px;
  }

  .reader-mode-tabs {
    width: 100%;
  }

  .reader-mode-tabs button {
    flex: 1;
  }

  .reader-paged {
    grid-template-columns: 1fr;
    min-height: calc(100vh - 220px);
    padding: 12px 12px 70px;
  }

  .reader-page-arrow {
    position: absolute;
    z-index: 2;
    bottom: 18px;
    width: 44px;
    height: 44px;
    font-size: 28px;
  }

  .reader-page-arrow:first-child {
    left: 18px;
  }

  .reader-page-arrow:nth-child(3) {
    right: 18px;
  }

  .reader-page-frame,
  .reader-page-frame img {
    max-height: calc(100vh - 260px);
  }

  .admin-access-layout,
  .admin-console,
  .admin-member-card,
  .admin-review-layout,
  .admin-settlement-summary {
    grid-template-columns: 1fr;
  }

  .admin-access-top,
  .admin-access-layout {
    width: calc(100% - 28px);
  }

  .admin-access-top {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .admin-access-top em {
    padding-left: 0;
    border-left: 0;
  }

  .admin-login-card {
    padding: 32px 18px;
  }

  .admin-policy-card {
    margin-bottom: 28px;
  }

  .admin-sidebar {
    display: none;
  }

  .admin-content {
    padding: 22px 14px;
  }

  .admin-mobile-tabs {
    display: block;
  }

  .admin-mobile-tabs select {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    padding: 0 12px;
  }

  .admin-page-head {
    flex-direction: column;
  }

  .admin-search-panel {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .admin-member-profile {
    grid-template-columns: 1fr;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .admin-member-profile,
  .admin-member-state,
  .admin-member-actions {
    padding: 18px;
  }

  .admin-member-card dl div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .admin-member-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-member-actions strong {
    margin-right: 0;
  }

  .admin-review-tools {
    flex-wrap: wrap;
  }

  .admin-review-tools select {
    width: 100%;
    margin-left: 0;
  }

  .admin-review-row {
    grid-template-columns: 1fr;
    gap: 5px;
    padding: 14px;
  }

  .admin-review-row.head {
    display: none;
  }

  .admin-review-actions,
  .admin-settlement-row {
    grid-template-columns: 1fr;
  }

  .admin-crud-toolbar,
  .admin-crud-form-head,
  .admin-crud-list-head {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-crud-grid,
  .admin-crud-fields {
    grid-template-columns: 1fr;
  }

  .admin-crud-form,
  .admin-crud-list {
    padding: 16px;
  }

  .admin-crud-actions {
    flex-direction: column;
  }

  .admin-crud-row {
    min-width: 760px;
  }

  .admin-settlement-row {
    gap: 6px;
    padding: 14px;
  }

  .rank-row,
  .episode-item,
  .review-item {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .wide-art,
  .episode-thumb {
    display: none;
  }
}

/* ===== 내 작품 관리 탭 (#6) ===== */
.creator-works-note {
  margin: 14px 18px 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 12px;
}

.creator-work-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

.creator-work-main {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
}

.creator-work-thumb {
  width: 56px;
  height: 72px;
  border-radius: 6px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
}

.creator-work-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.creator-work-thumb-empty {
  color: var(--muted);
  font-size: 10px;
}

.creator-work-info {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.creator-work-desc {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.creator-work-untitled {
  color: var(--muted);
  font-style: normal;
  opacity: 0.7;
}

.creator-work-info strong {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
}

.creator-work-info > span {
  color: var(--muted);
  font-size: 12px;
}

.creator-work-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

.creator-review-badge {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.creator-review-badge.pending {
  background: rgba(255, 193, 7, 0.18);
  color: #ffd166;
}

.creator-review-badge.rejected {
  background: rgba(255, 90, 103, 0.18);
  color: #ff9aa4;
}

.creator-review-badge.draft {
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
}

.creator-ep-count {
  color: var(--muted);
  font-size: 12px;
}

.creator-19,
.studio-preview-adult {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 18px;
  padding: 0 5px;
  border-radius: 5px;
  background: rgba(255, 47, 125, 0.2);
  color: var(--pink-2, #ff7aa8);
  font-size: 11px;
  font-weight: 900;
  font-style: normal;
}

.creator-work-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  flex: 0 0 auto;
  max-width: 320px;
}

.primary-btn.sm,
.ghost-btn.sm {
  min-height: 32px;
  padding: 0 12px;
  font-size: 13px;
}

/* 열람 설정 */
.creator-viewing .viewing-body {
  display: grid;
  gap: 22px;
  padding: 18px;
}

.viewing-block h3 {
  margin: 0 0 12px;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.viewing-soon {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.viewing-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  margin: 0 0 4px;
}

.viewing-sub {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.7;
  margin: 0 0 12px;
}

.viewing-sub-inline {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

/* 열람 모드 카드 */
.viewing-mode-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.viewing-mode {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--soft);
  text-align: left;
  cursor: pointer;
}

.viewing-mode strong {
  font-size: 14px;
}

.viewing-mode span {
  color: var(--muted);
  font-size: 12px;
}

.viewing-mode.on {
  border-color: rgba(255, 47, 125, 0.6);
  background: rgba(255, 47, 125, 0.1);
  color: var(--text);
}

/* 금액 단계 테이블 */
.viewing-tier-table {
  display: grid;
  gap: 8px;
}

.viewing-tier-row {
  display: grid;
  grid-template-columns: 64px 1fr 1fr 160px;
  align-items: center;
  gap: 10px;
}

.viewing-tier-row.head {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.viewing-tier-row .vt-step {
  font-weight: 800;
}

.viewing-tier-row input[type="number"] {
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.vt-basis {
  display: flex;
  gap: 4px;
}

.vt-basis button {
  flex: 1;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-weight: 700;
  cursor: pointer;
}

.vt-basis button.on {
  border-color: rgba(255, 47, 125, 0.6);
  background: rgba(255, 47, 125, 0.14);
  color: var(--pink-2);
}

/* 추가 권한 토글 */
.viewing-flag {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  margin-bottom: 8px;
  cursor: pointer;
}

.viewing-flag.on {
  border-color: rgba(255, 47, 125, 0.4);
}

.viewing-flag input {
  width: 16px;
  height: 16px;
  accent-color: var(--pink, #ff2f7d);
}

.viewing-flag span {
  font-size: 13px;
  color: var(--soft);
}

.viewing-tier-select {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 12px 26px;
}

.viewing-tier-select button {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--soft);
  font-weight: 700;
  cursor: pointer;
}

.viewing-tier-select button.on {
  border-color: rgba(255, 47, 125, 0.6);
  background: rgba(255, 47, 125, 0.14);
  color: var(--pink-2);
}

.viewing-actions {
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 640px) {
  .viewing-mode-row {
    grid-template-columns: 1fr;
  }
  .viewing-tier-row {
    grid-template-columns: 1fr 1fr;
  }
  .viewing-tier-row.head {
    display: none;
  }
  .viewing-tier-row .vt-step {
    grid-column: 1 / -1;
  }
}

.ghost-btn.danger {
  color: #ff9aa4;
  border-color: rgba(255, 90, 103, 0.4);
}

.ghost-btn.danger:hover {
  background: rgba(255, 90, 103, 0.12);
}

.ghost-btn.sm {
  min-height: 30px;
  padding: 0 10px;
  font-size: 12px;
}

.creator-episode-manage {
  display: grid;
  gap: 6px;
  padding: 0 14px 14px 84px;
}

.creator-episode-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
}

.creator-episode-row .ep-no {
  color: var(--soft);
  font-weight: 800;
  font-size: 13px;
}

.creator-episode-row .ep-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.creator-episode-row .ep-status {
  color: var(--muted);
  font-size: 12px;
}

.creator-works-empty {
  padding: 28px 14px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.creator-works-empty.sm {
  padding: 14px;
  font-size: 12px;
}

.studio-preview-cover-empty {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 220px;
  color: var(--muted);
  font-size: 13px;
}

/* ===== 회차 업로드 작품 선택 커스텀 드롭다운 (#3) ===== */
.work-dropdown {
  position: relative;
}

.work-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 60px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.work-dropdown.open .work-dropdown-trigger {
  border-color: rgba(255, 47, 125, 0.55);
}

.work-dropdown-trigger img {
  width: 38px;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
  flex: 0 0 auto;
}

.work-dropdown-trigger span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
}

.work-dropdown-trigger em {
  flex: 0 0 auto;
  color: var(--muted);
  font-style: normal;
  transition: transform 0.15s ease;
}

.work-dropdown.open .work-dropdown-trigger em {
  transform: rotate(180deg);
}

.work-dropdown-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
}

.work-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 41;
  max-height: 320px;
  overflow: auto;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2, #15151c);
  box-shadow: var(--shadow, 0 18px 40px rgba(0, 0, 0, 0.5));
}

.work-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.work-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.work-dropdown-item.active {
  background: rgba(255, 47, 125, 0.12);
}

.work-dropdown-item img {
  width: 34px;
  height: 44px;
  object-fit: cover;
  border-radius: 6px;
  flex: 0 0 auto;
}

.work-dropdown-item span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}

.work-dropdown-check {
  flex: 0 0 auto;
  color: var(--pink-2, #ff7aa8);
  font-style: normal;
  font-weight: 900;
}

/* 코인 지갑 / 충전 (#2) */
.coin-wallet {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 18px 0;
  padding: 18px 22px;
  border: 1px solid rgba(255, 47, 125, 0.35);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 47, 125, 0.12), rgba(120, 80, 255, 0.1));
}

.coin-wallet-info {
  display: grid;
  gap: 4px;
}

.coin-wallet-label {
  color: var(--muted);
  font-size: 13px;
}

.coin-wallet-balance {
  font-size: 28px;
  font-weight: 900;
}

.coin-wallet-balance em {
  font-size: 15px;
  font-style: normal;
  color: var(--muted);
}

.coin-wallet-info small {
  color: var(--muted);
  font-size: 12px;
}

.coin-wallet-charge {
  flex: 0 0 auto;
  min-height: 46px;
  padding: 0 22px;
}

.coin-charge-modal {
  max-width: 460px;
}

.coin-charge-balance {
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--soft);
  font-size: 14px;
}

.coin-charge-balance strong {
  color: var(--pink-2, #ff7aa8);
  font-size: 16px;
}

.coin-pack-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.coin-pack {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.coin-pack:hover {
  border-color: rgba(255, 47, 125, 0.6);
  background: rgba(255, 47, 125, 0.08);
}

.coin-pack-top {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}

.coin-pack-top strong {
  font-size: 18px;
}

.coin-pack-top em {
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
  color: #ffd166;
}

.coin-pack-price {
  color: var(--muted);
  font-size: 13px;
}

.coin-charge-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.coin-charge-back {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  padding: 0 0 8px;
}

.coin-charge-pay {
  width: 100%;
  min-height: 50px;
  margin-top: 14px;
  font-size: 16px;
}

/* 검수 뷰어 */
.admin-review-hero {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
}

.admin-review-hero-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 10px 12px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78), transparent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.admin-review-view-btn {
  width: 100%;
  margin-top: 4px;
}

.review-viewer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: start center;
  padding: 24px 12px;
  overflow: auto;
  background: rgba(0, 0, 0, 0.82);
}

.review-viewer {
  width: min(520px, 100%);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface-2, #15151c);
}

.review-viewer-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(20, 20, 28, 0.96);
  backdrop-filter: blur(6px);
}

.review-viewer-title {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.review-viewer-title strong {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
}

.review-viewer-title span {
  color: var(--muted);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.review-viewer-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.review-viewer-actions .danger-btn,
.review-viewer-actions .primary-btn {
  min-height: 34px;
  padding: 0 12px;
  font-size: 13px;
}

.review-viewer-canvas {
  display: block;
}

.review-viewer-canvas img {
  display: block;
  width: 100%;
}

/* [테스트] 관리자 권한 토글 버튼 */
.settings-test {
  border: 1px dashed rgba(255, 193, 7, 0.45) !important;
  background: rgba(255, 193, 7, 0.06) !important;
}

.settings-test span {
  background: rgba(255, 193, 7, 0.2) !important;
  color: #ffd166 !important;
}

/* 공통 커스텀 셀렉트(네이티브 흰 드롭다운 대체) */
.custom-select {
  position: relative;
}

.custom-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
  text-align: left;
}

.custom-select.open .custom-select-trigger {
  border-color: rgba(255, 47, 125, 0.55);
}

.custom-select-trigger span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.custom-select-trigger em {
  flex: 0 0 auto;
  color: var(--muted);
  font-style: normal;
  transition: transform 0.15s ease;
}

.custom-select.open .custom-select-trigger em {
  transform: rotate(180deg);
}

.custom-select-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
}

.custom-select-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 41;
  max-height: 300px;
  overflow: auto;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2, #15151c);
  box-shadow: var(--shadow, 0 18px 40px rgba(0, 0, 0, 0.5));
}

.custom-select-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  cursor: pointer;
  text-align: left;
}

.custom-select-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.custom-select-item.on {
  background: rgba(255, 47, 125, 0.12);
  color: var(--pink-2, #ff7aa8);
}

.custom-select-item i {
  font-style: normal;
  color: var(--pink-2, #ff7aa8);
}

.hero-search-input {
  width: 100%;
  min-height: 38px;
  margin-bottom: 6px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.hero-search-list {
  max-height: 220px;
  overflow: auto;
}

/* 관리자 장르 태그 관리 */
.genre-admin {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.genre-admin-head h3 {
  margin: 0;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.genre-admin-head.adult,
.genre-admin-head.sub {
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

/* 관리자 대분류 탭 (종합 · 서브컬쳐 · 여성향) */
.genre-admin-divtabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.genre-divtab {
  min-height: 32px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--soft);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.genre-divtab.on {
  border-color: rgba(255, 47, 125, 0.7);
  background: rgba(255, 47, 125, 0.16);
  color: var(--pink-2);
}

.genre-admin-div {
  display: inline-grid;
  place-items: center;
  height: 18px;
  padding: 0 8px;
  border-radius: 5px;
  background: rgba(255, 47, 125, 0.14);
  border: 1px solid rgba(255, 47, 125, 0.4);
  color: var(--pink-2);
  font-size: 11px;
  font-weight: 700;
}

.genre-admin-head span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.genre-admin-badge {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 18px;
  padding: 0 5px;
  border-radius: 5px;
  background: rgba(255, 90, 103, 0.16);
  border: 1px solid rgba(255, 90, 103, 0.4);
  color: #ff9aa4;
  font-size: 11px;
  font-weight: 700;
}

.genre-admin-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.genre-admin-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 4px 3px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 12px;
  letter-spacing: -0.01em;
  line-height: 1.4;
}

.genre-admin-chip.adult {
  border-color: rgba(255, 90, 103, 0.32);
  background: rgba(255, 90, 103, 0.08);
  color: #ffb9c0;
}

.genre-admin-chip button {
  display: grid;
  place-items: center;
  width: 15px;
  height: 15px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 90, 103, 0.18);
  color: #ff9aa4;
  font-size: 10px;
  line-height: 1;
  cursor: pointer;
}

.genre-admin-input {
  max-width: 280px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

/* 회차 업로드 이미지 빈 상태 (#2) */
.episode-empty-strip {
  padding: 20px 14px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.phone-empty {
  display: grid;
  place-items: center;
  height: 100%;
  min-height: 280px;
  padding: 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}

/* ===== 작품 생성 레이아웃 반응형 (#2) ===== */
@media (max-width: 1280px) {
  .creator-work-create,
  .creator-episode-upload {
    grid-template-columns: 1fr;
  }

  .creator-preview-panel,
  .episode-preview-panel {
    position: static;
  }
}

@media (max-width: 820px) {
  .episode-upload-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .episode-choice-cards {
    grid-template-columns: 1fr;
  }

  .episode-readmode-fixed {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .episode-readmode-fixed em {
    align-self: flex-start;
  }
}

@media (max-width: 760px) {
  .studio-form-grid {
    grid-template-columns: 1fr;
  }

  .creator-work-main {
    grid-template-columns: 48px minmax(0, 1fr);
    grid-template-areas: "img info" "actions actions";
  }

  .creator-work-main > img {
    grid-area: img;
  }

  .creator-work-info {
    grid-area: info;
  }

  .creator-work-actions {
    grid-area: actions;
    justify-content: flex-end;
  }

  .creator-episode-manage {
    padding-left: 14px;
  }
}

/* ===== 공지 & 이벤트 ===== */
.notice-card {
  cursor: pointer;
}

.notice-back {
  display: inline-flex;
  align-items: center;
  margin-bottom: 14px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--soft);
  font-weight: 700;
  cursor: pointer;
}

.notice-back:hover {
  border-color: rgba(255, 47, 125, 0.45);
  color: var(--text);
}

.notice-detail {
  width: min(880px, 100%);
  margin: 0 auto;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
}

.notice-detail-cover {
  margin: -28px -28px 22px;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
  background: #0c0d13;
}

.notice-detail-cover img {
  display: block;
  width: 100%;
  max-height: 560px;
  /* 가운데 크롭하지 않고 전체 이미지를 영역 안에 맞춰 표시(위아래 여백 허용) */
  object-fit: contain;
}

.notice-detail-title {
  margin: 0;
  font-size: 28px;
  line-height: 1.25;
}

.notice-detail-summary {
  margin: 12px 0 0;
  color: var(--soft);
  font-size: 16px;
}

.notice-detail-date {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

.notice-detail-body {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--text);
  font-size: 16px;
  line-height: 1.85;
  /* 줄바꿈·공백을 입력 그대로 유지(에디터 없이 복붙) */
  white-space: pre-wrap;
  word-break: break-word;
}

/* 관리자 공지 작성/관리 */
.admin-notices {
  display: grid;
  gap: 18px;
}

.notice-form-grid {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 14px;
}

.notice-field {
  display: grid;
  gap: 6px;
}

.notice-field.full {
  grid-column: 1 / -1;
}

.notice-field > span {
  font-size: 13px;
  font-weight: 800;
  color: var(--soft);
}

.notice-field > span em {
  margin-left: 6px;
  color: var(--muted);
  font-style: normal;
  font-weight: 600;
  font-size: 12px;
}

.notice-field input,
.notice-body-input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
}

.notice-body-input {
  resize: vertical;
  line-height: 1.7;
  white-space: pre-wrap;
}

.notice-upload-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.notice-upload-row .studio-dropzone {
  width: 200px;
  height: 116px;
  min-height: 0; /* 기본 .studio-dropzone의 min-height:150px가 박스를 키우는 것 방지 */
  flex: 0 0 auto;
  overflow: hidden;
  padding: 0;
}

/* 첨부 이미지 미리보기는 박스 영역 안에 전체가 들어오도록(확장 방지) */
.notice-upload-row .studio-dropzone img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.notice-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

.notice-count {
  margin-left: 6px;
  padding: 1px 9px;
  border-radius: 999px;
  background: rgba(255, 47, 125, 0.16);
  color: var(--pink-2);
  font-size: 13px;
}

.notice-admin-list {
  display: grid;
  gap: 8px;
}

.notice-admin-row {
  display: grid;
  grid-template-columns: 48px 88px minmax(0, 1fr) 110px auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
}

.notice-admin-priority {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255, 47, 125, 0.14);
  color: var(--pink-2);
  font-weight: 800;
}

.notice-admin-thumb img {
  width: 88px;
  height: 50px;
  border-radius: 6px;
  object-fit: cover;
}

.notice-admin-thumb i {
  display: inline-grid;
  place-items: center;
  width: 88px;
  height: 50px;
  border: 1px dashed var(--line);
  border-radius: 6px;
  color: var(--muted);
  font-style: normal;
}

.notice-admin-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.notice-admin-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notice-admin-copy em {
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notice-admin-date {
  color: var(--muted);
  font-size: 12px;
}

.notice-admin-actions {
  display: flex;
  gap: 6px;
}

@media (max-width: 720px) {
  .notice-form-grid {
    grid-template-columns: 1fr;
  }

  .notice-detail {
    padding: 18px;
  }

  .notice-detail-cover {
    margin: -18px -18px 16px;
  }

  .notice-detail-title {
    font-size: 22px;
  }

  .notice-admin-row {
    grid-template-columns: 40px minmax(0, 1fr) auto;
  }

  .notice-admin-thumb,
  .notice-admin-date {
    display: none;
  }
}

/* ===== 프로필 수정 ===== */
.profile-edit-card {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 24px;
}

.profile-edit-avatar {
  display: grid;
  justify-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.profile-edit-avatar img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
}

.profile-edit-avatar span {
  color: var(--muted);
  font-size: 13px;
}

.avatar-warning {
  margin: 6px 0 0;
  max-width: 220px;
  color: #ffb9c0;
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}

.profile-edit-fields {
  flex: 1 1 auto;
  display: grid;
  gap: 16px;
  min-width: 0;
}

.profile-field {
  display: grid;
  gap: 6px;
}

.profile-field > span {
  font-size: 13px;
  font-weight: 800;
  color: var(--soft);
}

.profile-field input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
}

.profile-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
  line-height: 1.6;
  resize: vertical;
}

.profile-edit-avatar label.ghost-btn {
  cursor: pointer;
  font-size: 12px;
  padding: 6px 12px;
}

.profile-edit-note {
  margin: 12px 4px 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.profile-edit-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

@media (max-width: 640px) {
  .profile-edit-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .profile-edit-fields {
    width: 100%;
  }
}

/* ===== 정산 계좌 변경 보안 배너 ===== */
.payout-security {
  display: grid;
  gap: 4px;
  margin: 4px 0 14px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.payout-security strong {
  font-size: 14px;
}

.payout-security span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.payout-security.hold {
  border-color: rgba(255, 176, 32, 0.5);
  background: rgba(255, 176, 32, 0.1);
}

.payout-security.hold strong {
  color: #ffce6e;
}

.payout-security.ok {
  border-color: rgba(120, 200, 160, 0.32);
  background: rgba(120, 200, 160, 0.07);
}

/* 정산 시트 보류 행 */
.admin-settlement-row.held {
  opacity: 0.72;
  background: rgba(255, 176, 32, 0.06);
}

/* ===== 전역 푸터 ===== */
.site-footer {
  margin-top: 28px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
}

.site-footer-inner {
  width: min(1384px, calc(100% - 56px));
  margin: 0 auto;
  padding: 22px 0 16px;
  display: grid;
  grid-template-columns: minmax(260px, 1.2fr) 2fr;
  gap: 28px;
}

.footer-logo {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.footer-company {
  margin: 8px 0 6px;
  font-weight: 700;
  color: var(--soft);
}

.footer-address {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.65;
}

.footer-legal-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 11px;
  opacity: 0.8;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.footer-col {
  display: grid;
  align-content: start;
  gap: 6px;
}

.footer-col h4 {
  margin: 0 0 4px;
  font-size: 13px;
  color: var(--soft);
}

.footer-col button {
  justify-self: start;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  text-align: left;
}

.footer-col button:hover {
  color: var(--text);
}

.site-footer-bottom {
  border-top: 1px solid var(--line);
  padding: 10px 0;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 760px) {
  .site-footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-cols {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== 고객센터 ===== */
.help-contact {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 20px;
  margin-bottom: 22px;
}

.help-contact div {
  display: grid;
  gap: 4px;
}

.help-contact span {
  color: var(--muted);
  font-size: 12px;
}

.help-faq h2 {
  font-size: 20px;
  margin: 0 0 14px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  margin-bottom: 8px;
  padding: 0 16px;
}

.faq-item summary {
  cursor: pointer;
  padding: 14px 0;
  font-weight: 700;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "＋";
  float: right;
  color: var(--muted);
}

.faq-item[open] summary::after {
  content: "－";
}

.faq-item p {
  margin: 0 0 16px;
  color: var(--soft);
  line-height: 1.7;
}

/* ===== 약관·정책 / 가이드 공통 문서 ===== */
.doc-tabs,
.guide-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.doc-tabs button,
.guide-nav button {
  min-height: 36px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--soft);
  font-weight: 700;
  cursor: pointer;
}

.doc-tabs button.on,
.guide-nav button.on {
  border-color: rgba(255, 47, 125, 0.7);
  background: rgba(255, 47, 125, 0.16);
  color: var(--pink-2);
}

.doc-body {
  width: min(880px, 100%);
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  font-size: 14.5px;
  line-height: 1.85;
  white-space: pre-wrap;
  word-break: break-word;
}

/* ===== 크리에이터 가이드 ===== */
.guide-layout {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.guide-nav {
  flex-direction: column;
  position: sticky;
  top: 88px;
}

.guide-nav button {
  width: 100%;
  border-radius: 10px;
  text-align: left;
}

.guide-content {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  padding: 26px;
}

.guide-content h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.guide-intro {
  margin: 0 0 18px;
  color: var(--soft);
}

.guide-text {
  margin: 0 0 12px;
  line-height: 1.85;
}

.guide-figure {
  margin: 18px 0;
}

.guide-figure img {
  width: 100%;
  border-radius: 10px;
}

.guide-figure-ph {
  display: grid;
  place-items: center;
  min-height: 160px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  color: var(--muted);
  font-size: 13px;
  background: rgba(255, 255, 255, 0.02);
}

.guide-figure figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.guide-foot-note {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 760px) {
  .guide-layout {
    grid-template-columns: 1fr;
  }
  .guide-nav {
    position: static;
    flex-direction: row;
  }
  .help-contact {
    grid-template-columns: 1fr;
  }
}

/* ===== 신고 버튼 + 모달 ===== */
.report-link {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}
.report-link:hover {
  background: rgba(255, 90, 110, 0.12);
  color: #ff7a8a;
}
.report-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(3px);
  display: grid;
  place-items: center;
  z-index: 1200;
}
.report-modal {
  width: min(460px, 92vw);
  background: #14151c;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 22px;
}
.report-modal h3 {
  margin: 0 0 4px;
  font-size: 18px;
}
.report-target {
  color: var(--pink-2);
  font-weight: 600;
  margin: 0 0 14px;
}
.report-reason span {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}
.report-reason textarea {
  width: 100%;
  background: #0e0f15;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 10px;
  color: var(--text);
  resize: vertical;
  font: inherit;
}
.report-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}

/* ===== 관리자: AI 검수 설정/리스트 ===== */
.mod-config,
.mod-list,
.rep-list {
  margin-bottom: 18px;
}
.mod-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 6px 0 18px;
}
.mod-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  cursor: pointer;
}
.mod-switch input {
  width: 18px;
  height: 18px;
  accent-color: var(--pink-2);
}
.mod-thresholds {
  display: grid;
  gap: 12px;
  max-width: 520px;
}
.mod-hint,
.mod-provider {
  color: var(--muted);
  font-size: 12px;
}
.mod-provider code,
.mod-config code {
  background: rgba(255, 255, 255, 0.08);
  padding: 1px 5px;
  border-radius: 5px;
}
.mod-th {
  display: grid;
  grid-template-columns: 84px 1fr 48px;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}
.mod-th input[type="range"] {
  accent-color: var(--pink-2);
}
.mod-th b {
  text-align: right;
  color: var(--soft);
}
.mod-table,
.rep-table {
  display: grid;
  gap: 1px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  overflow: hidden;
  font-size: 13px;
}
.mod-row,
.rep-row {
  display: grid;
  grid-template-columns: 1.4fr 1.2fr 0.7fr 0.7fr 0.6fr 0.8fr;
  gap: 10px;
  padding: 10px 12px;
  background: #111219;
  align-items: center;
}
.rep-row {
  grid-template-columns: 1.2fr 1.6fr 1fr 0.7fr 0.7fr 1.4fr;
}
.mod-row.head,
.rep-row.head {
  background: #181a22;
  color: var(--muted);
  font-weight: 600;
}
.mod-row span,
.rep-row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rep-reason {
  white-space: normal;
  color: var(--soft);
}
.rep-row em {
  display: block;
  color: var(--muted);
  font-size: 11px;
}
.mod-badge,
.rep-badge,
.mod-risk {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}
.mod-badge.ok,
.rep-badge.done {
  background: rgba(60, 200, 120, 0.18);
  color: #58d68d;
}
.mod-badge.bad {
  background: rgba(255, 90, 110, 0.18);
  color: #ff7a8a;
}
.mod-badge.warn {
  background: rgba(240, 180, 60, 0.18);
  color: #f0b43c;
}
.rep-badge.open {
  background: rgba(120, 150, 255, 0.18);
  color: #8aa0ff;
}
.rep-badge.dismiss {
  background: rgba(255, 255, 255, 0.1);
  color: var(--muted);
}
.mod-risk.high {
  background: rgba(255, 90, 110, 0.2);
  color: #ff7a8a;
}
.mod-risk.medium {
  background: rgba(240, 180, 60, 0.18);
  color: #f0b43c;
}
.mod-risk.low,
.mod-risk.safe {
  background: rgba(60, 200, 120, 0.16);
  color: #58d68d;
}
.rep-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  overflow: visible;
}
.ghost-btn.sm,
.danger-btn.sm {
  padding: 4px 10px;
  font-size: 12px;
}
@media (max-width: 760px) {
  .mod-row,
  .rep-row {
    grid-template-columns: 1fr 1fr;
    gap: 4px 10px;
  }
  .mod-row.head,
  .rep-row.head {
    display: none;
  }
}

/* ===== 관리자: 회원 관리 테이블 ===== */
.mem-table {
  display: grid;
  gap: 1px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  overflow: hidden;
  font-size: 13px;
}
.mem-row {
  display: grid;
  grid-template-columns: 1.3fr 1.5fr 0.7fr 0.5fr 0.7fr 0.9fr 1.4fr;
  gap: 10px;
  padding: 10px 12px;
  background: #111219;
  align-items: center;
}
.mem-row.compact {
  grid-template-columns: 1.3fr 1.7fr 0.7fr 0.7fr 0.9fr;
  text-align: left;
  border: none;
  color: var(--text);
  font: inherit;
  cursor: pointer;
  width: 100%;
}
button.mem-row.compact:hover {
  background: #171922;
}
.mem-row.compact.sel {
  background: rgba(255, 90, 110, 0.1);
  box-shadow: inset 3px 0 0 var(--pink-2);
}
.mem-row.head {
  background: #181a22;
  color: var(--muted);
  font-weight: 600;
  cursor: default;
}

/* 회원 상세 카드 */
.mem-detail {
  margin-bottom: 16px;
}
.mem-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.mem-detail-head h2 {
  margin: 0 0 4px;
  font-size: 18px;
}
.mem-detail-head span {
  color: var(--muted);
  font-size: 13px;
}
.mem-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  overflow: hidden;
  margin: 0 0 16px;
}
.mem-d-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 10px;
  padding: 10px 12px;
  background: #111219;
  font-size: 13px;
  align-items: baseline;
}
.mem-d-row dt {
  color: var(--muted);
}
.mem-d-row dd {
  margin: 0;
  color: var(--text);
  word-break: break-word;
}
.mem-d-row dd i {
  color: var(--muted);
  font-style: normal;
}
.mem-d-row dd em {
  color: var(--muted);
  font-size: 11px;
}
.mem-d-row dd b {
  color: var(--pink-2);
}
.mem-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ghost-btn.warn {
  color: #f0b43c;
}
.ghost-btn.warn:hover {
  background: rgba(240, 180, 60, 0.14);
}
@media (max-width: 760px) {
  .mem-detail-grid {
    grid-template-columns: 1fr;
  }
  .mem-row.compact {
    grid-template-columns: 1fr 1fr;
  }
}

/* ===== 테스트 충전 (결제 모달) ===== */
.test-topup {
  margin-top: 18px;
  padding: 14px;
  border: 1px dashed rgba(240, 180, 60, 0.45);
  border-radius: 12px;
  background: rgba(240, 180, 60, 0.05);
}
.test-topup-head {
  font-weight: 700;
  font-size: 13px;
  color: #f0b43c;
  margin-bottom: 10px;
}
.test-topup-head em {
  font-style: normal;
  font-weight: 400;
  color: var(--muted);
  font-size: 11px;
}
.test-topup-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.test-topup label {
  font-size: 13px;
  color: var(--soft);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.test-topup input[type="number"],
.test-topup input[type="date"] {
  background: #0e0f15;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 6px 8px;
  color: var(--text);
  width: 110px;
}
.test-methods {
  display: inline-flex;
  gap: 4px;
}
.test-method {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--muted);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
}
.test-method.on {
  background: var(--pink-2);
  border-color: var(--pink-2);
  color: #fff;
}
.test-check input,
.test-topup input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--pink-2);
}
.test-topup-note {
  font-size: 11px;
  color: var(--muted);
  margin: 0 0 12px;
  line-height: 1.5;
}

/* ===== 관리자: 작품 지표 테이블 ===== */
.metric-table {
  display: grid;
  gap: 1px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  overflow: hidden;
  font-size: 13px;
}
.metric-row {
  display: grid;
  grid-template-columns: 1.6fr 0.8fr 0.8fr 0.8fr 0.8fr 0.7fr;
  gap: 10px;
  padding: 8px 12px;
  background: #111219;
  align-items: center;
}
.metric-row.head {
  background: #181a22;
  color: var(--muted);
  font-weight: 600;
}
.metric-title em {
  display: block;
  color: var(--muted);
  font-size: 11px;
}
.metric-row input {
  width: 100%;
  background: #0e0f15;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 7px;
  padding: 5px 7px;
  color: var(--text);
}
.primary-btn.sm {
  padding: 5px 12px;
  font-size: 12px;
}

/* 작품 상세 지표 줄 */
.detail-stats {
  display: flex;
  gap: 18px;
  margin: 12px 0 4px;
  font-size: 13px;
  color: var(--muted);
}
.detail-stats b {
  color: var(--text);
}
@media (max-width: 760px) {
  .metric-row {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .metric-row.head {
    display: none;
  }
}
.mem-row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mem-id em {
  display: block;
  color: var(--muted);
  font-size: 11px;
}
.mem-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}
.mem-badge.active {
  background: rgba(60, 200, 120, 0.18);
  color: #58d68d;
}
.mem-badge.suspended {
  background: rgba(240, 180, 60, 0.18);
  color: #f0b43c;
}
.mem-badge.deleted {
  background: rgba(255, 90, 110, 0.18);
  color: #ff7a8a;
}
.mem-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  overflow: visible;
}
.ghost-btn.sm.warn {
  color: #f0b43c;
}
.ghost-btn.sm.warn:hover {
  background: rgba(240, 180, 60, 0.14);
}
@media (max-width: 760px) {
  .mem-row {
    grid-template-columns: 1fr 1fr;
    gap: 4px 10px;
  }
  .mem-row.head {
    display: none;
  }
}

/* ===== 사이트 접속 게이트(테스트 비번) ===== */
.site-gate {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: radial-gradient(1200px 600px at 50% -10%, #1a1330, #0b0c12 60%);
}
.site-gate-card {
  width: min(380px, 100%);
  text-align: center;
  background: rgba(20, 21, 28, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 36px 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.site-gate-logo {
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
  color: #fff;
}
.site-gate-logo span {
  color: var(--pink-2);
}
.site-gate-card h1 {
  font-size: 19px;
  margin: 0 0 8px;
}
.site-gate-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  margin: 0 0 20px;
}
.site-gate-card input {
  width: 100%;
  background: #0e0f15;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text);
  font-size: 15px;
  text-align: center;
  margin-bottom: 12px;
}
.site-gate-card input:focus {
  outline: none;
  border-color: var(--pink-2);
}
.site-gate-error {
  color: #ff7a8a;
  font-size: 13px;
  margin-bottom: 12px;
}
.site-gate-card .primary-btn {
  width: 100%;
  padding: 12px;
  font-size: 15px;
}

/* ===== 쪽지함(DM) ===== */
.messages-main {
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0 40px;
}
.dm-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 16px;
  min-height: 560px;
}
.dm-inbox {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.dm-inbox-head {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}
.dm-inbox-head h2 {
  margin: 0;
  font-size: 16px;
}
.dm-inbox-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 12px 16px;
  cursor: pointer;
  color: var(--text);
}
.dm-inbox-item:hover {
  background: rgba(255, 255, 255, 0.04);
}
.dm-inbox-item.active {
  background: rgba(255, 47, 125, 0.1);
}
.dm-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex: 0 0 auto;
  background: #1a1c26;
}
.dm-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.dm-inbox-body {
  min-width: 0;
}
.dm-inbox-body strong {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}
.dm-inbox-body em {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dm-unread {
  font-style: normal;
  background: var(--pink-2);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  padding: 0 4px;
}
.dm-inbox-time {
  color: var(--muted);
  font-size: 11px;
}
.dm-thread {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}
.dm-thread-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
.dm-thread-head strong {
  flex: 1 1 auto;
}
.dm-messages {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dm-msg {
  max-width: 72%;
  align-self: flex-start;
}
.dm-msg.mine {
  align-self: flex-end;
}
.dm-msg p {
  margin: 0;
  padding: 9px 13px;
  border-radius: 14px;
  background: #1b1d27;
  font-size: 14px;
  line-height: 1.5;
  word-break: break-word;
}
.dm-msg.mine p {
  background: var(--pink-2);
  color: #fff;
}
.dm-msg span {
  display: block;
  margin-top: 3px;
  font-size: 10px;
  color: var(--muted);
  text-align: right;
}
.dm-msg:not(.mine) span {
  text-align: left;
}
.dm-compose {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--line);
}
.dm-compose input {
  flex: 1 1 auto;
  background: #0e0f15;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 10px 16px;
  color: var(--text);
}
.dm-compose input:focus {
  outline: none;
  border-color: var(--pink-2);
}
.dm-blocked-note {
  padding: 14px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid var(--line);
}
.dm-empty {
  display: grid;
  place-items: center;
  height: 100%;
  color: var(--muted);
}
@media (max-width: 760px) {
  .dm-layout {
    grid-template-columns: 1fr;
  }
}
