main {
  max-width: 1256px;
  margin: auto;
  padding: 0 clamp(22px, 3vw, 48px) 40px;
  min-height: calc(100dvh - 200px);
}
.page-hero {
  text-align: center;
  padding: 38px 0 26px;
}
.eyebrow {
  display: block;
  color: var(--highlight);
  font-size: 13px;
  margin-bottom: 10px;
}
.page-hero h1 {
  font-size: clamp(25px, 2.4vw, 32px);
  line-height: 1.35;
  font-weight: 700;
}
.page-hero p {
  max-width: 660px;
  margin: 11px auto 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}
.page-hero.align-left {
  text-align: left;
}
.align-left p {
  margin-left: 0;
}
.content-section {
  margin-top: 30px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 18px;
}
.section-heading h2 {
  font-size: 18px;
  font-weight: 600;
}
.section-kicker {
  display: block;
  font-size: 13px;
  color: var(--faint);
  margin-bottom: 5px;
}
footer {
  max-width: 1256px;
  margin: auto;
  padding: 0 clamp(22px, 3vw, 48px) 24px;
  display: flex;
  justify-content: space-between;
  color: var(--faint);
  font-size: 13px;
  gap: 20px;
}
.page-loading { max-width: 820px; margin: auto; padding: 26px 0 40px; }
.page-skeleton span { display: block; background: linear-gradient(110deg,#e9eef4 25%,#f7f9fc 40%,#e9eef4 55%); background-size: 200% 100%; animation: studio-sweep 1.6s linear infinite; border-radius: 6px; }
.page-skeleton .skeleton-title { width: 38%; height: 29px; margin-bottom: 14px; }
.page-skeleton .skeleton-subtitle { width: 52%; height: 12px; margin-bottom: 28px; }
.skeleton-form { border: 1px solid var(--line); background: white; border-radius: 12px; padding: 24px; }
.skeleton-form span:first-child { width: 24%; height: 15px; margin-bottom: 20px; }
.skeleton-form span:nth-child(2) { width: 100%; height: 130px; margin-bottom: 20px; }
.skeleton-form span:last-child { width: 34%; height: 42px; margin-left: auto; }
.skeleton-cards { display: none; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 18px; }
.skeleton-cards span { height: 210px; }
.page-loading[data-kind="works"],.page-loading[data-kind="assets"] { max-width: none; }
.page-loading:is([data-kind="works"],[data-kind="assets"]) .skeleton-cards { display: grid; }
.page-loading:is([data-kind="works"],[data-kind="assets"]) .skeleton-form { display: none; }
.page-loading[aria-busy="false"] .page-skeleton { display: none; }
#page-load-error { margin: 15px 0; color: var(--muted); font-size: 14px; }
@keyframes studio-sweep { to { background-position: -200% 0; } }
@media(max-width:550px) { .page-loading { padding-top: 25px; } .skeleton-form { padding: 18px; } .skeleton-cards { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; } }
@media(prefers-reduced-motion:reduce) { .page-skeleton span { animation: none; } }
.empty-state {
  padding: 46px 20px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  font-size: 14px;
}
.message,
.form-message {
  padding: 12px 16px;
  margin: 15px 0 0;
  border-radius: 8px;
  color: var(--accent);
  background: var(--accent-soft);
  font-size: 13px;
}
.message.error,
.form-message.error {
  color: var(--danger);
  background: #fdf6f5;
}
.form-message {
  margin: 0 24px 20px;
}
.workflow-note {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin: 20px 0 30px;
  color: var(--faint);
  font-size: 13px;
}
.workflow-note b {
  font-weight: 400;
  color: #a0a9b5;
}
.filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.filter-tabs button {
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  padding: 7px 12px;
  font-size: 16px;
}
.filter-tabs button.active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}
.works-actions { display:flex; align-items:center; gap:8px; flex-shrink:0; }
.works-actions button { min-height:44px; }
