:root {
  --bg: #0d0d10;
  --panel: rgba(25, 26, 31, 0.9);
  --panel-strong: #17181d;
  --panel-soft: #1e2028;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f6f7fb;
  --muted: #9498a8;
  --green: #47d37b;
  --red: #ff5f73;
  --gold: #f1d483;
  --blue: #4da1ff;
  --shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --content-max: 1520px;
  --grid-gap: 24px;
  --font-display: "Space Grotesk", "Segoe UI Variable", "Noto Sans KR", sans-serif;
  --font-body: "Satoshi", "Pretendard Variable", "Noto Sans KR", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  background:
    radial-gradient(circle at top left, rgba(104, 146, 255, 0.12), transparent 22%),
    radial-gradient(circle at bottom right, rgba(118, 255, 186, 0.09), transparent 20%),
    linear-gradient(180deg, #111216 0%, #0a0b0e 100%);
  color: var(--text);
}

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

button {
  cursor: pointer;
}

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

.page-shell {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 20px 16px 24px;
}

.topbar,
.filterbar,
.footerbar,
.section-block,
.work-card,
.edition-card {
  backdrop-filter: blur(18px);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(17, 18, 23, 0.84);
  box-shadow: var(--shadow);
}

.topbar__left,
.topbar__right,
.filterbar,
.pill-group,
.toolbar-actions,
.footerbar,
.footerbar__links,
.footerbar__meta,
.section-heading {
  display: flex;
  align-items: center;
}

.topbar__left,
.topbar__right {
  gap: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: linear-gradient(135deg, #4da1ff, #87ffd0);
  color: #071118;
  font-weight: 800;
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.search {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: min(560px, 56vw);
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}

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

.search input::placeholder {
  color: #8b8fa0;
}

.search__icon {
  width: 14px;
  height: 14px;
  border: 2px solid #8b8fa0;
  border-radius: 50%;
  position: relative;
}

.search__icon::after {
  content: "";
  position: absolute;
  right: -5px;
  bottom: -5px;
  width: 6px;
  height: 2px;
  border-radius: 999px;
  background: #8b8fa0;
  transform: rotate(45deg);
}

.search__hint {
  padding: 1px 7px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-weight: 700;
}

.primary-button,
.ghost-button,
.icon-button,
.toggle-button,
.pill {
  border: 1px solid var(--border);
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
}

.primary-button:hover,
.ghost-button:hover,
.icon-button:hover,
.toggle-button:hover,
.pill:hover,
.control-button:hover {
  transform: translateY(-1px);
}

.primary-button:focus-visible,
.ghost-button:focus-visible,
.icon-button:focus-visible,
.toggle-button:focus-visible,
.pill:focus-visible,
.control-button:focus-visible,
.search input:focus-visible {
  outline: 2px solid rgba(77, 161, 255, 0.8);
  outline-offset: 2px;
}

.primary-button {
  padding: 12px 16px;
  border-radius: 12px;
  color: #0c1018;
  background: linear-gradient(135deg, #ffffff, #d8e9ff);
  font-weight: 700;
}

.primary-button--wide {
  width: 100%;
  justify-content: center;
}

.ghost-button,
.toggle-button,
.icon-button {
  padding: 11px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
}

.ghost-button--small {
  padding: 10px 12px;
}

.ghost-button--danger {
  color: #ffd4da;
  border-color: rgba(255, 95, 115, 0.28);
  background: rgba(255, 95, 115, 0.08);
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
}

.icon-button--small {
  min-width: 40px;
  min-height: 40px;
  padding: 8px 11px;
  color: #d9dceb;
}

.avatar-ring {
  width: 18px;
  height: 18px;
  border: 2px solid #dce5ff;
  border-radius: 50%;
  position: relative;
}

.avatar-ring::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -7px;
  width: 18px;
  height: 10px;
  border: 2px solid #dce5ff;
  border-top: 0;
  border-radius: 0 0 999px 999px;
  transform: translateX(-50%);
}

.filterbar {
  justify-content: space-between;
  gap: 16px;
  margin: 16px 0 20px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(19, 20, 25, 0.84);
}

.pill-group {
  gap: 10px;
  flex-wrap: wrap;
}

.pill-group--chains {
  justify-content: flex-start;
  flex: 1;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: #c7cad6;
}

.pill--active,
.toggle-button--active {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text);
}

.pill__dot,
.chain-dot,
.token-card__icon,
.collection-card__icon,
.ranking-row__icon {
  flex: 0 0 auto;
  border-radius: 50%;
}

.pill__dot,
.chain-dot {
  width: 10px;
  height: 10px;
}

.chain-dot {
  width: 18px;
  height: 18px;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.12);
}

.layout-grid {
  display: grid;
  grid-template-columns: repeat(2, 4px);
  gap: 2px;
}

.layout-grid::before,
.layout-grid::after {
  content: "";
}

.layout-grid span,
.layout-grid::before,
.layout-grid::after {
  width: 4px;
  height: 4px;
  background: currentColor;
  border-radius: 1px;
}

.layout-grid::before {
  box-shadow:
    6px 0 0 currentColor,
    0 6px 0 currentColor,
    6px 6px 0 currentColor;
}

.layout-grid--wide::before {
  width: 6px;
  box-shadow:
    8px 0 0 currentColor,
    0 6px 0 currentColor,
    8px 6px 0 currentColor;
}

.layout-grid--stack::before {
  box-shadow:
    0 6px 0 currentColor,
    0 12px 0 currentColor;
}

.dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: var(--grid-gap);
  align-items: start;
}

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

