:root {
  color-scheme: light;
  --ink: #15171c;
  --muted: #717784;
  --soft: #a4abb8;
  --line: #e8ebf1;
  --paper: #f7f9fc;
  --surface: #ffffff;
  --surface-soft: rgba(255, 255, 255, 0.72);
  --accent: #2378ff;
  --accent-2: #15b8a6;
  --accent-3: #7c5cff;
  --shadow: 0 18px 48px rgba(30, 42, 68, 0.08);
  --shadow-soft: 0 8px 28px rgba(30, 42, 68, 0.06);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 0%, rgba(35, 120, 255, 0.08), transparent 30%),
    radial-gradient(circle at 90% 6%, rgba(21, 184, 166, 0.08), transparent 28%),
    var(--paper);
  color: var(--ink);
  font-family: Inter, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 12px clamp(18px, 2.3vw, 36px);
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(232, 235, 241, 0.82);
  backdrop-filter: blur(22px) saturate(1.18);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  min-width: 214px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 34px;
  flex: 0 0 auto;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  margin-top: 1px;
  color: var(--muted);
  font-size: 11px;
}

.brand strong {
  font-size: 14px;
  letter-spacing: 0;
}

.top-nav,
.filter-bar {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.top-nav {
  justify-content: center;
}

.nav-link,
.nav-anchor,
.chip,
.admin-link,
.ghost-button,
.primary-button,
.control-button,
.dialog-close {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  transition: 160ms ease;
}

.nav-link,
.nav-anchor,
.chip,
.admin-link {
  white-space: nowrap;
  padding: 8px 13px;
  font-size: 13px;
}

.nav-link.is-active,
.chip.is-active,
.primary-button {
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  color: #fff;
  box-shadow: 0 10px 24px rgba(35, 120, 255, 0.16);
}

.admin-link {
  justify-self: end;
  font-weight: 650;
}

.nav-link,
.nav-anchor,
.chip {
  color: #48505e;
}

.chip {
  padding: 7px 12px;
  border-color: rgba(188, 215, 244, 0.86);
  color: #58718d;
  background: rgba(247, 251, 255, 0.9);
  font-size: 12px;
}

.chip.is-active {
  color: #2e5f91;
  background: #dceeff;
  box-shadow: none;
}

.admin-link:hover,
.ghost-button:hover {
  border-color: #d6dce7;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.nav-link:hover,
.nav-link:focus,
.nav-anchor:hover,
.nav-anchor:focus {
  border-color: rgba(188, 215, 244, 0.9);
  background: rgba(247, 251, 255, 0.78);
  box-shadow: 0 8px 20px rgba(84, 122, 168, 0.08);
  transform: translateY(-1px);
}

.chip:hover,
.chip:focus {
  border-color: rgba(188, 215, 244, 0.86);
  color: #58718d;
  background: rgba(232, 244, 255, 0.88);
  box-shadow: 0 8px 18px rgba(84, 122, 168, 0.07);
  transform: translateY(-1px);
}

.nav-link.is-active:hover,
.nav-link.is-active:focus,
.chip.is-active:hover,
.chip.is-active:focus {
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  color: #fff;
  box-shadow: 0 10px 24px rgba(35, 120, 255, 0.16);
}

.chip.is-active:hover,
.chip.is-active:focus {
  color: #2e5f91;
  background: #dceeff;
  box-shadow: none;
}

.filter-bar {
  position: sticky;
  top: 59px;
  z-index: 18;
  padding: 14px clamp(14px, 2vw, 30px) 8px;
  background: rgba(239, 247, 255, 0.78);
  border-top: 1px solid rgba(213, 228, 246, 0.62);
  border-bottom: 1px solid rgba(213, 228, 246, 0.62);
  backdrop-filter: blur(22px) saturate(1.18);
}

body.is-designer-view .filter-bar {
  display: none !important;
}

.masonry {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  column-count: 8;
  column-gap: 12px;
  padding: 10px 16px 36px;
}

.project-card {
  position: relative;
  display: inline-block;
  width: 100%;
  margin: 0 0 16px;
  overflow: hidden;
  border-radius: 25px;
  background: #eef2f7;
  box-shadow: 0 1px 0 rgba(30, 42, 68, 0.04);
  cursor: zoom-in;
  break-inside: avoid;
  transform: translateZ(0);
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.project-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: inherit;
  pointer-events: none;
}

.project-card img,
.project-card video {
  display: block;
  width: 100%;
  height: auto;
  background: #f2f5f9;
}

.project-card img {
  filter: saturate(0.98) contrast(1.01);
}

.project-card:hover img {
  filter: saturate(1.02) contrast(1.02);
}

.card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 5px;
  padding: 18px;
  color: #fff;
  background: linear-gradient(to top, rgba(13, 18, 28, 0.62), rgba(13, 18, 28, 0.08) 58%, transparent);
  opacity: 0;
  transition: 180ms ease;
}

.video-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 50%;
  background: rgba(18, 24, 34, 0.52);
  box-shadow: 0 14px 34px rgba(18, 24, 34, 0.24);
  backdrop-filter: blur(12px);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.video-badge span {
  width: 0;
  height: 0;
  margin-left: 4px;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  border-left: 16px solid rgba(255, 255, 255, 0.96);
}

.project-card:hover .card-overlay,
.project-card:focus-visible .card-overlay {
  opacity: 1;
}

.card-overlay h2,
.card-overlay p {
  margin: 0;
}

.card-overlay h2 {
  font-size: 15px;
  line-height: 1.25;
  font-weight: 720;
  text-wrap: balance;
}

.card-overlay p {
  max-width: 92%;
  overflow: hidden;
  font-size: 11px;
  opacity: 0.88;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-author {
  display: block;
  max-width: 92%;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.9);
  font-size: 11px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pdf-tile {
  display: grid;
  place-items: center;
  min-height: 220px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  font-size: 26px;
  font-weight: 800;
}

.pdf-cover {
  position: relative;
  display: grid;
  gap: 3px;
  width: 100%;
  aspect-ratio: 3 / 4;
  min-height: 220px;
  padding: 6px;
  overflow: hidden;
  background: #dfe5ee;
}

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

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

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

.pdf-cover iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
  pointer-events: none;
}

.pdf-page-empty {
  background: rgba(255, 255, 255, 0.62);
}

.pdf-cover span {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  padding: 5px 8px;
  border-radius: 999px;
  color: #fff;
  background: rgba(18, 24, 34, 0.58);
  font-size: 11px;
  font-weight: 760;
  backdrop-filter: blur(10px);
}

.empty-state,
.about-panel {
  margin: 34px clamp(14px, 3vw, 44px);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

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

.about-panel {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(260px, 1fr);
  gap: 30px;
  align-items: end;
}

.empty-state h2 {
  margin: 0;
  font-size: clamp(24px, 3.2vw, 44px);
  line-height: 1.08;
  letter-spacing: 0;
  font-weight: 760;
}

.about-panel h1 {
  max-width: 620px;
  margin: 0;
  color: #6b7482;
  font-size: clamp(15px, 1.35vw, 19px);
  line-height: 1.72;
  letter-spacing: 0;
  font-weight: 420;
}

.empty-state h2 {
  font-size: 24px;
}

.about-panel p,
.empty-state p {
  color: var(--muted);
  line-height: 1.75;
  font-size: 14px;
}

.empty-state p {
  max-width: 520px;
  margin-inline: auto;
}

.designer-panel {
  display: grid;
  grid-template-columns: minmax(280px, 1.1fr) repeat(3, minmax(220px, 0.9fr));
  gap: 12px;
  width: min(100% - 48px, 1440px);
  margin: 0 auto;
  padding: 22px 0 48px;
}

.designer-panel[hidden] {
  display: none;
}

.designer-card {
  min-height: 220px;
  padding: 22px;
  border: 1px solid rgba(232, 235, 241, 0.86);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px) saturate(1.08);
}

.designer-directory {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  justify-content: center;
  gap: 18px;
  grid-column: 1 / -1;
  width: 100%;
}

.designer-directory-single {
  grid-template-columns: minmax(0, 720px);
  justify-content: center;
}

.designer-card-profile {
  position: relative;
  display: grid;
  grid-template-columns: 210px 1fr;
  min-height: 286px;
  padding: 16px;
  overflow: hidden;
  border: 1px solid rgba(219, 228, 241, 0.78);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.designer-card-profile:hover,
.designer-card-profile:focus-visible {
  border-color: rgba(144, 199, 68, 0.42);
  box-shadow: 0 22px 60px rgba(84, 122, 168, 0.14);
  transform: translateY(-2px);
  outline: 0;
}

.designer-card-photo {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  align-self: start;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  background: linear-gradient(135deg, #eef4f9, #e9f5ff);
}

.designer-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.designer-card-photo span {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 26px;
  color: #24330b;
  background: #c9ea64;
  font-size: 38px;
  font-weight: 820;
}

.designer-like {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  color: #ee5f66;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 24px rgba(30, 42, 68, 0.12);
  pointer-events: none;
}

.designer-card-info {
  position: relative;
  min-height: 0;
  padding: 8px 48px 6px 20px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.designer-card-info h2 {
  margin: 0 0 10px;
  color: #253044;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 780;
}

.designer-card-info p {
  margin: 0;
  color: #687280;
  font-size: 13px;
  line-height: 1.7;
}

.designer-contact {
  color: #8a96a7 !important;
  font-size: 12px !important;
  line-height: 1.45 !important;
}

.designer-card-role {
  margin-bottom: 8px !important;
  color: #7caf19 !important;
  font-size: 11px !important;
  font-weight: 780;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.designer-card-intro {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.designer-card-lines {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
}

.designer-card-lines div {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 10px;
  align-items: baseline;
}

.designer-card-lines dt,
.designer-card-lines dd {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
}

.designer-card-lines dt {
  color: #8a96a7;
  font-weight: 720;
}

.designer-card-lines dd {
  display: -webkit-box;
  overflow: hidden;
  color: #526071;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.designer-card-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 18px;
}

.designer-card-metrics span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #657286;
  font-size: 12px;
  line-height: 1.2;
}

.designer-card-metrics strong {
  color: #2f6fab;
  font-size: 21px;
  line-height: 1;
  font-weight: 780;
}

.designer-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 16px;
  color: #7a8492;
  font-size: 11px;
  line-height: 1.7;
}

.designer-card-tags span {
  display: inline-flex;
  align-items: center;
}

.designer-card-tags span:not(:last-child)::after {
  content: "|";
  margin: 0 7px;
  color: #c0c8d3;
}

.designer-open {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: grid !important;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: #5ea2ff;
  box-shadow: 0 10px 22px rgba(94, 162, 255, 0.28);
  pointer-events: none;
}

.designer-mini-stats {
  display: inline-flex;
  gap: 8px;
  align-items: baseline;
  margin-top: 18px;
  padding: 8px 12px;
  border: 1px solid rgba(188, 215, 244, 0.9);
  border-radius: 999px;
  background: rgba(239, 247, 255, 0.78);
}

.designer-mini-stats strong {
  color: #1f5f9f;
  font-size: 20px;
  line-height: 1;
}

.designer-mini-stats span {
  color: #687280;
  font-size: 12px;
}

.designer-profile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 28px;
  align-items: center;
  grid-column: span 2;
  min-height: 320px;
}

.designer-profile-photo,
.designer-avatar {
  display: grid;
  place-items: center;
  border-radius: 22px;
  color: #24330b;
  background: #c9ea64;
  font-weight: 820;
  box-shadow: 0 16px 36px rgba(163, 201, 48, 0.24);
  overflow: hidden;
}

.designer-profile-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  font-size: 56px;
}

.designer-avatar {
  width: 72px;
  height: 72px;
  margin-bottom: 22px;
  font-size: 32px;
}

.designer-profile-photo img,
.designer-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.designer-profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 22px;
  color: #7a8492;
  font-size: 12px;
  line-height: 1.8;
}

.designer-profile-tags span {
  display: inline-flex;
  align-items: center;
}

.designer-profile-tags span:not(:last-child)::after {
  content: "|";
  margin: 0 8px;
  color: #c0c8d3;
}

.designer-card h1,
.designer-card h2,
.designer-card p {
  margin: 0;
}

.designer-card h1 {
  font-size: clamp(28px, 4vw, 54px);
  line-height: 1;
  font-weight: 760;
}

.designer-card h2 {
  color: #273142;
  font-size: 16px;
  font-weight: 760;
}

.designer-card p,
.designer-card li {
  color: #687280;
  font-size: 13px;
  line-height: 1.8;
}

.designer-card h1 + p,
.designer-card h2 + p,
.designer-card h2 + ul {
  margin-top: 14px;
}

.portfolio-export-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  margin-top: 18px;
  padding: 0 15px;
  border: 1px solid rgba(144, 199, 68, 0.46);
  border-radius: 999px;
  color: #42620e;
  background: rgba(220, 243, 139, 0.48);
  font-size: 12px;
  font-weight: 720;
  cursor: pointer;
}

