:root {
  color-scheme: dark;
  --bg: #080b10;
  --panel: #111823;
  --panel-2: #172230;
  --text: #edf4ff;
  --muted: #94a4b8;
  --line: #263648;
  --accent: #27d6c6;
  --accent-2: #ffcf5a;
  --danger: #ff6b79;
  --ok: #62e686;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

img {
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  user-select: none;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 10%, rgba(39, 214, 198, 0.14), transparent 24rem),
    radial-gradient(circle at 80% 25%, rgba(255, 207, 90, 0.08), transparent 20rem),
    linear-gradient(180deg, #080b10 0%, #0d1219 55%, #080b10 100%);
}

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

button {
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

button:not(:disabled):hover,
button:not(:disabled):focus-visible {
  border-color: rgba(148, 164, 184, 0.5);
  box-shadow: 0 0 0 1px rgba(237, 244, 255, 0.06), 0 8px 20px rgba(5, 8, 12, 0.26);
  transform: translateY(-1px);
}

button:disabled {
  cursor: not-allowed;
}

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 34px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 11, 16, 0.88);
  backdrop-filter: blur(18px);
}

.brand {
  line-height: 1.05;
  letter-spacing: 0;
}

.brand strong {
  display: block;
  font-size: 28px;
}

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

.nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.mobile-bottom-nav {
  display: none;
}

.nav button,
.mobile-bottom-nav button,
.ghost,
.primary,
.danger {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 6px;
  padding: 9px 14px;
}

.nav button,
.profile-tab-group button {
  min-width: 60px;
  min-height: 36px;
  border: 1px solid #c7c7c2;
  border-radius: 4px;
  padding: 8px 15px;
  color: #141414;
  background: linear-gradient(180deg, #fbfbf8 0%, #ecebe6 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 1px 1px rgba(0, 0, 0, 0.08);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

.nav button.active,
.profile-tab-group button.active {
  border-color: #202020;
  color: #fff;
  background: linear-gradient(180deg, #252525 0%, #171717 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 1px 2px rgba(0, 0, 0, 0.18);
}

.nav button.active,
.primary {
  border-color: transparent;
  background: var(--accent);
  color: #031313;
  font-weight: 700;
}

.nav button.active {
  border-color: #202020;
  color: #fff;
  background: linear-gradient(180deg, #252525 0%, #171717 100%);
}

.danger {
  border-color: rgba(255, 107, 121, 0.5);
  color: #fff;
  background: rgba(255, 107, 121, 0.14);
}

.shell {
  min-height: 100vh;
  padding: 86px 28px 116px;
}

.footer {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 15;
  padding: 16px 22px 18px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 11, 16, 0.9);
  color: var(--muted);
  backdrop-filter: blur(14px);
}

.footer strong {
  display: block;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.footer span {
  display: block;
  margin-top: 7px;
  font-size: 13px;
  line-height: 1.45;
}

.gate {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.gate-panel {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 22px;
  width: min(430px, 100%);
  min-height: 330px;
  padding: 30px;
  border: 0;
  background: transparent;
  box-shadow: none;
  text-align: center;
}

.gate-panel,
.login-panel {
  width: min(430px, 100%);
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 24, 35, 0.92);
  box-shadow: var(--shadow);
}

.gate-panel {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 22px;
  min-height: 330px;
  border: 0;
  background: transparent;
  box-shadow: none;
  text-align: center;
}

.gate-panel h1,
.login-panel h1 {
  margin: 0 0 8px;
  font-size: 34px;
}

.gate-panel h1 {
  margin: 0;
  font-size: 42px;
  line-height: 1;
}

.gate-panel p,
.login-panel p {
  margin: 0 0 22px;
  color: var(--muted);
}

.field {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
}

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

.gate-panel .field {
  width: min(368px, 100%);
  margin: 0;
}

.gate-panel input {
  text-align: center;
}

.gate-panel .primary {
  min-width: 62px;
}

.gate-error {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

input,
textarea,
select {
  width: 100%;
  min-height: 40px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  padding: 9px 11px;
  outline: none;
}

textarea {
  min-height: 108px;
  resize: vertical;
}

.home {
  max-width: 1180px;
  margin: 0 auto;
}

.carousel {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, #162331, #10161f);
  box-shadow: var(--shadow);
}

.carousel-track {
  height: 100%;
  display: flex;
  transition: transform 0.62s cubic-bezier(0.42, 0, 0.2, 1);
  will-change: transform;
}

.carousel-track.no-transition {
  transition: none;
}

.carousel-slide {
  min-width: 100%;
  height: 100%;
  flex: 0 0 100%;
}

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

@media (prefers-reduced-motion: reduce) {
  .carousel-track {
    transition-duration: 0.01ms;
  }
}

.placeholder {
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--muted);
}

.slide-btn {
  position: absolute;
  top: 0;
  bottom: 0;
  transform: none;
  opacity: 0;
  transition: opacity 0.16s ease, background 0.16s ease, color 0.16s ease;
  width: clamp(42px, 8%, 72px);
  height: 100%;
  border-radius: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.28);
  color: white;
  font-size: 26px;
  display: grid;
  place-items: center;
}

.carousel:hover .slide-btn,
.carousel:focus-within .slide-btn,
.slide-btn:active {
  opacity: 1;
}

.slide-btn:hover,
.slide-btn:focus-visible {
  background: rgba(0, 0, 0, 0.46);
}

.slide-btn.prev {
  left: 0;
}

.slide-btn.next {
  right: 0;
}

.hero-copy {
  margin: 46px 0 30px;
  text-align: center;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 70px);
  letter-spacing: 0;
}

.hero-copy p {
  color: var(--muted);
  font-size: 18px;
}

.quick-grid {
  width: min(820px, 100%);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 0 auto 30px;
}

.quick-grid button {
  height: 50px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  background: linear-gradient(90deg, rgba(39, 214, 198, 0.12), rgba(255, 207, 90, 0.08));
}

.home-info-ticker {
  display: none;
}

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

.home-info-item p {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-info-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
}

.page {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.profile-gallery {
  width: min(calc(100vw - 112px), 1488px);
  max-width: calc(100vw - 112px);
  margin-left: 50%;
  transform: translateX(-50%);
}

.page-head {
  display: flex;
  align-items: end;
  justify-content: flex-end;
  gap: 18px;
  margin-bottom: 22px;
}

.page-head h1 {
  display: none;
}

.page h1 {
  margin: 0;
  font-size: 38px;
}

.tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.tabs button {
  min-height: 36px;
  border: 1px solid rgba(78, 101, 123, 0.72);
  border-radius: 5px;
  padding: 8px 14px;
  color: rgba(237, 244, 255, 0.88);
  background: rgba(14, 20, 29, 0.76);
  font-size: 14px;
  font-weight: 600;
}

.tabs button.active {
  color: #eef7ff;
  border-color: rgba(118, 143, 171, 0.72);
  background: linear-gradient(180deg, rgba(51, 68, 88, 0.95), rgba(28, 40, 55, 0.95));
  font-weight: 700;
}

.play-tab-group,
.chaos-tab-group,
.rank-tab-group,
.work-tab-group,
.profile-tab-group {
  gap: 8px;
  margin-bottom: 18px;
}

.play-tab-group button,
.chaos-tab-group button,
.rank-tab-group button,
.work-tab-group button,
.profile-tab-group button {
  min-height: 38px;
  padding: 8px 15px;
  border-color: rgba(70, 92, 116, 0.68);
  background: rgba(10, 16, 24, 0.9);
  color: rgba(226, 236, 248, 0.9);
  font-size: 14px;
}

.play-tab-group button.active,
.chaos-tab-group button.active,
.rank-tab-group button.active,
.work-tab-group button.active,
.profile-tab-group button.active {
  color: #f5f8fb;
  border-color: rgba(139, 164, 190, 0.72);
  background: linear-gradient(180deg, rgba(58, 74, 96, 0.96), rgba(30, 42, 58, 0.96));
  box-shadow: inset 0 -2px 0 rgba(196, 137, 87, 0.28), 0 8px 18px rgba(5, 8, 12, 0.24);
}

.profile-tab-group button {
  min-width: 60px;
  min-height: 36px;
  border: 1px solid #c7c7c2;
  border-radius: 4px;
  padding: 8px 15px;
  color: #141414;
  background: linear-gradient(180deg, #fbfbf8 0%, #ecebe6 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 1px 1px rgba(0, 0, 0, 0.08);
  font-weight: 700;
}

.profile-tab-group button.active {
  border-color: #202020;
  color: #fff;
  background: linear-gradient(180deg, #252525 0%, #171717 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 1px 2px rgba(0, 0, 0, 0.18);
}

.play-subtab-group,
.chaos-architecture-tab-group {
  gap: 8px;
  padding: 10px 0 2px;
  margin-bottom: 18px;
  border-top: 1px solid rgba(121, 139, 151, 0.16);
}

.play-subtab-group button,
.chaos-architecture-tab-group button {
  min-height: 32px;
  padding: 6px 12px;
  border-color: rgba(106, 129, 139, 0.32);
  border-radius: 4px;
  color: rgba(204, 220, 225, 0.78);
  background: rgba(12, 24, 28, 0.44);
  font-size: 13px;
  font-weight: 500;
}

.play-subtab-group button.active,
.chaos-architecture-tab-group button.active {
  color: #f2fbf8;
  border-color: rgba(93, 144, 135, 0.64);
  background: linear-gradient(180deg, rgba(30, 91, 85, 0.82), rgba(17, 61, 59, 0.82));
  box-shadow: inset 0 -2px 0 rgba(7, 24, 24, 0.2);
}

.section-card,
.admin-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 24, 35, 0.82);
  padding: 20px;
  margin-bottom: 16px;
}

.section-card h2,
.section-card h3,
.admin-card h2,
.admin-card h3 {
  margin: 0 0 10px;
}

.section-card p:not(.subtitle-line) {
  text-indent: 2em;
  line-height: 1.8;
}

.mind-map,
.mind-map * {
  text-indent: 0;
}

.subtitle-line {
  font-size: 13px;
  line-height: 1.6;
  text-indent: 0;
}

.subtitle-line::before {
  content: "▏";
  margin-right: 6px;
  color: var(--accent);
}

.architecture-subtitle {
  margin: 6px 0 14px;
  padding-left: 2px;
}

.activity-front-cover,
.activity-front-image {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  border: 1px solid #d8d2c8;
  border-radius: 6px;
  background: rgba(250, 247, 240, 0.54);
  margin-bottom: 14px;
}

.activity-front-image {
  margin-top: 12px;
}

.activity-info-lines {
  margin-top: 14px;
}

.activity-index-header,
.activity-index-item {
  grid-template-columns: 54px 118px minmax(0, 1.5fr) minmax(92px, 0.8fr) 72px;
}

.activity-index-item > span,
.activity-index-item > strong,
.activity-index-header > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activity-index-status {
  justify-self: end;
}

.activity-front-modal .modal-box {
  box-sizing: border-box;
  width: min(980px, calc(100% - 72px));
  max-height: calc(100vh - 96px);
  scrollbar-gutter: stable;
  border: 0;
  border-radius: 4px;
  background: transparent;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  padding: 16px;
}

.activity-front-modal .modal-head {
  display: none;
}

.activity-thread-back {
  position: static;
  top: auto;
  z-index: auto;
  margin: 0 0 14px;
  color: rgba(244, 239, 224, 0.86);
  border-color: rgba(214, 188, 117, 0.32);
  background: rgba(33, 48, 44, 0.72);
}

.activity-thread {
  border-color: rgba(153, 169, 148, 0.28);
  background:
    radial-gradient(circle at 12% 8%, rgba(126, 150, 128, 0.2), transparent 28%),
    radial-gradient(circle at 86% 12%, rgba(148, 66, 54, 0.14), transparent 20%),
    linear-gradient(180deg, #21302c 0, #27342e 34%, #f2efe6 34.2%, #fbfaf4 100%);
}

.activity-thread::before {
  opacity: 0.42;
}

.activity-thread .drama-thread-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(88px, 1fr) auto;
  min-height: 230px;
  padding-top: 34px;
  padding-bottom: 36px;
}

.activity-thread .drama-thread-head h1 {
  grid-column: 1;
  grid-row: 2;
  align-self: center;
  color: #7d412d;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.42);
  font-size: clamp(34px, 6vw, 56px);
  top: 0;
  margin: 0;
}

.activity-thread .drama-thread-meta {
  grid-column: 1;
  grid-row: 3;
  align-self: end;
  transform: translateY(0);
}

.activity-thread .drama-thread-kicker {
  grid-column: 1;
  grid-row: 1;
  margin-bottom: 0;
  border-left-color: rgba(109, 72, 49, 0.38);
  color: rgba(109, 72, 49, 0.82);
  font-weight: 400;
}

.activity-thread .drama-thread-meta > span,
.activity-thread .drama-thread-meta-count > span:last-child {
  color: rgba(109, 72, 49, 0.82);
}

.activity-thread .drama-thread-meta {
  border-right-color: rgba(214, 188, 117, 0.34);
}

.activity-thread .drama-thread-kicker-dots {
  display: inline-flex;
  gap: 8px;
}

.activity-thread .drama-thread-kicker-dots i {
  width: auto;
  height: auto;
  border: 0;
  background: transparent;
}

.activity-thread .drama-thread-kicker-dots i::before {
  content: "※";
  color: #8f3d32;
  font-size: 13px;
  line-height: 1;
}

.activity-thread-cover-wrap {
  background: rgba(239, 235, 224, 0.92);
}

.activity-thread-image {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  border: 1px solid rgba(80, 96, 106, 0.16);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.62);
  margin: 12px 0;
}

.muted {
  color: var(--muted);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  justify-content: start;
}

.work-card {
  position: relative;
  height: 252px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--panel);
  text-align: left;
  padding: 0;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.work-card:hover,
.work-card:focus-visible {
  border-color: rgba(148, 164, 184, 0.46);
  background: #151d28;
  box-shadow: 0 10px 24px rgba(5, 8, 12, 0.32);
  transform: translateY(-1px);
}

.work-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 8px;
  box-shadow: inset 0 2px 0 rgba(255, 207, 90, 0);
  pointer-events: none;
  transition: box-shadow 0.18s ease, opacity 0.18s ease;
}

.work-card:hover::after,
.work-card:focus-visible::after {
  box-shadow: inset 0 0 0 1px rgba(237, 244, 255, 0.05), inset 0 2px 0 rgba(196, 137, 87, 0.12);
}

.work-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #0b1118;
}

.work-card .content {
  padding: 11px;
  display: grid;
  gap: 7px;
}