.content-column {
  display: grid;
  gap: var(--grid-gap);
}

.hero-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(38, 39, 46, 0.82), rgba(18, 19, 24, 0.94));
  overflow: hidden;
  min-height: 430px;
  box-shadow: var(--shadow);
}

.hero-card__backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center top, rgba(255, 255, 255, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 50%),
    linear-gradient(180deg, rgba(15, 15, 18, 0), rgba(8, 8, 11, 0.78));
  opacity: 0.75;
  pointer-events: none;
}

.hero-card__content,
.hero-card__visual,
.hero-card__controls {
  position: relative;
  z-index: 1;
}

.hero-card__content {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 16px;
  min-width: 0;
}

.hero-card__meta,
.section-heading,
.sidebar-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.eyebrow {
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-card__stats,
.section-heading p,
.collection-card p,
.sidebar-card p,
.ranking-row__sub,
.hero-card__author {
  color: var(--muted);
}

.hero-card__title,
.section-heading h2,
.sidebar-panel__header h2,
.sidebar-card h3 {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: -0.04em;
}

.hero-card__title {
  font-size: clamp(2.4rem, 3vw, 4rem);
  line-height: 0.96;
  max-width: 12ch;
}

.hero-card__author {
  margin: 0;
  font-weight: 600;
}

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

.metric-box {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
}

.metric-box__label {
  display: block;
  margin-bottom: 8px;
  color: #a5a9b9;
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.metric-box strong {
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

.hero-card__visual {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.hero-stage {
  display: grid;
  place-items: center;
  min-height: 320px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.02)),
    linear-gradient(180deg, rgba(20, 20, 25, 0.15), rgba(12, 12, 16, 0.72));
}

.hero-stage__frame {
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%, 560px);
  height: 150px;
  border: 3px solid rgba(10, 10, 10, 0.5);
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.08), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(30, 31, 37, 0.08));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 20px 40px rgba(0, 0, 0, 0.28);
}

.hero-stage__wordmark {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.06em;
  color: rgba(5, 7, 11, 0.88);
  text-transform: lowercase;
}

.hero-stage__silhouette {
  position: absolute;
  right: 18%;
  width: 100px;
  height: 140px;
  border-radius: 42% 42% 48% 48% / 28% 28% 55% 55%;
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.18), transparent 16%),
    linear-gradient(180deg, rgba(10, 10, 10, 0.88), rgba(43, 46, 52, 0.25));
  filter: blur(0.3px);
}

.hero-stage__silhouette::before,
.hero-stage__silhouette::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: inherit;
}

.hero-stage__silhouette::before {
  top: -20px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
}

.hero-stage__silhouette::after {
  bottom: -6px;
  width: 32px;
  height: 56px;
  clip-path: polygon(32% 0, 68% 0, 100% 100%, 0 100%);
}

.hero-thumbs {
  justify-content: flex-end;
  gap: 10px;
}

.section-block,
.work-card,
.edition-card {
  border: 1px solid var(--border);
  background: rgba(18, 19, 24, 0.88);
  box-shadow: var(--shadow);
}

.section-block {
  border-radius: var(--radius-lg);
  padding: 18px;
}

.section-heading {
  margin-bottom: 18px;
}

.section-heading h2 {
  font-size: 1.7rem;
}

.section-heading p {
  margin: 4px 0 0;
}

