:root {
  --bg: #ffffff;
  --panel: #ffffff;
  --panel-soft: #f6f7f4;
  --ink: #151611;
  --muted: #777870;
  --line: #e7e7e1;
  --line-dark: #c9cac1;
  --accent: #d8623f;
  --green: #6f927b;
  --blue: #b9d7dc;
  --radius: 8px;
  --shadow: 0 10px 32px rgba(0, 0, 0, .045);
  --admin-record-blue: #f1f5f9;
  --admin-record-green: #f3f8ef;
  --admin-record-blue-border: #d7e1eb;
  --admin-record-green-border: #d9e8d2;
  --admin-card-radius: 8px;
  --admin-control-height: 30px;
  --admin-compact-control-height: 24px;
  --admin-action-height: 24px;
  --admin-label-size: 10px;
  --admin-helper-size: 9px;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease; }
button:hover, .nav-button:hover, .search-button:hover { transform: translateY(-1px); }
:where(a, button, input, select, textarea):focus-visible {
  outline: 2px solid #111;
  outline-offset: 2px;
}
main { width: min(1220px, calc(100vw - 56px)); margin: 0 auto; }

.loading-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  line-height: 1.15;
  white-space: nowrap;
}

.loading-indicator--button {
  width: 100%;
}

.loading-gif {
  display: block;
  width: 28px;
  max-width: 40px;
  height: auto;
  object-fit: contain;
  flex: 0 0 auto;
}

.loading-indicator--compact .loading-gif {
  width: 16px;
  max-width: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(16px);
}

.site-nav {
  width: min(1220px, calc(100vw - 56px));
  min-height: 64px;
  margin: 0 auto;
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: flex-end;
  gap: 10px;
  color: #111;
  font-weight: 900;
  white-space: nowrap;
}

.brand-mark {
  width: 44px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 44px;
  overflow: hidden;
  border-radius: 0;
  background: transparent;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-name {
  transform: translateY(-2px);
  font-size: 17px;
  line-height: 1;
  letter-spacing: 0;
}

.nav-links {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 26px;
  align-items: center;
}

.nav-links a {
  position: relative;
  padding: 23px 0 21px;
  color: #242421;
  font-size: 14px;
  font-weight: 650;
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 19px;
  height: 2px;
  background: #111;
}

.nav-actions, .stack-actions, .auth-tabs {
  display: flex;
  gap: 10px;
  align-items: center;
}

.nav-button {
  min-height: 36px;
  border: 1px solid #111;
  border-radius: var(--radius);
  background: transparent;
  color: #111;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 720;
}

.nav-button .loading-gif {
  width: 20px;
  max-width: 20px;
}

.nav-button.solid {
  background: #111;
  color: #fff;
}
.nav-button.danger {
  border-color: #d85e42;
  color: #d85e42;
}

.nav-button.is-disabled,
.nav-button[aria-disabled="true"] {
  border-color: #d8d8d2;
  background: #f1f1ee;
  color: #8b8c85;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
  pointer-events: auto;
}

.nav-button.full { width: 100%; }

.auth-state-pending #open-auth,
.auth-state-pending [data-open-auth] {
  visibility: hidden;
}

.nav-button.user-nav-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 5px 12px 5px 6px;
  border-color: var(--line-dark);
  background: #fff;
  color: #111;
}

.nav-user-avatar {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  overflow: hidden;
  border-radius: 50%;
  background: var(--panel-soft);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06);
}

.nav-user-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-user-name {
  max-width: 96px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.text-link { text-decoration: underline; text-underline-offset: 4px; font-weight: 700; }
.hidden { display: none !important; }

.home-banner {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 1;
  min-height: 100px;
  max-height: 420px;
  margin: 28px 0 18px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--panel-soft);
}

.home-banner img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  opacity: 0;
  transition: opacity .45s ease;
}

.home-banner img.active {
  opacity: 1;
}

.home-banner img:not([src]) {
  visibility: hidden;
}

.home-banner-dots {
  position: absolute;
  right: 14px;
  bottom: 12px;
  display: flex;
  gap: 6px;
  z-index: 2;
}

.home-banner-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .82);
  border-radius: 50%;
  background: rgba(20, 20, 20, .34);
}

.home-banner-dots button.active {
  width: 22px;
  border-radius: 999px;
  background: #fff;
}

.hero-catalog {
  min-height: 420px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 30px;
  align-items: end;
  padding: 44px 0 34px;
}

.kicker {
  margin: 0 0 10px;
  color: #2e2e2b;
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0;
}

h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 720px;
  margin-bottom: 14px;
  font-size: 30px;
  line-height: 1.12;
  letter-spacing: 0;
}
h2 { margin-bottom: 6px; font-size: 18px; letter-spacing: 0; }
h3 { margin-bottom: 6px; font-size: 15px; }
.hero-copy, .page-title p, .section-head p {
  max-width: 560px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.auth-panel, .upload-panel, .content-panel, .side-panel, .admin-login {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.auth-panel { padding: 18px; }
.auth-tabs { margin-bottom: 16px; }
.auth-tabs button {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f7f7f5;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 720;
}
.auth-tabs button.active { background: #111; color: #fff; border-color: #111; }
.tiny-note { margin: 14px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }

.field, .search-field {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: #fff;
  color: #111;
  padding: 9px 11px;
  outline: none;
  font-size: 13px;
}
.field:focus, .search-field:focus {
  border-color: #111;
  box-shadow: 0 0 0 3px rgba(20, 21, 17, .055);
}
.field[readonly],
.readonly-field {
  background: #f6f6f2;
  color: #686961;
  cursor: not-allowed;
}
.field.compact { width: 180px; }
.textarea { min-height: 140px; resize: vertical; line-height: 1.55; }
.form-help {
  margin: -4px 0 2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.field-label-with-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.variant-cover-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.mini-action-button {
  min-height: 24px;
  border: 1px solid #b8c3d1;
  border-radius: 6px;
  background: #f4f7fb;
  color: #496171;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 760;
  line-height: 1.1;
  cursor: pointer;
}
.mini-action-button:hover,
.mini-action-button.active {
  border-color: #111;
  background: #111;
  color: #fff;
}
.ai-generate-button {
  min-width: 64px;
  min-height: 24px;
  display: inline-grid;
  grid-template-columns: auto auto;
  place-items: center;
  gap: 3px;
  border: 1px solid #b8c3d1;
  border-radius: 6px;
  background: #f4f7fb;
  color: #496171;
  padding: 2px 6px;
  font-size: 11px;
  font-weight: 760;
  line-height: 1.1;
  cursor: pointer;
}
.ai-generate-button:hover {
  border-color: #8da0b3;
  background: #eaf0f7;
}
.ai-generate-button:disabled {
  opacity: .55;
  cursor: wait;
}

.search-panel, .filter-panel {
  margin: 24px 0 34px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.home-search, .community-search {
  width: min(480px, 100%);
  margin: 24px auto 34px;
}
.filter-panel.community-search {
  width: 100%;
}
.community-search .search-form {
  width: min(480px, 100%);
  margin: 0 auto;
}
.search-form {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  background: #fff;
}
.home-search .search-field, .community-search .search-field, .advanced-search .search-field {
  min-height: 31px;
  min-width: 0;
  border: 0;
  border-radius: 999px;
  padding: 6px 11px;
  box-shadow: none;
}
.home-search .search-field:focus, .community-search .search-field:focus, .advanced-search .search-field:focus {
  border: 0;
  box-shadow: none;
}
.search-button {
  min-height: 31px;
  border: 1px solid #111;
  border-radius: 999px;
  background: #111;
  color: #fff;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 720;
}
.featured-title {
  margin: 24px 0 22px;
  text-align: center;
  color: #151611;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 860;
}
.filter-panel {
  display: grid;
  gap: 12px;
}
.category-tabs {
  display: flex;
  gap: 7px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  width: 100%;
  max-width: 100%;
  margin: 0;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
}
.category-tabs button {
  flex: 1 1 86px;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 650;
}
.category-tabs button.active { background: #111; color: #fff; border-color: #111; }
.community-result-count {
  min-height: 20px;
  color: var(--text-muted);
  font-size: 13px;
  text-align: right;
}
.search-field { flex: 1; min-width: 260px; }

.category-select-stack {
  display: grid;
  gap: 8px;
}

.upload-category-picker {
  display: grid;
  gap: 10px;
}

.upload-category-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.upload-category-button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: #111;
  padding: 9px 10px;
  font-size: 13px;
  font-weight: 760;
  line-height: 1.2;
  text-align: center;
}

.upload-category-button.active {
  border-color: #111;
  background: #111;
  color: #fff;
}

.upload-category-hint {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.paid-trial-control {
  min-height: 42px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.paid-trial-control label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: #fff;
  padding: 9px 11px;
  color: #151611;
  font-size: 13px;
  font-weight: 760;
}

.paid-trial-control input {
  accent-color: #111;
}

.device-permission-field {
  min-width: 0;
}

.device-permission-control {
  min-height: 42px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.device-permission-option {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: #fff;
  padding: 9px 9px;
  color: #151611;
  font-size: 12px;
  font-weight: 780;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
}

.device-permission-option.active {
  border-color: #111;
  background: #111;
  color: #fff;
}

.device-permission-option input {
  accent-color: #111;
}

.device-permission-option span:not(.device-permission-icon) {
  min-width: 0;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  overflow-wrap: anywhere;
}

.device-permission-icon {
  flex: 0 0 auto;
  color: inherit;
  font-size: 14px;
  line-height: 1;
}

.section-head, .page-title {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  margin: 40px 0 18px;
}
.page-title { display: block; padding-top: 34px; }

body[data-page="vibe"] .page-title {
  margin: 12px 0 12px;
  padding-top: 0;
}

.masonry-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
}

.masonry-grid.is-row-major {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.masonry-column {
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-content: start;
}

.masonry-column[hidden] {
  display: none;
}

.home-featured-window {
  position: relative;
  overflow: hidden;
}

.home-featured-window.is-clipped::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 130px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff 86%);
}

.more-cases-row {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}
.more-cases-button {
  min-width: 177px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #111;
  border-radius: var(--radius);
  background: #111;
  color: #fff;
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 760;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.more-cases-button:hover {
  transform: translateY(-1px);
}

.work-card {
  display: block;
  position: relative;
  width: 100%;
  margin: 0;
}
.work-card[hidden] { display: none; }

.work-thumb {
  position: relative;
  display: block;
  aspect-ratio: var(--thumb-ratio, 282 / 320);
  overflow: hidden;
  border-radius: var(--radius);
  background: #ddd;
}
.work-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .28s ease;
}
.work-heat-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 9px;
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 999px;
  background: rgba(15, 15, 13, .58);
  color: #fff;
  font-size: 11px;
  font-weight: 820;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .16);
}
.work-lineage-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  max-width: calc(100% - 108px);
  min-height: 24px;
  padding: 3px 9px;
  border: 1px solid rgba(255, 255, 255, .46);
  border-radius: 999px;
  background: rgba(226, 77, 46, .82);
  color: #fff;
  font-size: 11px;
  font-weight: 820;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .16);
}
.work-card:hover .work-thumb img { transform: scale(1.025); }
.work-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 42%, rgba(0, 0, 0, .68) 100%);
  opacity: .92;
  pointer-events: none;
}
.work-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  gap: 5px;
  padding: 34px 118px 14px 14px;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .32);
}
.work-title {
  font-size: 15px;
  font-weight: 760;
  line-height: 1.25;
}
.work-subline {
  color: rgba(255, 255, 255, .82);
  font-size: 12px;
  line-height: 1.3;
}
.work-tags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.work-tags span {
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 650;
}