.portfolio-export-button:hover {
  background: rgba(201, 234, 100, 0.64);
}

.designer-detail-tools {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.designer-card ul {
  margin: 14px 0 0;
  padding-left: 18px;
}

.designer-stats {
  display: grid;
  grid-column: span 2;
  grid-template-columns: repeat(2, minmax(130px, 1fr));
  gap: 12px;
}

.designer-stat {
  min-height: 154px;
  padding: 18px;
  border: 1px solid rgba(188, 215, 244, 0.86);
  border-radius: 8px;
  background: rgba(239, 247, 255, 0.78);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px) saturate(1.12);
}

.designer-stat strong,
.designer-stat span,
.designer-stat small {
  display: block;
}

.designer-stat strong {
  color: #1f5f9f;
  font-size: clamp(30px, 3.2vw, 48px);
  line-height: 0.95;
  font-weight: 760;
}

.designer-stat span {
  margin-top: 12px;
  color: #273142;
  font-size: 14px;
  font-weight: 760;
}

.designer-stat small {
  margin-top: 5px;
  color: #6f7b8a;
  font-size: 12px;
}

.designer-info-cards,
.designer-info-layout {
  display: grid;
  grid-column: 1 / -1;
  gap: 12px;
}

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

.designer-info-layout {
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.55fr);
}