.work-grid,
.edition-rail {
  display: grid;
  gap: 14px;
}

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

.work-card {
  appearance: none;
  padding: 0;
  width: 100%;
  text-align: left;
  overflow: hidden;
  border-radius: 22px;
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.work-card:hover {
  transform: translateY(-2px);
}

.work-card--active {
  border-color: rgba(255, 255, 255, 0.26);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.42);
}

.work-card__preview,
.edition-card__preview {
  border-radius: 18px;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.2), transparent 18%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent 45%),
    var(--preview-color, linear-gradient(135deg, #1e2029, #111216));
}

.work-card__preview {
  position: relative;
  min-height: 220px;
  border-radius: 0;
  overflow: hidden;
}

.work-card__image,
.detail-art__image,
.edition-chip__photo,
.dashboard-art-preview__image,
.dashboard-work-item__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-card__preview::after,
.edition-card__preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.08) 65%, rgba(0, 0, 0, 0.32) 100%),
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.18), transparent 18%);
}

.work-card__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(14, 15, 19, 0.68);
  color: #f0f2fb;
  font-size: 0.8rem;
}

.work-card__count {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 1;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(10, 10, 14, 0.68);
  color: #f0f2fb;
  font-size: 0.8rem;
}

.work-card__body {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.work-card__title,
.edition-card__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: -0.03em;
}

.work-card__caption {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.work-card__meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: #cbd1e3;
  font-size: 0.9rem;
}

.detail-panel {
  margin-top: 18px;
}

.detail-page-heading h1 {
  margin: 8px 0 0;
  font-family: var(--font-display);
  letter-spacing: -0.04em;
}

.detail-page-heading p {
  margin: 8px 0 0;
  color: var(--muted);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr) 320px;
  gap: 18px;
}

.detail-summary,
.edition-browser,
.edition-detail,
.detail-empty {
  border: 1px solid var(--border);
  border-radius: 24px;
  background: rgba(16, 17, 22, 0.92);
  box-shadow: var(--shadow);
}

.detail-summary {
  overflow: hidden;
}

.detail-art {
  position: relative;
  min-height: 280px;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.2), transparent 18%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent 45%),
    var(--preview-color, linear-gradient(135deg, #1e2029, #111216));
}

.detail-art::after,
.edition-chip__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.12) 65%, rgba(0, 0, 0, 0.34) 100%),
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.18), transparent 18%);
}

.detail-art__sheet {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 1;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(10, 10, 14, 0.7);
  font-size: 0.86rem;
}

.detail-summary__content,
.edition-browser,
.edition-detail,
.detail-empty {
  padding: 20px;
}

.detail-summary__content h3,
.edition-browser__header h3,
.edition-detail h3,
.detail-empty h3 {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: -0.04em;
}

.detail-summary__content p,
.edition-browser__header p,
.detail-empty p {
  color: var(--muted);
  line-height: 1.7;
}

.detail-summary__stats {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.detail-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.detail-gallery__thumb {
  width: 100%;
  height: 72px;
  border-radius: 14px;
  object-fit: cover;
}

.detail-summary__stats span,
.edition-detail__status {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #ebedf7;
  font-size: 0.9rem;
}

.edition-browser {
  display: grid;
  gap: 16px;
}

.edition-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  align-content: start;
}

.edition-chip {
  appearance: none;
  position: relative;
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  text-align: left;
}

.edition-chip--sold {
  border-color: rgba(71, 211, 123, 0.32);
}

.edition-chip--active {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
}