.work-card-cast {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.two-line {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.meta-row {
  display: flex;
  justify-content: flex-start;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.meta-row i {
  color: #c48957;
  font-style: normal;
  font-size: 10px;
}

.pager,
.action-row {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 14px;
}

.pager {
  justify-content: center;
  margin-top: 54px;
}

.pager span {
  min-width: 64px;
  padding: 7px 14px;
  border: 1px solid rgba(148, 164, 184, 0.28);
  border-radius: 4px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.pager .ghost {
  min-width: 74px;
  min-height: 34px;
  border-radius: 4px;
  border-color: rgba(148, 164, 184, 0.34);
  background: rgba(255, 255, 255, 0.035);
  color: rgba(237, 244, 255, 0.78);
  font-size: 13px;
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.pager .ghost:hover {
  border-color: rgba(39, 214, 198, 0.48);
  background: rgba(39, 214, 198, 0.08);
  color: var(--text);
  transform: translateY(-1px);
}

.profile-grid {
  --profile-card-scale: 1;
  --profile-card-width: calc(480px * var(--profile-card-scale));
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(var(--profile-card-width), var(--profile-card-width)));
  gap: 24px;
  justify-content: center;
}

.profile-card {
  position: relative;
  min-height: calc(236px * var(--profile-card-scale));
  overflow: hidden;
  text-align: left;
  border: 1px solid #2b2b2e;
  border-radius: calc(6px * var(--profile-card-scale));
  padding: calc(12px * var(--profile-card-scale)) calc(14px * var(--profile-card-scale)) calc(12px * var(--profile-card-scale));
  color: #f3f0ed;
  background:
    linear-gradient(90deg, rgba(15, 94, 99, 0.44) 0 34%, transparent 34%),
    radial-gradient(circle at 82% 18%, rgba(106, 82, 150, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), transparent 42%),
    linear-gradient(135deg, #101417, #191b21 58%, #0d1115);
  background-size: auto, auto, auto;
  box-shadow:
    0 20px 42px rgba(0, 0, 0, 0.32),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.profile-card:hover {
  transform: translateY(-4px);
  border-color: rgba(120, 210, 200, 0.54);
  filter: brightness(1.06);
  box-shadow:
    0 24px 52px rgba(0, 0, 0, 0.38),
    0 0 22px rgba(120, 210, 200, 0.18),
    inset 0 0 0 1px rgba(120, 210, 200, 0.16);
}

.profile-card:focus-visible {
  outline: 2px solid rgba(120, 210, 200, 0.72);
  outline-offset: 4px;
}

.profile-card:active {
  transform: translateY(-1px) scale(0.995);
  border-color: rgba(189, 244, 232, 0.72);
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.34),
    0 0 28px rgba(120, 210, 200, 0.24),
    inset 0 0 0 1px rgba(189, 244, 232, 0.28);
}

.profile-card::before {
  content: "";
  position: absolute;
  left: calc(8px * var(--profile-card-scale));
  right: calc(8px * var(--profile-card-scale));
  top: calc(7px * var(--profile-card-scale));
  height: calc(4px * var(--profile-card-scale));
  background: linear-gradient(90deg, rgba(120, 210, 200, 0.38), rgba(106, 82, 150, 0.22), rgba(120, 210, 200, 0.18));
  pointer-events: none;
}

.profile-card-scan {
  display: none;
}

.profile-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(4px * var(--profile-card-scale));
  background: linear-gradient(90deg, rgba(120, 210, 200, 0.18), rgba(106, 82, 150, 0.22), rgba(120, 210, 200, 0.38));
  pointer-events: none;
}

.profile-card-title::before {
  display: none;
}

.profile-card-head,
.profile-card-title,
.profile-card-body,
.profile-card-stats,
.profile-card-foot {
  position: relative;
  z-index: 1;
  display: flex;
}

.profile-card-head {
  justify-content: space-between;
  align-items: center;
  min-height: calc(26px * var(--profile-card-scale));
  font-size: calc(9px * var(--profile-card-scale));
  font-weight: 900;
  color: #161616;
  text-transform: uppercase;
}

.profile-card-head strong {
  display: inline-flex;
  gap: 0;
  color: #d9fff8;
  font-size: calc(18px * var(--profile-card-scale));
  letter-spacing: 0;
  text-shadow: none;
}

.profile-card-head strong i {
  color: #bdf4e8;
  font-style: normal;
}

.profile-card-head strong i:nth-child(3n + 1) {
  opacity: 1;
}

.profile-card-head strong i:nth-child(3n + 2) {
  opacity: 0.82;
}

.profile-card-head strong i:nth-child(3n) {
  opacity: 0.92;
}

.profile-card-head b {
  color: #a8bbc2;
  font-size: calc(10px * var(--profile-card-scale));
  font-weight: 400;
}

.profile-card-head b::before {
  content: none;
}

.profile-card-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: calc(12px * var(--profile-card-scale));
  align-items: baseline;
  width: 100%;
  margin-top: 0;
}

.profile-card-title strong {
  overflow: hidden;
  color: #f4fbf9;
  font-size: calc(19px * var(--profile-card-scale));
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-card-title::after {
  content: "";
  justify-self: end;
  align-self: center;
  width: calc(32px * var(--profile-card-scale));
  height: calc(8px * var(--profile-card-scale));
  background:
    linear-gradient(#bdf4e8, #bdf4e8) 0 0 / calc(8px * var(--profile-card-scale)) calc(8px * var(--profile-card-scale)) no-repeat,
    linear-gradient(#bdf4e8, #bdf4e8) calc(12px * var(--profile-card-scale)) 0 / calc(8px * var(--profile-card-scale)) calc(8px * var(--profile-card-scale)) no-repeat,
    linear-gradient(#bdf4e8, #bdf4e8) calc(24px * var(--profile-card-scale)) 0 / calc(8px * var(--profile-card-scale)) calc(8px * var(--profile-card-scale)) no-repeat;
  pointer-events: none;
}

.profile-card-title em {
  display: none;
}

.profile-card-body {
  display: grid;
  grid-template-columns: calc(116px * var(--profile-card-scale)) minmax(0, 1fr);
  gap: calc(16px * var(--profile-card-scale));
  align-items: end;
  margin-top: calc(8px * var(--profile-card-scale));
}

.profile-card-portrait {
  position: relative;
  display: block;
  align-self: end;
  width: calc(116px * var(--profile-card-scale));
  height: calc(146px * var(--profile-card-scale));
  padding: calc(5px * var(--profile-card-scale));
  border: 2px solid #dcebe8;
  background: #dcebe8;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.55);
}

.profile-card-portrait::before,
.profile-card-portrait::after {
  content: "";
  position: absolute;
  background: #bdf4e8;
}

.profile-card-portrait::before {
  left: calc(-7px * var(--profile-card-scale));
  bottom: calc(16px * var(--profile-card-scale));
  width: calc(13px * var(--profile-card-scale));
  height: calc(2px * var(--profile-card-scale));
}

.profile-card-portrait::after {
  left: calc(-2px * var(--profile-card-scale));
  bottom: calc(11px * var(--profile-card-scale));
  width: calc(2px * var(--profile-card-scale));
  height: calc(13px * var(--profile-card-scale));
}

.profile-card img,
.profile-card .placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
  background: #cbd7d8;
  display: block;
}

.profile-card .placeholder {
  display: grid;
  place-items: center;
  color: #607077;
  font-size: calc(11px * var(--profile-card-scale));
}

.profile-card-info {
  display: grid;
  align-content: start;
  gap: calc(8px * var(--profile-card-scale));
  min-width: 0;
}

.profile-card-lines {
  display: grid;
  gap: calc(6px * var(--profile-card-scale));
  width: 100%;
}

.profile-card-lines span {
  display: grid;
  grid-template-columns: calc(62px * var(--profile-card-scale)) minmax(0, 1fr);
  align-items: center;
  min-height: calc(24px * var(--profile-card-scale));
  padding: 0 calc(10px * var(--profile-card-scale));
  border: 1px solid rgba(99, 187, 178, 0.44);
  border-radius: 0;
  background: rgba(17, 23, 25, 0.78);
  box-shadow: inset 3px 0 0 rgba(99, 187, 178, 0.72);
}

.profile-card-lines b {
  height: 100%;
  border-right: 1px solid rgba(99, 187, 178, 0.42);
  color: #78d2c8;
  font-size: calc(10px * var(--profile-card-scale));
  line-height: calc(24px * var(--profile-card-scale));
  text-transform: uppercase;
}

.profile-card-lines em {
  overflow: hidden;
  padding-left: calc(10px * var(--profile-card-scale));
  color: #effbf8;
  font-size: calc(13px * var(--profile-card-scale));
  font-style: normal;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-card-redbar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: calc(5px * var(--profile-card-scale));
}

.profile-card-redbar i {
  min-height: calc(22px * var(--profile-card-scale));
  display: grid;
  place-items: center;
  border: 1px solid rgba(99, 187, 178, 0.56);
  color: #effbf8;
  background: rgba(99, 187, 178, 0.14);
  font-size: calc(9px * var(--profile-card-scale));
  font-style: normal;
  font-weight: 800;
}

.profile-card-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: calc(8px * var(--profile-card-scale));
  margin-top: calc(16px * var(--profile-card-scale));
  margin-left: calc(-14px * var(--profile-card-scale));
  margin-right: calc(-14px * var(--profile-card-scale));
  padding: calc(6px * var(--profile-card-scale)) calc(20px * var(--profile-card-scale)) calc(5px * var(--profile-card-scale));
  border-top: 1px dashed rgba(243, 239, 234, 0.28);
  border-bottom: 1px dashed rgba(243, 239, 234, 0.18);
  background: rgba(15, 94, 99, 0.24);
}

.profile-card-stats span {
  display: grid;
  gap: calc(2px * var(--profile-card-scale));
}

.profile-card-stats b,
.profile-card-stats em {
  overflow: hidden;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-card-stats b {
  color: #78d2c8;
  font-size: calc(10px * var(--profile-card-scale));
  font-weight: 900;
}

.profile-card-stats em {
  color: #effbf8;
  font-size: calc(13px * var(--profile-card-scale));
  font-weight: 700;
}

.profile-card-foot {
  justify-content: space-between;
  padding-top: calc(9px * var(--profile-card-scale));
  color: #effbf8;
  font-size: calc(10px * var(--profile-card-scale));
  font-weight: 900;
}

.profile-card-foot b:first-child::before {
  content: "";
  display: inline-block;
  width: calc(7px * var(--profile-card-scale));
  height: calc(7px * var(--profile-card-scale));
  margin-right: calc(7px * var(--profile-card-scale));
  border-radius: 50%;
  background: #78d2c8;
  box-shadow: 0 0 0 rgba(120, 210, 200, 0.3);
  animation: statusPulse 1.8s ease-in-out infinite;
  vertical-align: 0;
}

@keyframes statusPulse {
  0%,
  100% {
    opacity: 0.45;
    box-shadow: 0 0 0 rgba(120, 210, 200, 0.12);
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 10px rgba(120, 210, 200, 0.72);
  }
}

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

.drama-item {
  display: grid;
  grid-template-columns: 130px 1fr auto;
  gap: 16px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 13px 15px;
  color: var(--text);
  background: var(--panel);
  text-align: left;
}

.drama-index-page {
  width: min(980px, 100%);
}

.drama-index-board {
  position: relative;
  overflow: hidden;
  width: min(840px, 100%);
  min-height: 1040px;
  margin: 0 auto;
  padding: 96px clamp(34px, 6vw, 82px) 78px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.08), transparent 13%),
    radial-gradient(circle at 78% 72%, rgba(255, 255, 255, 0.06), transparent 18%),
    repeating-linear-gradient(34deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 34px),
    linear-gradient(180deg, #303131 0%, #242626 56%, #2a2b2b 100%);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.34);
  color: rgba(255, 255, 255, 0.9);
}

.drama-index-board::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 34% 30%, transparent 0 2px, rgba(255, 255, 255, 0.05) 3px, transparent 4px),
    radial-gradient(circle at 68% 14%, rgba(255, 255, 255, 0.04), transparent 11%),
    linear-gradient(90deg, transparent 0 48%, rgba(255, 255, 255, 0.018) 50%, transparent 52%);
  opacity: 0.8;
}

.drama-index-head,
.drama-index-content,
.drama-index-divider,
.drama-index-foot {
  position: relative;
  z-index: 1;
}

.drama-index-head {
  display: grid;
  justify-items: center;
  gap: 24px;
  text-align: center;
}

.drama-index-head h1 {
  margin: 0;
  color: #f4f4f0;
  font-family: KaiTi, STKaiti, "Songti SC", SimSun, serif;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0;
}

.drama-index-search {
  width: min(320px, 100%);
  min-height: 36px;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #f7f7f4;
  text-align: center;
}

.drama-index-search::placeholder {
  color: rgba(255, 255, 255, 0.42);
}

.drama-index-divider {
  display: flex;
  align-items: center;
  gap: 26px;
  margin: 38px calc(clamp(34px, 6vw, 82px) * -1) 72px;
  color: rgba(255, 255, 255, 0.84);
}

.drama-index-divider::before,
.drama-index-divider::after {
  content: "";
  flex: 1;
  border-top: 1px dotted rgba(255, 255, 255, 0.32);
}

.drama-index-divider span {
  width: 32px;
  height: 32px;
  border: 1px solid currentColor;
  border-radius: 50%;
  background:
    radial-gradient(circle at 64% 45%, #2b2c2c 0 8px, transparent 9px),
    #f4f4ef;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.drama-index-content {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
  gap: clamp(26px, 6vw, 70px);
  align-items: center;
}

.drama-index-ornament {
  position: relative;
  min-height: 520px;
}

.drama-clock {
  position: absolute;
  left: 50%;
  top: 43%;
  transform: translate(-50%, -50%);
  width: 184px;
  height: 184px;
  border: 6px solid rgba(255, 255, 255, 0.64);
  border-radius: 50%;
  box-shadow: inset 0 0 0 16px rgba(255, 255, 255, 0.12), inset 0 0 0 28px rgba(255, 255, 255, 0.64);
}

.drama-clock::before,
.drama-clock::after {
  content: "";
  position: absolute;
  inset: 38px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 50%;
}

.drama-clock::after {
  inset: 63px;
}

.drama-clock i,
.drama-clock b {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2px;
  height: 72px;
  background: rgba(255, 255, 255, 0.82);
  transform-origin: 50% 0;
  transform: rotate(142deg);
}

.drama-clock b {
  height: 50px;
  transform: rotate(-22deg);
}

.drama-orbit {
  position: absolute;
  left: 20%;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-left-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
}

.drama-orbit-one {
  top: 64px;
  transform: rotate(38deg);
}

.drama-orbit-two {
  bottom: 48px;
  transform: rotate(214deg);
}

.drama-index-list {
  gap: 0;
}

.drama-index-header,
.drama-index-item {
  display: grid;
  grid-template-columns: 64px 140px minmax(0, 1fr) minmax(120px, 220px);
  gap: 18px;
  align-items: center;
}

.drama-index-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  padding: 0 0 11px;
  color: rgba(237, 244, 255, 0.86);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.drama-index-item {
  min-height: 50px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0;
  padding: 12px 0;
  background: transparent;
  color: rgba(237, 244, 255, 0.88);
}

.drama-index-month-line {
  position: relative;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 40px;
  margin: 9px 0 2px;
  color: rgba(157, 187, 203, 0.92);
  font-size: 12px;
}

.drama-index-month-line::before {
  content: "";
  width: 9px;
  height: 9px;
  background: rgba(157, 187, 203, 0.95);
  box-shadow: 0 0 10px rgba(116, 165, 190, 0.24);
  transform: rotate(45deg);
}

.drama-index-month-line span {
  height: 1px;
  background: linear-gradient(90deg, rgba(157, 187, 203, 0.64), rgba(255, 255, 255, 0.12));
}

.drama-index-month-line b {
  font-weight: 700;
  white-space: nowrap;
}

.drama-index-seq {
  color: rgba(148, 164, 184, 0.72);
  font-size: 12px;
}

.drama-index-header span:nth-child(-n + 3),
.drama-index-seq,
.drama-index-date,
.drama-index-title {
  transform: translateX(34px);
}

.drama-index-title {
  overflow: hidden;
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.drama-index-date,
.drama-index-people {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  white-space: nowrap;
}

.drama-index-people {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.drama-index-empty {
  text-align: center;
}

.drama-index-foot {
  margin-top: 48px;
  color: rgba(255, 255, 255, 0.62);
  font-family: "Times New Roman", serif;
  font-size: 18px;
  font-style: italic;
  text-align: center;
}

.drama-thread-page {
  width: min(980px, 100%);
}

.drama-thread {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(132, 154, 165, 0.28);
  border-radius: 2px;
  background:
    radial-gradient(circle at 16% 8%, rgba(78, 113, 132, 0.18), transparent 28%),
    radial-gradient(circle at 88% 18%, rgba(178, 78, 64, 0.1), transparent 18%),
    linear-gradient(180deg, rgba(226, 236, 239, 0.94) 0, #fbfbf7 31%, #fffefb 100%);
  box-shadow: 0 20px 48px rgba(30, 43, 52, 0.18);
}

.drama-thread::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0) 0 24%, rgba(255, 255, 255, 0.78) 34%, rgba(255, 255, 255, 0) 50%),
    radial-gradient(ellipse at 24% 4%, rgba(29, 58, 78, 0.22), transparent 30%),
    radial-gradient(ellipse at 78% 9%, rgba(37, 76, 94, 0.14), transparent 24%),
    repeating-linear-gradient(90deg, rgba(46, 81, 101, 0.035) 0 1px, transparent 1px 34px);
  opacity: 0.78;
}

.drama-thread-head {
  position: relative;
  z-index: 1;
  order: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, max-content);
  align-items: end;
  gap: 32px;
  min-height: 320px;
  padding: 52px clamp(28px, 7vw, 78px) 46px;
  border-bottom: 1px solid rgba(112, 131, 139, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.9)),
    radial-gradient(ellipse at 10% 86%, rgba(48, 89, 112, 0.12), transparent 26%);
}

.drama-thread-head > div {
  display: contents;
}

.drama-thread-kicker {
  grid-column: 1 / -1;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  border-left: 2px solid rgba(118, 32, 30, 0.56);
  padding-left: 14px;
  color: #8f2f2c;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.drama-thread-kicker-dots {
  display: inline-grid;
  grid-template-columns: repeat(3, 8px);
  gap: 7px;
  align-items: center;
}

.drama-thread-kicker-dots i {
  width: 8px;
  height: 8px;
  border: 1px solid rgba(143, 47, 44, 0.42);
  background: rgba(143, 47, 44, 0.14);
}

.drama-thread-head h1 {
  position: relative;
  grid-column: 1;
  grid-row: 2;
  margin: 0 0 18px;
  color: #101820;
  font-family: KaiTi, STKaiti, "Songti SC", SimSun, serif;
  font-size: clamp(42px, 8vw, 76px);
  font-weight: 700;
  line-height: 1.05;
  top: -34px;
}

.drama-thread-meta {
  grid-column: 1 / -1;
  grid-row: 2;
  align-self: end;
  justify-self: stretch;
  display: grid;
  gap: 3px;
  justify-items: stretch;
  border-right: 2px solid rgba(80, 96, 106, 0.34);
  padding-right: 18px;
  text-align: right;
  transform: translateY(14px);
}

.drama-thread-meta > span,
.drama-thread-meta-count > span:last-child {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  color: #64717b;
  font-size: 13px;
  line-height: 1.42;
}

.drama-thread-meta > span:first-child {
  justify-self: end;
}

.drama-thread-meta span.drama-thread-meta-count {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  width: 100%;
}

.drama-thread-meta-count .drama-thread-kicker-dots {
  display: inline-grid;
  justify-self: start;
}

.drama-thread-meta-count > span:last-child {
  justify-self: end;
}

.drama-thread-cover-wrap {
  position: relative;
  z-index: 1;
  order: 1;
  display: grid;
  place-items: center;
  margin: 0;
  min-height: 0;
  padding: 0;
  border-bottom: 0;
  background:
    linear-gradient(180deg, rgba(226, 237, 241, 0.9), rgba(255, 255, 255, 0.78)),
    radial-gradient(ellipse at 35% 20%, rgba(41, 75, 96, 0.28), transparent 34%);
}

.drama-thread-cover {
  display: block;
  width: 100%;
  max-height: none;
  object-fit: cover;
  border: 6px solid rgba(164, 181, 188, 0.24);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.65);
  box-shadow: none;
}

.drama-thread-layout {
  position: relative;
  z-index: 1;
  order: 3;
  display: block;
  padding: 34px clamp(22px, 6vw, 70px) 74px;
  background:
    radial-gradient(ellipse at 93% 24%, rgba(73, 114, 135, 0.09), transparent 23%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.98));
}

.drama-thread-reader {
  min-width: 0;
  width: min(720px, 100%);
  margin: 0 auto;
}

.drama-thread-summary {
  position: relative;
  margin: 0 0 34px;
  border: 0;
  border-left: 2px solid rgba(143, 47, 44, 0.24);
  border-radius: 0;
  padding: 16px 22px 16px 24px;
  background: rgba(69, 99, 116, 0.055);
}

.drama-thread-summary::before,
.drama-thread-summary::after {
  position: absolute;
  color: rgba(143, 47, 44, 0.45);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  line-height: 1;
}

.drama-thread-summary::before {
  content: "“";
  top: 8px;
  left: 8px;
}

.drama-thread-summary::after {
  content: "”";
  right: 10px;
  bottom: 2px;
}

.drama-thread-summary h2 {
  margin: 0 0 7px;
  color: rgba(42, 71, 89, 0.46);
  font-family: "Times New Roman", "Songti SC", serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.14em;
}

.drama-thread-summary h2::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 1px;
  margin-right: 7px;
  background: rgba(143, 47, 44, 0.3);
  vertical-align: middle;
}

.drama-thread-summary p,
.drama-post-content p {
  margin: 0 0 12px;
  color: #2d3438;
  font-size: 14px;
  line-height: 1.88;
  text-indent: 2em;
}

.drama-thread-summary p {
  margin: 0 0 8px;
  color: rgba(45, 52, 56, 0.6);
  font-size: 13px;
  line-height: 1.72;
  text-indent: 2em;
}

.drama-thread-summary p:last-child {
  margin-bottom: 0;
}

.drama-thread-posts {
  display: grid;
  gap: 30px;
  border-top: 1px solid rgba(79, 111, 129, 0.14);
  padding: 26px 0 0;
}

.drama-post {
  position: relative;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.drama-post-user {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 12px;
  padding: 4px 16px 0 0;
  border-right: 0;
  background: transparent;
  text-align: center;
}

.drama-post-user span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(143, 47, 44, 0.42);
  border-radius: 999px;
  color: #8f2f2c;
  font-family: "Times New Roman", serif;
  font-size: 18px;
  font-weight: 700;
}

.drama-post-user .drama-post-avatar {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.5);
}

.drama-post-user .drama-post-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.drama-post-user strong {
  color: #2a4759;
  font-family: KaiTi, STKaiti, "Songti SC", SimSun, serif;
  line-height: 1.45;
  writing-mode: vertical-rl;
}

.drama-post-body {
  min-height: 176px;
  border-left: 1px solid rgba(80, 96, 106, 0.18);
  padding: 0 0 0 30px;
}

.drama-post-meta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 15px;
  border-bottom: 1px dashed rgba(80, 96, 106, 0.24);
  padding-bottom: 10px;
  color: #75818a;
  font-family: "Times New Roman", "Songti SC", serif;
  font-size: 12px;
}

.drama-post-meta span:first-child {
  color: #2a4759;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
}

.drama-post-content {
  color: #273138;
}

.drama-thread-upload {
  position: relative;
  z-index: 1;
  order: 4;
  padding: 0 clamp(22px, 6vw, 70px) 42px;
  color: rgba(42, 71, 89, 0.52);
  font-size: 12px;
  text-align: center;
  letter-spacing: 0.08em;
  background: rgba(255, 255, 255, 0.98);
}

