@font-face {
  font-family: 'Pretendard';
  src: url('/fonts/Pretendard-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Pretendard';
  src: url('/fonts/Pretendard-Regular.otf') format('opentype');
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Pretendard';
  src: url('/fonts/Pretendard-Bold.otf') format('opentype');
  font-weight: 600 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --sidebar-width: 220px;
  --bg-main: #0d0d0d;
  --bg-sidebar: #1a1a1a;
  --bg-topbar: #151515;
  --stroke: #292929;
  --text-main: #f8f8f8;
  --text-dim: #969696;
  --chip-bg: #202020;
  --chip-active: #2f2f2f;
  --accent: #ffffff;
  --font-sans: 'Pretendard', 'Inter', 'Noto Sans KR', system-ui, -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

html {
  scrollbar-gutter: stable;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

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

.app-shell {
  display: flex;
  min-height: 100vh;
}

.app-sidebar {
  width: var(--sidebar-width);
  flex: 0 0 var(--sidebar-width);
  background: var(--bg-sidebar);
  border-right: 1px solid var(--stroke);
  display: flex;
  flex-direction: column;
  padding: 16px 12px;
  gap: 12px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  min-height: 24px;
}

.sidebar-logo img {
  display: block;
  width: 100%;
  max-width: 130px;
  height: auto;
}

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

.side-link {
  height: 28px;
  border-radius: 8px;
  padding: 0 9px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #b8bcc2;
  font-size: 0;
  font-weight: 500;
}

button.side-link {
  width: 100%;
  border: 0;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.side-link:hover,
.side-link.is-active {
  background: #272727;
  color: #fff;
}

.side-link i {
  width: 13px;
  font-size: 12px;
  text-align: center;
}

.side-link-label {
  font-size: 12px !important;
  letter-spacing: 0.01em;
  line-height: 1.55;
}

.kbd {
  margin-left: auto;
  color: #999;
  border: 1px solid #3a3a3a;
  border-radius: 5px;
  font-size: 10px;
  padding: 1px 5px;
}

.sidebar-label {
  margin-top: 4px;
  color: #8a8a8a;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.chip-new {
  margin-left: auto;
  background: #ffffff;
  color: #000;
  border-radius: 999px;
  padding: 1px 6px;
  font-size: 10px;
  font-weight: 600;
}

.sidebar-spacer {
  flex: 1;
}

.sidebar-visitor-card {
  display: block;
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 8px;
  border: 0;
  background: transparent;
  text-decoration: none;
}

.sidebar-visitor-title {
  margin: 0 0 8px;
  color: #e2e2e2;
  font-size: 11px;
  letter-spacing: 0.4px;
  font-weight: 600;
}

.sidebar-visitor-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.sidebar-visitor-row + .sidebar-visitor-row {
  margin-top: 4px;
}

.sidebar-visitor-row span {
  color: #a7a7a7;
  font-size: 10px;
  letter-spacing: 0.3px;
}

.sidebar-visitor-row strong {
  color: #f8fbff;
  font-size: 13px;
  letter-spacing: -0.2px;
}

.sidebar-visitor-link {
  text-decoration: none;
}

button.sidebar-visitor-link {
  border: 0;
  background: transparent;
  font: inherit;
  padding: 0;
  cursor: pointer;
}

.sidebar-visitor-link strong {
  color: #f8fbff;
  transition: color 0.18s ease;
}

.sidebar-visitor-link:hover strong {
  color: #d8d8d8;
}

.signin-card {
  border: 1px solid #313131;
  border-radius: 10px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: #202020;
  min-width: 0;
  position: relative;
}

.signin-card strong {
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.35;
}

.signin-card span {
  color: #9b9b9b;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.35;
}

.signin-card-logout {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: #cfd5e1;
  display: grid;
  place-items: center;
  font-size: 11px;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.signin-card-logout:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.app-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.topbar {
  height: 76px;
  border-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  background: var(--bg-main);
  position: relative;
}

.mobile-nav-toggle,
.mobile-drawer,
.mobile-drawer-backdrop {
  display: none;
}

.mobile-nav-toggle {
  position: fixed;
  top: 6px;
  right: 12px;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(15, 17, 20, 0.92);
  color: #f4f6fa;
  z-index: 1200;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  gap: 4px;
  flex-direction: column;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.mobile-nav-toggle-line {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.22s ease, opacity 0.2s ease;
}

.mobile-nav-toggle.is-open .mobile-nav-toggle-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.mobile-nav-toggle.is-open .mobile-nav-toggle-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-nav-toggle.is-open .mobile-nav-toggle-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.1);
  z-index: 1198;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(66vw, 236px);
  height: 100vh;
  background: rgba(18, 20, 24, 0.8);
  backdrop-filter: blur(6px);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 1199;
  transform: translateX(100%);
  transition: transform 0.26s ease;
  padding: 14px;
}

.mobile-drawer.is-open {
  transform: translateX(0);
}

.mobile-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #f0f2f6;
  font-weight: 700;
  margin-bottom: 14px;
}

.mobile-drawer-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: #eceff5;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.mobile-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-drawer-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 10px;
  border-radius: 10px;
  color: #cfd4de;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 10px;
}

button.mobile-drawer-link {
  width: 100%;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.mobile-drawer-link span {
  white-space: nowrap;
}

.mobile-drawer-link.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.top-search {
  width: min(1120px, calc(100% - 32px));
  height: 58px;
  border-radius: 999px;
  border: 0;
  background: #2f2f32;
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 14px;
  color: #b8b8bd;
}

.topbar-actions {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-auth-btn {
  height: 34px;
  border-radius: 999px;
  border: 1px solid #3a3a3a;
  background: #ffffff;
  color: #111;
  font-size: 12px;
  font-weight: 700;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
}

.top-auth-btn--ghost {
  background: #202020;
  color: #f3f3f3;
  border-color: #3a3a3a;
}

.top-user-name {
  font-size: 12px;
  color: #d7d7d7;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.top-search input {
  flex: 1;
  border: 0;
  outline: none;
  background: transparent;
  color: #fff;
  font-size: 34px;
  line-height: 1;
  font-weight: 400;
  letter-spacing: -0.3px;
}

.top-search input::placeholder {
  color: #c8c8cd;
}

.top-search-icon {
  width: 22px;
  height: 22px;
  border: 0;
  background: transparent;
  color: #f0f0f3;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
}

.top-search-icon i {
  font-size: 16px;
  line-height: 1;
}

.top-search-upload i {
  font-size: 16px;
  line-height: 1;
}

.top-search-icon:hover {
  background: transparent;
  color: #ffffff;
}

.top-search button[aria-label='search'],
.index-home-search button[aria-label='search'] {
  margin-right: 30px;
}

.main-stage {
  flex: 1;
  padding: 14px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.info-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #9a9a9a;
  font-size: 12px;
  width: min(100%, 1500px);
  margin-inline: auto;
  margin-top: 2px;
  margin-bottom: 8px;
  padding-inline: 10px;
}

.query-word {
  color: #fff;
  font-weight: 600;
}

.info-divider {
  width: 1px;
  height: 14px;
  background: #323232;
}

.sort-caption {
  color: #dedede;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: min(100%, 1500px);
  margin-inline: auto;
  padding-inline: 10px;
}

.filter-row--home {
  margin-bottom: 22px;
}

.info-row--home {
  padding-left: 20px;
}

.filter-pill {
  height: 30px;
  border-radius: 999px;
  padding: 0 12px;
  background: var(--chip-bg);
  border: 1px solid #2f2f2f;
  color: #c2c2c2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
}

.filter-pill.is-active,
.filter-pill:hover {
  background: var(--chip-active);
  color: #fff;
}

.asset-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 8px;
  gap: 12px;
  min-height: 0;
  width: min(100%, 1500px);
  margin-inline: auto;
  padding-inline: 10px;
}

.asset-card--hidden {
  display: none;
}

.asset-card {
  width: 100%;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: #0f0f0f;
  border: 1px solid #282828;
  grid-column: span 1;
  grid-row: span 16;
  cursor: pointer;
}

[data-href-nav] {
  cursor: pointer;
}

.asset-card--wide {
  grid-column: span 2;
  grid-row: span 24;
}

.asset-card--landscape {
  grid-column: span 1;
  grid-row: span 14;
}

.asset-card--portrait {
  grid-column: span 1;
  grid-row: span 20;
}

.asset-card--square {
  grid-column: span 1;
  grid-row: span 16;
}

.asset-card--document {
  grid-column: span 1;
  grid-row: span 22;
}

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

.asset-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.asset-view-count {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  pointer-events: none;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1px;
  color: rgba(244, 247, 252, 0.96);
  background: rgba(14, 18, 27, 0.56);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  line-height: 1;
}

.asset-view-count i {
  font-size: 9px;
  opacity: 0.85;
}

.asset-grid--app-design {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: flex-start;
}

.asset-grid--app-design .asset-card--app-design {
  width: 320px;
  max-width: 100%;
  grid-column: auto;
  grid-row: auto;
  height: auto;
}

.asset-grid--app-design .asset-card--app-design img,
.asset-grid--app-design .asset-card--app-design video {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.asset-video {
  border-radius: 10px;
  border: 2px solid #0047ab;
  box-sizing: border-box;
}

.asset-image--document {
  object-fit: contain;
  background: transparent;
  padding: 0;
}

.asset-image--presentation {
  border-radius: 10px;
  box-shadow: inset 0 0 0 2px #0b5d3b;
}

.asset-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: #d3d3d3;
  font-size: 46px;
  background: linear-gradient(145deg, #242424, #1b1b1b);
}

.asset-model-preview,
.detail-model-preview {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 220px;
  background:
    radial-gradient(circle at 25% 20%, rgba(255, 255, 255, 0.12), transparent 40%),
    linear-gradient(145deg, #222, #171717);
}

.asset-model-preview canvas,
.detail-model-preview canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.asset-model-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.asset-model-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #d3d3d3;
  font-size: 42px;
  pointer-events: none;
}

.asset-model-preview.is-ready .asset-model-fallback,
.detail-model-preview.is-ready .asset-model-fallback {
  display: none;
}

.asset-overlay {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 6px;
  opacity: 0;
  transition: opacity 0.2s;
}

.asset-overlay a,
.asset-overlay button {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.64);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.asset-card:hover .asset-overlay {
  opacity: 1;
}

.asset-load-more-wrap {
  width: min(100%, 1500px);
  margin-inline: auto;
  padding-inline: 10px;
  margin-top: 14px;
}

.asset-load-more-btn {
  width: 100%;
  height: 60px;
  border-radius: 12px;
  border: 1px solid #242424;
  background: transparent;
  color: #f1f1f1;
  /* color: red; */
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.2px;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.asset-load-more-btn:hover {
  border-color: #333;
  background: rgba(255, 255, 255, 0.02);
}

.scroll-top-btn {
  position: fixed;
  bottom: 28px;
  right: max(18px, calc((100vw - 1500px) / 2 - 200px));
  width: 64px;
  height: 64px;
  border: 1px solid #d6d6d6;
  border-radius: 999px;
  background: #f0f0f0;
  color: #161616;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 40;
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.scroll-top-btn i {
  font-size: 30px;
}

.scroll-top-btn.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.empty-panel {
  margin-top: 24px;
  border: 1px solid #2b2b2b;
  border-radius: 14px;
  background: #171717;
  padding: 56px 20px;
  text-align: center;
}

.empty-panel i {
  font-size: 52px;
  color: #6f6f6f;
}

.empty-panel h2 {
  margin-top: 12px;
  font-size: 20px;
}

.empty-panel p {
  margin-top: 8px;
  color: #9b9b9b;
}

.empty-btn {
  margin-top: 18px;
  display: inline-block;
  border-radius: 999px;
  background: #fff;
  color: #111;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 600;
}

.detail-header {
  margin-top: 6px;
  width: min(100%, 1500px);
  margin-inline: auto;
  padding-inline: 10px;
}

.back-link {
  color: #cfcfcf;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.detail-ui-shell {
  width: min(100%, 1500px);
  margin-inline: auto;
  padding-inline: 10px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.detail-ui-shell--art-practice-compact {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
}

.detail-topbar {
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.detail-topbar--art-practice {
  padding-inline: 0;
}

.detail-topbar-spacer {
  flex: 1;
}

.detail-topbar-btn {
  min-height: 34px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  color: #888;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.detail-topbar-btn:hover,
.detail-topbar-btn:focus-visible {
  color: #f3f5f8;
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.22);
}

.detail-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: start;
  width: min(100%, 1500px);
  margin-inline: auto;
  padding-inline: 10px;
}

.detail-preview,
.detail-info,
.upload-panel {
  border: 1px solid #2a2a2a;
  border-radius: 14px;
  background: #151515;
}

.detail-preview {
  min-height: 460px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.detail-preview.detail-preview--hero {
  border: 0;
  border-radius: 0;
  background: #111;
  min-height: min(68vh, 820px);
}

.detail-preview.detail-preview--app-design {
  width: 480px;
  max-width: 100%;
  min-height: auto;
  height: auto;
  margin-inline: auto;
  display: block;
  overflow: hidden;
}

.detail-preview.detail-preview--app-design img,
.detail-preview.detail-preview--app-design video {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.detail-preview--media {
  height: min(68vh, 760px);
}

.detail-divider {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
}

.detail-info-section {
  width: 100%;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 0;
  border-radius: 0 0 14px 14px;
  background: #101010;
}

.detail-header-row {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.detail-title-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.detail-title-col h1 {
  font-size: 28px;
  color: #f0f0f0;
  letter-spacing: -0.5px;
}

.detail-updated {
  color: #6fd19c;
  font-size: 13px;
}

.detail-meta-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #666;
  font-size: 13px;
}

.detail-meta-row i {
  color: #555;
  font-size: 13px;
}

.detail-meta-divider {
  width: 1px;
  height: 14px;
  background: #333;
}

.detail-action-col {
  display: flex;
  align-items: center;
  gap: 10px;
}

.detail-action-col form {
  display: flex;
}

.detail-action-col .btn-main,
.detail-action-col .btn-ghost {
  width: auto;
  min-width: 110px;
  height: 40px;
  border-radius: 8px;
  padding: 0 20px;
}

.btn-ghost.btn-ghost--danger {
  min-width: 52px;
  padding: 0 16px;
  border-color: rgba(255, 68, 68, 0.22);
  color: #ff5555;
  background: rgba(255, 255, 255, 0.03);
}

.detail-stats-row {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.detail-stat-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.detail-stat-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #666;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.detail-stat-label i {
  color: #555;
  font-size: 12px;
}

.detail-stat-card strong {
  color: #e0e0e0;
  font-size: 18px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.detail-meta-card {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail-meta-card-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #777;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.detail-meta-card-title i {
  color: #555;
}

.detail-meta-card-divider {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.detail-meta-line {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 12px;
}

.detail-meta-line > span {
  color: #555;
  font-size: 12px;
  font-weight: 600;
}

.detail-meta-line > p {
  color: #999;
  font-size: 12px;
  overflow-wrap: anywhere;
  line-height: 1.45;
}

.detail-meta-description {
  white-space: pre-line;
  word-break: keep-all;
  line-height: 1.8;
  letter-spacing: 0.01em;
}

.detail-tag-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.detail-tag-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #777;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.detail-tag-title i {
  color: #555;
}

.tag-wrap.tag-wrap--detail {
  gap: 8px;
}

.tag-chip.tag-chip--detail {
  min-height: 30px;
  border-radius: 8px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  border-color: rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.05);
  color: #aaa;
}

.detail-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.detail-preview video {
  width: 100%;
  max-width: 100%;
  max-height: 100%;
  height: auto;
  object-fit: contain;
}

.detail-image-gallery {
  width: min(100%, 1500px);
  margin-inline: auto;
  padding: 100px 10px;
  display: flex;
  flex-direction: column;
  gap: 100px;
}

.detail-image-gallery.detail-image-gallery--app-design {
  width: min(100%, 480px);
  padding: 32px 0;
  gap: 24px;
}

.detail-image-gallery img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: 12px;
}

.detail-image-gallery video {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: 12px;
  background: #000;
}

.detail-preview .detail-video-player {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 100%;
  height: auto;
  object-fit: contain;
  background: #000;
  pointer-events: auto;
}

/* Hard-disable native browser controls so only custom compact controls are visible. */
.detail-video-player::-webkit-media-controls {
  display: none !important;
}

.detail-video-player::-webkit-media-controls-enclosure {
  display: none !important;
}

.detail-video-shell {
  position: relative;
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  display: block;
  background: #000;
  overflow: hidden;
}

.detail-video-controls {
  position: absolute;
  left: 0;
  bottom: 10px;
  width: 100%;
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
  background: transparent;
  border: 0;
  backdrop-filter: none;
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.detail-video-shell.is-ui-visible .detail-video-controls {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.detail-video-control-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.detail-video-btn {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 0;
  background: rgba(8, 12, 18, 0.82);
  color: #f1f1f1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.detail-video-btn:hover {
  background: rgba(14, 18, 26, 0.92);
}

.detail-video-btn i {
  font-size: 10px;
  line-height: 1;
}

.detail-video-time {
  height: 22px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(8, 12, 18, 0.82);
  color: #efefef;
  font-size: 10px;
  line-height: 22px;
  min-width: 78px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.detail-video-seek {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  height: 8px;
}

.detail-video-seek::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
}

.detail-video-seek::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  margin-top: -4px;
  border: 0;
  border-radius: 50%;
  background: #ff2d55;
}

.detail-video-seek::-moz-range-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
}

.detail-video-seek::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 50%;
  background: #ff2d55;
}

.detail-ppt-viewer {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 460px;
  overflow: hidden;
}

.detail-ppt-slide {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.detail-ppt-viewer--document {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px 0;
  box-sizing: border-box;
}

.detail-ppt-viewer--document .detail-ppt-slide {
  width: 85%;
  height: 85%;
}

.detail-ppt-viewer--document .asset-image--document {
  background: transparent;
  padding: 0;
}

.detail-ppt-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: #d4d4d4;
  font-size: 70px;
}

.detail-ppt-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 94px;
  height: 94px;
  border-radius: 999px;
  border: 0;
  background: rgba(160, 160, 160, 0.34);
  color: #f3f3f3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  cursor: pointer;
  z-index: 4;
}

.detail-ppt-nav--prev { left: 24px; }
.detail-ppt-nav--next { right: 24px; }

.detail-ppt-nav:hover:not(:disabled) {
  background: rgba(180, 180, 180, 0.46);
}

.detail-ppt-nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.detail-ppt-indicator {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  font-size: 13px;
  color: #c8c8c8;
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 4px 10px;
  z-index: 4;
}

.detail-model-preview {
  min-height: 100%;
}

.detail-model-texture-toggle {
  position: absolute;
  top: 12px;
  right: 12px;
  height: 34px;
  min-width: 110px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(8, 12, 18, 0.74);
  color: #f1f1f1;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  z-index: 8;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.detail-topbar .detail-model-texture-toggle {
  position: static;
  top: auto;
  right: auto;
  min-width: 124px;
  z-index: 1;
}

.detail-model-texture-toggle:hover:not(:disabled) {
  background: rgba(16, 22, 31, 0.88);
  border-color: rgba(255, 255, 255, 0.42);
}

.detail-model-texture-toggle.is-off {
  background: rgba(88, 31, 31, 0.82);
  border-color: rgba(255, 112, 112, 0.58);
  color: #ffd6d6;
}

.detail-model-texture-toggle:disabled {
  opacity: 0.64;
  cursor: not-allowed;
}

.detail-preview > i {
  font-size: 70px;
  color: #bebebe;
}

.detail-video-controls .detail-video-btn i {
  font-size: 10px !important;
  color: #f1f1f1;
}

.detail-info {
  padding: 22px;
}

.detail-badge {
  display: inline-block;
  background: #2a2a2a;
  color: #d4d4d4;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
}

.detail-info h1 {
  margin-top: 12px;
  font-size: 26px;
}

.detail-sub {
  margin-top: 6px;
  font-size: 13px;
  color: #989898;
}

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

.detail-stats div {
  border: 1px solid #2f2f2f;
  border-radius: 10px;
  padding: 10px;
  background: #1d1d1d;
}

.detail-stats span {
  color: #8f8f8f;
  font-size: 11px;
}

.detail-stats strong {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.detail-block {
  margin-top: 14px;
}

.detail-block h3 {
  margin-bottom: 8px;
  color: #d2d2d2;
  font-size: 13px;
}

.detail-block p {
  color: #a8a8a8;
  font-size: 13px;
  line-height: 1.5;
}

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

.tag-chip {
  background: #272727;
  border: 1px solid #333;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
}

.detail-actions,
.upload-actions {
  margin-top: 18px;
  display: flex;
  gap: 10px;
}

.detail-actions form {
  flex: 1;
}

.btn-main,
.btn-ghost {
  height: 42px;
  border-radius: 10px;
  border: 1px solid #333;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
}

.btn-main {
  background: #fff;
  color: #111;
}

.btn-ghost {
  background: #222;
  color: #fff;
}

.upload-layout {
  width: min(100%, 1500px);
  margin-inline: auto;
  display: flex;
  justify-content: center;
  padding: 14px 10px 22px;
}

.auth-layout {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 140px);
  padding: 20px 10px;
}

.auth-panel {
  width: min(520px, 100%);
  border: 1px solid #2a2a2a;
  border-radius: 14px;
  background: #151515;
  padding: 24px;
}

.auth-error {
  border: 1px solid #653535;
  background: #2b1717;
  color: #f2b8b8;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12px;
}

.auth-divider {
  color: #868686;
  text-align: center;
  font-size: 12px;
  margin: 4px 0;
}

.upload-panel {
  width: 100%;
  padding: 0;
}

.upload-panel.upload-panel--refined {
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px;
  background:
    linear-gradient(180deg, #0a0a0a 0%, #141414 100%);
  overflow: hidden;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.38);
}

.upload-head.upload-head--refined {
  padding: 26px 34px 18px;
  background: linear-gradient(90deg, rgba(26, 26, 26, 0.5), rgba(10, 10, 10, 0));
}

.upload-head-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.upload-head-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #f5f5f5;
  background: linear-gradient(135deg, #4f4f4f, #727272);
  flex: 0 0 42px;
}

.upload-head-icon i {
  font-size: 16px;
}

.upload-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));
}

.upload-head h1 {
  font-size: 40px;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.upload-head p {
  margin-top: 7px;
  color: #8d8d8d;
  font-size: 13px;
}

.upload-form {
  margin-top: 0;
  display: flex;
  flex-direction: column;
}

.upload-form.upload-form--refined {
  gap: 18px;
  padding: 24px 34px 30px;
}

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

.field-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #ababab;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.field-label i {
  color: #747474;
  font-size: 12px;
}

.field-label small {
  color: #5f5f5f;
  font-weight: 500;
}

.auth-panel label > span,
.upload-form label > span:not(.field-label) {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  color: #b5b5b5;
}

.drop-zone {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  min-height: 116px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.03);
  padding: 14px 12px;
  text-align: center;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.drop-zone input {
  display: none;
}

.drop-zone.is-dragging {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.08);
}

.drop-zone-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(119, 119, 119, 0.08);
  color: #7f7f7f;
  display: grid;
  place-items: center;
}

.drop-zone-icon i {
  font-size: 16px;
}

.drop-zone strong {
  font-size: 12px;
  font-weight: 600;
  color: #cccccc;
}

.drop-zone-hint {
  color: #7a7a7a;
  font-size: 11px;
  line-height: 1.35;
}

.drop-zone-count {
  color: #b8b8b8;
  font-size: 12px;
  font-weight: 600;
  margin-top: 2px;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
  gap: 10px;
}

.preview-grid--sortable {
  user-select: none;
}

.preview-card {
  position: relative;
  min-height: 102px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 10px 8px;
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  justify-content: center;
}

.preview-card.is-draggable {
  cursor: grab;
}

.preview-card.is-draggable:active {
  cursor: grabbing;
}

.preview-card.is-dragging {
  opacity: 0.55;
}

.preview-card.is-drop-target {
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.08);
}