.work-engagement-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.work-engagement-actions.is-card {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 4;
}

.work-engagement-button {
  min-width: 42px;
  min-height: 28px;
  border: 1px solid rgba(255, 255, 255, .46);
  border-radius: 999px;
  background: rgba(15, 15, 13, .54);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 4px 8px;
  font-size: 13px;
  font-weight: 780;
  line-height: 1;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .16);
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.work-engagement-button:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, .72);
  background: rgba(15, 15, 13, .72);
}

.work-engagement-button.active {
  border-color: rgba(255, 255, 255, .62);
  background: rgba(226, 77, 46, .88);
  color: #fff;
}

.work-engagement-button strong {
  font-size: 11px;
  font-weight: 860;
}
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tag {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 8px;
  background: #fff;
  color: #454540;
  font-size: 12px;
  font-weight: 750;
}

.home-footer-block {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr);
  gap: 34px;
  margin: 0 0 72px;
  padding: 32px 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #fafaf7 0%, #ffffff 62%);
}

.home-footer-main h2 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.25;
}

.home-footer-main p {
  max-width: 360px;
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.home-footer-stats {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.home-footer-stats span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}

.home-footer-stats strong {
  display: block;
  margin-bottom: 2px;
  color: #151611;
  font-size: 22px;
  line-height: 1;
  font-weight: 900;
}

.home-footer-feed {
  display: grid;
  gap: 0;
  align-self: center;
  border-top: 1px solid var(--line);
}

.home-feed-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.home-feed-item > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.home-feed-item h3 {
  margin: 0 0 5px;
  font-size: 14px;
  line-height: 1.35;
}

.home-feed-item p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.home-feed-item .text-link {
  min-width: 86px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #111;
  border-radius: var(--radius);
  background: #fff;
  color: #111;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.home-feed-item .text-link:hover {
  background: #111;
  color: #fff;
}

.site-footer {
  width: 100vw;
  margin: 40px 0 0 calc(50% - 50vw);
  padding: 22px 0 0;
  border-top: 1px solid #ededeb;
  background: #f7f7f5;
}

.site-footer > * {
  width: min(1200px, calc(100vw - 84px));
  margin-left: auto;
  margin-right: auto;
}

.site-footer-hero {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 0 0 20px;
}

.footer-brand {
  display: block;
}

.footer-lockup {
  width: 188px;
  max-width: 42vw;
  height: auto;
  display: block;
}

.footer-slogan {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  text-align: right;
}

.footer-slogan-icon {
  width: 36px;
  height: auto;
  display: block;
  flex: 0 0 auto;
}

.footer-slogan strong {
  display: block;
  color: #080908;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.25;
}

.footer-slogan small {
  display: block;
  margin-top: 3px;
  color: #686961;
  font-size: 9.5px;
  line-height: 1.3;
}

.site-footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 39px;
  padding: 22px 0 27px;
}

.site-footer-column h2 {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding-bottom: 15px;
  border-bottom: 1px solid #9f9f98;
  color: #121311;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.25;
}

.footer-column-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  display: block;
  object-fit: contain;
}

.footer-link-list {
  display: grid;
  gap: 8px;
  padding-top: 17px;
}

.footer-link-list a {
  min-height: 19px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: #4b4d48;
  font-size: 11px;
  font-weight: 720;
  line-height: 1.25;
}

.footer-link-list a:hover {
  color: #111;
}

.footer-link-list a span {
  color: #92938c;
  font-size: 15px;
  line-height: 1;
}

.footer-contact,
.footer-company {
  display: grid;
  align-content: start;
}

.footer-lab-mark,
.footer-company-mark {
  display: block;
  max-width: 100%;
  height: auto;
  margin-top: 22px;
}

.footer-lab-mark {
  width: 166px;
}

.footer-company-mark {
  width: 170px;
}

.footer-socials {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  --footer-social-width: calc(25px * 3 + 4px * 2);
  justify-self: start;
  width: fit-content;
  max-width: 100%;
  margin-top: 15px;
  margin-left: calc((166px - var(--footer-social-width)) / 2);
}

.footer-social-link {
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  display: block;
  border: 0;
  border-radius: 999px;
  padding: 0;
  appearance: none;
  background-color: transparent;
  background-image: url("../images/icons/footer/footer-socials.png");
  background-repeat: no-repeat;
  background-size: auto 25px;
  box-shadow: none;
  cursor: pointer;
  transition: transform .18s ease, opacity .18s ease;
}

.footer-social-link:hover,
.footer-social-link:focus-visible {
  opacity: .82;
  transform: translateY(-1px);
}

.footer-social-link.bilibili {
  background-position: left center;
}

.footer-social-link.xiaohongshu {
  background-position: center center;
}

.footer-social-link.wechat {
  background-position: right center;
}

.footer-social-popover-wrap {
  position: relative;
  display: inline-flex;
}

.footer-social-popover {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  z-index: 30;
  display: block;
  padding: 5px;
  border: 1px solid rgba(0, 0, 0, .12);
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(0, 0, 0, .18);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(4px);
  transition: opacity .16s ease, transform .16s ease;
}

.footer-social-popover img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 7px;
}

.footer-social-popover.bilibili-card {
  width: 150px;
}

.footer-social-popover.xiaohongshu-card {
  width: 210px;
}

.footer-social-popover.wechat-card {
  width: 168px;
}

.footer-social-popover-wrap:hover .footer-social-popover,
.footer-social-popover-wrap:focus-within .footer-social-popover {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.footer-site-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 20px;
  color: #5d5f58;
  font-size: 11px;
  font-weight: 760;
}

.footer-site-link img {
  width: 14px;
  height: 14px;
  object-fit: contain;
}

.site-footer-bottom {
  min-height: 57px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  border-top: 1px solid #9f9f98;
  color: #8a8a84;
  font-size: 9.5px;
  line-height: 1.4;
}

.site-footer-bottom span {
  display: block;
  width: 100%;
}

.info-page {
  padding: 52px 0 76px;
}