.designer-info-stack {
  display: grid;
  gap: 12px;
}

.designer-info-card {
  min-height: 188px;
}

.designer-info-card.is-green {
  min-height: 144px;
  border-color: rgba(232, 235, 241, 0.86);
  background: rgba(255, 255, 255, 0.78);
}

.designer-resume-card {
  min-height: 300px;
}

.designer-resume-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.designer-resume-list article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px 118px;
  gap: 16px;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid rgba(232, 235, 241, 0.86);
}

.designer-resume-list article:last-child {
  border-bottom: 0;
}

.designer-resume-list strong,
.designer-resume-list span,
.designer-resume-list small {
  display: block;
  min-width: 0;
}

.designer-resume-list strong {
  color: #273142;
  font-size: 14px;
  font-weight: 760;
}

.designer-resume-list span {
  color: #687280;
  font-size: 13px;
}

.designer-resume-list small {
  color: #8a96a7;
  font-size: 12px;
  text-align: right;
}

.designer-photo-card {
  grid-column: span 2;
}

.designer-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.designer-photo-grid figure {
  margin: 0;
}

.designer-photo-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  background: #eef2f7;
}

.designer-photo-grid figcaption {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.designer-back {
  grid-column: 1 / -1;
  justify-self: start;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(188, 215, 244, 0.86);
  border-radius: 999px;
  color: #58718d;
  background: rgba(247, 251, 255, 0.9);
}

.designer-works {
  grid-column: 1 / -1;
}

.designer-works-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin: 8px 0 14px;
}

