:root {
  --bg: #05050a;
  --panel: rgba(255, 255, 255, .065);
  --panel-strong: rgba(255, 255, 255, .1);
  --border: rgba(255, 255, 255, .12);
  --border-dark: rgba(15, 23, 42, .1);
  --text: #ffffff;
  --text-soft: rgba(255, 255, 255, .7);
  --text-faint: rgba(255, 255, 255, .46);
  --ink: #111827;
  --muted: #647084;
  --soft: #f5f7fb;
  --white: #ffffff;
  --purple: #7c3aed;
  --pink: #d946ef;
  --blue: #38bdf8;
  --cyan: #16c6d9;
  --lime: #a6e22e;
  --coral: #ff6854;
  --shadow: 0 24px 70px rgba(8, 13, 28, .18);
  --glass-shadow: 0 18px 60px rgba(0, 0, 0, .28);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at top right, rgba(236, 72, 153, .14), transparent 25%),
    linear-gradient(135deg, rgba(109, 40, 217, .25), rgba(14, 165, 233, .13), #f6f8fb 44%);
  font-family: "Poppins", "Inter", "PingFang SC", "Microsoft YaHei", "Source Han Sans CN", "SourceHanSansCN", Arial, sans-serif;
  letter-spacing: 0;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 74px;
  padding: 14px 34px;
  color: var(--text);
  background: rgba(5, 5, 10, .82);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(22px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 800;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  box-shadow: 0 12px 28px rgba(56, 189, 248, .22);
  font-size: 14px;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.nav {
  display: flex;
  gap: 12px;
  margin-left: auto;
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 700;
}

.nav a {
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 999px;
}

.nav a.active,
.nav a:hover {
  color: #05050a;
  background: #fff;
}

.nav-hot-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.nav-hot-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 19px;
  padding: 0 7px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #ef4444, #f97316);
  font-size: 10px;
  font-weight: 950;
  box-shadow: 0 10px 22px rgba(249, 115, 22, .24);
}

.nav-hot-badge::before {
  width: 7px;
  height: 9px;
  border-radius: 8px 8px 8px 2px;
  background: #fff7ed;
  content: "";
  transform: rotate(35deg);
}

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

.account-menu {
  position: relative;
  z-index: 50;
}

.account-menu::after {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  height: 18px;
  content: "";
}

.account-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  border: 1px solid rgba(15, 23, 42, .1);
  border-radius: 999px;
  padding: 4px 10px 4px 5px;
  color: #0f172a;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 12px 34px rgba(15, 23, 42, .08);
}

.account-avatar {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #111827, #2563eb);
  font-size: 15px;
  font-weight: 950;
}

.account-trigger-copy {
  display: grid;
  gap: 1px;
  min-width: 0;
  text-align: left;
}

.account-name {
  max-width: 118px;
  overflow: hidden;
  color: #0f172a;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-role {
  max-width: 118px;
  overflow: hidden;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-pro {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  border-radius: 999px;
  padding: 0 9px;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  font-size: 12px;
  font-weight: 950;
}

.account-chevron {
  color: #64748b;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}

.account-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  display: grid;
  width: 292px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, .09);
  border-radius: 20px;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 28px 70px rgba(15, 23, 42, .18);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity .16s ease, transform .16s ease;
}

.account-dropdown::before {
  position: absolute;
  right: 28px;
  top: -7px;
  width: 14px;
  height: 14px;
  border-top: 1px solid rgba(15, 23, 42, .08);
  border-left: 1px solid rgba(15, 23, 42, .08);
  background: rgba(255, 255, 255, .97);
  content: "";
  transform: rotate(45deg);
}

.account-menu:hover .account-dropdown,
.account-menu:focus-within .account-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.account-card {
  display: grid;
  gap: 6px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(15, 23, 42, .08);
}

.account-card span {
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
}

.account-card strong {
  overflow: hidden;
  color: #0f172a;
  font-size: 17px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-dropdown a,
.account-menu-item,
.account-dropdown button {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-bottom: 1px solid rgba(15, 23, 42, .06);
  padding: 0 20px;
  color: #0f172a;
  background: transparent;
  font: inherit;
  font-weight: 850;
  text-align: left;
}

.account-dropdown a:hover,
.account-dropdown button:hover {
  background: #f8fafc;
}

.account-menu-item.disabled {
  color: #94a3b8;
  cursor: not-allowed;
}

.account-menu-item small {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 850;
}

.account-dropdown form {
  margin: 0;
}

.account-dropdown button {
  color: #ef4444;
  cursor: pointer;
}

.account-wrap {
  margin-top: 28px;
}

.account-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
  border: 1px solid rgba(15, 23, 42, .07);
  border-radius: 34px;
  padding: 38px 42px;
  background:
    radial-gradient(circle at right center, rgba(37, 99, 235, .12), transparent 28%),
    #fff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .08);
}

.account-hero.compact {
  padding: 30px 36px;
}

.account-hero h1 {
  margin: 8px 0 10px;
  color: #0f172a;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
}

.account-hero p {
  max-width: 760px;
  margin: 0;
  color: #64748b;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.75;
}

.account-hero-badge {
  display: grid;
  width: 92px;
  height: 92px;
  place-items: center;
  border-radius: 28px;
  color: #fff;
  background: linear-gradient(135deg, #111827, #2563eb);
  box-shadow: 0 24px 52px rgba(37, 99, 235, .22);
  font-size: 24px;
  font-weight: 950;
}

.account-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.account-side-card,
.account-main-panel {
  border: 1px solid rgba(15, 23, 42, .07);
  border-radius: 28px;
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 22px 60px rgba(15, 23, 42, .07);
}

.account-side-card {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 18px;
  padding: 18px;
}

.account-panel-user {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 20px;
  background: #f8fafc;
}

.account-panel-user > span {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  background: #0f172a;
  font-size: 18px;
  font-weight: 950;
}

.account-panel-user strong,
.account-panel-user small {
  display: block;
  max-width: 168px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-panel-user strong {
  color: #0f172a;
  font-size: 16px;
}

.account-panel-user small {
  margin-top: 3px;
  color: #64748b;
  font-size: 12px;
  font-weight: 850;
}

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

.account-side-nav a {
  min-height: 44px;
  border-radius: 16px;
  padding: 12px 14px;
  color: #475569;
  font-weight: 900;
}

.account-side-nav a:hover,
.account-side-nav a.active {
  color: #0f172a;
  background: #eff6ff;
}

.account-main-panel {
  min-height: 360px;
  padding: 24px;
}

.account-stat-grid,
.asset-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.account-stat-card,
.asset-card {
  min-height: 120px;
  border: 1px solid rgba(15, 23, 42, .06);
  border-radius: 22px;
  padding: 18px;
  background: #f8fafc;
}

.account-stat-card span,
.asset-card span {
  color: #64748b;
  font-size: 13px;
  font-weight: 900;
}

.account-stat-card strong,
.asset-card strong {
  display: block;
  margin-top: 12px;
  color: #0f172a;
  font-size: 28px;
  font-weight: 950;
  line-height: 1.1;
}

.account-section {
  margin-top: 28px;
}

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

.account-section-head h2 {
  margin: 0;
  color: #0f172a;
  font-size: 24px;
}

.account-section-head a {
  color: #2563eb;
  font-weight: 900;
}

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

.account-prompt-card .prompt-cover {
  aspect-ratio: 16 / 10;
}

.account-empty {
  border: 1px dashed rgba(15, 23, 42, .16);
  border-radius: 24px;
  padding: 34px;
  color: #64748b;
  background: #f8fafc;
  font-size: 16px;
  font-weight: 850;
  line-height: 1.8;
}

.account-empty.soft {
  margin-top: 18px;
}

.account-info-list {
  display: grid;
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.account-info-list div {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 18px;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(15, 23, 42, .07);
}

.account-info-list div:last-child {
  border-bottom: 0;
}

.account-info-list span {
  color: #64748b;
  font-weight: 900;
}

.account-info-list strong {
  overflow-wrap: anywhere;
  color: #0f172a;
  font-weight: 950;
}

.account-hero-row {
  display: flex;
}

.account-create-btn {
  white-space: nowrap;
}

.account-flash {
  margin-bottom: 18px;
  border: 1px solid rgba(37, 99, 235, .18);
  border-radius: 18px;
  padding: 14px 16px;
  color: #1e40af;
  background: #eff6ff;
  font-weight: 900;
}

.account-flash.error {
  border-color: rgba(239, 68, 68, .22);
  color: #b91c1c;
  background: #fef2f2;
}

.account-list {
  display: grid;
  gap: 14px;
}

.account-prompt-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  border: 1px solid rgba(15, 23, 42, .07);
  border-radius: 24px;
  padding: 14px;
  background: #fff;
}

.account-prompt-thumb {
  display: grid;
  aspect-ratio: 4 / 3;
  place-items: center;
  overflow: hidden;
  border-radius: 18px;
  color: #fff;
  font-size: 34px;
  font-weight: 950;
}

.account-prompt-thumb img,
.account-prompt-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-prompt-info h2 {
  margin: 8px 0 6px;
  overflow: hidden;
  color: #0f172a;
  font-size: 20px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-prompt-info p {
  display: -webkit-box;
  max-width: 760px;
  margin: 0;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: #64748b;
  line-height: 1.65;
  font-weight: 800;
}

.account-prompt-meta,
.account-row-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.account-prompt-meta span,
.account-row-tags span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 999px;
  padding: 0 10px;
  color: #475569;
  background: #f8fafc;
  font-size: 12px;
  font-weight: 900;
}

.account-prompt-meta .is-live {
  border-color: rgba(16, 185, 129, .22);
  color: #047857;
  background: #ecfdf5;
}

.account-prompt-meta .is-draft {
  border-color: rgba(245, 158, 11, .22);
  color: #b45309;
  background: #fffbeb;
}

.account-row-tags {
  margin-top: 10px;
}

.account-prompt-actions {
  display: grid;
  justify-items: end;
}

.account-muted {
  color: #94a3b8;
  font-size: 13px;
  font-weight: 900;
}

.account-pagination {
  margin-top: 18px;
}

.account-empty-cta {
  display: grid;
  justify-items: start;
  gap: 10px;
}

.account-empty-cta strong {
  color: #0f172a;
  font-size: 20px;
}

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

.creator-guide {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 18px;
}

.creator-guide-card,
.creator-editor-panel {
  border: 1px solid rgba(15, 23, 42, .07);
  border-radius: 28px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 22px 60px rgba(15, 23, 42, .07);
}

.creator-guide-card {
  padding: 24px;
}

.creator-guide-card h2,
.creator-section-head h2 {
  margin: 0;
  color: #0f172a;
  font-size: 23px;
}

.creator-guide-card h3 {
  margin: 22px 0 10px;
  color: #0f172a;
  font-size: 16px;
}

.creator-guide-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
  color: #64748b;
  line-height: 1.6;
  font-weight: 800;
}

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

.creator-section-head span {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 900;
}

.word-bank {
  display: grid;
  gap: 18px;
}

.word-bank-group h3 {
  margin: 0 0 9px;
}

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

.word-chip {
  min-height: 34px;
  border: 1px solid rgba(15, 23, 42, .1);
  border-radius: 999px;
  padding: 0 12px;
  color: #334155;
  background: #fff;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  transition: .16s ease;
}

.word-chip:hover {
  border-color: rgba(37, 99, 235, .34);
  color: #1d4ed8;
  background: #eff6ff;
}

.creator-editor-panel {
  display: grid;
  gap: 18px;
  padding: 24px;
}

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

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

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

.creator-field {
  display: grid;
  gap: 9px;
}

.creator-field > span {
  color: #0f172a;
  font-size: 15px;
  font-weight: 950;
}

.creator-field input,
.creator-field select,
.creator-field textarea {
  width: 100%;
  border: 1px solid rgba(15, 23, 42, .11);
  border-radius: 16px;
  padding: 13px 15px;
  color: #0f172a;
  background: #fff;
  font: inherit;
  font-weight: 800;
  outline: none;
}

.creator-field textarea {
  resize: vertical;
  line-height: 1.7;
}

.creator-field input:focus,
.creator-field select:focus,
.creator-field textarea:focus {
  border-color: rgba(37, 99, 235, .55);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .1);
}

.creator-field small {
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.6;
}

.creator-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(15, 23, 42, .07);
  padding-bottom: 18px;
}

.creator-action-row > span {
  color: #94a3b8;
  font-size: 13px;
  font-weight: 900;
}

.creator-action-row div {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.tag-library .tag-toggle-grid {
  max-height: 260px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(15, 23, 42, .12);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
}

.btn.primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--cyan), var(--lime));
  color: #07111e;
}

.btn.dark {
  border-color: rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .96);
  color: #05050a;
}

.btn.ghost {
  color: var(--text-soft);
  background: rgba(255, 255, 255, .06);
  border-color: var(--border);
  box-shadow: none;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 28px 24px 34px;
  color: var(--text);
  background:
    radial-gradient(circle at 72% 16%, rgba(217, 70, 239, .22), transparent 30%),
    radial-gradient(circle at 28% 22%, rgba(56, 189, 248, .28), transparent 27%),
    linear-gradient(135deg, #05050a 0%, #111827 52%, #18112d 100%);
}

.hero-inner {
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: 42px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px),
    rgba(255,255,255,.045);
  background-size: 46px 46px, 46px 46px, auto;
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(20px);
  text-align: center;
}

.hero h1 {
  margin: 0;
  font-size: clamp(42px, 6.2vw, 74px);
  line-height: 1.08;
  font-weight: 880;
}