.info-layout {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.info-toc {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.info-toc strong {
  display: block;
  margin: 0 0 4px;
  font-size: 16px;
}

.info-toc a {
  min-height: 36px;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 7px 10px;
  color: #444640;
  font-size: 13px;
  font-weight: 780;
}

.info-toc a:hover {
  border-color: #111;
  color: #111;
}

.info-article {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 28px 30px;
  box-shadow: var(--shadow);
}

.info-article header {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.info-article h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: 0;
}

.info-article header p {
  max-width: 760px;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.info-section {
  scroll-margin-top: 86px;
  padding: 28px 0 0;
}

.info-section:first-child {
  padding-top: 0;
}

.info-section + .info-section {
  margin-top: 12px;
  border-top: 1px solid var(--line);
}

.info-section h2 {
  margin: 0 0 14px;
  font-size: 22px;
  line-height: 1.15;
}

.info-section h3 {
  margin: 16px 0 8px;
  color: #22231f;
  font-size: 15px;
  line-height: 1.15;
}

.info-section p {
  margin: 0 0 6px;
  color: #454640;
  font-size: 13px;
  line-height: 1.35;
}

.info-section ul {
  margin: 0 0 8px;
  padding-left: 18px;
}

.info-section li {
  margin: 0 0 4px;
  color: #454640;
  font-size: 13px;
  line-height: 1.35;
}

.info-note {
  margin: 10px 0 12px;
  border: 1px solid #dfe7ef;
  border-radius: 8px;
  background: #f6f8fb;
  padding: 10px 12px;
}

.info-note p {
  margin: 0;
  line-height: 1.35;
}

.info-table {
  width: 100%;
  margin: 10px 0 12px;
  border-collapse: collapse;
  border: 1px solid var(--line);
  color: #454640;
  font-size: 13px;
  line-height: 1.35;
}

.info-table th,
.info-table td {
  border: 1px solid var(--line);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}

.info-table th {
  background: #f6f8fb;
  color: #1d1e1b;
  font-weight: 860;
}

.notice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 56px;
}
.notice-card {
  min-height: 136px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.upload-panel {
  display: none;
  grid-template-columns: 260px 1fr;
  gap: 18px;
  padding: 18px;
  margin-bottom: 22px;
}
.upload-panel.open { display: grid; }
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.full { grid-column: 1 / -1; }

.upload-page {
  padding-bottom: 64px;
}
.upload-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 24px;
  align-items: end;
  padding: 32px 0 24px;
  border-bottom: 1px solid var(--line);
}
.upload-hero h1 {
  max-width: 640px;
  margin: 0 0 10px;
  font-size: 28px;
  line-height: 1.18;
}
.upload-hero p {
  max-width: 660px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}
.upload-hero-note {
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffaf6;
}
.upload-hero-note span {
  color: #b8663d;
  font-size: 12px;
  font-weight: 760;
}
.upload-hero-note strong {
  font-size: 14px;
  line-height: 1.45;
}
.upload-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 24px;
  align-items: start;
  padding-top: 24px;
}
.upload-review-state {
  margin: -8px 0 24px;
  padding: 22px 24px;
  border: 1px solid #ead8ca;
  border-radius: var(--radius);
  background: #fff8f2;
}
.upload-review-state h2 {
  margin: 2px 0 8px;
  font-size: 20px;
}
.upload-review-state p:not(.kicker) {
  max-width: 620px;
  margin: 0 0 16px;
  color: #6d5d52;
  line-height: 1.7;
}
.upload-form-panel,
.upload-preview-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}
.upload-form-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 22px;
}
.upload-options-row {
  display: grid;
  grid-template-columns: minmax(180px, .85fr) minmax(300px, 1.15fr);
  gap: 14px;
  align-items: start;
}
.form-section-head {
  padding-top: 4px;
  border-top: 1px solid var(--line);
}
.form-section-head:first-child {
  padding-top: 0;
  border-top: 0;
}
.form-section-head h2 {
  margin-bottom: 2px;
}
.textarea.small {
  min-height: 96px;
}
.upload-preview-panel {
  position: sticky;
  top: 86px;
  padding: 18px;
}
.upload-cover-preview {
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  overflow: hidden;
  margin: 14px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #f6f7f4, #fff);
  color: var(--muted);
  font-size: 13px;
}
.upload-cover-preview img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.upload-video-preview {
  min-height: 92px;
  display: grid;
  gap: 8px;
  place-items: center;
  margin: 0 0 14px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-soft);
  color: var(--muted);
  font-size: 12px;
}
.upload-video-preview video {
  width: 100%;
  max-height: 240px;
  display: block;
  background: #111;
}
.upload-assets-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  min-width: 0;
}
.upload-asset-card {
  grid-template-rows: auto auto 1fr;
  gap: 10px;
  min-width: 0;
  min-height: 156px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fafafa;
}
.upload-asset-card--program {
  grid-column: 1 / -1;
  min-height: 142px;
}
.upload-asset-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}
.field-group .upload-asset-card__header strong {
  min-width: 0;
  color: #20211e;
  font-size: 13px;
  line-height: 1.35;
}
.field-group .upload-asset-limit {
  flex: 0 0 auto;
  padding: 3px 7px;
  border: 1px solid #d9dcd5;
  border-radius: 4px;
  background: #fff;
  color: #62675f;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
}
.upload-asset-card > .field {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  font-size: 12px;
}
.upload-asset-help {
  display: grid;
  align-content: end;
  gap: 4px;
  min-height: 34px;
  color: var(--muted);
}
.field-group .upload-asset-help small {
  color: inherit;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.45;
}
.upload-summary {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 10px 12px;
  margin: 0 0 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.upload-summary dt {
  color: var(--muted);
  font-size: 12px;
}
.upload-summary dd {
  min-width: 0;
  margin: 0;
  color: #151611;
  font-size: 13px;
  font-weight: 680;
  overflow-wrap: anywhere;
}

.work-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  padding: 16px 0 50px;
  align-items: start;
}
.work-media {
  position: relative;
  aspect-ratio: 282 / 320;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--panel-soft);
}
.work-media::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  background: url("../images/ui/abstract-isometric-loader.gif") center / contain no-repeat;
  transform: translate(-50%, -50%);
}
.work-media.is-ready::after,
.work-media.has-image-error::after {
  display: none;
}
.work-media img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius);
  display: block;
  margin-bottom: 14px;
  object-fit: cover;
}
.work-media img[hidden] {
  display: none;
}
.studio-preview {
  width: 100%;
  min-height: 500px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.work-aside {
  position: sticky;
  top: 86px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.work-aside h1 {
  margin: 0 0 14px;
  font-size: 24px;
  line-height: 1.2;
}
.work-description {
  margin: 0 0 18px;
  color: #2b2b26;
  font-size: 14px;
  line-height: 1.8;
}
.work-meta-list {
  display: grid;
  gap: 10px;
  margin: 0 0 16px;
}
.work-meta-list div {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
}
.work-meta-list dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.work-meta-list dd {
  margin: 0;
  color: #151611;
  font-size: 14px;
  font-weight: 780;
  overflow-wrap: anywhere;
}
.work-heat-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 26px;
  padding: 5px 12px;
  border: 1px solid #ead6c9;
  border-radius: 999px;
  background: #fff4ec;
  color: #d8623f;
  font-size: 14px;
  font-weight: 880;
  line-height: 1;
}

.work-device-permissions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -2px 0 16px;
  padding: 0 0 16px;
  border-bottom: 1px solid var(--line);
}

.work-device-permission-pill {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #dbe3ed;
  border-radius: 999px;
  background: #f7fafc;
  padding: 6px 10px;
  color: #415369;
}

.work-device-permission-pill.is-none {
  border-color: var(--line);
  background: #f8f8f5;
  color: var(--muted);
}

.work-device-permission-pill strong {
  color: inherit;
  font-size: 12px;
  font-weight: 860;
  line-height: 1;
}

.work-access-card {
  display: grid;
  gap: 6px;
  min-height: 74px;
  margin: 0 0 16px;
  padding: 16px 18px;
  border: 1px solid #d6e0ea;
  border-radius: var(--radius);
  background: #f3f7fb;
}
.work-access-card.is-free {
  border-color: #d6e0ea;
  background: #f3f7fb;
}
.work-access-card.is-paid {
  border-color: #efd0c2;
  background: #fff5ef;
}
.work-access-title {
  color: #435b70;
  font-size: 26px;
  line-height: 1.08;
  font-weight: 920;
  letter-spacing: 0;
}
.work-access-copy {
  color: #5e7284;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 760;
}
.work-access-card.is-paid .work-access-title {
  color: #d65a36;
}
.work-access-card.is-paid .work-access-copy {
  color: #a75a42;
}
#try-work {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-color: #111;
  background: #111;
  color: #fff;
  font-size: 14px;
  font-weight: 840;
}
#try-work:hover {
  border-color: #222;
  background: #222;
}
#vibe-link-side {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-color: #d8623f;
  background: #d8623f;
  color: #fff;
  font-size: 14px;
  font-weight: 840;
}
#vibe-link-side:hover {
  border-color: #bd4f31;
  background: #bd4f31;
}
.stack-actions { flex-direction: column; align-items: stretch; margin-top: 20px; }
.stack-actions.horizontal { flex-direction: row; align-items: center; }

.trial-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 30px;
}

.trial-modal.is-fullscreen {
  padding: 0;
}

.trial-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 18, 14, .42);
  backdrop-filter: blur(10px);
}

.trial-modal.is-fullscreen .trial-backdrop {
  background: #fff;
  backdrop-filter: none;
}