.drama-thread-upload::before {
  content: "";
  display: block;
  width: min(100%, 840px);
  height: 1px;
  margin: 0 auto 18px;
  background: rgba(79, 111, 129, 0.16);
}

.work-thread-page {
  width: min(980px, 100%);
}

.work-thread {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(132, 154, 165, 0.28);
  border-radius: 2px;
  background:
    radial-gradient(circle at 16% 8%, rgba(78, 113, 132, 0.16), transparent 28%),
    radial-gradient(circle at 88% 18%, rgba(145, 86, 61, 0.09), transparent 18%),
    linear-gradient(180deg, rgba(226, 236, 239, 0.94) 0, #fbfbf7 31%, #fffefb 100%);
  box-shadow: 0 20px 48px rgba(30, 43, 52, 0.18);
}

.work-thread::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0) 0 24%, rgba(255, 255, 255, 0.78) 34%, rgba(255, 255, 255, 0) 50%),
    radial-gradient(ellipse at 24% 4%, rgba(29, 58, 78, 0.2), transparent 30%),
    repeating-linear-gradient(90deg, rgba(46, 81, 101, 0.035) 0 1px, transparent 1px 34px);
  opacity: 0.78;
}

.work-thread-head {
  position: relative;
  z-index: 1;
  order: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, max-content);
  align-items: end;
  gap: 32px;
  min-height: 320px;
  padding: 52px clamp(28px, 7vw, 78px) 46px;
  border-bottom: 1px solid rgba(112, 131, 139, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.9)),
    radial-gradient(ellipse at 10% 86%, rgba(48, 89, 112, 0.12), transparent 26%);
}

.work-thread-head > div {
  display: contents;
}

.work-thread-kicker {
  grid-column: 1 / -1;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  border-left: 2px solid rgba(118, 32, 30, 0.56);
  padding-left: 14px;
  color: #8f2f2c;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.work-thread-head h1 {
  position: relative;
  grid-column: 1;
  grid-row: 2;
  margin: 0 0 18px;
  color: #101820;
  font-family: KaiTi, STKaiti, "Songti SC", SimSun, serif;
  font-size: clamp(42px, 8vw, 76px);
  font-weight: 700;
  line-height: 1.05;
  top: -34px;
}

.work-title-mobile {
  display: none;
}

.work-thread-meta {
  grid-column: 1 / -1;
  grid-row: 2;
  align-self: end;
  justify-self: stretch;
  display: grid;
  gap: 3px;
  justify-items: stretch;
  border-right: 2px solid rgba(80, 96, 106, 0.34);
  padding-right: 18px;
  text-align: right;
  transform: translateY(14px);
}

.work-thread-meta > span,
.work-thread-meta-count > span:last-child {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  color: #64717b;
  font-size: 13px;
  line-height: 1.42;
}

.work-thread-meta > span:first-child {
  justify-self: end;
}

.work-thread-meta span.work-thread-meta-count {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  width: 100%;
}

.work-thread-meta-count .drama-thread-kicker-dots {
  display: inline-grid;
  justify-self: start;
}

.work-thread-meta-count > span:last-child {
  justify-self: end;
}

.work-thread-cover-wrap {
  position: relative;
  z-index: 1;
  order: 1;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 0;
  background:
    linear-gradient(180deg, rgba(226, 237, 241, 0.9), rgba(255, 255, 255, 0.78)),
    radial-gradient(ellipse at 35% 20%, rgba(41, 75, 96, 0.28), transparent 34%);
}

.work-thread-cover {
  display: block;
  width: 100%;
  object-fit: cover;
  border: 6px solid rgba(164, 181, 188, 0.24);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.65);
}

.work-thread-layout {
  position: relative;
  z-index: 1;
  order: 3;
  padding: 34px clamp(22px, 6vw, 70px) 36px;
  background:
    radial-gradient(ellipse at 93% 24%, rgba(73, 114, 135, 0.09), transparent 23%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.98));
}

.work-thread-reading .work-thread-layout {
  padding-top: 46px;
}

.work-thread-reader {
  width: min(720px, 100%);
  margin: 0 auto;
}

.work-thread-summary {
  position: relative;
  margin: 0 0 28px;
  border-left: 2px solid rgba(143, 47, 44, 0.24);
  padding: 16px 22px 16px 24px;
  background: rgba(69, 99, 116, 0.055);
}

.work-thread-summary::before,
.work-thread-summary::after {
  position: absolute;
  color: rgba(143, 47, 44, 0.45);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  line-height: 1;
}

.work-thread-summary::before {
  content: "“";
  top: 8px;
  left: 8px;
}

.work-thread-summary::after {
  content: "”";
  right: 10px;
  bottom: 2px;
}

.work-thread-summary h2 {
  margin: 0 0 7px;
  color: rgba(42, 71, 89, 0.46);
  font-family: "Times New Roman", "Songti SC", serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.14em;
}

.work-thread-summary h2::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 1px;
  margin-right: 7px;
  background: rgba(143, 47, 44, 0.3);
  vertical-align: middle;
}

.work-thread-summary p,
.work-chapter-content p,
.work-role-block p {
  margin: 0 0 12px;
  color: #2d3438;
  font-size: 14px;
  line-height: 1.88;
  text-indent: 2em;
}

.work-thread-summary p {
  margin-bottom: 8px;
  color: rgba(45, 52, 56, 0.6);
  font-size: 13px;
  line-height: 1.72;
}

.work-thread-basic {
  margin: 0 0 24px;
  border-bottom: 1px dashed rgba(80, 96, 106, 0.2);
  padding: 0 0 18px;
}

.work-thread-basic h2 {
  margin: 0 0 12px;
  color: rgba(42, 71, 89, 0.46);
  font-family: "Times New Roman", "Songti SC", serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.14em;
}

.work-thread-basic h2::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 1px;
  margin-right: 7px;
  background: rgba(143, 47, 44, 0.3);
  vertical-align: middle;
}

.work-thread-basic-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
}

.work-thread-basic-grid-mobile {
  display: none;
}

.work-thread-basic-grid-desktop {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
}

.work-thread-basic-group {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 8px 10px;
  min-width: 0;
}

.work-thread-basic-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
}

.work-thread-basic-item > span {
  color: rgba(42, 71, 89, 0.48);
  font-size: 11px;
  white-space: nowrap;
}

.work-thread-basic-item strong {
  border: 1px dashed rgba(80, 96, 106, 0.24);
  border-radius: 999px;
  padding: 3px 9px;
  background: rgba(250, 247, 240, 0.52);
  color: rgba(45, 52, 56, 0.72);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
}

.work-thread-basic-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.work-thread-basic-tags span {
  border: 1px dashed rgba(80, 96, 106, 0.24);
  border-radius: 999px;
  padding: 3px 9px;
  background: rgba(250, 247, 240, 0.52);
  color: rgba(45, 52, 56, 0.68);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
}

.work-thread-directory {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: min(680px, 100%);
  margin: 0 auto 10px;
  border-top: 1px solid rgba(79, 111, 129, 0.12);
  border-bottom: 0;
  padding: 24px 0 8px;
}

.work-directory-item {
  position: relative;
  min-height: 48px;
  border: 1px solid rgba(80, 96, 106, 0.16);
  border-radius: 2px;
  padding: 13px 16px;
  background: rgba(255, 255, 255, 0.34);
  color: #20283b;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0.16em;
  text-align: center;
}

.work-directory-item.active,
.work-directory-item:hover {
  border-color: rgba(143, 47, 44, 0.24);
  background: rgba(143, 47, 44, 0.08);
  color: #8f2f2c;
}

.work-thread-chapter {
  border-top: 1px solid rgba(79, 111, 129, 0.14);
  padding-top: 26px;
}

.work-chapter-meta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
  border-bottom: 1px dashed rgba(80, 96, 106, 0.24);
  padding-bottom: 14px;
  color: #75818a;
  font-family: "Times New Roman", "Songti SC", serif;
  font-size: 12px;
}

.work-chapter-meta span:first-child {
  color: #2a4759;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
}

.work-chapter-cast-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -6px 0 22px;
}

.work-chapter-cast-tags span {
  border: 1px dashed rgba(80, 96, 106, 0.28);
  border-radius: 999px;
  padding: 4px 10px;
  background: rgba(250, 247, 240, 0.58);
  color: rgba(42, 71, 89, 0.72);
  font-size: 12px;
  line-height: 1.4;
}

.work-chapter-note {
  position: relative;
  margin: 0 0 32px;
  border-left: 2px solid rgba(143, 47, 44, 0.24);
  padding: 12px 18px 12px 22px;
  background: rgba(69, 99, 116, 0.055);
  color: rgba(42, 71, 89, 0.66);
  font-size: 13px;
  line-height: 1.78;
  text-indent: 2em;
}

.work-chapter-note::before,
.work-chapter-note::after {
  position: absolute;
  color: rgba(143, 47, 44, 0.4);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  line-height: 1;
}

.work-chapter-note::before {
  content: "“";
  top: 6px;
  left: 7px;
}

.work-chapter-note::after {
  content: "”";
  right: 9px;
  bottom: 0;
}

.work-role-list {
  display: grid;
  gap: 0;
  margin-top: 30px;
}

.work-role-block {
  border-left: 1px solid rgba(80, 96, 106, 0.18);
  padding: 0 0 0 20px;
}

.work-role-block + .work-role-block {
  position: relative;
  margin-top: 72px;
}

.work-role-block + .work-role-block::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -36px;
  height: 1px;
  background: rgba(80, 96, 106, 0.14);
}

.work-role-block strong {
  display: block;
  margin-bottom: 14px;
  color: #2a4759;
  font-size: 14px;
}

.work-role-block p:last-child {
  margin-bottom: 0;
}

.work-chapter-bottom-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 34px 0 0;
  border-top: 1px solid rgba(79, 111, 129, 0.14);
  padding-top: 22px;
}

.work-chapter-bottom-nav button {
  min-width: 86px;
  border-color: rgba(80, 96, 106, 0.18);
  background: rgba(255, 255, 255, 0.42);
  color: #53626a;
}

.work-chapter-bottom-nav button:hover {
  border-color: rgba(143, 47, 44, 0.24);
  background: rgba(143, 47, 44, 0.08);
  color: #8f2f2c;
}

.work-thread-upload {
  position: relative;
  z-index: 1;
  order: 4;
  padding: 0 clamp(22px, 6vw, 70px) 42px;
  color: rgba(42, 71, 89, 0.52);
  font-size: 12px;
  text-align: center;
  letter-spacing: 0.08em;
  background: rgba(255, 255, 255, 0.98);
}

.work-thread-upload::before {
  content: "";
  display: block;
  width: min(100%, 840px);
  height: 1px;
  margin: 0 auto 12px;
  background: rgba(79, 111, 129, 0.16);
}

.detail-cover {
  width: min(720px, 100%);
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0c121a;
}

.admin-shell .activity-upload-preview,
.admin-modal .activity-upload-preview,
.activity-upload-preview {
  display: block;
  max-width: 400px;
  width: auto;
  height: auto;
  max-height: none;
  aspect-ratio: auto;
  object-fit: contain;
  background: rgba(250, 247, 240, 0.54);
}

.admin-artist-avatar-preview {
  width: 100px;
  height: 150px;
  aspect-ratio: auto;
  object-fit: cover;
}

.admin-artist-draft-avatar-preview {
  width: 100px;
  height: 150px;
  aspect-ratio: auto;
  object-fit: cover;
}

.admin-work-cover-preview,
.work-list-cover {
  width: 160px;
  height: 90px;
  aspect-ratio: auto;
  object-fit: cover;
}

.inline-thumb {
  width: 52px;
  height: 34px;
  object-fit: cover;
  margin-right: 8px;
  border-radius: 5px;
  vertical-align: middle;
}

.profile-dossier-page {
  width: min(980px, 100%);
}

.dossier-back {
  position: sticky;
  top: 88px;
  z-index: 12;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  margin-bottom: 16px;
  padding: 10px 16px;
  border-color: rgba(120, 210, 200, 0.24);
  background: rgba(10, 15, 18, 0.92);
  color: #effbf8;
  font-size: 15px;
  font-weight: 700;
  backdrop-filter: blur(12px);
}

.detail-dossier {
  position: relative;
  overflow: visible;
  border: 1px solid rgba(98, 187, 178, 0.28);
  border-radius: 18px;
  padding: 24px 24px 28px;
  background:
    linear-gradient(135deg, rgba(13, 18, 22, 0.96), rgba(20, 24, 31, 0.94) 58%, rgba(10, 14, 18, 0.98)),
    radial-gradient(circle at 84% 18%, rgba(120, 210, 200, 0.12), transparent 24rem);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.38),
    inset 0 0 0 1px rgba(189, 244, 232, 0.05);
}

.detail-dossier::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  pointer-events: none;
}

.detail-dossier::after {
  content: "";
  position: absolute;
  inset: auto 24px 24px auto;
  width: 140px;
  height: 140px;
  border: 1px solid rgba(120, 210, 200, 0.12);
  border-radius: 50%;
  box-shadow:
    0 0 0 10px rgba(120, 210, 200, 0.03),
    0 0 0 22px rgba(120, 210, 200, 0.015);
  opacity: 0.75;
  pointer-events: none;
}

.detail-dossier-top,
.detail-dossier-main,
.detail-dossier-grid {
  position: relative;
  z-index: 1;
}

.detail-dossier-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  color: #a3b8b8;
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.detail-dossier-top strong {
  display: inline-flex;
  justify-content: center;
  min-width: 280px;
  padding: 7px 18px;
  border: 1px solid rgba(120, 210, 200, 0.3);
  background: linear-gradient(90deg, rgba(18, 26, 29, 0.92), rgba(38, 55, 58, 0.84), rgba(18, 26, 29, 0.92));
  color: #d9fff8;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5em;
}

.detail-dossier-top span:last-child {
  text-align: right;
}

.detail-dossier-main {
  display: grid;
  grid-template-columns: minmax(260px, 300px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.detail-dossier-portrait-panel {
  display: grid;
  gap: 12px;
}

.detail-dossier-portrait-wrap {
  position: relative;
  padding: 14px;
  border: 1px solid rgba(221, 235, 232, 0.2);
  background:
    linear-gradient(180deg, rgba(236, 245, 241, 0.08), transparent 24%),
    linear-gradient(135deg, rgba(16, 22, 25, 0.96), rgba(26, 29, 34, 0.94));
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.detail-dossier-portrait-wrap::before,
.detail-dossier-portrait-wrap::after {
  content: "";
  position: absolute;
  background: #bdf4e8;
}

.detail-dossier-portrait-wrap::before {
  left: 14px;
  right: 14px;
  top: 14px;
  height: 2px;
  opacity: 0.5;
}

.detail-dossier-portrait-wrap::after {
  left: 14px;
  bottom: 14px;
  width: 96px;
  height: 8px;
  background:
    linear-gradient(90deg, #bdf4e8 0 8%, transparent 8% 12%, #bdf4e8 12% 20%, transparent 20% 24%, #bdf4e8 24% 100%);
  opacity: 0.88;
}

.detail-dossier-portrait-wrap img,
.detail-dossier-portrait-wrap .placeholder {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  display: block;
  background: #cad7d7;
}

.detail-dossier-portrait-wrap .placeholder {
  display: grid;
  place-items: center;
  color: #61747b;
}

.detail-dossier-portrait-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #a8bbc2;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.detail-dossier-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
}

.detail-dossier-heading p,
.detail-dossier-heading h1 {
  margin: 0;
}

.detail-dossier-heading p {
  color: #78d2c8;
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.detail-dossier-heading h1 {
  margin-top: 10px;
  color: #f4fbf9;
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1;
}

.detail-dossier-heading-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
  text-align: right;
  white-space: nowrap;
}

.detail-dossier-heading-meta,
.detail-dossier-heading-meta span {
  color: #effbf8;
  font-size: 13px;
}

.detail-dossier-heading-meta span {
  margin: 0 6px;
}

.detail-dossier-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
  margin-top: 22px;
}

.detail-dossier-fact {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px 12px;
  border: 1px solid rgba(120, 210, 200, 0.18);
  background: rgba(9, 14, 17, 0.72);
}

.detail-dossier-fact b {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  color: #78d2c8;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-align: center;
}

.detail-dossier-fact span {
  color: #f1faf8;
  font-size: 13px;
  line-height: 1.6;
}

.detail-dossier-quote {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(135deg, rgba(13, 18, 20, 0.82), rgba(29, 37, 45, 0.64));
}

.detail-dossier-quote-body {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: start;
}

.detail-dossier-quote-body b {
  color: rgba(120, 210, 200, 0.72);
  font-size: 26px;
  font-weight: 400;
  line-height: 1;
}

.detail-dossier-quote-body b:last-child {
  align-self: end;
}

.detail-dossier-quote p {
  margin: 0;
  color: #deeeeb;
  font-size: 13px;
  line-height: 1.9;
  text-indent: 2em;
}

.detail-dossier-quote strong {
  display: block;
  color: #78d2c8;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 700;
}

.detail-dossier-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.detail-dossier-stats span {
  padding: 10px 12px 9px;
  border: 1px solid rgba(120, 210, 200, 0.16);
  background: rgba(13, 19, 21, 0.78);
  text-align: center;
}

.detail-dossier-stats b,
.detail-dossier-stats em {
  display: block;
  font-style: normal;
}

.detail-dossier-stats b {
  color: #78d2c8;
  font-size: 11px;
  letter-spacing: 0.16em;
}

.detail-dossier-stats em {
  margin-top: 6px;
  color: #f4fbf9;
  font-size: 16px;
  font-weight: 700;
}

.detail-dossier-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.dossier-module {
  min-height: 100%;
  padding: 18px 18px 20px;
  border: 1px solid rgba(120, 210, 200, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 28%),
    rgba(12, 18, 21, 0.74);
}

.dossier-module.wide {
  grid-column: 1 / -1;
}

.dossier-module h2 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 15px;
  padding: 0 0 7px;
  border: 0;
  border-bottom: 1px solid rgba(120, 210, 200, 0.26);
  background: transparent;
  color: rgba(244, 251, 249, 0.9);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.dossier-module h2::before {
  content: "“";
  color: rgba(120, 210, 200, 0.66);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  font-weight: 400;
  line-height: 0.7;
  transform: translateY(4px);
}

.dossier-module h2::after {
  content: "”";
  color: rgba(120, 210, 200, 0.66);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  font-weight: 400;
  line-height: 0.7;
  transform: translateY(9px);
}

.dossier-copy {
  margin: 0;
  color: #dfeceb;
  font-size: 13px;
  line-height: 1.9;
  text-indent: 0;
}

.dossier-copy-group {
  display: grid;
  gap: 10px;
}

.dossier-copy-paragraph {
  text-indent: 2em;
}

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

.dossier-fact-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px 12px;
  border: 1px solid rgba(120, 210, 200, 0.18);
  background: rgba(9, 14, 17, 0.72);
}

.dossier-fact-row b {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  color: #78d2c8;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-align: center;
}

.dossier-fact-row span {
  color: #f1faf8;
  font-size: 13px;
  line-height: 1.6;
}

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

.dossier-term-card {
  padding: 14px;
  border: 0;
  background: rgba(8, 13, 16, 0.54);
  text-align: left;
}

.dossier-term-card strong {
  color: #f4fbf9;
}

.dossier-term-card p {
  margin: 8px 0 0;
  color: #cfe2df;
  line-height: 1.7;
  text-indent: 0;
}

.dossier-term-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.dossier-term-chip {
  position: relative;
  padding: 2px 0 3px;
  border: 0;
  border-bottom: 1px solid rgba(244, 251, 249, 0.82);
  background: transparent;
  white-space: nowrap;
}

.dossier-term-chip strong {
  color: #f4fbf9;
  font-size: 13px;
  font-weight: 400;
}

.dossier-term-chip::after {
  content: attr(data-tip);
  position: absolute;
  left: 0;
  bottom: calc(100% + 10px);
  transform: translateY(8px);
  width: max-content;
  max-width: min(520px, calc(100vw - 64px));
  padding: 10px 12px;
  border: 1px solid rgba(120, 210, 200, 0.24);
  background: rgba(12, 18, 21, 0.98);
  color: #deeeeb;
  font-size: 12px;
  line-height: 1.7;
  white-space: pre-line;
  overflow-wrap: anywhere;
  opacity: 0;
  pointer-events: none;
  transition: opacity 140ms ease, transform 140ms ease;
  z-index: 3;
}

.dossier-term-chip:hover::after,
.dossier-term-chip:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.dossier-work-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 180px));
  gap: 12px;
}