.hero h1 span {
  color: transparent;
  background: linear-gradient(90deg, #9af5ff, #d8ff64, #ff8f7d);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero p {
  max-width: 840px;
  margin: 22px auto 28px;
  color: var(--text-soft);
  font-size: 17px;
  line-height: 1.75;
}

.search-panel {
  width: min(960px, 100%);
  margin: 0 auto;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: rgba(5, 5, 10, .54);
  box-shadow: 0 18px 50px rgba(0,0,0,.24);
}

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

.search-form input {
  height: 56px;
  min-width: 0;
  padding: 0 18px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  color: #fff;
  background: rgba(255,255,255,.08);
  outline: none;
}

.type-tabs, .quick-tags, .category-tabs, .tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.type-tabs { justify-content: center; margin: 20px 0 0; }
.quick-tags { justify-content: center; margin-top: 16px; }
.category-tabs { margin-bottom: 20px; }

.tab, .chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.tab {
  color: var(--text-soft);
  border: 1px solid var(--border);
  background: rgba(255,255,255,.06);
}

.tab.active {
  color: #05050a;
  background: #fff;
}

.chip {
  color: #334155;
  border: 1px solid rgba(15, 23, 42, .08);
  background: rgba(255,255,255,.78);
}

a.chip {
  text-decoration: none;
}

.chip.active {
  border-color: rgba(166, 226, 46, .8);
  background: #f7fee7;
  color: #365314;
}

.hero .chip {
  color: var(--text-soft);
  border-color: var(--border);
  background: rgba(255,255,255,.07);
}

.main,
.auth-wrap,
.admin-wrap,
.detail-wrap {
  width: min(1280px, calc(100% - 48px));
  margin: 34px auto 72px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.section-head h1,
.section-head h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.2;
}

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

.popular-tag-row {
  max-width: min(780px, 100%);
  justify-content: flex-end;
}

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

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

.prompt-card,
.tutorial-card,
.form-card,
.admin-card,
.detail-card,
.stat,
.plan {
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 24px;
  background: rgba(255,255,255,.76);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.prompt-card {
  position: relative;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}

.prompt-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 28px 80px rgba(8, 13, 28, .2);
}

.tutorial-card {
  overflow: hidden;
}

.tutorial-cover {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #d9f99d, #67e8f9);
}

.tutorial-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .25s ease;
}

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

.tutorial-cover strong {
  display: grid;
  height: 100%;
  place-items: center;
  color: #0f172a;
  font-size: 34px;
}

.tutorial-body {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 18px;
}

.tutorial-body h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.35;
}

.tutorial-body p {
  margin: 0;
  color: #5b6576;
  line-height: 1.7;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow-wrap: anywhere;
}

.tutorial-topic {
  background:
    radial-gradient(circle at 12% 18%, rgba(166, 226, 46, .28), transparent 30%),
    linear-gradient(135deg, rgba(255,255,255,.88), rgba(236,253,245,.78));
}

.prompt-cover {
  position: relative;
  display: flex;
  min-height: 190px;
  align-items: flex-end;
  overflow: hidden;
  padding: 18px;
  color: white;
  background: linear-gradient(135deg, #16c6d9, #8b5cf6);
}

.prompt-cover::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0,0,0,.55));
  content: "";
}

.prompt-cover img,
.prompt-cover video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lazy-video-shell {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
}

.lazy-video-shell img,
.lazy-video-shell video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lazy-video-shell video:not([src]) {
  opacity: 0;
}

.lazy-video-shell.is-video-loaded [data-video-poster] {
  opacity: 0;
  pointer-events: none;
}

.lazy-video-shell [data-video-poster],
.lazy-video-shell video {
  transition: opacity .22s ease, transform .28s ease;
}

.video-play-control {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 999px;
  color: #fff;
  background: rgba(15, 23, 42, .58);
  box-shadow: 0 18px 38px rgba(15, 23, 42, .32);
  opacity: 0;
  outline: none;
  transform: translate(-50%, -50%) scale(.92);
  transition: opacity .18s ease, transform .18s ease, background .18s ease;
}

.video-play-control::before {
  display: block;
  width: 0;
  height: 0;
  margin-left: 4px;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 15px solid currentColor;
  content: "";
}

.lazy-video-shell:hover .video-play-control,
.lazy-video-shell:focus-within .video-play-control {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.lazy-video-shell.is-playing:hover .video-play-control,
.lazy-video-shell.is-playing:focus-within .video-play-control {
  opacity: .28;
}

.video-play-control:focus-visible,
.video-play-control:hover {
  background: rgba(37, 99, 235, .88);
}

.lazy-video-shell.is-playing .video-play-control:hover,
.lazy-video-shell.is-playing .video-play-control:focus-visible {
  opacity: .42;
  background: rgba(15, 23, 42, .38);
}

.lazy-video-shell.is-playing .video-play-control::before {
  width: 18px;
  height: 20px;
  margin-left: 0;
  border: 0;
  background: linear-gradient(90deg, currentColor 0 6px, transparent 6px 12px, currentColor 12px 18px);
}

.prompt-cover strong {
  position: relative;
  z-index: 1;
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(5, 5, 10, .55);
  backdrop-filter: blur(12px);
  font-size: 12px;
  font-weight: 900;
}

.prompt-body { padding: 20px; }

.prompt-body h1,
.prompt-body h3 {
  margin: 0 0 10px;
  line-height: 1.35;
  overflow-wrap: normal;
  word-break: keep-all;
}

.prompt-body h1 { font-size: 34px; }
.prompt-body h3 { font-size: 18px; }

.prompt-body p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.prompt-grid .prompt-body p { min-height: 50px; }

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: #768195;
  font-size: 12px;
  font-weight: 700;
}

.tag-row { margin: 14px 0; }

.lock {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  color: #05050a;
  background: linear-gradient(135deg, #fff, var(--lime));
  font-size: 12px;
  font-weight: 900;
}

.membership-band {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 22px;
  margin-top: 38px;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 28px;
  color: white;
  background:
    radial-gradient(circle at 20% 20%, rgba(124,58,237,.38), transparent 26%),
    linear-gradient(135deg, #05050a, #17132b 55%, #101827);
  box-shadow: var(--glass-shadow);
}

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

.plan {
  padding: 18px;
  color: #fff;
  background: rgba(255,255,255,.08);
  border-color: var(--border);
}

.plan h3 { margin: 0 0 8px; }
.plan strong { font-size: 30px; }

.detail-card {
  overflow: hidden;
  padding: 0;
}

.detail-card .prompt-cover {
  min-height: 420px;
}

.prompt-rich-content {
  margin-top: 18px;
  padding: 22px;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 20px;
  background: rgba(255,255,255,.72);
  color: #1f2937;
  line-height: 1.85;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.prompt-rich-content h1,
.prompt-rich-content h2,
.prompt-rich-content h3 {
  margin: 18px 0 10px;
}

.prompt-rich-content p { margin: 0 0 12px; }
.prompt-rich-content ul,
.prompt-rich-content ol { padding-left: 1.4em; }
.prompt-rich-content a { color: #2563eb; text-decoration: underline; }

.prompt-rich-content * {
  max-width: 100%;
}

.prompt-rich-content img,
.prompt-rich-content video,
.prompt-rich-content iframe {
  display: block;
  width: min(100%, 920px);
  height: auto;
  margin: 18px auto;
  border-radius: 16px;
}

.prompt-rich-content video,
.prompt-rich-content iframe {
  background: #05050a;
}

.prompt-rich-content video {
  max-height: 70vh;
}

.prompt-rich-content iframe {
  aspect-ratio: 16 / 9;
  border: 0;
}

.prompt-rich-content pre,
.prompt-rich-content code {
  white-space: pre-wrap;
  word-break: break-word;
}

.prompt-rich-content .copy-btn,
.prompt-rich-content button {
  display: none;
}

.prompt-rich-content .fbd,
.prompt-rich-content b,
.prompt-rich-content strong {
  font-weight: 900;
}

.prompt-argument-highlight {
  display: inline;
  padding: .02em .2em;
  border: 1px solid rgba(37, 99, 235, .35);
  border-radius: 5px;
  background: #dbeafe;
  color: #1d4ed8;
  font-weight: 900;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.prompt-argument-highlight.tone-2 {
  border-color: rgba(5, 150, 105, .34);
  background: #d1fae5;
  color: #047857;
}

.prompt-argument-highlight.tone-3 {
  border-color: rgba(124, 58, 237, .34);
  background: #ede9fe;
  color: #6d28d9;
}

.prompt-argument-highlight.tone-4 {
  border-color: rgba(217, 119, 6, .38);
  background: #fef3c7;
  color: #b45309;
}

.prompt-rich-content .f_22 { font-size: 22px; }
.prompt-rich-content .f_18 { font-size: 18px; }
.prompt-rich-content .f_16 { font-size: 16px; }

.prompt-rich-content .tutorial-marker-section,
#promptEditor .ql-editor .tutorial-marker-section {
  margin: 30px 0 18px;
  padding: 4px 0 5px 18px;
  border-left: 6px solid var(--lime);
  color: #05050a;
  background: transparent;
  font-size: 24px;
  font-weight: 950;
  line-height: 1.35;
}

.prompt-rich-content p.tutorial-marker-section,
#promptEditor .ql-editor p.tutorial-marker-section {
  margin-top: 32px;
}

.prompt-rich-content .tutorial-marker-section:first-child,
#promptEditor .ql-editor .tutorial-marker-section:first-child {
  margin-top: 0;
}

.tutorial-media {
  background: linear-gradient(135deg, #ecfccb, #cffafe);
}

.tutorial-link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.tutorial-toc-card[hidden] {
  display: none;
}

.tutorial-toc-card nav {
  display: grid;
  gap: 4px;
  padding-right: 4px;
}

.tutorial-toc-card .toc-link {
  display: block;
  overflow: hidden;
  padding: 7px 9px;
  border-radius: 10px;
  color: #475569;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
  text-overflow: ellipsis;
  text-decoration: none;
  white-space: nowrap;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.tutorial-toc-card .toc-link:hover,
.tutorial-toc-card .toc-link.active {
  color: #1d4ed8;
  background: #eff6ff;
}

.tutorial-toc-card .toc-link:hover {
  transform: translateX(2px);
}

.tutorial-toc-card .toc-link.depth-3 {
  padding-left: 22px;
  font-size: 12px;
}

.tutorial-toc-card .toc-link.depth-4 {
  padding-left: 34px;
  color: #64748b;
  font-size: 12px;
}

.latest-tutorial-list {
  display: grid;
  gap: 6px;
}

.latest-tutorial-list a {
  display: block;
  min-width: 0;
  padding: 8px 12px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 14px;
  color: #0f172a;
  background: rgba(248, 250, 252, .82);
  text-decoration: none;
}

.latest-tutorial-list a:hover {
  border-color: rgba(166, 226, 46, .8);
  background: #f7fee7;
}

.latest-tutorial-list strong {
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: #0f172a;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tutorial-content .toc-anchor {
  scroll-margin-top: 110px;
}

.tutorial-content.is-preview {
  position: relative;
  max-height: none;
}

.tutorial-lock-card {
  margin-top: 18px;
  padding: 22px;
  border: 1px solid rgba(15, 23, 42, .1);
  border-radius: 20px;
  background:
    radial-gradient(circle at top right, rgba(166, 226, 46, .18), transparent 32%),
    rgba(255,255,255,.84);
  box-shadow: 0 18px 50px rgba(15, 23, 42, .1);
}

.tutorial-lock-card h3 {
  margin: 0 0 8px;
}

.tutorial-lock-card p {
  margin: 0 0 16px;
  color: #64748b;
  line-height: 1.75;
}

.auth-gate-open {
  overflow: hidden;
}

.auth-gate-modal[hidden] {
  display: none;
}

.auth-gate-modal {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-gate-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(15, 23, 42, .46);
  backdrop-filter: blur(7px);
  cursor: pointer;
}

.auth-gate-card {
  position: relative;
  z-index: 1;
  width: min(100%, 620px);
  padding: 52px 44px 42px;
  border: 2px solid rgba(255, 255, 255, .88);
  border-radius: 34px;
  background:
    radial-gradient(circle at 84% 12%, rgba(166, 226, 46, .48), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, .98), rgba(245, 255, 232, .96) 56%, rgba(255, 255, 255, .98));
  color: #0f172a;
  text-align: center;
  box-shadow: 0 34px 90px rgba(15, 23, 42, .28);
}

.auth-gate-close {
  position: absolute;
  top: 22px;
  right: 24px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .58);
  color: #475569;
  font-size: 38px;
  line-height: 1;
  cursor: pointer;
}

.auth-gate-close:hover {
  color: #0f172a;
  background: rgba(255, 255, 255, .9);
}

.auth-gate-mark {
  display: inline-grid;
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 18px;
  background: #0f172a;
  color: #fff;
  font-weight: 950;
  box-shadow: 0 16px 32px rgba(15, 23, 42, .2);
}

.auth-gate-card h2 {
  margin: 0;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.15;
  letter-spacing: 0;
}

.auth-gate-card p {
  max-width: 520px;
  margin: 20px auto 30px;
  color: #334155;
  font-size: 20px;
  line-height: 1.7;
  font-weight: 800;
}

.auth-gate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.auth-gate-actions .btn {
  min-width: 170px;
  justify-content: center;
  font-size: 18px;
}

.auth-scene {
  position: relative;
  display: grid;
  width: 100%;
  min-height: calc(100vh - 126px);
  margin: 0;
  place-items: center;
  overflow: hidden;
  padding: 36px 24px 42px;
  background:
    linear-gradient(180deg, rgba(248, 250, 252, .72), rgba(239, 246, 255, .54)),
    #eef4f0;
}

.auth-scene::before {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 58%, rgba(217, 249, 157, .64), transparent 34%),
    radial-gradient(circle at 30% 52%, rgba(45, 212, 191, .45), transparent 30%),
    radial-gradient(circle at 72% 48%, rgba(34, 197, 94, .38), transparent 32%);
  filter: blur(34px);
  content: "";
  transform: scale(1.08);
}

.auth-scene-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.auth-blob {
  position: absolute;
  border-radius: 999px;
  filter: blur(52px);
  opacity: .72;
}

.auth-blob.one {
  left: 8%;
  top: 12%;
  width: 260px;
  height: 160px;
  background: rgba(226, 232, 240, .9);
}

.auth-blob.two {
  right: 9%;
  top: 6%;
  width: 320px;
  height: 180px;
  background: rgba(226, 232, 240, .82);
}

.auth-blob.three {
  right: 16%;
  bottom: 12%;
  width: 380px;
  height: 260px;
  background: rgba(166, 226, 46, .34);
}

.auth-glass-window {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(280px, .92fr) minmax(320px, .98fr);
  width: min(100%, 880px);
  min-height: 520px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .84);
  border-radius: 30px;
  background: rgba(255, 255, 255, .42);
  box-shadow:
    0 36px 90px rgba(15, 23, 42, .18),
    inset 0 1px 0 rgba(255, 255, 255, .72);
  backdrop-filter: blur(26px) saturate(132%);
}

.auth-welcome-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0;
  padding: 30px 34px 48px;
  background:
    radial-gradient(circle at 12% 100%, rgba(190, 242, 100, .48), transparent 36%),
    linear-gradient(145deg, rgba(255, 255, 255, .72), rgba(255, 255, 255, .2));
}