.trial-dialog {
  position: relative;
  width: min(1180px, calc(100vw - 60px));
  height: min(780px, calc(100vh - 60px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 32px 90px rgba(0, 0, 0, .22);
}

.trial-modal.is-fullscreen .trial-dialog {
  width: 100vw;
  height: 100vh;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.trial-loading {
  position: absolute;
  inset: 64px 0 0;
  display: none;
  z-index: 2;
  place-items: center;
  align-content: center;
  gap: 8px;
  background: #fff;
  color: var(--muted);
  font-weight: 760;
}

.trial-loading img {
  width: 36px;
  max-width: 40px;
  height: auto;
  object-fit: contain;
}

.trial-loading span {
  font-size: 13px;
  line-height: 1.2;
}

.trial-modal.is-loading .trial-loading {
  display: grid;
}

.trial-head {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}

.trial-title-block {
  min-width: 0;
}

.trial-head h2 {
  margin: 0;
  font-size: 16px;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trial-meta {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trial-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.trial-control {
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 6px 13px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.trial-control:hover {
  border-color: #111;
  color: #111;
}

.trial-dialog iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

.trial-modal.is-loading .trial-dialog iframe {
  opacity: 0;
}

.work-extra {
  display: grid;
  gap: 26px;
  padding: 8px 0 74px;
}

.work-extra-section {
  border-top: 1px solid var(--line);
  padding-top: 28px;
}
.work-demo-video-section video {
  width: 100%;
  max-height: 720px;
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #111;
}
.work-demo-video-error {
  margin-top: 10px !important;
  color: #b42318 !important;
}

.work-overview-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
}

.work-extra h2 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.25;
}

.work-extra p {
  margin: 0;
  color: #3f403a;
  line-height: 1.85;
}

.work-fact-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.work-fact-list div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.work-fact-list dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.work-fact-list dd {
  margin: 0;
  color: #151611;
  font-weight: 820;
  text-align: right;
}

.work-fact-list .work-use-count-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.work-use-count-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  padding: 0;
  border-bottom: 0;
}

.work-use-count-item + .work-use-count-item {
  border-left: 1px solid var(--line);
  padding-left: 12px;
}

.work-use-count-item dt {
  text-align: left;
}

.work-use-count-item dd {
  color: #151611;
  font-size: 18px;
  font-weight: 860;
  text-align: right;
}

.work-extra-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.work-info-block {
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.work-info-block ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
  color: #33342f;
  line-height: 1.75;
}

.work-timeline {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.work-timeline li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.work-timeline span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.work-timeline strong {
  color: #151611;
  font-size: 13px;
  text-align: right;
}

.work-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.work-source-card {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding: 13px 14px;
  border: 1px solid #d8e0ea;
  border-radius: 8px;
  background: #f4f7fb;
}

.work-source-head {
  display: grid;
  gap: 5px;
}

.work-lineage-note {
  margin: 0 0 12px;
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  border: 1px solid #d8e0ea;
  border-radius: 999px;
  background: #f4f7fb;
  color: #526477;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 820;
}

.work-source-card span,
.work-derivative-count {
  color: #526477;
  font-size: 12px;
  font-weight: 820;
}

.work-source-card strong {
  color: #151611;
  font-size: 14px;
  line-height: 1.45;
}

.work-source-links {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.source-work-card-link {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  min-height: 76px;
  padding: 9px;
  border: 1px solid #dbe3ed;
  border-radius: 8px;
  background: #fbfdff;
  color: #151611;
  text-decoration: none;
}

.source-work-card-link:hover {
  border-color: #b9c7d6;
  background: #f1f5f9;
}

.source-work-thumb {
  width: 58px;
  height: 58px;
  display: block;
  overflow: hidden;
  border: 1px solid #dbe3ed;
  border-radius: 6px;
  background: #eef3f8;
}

.source-work-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.source-work-copy {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.source-work-copy em {
  color: #526477;
  font-size: 11px;
  font-style: normal;
  font-weight: 820;
}

.source-work-title {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  font-size: 14px;
  font-weight: 860;
  line-height: 1.32;
}

.work-derivative-section {
  border-top-color: #efcfc3;
}

.work-derivative-section .work-section-head {
  align-items: center;
}

.work-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.work-related-card {
  display: grid;
  gap: 10px;
}

.work-related-link {
  display: grid;
  gap: 10px;
}

.work-related-thumb {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--panel-soft);
}

.work-related-thumb .work-lineage-badge {
  max-width: calc(100% - 20px);
}

.work-related-card .work-engagement-actions {
  margin-top: 0;
}

.work-engagement-actions.is-detail {
  margin: 14px 0 12px;
}

.work-engagement-actions.is-compact .work-engagement-button {
  min-height: 32px;
}

.work-related-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
  background: var(--panel-soft);
}

.work-related-card strong {
  display: block;
  color: #151611;
  font-size: 14px;
  line-height: 1.35;
}

.work-related-card em {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.vibe-studio {
  --vibe-panel-height: clamp(680px, calc(100vh - 190px), 840px);
  display: grid;
  grid-template-columns: minmax(320px, 380px) minmax(0, 1fr);
  gap: 16px;
  margin-bottom: 48px;
  align-items: stretch;
}

.vibe-chat-panel,
.vibe-preview-panel {
  height: var(--vibe-panel-height);
  max-height: var(--vibe-panel-height);
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.vibe-chat-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
}

.vibe-chat-head,
.vibe-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.vibe-chat-head h2,
.vibe-preview-head h2 {
  margin: 0;
  font-size: 17px;
  line-height: 1.2;
}

.vibe-preview-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.vibe-fullscreen-close {
  display: none;
}

.vibe-preview-panel.is-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 110;
  width: 100vw;
  height: 100vh;
  max-height: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.vibe-preview-panel.is-fullscreen .vibe-preview-head {
  min-height: 64px;
  background: #fff;
}

.vibe-preview-panel.is-fullscreen .vibe-fullscreen-close {
  display: inline-flex;
}

body.vibe-preview-fullscreen-open {
  overflow: hidden;
}

#vibe-status {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

#save-variant {
  border-color: #e24d2e;
  background: #e24d2e;
  color: #fff;
  box-shadow: 0 10px 24px rgba(226, 77, 46, .22);
}

#save-variant:hover {
  border-color: #c93d22;
  background: #c93d22;
  box-shadow: 0 12px 28px rgba(201, 61, 34, .28);
}

.save-title-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 20px;
}

.save-title-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 12, 10, .46);
}

.save-title-dialog {
  position: relative;
  width: min(100%, 420px);
  max-height: calc(100vh - 40px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 24px;
}

.save-title-dialog h2 {
  margin: 4px 0 8px;
  font-size: 24px;
}

.save-title-dialog p:not(.kicker) {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.65;
}

.save-title-form {
  display: grid;
  gap: 12px;
}

.variant-submit-dialog {
  width: min(100%, 820px);
}

.variant-save-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.variant-save-form .full {
  grid-column: 1 / -1;
}

.variant-cover-preview {
  min-height: 160px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #f6f7f4, #fff);
  color: var(--muted);
  font-size: 13px;
}

.variant-cover-preview img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.vibe-chat {
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  padding: 14px;
  background: #faf9f4;
}

.vibe-message {
  max-width: 92%;
  display: grid;
  gap: 5px;
  align-self: flex-start;
}

.vibe-message span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 840;
}

.vibe-message p {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px 12px;
  color: #22231e;
  font-size: 14px;
  line-height: 1.6;
}

.vibe-progress {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px 12px;
}

.vibe-progress p {
  border: 0;
  padding: 0;
  margin-bottom: 8px;
  color: #22231e;
}

.vibe-progress-loader {
  justify-content: flex-start;
  white-space: normal;
}

.vibe-progress-loader .loading-gif {
  width: 34px;
}

.vibe-progress ol {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.vibe-progress li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.vibe-progress li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .45em;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #111;
  opacity: .26;
}

.vibe-progress li:nth-child(1)::before {
  opacity: 1;
}

.vibe-message.is-user {
  align-self: flex-end;
}

.vibe-message.is-user span {
  text-align: right;
}

.vibe-message.is-user p {
  border-color: #111;
  background: #111;
  color: #fff;
}

.vibe-compose {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-top: 1px solid var(--line);
}

.vibe-compose.is-busy {
  opacity: .72;
}

.vibe-preview-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}

.vibe-preview-panel .studio-preview {
  min-height: 0;
  height: 100%;
  border: 0;
  border-radius: 0;
}
.prompt { min-height: 130px; }
.code-editor {
  width: 100%;
  min-height: 360px;
  margin-top: 12px;
  border: 1px solid #232323;
  border-radius: var(--radius);
  background: #151515;
  color: #f4f4ef;
  padding: 12px;
  font: 12px/1.55 Consolas, "Cascadia Code", monospace;
  resize: vertical;
}
.studio-preview { min-height: 660px; }