.edition-chip__image {
  position: relative;
  min-height: 72px;
  border-radius: 14px;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.2), transparent 18%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent 45%),
    var(--preview-color, linear-gradient(135deg, #1e2029, #111216));
}

.edition-chip__label {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.edition-detail {
  display: grid;
  gap: 14px;
  align-content: start;
}

.is-sold {
  color: var(--green);
}

.is-available {
  color: #d9dceb;
}

.edition-detail__list {
  margin: 0;
  display: grid;
  gap: 14px;
}

.edition-detail__list div {
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.edition-detail__list dt {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.84rem;
}

.edition-detail__list dd {
  margin: 0;
  line-height: 1.6;
}

.detail-empty {
  text-align: center;
}

.footerbar {
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(13, 14, 19, 0.86);
}

.footerbar__links,
.footerbar__meta {
  gap: 18px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 1280px) {
  .dashboard {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 980px) {
  .topbar,
  .filterbar,
  .section-heading,
  .footerbar {
    gap: 14px;
  }

  .topbar,
  .filterbar,
  .section-heading,
  .footerbar {
    flex-direction: column;
    align-items: stretch;
  }

  .topbar__left,
  .topbar__right {
    width: 100%;
    flex-wrap: wrap;
  }

  .search {
    min-width: 0;
    width: 100%;
  }

  .toolbar-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

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

  .edition-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .page-shell {
    padding: 14px 12px 20px;
  }

  .brand {
    width: 100%;
    justify-content: center;
  }

  .topbar__right {
    justify-content: space-between;
  }

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

}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}

.storage-pill {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-size: 0.92rem;
}

.storage-pill.is-saved {
  color: #dff7e8;
  border-color: rgba(71, 211, 123, 0.28);
  background: rgba(71, 211, 123, 0.12);
}

.dashboard-screen {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.dashboard-sidebar,
.dashboard-editor {
  min-width: 0;
}

.dashboard-sidebar,
.dashboard-editor,
.dashboard-panel,
.dashboard-utility {
  display: grid;
  gap: 18px;
  align-content: start;
}

.dashboard-panel__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.dashboard-panel__header h1,
.dashboard-panel__header h2 {
  margin: 8px 0 0;
  font-family: var(--font-display);
  letter-spacing: -0.04em;
}

.dashboard-panel__header p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.dashboard-warning {
  margin: 12px 0 0;
  padding: 12px 14px;
  border: 1px solid rgba(241, 212, 131, 0.24);
  border-radius: 14px;
  background: rgba(241, 212, 131, 0.08);
  color: #f6e5ac;
  line-height: 1.7;
}

.dashboard-warning code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.dashboard-panel__header--split {
  align-items: center;
}

.dashboard-search {
  min-width: 0;
  width: 100%;
}

.dashboard-work-list {
  display: grid;
  gap: 10px;
  max-height: calc(100vh - 260px);
  padding-right: 4px;
  overflow: auto;
}

.dashboard-work-item {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  text-align: left;
}

.dashboard-work-item--active {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.07);
}

.dashboard-work-item__preview,
.dashboard-art-preview {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.2), transparent 18%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent 45%),
    var(--preview-color, linear-gradient(135deg, #1e2029, #111216));
}

.dashboard-work-item__preview {
  position: relative;
  min-height: 58px;
  border-radius: 14px;
  overflow: hidden;
}

.dashboard-work-item__body {
  display: grid;
  gap: 4px;
}

.dashboard-work-item__body strong {
  font-family: var(--font-display);
  font-weight: 700;
}

.dashboard-work-item__body span {
  color: var(--muted);
  font-size: 0.9rem;
}

.dashboard-art-preview {
  position: relative;
  width: 120px;
  min-height: 120px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

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

.form-grid--compact {
  margin-top: 18px;
}

.field-group {
  display: grid;
  gap: 8px;
  min-width: 0;
}

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

.field-group__label {
  color: #dce1f0;
  font-size: 0.92rem;
}

.field-group input,
.field-group select,
.field-group textarea,
.raw-preview {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

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

.field-group input:focus-visible,
.field-group select:focus-visible,
.field-group textarea:focus-visible {
  outline: 2px solid rgba(77, 161, 255, 0.8);
  outline-offset: 2px;
}

.field-group input:disabled,
.field-group select:disabled,
.field-group textarea:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.raw-preview {
  min-height: 50px;
  color: #dce1f0;
  line-height: 1.6;
}

.dashboard-panel__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.file-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

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

.work-image-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 10px;
}

.work-image-tile {
  display: grid;
  gap: 8px;
}

.work-image-tile__image {
  width: 100%;
  height: 88px;
  border-radius: 14px;
  object-fit: cover;
}

.work-image-tile__remove {
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

#dashboard-status-text[data-tone="muted"] {
  color: var(--muted);
}

#dashboard-status-text[data-tone="saved"] {
  color: #dff7e8;
}

.dashboard-edition-grid {
  max-height: 360px;
  overflow: auto;
  padding-right: 4px;
}

@media (max-width: 1280px) {
  .dashboard-screen {
    grid-template-columns: 1fr;
  }

  .dashboard-work-list {
    max-height: none;
  }
}

@media (max-width: 980px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-panel__header,
  .dashboard-panel__header--split {
    flex-direction: column;
    align-items: stretch;
  }

  .dashboard-art-preview {
    width: 100%;
    min-height: 180px;
  }
}
