:root {
  --app-width: 430px;
  --bg: #eef2ed;
  --screen: #f8faf7;
  --surface: #ffffff;
  --surface-2: #edf7f4;
  --ink: #22252a;
  --muted: #6c746f;
  --line: #dde5df;
  --primary: #147a70;
  --primary-strong: #0d5f57;
  --coral: #dd596b;
  --gold: #e3aa39;
  --violet: #7765c7;
  --shadow: 0 18px 44px rgba(26, 32, 31, 0.14);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", Arial,
    sans-serif;
  font-size: 14px;
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  max-width: var(--app-width);
  margin: 0 auto;
  background: var(--screen);
  box-shadow: 0 0 0 1px rgba(30, 44, 38, 0.06);
  content: "";
  pointer-events: none;
}

button,
input,
select {
  font: inherit;
  letter-spacing: 0;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.nav-tabs {
  position: fixed;
  right: auto;
  bottom: 0;
  left: 50%;
  z-index: 32;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
  max-width: var(--app-width);
  margin: 0 auto;
  padding: 4px 8px max(4px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: var(--surface);
  box-shadow: none;
  transform: translateX(-50%);
}

.nav-link {
  display: grid;
  min-width: 0;
  min-height: 50px;
  place-items: center;
  border-radius: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.nav-link::before {
  display: block;
  margin-bottom: 2px;
  color: currentColor;
  font-size: 16px;
  line-height: 1;
}

.nav-link[data-nav="home"]::before {
  content: "⌂";
}

.nav-link[data-nav="catalog"]::before {
  content: "□";
}

.nav-link[data-nav="mine"]::before {
  content: "●";
}

.nav-link.is-active {
  background: transparent;
  color: var(--primary-strong);
}

main {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--app-width);
  min-height: 100vh;
  margin: 0 auto;
  overflow-x: hidden;
  padding: 10px 0 64px;
}

.app-view[hidden] {
  display: none !important;
}

.app-view {
  min-height: calc(100vh - 156px);
}

.workbench {
  display: block;
  padding: 0 12px 22px;
}

.catalog-screen {
  display: grid;
  gap: 14px;
  padding: 0 12px 22px;
}

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

.catalog-title-lockup {
  display: grid;
  width: 52px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  background: #173f3a;
  color: #fff;
  font-weight: 900;
}

.catalog-top h1 {
  margin: 0;
  font-size: 16px;
  line-height: 1;
}

.catalog-search {
  position: relative;
}

.catalog-search span::before {
  position: absolute;
  top: 50%;
  left: 14px;
  width: 12px;
  height: 12px;
  border: 2px solid var(--muted);
  border-radius: 50%;
  content: "";
  transform: translateY(-56%);
}

.catalog-search span::after {
  position: absolute;
  top: 27px;
  left: 25px;
  width: 8px;
  height: 2px;
  border-radius: 999px;
  background: var(--muted);
  content: "";
  transform: rotate(45deg);
}

.catalog-search input {
  width: 100%;
  height: 38px;
  padding: 0 14px 0 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  outline: none;
}

.catalog-search input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(20, 122, 112, 0.14);
}

.catalog-stats {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 8px 18px rgba(36, 36, 42, 0.05);
}

.catalog-stats h2 {
  margin: 0;
  font-size: 16px;
}

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

.catalog-stat-grid div {
  min-height: 54px;
  padding: 8px 4px;
  border-radius: 8px;
  background: #f6f8f4;
}

.catalog-stats strong,
.catalog-stats span {
  display: block;
  text-align: center;
}

.catalog-stats strong {
  font-size: 18px;
  line-height: 1.1;
}

.catalog-stats span {
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.catalog-index-section {
  display: grid;
  gap: 10px;
}

.catalog-index-section .section-head {
  align-items: center;
  flex-direction: row;
  margin-bottom: 0;
}

.catalog-index-section h2 {
  font-size: 20px;
}

.catalog-section-link {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: var(--primary-strong);
  font-size: 13px;
  font-weight: 900;
}

.catalog-tile-row {
  display: flex;
  gap: 8px;
  margin: 0 -12px;
  padding: 0 12px 2px;
  overflow-x: auto;
  scrollbar-width: none;
}

.catalog-tile-row::-webkit-scrollbar {
  display: none;
}

.catalog-tile {
  display: grid;
  gap: 8px;
  flex: 0 0 98px;
  min-height: 122px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 8px 18px rgba(36, 36, 42, 0.05);
}

.catalog-tile span {
  position: relative;
  display: grid;
  min-height: 78px;
  place-items: center;
  overflow: hidden;
  border-radius: 7px;
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.74), transparent 28%),
    linear-gradient(145deg, #a2e6dd, #e9c85d);
  color: #173f3a;
  font-size: 17px;
  font-weight: 900;
}

.catalog-tile:nth-child(2n) span {
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.76), transparent 28%),
    linear-gradient(145deg, #b5ccff, #f08ba0);
}

.catalog-tile:nth-child(3n) span {
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.76), transparent 28%),
    linear-gradient(145deg, #ffd17f, #dd596b);
}