.account-layout, .admin-console {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 14px;
  padding: 38px 0 50px;
}
.side-panel {
  padding: 18px;
  align-self: start;
}
.side-panel h1 { font-size: 20px; line-height: 1.2; }
.side-panel.dark { min-height: 100vh; background: #131411; color: #fff; border-color: #131411; }
.side-tab {
  width: 100%;
  min-height: 38px;
  margin-bottom: 7px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  text-align: left;
  padding: 9px 10px;
  font-size: 13px;
  font-weight: 720;
}
.side-tab.active, .side-panel.dark .side-tab.active { background: #111; color: #fff; border-color: #111; }
.side-panel.dark .side-tab { background: #1c1c1c; color: #fff; border-color: #343434; }
.side-tab.danger { color: var(--accent); }
.content-panel { min-height: 500px; padding: 18px; }

.mine-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}
.mine-section-head h2 {
  font-size: 24px;
  line-height: 1.15;
}
.mine-engagement-summary {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}
.mine-engagement-summary article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 14px;
}
.mine-engagement-summary strong {
  display: block;
  color: #111;
  font-size: 24px;
  line-height: 1;
  font-weight: 900;
}
.mine-engagement-summary span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}
.mine-engagement-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}
.mine-engagement-tab {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 14px;
  color: #111;
  text-align: left;
  cursor: pointer;
}
.mine-engagement-tab.active {
  border-color: #111;
  background: #111;
  color: #fff;
}
.mine-engagement-tab strong {
  display: block;
  color: inherit;
  font-size: 24px;
  line-height: 1;
  font-weight: 900;
}
.mine-engagement-tab span {
  display: block;
  margin-top: 7px;
  color: inherit;
  font-size: 12px;
  font-weight: 760;
  opacity: .74;
}
.mine-section {
  margin-top: 22px;
}
.mine-section > h3 {
  margin-bottom: 10px;
  font-size: 17px;
  line-height: 1.25;
}
.mine-owned-work-section {
  margin-top: 16px;
}
.mine-work-management-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}
.mine-work-management-toolbar h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
}
.mine-work-management-toolbar p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.mine-work-management-list {
  display: grid;
  gap: 14px;
}
.mine-work-portfolio-grid {
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
}
.mine-work-management-card {
  display: grid;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(20, 21, 17, .05);
}
.mine-case-card {
  background: linear-gradient(180deg, #fff 0%, #fbfcfa 100%);
}
.mine-work-cover {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--panel-soft);
}
.mine-work-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mine-work-management-main {
  display: grid;
  align-content: start;
  gap: 9px;
  min-width: 0;
  padding: 12px 12px 10px;
}
.mine-work-management-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.mine-work-management-top h4 {
  margin: 0;
  font-size: 16px;
  line-height: 1.32;
  letter-spacing: 0;
}
.mine-work-management-top time {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  text-align: right;
  white-space: nowrap;
}
.mine-work-kicker {
  margin: 0 0 4px;
  color: #6f7468;
  font-size: 11px;
  font-weight: 760;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mine-work-status {
  position: absolute;
  right: 10px;
  top: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 780;
  white-space: nowrap;
  backdrop-filter: blur(8px);
}
.mine-work-status.is-published {
  border-color: #111;
  color: #111;
}
.mine-work-status.is-hidden {
  border-color: #d9a68f;
  background: #fff4ec;
  color: #b84d2a;
}
.mine-work-status.is-reviewing {
  border-color: #cfd7e2;
  background: #f4f7fb;
  color: #526477;
}
.mine-work-status.is-rejected {
  border-color: #efc2b9;
  background: #fff3ef;
  color: #b8331b;
}
.mine-work-description {
  margin: 0;
  color: #4b4c45;
  font-size: 12px;
  line-height: 1.5;
  min-height: 36px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mine-review-feedback {
  margin: 0;
  padding: 8px 10px;
  border-left: 3px solid #cf4328;
  background: #fff4f1;
  color: #852815;
  font-size: 12px;
  line-height: 1.5;
}
.mine-review-feedback strong,
.mine-review-feedback span {
  display: block;
}
.mine-review-feedback strong {
  margin-bottom: 2px;
}
.mine-work-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.mine-work-tag-row span {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fafaf8;
  padding: 4px 8px;
  color: #55584e;
  font-size: 11px;
  font-weight: 760;
}
.mine-work-data-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.mine-case-data-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.mine-work-data-grid span {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafaf8;
  padding: 7px 8px 6px;
}
.mine-work-data-grid strong {
  display: block;
  color: #111;
  font-size: 15px;
  line-height: 1;
  font-weight: 900;
}
.mine-work-data-grid em {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 760;
}
.mine-work-action-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  padding: 0 12px 12px;
}
.mine-case-action-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.mine-work-action-row .nav-button {
  width: 100%;
  min-height: 34px;
  padding: 7px 8px;
  text-align: center;
}
.mine-work-action-row .nav-button.danger {
  border-color: #e9b2a5;
  color: #c33a1a;
  background: #fff6f3;
}
.mine-work-action-row .mine-reviewing-lock {
  border-color: #cfd7e2;
  background: #f4f7fb;
  color: #526477;
  cursor: default;
  pointer-events: none;
}
.mine-work-action-row .mine-rejected-lock {
  border-color: #efc2b9;
  background: #fff3ef;
  color: #b8331b;
}
.mine-owned-work-editor {
  align-items: center;
}
.mine-owned-work-dialog {
  width: min(100%, 780px);
}
.mine-owned-work-dialog > p:not(.kicker) {
  max-width: 620px;
}
.mine-owned-work-edit-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}
.mine-owned-work-edit-form .full {
  grid-column: 1 / -1;
}
.owned-work-cover-preview {
  min-height: 190px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f7f3;
}
.owned-work-cover-preview img {
  width: 100%;
  height: 100%;
  max-height: 260px;
  object-fit: cover;
}
.owned-work-video-editor video {
  width: 100%;
  max-height: 320px;
  display: block;
  border: 1px solid var(--line);
  background: #111;
}

.admin-shell { width: min(1220px, calc(100vw - 56px)); margin: 0 auto; }
.admin-login {
  max-width: 420px;
  margin: 12vh auto;
  padding: 24px;
}
.admin-login h1 { font-size: 28px; }
.login-stack { display: grid; gap: 12px; margin: 22px 0; }
.admin-brand { margin-bottom: 18px; color: #fff; }
.admin-content { margin-top: 38px; }

.management-shell {
  width: min(1260px, calc(100vw - 48px));
  margin: 0 auto;
}
.management-login {
  width: min(430px, 100%);
  margin: 12vh auto;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}
.management-login h1 { font-size: 28px; }
.management-console {
  --management-control-height: var(--admin-control-height);
  --management-compact-control-height: var(--admin-compact-control-height);
  --management-action-height: var(--admin-action-height);
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 14px;
  padding: 24px 0 48px;
}
.management-sidebar {
  position: sticky;
  top: 24px;
  align-self: start;
  min-height: calc(100vh - 48px);
  padding: 16px;
  border: 1px solid #151611;
  border-radius: var(--radius);
  background: #151611;
  color: #fff;
}
.management-brand {
  color: #fff;
  margin-bottom: 16px;
  align-items: center;
}
.management-brand .brand-mark {
  width: 62px;
  height: 52px;
  flex: 0 0 62px;
  overflow: visible;
}
.management-brand .brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.management-tabbar {
  display: grid;
  gap: 8px;
}
.management-sidebar .side-tab {
  background: rgba(255, 255, 255, .04);
  border-color: rgba(255, 255, 255, .1);
  color: rgba(255, 255, 255, .82);
}
.management-sidebar .side-tab.active {
  background: #fff;
  border-color: #fff;
  color: #111;
}
.management-sidebar .side-tab.danger {
  color: #ffb29d;
}
.management-content {
  min-width: 0;
  width: 100%;
}
.management-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-end;
  margin-bottom: 16px;
}
.management-head-with-actions {
  align-items: flex-end;
}
.management-head h1 {
  margin-bottom: 8px;
}
.management-head p {
  max-width: 700px;
  color: var(--muted);
}
.management-head-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.management-count-pill {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid #dfe7ef;
  border-radius: 999px;
  background: #f7fafc;
  color: #536274;
  font-size: 12px;
  font-weight: 780;
  white-space: nowrap;
}
.management-stats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.management-stats article,
.management-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}
.management-stats article {
  display: grid;
  gap: 4px;
  padding: 14px;
}
.management-stats strong {
  font-size: 22px;
  line-height: 1;
}
.management-stats span {
  color: var(--muted);
  font-size: 12px;
}
.management-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.management-card {
  padding: 16px;
  margin-bottom: 14px;
  max-width: 100%;
  overflow-x: auto;
}
.management-card h2 {
  margin-bottom: 12px;
}
.management-category-grid,
.management-category-name-grid {
  display: grid;
  gap: 8px;
}
.management-category-name-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.management-category-name-grid label {
  display: grid;
  gap: 6px;
}
.management-category-name-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}
.management-banner-upload {
  gap: 10px;
}
.management-banner-control-row {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 180px;
  gap: 10px;
  align-items: end;
}
.management-banner-control-row label {
  display: grid;
  gap: 6px;
}
.management-banner-list {
  display: grid;
  gap: 8px;
  width: min(100%, 760px);
}
.management-banner-item {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: 8px;
  border: 1px solid #dce3eb;
  border-radius: 8px;
  background: #f8fafb;
}
.management-banner-item img {
  display: block;
  width: 112px;
  aspect-ratio: 3 / 1;
  border-radius: 6px;
  object-fit: contain;
  object-position: center center;
  background: #eef3f6;
}
.management-banner-meta {
  min-width: 0;
  display: grid;
  gap: 3px;
}
.management-banner-meta strong {
  font-size: 13px;
}
.management-banner-meta span {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.management-banner-actions {
  display: flex;
  gap: 6px;
}
.management-banner-actions button {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid #cfd8e3;
  border-radius: 6px;
  background: #fff;
  color: #111;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
}
.management-banner-actions button.danger {
  border-color: #efc2b9;
  color: #c93d22;
}
.management-banner-actions button:disabled {
  opacity: .38;
  cursor: not-allowed;
  transform: none;
}
.management-banner-empty {
  margin: 0;
  padding: 10px;
  border: 1px dashed #cfd8e3;
  border-radius: 8px;
  background: #f8fafb;
}
.management-table {
  min-width: 1040px;
}
.management-table.users-table {
  min-width: 1240px;
}
.management-works-card {
  overflow: visible;
}
.management-work-toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(140px, 168px) auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.management-work-toolbar label {
  display: grid;
  gap: 4px;
}
.management-work-toolbar span,
.management-work-field > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 760;
}
.management-work-toolbar .field {
  min-height: 32px;
  padding: 6px 9px;
  border-radius: 7px;
  font-size: 12px;
}
.management-work-toolbar strong {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f8f8f4;
  font-size: 12px;
  white-space: nowrap;
}
.management-work-list {
  display: grid;
  gap: 8px;
}
.management-work-record {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 72px;
  gap: 8px;
  align-items: start;
  padding: 8px;
  border: 1px solid #dfe7ef;
  border-radius: var(--admin-card-radius);
  background: var(--admin-record-blue);
}

.management-work-record.is-stripe-blue {
  border-color: var(--admin-record-blue-border);
  background: var(--admin-record-blue);
}

.management-work-record.is-stripe-green {
  border-color: var(--admin-record-green-border);
  background: var(--admin-record-green);
}