.dossier-work-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(120, 210, 200, 0.18);
  border-radius: 6px;
  padding: 0;
  background: rgba(8, 13, 16, 0.54);
  text-align: left;
}

.dossier-work-card img,
.dossier-work-placeholder {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: rgba(189, 244, 232, 0.08);
}

.dossier-work-placeholder {
  display: grid;
  place-items: center;
  color: #78d2c8;
  font-size: 12px;
}

.dossier-work-content {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 7px 8px 8px;
}

.dossier-work-card strong,
.dossier-work-card em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dossier-work-card strong {
  color: #f4fbf9;
  font-size: 12px;
  line-height: 1.25;
}

.dossier-work-card em {
  color: #cfe2df;
  font-size: 10px;
  font-style: normal;
}

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

.dossier-drama-column {
  display: grid;
  gap: 0;
  align-content: start;
}

.dossier-drama-card {
  display: grid;
  grid-template-columns: 34px 84px minmax(0, 1.15fr) minmax(72px, 0.85fr);
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 46px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0;
  padding: 10px 0;
  background: transparent;
  color: rgba(237, 244, 255, 0.88);
  text-align: left;
}

.dossier-drama-card:hover,
.dossier-work-card:hover {
  background: rgba(120, 210, 200, 0.08);
}

.dossier-drama-seq {
  color: rgba(148, 164, 184, 0.72);
  font-size: 12px;
}

.dossier-drama-date,
.dossier-drama-card p {
  color: rgba(157, 187, 203, 0.92);
  font-size: 12px;
}

.dossier-drama-card strong {
  color: #f4fbf9;
  font-size: 13px;
}

.dossier-drama-card strong,
.dossier-drama-card p {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin: 0;
  text-indent: 0;
}

.dossier-module-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 14px;
  color: rgba(157, 187, 203, 0.9);
  font-size: 12px;
}

.dossier-module-pager .ghost {
  min-width: 72px;
  min-height: 30px;
  padding: 0 12px;
  border-color: rgba(120, 210, 200, 0.2);
  color: #cfe2df;
}

.dossier-module-pager .ghost:not(:disabled):hover {
  border-color: rgba(120, 210, 200, 0.72);
  background: rgba(120, 210, 200, 0.14);
  box-shadow: 0 0 0 2px rgba(120, 210, 200, 0.12);
  color: #f4fbf9;
}

.dossier-module-pager .ghost:disabled {
  opacity: 0.38;
  cursor: default;
}

.detail-profile {
  display: grid;
  grid-template-columns: minmax(200px, 320px) 1fr;
  gap: 22px;
  align-items: start;
}

.detail-profile img {
  width: 100%;
  aspect-ratio: 1 / 2;
  object-fit: cover;
  border: 1px solid rgba(39, 214, 198, 0.42);
  border-radius: 8px;
}

.admin-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 18px;
  align-items: start;
}

.side {
  position: sticky;
  top: 92px;
  height: calc(100vh - 178px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 24, 35, 0.84);
  padding: 12px;
}

.side button {
  width: 100%;
  margin-bottom: 7px;
  text-align: left;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--text);
  background: transparent;
  padding: 10px 12px;
}

.side-title,
.side-root {
  display: block;
  width: 100%;
  margin: 0 0 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  padding: 11px 12px;
  font-weight: 700;
}

.side-title.active,
.side-root.active {
  border-color: transparent;
  color: #031313;
  background: var(--accent);
}

.side-subtitle {
  margin: 14px 0 7px;
  padding-left: 6px;
  color: var(--muted);
  font-size: 12px;
}

.side-child {
  padding-left: 24px;
}

.side button.active {
  border-color: var(--line);
  background: rgba(39, 214, 198, 0.12);
}

.side button.side-root.active {
  border-color: transparent;
  color: #031313;
  background: var(--accent);
}

.admin-main {
  min-width: 0;
}

.admin-shell .admin-main {
  min-width: 0;
}

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

.form-grid .wide,
.wide {
  grid-column: 1 / -1;
}

.table-wrap {
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
  table-layout: fixed;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 10px;
  text-align: left;
  vertical-align: top;
  word-break: break-word;
}

th {
  color: var(--muted);
  font-weight: 500;
}

td img {
  width: 92px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 4px;
  background: #0c121a;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.62);
}

.modal-box {
  width: min(980px, 100%);
  max-height: 88vh;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0f1620;
  box-shadow: var(--shadow);
  padding: 20px;
}

.modal-head {
  position: sticky;
  top: -20px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: -20px -20px 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  background: #0f1620;
}

.modal-head h2 {
  margin: 0;
}

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

.modal-head-actions .ghost,
.modal-head-actions .primary {
  min-width: 72px;
}

.modal-head-actions [data-close-modal] {
  min-width: 42px;
  padding-left: 0;
  padding-right: 0;
}

.dialog-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.62);
}

.dialog-box {
  width: min(430px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0f1620;
  box-shadow: var(--shadow);
  padding: 22px;
}

.dialog-head h2 {
  margin: 0 0 10px;
  font-size: 22px;
}

.dialog-box p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}

.admin-dialog {
  background: rgba(57, 61, 55, 0.28);
}

.admin-dialog .dialog-box {
  border-color: #d8d2c8;
  background: #f7f3eb;
  color: #363c38;
  box-shadow: 0 18px 52px rgba(72, 72, 62, 0.18);
}

.admin-dialog .dialog-box p {
  color: #686c64;
}

.admin-dialog .primary {
  border-color: transparent;
  background: #93a493;
  color: #202622;
}

.admin-dialog .primary:hover {
  background: #879b89;
  box-shadow: 0 8px 18px rgba(88, 101, 84, 0.16);
  transform: translateY(-1px);
}

.admin-dialog .ghost {
  border-color: #d7d5d2;
  background: rgba(255, 255, 255, 0.56);
  color: #4e544e;
}

.admin-dialog .ghost:hover {
  border-color: #bfc8ba;
  background: rgba(255, 255, 255, 0.78);
  color: #344039;
  transform: translateY(-1px);
}

.admin-dialog .danger {
  color: #8f3030;
  border-color: #d9b6b0;
  background: rgba(180, 72, 64, 0.08);
}

.admin-dialog .danger:hover {
  border-color: #c9958e;
  background: rgba(180, 72, 64, 0.14);
  color: #762525;
  transform: translateY(-1px);
}

.admin-modal {
  background: rgba(70, 75, 68, 0.24);
  backdrop-filter: blur(3px);
}

.admin-modal button,
.admin-dialog button {
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.admin-modal .modal-box {
  border-color: #d6d1c8;
  background: linear-gradient(135deg, #f8f4ed 0%, #eef2ea 100%);
  color: #363c38;
  box-shadow: 0 22px 58px rgba(73, 78, 68, 0.18);
}

.admin-modal.profile-modal-compact .modal-box {
  width: min(720px, 100%);
}

.admin-modal .modal-head {
  border-bottom: 1px dashed #c9c6bd;
  background: rgba(241, 239, 231, 0.96);
}

.admin-modal .modal-head h2 {
  color: #202622;
}

.admin-modal .admin-card,
.admin-modal .section-card {
  border-color: #d8d2c8;
  background: rgba(250, 247, 240, 0.72);
  box-shadow: none;
}

.admin-modal .admin-card h2,
.admin-modal .section-card h2 {
  color: #202622;
}

.admin-modal.profile-modal-compact .profile-region-card h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(139, 153, 132, 0.34);
  padding-bottom: 8px;
  color: #334039;
  font-size: 17px;
  font-weight: 700;
}

.admin-modal.profile-modal-compact .profile-region-card h2::before {
  content: "“";
  color: rgba(88, 111, 86, 0.62);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  font-weight: 400;
  line-height: 0.7;
  transform: translateY(4px);
}

.admin-modal.profile-modal-compact .profile-region-card h2::after {
  content: "”";
  color: rgba(88, 111, 86, 0.62);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  font-weight: 400;
  line-height: 0.7;
  transform: translateY(9px);
}

.admin-modal input,
.admin-modal textarea,
.admin-modal select {
  border-color: #d2d2d4;
  background: rgba(255, 255, 255, 0.48);
  color: #363c38;
}

.admin-modal .field span,
.admin-modal .muted {
  color: #73736b;
}

.admin-modal .primary {
  border-color: transparent;
  background: #93a493;
  color: #202622;
}

.admin-modal .primary:hover {
  background: #879b89;
  box-shadow: 0 8px 18px rgba(88, 101, 84, 0.16);
  transform: translateY(-1px);
}

.admin-modal .ghost {
  border-color: #d7d5d2;
  background: rgba(255, 255, 255, 0.5);
  color: #4e544e;
}

.admin-modal .ghost:hover {
  border-color: #bfc8ba;
  background: rgba(255, 255, 255, 0.72);
  color: #344039;
  transform: translateY(-1px);
}

.admin-modal .danger {
  color: #8f3030;
  border-color: #d9b6b0;
  background: rgba(180, 72, 64, 0.08);
}

.admin-modal .danger:hover {
  border-color: #c9958e;
  background: rgba(180, 72, 64, 0.14);
  color: #762525;
  transform: translateY(-1px);
}

.search {
  max-width: 360px;
}

.error {
  color: var(--danger);
  min-height: 20px;
}

.admin-shell {
  min-height: 100vh;
  padding: 30px 31px 42px;
  color: #363c38;
  background: linear-gradient(90deg, #f4f0e8 0%, #eef0e9 58%, #e4eadf 100%);
}

.admin-shell button,
.admin-shell input,
.admin-shell textarea,
.admin-shell select {
  color: #363c38;
}

.admin-shell button {
  text-align: center;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.admin-close {
  position: fixed;
  top: 16px;
  right: 31px;
  width: 41px;
  height: 41px;
  border: 0;
  border-radius: 6px;
  background: #dedbd2;
  color: #303531;
  font-size: 28px;
  line-height: 1;
}

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

.admin-kicker {
  color: #73736b;
  font-size: 13px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.admin-title-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 18px 0 22px;
}

.admin-title-row h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1;
}

.admin-title-row span {
  color: #8a8d84;
  font-weight: 700;
}

.admin-top-tabs {
  display: flex;
  gap: 18px;
  margin: 22px 0 18px;
}

.admin-top-tabs button {
  border: 0;
  border-radius: 7px;
  background: transparent;
  padding: 12px 13px;
  color: #64685f;
  font-weight: 700;
}

.admin-top-tabs button.active {
  border: 1px solid #aeb6aa;
  background: #dce1d7;
  color: #353b36;
}

.admin-top-tabs button:hover {
  border-color: rgba(180, 192, 173, 0.72);
  background: rgba(235, 240, 229, 0.42);
  color: #2f3d34;
  box-shadow: none;
  transform: none;
}

.admin-shell .admin-layout {
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

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

.mobile-admin-nested-subnav {
  display: none;
}

.admin-shell .side {
  align-self: start;
  width: 100%;
  min-width: 0;
  top: 22px;
  height: auto;
  max-height: calc(100vh - 174px);
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  border: 1px solid #c6bdae;
  border-radius: 7px;
  background: rgba(250, 247, 240, 0.78);
  padding: 16px 12px 18px;
}

.admin-shell .side::-webkit-scrollbar {
  display: none;
}

.admin-shell .side button {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  margin-bottom: 10px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #343b36;
  background: transparent;
  font-weight: 700;
  text-align: left;
  padding: 10px 30px 10px 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  user-select: none;
  -webkit-user-select: none;
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.admin-shell .side button::selection,
.admin-shell .side button *::selection {
  background: transparent;
}

.admin-shell .side button:hover {
  border-color: rgba(213, 206, 195, 0.72);
  background: rgba(253, 251, 245, 0.48);
  box-shadow: 0 5px 14px rgba(92, 87, 76, 0.07);
}

.admin-shell .side button span {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border-radius: 4px;
  color: #596259;
  background: rgba(235, 233, 226, 0.86);
  font-size: 13px;
}

.admin-shell .side button .admin-side-icon,
.admin-shell .side button .admin-side-label {
  position: static;
  transform: none;
  display: inline-block;
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  color: inherit;
  font-size: inherit;
  user-select: none;
  -webkit-user-select: none;
}

.admin-shell .side button .admin-side-label::selection,
.admin-shell .side button .admin-side-label *::selection {
  background: transparent;
}

.admin-shell .side button .admin-side-icon {
  display: none;
}

.admin-shell .side button .admin-toggle-mark {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
}

.admin-shell .side button .admin-side-icon svg {
  display: block;
  width: 78%;
  height: 78%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.15;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-shell .side button.active {
  color: #26302a;
}

.admin-shell .side button.side-child {
  width: calc(100% - 16px);
  min-height: 36px;
  margin: 2px 0 14px 16px;
  padding: 8px 10px 8px 34px;
  border: 1px solid transparent;
  background: transparent;
  color: #414a43;
  font-weight: 700;
  font-size: 14px;
}

.admin-shell .side button.side-child::before {
  content: "▶";
  position: absolute;
  left: 14px;
  top: 50%;
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #596259;
  font-size: 11px;
  line-height: 1;
  transform: translateY(-50%);
}

.admin-shell .side button.side-child span {
  display: none;
}

.admin-shell .side button.side-child.has-toggle {
  padding-right: 34px;
}

.admin-shell .side button.side-child.has-toggle span {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border-radius: 4px;
  background: rgba(235, 233, 226, 0.86);
  color: #596259;
  font-size: 13px;
}

.admin-shell .side button.side-child:hover {
  border-color: rgba(213, 206, 195, 0.48);
  background: rgba(253, 251, 245, 0.28);
  color: #2f3a33;
  box-shadow: 0 4px 10px rgba(92, 87, 76, 0.045);
}

.admin-shell .side button.side-child.active {
  border: 1px solid #a8b6a5;
  border-left: 4px solid #879b84;
  background: rgba(229, 237, 225, 0.9);
  color: #27342d;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(115, 135, 109, 0.08);
}

.admin-shell .side button.active .admin-side-label,
.admin-shell .side button.side-child.active::first-letter,
.admin-shell .side button.side-child.active strong,
.admin-shell .side button.side-child.active em {
  background-color: transparent;
  background-image: none;
}

.admin-shell .side-subgroup {
  margin: 0;
}

.admin-shell .side-note {
  width: calc(100% - 44px);
  min-height: 30px;
  margin: 0 0 7px 44px;
  padding: 6px 8px;
  border: 0;
  background: transparent;
  color: #8a8b84;
  font-size: 13px;
  font-weight: 500;
}

.admin-shell .side button.side-grandchild {
  width: calc(100% - 28px);
  min-height: 34px;
  height: auto;
  margin: 0 0 8px 28px;
  padding: 7px 30px 7px 26px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #8b9088;
  font-size: 13px;
  font-weight: 500;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  line-height: 1.45;
}

.admin-shell .side button.side-grandchild:hover {
  border-color: rgba(213, 208, 199, 0.42);
  background: rgba(253, 251, 245, 0.22);
  color: #697167;
  box-shadow: 0 3px 8px rgba(92, 87, 76, 0.035);
}

.admin-shell .side-grandchild i {
  position: absolute;
  top: 50%;
  left: 10px;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c5cbc1;
}

.admin-shell .side-grandchild span {
  top: 50%;
  right: 9px;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: rgba(235, 233, 226, 0.86);
  color: #596259;
  font-size: 12px;
}

.admin-shell .side button.side-grandchild.active {
  border: 1px solid #d2d8cf;
  border-left: 2px solid #b7c1b4;
  background: rgba(248, 249, 244, 0.72);
  color: #5f6a61;
  box-shadow: none;
  font-weight: 600;
}

.admin-shell .side button.side-grandchild.active i {
  background: #b9c2b5;
}

.admin-shell .side button.side-root.active {
  border: 1px solid #8fa18d;
  border-left: 7px solid #6f8678;
  background: #cbd7c7;
  color: #243028;
  box-shadow: inset 0 0 0 1px rgba(104, 125, 108, 0.16), 0 10px 20px rgba(98, 112, 92, 0.12);
  font-weight: 800;
}

.admin-shell .side button.side-root.active span {
  background: rgba(234, 237, 228, 0.96);
  color: #3b4a40;
}

.admin-shell .side button.side-child.active span {
  background: rgba(235, 239, 231, 0.96);
  color: #4d5d50;
}

.admin-shell .side-group {
  margin: 0;
}

.admin-single {
  width: min(1232px, 100%);
}

.admin-shell .admin-card,
.admin-shell .section-card {
  border-color: #d8d2c8;
  background: rgba(250, 247, 240, 0.78);
  box-shadow: none;
}

.admin-shell .admin-card h2,
.admin-shell .section-card h2 {
  color: #202622;
}

.admin-shell input,
.admin-shell textarea,
.admin-shell select {
  border-color: #d2d2d4;
  background: rgba(255, 255, 255, 0.42);
}

.admin-shell .primary {
  border-color: transparent;
  background: #93a493;
  color: #202622;
}

.admin-shell .primary:hover {
  background: #879b89;
  box-shadow: 0 8px 18px rgba(88, 101, 84, 0.14);
  transform: translateY(-1px);
}

.admin-shell .ghost {
  border-color: #d7d5d2;
  background: rgba(255, 255, 255, 0.42);
  color: #4e544e;
}

.admin-shell .ghost:hover {
  border-color: #bfc8ba;
  background: rgba(255, 255, 255, 0.68);
  color: #344039;
  transform: translateY(-1px);
}

.admin-shell .danger {
  color: #8f3030;
  border-color: #d9b6b0;
  background: rgba(180, 72, 64, 0.08);
}

.admin-shell .danger:hover {
  border-color: #c9958e;
  background: rgba(180, 72, 64, 0.14);
  color: #762525;
  transform: translateY(-1px);
}

.admin-shell .carousel-admin-item {
  position: relative;
  padding-bottom: 68px;
}

.admin-shell .carousel-delete {
  position: absolute;
  right: 20px;
  bottom: 18px;
}

.profile-region-card {
  margin-top: 14px;
}

.artist-list-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 14px;
}

.artist-list-head h2 {
  margin: 0;
}

.artist-list-head .primary {
  min-width: 80px;
  min-height: 42px;
  border-radius: 5px;
  background: #97a394;
  color: #1f2821;
  font-weight: 800;
}

.artist-table-wrap {
  border: 1px solid #c9c1b2;
  border-radius: 4px 4px 0 0;
  background: #f3eee6;
  scrollbar-color: #9b9b9b #202020;
  scrollbar-width: auto;
}

.artist-table-wrap::-webkit-scrollbar {
  height: 17px;
}

.artist-table-wrap::-webkit-scrollbar-track {
  background: #202020;
}

.artist-table-wrap::-webkit-scrollbar-thumb {
  border: 4px solid #202020;
  border-radius: 999px;
  background: #9b9b9b;
}

.artist-profile-table {
  inline-size: 100%;
  width: 100%;
  min-width: 1140px;
  table-layout: fixed;
  background: #f4f0e8;
}

.artist-profile-table .col-gender,
.artist-profile-table .col-orientation,
.artist-profile-table .col-attribute {
  width: 50px;
}

.artist-profile-table .col-seq {
  width: 50px;
}

.artist-profile-table .col-work-cover {
  width: 180px;
}

.artist-profile-table .col-level {
  width: 100px;
}

.artist-profile-table .col-job {
  width: 80px;
}

.artist-profile-table .col-name,
.artist-profile-table .col-agent,
.artist-profile-table .col-face {
  width: 70px;
}

.artist-profile-table .col-info,
.artist-profile-table .col-action {
  width: 90px;
}

.artist-profile-table .col-branch {
  width: 80px;
}

.artist-profile-table .col-upload-date {
  width: 100px;
}

.artist-profile-table .col-default,
.artist-profile-table .col-archive {
  width: 100px;
}

.nonartist-profile-table .col-job {
  width: 100px;
}

.nonartist-profile-table .col-level {
  width: 60px;
}

.nonartist-profile-table .artist-table-input {
  padding-right: 4px;
  padding-left: 4px;
  box-sizing: border-box;
  text-overflow: ellipsis;
}

.artist-only-profile-table .col-agent {
  width: 80px;
}

.artist-only-profile-table .col-branch {
  width: 100px;
}

.artist-only-profile-table .col-level {
  width: 60px;
}

.artist-only-profile-table .artist-table-input {
  padding-right: 4px;
  padding-left: 4px;
  box-sizing: border-box;
  text-overflow: ellipsis;
}

.artist-profile-table td:nth-child(12) select,
.artist-profile-table td:nth-child(13) button,
.artist-profile-table td:nth-child(14) button {
  min-height: 26px;
  padding-top: 3px;
  padding-bottom: 3px;
  font-size: 12px;
}

.profile-list-control {
  min-height: 26px;
  padding-top: 3px;
  padding-bottom: 3px;
  font-size: 12px;
}

.artist-table-input {
  width: 100%;
  min-width: 0;
  min-height: 26px;
  padding: 3px 6px;
  border: 1px solid #c9c1b2;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.5);
  color: #495047;
  font-size: 12px;
  text-align: center;
}

.artist-profile-table th,
.artist-profile-table td {
  border: 1px solid #c9c1b2;
  padding: 8px 10px;
  text-align: center;
  vertical-align: middle;
  color: #495047;
  font-size: 13px;
  word-break: keep-all;
}

.artist-profile-table th,
.artist-profile-table td,
.artist-profile-table td button,
.artist-profile-table td select {
  overflow: hidden;
}

.artist-cell-text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  line-height: 18px;
  max-height: 36px;
  overflow: hidden;
  text-overflow: ellipsis;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.artist-profile-table td img {
  max-width: 100%;
  max-height: 36px;
  object-fit: cover;
}

.artist-profile-table th {
  background: #d8d5ca;
  color: #245a36;
  font-weight: 800;
}

.artist-profile-table td {
  height: 38px;
  background: rgba(250, 247, 240, 0.72);
}

.artist-profile-table .empty-cell {
  height: 52px;
  color: #818178;
  background: rgba(250, 247, 240, 0.72);
}

.artist-profile-table select {
  min-width: 88px;
}

.artist-profile-table .col-archive,
.artist-profile-table td:has(> select[data-bind$=".archived"]) {
  overflow: hidden;
}

.artist-profile-table td > select[data-bind$=".archived"],
.artist-profile-table .archive-select {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  padding-right: 20px;
  padding-left: 8px;
}

.work-admin-table .col-work-cover {
  width: 80px;
}

.work-admin-table .col-work-theme {
  width: 100px;
}

.work-admin-table .col-work-name {
  width: 100px;
}

.work-admin-table .col-branch,
.work-admin-table .col-work-type {
  width: 60px;
}

.work-admin-table .col-work-rating {
  width: 80px;
}

.work-admin-table .work-rating-link {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding-right: 4px;
  padding-left: 4px;
  box-sizing: border-box;
  white-space: nowrap;
}

.rank-admin-table {
  min-width: 520px;
}

.rank-admin-table .col-name {
  width: 90px;
}

.rank-admin-table .col-job,
.rank-admin-table .col-branch {
  width: 100px;
}

.rank-admin-table .col-level {
  width: 60px;
}

.rank-admin-table .col-default {
  width: 90px;
}

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

.profile-term-row {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(260px, 1.2fr) auto;
  gap: 12px;
  align-items: end;
  padding: 12px;
  border: 1px dashed #d6d0c7;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.24);
}

.profile-term-row textarea {
  min-height: 82px;
}

.profile-related-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0;
  color: #4a514b;
}

.profile-related-row img {
  width: 68px;
  height: 42px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #d8d2c8;
}

.level-heading-card {
  border: 0;
  border-bottom: 1px solid #cfc8bd;
  border-radius: 0;
  background: transparent;
  padding: 0 0 14px;
}

.admin-title-card {
  border: 1px solid #d8d2c8;
  border-bottom: 1px solid #cfc8bd;
  border-radius: 7px;
  background: rgba(250, 247, 240, 0.68);
  padding: 18px;
}

.admin-title-card h2 {
  margin: 0 0 18px;
  font-size: 24px;
  color: #1f2722;
}

.admin-title-edit {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(220px, 1fr);
  gap: 20px;
  align-items: end;
}

.admin-title-edit .field {
  margin-bottom: 0;
}

.admin-title-fields {
  display: grid;
  gap: 12px;
}

.admin-title-edit .action-row {
  justify-content: flex-end;
  margin-top: 0;
}

.admin-shell .admin-title-edit .action-row {
  justify-content: flex-end;
}

.admin-title-edit .action-row button {
  min-width: 64px;
}

.activity-image-row {
  margin-bottom: 12px;
}

.activity-image-upload {
  display: grid;
  gap: 10px;
}

.activity-image-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.activity-content-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 12px;
}

.activity-image-control .field,
.activity-content-row .field {
  margin-bottom: 0;
}

.level-head-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.level-head-row > div:first-child {
  width: min(420px, 100%);
}

.level-region-card {
  border-color: #2f3430;
  background: rgba(250, 247, 240, 0.46);
}

.intro-region-card {
  border-color: #2f3430;
  background: rgba(250, 247, 240, 0.42);
}

.architecture-region-card {
  border-color: #2f3430;
  background: rgba(250, 247, 240, 0.42);
}

.architecture-editor {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(320px, 1.15fr);
  gap: 12px;
  margin-bottom: 14px;
}

.mind-toolbar {
  display: flex;
  gap: 6px;
  margin: -2px 0 8px;
  flex-wrap: wrap;
  align-items: center;
}

.mind-toolbar button {
  min-height: 30px;
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 700;
}

.mind-toolbar-spacer {
  flex: 1 1 auto;
  min-width: 18px;
}

.mind-toolbar .mind-delete-btn {
  margin-left: auto;
}

.architecture-editor textarea,
.architecture-preview {
  height: 260px;
  min-height: 260px;
  border: 1px solid #d6d6d8;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.28);
  resize: vertical;
}

.architecture-preview {
  padding: 30px 22px;
  overflow: auto;
  resize: none;
}

.front-mind-preview {
  margin-top: 14px;
  padding: 30px 26px;
  overflow-x: auto;
  overflow-y: visible;
  border: 1px solid rgba(83, 216, 199, 0.24);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(12, 18, 26, 0.62), rgba(14, 25, 30, 0.46));
}

.mind-map {
  min-height: 200px;
  min-width: 520px;
  display: grid;
  grid-template-columns: max-content minmax(220px, 1fr);
  align-items: start;
  justify-content: start;
  gap: 34px;
  position: relative;
}

.mind-map::before {
  content: "";
  position: absolute;
  left: calc(100px + 2vw);
  top: 20px;
  width: 34px;
  border-top: 1px solid #d6d6d8;
}

.mind-root,
.mind-branch {
  width: fit-content;
  max-width: 100%;
  padding: 10px 16px;
  border: 1px solid rgba(226, 227, 228, 0.9);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 20px rgba(71, 71, 65, 0.08);
  color: #555d58;
  font-weight: 700;
  line-height: 1.55;
}

.mind-root {
  justify-self: start;
  border-color: rgba(39, 214, 198, 0.78);
  background: rgba(215, 252, 247, 0.94);
  color: #123f3c;
  font-size: 18px;
  font-weight: 800;
}

.mind-branch {
  border-color: rgba(255, 207, 90, 0.76);
  background: rgba(255, 246, 220, 0.92);
  color: #67501b;
  font-size: 15px;
  font-weight: 750;
}

.mind-branches {
  display: grid;
  gap: 18px;
  position: relative;
  padding-left: 20px;
}

.mind-branches::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  border-left: 1px solid #d6d6d8;
}