.auth-welcome-panel::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 1px;
  height: 100%;
  background: rgba(15, 23, 42, .06);
  content: "";
  box-shadow: 10px 0 34px rgba(15, 23, 42, .1);
}

.auth-mini-brand {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 10px;
  color: #0f172a;
  font-weight: 950;
  text-decoration: none;
}

.auth-mini-brand span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 12px;
  background: #0f172a;
  color: #fff;
  font-size: 13px;
}

.auth-mini-brand strong {
  max-width: 210px;
  overflow: hidden;
  font-size: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-welcome-copy {
  margin-top: clamp(92px, 14vh, 128px);
}

.auth-kicker {
  width: fit-content;
  margin: 0 0 18px;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 999px;
  padding: 8px 13px;
  color: #047857;
  background: rgba(236, 253, 245, .74);
  font-size: 13px;
  font-weight: 950;
}

.auth-welcome-panel h1 {
  display: grid;
  width: min(100%, 372px);
  gap: 6px;
  margin: 0;
  color: #050816;
  letter-spacing: 0;
  line-height: .98;
}

.auth-welcome-panel h1 span {
  display: block;
  overflow: hidden;
  font-size: clamp(62px, 6.8vw, 78px);
  font-weight: 950;
  text-overflow: clip;
  white-space: nowrap;
}

.auth-welcome-panel h1 span + span {
  font-size: clamp(46px, 5.2vw, 58px);
}

.auth-welcome-panel p:last-child {
  max-width: 360px;
  margin: 22px 0 0;
  color: #475569;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.8;
}

.auth-glass-card {
  display: grid;
  align-content: center;
  gap: 15px;
  padding: 42px 50px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .78), rgba(255, 255, 255, .5));
  backdrop-filter: blur(22px);
}

.auth-form-head {
  margin-bottom: 8px;
}

.auth-form-head span {
  color: #64748b;
  font-size: 13px;
  font-weight: 950;
}

.auth-form-head h2 {
  margin: 8px 0 8px;
  color: #050816;
  font-size: 28px;
  line-height: 1.18;
}

.auth-form-head p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
  font-weight: 800;
}

.auth-field {
  display: grid;
  gap: 7px;
  color: #475569;
  font-size: 13px;
  font-weight: 900;
}

.auth-field input {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(15, 23, 42, .14);
  border-radius: 14px;
  padding: 0 15px;
  color: #0f172a;
  background: rgba(255, 255, 255, .62);
  font-size: 15px;
  font-weight: 850;
  outline: none;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.auth-field input:focus {
  border-color: rgba(132, 204, 22, .8);
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 0 0 4px rgba(166, 226, 46, .16);
}

.auth-notice {
  margin: 0;
}

.auth-remember {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 9px;
  color: #475569;
  font-size: 14px;
  font-weight: 900;
}

.auth-remember input {
  width: 17px;
  height: 17px;
  accent-color: #22c55e;
}

.auth-submit {
  min-height: 48px;
  margin-top: 8px;
  border: 0;
  border-radius: 999px;
  color: #0f172a;
  background: linear-gradient(90deg, #d9f99d, #22c55e);
  font-size: 16px;
  font-weight: 950;
  box-shadow: 0 16px 30px rgba(34, 197, 94, .24);
  transition: transform .16s ease, box-shadow .16s ease;
}

.auth-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 42px rgba(34, 197, 94, .3);
}

.auth-switch {
  display: flex;
  justify-content: center;
  gap: 8px;
  color: #64748b;
  font-size: 14px;
  font-weight: 850;
}

.auth-switch a {
  color: #047857;
  font-weight: 950;
}

.footer {
  padding: 24px 34px;
  color: rgba(255,255,255,.58);
  background: #05050a;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.form-card,
.admin-card {
  padding: 24px;
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  color: #1f2937;
  font-weight: 800;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(15, 23, 42, .12);
  border-radius: 16px;
  padding: 12px 13px;
  color: #111827;
  background: rgba(255,255,255,.88);
  outline: none;
}

.form-grid.two {
  display: grid;
  grid-template-columns: minmax(180px, .4fr) minmax(260px, 1fr);
  gap: 14px;
}

.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(15,23,42,.1);
  border-radius: 16px;
  background: rgba(255,255,255,.7);
}

.editor-toolbar button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(15,23,42,.1);
  border-radius: 999px;
  background: #fff;
  color: #172033;
  font-weight: 800;
}

.editor-toolbar.ql-toolbar.ql-snow {
  border-color: rgba(15,23,42,.1);
  border-radius: 16px 16px 0 0;
  background: rgba(255,255,255,.88);
}

.editor-toolbar.ql-toolbar.ql-snow .ql-formats {
  margin-right: 6px;
}

.editor-toolbar.ql-toolbar.ql-snow button,
.editor-toolbar.ql-toolbar.ql-snow .ql-picker,
.editor-toolbar.ql-toolbar.ql-snow .ql-color-picker,
.editor-toolbar.ql-toolbar.ql-snow .ql-icon-picker {
  min-height: 34px;
}

.editor-toolbar.ql-toolbar.ql-snow button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
}

.editor-toolbar.ql-toolbar.ql-snow button:hover,
.editor-toolbar.ql-toolbar.ql-snow button.ql-active,
.editor-toolbar.ql-toolbar.ql-snow .ql-picker-label:hover,
.editor-toolbar.ql-toolbar.ql-snow .ql-picker-label.ql-active {
  color: #2563eb;
  background: #eff6ff;
}

.rich-editor {
  min-height: 260px;
  padding: 18px;
  border: 1px solid rgba(15,23,42,.12);
  border-radius: 18px;
  background: #fff;
  color: #111827;
  line-height: 1.8;
  outline: none;
}

.rich-editor:empty::before {
  color: #94a3b8;
  content: attr(data-placeholder);
}

#promptEditor.rich-editor.ql-container {
  min-height: 0;
  padding: 0;
  border-color: rgba(15,23,42,.12);
  border-radius: 0 0 18px 18px;
  background: #fff;
  font-family: inherit;
  font-size: 16px;
}

.prompt-form-card #promptEditor.rich-editor.ql-container {
  height: min(56vh, 560px);
  min-height: 360px;
}

#promptEditor .ql-editor {
  min-height: 420px;
  padding: 18px;
  color: #1f2937;
  font-size: 15px;
  line-height: 1.85;
  overflow-wrap: anywhere;
}

#promptEditor .ql-editor h1,
#promptEditor .ql-editor h2,
#promptEditor .ql-editor h3 {
  margin: 18px 0 10px;
  line-height: 1.25;
}

#promptEditor .ql-editor p {
  margin: 0 0 12px;
}

#promptEditor .ql-editor ul,
#promptEditor .ql-editor ol {
  margin: 0 0 12px;
  padding-left: 1.4em;
}

#promptEditor .ql-editor li {
  margin: 0 0 6px;
  padding-left: 0;
}

#promptEditor .ql-editor blockquote {
  margin: 0 0 12px;
  padding-left: 16px;
  border-left: 4px solid rgba(15, 23, 42, .14);
  color: #475569;
}

#promptEditor .ql-editor pre,
#promptEditor .ql-editor code {
  white-space: pre-wrap;
  word-break: break-word;
}

.prompt-form-card #promptEditor .ql-editor {
  height: 100%;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-bottom: 32px;
}

.tutorial-editor-shell {
  overflow: hidden;
  border: 1px solid rgba(15,23,42,.12);
  border-radius: 18px;
  background: #fff;
}

.tutorial-editor-field .editor-toolbar.ql-toolbar.ql-snow {
  position: sticky;
  top: 0;
  z-index: 20;
  border-width: 0 0 1px;
  border-radius: 0;
  background: rgba(255,255,255,.98);
  box-shadow: 0 10px 24px rgba(15,23,42,.06);
}

.tutorial-editor-field #promptEditor.rich-editor.ql-container {
  height: min(66vh, 720px);
  min-height: 520px;
  border: 0;
  border-radius: 0;
}

.tutorial-editor-field #promptEditor .ql-editor {
  height: 100%;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 22px 26px 90px;
}

.tutorial-form-actions {
  position: sticky;
  bottom: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  margin: 18px -24px -24px;
  padding: 14px 24px;
  border-top: 1px solid rgba(15,23,42,.08);
  border-radius: 0 0 24px 24px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 -14px 34px rgba(15,23,42,.08);
  backdrop-filter: blur(14px);
}

#promptEditor .ql-editor img,
#promptEditor .ql-editor video {
  display: block;
  width: min(100%, 920px);
  max-width: 100%;
  height: auto;
  margin: 18px auto;
  border-radius: 16px;
}

#promptEditor .ql-editor video {
  background: #020617;
}

.editor-context-menu {
  position: fixed;
  z-index: 10000;
  display: grid;
  gap: 4px;
  min-width: 150px;
  padding: 8px;
  border: 1px solid rgba(15,23,42,.12);
  border-radius: 14px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 18px 48px rgba(15,23,42,.18);
}

.editor-context-menu[hidden] {
  display: none;
}

.editor-context-menu button {
  width: 100%;
  border: 0;
  border-radius: 10px;
  padding: 9px 10px;
  color: #0f172a;
  background: transparent;
  font-weight: 900;
  text-align: left;
}

.editor-context-menu button:hover {
  color: #05050a;
  background: #ecfccb;
}

.editor-quick-block-tool {
  position: fixed;
  z-index: 9999;
  border: 1px solid rgba(15,23,42,.12);
  border-radius: 999px;
  padding: 7px 12px;
  color: #0f172a;
  background: #ecfccb;
  box-shadow: 0 12px 30px rgba(15,23,42,.16);
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

.editor-quick-block-tool[hidden] {
  display: none;
}

.editor-quick-block-tool:hover {
  background: var(--lime);
}

.media-upload-grid {
  align-items: stretch;
}

.media-url-preview {
  display: grid;
  min-height: 164px;
  place-items: center;
  overflow: hidden;
  border: 1px dashed rgba(15, 23, 42, .18);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(56, 189, 248, .08), rgba(166, 226, 46, .08)),
    rgba(255,255,255,.72);
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
}

.media-url-preview img,
.media-url-preview video {
  display: block;
  width: 100%;
  max-height: 240px;
  object-fit: contain;
  background: #f8fafc;
}

.model-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.model-suggestion-button {
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid rgba(15, 23, 42, .1);
  border-radius: 999px;
  background: rgba(255,255,255,.86);
  color: #334155;
  font-size: 12px;
  font-weight: 900;
}

.model-suggestion-button:hover {
  color: #0f172a;
  background: #e0f2fe;
}

.settings-form {
  display: grid;
  gap: 4px;
}

.invite-code-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.invite-code-control .btn {
  min-height: 46px;
  white-space: nowrap;
}

.settings-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
  padding: 10px;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 24px;
  background: rgba(255,255,255,.72);
  box-shadow: var(--shadow);
}

.settings-tabs button {
  min-height: 40px;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 999px;
  padding: 0 16px;
  color: #475569;
  background: rgba(248,250,252,.86);
  font: inherit;
  font-size: 13px;
  font-weight: 950;
}

.settings-tabs button:hover,
.settings-tabs button.is-active {
  border-color: rgba(37, 99, 235, .28);
  color: #0f172a;
  background: #eaf2ff;
}

.settings-tab-panel[hidden] {
  display: none;
}

[data-settings-form][hidden] {
  display: none;
}

.settings-save-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

.settings-save-row[hidden] {
  display: none;
}

.settings-section {
  margin-bottom: 10px;
  padding: 20px;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 20px;
  background: rgba(248,250,252,.72);
}

.eyebrow {
  color: #2563eb;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.settings-section h2 {
  margin: 4px 0 8px;
}

.settings-section p {
  max-width: 760px;
  margin: 0;
  color: #64748b;
  line-height: 1.7;
}

.toggle-line {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #1f2937;
  font-weight: 800;
}

.toggle-line input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #2563eb;
}

.setting-check {
  margin-bottom: 16px;
}

.backup-panel-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 18px;
  background: rgba(248,250,252,.76);
}

.backup-panel-inline span {
  color: #64748b;
  font-size: 13px;
  font-weight: 850;
}

.backup-upload-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.backup-upload-form input[type="file"] {
  max-width: 280px;
  padding: 10px 12px;
  border: 1px solid rgba(15, 23, 42, .12);
  border-radius: 999px;
  background: #fff;
  color: #334155;
  font-weight: 800;
}

.help-text {
  color: #6b7280;
  font-size: 13px;
  font-weight: 500;
}

.admin-shell {
  display: grid;
  grid-template-columns: 238px 1fr;
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, rgba(236,72,153,.14), transparent 28%),
    linear-gradient(135deg, rgba(109,40,217,.22), rgba(14,165,233,.08), #f7f9fc 45%);
}

.admin-side {
  padding: 28px 22px;
  color: white;
  background:
    radial-gradient(circle at 20% 10%, rgba(56,189,248,.28), transparent 30%),
    linear-gradient(180deg, #05050a, #0f1020);
  border-right: 1px solid var(--border);
}

.admin-brand {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  min-height: 76px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 22px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(255,255,255,.13), rgba(255,255,255,.045)),
    rgba(3, 7, 18, .34);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.14),
    0 22px 48px rgba(0, 0, 0, .24);
}

.admin-brand::after {
  position: absolute;
  right: 13px;
  bottom: 11px;
  width: 38px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(166, 226, 46, .85));
  content: "";
}

.admin-brand:hover {
  color: #fff;
  background:
    linear-gradient(135deg, rgba(255,255,255,.18), rgba(255,255,255,.06)),
    rgba(3, 7, 18, .44);
}

.admin-brand-mark {
  position: relative;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 16px;
  color: #ecfeff;
  background:
    linear-gradient(145deg, rgba(18, 168, 196, .95), rgba(37, 99, 235, .82) 52%, rgba(166, 226, 46, .72));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.32),
    0 18px 34px rgba(37, 99, 235, .28);
  font-size: 24px;
  font-weight: 950;
}

.admin-brand-mark::after {
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 12px;
  content: "";
}

.admin-brand-mark img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-brand-mark span {
  position: relative;
  z-index: 1;
  letter-spacing: 0;
}