.designer-works-heading h2 {
  margin: 0;
  color: #273142;
  font-size: 18px;
  font-weight: 760;
}

.designer-work-grid {
  column-count: 5;
  column-gap: 12px;
}

.designer-work-card {
  break-inside: avoid;
  margin-bottom: 12px;
}

.designer-empty {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0;
  text-transform: uppercase;
}

.project-dialog {
  width: min(1760px, calc(100vw - 8px));
  height: min(1060px, calc(100vh - 8px));
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  overflow: hidden;
  backdrop-filter: blur(18px) saturate(1.08);
}

.project-dialog::backdrop {
  background: rgba(15, 20, 30, 0.48);
}

.dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 8;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: 50%;
  color: #fff;
  background: rgba(21, 23, 28, 0.68);
  box-shadow: 0 12px 30px rgba(18, 24, 34, 0.18);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(12px);
}

.dialog-close:hover,
.control-button:hover {
  transform: translateY(-1px);
}

.project-shell {
  display: grid;
  grid-template-columns: 400px 1fr;
  height: 100%;
  min-height: 0;
}

.project-info {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 22px 18px;
  border-right: 1px solid var(--line);
}

.project-info h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.18;
  font-weight: 760;
}

.project-info p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.project-description {
  margin: 10px 0 12px;
  color: #6f7784;
  font-size: 13px;
  line-height: 1.72;
  white-space: pre-line;
}

.project-count {
  color: var(--accent);
  font-size: 13px;
  font-weight: 760;
}

.project-meta-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  margin-bottom: 6px;
}

.project-meta-main,
.project-meta-side {
  min-width: 0;
}

.project-meta-main h2,
.project-meta-main p {
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-meta-main h2 {
  white-space: nowrap;
}

.project-meta-main p {
  margin: 6px 0 0;
}

.project-meta-side {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.project-meta-side .eyebrow {
  margin: 0;
  padding: 4px 9px;
  border: 1px solid rgba(188, 215, 244, 0.9);
  border-radius: 999px;
  color: #4f77a2;
  background: rgba(239, 247, 255, 0.74);
  font-size: 11px;
  font-weight: 720;
  text-transform: none;
}

.comment-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 8px;
  min-height: 0;
  margin-top: auto;
  padding-top: 12px;
}

.comment-panel h3 {
  margin: 0;
  color: #48505e;
  font-size: 13px;
  font-weight: 760;
}

.comment-form {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.comment-form textarea {
  width: 100%;
  border: 0;
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  outline: none;
}

.comment-form textarea {
  min-height: 68px;
  max-height: 132px;
  padding: 0;
  resize: vertical;
}

.comment-form:focus-within {
  border-color: rgba(201, 234, 100, 0.8);
  box-shadow: 0 0 0 4px rgba(201, 234, 100, 0.2);
}

.comment-toolbar {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 8px;
  align-items: center;
}

.comment-toolbar button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  min-width: 52px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 720;
}

.comment-toolbar .emoji-button {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: inherit;
  background: transparent;
  box-shadow: none;
  font-size: 28px;
  line-height: 1;
}

.comment-toolbar .emoji-button:hover {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.emoji-popover {
  position: absolute;
  left: 10px;
  bottom: 48px;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(6, 30px);
  gap: 4px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
}

.emoji-popover[hidden] {
  display: none;
}

.emoji-popover button {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 17px;
}

.comment-cancel {
  width: 54px;
  padding: 0;
  color: #687280;
  background: #fff;
}

.comment-submit {
  width: 54px;
  padding: 0;
  border-color: #c9ea64;
  color: #24330b;
  background: #c9ea64;
}

.comment-list {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 0;
  overflow-y: auto;
  padding: 2px 2px 6px 0;
}

.comment-empty {
  margin: 0;
  color: var(--soft);
  font-size: 12px;
}

.comment-item {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
}

.comment-item time {
  display: inline-block;
}

.comment-item time {
  color: var(--soft);
  font-size: 11px;
}

.comment-item p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.project-viewer {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-width: 0;
  min-height: 0;
  background: rgba(246, 248, 251, 0.74);
}

.media-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 16px;
  overflow: hidden;
}

.media-stage img,
.media-stage video {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border: 0;
  border-radius: 8px;
  background: #fff;
}

.video-player-wrap {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 0;
}

.video-player-wrap video {
  max-width: 100%;
  max-height: 100%;
}

.video-play-hint {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.video-play-hint span {
  width: clamp(54px, 7vw, 78px);
  height: clamp(54px, 7vw, 78px);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 48px rgba(20, 35, 64, 0.22);
  backdrop-filter: blur(14px) saturate(1.1);
}

.video-play-hint span::before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  margin: 50% 0 0 54%;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-left: 18px solid rgba(34, 45, 62, 0.74);
  transform: translate(-50%, -50%);
}

.video-player-wrap.is-playing .video-play-hint {
  opacity: 0;
  pointer-events: none;
}

.media-stage iframe {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  border: 0;
  border-radius: 8px;
  background: #fff;
}

.media-stage img {
  box-shadow: 0 10px 34px rgba(30, 42, 68, 0.08);
}

.media-stage iframe {
  min-height: 420px;
}

.media-stage.is-sliding {
  isolation: isolate;
}

.media-stage.is-sliding .media-slide-item {
  position: absolute;
  max-width: calc(100% - 32px);
  max-height: calc(100% - 32px);
  will-change: transform, opacity, filter;
}

.media-stage.is-sliding iframe.media-slide-item {
  width: calc(100% - 32px);
  height: calc(100% - 32px);
}

.viewer-controls {
  position: absolute;
  top: 50%;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  transform: translateY(-50%);
  pointer-events: none;
}

.control-button {
  width: 34px;
  height: 34px;
  border-color: rgba(255, 255, 255, 0.72);
  color: rgba(70, 80, 96, 0.72);
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 10px 26px rgba(30, 42, 68, 0.12);
  font-size: 24px;
  backdrop-filter: blur(14px) saturate(1.08);
  pointer-events: auto;
}

.thumb-strip {
  position: relative;
  z-index: 3;
  display: flex;
  gap: 10px;
  margin: 0 16px 16px;
  padding: 8px;
  overflow-x: auto;
  border: 1px solid rgba(232, 235, 241, 0.82);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 28px rgba(30, 42, 68, 0.08);
  backdrop-filter: blur(18px);
}

.thumb-item {
  position: relative;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: clamp(58px, 6vw, 86px);
  height: clamp(58px, 6vw, 86px);
  overflow: hidden;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  background: #eef2f7;
  color: var(--muted);
  cursor: pointer;
}

.thumb-item.is-active {
  border-color: var(--accent);
}

.thumb-item img,
.thumb-item video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.thumb-item span {
  position: absolute;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: #fff;
  background: rgba(18, 24, 34, 0.55);
  font-size: 11px;
}

.fullscreen-button {
  position: absolute;
  right: 18px;
  bottom: calc(clamp(58px, 6vw, 86px) + 50px);
  z-index: 4;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  color: #fff;
  background: rgba(21, 23, 28, 0.72);
  box-shadow: 0 12px 30px rgba(18, 24, 34, 0.18);
  cursor: pointer;
  backdrop-filter: blur(12px);
}

.fullscreen-icon {
  position: relative;
  width: 18px;
  height: 18px;
}

.fullscreen-icon::before,
.fullscreen-icon::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-color: currentColor;
  border-style: solid;
}