.mind-branch-group {
  position: relative;
}

.mind-branch-group::before {
  content: "";
  position: absolute;
  left: -20px;
  top: 20px;
  width: 20px;
  border-top: 1px solid #d6d6d8;
}

.mind-children {
  display: grid;
  gap: 8px;
  margin: 8px 0 0 28px;
  position: relative;
}

.mind-child-group {
  position: relative;
  display: grid;
  gap: 7px;
  justify-items: start;
}

.mind-children::before {
  content: "";
  position: absolute;
  left: -14px;
  top: -5px;
  bottom: 12px;
  border-left: 1px solid #d6d6d8;
}

.mind-child {
  position: relative;
  width: fit-content;
  max-width: 100%;
  padding: 8px 13px;
  border: 1px solid rgba(122, 161, 211, 0.78);
  border-radius: 6px;
  background: rgba(232, 241, 255, 0.82);
  color: #394e70;
  font-size: 13px;
  line-height: 1.55;
  font-weight: 650;
}

.mind-child::before {
  content: "";
  position: absolute;
  left: -14px;
  top: 50%;
  width: 14px;
  border-top: 1px solid #d6d6d8;
}

.mind-notes {
  display: grid;
  gap: 6px;
  margin: 0 0 0 26px;
  position: relative;
}

.mind-notes::before {
  content: "";
  position: absolute;
  left: -12px;
  top: -4px;
  bottom: 10px;
  border-left: 1px dashed #d6d6d8;
}

.mind-note {
  position: relative;
  width: fit-content;
  max-width: 100%;
  padding: 6px 11px;
  border: 1px dashed rgba(151, 190, 158, 0.88);
  border-radius: 6px;
  background: rgba(234, 247, 233, 0.82);
  color: #536c55;
  font-size: 12px;
  line-height: 1.55;
}

.mind-note::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 50%;
  width: 12px;
  border-top: 1px dashed #d6d6d8;
}

.intro-region-card textarea {
  min-height: 150px;
}

.review-admin-textarea {
  min-height: 320px;
}

.work-chapter-card {
  border-color: #cfc8bd;
  background: rgba(250, 247, 240, 0.62);
}

.work-modal-form {
  display: grid;
  gap: 14px;
}

.work-modal-form .admin-work-cover-preview {
  display: block;
  width: min(520px, 100%);
  height: auto;
  margin: 0 0 4px;
  border-color: #d6d1c8;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.38);
}

.work-modal-form .work-chapter-card {
  border-style: dashed;
  background: rgba(250, 247, 240, 0.56);
}

.work-modal-actions {
  justify-content: center;
}

.work-modal-actions .add-work-chapter-btn {
  width: auto;
  margin: 0 0 18px;
}

.work-modal-total-btn {
  border-color: #7f9278;
  background: #dce7d4;
  color: #334634;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.36);
}

.work-modal-total-btn:hover {
  background: #cddfc5;
}

.popularity-link {
  min-width: 72px;
  font-variant-numeric: tabular-nums;
  color: #435f42;
}

.popularity-link:hover {
  border-color: #879d7e;
  background: rgba(220, 231, 212, 0.78);
  color: #263c29;
}

.popularity-editor {
  display: grid;
  gap: 14px;
}

.popularity-card {
  border-style: dashed;
  background: rgba(250, 247, 240, 0.58);
}

.popularity-card h2,
.popularity-total-card h2 {
  color: #52634e;
}

.popularity-rows {
  display: grid;
  gap: 10px;
}

.popularity-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.4fr) minmax(160px, 1fr) minmax(160px, 1fr);
  gap: 10px;
  align-items: end;
  padding: 10px;
  border: 1px dashed #d8d2c8;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.24);
}

.popularity-row strong {
  align-self: center;
  color: #334634;
  font-size: 13px;
}

.artist-popularity-row {
  grid-template-columns: minmax(90px, 0.34fr) minmax(0, 1fr) 22px minmax(0, 1fr) 22px minmax(0, 1fr) 22px minmax(0, 1fr);
}

.popularity-manager-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.45fr) minmax(220px, 1fr);
  gap: 10px;
  align-items: end;
  padding: 10px;
  border: 1px dashed #d8d2c8;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.22);
}

.popularity-special-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
  margin-top: 10px;
  padding: 10px;
  border: 1px dashed #cfd8c7;
  border-radius: 6px;
  background: rgba(236, 242, 230, 0.36);
}

.popularity-like-row {
  grid-template-columns: minmax(0, 1fr) 22px minmax(0, 1fr) 22px minmax(0, 1fr) 22px minmax(0, 1fr);
}

.popularity-review-row {
  grid-template-columns: minmax(0, 1fr) 22px minmax(0, 1fr) 22px minmax(0, 1fr);
}

.popularity-base-row {
  grid-template-columns: minmax(0, 1fr) 22px minmax(0, 1fr) 22px minmax(0, 1fr);
}

.work-rating-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 14px;
}

.popularity-editor input[readonly],
.popularity-editor textarea[readonly] {
  border-color: #c4c2ba;
  background: #e2e0d8;
  color: #6a6f68;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
  cursor: default;
}

.popularity-line {
  display: grid;
  grid-template-columns: minmax(160px, 0.45fr) minmax(160px, 1fr);
  gap: 10px;
  align-items: end;
  padding: 10px;
  border: 1px dashed #d8d2c8;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.24);
}

.position-popularity-row {
  grid-template-columns: minmax(110px, 0.34fr) minmax(0, 1fr) 22px minmax(0, 1fr) 22px minmax(0, 1fr) 22px minmax(0, 1fr) 22px minmax(0, 1fr);
}

.staff-popularity-row {
  grid-template-columns: minmax(110px, 0.38fr) minmax(0, 1fr) 22px minmax(0, 1fr) 22px minmax(0, 1fr);
}

.position-popularity-row strong {
  align-self: center;
  color: #52634e;
  font-size: 13px;
  font-weight: 700;
}

.staff-popularity-row strong {
  align-self: center;
  color: #52634e;
  font-size: 13px;
  font-weight: 700;
}

.popularity-total-card {
  border-color: #b9c5b0;
  background: rgba(220, 231, 212, 0.46);
}

.popularity-result-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22px minmax(0, 1fr) 22px minmax(0, 1fr) 22px minmax(0, 1fr) 22px minmax(0, 1fr) 22px minmax(0, 1fr);
  gap: 10px;
  align-items: end;
}

.popularity-operator {
  align-self: center;
  justify-self: center;
  padding-top: 18px;
  color: #52634e;
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
}

.popularity-total-card input[readonly] {
  font-size: 15px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.profile-popularity-total {
  grid-template-columns: minmax(0, 1fr);
}

.profile-popularity-total-card {
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr);
  gap: 18px;
  align-items: end;
}

.profile-popularity-total-card h2 {
  margin-bottom: 0;
  padding-bottom: 8px;
}

.profile-popularity-total-field {
  margin-bottom: 0;
}

.profile-popularity-total-field input {
  text-align: right;
}

.profile-popularity-rows {
  display: grid;
  gap: 8px;
}

.profile-popularity-row {
  display: grid;
  grid-template-columns: 80px minmax(140px, 1fr) minmax(160px, 1.1fr) 90px;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px dashed #d8d2c8;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.24);
  color: #52634e;
  font-size: 13px;
}

.profile-popularity-row b {
  color: #304933;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.profile-manual-popularity-row {
  display: grid;
  grid-template-columns: minmax(110px, 0.75fr) minmax(180px, 1.3fr) minmax(120px, 0.8fr) minmax(120px, 0.8fr) minmax(88px, 0.5fr);
  gap: 10px;
  align-items: end;
  padding: 10px;
  border: 1px dashed #d8d2c8;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.24);
}

.profile-manual-popularity-row .field {
  margin-bottom: 0;
}

.profile-manual-popularity-row .danger {
  width: 100%;
  min-height: 40px;
}

.profile-manual-popularity-actions {
  justify-content: center;
}

.role-editor {
  display: grid;
  grid-template-columns: minmax(180px, 0.42fr) minmax(260px, 1fr);
  gap: 12px;
  align-items: start;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid #d8d2c8;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.22);
}

.role-editor textarea {
  min-height: 90px;
}

.role-delete-btn {
  grid-column: 2;
  justify-self: end;
  min-height: 30px;
  padding: 4px 10px;
  font-size: 12px;
}

.drama-content-card {
  margin-top: 18px;
  border-color: var(--line);
  background: rgba(17, 24, 35, 0.72);
}

.drama-actors-card {
  margin: 16px 0;
}

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

.drama-actor-row {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 10px;
  border: 1px dashed #d8d2c8;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.22);
}

.drama-actor-avatar {
  width: 80px;
  height: 80px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid #c9c1b2;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.4);
  color: #9a9388;
  font-size: 12px;
}

.drama-actor-avatar img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  display: block;
}

.drama-actor-fields {
  min-width: 0;
}

.drama-actor-delete {
  align-self: start;
  padding: 7px 10px;
}

.drama-actors-card .drama-add-person-btn {
  margin-top: 12px;
}

.admin-shell .drama-content-card {
  border-color: #ded8cf;
  background: rgba(247, 244, 237, 0.48);
}

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

.drama-role-editor {
  margin-bottom: 0;
}

.drama-admin-table {
  min-width: 1040px;
}

.drama-admin-table .col-drama-cover,
.drama-admin-table .col-drama-date,
.drama-admin-table .col-drama-people,
.drama-admin-table .col-drama-info {
  width: 100px;
}

.drama-admin-table .col-drama-cover {
  width: 60px;
}

.drama-admin-table .col-drama-title {
  width: 160px;
}

.activity-admin-table {
  min-width: 1120px;
}

.activity-admin-table .col-drama-cover {
  width: 92px;
}

.activity-admin-table .col-activity-theme,
.activity-admin-table .col-activity-range {
  width: 150px;
}

.drama-list-cover {
  width: 64px;
  height: 36px;
}

.activity-list-cover {
  width: 84px;
  height: 48px;
  object-fit: cover;
  display: block;
  margin: 0 auto;
}