.admin-brand-copy {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.admin-brand-kicker {
  overflow: hidden;
  color: rgba(226, 232, 240, .64);
  font-size: 9px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-brand-title {
  overflow: hidden;
  color: #fff;
  font-size: 17px;
  font-weight: 950;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-brand-subtitle {
  overflow: hidden;
  color: rgba(203, 213, 225, .78);
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-side nav {
  display: grid;
  gap: 8px;
  margin-top: 28px;
}

.admin-side a {
  padding: 12px 13px;
  border-radius: 999px;
  color: var(--text-soft);
  font-weight: 800;
}

.admin-side a:hover {
  color: #05050a;
  background: #fff;
}

.admin-nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 18px;
  margin-left: 6px;
  padding: 0 7px;
  border-radius: 999px;
  color: #05050a;
  background: #a6e22e;
  font-size: 10px;
  font-weight: 950;
}

.admin-logout-form {
  margin: 8px 0 0;
}

.admin-logout-button {
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 12px 13px;
  color: #fecaca;
  background: rgba(239,68,68,.12);
  font: inherit;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.admin-logout-button:hover {
  color: #05050a;
  background: #fff;
}

.admin-side nav {
  gap: 7px;
}

.admin-side a,
.admin-logout-button {
  padding: 10px 13px;
  font-size: 14px;
  line-height: 1.25;
}

.admin-main { padding: 30px; min-width: 0; }

.admin-shell {
  font-size: 14px;
  line-height: 1.45;
}

.admin-main {
  color: #0f172a;
  font-size: 14px;
  line-height: 1.45;
}

.admin-main h1 {
  margin-top: 0;
  font-size: 30px;
  line-height: 1.12;
}

.admin-main h2 {
  font-size: 21px;
  line-height: 1.22;
}

.admin-main h3 {
  font-size: 17px;
  line-height: 1.28;
}

.admin-main p {
  line-height: 1.52;
}

.admin-side nav {
  gap: 7px;
}

.admin-side a,
.admin-logout-button {
  padding: 10px 13px;
  font-size: 14px;
  line-height: 1.25;
}

.admin-main .section-head {
  margin-bottom: 16px;
}

.admin-main .section-head h1,
.admin-main .section-head h2 {
  font-size: 30px;
  line-height: 1.12;
}

.admin-main .section-head p {
  margin-top: 7px;
  font-size: 14px;
  line-height: 1.5;
}

.admin-main .form-card,
.admin-main .admin-card {
  border-radius: 22px;
  padding: 20px;
}

.admin-main .field {
  gap: 7px;
  margin-bottom: 13px;
  font-size: 13px;
  line-height: 1.35;
}

.admin-main .field input,
.admin-main .field select,
.admin-main .field textarea,
.admin-main .admin-compact-input {
  min-height: 42px;
  border-radius: 15px;
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1.38;
}

.admin-main textarea {
  line-height: 1.5;
}

.admin-main .btn {
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 14px;
  line-height: 1;
  font-weight: 850;
}

.admin-main .actions,
.admin-main .filter-actions,
.admin-main .table-action-row,
.admin-main .inline-form,
.admin-main .order-action-stack,
.admin-main .order-confirm-form {
  gap: 8px;
}

.admin-main .compact-form,
.admin-main .import-form,
.admin-main .prompt-filter-form {
  gap: 12px;
}

.admin-main .prompt-filter-form {
  margin-bottom: 14px;
}

.admin-main .bulk-toolbar {
  gap: 12px;
  margin-bottom: 14px;
}

.admin-main .check-line {
  min-height: 40px;
  font-size: 14px;
  line-height: 1.35;
}

.admin-main .field-note,
.admin-main .error {
  font-size: 12px;
  line-height: 1.45;
}

.admin-main .table {
  border-radius: 22px;
}

.admin-main .table th,
.admin-main .table td {
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1.35;
}

.admin-main .table th {
  color: #334155;
  font-size: 12px;
  font-weight: 850;
}

.admin-main .table input[type="checkbox"] {
  width: 16px;
  height: 16px;
}

.admin-main .sort-link {
  font-weight: 850;
}

.admin-main .sort-order-input {
  width: 50px;
  min-height: 34px;
  border-radius: 11px;
  padding: 6px 8px;
  font-size: 14px;
}

.admin-main .inline-access-select,
.admin-main .inline-category-select {
  min-height: 34px;
  border-radius: 11px;
  padding-left: 12px;
  font-size: 13px;
}

.admin-main .tutorials-table .table-action-row .btn,
.admin-main .prompts-admin-table .actions .btn,
.admin-main .order-action-stack .btn,
.admin-main .order-confirm-form .btn {
  min-height: 34px;
  padding: 0 13px;
  font-size: 13px;
}

.admin-main .admin-pagination,
.admin-main .admin-pagination-bar {
  gap: 10px;
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.35;
}

.admin-main .per-page-form label {
  min-height: 36px;
  gap: 7px;
  padding: 0 9px 0 12px;
  font-size: 13px;
}

.admin-main .per-page-form select {
  min-width: 82px;
  padding: 6px 24px 6px 8px;
  font-size: 13px;
}

.admin-main .import-source-hints span,
.admin-main .order-status-badge {
  min-height: 30px;
  padding: 0 11px;
  font-size: 12px;
}

.admin-prompt-edit-page,
.admin-tutorial-edit-page {
  height: 100vh;
  overflow: hidden;
  position: relative;
}

.admin-prompt-edit-page::before,
.admin-tutorial-edit-page::before {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 0;
  width: 238px;
  border-right: 1px solid var(--border);
  background:
    radial-gradient(circle at 20% 10%, rgba(56,189,248,.28), transparent 30%),
    linear-gradient(180deg, #05050a, #0f1020);
  content: "";
}

.admin-prompt-edit-page .admin-shell,
.admin-tutorial-edit-page .admin-shell {
  position: relative;
  z-index: 1;
  align-items: stretch;
  height: 100vh;
  min-height: 0;
  overflow: hidden;
  background: transparent;
}

.admin-prompt-edit-page .admin-side,
.admin-tutorial-edit-page .admin-side {
  height: 100vh;
  overflow-y: auto;
  border-right: 0;
  background: transparent;
}

.admin-prompt-edit-page .admin-main,
.admin-tutorial-edit-page .admin-main {
  display: flex;
  overflow-y: auto;
  overflow-x: hidden;
  flex-direction: column;
  height: 100vh;
  min-height: 0;
  min-width: 0;
  padding-bottom: 30px;
}

.admin-prompt-edit-page .prompt-form-card,
.admin-tutorial-edit-page .tutorial-form {
  flex: 1 0 auto;
  margin-bottom: 0;
  min-height: 0;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.admin-tutorial-edit-page .section-head,
.admin-tutorial-edit-page .form-grid,
.admin-tutorial-edit-page .field,
.admin-tutorial-edit-page .collection-picker,
.admin-tutorial-edit-page .tag-toggle-grid,
.admin-tutorial-edit-page .tag-add-line,
.admin-tutorial-edit-page .tutorial-editor-field,
.admin-tutorial-edit-page .tutorial-editor-shell,
.admin-tutorial-edit-page #promptEditor.rich-editor.ql-container,
.admin-tutorial-edit-page #promptEditor .ql-editor {
  min-width: 0;
  max-width: 100%;
}

.admin-tutorial-edit-page .tutorial-editor-shell {
  contain: layout paint;
}

.admin-tutorial-edit-page .editor-toolbar.ql-toolbar.ql-snow {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: visible;
}

.admin-tutorial-edit-page #promptEditor.rich-editor.ql-container {
  overflow: hidden;
}

.admin-tutorial-edit-page #promptEditor .ql-editor {
  overflow-x: auto;
  word-break: break-word;
}

.admin-tutorial-edit-page #promptEditor .ql-editor *,
.admin-tutorial-edit-page #promptEditor .ql-editor img,
.admin-tutorial-edit-page #promptEditor .ql-editor video,
.admin-tutorial-edit-page #promptEditor .ql-editor iframe,
.admin-tutorial-edit-page #promptEditor .ql-editor table {
  max-width: 100%;
}

.admin-tutorial-edit-page #promptEditor .ql-editor img,
.admin-tutorial-edit-page #promptEditor .ql-editor video,
.admin-tutorial-edit-page #promptEditor .ql-editor iframe {
  object-fit: contain;
}

.admin-tutorial-edit-page #promptEditor .ql-editor pre,
.admin-tutorial-edit-page #promptEditor .ql-editor code {
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
}

@media (max-width: 980px) {
  .admin-prompt-edit-page::before,
  .admin-tutorial-edit-page::before {
    display: none;
  }

  .admin-prompt-edit-page .admin-side,
  .admin-tutorial-edit-page .admin-side {
    height: auto;
    overflow-y: visible;
    border-right: 1px solid var(--border);
    background:
      radial-gradient(circle at 20% 10%, rgba(56,189,248,.28), transparent 30%),
      linear-gradient(180deg, #05050a, #0f1020);
  }

  .admin-prompt-edit-page,
  .admin-tutorial-edit-page,
  .admin-prompt-edit-page .admin-shell,
  .admin-tutorial-edit-page .admin-shell,
  .admin-prompt-edit-page .admin-main,
  .admin-tutorial-edit-page .admin-main {
    height: auto;
    overflow: visible;
  }
}

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

.stat {
  padding: 20px;
}

.stat strong {
  display: block;
  margin-top: 8px;
  font-size: 30px;
}

.table {
  width: 100%;
  overflow: hidden;
  border-collapse: collapse;
  border-radius: 20px;
  background: rgba(255,255,255,.82);
  box-shadow: var(--shadow);
}

.table th,
.table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(15,23,42,.08);
  text-align: left;
  vertical-align: middle;
}

.table th {
  color: #475569;
  font-size: 13px;
}

.prompts-admin-table {
  table-layout: fixed;
}

.prompts-admin-table th,
.prompts-admin-table td {
  padding: 10px 14px;
  color: #0f172a;
  font-size: 14px;
  line-height: 1.35;
}

.prompts-admin-table th {
  color: #334155;
  font-size: 12px;
  font-weight: 850;
}

.prompts-admin-table td {
  height: 50px;
}

.prompts-admin-table th:nth-child(1),
.prompts-admin-table td:nth-child(1) {
  width: 56px;
}

.prompts-admin-table th:nth-child(2),
.prompts-admin-table td:nth-child(2) {
  width: 84px;
}

.prompts-admin-table th:nth-child(3),
.prompts-admin-table td:nth-child(3) {
  width: 31%;
}

.prompts-admin-table th:nth-child(4),
.prompts-admin-table td:nth-child(4) {
  width: 180px;
}

.prompts-admin-table th:nth-child(5),
.prompts-admin-table td:nth-child(5) {
  width: 116px;
}

.prompts-admin-table th:nth-child(6),
.prompts-admin-table td:nth-child(6) {
  width: 130px;
}

.prompts-admin-table th:nth-child(7),
.prompts-admin-table td:nth-child(7) {
  width: 98px;
}

.prompts-admin-table th:nth-child(8),
.prompts-admin-table td:nth-child(8) {
  width: 166px;
}

.prompts-admin-table td:nth-child(3),
.prompts-admin-table td:nth-child(5),
.prompts-admin-table td:nth-child(7) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-title-link {
  color: inherit;
  font-weight: 850;
  text-decoration: none;
}

.admin-title-link:hover {
  color: #2563eb;
}

.prompts-admin-table .sort-order-input {
  width: 50px;
  min-height: 34px;
  border-radius: 11px;
}

.prompts-admin-table .inline-access-select,
.prompts-admin-table .inline-category-select {
  width: 100%;
  min-height: 34px;
  border-radius: 11px;
  font-size: 13px;
}

.prompts-admin-table .actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
}

.prompts-admin-table .actions .btn {
  min-height: 36px;
  padding: 0 14px;
  font-size: 13px;
}

.sort-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #334155;
  font-weight: 900;
  white-space: nowrap;
}

.sort-link span {
  color: #2563eb;
  font-size: 12px;
}

.case-id {
  color: #2563eb;
  font-weight: 900;
  white-space: nowrap;
}

.table input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

.sort-order-input {
  width: 52px;
  min-height: 36px;
  border: 1px solid rgba(15, 23, 42, .12);
  border-radius: 12px;
  padding: 7px 8px;
  color: #0f172a;
  background: rgba(255,255,255,.9);
  font-weight: 900;
  text-align: center;
}

.sort-order-input::-webkit-outer-spin-button,
.sort-order-input::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.inline-access-select,
.inline-category-select {
  min-height: 36px;
  border: 1px solid rgba(15, 23, 42, .1);
  border-radius: 12px;
  padding: 0 30px 0 12px;
  color: #0f172a;
  background: rgba(255, 255, 255, .92);
  font-size: 13px;
  font-weight: 900;
}

.inline-access-select:disabled,
.inline-category-select:disabled {
  cursor: progress;
  opacity: .68;
}

.tutorials-table {
  table-layout: fixed;
}

.tutorials-table th,
.tutorials-table td {
  overflow: hidden;
  padding-right: 10px;
  padding-left: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tutorials-table th:nth-child(1),
.tutorials-table td:nth-child(1) {
  width: 44px;
  overflow: visible;
  text-align: center;
  text-overflow: clip;
}

.tutorials-table th:nth-child(2),
.tutorials-table td:nth-child(2) {
  width: 74px;
  overflow: visible;
  text-align: center;
  text-overflow: clip;
}

.tutorials-table th:nth-child(3),
.tutorials-table td:nth-child(3) {
  width: 28%;
}

.tutorials-table th:nth-child(4),
.tutorials-table td:nth-child(4) {
  width: 86px;
}

.tutorials-table th:nth-child(5),
.tutorials-table td:nth-child(5) {
  width: 136px;
}

.tutorials-table th:nth-child(6),
.tutorials-table td:nth-child(6) {
  width: 62px;
}

.tutorials-table th:nth-child(7),
.tutorials-table td:nth-child(7) {
  width: 56px;
}

.tutorials-table th:nth-child(8),
.tutorials-table td:nth-child(8) {
  width: 86px;
}

.tutorials-table th:nth-child(9),
.tutorials-table td:nth-child(9) {
  width: 236px;
}

.tutorials-table .inline-access-select {
  width: 100%;
  min-width: 0;
  padding-right: 26px;
}

.tutorials-table .actions {
  overflow: visible;
}

.tutorials-table th:nth-child(1) .sort-link,
.tutorials-table th:nth-child(2) .sort-link {
  justify-content: center;
}

.tutorials-table th:nth-child(1) .sort-link span,
.tutorials-table th:nth-child(2) .sort-link span {
  display: none;
}

.table-action-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  white-space: nowrap;
}