.fullscreen-icon::before {
  top: 0;
  right: 0;
  border-width: 2px 2px 0 0;
}

.fullscreen-icon::after {
  left: 0;
  bottom: 0;
  border-width: 0 0 2px 2px;
}

.fullscreen-button[hidden] {
  display: none;
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.68fr) minmax(520px, 1.32fr);
  gap: 16px;
  padding: 18px clamp(16px, 2vw, 30px) 36px;
}

.admin-body {
  background:
    radial-gradient(circle at 10% 0%, rgba(124, 92, 255, 0.08), transparent 30%),
    radial-gradient(circle at 90% 12%, rgba(21, 184, 166, 0.08), transparent 32%),
    var(--paper);
}

.admin-panel {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.panel-heading h1,
.panel-heading h2 {
  margin: 0 0 18px;
  font-size: 22px;
  line-height: 1.18;
  font-weight: 760;
}

.project-form,
.form-grid,
.category-list,
.bulk-actions {
  display: grid;
  gap: 14px;
}

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

label,
.category-list legend {
  color: var(--muted);
  font-size: 12px;
  font-weight: 680;
}

input[type="text"],
select,
.admin-textarea {
  width: 100%;
  margin-top: 7px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  outline: none;
}

input[type="text"]:focus,
select:focus,
.admin-textarea:focus {
  border-color: rgba(35, 120, 255, 0.48);
  box-shadow: 0 0 0 4px rgba(35, 120, 255, 0.1);
}

.admin-textarea {
  min-height: 96px;
  resize: vertical;
  line-height: 1.65;
}

.category-list {
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.category-list label {
  color: var(--ink);
  font-weight: 560;
}

.dropzone {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 176px;
  padding: 22px;
  border: 1px dashed #cdd4df;
  border-radius: 8px;
  background: rgba(247, 249, 252, 0.82);
  text-align: center;
  cursor: pointer;
}

.dropzone input {
  display: none;
}

.dropzone strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 720;
}

.dropzone span {
  color: var(--muted);
  font-size: 12px;
}

.dropzone.is-dragging,
.dropzone.needs-files {
  border-color: var(--accent-2);
  background: rgba(21, 184, 166, 0.08);
}

.upload-preview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.preview-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  min-height: 0;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  background: #f3f6fa;
}

