:root {
  color-scheme: dark;
  --ink: #f2f1ed;
  --muted: #aaa9a4;
  --line: #3b3d3f;
  --soft-line: #2d3032;
  --paper: #1b1d1f;
  --surface: #232628;
  --surface-hover: #282b2e;
  --field: #202224;
  --clay: #2a2c2d;
  --body-copy: #cbc9c3;
  --subtle-text: #858782;
  --orange: #f25a1f;
  --orange-dark: #d94710;
  --focus-ring: rgba(242, 90, 31, 0.2);
  --card-shadow: 0 13px 28px rgba(0, 0, 0, 0.28);
  --radius: 10px;
  --page-gutter: clamp(20px, 4vw, 64px);
  --content-width: 1440px;
}

html[data-theme="light"] {
  color-scheme: light;
  --ink: #171715;
  --muted: #686761;
  --line: #deddd8;
  --soft-line: #ecebe7;
  --paper: #ffffff;
  --surface: #ffffff;
  --surface-hover: #ffffff;
  --field: #ffffff;
  --clay: #f5f1eb;
  --body-copy: #4e4d49;
  --subtle-text: #85847f;
  --orange: #ed4f12;
  --orange-dark: #ce3d08;
  --focus-ring: rgba(23, 23, 21, 0.08);
  --card-shadow: 0 13px 28px rgba(23, 23, 21, 0.08);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
  transition: color 160ms ease, background-color 160ms ease;
}

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

button,
input {
  font: inherit;
}

button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.site-header {
  min-height: 76px;
  padding: 0 var(--page-gutter);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: auto auto minmax(240px, 520px) 1fr;
  align-items: center;
  gap: clamp(24px, 3vw, 52px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.site-logo {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  object-fit: contain;
  flex-shrink: 0;
}

.main-nav {
  display: flex;
  gap: 34px;
  font-size: 15px;
  font-weight: 600;
}

.main-nav a,
.login-link,
.footer-links a {
  transition: color 160ms ease;
}

.main-nav a:hover,
.login-link:hover,
.footer-links a:hover {
  color: var(--orange);
}

.search {
  position: relative;
  height: 43px;
  border: 1px solid var(--line);
  background: var(--field);
  border-radius: 7px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
}

.search:focus-within {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.search svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
}

.search input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 15px;
}

.search input::placeholder {
  color: var(--subtle-text);
}

.account-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 15px;
  font-weight: 600;
}

.account-profile-link {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 2px;
  font-size: 14px;
  font-weight: 800;
}

.account-profile-link small {
  color: var(--orange);
  font-size: 10px;
  font-weight: 800;
}

.logout-button {
  padding: 0;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.logout-button:hover {
  color: var(--orange);
}

.theme-toggle {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: var(--surface);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease;
}

.theme-toggle:hover {
  border-color: var(--orange);
  background: var(--surface-hover);
}

.theme-toggle svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button {
  display: inline-flex;
  min-height: 48px;
  padding: 0 24px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 6px;
  color: white;
  background: var(--orange);
  font-size: 16px;
  font-weight: 700;
  transition: background 160ms ease, transform 160ms ease;
}

.button:hover {
  background: var(--orange-dark);
  transform: translateY(-1px);
}

.button-small {
  min-height: 40px;
  padding: 0 19px;
  font-size: 14px;
}

.mobile-menu {
  display: none;
}

main {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 var(--page-gutter);
}

.hero {
  min-height: 470px;
  padding: 44px 0 38px;
  display: grid;
  grid-template-columns: minmax(500px, 0.86fr) minmax(520px, 1.34fr);
  align-items: center;
  gap: clamp(32px, 3.5vw, 54px);
}

.hero-copy {
  padding-bottom: 8px;
}

.hero h1 {
  max-width: 570px;
  margin: 0;
  font-size: clamp(48px, 4.3vw, 68px);
  line-height: 0.99;
  letter-spacing: -0.058em;
}

.hero-copy p {
  max-width: 460px;
  margin: 26px 0 30px;
  color: var(--body-copy);
  font-size: clamp(18px, 1.55vw, 22px);
  line-height: 1.5;
}

.hero-image {
  height: 370px;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--clay);
}

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

.catalog {
  padding: 10px 0 58px;
}