.management-work-record.is-stripe-blue .management-work-stats div,
.management-work-record.is-stripe-blue .management-work-cover span {
  border-color: #dae4ee;
  background: #fbfdff;
}

.management-work-record.is-stripe-green .management-work-stats div,
.management-work-record.is-stripe-green .management-work-cover span {
  border-color: #dcebd5;
  background: #fbfdf8;
}

.management-work-record.hidden {
  display: none;
}
.management-work-cover {
  display: grid;
  align-content: start;
  gap: 4px;
}
.management-work-thumb {
  width: 58px;
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #f8f8f4;
}
.management-work-cover span {
  display: inline-flex;
  justify-content: center;
  padding: 1px 5px;
  border-radius: 999px;
  background: #f4f7fb;
  color: #496171;
  font-size: 9px;
  font-weight: 780;
}
.management-work-body {
  display: grid;
  gap: 5px;
  min-width: 0;
}
.management-work-main,
.management-work-secondary {
  display: grid;
  gap: 6px;
  align-items: start;
}
.management-work-main {
  grid-template-columns: minmax(190px, 1.35fr) minmax(104px, .56fr) 62px minmax(92px, .56fr) 42px;
}
.management-work-secondary {
  grid-template-columns: minmax(190px, .82fr) 146px minmax(232px, 1fr);
  align-items: end;
}
.management-work-field {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.management-work-field .compact-cell {
  min-height: var(--management-compact-control-height);
  padding: 3px 7px;
  border-radius: 6px;
  font-size: 11px;
}
.management-work-title-field small {
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.management-work-category-field .management-category-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3px;
}
.management-work-category-field .compact-cell {
  min-height: 22px;
  padding: 2px 6px;
  font-size: 10px;
}
.management-work-metric input {
  color: #dc5f3a;
  font-size: 13px;
  font-weight: 820;
  text-align: center;
}
.management-work-metric small,
.management-work-check small {
  color: var(--muted);
  font-size: 9px;
}
.management-work-check input {
  width: 13px;
  height: 13px;
}
.management-work-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  align-content: start;
}
.management-work-actions .nav-button {
  width: 100%;
  min-height: var(--management-action-height);
  padding: 3px 6px;
  border-radius: 6px;
  font-size: 10px;
  line-height: 1.15;
  text-align: center;
}
.management-work-device-row {
  padding: 0;
  border-top: 0;
}
.management-work-device-field .device-permission-control {
  min-height: 0;
  display: grid;
  grid-template-columns: 30px repeat(2, minmax(54px, 1fr));
  gap: 3px;
}
.management-work-device-field .device-permission-option {
  min-height: 22px;
  padding: 2px 5px;
  border-radius: 6px;
  font-size: 9px;
  gap: 2px;
  white-space: nowrap;
}
.management-work-device-field .device-permission-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.management-work-device-field .device-permission-icon {
  display: none;
}
.management-work-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  margin: 0;
}
.management-work-stats div {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fafaf7;
  padding: 3px 4px;
}
.management-work-stats dt,
.management-work-stats dd {
  margin: 0;
}
.management-work-stats dt {
  color: var(--muted);
  font-size: 8.5px;
  font-weight: 760;
}
.management-work-stats dd {
  color: #111;
  font-size: 11px;
  font-weight: 820;
}
.management-trash-card {
  overflow: visible;
}
.management-trash-list {
  display: grid;
  gap: 8px;
}
.management-trash-record {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 208px;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid #dfe7ef;
  border-radius: var(--admin-card-radius);
  background: #f8fbfe;
}
.management-trash-thumb {
  display: grid;
  gap: 5px;
  justify-items: center;
}
.management-trash-thumb img {
  width: 68px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid #d8e1ea;
  border-radius: 7px;
  background: #fff;
}
.management-trash-thumb span {
  min-width: 42px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #eef4f9;
  color: #476072;
  font-size: 10px;
  font-weight: 820;
  text-align: center;
}
.management-trash-main {
  min-width: 0;
}
.management-trash-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.management-trash-title-row h2 {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
  line-height: 1.25;
}
.management-trash-title-row span {
  flex: 0 0 auto;
  padding: 2px 7px;
  border-radius: 999px;
  background: #fff4ef;
  color: #c65335;
  font-size: 10px;
  font-weight: 820;
}
.management-trash-main p {
  margin: 4px 0 7px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.management-trash-meta {
  display: grid;
  grid-template-columns: 92px 88px minmax(0, 1fr);
  gap: 6px;
  margin: 0;
}
.management-trash-meta div {
  min-width: 0;
  border: 1px solid #e2e8ee;
  border-radius: 7px;
  background: #fff;
  padding: 5px 7px;
}
.management-trash-meta dt {
  color: var(--muted);
  font-size: 9px;
  font-weight: 760;
}
.management-trash-meta dd {
  margin: 2px 0 0;
  color: #151611;
  font-size: 11px;
  font-weight: 820;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.management-trash-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
}
.management-trash-actions .nav-button {
  width: 100%;
  min-height: 30px;
  padding: 4px 7px;
  border-radius: 6px;
  font-size: 10px;
  line-height: 1.1;
  text-align: center;
}
.management-card.users-card {
  overflow: visible;
}
.management-user-list {
  display: grid;
  gap: 12px;
}

.management-user-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-bottom: 12px;
}

.management-user-pagination {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 92px;
  align-items: center;
  gap: 12px;
  min-height: 40px;
  margin-top: 16px;
}

.management-user-pagination span {
  min-width: 0;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.management-user-pagination .nav-button {
  width: 92px;
}
.management-user-record {
  display: grid;
  grid-template-columns: 188px minmax(0, 1fr) 194px;
  grid-template-areas:
    "profile form actions"
    "profile metrics actions"
    "detail detail detail";
  gap: 8px 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--admin-card-radius);
  background: #fff;
}
.management-user-profile {
  grid-area: profile;
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
}
.management-user-profile > div {
  min-width: 0;
}
.management-user-profile strong,
.management-user-profile span,
.management-user-profile small {
  display: block;
}
.management-user-profile strong {
  color: #111;
  font-size: 14px;
  font-weight: 860;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.management-user-profile span,
.management-user-profile small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.management-user-form {
  grid-area: form;
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1fr) minmax(0, .72fr) minmax(0, .72fr) minmax(0, .62fr);
  gap: 6px 8px;
  min-width: 0;
}
.management-user-field {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.management-user-field > span,
.management-user-metric > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 780;
}
.management-user-field .compact-cell {
  width: 100%;
  min-width: 0;
  min-height: var(--management-control-height);
  padding: 5px 9px;
  border-radius: 7px;
  font-size: 12px;
}
.management-user-field small,
.management-user-metric small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}
.management-user-metric {
  min-height: 0;
  display: flex;
  gap: 5px;
  align-items: baseline;
  padding: 0;
  border: 0;
  background: transparent;
}
.management-user-metrics {
  grid-area: metrics;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: center;
  min-width: 0;
}
.management-user-metric strong {
  color: #151611;
  font-size: 13px;
  line-height: 1;
}
.management-user-actions {
  grid-area: actions;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-content: center;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
}
.management-user-actions .nav-button {
  width: auto;
  min-width: 54px;
  min-height: 28px;
  padding: 4px 9px;
  border-radius: 7px;
  font-size: 12px;
  text-align: center;
}
.management-user-detail {
  grid-area: detail;
}
.management-thumb {
  width: 54px;
  height: 42px;
  display: block;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--line);
}
.management-avatar {
  width: 38px;
  height: 38px;
  display: block;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--line);
}
.table small {
  display: block;
}
.table small,
.empty-note {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.community-pagination {
  display: flex;
  justify-content: center;
  min-height: 56px;
  padding: 8px 20px 24px;
}

.community-pagination [hidden] {
  display: none;
}
.compact-cell {
  min-height: 32px;
  padding: 6px 8px;
  font-size: 12px;
}
.management-table small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}
.management-heat {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff4ec;
  color: #dc5f3a;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}
.review-work-list {
  display: grid;
  gap: 14px;
}
.review-work-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.review-work-card > img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--panel-soft);
}
.review-work-card p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.65;
}
.review-work-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.review-work-title h2 {
  margin: 0;
  font-size: 18px;
}
.review-work-meta {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}
.review-work-file-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 8px 0 0;
}
.review-work-meta div {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
}
.review-work-file-meta div {
  border: 1px solid #dbe5ec;
  border-radius: 10px;
  padding: 7px 9px;
  background: #f6f9fb;
}
.review-work-meta dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
}
.review-work-file-meta dt {
  color: #6d7b83;
  font-size: 11px;
  font-weight: 760;
}
.review-work-meta dd {
  margin: 2px 0 0;
  color: #151611;
  font-size: 13px;
  font-weight: 820;
  overflow-wrap: anywhere;
}
.review-work-file-meta dd {
  margin: 2px 0 0;
  color: #162029;
  font-size: 13px;
  font-weight: 820;
  overflow-wrap: anywhere;
}
.management-user-detail {
  grid-column: 1 / -1;
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.detail-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}
.detail-head h2 {
  margin-bottom: 4px;
}
.detail-head p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}
.status-pill {
  flex: 0 0 auto;
  border: 1px solid #111;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 760;
}
.detail-stat-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}
.detail-stat-grid article {
  min-height: 74px;
  display: grid;
  gap: 5px;
  align-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 10px;
}
.detail-stat-grid strong {
  font-size: 17px;
  line-height: 1.2;
}
.detail-stat-grid span {
  color: var(--muted);
  font-size: 12px;
}
.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.detail-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: #fff;
}
.detail-card h3 {
  margin-bottom: 10px;
}
.detail-list {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 7px 12px;
  margin: 0;
}
.detail-list.compact {
  margin-top: 12px;
}
.detail-list dt {
  color: var(--muted);
  font-size: 12px;
}
.detail-list dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
  font-weight: 650;
}
.category-stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.category-stat {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 9px;
  background: #fafaf8;
  color: #33332f;
  font-size: 12px;
}
.category-stat strong {
  color: #111;
}
.check-line {
  display: flex;
  gap: 8px;
  align-items: center;
  min-height: 38px;
  color: var(--muted);
}
.bar-list {
  display: grid;
  gap: 12px;
}
.bar-list div {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding-bottom: 10px;
}
.bar-list i {
  position: absolute;
  left: 0;
  right: auto;
  bottom: 0;
  height: 4px;
  border-radius: 999px;
  background: #111;
}
.heat-summary-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}
.heat-summary-list div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fffaf6;
}
.heat-summary-list dt {
  color: var(--muted);
  font-size: 12px;
}
.heat-summary-list dd {
  margin: 7px 0 0;
  color: #dc5f3a;
  font-size: 26px;
  font-weight: 850;
  line-height: 1;
}
.heat-rank-list {
  display: grid;
  gap: 8px;
}
.heat-rank-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.heat-rank-item:last-child {
  border-bottom: 0;
}
.heat-rank-item span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #111;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}
.heat-rank-item strong,
.heat-rank-item small {
  display: block;
}
.heat-rank-item small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}
.heat-rank-item em {
  color: #dc5f3a;
  font-size: 20px;
  font-style: normal;
  font-weight: 850;
}
.data-textarea {
  width: 100%;
  min-height: 420px;
  margin-top: 14px;
  font: 12px/1.55 Consolas, "Cascadia Code", monospace;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.table th, .table td {
  border-bottom: 1px solid var(--line);
  padding: 10px 8px;
  text-align: left;
  vertical-align: middle;
}
.table th { color: var(--muted); font-size: 12px; font-weight: 650; }

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}
.metric {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.metric strong { display: block; font-size: 18px; }

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 100;
  max-width: 360px;
  padding: 12px 14px;
  border: 1px solid #111;
  border-radius: var(--radius);
  background: #111;
  color: #fff;
  box-shadow: var(--shadow);
}