.tutorials-table .table-action-row .btn {
  min-height: 34px;
  padding: 0 12px;
}

.duplicate-summary {
  margin-bottom: 18px;
  color: #334155;
  font-weight: 900;
}

.duplicate-group {
  margin-bottom: 18px;
}

.duplicate-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.duplicate-group-head h2 {
  margin: 0;
  font-size: 20px;
}

.duplicate-group-head span {
  color: #64748b;
  font-size: 13px;
  font-weight: 900;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.inline-form {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin: 0;
}

.inline-action-form {
  display: inline-flex;
  margin: 0;
}

.btn.danger {
  border-color: rgba(239, 68, 68, .24);
  color: #b91c1c;
  background: #fff1f2;
}

.btn.warning {
  border-color: rgba(245, 158, 11, .28);
  color: #92400e;
  background: #fffbeb;
}

.btn.danger:disabled {
  cursor: not-allowed;
  opacity: .48;
}

.admin-compact-input {
  width: 120px;
  min-height: 38px;
  border: 1px solid rgba(15, 23, 42, .12);
  border-radius: 999px;
  padding: 0 12px;
  color: #0f172a;
  background: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
}

.notice {
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #ecfeff;
  color: #036672;
}

.update-alert {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(166, 226, 46, .45);
  background: #f7fee7;
  color: #365314;
  font-weight: 900;
}

.update-alert a {
  color: #2563eb;
  font-weight: 950;
}

.error-notice {
  background: #fff1f2;
  color: #b91c1c;
}

.repair-result {
  display: grid;
  gap: 4px;
  color: #0f766e;
  background: #f0fdfa;
}

.tutorial-tags-manager {
  display: grid;
  grid-template-columns: minmax(220px, .6fr) minmax(320px, 1fr) auto;
  gap: 16px;
  align-items: end;
  margin-bottom: 16px;
}

.tutorial-tags-manager h2 {
  margin: 0 0 6px;
  font-size: 20px;
}

.tutorial-tags-manager p {
  margin: 0;
  color: #64748b;
  line-height: 1.65;
}

.tutorial-tags-manager .field {
  margin: 0;
}

.field-headline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.field-headline a {
  color: #2563eb;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.tutorial-tag-picker {
  align-self: start;
}

.tag-toggle-grid {
  display: flex;
  max-height: 170px;
  overflow: auto;
  flex-wrap: wrap;
  gap: 9px;
  padding: 12px;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 18px;
  background: rgba(248, 250, 252, .82);
}

[data-prompt-tag-picker] .tag-toggle-grid {
  max-height: 330px;
}

.tag-toggle {
  cursor: pointer;
}

.tag-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.tag-toggle span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 14px;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 999px;
  background: #fff;
  color: #334155;
  font-size: 13px;
  font-weight: 900;
  transition: .16s ease;
}

.tag-toggle input:checked + span {
  border-color: rgba(37, 99, 235, .55);
  background: #2563eb;
  color: #fff;
  box-shadow: 0 14px 28px rgba(37, 99, 235, .2);
}

.tag-add-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.collection-picker {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, .42fr);
  gap: 10px;
}

.collection-picker input,
.collection-picker select {
  width: 100%;
}

.tutorial-collection-manager {
  display: grid;
  gap: 18px;
}

.collection-manager-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.collection-manager-head h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.collection-manager-head p {
  margin: 0;
  color: #64748b;
}

.collection-manager-head > span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 999px;
  background: rgba(255,255,255,.7);
  color: #334155;
  font-weight: 850;
  white-space: nowrap;
}

.collection-table td {
  vertical-align: middle;
}

.collection-name-link {
  color: #2563eb;
  font-weight: 850;
  text-decoration: none;
}

.collection-name-link:hover,
.collection-name-link.active {
  color: #1d4ed8;
  text-decoration: underline;
}

.collection-detail-head {
  margin-top: 22px;
}

.collection-detail-head h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.collection-rename-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.collection-rename-form input {
  min-height: 38px;
  border: 1px solid rgba(15, 23, 42, .1);
  border-radius: 14px;
  padding: 8px 12px;
  background: rgba(255,255,255,.76);
  font: inherit;
  font-weight: 800;
}

.tutorial-tag-manager-page {
  display: grid;
  gap: 24px;
}

.tag-manager-section {
  display: grid;
  grid-template-columns: minmax(220px, .45fr) minmax(320px, 1fr);
  gap: 18px;
  align-items: start;
}

.tag-manager-section h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.tag-manager-section p {
  margin: 0;
  color: #64748b;
  line-height: 1.7;
}

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

.popular-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-start;
}

.popular-tag-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  border: 1px solid rgba(15, 23, 42, .1);
  border-radius: 999px;
  padding: 0 18px;
  background: rgba(255, 255, 255, .9);
  color: #334155;
  font-size: 15px;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .05);
}

.popular-tag-remove {
  position: absolute;
  top: -7px;
  right: -18px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transform: scale(.82);
  box-shadow: 0 8px 18px rgba(239, 68, 68, .28);
  transition: opacity .16s ease, transform .16s ease;
}

.popular-tag-chip:hover .popular-tag-remove,
.popular-tag-chip:focus-within .popular-tag-remove {
  opacity: 1;
  transform: scale(1);
}

.tag-usage-count {
  position: absolute;
  top: -10px;
  right: -4px;
  z-index: 1;
  display: inline-grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 999px;
  padding: 0 6px;
  color: #fff;
  background: #2563eb;
  font-size: 11px;
  font-weight: 950;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(37, 99, 235, .22);
  pointer-events: none;
}

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

.tag-manager-row input {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(15, 23, 42, .1);
  border-radius: 14px;
  padding: 0 13px;
  color: #111827;
  background: rgba(255, 255, 255, .9);
}

.check-line.danger {
  color: #b91c1c;
}

.admin-existing-tags .chip {
  cursor: pointer;
}

.existing-tag-chip {
  position: relative;
  display: inline-flex;
  line-height: 1;
}

.existing-tag-remove {
  position: absolute;
  top: -7px;
  right: -18px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transform: scale(.82);
  box-shadow: 0 8px 18px rgba(239, 68, 68, .28);
  transition: opacity .16s ease, transform .16s ease;
}

.existing-tag-chip:hover .existing-tag-remove,
.existing-tag-chip:focus-within .existing-tag-remove {
  opacity: 1;
  transform: scale(1);
}

.repair-progress-card {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.repair-progress-card[hidden] {
  display: none;
}

.repair-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.repair-progress-head strong,
.repair-progress-head span {
  display: block;
}

.repair-progress-head strong {
  color: #0f172a;
  font-size: 17px;
  font-weight: 900;
}

.repair-progress-head span,
.repair-progress-meta {
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
}

.repair-progress-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(15, 23, 42, .08);
}

.repair-progress-bar {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2563eb, #a6e22e);
  transition: width .25s ease;
}

.repair-progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.repair-progress-log {
  display: grid;
  gap: 5px;
  max-height: 180px;
  overflow: auto;
  color: #334155;
  font-size: 13px;
  font-weight: 800;
}

.update-progress-card {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding: 16px;
  border: 1px solid rgba(37,99,235,.14);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(239,246,255,.78), rgba(247,254,231,.72));
}

.update-progress-card[hidden] {
  display: none;
}