.catalog-tile span::before {
  position: absolute;
  inset: 23% 32% 12%;
  border-radius: 999px 999px 18px 18px;
  background:
    radial-gradient(circle at 50% 22%, #fff 0 15%, transparent 16%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.5));
  box-shadow: 0 12px 24px rgba(36, 36, 42, 0.16);
  content: "";
}

.catalog-tile strong {
  display: block;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.25;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalog-more-tile {
  flex: 0 0 86px;
  min-height: 122px;
  border: 1px dashed #c9d3cc;
  border-radius: var(--radius);
  background: #fbfcfa;
  color: var(--primary-strong);
  font-size: 13px;
  font-weight: 900;
}

.logo-tile span,
.type-tile span {
  min-height: 78px;
  background: #eef7f4;
}

.logo-tile span::before,
.type-tile span::before {
  display: none;
}

.catalog-all-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 74px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 8px 18px rgba(36, 36, 42, 0.05);
  text-align: left;
}

.catalog-all-entry strong,
.catalog-all-entry small {
  display: block;
}

.catalog-all-entry strong {
  font-size: 17px;
}

.catalog-all-entry small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.catalog-all-entry b {
  color: var(--primary-strong);
  font-size: 20px;
}

.detail-mode .nav-tabs,
.subpage-mode .nav-tabs {
  display: none;
}

.detail-mode main,
.subpage-mode main {
  padding-bottom: 18px;
}

.index-list-screen {
  display: grid;
  gap: 12px;
  padding: 62px 12px 22px;
}

.index-list-top {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 38;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 38px;
  align-items: center;
  width: 100%;
  max-width: var(--app-width);
  min-height: 54px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  background: rgba(248, 250, 247, 0.96);
  box-shadow: 0 8px 18px rgba(36, 36, 42, 0.05);
  transform: translateX(-50%);
}

.index-list-top h1 {
  margin: 0;
  font-size: 17px;
  line-height: 1;
  text-align: center;
}

.index-control-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 58px;
  gap: 8px;
  align-items: center;
  min-height: 35px;
}

.index-sort-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 1px;
  scrollbar-width: none;
}

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

.index-sort-tabs button,
.index-filter-button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.index-sort-tabs button {
  flex: 0 0 auto;
  padding: 0 12px;
}

.index-sort-tabs button.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.index-filter-button {
  color: var(--primary-strong);
}

.index-list-meta {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  min-height: 16px;
  line-height: 16px;
}

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

.index-card {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 8px 18px rgba(36, 36, 42, 0.05);
  text-align: left;
}