.preview-item.is-cover {
  border-color: #a7d83f;
  box-shadow: 0 0 0 3px rgba(167, 216, 63, 0.22);
}

.preview-item.is-homepage {
  background: #eef7ff;
}

.preview-item img,
.preview-item video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #f8fafc;
}

.preview-item > span {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 5px 8px;
  border-radius: 999px;
  color: #fff;
  background: rgba(21, 23, 28, 0.68);
  font-size: 11px;
  backdrop-filter: blur(12px);
}

.preview-delete {
  position: absolute;
  top: 7px;
  right: 7px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  color: #56616f;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 18px rgba(30, 42, 68, 0.12);
  cursor: pointer;
}

.preview-actions {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  z-index: 2;
  display: flex;
  gap: 6px;
}

.preview-actions button {
  flex: 1;
  min-width: 0;
  padding: 6px 6px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  color: #48505e;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 18px rgba(30, 42, 68, 0.1);
  cursor: pointer;
  font-size: 11px;
  font-weight: 720;
}

.preview-actions button:disabled {
  color: #1f3b12;
  border-color: rgba(167, 216, 63, 0.72);
  background: rgba(199, 239, 92, 0.92);
  opacity: 1;
}

.preview-actions .preview-homepage-action.is-visible {
  color: #1f4f79;
  border-color: rgba(99, 174, 255, 0.6);
  background: rgba(221, 240, 255, 0.92);
}

.preview-actions .preview-homepage-action:not(.is-visible) {
  color: #697386;
  background: rgba(255, 255, 255, 0.7);
}

.form-actions,
.bulk-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.bulk-actions select {
  max-width: 190px;
}

.project-toolbar {
  align-items: center;
}

#downloadSelected {
  margin-left: auto;
}

.bulk-edit-form {
  display: grid;
  grid-template-columns: minmax(170px, 0.75fr) minmax(170px, 0.75fr) minmax(220px, 1fr) minmax(260px, 1.2fr) auto;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(247, 249, 252, 0.72);
}

.bulk-edit-form label {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  color: #596373;
  white-space: nowrap;
}

.bulk-edit-form .bulk-field {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
}

.bulk-edit-form .bulk-field span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.bulk-edit-form input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.bulk-edit-form select {
  min-width: 0;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #2f3847;
  padding: 0 10px;
}

.bulk-edit-form select:disabled {
  color: #9ca8ba;
  background: #f3f6fa;
}

.bulk-edit-form input[type="text"] {
  min-width: 0;
  margin-top: 0;
}

.project-form.is-uploading .primary-button[type="submit"] {
  cursor: wait;
  opacity: 0.78;
}

.primary-button,
.ghost-button {
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 720;
}

.project-table {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}

.designer-admin-panel {
  grid-column: 1 / -1;
}

.designer-admin-form {
  display: grid;
  gap: 14px;
}

.designer-photo-preview {
  display: flex;
  gap: 8px;
  overflow-x: auto;
}

.designer-photo-preview img {
  width: 86px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  background: #eef2f7;
}

.project-manage-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  overflow: hidden;
}

.project-manage-card.is-open {
  border-color: rgba(35, 120, 255, 0.22);
  background: rgba(238, 246, 255, 0.76);
}

.project-row {
  display: grid;
  grid-template-columns: auto 72px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 9px;
  color: var(--ink);
  cursor: pointer;
}

.project-manage-card.is-open .project-row {
  background: rgba(231, 243, 255, 0.92);
}

.project-row:hover {
  border-color: #d7deea;
  box-shadow: var(--shadow-soft);
}

.project-row:focus-visible {
  outline: 3px solid rgba(35, 120, 255, 0.18);
  outline-offset: -3px;
}

.project-row input[type="checkbox"],
.category-list input[type="checkbox"],
.category-list input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  cursor: pointer;
}

.category-list label {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  cursor: pointer;
}

.row-thumb {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  overflow: hidden;
  border-radius: 8px;
  background: #eef2f7;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.row-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.row-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.row-thumb .pdf-cover {
  width: 100%;
  height: 100%;
  min-height: 0;
  aspect-ratio: auto;
  border-radius: inherit;
}

.project-row strong,
.project-row span {
  display: block;
}

.project-row span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.row-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.project-file-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.project-file-primary-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.project-row button,
.project-file-actions button {
  border: 0;
  background: transparent;
  color: var(--accent-2);
  cursor: pointer;
  font-size: 12px;
  font-weight: 720;
}

.project-row button,
.project-row input,
.project-file-actions button {
  cursor: pointer;
}

.project-file-actions button:disabled {
  color: var(--soft);
  cursor: default;
}

.project-file-actions .is-muted-action {
  color: #8c95a3;
}

.project-file-actions .project-file-delete-action {
  margin-left: auto;
  color: #9b5b63;
}

.project-file-actions .project-file-delete-action:hover {
  color: #c33a48;
}

.project-file-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-top: 1px solid var(--line);
  background: rgba(247, 249, 252, 0.72);
}

.project-file-toolbar span {
  color: #687586;
  font-size: 12px;
  font-weight: 680;
}