.section-heading {
  margin-bottom: 18px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.section-heading h2 {
  margin: 0;
  font-size: 25px;
  letter-spacing: -0.035em;
}

.section-heading a {
  color: var(--orange);
  font-size: 14px;
  font-weight: 700;
}

.section-heading a span {
  padding-left: 6px;
  font-size: 20px;
}

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

.model-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.save-button {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: white;
  background: rgba(27, 29, 31, 0.78);
  backdrop-filter: blur(6px);
  cursor: pointer;
}

.save-button:hover,
.save-button.is-saved {
  color: white;
  border-color: var(--orange);
  background: var(--orange);
}

.save-button svg {
  width: 18px;
  height: 18px;
  fill: transparent;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linejoin: round;
}

.save-button.is-saved svg {
  fill: currentColor;
}

.detail-save {
  margin-top: 12px;
}

.detail-save-button {
  position: static;
  width: 100%;
  min-height: 44px;
  display: flex;
  gap: 9px;
  color: var(--ink);
  border-color: var(--line);
  background: var(--surface);
  backdrop-filter: none;
  font-size: 14px;
  font-weight: 800;
}

.detail-save-button:hover,
.detail-save-button.is-saved {
  color: white;
  background: var(--orange);
}

.save-notice {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 20;
  max-width: 360px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  background: var(--surface);
  box-shadow: var(--card-shadow);
  font-size: 14px;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.save-notice.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.save-notice a {
  margin-left: 6px;
  color: var(--orange);
  font-weight: 800;
}

.model-card:hover {
  border-color: var(--muted);
  transform: translateY(-3px);
  box-shadow: var(--card-shadow);
}

.model-image {
  position: relative;
  aspect-ratio: 1.45 / 1;
  overflow: hidden;
  background: var(--clay);
}

.model-image img {
  position: absolute;
  width: 312%;
  height: 208%;
  max-width: none;
  object-fit: fill;
}

.model-image[data-slot="0"] img { left: -2%; top: -2%; }
.model-image[data-slot="1"] img { left: -106%; top: -2%; }
.model-image[data-slot="2"] img { left: -210%; top: -2%; }
.model-image[data-slot="3"] img { left: -2%; top: -106%; }
.model-image[data-slot="4"] img { left: -106%; top: -106%; }
.model-image[data-slot="5"] img { left: -210%; top: -106%; }
.model-image[data-slot="-1"] img {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.model-body {
  padding: 16px 17px 14px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.card-tags {
  padding: 0 17px 14px;
}

.tag-chip,
.suggested-tags button {
  min-height: 27px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--field);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
}

.tag-chip:hover,
.suggested-tags button:hover {
  color: white;
  border-color: var(--orange);
  background: var(--orange);
}

.tag-chip.is-active {
  color: white;
  border-color: var(--orange);
  background: var(--orange);
}

.tag-filters {
  margin: -16px 0 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.tag-filters .tag-chip {
  min-height: 34px;
  padding: 7px 12px;
  display: inline-flex;
  align-items: center;
  font-size: 12px;
}

.detail-tags {
  margin: -18px 0 30px;
}

.suggested-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.suggested-tags button {
  min-height: 30px;
}

.model-title {
  margin: 0;
  font-size: 17px;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.creator {
  margin: 9px 0 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.creator-profile-link {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.card-level {
  margin-left: auto;
  color: var(--orange);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.creator-avatar {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  overflow: hidden;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--paper);
  background: var(--ink);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

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

.model-stats {
  min-height: 43px;
  padding: 0 17px;
  border-top: 1px solid var(--soft-line);
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 12px;
}

.stat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.stat svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.loading-message,
.error-message {
  grid-column: 1 / -1;
  padding: 40px 0;
  color: var(--muted);
}

.detail-main {
  padding-top: 30px;
  padding-bottom: 70px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.back-link:hover {
  color: var(--orange);
}

.detail-loading {
  min-height: 480px;
  padding-top: 80px;
  color: var(--muted);
}

.model-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.48fr) minmax(320px, 0.72fr);
  align-items: start;
  gap: clamp(42px, 5vw, 76px);
}

.detail-preview {
  position: relative;
  aspect-ratio: 1.36 / 1;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--clay);
}

.detail-preview img {
  position: absolute;
  width: 312%;
  height: 208%;
  max-width: none;
  object-fit: fill;
}

.detail-preview[data-slot="0"] img { left: -2%; top: -2%; }
.detail-preview[data-slot="1"] img { left: -106%; top: -2%; }
.detail-preview[data-slot="2"] img { left: -210%; top: -2%; }
.detail-preview[data-slot="3"] img { left: -2%; top: -106%; }
.detail-preview[data-slot="4"] img { left: -106%; top: -106%; }
.detail-preview[data-slot="5"] img { left: -210%; top: -106%; }
.detail-preview[data-slot="-1"] img {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.detail-info {
  padding-top: 6px;
}

.detail-info h1 {
  margin: 0;
  font-size: clamp(38px, 4vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.052em;
}

.detail-creator {
  width: fit-content;
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 14px;
}

.detail-creator:hover strong {
  color: var(--orange);
}

.detail-creator strong {
  color: var(--ink);
}

.creator-support-button {
  width: fit-content;
  margin-top: 12px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: inline-block;
}

.creator-support-button:hover {
  border-color: var(--orange);
}

.detail-description {
  margin: 34px 0;
  color: var(--body-copy);
  font-size: 18px;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.detail-stats {
  margin: 0 0 28px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.level-label {
  padding-left: 9px;
  border-left: 1px solid var(--line);
  color: var(--orange);
  font-size: 12px;
  font-weight: 800;
}

.print-details {
  margin: 0 0 28px;
}

.print-details h2 {
  margin: 0 0 14px;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.print-details dl {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  background: var(--surface);
}

.print-details dl div {
  min-width: 0;
  padding: 15px;
}

.print-details dl div + div {
  border-left: 1px solid var(--line);
}

.print-details dt {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.print-details dd {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
}

.detail-stats div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.detail-stats dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.detail-stats dd {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
}

.download-button {
  width: 100%;
  gap: 10px;
}

.download-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.reward-note {
  margin: 17px 0 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.reward-mark {
  flex: 0 0 auto;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--paper);
  background: var(--ink);
  font-weight: 800;
}

.reward-note strong {
  color: var(--ink);
}

.download-status {
  min-height: 20px;
  margin: 13px 0 0;
  color: var(--orange-dark);
  font-size: 13px;
  font-weight: 700;
}

.comments-section {
  max-width: 900px;
  margin-top: 72px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}

.comments-heading {
  margin-bottom: 8px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.comments-heading h2 {
  margin: 0;
  font-size: 28px;
  letter-spacing: -0.035em;
}

.comments-heading p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.comment-form {
  margin: 24px 0 8px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.comment-form label {
  display: block;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 800;
}

.comment-form textarea {
  width: 100%;
  min-height: 92px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  outline: 0;
  color: var(--ink);
  background: var(--field);
  font: inherit;
  line-height: 1.5;
  resize: vertical;
}

.comment-form textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.comment-form > div {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.comment-form p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.comment-login {
  color: var(--orange);
  font-size: 14px;
  font-weight: 700;
}

.comment {
  padding: 24px 0;
  border-bottom: 1px solid var(--soft-line);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 13px;
}

.comment-avatar {
  width: 34px;
  height: 34px;
  font-size: 12px;
}

.comment-meta {
  display: flex;
  align-items: baseline;
  gap: 11px;
  font-size: 14px;
}

.comment-avatar-link {
  display: block;
  line-height: 0;
}

.comment-author-link {
  color: inherit;
  text-decoration: none;
}

.comment-author-link:hover,
.comment-author-link:focus-visible {
  text-decoration: underline;
}

.comment-meta time {
  color: var(--muted);
  font-size: 12px;
}

.comment-meta .report-button {
  margin-left: auto;
}

.comment-body p {
  margin: 8px 0 0;
  color: var(--body-copy);
  font-size: 15px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.comment-image {
  width: min(100%, 520px);
  max-height: 420px;
  margin-top: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: block;
  object-fit: cover;
}

.report-button {
  padding: 0;
  border: 0;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.report-button:hover {
  color: var(--orange);
}

.owner-delete-button {
  padding: 0;
  border: 0;
  color: #e26d5f;
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.owner-delete-button:hover {
  color: #ff9387;
}

.owner-edit-button {
  padding: 0;
  border: 0;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.owner-edit-button:hover {
  color: var(--accent);
}

.edited-label {
  font-size: 11px;
  color: var(--muted);
  font-style: italic;
}

.post-edited-label {
  display: inline-block;
  margin-left: 8px;
}

.inline-edit-wrap {
  margin: 10px 0;
}

.inline-edit-textarea {
  display: block;
  width: 100%;
  padding: 8px 10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--body-copy);
  font: inherit;
  font-size: 14px;
  line-height: 1.5;
  resize: vertical;
  box-sizing: border-box;
}

.inline-edit-textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.inline-edit-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}

.inline-save-btn {
  padding: 4px 14px;
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: 5px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.inline-save-btn:hover {
  opacity: 0.85;
}

.inline-save-btn:disabled {
  opacity: 0.5;
  cursor: default;
}

.inline-cancel-btn {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.inline-cancel-btn:hover {
  color: var(--body-copy);
}

.inline-edit-error {
  font-size: 12px;
  color: #e26d5f;
}

.owner-delete-model-button {
  width: 100%;
  margin-top: 10px;
  text-align: center;
}

.profile-model-delete {
  margin: 0 16px 16px auto;
  display: block;
}

.report-model-button {
  width: 100%;
  margin-top: 14px;
  text-align: center;
}

.report-dialog {
  width: min(92vw, 500px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--surface);
  box-shadow: var(--card-shadow);
}

.report-dialog::backdrop {
  background: rgba(10, 11, 12, 0.72);
}

.report-form {
  padding: 30px;
}

.report-form h2 {
  margin: 0;
  font-size: 28px;
}

.report-form > p {
  color: var(--body-copy);
  line-height: 1.5;
}

.report-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}

.form-main,
.profile-main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 54px var(--page-gutter) 80px;
}

.auth-main {
  min-height: calc(100vh - 76px);
  padding: 64px var(--page-gutter);
  display: grid;
  place-items: start center;
}

.auth-panel {
  width: min(100%, 480px);
  padding: clamp(28px, 5vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.auth-panel h1 {
  margin: 0;
  font-size: clamp(38px, 5vw, 54px);
  line-height: 1;
  letter-spacing: -0.052em;
}

.auth-panel > p {
  margin: 18px 0 30px;
  color: var(--body-copy);
  line-height: 1.55;
}

.auth-form {
  display: grid;
  gap: 21px;
}

.auth-form .field + .field {
  margin-top: 0;
}

.auth-form .field small {
  color: var(--muted);
  font-size: 12px;
}

.auth-form .button {
  width: 100%;
}

.auth-status {
  min-height: 20px;
  margin: -3px 0 0;
  color: var(--orange);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.auth-switch {
  margin: 26px 0 0 !important;
  text-align: center;
  font-size: 14px;
}

.auth-switch a {
  color: var(--orange);
  font-weight: 800;
}

.auth-callback-panel {
  text-align: center;
}

.auth-callback-panel h1 {
  font-size: clamp(34px, 5vw, 48px);
}

.auth-result-mark {
  width: 54px;
  height: 54px;
  margin: 0 auto 24px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: var(--field);
  font-size: 22px;
  font-weight: 900;
}

.auth-callback-panel[data-result="success"] .auth-result-mark {
  color: white;
  border-color: var(--orange);
  background: var(--orange);
}

.auth-callback-panel[data-result="error"] .auth-result-mark {
  color: var(--orange);
  border-color: var(--orange);
}

.auth-callback-actions {
  display: grid;
  gap: 18px;
}

.auth-callback-actions .button {
  width: 100%;
}

.auth-callback-actions .login-link {
  color: var(--orange);
  font-size: 14px;
  font-weight: 800;
}

.header-spacer {
  min-width: 0;
}

.form-intro {
  max-width: 680px;
  margin-bottom: 42px;
}

.form-intro .back-link {
  margin-bottom: 28px;
}

.form-intro h1,
.profile-header h1 {
  margin: 0;
  font-size: clamp(42px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -0.055em;
}

.form-intro > p {
  margin: 20px 0 0;
  color: var(--body-copy);
  font-size: 18px;
  line-height: 1.55;
}

.upload-form {
  display: grid;
  gap: 24px;
}

.form-section {
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.form-section h2 {
  margin: 0 0 25px;
  font-size: 23px;
  letter-spacing: -0.03em;
}

.section-help {
  margin: -14px 0 25px;
  color: var(--muted);
  font-size: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.field + .field {
  margin-top: 22px;
}

.field label {
  font-size: 13px;
  font-weight: 800;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  outline: 0;
  color: var(--ink);
  background: var(--field);
  font: inherit;
}

.field textarea {
  min-height: 138px;
  resize: vertical;
  line-height: 1.55;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.field input[type="file"] {
  padding: 7px;
  color: var(--muted);
}

.field input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink);
  background: var(--surface-hover);
  cursor: pointer;
}

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

.form-grid .field,
.form-grid .field + .field {
  margin: 0;
}

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

.form-actions {
  min-height: 52px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
}

.form-actions p {
  margin: 0 auto 0 0;
  color: var(--orange);
  font-size: 14px;
  font-weight: 700;
}

.profile-header {
  padding: 18px 0 46px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 24px;
}

.profile-header > div {
  min-width: 0;
}

.profile-identity {
  flex: 1;
}

.profile-stats {
  margin: 0 0 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 36px;
}

.profile-stats div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.profile-stats dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.profile-stats dd {
  margin: 0;
  font-size: 25px;
  font-weight: 900;
}

.profile-avatar {
  flex: 0 0 auto;
  width: 88px;
  height: 88px;
  overflow: hidden;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--paper);
  background: var(--ink);
  font-size: 34px;
  font-weight: 900;
  text-transform: uppercase;
}

.profile-avatar img,
.profile-avatar span {
  width: 100%;
  height: 100%;
  grid-area: 1 / 1;
}

.profile-avatar img {
  display: block;
  object-fit: cover;
}

.profile-avatar span {
  display: grid;
  place-items: center;
}

.profile-level {
  width: fit-content;
  margin: 13px 0 0;
  color: var(--orange);
  font-size: 15px;
  font-weight: 800;
}

.profile-account-email {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.profile-bio {
  max-width: 520px;
  margin: 15px 0 0;
  color: var(--body-copy);
  line-height: 1.55;
}

.profile-bio.is-empty {
  color: var(--muted);
  font-style: italic;
}

.profile-links {
  margin-top: 17px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.profile-website-link {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.profile-website-link:hover {
  color: var(--orange);
}

.profile-support-link {
  white-space: nowrap;
}

.profile-edit-button {
  margin-top: 18px;
}

.profile-save-notice {
  margin: 22px 0 0;
  padding: 12px 15px;
  border: 1px solid color-mix(in srgb, var(--orange) 45%, var(--line));
  border-radius: 6px;
  color: var(--orange);
  background: var(--surface);
  font-size: 14px;
  font-weight: 800;
}

.profile-edit-form {
  display: grid;
  gap: 20px;
}

.profile-edit-form > p {
  margin: -8px 0 2px;
}

.profile-edit-form .profile-account-email {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--soft-line);
  border-radius: 6px;
  background: var(--field);
}

.profile-edit-form .field + .field {
  margin-top: 0;
}

.profile-edit-form textarea {
  min-height: 116px;
}

.avatar-cropper {
  margin-top: 6px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--field);
  display: grid;
  justify-items: center;
  gap: 12px;
}

.avatar-cropper canvas {
  width: min(100%, 240px);
  aspect-ratio: 1;
  border: 3px solid var(--surface);
  border-radius: 50%;
  display: block;
  background: var(--ink);
  box-shadow: 0 0 0 1px var(--line);
  cursor: grab;
  touch-action: none;
}

.avatar-cropper canvas:active {
  cursor: grabbing;
}

.avatar-cropper p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.avatar-cropper label {
  width: min(100%, 240px);
}

.avatar-cropper input[type="range"] {
  width: min(100%, 240px);
  min-height: auto;
  padding: 0;
  accent-color: var(--orange);
}

.profile-edit-status {
  margin: 0;
}

.profile-models {
  padding-top: 42px;
}

.profile-downloads {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.site-footer {
  position: relative;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 42px var(--page-gutter) 70px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.page-main {
  min-height: calc(100vh - 150px);
  padding-top: 58px;
  padding-bottom: 80px;
}

.page-intro {
  max-width: 760px;
  margin-bottom: 40px;
}

.page-intro h1,
.text-page h1 {
  margin: 0;
  font-size: clamp(44px, 6vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.058em;
}

.page-intro p {
  margin: 20px 0 0;
  color: var(--body-copy);
  font-size: 18px;
  line-height: 1.55;
}

/* Explore sidebar layout */
.explore-layout {
  display: grid;
  grid-template-columns: 184px 1fr;
  gap: 0 48px;
  align-items: start;
}

.explore-sidebar {
  position: sticky;
  top: 28px;
}

.explore-content {
  min-width: 0;
}

.explore-filter-group {
  margin-bottom: 28px;
}

.explore-filter-label {
  margin: 0 0 10px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* Feed items (All models / Following) */
.feed-item {
  display: block;
  width: 100%;
  padding: 6px 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  text-align: left;
  cursor: pointer;
  transition: color 0.12s;
}

.feed-item:hover {
  color: var(--ink);
}

.feed-item.is-active {
  color: var(--ink);
  font-weight: 800;
}

/* Tag chips inside the sidebar */
.explore-sidebar .tag-filters {
  margin: 0;
  flex-direction: column;
  align-items: flex-start;
}

.explore-sidebar .tag-filters .tag-chip {
  min-height: 28px;
  padding: 4px 9px;
  font-size: 11px;
}

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

.explore-count {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 14px;
  min-height: 1.4em;
}

.empty-state {
  grid-column: 1 / -1;
  width: min(100%, 680px);
  padding: clamp(28px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.empty-state h2 {
  margin: 0;
  font-size: 27px;
}

.empty-state p {
  max-width: 520px;
  margin: 14px 0 28px;
  color: var(--body-copy);
  line-height: 1.55;
}

.empty-state .button {
  width: fit-content;
  white-space: nowrap;
}

.moderation-main {
  max-width: 1120px;
}

/* Site stats */
.site-stats-section {
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.site-stats-heading {
  margin: 0 0 18px;
  font-size: 16px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.site-stats-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 32px;
  margin: 0;
}

.site-stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 80px;
}

.site-stat-value {
  margin: 0;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.site-stat-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.moderation-toolbar {
  margin-bottom: 20px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.moderation-toolbar h2,
.moderation-toolbar p {
  margin: 0;
}

.moderation-toolbar h2 {
  font-size: 28px;
}

.moderation-toolbar p {
  margin-top: 7px;
  color: var(--muted);
}

.moderation-status {
  margin: 0 0 18px;
}

.moderation-report-list,
.role-list {
  display: grid;
  gap: 16px;
}

.moderation-report {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.moderation-report.status-open {
  border-color: color-mix(in srgb, var(--orange) 55%, var(--line));
}

.moderation-report-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.moderation-report-heading h3 {
  margin: 0;
  font-size: 21px;
  text-transform: capitalize;
}

.moderation-status-badge {
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--muted);
  background: var(--field);
  font-size: 11px;
  font-weight: 800;
  text-transform: capitalize;
}

.moderation-metadata {
  margin: 20px 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px 24px;
}

.moderation-metadata div {
  min-width: 0;
}

.moderation-metadata dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.moderation-metadata dd {
  margin: 5px 0 0;
  overflow-wrap: anywhere;
}

.moderation-details {
  margin: 0;
  padding: 15px;
  border-radius: 6px;
  color: var(--body-copy);
  background: var(--field);
  line-height: 1.55;
}

.moderation-actions {
  margin-top: 18px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.moderation-danger {
  color: #e26d5f;
}

.moderation-target-link {
  margin-left: auto;
}

.role-management {
  margin-top: 54px;
  padding-top: 38px;
  border-top: 1px solid var(--line);
}

.role-row {
  padding: 17px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.role-row > div {
  display: grid;
  gap: 4px;
}

.role-row span {
  color: var(--muted);
  font-size: 12px;
  text-transform: capitalize;
}

.role-identity {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ban-badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 4px;
  background: #7f1d1d;
  color: #fca5a5;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: help;
}

.report-delete-btn {
  margin-left: auto;
}

.role-search-wrap {
  margin-bottom: 18px;
}

.role-search-input {
  width: 100%;
  max-width: 380px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--field);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  outline: 0;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.role-search-input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.role-search-input::placeholder {
  color: var(--subtle-text);
}

.role-search-label {
  margin: 22px 0 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Staff list sub-section (admin only) — bottom border separates it from user search */
.staff-list-section {
  margin-bottom: 38px;
  padding-bottom: 38px;
  border-bottom: 1px solid var(--line);
}

/* Email shown in admin search results — wraps to its own line inside .role-identity */
.role-email {
  flex-basis: 100%;
  font-size: 12px;
  color: var(--muted);
  font-family: ui-monospace, "Cascadia Code", "Source Code Pro", monospace;
  word-break: break-all;
  margin-top: 1px;
}

.role-empty {
  padding: 14px 0;
  color: var(--muted);
  font-size: 14px;
}

.mod-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #2d2d2d;
  background: #1a1a1a;
  flex-wrap: wrap;
}

.mod-controls-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.mod-hidden-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  background: #7f1d1d;
  color: #fca5a5;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.mod-inline-button {
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.mod-inline-button:hover {
  border-color: var(--accent);
  color: var(--fg);
}

.comment.is-hidden {
  opacity: 0.5;
}

.comment-hidden-badge {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 4px;
  background: #3b1515;
  color: #fca5a5;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Bug reports (moderation dashboard + form) */

.bug-reports-section {
  margin-top: 54px;
  padding-top: 38px;
  border-top: 1px solid var(--line);
}

.bug-screenshot-link {
  display: block;
  margin-top: 14px;
}

.bug-screenshot-thumb {
  display: block;
  max-width: 100%;
  max-height: 320px;
  border-radius: 8px;
  border: 1px solid var(--line);
  object-fit: contain;
  background: var(--field);
}

.bug-report-success {
  padding: 60px 0;
}

/* Community feed */

.community-main {
  width: min(100%, 1020px);
  min-height: 70vh;
  margin: 0 auto;
  padding: 52px var(--page-gutter) 80px;
}

.community-header {
  margin-bottom: 28px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.community-header h1 {
  margin: 0;
  font-size: clamp(40px, 7vw, 68px);
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.community-header p {
  max-width: 620px;
  margin: 16px 0 0;
  color: var(--body-copy);
  line-height: 1.55;
}

.category-tabs {
  margin-bottom: 24px;
  display: flex;
  gap: 9px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.category-tab {
  flex: 0 0 auto;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.category-tab:hover,
.category-tab.is-active {
  border-color: var(--orange);
  color: var(--ink);
  background: color-mix(in srgb, var(--orange) 14%, transparent);
}

.community-feed {
  display: grid;
  gap: 14px;
}

.community-post {
  scroll-margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  overflow: hidden;
}

.community-post-preview {
  cursor: pointer;
}

.community-post-preview:hover {
  border-color: color-mix(in srgb, var(--orange) 58%, var(--line));
  background: var(--surface-hover);
}

.community-vote {
  min-height: 100%;
  padding: 20px 8px;
  border: 0;
  border-right: 1px solid var(--soft-line);
  color: var(--muted);
  background: color-mix(in srgb, var(--field) 72%, transparent);
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 7px;
  cursor: pointer;
}

.community-vote span {
  font-size: 17px;
}

.community-vote strong {
  font-size: 14px;
}

.community-vote:hover,
.community-vote.is-voted {
  color: var(--orange);
}

.community-post-content {
  min-width: 0;
  padding: 22px 24px;
}

.community-post-top,
.community-post-actions,
.community-comment-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.community-post-top {
  color: var(--muted);
  font-size: 12px;
}

.community-category {
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--ink);
  background: var(--clay);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.community-category-tip,
.community-category-finished_print {
  color: #ffd2c1;
  background: #6d2c15;
}

.community-category-question,
.community-category-troubleshooting {
  color: #d5e5ff;
  background: #253b62;
}

.community-post h2 {
  margin: 13px 0 12px;
  font-size: clamp(21px, 3vw, 28px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.community-post-title-link {
  display: block;
}

.community-post-title-link:hover h2 {
  color: var(--orange);
}

.community-preview-main {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: start;
}

.community-preview-copy {
  min-width: 0;
}

.community-post-excerpt-link {
  display: block;
}

.community-post-excerpt {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.community-thumbnail-link {
  width: 150px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--field);
  display: block;
}

.community-post-thumbnail {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.community-author {
  width: fit-content;
  color: var(--body-copy);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.community-author:hover strong {
  color: var(--orange);
}

.community-post-avatar,
.community-comment-avatar {
  overflow: hidden;
  border-radius: 50%;
  color: var(--paper);
  background: var(--ink);
  display: grid;
  place-items: center;
  font-weight: 900;
  text-transform: uppercase;
}

.community-post-avatar {
  width: 34px;
  height: 34px;
  font-size: 13px;
}

.community-comment-avatar {
  width: 30px;
  height: 30px;
  font-size: 11px;
}

.community-post-avatar img,
.community-comment-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.community-author-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.community-author-copy small {
  color: var(--muted);
  font-size: 11px;
}

.community-post-text {
  margin: 18px 0 0;
  color: var(--body-copy);
  line-height: 1.62;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.community-post-image {
  width: 100%;
  max-height: 620px;
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: block;
  object-fit: contain;
  background: var(--field);
}

.community-post-actions {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--soft-line);
}

.community-post-actions > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.community-text-button {
  padding: 3px 0;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.community-text-button:hover {
  color: var(--orange);
}

.community-comments {
  margin-top: 16px;
  padding-top: 4px;
}

.community-comment {
  padding: 15px 0;
  border-top: 1px solid var(--soft-line);
}

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

.community-comment-meta {
  justify-content: flex-start;
}

.community-comment-meta time {
  color: var(--muted);
  font-size: 11px;
}

.community-comment-meta .community-text-button:first-of-type {
  margin-left: auto;
}

.community-comment-body > p {
  margin: 10px 0 0 39px;
  color: var(--body-copy);
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.community-comment-empty,
.community-inline-status {
  color: var(--muted);
  font-size: 12px;
}

.community-comment-form {
  margin-top: 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.community-comment-form textarea {
  min-height: 62px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  background: var(--field);
  font: inherit;
  resize: vertical;
}

.community-comment-form .button {
  align-self: start;
}

.community-inline-status {
  grid-column: 1 / -1;
  margin: 0;
}

.community-feed-loading,
.community-empty {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: var(--surface);
  text-align: center;
}

.community-feed-footer {
  margin-top: 24px;
  text-align: center;
}

.community-dialog {
  width: min(92vw, 650px);
  max-height: 90vh;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--surface);
  box-shadow: var(--card-shadow);
}

.community-dialog::backdrop {
  background: rgba(10, 11, 12, 0.72);
}

.community-post-form {
  padding: 28px;
}

.community-dialog-header,
.community-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.community-dialog-header h2 {
  margin: 0;
  font-size: 28px;
}

.community-dialog-close {
  padding: 7px;
  border: 0;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.community-post-form .field {
  margin-top: 21px;
}

.community-form-footer {
  margin-top: 24px;
}

.community-form-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.community-detail-main {
  width: min(100%, 980px);
}

.community-detail-main .back-link {
  display: inline-block;
}

.community-post-detail {
  cursor: default;
}

.community-post-detail h1 {
  margin: 15px 0 16px;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.community-post-full-text {
  margin-top: 28px;
  font-size: 17px;
}

.community-detail-comments {
  margin-top: 34px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.community-comments-heading h2 {
  margin: 0;
  font-size: 28px;
  letter-spacing: -0.035em;
}

.community-comments-heading p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.community-detail-comment-form {
  margin: 24px 0 12px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--soft-line);
}

.community-post-unavailable {
  margin-top: 22px;
}

.community-post-unavailable h1 {
  margin: 0 0 10px;
  color: var(--ink);
}

.community-post-unavailable .button {
  margin-top: 18px;
}

/* ── Print results section ──────────────────────────────── */

/* ── Print profiles section ─────────────────────────────── */

.print-profiles-section {
  max-width: 900px;
  margin-top: 64px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}

.print-profiles-heading {
  margin-bottom: 20px;
}

.print-profiles-heading h2 {
  margin: 0;
  font-size: 28px;
  letter-spacing: -0.035em;
}

.print-profiles-heading p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.print-profiles-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.print-profile-card {
  padding: 16px 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.print-profile-name {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 800;
  color: var(--heading);
  display: flex;
  align-items: center;
  gap: 8px;
}

.print-profile-type-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 20px;
  background: var(--clay);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.print-profile-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin: 0 0 6px;
}

.print-profile-stat {
  display: flex;
  gap: 5px;
  font-size: 13px;
}

.print-profile-stat-label {
  color: var(--muted);
}

.print-profile-stat-value {
  color: var(--body-copy);
  font-weight: 700;
}

.print-profile-notes {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
}

/* ── Print profile form entries (upload + edit pages) ───── */

.profile-entries {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 18px;
}

.profile-entry {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--clay);
}

.profile-entry-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.profile-entry-title {
  font-size: 15px;
  font-weight: 700;
}

.profile-remove-btn {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.profile-remove-btn:hover {
  color: var(--orange);
}

.profile-entry .form-grid {
  margin-top: 14px;
}

/* ── Edit model link ─────────────────────────────────────── */

.edit-model-link {
  display: inline-flex;
  align-items: center;
  margin-top: 10px;
}

/* ── print-results-section ───────────────────────────────── */

.print-results-section {
  max-width: 900px;
  margin-top: 72px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}

.print-results-heading {
  margin-bottom: 8px;
}

.print-results-heading h2 {
  margin: 0;
  font-size: 28px;
  letter-spacing: -0.035em;
}

.print-results-heading p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.print-result-form {
  margin: 24px 0 8px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.print-result-form-title {
  margin: 0 0 18px;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.field-required {
  color: var(--orange);
}

.field-hint {
  color: var(--muted);
  font-weight: 400;
  font-size: 12px;
}

.print-result-optionals {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.print-result-optionals .field,
.print-result-optionals .field + .field {
  margin: 0;
}

.print-result-form-footer {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.print-result-form-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.print-result-list {
  margin-top: 8px;
}

.print-result {
  padding: 20px 0;
  border-bottom: 1px solid var(--soft-line);
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 13px;
  align-items: start;
}

.print-result.is-hidden {
  opacity: 0.5;
}

.print-result-avatar-link {
  display: block;
  line-height: 0;
}

.print-result-avatar {
  width: 34px;
  height: 34px;
  font-size: 12px;
}

.print-result-photo {
  grid-column: 1 / -1;
  width: 100%;
  max-height: 480px;
  margin-top: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
  display: block;
}

.print-result-body {
  grid-column: 3;
  grid-row: 1;
  min-width: 0;
}

.print-result-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 11px;
  font-size: 14px;
}

.print-result-author {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.print-result-author time {
  color: var(--muted);
  font-size: 12px;
}

.print-result-meta-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.print-result-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.print-result-badge {
  display: inline-block;
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.print-result-notes {
  margin: 10px 0 0;
  color: var(--body-copy);
  font-size: 15px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* ── /Print results section ─────────────────────────────── */

.banned-notice {
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #7f1d1d;
  background: #1a0a0a;
  color: #fca5a5;
  font-size: 14px;
  margin-bottom: 12px;
}

.text-page {
  max-width: 820px;
  min-height: calc(100vh - 160px);
  margin: 0 auto;
  padding: 72px var(--page-gutter) 90px;
}

.text-page h2 {
  margin: 42px 0 12px;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.text-page p {
  margin: 0;
  color: var(--body-copy);
  font-size: 18px;
  line-height: 1.7;
}

.review-notice {
  margin-bottom: 34px;
  padding: 16px 18px;
  border: 1px solid var(--orange);
  border-radius: 7px;
  color: var(--body-copy);
  background: var(--surface);
  font-size: 14px;
  line-height: 1.55;
}

.review-notice strong {
  color: var(--orange);
}

.contact-box {
  margin-top: 38px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.contact-box h2 {
  margin-top: 0;
}

.contact-box a {
  color: var(--orange);
  font-weight: 800;
}

.error-page {
  min-height: calc(100vh - 76px);
  padding-top: clamp(70px, 12vw, 150px);
  padding-bottom: 80px;
  text-align: center;
}

.error-code {
  margin: 0 0 18px;
  color: var(--orange);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.error-page h1 {
  max-width: 760px;
  margin: 0 auto;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.error-page > p:not(.error-code) {
  margin: 24px auto 32px;
  color: var(--body-copy);
  font-size: 18px;
}

.error-page > div {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.error-page .back-link {
  margin: 0;
}

.simple-footer {
  min-height: 74px;
  padding: 0 var(--page-gutter);
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  color: var(--muted);
  font-size: 13px;
}

.simple-footer a:hover {
  color: var(--orange);
}

.footer-brand p {
  margin: 15px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 30px;
}

.footer-links div {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links h3 {
  margin: 0 0 5px;
  font-size: 14px;
}

.footer-links a {
  color: var(--muted);
  font-size: 13px;
}

.copyright {
  position: absolute;
  left: var(--page-gutter);
  bottom: 22px;
  margin: 0;
  color: var(--subtle-text);
  font-size: 12px;
}

@media (min-width: 1250px) {
  .model-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 18px;
  }

  .profile-models .model-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
  }

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

  .model-body {
    padding: 14px 13px 12px;
  }

  .model-title {
    font-size: 14px;
  }

  .model-stats {
    padding: 0 13px;
  }
}

@media (max-width: 960px) {
  .site-header {
    grid-template-columns: auto 1fr auto;
  }

  .main-nav,
  .search {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 36px;
  }

  .hero-image {
    order: -1;
    height: min(48vw, 400px);
  }

  .model-detail {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .detail-info {
    max-width: 660px;
  }

  .form-grid-three {
    grid-template-columns: 1fr;
  }

  .explore-layout {
    grid-template-columns: 160px 1fr;
    gap: 0 32px;
  }
}

@media (max-width: 650px) {
  .site-header {
    min-height: 66px;
  }

  .brand {
    font-size: 21px;
  }

  .site-logo {
    width: 29px;
    height: 29px;
  }

  .account-actions {
    gap: 0;
  }

  .account-actions > a,
  .account-actions .logout-button {
    display: none;
  }

  .mobile-menu {
    justify-self: end;
    width: 42px;
    height: 42px;
    padding: 10px;
    border: 0;
    background: transparent;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
  }

  .mobile-menu span {
    width: 22px;
    height: 2px;
    background: var(--ink);
  }

  .hero {
    min-height: 0;
    gap: 28px;
    padding: 22px 0 46px;
  }

  .hero-image {
    height: 58vw;
    border-radius: 8px;
  }

  .hero h1 {
    font-size: clamp(42px, 13vw, 60px);
  }

  .hero-copy p {
    margin: 20px 0 24px;
    font-size: 17px;
  }

  .catalog {
    padding-bottom: 42px;
  }

  .page-main {
    padding-top: 36px;
    padding-bottom: 54px;
  }

  .explore-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .explore-sidebar {
    position: static;
    margin-bottom: 28px;
  }

  .explore-sidebar .tag-filters {
    flex-direction: row;
  }

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

  .simple-footer {
    padding: 22px 20px;
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
  }

  .save-notice {
    right: 14px;
    bottom: 14px;
    left: 14px;
    max-width: none;
  }

  .detail-main {
    padding-top: 22px;
    padding-bottom: 48px;
  }

  .back-link {
    margin-bottom: 18px;
  }

  .model-detail {
    gap: 26px;
  }

  .detail-preview {
    aspect-ratio: 1.12 / 1;
    border-radius: 8px;
  }

  .detail-info h1 {
    font-size: clamp(38px, 12vw, 52px);
  }

  .detail-description {
    margin: 27px 0;
    font-size: 16px;
  }

  .print-results-section,
  .comments-section {
    margin-top: 52px;
    padding-top: 28px;
  }

  .print-result-optionals {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .print-result-optionals .field + .field {
    margin-top: 22px;
  }

  .print-result-form-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .print-result-form-footer .button {
    width: 100%;
  }

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

  .print-result-body {
    grid-column: 2;
  }

  .print-result-photo {
    grid-column: 1 / -1;
  }

  .comments-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .comment-form > div {
    align-items: stretch;
    flex-direction: column;
  }

  .comment-meta {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .comment-meta .report-button {
    margin-left: 0;
  }

  .report-form {
    padding: 24px 20px;
  }

  .error-page > div {
    flex-direction: column;
  }

  .comment-form .button {
    width: 100%;
  }

  .print-details dl {
    grid-template-columns: 1fr;
  }

  .print-details dl div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .form-main,
  .profile-main {
    padding-top: 32px;
    padding-bottom: 54px;
  }

  .auth-main {
    min-height: calc(100vh - 66px);
    padding: 30px 16px 50px;
  }

  .auth-panel {
    padding: 27px 20px;
  }

  .form-intro {
    margin-bottom: 30px;
  }

  .form-section {
    padding: 22px 18px;
  }

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

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

  .form-actions .button {
    width: 100%;
  }

  .profile-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .profile-stats {
    width: 100%;
    margin: 6px 0 0;
    padding-top: 22px;
    border-top: 1px solid var(--line);
  }

  .profile-avatar {
    width: 68px;
    height: 68px;
    font-size: 26px;
  }

  .community-main {
    padding-top: 32px;
    padding-bottom: 54px;
  }

  .community-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .community-header .button {
    width: 100%;
  }

  .category-tabs {
    margin-right: calc(var(--page-gutter) * -1);
    padding-right: var(--page-gutter);
  }

  .community-post {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .community-vote {
    padding: 18px 5px;
  }

  .community-post-content {
    padding: 18px 16px;
  }

  .community-preview-main {
    grid-template-columns: 1fr;
  }

  .community-thumbnail-link {
    width: 100%;
    max-height: 210px;
    aspect-ratio: 16 / 9;
    grid-row: 1;
  }

  .community-post-top {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .community-comment-meta {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .community-comment-meta .community-text-button:first-of-type {
    margin-left: 39px;
  }

  .community-comment-form {
    grid-template-columns: 1fr;
  }

  .community-comment-form .button {
    width: 100%;
  }

  .community-inline-status {
    grid-column: auto;
  }

  .community-post-form {
    padding: 23px 19px;
  }

  .community-post-detail h1 {
    font-size: clamp(32px, 10vw, 46px);
  }

  .community-detail-comments {
    padding: 22px 17px;
  }

  .community-form-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .community-form-footer .button {
    width: 100%;
  }

  .empty-state {
    padding: 26px 20px;
  }

  .empty-state .button {
    max-width: 100%;
  }

  .moderation-toolbar,
  .role-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .moderation-metadata {
    grid-template-columns: 1fr;
  }

  .moderation-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .moderation-target-link {
    margin-left: 0;
  }

  .model-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .model-title {
    font-size: 17px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    padding-bottom: 68px;
  }
}

/* ============================================================
   Search dropdown
   ============================================================ */

.search-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: -1px;
  right: -1px;
  z-index: 200;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  display: none;
}

.search-dropdown.is-open {
  display: block;
}

.search-dropdown-group {
  padding: 6px 0;
}

.search-dropdown-group + .search-dropdown-group {
  border-top: 1px solid var(--soft-line);
}

.search-group-label {
  padding: 6px 14px 3px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  pointer-events: none;
}

.search-result {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
  transition: background 100ms ease;
}

.search-result:hover,
.search-result.is-focused {
  background: var(--surface-hover);
  color: var(--orange);
}

.search-result-thumb {
  width: 36px;
  height: 36px;
  border-radius: 5px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--clay);
}

.search-result-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--clay);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  flex-shrink: 0;
  overflow: hidden;
}

.search-result-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.search-tag-icon {
  width: 36px;
  height: 36px;
  border-radius: 5px;
  background: var(--clay);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.search-result-text {
  flex: 1;
  overflow: hidden;
}

.search-result-title {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-sub {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-no-results {
  padding: 14px;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}

/* ============================================================
   Sliced files — upload form entry
   ============================================================ */

.optional-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 20px;
  background: var(--clay);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: middle;
}

.sliced-entries {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 18px;
}

.sliced-entry {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--clay);
}

.sliced-entry-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.sliced-entry-title {
  font-size: 15px;
  font-weight: 700;
}

.sliced-remove-btn {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.sliced-remove-btn:hover {
  color: var(--orange);
}

.sliced-entry .form-grid {
  margin-top: 14px;
}

.button-outline {
  display: inline-flex;
  min-height: 42px;
  padding: 0 20px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: transparent;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease;
}

.button-outline:hover {
  border-color: var(--orange);
  color: var(--orange);
}

/* ============================================================
   Sliced files — model detail section
   ============================================================ */

.sliced-section {
  padding: clamp(28px, 5vw, 48px) var(--page-gutter);
  border-top: 1px solid var(--line);
}

.sliced-section-heading {
  margin-bottom: 20px;
}

.sliced-section-heading h2 {
  margin: 0 0 4px;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.sliced-section-heading p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.sliced-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sliced-card {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sliced-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.sliced-card-name {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.sliced-filename {
  font-size: 15px;
  font-weight: 700;
  word-break: break-all;
}

.sliced-ext-badge {
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--clay);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.sliced-printer-badge {
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(242, 90, 31, 0.12);
  color: var(--orange);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.sliced-meta {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 8px 18px;
}

.sliced-meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sliced-meta-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.sliced-meta-value {
  font-size: 13px;
  font-weight: 600;
}

.sliced-download-btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 16px;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease;
}

.sliced-download-btn:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.sliced-download-btn svg {
  width: 14px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ============================================================
   Sliced file warning dialog
   ============================================================ */

.sliced-dialog {
  width: min(440px, calc(100vw - 40px));
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--card-shadow);
}

.sliced-dialog::backdrop {
  background: rgba(0, 0, 0, 0.6);
}

.sliced-dialog-body {
  padding: 28px 28px 24px;
}

.sliced-dialog-icon {
  font-size: 28px;
  margin: 0 0 12px;
  line-height: 1;
}

.sliced-dialog h2 {
  margin: 0 0 8px;
  font-size: 20px;
  letter-spacing: -0.03em;
}

.sliced-dialog-warning {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--body-copy);
  line-height: 1.55;
}

.sliced-dialog-meta {
  margin: 0 0 20px;
  padding: 12px 14px;
  border-radius: 6px;
  background: var(--clay);
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.sliced-dialog-meta strong {
  color: var(--ink);
  font-weight: 700;
}

.sliced-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 28px;
  border-top: 1px solid var(--soft-line);
}

/* ── Follow system ───────────────────────────────────────── */

/* Follow button on profile page */
.profile-follow-button {
  margin-top: 12px;
  padding: 7px 18px;
  border: 1.5px solid var(--accent);
  border-radius: 6px;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.profile-follow-button:hover {
  background: var(--accent);
  color: var(--paper);
}

.profile-follow-button.is-following {
  background: var(--accent);
  color: var(--paper);
}

.profile-follow-button.is-following:hover {
  background: transparent;
  color: var(--accent);
}

.profile-follow-button:disabled {
  opacity: 0.5;
  cursor: default;
}

.profile-follow-status {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--accent);
}

/* Follow button on model detail page */
.creator-follow-button {
  display: inline-block;
  margin-top: 8px;
  padding: 5px 14px;
  border: 1.5px solid var(--line);
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.creator-follow-button:hover {
  border-color: var(--accent);
  color: var(--ink);
}

.creator-follow-button.is-following {
  border-color: var(--accent);
  color: var(--accent);
}

.creator-follow-button.is-following:hover {
  background: transparent;
  color: var(--muted);
  border-color: var(--line);
}

.creator-follow-button:disabled {
  opacity: 0.5;
  cursor: default;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