.toast-success {
  border-color: #146c43;
  background: #146c43;
}

.toast-error {
  border-color: #b42318;
  background: #b42318;
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 22px;
}
.auth-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 18, 14, .38);
  backdrop-filter: blur(10px);
}
.auth-dialog {
  position: relative;
  width: min(760px, 100%);
  max-height: min(88vh, 860px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .16);
  padding: 22px;
}
.auth-dialog h2 {
  margin-bottom: 16px;
  font-size: 20px;
}
.auth-copy p:last-child {
  max-width: 560px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 13px;
}
.auth-form,
.auth-view {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.auth-form {
  margin-top: 14px;
}
.auth-view {
  grid-column: 1 / -1;
}
.field-group {
  display: grid;
  gap: 6px;
}
.field-group span {
  color: #2b2b26;
  font-size: 12px;
  font-weight: 760;
}
.field-group span.upload-file-label,
.field-group span.upload-option-label {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.upload-file-label em,
.upload-option-label em {
  color: #7b8078;
  font-size: 12px;
  font-style: normal;
  font-weight: 650;
}
.upload-option-hint {
  margin: 0;
  color: #d94b23;
  font-size: 12px;
  font-weight: 760;
  line-height: 1.35;
}
.required-star {
  margin-left: 3px;
  color: #d5281b;
  font-style: normal;
  font-weight: 900;
}
.field-group .field {
  min-height: 42px;
}
.login-options {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.text-button {
  border: 0;
  background: transparent;
  color: #111;
  padding: 0;
  font-size: 12px;
  font-weight: 720;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.subtle-section-title {
  margin: 4px 0 0;
  color: #2b2b26;
  font-size: 12px;
  font-weight: 780;
}
.avatar-picker {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}
.avatar-option {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 10px 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}
.avatar-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.avatar-option .avatar-file-input {
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  pointer-events: auto;
}
.avatar-option img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
}
.avatar-upload-option {
  position: relative;
}
.avatar-plus {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line-dark);
  border-radius: 50%;
  background: #fafaf8;
  color: #111;
  font-size: 25px;
  font-weight: 520;
  line-height: 1;
}
.avatar-plus img {
  width: 54px;
  height: 54px;
  display: block;
  border-radius: 50%;
  object-fit: cover;
}
.avatar-option.selected {
  border-color: #111;
  color: #111;
  box-shadow: 0 0 0 3px rgba(20, 21, 17, .055);
}
.profile-head {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 16px;
}
.profile-head p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
}
.profile-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 1px solid var(--line);
  object-fit: cover;
}

.public-author-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
  text-underline-offset: 3px;
}

.public-user-page {
  width: min(1180px, calc(100% - 32px));
  margin: 40px auto 72px;
}

.public-user-profile {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 136px;
  padding: 24px 0 32px;
  border-bottom: 1px solid var(--line);
}

.public-user-avatar {
  width: 88px;
  height: 88px;
  flex: 0 0 88px;
  border-radius: 50%;
  object-fit: cover;
}

.public-user-copy h1 {
  margin: 4px 0 8px;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: 0;
}

.public-user-copy p {
  margin: 0;
}

.public-user-deleted {
  color: var(--muted);
  font-weight: 700;
}

.public-user-section {
  margin-top: 40px;
}

.public-user-work-grid {
  margin-top: 18px;
}
.profile-form {
  margin-bottom: 14px;
}
.form-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.login-required {
  max-width: 560px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.modal-close {
  position: absolute;
  right: 12px;
  top: 12px;
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 5px 10px;
  color: var(--muted);
  font-size: 12px;
}

.advanced-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 38px 0 10px;
}

.advanced-head h1 {
  margin: 4px 0 8px;
}

.advanced-head p:not(.kicker) {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.advanced-search {
  width: min(480px, 100%);
  display: block;
  margin: 18px 0 18px;
}

.advanced-search .search-form {
  width: 100%;
  margin: 0;
}

.advanced-results-status {
  min-height: 20px;
  margin: 8px 2px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 20px;
}

.advanced-case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  padding-bottom: 24px;
}

.advanced-pagination {
  min-height: 42px;
  display: flex;
  justify-content: center;
  padding-bottom: 54px;
}

.advanced-case-card {
  min-width: 0;
  display: grid;
  gap: 12px;
}

.advanced-case-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-soft);
}

.advanced-case-image-link {
  width: 100%;
  height: 100%;
  display: block;
}

.advanced-case-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .24s ease;
}

.advanced-case-card:hover .advanced-case-media img {
  transform: scale(1.025);
}

.advanced-case-heat {
  position: absolute;
  right: 10px;
  top: 10px;
  border: 1px solid rgba(255, 255, 255, .58);
  border-radius: 999px;
  background: rgba(17, 17, 17, .70);
  color: #fff;
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 820;
  backdrop-filter: blur(10px);
}

.advanced-case-tags {
  position: absolute;
  left: 10px;
  bottom: 9px;
  display: flex;
  max-width: calc(100% - 126px);
  flex-wrap: wrap;
  gap: 5px;
  pointer-events: none;
}

.advanced-case-tags span {
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, .50);
  border-radius: 999px;
  background: rgba(255, 255, 255, .80);
  color: #151611;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 820;
  line-height: 1.1;
  backdrop-filter: blur(10px);
}

.advanced-case-media .work-engagement-actions.is-advanced-card {
  position: absolute;
  right: 10px;
  bottom: 9px;
  z-index: 5;
  pointer-events: auto;
}

.advanced-case-media .work-engagement-actions.is-advanced-card .work-engagement-button {
  min-width: 36px;
  min-height: 24px;
  padding: 3px 7px;
  background: rgba(17, 17, 17, .68);
}

.advanced-case-body {
  display: grid;
  gap: 8px;
}

.advanced-case-title {
  color: #151611;
  font-size: 17px;
  font-weight: 860;
  line-height: 1.35;
}

.advanced-case-body p {
  display: block;
  max-width: 100%;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.advanced-case-meta,
.case-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.case-detail-shell {
  width: min(100% - 40px, 980px);
}

.case-detail {
  display: grid;
  gap: 22px;
  padding: 38px 0 60px;
}

.case-detail-head {
  display: grid;
  gap: 9px;
}

.case-detail-head h1 {
  max-width: 900px;
  margin: 0;
  font-size: 38px;
  line-height: 1.16;
}

.case-detail-media {
  width: 100%;
  aspect-ratio: var(--case-aspect, 16 / 9);
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #111;
  object-fit: cover;
}

.case-video-playback-error {
  margin: 10px 0 0;
  color: var(--danger);
  font-size: 13px;
  line-height: 1.5;
}

.case-detail-body,
.case-content-block {
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.case-detail-body p,
.case-content-block p {
  margin: 0;
  color: #262722;
  font-size: 16px;
  line-height: 1.9;
}

.case-blocks {
  display: grid;
  gap: 22px;
}

.case-block-media {
  width: 100%;
  max-height: 680px;
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-soft);
  object-fit: contain;
}

.case-bottom-actions {
  display: flex;
  justify-content: center;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.case-bottom-actions .work-engagement-actions.is-detail {
  margin: 14px auto 12px;
}

.case-upload-page {
  width: min(100% - 40px, 1220px);
}

.case-upload-workspace {
  grid-template-columns: 1fr;
}

.case-upload-form-panel {
  grid-template-columns: 1fr;
  gap: 18px;
  width: 100%;
}

.case-upload-meta-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr) minmax(0, 1fr);
  gap: 14px;
}