.add-region-btn {
  width: 100%;
  min-height: 48px;
  border: 1px dashed #8f9a8b;
  border-radius: 7px;
  background: rgba(244, 242, 235, 0.42);
  color: #46524a;
  font-weight: 800;
}

.add-region-btn:hover {
  background: rgba(226, 232, 221, 0.58);
}

.add-work-chapter-btn {
  margin: 16px 0 30px;
  border-style: dashed;
  background: rgba(226, 232, 221, 0.46);
  color: #3f5148;
}

.add-content-btn {
  border: 1px dashed #8f9a8b;
  background: rgba(244, 242, 235, 0.42);
  color: #46524a;
  font-weight: 800;
  min-width: 138px;
}

.add-content-btn:hover {
  background: rgba(226, 232, 221, 0.58);
}

.drama-add-person-btn {
  border-color: #7f9278;
  background: #dce7d4;
  color: #334634;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.36);
}

.drama-add-person-btn:hover {
  background: #cddfc5;
}

.drama-modal-actions {
  justify-content: center;
}

.upload-action,
button[data-upload-work],
button[data-upload-profile],
button[data-upload-drama] {
  width: 100%;
  min-height: 54px;
  margin-top: 20px;
  border: 1px dashed #8a967f;
  border-radius: 8px;
  background: rgba(226, 232, 221, 0.5);
  color: #3f4d40;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0;
  box-shadow: none;
}

.upload-action:hover,
button[data-upload-work]:hover,
button[data-upload-profile]:hover,
button[data-upload-drama]:hover {
  background: rgba(216, 225, 209, 0.68);
}

.admin-shell .upload-action,
.admin-shell button[data-upload-work],
.admin-shell button[data-upload-profile],
.admin-shell button[data-upload-drama] {
  border: 1px dashed #8a967f;
  background: rgba(226, 232, 221, 0.5);
  color: #3f4d40;
  box-shadow: none;
}

.admin-shell .upload-action:hover,
.admin-shell button[data-upload-work]:hover,
.admin-shell button[data-upload-profile]:hover,
.admin-shell button[data-upload-drama]:hover {
  background: rgba(216, 225, 209, 0.68);
}

.add-view-btn {
  width: 100%;
  min-height: 42px;
  margin: 2px 0 14px;
  border: 1px dashed #8f9a8b;
  border-radius: 7px;
  background: rgba(244, 242, 235, 0.42);
  color: #46524a;
  font-weight: 800;
}

.add-view-btn:hover {
  background: rgba(226, 232, 221, 0.58);
}

.mind-extra-view {
  margin-bottom: 14px;
  padding: 12px;
  border: 1px dashed #c9c3b8;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.14);
}

.mind-extra-view .action-row {
  justify-content: flex-end;
  margin-top: 0;
}

.level-region-card h2 {
  margin-bottom: 16px;
}

.level-table-wrap {
  overflow-x: auto;
  border: 1px solid #dedbd2;
  border-radius: 7px;
}

.level-edit-table {
  min-width: 860px;
  table-layout: fixed;
  background: rgba(255, 255, 255, 0.2);
}

.level-edit-table th,
.level-edit-table td {
  border-bottom: 1px solid #dedbd2;
  padding: 8px;
}

.level-edit-table thead th {
  background: #d8d6c9;
  color: #255d4f;
}

.level-edit-table input {
  min-height: 40px;
  background: rgba(255, 255, 255, 0.5);
  font-weight: 500;
}

.move-col {
  width: 76px;
}

.op-col {
  width: 84px;
}

.level-edit-table th:not(.move-col):not(.op-col),
.level-edit-table td:not(:first-child):not(:last-child) {
  width: auto;
}

.drag-handle {
  min-width: 48px;
  min-height: 24px;
  border: 1px solid #d3d4d6;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.35);
  color: #2b7268;
  letter-spacing: 2px;
}

.level-head-cell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
  align-items: center;
  margin-top: 6px;
}

.mini-delete {
  width: 36px;
  min-height: 44px;
  padding: 4px;
  white-space: normal;
}

.admin-shell .action-row,
.admin-shell .dialog-actions {
  justify-content: center;
}

.admin-login-wrap {
  min-height: calc(100vh - 180px);
  display: grid;
  place-items: center;
}

.admin-shell .login-panel {
  display: grid;
  align-content: center;
  border-color: #d8d2c8;
  background: rgba(250, 247, 240, 0.86);
  box-shadow: none;
  min-height: 360px;
  padding: 34px 30px;
}

.admin-shell .login-panel h1 {
  margin-bottom: 18px;
}

.admin-shell .login-panel .field {
  gap: 8px;
  margin-bottom: 18px;
}

.admin-shell .login-panel input {
  min-height: 41px;
}

.admin-shell .login-panel .primary {
  display: block;
  min-width: 112px;
  margin: 26px auto 0;
}

.admin-shell .login-panel .error:empty {
  display: none;
}

.admin-shell .login-panel .error {
  margin: 10px 0 0;
  min-height: 0;
  text-align: center;
}