.preview-order {
  position: absolute;
  top: 6px;
  left: 6px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #f2f2f2;
  font-style: normal;
  font-size: 11px;
  line-height: 18px;
  text-align: center;
}

.preview-card img {
  max-width: 100%;
  max-height: 48px;
}

.preview-card video {
  max-width: 100%;
  max-height: 48px;
}

.preview-card i {
  font-size: 22px;
  color: #cfcfcf;
}

.preview-card span {
  font-size: 10px;
  color: #b1b1b1;
  text-align: center;
  white-space: nowrap;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gallery-order-help {
  margin: 0 0 10px;
  color: #a7a7a7;
  font-size: 12px;
  line-height: 1.45;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

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

.star-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 2px;
  height: 42px;
}

.star {
  font-size: 26px;
  color: #3a3a3a;
  cursor: pointer;
  transition: color 0.12s, transform 0.1s;
  line-height: 1;
}

.star:hover,
.star--filled {
  color: #f5a623;
}

.star:hover {
  transform: scale(1.15);
}

select,
input[type='text'],
input[type='password'],
input[type='file'],
textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.05);
  color: #f0f0f0;
  font-size: 14px;
  transition: border-color 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}

.upload-form--refined select option,
.upload-form select option {
  background-color: #1e1f23 !important;
  color: #f0f0f0 !important;
}