.case-upload-flow {
  display: grid;
  gap: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

  .case-upload-primary-media .field {
    min-height: 46px;
  }

  .case-upload-cover-media .field-help {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
  }

.case-upload-main-text {
  min-height: 150px;
}

.case-upload-block-list {
  display: grid;
  gap: 12px;
}

.case-upload-block {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfbf8;
  padding: 14px;
}

.case-upload-add-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.case-upload-add-row .nav-button {
  width: auto;
  min-width: 112px;
}

.case-upload-progress {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.case-upload-progress.hidden {
  display: none;
}

.case-upload-progress-meta {
  min-width: 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.case-upload-progress progress {
  width: 100%;
  height: 8px;
  accent-color: var(--accent);
}

.case-upload-progress .nav-button {
  grid-column: 2;
  grid-row: 1 / span 2;
  min-width: 96px;
}

.management-case-record .management-work-thumb {
  aspect-ratio: 16 / 9;
}

.management-case-record .management-work-main {
  grid-template-columns: minmax(190px, 1.2fr) minmax(116px, .72fr) 82px;
}

.management-case-summary {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

@media (max-width: 960px) {
  main, .site-nav, .admin-shell { width: min(100vw - 28px, 1220px); }
  .site-nav {
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 10px 0;
  }
  .nav-links {
    position: static;
    order: 3;
    width: 100%;
    justify-content: center;
    transform: none;
  }
  .nav-actions { margin-left: auto; }
  .hero-catalog, .work-detail, .work-overview-section, .work-extra-grid, .home-footer-block, .vibe-studio, .account-layout, .admin-console, .upload-panel, .upload-hero, .upload-workspace {
    grid-template-columns: 1fr;
  }
  h1 { font-size: 28px; }
  .section-head { align-items: flex-start; flex-direction: column; }
  .notice-grid, .form-grid, .metric-grid, .auth-form, .auth-view, .upload-form-panel, .variant-save-form, .case-upload-meta-grid { grid-template-columns: 1fr; }
  .upload-assets-grid { grid-template-columns: 1fr; }
  .upload-asset-card--program { grid-column: auto; }
  .upload-category-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .avatar-picker { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .masonry-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .masonry-grid.is-row-major { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mine-engagement-summary, .mine-engagement-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mine-work-portfolio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mine-owned-work-edit-form { grid-template-columns: 1fr; }
  .work-related-grid, .advanced-case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .advanced-head, .advanced-search {
    align-items: flex-start;
    grid-template-columns: 1fr;
    flex-direction: column;
  }
  .work-aside { position: static; }
  .management-shell { width: min(100vw - 28px, 1260px); }
  .management-console {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px 0 38px;
  }
  .management-sidebar {
    position: sticky;
    top: 0;
    z-index: 30;
    min-height: auto;
    display: grid;
    gap: 10px;
    padding: 12px;
    box-shadow: 0 12px 24px rgba(17, 17, 17, .12);
  }
  .management-brand {
    margin-bottom: 0;
  }
  .management-tabbar {
    display: flex;
    gap: 8px;
    margin: 0 -2px;
    padding: 2px 2px 4px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }
  .management-tabbar .side-tab {
    flex: 0 0 auto;
    min-width: 92px;
    min-height: 40px;
    white-space: nowrap;
    scroll-snap-align: start;
  }
  .management-stats,
  .management-grid,
  .management-category-name-grid,
  .detail-grid,
  .info-layout {
    grid-template-columns: 1fr;
  }
  .site-footer > * {
    width: min(100% - 44px, 740px);
  }
  .site-footer-hero {
    align-items: flex-start;
    flex-direction: column;
  }
  .footer-slogan {
    justify-content: flex-start;
    text-align: left;
  }
  .site-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px 42px;
  }
  .info-toc {
    position: static;
  }
  .management-user-record,
  .review-work-card,
  .review-work-meta,
  .review-work-file-meta,
  .management-work-toolbar,
  .management-work-record,
  .management-trash-record,
  .management-trash-meta,
  .management-work-main,
  .management-work-secondary,
  .management-work-device-row {
    grid-template-columns: 1fr;
  }
  .management-user-record {
    grid-template-areas:
      "profile"
      "form"
      "metrics"
      "actions"
      "detail";
  }
  .management-user-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .management-user-actions {
    justify-content: flex-start;
  }
  .management-work-cover {
    grid-template-columns: 86px auto;
    align-items: center;
  }
  .management-work-category-field .management-category-grid {
    grid-template-columns: 1fr;
  }
  .management-work-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .management-work-stats {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .management-trash-actions {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .management-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .management-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .management-head-actions {
    justify-content: flex-start;
  }
  .detail-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .management-user-search {
    grid-template-columns: minmax(0, 1fr);
  }
  .management-user-pagination {
    grid-template-columns: 78px minmax(0, 1fr) 78px;
    gap: 8px;
  }
  .management-user-pagination .nav-button {
    width: 78px;
  }
  .upload-options-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .management-shell {
    width: 100%;
  }
  .management-console {
    gap: 12px;
    padding: 0 0 28px;
  }
  .management-sidebar {
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }
  .management-content {
    padding: 0 12px;
  }
  .management-login {
    width: min(100% - 24px, 430px);
    margin: 8vh auto;
    padding: 18px;
  }
  .management-tabbar .side-tab {
    min-width: 88px;
  }
  .management-head h1 {
    font-size: 24px;
  }
  .management-card {
    padding: 12px;
    border-radius: 8px;
  }
  .management-banner-control-row {
    grid-template-columns: 1fr;
  }
  .management-banner-item {
    grid-template-columns: 86px minmax(0, 1fr);
  }
  .management-banner-item img {
    width: 86px;
  }
  .management-banner-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }
  .site-footer {
    margin-top: 38px;
    padding-top: 24px;
  }
  .site-footer > * {
    width: calc(100% - 36px);
  }
  .footer-brand {
    max-width: 72vw;
  }
  .footer-lockup {
    width: 200px;
    max-width: 100%;
  }
  .footer-slogan strong {
    font-size: 13px;
  }
  .footer-slogan-icon {
    width: 29px;
  }
  .site-footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-top: 24px;
  }
  .site-footer-bottom {
    min-height: 96px;
    flex-direction: column;
    text-align: center;
  }
  .info-page {
    padding: 28px 0 48px;
  }
  .info-article {
    padding: 22px;
  }
  .info-article h1 {
    font-size: 28px;
  }
  .management-stats {
    grid-template-columns: 1fr;
  }
  .management-work-cover {
    grid-template-columns: 72px auto;
  }
  .management-work-thumb {
    width: 72px;
  }
  .management-work-toolbar strong {
    justify-content: flex-start;
  }
  .management-work-actions {
    grid-template-columns: 1fr;
  }
  .management-work-actions .nav-button {
    min-height: 38px;
  }
  .management-work-device-field .device-permission-control,
  .management-work-stats {
    grid-template-columns: 1fr;
  }
  .management-user-form,
  .management-user-metrics,
  .management-user-actions {
    grid-template-columns: 1fr;
  }
  .review-work-card > img {
    aspect-ratio: 16 / 9;
  }
  .review-work-title {
    align-items: flex-start;
    flex-direction: column;
  }
  .nav-links { gap: 14px; overflow-x: auto; }
  .nav-actions, .stack-actions.horizontal { flex-direction: column; align-items: stretch; }
  .nav-button { width: 100%; text-align: center; }
  .management-user-actions .nav-button {
    width: auto;
    flex: 0 0 auto;
  }
  .brand { gap: 8px; }
  .brand-mark { width: 38px; height: 32px; flex-basis: 38px; }
  .brand-name { font-size: 15px; }
  .search-form { border-radius: var(--radius); }
  .auth-dialog { padding: 18px; }
  .avatar-picker { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .upload-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .login-options, .form-actions, .profile-head, .detail-head { align-items: flex-start; flex-direction: column; }
  .detail-stat-grid { grid-template-columns: 1fr; }
  .work-section-head,
  .mine-section-head,
  .work-timeline li,
  .work-fact-list div,
  .home-feed-item {
    align-items: flex-start;
    flex-direction: column;
  }
  .home-footer-block {
    padding: 24px;
  }
  .home-feed-item {
    display: flex;
    gap: 10px;
  }
  .work-related-grid { grid-template-columns: 1fr; }
  .advanced-case-grid { grid-template-columns: 1fr; }
  .case-detail-head h1 { font-size: 28px; }
  .work-overlay { padding-right: 94px; }
  .work-engagement-actions.is-card {
    right: 10px;
    bottom: 10px;
  }
  .work-engagement-button {
    min-width: 38px;
    padding: 4px 7px;
  }
  .mine-engagement-summary, .mine-engagement-tabs { grid-template-columns: 1fr; }
  .mine-work-portfolio-grid { grid-template-columns: 1fr; }
  .mine-work-management-top {
    flex-direction: column;
  }
  .mine-work-management-top time { text-align: left; }
  .mine-work-data-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mine-work-action-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .management-trash-actions {
    grid-template-columns: 1fr;
  }
  h1 { font-size: 24px; }
  .masonry-grid { grid-template-columns: 1fr; }
  .masonry-grid.is-row-major { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
