:root {
  color-scheme: light;
  --bg: #f7f4fb;
  --panel: #ffffff;
  --panel-soft: #fff7fb;
  --text: #241a2e;
  --muted: #75677e;
  --line: #eadff1;
  --primary: #7c3aed;
  --primary-dark: #5b21b6;
  --accent: #f973a6;
  --accent-soft: #ffe5ef;
  --shadow: 0 20px 45px rgba(55, 35, 85, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(249, 115, 166, 0.20), transparent 34rem),
    radial-gradient(circle at top right, rgba(124, 58, 237, 0.18), transparent 32rem),
    var(--bg);
  color: var(--text);
  font-family: "Segoe UI", "Hiragino Sans", "Yu Gothic UI", sans-serif;
}

.site-header {
  padding: 64px 24px 40px;
}

.header-inner,
.page {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.eyebrow {
  width: fit-content;
  margin: 0 0 14px;
  padding: 6px 12px;
  border: 1px solid rgba(124, 58, 237, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--primary-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 12px;
  font-size: clamp(2.5rem, 6vw, 5.2rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.lead {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

.page {
  padding-bottom: 56px;
}

.dashboard {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.metric-card {
  padding: 22px;
  border: 1px solid rgba(234, 223, 241, 0.86);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.metric-label,
.metric-card small,
.work-meta,
.circle-name,
dt,
.toolbar p,
.status-message {
  color: var(--muted);
}

.metric-label {
  display: block;
  margin-bottom: 10px;
  font-size: 0.82rem;
  font-weight: 700;
}

.metric-card strong {
  display: block;
  margin-bottom: 4px;
  color: var(--primary-dark);
  font-size: 2rem;
  line-height: 1;
}

.toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
}

.toolbar h2 {
  margin-bottom: 6px;
  font-size: 1.4rem;
}

.toolbar p {
  margin-bottom: 0;
}

.filter-label {
  display: grid;
  gap: 8px;
  min-width: 180px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel-soft);
  color: var(--text);
  font: inherit;
  padding: 12px 14px;
}

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

.work-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: 0 16px 34px rgba(55, 35, 85, 0.08);
}

.cover-placeholder {
  display: grid;
  min-height: 168px;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(124, 58, 237, 0.95), rgba(249, 115, 166, 0.82)),
    repeating-linear-gradient(45deg, transparent 0 14px, rgba(255, 255, 255, 0.16) 14px 28px);
  color: #ffffff;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.cover-placeholder span {
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.work-body {
  padding: 20px;
}

.work-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 0.82rem;
  font-weight: 700;
}

.work-card h3 {
  margin-bottom: 8px;
  font-size: 1.15rem;
  line-height: 1.45;
}

.circle-name {
  margin-bottom: 14px;
  font-size: 0.92rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.tags span {
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #a12b61;
  font-size: 0.78rem;
  font-weight: 700;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 0 0 16px;
}

.stats div {
  padding: 10px;
  border-radius: 16px;
  background: #faf7fd;
}

dt {
  font-size: 0.72rem;
  font-weight: 700;
}

dd {
  margin: 4px 0 0;
  font-weight: 800;
}

.sales-bar {
  overflow: hidden;
  height: 9px;
  border-radius: 999px;
  background: #f0e7f7;
}

.sales-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.status-message {
  margin: 22px 0 0;
  text-align: center;
}

@media (max-width: 900px) {
  .dashboard,
  .works-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .site-header {
    padding-top: 42px;
  }

  .dashboard,
  .works-grid {
    grid-template-columns: 1fr;
  }

  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }
}