.upload-form--refined select option[value=''],
.upload-form select option[value=''] {
  color: #6b7280 !important;
}

select,
input[type='text'],
input[type='password'] {
  height: 44px;
}

input[type='file'] {
  height: 44px;
  padding: 8px 10px;
}

textarea {
  resize: vertical;
  min-height: 118px;
  padding: 12px 14px;
  line-height: 1.45;
}

select:focus,
input[type='text']:focus,
input[type='password']:focus,
input[type='file']:focus,
textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.36);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.07);
}

.replace-file-zone {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  min-height: 84px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: border-color 0.16s ease, background-color 0.16s ease;
}

.replace-file-zone.is-dragging {
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.08);
}

.replace-file-input {
  display: none;
}

.replace-file-main {
  color: #c8c8c8;
  font-size: 12px;
  font-weight: 600;
}

.replace-file-main i {
  margin-right: 6px;
  color: #7f7f7f;
}

.replace-file-name {
  color: #8d8d8d;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-panel--refined .detail-actions,
.upload-panel--refined .upload-actions {
  margin-top: 6px;
}

.upload-panel--refined .btn-main,
.upload-panel--refined .btn-ghost {
  height: 42px;
  border-radius: 10px;
}

.upload-panel--refined .btn-main {
  border-color: #ffffff;
  background: linear-gradient(180deg, #ffffff 0%, #dddddd 100%);
  color: #111;
}

.upload-panel--refined .btn-ghost {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: #b5b5b5;
}

.upload-panel--refined .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #dedede;
}

@media (max-width: 1200px) {
  .asset-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .asset-card--wide {
    grid-column: span 2;
  }
}

@media (max-width: 900px) {
  .app-sidebar {
    width: 76px;
    flex-basis: 76px;
    padding: 14px 8px;
  }

  .sidebar-logo,
  .sidebar-label,
  .side-link .side-link-label,
  .kbd,
  .chip-new,
  .signin-card span,
  .signin-card strong {
    display: none;
  }

  .side-link {
    justify-content: center;
    padding: 0;
  }

  .signin-card {
    display: grid;
    place-items: center;
    height: 40px;
  }

  .signin-card::before {
    content: '+';
    font-size: 20px;
    font-weight: 700;
  }

  .top-search {
    width: 100%;
    height: 52px;
    padding: 0 16px;
    gap: 10px;
  }

  .top-search input {
    font-size: 26px;
  }

  .top-search-icon {
    width: 20px;
    height: 20px;
  }

  .top-search-icon i {
    font-size: 15px;
  }

  .top-search-clear i,
  .top-search-upload i {
    font-size: 15px;
    line-height: 1;
  }

  .top-search button[aria-label='search'],
  .index-home-search button[aria-label='search'] {
    margin-right: 20px;
  }

  .top-user-name {
    display: none;
  }

  .asset-load-more-btn {
    height: 56px;
    font-size: 14px;
  }

  .scroll-top-btn {
    bottom: 20px;
    right: 14px;
    width: 56px;
    height: 56px;
  }

  .scroll-top-btn i {
    font-size: 24px;
  }
}

@media (max-width: 760px) {
  .filter-pill--upload {
    display: none !important;
  }

  .app-sidebar {
    display: none !important;
  }

  body.mobile-drawer-open {
    overflow: hidden;
  }

  .mobile-nav-toggle {
    display: inline-flex;
  }

  .mobile-drawer {
    display: block;
  }

  .mobile-drawer-backdrop {
    display: none;
  }

  .mobile-drawer-backdrop.is-open {
    display: block;
  }

  .app-shell {
    flex-direction: column;
  }

  .sidebar-group,
  .sidebar-spacer,
  .signin-card {
    display: none;
  }

  .topbar {
    height: 64px;
    padding: 8px;
  }

  .main-stage {
    padding: 10px;
  }

  .asset-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 7px;
  }

  .asset-grid--app-design {
    display: block;
  }

  .asset-grid--app-design .asset-card--app-design {
    width: 100%;
    max-width: none;
  }

  .asset-card,
  .asset-card--wide,
  .asset-card--landscape,
  .asset-card--portrait,
  .asset-card--square,
  .asset-card--document {
    grid-column: span 1;
    grid-row: span 16;
  }

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

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

  .form-grid--three .field-group:last-child {
    grid-column: span 2;
  }

  .detail-topbar {
    padding: 0 8px;
  }

  .detail-topbar-btn {
    padding: 0 10px;
    font-size: 12px;
  }

  .detail-info-section {
    padding: 18px;
    gap: 16px;
  }

  .detail-header-row {
    flex-direction: column;
    gap: 14px;
  }

  .detail-action-col {
    width: 100%;
    flex-wrap: wrap;
  }

  .detail-action-col .btn-main,
  .detail-action-col .btn-ghost {
    flex: 1;
    min-width: 120px;
    justify-content: center;
  }

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

  .detail-meta-line {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .upload-head.upload-head--refined {
    padding: 20px 18px 14px;
  }

  .upload-head h1 {
    font-size: 32px;
  }

  .upload-form.upload-form--refined {
    padding: 18px;
  }

  .drop-zone {
    min-height: 108px;
  }

  .detail-ppt-nav {
    width: 64px;
    height: 64px;
    font-size: 24px;
  }

  .detail-ppt-nav--prev { left: 10px; }
  .detail-ppt-nav--next { right: 10px; }

  .asset-load-more-btn {
    height: 50px;
    font-size: 14px;
  }

  .scroll-top-btn {
    width: 50px;
    height: 50px;
    bottom: 16px;
    right: 12px;
  }

  .scroll-top-btn i {
    font-size: 20px;
  }
}

/* Search bar: force single-layer style (override global input styles) */
.top-search input[type='text'] {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  height: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  appearance: none;
  -webkit-appearance: none;
}

.index-home-shell {
  width: min(100%, 1024px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  padding-bottom: 40px;
}

.index-home-hero {
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.index-home-hero-center {
  width: 580px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.index-home-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}

.index-home-breadcrumb span {
  color: rgba(255, 255, 255, 0.38);
}

.index-home-breadcrumb span:first-child,
.index-home-breadcrumb span:last-child {
  color: rgba(255, 255, 255, 0.58);
}

.index-home-hero-center h1 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #fff;
}

.index-home-hero-center p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.53);
}