.index-card-art {
  position: relative;
  display: grid;
  width: 100%;
  aspect-ratio: 5 / 4;
  place-items: center;
  overflow: hidden;
  border-radius: 7px;
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.74), transparent 28%),
    linear-gradient(145deg, var(--tone-a, #a2e6dd), var(--tone-b, #e9c85d));
  color: #173f3a;
  font-size: 18px;
  font-weight: 900;
}

.index-card-art::before {
  position: absolute;
  inset: 22% 34% 12%;
  border-radius: 999px 999px 18px 18px;
  background:
    radial-gradient(circle at 50% 22%, #fff 0 15%, transparent 16%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.5));
  box-shadow: 0 12px 24px rgba(36, 36, 42, 0.16);
  content: "";
}

.index-card.logo-tile .index-card-art,
.index-card.type-tile .index-card-art {
  background: #eef7f4;
}

.index-card.logo-tile .index-card-art::before,
.index-card.type-tile .index-card-art::before {
  display: none;
}

.index-card strong,
.index-card small,
.index-card em {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.index-card strong {
  font-size: 12px;
  line-height: 1.25;
}

.index-card small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.index-card em {
  color: var(--primary-strong);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.figure-list-screen {
  display: grid;
  align-content: start;
  gap: 12px;
  grid-auto-rows: max-content;
  padding: 62px 12px 22px;
}

.dimension-detail-screen {
  display: grid;
  gap: 12px;
  padding: 62px 12px 92px;
}

.dimension-detail-top {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 38;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 38px;
  align-items: center;
  width: 100%;
  max-width: var(--app-width);
  min-height: 54px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  background: rgba(248, 250, 247, 0.96);
  box-shadow: 0 8px 18px rgba(36, 36, 42, 0.05);
  transform: translateX(-50%);
}

.dimension-detail-top h1 {
  margin: 0;
  overflow: hidden;
  font-size: 17px;
  line-height: 1;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#dimensionDetailPage {
  display: grid;
  gap: 12px;
}

.dimension-hero,
.dimension-section {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 8px 18px rgba(36, 36, 42, 0.05);
}

.dimension-hero {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  align-items: center;
}

.dimension-hero-art {
  display: grid;
  width: 118px;
  aspect-ratio: 1 / 1;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  background:
    radial-gradient(circle at 30% 18%, rgba(255, 255, 255, 0.72), transparent 27%),
    linear-gradient(145deg, var(--tone-a), var(--tone-b));
  color: rgba(34, 37, 42, 0.74);
  font-size: 24px;
  font-weight: 1000;
}

.dimension-hero-copy {
  display: grid;
  align-content: start;
  gap: 7px;
  min-width: 0;
}

.dimension-hero-copy span {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.dimension-hero-copy h2 {
  margin: 0;
  overflow: hidden;
  font-size: 22px;
  line-height: 1.18;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dimension-hero-copy strong {
  color: var(--primary-strong);
  font-size: 13.5px;
  line-height: 1;
}

.dimension-section {
  display: grid;
  gap: 10px;
  padding: 12px;
}

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

.dimension-section-head h2 {
  margin: 0;
  font-size: 17px;
}

.dimension-section-head small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

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

.dimension-figure-card {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.dimension-figure-art {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 7px;
  background:
    radial-gradient(circle at 30% 16%, rgba(255, 255, 255, 0.75), transparent 23%),
    linear-gradient(145deg, var(--tone-a), var(--tone-b));
}

.dimension-figure-art::before {
  position: absolute;
  inset: 18% 28% 12%;
  border-radius: 999px 999px 18px 18px;
  background:
    radial-gradient(circle at 50% 22%, #fff 0 15%, transparent 16%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.52));
  box-shadow: 0 12px 24px rgba(36, 36, 42, 0.16);
  content: "";
}

.dimension-figure-card strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.dimension-figure-card small {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dimension-view-all {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f6f8f4;
  color: var(--primary-strong);
  font-weight: 900;
}

.dimension-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  z-index: 36;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  width: 100%;
  max-width: var(--app-width);
  padding: 8px 12px max(8px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 -10px 28px rgba(26, 32, 31, 0.08);
  transform: translateX(-50%);
}

.dimension-bottom-actions {
  display: flex;
  gap: 6px;
}

.dimension-bottom-actions button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-size: 17px;
  font-weight: 900;
}

.dimension-bottom-actions button.is-active {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.figure-list-search {
  position: relative;
  height: 38px;
}

.figure-list-search span {
  position: absolute;
  top: 50%;
  left: 14px;
  width: 16px;
  height: 16px;
  pointer-events: none;
  transform: translateY(-50%);
}

.figure-list-search span::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 12px;
  height: 12px;
  border: 2px solid var(--muted);
  border-radius: 50%;
  content: "";
}

.figure-list-search span::after {
  position: absolute;
  top: 11px;
  left: 11px;
  width: 8px;
  height: 2px;
  border-radius: 999px;
  background: var(--muted);
  content: "";
  transform: rotate(45deg);
}

.figure-list-search input {
  display: block;
  width: 100%;
  height: 38px;
  padding: 0 14px 0 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  outline: none;
}

.figure-list-search input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(20, 122, 112, 0.14);
}

.figure-list-tabs {
  align-self: start;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  height: 35px;
  min-height: 34px;
  overflow-y: hidden;
  padding-bottom: 1px;
  scrollbar-width: none;
}

.figure-list-tabs[hidden] {
  display: none !important;
}

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

.figure-list-tabs button {
  flex: 0 0 auto;
  height: 34px;
  min-height: 0;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  line-height: 32px;
  white-space: nowrap;
}

.figure-list-tabs button.is-active {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.figure-result-grid {
  display: grid;
  align-items: stretch;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.figure-result-grid.is-follow-object-grid .index-card {
  min-height: 154px;
}

.figure-result-card {
  display: grid;
  align-content: start;
  gap: 6px;
  min-width: 0;
  min-height: 230px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 8px 18px rgba(36, 36, 42, 0.05);
  text-align: left;
}

.figure-result-art {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 7px;
  background:
    radial-gradient(circle at 30% 16%, rgba(255, 255, 255, 0.75), transparent 23%),
    linear-gradient(145deg, var(--tone-a), var(--tone-b));
}

.figure-result-art::before {
  position: absolute;
  inset: 18% 28% 12%;
  border-radius: 999px 999px 20px 20px;
  background:
    radial-gradient(circle at 50% 22%, #fff 0 15%, transparent 16%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.52));
  box-shadow: 0 16px 32px rgba(36, 36, 42, 0.18);
  content: "";
}

.figure-result-card strong,
.figure-result-card small,
.figure-result-card em {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.figure-result-card strong {
  display: -webkit-box;
  font-size: 12px;
  line-height: 1.28;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.figure-result-card small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.figure-result-card em {
  color: var(--primary-strong);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.release-calendar-screen,
.home-list-screen {
  display: grid;
  gap: 12px;
  padding: 62px 12px 22px;
}

.release-month-card {
  display: grid;
  gap: 13px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 8px 18px rgba(36, 36, 42, 0.05);
}

.release-month-switch {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 8px;
}

.release-month-switch strong {
  font-size: 18px;
  text-align: center;
}

.release-month-switch button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
  color: var(--primary-strong);
  font-size: 20px;
  font-weight: 900;
}

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

.release-summary-grid div {
  min-height: 58px;
  padding: 9px 4px;
  border-radius: 8px;
  background: #f6f8f4;
}

.release-summary-grid strong,
.release-summary-grid span {
  display: block;
  text-align: center;
}

.release-summary-grid strong {
  font-size: 18px;
  line-height: 1;
}

.release-summary-grid span {
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.25;
}

.release-filter-tabs {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 1px;
  scrollbar-width: none;
}

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

.release-filter-tabs button {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.release-filter-tabs button.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.release-timeline {
  display: grid;
  gap: 12px;
}

.release-date-group {
  display: grid;
  gap: 9px;
}

.release-calendar-card {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 8px 18px rgba(36, 36, 42, 0.05);
  text-align: left;
}

.release-calendar-art {
  position: relative;
  display: block;
  min-height: 138px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 7px;
  background:
    radial-gradient(circle at 30% 16%, rgba(255, 255, 255, 0.75), transparent 23%),
    linear-gradient(145deg, var(--tone-a), var(--tone-b));
}

.release-calendar-art::before {
  position: absolute;
  inset: 18% 28% 12%;
  border-radius: 999px 999px 20px 20px;
  background:
    radial-gradient(circle at 50% 22%, #fff 0 15%, transparent 16%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.52));
  box-shadow: 0 16px 32px rgba(36, 36, 42, 0.18);
  content: "";
}

.release-calendar-card div {
  display: grid;
  gap: 7px;
  align-content: center;
  min-width: 0;
}

.release-calendar-card strong,
.release-calendar-card small,
.release-calendar-card em {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.release-calendar-card strong {
  display: -webkit-box;
  font-size: 15px;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.release-calendar-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.release-calendar-card em {
  display: -webkit-box;
  color: var(--primary-strong);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.detail-screen {
  display: grid;
  gap: 12px;
  padding: 62px 12px 92px;
}

.detail-page-top {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 38;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 38px;
  align-items: center;
  width: 100%;
  max-width: var(--app-width);
  min-height: 54px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  background: rgba(248, 250, 247, 0.96);
  box-shadow: 0 8px 18px rgba(36, 36, 42, 0.05);
  transform: translateX(-50%);
}

.detail-page-top h1 {
  margin: 0;
  font-size: 17px;
  line-height: 1;
  text-align: center;
}

.detail-back-button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-size: 24px;
  font-weight: 900;
}

#figureDetailPage {
  display: grid;
  gap: 12px;
}

.detail-visual-card,
.detail-core-card,
.detail-section {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 8px 18px rgba(36, 36, 42, 0.05);
}

.detail-visual-card {
  display: grid;
  gap: 10px;
  padding: 10px;
}

.detail-gallery-shell {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.detail-gallery-track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.detail-gallery-track::-webkit-scrollbar {
  display: none;
}

.detail-gallery-slide {
  flex: 0 0 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  scroll-snap-align: start;
}

.detail-main-image {
  position: relative;
  display: block;
  min-height: 390px;
  overflow: hidden;
  border-radius: 8px;
  background:
    radial-gradient(circle at 30% 16%, rgba(255, 255, 255, 0.75), transparent 23%),
    linear-gradient(145deg, var(--tone-a), var(--tone-b));
}

.detail-main-image::before {
  position: absolute;
  inset: 15% 29% 10%;
  border-radius: 999px 999px 24px 24px;
  background:
    radial-gradient(circle at 50% 22%, #fff 0 15%, transparent 16%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.52));
  box-shadow:
    0 18px 44px rgba(36, 36, 42, 0.2),
    inset 0 -18px 32px rgba(36, 36, 42, 0.08);
  content: "";
}

.detail-gallery-all {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background: rgba(34, 37, 42, 0.68);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.detail-gallery-counter {
  justify-self: center;
  color: var(--primary-strong);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.detail-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.detail-dots span {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #c9d3cc;
}

.detail-dots .is-active {
  width: 18px;
  background: var(--primary);
}

.detail-core-card {
  display: grid;
  gap: 8px;
  padding: 14px;
}

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

.detail-title-price {
  color: var(--primary-strong);
  font-size: 18px;
  line-height: 1.25;
  white-space: nowrap;
}

.detail-core-card h2 {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  font-size: 20px;
  line-height: 1.28;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.detail-core-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.detail-section {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.detail-section h2 {
  margin: 0;
  font-size: 17px;
}

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

.detail-info-item {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 58px;
  padding: 9px;
  border: 0;
  border-radius: 8px;
  background: #f6f8f4;
  color: var(--ink);
  text-align: left;
}

.detail-info-item.is-clickable {
  padding-right: 24px;
  background: #f1f8f5;
}

.detail-info-item.is-clickable::after {
  position: absolute;
  top: 9px;
  right: 9px;
  color: var(--primary-strong);
  content: ">";
  font-size: 12px;
  font-weight: 900;
}

.detail-info-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.detail-info-value {
  margin-top: 5px;
  overflow: hidden;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-official-description {
  display: grid;
  gap: 7px;
  padding: 11px;
  border-radius: 8px;
  background: #f6f8f4;
}

.detail-official-description h3 {
  margin: 0;
  font-size: 14px;
}

.detail-official-description p {
  margin: 0;
  color: #3d423f;
  font-size: 13px;
  line-height: 1.6;
}

.detail-row-head,
.detail-link-card,
.detail-status-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.detail-status-card,
.detail-link-card {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
  text-align: left;
}

.detail-status-card {
  display: grid;
  gap: 5px;
  padding: 12px;
}

.detail-status-card span,
.detail-status-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.detail-status-card strong {
  font-size: 16px;
}

.detail-link-card {
  min-height: 48px;
  padding: 0 12px;
  color: var(--ink);
  font-weight: 900;
}

.detail-link-card b {
  color: var(--primary-strong);
  font-size: 18px;
}

.detail-related-row {
  display: flex;
  gap: 8px;
  margin: 0 -14px;
  padding: 0 14px 2px;
  overflow-x: auto;
  scrollbar-width: none;
}

.detail-related-row::-webkit-scrollbar {
  display: none;
}

.detail-related-card {
  display: grid;
  flex: 0 0 118px;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.detail-related-card span {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 7px;
  background:
    radial-gradient(circle at 30% 16%, rgba(255, 255, 255, 0.75), transparent 23%),
    linear-gradient(145deg, var(--tone-a), var(--tone-b));
}

.detail-related-card span::before {
  position: absolute;
  inset: 18% 28% 12%;
  border-radius: 999px 999px 18px 18px;
  background:
    radial-gradient(circle at 50% 22%, #fff 0 15%, transparent 16%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.52));
  box-shadow: 0 12px 24px rgba(36, 36, 42, 0.16);
  content: "";
}

.detail-related-card strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.25;
  text-align: left;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body.gallery-open {
  overflow: hidden;
}

.detail-gallery-viewer[hidden] {
  display: none !important;
}

.detail-gallery-viewer {
  position: fixed;
  inset: 0 auto 0 50%;
  z-index: 48;
  width: 100%;
  max-width: var(--app-width);
  overflow-y: auto;
  background: var(--screen);
  transform: translateX(-50%);
}

.detail-gallery-viewer-top {
  position: sticky;
  top: 0;
  z-index: 1;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 42px;
  align-items: center;
  min-height: 54px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  background: rgba(248, 250, 247, 0.96);
}

.detail-gallery-viewer-top h2 {
  margin: 0;
  font-size: 17px;
  text-align: center;
}

.detail-gallery-viewer-top span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-align: right;
}

.detail-gallery-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px;
  padding: 2px;
}

.detail-gallery-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: var(--line);
}

.detail-gallery-thumb span {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 30% 16%, rgba(255, 255, 255, 0.75), transparent 23%),
    linear-gradient(145deg, var(--tone-a), var(--tone-b));
}

.detail-gallery-thumb span::before {
  position: absolute;
  inset: 19% 30% 12%;
  border-radius: 999px 999px 16px 16px;
  background:
    radial-gradient(circle at 50% 22%, #fff 0 15%, transparent 16%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.52));
  box-shadow: 0 12px 24px rgba(36, 36, 42, 0.16);
  content: "";
}

.detail-photo-preview[hidden],
.detail-photo-action-sheet[hidden] {
  display: none !important;
}

.detail-photo-preview {
  position: fixed;
  inset: 0 auto 0 50%;
  z-index: 58;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: 100%;
  max-width: var(--app-width);
  background: #111317;
  color: #fff;
  transform: translateX(-50%);
}

.detail-photo-preview-top {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 38px;
  align-items: center;
  min-height: 54px;
  padding: 8px 12px;
}

.detail-photo-preview-top .detail-back-button,
.detail-photo-menu {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.detail-photo-preview-top strong {
  font-size: 15px;
  text-align: center;
}

.detail-photo-menu {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 900;
}

.detail-photo-preview-stage {
  display: grid;
  min-height: 0;
  place-items: center;
  padding: 12px;
}

.detail-photo-preview-art {
  position: relative;
  display: block;
  width: 100%;
  max-height: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 8px;
  background:
    radial-gradient(circle at 30% 16%, rgba(255, 255, 255, 0.75), transparent 23%),
    linear-gradient(145deg, var(--tone-a), var(--tone-b));
}

.detail-photo-preview-art::before {
  position: absolute;
  inset: 15% 29% 10%;
  border-radius: 999px 999px 24px 24px;
  background:
    radial-gradient(circle at 50% 22%, #fff 0 15%, transparent 16%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.52));
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.28),
    inset 0 -18px 32px rgba(36, 36, 42, 0.08);
  content: "";
}

.detail-photo-action-sheet {
  position: fixed;
  inset: 0 auto 0 50%;
  z-index: 66;
  display: flex;
  width: 100%;
  max-width: var(--app-width);
  align-items: flex-end;
  background: rgba(17, 19, 23, 0.42);
  transform: translateX(-50%);
}

.detail-photo-action-panel {
  display: grid;
  gap: 8px;
  width: 100%;
  padding: 8px 12px max(8px, env(safe-area-inset-bottom));
}

.detail-photo-action-panel button {
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
}

.detail-section-note {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

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

.detail-community-stat {
  display: grid;
  min-width: 0;
  min-height: 64px;
  place-items: center;
  padding: 8px 4px;
  border-radius: 8px;
  background: #f6f8f4;
  text-align: center;
}

.detail-community-stat strong {
  color: var(--primary-strong);
  font-size: 17px;
  line-height: 1.1;
}

.detail-community-stat span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

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

.detail-comment-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 9px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.detail-comment-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.detail-comment-avatar {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  background: #e9f4f1;
  color: var(--primary-strong);
  font-size: 13px;
  font-weight: 900;
}

.detail-comment-body {
  min-width: 0;
}

.detail-comment-body div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.detail-comment-body strong {
  overflow: hidden;
  font-size: 13px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-comment-body time {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.detail-comment-body p {
  margin: 6px 0 0;
  color: #3d423f;
  font-size: 13px;
  line-height: 1.55;
}

.detail-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  z-index: 36;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  width: 100%;
  max-width: var(--app-width);
  padding: 8px 12px max(8px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 -10px 28px rgba(26, 32, 31, 0.08);
  transform: translateX(-50%);
}

.detail-comment-input {
  min-width: 0;
  height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  outline: none;
  background: #f6f8f4;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.detail-comment-input::placeholder {
  color: #9aa49d;
}

.detail-comment-input:focus {
  border-color: rgba(20, 122, 112, 0.55);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(20, 122, 112, 0.12);
}

.comment-submit-button {
  display: none;
  min-width: 44px;
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--primary);
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.detail-bottom-bar:focus-within .comment-submit-button,
.dimension-bottom-bar:focus-within .comment-submit-button,
.detail-bottom-bar:has(.detail-comment-input:not(:placeholder-shown)) .comment-submit-button,
.dimension-bottom-bar:has(.detail-comment-input:not(:placeholder-shown)) .comment-submit-button {
  display: block;
}

.comment-submit-button:active {
  transform: translateY(1px);
}

.detail-bottom-actions {
  display: flex;
  gap: 6px;
}

.detail-bottom-action {
  min-width: 42px;
  height: 38px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.detail-bottom-action.is-active {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.detail-bottom-action:focus-visible {
  outline: 3px solid rgba(20, 122, 112, 0.18);
  outline-offset: 2px;
}

.home-screen,
.mine-screen {
  display: grid;
  gap: 12px;
  padding: 0 12px 22px;
}

.mine-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 40px;
}

.mine-header h1 {
  margin: 0;
  font-size: 25px;
  line-height: 1;
}

.mine-actions {
  display: flex;
  gap: 8px;
}

.mine-actions button {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--primary-strong);
  font-size: 16px;
  font-weight: 900;
}

.mine-login-card,
.mine-section {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 8px 20px rgba(36, 36, 42, 0.06);
}

.mine-login-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 16px;
}

.mine-section {
  display: grid;
  overflow: hidden;
}

.mine-section h2 {
  margin: 0;
  padding: 14px 14px 8px;
  font-size: 17px;
}

.mine-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 2px 0;
}

.mine-section-head h2 {
  padding: 0;
}

.mine-section-head span {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mine-section-head button {
  min-height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--primary-strong);
  font-size: 12px;
  font-weight: 900;
}

.mine-cabinet-section,
.mine-collection-section,
.mine-follow-section {
  gap: 10px;
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
}

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

.mine-status-card {
  display: grid;
  gap: 5px;
  min-height: 94px;
  padding: 10px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 8px 18px rgba(36, 36, 42, 0.05);
  text-align: left;
}

.mine-status-card span,
.mine-status-card strong,
.mine-status-card small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mine-status-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.mine-status-card strong {
  color: var(--primary-strong);
  font-size: 24px;
  line-height: 1;
}

.mine-status-card small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.mine-card-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 0 2px 2px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.mine-card-strip::-webkit-scrollbar {
  display: none;
}

.mine-feed-card {
  display: grid;
  flex: 0 0 calc((100% - 30px) / 3.5);
  gap: 6px;
  min-width: 88px;
  padding: 0 0 10px;
  border: 0;
  background: transparent;
  scroll-snap-align: start;
  text-align: left;
}

.mine-feed-art {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 30% 16%, rgba(255, 255, 255, 0.75), transparent 23%),
    linear-gradient(145deg, var(--tone-a), var(--tone-b));
  box-shadow: 0 8px 18px rgba(36, 36, 42, 0.05);
}

.mine-feed-art::before {
  position: absolute;
  inset: 18% 27% 13%;
  border-radius: 999px 999px 18px 18px;
  background:
    radial-gradient(circle at 50% 22%, #fff 0 15%, transparent 16%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.52));
  box-shadow: 0 14px 30px rgba(36, 36, 42, 0.17);
  content: "";
}

.mine-feed-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 0 2px;
}

.mine-feed-copy strong,
.mine-feed-copy small,
.mine-feed-copy em {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mine-feed-copy strong {
  display: -webkit-box;
  font-size: 12px;
  line-height: 1.25;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.mine-feed-copy small,
.mine-feed-copy em {
  white-space: nowrap;
}

.mine-feed-copy small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.mine-feed-copy em {
  color: var(--primary-strong);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

.mine-list-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  min-height: 50px;
  padding: 0 14px;
  border: 0;
  border-top: 1px solid var(--line);
  background: var(--surface);
  text-align: left;
}

.mine-list-row span {
  min-width: 0;
  overflow: hidden;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mine-list-row strong {
  color: var(--primary-strong);
  font-size: 13px;
}

.mine-list-row b {
  color: var(--muted);
}

.home-brand-bar {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  min-height: 38px;
  padding: 2px 2px 6px;
}

.home-brand-bar > div:not(.home-symbol) {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.home-symbol {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: #173f3a;
  color: #fff;
  font-size: 17px;
  font-weight: 900;
}

.home-brand-bar h1 {
  flex: 0 0 auto;
  margin: 0;
  font-size: 19px;
  line-height: 1.05;
}

.home-brand-bar p {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.today-card {
  display: grid;
  gap: 14px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 8px 20px rgba(36, 36, 42, 0.06);
}

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

.today-total {
  display: grid;
  min-width: 74px;
  min-height: 58px;
  place-items: center;
  padding: 8px;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--primary-strong);
}

.today-total strong,
.today-total span {
  display: block;
  text-align: center;
}

.today-total strong {
  font-size: 24px;
  line-height: 1;
}

.today-total span {
  margin-top: 4px;
  font-size: 11px;
  font-weight: 900;
}

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

.today-stats div {
  min-height: 62px;
  padding: 10px 6px;
  border: 1px solid rgba(221, 229, 223, 0.92);
  border-radius: 8px;
  background: #fbfcfa;
}

.today-stats strong,
.today-stats span {
  display: block;
  text-align: center;
}

.today-stats strong {
  margin-top: 7px;
  font-size: 19px;
  line-height: 1.05;
}

.today-stats span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.3;
}

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

.shortcut-card {
  display: grid;
  gap: 7px;
  min-height: 76px;
  place-items: center;
  padding: 10px 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 8px 18px rgba(36, 36, 42, 0.05);
}

.shortcut-card span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--primary-strong);
  font-weight: 900;
}

.shortcut-card strong {
  font-size: 12px;
  line-height: 1.25;
  text-align: center;
}

.home-block {
  display: grid;
  gap: 10px;
  padding-top: 8px;
}

.feed-count {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.feed-filter {
  display: flex;
  gap: 8px;
  margin: 0 -12px;
  padding: 0 12px 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.feed-filter::-webkit-scrollbar {
  display: none;
}

.feed-chip {
  flex: 0 0 auto;
  min-width: 58px;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.feed-chip.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.filters {
  position: sticky;
  top: 62px;
  z-index: 18;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0 -12px 16px;
  padding: 10px 12px 12px;
  border-bottom: 1px solid rgba(221, 229, 223, 0.86);
  background: rgba(248, 250, 247, 0.95);
  backdrop-filter: blur(16px);
}

.search-field {
  position: relative;
  grid-column: 1 / -1;
}

.search-field span::before {
  position: absolute;
  top: 50%;
  left: 14px;
  width: 12px;
  height: 12px;
  border: 2px solid var(--muted);
  border-radius: 50%;
  content: "";
  transform: translateY(-56%);
}

.search-field span::after {
  position: absolute;
  top: 29px;
  left: 25px;
  width: 8px;
  height: 2px;
  border-radius: 999px;
  background: var(--muted);
  content: "";
  transform: rotate(45deg);
}

.search-field input,
label select,
.section-head select {
  width: 100%;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  outline: none;
}

.search-field input {
  padding: 0 14px 0 38px;
}

label {
  display: grid;
  gap: 5px;
  min-width: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

label select,
.section-head select {
  overflow: hidden;
  padding: 0 8px;
  text-overflow: ellipsis;
}

.search-field input:focus,
select:focus,
button:focus-visible {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(20, 122, 112, 0.14);
}

.quick-stats {
  display: none;
}

.catalog-panel {
  min-width: 0;
}

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

.section-head.compact {
  align-items: start;
  margin-bottom: 12px;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--primary-strong);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1,
h2 {
  margin: 0;
  line-height: 1.12;
}

h1 {
  font-size: 25px;
}

h2 {
  font-size: 23px;
}

.segmented {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 4px;
  min-height: 36px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.segment {
  min-width: 58px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.segment.is-active {
  background: var(--primary);
  color: #fff;
}

.result-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 28px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
}

.text-button {
  border: 0;
  background: transparent;
  color: var(--primary-strong);
  font-weight: 900;
}

.figure-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.figure-card {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 8px 20px rgba(36, 36, 42, 0.06);
}

.figure-art {
  position: relative;
  min-height: 174px;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 16%, rgba(255, 255, 255, 0.75), transparent 23%),
    linear-gradient(145deg, var(--tone-a), var(--tone-b));
}

.figure-art::before {
  position: absolute;
  inset: 20% 24% 18%;
  border-radius: 999px 999px 24px 24px;
  background:
    radial-gradient(circle at 50% 22%, #fff 0 15%, transparent 16%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.52));
  box-shadow:
    0 14px 34px rgba(36, 36, 42, 0.18),
    inset 0 -18px 32px rgba(36, 36, 42, 0.08);
  content: "";
}

.figure-art::after {
  position: absolute;
  right: 12px;
  bottom: 13px;
  left: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(36, 36, 42, 0.16);
  content: "";
}

.figure-badge-row {
  position: absolute;
  top: 8px;
  right: 8px;
  left: 8px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  max-width: 100%;
  padding: 4px 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  font-size: 11px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.badge.status-open {
  color: #0d5f57;
}

.badge.status-delayed {
  color: #a34515;
}

.badge.status-released {
  color: #54506f;
}

.badge.status-announced {
  color: #7b315d;
}

.favorite-button {
  display: grid;
  width: 31px;
  height: 31px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #6f6a62;
  font-size: 17px;
  line-height: 1;
}

.favorite-button.is-active {
  background: var(--gold);
  color: #3b2b03;
}

.figure-card-body {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 11px;
}

.figure-title {
  display: grid;
  gap: 4px;
  min-height: 49px;
}

.figure-title h3 {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  font-size: 15px;
  line-height: 1.28;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.figure-title span {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.meta-grid div {
  min-height: 45px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fafbf8;
}

.meta-grid span,
.info-list dt {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.meta-grid strong,
.info-list dd {
  display: block;
  overflow: hidden;
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.28;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
  align-items: center;
}

.primary-button,
.ghost-button {
  min-height: 36px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 900;
}

.primary-button {
  border: 1px solid var(--primary);
  background: var(--primary);
  color: #fff;
}

.primary-button:hover {
  background: var(--primary-strong);
}

.ghost-button {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}

.profile-card,
.collection-section,
.future-section {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 8px 20px rgba(36, 36, 42, 0.06);
}

.profile-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 16px;
}

.profile-avatar {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 8px;
  background: #173f3a;
  color: #fff;
  font-size: 24px;
  font-weight: 900;
}

.profile-meta {
  min-width: 0;
}

.profile-meta h2 {
  margin-bottom: 6px;
}

.profile-meta span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.profile-count {
  display: grid;
  min-width: 54px;
  min-height: 54px;
  place-items: center;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
}

.profile-count strong,
.profile-count span {
  display: block;
  text-align: center;
}

.profile-count strong {
  font-size: 20px;
  line-height: 1;
}

.profile-count span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.collection-section {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.future-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 12px;
}

.future-card {
  min-height: 74px;
  padding: 12px;
  border: 1px dashed #c9d3cc;
  border-radius: 8px;
  background: #fbfcfa;
}

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

.future-card strong {
  font-size: 15px;
}

.future-card span {
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.collection-list {
  display: grid;
  gap: 9px;
}

.collection-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 62px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
}

.collection-thumb {
  width: 44px;
  height: 44px;
  border-radius: 7px;
  background: linear-gradient(145deg, var(--tone-a), var(--tone-b));
}

.collection-main {
  min-width: 0;
  padding: 0;
  text-align: left;
}

.collection-item strong,
.collection-item span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.collection-item strong {
  font-size: 13px;
}

.collection-item span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.mini-button {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--muted);
  font-weight: 900;
}

.empty-state {
  min-height: 120px;
  padding: 22px 16px;
  border: 1px dashed #c9d3cc;
  border-radius: 8px;
  color: var(--muted);
  line-height: 1.6;
  text-align: center;
}

.figure-grid > .empty-state {
  grid-column: 1 / -1;
}

.page-band {
  position: relative;
  border-top: 1px solid var(--line);
  background: var(--screen);
}

.page-band.soft {
  background: #f9faf7;
}

.band-inner {
  width: 100%;
  margin: 0 auto;
  padding: 26px 12px 32px;
}

.section-head select {
  width: 132px;
}

.calendar-layout {
  display: grid;
  gap: 12px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.calendar-cell {
  min-height: 62px;
  padding: 5px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.calendar-cell:nth-child(7n) {
  border-right: 0;
}

.calendar-weekday {
  min-height: 30px;
  padding: 8px 2px;
  background: #eef7f4;
  color: var(--primary-strong);
  font-size: 11px;
  font-weight: 900;
  text-align: center;
}

.calendar-day {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.calendar-event {
  display: block;
  width: 100%;
  min-height: 20px;
  margin-top: 4px;
  padding: 4px;
  overflow: hidden;
  border: 0;
  border-left: 3px solid var(--primary);
  border-radius: 6px;
  background: #f2f8f6;
  color: var(--ink);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.25;
  text-align: left;
  text-overflow: ellipsis;
}

.calendar-event.status-delayed {
  border-left-color: var(--coral);
  background: #fff2f3;
}

.calendar-event.status-announced {
  border-left-color: var(--violet);
  background: #f4f1ff;
}

.calendar-list {
  display: grid;
  gap: 9px;
}

.release-item,
.news-item {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.release-item header,
.news-item header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.release-item h3,
.news-item h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.3;
}

.release-item p,
.news-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.52;
}

.date-chip {
  flex: 0 0 auto;
  min-width: 58px;
  padding: 6px 7px;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--primary-strong);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.news-timeline {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.news-item {
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  overflow: hidden;
  min-height: 190px;
  border-top: 4px solid var(--primary);
  box-shadow: 0 8px 20px rgba(36, 36, 42, 0.06);
  cursor: pointer;
}

.news-item:focus-visible {
  outline: 3px solid rgba(20, 122, 112, 0.18);
  outline-offset: 2px;
}

.news-item[data-kind="开订"] {
  border-top-color: var(--primary);
}

.news-item[data-kind="延期"] {
  border-top-color: var(--coral);
}

.news-item[data-kind="新企划"],
.news-item[data-kind="再版"] {
  border-top-color: var(--violet);
}

.news-item[data-kind="官图"],
.news-item[data-kind="出荷"],
.news-item[data-kind="截止"] {
  border-top-color: var(--gold);
}

.feed-day {
  display: grid;
  gap: 10px;
}

.date-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.date-divider::before,
.date-divider::after {
  flex: 1;
  height: 1px;
  background: var(--line);
  content: "";
}

.date-divider span {
  flex: 0 0 auto;
}

.feed-image {
  position: relative;
  min-height: 190px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 16%, rgba(255, 255, 255, 0.75), transparent 23%),
    linear-gradient(145deg, var(--tone-a), var(--tone-b));
}

.feed-image::before {
  position: absolute;
  inset: 17% 27% 12%;
  border-radius: 999px 999px 24px 24px;
  background:
    radial-gradient(circle at 50% 22%, #fff 0 15%, transparent 16%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.52));
  box-shadow:
    0 16px 38px rgba(36, 36, 42, 0.2),
    inset 0 -18px 32px rgba(36, 36, 42, 0.08);
  content: "";
}

.feed-kind {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
}

.feed-body {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 10px;
  min-width: 0;
  padding: 11px 11px 10px;
}

.feed-text-main {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.feed-text-main h3 {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.32;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.feed-text-main p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  padding: 8px;
  border-radius: 8px;
  background: #f6f8f4;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.feed-facts {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.feed-facts span {
  min-width: 0;
  max-width: 50%;
  overflow: hidden;
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fbfcfa;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feed-facts span:not(:last-child)::after {
  content: none;
}

.feed-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 27px;
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.feed-footer span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.feed-footer .text-button {
  flex: 0 0 auto;
  padding: 0;
  font-size: 12px;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 38;
  background: rgba(22, 25, 25, 0.38);
}

.detail-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 42;
  width: min(100%, var(--app-width));
  margin: 0 auto;
  overflow-y: auto;
  padding: 14px 14px 24px;
  background: var(--screen);
  box-shadow: var(--shadow);
  transform: translateY(104%);
  transition: transform 190ms ease;
}

.detail-drawer.is-open {
  transform: translateY(0);
}

.drawer-close {
  position: sticky;
  top: 0;
  z-index: 2;
  display: grid;
  width: 38px;
  height: 38px;
  margin-left: auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  font-size: 22px;
}

.detail-cover {
  min-height: 360px;
  margin-top: 8px;
  border-radius: 8px;
}

.detail-title {
  display: grid;
  gap: 8px;
  margin: 18px 0;
}

.detail-title h2 {
  line-height: 1.18;
}

.detail-subtitle {
  color: var(--muted);
  line-height: 1.5;
}

.detail-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-bottom: 14px;
}

.info-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.info-list div {
  min-height: 62px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.detail-note {
  margin-top: 14px;
  padding: 13px;
  border-radius: 8px;
  background: #f4f7f1;
  color: var(--muted);
  line-height: 1.6;
}

body.drawer-open {
  overflow: hidden;
}

@media (max-width: 370px) {
  .figure-card {
    grid-template-columns: 106px minmax(0, 1fr);
  }

  .figure-art {
    min-height: 168px;
  }

  .meta-grid {
    grid-template-columns: 1fr;
  }

  .meta-grid div:nth-child(n + 3) {
    display: none;
  }

  .segment {
    min-width: 52px;
  }

  .news-item {
    grid-template-columns: 116px minmax(0, 1fr);
  }

  .feed-image {
    min-height: 176px;
  }

  .feed-text-main p {
    display: none;
  }

  .info-list {
    grid-template-columns: 1fr;
  }
}