.project-file-toolbar button {
  min-width: 110px;
  padding: 8px 12px;
  border: 1px solid rgba(195, 58, 72, 0.22);
  border-radius: 999px;
  background: rgba(255, 244, 245, 0.82);
  color: #a0444f;
  font-size: 12px;
  font-weight: 760;
  cursor: pointer;
}

.project-file-toolbar button:disabled {
  border-color: var(--line);
  background: rgba(239, 243, 248, 0.78);
  color: #a8b0bc;
  cursor: default;
}

.project-edit-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: end;
  gap: 10px 12px;
  padding: 12px;
  border-top: 1px solid var(--line);
  background: rgba(247, 249, 252, 0.72);
}

.project-edit-form .category-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(86px, 1fr));
  gap: 8px 10px;
  min-width: 0;
  padding: 8px 10px;
  background: #fff;
}

.project-edit-form .category-list label {
  min-width: 0;
  white-space: nowrap;
}

.project-edit-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
}

.project-edit-actions button {
  min-width: 96px;
  padding: 9px 14px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 760;
  cursor: pointer;
}

.project-collapse-row {
  display: flex;
  justify-content: center;
  padding: 12px;
  border-top: 1px solid var(--line);
  background: rgba(247, 249, 252, 0.72);
}

.project-collapse-row button {
  min-width: 82px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
  cursor: pointer;
}

.project-file-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
  border-top: 1px solid var(--line);
  background: rgba(247, 249, 252, 0.72);
}

.project-file-item {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(46px, auto) auto;
  gap: 8px;
  align-items: stretch;
  padding: 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #fff;
  min-width: 0;
}

.project-file-item.is-cover {
  border-color: rgba(35, 120, 255, 0.34);
  box-shadow: 0 0 0 3px rgba(35, 120, 255, 0.08);
}

.project-file-item.is-selected {
  border-color: rgba(127, 189, 41, 0.62);
  box-shadow: 0 0 0 3px rgba(127, 189, 41, 0.12);
}

.project-file-check {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 24px rgba(38, 49, 65, 0.13);
  cursor: pointer;
}

.project-file-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.project-file-check span {
  width: 18px;
  height: 18px;
  border: 1px solid rgba(127, 145, 166, 0.72);
  border-radius: 6px;
  background: #fff;
}

.project-file-check input:checked + span {
  border-color: #7fbd29;
  background: #b9ed4f;
  box-shadow: inset 0 0 0 4px #fff;
}

.project-file-add {
  place-items: center;
  min-height: 178px;
  border: 1px dashed rgba(139, 160, 188, 0.72);
  color: #6d7b8d;
  background: rgba(255, 255, 255, 0.62);
  text-align: center;
  cursor: pointer;
}

.project-file-add input {
  display: none;
}

.project-file-add span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  color: #2e5f91;
  background: rgba(220, 238, 255, 0.86);
  font-size: 34px;
  line-height: 1;
}

.project-file-add strong {
  color: #6d7b8d;
  font-size: 12px;
}