.update-progress-card[data-status="completed"] .repair-progress-bar {
  background: linear-gradient(90deg, #22c55e, #a6e22e);
}

.update-progress-card[data-status="failed"] .repair-progress-bar {
  background: linear-gradient(90deg, #ef4444, #f97316);
}

.backup-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.backup-panel h2,
.backup-list-head h2 {
  margin: 6px 0 8px;
  color: #0f172a;
}

.backup-panel p,
.backup-list-head p {
  max-width: 760px;
  margin: 0;
  color: #64748b;
  line-height: 1.7;
}

.backup-list-card {
  overflow: hidden;
}

.backup-list-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.backup-list-head span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 999px;
  padding: 0 13px;
  color: #334155;
  background: rgba(248, 250, 252, .9);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.backup-table td:first-child strong {
  display: block;
  color: #0f172a;
  font-weight: 900;
  word-break: break-all;
}

.update-status-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.update-package-card {
  margin-bottom: 24px;
}

.update-package-card + .admin-card {
  margin-top: 24px;
}

.update-status-card h2,
.update-package-card h2 {
  margin: 4px 0 8px;
}

.update-status-card p,
.update-package-card p {
  margin: 0;
  color: #64748b;
  line-height: 1.7;
}

.update-status-card > strong {
  display: inline-flex;
  min-width: 132px;
  min-height: 62px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #05050a;
  background: linear-gradient(135deg, #ecfccb, #a6e22e);
  font-size: 26px;
  font-weight: 950;
}

.update-version-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(166, 226, 46, .5);
  border-radius: 999px;
  color: #365314;
  background: #f7fee7;
  font-size: 13px;
  font-weight: 950;
  white-space: nowrap;
}

.update-version-pill.muted {
  border-color: rgba(15, 23, 42, .1);
  color: #64748b;
  background: rgba(255,255,255,.72);
}

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

.update-meta-grid div {
  padding: 16px;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 18px;
  background: rgba(248,250,252,.78);
}

.update-meta-grid span {
  display: block;
  margin-bottom: 6px;
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
}

.update-meta-grid strong {
  color: #0f172a;
  font-size: 18px;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.update-archive-note {
  margin: 14px 0;
  padding: 14px 16px;
  border: 1px dashed rgba(37,99,235,.22);
  border-radius: 16px;
  color: #475569;
  background: rgba(239,246,255,.62);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.7;
}

.update-description {
  margin: 18px 0;
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(236, 252, 203, .75), rgba(239, 246, 255, .72));
}

.update-description h3 {
  margin: 0 0 8px;
}

.update-change-list {
  margin: 14px 0 0;
  padding-left: 26px;
  color: #334155;
  font-weight: 850;
  line-height: 1.7;
  list-style-position: outside;
}

.update-change-list li {
  margin: 0 0 10px;
  padding-left: 4px;
}

.update-change-list li:last-child {
  margin-bottom: 0;
}

.update-latest-state {
  display: grid;
  gap: 8px;
  justify-items: start;
}

.update-latest-state strong {
  color: #166534;
  font-size: 20px;
  font-weight: 950;
}

.update-latest-state span {
  color: #64748b;
  font-weight: 850;
}

.update-files-table {
  margin-top: 16px;
}

.update-files-table code {
  color: #334155;
  font-family: inherit;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.update-apply-form {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 18px;
}

.update-apply-form span {
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
}

.update-code {
  overflow: auto;
  margin: 14px 0;
  padding: 18px;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 18px;
  background: #0f172a;
  color: #e2e8f0;
  font: 800 14px/1.7 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.order-page-head {
  margin-bottom: 18px;
}

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

.order-stat-grid article,
.order-filter-card {
  border: 1px solid rgba(255,255,255,.58);
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(166, 226, 46, .18), transparent 34%),
    rgba(255,255,255,.78);
  box-shadow: 0 24px 70px rgba(15, 23, 42, .08);
  backdrop-filter: blur(18px);
}

.order-stat-grid article {
  padding: 20px;
}

.order-stat-grid span {
  color: #64748b;
  font-size: 13px;
  font-weight: 900;
}

.order-stat-grid strong {
  display: block;
  margin-top: 8px;
  color: #0f172a;
  font-size: 25px;
  font-weight: 950;
  line-height: 1.15;
}

.order-stat-grid small {
  display: block;
  margin-top: 8px;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 850;
}

.order-filter-card {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
  margin-bottom: 18px;
  padding: 18px;
}

.order-filter-card label {
  display: grid;
  min-width: 220px;
  gap: 8px;
  color: #334155;
  font-size: 13px;
  font-weight: 900;
}

.order-filter-card select {
  min-height: 44px;
  border: 1px solid rgba(15, 23, 42, .1);
  border-radius: 999px;
  padding: 0 38px 0 16px;
  color: #0f172a;
  background: rgba(255,255,255,.92);
  font: inherit;
  font-weight: 900;
}

.order-table-card {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.58);
  border-radius: 24px;
  background: rgba(255,255,255,.78);
  box-shadow: 0 24px 70px rgba(15, 23, 42, .08);
  backdrop-filter: blur(18px);
}

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

.order-table th,
.order-table td {
  padding: 15px 16px;
  border-bottom: 1px solid rgba(15, 23, 42, .07);
  text-align: left;
  vertical-align: middle;
}

.order-table th {
  color: #64748b;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.order-table tr:last-child td {
  border-bottom: 0;
}

.order-no {
  display: inline-flex;
  max-width: 150px;
  overflow: hidden;
  color: #2563eb;
  font-size: 13px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-status-badge {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 999px;
  padding: 0 12px;
  color: #334155;
  background: #f8fafc;
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

.order-status-badge.is-submitted {
  border-color: rgba(245, 158, 11, .28);
  color: #92400e;
  background: #fffbeb;
}

.order-status-badge.is-paid {
  border-color: rgba(34, 197, 94, .3);
  color: #047857;
  background: #ecfdf5;
}

.order-status-badge.is-cancelled {
  border-color: rgba(239, 68, 68, .24);
  color: #b91c1c;
  background: #fff1f2;
}

.order-action-stack {
  display: grid;
  gap: 8px;
  justify-items: start;
}

.order-confirm-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.admin-main .order-page-head {
  margin-bottom: 16px;
}

.admin-main .order-stat-grid {
  gap: 12px;
  margin-bottom: 16px;
}

.admin-main .order-stat-grid article,
.admin-main .order-filter-card {
  border-radius: 22px;
}

.admin-main .order-stat-grid article,
.admin-main .order-filter-card {
  padding: 18px;
}

.admin-main .order-stat-grid span,
.admin-main .order-filter-card label {
  font-size: 13px;
  line-height: 1.35;
}

.admin-main .order-stat-grid strong {
  font-size: 23px;
}

.admin-main .order-filter-card {
  gap: 10px;
  margin-bottom: 16px;
}

.admin-main .order-filter-card select {
  min-height: 40px;
  padding: 0 34px 0 14px;
  font-size: 14px;
}

.admin-main .order-table-card {
  border-radius: 22px;
}

.admin-main .order-table th,
.admin-main .order-table td {
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1.35;
}

.admin-main .order-table th {
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: none;
}

.error {
  color: #dc2626;
  font-size: 13px;
}

.import-guide {
  margin-bottom: 20px;
}

.import-guide h2,
.import-result h2,
.import-schedule-card h2 {
  margin: 0 0 10px;
}

.import-error {
  margin-top: 16px;
}

.import-guide p,
.import-schedule-card > p {
  max-width: 880px;
  margin: 0 0 20px;
  color: #64748b;
  line-height: 1.75;
}

.import-progress-card {
  margin: 16px 0 0;
  padding: 16px;
  border: 1px solid rgba(37, 99, 235, .12);
  border-radius: 18px;
  background: rgba(248, 250, 252, .86);
}

.compact-form,
.import-form {
  display: grid;
  gap: 14px;
  align-items: end;
}

.compact-form {
  grid-template-columns: minmax(320px, 1fr) 160px auto;
}

.import-form {
  grid-template-columns: 130px 170px 130px minmax(260px, 1fr) 120px 120px auto;
}

.import-schedule-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: stretch;
  max-width: 100%;
}

.compact-form .field,
.import-form .field {
  margin-bottom: 0;
}

.import-schedule-section {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 18px;
  background: rgba(248, 250, 252, .64);
}

.import-schedule-section h3 {
  margin: 0;
  color: #334155;
  font-size: 14px;
  font-weight: 950;
}

.import-schedule-grid {
  display: grid;
  gap: 12px;
  align-items: start;
  min-width: 0;
}

.import-schedule-grid.basic {
  grid-template-columns: minmax(180px, 1.2fr) minmax(130px, .7fr) minmax(180px, 1fr) minmax(140px, .8fr);
}

.import-schedule-grid.collect {
  grid-template-columns: minmax(260px, 1fr) minmax(120px, 160px) minmax(120px, 160px);
}

.import-schedule-grid.run {
  grid-template-columns: minmax(190px, 1fr) minmax(150px, .7fr) minmax(150px, .7fr) minmax(110px, .5fr) minmax(170px, .8fr) minmax(150px, .7fr);
}

.import-schedule-grid .field {
  min-width: 0;
}

.import-schedule-grid input,
.import-schedule-grid select {
  width: 100%;
  min-width: 0;
}

.import-schedule-actions {
  display: flex;
  justify-content: flex-end;
}

.import-checkbox-field {
  min-height: 42px;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  padding-bottom: 4px;
}

.import-checkbox-field input {
  width: 16px;
  height: 16px;
  margin: 0;
}

.import-cron-hint {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(37, 99, 235, .12);
  border-radius: 16px;
  color: #334155;
  background: rgba(239, 246, 255, .72);
  font-size: 13px;
  line-height: 1.5;
}

.import-cron-hint code {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  white-space: nowrap;
  overflow-y: hidden;
}

.import-url-field {
  min-width: 0;
}

.import-schedule-card {
  margin-bottom: 20px;
}

.import-schedule-table {
  table-layout: fixed;
}

.import-schedule-table th:nth-child(1),
.import-schedule-table td:nth-child(1) {
  width: 150px;
}

.import-schedule-table th:nth-child(2),
.import-schedule-table td:nth-child(2) {
  width: 210px;
}

.import-schedule-table th:nth-child(3),
.import-schedule-table td:nth-child(3) {
  width: 260px;
}

.import-schedule-table th:nth-child(4),
.import-schedule-table td:nth-child(4) {
  width: 100px;
}

.import-schedule-table th:nth-child(6),
.import-schedule-table td:nth-child(6) {
  width: 150px;
}

.import-schedule-table td > span,
.import-schedule-table td > strong {
  display: block;
}

.order-status-badge.is-idle {
  border-color: rgba(100, 116, 139, .2);
  color: #475569;
  background: #f8fafc;
}

.order-status-badge.is-running {
  border-color: rgba(37, 99, 235, .24);
  color: #1d4ed8;
  background: #eff6ff;
}

.order-status-badge.is-success {
  border-color: rgba(34, 197, 94, .28);
  color: #047857;
  background: #ecfdf5;
}

.order-status-badge.is-failed {
  border-color: rgba(239, 68, 68, .24);
  color: #b91c1c;
  background: #fff1f2;
}

.field-note {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.import-source-hints {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.import-source-hints span {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 999px;
  color: #475569;
  background: rgba(248, 250, 252, .82);
  font-size: 12px;
  font-weight: 900;
}

.prompt-filter-form {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(130px, .8fr));
  gap: 14px;
  align-items: end;
  margin-bottom: 18px;
}

.prompt-filter-form .field {
  margin-bottom: 0;
}

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

.bulk-toolbar {
  display: grid;
  grid-template-columns: auto 180px minmax(180px, 240px) auto;
  gap: 14px;
  align-items: end;
  margin-bottom: 16px;
}

.bulk-toolbar .field {
  margin-bottom: 0;
}

.check-line {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  color: #334155;
  font-weight: 900;
}

.admin-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 18px;
}

.admin-pagination-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
}

.admin-pagination-bar .admin-pagination {
  margin-top: 0;
}

.per-page-form label {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(15, 23, 42, .1);
  border-radius: 999px;
  padding: 0 10px 0 14px;
  color: #64748b;
  background: rgba(255, 255, 255, .86);
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .04);
}

.per-page-form select {
  min-width: 92px;
  border: 0;
  border-radius: 999px;
  padding: 7px 26px 7px 9px;
  color: #0f172a;
  background: transparent;
  font: inherit;
  font-weight: 950;
  outline: none;
}

.page-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-btn,
.page-ellipsis {
  display: inline-flex;
  min-width: 40px;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border: 1px solid rgba(15, 23, 42, .1);
  border-radius: 12px;
  color: #0f172a;
  background: rgba(255,255,255,.82);
  font-weight: 900;
}

.page-btn.active {
  color: #fff;
  background: #0f172a;
}

.page-btn.disabled,
.page-ellipsis {
  color: #94a3b8;
}

.page-summary {
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
}

.infinite-pagination {
  display: flex;
  justify-content: center;
  margin: 26px 0 6px;
  color: #64748b;
  font-weight: 900;
}

.empty-cell {
  padding: 26px 16px;
  color: #64748b;
  text-align: center;
}

.import-log {
  display: grid;
  gap: 8px;
  max-height: 360px;
  overflow: auto;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.import-log li {
  padding: 10px 12px;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 12px;
  background: rgba(255,255,255,.62);
  color: #334155;
}

@media (max-width: 980px) {
  .site-header { flex-wrap: wrap; padding: 14px 18px; }
  .nav { order: 3; width: 100%; overflow-x: auto; margin-left: 0; }
  .hero { padding: 18px; }
  .hero-inner { padding: 28px 18px; }
  .search-form, .membership-band, .admin-shell, .form-grid.two, .compact-form, .import-form, .import-schedule-form, .prompt-filter-form, .bulk-toolbar { grid-template-columns: 1fr; }
  .import-schedule-grid.basic,
  .import-schedule-grid.collect,
  .import-schedule-grid.run {
    grid-template-columns: 1fr;
  }
  .import-schedule-actions {
    justify-content: stretch;
  }
  .import-schedule-actions .btn {
    width: 100%;
  }
  .backup-panel,
  .backup-list-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .prompt-grid, .tutorial-grid, .plan-grid, .stats { grid-template-columns: 1fr; }
  .main, .auth-wrap, .admin-wrap, .detail-wrap { width: min(100% - 28px, 1280px); }
  .admin-main { padding: 18px; }
  .account-layout,
  .creator-shell,
  .creator-grid.two,
  .creator-grid.three,
  .account-stat-grid,
  .asset-grid,
  .account-prompt-grid {
    grid-template-columns: 1fr;
  }
  .account-side-card {
    position: static;
  }
  .creator-guide {
    position: static;
  }
  .account-prompt-row {
    grid-template-columns: 86px minmax(0, 1fr);
  }
  .account-prompt-actions {
    grid-column: 1 / -1;
    justify-items: start;
  }
  .creator-action-row {
    align-items: flex-start;
    flex-direction: column;
  }
  .account-hero {
    align-items: flex-start;
    flex-direction: column;
    padding: 28px 22px;
  }
  .account-info-list div {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

/* Prompt library front-end inspired by image.prompt123.cn. */
body {
  background:
    radial-gradient(circle at 14% -10%, rgba(59, 130, 246, .1), transparent 28%),
    linear-gradient(180deg, #ffffff 0, #f5f7fb 220px, #f3f6fb 100%);
  color: #0f172a;
}

.site-header {
  min-height: 78px;
  color: #0f172a;
  background: rgba(255, 255, 255, .88);
  border-bottom: 1px solid rgba(15, 23, 42, .07);
  box-shadow: 0 12px 38px rgba(15, 23, 42, .04);
}

.site-header .brand {
  display: grid;
  grid-template-columns: 38px max-content;
  column-gap: 12px;
  align-items: start;
  font-size: 18px;
  line-height: 1.1;
}

.site-header .brand-mark {
  display: grid;
  align-self: start;
  width: 38px;
  height: 38px;
  margin-top: 0;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: #091226;
  box-shadow: 0 14px 34px rgba(9, 18, 38, .18);
  font-size: 13px;
  font-weight: 950;
}

.site-header .brand::before {
  display: none;
  content: "AI";
}

.site-header .brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.site-header .brand-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.site-header .brand-copy strong {
  color: #0f172a;
  font-size: 18px;
  font-weight: 950;
  line-height: 1.1;
  white-space: nowrap;
}

.site-header .brand-copy small {
  display: block;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  line-height: 1.1;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-header .brand span:last-child::after {
  display: none;
  content: none;
}

.nav {
  color: #475569;
}

.nav a.active,
.nav a:hover {
  color: #0f172a;
  background: #f1f5f9;
}

.list-floating-actions {
  position: fixed;
  z-index: 35;
  top: 50%;
  right: 22px;
  display: grid;
  gap: 9px;
  transform: translateY(-50%);
}

.list-float-btn {
  position: relative;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(248, 250, 252, .92));
  color: #0f172a;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .1);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

.list-float-btn::after {
  position: absolute;
  inset: 6px;
  border-radius: 10px;
  background: rgba(37, 99, 235, .07);
  content: "";
  opacity: 0;
  transition: opacity .18s ease;
}

.list-float-btn:hover {
  border-color: rgba(37, 99, 235, .22);
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(37, 99, 235, .16);
}

.list-float-btn:hover::after {
  opacity: 1;
}

.list-float-btn.is-primary {
  border-color: rgba(37, 99, 235, .16);
  background: linear-gradient(135deg, #2563eb, #12b6c9);
  color: #fff;
  box-shadow: 0 16px 40px rgba(37, 99, 235, .24);
}

.list-float-btn.is-primary::after {
  background: rgba(255, 255, 255, .16);
}

.list-float-icon {
  position: relative;
  z-index: 1;
  display: inline-block;
}

.list-float-svg {
  position: relative;
  z-index: 1;
  display: block;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.list-float-icon.arrow-up {
  width: 13px;
  height: 13px;
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
  transform: translateY(3px) rotate(45deg);
}

.list-float-icon.help {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
}

.btn.dark {
  border-color: #0f172a;
  background: #0f172a;
  color: #fff;
}

.btn.primary {
  background: #2563eb;
  color: #fff;
}

.btn.ghost {
  color: #334155;
  background: #f8fafc;
  border-color: rgba(15, 23, 42, .08);
}

.prompt-library {
  margin-top: 28px;
}

.library-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  margin-bottom: 34px;
}

.library-search input {
  width: 100%;
  min-width: 0;
  height: 66px;
  padding: 0 24px;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 55px rgba(15, 23, 42, .06);
  color: #0f172a;
  outline: none;
}

.library-search .btn {
  min-height: 66px;
  padding: 0 28px;
  border-radius: 22px;
}

.help-center {
  margin-top: 28px;
}

.help-hero {
  margin-bottom: 28px;
}

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

.help-card {
  min-height: 230px;
  border: 1px solid rgba(15, 23, 42, .06);
  border-radius: 26px;
  padding: 26px;
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, .11), transparent 34%),
    rgba(255, 255, 255, .9);
  box-shadow: 0 22px 58px rgba(15, 23, 42, .07);
}

.help-card span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border-radius: 999px;
  padding: 0 13px;
  color: #047857;
  background: #ecfdf5;
  font-size: 13px;
  font-weight: 950;
}

.help-card h2 {
  margin: 26px 0 12px;
  color: #0f172a;
  font-size: 24px;
  line-height: 1.2;
}

.help-card p {
  margin: 0;
  color: #64748b;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.75;
}

.membership-page {
  width: min(100% - 72px, 1320px);
  margin-top: 14px;
}

.membership-showcase {
  position: relative;
  overflow: hidden;
  min-height: 0;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 38px;
  background:
    radial-gradient(circle at 15% 72%, rgba(190, 255, 99, .72), transparent 26%),
    radial-gradient(circle at 76% 22%, rgba(206, 255, 139, .9), transparent 32%),
    linear-gradient(135deg, rgba(255, 255, 255, .96), rgba(247, 248, 246, .94));
  box-shadow: 0 36px 110px rgba(15, 23, 42, .18);
}

.membership-showcase::before,
.membership-showcase::after {
  position: absolute;
  pointer-events: none;
  content: "";
}

.membership-showcase::before {
  inset: 70px auto auto -70px;
  width: 310px;
  height: 310px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .6);
  filter: blur(32px);
}

.membership-showcase::after {
  right: 12%;
  bottom: 8%;
  width: 520px;
  height: 260px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .46);
  filter: blur(42px);
}

.membership-window-bar {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, .78);
  color: rgba(15, 23, 42, .56);
  font-size: 17px;
  font-weight: 650;
}

.membership-window-bar span {
  padding-left: 34px;
}

.membership-window-bar a {
  display: grid;
  width: 66px;
  height: 50px;
  place-items: center;
  border-left: 1px solid rgba(255, 255, 255, .8);
  color: rgba(15, 23, 42, .62);
  font-size: 24px;
  font-weight: 600;
}

.membership-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 980px;
  margin: 20px auto 14px;
  text-align: center;
}

.membership-hero-copy h1 {
  margin: 0;
  color: #05070d;
  font-size: clamp(34px, 3.7vw, 50px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.08;
  white-space: nowrap;
}

.membership-hero-copy p {
  margin: 16px auto 0;
  color: #111827;
  font-size: clamp(15px, 1.45vw, 18px);
  font-weight: 750;
  line-height: 1.6;
}

.membership-stage {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(235px, 270px));
  gap: 22px;
  align-items: stretch;
  justify-content: center;
  padding: 0 34px 42px;
}