.index-home-search {
  width: 520px;
  height: 42px;
  background: rgba(30, 30, 30, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 0 6px 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.index-home-search > i {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.35);
  margin-left: 20px;
}

.index-home-search input {
  flex: 1;
  height: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: #fff;
  font-size: 13px;
  box-shadow: none;
  padding: 0;
}

.index-home-search input::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

/* Keep landing/search input minimal on focus (override global input focus styles). */
.index-home-search input[type='text']:focus,
.top-search input[type='text']:focus {
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
}

.index-home-search:focus-within {
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: none;
}

.index-home-search-icon {
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.45);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.index-home-search-icon i {
  font-size: 16px;
  line-height: 1;
}

.index-home-search-icon[data-search-clear] i,
.index-home-search-icon[data-upload-trigger] i {
  font-size: 16px;
  line-height: 1;
}

.index-home-search-icon:hover {
  color: rgba(255, 255, 255, 0.8);
}

.top-search-icon[data-search-clear].is-hidden,
.index-home-search-icon[data-search-clear].is-hidden {
  display: none;
}

.index-home-tags {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.index-home-tag {
  height: 26px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 10px;
  color: rgba(255, 255, 255, 0.46);
  font-size: 11px;
}

.index-home-tag i {
  font-size: 10px;
}

.index-home-tag:hover {
  color: rgba(255, 255, 255, 0.85);
  border-color: rgba(255, 255, 255, 0.18);
}

.index-home-video {
  padding: 24px 24px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.index-home-section-head {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.index-home-section-head h2,
.index-home-stock-head h2 {
  font-size: 18px;
  font-weight: 700;
  color: #f0f0f0;
}

.index-home-section-head p {
  font-size: 12px;
  color: #666;
}

.index-home-video-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.index-home-video-row {
  display: flex;
  gap: 10px;
  min-height: 155px;
}

.index-home-video-row--equal .index-home-video-card {
  flex: 1;
}

.index-home-video-row--mix-a .index-home-video-card:first-child,
.index-home-video-row--mix-b .index-home-video-card:last-child {
  width: 422px;
  flex: 0 0 422px;
}

.index-home-video-row--mix-a .index-home-video-card:last-child {
  width: 200px;
  flex: 0 0 200px;
}

.index-home-video-row--mix-a .index-home-video-card:nth-child(2),
.index-home-video-row--mix-b .index-home-video-card:nth-child(2),
.index-home-video-row--mix-b .index-home-video-card:first-child {
  flex: 1;
}

.index-home-video-card,
.index-home-stock-card {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  min-height: 155px;
  background: #1a1a1a;
}

.index-home-video-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.68) 100%);
  pointer-events: none;
}

.index-home-video-card img,
.index-home-video-card video,
.index-home-stock-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.index-home-video-card span {
  display: none;
}

.index-home-video-card .asset-view-count,
.index-home-stock-card .asset-view-count {
  display: inline-flex;
}

.index-home-card-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: #9b9b9b;
  font-size: 26px;
  background: linear-gradient(145deg, #202020, #141414);
}

.index-home-stock {
  padding: 28px 24px 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.index-home-stock-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.index-home-stock-btn {
  margin-left: auto;
  height: 30px;
  border-radius: 8px;
  border: 1px solid #333;
  color: #888;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
}

.index-home-stock-btn:hover {
  color: #c5c5c5;
}

.index-home-stock-grid {
  width: 100%;
  height: 440px;
  display: flex;
  gap: 10px;
}

.index-home-stock-card--large {
  width: 430px;
  flex: 0 0 430px;
  min-height: 440px;
}

.index-home-stock-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.index-home-stock-row {
  flex: 1;
  display: flex;
  gap: 10px;
}

.index-home-stock-row .index-home-stock-card {
  flex: 1;
  min-height: 0;
}

/* Landing page: match index_ui.pen image ratios exactly */
.index-home-shell--landing .index-home-video-row {
  height: 155px;
  min-height: 155px;
}

.index-home-shell--landing .index-home-video-card {
  height: 155px;
  min-height: 155px;
}

.index-home-shell--landing .index-home-stock-grid {
  height: 440px;
}

.index-home-shell--landing .index-home-stock-card--large {
  height: 440px;
  min-height: 440px;
}

.index-home-shell--landing .index-home-stock-row {
  height: 215px;
}

.index-home-shell--landing .index-home-stock-row .index-home-stock-card {
  height: 215px;
}

@media (max-width: 1100px) {
  .index-home-shell {
    width: 100%;
  }

  .index-home-stock-card--large {
    width: 36%;
    min-width: 270px;
    flex-basis: 36%;
  }
}

@media (max-width: 900px) {
  .index-home-hero {
    min-height: 200px;
  }

  .index-home-hero-center {
    width: 100%;
    padding: 0 16px;
  }

  .index-home-search {
    width: 100%;
  }

  .index-home-video {
    padding: 18px 16px 0;
  }

  .index-home-stock {
    padding: 20px 16px 30px;
  }

  .index-home-video-row {
    flex-wrap: wrap;
  }

  .index-home-video-row .index-home-video-card {
    min-width: calc(50% - 5px);
    flex: 1 1 calc(50% - 5px);
  }

  .index-home-video-row--mix-a .index-home-video-card:first-child,
  .index-home-video-row--mix-b .index-home-video-card:last-child,
  .index-home-video-row--mix-a .index-home-video-card:last-child {
    width: auto;
    flex: 1 1 calc(50% - 5px);
  }

  .index-home-stock-grid {
    height: auto;
    flex-direction: column;
  }

  .index-home-stock-card--large {
    width: 100%;
    min-height: 240px;
  }

  .index-home-stock-row .index-home-stock-card {
    min-height: 180px;
  }

  /* Mobile/tablet: remove landing fixed heights to prevent overlap when rows wrap. */
  .index-home-shell--landing .index-home-video-row,
  .index-home-shell--landing .index-home-video-card,
  .index-home-shell--landing .index-home-stock-grid,
  .index-home-shell--landing .index-home-stock-card--large,
  .index-home-shell--landing .index-home-stock-row,
  .index-home-shell--landing .index-home-stock-row .index-home-stock-card {
    height: auto;
    min-height: 0;
  }

  .index-home-shell--landing .index-home-video-card {
    min-height: 155px;
  }

  .index-home-shell--landing .index-home-stock-card--large {
    min-height: 240px;
  }

  .index-home-shell--landing .index-home-stock-row .index-home-stock-card {
    min-height: 180px;
  }
}

@media (max-width: 760px) {
  .index-home-video-row .index-home-video-card {
    min-width: 100%;
    flex: 1 1 100%;
  }

  .index-home-video-row,
  .index-home-shell--landing .index-home-video-row {
    min-height: 0;
  }

  .index-home-stock-head {
    flex-wrap: wrap;
  }
}

/* index_ui.pen replacement (home-only) */
.index-home-shell {
  width: min(100%, 1500px);
  margin: 0 auto 0;
  padding: 0 10px 36px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.index-home-hero {
  min-height: 220px;
}

.index-home-hero-center {
  width: 782px;
}

.index-home-hero-center h1 {
  font-size: 34px;
  letter-spacing: -0.6px;
}

.index-home-search {
  width: 782px;
  height: 55px;
  background: rgba(23, 26, 31, 0.75);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.4);
}

.index-home-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px 12px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: #0f1217;
  margin-bottom: 18px;
}

.index-home-meta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.index-home-result-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.index-home-result-row strong {
  font-size: 18px;
  font-weight: 700;
  color: #f4f6fb;
}

.index-home-result-row span {
  color: #9ea4ae;
  font-size: 14px;
}

.index-home-result-row .meta-divider {
  color: #5f6570;
}

.index-home-sort-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  border-radius: 6px;
  padding: 0 10px;
  font-size: 12px;
  color: #d6dae2;
  background: #161a21;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.index-home-chip-row {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

.index-home-chip-row::-webkit-scrollbar {
  height: 6px;
}

.index-home-chip-row::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
}