@media (max-width: 900px) {
  .nav {
    height: 72px;
    min-height: 72px;
    justify-content: center;
    padding: 12px 16px;
    align-items: center;
  }

  .brand {
    text-align: center;
  }

  .brand strong {
    font-size: 28px;
  }

  .brand span {
    font-size: 12px;
    text-transform: uppercase;
  }

  .nav-links {
    display: none;
  }

  .nav-full {
    display: none;
  }

  .mobile-bottom-nav {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 30;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    overflow: visible;
    overscroll-behavior-x: contain;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(5, 6, 12, 0.96);
    box-shadow: 0 -10px 28px rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(14px);
    scrollbar-width: none;
  }

  .mobile-bottom-nav::-webkit-scrollbar {
    display: none;
  }

  .mobile-bottom-nav button {
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 2px;
    min-width: 0;
    min-height: 44px;
    padding: 4px 8px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: rgba(196, 202, 216, 0.72);
    font-size: 11px;
    font-weight: 500;
    line-height: 1.1;
    white-space: nowrap;
  }

  .mobile-bottom-nav button.active {
    border-color: transparent;
    background: transparent;
    color: #8f6dff;
    font-weight: 700;
    box-shadow: none;
    transform: none;
  }

  .mobile-bottom-nav button:not(:disabled):hover,
  .mobile-bottom-nav button:not(:disabled):focus-visible {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
    transform: none;
  }

  .mobile-nav-icon {
    display: grid;
    place-items: center;
    width: 16px;
    height: 15px;
    color: currentColor;
    font-size: 14px;
    line-height: 1;
  }

  .mobile-nav-icon svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .mobile-nav-mask {
    background: currentColor;
    mask: var(--icon-url) center / contain no-repeat;
    -webkit-mask: var(--icon-url) center / contain no-repeat;
  }

  .mobile-bottom-nav button[data-nav="首页"] .mobile-nav-icon {
    width: 17px;
    height: 16px;
    font-size: 14px;
  }

  .mobile-nav-label {
    color: currentColor;
    font-size: 10px;
    line-height: 1.15;
  }

  .mobile-directory-panel {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(62px + env(safe-area-inset-bottom));
    z-index: 29;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px 10px;
    padding: 14px 12px 12px;
    border: 1px solid rgba(115, 130, 160, 0.22);
    border-radius: 10px;
    background: rgba(8, 11, 18, 0.96);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(14px);
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.16s ease, transform 0.16s ease;
  }

  .mobile-directory-panel.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .mobile-directory-panel button {
    display: grid;
    justify-items: center;
    gap: 6px;
    min-width: 0;
    border: 0;
    padding: 0;
    background: transparent;
    color: rgba(215, 221, 236, 0.82);
    box-shadow: none;
    font-size: 10px;
    line-height: 1.15;
  }

  .mobile-directory-panel button:not(:disabled):hover,
  .mobile-directory-panel button:not(:disabled):focus-visible {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
    transform: none;
  }

  .mobile-directory-panel button.active {
    color: #9f84ff;
    background: transparent;
    box-shadow: none;
  }

  .mobile-directory-icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    color: currentColor;
    background: rgba(104, 127, 164, 0.78);
  }

  .mobile-directory-panel button.active .mobile-directory-icon {
    background: rgba(143, 109, 255, 0.78);
    color: #fff;
  }

  .mobile-directory-icon svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .shell {
    padding-top: 18px;
    padding-bottom: 88px;
  }

  .shell:has(.home) {
    min-height: auto;
    padding-top: 104px;
    padding-bottom: 22px;
  }

  .footer {
    position: static;
    margin-bottom: 58px;
    padding: 18px 16px 22px;
    background: rgba(8, 11, 16, 0.96);
    backdrop-filter: none;
  }

  .footer strong {
    font-size: 12px;
  }

  .footer span {
    margin-top: 5px;
    font-size: 11px;
    line-height: 1.35;
  }

  .quick-grid,
  .work-grid,
  .admin-layout,
  .detail-profile,
  .detail-dossier-main,
  .detail-dossier-grid {
    grid-template-columns: 1fr;
  }

  .profile-grid {
    --profile-card-scale: 0.92;
    grid-template-columns: minmax(0, min(100%, var(--profile-card-width)));
    justify-content: center;
  }

  .popularity-row,
  .artist-popularity-row,
  .popularity-manager-row,
  .popularity-special-row,
  .popularity-like-row,
  .position-popularity-row,
  .staff-popularity-row,
  .profile-manual-popularity-row,
  .popularity-line {
    grid-template-columns: 1fr;
  }

  .profile-popularity-total-card {
    grid-template-columns: 1fr;
  }

  .popularity-result-grid {
    grid-template-columns: 1fr;
  }

  .popularity-operator {
    padding-top: 0;
  }

  .profile-gallery {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    transform: none;
  }

  .page-head {
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: -6px 0 12px;
  }

  .page-head:has(h1:only-child) {
    display: none;
  }

  .page-head:has(.search) {
    display: flex;
    padding: 0 2px;
  }

  .page-head .search {
    max-width: 100%;
    min-height: 30px;
    border-radius: 999px;
    border-color: rgba(143, 109, 255, 0.42);
    background: rgba(67, 58, 102, 0.68);
    color: rgba(237, 244, 255, 0.92);
    padding: 6px 14px;
    font-size: 11px;
  }

  .page-head .search::placeholder {
    color: rgba(214, 211, 231, 0.58);
  }

  .tabs {
    flex-wrap: nowrap;
    align-items: center;
    gap: 18px;
    overflow-x: auto;
    margin: 0 0 14px;
    padding: 0 2px 5px;
    scrollbar-width: none;
  }

  .tabs::-webkit-scrollbar {
    display: none;
  }

  .tabs button,
  .play-tab-group button,
  .chaos-tab-group button,
  .rank-tab-group button,
  .work-tab-group button,
  .profile-tab-group button,
  .play-subtab-group button,
  .chaos-architecture-tab-group button {
    flex: 0 0 auto;
    min-height: 22px;
    border: 0;
    border-radius: 999px;
    padding: 4px 8px;
    background: transparent;
    color: rgba(202, 203, 222, 0.78);
    box-shadow: none;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.15;
  }

  .tabs button.active,
  .play-tab-group button.active,
  .chaos-tab-group button.active,
  .rank-tab-group button.active,
  .work-tab-group button.active,
  .profile-tab-group button.active,
  .play-subtab-group button.active,
  .chaos-architecture-tab-group button.active {
    border-color: transparent;
    background: rgba(86, 77, 122, 0.72);
    color: #eef0ff;
    box-shadow: none;
    font-weight: 700;
  }

  .tabs button:not(:disabled):hover,
  .tabs button:not(:disabled):focus-visible {
    border-color: transparent;
    background: rgba(86, 77, 122, 0.52);
    box-shadow: none;
    transform: none;
  }

  .chaos-page .section-card {
    padding: 14px 15px;
  }

  .chaos-page .section-card h2,
  .chaos-page .section-card h3 {
    font-size: 16px;
    line-height: 1.35;
  }

  .chaos-page .section-card p:not(.subtitle-line),
  .chaos-page .mind-map,
  .chaos-page .mind-map * {
    font-size: 13px;
    line-height: 1.7;
  }

  .chaos-page .subtitle-line {
    font-size: 11px;
    line-height: 1.5;
  }

  .chaos-page .front-mind-preview {
    padding: 20px 18px;
  }

  .chaos-page .front-mind-preview .mind-map,
  .chaos-page .front-mind-preview .mind-map * {
    font-size: 11px;
    line-height: 1.45;
  }

  .chaos-page .front-mind-preview .mind-root,
  .chaos-page .front-mind-preview .mind-branch,
  .chaos-page .front-mind-preview .mind-child,
  .chaos-page .front-mind-preview .mind-note {
    padding: 7px 10px;
  }

  .chaos-page .chaos-tab-group,
  .chaos-page .chaos-architecture-tab-group {
    width: fit-content;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid rgba(112, 133, 169, 0.18);
    border-radius: 999px;
    background: rgba(12, 18, 31, 0.62);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  }

  .chaos-page .chaos-tab-group {
    gap: 4px;
    padding: 4px;
    margin-bottom: 10px;
  }

  .chaos-page .chaos-architecture-tab-group {
    gap: 6px;
    justify-content: flex-start;
    padding: 5px;
    margin-bottom: 14px;
  }

  .chaos-page .chaos-tab-group button,
  .chaos-page .chaos-architecture-tab-group button {
    min-height: 24px;
    padding: 5px 10px;
    color: rgba(214, 221, 238, 0.74);
    border-radius: 999px;
  }

  .chaos-page .chaos-tab-group button.active,
  .chaos-page .chaos-architecture-tab-group button.active {
    color: #f4f8ff;
    background: linear-gradient(180deg, rgba(90, 105, 152, 0.9), rgba(66, 73, 118, 0.9));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 6px 14px rgba(0, 0, 0, 0.2);
  }

  .play-page .section-card,
  .rank-page .section-card {
    padding: 14px 15px;
  }

  .play-page .section-card h2,
  .play-page .section-card h3,
  .rank-page .section-card h2,
  .rank-page .section-card h3 {
    font-size: 16px;
    line-height: 1.35;
  }

  .play-page .section-card p:not(.subtitle-line),
  .play-page .mind-map,
  .play-page .mind-map *,
  .rank-page .section-card,
  .rank-page table,
  .rank-page th,
  .rank-page td {
    font-size: 13px;
    line-height: 1.65;
  }

  .play-page .subtitle-line,
  .rank-page .subtitle-line {
    font-size: 11px;
    line-height: 1.5;
  }

  .rank-page th,
  .rank-page td {
    padding: 8px 7px;
  }

  .home .hero-copy {
    margin: 36px 0 36px;
  }

  .home .hero-copy h1 {
    white-space: nowrap;
    font-size: clamp(24px, 7vw, 34px);
  }

  .home .hero-copy p {
    font-size: 13px;
    line-height: 1.55;
    margin-top: 12px;
  }

  .slide-btn {
    width: 42px;
    font-size: 24px;
  }

  .home .quick-grid {
    display: none;
  }

  .home-info-ticker {
    width: min(346px, 100%);
    display: grid;
    gap: 8px;
    margin: -16px auto 18px;
  }

  .home-info-item {
    min-height: 38px;
    border: 1px solid rgba(71, 88, 110, 0.58);
    border-radius: 6px;
    padding: 7px 10px;
    background: rgba(12, 18, 27, 0.78);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    color: rgba(237, 244, 255, 0.9);
  }

  .home-info-item.is-latest {
    border-color: rgba(116, 96, 165, 0.86);
    background: linear-gradient(90deg, rgba(59, 49, 92, 0.94), rgba(21, 39, 40, 0.86));
  }

  .home-info-tag {
    height: 22px;
    border-radius: 999px;
    background: rgba(82, 70, 122, 0.8);
    color: #f0edff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
  }

  .home-info-item p {
    color: rgba(226, 231, 242, 0.88);
    font-size: 12px;
    line-height: 1.35;
  }

  .profile-card-stats {
    gap: 10px;
  }

  .detail-dossier::before,
  .detail-dossier::after {
    display: none;
  }

  .detail-dossier-top {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  .detail-dossier-top span {
    display: none;
  }

  .dossier-back {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 35;
    display: flex;
    width: 100%;
    min-height: calc(44px + env(safe-area-inset-top));
    margin: 0;
    padding: calc(8px + env(safe-area-inset-top)) 14px 8px;
    border: 0;
    border-bottom: 1px solid rgba(148, 164, 184, 0.18);
    border-radius: 0;
    background: rgba(7, 11, 16, 0.96);
    color: rgba(239, 251, 248, 0.95);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(14px);
    font-size: 12px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transform: none;
  }

  .dossier-back:hover,
  .dossier-back:focus-visible {
    transform: none;
  }

  .work-thread-page,
  .profile-dossier-page,
  .drama-thread-page,
  .page:has(> .activity-thread),
  .page:has(> .activity-front) {
    padding-top: calc(50px + env(safe-area-inset-top));
  }

  .detail-dossier-heading {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }

  .detail-dossier-heading-meta {
    justify-content: flex-end;
    text-align: right;
  }

  .detail-dossier-top span:last-child {
    text-align: left;
  }

  .detail-dossier-top strong {
    min-width: 0;
    width: 100%;
  }

  .detail-dossier-facts {
    grid-template-columns: 1fr;
  }

  .detail-dossier-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .dossier-term-tags {
    min-width: 0;
  }

  .dossier-term-chip {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .dossier-term-chip::after {
    left: 0;
    width: min(300px, calc(100vw - 128px));
    max-width: min(300px, calc(100vw - 128px));
    box-sizing: border-box;
    white-space: pre-wrap;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .dossier-drama-list {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .dossier-drama-card {
    grid-template-columns: 30px 82px minmax(0, 1fr) minmax(62px, 0.7fr);
    gap: 8px;
  }

  .drama-thread-head,
  .work-thread-head,
  .drama-post {
    grid-template-columns: 1fr;
  }

  .drama-index-board {
    min-height: 0;
    padding: 58px 24px 46px;
  }

  .drama-index-head h1 {
    font-size: 25px;
  }

  .drama-index-divider {
    margin: 30px -24px 42px;
  }

  .drama-index-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .drama-index-ornament {
    min-height: 190px;
    opacity: 0.72;
  }

  .drama-clock {
    width: 150px;
    height: 150px;
  }

  .drama-orbit {
    left: 50%;
    width: 150px;
    height: 150px;
  }

  .drama-index-list {
    gap: 0;
  }

  .drama-index-header,
  .drama-index-item {
    grid-template-columns: 46px 112px minmax(0, 1fr) minmax(88px, 120px);
    gap: 12px;
  }

  .drama-index-item {
    padding: 12px 0;
  }

  .drama-index-moon {
    width: 38px;
    height: 38px;
  }

  .drama-index-title {
    font-size: 13px;
  }

  .drama-thread-head,
  .work-thread-head {
    display: grid;
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 16px;
    padding: 38px 24px 34px;
  }

  .drama-thread-kicker,
  .work-thread-kicker,
  .drama-thread-head h1,
  .work-thread-head h1,
  .drama-thread-meta,
  .work-thread-meta {
    grid-column: 1;
    grid-row: auto;
  }

  .drama-thread-meta,
  .work-thread-meta {
    justify-self: stretch;
    width: 100%;
  }

  .drama-thread-kicker,
  .work-thread-kicker {
    margin-bottom: 12px;
    font-size: 10px;
  }

  .drama-thread-head h1,
  .work-thread-head h1 {
    font-size: 36px;
    top: 0;
    margin: 8px 0;
  }

  .drama-thread-meta span,
  .work-thread-meta span {
    font-size: 11px;
  }

  .work-thread-meta span.work-thread-meta-count {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
  }

  .work-thread-meta-count > span:last-child {
    min-width: 0;
    justify-content: flex-end;
    text-align: right;
  }

  .drama-thread-layout,
  .work-thread-layout {
    padding: 28px 20px 54px;
  }

  .drama-thread-summary h2,
  .work-thread-summary h2 {
    font-size: 10px;
  }

  .drama-thread-summary p,
  .work-thread-summary p {
    margin-bottom: 7px;
  }

  .drama-thread-summary,
  .work-thread-summary,
  .drama-thread-posts {
    margin-left: 0;
    margin-right: 0;
  }

  .work-thread-directory {
    width: min(360px, 100%);
  }

  .drama-thread-posts {
    padding-left: 0;
    padding-right: 0;
  }

  .drama-post-user {
    position: absolute;
    top: -8px;
    left: 0;
    grid-template-columns: 1fr;
    justify-items: center;
    border-right: 0;
    border-bottom: 0;
    padding: 0;
    text-align: left;
  }

  .drama-post-user strong {
    display: none;
    writing-mode: horizontal-tb;
  }

  .drama-post-user span {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  .drama-post-user strong,
  .drama-post-meta {
    font-size: 12px;
  }

  .drama-post-body {
    min-height: 0;
    border-left: 0;
    padding-left: 0;
  }

  .drama-post-meta {
    min-height: 36px;
    align-items: flex-end;
    padding-left: 48px;
  }

  .activity-post .drama-post-user strong {
    display: block;
    max-width: calc(100vw - 130px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    writing-mode: horizontal-tb;
  }

  .activity-post .drama-post-meta {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
    min-height: 0;
    align-items: start;
    padding-left: 48px;
  }

  .activity-post .drama-post-meta span:first-child,
  .activity-post .drama-post-meta em {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .activity-post .drama-post-meta em {
    justify-self: end;
    text-align: right;
  }

  .side {
    position: static;
    height: auto;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .drama-actor-row {
    grid-template-columns: 80px minmax(0, 1fr);
  }

  .drama-actor-delete {
    grid-column: 2;
    justify-self: start;
  }

  .admin-title-edit {
    grid-template-columns: 1fr;
  }

  .architecture-editor {
    grid-template-columns: 1fr;
  }

  .drama-item {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .page h1 {
    font-size: 30px;
  }

  .work-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    justify-items: stretch;
  }

  .work-card {
    width: 100%;
    height: auto;
    min-height: 0;
    border-radius: 6px;
  }

  .work-card img {
    aspect-ratio: 16 / 7.8;
    object-fit: contain;
  }

  .work-card .content {
    gap: 4px;
    padding: 7px 8px 8px;
  }

  .work-card .content strong {
    font-size: 12px;
    line-height: 1.25;
  }

  .work-card-cast {
    font-size: 10px;
    line-height: 1.3;
  }

  .work-card-cast.two-line {
    -webkit-line-clamp: 1;
  }

  .meta-row {
    gap: 6px;
    font-size: 10px;
    line-height: 1.25;
    flex-wrap: wrap;
  }

  .drama-item {
    gap: 8px;
    padding: 11px 12px;
    font-size: 13px;
  }

  .drama-index-board {
    width: calc(100% + 16px);
    margin-left: -8px;
    padding: 46px 18px 40px;
  }

  .drama-index-head h1 {
    font-size: 22px;
  }

  .drama-index-divider {
    margin: 26px -18px 34px;
  }

  .drama-index-ornament {
    min-height: 142px;
  }

  .drama-clock {
    width: 112px;
    height: 112px;
    border-width: 4px;
    box-shadow: inset 0 0 0 10px rgba(255, 255, 255, 0.12), inset 0 0 0 19px rgba(255, 255, 255, 0.64);
  }

  .drama-clock::before {
    inset: 25px;
  }

  .drama-clock::after {
    inset: 42px;
  }

  .drama-clock i {
    height: 46px;
  }

  .drama-clock b {
    height: 34px;
  }

  .drama-orbit {
    display: none;
  }

  .drama-index-header,
  .drama-index-item {
    grid-template-columns: 34px 86px minmax(0, 1fr) minmax(62px, 88px);
    gap: 10px;
  }

  .drama-index-header span:nth-child(-n + 3),
  .drama-index-seq,
  .drama-index-date,
  .drama-index-title {
    transform: translateX(16px);
  }

  .drama-index-header {
    font-size: 13px;
  }

  .drama-index-item {
    min-height: 48px;
    padding: 11px 0;
  }

  .drama-index-moon {
    width: 34px;
    height: 34px;
  }

  .drama-index-page-num {
    grid-column: 2;
    justify-self: end;
    margin-top: -18px;
    font-size: 12px;
  }

  .drama-index-date,
  .drama-index-people {
    max-width: 100%;
  }

  .drama-index-date {
    margin-top: 0;
  }

  .drama-index-people {
    justify-self: end;
    margin-top: 0;
  }

  .drama-thread-head,
  .work-thread-head {
    padding: 32px 18px 30px;
  }

  .drama-thread-head h1,
  .work-thread-head h1 {
    font-size: 32px;
  }

  .work-title-desktop {
    display: none;
  }

  .work-title-mobile {
    display: inline;
  }

  .drama-thread-cover-wrap,
  .work-thread-cover-wrap {
    min-height: 0;
    padding: 0;
  }

  .drama-thread-layout,
  .work-thread-layout {
    padding: 24px 18px 46px;
  }

  .drama-thread-summary h2,
  .work-thread-summary h2 {
    font-size: 10px;
  }

  .drama-thread-summary,
  .work-thread-summary {
    padding: 13px 16px 13px 18px;
  }

  .work-thread-basic-grid {
    gap: 9px;
  }

  .work-thread-basic-grid-desktop {
    display: none;
  }

  .work-thread-basic-grid-mobile {
    display: grid;
    grid-template-columns: 1fr;
  }

  .work-thread-basic-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
  }

  .work-thread-basic-group[data-basic-group="type"] {
    order: 1;
  }

  .work-thread-basic-group[data-basic-group="theme"] {
    order: 2;
  }

  .work-thread-basic-group[data-basic-group="creator"] {
    order: 3;
  }

  .work-thread-basic-group[data-basic-group="planning"] {
    order: 4;
  }

  .work-thread-basic-group[data-basic-group="cast"] {
    order: 5;
  }

  .work-thread-basic-group[data-basic-group="release"] {
    order: 6;
  }

  .drama-thread-summary p,
  .work-thread-summary p {
    margin-bottom: 6px;
  }

  .work-thread-directory {
    grid-template-columns: 1fr;
    gap: 9px;
    margin-bottom: 8px;
    padding: 20px 0 6px;
  }

  .work-directory-item {
    min-height: 42px;
    padding: 11px 13px;
    font-size: 11px;
    letter-spacing: 0.16em;
  }

  .drama-thread-posts {
    gap: 30px;
    padding-top: 24px;
  }

  .profile-grid {
    --profile-card-scale: 0.78;
    grid-template-columns: minmax(0, min(100%, var(--profile-card-width)));
    gap: 16px;
  }
}

@media (max-width: 420px) {
  .work-card {
    width: 100%;
  }

  .work-card img {
    aspect-ratio: 16 / 9;
    object-fit: contain;
  }

  .work-card .content strong {
    font-size: 11px;
  }

  .work-card-cast,
  .meta-row {
    font-size: 9.5px;
  }

  .drama-thread-head h1,
  .work-thread-head h1 {
    font-size: 28px;
  }

  .profile-grid {
    --profile-card-scale: 0.7;
    grid-template-columns: minmax(0, min(100%, var(--profile-card-width)));
    gap: 12px;
  }
}

.activity-index-list .activity-index-header,
.activity-index-list .activity-index-item {
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 3fr) minmax(0, 2fr) minmax(0, 1fr) !important;
  gap: 12px !important;
  padding-left: 22px;
  padding-right: 10px;
}

.activity-index-list .activity-index-header span,
.activity-index-list .activity-index-item span,
.activity-index-list .activity-index-item strong {
  justify-self: start;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transform: none !important;
}

.activity-index-list .drama-index-seq,
.activity-index-list .activity-index-header span:first-child {
  padding-left: 10px;
}

@media (max-width: 760px) {
  .activity-index-list .activity-index-header,
  .activity-index-list .activity-index-item {
    padding-left: 12px !important;
  }

  .activity-index-list .drama-index-seq,
  .activity-index-list .activity-index-header span:first-child {
    padding-left: 0;
  }
}

.modal.activity-front-modal {
  place-items: start center !important;
  overflow-y: auto !important;
  padding: 42px 24px !important;
}

.modal.activity-front-modal .modal-box {
  width: min(980px, 100%) !important;
  max-height: none !important;
  overflow: visible !important;
  padding: 0 !important;
}

.modal.activity-front-modal .activity-thread-back {
  position: sticky !important;
  top: 12px !important;
  z-index: 20 !important;
  display: inline-flex !important;
  margin: 0 0 30px !important;
}

@media (max-width: 760px) {
  .activity-post .drama-post-user {
    top: -8px !important;
    left: 0 !important;
    width: 36px;
  }

  .activity-post .drama-post-user strong {
    display: none !important;
  }

  .activity-post .drama-post-meta {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 2px !important;
    min-height: 36px !important;
    align-items: start !important;
    padding-left: 54px !important;
  }

  .activity-post .drama-post-meta span:first-child,
  .activity-post .drama-post-meta em {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .activity-post .drama-post-meta span:first-child {
    justify-self: start;
  }

  .activity-post .drama-post-meta em {
    justify-self: end;
    text-align: right;
  }
}

@media (max-width: 900px) {
  .section-card p:not(.subtitle-line):not(.muted),
  .drama-thread-summary p:not(.muted),
  .drama-post-content p:not(.muted),
  .work-thread-summary p:not(.muted),
  .work-chapter-content p:not(.muted),
  .work-role-block p:not(.muted),
  .detail-dossier-quote p,
  .dossier-copy-group p,
  .activity-thread-summary p:not(.muted),
  .activity-post .drama-post-content p:not(.muted) {
    text-indent: 2em !important;
  }
}

@media (max-width: 900px) {
  .play-page .front-mind-preview .mind-map,
  .play-page .front-mind-preview .mind-map *,
  .play-page .mind-root,
  .play-page .mind-branch,
  .play-page .mind-child,
  .play-page .mind-note {
    font-size: 11px !important;
    line-height: 1.45 !important;
  }

  .play-page .front-mind-preview {
    padding: 20px 18px !important;
  }

  .play-page .mind-root,
  .play-page .mind-branch,
  .play-page .mind-child,
  .play-page .mind-note {
    padding: 7px 10px !important;
  }

  .rank-page .table-wrap table,
  .play-page .table-wrap table,
  .rank-page .table-wrap th,
  .play-page .table-wrap th,
  .rank-page .table-wrap td,
  .play-page .table-wrap td,
  .rank-page table,
  .play-page table,
  .rank-page th,
  .play-page th,
  .rank-page td {
    font-size: 11px !important;
    line-height: 1.38 !important;
  }

  .play-page .table-wrap table,
  .rank-page .table-wrap table {
    min-width: 0 !important;
    table-layout: fixed !important;
  }

  .rank-page .table-wrap table {
    min-width: 360px !important;
    table-layout: fixed !important;
  }

  .rank-page .table-wrap th,
  .rank-page .table-wrap td {
    width: 60px !important;
    min-width: 60px !important;
    max-width: 60px !important;
    text-align: center !important;
  }

  .rank-page[data-rank-page="非艺榜单"] .table-wrap th:nth-child(3),
  .rank-page[data-rank-page="非艺榜单"] .table-wrap td:nth-child(3) {
    width: 80px !important;
    min-width: 80px !important;
    max-width: 80px !important;
  }

  .rank-page .table-wrap th:nth-child(2),
  .rank-page .table-wrap td:nth-child(2),
  .rank-page .table-wrap th:nth-child(4),
  .rank-page .table-wrap td:nth-child(4) {
    width: 80px !important;
    min-width: 80px !important;
    max-width: 80px !important;
  }

  .rank-page .table-wrap th,
  .play-page .table-wrap th,
  .rank-page .table-wrap td,
  .play-page .table-wrap td,
  .rank-page th,
  .play-page th,
  .rank-page td {
    padding: 6px 5px !important;
  }

  .play-page .table-wrap th,
  .play-page .table-wrap td {
    width: auto !important;
    border-right: 1px solid rgba(148, 164, 184, 0.18) !important;
    white-space: nowrap;
  }

  .rank-page .table-wrap th,
  .rank-page .table-wrap td {
    border-right: 1px solid rgba(148, 164, 184, 0.18) !important;
    white-space: nowrap;
  }

  .play-page .table-wrap th,
  .play-page .table-wrap td {
    width: 50% !important;
  }

  .play-page .table-wrap th:last-child,
  .play-page .table-wrap td:last-child,
  .rank-page .table-wrap th:last-child,
  .rank-page .table-wrap td:last-child {
    border-right: 0 !important;
  }
}

@media (max-width: 900px) {
  #app {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
  }

  .shell {
    min-height: auto !important;
    flex: 1 0 auto;
    padding-bottom: 72px !important;
  }

  .footer {
    flex: 0 0 auto;
  }

  .front-admin-login-page {
    width: 100%;
    min-height: calc(100dvh - 36px);
    display: grid;
    align-items: center;
    padding: 8px 12px 0;
  }

  .admin-login-shell {
    min-height: 100dvh !important;
    padding: 18px 16px !important;
    background: #f5f1e8;
  }

  .front-admin-login-panel {
    width: 100%;
    max-width: 390px;
    min-height: 0;
    margin: 0 auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #24313a;
  }

  .front-admin-login-panel h1 {
    margin: 0 0 18px;
    color: #24313a;
    font-size: 36px;
    line-height: 1.1;
    font-weight: 800;
  }

  .front-admin-login-panel .field {
    gap: 8px;
    margin-bottom: 18px;
  }

  .front-admin-login-panel .field span {
    color: #8192ad;
    font-size: 13px;
  }

  .front-admin-login-panel input {
    min-height: 41px;
    border-color: #cfd3d8;
    background: rgba(255, 255, 255, 0.52);
    color: #24313a;
  }

  .front-admin-login-panel .primary {
    display: block;
    min-width: 112px;
    min-height: 40px;
    margin: 44px auto 0;
    border-color: transparent;
    background: #98aa9b;
    color: #111b16;
  }

  .drama-thread-layout,
  .work-thread-layout {
    padding-bottom: 18px !important;
  }

  .drama-thread-upload,
  .work-thread-upload {
    margin-top: 10px !important;
  }

  .drama-thread,
  .work-thread,
  .detail-dossier {
    margin-bottom: 12px !important;
  }
}

@media (max-width: 900px) {
  .modal.activity-front-modal .activity-thread-back {
    position: sticky !important;
    inset: 0 0 auto 0 !important;
    top: 0 !important;
    z-index: 20 !important;
    display: flex !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 44px !important;
    margin: 0 0 14px !important;
    padding: 12px 14px !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(148, 164, 184, 0.18) !important;
    border-radius: 0 !important;
    background: rgba(7, 11, 16, 0.96) !important;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28) !important;
    color: rgba(239, 251, 248, 0.95) !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
}

@media (max-width: 900px) {
  .admin-shell {
    min-height: 100dvh;
    padding: 54px 12px 86px !important;
  }

  .admin-shell.admin-mobile-third {
    padding-top: 72px !important;
  }

  .admin-shell.admin-mobile-third:has(.mobile-admin-nested-subnav:not(:empty)) {
    padding-top: 108px !important;
  }

  .admin-shell.admin-mobile-second {
    padding-bottom: 24px !important;
  }

  .admin-shell .admin-kicker,
  .admin-shell .admin-title-row {
    display: none;
  }

  .admin-close {
    display: none;
  }

  .admin-mobile-back {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 62;
    display: inline-grid;
    place-items: center;
    min-width: 58px;
    min-height: 32px;
    padding: 6px 12px;
    border: 1px solid rgba(198, 189, 174, 0.78);
    border-radius: 7px;
    background: rgba(250, 247, 240, 0.94);
    color: #3e463f;
    box-shadow: 0 8px 18px rgba(42, 48, 42, 0.1);
    font-size: 12px;
    font-weight: 800;
  }

  .admin-shell.admin-normal-mobile-landing .admin-mobile-back {
    display: none;
  }

  .admin-shell.admin-mobile-root .admin-mobile-back {
    display: none;
  }

  .admin-top-tabs {
    position: static;
    z-index: auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    width: min(100%, 390px);
    margin: 8px auto 0;
    padding: 0;
    border: 0;
    background: rgba(244, 240, 232, 0.96);
    box-shadow: none;
    backdrop-filter: none;
  }

  .admin-top-tabs button {
    min-height: 42px;
    padding: 6px 5px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #3e463f;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.15;
    white-space: normal;
  }

  .admin-top-tabs button.active {
    border: 1px solid #aeb6aa;
    background: #dce1d7;
    color: #24302a;
    box-shadow: none;
  }

  .admin-top-tabs button.active:not(.open) {
    border-color: transparent;
    background: transparent;
    color: #3e463f;
  }

  .admin-top-tabs button.open {
    border: 1px solid #aeb6aa;
    background: #dce1d7;
    color: #24302a;
  }

  .admin-shell:not(.admin-mobile-root) .admin-top-tabs {
    display: none;
  }

  .admin-shell.admin-mobile-root .admin-top-tabs {
    grid-template-columns: minmax(0, 190px);
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-top: 16px;
    background: transparent;
  }

  .admin-shell.admin-mobile-root .admin-top-tabs button {
    width: 100%;
    border: 1px solid rgba(174, 182, 170, 0.9);
    background: rgba(250, 247, 240, 0.82);
    box-shadow: 0 8px 18px rgba(72, 78, 70, 0.08);
  }

  .admin-shell .admin-layout {
    display: block;
  }

  .mobile-admin-subnav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 58;
    display: flex;
    flex-wrap: nowrap;
    align-content: center;
    align-items: center;
    gap: 8px;
    min-height: 56px;
    max-height: 56px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px 14px 10px 96px;
    border-bottom: 1px solid rgba(148, 164, 184, 0.14);
    background: rgba(7, 15, 20, 0.97);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(14px);
    scrollbar-width: none;
  }

  .mobile-admin-subnav:empty {
    display: none;
  }

  .admin-shell.admin-mobile-menu-open .mobile-admin-subnav {
    display: none;
  }

  .admin-shell:not(.admin-mobile-third) .mobile-admin-subnav {
    display: none;
  }

  .mobile-admin-nested-subnav {
    position: fixed;
    inset: 56px 0 auto 0;
    z-index: 57;
    display: flex;
    flex-wrap: nowrap;
    gap: 8px 10px;
    min-height: 42px;
    max-height: 42px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 7px 14px;
    border-bottom: 1px solid rgba(148, 164, 184, 0.1);
    background: rgba(7, 15, 20, 0.97);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
    scrollbar-width: none;
  }

  .mobile-admin-nested-subnav:empty,
  .admin-shell:not(.admin-mobile-third) .mobile-admin-nested-subnav {
    display: none;
  }

  .mobile-admin-nested-subnav::-webkit-scrollbar {
    display: none;
  }

  .mobile-admin-subnav::-webkit-scrollbar {
    display: none;
  }

  .mobile-admin-subnav .side-subgroup {
    display: contents;
  }

  .mobile-admin-subnav button {
    position: relative;
    flex: 0 0 auto;
    min-height: 28px;
    max-width: none;
    padding: 6px 10px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: rgba(218, 231, 229, 0.82);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.15;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: none;
  }

  .mobile-admin-subnav button.side-child {
    order: 1;
  }

  .mobile-admin-subnav button.side-grandchild,
  .mobile-admin-subnav .side-note {
    display: none;
  }

  .mobile-admin-nested-subnav button.side-grandchild,
  .mobile-admin-nested-subnav .side-note {
    order: 2;
    flex: 0 0 auto;
    max-width: 168px;
    min-height: 28px;
    padding: 6px 10px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    font-size: 10px;
    font-weight: 700;
    color: rgba(190, 204, 204, 0.68);
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mobile-admin-nested-subnav button.side-grandchild.active {
    background: rgba(117, 91, 172, 0.72);
    color: #f2ecff;
  }

  .mobile-admin-subnav button.active {
    border-color: transparent;
    background: rgba(117, 91, 172, 0.72);
    color: #f2ecff;
  }

  .mobile-admin-subnav button span {
    display: none;
  }

  .mobile-admin-subnav button.side-child:not(.has-toggle),
  .mobile-admin-subnav button.side-grandchild,
  .mobile-admin-subnav .side-note {
    padding-right: 9px;
  }

  .mobile-admin-subnav button.side-grandchild i {
    display: none;
  }

  .mobile-admin-subnav .side-note {
    display: none;
  }

  .mobile-admin-nested-subnav button.side-grandchild i,
  .mobile-admin-nested-subnav button span {
    display: none;
  }

  .admin-shell .admin-main > .admin-title-card:only-child,
  .admin-shell .admin-main > .admin-title-card:first-child:last-child {
    display: none;
  }

  .admin-shell.admin-mobile-second .admin-main {
    display: none !important;
  }

  .admin-shell .side {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 58;
    display: flex;
    gap: 8px;
    width: 100%;
    max-height: 120px;
    overflow-x: auto;
    overflow-y: hidden;
    border: 0;
    border-bottom: 1px solid rgba(198, 189, 174, 0.7);
    border-radius: 0;
    background: rgba(250, 247, 240, 0.96);
    padding: 10px 46px 10px 10px;
    box-shadow: 0 10px 22px rgba(42, 48, 42, 0.1);
    backdrop-filter: blur(14px);
  }

  .admin-shell .side-group,
  .admin-shell .side-subgroup {
    display: contents;
  }

  .admin-shell .side button,
  .admin-shell .side button.side-root,
  .admin-shell .side button.side-child,
  .admin-shell .side button.side-grandchild,
  .admin-shell .side .side-note {
    flex: 0 0 auto;
    width: auto;
    min-width: 74px;
    max-width: 120px;
    min-height: 36px;
    margin: 0;
    padding: 8px 24px 8px 10px;
    border-radius: 7px;
    font-size: 13px;
    text-align: left;
  }

  .admin-shell .side button.side-child::before,
  .admin-shell .side button.side-grandchild i {
    display: none;
  }

  .admin-shell .side button span,
  .admin-shell .side button.side-child.has-toggle span {
    right: 7px;
    width: 16px;
    height: 16px;
    font-size: 12px;
  }

  .admin-shell .side button.active,
  .admin-shell .side button.side-root.active,
  .admin-shell .side button.side-child.active,
  .admin-shell .side button.side-grandchild.active {
    border-color: #aeb6aa;
    background: #cfdcc9;
    color: #223028;
  }

  .admin-shell .admin-main,
  .admin-shell .admin-single {
    min-width: 0;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden;
  }

  .admin-shell:not(.admin-mobile-second) .side {
    display: none !important;
  }

  .admin-shell.admin-mobile-third .side,
  .admin-shell.admin-mobile-content .side {
    display: none !important;
  }
}

@media (max-width: 900px) {
  .admin-shell .side {
    position: static !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    align-content: start !important;
    align-items: start !important;
    gap: 16px 34px !important;
    width: min(100%, 260px) !important;
    max-height: min(72vh, 360px) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    margin: 14px auto 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
  }

  .admin-shell .side-group {
    display: contents !important;
    margin: 0 !important;
  }

  .admin-shell .side-subgroup {
    display: contents !important;
    margin: 0 !important;
  }

  .admin-shell .side button.side-root {
    order: 1;
  }

  .admin-shell .side button.side-child {
    order: 2;
  }

  .admin-shell .side button.side-grandchild,
  .admin-shell .side .side-note {
    order: 3;
  }

  .admin-shell .side button.side-root,
  .admin-shell .side button.side-child,
  .admin-shell .side button.side-grandchild,
  .admin-shell .side .side-note {
    min-width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    white-space: nowrap;
  }

  .admin-shell .side button.side-root {
    display: grid !important;
    justify-items: center !important;
    gap: 7px !important;
    width: 100% !important;
    min-height: 66px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #46524a !important;
    box-shadow: none !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    line-height: 1.15 !important;
    text-align: center !important;
  }

  .admin-shell .side button.side-root .admin-side-icon {
    position: static !important;
    transform: none !important;
    display: grid !important;
    place-items: center !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 10px !important;
    background: #d9dfd4 !important;
    color: currentColor !important;
  }

  .admin-shell .side button.side-root .admin-side-label {
    position: static !important;
    transform: none !important;
    display: block !important;
    width: auto !important;
    height: auto !important;
    background: transparent !important;
    color: currentColor !important;
    font-size: 10px !important;
    line-height: 1.15 !important;
  }

  .admin-shell .side button.side-root .admin-toggle-mark {
    display: none !important;
  }

  .admin-shell .side button.side-root.active {
    color: #25332b !important;
    background: transparent !important;
    border-color: transparent !important;
  }

  .admin-shell .side button.side-root.open,
  .admin-shell .side button.side-root.active.open {
    color: #26362d !important;
  }

  .admin-shell .side button.side-root.open .admin-side-icon,
  .admin-shell .side button.side-root.active.open .admin-side-icon {
    background: #93a493 !important;
    color: #f9faf5 !important;
  }

  .admin-shell .side button.side-root:not(:disabled):hover,
  .admin-shell .side button.side-root:not(:disabled):focus-visible {
    border-color: transparent !important;
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
  }

  .admin-shell .side button.side-child,
  .admin-shell .side button.side-grandchild,
  .admin-shell .side .side-note {
    width: 100% !important;
    min-height: 30px !important;
    margin: 0 !important;
    padding: 6px 8px !important;
    border: 1px solid rgba(115, 130, 160, 0.18) !important;
    border-radius: 7px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    background: rgba(21, 28, 42, 0.72) !important;
    color: rgba(215, 221, 236, 0.78) !important;
    text-align: center !important;
    box-shadow: none !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .admin-shell .side button.side-grandchild,
  .admin-shell .side .side-note {
    font-size: 10px !important;
    color: rgba(190, 198, 216, 0.68) !important;
  }

  .admin-shell .side button.side-child.active,
  .admin-shell .side button.side-grandchild.active {
    border-color: rgba(143, 109, 255, 0.42) !important;
    background: rgba(67, 58, 102, 0.74) !important;
    color: #eef0ff !important;
  }

  .admin-shell .side button.side-child.has-toggle span,
  .admin-shell .side button.side-grandchild span {
    display: none !important;
  }

  .admin-shell .side .side-subgroup,
  .admin-shell .side button.side-child,
  .admin-shell .side button.side-grandchild,
  .admin-shell .side .side-note {
    display: none !important;
  }

  .admin-shell .admin-main,
  .admin-shell .admin-single {
    font-size: 12px !important;
  }

  .admin-shell .admin-card,
  .admin-shell .section-card {
    padding: 14px !important;
    margin-bottom: 12px !important;
    border-radius: 7px !important;
  }

  .admin-modal {
    align-items: start;
    place-items: start center;
    padding: 124px 14px 22px !important;
    overflow: auto;
  }

  .admin-modal .modal-box {
    width: min(360px, 100%) !important;
    max-height: calc(100vh - 146px) !important;
    padding: 16px !important;
    border-radius: 7px !important;
    font-size: 13px !important;
    line-height: 1.45 !important;
  }

  .admin-modal .modal-head {
    top: -16px;
    margin: -16px -16px 14px;
    padding: 12px 14px;
    gap: 8px;
  }

  .admin-modal .modal-head h2 {
    font-size: 18px !important;
    line-height: 1.2 !important;
  }

  .admin-modal .modal-head-actions {
    gap: 7px;
  }

  .admin-modal .modal-head-actions .ghost,
  .admin-modal .modal-head-actions .primary {
    min-width: 54px;
    min-height: 30px;
    padding: 6px 9px;
    font-size: 12px;
    line-height: 1.2;
  }

  .admin-modal .admin-card,
  .admin-modal .section-card {
    padding: 15px !important;
    margin-bottom: 12px !important;
  }

  .admin-modal .admin-card h2,
  .admin-modal .section-card h2,
  .admin-modal.profile-modal-compact .profile-region-card h2 {
    font-size: 18px !important;
    line-height: 1.3 !important;
  }

  .admin-modal .field span,
  .admin-modal .muted,
  .admin-modal .subtitle-line {
    font-size: 12px !important;
    line-height: 1.5 !important;
  }

  .admin-modal input,
  .admin-modal textarea,
  .admin-modal select {
    min-height: 40px !important;
    padding: 9px 11px !important;
    font-size: 14px !important;
    line-height: 1.35 !important;
  }

  .admin-shell .profile-term-row,
  .admin-modal .profile-term-row,
  .admin-shell .role-editor,
  .admin-modal .role-editor,
  .admin-shell .activity-content-row,
  .admin-modal .activity-content-row,
  .admin-shell .activity-image-control,
  .admin-modal .activity-image-control {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 10px !important;
    align-items: stretch !important;
  }

  .admin-shell .profile-term-row .field,
  .admin-modal .profile-term-row .field,
  .admin-shell .role-editor .field,
  .admin-modal .role-editor .field,
  .admin-shell .activity-content-row .field,
  .admin-modal .activity-content-row .field,
  .admin-shell .activity-image-control .field,
  .admin-modal .activity-image-control .field {
    margin-bottom: 0 !important;
  }

  .admin-shell .profile-term-row textarea,
  .admin-modal .profile-term-row textarea,
  .admin-shell .role-editor textarea,
  .admin-modal .role-editor textarea,
  .admin-shell .activity-content-row textarea,
  .admin-modal .activity-content-row textarea {
    min-height: 96px !important;
  }

  .admin-shell .profile-term-row .danger,
  .admin-modal .profile-term-row .danger,
  .admin-shell .role-editor .danger,
  .admin-modal .role-editor .danger,
  .admin-shell .activity-content-row .danger,
  .admin-modal .activity-content-row .danger,
  .admin-shell .activity-image-control .danger,
  .admin-modal .activity-image-control .danger {
    width: 100%;
  }

  .admin-shell .role-delete-btn,
  .admin-modal .role-delete-btn {
    grid-column: auto !important;
    justify-self: stretch !important;
  }

  .admin-shell .work-modal-actions,
  .admin-modal .work-modal-actions {
    margin-top: 4px !important;
    margin-bottom: 6px !important;
  }

  .admin-shell .add-work-chapter-btn,
  .admin-modal .add-work-chapter-btn {
    margin: 4px 0 8px !important;
  }

  .admin-modal.profile-popularity-modal {
    padding-top: 108px !important;
    padding-bottom: 14px !important;
  }

  .admin-modal.profile-popularity-modal .modal-box {
    max-height: calc(100dvh - 122px) !important;
    padding-bottom: 24px !important;
    overscroll-behavior: contain;
  }

  .admin-modal.profile-popularity-modal .modal-head {
    position: static;
    top: auto;
    margin-bottom: 16px;
  }

  .admin-modal.profile-popularity-modal .modal-head h2 {
    max-width: 138px;
    word-break: break-word;
  }

  .admin-modal.profile-popularity-modal .popularity-editor {
    gap: 12px;
    padding-top: 2px;
    padding-bottom: 8px;
  }

  .admin-modal.profile-popularity-modal .profile-popularity-total-card,
  .admin-modal.profile-popularity-modal .profile-popularity-row,
  .admin-modal.profile-popularity-modal .profile-manual-popularity-row {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .admin-modal.profile-popularity-modal .profile-popularity-row {
    gap: 6px;
    align-items: start;
    font-size: 12px;
  }

  .admin-modal.profile-popularity-modal .profile-manual-popularity-row {
    gap: 9px;
  }

  .admin-modal.profile-popularity-modal .profile-manual-popularity-actions {
    justify-content: flex-end;
    padding-bottom: 8px;
  }

  .admin-shell .admin-card h2,
  .admin-shell .section-card h2,
  .admin-shell .admin-title-card h2,
  .admin-shell .artist-list-head h2 {
    margin-bottom: 10px !important;
    font-size: 17px !important;
    line-height: 1.25 !important;
  }

  .admin-shell .admin-card h3,
  .admin-shell .section-card h3 {
    font-size: 14px !important;
    line-height: 1.3 !important;
  }

  .admin-shell .field {
    gap: 5px !important;
    margin-bottom: 10px !important;
  }

  .admin-shell .field span,
  .admin-shell .muted,
  .admin-shell .subtitle-line {
    font-size: 11px !important;
    line-height: 1.45 !important;
  }

  .admin-shell input,
  .admin-shell textarea,
  .admin-shell select {
    min-height: 34px !important;
    padding: 7px 9px !important;
    font-size: 12px !important;
    line-height: 1.35 !important;
  }

  .admin-shell textarea {
    min-height: 88px !important;
  }

  .admin-shell .admin-main button,
  .admin-shell .admin-single button,
  .admin-shell .admin-main .ghost,
  .admin-shell .admin-main .primary,
  .admin-shell .admin-main .danger,
  .admin-shell .admin-single .ghost,
  .admin-shell .admin-single .primary,
  .admin-shell .admin-single .danger {
    min-height: 32px;
    padding: 7px 10px;
    font-size: 12px;
    line-height: 1.2;
  }

  .admin-shell .action-row,
  .admin-shell .pager {
    gap: 10px !important;
    margin-top: 10px !important;
  }

  .admin-shell .form-grid,
  .admin-shell .admin-title-fields {
    gap: 9px !important;
  }

  .admin-shell .admin-title-card {
    padding: 14px !important;
  }

  .admin-shell .admin-title-edit,
  .admin-shell .architecture-editor,
  .admin-shell .activity-image-control,
  .admin-shell .activity-content-row {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 9px !important;
  }

  .admin-shell .artist-profile-table th,
  .admin-shell .artist-profile-table td,
  .admin-shell .artist-profile-table td button,
  .admin-shell .artist-profile-table td select,
  .admin-shell .artist-table-input,
  .admin-shell .profile-list-control {
    font-size: 11px !important;
    line-height: 1.25 !important;
  }

  .admin-shell .artist-profile-table th,
  .admin-shell .artist-profile-table td {
    padding: 6px 7px !important;
  }

  .admin-shell .mind-toolbar button {
    min-height: 26px !important;
    padding: 4px 9px !important;
    font-size: 11px !important;
  }

  .admin-shell .architecture-editor textarea,
  .admin-shell .architecture-preview {
    min-height: 210px !important;
    height: 210px !important;
  }

  .admin-shell .front-mind-preview,
  .admin-shell .architecture-preview {
    padding: 18px 16px !important;
  }

  .admin-shell .mind-map {
    min-width: 430px !important;
    min-height: 160px !important;
    grid-template-columns: max-content minmax(180px, 1fr) !important;
    gap: 24px !important;
  }

  .admin-shell .mind-root,
  .admin-shell .mind-branch,
  .admin-shell .mind-child,
  .admin-shell .mind-note {
    line-height: 1.4 !important;
  }

  .admin-shell .mind-root {
    padding: 8px 12px !important;
    font-size: 14px !important;
  }

  .admin-shell .mind-branch {
    padding: 7px 11px !important;
    font-size: 12px !important;
  }

  .admin-shell .mind-child {
    padding: 6px 10px !important;
    font-size: 11px !important;
  }

  .admin-shell .mind-note {
    padding: 5px 9px !important;
    font-size: 10px !important;
  }

  .admin-shell .mind-branches {
    gap: 12px !important;
    padding-left: 16px !important;
  }

  .admin-shell .mind-children {
    gap: 6px !important;
    margin: 6px 0 0 22px !important;
  }

  .admin-shell .mind-notes {
    gap: 5px !important;
    margin-left: 20px !important;
  }

  .admin-shell:not(.admin-mobile-second) .side {
    display: none !important;
  }
}

@media (min-width: 901px) {
  .shell {
    padding-top: 76px !important;
  }

  .shell > section:first-child,
  .shell > .page:first-child,
  .shell > .home:first-child {
    margin-top: 0 !important;
  }
}

.admin-login-shell {
  min-height: 100dvh !important;
  display: grid !important;
  place-items: center !important;
  padding: 0 !important;
}

.admin-login-shell .front-admin-login-page {
  width: 100% !important;
  min-height: 100dvh !important;
  display: grid !important;
  place-items: center !important;
  margin: 0 !important;
  padding: 24px !important;
}

.admin-login-shell .front-admin-login-panel {
  min-height: 348px !important;
  display: grid !important;
  align-content: center !important;
  margin: 0 auto !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  text-align: center !important;
}

.admin-login-shell .front-admin-login-panel h1 {
  margin-bottom: 28px !important;
  text-align: center !important;
}

.admin-login-shell .front-admin-login-panel .field {
  justify-items: center !important;
  margin-bottom: 22px !important;
}

.admin-login-shell .front-admin-login-panel .field span {
  width: min(368px, 100%) !important;
  text-align: center !important;
}

.admin-login-shell .front-admin-login-panel .field span.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
}

.admin-login-shell .front-admin-login-panel input {
  text-align: center !important;
}

.admin-login-shell .front-admin-login-panel .primary {
  display: block !important;
  margin-top: 10px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

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

.drama-stats-head h2 {
  margin-bottom: 0 !important;
}

.drama-stats-month-filter {
  width: min(255px, 48%);
  min-height: 34px;
  padding: 6px 10px;
}

@media (max-width: 900px) {
  .admin-shell .drama-stats-card {
    padding: 10px !important;
    margin-bottom: 6px !important;
  }

  .drama-stats-head {
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
  }

  .admin-shell .drama-stats-head h2 {
    font-size: 18px !important;
    line-height: 1.15 !important;
  }

  .drama-stats-month-filter {
    width: 132px;
    min-height: 28px !important;
    padding: 4px 7px !important;
    font-size: 12px !important;
  }

  .admin-shell .drama-stats-card .artist-table-wrap {
    margin: 0 !important;
  }

  .admin-shell .drama-stats-card .artist-profile-table {
    min-width: 0 !important;
    width: 100% !important;
  }

  .admin-shell .drama-stats-card .artist-profile-table th,
  .admin-shell .drama-stats-card .artist-profile-table td {
    height: 30px !important;
    padding: 4px 6px !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
  }
}