.member-media-card,
.member-plan-card,
.member-coupon {
  border: 15px solid rgba(255, 255, 255, .7);
  border-radius: 34px;
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, .7),
    inset 0 0 60px rgba(255, 255, 255, .34),
    0 24px 58px rgba(15, 23, 42, .16);
}

.member-media-card {
  position: relative;
  overflow: hidden;
  min-height: 346px;
  padding: 15px;
  background: rgba(255, 255, 255, .66);
  transform: translate3d(var(--member-shift-x, 0), var(--member-shift-y, 0), 0);
  will-change: transform;
}

.member-media-card::before,
.member-plan-card::before {
  position: absolute;
  inset: -15px;
  z-index: 1;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 44px rgba(255, 255, 255, .28);
  content: "";
}

.member-media-card > *,
.member-plan-card > * {
  position: relative;
  z-index: 2;
}

.member-video-frame {
  display: grid;
  min-height: 178px;
  align-content: space-between;
  overflow: hidden;
  border-radius: 25px;
  padding: 20px;
  color: #fff;
  background:
    radial-gradient(circle at 70% 20%, rgba(166, 226, 46, .55), transparent 18%),
    linear-gradient(180deg, #111827, #030712);
}

.play-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 999px;
  background: #a6e22e;
  box-shadow: 0 18px 38px rgba(166, 226, 46, .32);
}

.play-mark::before {
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 15px solid #05070d;
  margin-left: 4px;
  content: "";
}

.member-video-frame strong {
  display: block;
  margin-bottom: 10px;
  font-size: 16px;
  text-align: center;
}

.member-video-frame p {
  margin: 0;
  color: rgba(255, 255, 255, .72);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.7;
  text-align: center;
}

.member-stats {
  display: grid;
  gap: 6px;
  padding: 17px 2px 2px;
  color: #111827;
  font-size: 11px;
  font-weight: 750;
  text-align: center;
}

.member-stats span {
  display: block;
  line-height: 1.45;
  white-space: nowrap;
}

.member-stats strong {
  color: #65a30d;
  font-size: 17px;
  font-weight: 900;
}

.member-plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  overflow: hidden;
  min-height: 346px;
  padding: 22px 23px 21px;
  transform: translate3d(var(--member-shift-x, 0), var(--member-shift-y, 0), 0);
  will-change: transform;
}

.member-plan-card.pro {
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 255, 255, .55), transparent 28%),
    linear-gradient(160deg, #e5ff31, #c8ff8a 62%, #dfffd7);
}

.member-plan-head {
  display: grid;
  justify-items: start;
  gap: 14px;
}

.member-plan-head h2,
.member-plan-card h2 {
  margin: 0;
  color: #05070d;
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 900;
  line-height: 1.15;
  white-space: nowrap;
}

.member-plan-head span {
  display: inline-flex;
  min-height: 29px;
  flex: 0 0 auto;
  align-items: center;
  border: 2px solid #05070d;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.member-price {
  margin-top: 18px;
  color: #05070d;
  font-size: 23px;
  font-weight: 850;
}

.member-price small {
  margin-left: 3px;
  font-size: 16px;
  font-weight: 750;
}

.member-plan-note {
  margin: 8px 0 0;
  color: rgba(15, 23, 42, .66);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.4;
}

.member-plan-card ul,
.membership-compare ul {
  display: grid;
  gap: 8px;
  margin: 15px 0;
  padding: 0;
  list-style: none;
}

.member-plan-card li,
.membership-compare li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  color: rgba(15, 23, 42, .72);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.55;
}

.member-plan-card li::before,
.membership-compare li::before {
  flex: 0 0 auto;
  color: #15803d;
  content: "◎";
}

.member-cta,
.deal-cta {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 850;
}

.member-cta {
  align-self: stretch;
  margin-top: auto;
  color: #13200a;
  background: linear-gradient(135deg, #f9f871, #22c55e);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .72), 0 20px 40px rgba(34, 197, 94, .25);
}

.member-plan-card.deal {
  color: #fff;
  background:
    radial-gradient(circle at 74% 86%, rgba(255, 255, 255, .18), transparent 28%),
    linear-gradient(160deg, #d11f2a, #b91622);
}

.member-plan-card.deal h2,
.member-plan-card.deal p,
.member-plan-card.deal strong {
  color: #fff;
}

.member-plan-card.deal p {
  margin: 12px 0 9px;
  color: rgba(255, 255, 255, .86);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.7;
}

.deal-ribbon {
  display: inline-flex;
  min-height: 29px;
  align-items: center;
  border-radius: 999px;
  margin-bottom: 12px;
  padding: 0 13px;
  color: #b91622;
  background: #f6ff30;
  font-size: 12px;
  font-weight: 850;
}

.deal-price {
  display: grid;
  gap: 6px;
  margin: 14px 0 17px;
}

.deal-price small {
  color: #fef08a;
  font-size: 13px;
  font-weight: 850;
}

.deal-price strong {
  font-size: 23px;
  line-height: 1.2;
}

.deal-cta {
  align-self: stretch;
  margin-top: auto;
  color: #c1121f;
  background: #fff;
}

.member-plan-card.deal li {
  color: rgba(255, 255, 255, .88);
}

.member-plan-card.deal li::before {
  color: #fef08a;
}

.member-coupon {
  position: absolute;
  z-index: 4;
  right: auto;
  top: 286px;
  left: calc(100% - 190px);
  display: grid;
  width: 105px;
  min-height: 108px;
  align-content: center;
  gap: 4px;
  padding: 16px 10px 8px;
  border: 0;
  border-radius: 18px;
  color: #0f172a;
  background: rgba(255, 255, 255, .94);
  box-shadow:
    0 14px 30px rgba(15, 23, 42, .14),
    inset 0 0 0 2px rgba(255, 255, 255, .86);
  text-align: center;
  transform: translate3d(0, 0, 0);
  animation: memberCouponFloat 4.2s ease-in-out infinite;
  will-change: top, left, transform;
}

.member-coupon.is-paused {
  animation-play-state: paused;
}

.member-coupon::before {
  position: absolute;
  z-index: -1;
  inset: -10px;
  border: 2px solid rgba(255, 255, 255, .88);
  border-radius: 24px;
  background: rgba(255, 255, 255, .18);
  box-shadow:
    0 14px 26px rgba(15, 23, 42, .11),
    inset 0 0 22px rgba(255, 255, 255, .46);
  content: "";
}

.member-coupon::after {
  display: none;
  content: none;
}

.member-coupon-arrow {
  position: absolute;
  z-index: 2;
  top: 18px;
  left: -77px;
  width: 94px;
  height: 60px;
  overflow: visible;
  pointer-events: none;
}

.member-coupon-arrow-line {
  fill: none;
  stroke: #75d41c;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
}

.member-coupon-arrow-head {
  fill: #75d41c;
}

.member-coupon-bell {
  position: absolute;
  z-index: 3;
  top: -20px;
  left: -19px;
  display: grid;
  width: 41px;
  height: 41px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 9px 22px rgba(15, 23, 42, .12);
}

.member-coupon-bell::before {
  width: 16px;
  height: 18px;
  border-radius: 12px 12px 8px 8px;
  background: #8bdc23;
  clip-path: polygon(50% 0, 65% 14%, 65% 28%, 82% 40%, 82% 76%, 92% 86%, 8% 86%, 18% 76%, 18% 40%, 35% 28%, 35% 14%);
  content: "";
}

.member-coupon-bell::after {
  position: absolute;
  bottom: 10px;
  width: 6px;
  height: 4px;
  border-radius: 999px;
  background: #8bdc23;
  content: "";
}

@keyframes memberCouponFloat {
  0%,
  100% {
    transform: translate3d(0, -8px, 0);
  }
  50% {
    transform: translate3d(0, 10px, 0);
  }
}

.member-coupon-title {
  color: #65a30d;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.1;
  white-space: nowrap;
}

.member-coupon-old {
  color: #9ca3af;
  font-size: 9px;
  font-weight: 750;
  line-height: 1.1;
  text-decoration: line-through;
}

.member-coupon-now {
  color: #111827;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.1;
  white-space: nowrap;
}

.member-coupon-now b {
  color: #cf2029;
  font-size: 16px;
  font-weight: 950;
}

.member-coupon strong {
  display: inline-flex;
  min-height: 21px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: #fff;
  background: #c91f29;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

.member-coupon small {
  color: #9ca3af;
  font-size: 7px;
  font-weight: 850;
  line-height: 1.2;
  white-space: nowrap;
}

.membership-benefits,
.membership-compare {
  margin-top: 16px;
  border: 1px solid rgba(15, 23, 42, .06);
  border-radius: 30px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 24px 70px rgba(15, 23, 42, .08);
}

.membership-benefits {
  display: grid;
  grid-template-columns: minmax(240px, .72fr) minmax(0, 1.28fr);
  gap: 28px;
  padding: 34px;
}

.membership-benefit-copy h2,
.membership-compare h2 {
  margin: 0 0 12px;
  color: #0f172a;
  font-size: 34px;
}

.membership-benefit-copy p {
  margin: 0;
  color: #64748b;
  font-size: 16px;
  font-weight: 850;
  line-height: 1.8;
}

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

.membership-benefit-grid article {
  min-height: 190px;
  border: 1px solid rgba(15, 23, 42, .07);
  border-radius: 24px;
  padding: 22px;
  background: #f8fafc;
}

.membership-benefit-grid span {
  color: #84cc16;
  font-size: 14px;
  font-weight: 950;
}

.membership-benefit-grid h3 {
  margin: 28px 0 10px;
  color: #0f172a;
  font-size: 20px;
}

.membership-benefit-grid p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.7;
}

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

.membership-compare > div {
  min-width: 0;
  border-radius: 24px;
  padding: 26px;
  background: #f8fafc;
}

.membership-compare > div:nth-child(1) {
  border: 1px solid rgba(148, 163, 184, .22);
  background:
    radial-gradient(circle at top right, rgba(226, 232, 240, .82), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, .98), rgba(239, 246, 255, .92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
}

.membership-compare > div:nth-child(2) {
  background:
    radial-gradient(circle at top right, rgba(166, 226, 46, .34), transparent 30%),
    #ecfccb;
}

.membership-compare > div:nth-child(3) {
  color: #fff;
  background:
    radial-gradient(circle at top right, rgba(255, 236, 179, .22), transparent 34%),
    linear-gradient(155deg, #ef4444, #b91c1c);
}

.membership-compare > div:nth-child(3) h2,
.membership-compare > div:nth-child(3) strong,
.membership-compare > div:nth-child(3) p,
.membership-compare > div:nth-child(3) li,
.membership-compare > div:nth-child(3) .tier-label {
  color: #fff;
}

.membership-compare > div:nth-child(3) li::before {
  color: #fef08a;
}

.membership-compare .tier-label {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  margin-bottom: 12px;
  border-radius: 999px;
  color: #65a30d;
  font-size: 14px;
  font-weight: 950;
}

.membership-compare > div > strong {
  display: block;
  margin-bottom: 10px;
  color: #0f172a;
  font-size: 24px;
  font-weight: 950;
  line-height: 1.2;
}

.membership-compare > div > p {
  margin: 0;
  color: #64748b;
  font-size: 15px;
  font-weight: 850;
  line-height: 1.7;
}

.payment-modal[hidden] {
  display: none;
}

.payment-modal-open {
  overflow: hidden;
}

.payment-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 22px;
}

.payment-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(15, 23, 42, .42);
  backdrop-filter: blur(14px);
}

.payment-card {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(100%, 560px);
  gap: 18px;
  border: 1px solid rgba(255, 255, 255, .82);
  border-radius: 30px;
  padding: 30px;
  background:
    radial-gradient(circle at 84% 8%, rgba(190, 255, 99, .48), transparent 30%),
    rgba(255, 255, 255, .84);
  box-shadow:
    0 36px 110px rgba(15, 23, 42, .28),
    inset 0 1px 0 rgba(255, 255, 255, .86);
  backdrop-filter: blur(28px) saturate(138%);
}

.payment-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: #0f172a;
  background: rgba(255, 255, 255, .72);
  cursor: pointer;
  font-size: 25px;
  font-weight: 500;
}

.payment-head span {
  color: #059669;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.payment-head h2 {
  margin: 8px 46px 8px 0;
  color: #05070d;
  font-size: 30px;
  line-height: 1.18;
}

.payment-head p,
.payment-order-info {
  margin: 0;
  color: #64748b;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.7;
}

.payment-plan-grid,
.payment-methods,
.payment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.payment-plan-option,
.payment-methods button {
  border: 1px solid rgba(15, 23, 42, .1);
  border-radius: 18px;
  color: #0f172a;
  background: rgba(255, 255, 255, .72);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.payment-plan-option {
  display: grid;
  gap: 5px;
  min-width: 150px;
  flex: 1 1 0;
  padding: 14px;
  text-align: left;
}

.payment-plan-option span {
  color: #059669;
  font-size: 13px;
}

.payment-methods button {
  min-height: 42px;
  padding: 0 20px;
}

.payment-plan-option.is-active,
.payment-methods button.is-active {
  border-color: rgba(132, 204, 22, .68);
  background: #ecfccb;
  box-shadow: 0 16px 38px rgba(132, 204, 22, .18);
}

.payment-qr-panel {
  display: grid;
  min-height: 230px;
  place-items: center;
  border: 1px dashed rgba(15, 23, 42, .14);
  border-radius: 24px;
  background: rgba(248, 250, 252, .74);
}

.payment-qr-panel img {
  width: min(230px, 72vw);
  height: min(230px, 72vw);
  border-radius: 18px;
  object-fit: contain;
  background: #fff;
  box-shadow: 0 18px 46px rgba(15, 23, 42, .12);
}

.payment-qr-placeholder {
  max-width: 340px;
  color: #64748b;
  font-size: 15px;
  font-weight: 850;
  line-height: 1.8;
  text-align: center;
}

.payment-modal.is-loading .payment-qr-placeholder::after {
  display: block;
  width: 130px;
  height: 6px;
  margin: 16px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #2563eb, #a6e22e);
  content: "";
  animation: repairPulse 1.2s ease-in-out infinite;
}

@keyframes repairPulse {
  0%,
  100% {
    opacity: .45;
    transform: scaleX(.72);
  }
  50% {
    opacity: 1;
    transform: scaleX(1);
  }
}

.topic-panel,
.detail-hero,
.detail-section,
.side-card,
.locked-layout {
  border: 1px solid rgba(15, 23, 42, .06);
  border-radius: 28px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 24px 70px rgba(15, 23, 42, .08);
}

.topic-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: end;
  min-height: 270px;
  margin-bottom: 28px;
  padding: 38px;
}

.topic-kicker,
.card-pills,
.detail-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.topic-kicker span,
.card-pills span,
.detail-pills span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 14px;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 999px;
  background: #f8fafc;
  color: #334155;
  font-size: 13px;
  font-weight: 900;
}