.index-home-filter-chip {
  height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #1a1f27;
  color: #cdd2dc;
  font-size: 12px;
  font-weight: 500;
  padding: 0 12px;
  white-space: nowrap;
}

.index-home-filter-chip i {
  font-size: 12px;
}

.index-home-filter-chip.is-active {
  color: #fff;
  border-color: transparent;
  background: #2a313b;
}

button.index-home-filter-chip {
  cursor: default;
}

.index-home-video {
  padding-top: 0;
}

.index-home-category-group + .index-home-category-group {
  margin-top: 100px;
}

.index-home-stock {
  padding-top: 20px;
}

.index-home-stats-footer {
  width: min(100%, 1500px);
  margin-inline: auto;
  padding-inline: 10px;
  box-sizing: border-box;
  margin-top: 28px;
  border-radius: 0;
  overflow: hidden;
}

.index-home-stats-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border: 0;
  background: transparent;
}

.index-home-stat-card {
  min-height: 168px;
  padding: 22px 24px;
}

.index-home-stat-card h3 {
  font-size: 46px;
  line-height: 1;
  letter-spacing: -0.8px;
}

.index-home-stat-title {
  margin-top: 10px;
  font-size: 13px;
  color: #e0e4ec;
  font-weight: 600;
}

.index-home-stat-desc {
  margin-top: 8px;
  font-size: 11px;
  line-height: 1.4;
  color: #9ca2ae;
}