.project-file-thumb {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  overflow: hidden;
  border-radius: 8px;
  background: #eef2f7;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.project-file-thumb img,
.project-file-thumb video,
.project-file-thumb .pdf-cover {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.project-file-thumb .pdf-cover {
  aspect-ratio: auto;
  min-height: 0;
  border-radius: inherit;
}

.project-file-meta {
  min-width: 0;
}

.project-file-meta strong,
.project-file-meta span {
  display: block;
}

.project-file-meta strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-file-meta span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.login-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.login-shell {
  width: min(420px, calc(100vw - 34px));
}

.login-panel {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.login-brand {
  margin-bottom: 24px;
}

.login-form {
  display: grid;
  gap: 14px;
}

.form-message {
  min-height: 20px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 1180px) {
  .masonry {
    column-count: 4;
  }
}

@media (min-width: 1440px) {
  .masonry {
    column-count: 8;
  }
}

@media (max-width: 900px) {
  .admin-layout,
  .project-shell,
  .about-panel {
    grid-template-columns: 1fr;
  }

  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 8px;
    padding: 10px 12px 6px;
  }

  .brand,
  .admin-link {
    min-width: 0;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
  }

  .admin-link {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    align-self: center;
    padding: 5px 9px;
    border-color: rgba(211, 222, 238, 0.84);
    color: #7a8492;
    background: rgba(245, 248, 252, 0.78);
    font-size: 11px;
    font-weight: 620;
    box-shadow: none;
  }

  .top-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: start;
    gap: 5px;
    margin-top: 0;
  }

  .filter-bar {
    top: 96px;
    gap: 5px;
    padding: 6px 12px 7px;
    background: rgba(239, 247, 255, 0.78);
    border-top: 1px solid rgba(213, 228, 246, 0.62);
    border-bottom: 1px solid rgba(213, 228, 246, 0.62);
    backdrop-filter: blur(22px) saturate(1.18);
  }

  .nav-link,
  .nav-anchor,
  .chip {
    padding: 6px 9px;
    font-size: 11px;
  }

  .chip {
    border-color: rgba(188, 215, 244, 0.86);
    color: #58718d;
    background: rgba(247, 251, 255, 0.9);
  }

  .chip.is-active {
    color: #2e5f91;
    background: #dceeff;
    box-shadow: none;
  }

  .masonry {
    column-count: 3;
  }

  .designer-panel {
    grid-template-columns: 1fr 1fr;
    padding: 14px 12px 32px;
  }

  .designer-directory {
    grid-template-columns: 1fr;
  }

  .designer-work-grid {
    column-count: 3;
  }

  .designer-profile,
  .designer-stats,
  .designer-photo-card,
  .designer-info-cards,
  .designer-info-layout {
    grid-column: 1 / -1;
  }

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

  .designer-info-cards,
  .designer-info-layout {
    grid-template-columns: 1fr;
  }

  .project-info {
    order: 2;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .project-viewer {
    order: 1;
  }

  .comment-panel {
    margin-top: 12px;
    padding-top: 12px;
  }

  .comment-list {
    max-height: 180px;
  }
}

@media (max-width: 640px) {
  .filter-bar {
    top: 96px;
  }

  .masonry {
    column-count: 2;
    column-gap: 12px;
    padding-inline: 10px;
  }

  .designer-panel {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .designer-directory {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .designer-card.designer-card-profile {
    grid-template-columns: 120px 1fr;
    min-height: 0;
    padding: 12px;
    border-radius: 18px;
  }

  .designer-card-photo {
    inset: auto;
    min-height: 0;
  }

  .designer-card-info {
    min-height: 0;
    padding: 2px 38px 2px 14px;
    border-radius: 0;
  }

  .designer-card-info h2 {
    font-size: 17px;
  }

  .designer-card-lines {
    gap: 5px;
    margin-top: 10px;
  }

  .designer-card-lines div {
    grid-template-columns: 58px 1fr;
  }

  .designer-card-metrics {
    margin-top: 10px;
  }

  .designer-work-grid {
    column-count: 2;
  }

  .designer-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .designer-card {
    min-height: auto;
    padding: 18px;
  }

  .designer-profile {
    grid-template-columns: 1fr;
  }

  .designer-profile-photo {
    max-width: 220px;
  }

  .designer-stat {
    min-height: 118px;
    padding: 16px;
  }

  .designer-avatar {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    font-size: 26px;
  }

  .project-card {
    margin-bottom: 12px;
    border-radius: 24px;
  }

  .card-overlay {
    display: none;
  }

  .card-overlay h2 {
    font-size: 13px;
  }

  .card-overlay p {
    font-size: 10px;
  }

  .form-grid,
  .project-row,
  .project-edit-form,
  .bulk-edit-form {
    grid-template-columns: 1fr;
  }

  .bulk-edit-form label {
    white-space: normal;
  }

  .project-dialog {
    width: 100vw;
    height: 100vh;
    max-width: none;
    max-height: none;
    border-radius: 0;
  }

  .project-shell {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    background: var(--surface);
  }

  .project-viewer {
    flex: 0 0 auto;
    min-height: 58vh;
    max-height: 68vh;
  }

  .project-info {
    flex: 0 0 auto;
    padding: 16px 14px 18px;
    border-bottom: 0;
    border-top: 1px solid var(--line);
  }

  .project-info h2 {
    font-size: 17px;
  }

  .project-meta-head {
    gap: 10px;
    margin-bottom: 4px;
  }

  .project-meta-main p {
    margin-top: 5px;
    font-size: 12px;
    line-height: 1.35;
  }

  .project-count {
    font-size: 12px;
  }

  .project-meta-side .eyebrow {
    padding: 3px 8px;
    font-size: 10px;
  }

  .comment-panel {
    gap: 7px;
    margin-top: 8px;
    padding-top: 8px;
  }

  .comment-form {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding: 6px 7px 6px 12px;
    border-radius: 999px;
  }

  .comment-form textarea {
    min-height: 30px;
    max-height: 30px;
    padding: 6px 0 0;
    resize: none;
    overflow: hidden;
  }

  .comment-toolbar {
    grid-template-columns: auto auto auto;
    gap: 4px;
  }

  .comment-toolbar span {
    display: none;
  }

  .comment-toolbar .emoji-button {
    width: 28px;
    height: 28px;
    font-size: 24px;
  }

  .comment-cancel,
  .comment-submit {
    min-width: 48px;
    width: 48px;
    height: 28px;
    padding: 0;
    font-size: 11px;
    line-height: 1;
    white-space: nowrap;
  }

  .comment-list {
    max-height: 150px;
  }

  .media-stage {
    padding: 48px 10px 10px;
  }

  .viewer-controls {
    left: 10px;
    right: 10px;
  }

  .control-button {
    width: 30px;
    height: 30px;
    color: rgba(72, 80, 94, 0.62);
    background: rgba(255, 255, 255, 0.46);
    font-size: 21px;
    box-shadow: 0 8px 20px rgba(30, 42, 68, 0.1);
  }

  .thumb-strip {
    margin: 0 10px 10px;
  }
}

@media (max-width: 380px) {
  .designer-directory {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1180px) {
  .project-file-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .project-file-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

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

@media (max-width: 380px) {
  .project-file-grid {
    grid-template-columns: 1fr;
  }
}