.topic-kicker span:first-child {
  color: #047857;
  background: #eafaf2;
}

.topic-panel h1 {
  max-width: 760px;
  margin: 26px 0 16px;
  font-size: clamp(34px, 5vw, 48px);
  line-height: 1.08;
}

.topic-panel p {
  max-width: 760px;
  margin: 0;
  color: #64748b;
  font-size: 16px;
  line-height: 1.9;
}

.topic-preview-strip {
  display: flex;
  max-width: 390px;
  align-items: end;
  gap: 8px;
  justify-content: flex-end;
}

.topic-preview-strip img,
.topic-preview-strip video {
  width: 64px;
  height: 64px;
  border: 4px solid #fff;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 18px 38px rgba(15, 23, 42, .14);
}

.topic-preview-strip .topic-video-shell {
  position: relative;
  inset: auto;
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  border: 4px solid #fff;
  border-radius: 14px;
  box-shadow: 0 18px 38px rgba(15, 23, 42, .14);
}

.topic-preview-strip .topic-video-shell img,
.topic-preview-strip .topic-video-shell video {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.topic-preview-strip .video-play-control {
  width: 34px;
  height: 34px;
}

.topic-preview-strip .video-play-control::before {
  border-top-width: 7px;
  border-bottom-width: 7px;
  border-left-width: 10px;
}

.library-tabs {
  justify-content: flex-start;
  margin: 0 0 16px;
}

.library-tabs .tab,
.library-categories .chip {
  color: #334155;
  background: #fff;
  border-color: rgba(15, 23, 42, .08);
  box-shadow: 0 8px 28px rgba(15, 23, 42, .04);
}

.library-tabs .tab.active,
.library-categories .chip.active {
  color: #fff;
  background: #2563eb;
  border-color: #2563eb;
}

.library-categories {
  margin-bottom: 34px;
}

.section-head.compact {
  align-items: center;
}

.section-head.compact h2 {
  font-size: 18px;
}

.prompt-grid {
  gap: 22px;
}

.library-card {
  overflow: hidden;
  border-color: rgba(15, 23, 42, .07);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 55px rgba(15, 23, 42, .08);
  backdrop-filter: none;
}

.library-card:hover {
  box-shadow: 0 26px 70px rgba(15, 23, 42, .12);
}

.library-card .prompt-cover {
  display: block;
  min-height: 0;
  aspect-ratio: 4 / 3;
  padding: 0;
  background: #e2e8f0;
}

.library-card .prompt-cover::after {
  display: none;
}

.library-card .prompt-cover img,
.library-card .prompt-cover video {
  transition: transform .28s ease;
}

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

.library-card .prompt-body {
  padding: 20px;
}

.library-card h3 {
  margin-top: 14px;
  font-size: 21px;
  letter-spacing: 0;
  overflow-wrap: normal;
  word-break: keep-all;
}

.library-card h3 a {
  overflow-wrap: normal;
  word-break: keep-all;
}

.library-card .prompt-body p {
  min-height: 0;
  margin-bottom: 12px;
  color: #64748b;
}

.prompt-excerpt {
  min-height: 70px;
  margin: 12px 0;
  color: #475569;
  font-size: 14px;
  line-height: 1.7;
}

.author-line {
  margin: 12px 0;
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
}

.library-card .chip {
  background: #fff;
}

.library-card .meta {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #eef2f7;
}

.prompt-detail {
  margin-top: 34px;
}

.detail-hero {
  margin-bottom: 28px;
  padding: 38px 46px;
}

.detail-hero-with-preview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 32px;
}

.detail-hero-with-preview > div:first-child {
  min-width: 0;
}

.detail-preview-strip {
  max-width: 260px;
  align-self: center;
}

.detail-preview-strip img,
.detail-preview-strip video {
  width: 70px;
  height: 70px;
}

.detail-preview-link {
  display: inline-flex;
  line-height: 0;
}

.tutorial-detail-hero {
  align-items: stretch;
}

.tutorial-detail-hero .detail-hero-copy {
  align-self: center;
}

.tutorial-hero-side {
  display: flex;
  min-width: 260px;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.tutorial-hero-side .detail-pills {
  justify-content: flex-end;
}

.tutorial-recommend-strip {
  align-self: flex-end;
  margin-top: auto;
}

.detail-hero > span,
.detail-hero > div > span,
.detail-section-head span {
  color: #2563eb;
  font-size: 13px;
  font-weight: 900;
}

.detail-hero h1 {
  max-width: none;
  width: 100%;
  margin: 14px 0;
  font-size: clamp(34px, 4.4vw, 54px);
  line-height: 1.08;
  overflow-wrap: normal;
  text-wrap: auto;
  word-break: keep-all;
}

.detail-hero p {
  max-width: 840px;
  margin: 0 0 24px;
  color: #64748b;
  font-size: 17px;
  line-height: 1.8;
}

.list-end-note {
  margin: 28px auto 0;
  padding: 14px 18px;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 999px;
  background: rgba(255, 255, 255, .78);
  color: #64748b;
  font-size: 14px;
  font-weight: 900;
  text-align: center;
  width: fit-content;
  box-shadow: 0 18px 45px rgba(15, 23, 42, .06);
}

.list-end-note[hidden] {
  display: none;
}

.detail-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: start;
}

.tutorial-back-top {
  position: fixed;
  z-index: 35;
  top: 50%;
  right: 22px;
  bottom: auto;
  display: grid;
  width: 40px;
  height: 40px;
  margin: 0;
  place-items: center;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(248, 250, 252, .92));
  color: #0f172a;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .1);
  transform: translateY(-50%);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

.tutorial-back-top::after {
  position: absolute;
  inset: 6px;
  border-radius: 10px;
  background: rgba(37, 99, 235, .07);
  content: "";
  opacity: 0;
  transition: opacity .18s ease;
}

.tutorial-back-top:hover {
  border-color: rgba(37, 99, 235, .22);
  transform: translateY(calc(-50% - 2px));
  box-shadow: 0 18px 44px rgba(37, 99, 235, .16);
}

.tutorial-back-top:hover::after {
  opacity: 1;
}

.detail-main {
  display: grid;
  gap: 28px;
  min-width: 0;
}

.detail-section {
  min-width: 0;
  overflow: hidden;
  padding: 28px;
}

.detail-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.detail-section-head h2 {
  margin: 4px 0 0;
  font-size: 36px;
  line-height: 1.1;
}

.detail-media {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #e2e8f0;
}

.detail-media img,
.detail-media video {
  display: block;
  width: 100%;
  max-height: 680px;
  object-fit: contain;
  background: #f8fafc;
}

.detail-media strong {
  display: grid;
  min-height: 360px;
  place-items: center;
  color: #fff;
  font-size: 28px;
}

.media-caption {
  margin: 14px 0 0;
  color: #64748b;
  font-size: 14px;
}

.prompt-rich-content {
  margin-top: 0;
  border-radius: 18px;
  background: #f8fafc;
  font-size: 15px;
}

.prompt-rich-content .prompt-source-text {
  overflow: auto;
  margin: 12px 0 24px;
  padding: 18px;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 16px;
  background: #fff;
  color: #0f172a;
  font: inherit;
  line-height: 1.75;
  white-space: pre-wrap;
}

.prompt-copy-list {
  display: grid;
  gap: 20px;
}

.prompt-copy-card {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.prompt-copy-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.prompt-copy-head h3 {
  margin: 0;
  color: #0f172a;
  font-size: 22px;
  line-height: 1.25;
}

.prompt-rich-content .prompt-copy-head .copy-btn {
  display: inline-flex;
}

.prompt-copy-card .prompt-source-text {
  margin: 0;
}

.detail-aside {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 18px;
  align-self: start;
  background: transparent;
  padding: 0;
}

.side-card {
  min-width: 0;
  overflow: hidden;
  padding: 16px;
}

.side-card h3 {
  margin: 0 0 12px;
  font-size: 16px;
}

.side-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px;
}

.side-card-head h3 {
  margin: 0;
}

.favorite-button {
  display: grid;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 999px;
  background: #fff;
  color: #cbd5e1;
  cursor: pointer;
  box-shadow: 0 16px 36px rgba(15, 23, 42, .08);
  transition: transform .16s ease, color .16s ease, background .16s ease, box-shadow .16s ease;
}

.favorite-button .favorite-icon {
  color: #cbd5e1;
}

.favorite-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 42px rgba(244, 63, 94, .16);
}

.favorite-button.is-active {
  background: #fff;
  color: #ef4444;
}

.favorite-button.is-active .favorite-icon {
  color: #ef4444;
}

.favorite-button:not(.is-active) {
  color: #cbd5e1;
}

.favorite-button:not(.is-active) .favorite-icon {
  color: #cbd5e1;
}

.favorite-button.is-active:hover {
  color: #dc2626;
}

.favorite-button.is-active:hover .favorite-icon {
  color: #dc2626;
}

.favorite-button:disabled {
  cursor: progress;
  opacity: .72;
}

.favorite-count-inline {
  display: inline-flex;
  min-width: 22px;
  align-items: center;
  justify-content: flex-end;
  color: #475569;
  font-size: 15px;
  font-weight: 950;
  line-height: 1;
}

.detail-actions .favorite-count-inline {
  margin-right: -4px;
}

.favorite-icon {
  display: block;
  width: 24px;
  height: 24px;
  margin-top: 2px;
  overflow: hidden;
  font-size: 0;
  line-height: 1;
}

.favorite-icon::before {
  display: block;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 25px;
  font-weight: 900;
  line-height: 24px;
  content: "♥";
}

.detail-aside .tag-row {
  gap: 6px;
  margin: 0;
}

.detail-aside .chip {
  min-height: 0;
  padding: 8px 12px;
  border-radius: 14px;
  background: rgba(248, 250, 252, .82);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.35;
}

.side-card dl {
  display: grid;
  gap: 14px;
  margin: 0;
}

.side-card dt {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 900;
}

.side-card dd {
  margin: -8px 0 0;
  color: #0f172a;
  font-weight: 800;
}

.side-card p {
  margin: 0 0 16px;
  color: #64748b;
  line-height: 1.7;
}

.side-card .side-muted {
  margin: 0;
  color: #94a3b8;
  font-size: 13px;
}

.locked-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
  gap: 28px;
  padding: 28px;
}

.locked-card {
  align-self: center;
  box-shadow: none;
}

.locked-card h2 {
  margin: 0 0 12px;
  font-size: 30px;
}

@media (max-width: 980px) {
  .site-header .brand { grid-template-columns: 38px max-content; }
  .site-header .brand-copy small { display: none; }
  .auth-scene {
    width: 100%;
    min-height: calc(100vh - 140px);
    padding: 22px 14px 28px;
  }
  .auth-glass-window {
    grid-template-columns: 1fr;
    min-height: 0;
    border-radius: 26px;
  }
  .auth-welcome-panel {
    padding: 24px;
  }
  .auth-welcome-panel::after {
    top: auto;
    bottom: 0;
    width: 100%;
    height: 1px;
  }
  .auth-welcome-panel h1 {
    width: min(100%, 360px);
  }
  .auth-welcome-panel h1 span {
    font-size: clamp(44px, 13vw, 64px);
  }
  .auth-welcome-panel h1 span + span {
    font-size: clamp(34px, 10vw, 48px);
  }
  .auth-welcome-copy {
    margin-top: 44px;
  }
  .auth-glass-card {
    padding: 28px 22px;
  }
  .library-search,
  .topic-panel,
  .help-grid,
  .membership-stage,
  .membership-benefits,
  .membership-benefit-grid,
  .membership-compare,
  .detail-hero-with-preview,
  .detail-layout,
  .locked-layout,
  .tag-manager-section {
    grid-template-columns: 1fr;
  }
  .library-search .btn { min-height: 52px; }
  .list-floating-actions {
    top: auto;
    right: 14px;
    bottom: 18px;
    grid-auto-flow: column;
    transform: none;
  }
  .list-float-btn {
    width: 40px;
    height: 40px;
    border-radius: 14px;
  }
  .topic-panel,
  .detail-hero,
  .detail-section,
  .locked-layout {
    padding: 22px;
    border-radius: 22px;
  }
  .membership-page {
    width: min(100% - 28px, 1280px);
  }
  .membership-showcase {
    min-height: 0;
    border-radius: 28px;
  }
  .membership-window-bar {
    min-height: 58px;
    font-size: 18px;
  }
  .membership-window-bar span {
    padding-left: 20px;
  }
  .membership-window-bar a {
    width: 64px;
    height: 58px;
    font-size: 26px;
  }
  .membership-hero-copy {
    margin: 30px auto 22px;
    padding: 0 20px;
  }
  .membership-hero-copy h1 {
    white-space: normal;
  }
  .membership-stage {
    padding: 0 18px 26px;
  }
  .member-coupon {
    position: static;
    width: 100%;
    min-height: 0;
    animation: none;
  }
  .member-coupon::before,
  .member-coupon::after,
  .member-coupon-arrow {
    display: none;
  }
  .membership-benefits,
  .membership-compare {
    padding: 18px;
  }
  .topic-preview-strip {
    max-width: 100%;
    justify-content: flex-start;
  }
  .tutorial-hero-side {
    min-width: 0;
    align-items: flex-start;
  }
  .tutorial-hero-side .detail-pills {
    justify-content: flex-start;
  }
  .tutorial-recommend-strip {
    align-self: flex-start;
  }
  .tag-add-line,
  .tag-manager-row {
    grid-template-columns: 1fr;
  }
  .detail-section-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .detail-aside {
    position: static;
  }
  .tutorial-back-top {
    position: fixed;
    right: 14px;
    bottom: 18px;
    top: auto;
    left: auto;
    margin: 0;
    transform: none;
  }
  .tutorial-back-top:hover {
    transform: translateY(-2px);
  }
  .detail-section-head h2 {
    font-size: 30px;
  }
}