.index-home-brand-footer {
  background: transparent;
  border: 0;
  padding: 18px 24px 16px;
}

.index-home-brand-top img {
  display: block;
  width: 126px;
  height: auto;
}

.index-home-brand-divider {
  width: 100%;
  height: 1px;
  background: #2e3442;
  margin: 12px 0;
}

.index-home-brand-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #cdd2dc;
  font-size: 11px;
}

.index-home-brand-social {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.index-home-brand-social a {
  color: #f8fbff;
  font-size: 13px;
}

@media (max-width: 1024px) {
  .index-home-shell {
    padding-inline: 12px;
  }

  .index-home-hero-center,
  .index-home-search {
    width: 100%;
  }

  .index-home-stats-row {
    grid-template-columns: 1fr;
  }

  .index-home-brand-bottom {
    flex-wrap: wrap;
  }

  .index-home-category-group + .index-home-category-group {
    margin-top: 60px;
  }
}

/* ── 3D 카테고리 섹션 구분 ── */
.type-section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(100%, 1500px);
  margin-inline: auto;
  padding-inline: 10px;
  margin-top: 32px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.type-section-head h2 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary, #e8eaed);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.type-section-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(99,102,241,0.18);
  color: #818cf8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.type-section-head--image .type-section-icon {
  background: rgba(16,185,129,0.15);
  color: #34d399;
}
.type-section-count {
  font-size: 0.78rem;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 20px;
  background: rgba(255,255,255,0.07);
  color: var(--text-secondary, #9aa0aa);
}

/* ── asset card 타입 뱃지 (3D 카테고리) ── */
.asset-card {
  position: relative;
}
.asset-type-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 3px 7px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
  pointer-events: none;
  z-index: 2;
}
.asset-type-badge--model {
  background: rgba(99,102,241,0.85);
  color: #fff;
}
.asset-type-badge--image {
  background: rgba(16,185,129,0.85);
  color: #fff;
}

