/* v355: navigation, keyboard and responsive interaction safeguards. */
.skip-link{position:fixed;z-index:9999;left:14px;top:-60px;border-radius:10px;background:#007f50;color:#fff;padding:10px 14px;font-weight:800;transition:top .18s ease}.skip-link:focus{top:14px}.topbar{isolation:isolate}.main-nav{min-width:0}.main-nav button{min-height:40px}.topbar button,.topbar a{touch-action:manipulation}.toast-root{max-width:min(380px,calc(100vw - 24px))}.toast{overflow-wrap:anywhere}.modal,.message-modal,.lightbox,.th349-modal{overscroll-behavior:contain}.modal[hidden],.message-modal[hidden],.lightbox[hidden]{pointer-events:none}main[aria-busy="true"]{cursor:progress}.treehole-page,.library-page,.user-page,.search-page{scroll-margin-top:92px}.gallery-grid,.library-grid,.th349-list{contain:layout style}.profile-menu,.card-menu{max-width:min(360px,calc(100vw - 24px))}.profile-menu button,.card-menu button{min-height:40px}.all-work-card,.work-card,.feature-card,.th349-card{break-inside:avoid}@media(max-width:760px){.topbar{gap:8px;padding-inline:10px}.brand-name{font-size:18px}.main-nav{overflow-x:auto;scrollbar-width:none}.main-nav::-webkit-scrollbar{display:none}.main-nav button{flex:0 0 auto;padding-inline:11px}.search-box{min-width:0}.message-button{min-width:42px}.profile-menu{right:8px}.library-page,.user-page,.search-page{width:calc(100% - 20px)}.th349-feed header{align-items:flex-start;flex-direction:column}.th349-feed nav{margin-top:16px}.th349-compose textarea{min-height:120px}}@media(prefers-reduced-motion:reduce){.skip-link{transition:none}.topbar *, .modal *, .message-modal *, .lightbox *{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

/* v354: global overflow, focus and motion safeguards. */
html{scroll-behavior:smooth}body{overflow-x:hidden}.th349-card h2,.th349-preview,.th349-tag,.th349-post p,.th349-reply-body p,.work-card h2,.all-work-card h2{overflow-wrap:anywhere}.th349-list,.library-grid,.gallery-grid{content-visibility:auto}.th349-modal,.modal,.message-modal,.lightbox{overscroll-behavior:contain}.th349-compose,.th349-dialog,.modal-content{max-height:calc(100dvh - 112px);overflow:auto}.th349-person:focus-visible,.th349-card-main:focus-visible,.message-item:focus-visible{outline:3px solid rgba(0,150,94,.35);outline-offset:2px}.th349-post>img,.th349-reply img,.work-card img,.all-work-card img{max-inline-size:100%;height:auto}@media(max-width:720px){html{scroll-padding-top:82px}.th349-data{max-width:48%;flex-wrap:wrap;justify-content:flex-end}.th349-card-user{max-width:58%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.th349-card,.th349-card-main,.th349-modal,.toast{transition:none!important;animation:none!important}}

:root {
  --paper: #f7f5f0;
  --ink: #22211f;
  --muted: #6d6861;
  --line: #e4ded5;
  --surface: #ffffff;
  --accent: #0d7040;
  --accent-dark: #095830;
  --accent-glow: rgba(13, 112, 64, 0.22);
  --forest: #0d5c37;
  --teal: #16804a;
  --gold: #d99b35;
  --shadow: 0 18px 45px rgba(33, 28, 20, 0.12);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  background: var(--paper);
  color: #111 !important;
  font-family: Inter, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
}

/* v364: pictures shell has no pre-navigation placeholder or skip-label residue. */
body:has(.topbar) > .skip-link,
body:has(.topbar) > #loadingBar { display: none !important; }
body:has(.topbar) { padding-top: 0 !important; }
.topbar { margin-top: 0 !important; }

body::before {
  position: fixed;
  inset: -30% -20% auto;
  z-index: -1;
  height: 520px;
  content: "";
  background: radial-gradient(circle at 20% 40%, rgba(13,112,64,.14), transparent 34%), radial-gradient(circle at 70% 20%, rgba(217,155,53,.10), transparent 30%);
  filter: blur(28px);
  animation: colorDrift 18s ease-in-out infinite alternate;
  pointer-events: none;
}

.loading-bar {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 80;
  width: 36%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--gold), var(--teal));
  animation: loadingSweep 900ms ease-in-out infinite alternate;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  line-height: 1.1;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto auto minmax(180px, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 14px clamp(16px, 4vw, 42px);
  background: rgba(247, 245, 240, 0.9);
  border-bottom: 1px solid rgba(228, 222, 213, 0.82);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
}
.brand-mark svg {
  width: 100%;
  height: 100%;
  display: block;
}

.brand-name {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link,
.profile-menu button,
.clear-button {
  border: 0;
  color: var(--muted);
  background: transparent;
}

.nav-link {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  font-weight: 700;
  white-space: nowrap;
}

.nav-link.active,
.nav-link:hover {
  color: #fff;
  background: var(--ink);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  height: 44px;
  padding: 0 16px;
  background: #ede8df;
  border: 1px solid transparent;
  border-radius: 999px;
}

.search-box:focus-within {
  border-color: var(--gold);
  background: #fff;
}

.search-icon {
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
}

.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
}

.profile {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}

.login-button {
  min-height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--forest);
  font-weight: 800;
  white-space: nowrap;
}

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

.avatar-button {
  display: block;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  overflow: hidden;
  background: #ddd;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

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

.profile-menu {
  position: absolute;
  top: 56px;
  right: 0;
  width: 220px;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: 160ms ease;
}

.profile-menu.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.profile-menu button {
  width: 100%;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 6px;
  text-align: left;
}

.profile-menu p {
  margin: 4px 8px 8px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  word-break: break-word;
}

.profile-menu button:hover {
  color: var(--ink);
  background: #f3eee6;
}

main {
  width: min(1480px, 100%);
  margin: 0 auto;
  padding: 24px clamp(14px, 3vw, 36px) 56px;
}

.hero-feature {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: clamp(430px, 64vh, 680px);
  margin-bottom: 18px;
  overflow: hidden;
  border-radius: 12px;
  background: #12100e;
  color: #fff;
  isolation: isolate;
  align-items: end;
}

.hero-feature::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: linear-gradient(105deg, rgba(8,8,8,0.92) 0%, rgba(8,8,8,0.65) 42%, rgba(8,8,8,0.12) 72%, rgba(8,8,8,0.02) 100%);
}

.hero-feature img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transition: transform 5s ease;
}

.hero-feature:hover img {
  transform: scale(1.04);
}

.feature-duo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  margin: 0 0 26px;
}

.feature-panel {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(228, 222, 213, 0.9);
  border-radius: 10px;
  background: rgba(255,255,255,0.72);
  box-shadow: 0 12px 32px rgba(35, 30, 22, 0.07);
}

.section-heading.compact {
  margin-bottom: 12px;
  align-items: start;
}

.section-heading.compact h2 {
  font-size: clamp(20px, 2vw, 28px);
}

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

.featured-card {
  position: relative;
  min-height: 176px;
  overflow: hidden;
  border-radius: 8px;
  background: #e6e0d7;
  cursor: pointer;
}

.featured-card img {
  width: 100%;
  height: 100%;
  min-height: 176px;
  object-fit: cover;
  transition: transform 320ms cubic-bezier(0.2,0,0,1);
}

.featured-card:hover img {
  transform: scale(1.06);
}

.featured-card-overlay {
  position: absolute;
  inset: auto 0 0;
  display: grid;
  gap: 3px;
  padding: 34px 10px 10px;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.68));
}

.featured-card-overlay strong,
.featured-card-overlay span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.featured-card-overlay span {
  font-size: 11px;
  opacity: .82;
}

.hero-copy {
  padding: clamp(28px, 6vw, 72px) clamp(20px, 4vw, 48px);
  grid-column: 1;
}

.kicker {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

h1 {
  max-width: 640px;
  margin: 0;
  font-size: clamp(34px, 5vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.5px;
}

.hero-copy p:not(.kicker) {
  max-width: 520px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 16px;
  line-height: 1.78;
}

.upload-cta {
  min-height: 44px;
  margin-top: 22px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--accent);
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 12px 28px rgba(13, 112, 64, 0.22);
}

.upload-cta:hover {
  background: var(--accent-dark);
}

.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
  margin-bottom: 16px;
  color: var(--muted);
}

.status-row p {
  margin: 0;
}

.clear-button {
  font-weight: 800;
}

.gallery {
  column-count: 5;
  column-gap: 16px;
  min-height: 280px;
}

.pin-card {
  display: inline-block;
  width: 100%;
  margin: 0 0 16px;
  break-inside: avoid;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(228, 222, 213, 0.9);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(35, 30, 22, 0.08);
  transform: translateZ(0);
  transition: transform 180ms cubic-bezier(0.2, 0, 0, 1), box-shadow 220ms ease, border-color 180ms ease;
}

.pin-card:hover {
  transform: translateY(-4px);
  border-color: rgba(13, 112, 64, 0.24);
  box-shadow: var(--shadow);
}

.image-wrap {
  position: relative;
}

.pin-hover {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  display: grid;
  gap: 3px;
  padding: 10px;
  border-radius: 8px;
  color: #fff;
  background: rgba(0,0,0,.58);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: 180ms ease;
}

.image-wrap:hover .pin-hover {
  opacity: 1;
  transform: translateY(0);
}

.pin-hover span {
  font-size: 12px;
  opacity: .86;
}

.image-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #ddd;
  overflow: hidden;
}

.image-button img {
  display: block;
  width: 100%;
  min-height: 180px;
  object-fit: cover;
  background: #ece7df;
}

.card-menu-button {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  font-size: 24px;
  line-height: 1;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
}

.card-menu {
  position: absolute;
  top: 52px;
  right: 10px;
  display: grid;
  width: 138px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: 160ms ease;
}

.card-menu.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.card-menu button {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  color: var(--ink);
  background: transparent;
  text-align: left;
}

.card-menu button:hover,
.card-menu button.active {
  color: #fff;
  background: var(--forest);
}

.card-menu .danger-menu-action:hover {
  background: #9f2f2f;
}

.card-menu span {
  width: 18px;
  text-align: center;
}

.card-details {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 12px 14px;
}

.card-details h2 {
  margin: 0 0 4px;
  font-size: 15px;
  line-height: 1.28;
}

.card-details p,
.card-meta {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.favorite-button {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  color: var(--accent);
  background: #e8f5ed;
  font-size: 20px;
  line-height: 1;
}

.favorite-button.saved {
  color: #fff;
  background: var(--accent);
}

.comment-box {
  display: grid;
  gap: 8px;
  padding: 0 12px 12px;
}

.comment-box[hidden] {
  display: none;
}

.comment-box span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
}

.comment-box textarea {
  width: 100%;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  outline: 0;
}

.comment-box textarea:focus {
  border-color: var(--teal);
}

.comment-box button {
  justify-self: end;
  min-height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--teal);
  font-weight: 800;
}

.comments-list {
  display: grid;
  gap: 8px;
  padding: 0 12px 12px;
}

.comment-item {
  gap: 10px;
  padding: 14px;
  margin-bottom: 10px;
}

.detail-comments .comment-item {
  padding: 12px;
  margin-bottom: 10px;
}

.comment-body {
  display: block;
  min-width: 0;
}

.comment-body span {
  display: block;
  margin-top: 3px;
}

.comment-body p {
  margin-top: 8px;
}

.comment-actions {
  margin-top: 10px;
}

.comment-item {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 9px;
  margin: 0;
  padding: 9px 10px;
  border-radius: 8px;
  color: #3a3631;
  background: #f3eee6;
  font-size: 13px;
  line-height: 1.5;
}

.comment-item img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
}

.comment-body strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
}

.comment-body span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.comment-body p {
  margin: 4px 0 0;
}

.empty-state {
  padding: 74px 20px;
  text-align: center;
}

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

.empty-state p {
  margin: 0 0 22px;
  color: var(--muted);
}

.category-zone {
  margin-top: clamp(34px, 6vw, 76px);
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 46px);
  letter-spacing: 0;
}

.category-sections {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.compact-category {
  min-height: 150px;
  padding: 0;
  overflow: hidden;
  border-radius: 14px;
  background: rgba(255,255,255,.56);
  backdrop-filter: blur(18px);
}

.compact-category-main {
  position: relative;
  display: grid;
  align-content: end;
  width: 100%;
  height: 100%;
  min-height: 150px;
  overflow: hidden;
  border: 0;
  padding: 14px;
  color: #fff;
  text-align: left;
  background: linear-gradient(135deg, rgba(13,112,64,.9), rgba(9,88,48,.72));
}

.compact-category-main img,
.compact-category-main > span {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .58;
  transform: scale(1.03);
  transition: transform .25s ease, opacity .25s ease;
}

.compact-category-main::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.58));
}

.compact-category-main strong,
.compact-category-main em {
  position: relative;
  z-index: 1;
}

.compact-category-main strong {
  font-size: 20px;
}

.compact-category-main em {
  margin-top: 4px;
  font-style: normal;
  opacity: .82;
}

.compact-category:hover img {
  opacity: .74;
  transform: scale(1.08);
}

.category-view-panel {
  width: min(980px, 100%);
  max-height: min(760px, calc(100vh - 36px));
  overflow: auto;
  backdrop-filter: blur(18px);
  background: rgba(255,255,255,.9);
}

.category-view-grid {
  column-count: 3;
  column-gap: 14px;
}

.category-block {
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  gap: 12px;
  min-width: 0;
  height: 100%;
  padding: 16px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(35, 30, 22, 0.07);
  transition: transform 180ms cubic-bezier(0.2, 0, 0, 1), box-shadow 220ms ease, border-color 180ms ease;
}

.category-block:hover {
  transform: translateY(-3px);
  border-color: rgba(13, 112, 64, 0.22);
  box-shadow: 0 16px 36px rgba(35, 30, 22, 0.1);
}

.category-block.active {
  border-color: rgba(13, 112, 64, 0.55);
  box-shadow: 0 18px 42px rgba(13, 112, 64, 0.14);
}

.category-block header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.category-block h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.24;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.category-block p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  min-height: 38px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.category-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.category-header-right span {
  display: inline-grid;
  min-height: 28px;
  place-items: center;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--accent-dark);
  background: #e8f5ed;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.subcat-menu {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  min-height: 30px;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.subcat-menu::-webkit-scrollbar {
  display: none;
}

.subcat-menu button {
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: #fff;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.subcat-menu button:hover {
  color: #fff;
  background: var(--forest);
  border-color: var(--forest);
}

.category-edit-btn {
  min-height: 28px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  color: var(--forest);
  background: #edf7f1;
  font-size: 12px;
  font-weight: 800;
}

.category-edit-btn:hover {
  color: #fff;
  background: var(--forest);
}

.category-cover {
  position: relative;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 4px;
  width: 100%;
  aspect-ratio: 1.42 / 1;
  overflow: hidden;
  border: 0;
  border-radius: 10px;
  padding: 0;
  background: #e6e0d7;
}

.category-cover::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.22));
  opacity: 0;
  transition: opacity 180ms ease;
}

.category-block:hover .category-cover::after {
  opacity: 1;
}

.category-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 320ms cubic-bezier(0.2, 0, 0, 1);
}

.category-block:hover .category-cover img {
  transform: scale(1.04);
}

.cover-img-0 {
  grid-row: 1 / 3;
}

.cover-img-3 {
  display: none;
}

.category-empty-cover {
  grid-column: 1 / -1;
  align-self: center;
  justify-self: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.category-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  overflow: hidden;
  padding: 0;
}

.category-tile {
  min-width: 0;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  padding: 0;
  background: #fff;
  box-shadow: 0 6px 18px rgba(35, 30, 22, 0.08);
  text-align: left;
}

.category-tile img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.category-tile span {
  display: block;
  min-height: 38px;
  padding: 7px 8px;
  color: var(--ink);
  background: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  overflow: hidden;
}

.category-strip .category-tile {
  display: grid;
  grid-template-rows: 96px 38px;
}

.category-strip .category-tile img {
  width: 100%;
  height: 96px;
  aspect-ratio: auto;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  gap: 24px;
  align-items: center;
  padding: clamp(18px, 4vw, 54px);
  color: var(--ink);
  background: rgba(16, 14, 12, 0.88);
}

.lightbox[hidden] {
  display: none;
}

.lightbox-image-panel {
  display: grid;
  min-height: 68vh;
  place-items: center;
}

.lightbox img {
  width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox-details {
  max-height: 86vh;
  overflow: auto;
  padding: 24px;
  background: var(--surface);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.lightbox h2 {
  margin: 0 0 8px;
  font-size: clamp(26px, 3vw, 40px);
  letter-spacing: 0;
}

.lightbox-tags {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.lightbox-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 12px;
}

.lightbox-actions button,
.login-submit,
.detail-comments button {
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--accent);
  font-weight: 800;
}

.lightbox-actions button.secondary {
  color: var(--ink);
  background: #eee8de;
}

.original-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  color: var(--forest);
  font-weight: 800;
  text-decoration: none;
}

.owner-tools {
  margin: 14px 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbf8f2;
}

.owner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.owner-tools button,
.owner-tools select {
  min-height: 38px;
  border-radius: 8px;
}

.owner-tools button {
  border: 0;
  padding: 0 13px;
  color: #fff;
  background: var(--forest);
  font-weight: 800;
}

.owner-tools .danger-button {
  background: var(--accent);
}

#editPinForm {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

#editPinForm[hidden] {
  display: none;
}

#editPinForm span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

#editPinForm input,
#editPinForm select {
  width: 100%;
  border: 1px solid var(--line);
  padding: 10px 11px;
  background: #fff;
}

.original-link:hover {
  text-decoration: underline;
}

.detail-comments {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.detail-comments h3 {
  margin: 0 0 12px;
}

.detail-comments form {
  display: grid;
  gap: 10px;
}

.detail-comments textarea,
.login-panel input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  outline: 0;
}

.detail-comments textarea:focus,
.login-panel input:focus {
  border-color: var(--teal);
}

.detail-comments button {
  justify-self: start;
  background: var(--teal);
}

#detailCommentsList {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  font-size: 30px;
  line-height: 1;
}

.login-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(16, 14, 12, 0.72);
}

.login-modal[hidden] {
  display: none;
}

.login-panel {
  position: relative;
  display: grid;
  width: min(420px, 100%);
  gap: 14px;
  padding: 28px;
  background: var(--surface);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.login-panel h2 {
  margin: 0;
  font-size: 30px;
}

.login-panel label span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.profile-preview {
  display: flex;
  align-items: center;
  gap: 14px;
}

.profile-preview img {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.14);
}

.avatar-picker {
  display: inline-grid;
  gap: 8px;
}

.avatar-picker span {
  margin: 0;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  color: #fff;
  background: var(--teal);
}

.avatar-picker input {
  width: 1px;
  height: 1px;
  opacity: 0;
}



/* === Animations === */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideInRight { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: translateX(0); } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.88); } to { opacity: 1; transform: scale(1); } }
@keyframes cardAppear { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes loadingSweep { from { transform: translateX(-20%); } to { transform: translateX(220%); } }
@keyframes colorDrift { from { transform: translate3d(-2%,0,0) scale(1); } to { transform: translate3d(3%,4%,0) scale(1.04); } }

html { scroll-behavior: smooth; }

/* === Button hover effects === */
button { transition: transform 120ms ease-out cubic-bezier(0.2,0,0,1), background-color 180ms ease, box-shadow 180ms ease, opacity 180ms ease; }
.login-button:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 8px 22px rgba(13,92,55,0.28); }
.login-button:active { transform: translateY(-2px) scale(0.97); }
.avatar-button { transition: transform 150ms cubic-bezier(0.2,0,0,1), box-shadow 200ms ease, border-color 200ms ease; }
.avatar-button:hover { transform: scale(1.18); box-shadow: 0 8px 26px rgba(0,0,0,0.2); border-color: var(--accent); }
.avatar-button img { transition: transform 200ms cubic-bezier(0.2,0,0,1); }
.avatar-button:hover img { transform: scale(1.08); }
.nav-link { transition: color 180ms ease, background-color 180ms ease, transform 120ms ease; }
.nav-link:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.12); }
.nav-link:active { transform: translateY(0) scale(0.97); }
.upload-cta { transition: background-color 200ms ease, transform 140ms cubic-bezier(0.2,0,0,1), box-shadow 200ms ease; }
.upload-cta:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 16px 34px var(--accent-glow); }
.upload-cta:active { transform: translateY(-2px) scale(0.97); }
.favorite-button { transition: transform 160ms cubic-bezier(0.2,0,0,1), background-color 180ms ease, color 180ms ease, box-shadow 180ms ease; }
.favorite-button:hover { transform: scale(1.22); box-shadow: 0 4px 14px var(--accent-glow); }
.pin-card { transition: transform 180ms cubic-bezier(0.2,0,0,1), box-shadow 240ms ease, border-color 180ms ease; }
.pin-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pin-card:active { transform: scale(0.985); }
.image-button img { transition: transform 280ms cubic-bezier(0.2,0,0,1); }
.pin-card:hover .image-button img { transform: scale(1.06); }
.card-menu-button { transition: transform 180ms cubic-bezier(0.2,0,0,1), background-color 180ms ease; }
.card-menu-button:hover { transform: scale(1.18); background: #fff; }
.card-menu { transition: opacity 180ms ease, transform 200ms cubic-bezier(0.2,0,0,1); transform-origin: top right; }
.category-tile { transition: transform 150ms cubic-bezier(0.2,0,0,1), box-shadow 200ms ease; }
.category-tile:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(0,0,0,0.11); }
.category-tile img { transition: transform 250ms cubic-bezier(0.2,0,0,1); }
.category-tile:hover img { transform: scale(1.06); }
.profile-menu button { transition: background-color 160ms ease, color 160ms ease, transform 120ms ease; }
.profile-menu button:hover { transform: translateX(3px); }
.modal-close { transition: background-color 160ms ease, transform 160ms cubic-bezier(0.2,0,0,1); }
.modal-close:hover { transform: scale(1.22); }
.login-modal { animation: fadeIn 280ms ease; }
.login-panel { animation: scaleIn 300ms ease; }
.lightbox-details { animation: slideInRight 320ms ease; }
main { animation: fadeInUp 400ms ease; }

/* === Loading state === */
.login-submit { position: relative; min-width: 90px; transition: background-color 180ms ease, transform 140ms ease, box-shadow 180ms ease; }
.login-submit:hover:not(.loading) { transform: translateY(-3px) scale(1.02); box-shadow: 0 8px 24px rgba(13,92,55,0.22); }
.login-submit:active:not(.loading) { transform: translateY(-2px) scale(0.97); }
.login-submit.loading { pointer-events: none; opacity: 0.7; color: transparent; }
.login-submit.loading::after { content: "处理中…"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-weight: 800; }
.login-submit.loading::before { content: ""; position: absolute; right: 10px; top: 50%; width: 14px; height: 14px; border: 2px solid rgba(255,255,255,0.3); border-top-color: #fff; border-radius: 50%; animation: spin 600ms linear infinite; transform: translateY(-50%); }

/* === Category create button === */
.create-category-button { min-height: 40px; padding: 0 18px; border: 1.5px solid var(--line); border-radius: 999px; color: var(--ink); background: var(--surface); font-weight: 700; font-size: 14px; white-space: nowrap; transition: all 200ms ease; }
.create-category-button:hover { border-color: var(--accent); color: var(--accent); background: #f0f7f2; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(13,112,64,0.08); }
.create-category-button[hidden] { display: none; }

/* === Category creator info === */
.category-creator { display: inline-block; margin-left: 10px; color: var(--muted); font-size: 12px; font-weight: 500; vertical-align: middle; }
.category-delete-btn { width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; color: var(--muted); background: transparent; font-size: 16px; line-height: 1; transition: all 140ms ease; }
.category-delete-btn:hover { color: #fff; background: var(--accent); }

/* === Comment section === */
.comment-actions { display: flex; gap: 6px; margin-top: 6px; }
.comment-reply-btn, .comment-delete-btn-mini { padding: 2px 8px; border: 0; border-radius: 6px; font-size: 11px; font-weight: 600; transition: all 140ms ease; }
.comment-reply-btn { color: var(--teal); background: rgba(22,128,74,0.08); }
.comment-reply-btn:hover { background: var(--teal); color: #fff; }
.comment-delete-btn-mini { color: var(--accent); background: rgba(13,112,64,0.08); }
.comment-delete-btn-mini:hover { background: var(--accent); color: #fff; }
.reply-box { margin-top: 8px; display: grid; gap: 6px; }
.reply-box[hidden] { display: none; }
.reply-box textarea { width: 100%; border: 1px solid var(--line); border-radius: 6px; padding: 6px 8px; outline: 0; font-size: 13px; resize: vertical; }
.reply-box textarea:focus { border-color: var(--teal); }
.reply-box button { justify-self: end; min-height: 26px; padding: 0 10px; border: 0; border-radius: 999px; color: #fff; background: var(--teal); font-size: 11px; font-weight: 700; }
.comment-reply { margin-left: 24px; padding-left: 10px; border-left: 2px solid var(--line); }
.reply-to-label { display: inline-block; margin: 2px 0 4px; color: var(--teal); font-size: 12px; font-weight: 600; }

/* === Creator credit === */
.creator-credit { margin: 6px 0 0; color: #9a958e; font-size: 12px; font-weight: 600; letter-spacing: 0.5px; text-align: center; }

.site-footer {
  padding: 32px 18px 42px;
  color: var(--muted);
  text-align: center;
  border-top: 1px solid var(--line);
  font-weight: 800;
}

.site-footer strong {
  display: inline-block;
  margin-top: 8px;
  color: #b7b7b7;
  letter-spacing: .03em;
}

.user-page {
  display: block;
  min-height: calc(100vh - 88px);
}

.user-page[hidden] {
  display: none;
}

.user-shell {
  width: min(1180px, 100%);
  margin: -36px auto 0;
  padding: clamp(18px, 4vw, 46px);
  border: 1px solid rgba(228,222,213,.9);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.72));
  box-shadow: 0 18px 46px rgba(35,30,22,.09);
}

.user-back {
  min-height: 36px;
  margin-bottom: 18px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--forest);
  background: #fff;
  font-weight: 800;
}

.user-hero {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 0 26px;
  border-bottom: 1px solid var(--line);
}

.user-hero img {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  object-fit: cover;
}

.user-hero h2 {
  margin: 0 0 5px;
  font-size: clamp(28px,4vw,46px);
}

.user-stats,
.user-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.user-tabs {
  margin: 18px 0;
}

.user-stats span,
.user-tabs button {
  min-height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: #edf7f1;
  color: var(--forest);
  font-weight: 800;
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-left: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.mini-role {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  margin-left: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.author-link,
.comment-name,
.menu-user-card,
.comment-user-pic {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.author-link {
  padding: 0;
  font-weight: 800;
}

.menu-user-card {
  width: 100%;
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  padding: 8px;
  border-radius: 14px;
  background: rgba(13,112,64,0.08);
  text-align: left;
}

.menu-user-card img,
.comment-user-pic img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
}

.comment-user-pic {
  padding: 0;
  align-self: flex-start;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(13,112,64,0.08);
}

.comment-user-pic span,
.comment-user-pic .mini-role {
  display: none;
}

.comment-name {
  padding: 0;
  font-weight: 900;
  background: transparent !important;
  color: var(--ink);
  border-radius: 0;
}

.comment-body > .mini-role {
  margin-left: 6px;
  padding: 0;
  min-height: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.detail-comments .comment-name,
.comments-list .comment-name {
  color: #000 !important;
}

.privacy-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.privacy-row input {
  width: 18px;
  height: 18px;
}

.privacy-row em {
  font-style: normal;
  color: var(--muted);
}

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

.user-tile {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  border: 0;
  border-radius: 8px;
  padding: 0;
  background: #e6e0d7;
}

.user-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-tile span {
  position: absolute;
  inset: auto 0 0;
  padding: 28px 8px 8px;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.65));
  font-size: 12px;
  font-weight: 800;
}

.login-submit {
  margin-top: 4px;
  background: var(--forest);
}

.switch-auth {
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  color: var(--forest);
  background: #edf7f1;
  font-weight: 800;
}

.switch-auth:hover {
  background: #dff0e6;
}

.upload-panel {
  width: min(720px, 100%);
  max-height: min(760px, calc(100vh - 36px));
  overflow: auto;
}

.upload-hint {
  margin: -4px 0 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.upload-preview-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(96px, 128px);
  gap: 10px;
  overflow-x: auto;
  padding: 2px 2px 8px;
}

.upload-preview-strip img,
.upload-file-item > img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 8px;
  background: #ede8df;
  border: 1px solid var(--line);
}

.upload-file-list {
  display: grid;
  gap: 12px;
}

.upload-file-item {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbf8f2;
}

.upload-file-fields {
  display: grid;
  gap: 8px;
}

.upload-file-fields input,
.upload-file-fields select {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  outline: 0;
}

.upload-file-fields input:focus,
.upload-file-fields select:focus {
  border-color: var(--teal);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #f2eee8;
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
}

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

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

/* v117 Pinterest-style Cliffs Board redesign */
.user-board-grid {
  align-items: start !important;
  grid-template-columns: repeat(auto-fill, minmax(236px, 1fr)) !important;
  gap: 22px !important;
}
.user-board-card {
  display: grid !important;
  gap: 10px !important;
  min-height: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  border-radius: 18px !important;
  background: transparent !important;
  color: #111 !important;
  text-align: left !important;
  animation: boardCardIn .42s cubic-bezier(.2,.8,.2,1) both;
}
.user-board-card::after,
.user-board-card > img {
  display: none !important;
}
.board-cover {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 3px;
  overflow: hidden;
  aspect-ratio: 1 / .72;
  border-radius: 18px;
  background: #e8eee9;
  box-shadow: 0 16px 40px rgba(20,40,28,.12);
  transition: transform .28s ease, box-shadow .28s ease;
}
.board-cover.empty {
  background: linear-gradient(135deg, #eef7f1, #dbe7dd);
}
.board-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.board-cover img.main {
  grid-row: 1 / 3;
}
.user-board-card:hover .board-cover {
  transform: translateY(-5px);
  box-shadow: 0 24px 54px rgba(20,40,28,.18);
}
.board-card-meta {
  display: grid;
  gap: 4px;
  padding: 0 4px 2px;
}
.board-card-meta span {
  width: fit-content;
  border-radius: 999px;
  padding: 3px 8px;
  background: #f0f7f2;
  color: #0d7040;
  font-size: 12px;
  font-weight: 900;
}
.board-card-meta strong {
  font-size: 20px;
  line-height: 1.15;
}
.board-card-meta em,
.board-card-meta b {
  color: #6b766f;
  font-style: normal;
  font-size: 13px;
}
.board-empty-state {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 220px;
  border: 1px dashed #b9d0c1;
  border-radius: 18px;
  background: #eef7f1;
  color: #6b766f;
}
.board-empty-state strong {
  color: #111;
  font-size: 22px;
}
.board-detail-view {
  display: block !important;
  animation: boardDetailIn .36s ease both;
}
.board-detail-hero {
  display: grid;
  grid-template-columns: minmax(260px, 440px) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 42px);
  align-items: center;
  margin-bottom: 24px;
}
.board-detail-hero h3 {
  margin: 8px 0;
  font-size: clamp(38px, 7vw, 82px);
  line-height: .92;
}
.board-detail-hero p {
  margin: 0 0 12px;
  color: #6b766f;
}
.board-detail-hero span {
  display: block;
  margin-bottom: 14px;
  font-weight: 900;
}
.board-back,
.board-delete {
  border: 0;
  border-radius: 999px;
  min-height: 36px;
  padding: 0 14px;
  background: #111;
  color: #fff;
  font-weight: 900;
}
.board-pin-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)) !important;
  gap: 14px !important;
}
.board-pin-card {
  position: relative;
  break-inside: avoid;
  animation: boardPinIn .34s ease both;
}
.board-pin-image {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  border: 0;
  border-radius: 16px;
  padding: 0;
  background: #e8eee9;
  box-shadow: 0 12px 30px rgba(20,40,28,.1);
}
.board-pin-image img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform .28s ease;
}
.board-pin-image span {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  text-shadow: 0 2px 12px rgba(0,0,0,.55);
}
.board-pin-card:hover img {
  transform: scale(1.04);
}
.board-pin-remove {
  position: absolute;
  right: 8px;
  top: 8px;
  border: 0;
  border-radius: 999px;
  min-height: 30px;
  padding: 0 10px;
  background: #a32626;
  color: #fff;
  font-weight: 900;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .18s ease, transform .18s ease;
}
.board-pin-card:hover .board-pin-remove {
  opacity: 1;
  transform: translateY(0);
}
.board-add-strip {
  border-block: 1px solid #e2ece5;
  margin: 0 0 20px !important;
  padding: 12px 0 !important;
}
.board-add-strip button {
  background: #111 !important;
  box-shadow: 0 8px 20px rgba(0,0,0,.12);
}
@keyframes boardCardIn {
  from { opacity: 0; transform: translateY(18px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes boardDetailIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes boardPinIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 760px) {
  .board-detail-hero {
    grid-template-columns: 1fr;
  }
  .user-board-grid,
  .board-pin-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }
  .board-card-meta strong {
    font-size: 17px;
  }
  .board-pin-remove {
    opacity: 1;
    transform: none;
  }
}

.comments-list .comment-body > .mini-role,
.detail-comments .comment-body > .mini-role {
  display: inline-flex !important;
  align-items: center;
  min-height: 20px;
  margin: 0 0 0 8px !important;
  padding: 2px 9px !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #e2433d, #b91f28) !important;
  color: #fff !important;
  font-size: 11px !important;
  line-height: 1 !important;
  font-weight: 900 !important;
  box-shadow: 0 8px 18px rgba(185,31,40,.22);
  vertical-align: middle;
}

.comments-list .comment-body > span:not(.mini-role),
.detail-comments .comment-body > span:not(.mini-role) {
  display: block;
}

.category-sections .category-block,
.category-sections .compact-category {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

.category-sections .category-block:hover,
.category-sections .compact-category:hover {
  box-shadow: none !important;
}

.category-sections .compact-category-main {
  border-radius: 14px;
  box-shadow: 0 16px 36px rgba(8,34,21,.10);
  align-content: end !important;
  justify-items: start !important;
  padding-bottom: 18px !important;
  text-align: left !important;
  gap: 8px;
}

.category-sections .compact-category-main strong,
.category-sections .compact-category-main em,
.category-sections .compact-category-main .category-count {
  max-width: 92% !important;
  margin-left: 0 !important;
  margin-right: auto !important;
  text-align: left !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.category-sections .compact-category-main .category-count {
  display: none !important;
}

@media (max-width: 920px) {
  .topbar {
    grid-template-columns: auto 1fr auto;
  }

  .main-nav {
    order: 4;
    grid-column: 1 / -1;
    overflow-x: auto;
  }

  .gallery {
    column-count: 3;
  }

  .feature-duo {
    grid-template-columns: 1fr;
  }

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

  .category-sections {
    grid-template-columns: 1fr;
  }

  .category-view-grid {
    column-count: 2;
  }

  .lightbox {
    grid-template-columns: 1fr;
    align-content: center;
    overflow: auto;
  }

  .lightbox-image-panel {
    min-height: 0;
  }

  .lightbox-details {
    max-height: none;
  }
}

@media (max-width: 660px) {
  .topbar {
    gap: 10px;
    padding: 12px 14px;
  }

  .brand-name {
    display: none;
  }

  .search-box {
    grid-column: 1 / -1;
    order: 3;
    height: 42px;
  }

  .main-nav {
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .main-nav::-webkit-scrollbar {
    display: none;
  }

  .login-button {
    padding: 0 12px;
  }

  .hero-feature {
    grid-template-columns: 1fr;
    min-height: 460px;
    overflow: hidden;
  }
  .hero-feature img { object-position: center 20%; }

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

  .user-hero {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .hero-copy {
    padding: 24px;
  }

  .hero-copy h1 {
    font-size: clamp(32px, 10vw, 56px);
  }

  .hero-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .hero-actions .portfolio-button {
    flex: 1 1 160px;
  }

  .gallery {
    column-count: 2;
    column-gap: 12px;
  }

  .pin-card {
    margin-bottom: 12px;
  }

  .category-block {
    padding: 12px;
  }

  .category-cover {
    aspect-ratio: 1.25 / 1;
  }

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

  .category-strip .category-tile {
    grid-template-rows: 118px 38px;
  }

  .category-strip .category-tile img {
    height: 118px;
  }

  .upload-file-item {
    grid-template-columns: 86px minmax(0, 1fr);
  }

  .upload-preview-strip {
    grid-auto-columns: 96px;
  }

  .library-head {
    gap: 14px;
  }

  .filter-drawer {
    width: 100%;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255,255,255,.78);
  }

  .filter-drawer summary {
    display: flex;
    min-height: 42px;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    color: var(--forest);
    font-weight: 900;
    cursor: pointer;
  }

  .filter-drawer summary::after {
    content: "+";
    font-size: 18px;
  }

  .filter-drawer[open] summary::after {
    content: "-";
  }

  .library-filters {
    grid-template-columns: 1fr;
    padding: 10px;
    justify-content: stretch;
  }

  .upload-panel,
  .login-panel {
    width: min(100%, calc(100vw - 20px));
    padding: 22px 16px;
  }

  .card-details {
    padding: 10px;
  }
}

@media (max-width: 430px) {
  main {
    padding: 18px 12px 40px;
  }

  .hero-feature {
    border-radius: 18px;
    min-height: 420px;
  }

  .portfolio-section {
    padding: 58px 0;
  }

  .projects-grid,
  .feature-grid,
  .user-grid {
    grid-template-columns: 1fr;
  }

  .all-works-grid {
    column-count: 1;
    column-gap: 0;
  }

  .all-work-card {
    margin-bottom: 14px;
    border-radius: 14px;
  }

  .all-work-card img {
    min-height: 220px;
  }

  .portfolio-heading {
    gap: 12px;
  }

  .portfolio-button,
  .more-button,
  .create-category-button,
  .login-button {
    width: 100%;
  }

  .profile-menu {
    width: min(260px, calc(100vw - 24px));
    right: -6px;
  }

  .upload-preview-strip {
    grid-auto-columns: 78px;
  }

  .gallery {
    column-count: 1;
  }

  .upload-file-item {
    grid-template-columns: 1fr;
  }
}

.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.hero-cat-badge { min-height: 32px; padding: 0 14px; border: 1px solid rgba(255,255,255,0.3); border-radius: 999px; background: rgba(255,255,255,0.08); color: #fff; font-size: 12px; font-weight: 600; cursor: pointer; transition: all 160ms ease; }
.hero-cat-badge:hover { background: rgba(255,255,255,0.18); border-color: rgba(255,255,255,0.5); }
.hero-cat-badge span { opacity: 0.7; margin-left: 4px; }

/* Portfolio grade home */
:root {
  --paper: #fafafa;
  --ink: #111111;
  --muted: #676767;
  --line: #e9e9e9;
  --surface: #ffffff;
  --accent: #0d7040;
  --accent-dark: #095830;
  --accent-glow: rgba(13, 112, 64, 0.18);
  --forest: #111111;
  --teal: #0d7040;
  --gold: #0d7040;
  --shadow: 0 24px 70px rgba(17, 17, 17, 0.1);
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, "PingFang SC", "Source Han Sans SC", "Microsoft YaHei", Arial, sans-serif;
}

.topbar {
  background: rgba(250, 250, 250, 0.86);
}

.brand-mark svg rect[width="40"] {
  fill: var(--ink);
}

.legacy-section,
.legacy-hidden,
.creator-credit {
  display: none !important;
}

.search-box {
  display: flex;
  background: #f0f2ee;
}

main {
  width: min(1200px, calc(100% - 40px));
  padding: 0 0 96px;
}

.nav-link {
  color: var(--muted);
  text-decoration: none;
}

.nav-link.active,
.nav-link:hover {
  color: var(--ink);
  background: transparent;
}

.hero-feature {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  min-height: clamp(620px, 78vh, 820px);
  margin-top: 0;
  margin-bottom: 0;
  padding: clamp(42px, 7vw, 88px);
  border-radius: 0;
  background: #111;
  color: #fff;
  grid-template-columns: minmax(0, 680px);
  align-items: end;
}

.hero-feature::after {
  display: block;
  background: linear-gradient(90deg, rgba(0,0,0,.72), rgba(0,0,0,.32) 52%, rgba(0,0,0,.08));
}

.hero-feature img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: cover;
  object-position: center;
  box-shadow: none;
}

.hero-copy {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  grid-column: 1;
  padding: 0;
}

.kicker {
  color: var(--accent);
  letter-spacing: 0;
  text-transform: none;
}

h1 {
  max-width: 620px;
  font-size: clamp(58px, 8vw, 118px);
  line-height: .92;
}

.hero-copy p:not(.kicker) {
  max-width: 440px;
  margin-top: 24px;
  color: rgba(255,255,255,.78);
  font-size: 20px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.portfolio-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: inherit;
  background: rgba(255,255,255,.08);
  font-weight: 800;
  text-decoration: none;
  transition: transform .24s ease, box-shadow .24s ease, background-color .24s ease, color .24s ease;
}

.portfolio-button.primary,
.portfolio-button:hover {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.portfolio-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(17,17,17,.14);
}

.portfolio-section {
  padding: 96px 0;
  border-top: 1px solid var(--line);
}

.portfolio-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 32px;
  width: 100%;
}

.portfolio-heading > div {
  text-align: left;
}

.portfolio-heading h2,
.about-section h2,
.contact-section h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(38px, 5vw, 72px);
  line-height: 1;
  letter-spacing: 0;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(clamp(260px, 18vw, 360px), 1fr));
  gap: clamp(18px, 2vw, 28px);
}

.projects-section {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-left: max(24px, calc((100vw - 1440px) / 2));
  padding-right: max(24px, calc((100vw - 1440px) / 2));
}

.project-card {
  display: grid;
  gap: 18px;
  min-width: 0;
  transition: transform .25s ease, box-shadow .25s ease;
}

.project-image {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 0;
  border-radius: 16px;
  padding: 0;
  background: #eee;
}

.project-image::after {
  position: absolute;
  inset: 0;
  content: "";
  background: #000;
  opacity: 0;
  transition: opacity .25s ease;
}

.project-hover {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 12px;
  color: #fff;
  background: rgba(0,0,0,.52);
  opacity: 0;
  transform: translateY(8px);
  transition: .25s ease;
}

.project-image:hover .project-hover {
  opacity: 1;
  transform: translateY(0);
}

.project-hover small {
  font-size: 12px;
  opacity: .86;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .25s ease;
}

.project-like {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  color: #fff;
  background: rgba(13,112,64,.92);
  font-size: 12px;
  font-weight: 900;
  opacity: 0;
  transform: translateY(-6px);
  transition: .22s ease;
}

.project-image:hover .project-like {
  opacity: 1;
  transform: translateY(0);
}

.project-card:hover {
  transform: scale(1.015);
}

.project-card:hover .project-image {
  box-shadow: 0 28px 70px rgba(17,17,17,.16);
}

.project-card:hover .project-image img {
  transform: scale(1.035);
}

.project-card:hover .project-image::after {
  opacity: .16;
}

.project-copy h3 {
  margin: 0 0 7px;
  font-size: 24px;
  line-height: 1.18;
}

.project-copy p,
.about-section p,
.contact-section p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.about-section {
  display: grid;
  gap: 18px;
}

.contact-section {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
}

.all-works-grid {
  column-count: 4;
  column-gap: 18px;
}

.library-page {
  min-height: calc(100vh - 72px);
  padding: 64px 0 96px;
}

.library-page[hidden] {
  display: none;
}

body.library-mode .hero-feature,
body.library-mode .feature-duo,
body.library-mode .portfolio-section,
body.library-mode .category-zone,
body.library-mode .leaderboard-panel,
body.library-mode .status-row,
body.library-mode #gallery,
body.library-mode #emptyState,
body.library-mode #userPage {
  display: none !important;
}

body.library-mode #libraryPage {
  display: block !important;
}

.library-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.library-head h2 {
  margin: 0;
  font-size: clamp(42px, 6vw, 88px);
  line-height: .95;
}

.library-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.filter-drawer {
  min-width: min(620px, 100%);
}

.filter-drawer summary {
  display: none;
}

.library-filters select {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
}

.all-work-card {
  position: relative;
  display: inline-block;
  width: 100%;
  break-inside: avoid;
  margin: 0 0 18px;
  overflow: hidden;
  border: 0;
  border-radius: 14px;
  padding: 0;
  background: #fff;
  box-shadow: 0 12px 34px rgba(17,17,17,.08);
  text-align: left;
  isolation: isolate;
  transition: transform .25s ease, box-shadow .25s ease;
}

.all-work-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 24px 58px rgba(17,17,17,.14);
}

.all-work-card img {
  display: block;
  width: 100%;
  object-fit: cover;
  filter: saturate(.96);
  transition: transform .28s ease, filter .22s ease;
}

.all-work-card span {
  position: absolute;
  inset: auto 10px 34px;
  max-width: calc(100% - 20px);
  overflow: hidden;
  padding: 7px 10px;
  border-radius: 999px;
  color: #fff;
  background: rgba(0,0,0,.44);
  backdrop-filter: blur(10px);
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.all-work-card em {
  position: absolute;
  inset: auto 12px 12px;
  color: rgba(255,255,255,.9);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  opacity: 0;
  text-shadow: 0 1px 8px rgba(0,0,0,.45);
  transform: translateY(4px);
  transition: opacity .2s ease, transform .2s ease;
}

.all-work-card::after {
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 52%;
  content: "";
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.5));
  opacity: 0;
  transition: opacity .22s ease;
}

.all-work-card:hover img {
  filter: saturate(1.05) brightness(.9);
  transform: scale(1.035);
}

.all-work-card:hover em,
.all-work-card:hover::after {
  opacity: 1;
  transform: translateY(0);
}

.focus-motion-section {
  position: relative;
  overflow: hidden;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-left: max(40px, calc((100vw - 1200px) / 2));
  padding-right: max(40px, calc((100vw - 1200px) / 2));
  min-height: 420px;
  display: grid;
  align-content: center;
  background: #f4f7f2;
}

.focus-motion-section > .kicker,
.focus-motion-section > h2,
.focus-motion-section > p {
  position: relative;
  z-index: 2;
}

.focus-motion-track {
  position: absolute;
  inset: 28px -10%;
  z-index: 0;
  display: flex;
  gap: 20px;
  align-items: center;
  opacity: .34;
  filter: blur(10px) saturate(1.18);
  animation: focusFlow 30s linear infinite;
}

.focus-motion-track img {
  width: 260px;
  height: 340px;
  border-radius: 18px;
  object-fit: cover;
}

@keyframes focusFlow {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

#categoriesPortfolio {
  align-items: center;
  padding-top: 88px;
}

.profile {
  justify-self: end;
}

.topbar {
  grid-template-columns: auto auto minmax(220px, 1fr) auto;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
}

@media (max-width: 860px) {
  main {
    width: min(1200px, calc(100% - 28px));
  }

  .hero-feature {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 80px 24px;
    gap: 32px;
  }

  .hero-feature img,
  .hero-copy {
    grid-column: 1;
  }

  .hero-copy {
    padding: 0;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .portfolio-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .all-works-grid {
    column-count: 2;
  }

  .library-head {
    align-items: stretch;
    flex-direction: column;
  }

  .library-filters {
    width: 100%;
  }

  .portfolio-section {
    padding: 84px 0;
  }

  .contact-section {
    display: grid;
  }
}
.leaderboard-panel { margin-bottom: 24px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.lb-heading h3 { margin: 0 0 12px; font-size: 18px; }
.leaderboard-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.lb-item { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 8px; cursor: pointer; transition: background 140ms ease; }
.lb-item:hover { background: #f4f0e9; }
.lb-rank { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 6px; background: var(--forest); color: #fff; font-size: 11px; font-weight: 800; flex-shrink: 0; }
.lb-item:nth-child(1) .lb-rank { background: var(--gold); }
.lb-item:nth-child(2) .lb-rank { background: #b0a090; }
.lb-item:nth-child(3) .lb-rank { background: #c49a6c; }
.lb-item img { width: 40px; height: 40px; border-radius: 6px; object-fit: cover; flex-shrink: 0; }
.lb-info strong { display: block; font-size: 13px; line-height: 1.3; }
.lb-info span { font-size: 11px; color: var(--muted); }

.uf-row{display:flex;align-items:center;gap:10px;}.uf-ai-check{display:inline-flex;align-items:center;gap:4px;font-size:12px;color:var(--muted);cursor:pointer;}.uf-ai-check input{width:auto;margin:0;}

/* Cliffs v34 progressive polish */
:root {
  --paper: #fafafa;
  --ink: #111111;
  --muted: #667067;
  --line: rgba(13, 112, 64, 0.14);
  --surface: rgba(255, 255, 255, 0.88);
  --accent: #0d7040;
  --accent-dark: #084e2c;
  --accent-soft: rgba(13, 112, 64, 0.08);
  --shadow: 0 18px 50px rgba(8, 78, 44, 0.12);
  --radius: 22px;
}

html { scroll-behavior: smooth; }
body {
  background:
    radial-gradient(circle at 18% 0%, rgba(13,112,64,0.08), transparent 28%),
    linear-gradient(180deg, #fbfcfa 0%, #f6f8f5 44%, #fafafa 100%);
  color: var(--ink);
  font-family: Inter, "PingFang SC", "Source Han Sans SC", "Microsoft YaHei", Arial, sans-serif;
}

.topbar {
  left: 14px;
  right: 14px;
  top: 12px;
  width: auto;
  min-height: 58px;
  border: 1px solid rgba(13,112,64,0.12);
  border-radius: 28px;
  background: rgba(250,252,249,0.78);
  box-shadow: 0 12px 34px rgba(15, 47, 30, 0.08);
  backdrop-filter: blur(18px);
}
.brand {
  gap: 11px;
}
.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}
.brand-mark svg {
  display: block;
  filter: none;
}
.brand-mark svg rect[width="40"] { fill: var(--accent) !important; }
.brand-name {
  letter-spacing: 0;
  font-weight: 850;
}
.main-nav { gap: 4px; }
.nav-link,
.profile-menu button,
.portfolio-button,
.login-submit,
.create-category-button,
.lightbox-actions button,
.owner-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: transform 220ms ease, background-color 220ms ease, color 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}
.nav-link {
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  color: #2c342f;
}
.nav-link:hover,
.nav-link.active {
  background: var(--accent);
  color: #fff;
}
.search-box {
  min-height: 42px;
  border: 1px solid rgba(13,112,64,0.1);
  border-radius: 999px;
  background: rgba(255,255,255,0.72);
}
.search-box input { color: #152018; }
.avatar-button { border: 2px solid rgba(13,112,64,0.22); }

main { width: min(1200px, calc(100% - 40px)); }
.hero-feature {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  min-height: clamp(520px, 72vh, 780px);
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
}
.hero-feature::after {
  background: linear-gradient(90deg, rgba(5,27,16,0.72), rgba(5,27,16,0.2) 48%, rgba(5,27,16,0.04));
}
.hero-copy {
  width: min(1200px, calc(100% - 48px));
  margin-inline: auto;
  padding-top: 74px;
}
.hero-copy h1 {
  max-width: 900px;
  letter-spacing: 0;
  text-wrap: balance;
}
.hero-copy p:not(.kicker) { max-width: 560px; }
.hero-actions { align-items: center; }
.portfolio-button.primary,
.login-submit,
.create-category-button {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 26px rgba(13,112,64,0.22);
}
.portfolio-button:hover,
.login-submit:hover,
.create-category-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(13,112,64,0.18);
}

.portfolio-section,
.feature-duo,
.category-zone,
.library-page,
.user-page { margin-block: clamp(54px, 8vw, 104px); }
.portfolio-heading,
.section-heading,
.library-head {
  align-items: end;
  gap: 20px;
}
.portfolio-heading h2,
.section-heading h2,
.library-head h2 {
  letter-spacing: 0;
  text-wrap: balance;
}

.projects-grid {
  grid-template-columns: repeat(auto-fit, minmax(clamp(170px, 15vw, 240px), 1fr));
  gap: clamp(16px, 1.8vw, 24px);
}
.project-card,
.featured-card,
.all-work-card,
.category-block,
.login-panel,
.feature-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 8px 28px rgba(8,78,44,0.07);
}
.project-card,
.featured-card,
.all-work-card {
  overflow: hidden;
  transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
}
.project-card:hover,
.featured-card:hover,
.all-work-card:hover {
  transform: translateY(-4px);
  border-color: rgba(13,112,64,0.24);
  box-shadow: var(--shadow);
}
.project-image img,
.featured-card img,
.all-work-card img {
  transition: transform 260ms ease, filter 260ms ease;
}
.project-card:hover img,
.featured-card:hover img,
.all-work-card:hover img {
  transform: scale(1.03);
  filter: brightness(0.88) saturate(1.04);
}
.project-like,
.project-hover {
  border: 1px solid rgba(255,255,255,0.32);
  background: rgba(9,56,32,0.62);
  color: #fff;
  backdrop-filter: blur(14px);
}
.project-copy { padding: 18px; }
.project-copy h3 { line-height: 1.18; }
.project-copy p { color: var(--muted); }

.focus-motion-section {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding-inline: max(24px, calc((100vw - 1200px) / 2));
  border-block: 1px solid rgba(13,112,64,0.1);
  background: rgba(247,250,246,0.76);
  overflow: hidden;
}
.focus-motion-track { opacity: 0.58; filter: blur(9px) saturate(1.08); }
.featured-card-overlay { background: linear-gradient(180deg, transparent, rgba(5,27,16,0.74)); }

.category-zone {
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  background: rgba(255,255,255,0.62);
  backdrop-filter: blur(18px);
}
.category-sections {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
}
.compact-category-main {
  min-height: 136px;
  border-radius: var(--radius);
}

.library-page { min-height: calc(100vh - 120px); }
.library-head {
  position: sticky;
  top: 86px;
  z-index: 8;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(250,252,249,0.82);
  backdrop-filter: blur(18px);
}
.filter-drawer summary {
  cursor: pointer;
  color: var(--accent-dark);
  font-weight: 700;
}
.library-filters select {
  min-height: 40px;
  border: 1px solid rgba(13,112,64,0.16);
  border-radius: 999px;
  background: #fff;
}
.all-works-grid {
  columns: 5 190px;
  column-gap: clamp(14px, 1.6vw, 24px);
}
.all-work-card {
  display: inline-block;
  width: 100%;
  margin: 0 0 clamp(14px, 1.6vw, 24px);
  break-inside: avoid;
  text-align: left;
}
.all-work-card img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: cover;
}
.all-work-card span,
.all-work-card em {
  display: block;
  padding-inline: 14px;
}
.all-work-card span { padding-top: 12px; font-weight: 700; }
.all-work-card em { padding-bottom: 14px; color: var(--muted); font-style: normal; }
.empty-inline {
  grid-column: 1 / -1;
  padding: 48px 24px;
  border: 1px dashed rgba(13,112,64,0.24);
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: var(--muted);
  text-align: center;
}

.login-modal {
  background: rgba(11, 20, 14, 0.38);
  backdrop-filter: blur(10px);
}
.login-panel {
  border-radius: 26px;
  padding: clamp(24px, 4vw, 42px);
}
.login-panel input,
.login-panel select,
.login-panel textarea {
  border-color: rgba(13,112,64,0.16);
  border-radius: 14px;
}
.upload-hint { color: var(--muted); }
.upload-preview-strip img,
.upload-file-item img {
  object-fit: contain;
  background: #f3f5f1;
}
.lightbox-details {
  border-left: 1px solid rgba(13,112,64,0.12);
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(18px);
}
.comment-item { border-color: rgba(13,112,64,0.12); }

.toast-root {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 3000;
  display: grid;
  gap: 10px;
  pointer-events: none;
}
.toast {
  min-width: 220px;
  max-width: min(360px, calc(100vw - 44px));
  padding: 13px 16px;
  border: 1px solid rgba(13,112,64,0.18);
  border-radius: 16px;
  background: rgba(255,255,255,0.92);
  color: #152018;
  box-shadow: 0 14px 34px rgba(8,78,44,0.16);
  opacity: 0;
  transform: translateY(8px);
  backdrop-filter: blur(16px);
  transition: opacity 220ms ease, transform 220ms ease;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast.success { border-color: rgba(13,112,64,0.26); }
.toast.error { border-color: rgba(188,62,45,0.34); color: #842516; }

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(13,112,64,0.24);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .topbar {
    left: 10px;
    right: 10px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    row-gap: 10px;
    padding: 10px;
    border-radius: 24px;
  }
  .main-nav {
    order: 3;
    grid-column: 1 / -1;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 2px;
  }
  .search-box {
    grid-column: 2;
    min-width: 0;
  }
  main { width: min(100% - 24px, 1200px); }
  .hero-feature { min-height: 72vh; }
  .hero-copy {
    width: min(100% - 28px, 1200px);
    padding-top: 108px;
  }
  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    max-width: 420px;
  }
  .portfolio-button { min-height: 46px; }
  .portfolio-heading,
  .section-heading,
  .library-head { align-items: start; }
  .library-head {
    top: 118px;
    display: grid;
  }
  .library-filters {
    display: grid;
    grid-template-columns: 1fr;
  }
  .feature-duo { grid-template-columns: 1fr; }
  .all-works-grid { columns: 2 150px; }
  .project-hover {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 560px) {
  .brand-name { display: none; }
  .nav-link { padding-inline: 14px; }
  .hero-copy h1 { font-size: clamp(42px, 15vw, 74px); }
  .hero-copy p:not(.kicker) { font-size: 15px; }
  .projects-grid { grid-template-columns: 1fr; }
  .all-works-grid { columns: 1; }
  .login-panel {
    width: min(100% - 18px, 560px);
    max-height: calc(100vh - 28px);
  }
  .lightbox { align-items: stretch; }
  .lightbox-details {
    max-height: 52vh;
    border-left: 0;
    border-top: 1px solid rgba(13,112,64,0.12);
  }
  .toast-root {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }
  .toast { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Cliffs v43 dock alignment */
body.library-mode .library-page {
  padding-top: 18px;
}

body.library-mode .library-head {
  top: 104px;
  z-index: 20;
  transform: translateY(0);
  transform-origin: top center;
  transition: transform 260ms ease, opacity 220ms ease, box-shadow 220ms ease;
}

body.library-mode.library-dock-hidden .library-head {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-118%);
}

body.library-mode.library-dock-hidden.library-filter-open .library-head {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

body.library-mode .topbar {
  z-index: 60;
}

.all-work-card span {
  position: absolute !important;
  left: 12px !important;
  right: 12px !important;
  bottom: 14px !important;
  width: auto !important;
  max-width: calc(100% - 24px) !important;
  padding: 9px 14px !important;
  border-radius: 999px !important;
  color: #fff !important;
  background: linear-gradient(90deg, rgba(0,0,0,.76), rgba(0,0,0,.48)) !important;
  box-shadow: 0 8px 22px rgba(0,0,0,.18);
  backdrop-filter: blur(12px);
}

.all-work-card em {
  display: none !important;
}

.all-work-card::after {
  opacity: 1 !important;
  height: 38% !important;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.36)) !important;
}

@media (max-width: 900px) {
  body.library-mode .library-head {
    top: 132px;
  }
}

/* Cliffs v44 library dock behavior */
.library-filter-toggle {
  position: fixed;
  top: 96px;
  right: 24px;
  z-index: 55;
  display: none;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(13,112,64,.16);
  border-radius: 999px;
  background: rgba(255,255,255,.86);
  color: #111;
  font-weight: 800;
  box-shadow: 0 14px 34px rgba(8,78,44,.14);
  backdrop-filter: blur(16px);
}

body.library-mode.library-dock-hidden .library-filter-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.library-mode.library-filter-open .library-filter-toggle {
  background: #111;
  color: #fff;
}

.all-work-card img {
  min-height: clamp(170px, 15vw, 260px) !important;
}

.all-work-card span {
  left: 14px !important;
  right: auto !important;
  bottom: 12px !important;
  max-width: min(76%, calc(100% - 28px)) !important;
  padding: 7px 12px !important;
  font-size: clamp(13px, .92vw, 15px) !important;
  line-height: 1.15 !important;
}

.all-work-card::after {
  height: 30% !important;
}

@media (max-width: 900px) {
  .library-filter-toggle {
    top: 124px;
    right: 16px;
  }
  .all-work-card img {
    min-height: 210px !important;
  }
}

/* Cliffs v45 favorite gallery centering */
body[data-library-mode="favorites"] .all-works-grid {
  width: min(100%, 1180px);
  margin-inline: auto;
  columns: initial !important;
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(220px, 260px));
  justify-content: center;
  align-items: start;
  gap: clamp(18px, 2vw, 28px);
}

body[data-library-mode="favorites"] .all-work-card {
  display: block;
  width: 100%;
  margin: 0 !important;
}

@media (max-width: 640px) {
  body[data-library-mode="favorites"] .all-works-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Cliffs v47 visual depth polish */
:root {
  --soft-glow: rgba(13,112,64,.10);
  --deep-shadow: 0 28px 80px rgba(8, 34, 21, .14);
  --card-line: rgba(13,112,64,.12);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(circle at 10% 18%, rgba(13,112,64,.13), transparent 30%),
    radial-gradient(circle at 86% 8%, rgba(17,17,17,.06), transparent 24%),
    linear-gradient(180deg, rgba(255,255,255,.70), rgba(246,249,245,.92));
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  opacity: .32;
  background-image:
    linear-gradient(rgba(13,112,64,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13,112,64,.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, transparent, #000 18%, #000 70%, transparent);
}

.topbar {
  border-color: rgba(13,112,64,.16);
  background: rgba(255,255,255,.78);
  box-shadow: 0 16px 46px rgba(8,34,21,.10);
}

.hero-feature {
  box-shadow: inset 0 -120px 140px rgba(0,0,0,.18);
}

.hero-copy .kicker,
.portfolio-heading .kicker,
.section-heading .kicker,
.library-head .kicker {
  color: var(--accent-dark);
  letter-spacing: .04em;
}

.portfolio-section,
.feature-duo,
.category-zone,
.library-page {
  position: relative;
}

.projects-section::before,
.category-zone::before,
.feature-duo::before {
  position: absolute;
  inset: -28px;
  z-index: -1;
  content: "";
  border-radius: 34px;
  background: linear-gradient(135deg, rgba(255,255,255,.58), rgba(13,112,64,.045));
  filter: blur(2px);
}

.project-card,
.featured-card,
.all-work-card,
.feature-panel,
.category-block {
  border-color: var(--card-line) !important;
  box-shadow: 0 14px 38px rgba(8,34,21,.08), 0 1px 0 rgba(255,255,255,.86) inset !important;
}

.project-card:hover,
.featured-card:hover,
.all-work-card:hover,
.category-block:hover {
  box-shadow: var(--deep-shadow) !important;
}

.project-image,
.featured-card,
.compact-category-main {
  background: #eef4ee;
}

.project-copy h3,
.featured-card-overlay strong,
.all-work-card span {
  text-shadow: 0 1px 12px rgba(0,0,0,.22);
}

.feature-panel {
  padding: clamp(18px, 2.4vw, 28px);
  background: rgba(255,255,255,.70);
  backdrop-filter: blur(18px);
}

.category-zone,
.library-head {
  box-shadow: 0 18px 52px rgba(8,34,21,.08);
}

.library-page {
  padding-bottom: 96px;
}

.all-works-grid {
  padding-top: 8px;
}

.all-work-card {
  transform: translateZ(0);
}

.all-work-card img {
  background: #eef4ee;
}

.lightbox-details,
.login-panel {
  box-shadow: 0 30px 90px rgba(0,0,0,.18);
}

.site-footer {
  color: rgba(17,17,17,.46);
  background: linear-gradient(180deg, transparent, rgba(13,112,64,.06));
}

@media (max-width: 900px) {
  body::after {
    background-size: 54px 54px;
  }
  .projects-section::before,
  .category-zone::before,
  .feature-duo::before {
    inset: -14px;
    border-radius: 24px;
  }
}

/* Cliffs v48 content depth */
.section-note {
  max-width: 560px;
  margin: 10px 0 0;
  color: rgba(17,17,17,.58);
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 1.75;
}

.portfolio-heading {
  align-items: end;
}

.category-sections {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.compact-category-main {
  position: relative;
  align-content: end;
  justify-items: start;
  min-height: clamp(180px, 19vw, 260px);
  padding: 18px;
  text-align: left;
}

.compact-category-main::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(0,0,0,.04), rgba(0,0,0,.70));
}

.compact-category-main img {
  transform: scale(1.02);
  transition: transform 260ms ease, filter 260ms ease;
}

.compact-category-main:hover img {
  filter: saturate(1.06) brightness(.86);
  transform: scale(1.07);
}

.compact-category-main strong,
.compact-category-main em,
.compact-category-main .category-count {
  position: relative;
  z-index: 1;
  justify-self: start;
  text-align: left;
}

.compact-category-main strong {
  display: block;
  max-width: 92%;
  margin-inline: 0 auto;
  color: #fff;
  font-size: clamp(22px, 2.2vw, 34px);
  line-height: 1.05;
}

.compact-category-main em {
  display: block;
  max-width: 86%;
  margin-top: 8px;
  margin-inline: 0 auto;
  color: rgba(255,255,255,.78);
  font-style: normal;
  line-height: 1.55;
}

.category-count {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 12px;
  padding: 6px 10px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  color: rgba(255,255,255,.84);
  background: rgba(0,0,0,.24);
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(12px);
}

.contact-section {
  gap: 24px;
  border: 1px solid rgba(13,112,64,.12);
  border-radius: 28px;
  padding: clamp(26px, 4vw, 46px);
  background: rgba(255,255,255,.62);
  box-shadow: 0 18px 52px rgba(8,34,21,.08);
}

@media (max-width: 720px) {
  .category-sections {
    grid-template-columns: 1fr;
  }
  .compact-category-main {
    min-height: 190px;
  }
}

/* Cliffs v49 soft ambient background */
body::before {
  background:
    radial-gradient(circle at 12% 16%, rgba(13,112,64,.16), transparent 28%),
    radial-gradient(circle at 86% 10%, rgba(190,205,190,.28), transparent 26%),
    radial-gradient(circle at 50% 82%, rgba(13,112,64,.07), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,.74), rgba(246,249,245,.94));
  filter: blur(10px);
  transform: translate3d(0,0,0) scale(1.04);
  animation: cliffsAmbientDrift 28s ease-in-out infinite alternate;
}

@keyframes cliffsAmbientDrift {
  0% { transform: translate3d(-1.5%, -1%, 0) scale(1.04); }
  100% { transform: translate3d(1.5%, 1%, 0) scale(1.07); }
}

.site-footer {
  margin-top: 84px;
  border-top: 1px solid rgba(13,112,64,.16);
  background:
    linear-gradient(180deg, rgba(219,230,219,.58), rgba(199,215,202,.82)),
    radial-gradient(circle at 50% 0%, rgba(13,112,64,.10), transparent 42%);
  color: rgba(17,17,17,.54);
}

@media (prefers-reduced-motion: reduce) {
  body::before {
    animation: none !important;
  }
}

/* Cliffs v50 modal zoom and transitions */
.projects-grid {
  max-height: calc((clamp(170px, 15vw, 240px) + 112px) * 5);
  overflow: hidden;
}

.lightbox {
  z-index: 120;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
}

.lightbox-image-panel {
  position: relative;
  overflow: hidden;
  min-height: 76vh;
  place-items: center;
}

.lightbox-image-panel img {
  max-width: 100%;
  max-height: 82vh;
  width: auto;
  height: auto;
  margin: auto;
  transform-origin: center center;
  transition: transform 180ms ease;
}

.lightbox-zoom-controls {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 2;
  display: inline-flex;
  gap: 6px;
  padding: 6px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(14px);
  transform: translateX(-50%);
}

.lightbox-zoom-controls button {
  min-width: 38px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  color: #111;
  font-weight: 900;
}

body.lightbox-open .topbar {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-120%);
}

.topbar {
  transition: transform 240ms ease, opacity 200ms ease, background-color 220ms ease, box-shadow 220ms ease;
}

main {
  transition: opacity 220ms ease, transform 220ms ease, filter 220ms ease;
}

body.view-transitioning main {
  opacity: .35;
  filter: blur(5px);
  transform: translateY(10px);
}

@media (max-width: 920px) {
  .lightbox {
    grid-template-columns: 1fr;
  }
  .lightbox-image-panel {
    min-height: 58vh;
  }
}

/* Cliffs v51 waterfall metadata */
.all-work-card {
  padding-bottom: 12px !important;
  background: rgba(255,255,255,.78) !important;
}

.work-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px 0;
  color: rgba(17,17,17,.58);
  font-size: 12px;
  line-height: 1.2;
}

.work-card-meta b,
.work-card-meta i {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.work-card-meta b {
  font-weight: 800;
}

.work-card-meta i {
  font-style: normal;
}

body[data-library-mode="favorites"] .all-work-card {
  padding-bottom: 12px !important;
}

/* Cliffs v52 metadata outside image */
.all-work-card {
  overflow: visible !important;
}

.all-work-card img {
  display: block;
  border-radius: inherit;
}

.all-work-card .work-card-meta {
  position: static !important;
  display: flex !important;
  opacity: 1 !important;
  transform: none !important;
  margin: 0 !important;
  padding: 10px 12px 2px !important;
  background: transparent !important;
  backdrop-filter: none !important;
}

.project-meta {
  padding: 10px 0 0 !important;
  border-top: 1px solid rgba(13,112,64,.10);
}

/* Cliffs v53 remove waterfall gray frame */
.all-work-card,
body[data-library-mode="favorites"] .all-work-card {
  padding-bottom: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
}

.all-work-card:hover {
  box-shadow: none !important;
}

.all-work-card::after {
  display: none !important;
}

.all-work-card img {
  box-shadow: 0 14px 34px rgba(8,34,21,.10);
}

.all-work-card .work-card-meta {
  padding: 8px 4px 0 !important;
}

/* Cliffs v54 hover title dock */
@media (hover: hover) and (pointer: fine) {
  .all-work-card span {
    opacity: 0 !important;
    transform: translateY(18px) !important;
    transition: opacity 180ms ease, transform 220ms ease !important;
  }

  .all-work-card:hover span,
  .all-work-card:focus-visible span {
    opacity: 1 !important;
    transform: translateY(0) !important;
  }
}

/* Cliffs v55 title dock alignment */
.all-work-card span {
  display: none !important;
}

.all-work-card .work-card-meta span {
  display: inline !important;
}

.pin-hover-ui span {
  display: initial !important;
}

.all-work-card > span {
  left: 50% !important;
  right: auto !important;
  bottom: 22px !important;
  width: max-content !important;
  max-width: calc(100% - 32px) !important;
  transform: translateX(-50%) !important;
}

@media (hover: hover) and (pointer: fine) {
  .all-work-card span {
    transform: translate(-50%, 16px) !important;
  }

  .all-work-card:hover span,
  .all-work-card:focus-visible span {
    transform: translate(-50%, 0) !important;
  }
}
/* v56: low-cost glass motion for category and refined daily hero type */
.category-zone {
  overflow: hidden;
  isolation: isolate;
}

.category-zone::after {
  position: absolute;
  inset: -18%;
  z-index: -2;
  content: "";
  background:
    radial-gradient(circle at 18% 28%, rgba(13,112,64,.16), transparent 30%),
    radial-gradient(circle at 82% 18%, rgba(157,190,168,.18), transparent 32%),
    radial-gradient(circle at 55% 82%, rgba(219,210,186,.22), transparent 34%);
  filter: blur(34px);
  opacity: .9;
  transform: translate3d(0,0,0);
  animation: categoryGlassDrift 24s ease-in-out infinite alternate;
}

@keyframes categoryGlassDrift {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to { transform: translate3d(2%, 1%, 0) scale(1.04); }
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero-copy h1 {
  font-size: clamp(32px, 5.6vw, 78px);
  line-height: 1.14;
  max-width: 640px;
}

@media (prefers-reduced-motion: reduce) {
  .category-zone::after { animation: none; }
}

/* v57 Pinterest-like masonry interaction */
.all-works-grid,
.category-view-grid {
  display: block !important;
  columns: 5 220px;
  column-gap: 18px;
}

.all-work-card {
  position: relative;
  display: inline-block !important;
  width: 100%;
  margin: 0 0 18px;
  break-inside: avoid;
  border-radius: 12px !important;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 28px rgba(16,32,22,.08);
  transform: translateZ(0);
  transition: transform .24s ease, box-shadow .24s ease;
}

.all-work-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 44px rgba(16,32,22,.14);
}

.all-work-card:hover img {
  transform: scale(1.03);
}

.pin-hover-ui {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--hover-w, 100%);
  z-index: 3;
  display: grid;
  align-content: end;
  gap: 8px;
  padding: 16px;
  color: #fff;
  opacity: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.62));
  transition: opacity .22s ease;
  pointer-events: none;
  height: var(--hover-h, 100%);
  min-height: 0;
  overflow: hidden;
  border-radius: 12px;
  transform-origin: center;
}

.all-work-card:hover .pin-hover-ui {
  transform: scale(1.03);
}

.all-work-card:hover .pin-hover-ui {
  opacity: 1;
}

.pin-hover-ui strong,
.pin-hover-ui small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pin-hover-save,
.pin-hover-download {
  pointer-events: auto;
  width: max-content;
  min-height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  color: #111;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(0,0,0,.18);
}

.pin-hover-download {
  position: absolute;
  right: 14px;
  top: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  height: 38px;
  padding: 0 16px;
}

.masonry-sentinel {
  height: 1px;
  break-inside: avoid;
}

.masonry-skeleton {
  display: inline-block;
  width: 100%;
  height: 260px;
  margin: 0 0 18px;
  break-inside: avoid;
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(13,112,64,.08), rgba(255,255,255,.72), rgba(13,112,64,.08));
  background-size: 240% 100%;
  animation: skeletonSweep 1s ease-in-out infinite;
}

@keyframes skeletonSweep {
  from { background-position: 120% 0; }
  to { background-position: -120% 0; }
}

.lightbox-nav {
  position: fixed;
  top: 50%;
  z-index: 70;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.88);
  color: #111;
  font-size: 36px;
  box-shadow: 0 14px 34px rgba(0,0,0,.22);
}

.lightbox-prev { left: 22px; }
.lightbox-next { right: 22px; }

.lightbox-download {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  font-weight: 800;
}

@media (max-width: 720px) {
  .all-works-grid,
  .category-view-grid { columns: 2 150px; column-gap: 12px; }
  .lightbox-nav { width: 40px; height: 40px; font-size: 28px; }
}

/* v1.1 home IA */
.home-ia {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto clamp(42px,6vw,84px) !important;
  display: grid;
  gap: 22px;
  justify-self: center;
  transform: none !important;
}

main > .home-ia {
  margin-left: auto !important;
  margin-right: auto !important;
  left: auto !important;
  right: auto !important;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden !important;
}

.home-ia {
  width: min(1200px, calc(100vw - 40px)) !important;
  max-width: calc(100vw - 40px) !important;
  margin-inline: auto !important;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: stretch;
  gap: 10px;
}

.hero-feature,
.focus-motion-section,
.projects-section,
.category-zone {
  max-width: 100vw;
}

.quick-cats,
.rail-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 2px 12px;
  scroll-snap-type: x proximity;
}

.quick-cats button {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(13,112,64,.14);
  border-radius: 999px;
  background: rgba(255,255,255,.82);
  color: #111;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(13,112,64,.06);
  transition: transform .18s ease, background .18s ease, color .18s ease;
}

.quick-cats button:hover {
  transform: translateY(-2px);
  background: var(--accent);
  color: #fff;
}

.stats-strip {
  display: contents;
}

.stats-strip div,
.home-rail,
.activity-card {
  border: 1px solid rgba(13,112,64,.10);
  border-radius: 12px;
  background: rgba(255,255,255,.84);
  box-shadow: 0 16px 38px rgba(13,56,35,.08);
}

.stats-strip div {
  min-height: 82px;
  padding: 14px 16px;
}

.stats-strip strong {
  display: block;
  color: #111;
  font-size: clamp(18px,1.9vw,28px);
  line-height: 1;
}

.stats-strip span,
.rail-head span,
.rail-card em,
.activity-card span {
  color: var(--muted);
  font-size: 13px;
}

.home-rail {
  padding: 18px;
}

.rail-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.rail-head h2,
.activity-card h2 {
  margin: 0;
  font-size: clamp(20px,2vw,28px);
}

.rail-card {
  flex: 0 0 210px;
  scroll-snap-align: start;
  display: grid;
  gap: 8px;
  padding: 0 0 12px;
  border: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  text-align: left;
  box-shadow: 0 10px 28px rgba(16,32,22,.08);
  transition: transform .2s ease, box-shadow .2s ease;
}

.rail-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(16,32,22,.14);
}

.rail-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.rail-card span,
.rail-card em {
  padding: 0 12px;
}

.rail-card span {
  color: #111;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-side-modules {
  display: contents;
}

.home-rail,
.quick-cats {
  display: none !important;
}

.focus-motion-section {
  order: 99;
  margin-top: clamp(64px,8vw,120px) !important;
}

.activity-card {
  min-height: 82px;
  padding: 12px 14px;
  min-width: 0;
  overflow: hidden;
}

.activity-card button,
#mySpaceStats div {
  width: 100%;
  justify-content: space-between;
  gap: 12px;
  min-height: 26px;
  padding: 4px 0;
  border: 0;
  border-bottom: 1px solid rgba(13,112,64,.08);
  background: transparent;
  color: #111;
  text-align: left;
}

.compact-feed {
  overflow: hidden;
}

.compact-feed h2 {
  margin-bottom: 4px;
  font-size: clamp(18px,1.5vw,22px);
}

.compact-feed button span,
#mySpaceStats span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activity-card b {
  color: var(--accent);
}

@media (max-width: 760px) {
  .home-ia { grid-template-columns: 1fr 1fr; }
  .rail-card { flex-basis: 170px; }
}

@media (max-width: 520px) {
  .home-ia { grid-template-columns: 1fr; }
}

.comments-list .comment-item,
.detail-comments .comment-item {
  gap: 10px !important;
  padding: 12px !important;
  margin-bottom: 10px !important;
}

.comments-list .comment-body span,
.detail-comments .comment-body span {
  display: block;
  margin-top: 3px;
}

.comments-list .comment-body p,
.detail-comments .comment-body p {
  margin-top: 8px;
}

.comments-list,
.detail-comments-list {
  display: grid;
  gap: 12px;
}

.comments-list .comment-item,
.detail-comments .comment-item {
  display: grid !important;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: start;
  gap: 12px !important;
  padding: 16px !important;
  border-radius: 14px;
  background: rgba(255,255,255,.58);
}

.detail-comments .comment-reply {
  margin-left: 28px;
  grid-template-columns: 34px minmax(0, 1fr);
  opacity: .92;
}

.comment-user-pic {
  width: 42px !important;
  height: 42px !important;
}

.comment-reply .comment-user-pic {
  width: 34px !important;
  height: 34px !important;
}

.comment-body {
  padding-top: 2px;
}

.comment-name {
  color: #111 !important;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 900;
}

.comment-body > .mini-role,
.comments-list .comment-body span,
.detail-comments .comment-body span {
  margin-top: 6px;
  color: rgba(17,17,17,.54);
  font-size: 12px;
  line-height: 1.45;
  font-weight: 700;
}

.comments-list .comment-body p,
.detail-comments .comment-body p {
  margin: 8px 0 0;
  color: #111;
  font-size: 14px;
  line-height: 1.65;
}

.comment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px !important;
}

/* v59 local alignment fixes */
.pin-hover-save,
.pin-hover-download,
.lightbox-actions button,
.lightbox-download,
.comment-actions button,
.reply-box button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  vertical-align: middle;
  white-space: nowrap;
}

.pin-hover-save:hover,
.pin-hover-download:hover,
.comment-actions button:hover,
.reply-box button:hover {
  transform: none !important;
}

.lightbox-actions,
.comment-actions {
  align-items: center !important;
}

.comment-name,
.author-link {
  line-height: 1.2 !important;
  vertical-align: baseline;
}

/* v1.6 square home cards and unified project grid */
.home-ia {
  width: min(960px, calc(100vw - 40px)) !important;
  grid-template-columns: repeat(6, minmax(112px, 1fr)) !important;
  gap: 10px !important;
  align-items: start !important;
}

.stats-strip,
.home-side-modules {
  display: contents !important;
}

.stats-strip div,
.home-side-modules .activity-card {
  aspect-ratio: 1 / 1 !important;
  min-height: 0 !important;
  padding: 14px !important;
  overflow: hidden !important;
}

.stats-strip strong {
  font-size: clamp(22px, 2vw, 32px) !important;
  line-height: .95 !important;
  overflow-wrap: anywhere;
}

.activity-card h2 {
  font-size: clamp(18px, 1.45vw, 24px) !important;
  line-height: 1.05 !important;
}

.activity-card button,
#mySpaceStats div {
  min-height: 24px !important;
  padding: 3px 0 !important;
  font-size: 12px !important;
}

.activity-card b,
.activity-card span,
#mySpaceStats b,
#mySpaceStats span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.projects-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
  gap: clamp(16px, 1.6vw, 22px) !important;
  max-height: calc((min(22vw, 240px) + 118px) * 5) !important;
  overflow: hidden !important;
  align-items: start !important;
}

.project-card {
  display: grid !important;
  grid-template-rows: auto 1fr !important;
  gap: 12px !important;
  min-width: 0 !important;
}

.project-image {
  aspect-ratio: 1 / 1 !important;
  border-radius: 12px !important;
}

.project-copy {
  display: grid !important;
  grid-template-rows: auto auto auto !important;
  gap: 8px !important;
  min-height: 108px !important;
  padding: 0 2px 4px !important;
}

.project-copy h3 {
  display: -webkit-box;
  margin: 0 !important;
  min-height: 2.32em;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: clamp(16px, 1.2vw, 20px) !important;
  line-height: 1.16 !important;
  text-shadow: none !important;
}

.project-copy p {
  display: -webkit-box;
  min-height: 2.8em;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 13px !important;
  line-height: 1.4 !important;
}

.project-meta {
  margin-top: auto !important;
  padding-top: 6px !important;
}

@media (min-width: 1220px) {
  .projects-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  }
}

/* v93 profile save polish */
.profile-panel .profile-preview,
.profile-panel .cover-preview {
  align-items: center;
}
.profile-panel .avatar-picker {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 118px !important;
  min-height: 38px !important;
  padding: 0 18px !important;
  border: 0 !important;
  border-radius: 999px !important;
  color: #fff !important;
  background: var(--forest) !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  text-align: center !important;
  box-shadow: 0 10px 24px rgba(13,112,64,.16) !important;
}
.profile-panel .avatar-picker span {
  display: block !important;
  color: #fff !important;
  line-height: 1 !important;
  transform: none !important;
}
.profile-panel .cover-preview .avatar-picker {
  width: 100% !important;
  min-height: 42px !important;
}
.profile-panel .login-submit.loading::after {
  content: "保存中..." !important;
}
.profile-panel .login-submit.loading::before,
.avatar-picker.loading::before {
  content: "";
  width: 14px;
  height: 14px;
  margin-right: 8px;
  border: 2px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}
.user-cover {
  overflow: hidden;
}
.user-cover .cover-edit-btn {
  position: absolute !important;
  top: 14px !important;
  right: 14px !important;
  z-index: 3 !important;
  width: 44px !important;
  height: 44px !important;
  min-height: 44px !important;
  padding: 0 !important;
  border: 1px solid rgba(255,255,255,.6) !important;
  border-radius: 50% !important;
  color: transparent !important;
  background: rgba(255,255,255,.86) !important;
  box-shadow: 0 10px 26px rgba(0,0,0,.22) !important;
  overflow: hidden !important;
}
.user-cover .cover-edit-btn::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 2px solid #0d7040;
  border-radius: 3px;
}
.user-cover .cover-edit-btn::after {
  content: "";
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 12px;
  height: 12px;
  border-radius: 2px;
  background: #0d7040;
  transform: rotate(-18deg);
}

/* v94 profile picker alignment: one capsule only */
.profile-panel .profile-preview {
  display: grid !important;
  grid-template-columns: 74px auto !important;
  column-gap: 16px !important;
  align-items: center !important;
}
.profile-panel .cover-preview {
  display: grid !important;
  gap: 10px !important;
}
.profile-panel .avatar-picker,
.profile-panel .cover-preview .avatar-picker {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-width: 112px !important;
  max-width: 100% !important;
  min-height: 38px !important;
  padding: 0 18px !important;
  border-radius: 999px !important;
  color: #fff !important;
  background: var(--forest) !important;
  box-shadow: 0 10px 24px rgba(13,112,64,.16) !important;
  overflow: hidden !important;
}
.profile-panel .cover-preview .avatar-picker {
  width: 100% !important;
  min-height: 42px !important;
}
.profile-panel .avatar-picker span,
.profile-panel .cover-preview .avatar-picker span {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: #fff !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  text-align: center !important;
}
.profile-panel .avatar-picker input {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* v95 profile and lightbox alignment hotfix */
body.user-mode main {
  padding: 0 !important;
}
body.user-mode .user-page {
  width: 100vw !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
body.user-mode .user-shell {
  width: 100vw !important;
  max-width: none !important;
  min-height: calc(100vh - 74px) !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
body.user-mode .user-cover {
  border-radius: 0 !important;
}
body.user-mode .user-body {
  width: min(1180px, calc(100vw - 48px)) !important;
  margin: 0 auto !important;
}
.user-stats {
  align-items: center !important;
}
.user-stats span,
.user-tabs button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 32px !important;
  padding: 0 13px !important;
  line-height: 1 !important;
  text-align: center !important;
  white-space: nowrap !important;
}
.lightbox-close,
.lightbox-prev,
.lightbox-next,
.lightbox-nav,
[class*="lightbox-"][aria-label*="上一"],
[class*="lightbox-"][aria-label*="下一"] {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  text-align: center !important;
}
.lightbox-close {
  width: 42px !important;
  height: 42px !important;
  padding: 0 !important;
  font-size: 28px !important;
}
.lightbox-prev,
.lightbox-next,
.lightbox-nav {
  width: 46px !important;
  height: 46px !important;
  min-width: 46px !important;
  min-height: 46px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  font-size: 30px !important;
}
.lightbox-details {
  overflow: hidden !important;
  border-radius: 14px !important;
  padding: 0 !important;
  background: var(--surface) !important;
}
.lightbox-details > * {
  margin-left: 24px !important;
  margin-right: 24px !important;
}
.lightbox-details > :first-child {
  margin-top: 24px !important;
}
.lightbox-details::after {
  content: "";
  display: block;
  height: 24px;
}
.lightbox-details {
  scrollbar-gutter: stable both-edges;
}
.lightbox-details {
  overflow-y: auto !important;
  background-clip: padding-box !important;
}

@media (max-width: 860px) {
  .home-ia {
    width: min(520px, calc(100vw - 32px)) !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 520px) {
  .home-ia {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* v1.7 home layout polish */
main {
  width: 100% !important;
  padding: 0 0 clamp(64px, 8vw, 112px) !important;
}

.hero-feature {
  min-height: clamp(520px, 68vh, 760px) !important;
  padding: clamp(76px, 8vw, 112px) clamp(24px, 5vw, 72px) clamp(56px, 7vw, 92px) !important;
  margin-bottom: 0 !important;
}

.hero-copy {
  width: min(1180px, calc(100vw - 48px)) !important;
}

.hero-copy h1 {
  max-width: 620px !important;
  font-size: clamp(46px, 6.2vw, 92px) !important;
  line-height: 1.02 !important;
  letter-spacing: 0 !important;
}

.hero-copy p:not(.kicker) {
  margin-top: 18px !important;
  max-width: 520px !important;
  font-size: clamp(15px, 1.25vw, 19px) !important;
  line-height: 1.62 !important;
}

.hero-actions {
  margin-top: 24px !important;
  gap: 10px !important;
}

.home-ia {
  position: relative !important;
  z-index: 3 !important;
  width: min(1080px, calc(100vw - 40px)) !important;
  margin: clamp(28px, 4.5vw, 56px) auto clamp(72px, 8vw, 118px) !important;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  gap: clamp(10px, 1.1vw, 16px) !important;
}

.stats-strip div,
.home-side-modules .activity-card {
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  border-radius: 14px !important;
  background: rgba(255,255,255,.88) !important;
  box-shadow: 0 18px 42px rgba(8,34,21,.08) !important;
}

.stats-strip strong {
  font-size: clamp(24px, 2.4vw, 36px) !important;
}

.stats-strip span,
.activity-card span {
  font-size: 12px !important;
  line-height: 1.35 !important;
}

.activity-card h2 {
  margin: 0 0 2px !important;
}

.activity-card button,
#mySpaceStats div {
  gap: 8px !important;
  line-height: 1.25 !important;
}

.portfolio-section,
.feature-duo,
.category-zone {
  width: min(1200px, calc(100vw - 40px)) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.projects-section {
  padding: clamp(70px, 8vw, 112px) 0 !important;
  border-top: 1px solid rgba(13,112,64,.10) !important;
}

.portfolio-heading {
  align-items: flex-end !important;
  margin-bottom: clamp(22px, 3vw, 38px) !important;
}

.portfolio-heading h2 {
  font-size: clamp(42px, 5.2vw, 76px) !important;
  line-height: .98 !important;
}

.section-note {
  max-width: 620px !important;
  margin-top: 10px !important;
  line-height: 1.75 !important;
}

.projects-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: clamp(18px, 1.8vw, 26px) !important;
  max-height: none !important;
}

.project-card {
  border-radius: 14px !important;
}

.project-image {
  width: 100% !important;
  border-radius: 14px !important;
}

.project-copy {
  min-height: 116px !important;
  padding: 0 2px 8px !important;
}

.project-copy h3,
.project-copy p {
  word-break: break-word;
}

.contact-section {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: clamp(18px, 4vw, 56px) !important;
  padding: clamp(42px, 6vw, 76px) clamp(22px, 4vw, 48px) !important;
  border-radius: 22px !important;
  background: rgba(255,255,255,.64) !important;
}

.feature-duo {
  gap: clamp(18px, 2vw, 28px) !important;
  margin-top: clamp(64px, 7vw, 104px) !important;
  margin-bottom: clamp(64px, 7vw, 104px) !important;
}

.feature-panel {
  padding: clamp(18px, 2vw, 28px) !important;
  border-radius: 18px !important;
}

.feature-grid {
  gap: 12px !important;
}

.featured-card {
  min-height: clamp(150px, 14vw, 210px) !important;
  border-radius: 14px !important;
}

.category-zone {
  margin-top: clamp(58px, 7vw, 96px) !important;
  margin-bottom: clamp(72px, 8vw, 116px) !important;
}

.focus-motion-section {
  width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  padding-top: clamp(72px, 8vw, 120px) !important;
  padding-bottom: clamp(72px, 8vw, 120px) !important;
}

.site-footer {
  margin-top: 0 !important;
}

@media (max-width: 1100px) {
  .projects-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 860px) {
  .hero-feature {
    min-height: clamp(460px, 66vh, 640px) !important;
  }
  .home-ia {
    width: min(640px, calc(100vw - 32px)) !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
  .projects-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
  .feature-duo,
  .contact-section {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 560px) {
  .hero-copy h1 {
    font-size: clamp(38px, 13vw, 64px) !important;
  }
  .home-ia {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
  }
  .portfolio-heading {
    display: grid !important;
    align-items: start !important;
  }
  .project-copy {
    min-height: 104px !important;
  }
}

/* v1.8 persistent top navigation */
.topbar {
  position: fixed !important;
  top: 10px !important;
  left: 10px !important;
  right: 10px !important;
  width: auto !important;
  z-index: 120 !important;
  border: 1px solid rgba(13,112,64,.12) !important;
  border-radius: 24px !important;
  background: rgba(250,252,248,.88) !important;
  box-shadow: 0 16px 38px rgba(8,34,21,.10) !important;
  backdrop-filter: blur(18px) saturate(1.04) !important;
  transform: translateY(0) !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

body.lightbox-open .topbar,
body:has(.login-modal:not([hidden])) .topbar {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(-120%) !important;
}

.hero-feature {
  padding-top: clamp(112px, 10vw, 150px) !important;
}

.library-page,
.user-page {
  padding-top: 96px !important;
}

@media (max-width: 720px) {
  .topbar {
    top: 8px !important;
    left: 8px !important;
    right: 8px !important;
    border-radius: 20px !important;
  }
  .hero-feature {
    padding-top: 108px !important;
  }
}

/* v1.9 compact stats and full-width projects */
.home-ia {
  width: min(1180px, calc(100vw - 40px)) !important;
}

.stats-strip div,
.home-side-modules .activity-card {
  padding: clamp(12px, 1.2vw, 18px) !important;
}

.stats-strip strong {
  font-size: clamp(24px, 2.1vw, 34px) !important;
  line-height: 1 !important;
}

.tag-stat strong {
  display: flex !important;
  flex-wrap: wrap !important;
  align-content: flex-start !important;
  gap: 6px !important;
  max-height: calc(100% - 22px);
}

.tag-stat strong em {
  display: inline-flex;
  max-width: 100%;
  min-height: 24px;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(13,112,64,.10);
  color: #111;
  font-size: clamp(11px, .82vw, 13px);
  line-height: 1;
  font-style: normal;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activity-card h2 {
  font-size: clamp(16px, 1.25vw, 21px) !important;
}

.activity-card button,
#mySpaceStats div {
  font-size: 11px !important;
}

.activity-card b,
#mySpaceStats b {
  font-size: 12px !important;
}

.projects-section {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  padding-left: clamp(16px, 2.4vw, 44px) !important;
  padding-right: clamp(16px, 2.4vw, 44px) !important;
}

.projects-grid {
  width: 100% !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
}

@media (min-width: 1500px) {
  .projects-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  .tag-stat strong em {
    font-size: 11px;
    min-height: 22px;
  }
}

/* v1.11 hide category blocks on profile pages */
body.user-mode #categoriesPortfolio,
body.user-mode .category-zone,
body.user-mode .feature-duo {
  display: none !important;
}

/* v1.12 local layout alignment fixes */
.nav-link,
.login-button,
.upload-cta,
.portfolio-button,
.create-category-button,
.profile-menu button,
.card-menu button,
.comment-actions button,
.reply-box button,
.lightbox-actions button,
.lightbox-download,
.lightbox-zoom-controls button,
.library-filter-toggle,
.pin-hover-save,
.pin-hover-download,
.project-like,
.modal-close,
.favorite-button,
.card-menu-button,
.owner-tools button,
.owner-actions button {
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  vertical-align: middle;
}

.profile-menu button,
.card-menu button {
  justify-content: flex-start !important;
}

.nav-link:hover,
.login-button:hover,
.upload-cta:hover,
.portfolio-button:hover,
.create-category-button:hover,
.profile-menu button:hover,
.card-menu-button:hover,
.favorite-button:hover,
.modal-close:hover,
.login-submit:hover:not(.loading),
.comment-actions button:hover,
.reply-box button:hover {
  transform: none !important;
}

.card-menu span,
.like-action span,
.favorite-action span,
.comment-action span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  vertical-align: middle;
}

.project-like,
.library-filter-toggle,
.lightbox-zoom-controls button {
  display: inline-flex !important;
}

/* v1.13 library waterfall edge gutter */
body.library-mode .library-page {
  padding-left: clamp(16px, 1.45vw, 28px) !important;
  padding-right: clamp(16px, 1.45vw, 28px) !important;
}

body.library-mode .all-works-grid {
  width: min(95vw, 95%) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* v1.14 home module motion and jumps */
.home-ia .home-jump-card,
.home-side-modules .activity-card {
  cursor: pointer;
  animation: homeModuleIn .42s ease both;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  will-change: transform;
}

.stats-strip .home-jump-card:nth-child(1) { animation-delay: 20ms; }
.stats-strip .home-jump-card:nth-child(2) { animation-delay: 70ms; }
.stats-strip .home-jump-card:nth-child(3) { animation-delay: 120ms; }
.stats-strip .home-jump-card:nth-child(4) { animation-delay: 170ms; }
.home-side-modules .activity-card:nth-child(1) { animation-delay: 220ms; }
.home-side-modules .activity-card:nth-child(2) { animation-delay: 270ms; }

.home-ia .home-jump-card:hover,
.home-ia .home-jump-card:focus-visible,
.home-side-modules .activity-card:hover,
.home-side-modules .activity-card:focus-within {
  transform: translateY(-5px);
  border-color: rgba(13,112,64,.28);
  box-shadow: 0 22px 46px rgba(13,56,35,.14);
}

.home-ia .home-jump-card:active {
  transform: translateY(-2px) scale(.99);
}

.tag-stat strong em {
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease;
}

.tag-stat strong em:hover,
.tag-stat strong em:focus-visible {
  transform: translateY(-1px);
  background: rgba(13,112,64,.16);
  outline: none;
}

@keyframes homeModuleIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-ia .home-jump-card,
  .home-side-modules .activity-card,
  .tag-stat strong em {
    animation: none;
    transition: none;
  }
}

@media (max-width: 640px) {
  body.library-mode .library-page {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
}
/* v62 mobile and portrait browsing polish */
@media (max-width: 760px), (orientation: portrait) and (max-width: 900px) {
  body { overflow-x: hidden; }
  .topbar {
    inset: 10px 10px auto;
    width: calc(100% - 20px);
    min-height: 62px;
    padding: 8px 10px;
    gap: 8px;
    border-radius: 22px;
  }
  .brand span { display: inline !important; }
  .nav-link { min-height: 36px; padding: 0 12px; font-size: 14px; }
  .search-box { order: 3; flex-basis: 100%; min-width: 0; height: 40px; }
  .avatar-button { width: 42px; height: 42px; flex: 0 0 42px; }
  .hero-feature {
    min-height: 68vh;
    margin-top: 8px;
    border-radius: 0;
    grid-template-columns: 1fr;
    align-items: end;
  }
  .hero-copy { width: 100%; padding: 110px 20px 34px; }
  .hero-copy h1 { font-size: clamp(38px, 14vw, 72px); line-height: 1.08; }
  .feature-duo,
  .projects-grid { grid-template-columns: 1fr !important; gap: 16px; }
  .portfolio-section,
  .category-zone,
  .library-page,
  .user-page { width: min(100% - 20px, 1200px); margin-inline: auto; }
  .library-head {
    position: sticky;
    top: 86px;
    padding: 18px;
    border-radius: 20px;
  }
  .library-controls {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .all-works-grid,
  .category-view-grid { columns: 2 150px !important; column-gap: 12px !important; }
  .all-work-card { margin-bottom: 12px !important; border-radius: 12px !important; }
  .pin-hover-ui { opacity: 1; padding: 12px; }
  .pin-hover-ui small { display: none; }
  .pin-hover-download { height: 34px; right: 10px; top: 10px; padding-inline: 12px; }
  .lightbox {
    display: block;
    overflow-y: auto;
    padding: 10px;
  }
  .lightbox-image-panel {
    min-height: 52vh;
    border-radius: 18px 18px 0 0;
  }
  .lightbox-image-panel img {
    max-height: 52vh;
    object-fit: contain;
  }
  .lightbox-details {
    width: 100%;
    max-height: none;
    padding: 18px;
    border-radius: 0 0 18px 18px;
  }
  .lightbox-close {
    top: 12px;
    right: 12px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    z-index: 90;
    background: rgba(17,17,17,.86);
    color: #fff;
    box-shadow: 0 12px 28px rgba(0,0,0,.28);
  }
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
  .comments-list .comment-item,
  .detail-comments .comment-item {
    grid-template-columns: 38px minmax(0,1fr);
    padding: 12px !important;
  }
}

@media (max-width: 420px) {
  .all-works-grid,
  .category-view-grid { columns: 1 !important; }
  .nav-link { padding: 0 10px; }
  .hero-copy h1 { font-size: clamp(34px, 13vw, 58px); }
}

.hero-feature.hero-slide-in img,
.hero-feature.hero-slide-in .hero-copy {
  animation: heroSlideLeft .46s cubic-bezier(.2,0,0,1);
}

@keyframes heroSlideLeft {
  from { opacity: .72; transform: translateX(28px) scale(1.015); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-feature.hero-slide-in img,
  .hero-feature.hero-slide-in .hero-copy { animation: none; }
}

.hero-feature {
  aspect-ratio: 16 / 7;
  min-height: auto !important;
}

.hero-rail {
  position: absolute;
  left: clamp(18px, 4vw, 48px);
  right: clamp(18px, 4vw, 48px);
  bottom: 18px;
  z-index: 8;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  pointer-events: auto;
}

.hero-rail button {
  height: 58px;
  justify-content: flex-start;
  gap: 10px;
  padding: 6px 10px 6px 6px;
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 999px;
  background: rgba(255,255,255,.16);
  color: #fff;
  backdrop-filter: blur(12px);
  overflow: hidden;
  opacity: .78;
}

.hero-rail button.active,
.hero-rail button:hover {
  opacity: 1;
  background: rgba(255,255,255,.26);
}

.hero-rail img {
  position: static !important;
  z-index: auto !important;
  width: 46px !important;
  height: 46px !important;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 46px;
  transform: none !important;
}

.hero-rail span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 800;
}

.hero-copy {
  max-height: calc(100% - 96px);
  overflow: hidden;
  padding-bottom: 96px !important;
}

.hero-copy h1 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: min(720px, 52vw);
  font-size: clamp(36px, 5vw, 72px) !important;
  line-height: 1.06 !important;
}

.hero-copy p:not(.kicker) {
  max-width: min(560px, 50vw);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-actions {
  flex-wrap: wrap;
}

.hero-feature .hero-copy {
  position: relative;
  height: 100%;
  min-height: inherit;
  padding-bottom: 150px !important;
}

.hero-feature .hero-copy p:not(.kicker) {
  position: absolute;
  left: clamp(20px, 4vw, 48px);
  bottom: 86px;
  margin: 0;
}

.hero-feature .hero-actions {
  position: absolute;
  left: clamp(20px, 4vw, 48px);
  bottom: 32px;
  margin: 0;
}

.hero-feature .hero-rail {
  left: 50%;
  right: auto;
  bottom: 18px;
  width: min(180px, 36vw);
  height: 8px;
  display: flex;
  justify-content: center;
  gap: 8px;
  transform: translateX(-50%);
}

.hero-feature .hero-rail button {
  width: 42px;
  height: 6px;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.38);
  box-shadow: none;
  backdrop-filter: blur(8px);
  opacity: .72;
}

.hero-feature .hero-rail button.active,
.hero-feature .hero-rail button:hover {
  width: 58px;
  background: rgba(255,255,255,.9);
  opacity: 1;
}

@media (max-width: 760px), (orientation: portrait) and (max-width: 900px) {
  .hero-feature {
    aspect-ratio: 4 / 5;
  }
  .hero-rail {
    grid-template-columns: repeat(3, 1fr);
    left: 12px;
    right: 12px;
    bottom: 12px;
    gap: 6px;
  }
  .hero-rail button {
    height: 44px;
    padding: 4px;
  }
  .hero-rail img {
    width: 36px !important;
    height: 36px !important;
    flex-basis: 36px;
  }
  .hero-rail span {
    display: none;
  }
  .hero-copy {
    max-height: calc(100% - 68px);
    padding-bottom: 68px !important;
  }
  .hero-copy h1 {
    max-width: 92vw;
    -webkit-line-clamp: 2;
    font-size: clamp(34px, 11vw, 56px) !important;
  }
  .hero-copy p:not(.kicker) {
    max-width: 88vw;
  }
}

@media (max-width: 760px), (orientation: portrait) and (max-width: 900px) {
  .hero-feature .hero-copy {
    padding-bottom: 132px !important;
  }
  .hero-feature .hero-copy p:not(.kicker) {
    left: 20px;
    right: 20px;
    bottom: 80px;
  }
  .hero-feature .hero-actions {
    left: 20px;
    right: 20px;
    bottom: 30px;
  }
  .hero-feature .hero-rail {
    left: 50%;
    right: auto;
    bottom: 14px;
    width: 132px;
    height: 8px;
    display: flex;
    grid-template-columns: none;
    gap: 6px;
    transform: translateX(-50%);
  }
  .hero-feature .hero-rail button,
  .hero-feature .hero-rail button.active,
  .hero-feature .hero-rail button:hover {
    width: 34px;
    height: 5px;
    min-height: 0;
    padding: 0;
  }
}

/* v65 home background gradient */
body:not(.library-mode):not(.user-mode) {
  background:
    linear-gradient(180deg, rgba(8, 72, 42, 0.28) 0%, rgba(235, 245, 238, 0.86) 38%, #fff 100%),
    #fff !important;
}

/* v66 responsive hero text flow */
.hero-feature .hero-copy {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  gap: clamp(10px, 1.5vw, 18px) !important;
  max-height: none !important;
  padding-bottom: clamp(86px, 11vw, 132px) !important;
  overflow: visible !important;
}

.hero-feature .hero-copy h1 {
  max-width: min(760px, 76vw) !important;
  font-size: clamp(34px, 6.8vw, 78px) !important;
  line-height: 1.02 !important;
}

.hero-feature .hero-copy p:not(.kicker),
.hero-feature .hero-actions {
  position: static !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
}

.hero-feature .hero-copy p:not(.kicker) {
  max-width: min(560px, 72vw) !important;
  margin: 0 !important;
  font-size: clamp(13px, 1.45vw, 18px) !important;
}

.hero-feature .hero-actions {
  margin-top: 0 !important;
  flex-wrap: wrap !important;
}

@media (max-width: 760px), (orientation: portrait) and (max-width: 900px) {
  .hero-feature .hero-copy {
    justify-content: flex-end !important;
    padding: 96px 20px 96px !important;
  }
  .hero-feature .hero-copy h1 {
    max-width: 92vw !important;
    font-size: clamp(32px, 11vw, 58px) !important;
  }
}

/* v67 keep hero controls inside the image frame */
.hero-feature {
  min-height: clamp(460px, 56vw, 760px) !important;
  overflow: hidden !important;
}

.hero-feature .hero-copy {
  justify-content: flex-end !important;
  gap: clamp(8px, 1.15vw, 16px) !important;
  padding-top: clamp(116px, 12vw, 150px) !important;
  padding-bottom: clamp(74px, 8vw, 112px) !important;
}

.hero-feature .hero-copy h1 {
  max-width: min(760px, 78vw) !important;
  font-size: clamp(30px, 6.1vw, 72px) !important;
}

.hero-feature .hero-actions {
  transform-origin: left center;
}

@media (max-width: 980px) {
  .hero-feature {
    min-height: clamp(420px, 58vw, 620px) !important;
  }
  .hero-feature .hero-copy {
    padding-bottom: 84px !important;
  }
  .hero-feature .hero-actions {
    transform: scale(.92);
  }
}

@media (max-width: 760px), (orientation: portrait) and (max-width: 900px) {
  .hero-feature {
    min-height: clamp(430px, 118vw, 680px) !important;
  }
  .hero-feature .hero-copy {
    padding: 108px 20px 88px !important;
  }
  .hero-feature .hero-copy h1 {
    font-size: clamp(30px, 10vw, 54px) !important;
  }
  .hero-feature .hero-actions {
    transform: scale(.9);
  }
}

/* v69 prevent compressed hero cropping */
.hero-feature {
  aspect-ratio: auto !important;
  min-height: max(520px, min(76vh, 760px)) !important;
}

.home-ia {
  margin-top: clamp(24px, 4vw, 56px) !important;
}

.hero-feature .hero-copy {
  width: 100% !important;
  max-width: 100% !important;
  min-height: 100% !important;
  padding-left: clamp(24px, 4vw, 56px) !important;
  padding-right: clamp(24px, 4vw, 56px) !important;
  padding-bottom: clamp(108px, 13vh, 150px) !important;
  overflow: hidden !important;
}

.hero-feature .hero-copy h1 {
  max-width: min(780px, calc(100vw - 48px)) !important;
  font-size: clamp(28px, min(5.2vw, 8.2vh), 70px) !important;
}

.hero-feature .hero-actions {
  transform: none !important;
}

@media (max-width: 900px) {
  .hero-feature {
    min-height: max(560px, 72vh) !important;
  }
  .hero-feature .hero-copy {
    padding-top: 112px !important;
    padding-bottom: 132px !important;
  }
  .hero-feature .hero-copy h1 {
    font-size: clamp(28px, 8.4vw, 52px) !important;
  }
}

/* v92 messages and profile cover */
.topbar {
  grid-template-columns: auto auto minmax(180px, 1fr) auto auto !important;
}
.message-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(10, 20, 14, .12);
  border-radius: 50%;
  color: var(--ink);
  background: rgba(255,255,255,.84);
  font-weight: 900;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
}
.message-button[hidden] { display: none !important; }
.message-button span {
  width: 20px;
  height: 20px;
  overflow: hidden;
  color: transparent;
}
.message-button span::before {
  content: "";
  display: block;
  width: 20px;
  height: 20px;
  background: #101812;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 8a6 6 0 0 0-12 0c0 7-3 7-3 9h18c0-2-3-2-3-9'/%3E%3Cpath d='M13.73 21a2 2 0 0 1-3.46 0'/%3E%3C/svg%3E") center/20px 20px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 8a6 6 0 0 0-12 0c0 7-3 7-3 9h18c0-2-3-2-3-9'/%3E%3Cpath d='M13.73 21a2 2 0 0 1-3.46 0'/%3E%3C/svg%3E") center/20px 20px no-repeat;
}
.message-button i {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  color: #fff;
  background: #e23d3d;
  font-size: 11px;
  font-style: normal;
  line-height: 18px;
}
.message-list {
  display: grid;
  gap: 10px;
  max-height: min(56vh, 460px);
  overflow: auto;
  margin-top: 16px;
}
.message-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(20,30,22,.08);
  border-radius: 10px;
  background: rgba(255,255,255,.72);
}
.message-item.unread {
  border-color: rgba(13,112,64,.28);
  background: rgba(237,247,241,.9);
}
.message-item img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
}
.message-item strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
}
.message-item span {
  color: var(--muted);
  font-size: 13px;
}
.cover-preview {
  display: grid;
  gap: 10px;
}
.cover-preview img {
  width: 100%;
  aspect-ratio: 16 / 6;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(0,0,0,.08);
}
.user-shell {
  overflow: hidden !important;
  padding: 0 !important;
  border-radius: 18px !important;
}
.user-cover {
  position: relative;
  min-height: clamp(230px, 34vw, 380px);
  padding: clamp(20px, 4vw, 44px);
  display: flex;
  align-items: flex-end;
  color: #fff;
  background-size: cover;
  background-position: center;
}
.user-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.62), rgba(0,0,0,.2) 58%, rgba(0,0,0,.48));
}
.user-cover-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 18px;
  align-items: end;
  width: 100%;
}
.user-cover-content > img {
  width: 112px;
  height: 112px;
  border: 4px solid rgba(255,255,255,.9);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 14px 34px rgba(0,0,0,.24);
}
.user-cover h2 {
  margin: 0 0 8px;
  font-size: clamp(34px, 5vw, 64px);
  color: #fff;
}
.user-cover .kicker,
.user-cover p {
  color: rgba(255,255,255,.86);
}
.user-body {
  padding: clamp(18px, 4vw, 42px);
}
.user-back {
  margin: 0 0 14px !important;
}
@media (max-width: 760px) {
  .topbar {
    grid-template-columns: auto 1fr auto auto !important;
  }
  .main-nav { display: none !important; }
  .message-button { width: 42px; height: 42px; }
  .user-cover-content {
    grid-template-columns: 1fr;
  }
  .user-cover-content > img {
    width: 92px;
    height: 92px;
  }
}

/* v77 fixed hero frame + stronger glass */
.hero-feature {
  aspect-ratio: 16 / 9 !important;
  min-height: auto !important;
  height: auto !important;
  max-height: min(78vh, 760px) !important;
}
.hero-feature > img,
.hero-feature .hero-image,
.hero-feature picture,
.hero-feature video {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}
.topbar,
.feature-panel,
.feature-duo,
.leaderboard-panel,
.status-row,
.category-tile,
.modal-card,
.profile-menu,
.user-shell,
.library-toolbar,
.category-view-panel,
.hero-rail button,
.hero-feature .hero-rail button,
.glass-panel {
  backdrop-filter: blur(22px) saturate(1.24) !important;
  -webkit-backdrop-filter: blur(22px) saturate(1.24) !important;
}
.topbar { background: rgba(250,252,249,.74) !important; }
.feature-panel,
.feature-duo,
.leaderboard-panel,
.status-row,
.category-tile,
.user-shell,
.library-toolbar,
.category-view-panel { background: rgba(255,255,255,.58) !important; }
.modal-card,
.profile-menu { background: rgba(255,255,255,.76) !important; }
.hero-rail button,
.hero-feature .hero-rail button { background: rgba(255,255,255,.46) !important; }
@media (max-width: 900px) {
  .hero-feature {
    aspect-ratio: 4 / 5 !important;
    min-height: auto !important;
    max-height: none !important;
  }
}
@media (max-width: 520px) {
  .hero-feature { aspect-ratio: 3 / 4 !important; }
}

/* v78 hero title fit */
.hero-feature,
.hero-feature .hero-copy {
  overflow: visible !important;
}
.hero-feature .hero-copy {
  justify-content: center !important;
  gap: clamp(10px, 1.4vw, 18px) !important;
  padding-top: clamp(78px, 8vw, 118px) !important;
  padding-bottom: clamp(96px, 10vw, 132px) !important;
}
.hero-feature .hero-copy h1 {
  display: block !important;
  max-width: min(720px, calc(100vw - 72px)) !important;
  font-size: clamp(40px, min(4.9vw, 7vh), 64px) !important;
  line-height: 1.14 !important;
  padding-bottom: .08em !important;
  margin: 0 !important;
  overflow: visible !important;
  word-break: normal !important;
}
@media (max-width: 900px) {
  .hero-feature .hero-copy h1 {
    max-width: calc(100vw - 44px) !important;
    font-size: clamp(34px, 9vw, 52px) !important;
    line-height: 1.16 !important;
  }
}
@media (max-width: 520px) {
  .hero-feature .hero-copy h1 { font-size: clamp(30px, 11vw, 46px) !important; }
}

/* v79 hero clamp and strict crop */
.hero-feature {
  position: relative !important;
  overflow: hidden !important;
  contain: paint !important;
}
.hero-feature > img,
.hero-feature .hero-image,
.hero-feature picture,
.hero-feature video {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  transform-origin: center center !important;
  clip-path: inset(0) !important;
}
.hero-feature .hero-copy {
  position: relative !important;
  z-index: 2 !important;
  overflow: hidden !important;
}
.hero-feature .hero-copy h1 {
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
  line-clamp: 2 !important;
  max-width: min(760px, calc(100vw - 96px)) !important;
  max-height: calc(2 * 1.08em) !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: normal !important;
  word-break: normal !important;
  line-height: 1.08 !important;
  padding: 0 0 .03em !important;
}
@media (max-width: 900px) {
  .hero-feature .hero-copy h1 {
    max-width: calc(100vw - 48px) !important;
    max-height: calc(2 * 1.12em) !important;
    line-height: 1.12 !important;
  }
}

/* v80 prevent second hero title line clipping */
.hero-feature .hero-copy h1 {
  line-height: 1.16 !important;
  max-height: calc(2 * 1.16em + .18em) !important;
  padding-bottom: .14em !important;
}
@media (max-width: 900px) {
  .hero-feature .hero-copy h1 {
    line-height: 1.18 !important;
    max-height: calc(2 * 1.18em + .18em) !important;
  }
}

/* v81 fix hero title clamp height */
.hero-feature .hero-copy h1 {
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
  line-clamp: 2 !important;
  line-height: 1.22 !important;
  max-height: 2.6em !important;
  padding: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
@media (max-width: 900px) {
  .hero-feature .hero-copy h1 {
    line-height: 1.24 !important;
    max-height: 2.7em !important;
  }
}

/* v82 unmask hero text + clearer nav glass */
.hero-feature .hero-copy {
  overflow: visible !important;
}
.hero-feature .hero-copy h1 {
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
  line-clamp: 2 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  line-height: 1.28 !important;
  max-height: 2.72em !important;
  padding: 0 !important;
  margin: 0 !important;
}
.hero-feature .hero-copy p:not(.kicker),
.hero-feature .hero-actions {
  overflow: visible !important;
  max-height: none !important;
  clip-path: none !important;
  mask-image: none !important;
  -webkit-mask-image: none !important;
}
.topbar {
  background: rgba(250,252,249,.54) !important;
  backdrop-filter: blur(24px) saturate(1.32) !important;
  -webkit-backdrop-filter: blur(24px) saturate(1.32) !important;
}
.search {
  background: rgba(255,255,255,.56) !important;
  backdrop-filter: blur(18px) saturate(1.2) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.2) !important;
}

/* v83 fix hero title clipping root cause: remove max-height from clamped title */
.hero-feature .hero-copy,
.hero-feature .hero-copy h1 {
  overflow: visible !important;
}
.hero-feature .hero-copy h1 {
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
  line-clamp: 2 !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  line-height: 1.24 !important;
  padding: 0 0 .22em !important;
  box-sizing: content-box !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
.hero-feature .hero-copy p:not(.kicker) {
  margin-top: clamp(8px, 1vw, 14px) !important;
}

/* v84 remove hero title clipping */
.hero-feature .hero-copy h1 {
  display: block !important;
  -webkit-line-clamp: unset !important;
  line-clamp: unset !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: normal !important;
  line-height: 1.18 !important;
  padding: 0 0 .18em !important;
}
.hero-feature .hero-copy {
  overflow: visible !important;
}

/* v85 hero title two-line ellipsis without fixed-height clipping */
.hero-feature .hero-copy {
  overflow: visible !important;
}
.hero-feature .hero-copy h1 {
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
  line-clamp: 2 !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  line-height: 1.28 !important;
  padding: 0 0 .2em !important;
  margin: 0 !important;
  box-sizing: content-box !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: normal !important;
}

/* v86 stable two-line hero title */
.hero-feature .hero-copy h1 {
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
  line-clamp: 2 !important;
  overflow: hidden !important;
  white-space: normal !important;
  text-overflow: ellipsis !important;
  max-width: min(720px, calc(100vw - 96px)) !important;
  font-size: clamp(34px, 4.4vw, 58px) !important;
  line-height: 1.18 !important;
  height: auto !important;
  max-height: none !important;
  padding: 0 0 .12em !important;
  margin: 0 !important;
}
.hero-feature .hero-copy p:not(.kicker) {
  margin-top: clamp(12px, 1.4vw, 20px) !important;
}
@media (max-width: 900px) {
  .hero-feature .hero-copy h1 {
    max-width: calc(100vw - 48px) !important;
    font-size: clamp(30px, 8vw, 48px) !important;
  }
}

/* v100 filter toggle and hero batch control */
.library-filter-toggle,
.library-filter-toggle[hidden] {
  display: none !important;
}
body.library-mode.library-dock-hidden .library-filter-toggle:not([hidden]) {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}
body.library-mode:not(.library-dock-hidden) .library-filter-toggle {
  display: none !important;
}
.hero-batch-button {
  position: absolute;
  right: clamp(18px, 3.2vw, 44px);
  bottom: clamp(18px, 3vw, 34px);
  z-index: 12;
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid rgba(255,255,255,.38);
  border-radius: 999px;
  background: rgba(255,255,255,.82);
  color: #111;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 14px 34px rgba(0,0,0,.18);
  backdrop-filter: blur(16px);
  cursor: pointer;
}
.hero-batch-button:hover {
  background: #fff;
  transform: translateY(-1px);
}
.hero-feature .hero-rail {
  pointer-events: auto;
}
@media (max-width: 760px) {
  .hero-batch-button {
    right: 14px;
    bottom: 16px;
    min-height: 36px;
    padding: 0 14px;
    font-size: 13px;
  }
  .hero-feature .hero-rail {
    bottom: 60px;
  }
}

/* v87 hero resolved layout */
.hero-feature {
  aspect-ratio: 16 / 10.8 !important;
  overflow: hidden !important;
}
.hero-feature .hero-copy {
  overflow: visible !important;
  gap: clamp(12px, 1.3vw, 20px) !important;
  padding-top: clamp(90px, 8vw, 126px) !important;
  padding-bottom: clamp(118px, 11vw, 158px) !important;
}
.hero-feature .hero-copy h1 {
  display: block !important;
  max-width: min(720px, calc(100vw - 96px)) !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: normal !important;
  font-size: clamp(34px, 4.4vw, 58px) !important;
  line-height: 1.16 !important;
  padding: 0 !important;
  margin: 0 !important;
}
.hero-feature .hero-copy h1 span {
  display: block !important;
  overflow: visible !important;
  white-space: nowrap !important;
  line-height: 1.16 !important;
  padding-bottom: .04em !important;
}
.hero-feature .hero-copy p:not(.kicker) {
  margin-top: 0 !important;
}
@media (max-width: 900px) {
  .hero-feature { aspect-ratio: 4 / 6 !important; }
  .hero-feature .hero-copy h1 { max-width: calc(100vw - 48px) !important; font-size: clamp(30px, 8vw, 48px) !important; }
}

/* v88 hero title flow and scaling */
.hero-feature { aspect-ratio: 16 / 10.8 !important; overflow: hidden !important; }
.hero-feature .hero-copy {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
  overflow: visible !important;
  gap: clamp(14px, 1.5vw, 22px) !important;
  padding-top: clamp(96px, 8vw, 132px) !important;
  padding-bottom: clamp(126px, 12vw, 168px) !important;
}
.hero-feature .hero-copy h1 {
  display: block !important;
  max-width: min(760px, calc(100vw - 96px)) !important;
  font-size: var(--hero-title-size, clamp(34px, 4.4vw, 58px)) !important;
  line-height: 1.13 !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  margin: 0 !important;
  padding: 0 !important;
  text-overflow: clip !important;
}
.hero-feature .hero-copy h1 span {
  display: block !important;
  white-space: nowrap !important;
  overflow: visible !important;
  line-height: 1.13 !important;
  padding-bottom: .08em !important;
}
.hero-feature .hero-copy p:not(.kicker) {
  position: relative !important;
  z-index: 2 !important;
  margin: 0 !important;
  overflow: visible !important;
  max-height: none !important;
}
.hero-feature .hero-actions { margin-top: 0 !important; }
@media (max-width: 900px) {
  .hero-feature { aspect-ratio: 4 / 6 !important; }
  .hero-feature .hero-copy h1 { max-width: calc(100vw - 48px) !important; }
}

/* v89 hero spacing and proportional title */
.hero-feature .hero-copy {
  justify-content: center !important;
  gap: 0 !important;
  padding-top: clamp(104px, 8vw, 140px) !important;
  padding-bottom: clamp(132px, 12vw, 176px) !important;
}
.hero-feature .hero-copy h1 {
  font-size: var(--hero-title-size, clamp(30px, 4.2vw, 58px)) !important;
  line-height: 1.12 !important;
  margin: 0 0 clamp(28px, 3.2vw, 48px) 0 !important;
  max-width: min(760px, 54vw) !important;
  overflow: visible !important;
}
.hero-feature .hero-copy h1 span {
  line-height: 1.12 !important;
  padding-bottom: .06em !important;
}
.hero-feature .hero-copy p:not(.kicker) {
  margin: 0 0 clamp(18px, 2vw, 30px) 0 !important;
}
.hero-feature .hero-actions {
  margin-top: 0 !important;
}
@media (max-width: 900px) {
  .hero-feature .hero-copy h1 { max-width: calc(100vw - 48px) !important; margin-bottom: 28px !important; }
  .hero-feature .hero-copy p:not(.kicker) { margin-bottom: 20px !important; }
}

/* v90 hero overlap fix: keep title, subtitle and actions in one safe flow */
.hero-feature {
  --hero-copy-x: clamp(24px, 4vw, 64px);
  --hero-title-gap: clamp(34px, calc(2.4vw + 1.2vh), 70px);
  --hero-subtitle-gap: clamp(20px, 2.2vw, 34px);
}
.hero-feature .hero-copy {
  position: relative !important;
  height: 100% !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: flex-start !important;
  gap: 0 !important;
  overflow: visible !important;
  padding: clamp(96px, 8vw, 136px) var(--hero-copy-x) clamp(118px, 11vw, 164px) !important;
}
.hero-feature .hero-copy h1 {
  flex: 0 0 auto !important;
  display: block !important;
  width: min(780px, 56vw) !important;
  max-width: min(780px, calc(100vw - 96px)) !important;
  font-size: var(--hero-title-size, clamp(30px, 4vw, 58px)) !important;
  line-height: 1.13 !important;
  margin: 0 0 var(--hero-title-gap) 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  white-space: normal !important;
  text-overflow: clip !important;
}
.hero-feature .hero-copy h1 span {
  display: block !important;
  line-height: 1.13 !important;
  white-space: nowrap !important;
  overflow: visible !important;
  padding: 0 0 .05em !important;
}
.hero-feature .hero-copy p:not(.kicker) {
  position: static !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  bottom: auto !important;
  z-index: 2 !important;
  max-width: min(680px, 58vw) !important;
  margin: 0 0 var(--hero-subtitle-gap) 0 !important;
  overflow: visible !important;
}
.hero-feature .hero-actions {
  position: static !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  bottom: auto !important;
  z-index: 2 !important;
  margin: 0 !important;
  flex-wrap: wrap !important;
}
@media (max-width: 900px) {
  .hero-feature {
    --hero-copy-x: clamp(20px, 6vw, 34px);
    --hero-title-gap: clamp(30px, 7vw, 48px);
    --hero-subtitle-gap: clamp(18px, 5vw, 28px);
  }
  .hero-feature .hero-copy {
    padding-top: clamp(92px, 22vw, 132px) !important;
    padding-bottom: clamp(112px, 24vw, 154px) !important;
  }
  .hero-feature .hero-copy h1 {
    width: calc(100vw - 48px) !important;
    max-width: calc(100vw - 48px) !important;
  }
  .hero-feature .hero-copy p:not(.kicker) {
    max-width: calc(100vw - 48px) !important;
  }
}

/* v95 final override: profile full bleed, centered chips, lightbox controls */
body.user-mode main,
body.user-mode .user-page {
  width: 100vw !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
body.user-mode .user-shell {
  width: 100vw !important;
  max-width: none !important;
  min-height: calc(100vh - 74px) !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
body.user-mode .user-cover { border-radius: 0 !important; }
body.user-mode .user-body {
  width: min(1180px, calc(100vw - 48px)) !important;
  margin: 0 auto !important;
}
.user-stats span,
.user-tabs button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 32px !important;
  padding: 0 13px !important;
  line-height: 1 !important;
  text-align: center !important;
  white-space: nowrap !important;
}
.lightbox-close,
.lightbox-nav,
.lightbox-prev,
.lightbox-next {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  line-height: 1 !important;
  text-align: center !important;
}
.lightbox-close {
  width: 42px !important;
  height: 42px !important;
  font-size: 28px !important;
}
.lightbox-nav,
.lightbox-prev,
.lightbox-next {
  width: 46px !important;
  height: 46px !important;
  min-width: 46px !important;
  min-height: 46px !important;
  border-radius: 50% !important;
  font-size: 30px !important;
}
.lightbox-details {
  max-height: 86vh !important;
  overflow: hidden auto !important;
  padding: 24px !important;
  border-radius: 14px !important;
  background: var(--surface) !important;
  background-clip: padding-box !important;
  scrollbar-gutter: stable !important;
}
.lightbox-details > * {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* v96 keep topbar visible on user profile */
body.user-mode:not(.lightbox-open) .topbar {
  position: sticky !important;
  top: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateY(0) !important;
}

/* v105 refresh/search/performance polish */
body:not(.library-mode):not(.user-mode) {
  background: #f7faf7 !important;
}
body:not(.library-mode):not(.user-mode)::before {
  background:
    linear-gradient(180deg, rgba(255,255,255,.72), rgba(247,250,247,.96)),
    radial-gradient(circle at 50% 24%, rgba(222,239,229,.34), transparent 46%) !important;
}
body:not(.library-mode):not(.user-mode)::after {
  opacity: .18 !important;
}
.hero-feature::after {
  background: linear-gradient(90deg, rgba(0,0,0,.58), rgba(0,0,0,.18) 52%, rgba(0,0,0,.05)) !important;
}
.home-ia {
  background:
    linear-gradient(180deg, rgba(226,244,234,.88), rgba(247,252,249,.7)),
    radial-gradient(circle at 50% 0%, rgba(170,214,190,.34), transparent 56%) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.72) !important;
}
.stats-strip {
  align-items: stretch !important;
}
.stats-strip .tag-stat strong {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  align-content: flex-start !important;
}
.stats-strip .tag-stat em {
  font-size: 12px !important;
  line-height: 1 !important;
}
.user-search-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  width: min(1180px, calc(100vw - 48px));
  margin: 0 auto 22px;
}
.user-search-card {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 12px 14px;
  border: 1px solid rgba(13,112,64,.12);
  border-radius: 16px;
  background: rgba(255,255,255,.82);
  box-shadow: 0 14px 34px rgba(13,112,64,.08);
  text-align: left;
  cursor: pointer;
}
.user-search-card img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}
.user-search-card span {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.user-search-card b,
.user-search-card small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-search-card small,
.user-search-card em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}
.all-works-grid {
  content-visibility: auto;
  contain-intrinsic-size: 1200px;
}
.all-work-card {
  break-inside: avoid;
  contain: layout paint style;
}
.all-work-card img {
  background: #eef4ef;
}
@media (max-width: 760px) {
  .user-search-results { width: calc(100vw - 28px); grid-template-columns: 1fr; }
  .user-search-card { grid-template-columns: 44px 1fr; }
  .user-search-card em { grid-column: 2; }
}

/* v106 full-width home IA, two-line hero title and stable masonry slots */
main > .home-ia,
.home-ia {
  width: 100vw !important;
  max-width: none !important;
  min-height: clamp(300px, 36vh, 380px) !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  margin-top: 0 !important;
  padding: clamp(44px, 6vw, 72px) max(24px, calc((100vw - 1180px) / 2)) !important;
  border-radius: 0 !important;
  background:
    linear-gradient(180deg, rgba(229,246,236,.96) 0%, rgba(246,252,248,.94) 100%),
    radial-gradient(circle at 50% 10%, rgba(150,205,178,.28), transparent 58%) !important;
}
.hero-feature .hero-copy h1 {
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
  line-clamp: 2 !important;
  max-height: calc(2 * 1.13em) !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: normal !important;
  word-break: break-word !important;
}
.hero-feature .hero-copy h1 span {
  display: inline !important;
  white-space: normal !important;
}
.all-work-card {
  transform: translateZ(0);
}
.all-work-card img {
  display: block !important;
  width: 100% !important;
  aspect-ratio: var(--pin-ratio, 16 / 10) !important;
  object-fit: cover !important;
  background:
    linear-gradient(180deg, rgba(238,244,239,.95), rgba(226,236,229,.95)) !important;
}
.pin-hover-ui {
  aspect-ratio: var(--pin-ratio, 16 / 10) !important;
}

/* v107 compact hot tags and project spacing */
.stats-strip .tag-stat strong {
  max-height: 76px !important;
  overflow: hidden !important;
}
.stats-strip .tag-stat em {
  max-width: 72px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
main > .home-ia,
.home-ia {
  min-height: clamp(230px, 28vh, 310px) !important;
  padding-top: clamp(34px, 4.5vw, 56px) !important;
  padding-bottom: clamp(28px, 4vw, 48px) !important;
}
.portfolio-section.projects-section,
#projects.portfolio-section {
  margin-top: clamp(24px, 3vw, 44px) !important;
  padding-top: clamp(24px, 3vw, 42px) !important;
}
.portfolio-section.projects-section .section-head {
  margin-bottom: clamp(20px, 2.4vw, 34px) !important;
}

/* v109 profile/comment polish */
.mini-role {
  background: #111 !important;
}
.mini-role:has(+ *),
.comment-body > .mini-role {
  background: #111 !important;
}
.comment-body > .mini-role,
.comment-user-pic .mini-role,
.verified-badge {
  box-shadow: none !important;
}
.comment-body > .mini-role {
  background: #9ca3af !important;
  color: #fff !important;
}
.comment-body:has(.mini-role) > .mini-role {
  background: #9ca3af !important;
}
.comment-body time {
  display: block;
  margin: 4px 0 8px;
  color: #8a948d;
  font-size: 12px;
  line-height: 1.2;
}
body.user-mode .user-back {
  position: absolute !important;
  top: clamp(16px, 2vw, 28px) !important;
  left: clamp(16px, 2vw, 30px) !important;
  z-index: 8 !important;
}
body.user-mode .user-cover {
  position: relative !important;
}
/* v113: move profile back button to the cover's upper-left corner */
body.user-mode .user-cover-content {
  position: static !important;
}
body.user-mode .user-cover .user-back {
  top: 18px !important;
  left: 22px !important;
  margin: 0 !important;
}
.mini-role.ai-role,
.comment-body > .mini-role.ai-role,
.comment-user-pic .mini-role.ai-role {
  background: #9ca3af !important;
  color: #fff !important;
  box-shadow: none !important;
}
.comment-body > .mini-role:not(.ai-role) {
  background: #111 !important;
}

/* v114 smart boards and AI category cards */
.user-tabs button.active,
.user-tabs button:hover {
  background: #111 !important;
  color: #fff !important;
}
.user-board-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}
.user-board-card {
  position: relative;
  display: flex;
  min-height: 230px;
  overflow: hidden;
  border: 0;
  border-radius: 10px;
  padding: 18px;
  color: #fff;
  background: #111;
  text-align: left;
  flex-direction: column;
  justify-content: flex-end;
  isolation: isolate;
}
.user-board-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.user-board-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.78));
  z-index: -1;
}
.user-board-card span,
.user-board-card b {
  font-size: 12px;
  font-weight: 800;
  opacity: .9;
}
.user-board-card strong {
  margin-top: 6px;
  font-size: 24px;
  line-height: 1.05;
}
.user-board-card em {
  margin-top: 8px;
  max-width: 24ch;
  font-style: normal;
  font-size: 13px;
  line-height: 1.35;
  opacity: .84;
}
.user-board-card.ai-board span,
.ai-category-card i {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 3px 8px;
  background: rgba(255,255,255,.9);
  color: #111;
}
.ai-category-card i {
  margin-left: 8px;
  font-style: normal;
  font-size: 11px;
}
.ai-category-button {
  margin-left: 8px;
}
@media (max-width: 760px) {
  .user-board-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* v115 Cliffs Board and full-width category module */
.board-toolbar {
  display: flex;
  gap: 8px;
  margin: -8px 0 18px;
}
.board-toolbar button {
  min-height: 32px;
  border: 0;
  border-radius: 999px;
  padding: 0 14px;
  background: #111;
  color: #fff;
  font-weight: 800;
}
.category-zone {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  border-radius: 0 !important;
}
.category-zone .section-heading {
  display: flex !important;
  align-items: end !important;
  justify-content: space-between !important;
  width: 100% !important;
}
.category-zone .create-category-button {
  margin-left: auto !important;
}
#aiCategoryButton {
  display: none !important;
}

/* v116 mobile, search page, and board editing polish */
.search-box:focus-within {
  border-color: var(--line) !important;
  box-shadow: none !important;
}
.search-box input:focus {
  outline: none !important;
}
.search-page {
  min-height: 100vh;
  padding: clamp(96px, 12vw, 140px) clamp(16px, 5vw, 72px) 72px;
  background: linear-gradient(180deg, #f5fbf7 0%, #fff 42%);
}
.search-shell {
  max-width: 1320px;
  margin: 0 auto;
}
.search-head {
  display: grid;
  gap: 8px;
  margin-bottom: 22px;
}
.search-head h1 {
  margin: 0;
  font-size: clamp(42px, 8vw, 96px);
  line-height: .92;
}
.search-head p {
  margin: 0;
  color: #6f7a73;
}
.search-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.search-chips button,
.board-mini-action {
  border: 0;
  border-radius: 999px;
  min-height: 30px;
  padding: 0 12px;
  background: #111;
  color: #fff;
  font-weight: 800;
}
.search-results-users {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin-bottom: 24px;
}
.search-results-users button {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  background: rgba(255,255,255,.82);
  text-align: left;
}
.search-results-users img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}
.search-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}
.user-tile-wrap {
  position: relative;
}
.user-tile-wrap .user-tile {
  width: 100%;
  height: 100%;
}
.user-tile-wrap .board-mini-action {
  position: absolute;
  right: 8px;
  top: 8px;
  z-index: 2;
}
.board-mini-action.danger,
.board-delete {
  background: #7f1d1d !important;
}
.board-detail-grid {
  display: block !important;
}
.board-detail-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.board-detail-head button,
.board-add-strip button {
  border: 0;
  border-radius: 999px;
  min-height: 30px;
  padding: 0 12px;
  background: #111;
  color: #fff;
  font-weight: 800;
}
.board-detail-head strong {
  font-size: 22px;
}
.board-add-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 0 16px;
}
.board-add-strip button {
  display: grid;
  grid-template-columns: 38px auto;
  gap: 6px;
  align-items: center;
  flex: 0 0 auto;
}
.board-add-strip img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
}
.board-pin-grid {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
body:not(.user-mode) .board-toolbar {
  display: none !important;
}
.category-zone,
#categoriesPortfolio,
.feature-duo,
.projects-section {
  max-width: none !important;
  width: 100% !important;
}
.category-sections {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
}
.user-shell {
  animation: userFadeIn .34s ease both;
}
@keyframes userFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 760px) {
  body { overflow-x: hidden; }
  .topbar {
    left: 8px !important;
    right: 8px !important;
    top: 8px !important;
    display: grid !important;
    grid-template-columns: auto 1fr auto !important;
    gap: 8px !important;
    padding: 8px !important;
  }
  .brand-name { display: none !important; }
  .main-nav {
    grid-column: 1 / -1;
    display: flex !important;
    overflow-x: auto;
    padding-bottom: 2px;
  }
  .search-box {
    grid-column: 1 / -1;
    order: 3;
    min-width: 0 !important;
  }
  .hero-feature {
    min-height: 78vh !important;
  }
  .hero-copy {
    left: 18px !important;
    right: 18px !important;
    bottom: 76px !important;
  }
  .hero-copy h1 {
    font-size: clamp(38px, 13vw, 64px) !important;
  }
  .home-ia,
  .portfolio-section,
  .feature-duo,
  .category-zone {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }
  .feature-duo,
  .user-grid,
  .board-pin-grid,
  .search-results-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .user-cover {
    min-height: 300px !important;
    padding: 72px 18px 28px !important;
  }
  .user-cover-content {
    grid-template-columns: 72px minmax(0,1fr) !important;
    gap: 12px !important;
  }
  .user-cover-content > img {
    width: 72px !important;
    height: 72px !important;
  }
  .user-cover h2 {
    font-size: 38px !important;
  }
  .user-body {
    padding: 18px 14px !important;
  }
  .user-tabs,
  .board-toolbar {
    overflow-x: auto;
    flex-wrap: nowrap !important;
  }
  .user-board-grid {
    grid-template-columns: 1fr !important;
  }
  .search-page {
    padding: 126px 14px 48px;
  }
}

/* v119 Pinterest-like Cliffs Board UI */
.v119-board-shell .user-body {
  background: #fff !important;
}
.v119-board-shell .user-tabs {
  gap: 8px !important;
  margin-bottom: 18px !important;
}
.v119-board-shell .user-tabs button,
.v119-board-shell .board-toolbar button,
.board-detail-top button,
.board-add-strip button span {
  border-radius: 999px !important;
  font-weight: 900 !important;
}
.v119-board-shell .user-tabs button.active,
.v119-board-shell .board-toolbar button,
.board-detail-top .board-back {
  background: #111 !important;
  color: #fff !important;
}
.v119-board-shell .board-toolbar {
  margin: -6px 0 20px !important;
  padding: 0 !important;
  gap: 8px !important;
  background: transparent !important;
  border: 0 !important;
}
.v119-board-shell .board-toolbar button {
  min-height: 40px !important;
  padding: 0 16px !important;
  box-shadow: 0 10px 24px rgba(0,0,0,.12) !important;
}
.v119-board-shell .user-board-grid {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
  gap: 30px 18px !important;
  align-items: start !important;
}
.v119-board-shell .user-board-card {
  position: relative !important;
  display: grid !important;
  gap: 10px !important;
  padding: 0 !important;
  min-height: 0 !important;
  overflow: visible !important;
  border: 0 !important;
  background: transparent !important;
  color: #111 !important;
  text-align: left !important;
  transform-origin: center bottom;
  animation: boardV119CardIn .48s cubic-bezier(.2,.8,.2,1) both !important;
}
.v119-board-shell .user-board-card::after,
.v119-board-shell .user-board-card > img {
  display: none !important;
}
.v119-board-shell .board-cover {
  display: grid !important;
  grid-template-columns: 1.35fr .85fr !important;
  grid-template-rows: repeat(3, 1fr) !important;
  gap: 3px !important;
  overflow: hidden !important;
  aspect-ratio: 1 / 1.08 !important;
  border-radius: 16px !important;
  background: #eef3ef !important;
  box-shadow: none !important;
  transition: transform .28s cubic-bezier(.2,.8,.2,1), filter .28s ease !important;
}
.v119-board-shell .board-cover.empty {
  display: grid !important;
  place-items: center !important;
  color: #607067 !important;
  font-weight: 900 !important;
}
.v119-board-shell .board-cover img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transition: transform .34s ease !important;
}
.v119-board-shell .board-cover img.main {
  grid-row: 1 / 4 !important;
}
.v119-board-shell .board-cover img:nth-child(4) {
  display: block !important;
}
.v119-board-shell .user-board-card:hover .board-cover {
  transform: translateY(-5px) scale(1.012);
  filter: saturate(1.06);
}
.v119-board-shell .user-board-card:hover .board-cover img {
  transform: scale(1.035);
}
.v119-board-shell .board-card-meta {
  display: grid !important;
  gap: 4px !important;
  padding: 0 2px !important;
}
.v119-board-shell .board-card-meta span {
  color: #6b6b6b !important;
  background: transparent !important;
  padding: 0 !important;
  font-size: 12px !important;
}
.v119-board-shell .board-card-meta strong {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #111 !important;
  font-size: 18px !important;
  line-height: 1.2 !important;
}
.v119-board-shell .board-card-meta em,
.v119-board-shell .board-card-meta b {
  color: #6b6b6b !important;
  font-size: 13px !important;
  font-style: normal !important;
}
.v119-board-shell .board-detail-view {
  display: block !important;
  animation: boardV119DetailIn .32s ease both !important;
}
.v119-board-shell .board-detail-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
}
.v119-board-shell .board-detail-top > div {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}
.v119-board-shell .board-detail-top h3 {
  margin: 0;
  max-width: min(56vw, 620px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: clamp(22px, 3.2vw, 40px);
  line-height: 1;
}
.v119-board-shell .board-detail-top p {
  margin: 0;
  color: #555;
  font-weight: 800;
  white-space: nowrap;
}
.v119-board-shell .board-delete {
  margin-left: auto;
  background: #9e2f2f !important;
  color: #fff !important;
}
.v119-board-shell .board-back,
.v119-board-shell .board-delete {
  border: 0 !important;
  min-height: 40px !important;
  padding: 0 14px !important;
  box-shadow: 0 8px 20px rgba(0,0,0,.12);
}
.v119-board-shell .board-add-strip {
  display: flex !important;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  margin: 2px 0 18px !important;
  padding: 0 0 4px !important;
  border: 0 !important;
}
.v119-board-shell .board-add-strip b {
  flex: 0 0 auto;
  margin-right: 4px;
}
.v119-board-shell .board-add-strip button {
  position: relative;
  flex: 0 0 auto;
  width: 76px;
  height: 36px;
  overflow: hidden;
  border: 0 !important;
  border-radius: 999px !important;
  padding: 0 !important;
  background: #111 !important;
}
.v119-board-shell .board-add-strip img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  opacity: .72;
}
.v119-board-shell .board-add-strip span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0,0,0,.45);
}
.v119-board-shell .board-pin-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(166px, 1fr)) !important;
  gap: 10px !important;
  align-items: start !important;
}
.v119-board-shell .board-pin-card {
  position: relative;
  min-width: 0;
  animation: boardV119PinIn .38s cubic-bezier(.2,.8,.2,1) both !important;
}
.v119-board-shell .board-pin-image {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  padding: 0;
  background: #edf1ee;
  box-shadow: none;
}
.v119-board-shell .board-pin-image img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5.4;
  object-fit: cover;
  transition: transform .28s ease, filter .28s ease;
}
.v119-board-shell .board-pin-image span {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 7px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  text-shadow: 0 2px 12px rgba(0,0,0,.6);
}
.v119-board-shell .board-pin-card:hover img {
  transform: scale(1.045);
  filter: saturate(1.06);
}
.v119-board-shell .board-pin-remove {
  position: absolute;
  right: 7px;
  top: 7px;
  z-index: 2;
  border: 0;
  border-radius: 999px;
  min-height: 30px;
  padding: 0 10px;
  background: #9e2f2f;
  color: #fff;
  font-weight: 900;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .18s ease, transform .18s ease;
}
.v119-board-shell .board-pin-card:hover .board-pin-remove {
  opacity: 1;
  transform: translateY(0);
}
@keyframes boardV119CardIn {
  from { opacity: 0; transform: translateY(24px) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes boardV119DetailIn {
  from { opacity: 0; transform: translateX(18px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes boardV119PinIn {
  from { opacity: 0; transform: translateY(14px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@media (max-width: 760px) {
  .v119-board-shell .user-board-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 24px 10px !important;
  }
  .v119-board-shell .board-pin-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }
  .v119-board-shell .board-detail-top {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .v119-board-shell .board-detail-top h3 {
    max-width: 100%;
    font-size: 24px;
  }
  .v119-board-shell .board-delete {
    margin-left: 0;
  }
  .v119-board-shell .board-pin-remove {
    opacity: 1;
    transform: none;
  }
}

/* v120 board refinement: lighter controls and hover-only image labels */
.v119-board-shell .user-body {
  background: #fbfcfb !important;
}
.v119-board-shell .user-tabs button {
  background: #f2f7f3 !important;
  color: #111 !important;
  box-shadow: none !important;
}
.v119-board-shell .user-tabs button.active {
  background: #111 !important;
  color: #fff !important;
}
.v119-board-shell .board-toolbar button {
  background: #eef6f0 !important;
  color: #111 !important;
  min-height: 34px !important;
  padding: 0 14px !important;
  box-shadow: none !important;
  transition: background .18s ease, transform .18s ease;
}
.v119-board-shell .board-toolbar button:hover {
  background: #e1eee5 !important;
  transform: translateY(-1px);
}
.v119-board-shell .board-detail-top {
  margin-bottom: 16px !important;
}
.v119-board-shell .board-detail-top .board-back {
  background: #f2f7f3 !important;
  color: #111 !important;
  box-shadow: none !important;
}
.v119-board-shell .board-detail-top .board-back:hover {
  background: #111 !important;
  color: #fff !important;
}
.v119-board-shell .board-delete {
  background: #f4e8e8 !important;
  color: #8f2424 !important;
  box-shadow: none !important;
}
.v119-board-shell .board-delete:hover {
  background: #9e2f2f !important;
  color: #fff !important;
}
.v119-board-shell .board-add-strip {
  gap: 10px !important;
  padding-bottom: 8px !important;
}
.v119-board-shell .board-add-strip button {
  width: 72px !important;
  height: 32px !important;
  background: #f2f7f3 !important;
  box-shadow: none !important;
  transition: transform .18s ease, background .18s ease;
}
.v119-board-shell .board-add-strip button:hover {
  background: #e4efe7 !important;
  transform: translateY(-2px);
}
.v119-board-shell .board-add-strip img {
  opacity: 1 !important;
  filter: saturate(.98);
}
.v119-board-shell .board-add-strip span {
  color: #fff !important;
  background: linear-gradient(90deg, rgba(0,0,0,.48), rgba(0,0,0,.12));
}
.v119-board-shell .board-pin-grid {
  gap: 12px !important;
}
.v119-board-shell .board-pin-image {
  border-radius: 9px !important;
  box-shadow: 0 1px 0 rgba(0,0,0,.04) !important;
  transition: box-shadow .22s ease, transform .22s ease;
}
.v119-board-shell .board-pin-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.22), transparent 32%, rgba(0,0,0,.5));
  opacity: 0;
  transition: opacity .18s ease;
  pointer-events: none;
}
.v119-board-shell .board-pin-image span,
.v119-board-shell .board-pin-remove {
  opacity: 0 !important;
  pointer-events: none;
}
.v119-board-shell .board-pin-image span {
  transform: translateY(7px);
  transition: opacity .18s ease, transform .18s ease;
}
.v119-board-shell .board-pin-remove {
  background: rgba(155, 38, 38, .94) !important;
  transform: translateY(-6px) scale(.96) !important;
  transition: opacity .18s ease, transform .18s ease, background .18s ease !important;
}
.v119-board-shell .board-pin-card:hover .board-pin-image,
.v119-board-shell .board-pin-card:focus-within .board-pin-image {
  box-shadow: 0 14px 30px rgba(20,30,24,.14) !important;
  transform: translateY(-2px);
}
.v119-board-shell .board-pin-card:hover .board-pin-image::after,
.v119-board-shell .board-pin-card:focus-within .board-pin-image::after {
  opacity: 1;
}
.v119-board-shell .board-pin-card:hover .board-pin-image span,
.v119-board-shell .board-pin-card:focus-within .board-pin-image span,
.v119-board-shell .board-pin-card:hover .board-pin-remove,
.v119-board-shell .board-pin-card:focus-within .board-pin-remove {
  opacity: 1 !important;
  pointer-events: auto;
  transform: translateY(0) scale(1) !important;
}
.v119-board-shell .board-card-meta strong {
  font-size: 17px !important;
}
.v119-board-shell .board-cover {
  border-radius: 14px !important;
}
@media (max-width: 760px) {
  .v119-board-shell .board-pin-image span,
  .v119-board-shell .board-pin-remove {
    opacity: 0 !important;
    pointer-events: none;
  }
  .v119-board-shell .board-pin-card:active .board-pin-image span,
  .v119-board-shell .board-pin-card:active .board-pin-remove {
    opacity: 1 !important;
    pointer-events: auto;
  }
}

/* v121 search page ranking */
body.search-mode #categoriesPortfolio,
body.search-mode .category-zone {
  display: none !important;
}
.today-rank {
  margin: 22px 0 18px;
}
.today-rank-head {
  display: flex;
  align-items: end;
  gap: 12px;
  margin-bottom: 12px;
}
.today-rank-head .kicker {
  margin: 0;
}
.today-rank-head h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 42px);
  line-height: 1;
}
.today-rank-head span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.today-rank-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.today-rank-list button {
  position: relative;
  display: grid;
  width: 100%;
  overflow: hidden;
  border: 0;
  border-radius: 12px;
  padding: 0;
  background: #eef3ef;
  text-align: left;
  aspect-ratio: 1.22 / 1;
}
.today-rank-list img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .25s ease, filter .25s ease;
}
.today-rank-list button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.28), rgba(0,0,0,.04) 42%, rgba(0,0,0,.58));
}
.today-rank-list b {
  position: absolute;
  z-index: 1;
  left: 8px;
  top: 8px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: rgba(255,255,255,.9);
  color: #111;
  font-size: 13px;
  font-weight: 900;
}
.today-rank-list span {
  position: absolute;
  z-index: 1;
  left: 10px;
  right: 10px;
  bottom: 9px;
  display: grid;
  gap: 2px;
  color: #fff;
}
.today-rank-list strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}
.today-rank-list em {
  font-style: normal;
  font-size: 11px;
  opacity: .88;
}
.today-rank-list button:hover img {
  transform: scale(1.045);
  filter: saturate(1.06);
}
@media (max-width: 980px) {
  .today-rank-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .today-rank-head {
    display: grid;
    gap: 6px;
  }
  .today-rank-list {
    grid-template-columns: 1fr;
  }
}

/* v123 hotfix: remove legacy board pseudo overlays */
.v119-board-shell .user-board-card::before,
.v119-board-shell .user-board-card::after {
  content: none !important;
  display: none !important;
}
.v119-board-shell .user-board-card > img {
  display: none !important;
}
.v119-board-shell .board-cover {
  position: relative !important;
  z-index: 1 !important;
}
.v119-board-shell .board-card-meta {
  position: relative !important;
  z-index: 2 !important;
}

/* v124 search chips and vertical ranking list */
.search-chips button {
  background: #e9f5ec !important;
  color: #0d7040 !important;
  border: 1px solid rgba(13,112,64,.1) !important;
  box-shadow: none !important;
}
.search-chips button:hover {
  background: #dceee2 !important;
  color: #07582f !important;
  transform: translateY(-1px);
}
.today-rank {
  max-width: 720px;
}
.today-rank-head {
  align-items: baseline !important;
  margin-bottom: 14px !important;
}
.today-rank-list {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 8px !important;
}
.today-rank-list button {
  display: grid !important;
  grid-template-columns: 56px 1fr !important;
  align-items: center !important;
  gap: 10px !important;
  min-height: 62px !important;
  aspect-ratio: auto !important;
  border-radius: 12px !important;
  padding: 6px 10px 6px 6px !important;
  background: #f4f8f5 !important;
  color: #111 !important;
  box-shadow: none !important;
  transition: background .18s ease, transform .18s ease;
}
.today-rank-list button::after {
  display: none !important;
}
.today-rank-list button:hover {
  background: #eaf4ed !important;
  transform: translateX(2px);
}
.today-rank-list img {
  width: 56px !important;
  height: 50px !important;
  border-radius: 8px !important;
  object-fit: cover !important;
  grid-column: 1 !important;
  grid-row: 1 !important;
}
.today-rank-list b {
  left: 2px !important;
  top: 2px !important;
  z-index: 2 !important;
  width: 22px !important;
  height: 22px !important;
  background: rgba(255,255,255,.92) !important;
  color: #111 !important;
  font-size: 12px !important;
}
.today-rank-list span {
  position: static !important;
  z-index: 1 !important;
  display: grid !important;
  gap: 3px !important;
  color: #111 !important;
  min-width: 0 !important;
}
.today-rank-list strong {
  color: #111 !important;
  font-size: 14px !important;
  line-height: 1.2 !important;
}
.today-rank-list em {
  color: #66736b !important;
  font-size: 12px !important;
}
.today-rank-list button:hover img {
  transform: none !important;
  filter: saturate(1.04);
}
@media (max-width: 760px) {
  .today-rank {
    max-width: none;
  }
}

/* v125 search title and board cover hotfix */
.today-rank-head h2 {
  display: none !important;
}
.today-rank-head .kicker {
  font-size: 30px !important;
  line-height: 1 !important;
  font-weight: 900 !important;
}
.v119-board-shell .board-cover img {
  position: static !important;
  inset: auto !important;
  z-index: auto !important;
  display: block !important;
}
.v119-board-shell .board-cover {
  display: block !important;
  aspect-ratio: 1 / 1.08 !important;
}
.v119-board-shell .board-cover img.main {
  width: 100% !important;
  height: 100% !important;
}
.v119-board-shell .board-cover img:not(.main) {
  display: none !important;
}

/* v126 final board cards: white info cards with compact top cover */
.v119-board-shell .user-board-grid {
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)) !important;
  gap: 28px 22px !important;
  align-items: start !important;
}
.v119-board-shell .user-board-card {
  display: grid !important;
  grid-template-rows: auto auto !important;
  gap: 10px !important;
  min-height: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #111 !important;
  text-align: left !important;
  box-shadow: none !important;
  isolation: auto !important;
}
.v119-board-shell .user-board-card::before,
.v119-board-shell .user-board-card::after,
.v119-board-shell .user-board-card > img {
  content: none !important;
  display: none !important;
}
.v119-board-shell .board-cover {
  display: block !important;
  width: min(108px, 72%) !important;
  aspect-ratio: 1 / .72 !important;
  overflow: hidden !important;
  border-radius: 12px !important;
  background: #eaf2ed !important;
  box-shadow: 0 14px 30px rgba(24,42,32,.08) !important;
  transform: none !important;
}
.v119-board-shell .board-cover img {
  position: static !important;
  inset: auto !important;
  z-index: auto !important;
  display: none !important;
}
.v119-board-shell .board-cover img.main {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transform: none !important;
}
.v119-board-shell .user-board-card:hover .board-cover {
  transform: translateY(-3px) !important;
}
.v119-board-shell .user-board-card:hover .board-cover img {
  transform: none !important;
}
.v119-board-shell .board-card-meta {
  position: static !important;
  z-index: auto !important;
  display: grid !important;
  gap: 5px !important;
  padding: 0 !important;
  max-width: 180px !important;
}
.v119-board-shell .board-card-meta span {
  width: fit-content !important;
  padding: 2px 7px !important;
  border-radius: 999px !important;
  background: #f1f7f3 !important;
  color: #111 !important;
  font-size: 11px !important;
  font-weight: 900 !important;
}
.v119-board-shell .board-card-meta strong {
  color: #111 !important;
  font-size: 22px !important;
  line-height: 1.05 !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
}
.v119-board-shell .board-card-meta em,
.v119-board-shell .board-card-meta b {
  color: #7a847d !important;
  font-size: 13px !important;
  line-height: 1.35 !important;
  font-style: normal !important;
}
.v119-board-shell .board-card-meta b {
  font-weight: 800 !important;
}
@media (max-width: 760px) {
  .v119-board-shell .user-board-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* v127 final layout fixes */
.search-results-users {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
  gap: 10px !important;
  align-items: stretch !important;
}
.search-results-users .search-user-card,
.search-results-users button {
  display: grid !important;
  grid-template-columns: 40px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 10px !important;
  min-width: 0 !important;
  width: 100% !important;
  min-height: 54px !important;
  overflow: hidden !important;
  padding: 8px 12px !important;
  border-radius: 10px !important;
}
.search-results-users img {
  position: static !important;
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  flex: none !important;
}
.search-results-users span {
  min-width: 0 !important;
  overflow: hidden !important;
}
.search-results-users b,
.search-results-users small {
  display: block !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
.v127-board-shell .user-board-grid {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
  gap: 30px 24px !important;
  align-items: start !important;
}
.v127-board-shell .v127-board-card {
  display: grid !important;
  justify-items: start !important;
  gap: 6px !important;
  min-height: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  border: 0 !important;
  background: transparent !important;
  color: #111 !important;
  text-align: left !important;
  box-shadow: none !important;
}
.v127-board-shell .v127-board-card::before,
.v127-board-shell .v127-board-card::after {
  display: none !important;
  content: none !important;
}
.v127-board-shell .v127-board-thumb {
  position: static !important;
  display: block !important;
  width: 108px !important;
  height: 76px !important;
  border-radius: 12px !important;
  object-fit: cover !important;
  box-shadow: 0 12px 28px rgba(20,38,28,.1) !important;
  transition: transform .2s ease;
}
.v127-board-shell .v127-board-card:hover .v127-board-thumb {
  transform: translateY(-3px);
}
.v127-board-shell .v127-board-card span {
  margin-top: 4px;
  width: fit-content;
  padding: 2px 7px;
  border-radius: 999px;
  background: #f2f7f3;
  color: #111;
  font-size: 11px;
  font-weight: 900;
}
.v127-board-shell .v127-board-card strong {
  color: #111;
  font-size: 22px;
  line-height: 1.05;
}
.v127-board-shell .v127-board-card em,
.v127-board-shell .v127-board-card b {
  max-width: 170px;
  color: #758178;
  font-size: 13px;
  line-height: 1.35;
  font-style: normal;
}
#latestFocusGrid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  align-content: start !important;
}
#latestFocusGrid .featured-card {
  min-height: 190px;
}
@media (max-width: 760px) {
  .search-results-users {
    grid-template-columns: 1fr !important;
  }
  .v127-board-shell .user-board-grid,
  #latestFocusGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* v130 restore hero strip and rebuild Cliffs Board */
.hero-feature .hero-rail {
  left: 50% !important;
  right: auto !important;
  bottom: clamp(16px, 2.2vw, 26px) !important;
  width: min(820px, calc(100% - 240px)) !important;
  height: auto !important;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 10px !important;
  transform: translateX(-50%) !important;
  z-index: 13 !important;
}
.hero-feature .hero-rail button,
.hero-feature .hero-rail button.active,
.hero-feature .hero-rail button:hover {
  width: auto !important;
  height: 58px !important;
  min-height: 58px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  padding: 6px 12px 6px 6px !important;
  border: 1px solid rgba(255,255,255,.28) !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,.18) !important;
  color: #fff !important;
  box-shadow: 0 12px 30px rgba(0,0,0,.16) !important;
  backdrop-filter: blur(16px) !important;
  opacity: .86 !important;
}
.hero-feature .hero-rail button.active,
.hero-feature .hero-rail button:hover {
  background: rgba(255,255,255,.32) !important;
  opacity: 1 !important;
}
.hero-feature .hero-rail img {
  width: 46px !important;
  height: 46px !important;
  flex: 0 0 46px !important;
  border-radius: 50% !important;
}
.hero-feature .hero-rail span {
  display: block !important;
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  font-size: 13px !important;
  font-weight: 900 !important;
}
.hero-batch-button {
  right: clamp(22px, 3.5vw, 54px) !important;
  bottom: clamp(20px, 2.4vw, 32px) !important;
  z-index: 14 !important;
}
.v130-board-shell .user-body {
  background: #fbfcfb !important;
}
.v130-board-shell .user-tabs {
  gap: 8px !important;
  margin-bottom: 18px !important;
}
.v130-board-shell .user-tabs button,
.v130-board-shell .board-toolbar button {
  border-radius: 999px !important;
  font-weight: 900 !important;
}
.v130-board-shell .user-tabs button {
  background: #f2f7f3 !important;
  color: #111 !important;
}
.v130-board-shell .user-tabs button.active {
  background: #111 !important;
  color: #fff !important;
}
.v130-board-shell .board-toolbar {
  margin: -6px 0 22px !important;
  padding: 0 !important;
  gap: 8px !important;
  background: transparent !important;
  border: 0 !important;
}
.v130-board-shell .board-toolbar button {
  min-height: 36px !important;
  padding: 0 15px !important;
  background: #eef6f0 !important;
  color: #111 !important;
  box-shadow: none !important;
}
.v130-board-shell .user-board-grid {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
  gap: 30px 18px !important;
  align-items: start !important;
}
.v130-board-shell .user-board-card {
  display: grid !important;
  gap: 10px !important;
  padding: 0 !important;
  min-height: 0 !important;
  overflow: visible !important;
  border: 0 !important;
  background: transparent !important;
  color: #111 !important;
  text-align: left !important;
  animation: boardV119CardIn .42s cubic-bezier(.2,.8,.2,1) both !important;
}
.v130-board-shell .board-cover {
  display: grid !important;
  grid-template-columns: 1.35fr .85fr !important;
  grid-template-rows: repeat(2, 1fr) !important;
  gap: 3px !important;
  overflow: hidden !important;
  aspect-ratio: 1 / 1.05 !important;
  border-radius: 14px !important;
  background: #eef3ef !important;
}
.v130-board-shell .board-cover.empty {
  display: grid !important;
  place-items: center !important;
  color: #607067 !important;
  font-weight: 900 !important;
}
.v130-board-shell .board-cover img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}
.v130-board-shell .board-cover img.main {
  grid-row: 1 / 3 !important;
}
.v130-board-shell .board-card-meta {
  display: grid !important;
  gap: 4px !important;
}
.v130-board-shell .board-card-meta span,
.v130-board-shell .board-card-meta em,
.v130-board-shell .board-card-meta b {
  color: #68746c !important;
  font-size: 13px !important;
  font-style: normal !important;
}
.v130-board-shell .board-card-meta strong {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  color: #111 !important;
  font-size: 18px !important;
  line-height: 1.2 !important;
}
.v130-board-shell .board-detail-view {
  display: block !important;
}
.v130-board-shell .board-detail-hero {
  display: grid !important;
  grid-template-columns: minmax(180px, 300px) 1fr !important;
  gap: 22px !important;
  align-items: end !important;
  margin-bottom: 18px !important;
}
.v130-board-shell .board-detail-hero h3 {
  margin: 4px 0 !important;
  font-size: clamp(26px, 4vw, 48px) !important;
  line-height: 1 !important;
}
.v130-board-shell .board-back,
.v130-board-shell .board-delete {
  border: 0 !important;
  border-radius: 999px !important;
  min-height: 38px !important;
  padding: 0 14px !important;
  font-weight: 900 !important;
}
.v130-board-shell .board-back {
  background: #f2f7f3 !important;
  color: #111 !important;
}
.v130-board-shell .board-delete {
  margin-left: 8px !important;
  background: #f4e8e8 !important;
  color: #8f2424 !important;
}
@media (max-width: 760px) {
  .hero-feature .hero-rail {
    width: calc(100% - 28px) !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    bottom: 62px !important;
  }
  .hero-feature .hero-rail button,
  .hero-feature .hero-rail button.active,
  .hero-feature .hero-rail button:hover {
    height: 44px !important;
    min-height: 44px !important;
    padding: 4px !important;
  }
  .hero-feature .hero-rail img {
    width: 36px !important;
    height: 36px !important;
    flex-basis: 36px !important;
  }
  .hero-feature .hero-rail span {
    display: none !important;
  }
  .hero-batch-button {
    bottom: 16px !important;
  }
  .v130-board-shell .user-board-grid,
  .v130-board-shell .board-pin-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .v130-board-shell .board-detail-hero {
    grid-template-columns: 1fr !important;
  }
}

/* v131 hero dots and Pinterest-like board grid */
.hero-feature .hero-rail {
  left: 50% !important;
  bottom: 26px !important;
  width: auto !important;
  height: 12px !important;
  display: flex !important;
  gap: 8px !important;
  transform: translateX(-50%) !important;
  z-index: 13 !important;
}
.hero-feature .hero-rail button,
.hero-feature .hero-rail button.active,
.hero-feature .hero-rail button:hover {
  width: 8px !important;
  height: 8px !important;
  min-width: 8px !important;
  min-height: 8px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,.56) !important;
  box-shadow: 0 1px 8px rgba(0,0,0,.25) !important;
  opacity: 1 !important;
  backdrop-filter: none !important;
}
.hero-feature .hero-rail button.active,
.hero-feature .hero-rail button:hover {
  width: 22px !important;
  background: #fff !important;
}
.hero-feature .hero-rail img,
.hero-feature .hero-rail span {
  display: none !important;
}
.v131-board-shell .user-body {
  background: #fff !important;
}
.v131-board-shell .user-tabs {
  justify-content: center !important;
  gap: 8px !important;
  margin-bottom: 10px !important;
}
.v131-board-shell .user-tabs button,
.v131-board-shell .board-toolbar button {
  min-height: 34px !important;
  padding: 0 14px !important;
  border-radius: 999px !important;
  font-weight: 900 !important;
}
.v131-board-shell .user-tabs button {
  background: #f0f7f2 !important;
  color: #111 !important;
}
.v131-board-shell .user-tabs button.active,
.v131-board-shell .board-toolbar button {
  background: #111 !important;
  color: #fff !important;
}
.v131-board-shell .board-toolbar {
  justify-content: center !important;
  margin: 2px 0 22px !important;
  padding: 0 !important;
  gap: 8px !important;
  border: 0 !important;
  background: transparent !important;
}
.v131-board-shell .user-board-grid {
  grid-template-columns: repeat(auto-fill, minmax(236px, 1fr)) !important;
  gap: 30px 18px !important;
  align-items: start !important;
}
.v131-board-shell .user-board-card {
  display: grid !important;
  gap: 9px !important;
  padding: 0 !important;
  min-height: 0 !important;
  overflow: visible !important;
  border: 0 !important;
  background: transparent !important;
  color: #111 !important;
  text-align: left !important;
  box-shadow: none !important;
}
.v131-board-shell .board-cover {
  display: grid !important;
  grid-template-columns: 2fr 1fr !important;
  grid-template-rows: repeat(2, 1fr) !important;
  gap: 2px !important;
  overflow: hidden !important;
  aspect-ratio: 1.28 / 1 !important;
  border-radius: 18px !important;
  background: #eef2ef !important;
  box-shadow: none !important;
}
.v131-board-shell .board-cover img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}
.v131-board-shell .board-cover img.main {
  grid-row: 1 / 3 !important;
}
.v131-board-shell .board-cover img:nth-child(n+4) {
  display: none !important;
}
.v131-board-shell .board-cover.v131-empty {
  display: grid !important;
  place-items: center !important;
  color: #66746c !important;
  font-weight: 900 !important;
}
.v131-board-shell .board-card-meta {
  padding: 0 2px !important;
}
.v131-board-shell .board-card-meta strong {
  display: block !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  color: #111 !important;
  font-size: 18px !important;
  line-height: 1.2 !important;
}
.v131-board-shell .board-card-meta span {
  display: block !important;
  margin-top: 2px !important;
  color: #666 !important;
  font-size: 13px !important;
  background: transparent !important;
  padding: 0 !important;
}
.v131-board-shell .board-detail-hero {
  grid-template-columns: minmax(220px, 360px) 1fr !important;
}
@media (max-width: 760px) {
  .hero-feature .hero-rail {
    bottom: 66px !important;
  }
  .v131-board-shell .user-board-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 22px 10px !important;
  }
  .v131-board-shell .board-detail-hero {
    grid-template-columns: 1fr !important;
  }
}

/* v132 full Board rebuild */
.hero-feature .hero-rail { gap: 7px !important; }
.pboard-shell .user-body { background:#fff!important; }
.pboard-shell .user-tabs,.pboard-actions{display:flex!important;justify-content:center!important;gap:8px!important}
.pboard-shell .user-tabs{margin-bottom:10px!important}
.pboard-shell .user-tabs button,.pboard-actions button{border-radius:999px!important;min-height:34px!important;padding:0 14px!important;font-weight:900!important}
.pboard-shell .user-tabs button{background:#f0f7f2!important;color:#111!important}
.pboard-shell .user-tabs button.active,.pboard-actions button{background:#111!important;color:#fff!important}
.pboard-actions{margin:0 0 24px!important}
.pboard-grid{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(270px,1fr))!important;gap:34px 22px!important;align-items:start!important}
.pboard-card{display:grid!important;gap:8px!important;border:0!important;background:transparent!important;padding:0!important;text-align:left!important;color:#111!important;animation:pboardIn .48s cubic-bezier(.2,.9,.2,1) both!important;animation-delay:var(--d)}
.pboard-cover{position:relative!important;display:grid!important;grid-template-columns:2.1fr 1fr!important;grid-template-rows:repeat(3,1fr)!important;gap:3px!important;aspect-ratio:1.32/1!important;overflow:hidden!important;border-radius:20px!important;background:#edf2ef!important;box-shadow:0 18px 42px rgba(20,28,24,.12)!important;transition:transform .28s ease,box-shadow .28s ease!important}
.pboard-card:hover .pboard-cover{transform:translateY(-6px) scale(1.012)!important;box-shadow:0 24px 58px rgba(20,28,24,.18)!important}
.pboard-cover img{width:100%!important;height:100%!important;object-fit:cover!important;transition:transform .35s ease!important}
.pboard-card:hover .pboard-cover img{transform:scale(1.035)!important}
.pboard-cover .pboard-main{grid-row:1/4!important}
.pboard-cover img:nth-child(4){grid-column:2!important;grid-row:3!important}
.pboard-empty{display:grid!important;place-items:center!important;color:#6a776f!important;font-weight:900!important}
.pboard-card strong{overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;font-size:20px!important;line-height:1.15!important}
.pboard-card span{color:#666!important;font-size:13px!important}
.pboard-detail-head{display:grid!important;grid-template-columns:minmax(280px,420px) 1fr!important;gap:28px!important;align-items:end!important;margin-bottom:22px!important}
.pboard-detail-head h3{margin:8px 0!important;font-size:clamp(30px,4vw,52px)!important;line-height:1!important}
.pboard-back,.pboard-delete{border:0!important;border-radius:999px!important;min-height:38px!important;padding:0 14px!important;font-weight:900!important}
.pboard-back{background:#f0f7f2!important;color:#111!important}
.pboard-delete{margin-left:8px!important;background:#f4e8e8!important;color:#8f2424!important}
.pboard-add{display:flex!important;gap:8px!important;overflow-x:auto!important;margin:0 0 20px!important}
.pboard-add button{position:relative!important;flex:0 0 74px!important;height:36px!important;border:0!important;border-radius:999px!important;overflow:hidden!important;padding:0!important}
.pboard-add img{width:100%!important;height:100%!important;object-fit:cover!important}
.pboard-add span{position:absolute!important;inset:0!important;display:grid!important;place-items:center!important;color:#fff!important;font-weight:900!important;background:rgba(0,0,0,.28)!important}
.pboard-pins{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(180px,1fr))!important;gap:12px!important}
.pboard-pin{position:relative!important}
.pboard-pin button:first-child{border:0!important;padding:0!important;border-radius:12px!important;overflow:hidden!important;background:#eef2ef!important;width:100%!important}
.pboard-pin img{display:block!important;width:100%!important;aspect-ratio:4/5.4!important;object-fit:cover!important}
.pboard-pin span{position:absolute!important;left:10px!important;right:10px!important;bottom:9px!important;color:#fff!important;font-weight:900!important;text-shadow:0 2px 12px rgba(0,0,0,.65)!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
.pboard-remove{position:absolute!important;right:8px!important;top:8px!important;border:0!important;border-radius:999px!important;background:rgba(150,35,35,.94)!important;color:#fff!important;font-weight:900!important;min-height:30px!important;padding:0 10px!important;opacity:0!important;transition:.18s!important}
.pboard-pin:hover .pboard-remove{opacity:1!important}
@keyframes pboardIn{from{opacity:0;transform:translateY(24px) scale(.96)}to{opacity:1;transform:none}}
@media(max-width:760px){.pboard-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:24px 10px!important}.pboard-detail-head{grid-template-columns:1fr!important}.pboard-pins{grid-template-columns:repeat(2,minmax(0,1fr))!important}.pboard-card strong{font-size:16px!important}}

/* v133 lock Board card to single-cover Pinterest style */
.pboard-shell .user-body {
  padding-top: 30px !important;
}
.pboard-grid {
  grid-template-columns: repeat(auto-fill, minmax(190px, 210px)) !important;
  justify-content: start !important;
  gap: 38px 28px !important;
}
.pboard-card {
  width: 190px !important;
  gap: 0 !important;
  transform-origin: center bottom !important;
}
.pboard-card .pboard-cover,
.pboard-detail-head .pboard-cover {
  display: block !important;
  width: 100% !important;
  aspect-ratio: 1.45 / 1 !important;
  overflow: hidden !important;
  border-radius: 11px !important;
  background: #edf2ef !important;
  box-shadow: none !important;
}
.pboard-card .pboard-cover img,
.pboard-detail-head .pboard-cover img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  grid-row: auto !important;
  grid-column: auto !important;
  transform: none !important;
}
.pboard-card .pboard-cover img:not(:first-child),
.pboard-detail-head .pboard-cover img:not(:first-child) {
  display: none !important;
}
.pboard-card:hover .pboard-cover {
  transform: translateY(-3px) !important;
  box-shadow: 0 18px 34px rgba(30,42,36,.12) !important;
}
.pboard-card:hover .pboard-cover img {
  transform: none !important;
}
.pboard-card strong {
  display: block !important;
  margin-top: 8px !important;
  font-size: 22px !important;
  line-height: 1.1 !important;
  font-weight: 900 !important;
}
.pboard-card span {
  display: block !important;
  margin-top: 5px !important;
  color: #66716a !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
}
.pboard-card span::before {
  content: "界面、图标、排版和交互视觉参考";
  display: block;
  max-width: 170px;
  margin-bottom: 2px;
}
@media(max-width:760px){
  .pboard-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:28px 12px!important}
  .pboard-card{width:auto!important}
  .pboard-card strong{font-size:18px!important}
}

/* v134 isolated Board cards: no legacy overlays, no crop ghosts */
.board-lock-shell .user-body { background:#fff!important; padding-top:30px!important; }
.board-lock-shell .user-tabs,
.board-lock-actions { display:flex!important; justify-content:center!important; gap:8px!important; }
.board-lock-shell .user-tabs { margin-bottom:10px!important; }
.board-lock-shell .user-tabs button,
.board-lock-actions button { min-height:34px!important; padding:0 14px!important; border-radius:999px!important; font-weight:900!important; }
.board-lock-shell .user-tabs button { background:#f0f7f2!important; color:#111!important; }
.board-lock-shell .user-tabs button.active,
.board-lock-actions button { background:#111!important; color:#fff!important; }
.board-lock-actions { margin:0 0 24px!important; }
.board-lock-grid { display:grid!important; grid-template-columns:repeat(auto-fill,190px)!important; gap:34px 34px!important; justify-content:start!important; align-items:start!important; }
.board-lock-card { width:190px!important; display:block!important; padding:0!important; border:0!important; background:transparent!important; color:#111!important; text-align:left!important; box-shadow:none!important; overflow:visible!important; }
.board-lock-card::before,
.board-lock-card::after { display:none!important; content:none!important; }
.board-lock-cover { display:block!important; width:190px!important; height:130px!important; overflow:hidden!important; border-radius:12px!important; background:#edf2ef!important; box-shadow:none!important; }
.board-lock-cover img { display:block!important; width:100%!important; height:100%!important; object-fit:cover!important; object-position:center!important; border-radius:0!important; transform:none!important; filter:none!important; opacity:1!important; }
.board-lock-card:hover .board-lock-cover { transform:translateY(-3px)!important; box-shadow:0 18px 34px rgba(30,42,36,.12)!important; }
.board-lock-card strong { display:block!important; margin:9px 0 0!important; overflow:hidden!important; text-overflow:ellipsis!important; white-space:nowrap!important; font-size:22px!important; line-height:1.1!important; font-weight:900!important; color:#111!important; }
.board-lock-card em { display:block!important; margin-top:6px!important; max-width:176px!important; color:#66716a!important; font-size:12px!important; line-height:1.35!important; font-style:normal!important; }
.board-lock-card small { display:block!important; margin-top:2px!important; color:#66716a!important; font-size:12px!important; line-height:1.35!important; }
@media(max-width:760px){.board-lock-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:28px 12px!important}.board-lock-card,.board-lock-cover{width:100%!important}.board-lock-cover{height:auto!important;aspect-ratio:1.45/1!important}.board-lock-card strong{font-size:18px!important}}

.board-lock-grid-empty {
  display: block !important;
  min-height: 0 !important;
  margin: 0 !important;
}

/* v136 remove Cliffs Board UI */
.user-tabs button[data-u="boards"],
.board-toolbar,
.pboard-actions,
.board-lock-actions,
.user-board-grid,
.pboard-grid,
.board-lock-grid,
.board-detail-view,
.pboard-detail {
  display: none !important;
}

/* v137 Cliffs Tab */
.cliffs-tab-shell .user-body{background:#fff!important;padding-top:28px!important}
.cliffs-tab-shell .user-tabs,.ct-actions{display:flex!important;justify-content:center!important;gap:8px!important}
.cliffs-tab-shell .user-tabs{margin-bottom:10px!important}
.cliffs-tab-shell .user-tabs button,.ct-actions button{min-height:34px!important;padding:0 14px!important;border-radius:999px!important;font-weight:900!important}
.cliffs-tab-shell .user-tabs button{background:#f2f5f1!important;color:#111!important}
.cliffs-tab-shell .user-tabs button.active,.ct-actions button{background:#111!important;color:#fff!important}
.ct-actions{margin:0 0 24px!important}
.ct-grid{display:grid!important;grid-template-columns:repeat(auto-fill,190px)!important;gap:34px!important}
.ct-card{display:block!important;width:190px!important;padding:0!important;border:0!important;background:transparent!important;text-align:left!important;color:#111!important}
.ct-card img{display:block!important;width:190px!important;height:130px!important;object-fit:cover!important;border-radius:14px!important;background:#edf2ef!important;transition:transform .22s ease,box-shadow .22s ease!important}
.ct-card:hover img{transform:translateY(-3px)!important;box-shadow:0 18px 34px rgba(30,42,36,.12)!important}
.ct-card strong{display:block!important;margin-top:9px!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;font-size:22px!important;line-height:1.1!important}
.ct-card span{display:block!important;margin-top:4px!important;color:#68736d!important;font-size:12px!important}
.ct-empty{text-align:center!important;color:#66716a!important}
.ct-detail header{display:grid!important;grid-template-columns:minmax(240px,380px) 1fr!important;gap:28px!important;align-items:end!important;margin-bottom:20px!important}
.ct-detail header>img{width:100%!important;aspect-ratio:1.45/1!important;object-fit:cover!important;border-radius:16px!important}
.ct-detail h3{margin:8px 0!important;font-size:clamp(30px,4vw,52px)!important;line-height:1!important}
.ct-back,.ct-delete{border:0!important;border-radius:999px!important;min-height:36px!important;padding:0 14px!important;font-weight:900!important}
.ct-back{background:#f2f5f1!important;color:#111!important}.ct-delete{margin-left:8px!important;background:#f5e8e8!important;color:#8f2424!important}
.ct-add{display:flex!important;gap:8px!important;overflow-x:auto!important;margin:0 0 18px!important}.ct-add button{position:relative!important;flex:0 0 72px!important;height:34px!important;border:0!important;border-radius:999px!important;overflow:hidden!important;padding:0!important}.ct-add img{width:100%!important;height:100%!important;object-fit:cover!important}.ct-add span{position:absolute!important;inset:0!important;display:grid!important;place-items:center!important;color:#fff!important;background:rgba(0,0,0,.3)!important;font-weight:900!important}
.ct-pins{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(180px,1fr))!important;gap:12px!important}.ct-pin{position:relative!important}.ct-pin button:first-child{width:100%!important;border:0!important;border-radius:12px!important;overflow:hidden!important;padding:0!important;background:#edf2ef!important}.ct-pin img{display:block!important;width:100%!important;aspect-ratio:4/5.4!important;object-fit:cover!important}.ct-pin span{position:absolute!important;left:10px!important;right:10px!important;bottom:8px!important;color:#fff!important;text-shadow:0 2px 12px rgba(0,0,0,.65)!important;font-weight:900!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}.ct-remove{position:absolute!important;right:8px!important;top:8px!important;border:0!important;border-radius:999px!important;min-height:30px!important;padding:0 10px!important;background:#111!important;color:#fff!important;opacity:0!important}.ct-pin:hover .ct-remove{opacity:1!important}
@media(max-width:760px){.ct-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:26px 12px!important}.ct-card,.ct-card img{width:100%!important}.ct-card img{height:auto!important;aspect-ratio:1.45/1!important}.ct-detail header{grid-template-columns:1fr!important}.ct-pins{grid-template-columns:repeat(2,minmax(0,1fr))!important}}

/* v138 force Cliffs Tab visible */
.user-tabs button[data-u="tabs"] { display:inline-flex!important; }
.ct-actions { display:flex!important; justify-content:center!important; gap:8px!important; margin:0 0 24px!important; }
.ct-actions button { min-height:34px!important; padding:0 14px!important; border-radius:999px!important; background:#111!important; color:#fff!important; font-weight:900!important; }

/* v139 Cliffs Tab rebuild */
.cliffs-tab-shell .user-body{background:#fff!important;padding:42px clamp(18px,5vw,72px)!important}
.cliffs-tab-shell .user-tabs{display:flex!important;justify-content:center!important;gap:10px!important;margin:0 0 18px!important}
.cliffs-tab-shell .user-tabs button{display:inline-flex!important;align-items:center!important;min-height:34px!important;padding:0 15px!important;border:0!important;border-radius:999px!important;background:#eef4ee!important;color:#111!important;font-weight:900!important}
.cliffs-tab-shell .user-tabs button.active{background:#111!important;color:#fff!important}
.cliffs-tab-shell .user-tabs button[data-u="boards"]{display:none!important}
.cliffs-tab-shell .ct-actions{display:flex!important;justify-content:center!important;gap:10px!important;margin:0 0 28px!important}
.cliffs-tab-shell .ct-actions[hidden]{display:none!important}
.cliffs-tab-shell .ct-actions button{border:0!important;border-radius:999px!important;min-height:38px!important;padding:0 18px!important;background:#111!important;color:#fff!important;font-weight:900!important}
.ct-grid{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(190px,210px))!important;justify-content:center!important;gap:34px 28px!important;align-items:start!important}
.ct-card{display:block!important;width:100%!important;padding:0!important;border:0!important;background:transparent!important;text-align:left!important;color:#111!important;box-shadow:none!important}
.ct-card img,.ct-blank{display:block!important;width:100%!important;aspect-ratio:1.34/1!important;object-fit:cover!important;border-radius:16px!important;background:#edf2ef!important;transition:transform .2s ease,box-shadow .2s ease!important}
.ct-card:hover img{transform:translateY(-4px)!important;box-shadow:0 18px 36px rgba(30,42,36,.14)!important}
.ct-card strong{display:block!important;margin-top:10px!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;font-size:20px!important;line-height:1.15!important;font-weight:900!important}
.ct-card span{display:block!important;margin-top:5px!important;color:#66716a!important;font-size:12px!important;line-height:1.35!important}
.ct-empty{grid-column:1/-1!important;text-align:center!important;color:#66716a!important;padding:36px 0!important}
.ct-detail{max-width:1180px!important;margin:0 auto!important}
.ct-detail header{display:grid!important;grid-template-columns:minmax(240px,390px) 1fr!important;gap:30px!important;align-items:end!important;margin-bottom:22px!important}
.ct-detail header>img,.ct-detail header>span{width:100%!important;aspect-ratio:1.34/1!important;object-fit:cover!important;border-radius:18px!important;background:#edf2ef!important}
.ct-detail h3{margin:8px 0!important;max-width:680px!important;font-size:clamp(30px,4vw,52px)!important;line-height:1!important;letter-spacing:0!important}
.ct-detail p{margin:0 0 8px!important;color:#66716a!important;line-height:1.5!important}
.ct-back,.ct-delete{border:0!important;border-radius:999px!important;min-height:38px!important;padding:0 15px!important;font-weight:900!important}
.ct-back{background:#eef4ee!important;color:#111!important}.ct-delete{margin-left:8px!important;background:#f5e8e8!important;color:#8f2424!important}
.ct-add{display:flex!important;gap:8px!important;overflow-x:auto!important;margin:0 0 22px!important;padding-bottom:4px!important}
.ct-add button{position:relative!important;flex:0 0 78px!important;height:38px!important;border:0!important;border-radius:999px!important;overflow:hidden!important;padding:0!important;background:#edf2ef!important}
.ct-add img{width:100%!important;height:100%!important;object-fit:cover!important}.ct-add span{position:absolute!important;inset:0!important;display:grid!important;place-items:center!important;color:#fff!important;background:rgba(0,0,0,.32)!important;font-weight:900!important}
.ct-pins{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(170px,1fr))!important;gap:14px!important;align-items:start!important}
.ct-pin{position:relative!important}.ct-pin button:first-child{width:100%!important;border:0!important;border-radius:14px!important;overflow:hidden!important;padding:0!important;background:#edf2ef!important}
.ct-pin img{display:block!important;width:100%!important;aspect-ratio:4/5.35!important;object-fit:cover!important}.ct-pin span{position:absolute!important;left:10px!important;right:10px!important;bottom:9px!important;color:#fff!important;text-shadow:0 2px 14px rgba(0,0,0,.68)!important;font-weight:900!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
.ct-remove{position:absolute!important;right:8px!important;top:8px!important;border:0!important;border-radius:999px!important;min-height:30px!important;padding:0 10px!important;background:#111!important;color:#fff!important;font-weight:900!important;opacity:0!important;transition:opacity .16s ease!important}.ct-pin:hover .ct-remove{opacity:1!important}
@media(max-width:760px){.cliffs-tab-shell .user-body{padding:30px 14px!important}.ct-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:28px 12px!important}.ct-detail header{grid-template-columns:1fr!important}.ct-pins{grid-template-columns:repeat(2,minmax(0,1fr))!important}.ct-card strong{font-size:17px!important}}

/* v140 profile motion polish */
body.user-mode .cliffs-tab-shell .user-cover{animation:profileCoverIn .7s cubic-bezier(.2,.8,.2,1) both!important;overflow:hidden!important}
body.user-mode .cliffs-tab-shell .user-cover::before{animation:profileShadeIn .9s ease both!important}
.cliffs-tab-shell .user-cover-content>img{animation:profileAvatarPop .62s cubic-bezier(.18,1.2,.25,1) .08s both!important}
.cliffs-tab-shell .user-cover-content .kicker,
.cliffs-tab-shell .user-cover-content h2,
.cliffs-tab-shell .user-cover-content p,
.cliffs-tab-shell .user-stats span{animation:profileRise .55s cubic-bezier(.2,.8,.2,1) both!important}
.cliffs-tab-shell .user-cover-content h2{animation-delay:.08s!important}.cliffs-tab-shell .user-cover-content p{animation-delay:.14s!important}
.cliffs-tab-shell .user-stats span:nth-child(1){animation-delay:.18s!important}.cliffs-tab-shell .user-stats span:nth-child(2){animation-delay:.22s!important}.cliffs-tab-shell .user-stats span:nth-child(3){animation-delay:.26s!important}.cliffs-tab-shell .user-stats span:nth-child(4){animation-delay:.3s!important}.cliffs-tab-shell .user-stats span:nth-child(5){animation-delay:.34s!important}
.cliffs-tab-shell .user-tabs button,.cliffs-tab-shell .ct-actions button{transition:transform .18s ease,background .18s ease,box-shadow .18s ease!important}
.cliffs-tab-shell .user-tabs button:hover,.cliffs-tab-shell .ct-actions button:hover{transform:translateY(-2px)!important;box-shadow:0 10px 22px rgba(20,28,24,.1)!important}
.cliffs-tab-shell .user-tabs button.active{animation:tabPulse .28s ease both!important}
.cliffs-tab-shell .user-grid,.ct-grid,.ct-pins{animation:profileGridIn .36s ease both!important}
.cliffs-tab-shell .user-tile,.ct-card,.ct-pin{animation:profileCardIn .48s cubic-bezier(.2,.85,.22,1) both!important}
.cliffs-tab-shell .user-tile:nth-child(3n+2),.ct-card:nth-child(3n+2),.ct-pin:nth-child(3n+2){animation-delay:.035s!important}
.cliffs-tab-shell .user-tile:nth-child(3n),.ct-card:nth-child(3n),.ct-pin:nth-child(3n){animation-delay:.07s!important}
.cliffs-tab-shell .user-tile img,.ct-pin img{transition:transform .26s ease,filter .26s ease!important}
.cliffs-tab-shell .user-tile:hover img,.ct-pin:hover img{transform:scale(1.035)!important;filter:saturate(1.05)!important}
@keyframes profileCoverIn{from{opacity:.55;transform:translateY(-18px) scale(1.015)}to{opacity:1;transform:none}}
@keyframes profileShadeIn{from{opacity:.15}to{opacity:1}}
@keyframes profileAvatarPop{from{opacity:0;transform:translateY(18px) scale(.86)}to{opacity:1;transform:none}}
@keyframes profileRise{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}
@keyframes profileGridIn{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
@keyframes profileCardIn{from{opacity:0;transform:translateY(18px) scale(.98)}to{opacity:1;transform:none}}
@keyframes tabPulse{50%{transform:scale(1.04)}}
@media (prefers-reduced-motion: reduce){.cliffs-tab-shell *{animation:none!important;transition:none!important}}

/* v141 category full page */
.category-page{min-height:100vh;padding:118px clamp(18px,5vw,72px) 72px;background:linear-gradient(135deg,#f7fbf8 0%,#fff 54%,#eef6f1 100%)}
.category-page-head{max-width:980px;margin:0 auto 28px}
.category-page-back{border:0;border-radius:999px;min-height:38px;padding:0 16px;background:#111;color:#fff;font-weight:900}
.category-page-head h1{margin:14px 0 10px;font-size:clamp(36px,6vw,76px);line-height:.94;letter-spacing:0}
.category-page-head p{margin:0 0 8px;color:#66716a;line-height:1.6}
.category-page-head span{color:#101812;font-weight:900}
.category-page-grid{max-width:1280px;margin:0 auto;columns:5 190px;column-gap:16px}
.category-page-grid .work-card{break-inside:avoid;margin:0 0 16px}
@media(max-width:760px){.category-page{padding:92px 14px 48px}.category-page-grid{columns:2 150px;column-gap:10px}}

/* v142 performance hints */
.work-card,.project-card,.featured-card,.category-block,.compact-category,.ct-card,.ct-pin,.user-tile{content-visibility:auto;contain-intrinsic-size:260px 360px}
.category-page-grid,.search-results-grid,.library-grid,.gallery{content-visibility:auto;contain-intrinsic-size:800px}

/* v162 home waterfall, category cards, and Cliffs Tab actions */
.projects-grid {
  display: block !important;
  columns: 5 190px !important;
  column-gap: clamp(14px, 1.6vw, 22px) !important;
}
.projects-grid .all-work-card {
  margin: 0 0 clamp(14px, 1.6vw, 22px) !important;
  border-radius: 16px !important;
  background: rgba(255,255,255,.86) !important;
  box-shadow: 0 12px 34px rgba(24,38,30,.08) !important;
}
.projects-grid .all-work-card:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 20px 48px rgba(24,38,30,.16) !important;
}
.work-card-counts {
  display: flex;
  padding: 0 4px 10px;
  color: #617068;
  font-size: 12px;
  font-weight: 800;
}
.category-zone {
  padding: clamp(24px, 4vw, 44px) !important;
  border: 1px solid rgba(13,112,64,.1) !important;
  border-radius: 24px !important;
  background: rgba(255,255,255,.54) !important;
  box-shadow: 0 24px 70px rgba(24,38,30,.08) !important;
}
.category-sections {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)) !important;
  gap: 14px !important;
}
.v162-category-card .compact-category-main {
  min-height: 172px !important;
  border-radius: 18px !important;
  border: 1px solid rgba(13,112,64,.1) !important;
  background: linear-gradient(145deg, rgba(255,255,255,.92), rgba(235,246,239,.86)) !important;
  box-shadow: 0 12px 30px rgba(24,38,30,.08) !important;
}
.v162-category-card .compact-category-main::after {
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(8,18,12,.46)) !important;
}
.v162-category-card .category-count {
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 3;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.88);
  color: #0c6f3e;
  font-size: 12px;
  font-style: normal;
  box-shadow: 0 8px 18px rgba(0,0,0,.08);
}
.cliffs-tab-shell .ct-actions button,
.ct-add button,
.ct-remove,
.ct-delete,
.ct-back {
  cursor: pointer !important;
}
.ct-card span::after {
  content: " · 可打开";
}
@media (max-width: 980px) {
  .projects-grid { columns: 3 180px !important; }
}
@media (max-width: 760px) {
  .projects-grid { columns: 2 145px !important; column-gap: 10px !important; }
  .category-zone { width: min(100% - 20px, 1200px) !important; padding: 18px !important; border-radius: 20px !important; }
  .category-sections { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; }
  .v162-category-card .compact-category-main { min-height: 148px !important; }
  .work-card-counts { display: none; }
}

/* v147 keep card hover inside image frame */
.all-work-card{overflow:visible!important}
.all-work-card img{position:relative;z-index:1;border-radius:12px!important;overflow:hidden!important}
.pin-hover-ui{
  top:0!important;
  left:0!important;
  right:auto!important;
  bottom:auto!important;
  width:var(--hover-w,100%)!important;
  height:var(--hover-h,100%)!important;
  max-height:var(--hover-h,100%)!important;
  box-sizing:border-box!important;
  align-content:end!important;
  padding:clamp(10px,1.2vw,14px)!important;
  border-radius:12px!important;
  overflow:hidden!important;
  transform:none!important;
  background:linear-gradient(180deg,rgba(0,0,0,0) 36%,rgba(0,0,0,.68) 100%)!important;
}
.all-work-card:hover .pin-hover-ui{transform:none!important;opacity:1!important}
.pin-hover-ui strong{font-size:14px!important;line-height:1.2!important;color:#fff!important}
.pin-hover-ui small{font-size:11px!important;line-height:1.25!important;max-width:100%;color:rgba(255,255,255,.88)!important;display:block!important}
.pin-hover-save,.pin-hover-download{min-height:28px!important;padding:0 11px!important;font-size:12px!important}
.all-work-card .work-card-meta{position:relative!important;z-index:2!important;background:transparent!important}

/* v148 lower homepage hero fold */
.hero-feature{min-height:clamp(650px,68vh,780px)!important}
.home-ia{padding-top:clamp(58px,6.5vw,86px)!important}
@media(max-width:760px){
  .hero-feature{min-height:72vh!important}
  .home-ia{padding-top:42px!important}
}

/* v150 gallery, hero and responsive polish */
#gallery.gallery{display:block!important;width:min(1320px,calc(100vw - 32px))!important;margin:34px auto 76px!important;columns:5 210px!important;column-gap:16px!important}
#gallery.gallery[hidden]{display:none!important}
#gallery .all-work-card{break-inside:avoid!important;margin:0 0 16px!important}
.library-page .all-works-grid,.search-results-grid,.category-page-grid{columns:5 210px!important;column-gap:16px!important}
.library-page .all-work-card,.search-results-grid .all-work-card,.category-page-grid .all-work-card{break-inside:avoid!important;margin:0 0 16px!important}
.hero-feature>img{will-change:transform!important;backface-visibility:hidden!important;transform:translateZ(0)!important}
.hero-feature{contain:layout paint!important}
@media(min-width:761px) and (max-width:1180px){
  body{font-size:15px!important}
  .topbar{left:10px!important;right:10px!important}
  .hero-feature{min-height:clamp(560px,66vh,690px)!important}
  .hero-feature .hero-copy{max-width:min(640px,58vw)!important}
  .home-ia{grid-template-columns:1fr!important;gap:14px!important;padding-left:24px!important;padding-right:24px!important}
  .stats-strip{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  .projects-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  #gallery.gallery,.library-page .all-works-grid,.search-results-grid,.category-page-grid{columns:4 190px!important}
}
@media(max-width:760px){
  .topbar{top:8px!important;left:8px!important;right:8px!important;height:auto!important;min-height:58px!important;padding:8px!important;gap:8px!important;flex-wrap:wrap!important}
  .brand span{font-size:17px!important}
  .nav{order:3;width:100%!important;overflow-x:auto!important;justify-content:flex-start!important;padding-bottom:2px!important}
  .search-box{order:2!important;flex:1 1 calc(100% - 104px)!important;min-width:0!important}
  .hero-feature{min-height:68vh!important;aspect-ratio:auto!important;margin-top:0!important}
  .hero-feature>img{object-position:center center!important}
  .hero-feature .hero-copy{left:16px!important;right:16px!important;bottom:54px!important;padding:0!important;max-width:calc(100vw - 32px)!important}
  .hero-feature .hero-copy h1{font-size:clamp(34px,12vw,54px)!important;line-height:1.04!important}
  .hero-feature .hero-actions{gap:8px!important;flex-wrap:wrap!important}
  .portfolio-button{min-height:38px!important;padding:0 14px!important}
  .home-ia{grid-template-columns:1fr!important;padding:34px 14px 30px!important}
  .stats-strip{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
  .stats-strip div,.home-side-modules .activity-card{min-height:112px!important;padding:14px!important}
  .feature-duo,.projects-grid{grid-template-columns:1fr!important}
  #gallery.gallery,.library-page .all-works-grid,.search-results-grid,.category-page-grid{width:calc(100vw - 20px)!important;columns:2 145px!important;column-gap:10px!important;margin-top:20px!important}
  .all-work-card{margin-bottom:12px!important}
  .pin-hover-ui strong{font-size:13px!important}.pin-hover-ui small{display:none!important}
}

/* v153 liquid glass hero upload */
#heroUploadBtn{
  position:relative!important;
  isolation:isolate!important;
  overflow:hidden!important;
  border:1px solid rgba(255,255,255,.56)!important;
  background:linear-gradient(135deg,rgba(255,255,255,.30),rgba(255,255,255,.08))!important;
  color:#fff!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.66),0 18px 38px rgba(0,0,0,.24),0 0 0 1px rgba(255,255,255,.12)!important;
  backdrop-filter:blur(18px) saturate(1.55)!important;
  -webkit-backdrop-filter:blur(18px) saturate(1.55)!important;
  text-shadow:0 1px 10px rgba(0,0,0,.38)!important;
}
#heroUploadBtn::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  background:radial-gradient(circle at 26% 18%,rgba(255,255,255,.74),transparent 24%),linear-gradient(120deg,rgba(255,255,255,.34),transparent 42%,rgba(255,255,255,.18));
  opacity:.82;
}
#heroUploadBtn::after{
  content:"";
  position:absolute;
  inset:-60% -30%;
  z-index:-1;
  background:linear-gradient(100deg,transparent 35%,rgba(255,255,255,.50) 50%,transparent 65%);
  transform:translateX(-60%) rotate(8deg);
  transition:transform .65s ease;
}
#heroUploadBtn:hover{transform:translateY(-2px)!important}
#heroUploadBtn:hover::after{transform:translateX(60%) rotate(8deg)}

/* v154 hero hover zoom */
.hero-feature>img{
  transform:translateZ(0) scale(1)!important;
  transform-origin:center center!important;
  transition:transform 1.8s cubic-bezier(.2,.7,.18,1)!important;
}
.hero-feature:hover>img{
  transform:translateZ(0) scale(1.055)!important;
}
@media(prefers-reduced-motion:reduce){
  .hero-feature>img{transition:none!important}
}

/* v164 lightbox others */
.lightbox-others{margin:18px 0;padding:14px;border:1px solid rgba(13,92,62,.14);border-radius:16px;background:rgba(255,255,255,.72)}
.others-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin-bottom:10px}
.others-head h3{margin:0;font-size:18px}
.others-head span{font-size:12px;color:var(--muted)}
.others-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.others-grid button{border:0;padding:0;text-align:left;background:transparent;cursor:pointer}
.others-grid img{width:100%;aspect-ratio:1/1;object-fit:cover;border-radius:12px;display:block}
.others-grid span,.others-grid em{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.others-grid span{margin-top:6px;font-weight:700}
.others-grid em{font-style:normal;font-size:11px;color:var(--muted)}

/* v166 industrial category module */
.category-zone{
  position:relative!important;
  width:min(100% - 44px,1280px)!important;
  margin:44px auto!important;
  padding:26px!important;
  border:1px solid rgba(11,78,52,.12)!important;
  border-radius:28px!important;
  background:linear-gradient(180deg,rgba(255,255,255,.9),rgba(244,251,247,.82))!important;
  box-shadow:0 24px 70px rgba(20,65,44,.10)!important;
  overflow:hidden!important;
}
.category-zone::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:linear-gradient(120deg,rgba(255,255,255,.52),transparent 34%,rgba(14,126,78,.07));
}
.category-zone .section-heading,.category-commandbar,.category-pro-grid{position:relative;z-index:1}
.category-zone .section-heading{
  display:flex!important;
  align-items:flex-end!important;
  justify-content:space-between!important;
  gap:18px!important;
  margin-bottom:18px!important;
}
.category-zone .section-note{max-width:620px!important;color:#5f7066!important}
.category-commandbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin:0 0 18px;
  padding:10px;
  border:1px solid rgba(8,55,37,.10);
  border-radius:18px;
  background:rgba(255,255,255,.72);
  backdrop-filter:blur(18px);
}
.category-segment{
  display:flex;
  gap:6px;
  padding:4px;
  border-radius:14px;
  background:#edf5f0;
}
.category-segment button,.category-sort select{
  min-height:34px;
  border:0;
  border-radius:11px;
  padding:0 13px;
  font-weight:800;
  color:#274236;
  background:transparent;
  cursor:pointer;
}
.category-segment button.active{
  color:#fff;
  background:#087a4d;
  box-shadow:0 8px 18px rgba(8,122,77,.22);
}
.category-sort{
  display:flex;
  align-items:center;
  gap:8px;
  color:#65756b;
  font-size:12px;
  font-weight:800;
}
.category-sort select{
  border:1px solid rgba(8,55,37,.10);
  background:#fff;
}
.category-pro-grid{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:16px!important;
}
.category-pro-card{
  position:relative;
  min-height:286px;
  border:1px solid rgba(9,61,41,.10);
  border-radius:22px;
  padding:12px;
  overflow:hidden;
  text-align:left;
  background:rgba(255,255,255,.9);
  box-shadow:0 14px 34px rgba(24,66,45,.08);
  cursor:pointer;
  transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease;
}
.category-pro-card:hover{
  transform:translateY(-4px);
  border-color:rgba(8,122,77,.30);
  box-shadow:0 22px 50px rgba(15,73,48,.16);
}
.cat-kind{
  position:absolute;
  top:22px;
  left:22px;
  z-index:2;
  min-height:26px;
  padding:0 10px;
  display:inline-flex;
  align-items:center;
  border-radius:999px;
  color:#fff;
  font-size:11px;
  font-weight:900;
  background:rgba(7,21,16,.62);
  backdrop-filter:blur(12px);
}
.cat-cover-stack{
  position:relative;
  height:150px;
  border-radius:17px;
  overflow:hidden;
  background:#dceae2;
}
.cat-cover-stack img{
  position:absolute;
  object-fit:cover;
  transition:transform .7s ease;
}
.cat-cover-0{inset:0;width:68%;height:100%}
.cat-cover-1{right:0;top:0;width:32%;height:50%}
.cat-cover-2{right:0;bottom:0;width:32%;height:50%}
.category-pro-card:hover .cat-cover-stack img{transform:scale(1.045)}
.cat-empty-mark,.cat-page-empty{
  display:grid;
  place-items:center;
  width:100%;
  height:100%;
  color:#557062;
  font-weight:900;
}
.cat-card-body{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-top:13px;
}
.cat-card-body strong{
  display:block;
  font-size:18px;
  line-height:1.15;
  color:#102119;
}
.cat-card-body em{
  display:block;
  margin-top:6px;
  color:#65746a;
  font-size:12px;
  font-style:normal;
  line-height:1.45;
}
.cat-card-body b{
  flex:0 0 auto;
  padding:6px 9px;
  border-radius:999px;
  color:#087a4d;
  background:#e6f5ee;
  font-size:12px;
}
.cat-metrics{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:6px;
  margin-top:12px;
}
.cat-metrics span{
  padding:7px 6px;
  border-radius:10px;
  text-align:center;
  color:#4d6258;
  background:#f3f8f5;
  font-size:11px;
  font-weight:800;
}
.cat-tags{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-top:10px;
}
.cat-tags i{
  max-width:120px;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
  padding:5px 8px;
  border-radius:999px;
  color:#52685d;
  background:#edf5f0;
  font-size:11px;
  font-style:normal;
  font-weight:800;
}
.category-page{
  min-height:100vh;
  padding:112px clamp(18px,5vw,72px) 70px!important;
  background:linear-gradient(135deg,#f6fbf8 0%,#fff 48%,#edf7f1 100%)!important;
}
.category-page-pro-head{
  display:grid;
  grid-template-columns:1fr minmax(280px,420px);
  gap:26px;
  align-items:stretch;
  max-width:1280px;
  margin:0 auto 24px;
}
.category-page-back{
  grid-column:1/-1;
  justify-self:start;
  border:0;
  border-radius:999px;
  min-height:38px;
  padding:0 15px;
  color:#fff;
  background:#111c16;
  font-weight:900;
  cursor:pointer;
}
.category-page-copy{
  padding:30px;
  border:1px solid rgba(9,61,41,.10);
  border-radius:28px;
  background:rgba(255,255,255,.76);
  box-shadow:0 18px 50px rgba(23,64,44,.08);
}
.category-page-copy h1{
  margin:10px 0 12px;
  font-size:clamp(40px,6vw,84px);
  line-height:.92;
  letter-spacing:0;
}
.category-page-copy p{max-width:720px;color:#5f7066;line-height:1.65}
.category-page-pro-head>img,.cat-page-empty{
  min-height:310px;
  border-radius:28px;
  object-fit:cover;
  box-shadow:0 18px 50px rgba(23,64,44,.14);
  background:#dfece5;
}
.category-page-stats{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:18px;
}
.category-page-stats span{
  padding:8px 10px;
  border-radius:999px;
  color:#0d5f3f;
  background:#e7f5ee;
  font-weight:900;
  font-size:12px;
}
.page-tags{margin-top:14px}
.category-page-toolbar{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  max-width:1280px;
  margin:0 auto 14px;
  color:#617368;
}
.category-page-toolbar strong{font-size:22px;color:#102119}
body.category-mode .topbar{box-shadow:0 12px 36px rgba(20,65,44,.10)}
@media(max-width:1100px){
  .category-pro-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
@media(max-width:820px){
  .category-zone{width:calc(100% - 20px)!important;padding:16px!important;border-radius:22px!important}
  .category-commandbar{align-items:stretch;flex-direction:column}
  .category-segment{overflow:auto}
  .category-pro-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
  .category-pro-card{min-height:246px;border-radius:18px}
  .cat-cover-stack{height:118px}
  .cat-metrics{grid-template-columns:1fr}
  .category-page{padding:92px 12px 48px!important}
  .category-page-pro-head{grid-template-columns:1fr;gap:14px}
  .category-page-copy{padding:20px;border-radius:22px}
  .category-page-pro-head>img,.cat-page-empty{min-height:220px;border-radius:22px}
}

/* v167 category layout ratio fix */
.category-zone{
  max-width:1180px!important;
  margin-top:32px!important;
  padding:22px!important;
  box-sizing:border-box!important;
}
.category-zone .section-heading{
  display:grid!important;
  grid-template-columns:1fr auto!important;
  align-items:end!important;
}
.category-commandbar{
  min-height:54px!important;
  box-sizing:border-box!important;
}
.category-pro-grid{
  display:grid!important;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr))!important;
  gap:14px!important;
  align-items:start!important;
}
.category-pro-card{
  width:100%!important;
  min-height:0!important;
  height:auto!important;
  display:flex!important;
  flex-direction:column!important;
  gap:0!important;
  box-sizing:border-box!important;
  border-radius:18px!important;
}
.cat-cover-stack{
  width:100%!important;
  height:auto!important;
  aspect-ratio:16/10!important;
  flex:0 0 auto!important;
  border-radius:14px!important;
}
.cat-cover-stack img{display:block!important}
.cat-card-body{
  min-height:72px!important;
  margin-top:11px!important;
}
.cat-card-body strong{
  font-size:16px!important;
  line-height:1.2!important;
  display:-webkit-box!important;
  -webkit-line-clamp:2!important;
  -webkit-box-orient:vertical!important;
  overflow:hidden!important;
}
.cat-card-body em{
  display:-webkit-box!important;
  -webkit-line-clamp:2!important;
  -webkit-box-orient:vertical!important;
  overflow:hidden!important;
}
.cat-metrics{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
}
.cat-metrics span{
  min-width:0!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.category-page-pro-head{
  grid-template-columns:minmax(0,1.15fr) minmax(300px,.85fr)!important;
  align-items:stretch!important;
}
.category-page-pro-head>img,.cat-page-empty{
  width:100%!important;
  height:auto!important;
  aspect-ratio:4/3!important;
  min-height:0!important;
  max-height:420px!important;
}
.category-page-copy{
  min-width:0!important;
  box-sizing:border-box!important;
}
@media(max-width:980px){
  .category-pro-grid{grid-template-columns:repeat(auto-fit,minmax(190px,1fr))!important}
  .category-page-pro-head{grid-template-columns:1fr!important}
}
@media(max-width:640px){
  .category-zone{width:calc(100% - 16px)!important;padding:12px!important;margin-top:22px!important}
  .category-zone .section-heading{grid-template-columns:1fr!important;gap:10px!important}
  .category-commandbar{padding:8px!important}
  .category-pro-grid{grid-template-columns:1fr!important;gap:10px!important}
  .category-pro-card{border-radius:16px!important;padding:10px!important}
  .cat-cover-stack{aspect-ratio:16/9!important}
  .cat-card-body{min-height:auto!important}
  .cat-metrics{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  .cat-tags{display:none!important}
}

/* v169 full-bleed smart category and portrait/mobile polish */
html,body{max-width:100%;overflow-x:hidden}
main{overflow-x:hidden}
.category-zone{
  width:100vw!important;
  max-width:none!important;
  margin:34px calc(50% - 50vw)!important;
  padding:clamp(18px,3vw,34px)!important;
  border-left:0!important;
  border-right:0!important;
  border-radius:0!important;
  box-sizing:border-box!important;
}
.category-zone .section-heading,
.category-commandbar,
.category-pro-grid{
  width:min(100%,1440px)!important;
  margin-left:auto!important;
  margin-right:auto!important;
}
.category-pro-grid{
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr))!important;
}
@media(max-width:900px),(orientation:portrait) and (max-width:1100px){
  .topbar{
    top:8px!important;
    left:8px!important;
    right:8px!important;
    height:auto!important;
    min-height:58px!important;
    padding:8px!important;
    gap:8px!important;
    flex-wrap:wrap!important;
    border-radius:20px!important;
  }
  .brand{flex:0 0 auto!important}
  .main-nav{
    order:2!important;
    flex:1 1 auto!important;
    display:flex!important;
    overflow-x:auto!important;
    gap:4px!important;
    padding-bottom:2px!important;
  }
  .main-nav::-webkit-scrollbar{display:none}
  .main-nav .nav-link{white-space:nowrap!important;min-height:34px!important;padding:0 12px!important}
  .search-box{
    order:4!important;
    flex:1 0 100%!important;
    width:100%!important;
    min-width:0!important;
    height:40px!important;
  }
  .profile{margin-left:auto!important}
  .hero-feature{
    min-height:64vh!important;
    aspect-ratio:auto!important;
  }
  .hero-feature .hero-copy{
    left:18px!important;
    right:18px!important;
    bottom:44px!important;
    max-width:calc(100vw - 36px)!important;
  }
  .hero-feature .hero-copy h1{
    font-size:clamp(32px,9vw,56px)!important;
    line-height:1.04!important;
    max-width:100%!important;
  }
  .home-ia,
  .portfolio-section.projects-section,
  #projects.portfolio-section{
    width:100vw!important;
    max-width:none!important;
    margin-left:calc(50% - 50vw)!important;
    margin-right:calc(50% - 50vw)!important;
    padding-left:14px!important;
    padding-right:14px!important;
    box-sizing:border-box!important;
  }
  .category-zone{
    margin-top:24px!important;
    padding:18px 12px!important;
  }
  .category-zone .section-heading{
    grid-template-columns:1fr!important;
    gap:10px!important;
  }
  .category-commandbar{
    flex-direction:column!important;
    align-items:stretch!important;
    gap:8px!important;
  }
  .category-segment{
    width:100%!important;
    overflow-x:auto!important;
  }
  .category-sort{justify-content:space-between!important}
  .category-sort select{min-width:138px!important}
  .category-pro-grid{
    grid-template-columns:repeat(auto-fit,minmax(170px,1fr))!important;
    gap:10px!important;
  }
  .cat-cover-stack{aspect-ratio:16/9!important}
  .cat-metrics{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  .library-page{padding-left:10px!important;padding-right:10px!important}
  .library-page .all-works-grid,
  .search-results-grid,
  .category-page-grid{
    columns:2 150px!important;
    column-gap:10px!important;
  }
  .lightbox{
    grid-template-columns:1fr!important;
    overflow:auto!important;
  }
  .lightbox-image-panel{min-height:52vh!important}
  .lightbox-details{max-height:none!important}
}
@media(max-width:520px){
  .topbar{border-radius:18px!important}
  .brand-name{display:none!important}
  .message-button{display:none!important}
  .avatar-button{width:38px!important;height:38px!important}
  .hero-feature{min-height:58vh!important}
  .hero-actions .portfolio-button{min-height:38px!important;padding:0 13px!important}
  .category-pro-grid{grid-template-columns:1fr!important}
  .category-pro-card{padding:10px!important}
  .cat-card-body{display:block!important}
  .cat-card-body b{display:inline-flex!important;margin-top:8px!important}
  .cat-tags{display:none!important}
  .library-page .all-works-grid,
  .search-results-grid,
  .category-page-grid{
    columns:2 140px!important;
  }
}

/* v171 Pinterest-like masonry polish */
.all-works-grid.pinterest-masonry,
#gallery.pinterest-masonry,
.search-results-grid.pinterest-masonry,
.category-page-grid.pinterest-masonry{
  columns:5 220px!important;
  column-gap:18px!important;
  align-items:start!important;
}
.all-work-card.pinterest-card{
  display:block!important;
  width:100%!important;
  margin:0 0 18px!important;
  break-inside:avoid!important;
  page-break-inside:avoid!important;
  border:0!important;
  border-radius:16px!important;
  background:rgba(255,255,255,.76)!important;
  box-shadow:0 12px 30px rgba(25,55,44,.08)!important;
  overflow:hidden!important;
  transform:translateZ(0)!important;
  transition:transform .24s ease,box-shadow .24s ease,background .24s ease!important;
  content-visibility:auto!important;
  contain-intrinsic-size:360px 520px!important;
}
.all-work-card.pinterest-card:hover,
.all-work-card.pinterest-card:focus-visible{
  transform:translateY(-3px)!important;
  box-shadow:0 18px 42px rgba(22,52,42,.14)!important;
  background:#fff!important;
}
.all-work-card.pinterest-card img{
  display:block!important;
  width:100%!important;
  height:auto!important;
  min-height:120px!important;
  aspect-ratio:var(--pin-ratio)!important;
  object-fit:cover!important;
  border-radius:16px!important;
  background:linear-gradient(135deg,#dfece6,#eef6f2)!important;
  transition:opacity .22s ease,transform .45s ease!important;
}
.all-work-card.pinterest-card.is-loading img{opacity:.42!important}
.all-work-card.pinterest-card.is-loaded img{opacity:1!important}
.all-work-card.pinterest-card:hover img{transform:scale(1.018)!important}
.all-work-card.pinterest-card>span,
.all-work-card.pinterest-card .work-card-meta,
.all-work-card.pinterest-card .work-card-counts{
  padding-left:10px!important;
  padding-right:10px!important;
}
.all-work-card.pinterest-card>span{
  display:block!important;
  margin:8px 0 0!important;
  font-size:13px!important;
  line-height:1.35!important;
  font-weight:700!important;
  color:#17221d!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.all-work-card.pinterest-card .work-card-meta{
  display:flex!important;
  justify-content:space-between!important;
  gap:8px!important;
  margin:5px 0 10px!important;
  font-size:12px!important;
  line-height:1.25!important;
}
.all-work-card.pinterest-card .work-card-counts{
  margin:-4px 0 10px!important;
  font-size:12px!important;
  color:#66756e!important;
}
.all-work-card.pinterest-card .pin-hover-ui{
  left:8px!important;
  right:8px!important;
  bottom:42px!important;
  border-radius:14px!important;
  backdrop-filter:blur(14px) saturate(1.25)!important;
  -webkit-backdrop-filter:blur(14px) saturate(1.25)!important;
  background:linear-gradient(180deg,rgba(10,24,18,.04),rgba(10,24,18,.62))!important;
}
.masonry-sentinel{
  display:block!important;
  width:100%!important;
  height:48px!important;
  break-inside:avoid!important;
  page-break-inside:avoid!important;
}
@media(max-width:1180px){
  .all-works-grid.pinterest-masonry,
  #gallery.pinterest-masonry,
  .search-results-grid.pinterest-masonry,
  .category-page-grid.pinterest-masonry{columns:4 200px!important}
}
@media(max-width:900px){
  .all-works-grid.pinterest-masonry,
  #gallery.pinterest-masonry,
  .search-results-grid.pinterest-masonry,
  .category-page-grid.pinterest-masonry{columns:3 170px!important;column-gap:12px!important}
}
@media(max-width:560px){
  .all-works-grid.pinterest-masonry,
  #gallery.pinterest-masonry,
  .search-results-grid.pinterest-masonry,
  .category-page-grid.pinterest-masonry{
    width:calc(100vw - 16px)!important;
    columns:2 142px!important;
    column-gap:10px!important;
  }
  .all-work-card.pinterest-card{margin-bottom:10px!important;border-radius:13px!important}
  .all-work-card.pinterest-card img{border-radius:13px!important;min-height:92px!important}
  .all-work-card.pinterest-card>span{font-size:12px!important;margin-top:6px!important}
  .all-work-card.pinterest-card .work-card-meta{font-size:11px!important;margin-bottom:8px!important}
  .all-work-card.pinterest-card .pin-hover-ui{display:none!important}
}

/* v172 align hover overlay exactly to the image frame */
.all-work-card.pinterest-card{
  position:relative!important;
  overflow:hidden!important;
}
.all-work-card.pinterest-card .pin-hover-ui{
  position:absolute!important;
  inset:0 auto auto 0!important;
  width:100%!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  aspect-ratio:var(--pin-ratio)!important;
  box-sizing:border-box!important;
  border-radius:16px!important;
  padding:clamp(10px,1.1vw,14px)!important;
  display:grid!important;
  align-content:end!important;
  overflow:hidden!important;
  transform:none!important;
  opacity:0!important;
  pointer-events:none!important;
  background:linear-gradient(180deg,rgba(8,18,14,0) 42%,rgba(8,18,14,.72) 100%)!important;
}
.all-work-card.pinterest-card:hover .pin-hover-ui,
.all-work-card.pinterest-card:focus-visible .pin-hover-ui{
  opacity:1!important;
  transform:none!important;
}
.all-work-card.pinterest-card .pin-hover-save,
.all-work-card.pinterest-card .pin-hover-download{
  pointer-events:auto!important;
}
@media(max-width:560px){
  .all-work-card.pinterest-card .pin-hover-ui{display:none!important}
}

/* v173 remove bottom title strip and lock hover to image height */
.all-work-card.pinterest-card{
  overflow:visible!important;
}
.all-work-card.pinterest-card>span{
  display:none!important;
}
.all-work-card.pinterest-card img{
  position:relative!important;
  z-index:1!important;
}
.all-work-card.pinterest-card .pin-hover-ui{
  z-index:2!important;
  height:var(--hover-box-h,auto)!important;
  aspect-ratio:auto!important;
  border-radius:16px!important;
  transform:none!important;
}
.all-work-card.pinterest-card:hover .pin-hover-ui,
.all-work-card.pinterest-card:focus-visible .pin-hover-ui{
  transform:none!important;
}
.all-work-card.pinterest-card:hover img{
  transform:none!important;
}
.all-work-card.pinterest-card .work-card-meta{
  margin-top:8px!important;
}

/* v174 mobile and portrait browsing polish */
@media(max-width:760px),(orientation:portrait) and (max-width:820px){
  html{scroll-padding-top:88px!important}
  body{background:#f3faf6!important}
  .topbar{
    position:sticky!important;
    top:8px!important;
    left:auto!important;
    right:auto!important;
    width:calc(100vw - 16px)!important;
    margin:8px auto 0!important;
    min-height:56px!important;
    padding:8px!important;
    gap:7px!important;
    border-radius:18px!important;
    box-shadow:0 12px 34px rgba(22,54,42,.12)!important;
  }
  .brand{min-width:0!important}
  .brand-name{font-size:18px!important}
  .main-nav{
    order:2!important;
    flex:1 1 auto!important;
    gap:3px!important;
    overflow-x:auto!important;
    scrollbar-width:none!important;
  }
  .main-nav::-webkit-scrollbar{display:none!important}
  .main-nav .nav-link{
    min-height:34px!important;
    padding:0 10px!important;
    font-size:13px!important;
    white-space:nowrap!important;
  }
  .search-box{
    order:5!important;
    flex:1 0 100%!important;
    height:40px!important;
    margin-top:2px!important;
  }
  .message-button,.avatar-button{
    width:38px!important;
    height:38px!important;
    flex:0 0 38px!important;
  }
  .hero-feature{
    display:none!important;
  }
  .home-ia,
  .portfolio-section,
  .library-page,
  .search-page,
  .category-page{
    padding-left:10px!important;
    padding-right:10px!important;
    box-sizing:border-box!important;
  }
  .home-ia{
    padding-top:18px!important;
    margin-top:0!important;
  }
  .category-zone{
    margin-top:18px!important;
  }
  #gallery.gallery,
  .library-page .all-works-grid,
  .search-results-grid,
  .category-page-grid,
  .all-works-grid.pinterest-masonry{
    width:calc(100vw - 16px)!important;
    columns:2 148px!important;
    column-gap:10px!important;
    margin-left:auto!important;
    margin-right:auto!important;
  }
  .all-work-card.pinterest-card{
    margin-bottom:12px!important;
    border-radius:14px!important;
    box-shadow:0 8px 22px rgba(26,58,46,.08)!important;
  }
  .all-work-card.pinterest-card img{
    border-radius:14px!important;
  }
  .all-work-card.pinterest-card .work-card-meta{
    padding:0 8px!important;
    margin:7px 0 8px!important;
    font-size:11px!important;
  }
  .all-work-card.pinterest-card .work-card-counts{
    padding:0 8px!important;
    margin:-4px 0 8px!important;
    font-size:11px!important;
  }
  .pin-hover-ui{display:none!important}
  .filter-button,.portfolio-button,.upload-button,
  .lightbox-actions button,.lightbox-download{
    min-height:40px!important;
  }
  .lightbox{
    padding:8px!important;
    grid-template-columns:1fr!important;
    align-items:stretch!important;
    overflow:auto!important;
  }
  .lightbox-image-panel{
    min-height:54vh!important;
    border-radius:18px!important;
  }
  .lightbox-image-panel img{
    max-height:70vh!important;
    object-fit:contain!important;
  }
  .lightbox-details{
    max-height:none!important;
    padding:14px!important;
    border-radius:18px!important;
  }
  .lightbox-close{
    top:12px!important;
    right:12px!important;
  }
  .lightbox-prev{left:8px!important}
  .lightbox-next{right:8px!important}
}
@media(max-width:390px){
  #gallery.gallery,
  .library-page .all-works-grid,
  .search-results-grid,
  .category-page-grid,
  .all-works-grid.pinterest-masonry{
    columns:2 136px!important;
    column-gap:8px!important;
  }
  .brand-name{display:none!important}
  .main-nav .nav-link{padding:0 8px!important}
}

/* v175 completion polish: desktop/mac, mobile, interactions */
body{
  text-rendering:optimizeLegibility;
  -webkit-font-smoothing:antialiased;
}
body.is-scrolled .topbar{
  box-shadow:0 18px 44px rgba(17,47,35,.14)!important;
  background:rgba(250,253,250,.86)!important;
}
.topbar,
.login-panel,
.lightbox-details,
.activity-card,
.category-pro-card,
.all-work-card.pinterest-card{
  -webkit-backdrop-filter:blur(18px) saturate(1.18);
  backdrop-filter:blur(18px) saturate(1.18);
}
.nav-link.active{
  box-shadow:0 8px 20px rgba(0,112,73,.18)!important;
}
.nav-link:focus-visible,
.portfolio-button:focus-visible,
.all-work-card:focus-visible,
.project-image:focus-visible,
.lightbox-actions button:focus-visible,
.library-summary button:focus-visible,
.back-top-button:focus-visible,
.mobile-action-dock button:focus-visible{
  outline:3px solid rgba(0,132,83,.28)!important;
  outline-offset:3px!important;
}
.library-head{
  align-items:start!important;
  gap:14px!important;
}
.library-summary{
  grid-column:1/-1;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  min-height:42px;
  padding:9px 12px;
  border:1px solid rgba(24,84,58,.11);
  border-radius:14px;
  background:rgba(255,255,255,.72);
  color:#53645c;
  font-size:13px;
}
.library-summary span{
  font-weight:900;
  color:#0b7048;
}
.library-summary b{
  margin-right:auto;
  font-weight:700;
}
.library-summary button{
  min-height:30px;
  border:0;
  border-radius:999px;
  padding:0 12px;
  background:#ecf6f1;
  color:#0d6f48;
  font-weight:800;
}
.library-filters select{
  cursor:pointer;
}
.all-work-card.pinterest-card{
  border:1px solid rgba(20,77,53,.08)!important;
  will-change:transform;
}
.all-work-card.pinterest-card.tap-feedback,
.all-work-card.pinterest-card:active{
  transform:scale(.985)!important;
}
.all-work-card.pinterest-card .work-card-meta i,
.all-work-card.pinterest-card .work-card-meta b{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.all-work-card.pinterest-card .work-card-meta i{
  text-align:right;
}
.empty-inline{
  border:1px dashed rgba(15,89,58,.2)!important;
  border-radius:18px!important;
  background:rgba(255,255,255,.62)!important;
}
.back-top-button{
  position:fixed;
  right:18px;
  bottom:22px;
  z-index:50;
  width:44px;
  height:44px;
  border:0;
  border-radius:999px;
  color:#fff;
  background:#0a7a4e;
  box-shadow:0 18px 38px rgba(7,76,49,.25);
  font-size:20px;
  font-weight:900;
}
.back-top-button[hidden]{display:none!important}
.mobile-action-dock{
  display:none;
}
.lightbox{
  overscroll-behavior:contain;
}
.lightbox-image-panel{
  touch-action:none;
}
.lightbox-details h2{
  line-height:1.08!important;
}
.lightbox-actions{
  position:sticky;
  top:0;
  z-index:2;
  padding:8px 0;
  background:linear-gradient(180deg,rgba(255,255,255,.92),rgba(255,255,255,.68));
  -webkit-backdrop-filter:blur(12px);
  backdrop-filter:blur(12px);
}
.login-modal:not([hidden]){
  animation:v175FadeIn .18s ease both;
}
.login-panel{
  animation:v175PanelIn .22s ease both;
}
@keyframes v175FadeIn{from{opacity:0}to{opacity:1}}
@keyframes v175PanelIn{from{opacity:0;transform:translateY(10px) scale(.985)}to{opacity:1;transform:none}}
@media(hover:hover) and (pointer:fine){
  .portfolio-button:hover,
  .library-summary button:hover,
  .mobile-action-dock button:hover{
    transform:translateY(-2px);
  }
  .all-work-card.pinterest-card:hover{
    transform:translateY(-4px)!important;
  }
}

/* v209 lightbox stacked safe layout: image first, controls never covered */
.lightbox:not([hidden]){
  grid-template-rows:auto auto!important;
  justify-content:center!important;
  align-content:start!important;
  padding:clamp(10px,1.8vw,18px)!important;
  background:
    radial-gradient(circle at 50% 0%, rgba(255,255,255,.10), transparent 34%),
    rgba(8,10,10,.9)!important;
}
.lightbox-image-panel{
  width:min(100%,min(1560px,calc(100vw - 28px)))!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  aspect-ratio:16 / 9!important;
  padding:clamp(52px,5vw,74px) clamp(54px,5vw,82px) clamp(58px,5vw,78px)!important;
  border-radius:26px!important;
  background:rgba(255,255,255,.055)!important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.08), 0 28px 80px rgba(0,0,0,.28)!important;
}
.lightbox-image-panel img,
.lightbox img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
  object-fit:contain!important;
  box-shadow:none!important;
  background:transparent!important;
}
.lightbox-details{
  width:min(100%,min(1320px,calc(100vw - 44px)))!important;
  margin:10px auto 24px!important;
  border:1px solid rgba(255,255,255,.72)!important;
  border-radius:22px!important;
  background:rgba(250,252,249,.96)!important;
  box-shadow:0 26px 70px rgba(0,0,0,.20)!important;
  transform:translateZ(0)!important;
}
.lightbox-actions{
  position:sticky!important;
  top:12px!important;
  z-index:6!important;
  padding:8px!important;
  border-radius:999px!important;
  background:rgba(255,255,255,.68)!important;
  box-shadow:0 12px 34px rgba(11,35,23,.12)!important;
  -webkit-backdrop-filter:blur(16px) saturate(1.25)!important;
  backdrop-filter:blur(16px) saturate(1.25)!important;
}
.lightbox-close{
  top:clamp(12px,2vw,20px)!important;
  right:clamp(12px,2vw,20px)!important;
}
.lightbox-nav{
  top:calc(clamp(52px,5vw,74px) + min(34vw,360px))!important;
}
.lightbox-zoom-controls{
  bottom:16px!important;
}
@media(min-aspect-ratio:16/9) and (min-width:900px){
  .lightbox-image-panel{
    aspect-ratio:21 / 9!important;
    max-height:68vh!important;
  }
}
@media(max-aspect-ratio:4/5) and (min-width:700px){
  .lightbox-image-panel{
    aspect-ratio:4 / 5!important;
    max-height:72vh!important;
  }
}
@media(max-width:980px){
  .lightbox-image-panel{
    width:calc(100vw - 20px)!important;
    aspect-ratio:4 / 3!important;
    padding:58px 48px 60px!important;
  }
  .lightbox-details{
    width:calc(100vw - 20px)!important;
    margin:-12px auto 18px!important;
  }
  .lightbox-actions{
    position:relative!important;
    top:auto!important;
    justify-self:start!important;
    border-radius:18px!important;
  }
}
@media(max-width:560px){
  .lightbox:not([hidden]){
    padding:0!important;
  }
  .lightbox-image-panel{
    width:100vw!important;
    aspect-ratio:auto!important;
    height:58vh!important;
    min-height:360px!important;
    padding:54px 12px 58px!important;
    border-radius:0!important;
    box-shadow:none!important;
  }
  .lightbox-details{
    width:100vw!important;
    margin:-10px 0 0!important;
    border-radius:20px 20px 0 0!important;
  }
  .lightbox-nav{
    top:29vh!important;
  }
  .lightbox-zoom-controls{
    bottom:12px!important;
  }
}
@media(max-width:1100px){
  .library-page,
  .search-page,
  .category-page{
    padding-top:96px!important;
  }
  .library-head{
    grid-template-columns:1fr!important;
  }
  .filter-drawer{
    width:100%!important;
  }
  .library-filters{
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:8px!important;
  }
}
@media(max-width:760px),(orientation:portrait) and (max-width:900px){
  body{
    padding-bottom:82px!important;
  }
  body.scrolling-down .topbar{
    transform:translateY(-74px)!important;
  }
  .topbar{
    transition:transform .22s ease,box-shadow .22s ease,background .22s ease!important;
  }
  .main-nav{
    width:100%!important;
  }
  .main-nav .nav-link{
    flex:1 0 auto!important;
    justify-content:center!important;
  }
  .search-box input{
    font-size:16px!important;
  }
  .home-ia{
    display:grid!important;
    gap:12px!important;
  }
  .stats-strip{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:10px!important;
  }
  .home-side-modules{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:10px!important;
  }
  .projects-section .portfolio-heading,
  .category-zone .section-heading{
    grid-template-columns:1fr!important;
    gap:10px!important;
  }
  .portfolio-heading h2,
  .category-zone h2,
  .library-head h2{
    font-size:clamp(30px,9vw,44px)!important;
    line-height:1!important;
  }
  .library-page,
  .search-page,
  .category-page{
    padding-top:18px!important;
  }
  .library-head{
    position:sticky!important;
    top:8px!important;
    z-index:8!important;
    padding:10px!important;
    border-radius:18px!important;
    background:rgba(246,252,248,.88)!important;
    -webkit-backdrop-filter:blur(18px) saturate(1.16)!important;
    backdrop-filter:blur(18px) saturate(1.16)!important;
  }
  .filter-drawer summary{
    min-height:40px!important;
  }
  .library-filters{
    grid-template-columns:1fr!important;
  }
  .library-filters select{
    min-height:42px!important;
    font-size:15px!important;
  }
  .library-summary{
    align-items:flex-start;
    flex-wrap:wrap;
    border-radius:13px;
  }
  .library-summary button{
    width:100%;
  }
  .mobile-action-dock{
    position:fixed;
    left:10px;
    right:10px;
    bottom:10px;
    z-index:60;
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:6px;
    padding:8px;
    border:1px solid rgba(23,76,54,.12);
    border-radius:20px;
    background:rgba(250,253,250,.9);
    box-shadow:0 18px 46px rgba(19,58,42,.18);
    -webkit-backdrop-filter:blur(18px) saturate(1.2);
    backdrop-filter:blur(18px) saturate(1.2);
  }
  .mobile-action-dock button{
    min-height:42px;
    border:0;
    border-radius:14px;
    background:transparent;
    color:#27362f;
    font-weight:900;
    font-size:13px;
  }
  .mobile-action-dock button.active,
  .mobile-action-dock button[data-mobile-action="upload"]{
    color:#fff;
    background:#087a4f;
  }
  .back-top-button{
    right:14px;
    bottom:78px;
    width:40px;
    height:40px;
  }
  .lightbox{
    padding:6px!important;
  }
  .lightbox-image-panel{
    min-height:48vh!important;
    border-radius:16px!important;
  }
  .lightbox-details{
    padding-bottom:92px!important;
  }
  .lightbox-actions{
    bottom:0;
    top:auto;
    margin:8px -4px 0;
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:8px!important;
  }
  .lightbox-actions button,
  .lightbox-actions a{
    width:100%!important;
    justify-content:center!important;
  }
}
@media(max-width:420px){
  .stats-strip{
    grid-template-columns:1fr!important;
  }
  .brand-mark{
    width:34px!important;
  }
  .profile{
    margin-left:0!important;
  }
  .message-button{
    display:none!important;
  }
}

/* v176 professional footer template */
.creator-credit{display:none!important}
.site-footer{
  width:100%!important;
  margin:0!important;
  padding:0!important;
  border-top:1px solid rgba(17,72,48,.12)!important;
  background:
    linear-gradient(180deg,rgba(246,252,248,.72),rgba(225,239,231,.92)),
    radial-gradient(circle at 18% 0%,rgba(0,119,76,.1),transparent 34%)!important;
  color:#26352e!important;
  text-align:left!important;
  font-weight:500!important;
}
.footer-inner{
  width:min(1180px,calc(100% - 36px));
  margin:0 auto;
  padding:clamp(34px,5vw,58px) 0 28px;
}
.footer-brand{
  display:grid;
  grid-template-columns:minmax(220px,.55fr) minmax(320px,1fr);
  gap:clamp(20px,4vw,56px);
  align-items:end;
  padding-bottom:26px;
  border-bottom:1px solid rgba(20,77,53,.12);
}
.footer-logo{
  display:flex;
  align-items:center;
  gap:12px;
  color:#07110d;
  font-size:32px;
  font-weight:950;
  letter-spacing:0;
}
.footer-logo .brand-mark{
  width:42px;
  height:38px;
  color:#07110d;
  display:inline-flex;
}
.footer-logo .brand-mark svg{
  width:100%;
  height:100%;
}
.footer-brand p{
  max-width:720px;
  margin:0;
  color:#5b6a62;
  font-size:15px;
  line-height:1.8;
}
.footer-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
  padding:24px 0 26px;
}
.footer-grid section{
  min-height:150px;
  padding:18px;
  border:1px solid rgba(20,77,53,.1);
  border-radius:18px;
  background:rgba(255,255,255,.58);
  box-shadow:0 18px 42px rgba(25,62,45,.06);
}
.footer-grid h3{
  margin:0 0 12px;
  color:#0a2016;
  font-size:15px;
  line-height:1.2;
}
.footer-grid a,
.footer-grid p{
  display:block;
  margin:0 0 8px;
  color:#5e6d65;
  font-size:13px;
  line-height:1.65;
  text-decoration:none;
}
.footer-grid a{
  width:max-content;
  max-width:100%;
  font-weight:800;
}
.footer-grid a:hover{
  color:#087a4f;
}
.footer-bottom{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:10px 18px;
  padding-top:18px;
  border-top:1px solid rgba(20,77,53,.1);
  color:#64746c;
  font-size:12px;
  font-weight:800;
}
.footer-bottom strong{
  color:#1b2b23!important;
  letter-spacing:.04em;
}
@media(max-width:820px){
  .footer-inner{
    width:calc(100% - 24px);
    padding-bottom:96px;
  }
  .footer-brand{
    grid-template-columns:1fr;
    gap:12px;
    align-items:start;
  }
  .footer-logo{
    font-size:28px;
  }
  .footer-grid{
    grid-template-columns:1fr;
    gap:10px;
  }
  .footer-grid section{
    min-height:0;
    padding:15px;
    border-radius:16px;
  }
  .footer-bottom{
    display:grid;
    justify-content:start;
  }
}

/* v179 hide home stats modules on mobile */
@media(max-width:760px),(orientation:portrait) and (max-width:900px){
  main > .home-ia,
  .home-ia{
    display:none!important;
  }
}

/* v180 hard guard: category content is visible only while a category folder is open */
#categoryPage[hidden],
#categoryPage[aria-hidden="true"],
body:not(.category-mode) #categoryPage{
  display:none!important;
  visibility:hidden!important;
  pointer-events:none!important;
}
body.category-mode #categoryPage:not([hidden]){
  display:block!important;
  visibility:visible!important;
  pointer-events:auto!important;
}

/* v181 remove white action strip in lightbox detail panel */
.lightbox-details .lightbox-actions{
  position:static!important;
  top:auto!important;
  z-index:auto!important;
  padding:0!important;
  margin:18px 0 14px!important;
  background:transparent!important;
  box-shadow:none!important;
  border:0!important;
  -webkit-backdrop-filter:none!important;
  backdrop-filter:none!important;
}

/* v182 visual-only others recommendations */
.others-grid button.others-visual-pin{
  display:block!important;
  width:100%!important;
  aspect-ratio:1/1!important;
  padding:0!important;
  overflow:hidden!important;
  border:0!important;
  border-radius:14px!important;
  background:var(--others-theme,linear-gradient(135deg,#dcebe3,#f5faf6))!important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.42)!important;
}
.others-grid button.others-visual-pin img{
  width:100%!important;
  height:100%!important;
  aspect-ratio:auto!important;
  object-fit:cover!important;
  border-radius:0!important;
  opacity:0;
  transition:opacity .22s ease;
}
.others-grid button.others-visual-pin img.is-loaded{
  opacity:1;
}
.others-grid button.others-visual-pin img.is-missing{
  display:none!important;
}
.others-grid button.others-visual-pin span,
.others-grid button.others-visual-pin em,
.others-grid button.others-visual-pin + span,
.others-grid button.others-visual-pin + em{
  display:none!important;
}

/* v183 keep loading rings centered while rotating */
@keyframes spinCentered{
  from{transform:translateY(-50%) rotate(0deg)}
  to{transform:translateY(-50%) rotate(360deg)}
}
.login-submit.loading::before{
  animation:spinCentered 700ms linear infinite!important;
  transform:translateY(-50%) rotate(0deg)!important;
  transform-origin:center center!important;
}
.profile-panel .login-submit.loading::before{
  position:absolute!important;
  right:10px!important;
  top:50%!important;
  margin-right:0!important;
}
.avatar-picker.loading::before{
  animation:spin 700ms linear infinite!important;
  transform-origin:center center!important;
}

/* v184 multi-image upload panel */
.upload-panel{
  width:min(860px,100%)!important;
}
.upload-batch-status{
  display:grid;
  gap:8px;
  padding:12px;
  border:1px solid rgba(8,122,77,.14);
  border-radius:14px;
  background:rgba(240,248,243,.78);
}
.upload-batch-status[hidden]{
  display:none!important;
}
.upload-batch-status span{
  color:#173327;
  font-size:13px;
  font-weight:900;
}
.upload-batch-status i{
  display:block;
  height:8px;
  overflow:hidden;
  border-radius:999px;
  background:rgba(8,122,77,.12);
}
.upload-batch-status b{
  display:block;
  width:0;
  height:100%;
  border-radius:inherit;
  background:linear-gradient(90deg,#087a4f,#55b884);
  transition:width .22s ease;
}
.upload-file-item{
  grid-template-columns:116px minmax(0,1fr)!important;
  border-radius:16px!important;
  background:rgba(255,255,255,.72)!important;
}
.upload-thumb{
  position:relative;
  overflow:hidden;
  border-radius:14px;
  background:#e8f1eb;
}
.upload-thumb img{
  display:block;
  width:100%;
  aspect-ratio:1/1;
  object-fit:cover;
}
.upload-state{
  position:absolute;
  left:7px;
  bottom:7px;
  max-width:calc(100% - 14px);
  padding:4px 7px;
  border-radius:999px;
  color:#fff;
  background:rgba(17,31,24,.72);
  font-size:11px;
  font-weight:900;
}
.upload-file-item[data-state="uploading"] .upload-state{
  background:#087a4f;
}
.upload-file-item[data-state="done"] .upload-state{
  background:#0d7040;
}
.upload-file-item[data-state="error"]{
  border-color:rgba(185,47,47,.35)!important;
}
.upload-file-item[data-state="error"] .upload-state{
  background:#9b2626;
}
.upload-file-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  color:#1b2b23;
  font-size:13px;
}
.upload-file-top strong{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.upload-file-top em{
  flex:0 0 auto;
  color:#607168;
  font-style:normal;
  font-weight:800;
}
.uf-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:10px;
  align-items:center;
}
.uf-ai-check{
  display:inline-flex;
  align-items:center;
  gap:6px;
  white-space:nowrap;
  color:#4f6258;
  font-size:13px;
  font-weight:800;
}
@media(max-width:640px){
  .upload-file-item{
    grid-template-columns:82px minmax(0,1fr)!important;
    gap:10px!important;
  }
  .uf-row{
    grid-template-columns:1fr;
  }
}

/* v185 final spinner: fixed center, rotate without transform conflicts */
@keyframes v185RingRotate{
  from{rotate:0deg}
  to{rotate:360deg}
}
.login-submit.loading,
.login-submit.loading:hover,
.login-submit.loading:active{
  transform:none!important;
}
.login-submit.loading::before,
.profile-panel .login-submit.loading::before{
  position:absolute!important;
  right:12px!important;
  top:calc(50% - 7px)!important;
  width:14px!important;
  height:14px!important;
  margin:0!important;
  border:2px solid rgba(255,255,255,.35)!important;
  border-top-color:#fff!important;
  border-radius:50%!important;
  transform:none!important;
  translate:none!important;
  rotate:0deg;
  animation:v185RingRotate 700ms linear infinite!important;
  transform-origin:center center!important;
}

/* v187 mobile portrait layout and interaction pass */
@media(max-width:760px),(orientation:portrait) and (max-width:900px){
  html{
    width:100%;
    overflow-x:hidden!important;
    scroll-padding-top:86px!important;
  }
  body{
    width:100%;
    overflow-x:hidden!important;
    padding-bottom:92px!important;
    background:#f4faf6!important;
  }
  main{
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    padding:10px 8px 96px!important;
  }
  .topbar{
    position:sticky!important;
    top:6px!important;
    left:auto!important;
    right:auto!important;
    width:calc(100% - 12px)!important;
    margin:6px auto 0!important;
    display:grid!important;
    grid-template-columns:auto minmax(0,1fr) auto!important;
    grid-template-areas:"brand search profile"!important;
    gap:8px!important;
    padding:8px!important;
    border-radius:20px!important;
    z-index:80!important;
    background:rgba(250,253,250,.88)!important;
    box-shadow:0 14px 36px rgba(19,58,42,.12)!important;
  }
  body.scrolling-down:not(.lightbox-open) .topbar{
    transform:translateY(-120%)!important;
  }
  .brand{grid-area:brand!important;min-width:42px!important;gap:6px!important}
  .brand-name{display:none!important}
  .main-nav{display:none!important}
  .search-box{
    grid-area:search!important;
    min-width:0!important;
    width:100%!important;
    height:40px!important;
    margin:0!important;
    border-radius:999px!important;
  }
  .search-box input{
    min-width:0!important;
    font-size:14px!important;
  }
  .profile{
    grid-area:profile!important;
    justify-self:end!important;
    gap:6px!important;
  }
  .message-button{display:none!important}
  .avatar-button,.login-button{
    width:40px!important;
    height:40px!important;
    min-width:40px!important;
    padding:0!important;
    border-radius:50%!important;
  }
  .login-button{
    font-size:0!important;
  }
  .login-button::after{
    content:"登";
    font-size:14px;
    font-weight:900;
  }
  .profile-menu{
    position:fixed!important;
    left:10px!important;
    right:10px!important;
    top:64px!important;
    width:auto!important;
    border-radius:18px!important;
    z-index:120!important;
  }
  .hero-feature,
  .feature-duo,
  .leaderboard-panel,
  .status-row,
  main > .home-ia,
  .home-ia{
    display:none!important;
  }
  .portfolio-section,
  .library-page,
  .search-page,
  .category-page,
  .category-zone{
    width:100%!important;
    max-width:none!important;
    margin:14px 0!important;
    padding-left:8px!important;
    padding-right:8px!important;
    padding-top:14px!important;
  }
  .library-head{
    position:static!important;
    width:100%!important;
    margin:0 0 12px!important;
    padding:12px!important;
    border-radius:18px!important;
  }
  .library-title-row,
  .section-heading{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:8px!important;
  }
  .library-filters{
    grid-template-columns:1fr!important;
    gap:8px!important;
  }
  #gallery.gallery,
  .library-page .all-works-grid,
  .search-results-grid,
  .category-page-grid,
  .all-works-grid.pinterest-masonry{
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    columns:2 150px!important;
    column-gap:8px!important;
  }
  .all-work-card.pinterest-card{
    margin:0 0 9px!important;
    border-radius:14px!important;
    box-shadow:0 8px 18px rgba(26,58,46,.08)!important;
    background:#fff!important;
    -webkit-tap-highlight-color:transparent;
  }
  .all-work-card.pinterest-card img{
    min-height:96px!important;
    border-radius:14px!important;
  }
  .all-work-card.pinterest-card .work-card-meta{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:1px!important;
    padding:0 7px!important;
    margin:6px 0 5px!important;
    font-size:10.5px!important;
    line-height:1.25!important;
  }
  .all-work-card.pinterest-card .work-card-meta i{
    text-align:left!important;
  }
  .all-work-card.pinterest-card .work-card-counts{
    padding:0 7px 7px!important;
    margin:0!important;
    font-size:10.5px!important;
    line-height:1.25!important;
  }
  .pin-hover-ui{display:none!important}
  .mobile-action-dock{
    position:fixed!important;
    display:grid!important;
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    left:10px!important;
    right:10px!important;
    bottom:calc(10px + env(safe-area-inset-bottom))!important;
    z-index:100!important;
    gap:4px!important;
    padding:6px!important;
    border:1px solid rgba(18,76,54,.12)!important;
    border-radius:18px!important;
    background:rgba(250,253,250,.90)!important;
    box-shadow:0 18px 46px rgba(19,58,42,.18)!important;
    -webkit-backdrop-filter:blur(18px) saturate(1.2)!important;
    backdrop-filter:blur(18px) saturate(1.2)!important;
  }
  .mobile-action-dock button{
    min-width:0!important;
    min-height:42px!important;
    border:0!important;
    border-radius:14px!important;
    font-size:13px!important;
    font-weight:900!important;
  }
  .lightbox{
    display:grid!important;
    grid-template-columns:1fr!important;
    align-content:start!important;
    gap:8px!important;
    padding:8px!important;
    overflow:auto!important;
  }
  .lightbox[hidden]{display:none!important}
  .lightbox-image-panel{
    min-height:46vh!important;
    max-height:52vh!important;
    border-radius:18px!important;
    background:rgba(12,18,14,.82)!important;
  }
  .lightbox-image-panel img{
    max-width:100%!important;
    max-height:50vh!important;
    border-radius:12px!important;
  }
  .lightbox-details{
    width:100%!important;
    max-height:none!important;
    padding:14px 14px 96px!important;
    border-radius:18px!important;
  }
  .lightbox-details h2{
    font-size:clamp(26px,9vw,38px)!important;
    overflow-wrap:anywhere!important;
  }
  .lightbox-actions{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:8px!important;
  }
  .lightbox-actions button,
  .lightbox-actions a{
    width:100%!important;
    min-height:42px!important;
  }
  .login-modal{
    place-items:end center!important;
    padding:8px!important;
  }
  .login-panel,
  .upload-panel,
  .profile-panel{
    width:100%!important;
    max-height:calc(100dvh - 16px)!important;
    overflow:auto!important;
    border-radius:22px!important;
    padding:20px 14px calc(20px + env(safe-area-inset-bottom))!important;
  }
  .upload-preview-strip{
    grid-auto-columns:78px!important;
  }
  .upload-file-item{
    grid-template-columns:82px minmax(0,1fr)!important;
    gap:10px!important;
    padding:8px!important;
  }
  .upload-file-top{
    display:grid!important;
    gap:2px!important;
  }
  .uf-row{
    grid-template-columns:1fr!important;
  }
  .back-top-button{
    right:14px!important;
    bottom:calc(78px + env(safe-area-inset-bottom))!important;
  }
}

/* v188 search focus motion */
.search-box{
  transition:transform .22s ease, box-shadow .22s ease, border-color .22s ease, background-color .22s ease!important;
}
.search-box:focus-within,
body.search-active .search-box{
  transform:translateY(-1px) scale(1.012)!important;
  border-color:rgba(0,137,83,.34)!important;
  box-shadow:0 16px 42px rgba(20,85,61,.16), inset 0 0 0 1px rgba(255,255,255,.72)!important;
  background:#fff!important;
}

/* v188 category standalone page and nav hover polish */
.main-nav .nav-link:not(.active):hover{
  background:transparent!important;
  color:#122018!important;
  box-shadow:none!important;
}
.main-nav .nav-link.active{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
}
body:not(.category-list-mode):not(.category-mode) main > .category-zone:not(.standalone-category-zone){
  display:none!important;
}
.standalone-category-zone,
body.category-list-mode .category-zone{
  width:min(100% - 56px, 1560px)!important;
  margin:118px auto 64px!important;
  padding:0!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
}
.standalone-category-zone::before,
.standalone-category-zone::after,
body.category-list-mode .category-zone::before,
body.category-list-mode .category-zone::after{
  display:none!important;
}
body.category-list-mode .category-zone .section-heading{
  display:grid!important;
  grid-template-columns:minmax(260px,1fr) auto!important;
  gap:18px!important;
  align-items:end!important;
  margin-bottom:20px!important;
}
body.category-list-mode .category-zone .section-heading h2{
  font-size:clamp(48px,7vw,104px)!important;
  line-height:.9!important;
  margin:0!important;
}
body.category-list-mode .category-pro-grid{
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr))!important;
  gap:14px!important;
}
body.category-list-mode .category-pro-card{
  min-height:250px!important;
  border-radius:18px!important;
}
@media(max-width:760px){
  .standalone-category-zone,
  body.category-list-mode .category-zone{
    width:calc(100% - 20px)!important;
    margin:92px auto 44px!important;
  }
  body.category-list-mode .category-zone .section-heading{
    grid-template-columns:1fr!important;
  }
  body.category-list-mode .category-pro-grid{
    grid-template-columns:1fr!important;
  }
}

/* v190 latest/favorites library pages aligned with category page */
body.library-mode[data-library-mode="latest"] .library-page,
body.library-mode[data-library-mode="favorites"] .library-page{
  width:min(100% - 56px, 1560px)!important;
  margin:118px auto 72px!important;
  padding:0!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}
body.library-mode[data-library-mode="latest"] .library-head,
body.library-mode[data-library-mode="favorites"] .library-head{
  display:grid!important;
  grid-template-columns:minmax(260px,1fr) minmax(360px,520px)!important;
  gap:18px!important;
  align-items:end!important;
  margin:0 0 22px!important;
  padding:0!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}
body.library-mode[data-library-mode="latest"] .library-head .kicker,
body.library-mode[data-library-mode="favorites"] .library-head .kicker{
  margin:0 0 10px!important;
  color:#08784a!important;
  font-weight:900!important;
}
body.library-mode[data-library-mode="latest"] .library-head h2,
body.library-mode[data-library-mode="favorites"] .library-head h2{
  font-size:clamp(48px,7vw,104px)!important;
  line-height:.9!important;
  letter-spacing:0!important;
  margin:0!important;
}
body.library-mode[data-library-mode="latest"] .filter-drawer,
body.library-mode[data-library-mode="favorites"] .filter-drawer{
  justify-self:end!important;
  width:100%!important;
  border:1px solid rgba(22,77,51,.1)!important;
  border-radius:18px!important;
  background:rgba(255,255,255,.74)!important;
  box-shadow:0 18px 50px rgba(31,75,54,.08)!important;
  padding:10px!important;
}
body.library-mode[data-library-mode="latest"] .filter-drawer summary,
body.library-mode[data-library-mode="favorites"] .filter-drawer summary{
  display:none!important;
}
body.library-mode[data-library-mode="latest"] .library-filters,
body.library-mode[data-library-mode="favorites"] .library-filters{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:10px!important;
}
body.library-mode[data-library-mode="latest"] .library-filters select,
body.library-mode[data-library-mode="favorites"] .library-filters select{
  min-height:40px!important;
  border-radius:999px!important;
  border:1px solid rgba(25,70,49,.12)!important;
  background:#fff!important;
  font-weight:800!important;
  color:#14251b!important;
}
body.library-mode[data-library-mode="latest"] .library-summary,
body.library-mode[data-library-mode="favorites"] .library-summary{
  margin:0 0 18px auto!important;
  border-radius:18px!important;
}
body.library-mode[data-library-mode="latest"] .library-page .all-works-grid,
body.library-mode[data-library-mode="favorites"] .library-page .all-works-grid{
  width:100%!important;
  max-width:none!important;
  columns:5 210px!important;
  column-gap:16px!important;
}
body.library-mode[data-library-mode="latest"] .library-page .all-work-card,
body.library-mode[data-library-mode="favorites"] .library-page .all-work-card{
  margin-bottom:16px!important;
  border-radius:18px!important;
}
@media(max-width:980px){
  body.library-mode[data-library-mode="latest"] .library-head,
  body.library-mode[data-library-mode="favorites"] .library-head{
    grid-template-columns:1fr!important;
  }
  body.library-mode[data-library-mode="latest"] .filter-drawer,
  body.library-mode[data-library-mode="favorites"] .filter-drawer{
    justify-self:stretch!important;
  }
  body.library-mode[data-library-mode="latest"] .library-page .all-works-grid,
  body.library-mode[data-library-mode="favorites"] .library-page .all-works-grid{
    columns:4 180px!important;
  }
}
@media(max-width:760px){
  body.library-mode[data-library-mode="latest"] .library-page,
  body.library-mode[data-library-mode="favorites"] .library-page{
    width:calc(100% - 20px)!important;
    margin:92px auto 48px!important;
  }
  body.library-mode[data-library-mode="latest"] .library-filters,
  body.library-mode[data-library-mode="favorites"] .library-filters{
    grid-template-columns:1fr!important;
  }
  body.library-mode[data-library-mode="latest"] .library-page .all-works-grid,
  body.library-mode[data-library-mode="favorites"] .library-page .all-works-grid{
    columns:2 145px!important;
    column-gap:10px!important;
  }
}

/* v191 compact home stats band */
body:not(.library-mode):not(.user-mode):not(.search-mode):not(.category-mode):not(.category-list-mode) main > .home-ia,
body:not(.library-mode):not(.user-mode):not(.search-mode):not(.category-mode):not(.category-list-mode) .home-ia{
  width:min(100% - 56px, 1280px)!important;
  min-height:0!important;
  margin:0 auto!important;
  padding:32px 0 28px!important;
  display:grid!important;
  grid-template-columns:minmax(0,3.2fr) minmax(260px,1.2fr)!important;
  gap:14px!important;
  align-items:stretch!important;
}
body:not(.library-mode):not(.user-mode):not(.search-mode):not(.category-mode):not(.category-list-mode) .stats-strip{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:14px!important;
}
body:not(.library-mode):not(.user-mode):not(.search-mode):not(.category-mode):not(.category-list-mode) .home-side-modules{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:14px!important;
}
body:not(.library-mode):not(.user-mode):not(.search-mode):not(.category-mode):not(.category-list-mode) .stats-strip div,
body:not(.library-mode):not(.user-mode):not(.search-mode):not(.category-mode):not(.category-list-mode) .stats-strip .home-jump-card,
body:not(.library-mode):not(.user-mode):not(.search-mode):not(.category-mode):not(.category-list-mode) .home-side-modules .activity-card{
  min-height:132px!important;
  padding:18px 18px!important;
  border-radius:16px!important;
}
body:not(.library-mode):not(.user-mode):not(.search-mode):not(.category-mode):not(.category-list-mode) .stats-strip strong{
  font-size:clamp(32px,3.2vw,48px)!important;
  line-height:.92!important;
  margin:0 0 8px!important;
}
body:not(.library-mode):not(.user-mode):not(.search-mode):not(.category-mode):not(.category-list-mode) .stats-strip span,
body:not(.library-mode):not(.user-mode):not(.search-mode):not(.category-mode):not(.category-list-mode) .stats-strip em,
body:not(.library-mode):not(.user-mode):not(.search-mode):not(.category-mode):not(.category-list-mode) .activity-card span{
  font-size:12px!important;
  line-height:1.2!important;
}
body:not(.library-mode):not(.user-mode):not(.search-mode):not(.category-mode):not(.category-list-mode) .activity-card h2{
  font-size:20px!important;
  margin:0 0 10px!important;
}
body:not(.library-mode):not(.user-mode):not(.search-mode):not(.category-mode):not(.category-list-mode) .activity-card button{
  min-height:24px!important;
  padding:0!important;
}
body:not(.library-mode):not(.user-mode):not(.search-mode):not(.category-mode):not(.category-list-mode) .portfolio-section.projects-section,
body:not(.library-mode):not(.user-mode):not(.search-mode):not(.category-mode):not(.category-list-mode) #projects.portfolio-section{
  margin-top:0!important;
  padding-top:36px!important;
}
@media(max-width:1100px){
  body:not(.library-mode):not(.user-mode):not(.search-mode):not(.category-mode):not(.category-list-mode) main > .home-ia,
  body:not(.library-mode):not(.user-mode):not(.search-mode):not(.category-mode):not(.category-list-mode) .home-ia{
    grid-template-columns:1fr!important;
  }
}
@media(max-width:760px){
  body:not(.library-mode):not(.user-mode):not(.search-mode):not(.category-mode):not(.category-list-mode) main > .home-ia,
  body:not(.library-mode):not(.user-mode):not(.search-mode):not(.category-mode):not(.category-list-mode) .home-ia{
    width:calc(100% - 20px)!important;
    padding:22px 0 20px!important;
  }
  body:not(.library-mode):not(.user-mode):not(.search-mode):not(.category-mode):not(.category-list-mode) .stats-strip,
  body:not(.library-mode):not(.user-mode):not(.search-mode):not(.category-mode):not(.category-list-mode) .home-side-modules{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:10px!important;
  }
  body:not(.library-mode):not(.user-mode):not(.search-mode):not(.category-mode):not(.category-list-mode) .stats-strip div,
  body:not(.library-mode):not(.user-mode):not(.search-mode):not(.category-mode):not(.category-list-mode) .stats-strip .home-jump-card,
  body:not(.library-mode):not(.user-mode):not(.search-mode):not(.category-mode):not(.category-list-mode) .home-side-modules .activity-card{
    min-height:104px!important;
    padding:13px!important;
  }
}

/* v193 unified 2:1 home modules */
body:not(.library-mode):not(.user-mode):not(.search-mode):not(.category-mode):not(.category-list-mode) main > .home-ia,
body:not(.library-mode):not(.user-mode):not(.search-mode):not(.category-mode):not(.category-list-mode) .home-ia{
  width:min(100% - 56px, 1560px)!important;
  padding:28px 0 24px!important;
  grid-template-columns:minmax(0,2fr) minmax(0,1fr)!important;
  gap:16px!important;
}
body:not(.library-mode):not(.user-mode):not(.search-mode):not(.category-mode):not(.category-list-mode) .stats-strip{
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:16px!important;
}
body:not(.library-mode):not(.user-mode):not(.search-mode):not(.category-mode):not(.category-list-mode) .home-side-modules{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:16px!important;
}
body:not(.library-mode):not(.user-mode):not(.search-mode):not(.category-mode):not(.category-list-mode) .stats-strip div,
body:not(.library-mode):not(.user-mode):not(.search-mode):not(.category-mode):not(.category-list-mode) .stats-strip .home-jump-card,
body:not(.library-mode):not(.user-mode):not(.search-mode):not(.category-mode):not(.category-list-mode) .home-side-modules .activity-card{
  aspect-ratio:2 / 1!important;
  min-height:0!important;
  height:auto!important;
  padding:16px 18px!important;
  border-radius:16px!important;
  overflow:hidden!important;
}
body:not(.library-mode):not(.user-mode):not(.search-mode):not(.category-mode):not(.category-list-mode) .stats-strip strong{
  font-size:clamp(28px,3vw,44px)!important;
  margin:0 0 6px!important;
}
@media(max-width:1100px){
  body:not(.library-mode):not(.user-mode):not(.search-mode):not(.category-mode):not(.category-list-mode) main > .home-ia,
  body:not(.library-mode):not(.user-mode):not(.search-mode):not(.category-mode):not(.category-list-mode) .home-ia{
    grid-template-columns:1fr!important;
  }
  body:not(.library-mode):not(.user-mode):not(.search-mode):not(.category-mode):not(.category-list-mode) .stats-strip,
  body:not(.library-mode):not(.user-mode):not(.search-mode):not(.category-mode):not(.category-list-mode) .home-side-modules{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
  }
}
@media(max-width:760px){
  body:not(.library-mode):not(.user-mode):not(.search-mode):not(.category-mode):not(.category-list-mode) main > .home-ia,
  body:not(.library-mode):not(.user-mode):not(.search-mode):not(.category-mode):not(.category-list-mode) .home-ia{
    width:calc(100% - 20px)!important;
    padding:20px 0 18px!important;
  }
  body:not(.library-mode):not(.user-mode):not(.search-mode):not(.category-mode):not(.category-list-mode) .stats-strip,
  body:not(.library-mode):not(.user-mode):not(.search-mode):not(.category-mode):not(.category-list-mode) .home-side-modules{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:10px!important;
  }
  body:not(.library-mode):not(.user-mode):not(.search-mode):not(.category-mode):not(.category-list-mode) .stats-strip div,
  body:not(.library-mode):not(.user-mode):not(.search-mode):not(.category-mode):not(.category-list-mode) .stats-strip .home-jump-card,
  body:not(.library-mode):not(.user-mode):not(.search-mode):not(.category-mode):not(.category-list-mode) .home-side-modules .activity-card{
    padding:12px!important;
  }
}
@media(max-width:380px){
  #gallery.gallery,
  .library-page .all-works-grid,
  .search-results-grid,
  .category-page-grid,
  .all-works-grid.pinterest-masonry{
    columns:2 132px!important;
    column-gap:7px!important;
  }
  .all-work-card.pinterest-card .work-card-meta,
  .all-work-card.pinterest-card .work-card-counts{
    font-size:10px!important;
  }
}

/* v195 nav capsule locked to selected page */
.main-nav .nav-link{
  outline:0!important;
  box-shadow:none!important;
}
.main-nav .nav-link:not(.active),
.main-nav .nav-link:not(.active):hover,
.main-nav .nav-link:not(.active):focus,
.main-nav .nav-link:not(.active):focus-visible{
  background:transparent!important;
  color:#122018!important;
  border-color:transparent!important;
  box-shadow:none!important;
  outline:0!important;
  transform:none!important;
}
.main-nav .nav-link.active,
.main-nav .nav-link.active:hover,
.main-nav .nav-link.active:focus,
.main-nav .nav-link.active:focus-visible{
  background:#07884f!important;
  color:#fff!important;
  border-color:#07884f!important;
  box-shadow:0 10px 22px rgba(0,119,72,.18)!important;
  outline:0!important;
  transform:none!important;
}

/* v196 responsive home modules for desktop, mac, mobile portrait */
body:not(.library-mode):not(.user-mode):not(.search-mode):not(.category-mode):not(.category-list-mode) main > .home-ia,
body:not(.library-mode):not(.user-mode):not(.search-mode):not(.category-mode):not(.category-list-mode) .home-ia{
  width:min(100% - 48px, 1680px)!important;
  grid-template-columns:minmax(0,2fr) minmax(0,1fr)!important;
  gap:12px!important;
  align-items:start!important;
}
body:not(.library-mode):not(.user-mode):not(.search-mode):not(.category-mode):not(.category-list-mode) .stats-strip,
body:not(.library-mode):not(.user-mode):not(.search-mode):not(.category-mode):not(.category-list-mode) .home-side-modules{
  gap:12px!important;
}
body:not(.library-mode):not(.user-mode):not(.search-mode):not(.category-mode):not(.category-list-mode) .stats-strip div,
body:not(.library-mode):not(.user-mode):not(.search-mode):not(.category-mode):not(.category-list-mode) .stats-strip .home-jump-card,
body:not(.library-mode):not(.user-mode):not(.search-mode):not(.category-mode):not(.category-list-mode) .home-side-modules .activity-card{
  aspect-ratio:2 / 1!important;
  min-height:118px!important;
  padding:14px 16px!important;
  display:flex!important;
  flex-direction:column!important;
  justify-content:flex-start!important;
}
body:not(.library-mode):not(.user-mode):not(.search-mode):not(.category-mode):not(.category-list-mode) #mySpaceStats{
  display:grid!important;
  gap:3px!important;
  min-height:0!important;
}
body:not(.library-mode):not(.user-mode):not(.search-mode):not(.category-mode):not(.category-list-mode) #mySpaceStats .home-jump-card,
body:not(.library-mode):not(.user-mode):not(.search-mode):not(.category-mode):not(.category-list-mode) #mySpaceStats div{
  aspect-ratio:auto!important;
  min-height:0!important;
  height:20px!important;
  padding:0!important;
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:2px!important;
  border-radius:0!important;
  box-shadow:none!important;
  background:transparent!important;
  border-bottom:1px solid rgba(18,42,30,.08)!important;
  overflow:hidden!important;
}
body:not(.library-mode):not(.user-mode):not(.search-mode):not(.category-mode):not(.category-list-mode) #mySpaceStats strong,
body:not(.library-mode):not(.user-mode):not(.search-mode):not(.category-mode):not(.category-list-mode) #mySpaceStats b{
  font-size:13px!important;
  line-height:1!important;
  margin:0!important;
  flex:0 0 auto!important;
}
body:not(.library-mode):not(.user-mode):not(.search-mode):not(.category-mode):not(.category-list-mode) #mySpaceStats span{
  font-size:12px!important;
  line-height:1!important;
  white-space:nowrap!important;
}
@media (min-width: 901px) and (max-width: 1360px){
  body:not(.library-mode):not(.user-mode):not(.search-mode):not(.category-mode):not(.category-list-mode) main > .home-ia,
  body:not(.library-mode):not(.user-mode):not(.search-mode):not(.category-mode):not(.category-list-mode) .home-ia{
    width:min(100% - 32px, 1180px)!important;
    grid-template-columns:1fr!important;
  }
  body:not(.library-mode):not(.user-mode):not(.search-mode):not(.category-mode):not(.category-list-mode) .stats-strip,
  body:not(.library-mode):not(.user-mode):not(.search-mode):not(.category-mode):not(.category-list-mode) .home-side-modules{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
  }
}
@media (max-width: 900px), (orientation: portrait) and (max-width: 1180px){
  body:not(.library-mode):not(.user-mode):not(.search-mode):not(.category-mode):not(.category-list-mode) main > .home-ia,
  body:not(.library-mode):not(.user-mode):not(.search-mode):not(.category-mode):not(.category-list-mode) .home-ia{
    width:calc(100% - 20px)!important;
    grid-template-columns:1fr!important;
    gap:10px!important;
    padding:18px 0 16px!important;
  }
  body:not(.library-mode):not(.user-mode):not(.search-mode):not(.category-mode):not(.category-list-mode) .stats-strip,
  body:not(.library-mode):not(.user-mode):not(.search-mode):not(.category-mode):not(.category-list-mode) .home-side-modules{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:10px!important;
  }
  body:not(.library-mode):not(.user-mode):not(.search-mode):not(.category-mode):not(.category-list-mode) .stats-strip div,
  body:not(.library-mode):not(.user-mode):not(.search-mode):not(.category-mode):not(.category-list-mode) .stats-strip .home-jump-card,
  body:not(.library-mode):not(.user-mode):not(.search-mode):not(.category-mode):not(.category-list-mode) .home-side-modules .activity-card{
    aspect-ratio:auto!important;
    min-height:96px!important;
    padding:12px!important;
  }
}
@media (max-width: 420px){
  body:not(.library-mode):not(.user-mode):not(.search-mode):not(.category-mode):not(.category-list-mode) .stats-strip,
  body:not(.library-mode):not(.user-mode):not(.search-mode):not(.category-mode):not(.category-list-mode) .home-side-modules{
    grid-template-columns:1fr!important;
  }
}

/* v197 mobile navigation/category sync */
@media(max-width:760px),(orientation:portrait) and (max-width:900px){
  main > .home-ia,
  .home-ia{
    display:none!important;
  }
  .mobile-action-dock{
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    transform:translateY(0)!important;
    opacity:1!important;
    pointer-events:auto!important;
    transition:transform .2s ease, opacity .2s ease!important;
  }
  .mobile-action-dock button{
    min-height:42px!important;
    font-size:12px!important;
    white-space:nowrap!important;
  }
  .mobile-action-dock button.active{
    color:#fff!important;
    background:#087a4f!important;
  }
  body.mobile-overlay-open .mobile-action-dock,
  body.mobile-submenu-open .mobile-action-dock{
    transform:translateY(120%)!important;
    opacity:0!important;
    pointer-events:none!important;
  }
  #mobileActionDock [data-mobile-action="upload"],
  #mobileActionDock [data-mobile-view="library"]{
    display:none!important;
  }
}
@media(max-width:760px),(orientation:portrait) and (max-width:900px){
  body.mobile-overlay-open{
    overflow:hidden!important;
  }
}

/* v198 lightbox folder favorite button */
.lightbox-actions #lightboxFavorite.folder-favorite-button{
  width:50px!important;
  min-width:50px!important;
  padding:0!important;
  display:inline-grid!important;
  place-items:center!important;
  border-radius:999px!important;
}
.folder-favorite-button .folder-icon{
  position:relative;
  width:22px;
  height:16px;
  display:block;
  border:2px solid currentColor;
  border-radius:4px 4px 5px 5px;
}
.folder-favorite-button .folder-icon::before{
  content:"";
  position:absolute;
  left:1px;
  top:-7px;
  width:10px;
  height:7px;
  border:2px solid currentColor;
  border-bottom:0;
  border-radius:4px 4px 0 0;
  background:transparent;
}
.folder-favorite-button.is-saved .folder-icon::after{
  content:"";
  position:absolute;
  right:-5px;
  top:-8px;
  width:8px;
  height:8px;
  border-radius:50%;
  background:#fff;
  box-shadow:0 0 0 2px #07884f;
}
.sr-only{
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  padding:0!important;
  margin:-1px!important;
  overflow:hidden!important;
  clip:rect(0,0,0,0)!important;
  white-space:nowrap!important;
  border:0!important;
}

/* v199 polished icon-only lightbox actions */
.lightbox-actions .icon-only-action{
  width:50px!important;
  min-width:50px!important;
  height:48px!important;
  min-height:48px!important;
  padding:0!important;
  display:inline-grid!important;
  place-items:center!important;
  border-radius:999px!important;
  line-height:1!important;
}
.lightbox-actions .icon-only-action .lb-action-icon{
  width:24px!important;
  height:24px!important;
  display:block!important;
  transform:none!important;
}
.folder-favorite-button .folder-icon,
.folder-favorite-button .folder-icon::before,
.folder-favorite-button .folder-icon::after{
  display:none!important;
}
.lightbox-actions .download-icon-button{
  text-decoration:none!important;
  color:#fff!important;
  background:#111!important;
}
.folder-favorite-button.is-saved .lb-action-icon{
  filter:drop-shadow(0 0 0 currentColor);
}

/* v201 stronger glass and lighter category rendering */
.topbar{
  background: rgba(255,255,255,.52)!important;
  border-color: rgba(255,255,255,.42)!important;
  box-shadow: 0 18px 44px rgba(8,42,25,.12), inset 0 1px 0 rgba(255,255,255,.48)!important;
  -webkit-backdrop-filter: blur(28px) saturate(185%)!important;
  backdrop-filter: blur(28px) saturate(185%)!important;
}
.topbar::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit;
  pointer-events:none;
  background: linear-gradient(135deg, rgba(255,255,255,.34), rgba(255,255,255,.08));
}
.topbar > *{ position:relative; z-index:1; }
.category-fast-grid .category-pro-card{
  contain: content;
  content-visibility: auto;
  contain-intrinsic-size: 280px 220px;
}
.category-fast-grid .cat-cover-stack img{
  image-rendering:auto;
}

/* v208 vertical lightbox redesign */
.lightbox:not([hidden]){
  z-index:70!important;
  display:grid!important;
  grid-template-columns:1fr!important;
  grid-template-rows:minmax(44vh, auto) auto!important;
  align-items:start!important;
  justify-items:center!important;
  gap:0!important;
  padding:clamp(12px,2vw,22px)!important;
  overflow:auto!important;
  overscroll-behavior:contain!important;
  background:rgba(10,12,11,.88)!important;
  -webkit-backdrop-filter:blur(18px) saturate(1.15)!important;
  backdrop-filter:blur(18px) saturate(1.15)!important;
}
.lightbox-image-panel{
  position:relative!important;
  z-index:1!important;
  width:min(100%,1480px)!important;
  min-height:0!important;
  height:min(72vh,820px)!important;
  display:grid!important;
  place-items:center!important;
  padding:12px 54px 10px!important;
  border-radius:24px 24px 0 0!important;
  background:linear-gradient(180deg,rgba(255,255,255,.08),rgba(255,255,255,.025))!important;
  overflow:hidden!important;
}
.lightbox-image-panel img,
.lightbox img{
  width:100%!important;
  height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
  object-fit:contain!important;
  border-radius:18px!important;
  box-shadow:0 18px 50px rgba(0,0,0,.26)!important;
  transform-origin:center center!important;
}
.lightbox-details{
  position:relative!important;
  z-index:2!important;
  width:min(100%,1480px)!important;
  max-height:none!important;
  overflow:visible!important;
  display:grid!important;
  grid-template-columns:minmax(0,1.2fr) minmax(300px,.8fr)!important;
  grid-template-areas:
    "head actions"
    "meta actions"
    "owner owner"
    "link link"
    "comments comments"
    "others others"!important;
  gap:12px 22px!important;
  margin:0 auto clamp(12px,2vw,24px)!important;
  padding:clamp(18px,2.6vw,34px)!important;
  border:1px solid rgba(255,255,255,.7)!important;
  border-top:0!important;
  border-radius:0 0 24px 24px!important;
  background:rgba(250,252,249,.94)!important;
  box-shadow:0 26px 70px rgba(0,0,0,.22)!important;
}
.lightbox-details .kicker{
  grid-area:head!important;
  align-self:end!important;
  margin:0!important;
}
.lightbox-details h2{
  grid-area:head!important;
  align-self:start!important;
  margin:20px 0 0!important;
  max-width:100%!important;
  font-size:clamp(30px,4.2vw,64px)!important;
  line-height:1.02!important;
  letter-spacing:0!important;
  overflow-wrap:anywhere!important;
}
.lightbox-tags{
  grid-area:meta!important;
  max-width:860px!important;
  margin:0!important;
  color:#5f6a62!important;
  font-size:15px!important;
}
.lightbox-actions{
  grid-area:actions!important;
  position:relative!important;
  top:auto!important;
  z-index:3!important;
  align-self:start!important;
  justify-self:end!important;
  display:flex!important;
  flex-wrap:wrap!important;
  justify-content:flex-end!important;
  gap:10px!important;
  margin:0!important;
  padding:0!important;
  background:transparent!important;
  -webkit-backdrop-filter:none!important;
  backdrop-filter:none!important;
}
.lightbox-actions button,
.lightbox-actions a{
  flex:0 0 auto!important;
}
.owner-tools{
  grid-area:owner!important;
  margin:4px 0 0!important;
  border-radius:16px!important;
  background:rgba(255,252,245,.86)!important;
}
.original-link{
  grid-area:link!important;
  justify-self:start!important;
  margin-top:2px!important;
}
.detail-comments{
  grid-area:comments!important;
  display:grid!important;
  grid-template-columns:minmax(0,360px) minmax(0,1fr)!important;
  gap:16px!important;
  align-items:start!important;
  margin-top:4px!important;
  padding-top:16px!important;
}
.detail-comments h3{
  grid-column:1 / -1!important;
  margin:0!important;
}
.detail-comments form{
  min-width:0!important;
}
#detailCommentsList{
  min-width:0!important;
  max-height:300px!important;
  overflow:auto!important;
  padding-right:4px!important;
}
.lightbox-others{
  grid-area:others!important;
  margin:8px 0 0!important;
  padding:16px!important;
  border-radius:18px!important;
  background:rgba(255,255,255,.74)!important;
}
.lightbox-close{
  position:fixed!important;
  z-index:76!important;
  top:18px!important;
  right:18px!important;
  width:46px!important;
  height:46px!important;
  display:grid!important;
  place-items:center!important;
  color:#111!important;
  background:rgba(255,255,255,.9)!important;
  box-shadow:0 12px 34px rgba(0,0,0,.18)!important;
  -webkit-backdrop-filter:blur(14px)!important;
  backdrop-filter:blur(14px)!important;
}
.lightbox-nav{
  z-index:74!important;
  position:fixed!important;
  top:38vh!important;
  transform:translateY(-50%)!important;
  background:rgba(255,255,255,.88)!important;
  color:#111!important;
  box-shadow:0 14px 36px rgba(0,0,0,.2)!important;
  -webkit-backdrop-filter:blur(12px)!important;
  backdrop-filter:blur(12px)!important;
}
.lightbox-prev{left:clamp(10px,2vw,26px)!important}
.lightbox-next{right:clamp(10px,2vw,26px)!important}
.lightbox-zoom-controls{
  z-index:4!important;
  position:absolute!important;
  left:50%!important;
  bottom:16px!important;
  transform:translateX(-50%)!important;
  background:rgba(255,255,255,.84)!important;
  box-shadow:0 12px 30px rgba(0,0,0,.18)!important;
  -webkit-backdrop-filter:blur(14px)!important;
  backdrop-filter:blur(14px)!important;
}
body.lightbox-open .topbar{
  z-index:20!important;
}
@media(max-width:980px){
  .lightbox:not([hidden]){
    padding:10px!important;
  }
  .lightbox-image-panel{
    width:100%!important;
    height:min(62vh,620px)!important;
    padding:10px 44px!important;
    border-radius:22px 22px 0 0!important;
  }
  .lightbox-details{
    width:100%!important;
    grid-template-columns:1fr!important;
    grid-template-areas:
      "head"
      "meta"
      "actions"
      "owner"
      "link"
      "comments"
      "others"!important;
    padding:18px!important;
  }
  .lightbox-actions{
    justify-self:start!important;
    justify-content:flex-start!important;
  }
  .detail-comments{
    grid-template-columns:1fr!important;
  }
  #detailCommentsList{
    max-height:none!important;
  }
}
@media(max-width:560px){
  .lightbox:not([hidden]){
    padding:0!important;
    background:rgba(10,12,11,.92)!important;
  }
  .lightbox-image-panel{
    width:100vw!important;
    height:58vh!important;
    padding:54px 10px 10px!important;
    border-radius:0!important;
  }
  .lightbox-details{
    width:100vw!important;
    margin:0!important;
    padding:16px 14px 24px!important;
    border-radius:20px 20px 0 0!important;
  }
  .lightbox-details h2{
    font-size:clamp(26px,8.5vw,38px)!important;
  }
  .lightbox-close{
    top:10px!important;
    right:10px!important;
    width:40px!important;
    height:40px!important;
  }
  .lightbox-nav{
    top:31vh!important;
    width:40px!important;
    height:40px!important;
  }
  .lightbox-prev{left:8px!important}
  .lightbox-next{right:8px!important}
  .lightbox-actions{
    gap:8px!important;
  }
  .lightbox-actions .icon-only-action{
    width:46px!important;
    min-width:46px!important;
    height:44px!important;
    min-height:44px!important;
  }
}

/* v209 final override: keep every photo clear of panels and controls */
.lightbox:not([hidden]){
  grid-template-columns:1fr!important;
  grid-template-rows:auto auto!important;
  align-content:start!important;
  justify-items:center!important;
  gap:0!important;
  overflow:auto!important;
  padding:clamp(10px,1.8vw,18px)!important;
  background:rgba(8,10,10,.9)!important;
}
.lightbox-image-panel{
  box-sizing:border-box!important;
  position:relative!important;
  z-index:1!important;
  width:min(100%,min(1560px,calc(100vw - 28px)))!important;
  height:min(72vh,820px)!important;
  min-height:0!important;
  max-height:none!important;
  aspect-ratio:auto!important;
  display:grid!important;
  place-items:center!important;
  padding:clamp(52px,5vw,74px) clamp(54px,5vw,82px) clamp(58px,5vw,78px)!important;
  border-radius:26px!important;
  background:rgba(255,255,255,.055)!important;
  overflow:hidden!important;
}
.lightbox-image-panel img,
.lightbox img{
  width:auto!important;
  height:auto!important;
  max-width:100%!important;
  max-height:100%!important;
  object-fit:contain!important;
  border-radius:18px!important;
  box-shadow:none!important;
}
.lightbox-details{
  position:relative!important;
  z-index:2!important;
  width:min(100%,min(1320px,calc(100vw - 44px)))!important;
  margin:-18px auto 24px!important;
  border:1px solid rgba(255,255,255,.72)!important;
  border-radius:22px!important;
  background:rgba(250,252,249,.96)!important;
}
.lightbox-actions{
  z-index:6!important;
  border-radius:999px!important;
  background:rgba(255,255,255,.68)!important;
}
.lightbox-close{z-index:76!important}
.lightbox-nav{z-index:74!important}
.lightbox-zoom-controls{z-index:8!important}
@media(min-aspect-ratio:16/9) and (min-width:900px){
  .lightbox-image-panel{height:min(68vh,760px)!important;max-height:68vh!important}
}
@media(max-aspect-ratio:4/5) and (min-width:700px){
  .lightbox-image-panel{height:min(72vh,820px)!important;max-height:72vh!important}
}
@media(max-width:980px){
  .lightbox-image-panel{width:calc(100vw - 20px)!important;height:62vh!important;aspect-ratio:auto!important;padding:58px 48px 60px!important}
  .lightbox-details{width:calc(100vw - 20px)!important;margin:8px auto 18px!important}
}
@media(max-width:560px){
  .lightbox:not([hidden]){padding:0!important}
  .lightbox-image-panel{width:100vw!important;aspect-ratio:auto!important;height:58vh!important;min-height:360px!important;padding:54px 12px 58px!important;border-radius:0!important}
  .lightbox-details{width:100vw!important;margin:0!important;border-radius:20px 20px 0 0!important}
}

/* v211 clean stacked lightbox: photo higher, minimal detail card, borderless recommendations */
.lightbox:not([hidden]){
  padding:8px 18px 30px!important;
  gap:0!important;
  background:rgba(9,12,11,.9)!important;
}
.lightbox-image-panel{
  width:min(100%,1180px)!important;
  height:min(56vh,560px)!important;
  padding:34px 56px 38px!important;
  border-radius:18px!important;
  background:rgba(255,255,255,.045)!important;
  box-shadow:0 18px 70px rgba(0,0,0,.28)!important;
}
.lightbox-image-panel img,
.lightbox img{
  border-radius:10px!important;
}
.lightbox-details{
  width:min(100%,1000px)!important;
  margin:-10px auto 24px!important;
  padding:26px 30px 30px!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  grid-template-areas:
    "head actions"
    "meta meta"
    "owner owner"
    "link link"
    "comments comments"
    "others others"!important;
  gap:10px 18px!important;
  border:0!important;
  border-radius:18px!important;
  background:rgba(250,252,249,.97)!important;
  box-shadow:0 18px 56px rgba(0,0,0,.18)!important;
}
.lightbox-details .kicker{
  display:none!important;
}
.lightbox-details h2{
  margin:0!important;
  font-size:clamp(34px,3.8vw,58px)!important;
  line-height:1.02!important;
  max-width:780px!important;
}
.lightbox-tags{
  font-size:13px!important;
  line-height:1.6!important;
  color:#6b746e!important;
}
.lightbox-actions{
  position:relative!important;
  top:auto!important;
  justify-self:end!important;
  align-self:start!important;
  padding:0!important;
  gap:8px!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  -webkit-backdrop-filter:none!important;
  backdrop-filter:none!important;
}
.lightbox-actions #lightboxFollow{
  min-width:0!important;
  height:36px!important;
  min-height:36px!important;
  padding:0 14px!important;
  font-size:13px!important;
}
.lightbox-actions .icon-only-action{
  width:38px!important;
  min-width:38px!important;
  height:38px!important;
  min-height:38px!important;
}
.owner-tools{
  margin:4px 0!important;
  padding:10px!important;
  border:1px solid rgba(16,72,47,.12)!important;
  border-radius:10px!important;
}
.owner-actions{
  gap:8px!important;
}
.owner-tools button{
  min-height:34px!important;
  padding:0 12px!important;
  border-radius:8px!important;
  font-size:13px!important;
}
.original-link{
  min-height:26px!important;
  font-size:13px!important;
}
.detail-comments{
  grid-template-columns:minmax(0,260px) minmax(0,1fr)!important;
  gap:12px!important;
  margin-top:2px!important;
  padding-top:12px!important;
}
.detail-comments h3{
  font-size:16px!important;
}
.detail-comments textarea{
  min-height:72px!important;
  border-radius:8px!important;
}
.detail-comments button{
  min-height:34px!important;
  padding:0 12px!important;
  font-size:13px!important;
}
.lightbox-others{
  margin:8px 0 0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
.lightbox-others h3,
.lightbox-others .kicker{
  margin-left:0!important;
}
.lightbox-zoom-controls{
  bottom:18px!important;
}
.lightbox-close{
  top:12px!important;
  right:18px!important;
}
.lightbox-nav{
  top:30vh!important;
}
@media(max-width:980px){
  .lightbox:not([hidden]){
    padding:6px 10px 20px!important;
  }
  .lightbox-image-panel{
    width:calc(100vw - 20px)!important;
    height:min(54vh,520px)!important;
    padding:46px 42px 48px!important;
  }
  .lightbox-details{
    width:calc(100vw - 20px)!important;
    grid-template-columns:1fr!important;
    grid-template-areas:
      "head"
      "meta"
      "actions"
      "owner"
      "link"
      "comments"
      "others"!important;
    padding:20px!important;
  }
  .lightbox-actions{
    justify-self:start!important;
  }
  .detail-comments{
    grid-template-columns:1fr!important;
  }
}
@media(max-width:560px){
  .lightbox:not([hidden]){
    padding:0!important;
  }
  .lightbox-image-panel{
    width:100vw!important;
    height:52vh!important;
    min-height:320px!important;
    padding:48px 10px 48px!important;
    border-radius:0!important;
  }
  .lightbox-details{
    width:100vw!important;
    margin:0!important;
    padding:18px 14px 24px!important;
    border-radius:18px 18px 0 0!important;
  }
  .lightbox-details h2{
    font-size:clamp(28px,8vw,38px)!important;
  }
  .lightbox-nav{
    top:27vh!important;
  }
}

/* v212: bare photo stage, Bilibili-like comments, compact others */
.lightbox:not([hidden]){
  padding:0 18px 30px!important;
  align-content:start!important;
}
.lightbox-image-panel{
  width:min(100%,1120px)!important;
  height:min(58vh,600px)!important;
  padding:18px 42px 34px!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
.lightbox-image-panel img,
.lightbox img{
  border-radius:10px!important;
}
.lightbox-details{
  width:min(100%,960px)!important;
  margin:0 auto 24px!important;
  padding:24px 28px 28px!important;
}
.lightbox-zoom-controls{
  bottom:12px!important;
}
.lightbox-nav{
  top:28vh!important;
}
.detail-comments{
  display:block!important;
  margin-top:8px!important;
  padding-top:18px!important;
  border-top:1px solid rgba(18,42,30,.10)!important;
}
.detail-comments h3{
  margin:0 0 14px!important;
  font-size:18px!important;
  font-weight:900!important;
}
#detailCommentForm{
  display:grid!important;
  grid-template-columns:42px minmax(0,1fr) auto!important;
  align-items:start!important;
  gap:10px!important;
  margin:0 0 18px!important;
}
#detailCommentForm::before{
  content:"";
  width:42px;
  height:42px;
  border-radius:50%;
  background:linear-gradient(135deg,#0b8052,#e9f4ee);
  box-shadow:inset 0 0 0 2px rgba(255,255,255,.7);
}
#detailCommentForm textarea{
  min-height:42px!important;
  max-height:120px!important;
  padding:11px 14px!important;
  border:1px solid rgba(18,42,30,.10)!important;
  border-radius:10px!important;
  background:#f6f8f7!important;
  resize:vertical!important;
}
#detailCommentForm textarea:focus{
  background:#fff!important;
  border-color:rgba(0,128,82,.35)!important;
  box-shadow:0 0 0 3px rgba(0,128,82,.08)!important;
}
#detailCommentForm button{
  min-height:42px!important;
  padding:0 18px!important;
  border-radius:10px!important;
  background:#0a7f51!important;
}
#detailCommentsList{
  display:grid!important;
  gap:0!important;
  max-height:none!important;
  overflow:visible!important;
}
#detailCommentsList .comment-item{
  display:grid!important;
  grid-template-columns:42px minmax(0,1fr)!important;
  gap:10px!important;
  margin:0!important;
  padding:14px 0!important;
  border-top:1px solid rgba(18,42,30,.08)!important;
}
#detailCommentsList .comment-item:first-child{
  border-top:0!important;
}
#detailCommentsList .comment-reply{
  margin-left:52px!important;
  padding:10px 0!important;
}
#detailCommentsList .comment-user-pic{
  width:42px!important;
  height:42px!important;
  min-width:42px!important;
  border-radius:50%!important;
  overflow:hidden!important;
}
#detailCommentsList .comment-user-pic img{
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
}
#detailCommentsList .comment-body{
  min-width:0!important;
}
#detailCommentsList .comment-name{
  border:0!important;
  padding:0!important;
  color:#0a7f51!important;
  background:transparent!important;
  font-size:13px!important;
  font-weight:900!important;
}
#detailCommentsList .comment-body span,
#detailCommentsList .comment-body time{
  margin-left:8px!important;
  color:#98a29b!important;
  font-size:12px!important;
}
#detailCommentsList .comment-body p{
  margin:6px 0 8px!important;
  color:#1a211d!important;
  font-size:14px!important;
  line-height:1.65!important;
}
#detailCommentsList .comment-actions{
  display:flex!important;
  gap:8px!important;
}
#detailCommentsList .comment-actions button,
#detailCommentsList .reply-fold{
  min-height:24px!important;
  padding:0 8px!important;
  border:0!important;
  border-radius:6px!important;
  color:#6f7a73!important;
  background:transparent!important;
  font-size:12px!important;
}
#detailCommentsList .comment-actions button:hover,
#detailCommentsList .reply-fold:hover{
  color:#0a7f51!important;
  background:#eef6f1!important;
}
#detailCommentsList .reply-box{
  margin-top:8px!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  gap:8px!important;
}
#detailCommentsList .reply-box[hidden]{
  display:none!important;
}
#detailCommentsList .reply-box textarea{
  min-height:36px!important;
  border-radius:8px!important;
  background:#f6f8f7!important;
}
#detailCommentsList .reply-box button{
  min-height:36px!important;
  border-radius:8px!important;
}
.lightbox-others{
  margin-top:12px!important;
}
.lightbox-others .others-head{
  margin-bottom:8px!important;
}
.lightbox-others .others-grid{
  display:grid!important;
  grid-template-columns:repeat(auto-fill,minmax(120px,1fr))!important;
  gap:8px!important;
}
.lightbox-others .others-grid button{
  padding:0!important;
  border:0!important;
  background:transparent!important;
  text-align:left!important;
}
.lightbox-others .others-grid img{
  width:100%!important;
  height:86px!important;
  border-radius:9px!important;
  object-fit:cover!important;
}
.lightbox-others .others-grid span{
  display:block!important;
  margin-top:5px!important;
  font-size:12px!important;
  line-height:1.3!important;
  color:#202721!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
.lightbox-others .others-grid em{
  display:none!important;
}
@media(max-width:980px){
  .lightbox-image-panel{
    width:calc(100vw - 18px)!important;
    height:54vh!important;
    padding:18px 36px 34px!important;
  }
  .lightbox-details{
    width:calc(100vw - 18px)!important;
    padding:20px!important;
  }
}
@media(max-width:560px){
  .lightbox-image-panel{
    width:100vw!important;
    height:50vh!important;
    min-height:300px!important;
    padding:44px 10px 44px!important;
  }
  #detailCommentForm{
    grid-template-columns:34px minmax(0,1fr)!important;
  }
  #detailCommentForm::before{
    width:34px!important;
    height:34px!important;
  }
  #detailCommentForm button{
    grid-column:2!important;
    justify-self:start!important;
  }
  #detailCommentsList .comment-item{
    grid-template-columns:34px minmax(0,1fr)!important;
  }
  #detailCommentsList .comment-user-pic{
    width:34px!important;
    height:34px!important;
    min-width:34px!important;
  }
  #detailCommentsList .comment-reply{
    margin-left:32px!important;
  }
  .lightbox-others .others-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  .lightbox-others .others-grid img{
    height:76px!important;
  }
}

/* v213 detail polish: radius, green badges, social icon buttons */
.lightbox-image-panel{
  overflow:visible!important;
  padding-top:14px!important;
  padding-bottom:26px!important;
}
.lightbox-image-panel img,
.lightbox img{
  border-radius:12px!important;
  overflow:hidden!important;
  clip-path:inset(0 round 12px)!important;
}
.lightbox-details{
  margin-top:18px!important;
}
.mini-role,
.verified-badge,
.comment-user-pic .mini-role,
#detailCommentsList .mini-role{
  display:inline-flex!important;
  align-items:center!important;
  min-height:20px!important;
  padding:0 8px!important;
  border-radius:999px!important;
  color:#fff!important;
  background:#0a7f51!important;
  box-shadow:none!important;
  font-size:11px!important;
  font-weight:900!important;
  opacity:1!important;
}
#detailCommentForm{
  grid-template-columns:42px minmax(0,1fr) auto!important;
}
#detailCommentForm::before{
  display:none!important;
}
.detail-self-avatar,
#detailCommentsList .comment-user-pic{
  box-sizing:border-box!important;
  display:grid!important;
  place-items:center!important;
  border:2px solid #0a7f51!important;
  border-radius:999px!important;
  background:#fff!important;
  padding:2px!important;
}
.detail-self-avatar{
  width:42px!important;
  height:42px!important;
}
.detail-self-avatar img,
#detailCommentsList .comment-user-pic img{
  width:100%!important;
  height:100%!important;
  border-radius:999px!important;
  object-fit:cover!important;
}
#detailCommentsList .comment-body{
  position:relative!important;
  padding-right:42px!important;
}
.comment-follow-btn,
.user-follow-svg-btn,
.pin-like-svg-btn{
  display:inline-grid!important;
  place-items:center!important;
  border:0!important;
  border-radius:999px!important;
  color:#fff!important;
  background:#0a7f51!important;
  cursor:pointer!important;
}
.comment-follow-btn svg,
.user-follow-svg-btn svg,
.pin-like-svg-btn svg{
  width:18px!important;
  height:18px!important;
  fill:none!important;
  stroke:currentColor!important;
  stroke-width:2.2!important;
  stroke-linecap:round!important;
  stroke-linejoin:round!important;
}
.comment-follow-btn{
  position:absolute!important;
  top:0!important;
  right:0!important;
  width:auto!important;
  min-width:38px!important;
  height:23px!important;
  min-height:23px!important;
  padding:0 9px!important;
  color:#fff!important;
  background:#9aa39d!important;
  font-size:12px!important;
  font-weight:900!important;
  line-height:1!important;
}
.user-follow-svg-btn{
  width:40px!important;
  height:40px!important;
  margin:8px 0 0!important;
}
.user-cover-content h2 + .user-follow-svg-btn{
  display:inline-grid!important;
}
.all-work-card{
  position:relative!important;
}
.pin-like-svg-btn{
  position:absolute!important;
  z-index:6!important;
  top:8px!important;
  left:8px!important;
  right:auto!important;
  width:26px!important;
  height:26px!important;
  background:rgba(10,127,81,.92)!important;
  box-shadow:0 8px 20px rgba(0,0,0,.18)!important;
  opacity:.96!important;
}
.pin-like-svg-btn svg{
  width:14px!important;
  height:14px!important;
}
.pin-like-svg-btn:hover{
  transform:scale(1.06)!important;
}
.lightbox-others .others-grid{
  grid-template-columns:repeat(4,1fr)!important;
  grid-template-rows:repeat(2,96px)!important;
  grid-auto-rows:96px!important;
  gap:10px!important;
  width:100%!important;
}
.lightbox-others .others-grid button{
  min-width:0!important;
  width:100%!important;
  height:96px!important;
}
.lightbox-others .others-grid img{
  height:96px!important;
}
@media(min-width:900px){
  .lightbox-others .others-grid{
    grid-template-columns:repeat(4,1fr)!important;
  }
}
@media(max-width:560px){
  #detailCommentForm{
    grid-template-columns:34px minmax(0,1fr)!important;
  }
  .detail-self-avatar{
    width:34px!important;
    height:34px!important;
  }
  .lightbox-others .others-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}

/* v214 comment avatar and compact action correction */
#detailCommentsList .comment-user-pic{
  padding:2px!important;
  overflow:hidden!important;
  color:#fff!important;
  background:#0a7f51!important;
  font-size:0!important;
  text-indent:0!important;
  white-space:normal!important;
}
#detailCommentsList .comment-user-pic > span:not(.mini-role){
  display:grid!important;
  place-items:center!important;
  width:100%!important;
  height:100%!important;
  border-radius:999px!important;
  color:#fff!important;
  background:#0a7f51!important;
  font-size:12px!important;
  line-height:1!important;
  overflow:hidden!important;
}
#detailCommentsList .comment-user-pic .mini-role{
  display:none!important;
}

/* v215 profile/nav/comment final polish */
#detailCommentsList .comment-user-pic{
  padding:0!important;
  border:2px solid #0a7f51!important;
  overflow:hidden!important;
  background:#0a7f51!important;
}
#detailCommentsList .comment-user-pic > span,
#detailCommentsList .comment-user-pic .mini-role{
  display:none!important;
}
#detailCommentsList .comment-user-pic img{
  width:100%!important;
  height:100%!important;
  display:block!important;
  object-fit:cover!important;
  border-radius:999px!important;
}
#detailCommentsList .comment-body{
  padding-right:72px!important;
}
.comment-follow-btn{
  right:14px!important;
  top:8px!important;
  min-width:40px!important;
  height:22px!important;
  min-height:22px!important;
  padding:0 8px!important;
  border-radius:999px!important;
  background:#a5ada8!important;
  font-size:12px!important;
}
.user-cover-content{
  position:relative!important;
}
.user-profile-signature{
  max-width:620px!important;
  margin:6px 0 12px!important;
  color:rgba(255,255,255,.88)!important;
  font-size:14px!important;
  line-height:1.55!important;
}
.user-follow-svg-btn{
  position:absolute!important;
  top:14px!important;
  right:14px!important;
  width:auto!important;
  min-width:70px!important;
  height:34px!important;
  min-height:34px!important;
  padding:0 14px!important;
  border-radius:999px!important;
  color:#fff!important;
  background:rgba(10,127,81,.92)!important;
  font-size:13px!important;
  font-weight:900!important;
}
.user-follow-svg-btn svg{
  display:none!important;
}
.main-nav .nav-link.active{
  background:#07884f!important;
  color:#fff!important;
  border-color:#07884f!important;
}

/* v216 remove like display and shrink profile edit affordance */
.pin-like-svg-btn,
.project-like,
.user-tabs button[data-u="likes"]{
  display:none!important;
}
.user-follow-svg-btn.is-owner-profile-edit{
  display:none!important;
}
.user-cover .cover-edit-btn{
  top:18px!important;
  right:18px!important;
  width:32px!important;
  min-width:32px!important;
  height:32px!important;
  min-height:32px!important;
  padding:0!important;
  border-radius:999px!important;
  background:rgba(255,255,255,.92)!important;
  color:#0b1411!important;
  font-size:0!important;
  line-height:0!important;
  box-shadow:0 10px 24px rgba(0,0,0,.14)!important;
}
.user-cover .cover-edit-btn::before{
  position:absolute!important;
  inset:auto!important;
  left:50%!important;
  top:50%!important;
  transform:translate(-50%,-50%)!important;
  width:14px!important;
  height:14px!important;
  margin:0!important;
}
.user-cover .cover-edit-btn::after{
  display:none!important;
}
.comment-follow-btn{
  transform:scale(.7)!important;
  transform-origin:right top!important;
  right:18px!important;
}
.focus-motion-track img{
  content-visibility:auto!important;
}

/* v217 profile follow orb and collapsed replies */
.user-follow-svg-btn.is-owner-profile-edit{
  display:none!important;
}
.profile-follow-orb{
  position:absolute!important;
  z-index:5!important;
  right:26px!important;
  top:50%!important;
  width:38px!important;
  height:38px!important;
  padding:0!important;
  display:grid!important;
  place-items:center!important;
  border:1px solid rgba(255,255,255,.72)!important;
  border-radius:999px!important;
  color:#0a7f51!important;
  background:rgba(255,255,255,.92)!important;
  box-shadow:0 12px 28px rgba(0,0,0,.16)!important;
  cursor:pointer!important;
}
.profile-follow-orb svg{
  width:18px!important;
  height:18px!important;
  fill:none!important;
  stroke:currentColor!important;
  stroke-width:2.3!important;
  stroke-linecap:round!important;
  stroke-linejoin:round!important;
}
.profile-follow-orb.followed{
  color:#fff!important;
  background:#0a7f51!important;
}
#detailCommentsList .comment-reply{
  display:none!important;
}
#detailCommentsList .comment-reply.reply-expanded{
  display:grid!important;
}
#detailCommentsList .comment-reply-btn{
  width:24px!important;
  min-width:24px!important;
  height:24px!important;
  min-height:24px!important;
  padding:0!important;
  display:inline-grid!important;
  place-items:center!important;
  border-radius:999px!important;
  font-size:0!important;
}
#detailCommentsList .comment-reply-btn svg{
  width:14px!important;
  height:14px!important;
  fill:none!important;
  stroke:currentColor!important;
  stroke-width:2.2!important;
  stroke-linecap:round!important;
  stroke-linejoin:round!important;
}
#detailCommentsList .reply-fold{
  color:#0a7f51!important;
  background:rgba(10,127,81,.08)!important;
}
#detailCommentsList .reply-fold[aria-expanded="true"]{
  color:#fff!important;
  background:#0a7f51!important;
}

/* v218 interaction and layout fixes */
#gallery.pinterest-masonry,
.library-page .pinterest-masonry,
.search-results-grid.pinterest-masonry,
.category-page-grid.pinterest-masonry,
.all-works-grid.pinterest-masonry{
  display:block!important;
  column-count:6!important;
  column-gap:18px!important;
  grid-template-columns:none!important;
  grid-auto-flow:initial!important;
  align-items:initial!important;
}
.all-work-card.pinterest-card{
  display:inline-block!important;
  width:100%!important;
  vertical-align:top!important;
  break-inside:avoid!important;
  page-break-inside:avoid!important;
}
.masonry-sentinel{
  break-before:column!important;
  column-span:all!important;
}
@media(max-width:1500px){
  #gallery.pinterest-masonry,
  .library-page .pinterest-masonry,
  .search-results-grid.pinterest-masonry,
  .category-page-grid.pinterest-masonry,
  .all-works-grid.pinterest-masonry{column-count:5!important}
}
@media(max-width:1120px){
  #gallery.pinterest-masonry,
  .library-page .pinterest-masonry,
  .search-results-grid.pinterest-masonry,
  .category-page-grid.pinterest-masonry,
  .all-works-grid.pinterest-masonry{column-count:4!important}
}
@media(max-width:760px){
  #gallery.pinterest-masonry,
  .library-page .pinterest-masonry,
  .search-results-grid.pinterest-masonry,
  .category-page-grid.pinterest-masonry,
  .all-works-grid.pinterest-masonry{column-count:2!important;column-gap:12px!important}
}
#detailCommentsList .comment-body{
  padding-right:96px!important;
}
#detailCommentsList .comment-actions{
  position:absolute!important;
  top:34px!important;
  right:18px!important;
  justify-content:flex-end!important;
  margin:0!important;
}
#detailCommentsList .comment-delete-btn-mini{
  width:24px!important;
  min-width:24px!important;
  height:24px!important;
  min-height:24px!important;
  padding:0!important;
  overflow:hidden!important;
  font-size:0!important;
}
#detailCommentsList .comment-delete-btn-mini::before{
  content:"";
  width:13px;
  height:13px;
  display:block;
  margin:auto;
  background:currentColor;
  -webkit-mask:url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M3 6h18M8 6V4h8v2m-9 0 1 15h8l1-15M10 11v6M14 11v6'/%3E%3C/svg%3E") center/contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M3 6h18M8 6V4h8v2m-9 0 1 15h8l1-15M10 11v6M14 11v6'/%3E%3C/svg%3E") center/contain no-repeat;
}
.lightbox-details{
  transition:transform .28s ease,opacity .22s ease,max-height .28s ease,margin .28s ease!important;
}
.lightbox.lightbox-zoomed .lightbox-details{
  transform:translateY(160px)!important;
  opacity:0!important;
  max-height:0!important;
  margin-top:0!important;
  margin-bottom:0!important;
  padding-top:0!important;
  padding-bottom:0!important;
  overflow:hidden!important;
  pointer-events:none!important;
}
.lightbox.lightbox-zoomed .lightbox-image-panel{
  height:min(78vh,760px)!important;
}

/* v219 fold stability, profile controls and cross-device polish */
.user-follow-svg-btn{
  display:none!important;
}
.profile-follow-orb{
  top:64%!important;
  right:34px!important;
}
#detailCommentsList .comment-item{
  padding-left:12px!important;
  padding-right:12px!important;
}
#detailCommentsList .comment-user-pic,
#detailCommentForm .detail-self-avatar{
  transform:translateX(6px)!important;
}
#detailCommentsList .comment-body{
  padding-left:6px!important;
}
.lightbox:not([hidden]){
  align-content:start!important;
  padding-top:4vh!important;
}
.lightbox-image-panel{
  margin-top:2vh!important;
  display:grid!important;
  place-items:center!important;
  height:min(72vh,700px)!important;
}
.lightbox.lightbox-zoomed .lightbox-image-panel{
  height:min(82vh,820px)!important;
  margin-top:3vh!important;
}
.lightbox.lightbox-zoomed .lightbox-details{
  transform:translateY(28px)!important;
  opacity:0!important;
  max-height:0!important;
  margin:0 auto!important;
  padding-top:0!important;
  padding-bottom:0!important;
  overflow:hidden!important;
  pointer-events:none!important;
}

/* v220: center the photo stage lower; details live below the first viewport */
.user-follow-svg-btn,
.user-cover .user-follow-svg-btn,
.user-shell .user-follow-svg-btn{
  display:none!important;
}
.lightbox:not([hidden]){
  padding-top:8vh!important;
  overflow-y:auto!important;
  scroll-padding-top:8vh!important;
}
.lightbox-image-panel{
  margin-top:4vh!important;
  height:min(72vh,690px)!important;
}
.lightbox-details{
  transform:none!important;
  opacity:1!important;
  max-height:none!important;
  margin:16vh auto 30px!important;
  padding:24px 28px 28px!important;
  overflow:visible!important;
  pointer-events:auto!important;
}
.lightbox.lightbox-zoomed .lightbox-image-panel{
  margin-top:7vh!important;
  height:min(74vh,760px)!important;
}
.lightbox.lightbox-zoomed .lightbox-details{
  transform:translateY(180px)!important;
  opacity:0!important;
  max-height:0!important;
  margin:0 auto!important;
  padding-top:0!important;
  padding-bottom:0!important;
  overflow:hidden!important;
  pointer-events:none!important;
}
@media (hover:none), (pointer:coarse){
  .all-work-card.pinterest-card:hover{
    transform:none!important;
  }
  .pin-hover-ui{
    display:none!important;
  }
}
@media (max-width:900px), (orientation:portrait){
  .topbar{
    left:10px!important;
    right:10px!important;
    width:auto!important;
    gap:10px!important;
  }
  .brand{
    min-width:auto!important;
  }
  .search-shell{
    min-width:0!important;
    flex:1 1 auto!important;
  }
  .lightbox:not([hidden]){
    padding:2vh 10px 24px!important;
  }
  .lightbox-image-panel,
  .lightbox.lightbox-zoomed .lightbox-image-panel{
    width:calc(100vw - 20px)!important;
    height:min(60vh,620px)!important;
    margin-top:2vh!important;
    padding-left:12px!important;
    padding-right:12px!important;
  }
  .lightbox-details,
  .lightbox.lightbox-zoomed .lightbox-details{
    width:calc(100vw - 20px)!important;
    margin:18px auto 24px!important;
    padding:18px 16px 22px!important;
  }
  #detailCommentsList .comment-item{
    padding-left:10px!important;
    padding-right:10px!important;
  }
  #detailCommentsList .comment-actions{
    right:12px!important;
  }
}
@media (max-width:560px){
  .profile-follow-orb{
    right:18px!important;
    top:68%!important;
  }
  #detailCommentsList .comment-body{
    padding-right:72px!important;
  }
  #detailCommentsList .comment-actions{
    top:30px!important;
  }
  .lightbox-image-panel,
  .lightbox.lightbox-zoomed .lightbox-image-panel{
    height:min(54vh,520px)!important;
  }
}

/* v221: zoom controls stay compact until hover/focus or active zoom */
.lightbox-zoom-controls{
  transition:max-width .2s ease, padding .2s ease, opacity .18s ease, background-color .18s ease!important;
  overflow:hidden!important;
}
.lightbox-zoom-controls.v221-collapsed{
  max-width:58px!important;
  padding:5px!important;
  opacity:.66!important;
}
.lightbox-zoom-controls.v221-collapsed:hover,
.lightbox-zoom-controls.v221-collapsed:focus-within{
  max-width:220px!important;
  opacity:1!important;
}
.lightbox-zoom-controls.v221-collapsed button:not(#zoomResetButton){
  width:0!important;
  min-width:0!important;
  padding:0!important;
  opacity:0!important;
  pointer-events:none!important;
}
.lightbox-zoom-controls.v221-collapsed:hover button:not(#zoomResetButton),
.lightbox-zoom-controls.v221-collapsed:focus-within button:not(#zoomResetButton){
  width:38px!important;
  min-width:38px!important;
  padding:0!important;
  opacity:1!important;
  pointer-events:auto!important;
}
.lightbox-zoom-controls.v221-collapsed #zoomResetButton{
  min-width:42px!important;
  width:42px!important;
  padding:0!important;
  font-size:11px!important;
}
.v221-category-page-back{
  min-height:38px;
  padding:0 16px;
  border:0;
  border-radius:999px;
  color:#fff;
  background:#111;
  font-weight:800;
}

/* v222: keep zoom controls outside the image and restore compact category back */
.lightbox:not([hidden]) .lightbox-zoom-controls{
  position:fixed!important;
  left:50%!important;
  right:auto!important;
  top:auto!important;
  bottom:22px!important;
  transform:translateX(-50%)!important;
  z-index:60!important;
}
.lightbox.lightbox-zoomed .lightbox-zoom-controls{
  bottom:22px!important;
}
.category-page-pro-head{
  grid-template-columns:minmax(0,1fr)!important;
  max-width:1040px!important;
}
.category-page-pro-head>img,
.category-page-pro-head>.cat-page-empty{
  display:none!important;
}
.v221-category-page-back,
.category-page-back{
  justify-self:start!important;
  width:auto!important;
  min-width:0!important;
  min-height:34px!important;
  height:34px!important;
  padding:0 14px!important;
  border-radius:999px!important;
  font-size:13px!important;
  line-height:34px!important;
  background:#111c16!important;
  box-shadow:none!important;
}
.category-page-copy{
  padding:28px!important;
}
@media(max-width:900px){
  .lightbox:not([hidden]) .lightbox-zoom-controls{
    bottom:12px!important;
  }
}

/* v223: zoom hidden at <=100%, nav capsule lock, bell hover motion */
.lightbox-zoom-controls.v223-hidden{
  display:none!important;
}
.main-nav .nav-link:not(.active),
.main-nav .nav-link:not(.active):hover,
.main-nav .nav-link:not(.active):focus,
.main-nav .nav-link:not(.active):focus-visible{
  color:#122018!important;
  background:transparent!important;
  box-shadow:none!important;
  transform:none!important;
}
.main-nav .nav-link.active,
.main-nav .nav-link.active:hover,
.main-nav .nav-link.active:focus{
  color:#fff!important;
  background:#07884f!important;
  box-shadow:0 12px 26px rgba(7,136,79,.22)!important;
}
@keyframes v223BellRing{
  0%{transform:rotate(0deg)}
  12%{transform:rotate(15deg)}
  24%{transform:rotate(-13deg)}
  36%{transform:rotate(11deg)}
  48%{transform:rotate(-9deg)}
  60%{transform:rotate(7deg)}
  72%{transform:rotate(-5deg)}
  84%{transform:rotate(3deg)}
  100%{transform:rotate(0deg)}
}
.message-button span::before{
  transform-origin:50% 8%;
}
.message-button:hover span::before,
.message-button:focus-visible span::before{
  animation:v223BellRing .72s linear both;
}

/* v225: lightbox detail card scrolls above a fading photo stage */
.lightbox:not([hidden]){
  --v225-lightbox-scroll:0;
  overflow-y:auto!important;
  overflow-x:hidden!important;
}
.lightbox:not([hidden]) .lightbox-image-panel{
  position:sticky!important;
  top:8vh!important;
  z-index:1!important;
  transform:
    translateY(calc(var(--v225-lightbox-scroll) * -18px))
    scale(calc(1 - (var(--v225-lightbox-scroll) * .16)))!important;
  opacity:calc(1 - (var(--v225-lightbox-scroll) * .88))!important;
  transition:opacity .08s linear, transform .08s linear!important;
  will-change:opacity, transform!important;
}
.lightbox:not([hidden]) .lightbox-details{
  position:relative!important;
  z-index:8!important;
  margin-top:clamp(68px,14vh,160px)!important;
}
.lightbox.v225-detail-over-image .lightbox-image-panel{
  pointer-events:none!important;
}
.lightbox:not([hidden]) .lightbox-close,
.lightbox:not([hidden]) .lightbox-nav,
.lightbox:not([hidden]) .lightbox-prev,
.lightbox:not([hidden]) .lightbox-next{
  position:fixed!important;
}
@media(max-width:900px){
  .lightbox:not([hidden]) .lightbox-image-panel{
    top:6vh!important;
  }
  .lightbox:not([hidden]) .lightbox-details{
    margin-top:clamp(42px,10vh,100px)!important;
  }
}

/* v226: keep lightbox close/arrow controls fixed to the viewport */
.lightbox:not([hidden]) .lightbox-close{
  position:fixed!important;
  top:18px!important;
  right:24px!important;
  left:auto!important;
  bottom:auto!important;
  transform:none!important;
  z-index:90!important;
}
.lightbox:not([hidden]) .lightbox-nav,
.lightbox:not([hidden]) .lightbox-prev,
.lightbox:not([hidden]) .lightbox-next{
  position:fixed!important;
  top:50dvh!important;
  bottom:auto!important;
  transform:translateY(-50%)!important;
  z-index:88!important;
}
.lightbox:not([hidden]) .lightbox-prev{
  left:clamp(18px,2.4vw,34px)!important;
  right:auto!important;
}
.lightbox:not([hidden]) .lightbox-next{
  right:clamp(28px,3vw,44px)!important;
  left:auto!important;
}

/* v227: counter the lightbox scroll container so controls stay visually fixed */
.lightbox:not([hidden]){
  --v227-scroll-y:0px;
}
.lightbox:not([hidden]) .lightbox-close{
  position:absolute!important;
  top:calc(var(--v227-scroll-y) + 18px)!important;
  right:24px!important;
  transform:none!important;
}
.lightbox:not([hidden]) .lightbox-nav,
.lightbox:not([hidden]) .lightbox-prev,
.lightbox:not([hidden]) .lightbox-next{
  position:absolute!important;
  top:calc(var(--v227-scroll-y) + 50dvh)!important;
  transform:translateY(-50%)!important;
}

/* v228: move lightbox controls outside the scrolling modal to remove jitter */
body.lightbox-open > .v228-floating-lightbox-control{
  position:fixed!important;
  z-index:1000!important;
  margin:0!important;
  will-change:auto!important;
}
body.lightbox-open > .v228-floating-lightbox-control.lightbox-close{
  top:18px!important;
  right:24px!important;
  left:auto!important;
  bottom:auto!important;
  transform:none!important;
}
body.lightbox-open > .v228-floating-lightbox-control.lightbox-prev,
body.lightbox-open > .v228-floating-lightbox-control.lightbox-next,
body.lightbox-open > .v228-floating-lightbox-control.lightbox-nav{
  top:50dvh!important;
  bottom:auto!important;
  transform:translateY(-50%)!important;
}
body.lightbox-open > .v228-floating-lightbox-control.lightbox-prev{
  left:clamp(18px,2.4vw,34px)!important;
  right:auto!important;
}
body.lightbox-open > .v228-floating-lightbox-control.lightbox-next{
  right:clamp(28px,3vw,44px)!important;
  left:auto!important;
}
body:not(.lightbox-open) > .v228-floating-lightbox-control{
  display:none!important;
}

/* v230: visual nav capsule uses one stable class, ignoring legacy active races */
.main-nav .nav-link.active:not(.v230-nav-active),
.main-nav .nav-link.active:not(.v230-nav-active):hover,
.main-nav .nav-link.active:not(.v230-nav-active):focus{
  color:#122018!important;
  background:transparent!important;
  box-shadow:none!important;
}
.main-nav .nav-link.v230-nav-active,
.main-nav .nav-link.v230-nav-active:hover,
.main-nav .nav-link.v230-nav-active:focus,
.main-nav .nav-link.v230-nav-active.active{
  color:#fff!important;
  background:#07884f!important;
  box-shadow:0 12px 26px rgba(7,136,79,.22)!important;
}

/* v231: restore masonry library, modern reset state, and clean lightbox detail layout */
body.library-mode .library-page .all-works-grid,
body.library-mode[data-library-mode="favorites"] .library-page .all-works-grid,
body[data-library-mode="favorites"] .all-works-grid{
  display:block!important;
  width:min(1320px,calc(100vw - 32px))!important;
  margin:34px auto 76px!important;
  columns:5 210px!important;
  column-count:auto!important;
  column-gap:16px!important;
  grid-template-columns:none!important;
  justify-content:normal!important;
}
body.library-mode .library-page .all-work-card,
body.library-mode[data-library-mode="favorites"] .library-page .all-work-card,
body[data-library-mode="favorites"] .all-work-card{
  display:inline-block!important;
  width:100%!important;
  max-width:none!important;
  margin:0 0 16px!important;
  break-inside:avoid!important;
}
@media(max-width:1180px){
  body.library-mode .library-page .all-works-grid,
  body.library-mode[data-library-mode="favorites"] .library-page .all-works-grid,
  body[data-library-mode="favorites"] .all-works-grid{columns:4 190px!important}
}
@media(max-width:760px){
  body.library-mode .library-page .all-works-grid,
  body.library-mode[data-library-mode="favorites"] .library-page .all-works-grid,
  body[data-library-mode="favorites"] .all-works-grid{columns:2 150px!important}
}
.library-page,
body.library-mode[data-library-mode="favorites"] .library-page{
  max-width:none!important;
  width:100%!important;
}
.library-page .library-head{
  display:grid!important;
}
.lightbox-details{
  grid-template-columns:1fr!important;
  grid-template-areas:
    "head"
    "meta"
    "actions"
    "owner"
    "link"
    "comments"
    "others"!important;
}
.lightbox-details h2{
  max-width:100%!important;
  overflow-wrap:normal!important;
  word-break:normal!important;
  hyphens:none!important;
}
.lightbox-actions{
  justify-self:start!important;
  justify-content:flex-start!important;
  order:3!important;
}
.lightbox-tags{
  order:2!important;
}
.lightbox-download:not(.download-icon-button),
.lightbox-actions .lightbox-download:not(:first-of-type){
  display:none!important;
}
.lightbox-actions .download-icon-button{
  font-size:0!important;
  width:46px!important;
  min-width:46px!important;
  padding:0!important;
}

/* v232: final front-end polish guardrails */
body.library-mode .library-page{
  padding-left:0!important;
  padding-right:0!important;
}
body.library-mode .library-page .library-head{
  width:min(1540px,calc(100vw - 56px))!important;
  margin-left:auto!important;
  margin-right:auto!important;
}
body.library-mode .library-page .all-works-grid{
  min-height:240px!important;
}
.library-page .empty-inline{
  width:min(760px,calc(100vw - 56px))!important;
  margin:30px auto!important;
}
.lightbox-details{
  align-items:start!important;
  gap:10px 18px!important;
}
.lightbox-details h2{
  font-size:clamp(32px,4.2vw,64px)!important;
  line-height:1.03!important;
  max-width:min(960px,100%)!important;
}
.lightbox-tags{
  font-size:15px!important;
  line-height:1.55!important;
}
.lightbox-actions{
  margin-top:8px!important;
}
.lightbox-actions .lightbox-download:nth-of-type(n+2),
.lightbox-actions a.lightbox-download:not(.download-icon-button){
  display:none!important;
}
.lightbox-details .original-link{
  margin-top:18px!important;
}
@media(max-width:760px){
  .lightbox-details h2{
    font-size:clamp(30px,10vw,46px)!important;
  }
  .lightbox-actions{
    gap:8px!important;
  }
}

/* v233: icon actions, footer author link, and favorites spread */
.footer-creator-link{
  color:inherit!important;
  font-weight:900!important;
  text-decoration:none!important;
  border-bottom:1px solid currentColor!important;
}
.footer-creator-link:hover,
.footer-creator-link:focus-visible{
  color:#07884f!important;
}
.library-summary{
  display:none!important;
}
body.library-mode[data-library-mode="favorites"] .library-page #libraryGrid,
body[data-library-mode="favorites"] #libraryGrid{
  display:grid!important;
  width:min(1540px,calc(100vw - 56px))!important;
  max-width:none!important;
  margin:34px auto 76px!important;
  grid-template-columns:repeat(auto-fill,minmax(220px,1fr))!important;
  gap:18px!important;
  columns:initial!important;
  column-count:initial!important;
  column-width:initial!important;
  justify-content:stretch!important;
  align-items:start!important;
}
body.library-mode[data-library-mode="favorites"] .library-page #libraryGrid .all-work-card,
body[data-library-mode="favorites"] #libraryGrid .all-work-card{
  display:block!important;
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  break-inside:auto!important;
}
.pin-hover-save,
.pin-hover-download{
  width:42px!important;
  min-width:42px!important;
  height:42px!important;
  min-height:42px!important;
  padding:0!important;
  display:inline-grid!important;
  place-items:center!important;
  font-size:0!important;
  line-height:1!important;
  border-radius:999px!important;
}
.pin-hover-save .card-action-icon,
.pin-hover-download .card-action-icon,
.lightbox-actions .download-icon-button .lb-action-icon{
  width:22px!important;
  height:22px!important;
  display:block!important;
  flex:0 0 auto!important;
}
.pin-hover-save .sr-only,
.pin-hover-download .sr-only,
.lightbox-actions .download-icon-button .sr-only{
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  padding:0!important;
  margin:-1px!important;
  overflow:hidden!important;
  clip:rect(0,0,0,0)!important;
  white-space:nowrap!important;
  border:0!important;
}
.lightbox-actions .download-icon-button{
  display:inline-grid!important;
  place-items:center!important;
}
@media(max-width:760px){
  body.library-mode[data-library-mode="favorites"] .library-page #libraryGrid,
  body[data-library-mode="favorites"] #libraryGrid{
    width:min(100%,calc(100vw - 28px))!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:12px!important;
  }
  .pin-hover-save,
  .pin-hover-download{
    width:38px!important;
    min-width:38px!important;
    height:38px!important;
    min-height:38px!important;
  }
}

/* v234: smaller card hover icons and capsule favorite button */
.pin-hover-save{
  width:auto!important;
  min-width:56px!important;
  height:32px!important;
  min-height:32px!important;
  padding:0 14px!important;
  border-radius:999px!important;
}
.pin-hover-download{
  width:32px!important;
  min-width:32px!important;
  height:32px!important;
  min-height:32px!important;
  padding:0!important;
}
.pin-hover-save .card-action-icon,
.pin-hover-download .card-action-icon{
  width:11px!important;
  height:11px!important;
}
@media(max-width:760px){
  .pin-hover-save{
    min-width:52px!important;
    height:30px!important;
    min-height:30px!important;
    padding:0 13px!important;
  }
  .pin-hover-download{
    width:30px!important;
    min-width:30px!important;
    height:30px!important;
    min-height:30px!important;
  }
  .pin-hover-save .card-action-icon,
  .pin-hover-download .card-action-icon{
    width:10px!important;
    height:10px!important;
  }
}

/* v236: notice center, glass profile stats, compact card favorite, animated lightbox icons */
#messageModal.login-modal{
  align-items:center!important;
  justify-content:center!important;
  padding:26px!important;
  background:rgba(12,20,18,.42)!important;
  backdrop-filter:blur(16px)!important;
}
#messageModal .message-panel{
  width:min(560px,calc(100vw - 36px))!important;
  max-height:min(82vh,760px)!important;
  padding:34px 34px 30px!important;
  border:1px solid rgba(255,255,255,.46)!important;
  border-radius:28px!important;
  background:linear-gradient(180deg,rgba(246,249,247,.92),rgba(230,236,233,.88))!important;
  box-shadow:0 28px 80px rgba(4,14,12,.34)!important;
  overflow:hidden!important;
}
#messageModal .message-panel .modal-close{
  top:18px!important;
  right:18px!important;
  width:42px!important;
  height:42px!important;
  border-radius:50%!important;
  background:rgba(255,255,255,.9)!important;
  box-shadow:0 10px 30px rgba(0,0,0,.08)!important;
}
#messageModal .message-panel .kicker{
  margin:2px 0 26px!important;
  color:#087a4f!important;
  font-weight:900!important;
}
#messageModal .message-panel h2{
  margin:0 0 22px!important;
  font-size:clamp(34px,5vw,54px)!important;
  letter-spacing:0!important;
}
#messageModal .message-tabs{
  display:flex!important;
  gap:8px!important;
  margin:-8px 0 16px!important;
}
#messageModal .message-tabs span{
  display:inline-flex!important;
  align-items:center!important;
  height:30px!important;
  padding:0 13px!important;
  border-radius:999px!important;
  color:#62716a!important;
  background:rgba(255,255,255,.62)!important;
  font-size:12px!important;
  font-weight:900!important;
}
#messageModal .message-tabs span:first-child{
  color:#fff!important;
  background:#087a4f!important;
}
#messageModal .message-list{
  max-height:min(56vh,520px)!important;
  margin-top:0!important;
  padding:0 10px 4px 0!important;
  gap:12px!important;
}
#messageModal .message-item{
  position:relative!important;
  grid-template-columns:52px minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:14px!important;
  width:100%!important;
  padding:14px 16px!important;
  border:1px solid rgba(255,255,255,.72)!important;
  border-radius:14px!important;
  background:rgba(255,255,255,.78)!important;
  text-align:left!important;
  box-shadow:0 10px 28px rgba(16,28,24,.08)!important;
}
#messageModal .message-item.unread::before{
  content:""!important;
  position:absolute!important;
  left:10px!important;
  top:50%!important;
  width:7px!important;
  height:7px!important;
  border-radius:50%!important;
  background:#ff6b6b!important;
  transform:translateY(-50%)!important;
}
#messageModal .message-item img{
  width:52px!important;
  height:52px!important;
  border-radius:50%!important;
  box-shadow:0 0 0 2px rgba(8,122,79,.1)!important;
}
#messageModal .message-main{
  min-width:0!important;
}
#messageModal .message-item strong{
  margin:0!important;
  font-size:18px!important;
  line-height:1.18!important;
  overflow:hidden!important;
  display:-webkit-box!important;
  -webkit-line-clamp:2!important;
  -webkit-box-orient:vertical!important;
}
#messageModal .message-item span{
  display:block!important;
  margin-top:6px!important;
  font-size:13px!important;
}
#messageModal .message-type{
  display:inline-flex!important;
  align-items:center!important;
  height:24px!important;
  padding:0 10px!important;
  border-radius:999px!important;
  color:#087a4f!important;
  background:rgba(8,122,79,.1)!important;
  font-size:12px!important;
  font-weight:900!important;
  white-space:nowrap!important;
}
.user-cover .user-stats span,
.cliffs-tab-shell .user-stats span{
  border:1px solid rgba(255,255,255,.46)!important;
  color:#fff!important;
  background:rgba(255,255,255,.16)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.24),0 10px 30px rgba(0,0,0,.14)!important;
  backdrop-filter:blur(16px) saturate(1.35)!important;
}
.pin-hover-ui{
  align-items:flex-start!important;
}
.pin-hover-save{
  width:18px!important;
  min-width:18px!important;
  height:30px!important;
  min-height:30px!important;
  padding:0!important;
  justify-self:start!important;
  align-self:flex-start!important;
}
.pin-hover-save .card-action-icon{
  width:10px!important;
  height:10px!important;
}
.lightbox-actions .icon-only-action .lb-action-icon{
  transition:transform .18s linear, opacity .18s linear!important;
  transform-origin:50% 50%!important;
}
.lightbox-actions #lightboxFavorite.icon-only-action:hover .lb-action-icon,
.lightbox-actions #lightboxFavorite.icon-only-action:focus-visible .lb-action-icon{
  animation:folderBounceV236 .42s linear!important;
}
.lightbox-actions .download-icon-button:hover .lb-action-icon,
.lightbox-actions .download-icon-button:focus-visible .lb-action-icon{
  animation:downloadDropV236 .44s linear!important;
}
@keyframes folderBounceV236{
  0%,100%{transform:translateY(0) scale(1)}
  30%{transform:translateY(-2px) scale(1.08)}
  62%{transform:translateY(1px) scale(.98)}
}
@keyframes downloadDropV236{
  0%,100%{transform:translateY(0)}
  35%{transform:translateY(4px)}
  66%{transform:translateY(-2px)}
}
@media(max-width:760px){
  #messageModal.login-modal{
    padding:14px!important;
  }
  #messageModal .message-panel{
    padding:28px 22px 24px!important;
    border-radius:24px!important;
  }
  #messageModal .message-item{
    grid-template-columns:46px minmax(0,1fr)!important;
  }
  #messageModal .message-type{
    display:none!important;
  }
}

/* v237: restore lightbox download icon and enlarge card SVG only */
.lightbox-actions .download-icon-button .lb-action-icon{
  width:24px!important;
  height:24px!important;
  min-width:24px!important;
  min-height:24px!important;
  color:#fff!important;
  stroke:currentColor!important;
  opacity:1!important;
  visibility:visible!important;
}
.pin-hover-save .card-action-icon,
.pin-hover-download .card-action-icon{
  width:15px!important;
  height:15px!important;
}
@media(max-width:760px){
  .pin-hover-save .card-action-icon,
  .pin-hover-download .card-action-icon{
    width:14px!important;
    height:14px!important;
  }
}

/* v238: Apple/Safari typography and gapless masonry fallback */
html{
  -webkit-text-size-adjust:100%!important;
  text-size-adjust:100%!important;
}
body,
button,
input,
select,
textarea{
  font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","SF Pro Display","PingFang SC","Hiragino Sans GB","Microsoft YaHei",Arial,sans-serif!important;
  -webkit-font-smoothing:antialiased!important;
  text-rendering:optimizeLegibility!important;
}
h1,h2,h3,strong,b,.nav-link,.portfolio-button{
  letter-spacing:0!important;
  -webkit-font-smoothing:antialiased!important;
}
button,
a,
input,
textarea,
select{
  -webkit-tap-highlight-color:transparent!important;
}
.v238-grid-masonry{
  display:grid!important;
  width:min(1540px,calc(100vw - 56px))!important;
  max-width:none!important;
  margin-left:auto!important;
  margin-right:auto!important;
  grid-template-columns:repeat(auto-fill,minmax(220px,1fr))!important;
  grid-auto-rows:8px!important;
  grid-auto-flow:dense!important;
  gap:16px!important;
  columns:initial!important;
  column-count:initial!important;
  column-width:initial!important;
  column-gap:initial!important;
  align-items:start!important;
  contain:layout style!important;
  content-visibility:visible!important;
}
.v238-grid-masonry .all-work-card{
  display:block!important;
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  break-inside:auto!important;
  page-break-inside:auto!important;
  transform:translateZ(0)!important;
  -webkit-transform:translateZ(0)!important;
}
.v238-grid-masonry .all-work-card img{
  display:block!important;
  width:100%!important;
  height:auto!important;
  object-fit:cover!important;
}
.v238-grid-masonry .masonry-sentinel,
.v238-grid-masonry .masonry-skeleton{
  grid-column:1/-1!important;
  min-height:1px!important;
}
.all-work-card,
.pin-hover-ui,
.work-card-meta,
.work-card-counts,
.lightbox-details,
.message-item,
.user-cover-content{
  word-break:normal!important;
  overflow-wrap:anywhere!important;
}
.library-page h2,
.category-page-copy h1,
.user-cover-content h2,
.lightbox-details h2{
  word-break:normal!important;
  overflow-wrap:break-word!important;
  text-wrap:balance;
}
@media(min-width:1440px){
  .v238-grid-masonry{
    grid-template-columns:repeat(auto-fill,minmax(235px,1fr))!important;
  }
}
@media(max-width:1180px){
  .v238-grid-masonry{
    width:min(100%,calc(100vw - 36px))!important;
    grid-template-columns:repeat(auto-fill,minmax(190px,1fr))!important;
    gap:14px!important;
  }
}
@media(max-width:760px),(orientation:portrait) and (max-width:900px){
  body{
    padding-left:env(safe-area-inset-left)!important;
    padding-right:env(safe-area-inset-right)!important;
  }
  .topbar{
    top:max(10px,env(safe-area-inset-top))!important;
  }
  .v238-grid-masonry{
    width:calc(100vw - 20px)!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    grid-auto-rows:6px!important;
    gap:10px!important;
  }
  .all-work-card span,
  .work-card-meta,
  .work-card-counts{
    font-size:12px!important;
    line-height:1.28!important;
  }
  .library-page h2{
    font-size:clamp(46px,18vw,74px)!important;
    line-height:.95!important;
  }
}
@supports (-webkit-touch-callout:none){
  .gallery,
  .all-works-grid,
  .search-results-grid,
  .category-page-grid{
    content-visibility:visible!important;
    contain-intrinsic-size:auto!important;
  }
  .v238-grid-masonry{
    -webkit-transform:translateZ(0)!important;
  }
}

/* v239: tune card favorite ratio and force lightbox download glyph visible */
.pin-hover-save{
  width:76px!important;
  min-width:76px!important;
  max-width:76px!important;
  height:32px!important;
  min-height:32px!important;
  padding:0 0 0 8px!important;
  justify-content:flex-start!important;
  justify-items:start!important;
  place-items:center start!important;
  border-radius:6px!important;
}
.pin-hover-save .card-action-icon{
  width:18px!important;
  height:18px!important;
  margin-left:0!important;
}
.lightbox-actions .download-icon-button{
  color:#fff!important;
  background:#050505!important;
}
.lightbox-actions .download-icon-button svg,
.lightbox-actions .download-icon-button .lb-action-icon,
.lightbox-actions .download-icon-button .lb-action-icon *{
  display:block!important;
  color:#fff!important;
  stroke:#fff!important;
  fill:none!important;
  opacity:1!important;
  visibility:visible!important;
}
.lightbox-actions .download-icon-button .lb-action-icon{
  width:24px!important;
  height:24px!important;
}
@media(max-width:760px){
  .pin-hover-save{
    width:64px!important;
    min-width:64px!important;
    max-width:64px!important;
    height:30px!important;
    min-height:30px!important;
    padding-left:7px!important;
  }
  .pin-hover-save .card-action-icon{
    width:16px!important;
    height:16px!important;
  }
}

/* v241: stable pseudo download icon and right-aligned square save button */
.pin-hover-ui{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 32px!important;
  grid-template-areas:
    "title save"
    "meta meta"!important;
  align-items:center!important;
  gap:8px 10px!important;
}
.pin-hover-ui strong{
  grid-area:title!important;
  min-width:0!important;
}
.pin-hover-ui small{
  grid-area:meta!important;
}
.pin-hover-save{
  grid-area:save!important;
  justify-self:end!important;
  align-self:center!important;
  width:32px!important;
  min-width:32px!important;
  max-width:32px!important;
  height:32px!important;
  min-height:32px!important;
  padding:0!important;
  border-radius:8px!important;
  background:rgba(255,255,255,.94)!important;
  color:#111!important;
  display:grid!important;
  place-items:center!important;
  box-shadow:0 8px 22px rgba(0,0,0,.14)!important;
}
.pin-hover-save .card-action-icon{
  width:17px!important;
  height:17px!important;
  margin:0!important;
}
.lightbox-actions .download-icon-button{
  position:relative!important;
  color:#fff!important;
  background:#050505!important;
  overflow:hidden!important;
}
.lightbox-actions .download-icon-button .lb-action-icon,
.lightbox-actions .download-icon-button svg{
  display:none!important;
}
.lightbox-actions .download-icon-button::before{
  content:""!important;
  display:block!important;
  width:24px!important;
  height:24px!important;
  background:#fff!important;
  opacity:1!important;
  visibility:visible!important;
  -webkit-mask:url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' d='M12 4v10'/%3E%3Cpath fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='m7.5 10.5 4.5 4.5 4.5-4.5'/%3E%3Cpath fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' d='M5 20h14'/%3E%3C/svg%3E") center/contain no-repeat!important;
  mask:url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' d='M12 4v10'/%3E%3Cpath fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='m7.5 10.5 4.5 4.5 4.5-4.5'/%3E%3Cpath fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' d='M5 20h14'/%3E%3C/svg%3E") center/contain no-repeat!important;
}
.lightbox-actions .download-icon-button:hover::before,
.lightbox-actions .download-icon-button:focus-visible::before{
  animation:downloadDropV236 .44s linear!important;
}
@media(max-width:760px){
  .pin-hover-ui{
    grid-template-columns:minmax(0,1fr) 30px!important;
    gap:7px 8px!important;
  }
  .pin-hover-save{
    width:30px!important;
    min-width:30px!important;
    max-width:30px!important;
    height:30px!important;
    min-height:30px!important;
  }
  .pin-hover-save .card-action-icon{
    width:16px!important;
    height:16px!important;
  }
}

/* v242: Apple absolute masonry and mobile portrait UI sync */
.v242-absolute-masonry{
  position:relative!important;
  display:block!important;
  width:min(1540px,calc(100vw - 56px))!important;
  max-width:none!important;
  margin-left:auto!important;
  margin-right:auto!important;
  columns:initial!important;
  column-count:initial!important;
  column-width:initial!important;
  column-gap:initial!important;
  overflow:visible!important;
  contain:layout style!important;
  content-visibility:visible!important;
}
.v242-absolute-masonry .all-work-card{
  position:absolute!important;
  display:block!important;
  width:var(--v242-card-width,220px)!important;
  max-width:none!important;
  margin:0!important;
  left:0!important;
  top:0!important;
  transform:translate3d(var(--v242-x,0px),var(--v242-y,0px),0)!important;
  -webkit-transform:translate3d(var(--v242-x,0px),var(--v242-y,0px),0)!important;
  break-inside:auto!important;
  page-break-inside:auto!important;
  will-change:transform!important;
}
.v242-absolute-masonry .all-work-card img{
  width:100%!important;
  height:auto!important;
  display:block!important;
  object-fit:cover!important;
}
.v242-absolute-masonry .masonry-sentinel,
.v242-absolute-masonry .masonry-skeleton{
  position:absolute!important;
  left:0!important;
  right:0!important;
  bottom:0!important;
  height:1px!important;
}
@media(max-width:760px),(orientation:portrait) and (max-width:900px){
  html,body{
    width:100%!important;
    overflow-x:hidden!important;
  }
  body{
    padding-left:env(safe-area-inset-left)!important;
    padding-right:env(safe-area-inset-right)!important;
  }
  .topbar{
    position:sticky!important;
    top:max(8px,env(safe-area-inset-top))!important;
    left:8px!important;
    right:8px!important;
    width:calc(100vw - 16px - env(safe-area-inset-left) - env(safe-area-inset-right))!important;
    min-height:60px!important;
    grid-template-columns:auto 1fr auto!important;
    grid-template-areas:"brand search profile"!important;
    padding:8px!important;
    border-radius:20px!important;
    gap:8px!important;
  }
  .brand{grid-area:brand!important}
  .search-box{grid-area:search!important;min-width:0!important}
  .profile{grid-area:profile!important}
  .main-nav{
    display:flex!important;
    position:fixed!important;
    left:12px!important;
    right:12px!important;
    bottom:calc(12px + env(safe-area-inset-bottom))!important;
    z-index:70!important;
    height:52px!important;
    padding:6px!important;
    gap:6px!important;
    overflow-x:auto!important;
    border-radius:999px!important;
    background:rgba(250,252,249,.86)!important;
    border:1px solid rgba(10,30,18,.1)!important;
    box-shadow:0 18px 48px rgba(0,0,0,.16)!important;
    -webkit-backdrop-filter:blur(18px) saturate(1.18)!important;
    backdrop-filter:blur(18px) saturate(1.18)!important;
  }
  .main-nav::-webkit-scrollbar{display:none!important}
  .main-nav .nav-link{
    flex:1 0 auto!important;
    min-width:64px!important;
    min-height:40px!important;
    padding:0 12px!important;
    border-radius:999px!important;
    font-size:14px!important;
    white-space:nowrap!important;
  }
  .mobile-action-dock{
    display:none!important;
  }
  main{
    padding-bottom:calc(78px + env(safe-area-inset-bottom))!important;
  }
  .library-page,
  .search-page,
  .category-page{
    padding-top:96px!important;
    padding-left:10px!important;
    padding-right:10px!important;
  }
  .library-page .library-head{
    width:calc(100vw - 20px)!important;
    grid-template-columns:1fr!important;
    gap:14px!important;
  }
  .library-filters{
    grid-template-columns:1fr!important;
    width:100%!important;
  }
  .v242-absolute-masonry{
    width:calc(100vw - 20px)!important;
    margin-top:18px!important;
  }
  .pin-hover-ui{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 30px!important;
    grid-template-areas:"title save" "meta meta"!important;
    opacity:1!important;
    padding:12px!important;
    pointer-events:auto!important;
  }
  .pin-hover-ui strong{
    display:block!important;
    font-size:13px!important;
    line-height:1.25!important;
  }
  .pin-hover-ui small{
    display:block!important;
    font-size:11px!important;
    line-height:1.2!important;
  }
  .pin-hover-download{
    width:30px!important;
    min-width:30px!important;
    height:30px!important;
    min-height:30px!important;
    right:10px!important;
    top:10px!important;
  }
  #messageModal.login-modal{
    padding:12px!important;
    align-items:flex-end!important;
  }
  #messageModal .message-panel{
    width:100%!important;
    max-height:82dvh!important;
    border-radius:24px 24px 18px 18px!important;
    padding:26px 18px calc(22px + env(safe-area-inset-bottom))!important;
  }
  .lightbox-details{
    width:min(100%,calc(100vw - 18px))!important;
    margin-left:auto!important;
    margin-right:auto!important;
    border-radius:20px!important;
    padding:22px 18px!important;
  }
  .lightbox-details h2{
    font-size:clamp(30px,10vw,46px)!important;
    line-height:1.02!important;
  }
  .lightbox-actions{
    gap:8px!important;
    flex-wrap:wrap!important;
  }
  .lightbox-actions .icon-only-action,
  .lightbox-actions .download-icon-button{
    width:42px!important;
    min-width:42px!important;
    height:42px!important;
    min-height:42px!important;
  }
  .lightbox-actions #lightboxFollow{
    height:42px!important;
    min-height:42px!important;
    padding:0 14px!important;
  }
  .user-cover-content{
    grid-template-columns:72px minmax(0,1fr)!important;
    gap:14px!important;
  }
  .user-cover-content h2{
    font-size:clamp(38px,13vw,64px)!important;
    line-height:.96!important;
  }
  .user-stats{
    display:flex!important;
    flex-wrap:wrap!important;
    gap:8px!important;
  }
  .user-stats span{
    min-height:32px!important;
    padding:0 12px!important;
  }
}
@supports (-webkit-touch-callout:none){
  .v242-absolute-masonry,
  .v242-absolute-masonry .all-work-card{
    -webkit-transform:translateZ(0);
  }
}

/* v243: centered card folder button, no card download, unified folder animation */
.all-work-card .pin-hover-download{
  display:none!important;
}
.all-work-card .pin-hover-ui{
  grid-template-columns:minmax(0,1fr) 40px!important;
  grid-template-areas:"title save" "meta meta"!important;
  column-gap:10px!important;
  align-items:center!important;
}
.all-work-card .pin-hover-save{
  grid-area:save!important;
  justify-self:end!important;
  align-self:center!important;
  display:grid!important;
  place-items:center!important;
  width:40px!important;
  min-width:40px!important;
  max-width:40px!important;
  height:40px!important;
  min-height:40px!important;
  padding:0!important;
  border-radius:11px!important;
  background:rgba(255,255,255,.94)!important;
  color:#111!important;
  box-shadow:0 10px 24px rgba(0,0,0,.14)!important;
  line-height:0!important;
  transform-origin:50% 50%!important;
}
.all-work-card .pin-hover-save .card-action-icon{
  display:block!important;
  width:19px!important;
  height:19px!important;
  margin:0!important;
  transform-origin:50% 62%!important;
}
.all-work-card .pin-hover-save:hover .card-action-icon,
.all-work-card .pin-hover-save:focus-visible .card-action-icon,
.all-work-card .pin-hover-save.v243-folder-pop .card-action-icon,
.lightbox-actions #lightboxFavorite:hover .lb-action-icon,
.lightbox-actions #lightboxFavorite:focus-visible .lb-action-icon,
.lightbox-actions #lightboxFavorite.v243-folder-pop .lb-action-icon,
.folder-favorite-button:hover .folder-icon,
.folder-favorite-button:focus-visible .folder-icon,
.folder-favorite-button.v243-folder-pop .folder-icon{
  animation:folderPopV243 .46s linear!important;
}
.all-work-card .pin-hover-save:hover,
.all-work-card .pin-hover-save:focus-visible{
  transform:translateY(-1px)!important;
  background:#fff!important;
}
@keyframes folderPopV243{
  0%,100%{transform:translateY(0) rotate(0deg) scale(1)}
  24%{transform:translateY(-2px) rotate(-7deg) scale(1.08)}
  52%{transform:translateY(1px) rotate(6deg) scale(.98)}
  76%{transform:translateY(-1px) rotate(-3deg) scale(1.03)}
}
@media(max-width:760px), (orientation:portrait) and (max-width:920px){
  .all-work-card .pin-hover-ui{
    grid-template-columns:minmax(0,1fr) 36px!important;
  }
  .all-work-card .pin-hover-save{
    width:36px!important;
    min-width:36px!important;
    max-width:36px!important;
    height:36px!important;
    min-height:36px!important;
    border-radius:10px!important;
  }
  .all-work-card .pin-hover-save .card-action-icon{
    width:18px!important;
    height:18px!important;
  }
}

/* v289: compact category board title area. */
.category-board-hero-v266{min-height:240px!important;gap:18px!important}
.category-board-hero-cover{min-height:240px!important}
.category-board-hero-copy{min-height:240px!important;padding:clamp(20px,3vw,36px)!important}
.category-board-hero-copy h1{margin:5px 0 8px!important;font-size:clamp(42px,5vw,72px)!important}
@media(max-width:760px){
  .category-board-hero-v266,.category-board-hero-cover,.category-board-hero-copy{min-height:190px!important}
  .category-board-hero-copy{padding:22px!important}
}

/* v245: stable library masonry and exact centered folder icon */
#libraryGrid.v245-grid-masonry{
  position:relative!important;
  display:grid!important;
  width:min(1540px,calc(100vw - 56px))!important;
  max-width:none!important;
  margin:34px auto 76px!important;
  grid-template-columns:repeat(auto-fill,minmax(230px,1fr))!important;
  grid-auto-rows:8px!important;
  grid-auto-flow:dense!important;
  gap:24px!important;
  columns:initial!important;
  column-count:initial!important;
  column-width:initial!important;
  align-items:start!important;
}
#libraryGrid.v245-grid-masonry .all-work-card{
  position:relative!important;
  inset:auto!important;
  display:block!important;
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  transform:none!important;
  -webkit-transform:none!important;
  grid-row-end:span var(--v245-row-span,32)!important;
}
#libraryGrid.v245-grid-masonry .all-work-card img{
  width:100%!important;
  height:auto!important;
  display:block!important;
}
.all-work-card .pin-hover-save{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  text-align:center!important;
  overflow:hidden!important;
  line-height:1!important;
}
.all-work-card .pin-hover-save .card-action-icon{
  position:relative!important;
  left:auto!important;
  top:auto!important;
  flex:0 0 auto!important;
  display:block!important;
  margin:auto!important;
  transform-box:fill-box!important;
}
@media(max-width:1180px){
  #libraryGrid.v245-grid-masonry{
    width:min(100%,calc(100vw - 36px))!important;
    grid-template-columns:repeat(auto-fill,minmax(190px,1fr))!important;
    gap:18px!important;
  }
}
@media(max-width:760px), (orientation:portrait) and (max-width:920px){
  #libraryGrid.v245-grid-masonry{
    width:calc(100vw - 20px)!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:14px!important;
    margin-top:18px!important;
  }
}

/* v246: hard reset library pages to native column masonry; no absolute/grid overlap */
body.library-mode #libraryGrid,
body[data-library-mode="latest"] #libraryGrid,
body[data-library-mode="favorites"] #libraryGrid{
  position:relative!important;
  display:block!important;
  width:min(1540px,calc(100vw - 56px))!important;
  max-width:none!important;
  height:auto!important;
  min-height:0!important;
  margin:34px auto 76px!important;
  columns:5 230px!important;
  column-gap:24px!important;
  column-fill:balance!important;
  grid-template-columns:none!important;
  grid-auto-rows:auto!important;
  gap:0!important;
  overflow:visible!important;
}
body.library-mode #libraryGrid .all-work-card,
body[data-library-mode="latest"] #libraryGrid .all-work-card,
body[data-library-mode="favorites"] #libraryGrid .all-work-card{
  position:static!important;
  inset:auto!important;
  display:inline-block!important;
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  height:auto!important;
  margin:0 0 24px!important;
  break-inside:avoid!important;
  page-break-inside:avoid!important;
  grid-row-end:auto!important;
  transform:none!important;
  -webkit-transform:none!important;
  vertical-align:top!important;
}
body.library-mode #libraryGrid .masonry-sentinel,
body.library-mode #libraryGrid .masonry-skeleton{
  position:static!important;
  display:block!important;
  width:100%!important;
  break-inside:avoid!important;
}
body.library-mode #libraryGrid .all-work-card .pin-hover-save{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:40px!important;
  min-width:40px!important;
  max-width:40px!important;
  height:40px!important;
  min-height:40px!important;
  padding:0!important;
  line-height:1!important;
}
body.library-mode #libraryGrid .all-work-card .pin-hover-save .card-action-icon{
  display:block!important;
  width:19px!important;
  height:19px!important;
  margin:auto!important;
}

/* v247/v248: balanced masonry spacing, tighter white info strip */
body.library-mode #libraryGrid,
body[data-library-mode="latest"] #libraryGrid,
body[data-library-mode="favorites"] #libraryGrid{
  column-gap:16px!important;
}
body.library-mode #libraryGrid .all-work-card,
body[data-library-mode="latest"] #libraryGrid .all-work-card,
body[data-library-mode="favorites"] #libraryGrid .all-work-card{
  margin-bottom:16px!important;
}
body.library-mode #libraryGrid .all-work-card .work-card-meta,
body[data-library-mode="latest"] #libraryGrid .all-work-card .work-card-meta,
body[data-library-mode="favorites"] #libraryGrid .all-work-card .work-card-meta{
  padding:5px 14px 0!important;
  min-height:0!important;
  line-height:1.2!important;
}
body.library-mode #libraryGrid .all-work-card .work-card-counts,
body[data-library-mode="latest"] #libraryGrid .all-work-card .work-card-counts,
body[data-library-mode="favorites"] #libraryGrid .all-work-card .work-card-counts{
  padding:1px 14px 6px!important;
  margin:0!important;
  line-height:1.2!important;
}
body.library-mode #libraryGrid .all-work-card > span,
body[data-library-mode="latest"] #libraryGrid .all-work-card > span,
body[data-library-mode="favorites"] #libraryGrid .all-work-card > span{
  padding:5px 14px 0!important;
  margin:0!important;
  line-height:1.2!important;
}
@media(max-width:1180px){
  body.library-mode #libraryGrid{
    width:min(100%,calc(100vw - 36px))!important;
    columns:4 190px!important;
    column-gap:12px!important;
  }
}
@media(max-width:760px), (orientation:portrait) and (max-width:920px){
  body.library-mode #libraryGrid{
    width:calc(100vw - 20px)!important;
    columns:2 150px!important;
    column-gap:8px!important;
    margin-top:18px!important;
  }
  body.library-mode #libraryGrid .all-work-card{
    margin-bottom:9px!important;
  }
}

/* v249: stable horizontal-order masonry for latest/favorites */
body.library-mode #libraryGrid.v249-row-masonry,
body[data-library-mode="latest"] #libraryGrid.v249-row-masonry,
body[data-library-mode="favorites"] #libraryGrid.v249-row-masonry{
  display:grid!important;
  width:min(1540px,calc(100vw - 56px))!important;
  margin:34px auto 76px!important;
  columns:auto!important;
  column-gap:normal!important;
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
  grid-auto-rows:8px!important;
  grid-auto-flow:row!important;
  gap:16px!important;
  align-items:start!important;
  overflow:visible!important;
}
body.library-mode #libraryGrid.v249-row-masonry .all-work-card,
body[data-library-mode="latest"] #libraryGrid.v249-row-masonry .all-work-card,
body[data-library-mode="favorites"] #libraryGrid.v249-row-masonry .all-work-card{
  display:block!important;
  width:100%!important;
  margin:0!important;
  break-inside:auto!important;
  page-break-inside:auto!important;
  align-self:start!important;
  position:static!important;
  transform:none!important;
}
body.library-mode #libraryGrid.v249-row-masonry .all-work-card img,
body[data-library-mode="latest"] #libraryGrid.v249-row-masonry .all-work-card img,
body[data-library-mode="favorites"] #libraryGrid.v249-row-masonry .all-work-card img{
  display:block!important;
  width:100%!important;
  height:auto!important;
}
@media(max-width:1180px){
  body.library-mode #libraryGrid.v249-row-masonry{
    width:min(100%,calc(100vw - 36px))!important;
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    gap:12px!important;
  }
}
@media(max-width:760px), (orientation:portrait) and (max-width:920px){
  body.library-mode #libraryGrid.v249-row-masonry{
    width:calc(100vw - 20px)!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important;
    margin-top:18px!important;
  }
}

/* v250: plain row flow like a document - left to right, then next row */
body.library-mode #libraryGrid.v250-row-flow,
body[data-library-mode="latest"] #libraryGrid.v250-row-flow,
body[data-library-mode="favorites"] #libraryGrid.v250-row-flow{
  display:grid!important;
  width:min(1540px,calc(100vw - 56px))!important;
  margin:34px auto 76px!important;
  columns:auto!important;
  column-gap:normal!important;
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
  grid-auto-rows:auto!important;
  grid-auto-flow:row!important;
  gap:16px!important;
  align-items:start!important;
  overflow:visible!important;
}
body.library-mode #libraryGrid.v250-row-flow .all-work-card,
body[data-library-mode="latest"] #libraryGrid.v250-row-flow .all-work-card,
body[data-library-mode="favorites"] #libraryGrid.v250-row-flow .all-work-card{
  display:block!important;
  width:100%!important;
  margin:0!important;
  grid-row:auto!important;
  grid-row-end:auto!important;
  break-inside:auto!important;
  page-break-inside:auto!important;
  position:static!important;
  transform:none!important;
}
@media(max-width:1180px){
  body.library-mode #libraryGrid.v250-row-flow{
    width:min(100%,calc(100vw - 36px))!important;
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    gap:12px!important;
  }
}
@media(max-width:760px), (orientation:portrait) and (max-width:920px){
  body.library-mode #libraryGrid.v250-row-flow{
    width:calc(100vw - 20px)!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important;
    margin-top:18px!important;
  }
}

/* v251: Pinterest-stable masonry. Positions are data-driven, not image-load-driven. */
#gallery.v251-pinterest-stable,
#libraryGrid.v251-pinterest-stable,
#allWorksGrid.v251-pinterest-stable,
.search-results-grid.v251-pinterest-stable,
.category-page-grid.v251-pinterest-stable,
.all-works-grid.v251-pinterest-stable{
  position:relative!important;
  display:block!important;
  width:min(1540px,calc(100vw - 56px))!important;
  max-width:none!important;
  margin:34px auto 76px!important;
  columns:auto!important;
  column-count:auto!important;
  column-gap:normal!important;
  grid-template-columns:none!important;
  grid-auto-rows:auto!important;
  gap:0!important;
  overflow:visible!important;
  contain:layout style!important;
}
#gallery.v251-pinterest-stable[hidden],
#libraryGrid.v251-pinterest-stable[hidden]{
  display:none!important;
}
.v251-pinterest-stable .all-work-card{
  position:absolute!important;
  display:block!important;
  width:var(--v251-card-w)!important;
  height:var(--v251-card-h)!important;
  left:0!important;
  top:0!important;
  margin:0!important;
  break-inside:auto!important;
  page-break-inside:auto!important;
  grid-row:auto!important;
  grid-row-end:auto!important;
  transform:translate3d(var(--v251-x),var(--v251-y),0)!important;
  -webkit-transform:translate3d(var(--v251-x),var(--v251-y),0)!important;
  will-change:auto!important;
  overflow:hidden!important;
  background:#fff!important;
}
.v251-pinterest-stable .all-work-card::before{
  content:""!important;
  position:absolute!important;
  inset:0 0 auto 0!important;
  height:var(--v251-img-h)!important;
  border-radius:inherit!important;
  background:var(--v251-bg,#dfe7e2)!important;
  z-index:0!important;
}
.v251-pinterest-stable .all-work-card img{
  position:relative!important;
  z-index:1!important;
  display:block!important;
  width:100%!important;
  height:var(--v251-img-h)!important;
  min-height:var(--v251-img-h)!important;
  object-fit:cover!important;
  background:var(--v251-bg,#dfe7e2)!important;
  aspect-ratio:auto!important;
  opacity:.96;
  transition:opacity 360ms ease, filter 360ms ease!important;
}
.v251-pinterest-stable .all-work-card.is-loading img{
  opacity:0!important;
  filter:saturate(.92) blur(6px);
}
.v251-pinterest-stable .all-work-card.is-loaded img{
  opacity:1!important;
  filter:none;
}
.v251-pinterest-stable .all-work-card .work-card-meta{
  padding:5px 14px 0!important;
  line-height:1.2!important;
}
.v251-pinterest-stable .all-work-card .work-card-counts{
  padding:1px 14px 6px!important;
  margin:0!important;
  line-height:1.2!important;
}
.v251-pinterest-stable .all-work-card > span{
  padding:5px 14px 0!important;
  margin:0!important;
  line-height:1.2!important;
}
.v251-pinterest-stable .masonry-sentinel,
.v251-pinterest-stable .masonry-skeleton{
  position:absolute!important;
  left:0!important;
  bottom:0!important;
  width:1px!important;
  height:1px!important;
  opacity:0!important;
  pointer-events:none!important;
}
@media(max-width:1180px){
  #gallery.v251-pinterest-stable,
  #libraryGrid.v251-pinterest-stable,
  #allWorksGrid.v251-pinterest-stable,
  .search-results-grid.v251-pinterest-stable,
  .category-page-grid.v251-pinterest-stable,
  .all-works-grid.v251-pinterest-stable{
    width:min(100%,calc(100vw - 36px))!important;
  }
}
@media(max-width:760px), (orientation:portrait) and (max-width:920px){
  #gallery.v251-pinterest-stable,
  #libraryGrid.v251-pinterest-stable,
  #allWorksGrid.v251-pinterest-stable,
  .search-results-grid.v251-pinterest-stable,
  .category-page-grid.v251-pinterest-stable,
  .all-works-grid.v251-pinterest-stable{
    width:calc(100vw - 20px)!important;
    margin-top:20px!important;
  }
}

/* v258: docked entry for Cliffs Blocks */
.library-mode #libraryGrid.v251-pinterest-stable,
body[data-library-mode="latest"] #libraryGrid.v251-pinterest-stable,
body[data-library-mode="favorites"] #libraryGrid.v251-pinterest-stable,
#gallery.v251-pinterest-stable,
#allWorksGrid.v251-pinterest-stable,
.search-results-grid.v251-pinterest-stable,
.category-page-grid.v251-pinterest-stable,
.all-works-grid.v251-pinterest-stable{
  position:relative!important;
  display:block!important;
  columns:auto!important;
  column-count:auto!important;
  column-gap:normal!important;
  grid-template-columns:none!important;
  gap:0!important;
  overflow:visible!important;
}
.library-mode #libraryGrid.v251-pinterest-stable .all-work-card,
body[data-library-mode="latest"] #libraryGrid.v251-pinterest-stable .all-work-card,
body[data-library-mode="favorites"] #libraryGrid.v251-pinterest-stable .all-work-card,
#gallery.v251-pinterest-stable .all-work-card,
#allWorksGrid.v251-pinterest-stable .all-work-card,
.search-results-grid.v251-pinterest-stable .all-work-card,
.category-page-grid.v251-pinterest-stable .all-work-card,
.all-works-grid.v251-pinterest-stable .all-work-card{
  position:absolute!important;
  display:block!important;
  width:var(--v251-card-w)!important;
  height:var(--v251-card-h)!important;
  left:0!important;
  top:0!important;
  margin:0!important;
  transform:translate3d(var(--v251-x),var(--v251-y),0)!important;
  -webkit-transform:translate3d(var(--v251-x),var(--v251-y),0)!important;
  break-inside:auto!important;
  vertical-align:baseline!important;
}
.v251-pinterest-stable .pin-hover-save{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
}
.v251-pinterest-stable .pin-hover-save .card-action-icon{
  display:block!important;
  margin:auto!important;
}

/* v261: final left-to-right seeded frozen masonry override. */
.library-page,
.search-page,
.category-page{
  overflow:visible!important;
}
.library-page #libraryGrid.v251-pinterest-stable,
#gallery.v251-pinterest-stable,
#allWorksGrid.v251-pinterest-stable,
.search-results-grid.v251-pinterest-stable,
.category-page-grid.v251-pinterest-stable{
  min-height:var(--v251-container-h, auto)!important;
}

/* v262: keep document height synced with absolute-position masonry. */
.blocks-dock{
  position:fixed;
  right:0;
  top:50%;
  z-index:90;
  width:52px;
  height:58px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#07140f;
  background:rgba(255,255,255,.88);
  border:1px solid rgba(8,22,16,.12);
  border-right:0;
  border-radius:18px 0 0 18px;
  box-shadow:0 14px 36px rgba(12,28,20,.16);
  transform:translateY(-50%);
  -webkit-backdrop-filter:blur(16px) saturate(1.2);
  backdrop-filter:blur(16px) saturate(1.2);
  transition:width .18s ease, background-color .18s ease, transform .18s ease;
}
.blocks-dock:hover,
.blocks-dock:focus-visible{
  width:64px;
  background:#fff;
  transform:translateY(-50%) translateX(-2px);
}
.blocks-dock svg{
  width:25px;
  height:25px;
  display:block;
  fill:none;
  stroke:currentColor;
  stroke-width:2.4;
}
@media(max-width:760px){
  .blocks-dock{
    top:auto;
    right:0;
    bottom:92px;
    width:48px;
    height:52px;
    border-radius:16px 0 0 16px;
  }
}

/* v264: Pinterest-like category pins and detail page. */
body.category-list-mode .category-zone.standalone-category-zone,
body.category-list-mode .category-zone{
  width:min(1560px,calc(100vw - 52px))!important;
  margin:112px auto 84px!important;
  padding:0!important;
  overflow:visible!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}
body.category-list-mode .category-zone .section-heading{
  display:grid!important;
  grid-template-columns:minmax(260px,1fr) auto!important;
  gap:18px!important;
  align-items:end!important;
  margin:0 0 18px!important;
}
body.category-list-mode .category-zone .section-heading h2{
  font-size:clamp(54px,7vw,110px)!important;
  line-height:.88!important;
  letter-spacing:0!important;
}
body.category-list-mode .category-zone .section-note{
  max-width:520px!important;
  color:#607168!important;
}
.category-pinterest-toolbar{
  width:max-content!important;
  max-width:100%!important;
  margin:0 0 22px auto!important;
  padding:7px!important;
  border:1px solid rgba(9,60,40,.1)!important;
  border-radius:20px!important;
  background:rgba(255,255,255,.82)!important;
  box-shadow:0 18px 50px rgba(20,65,44,.1)!important;
  -webkit-backdrop-filter:blur(18px) saturate(1.18)!important;
  backdrop-filter:blur(18px) saturate(1.18)!important;
}
.category-pinterest-toolbar .category-segment{
  background:rgba(232,243,237,.8)!important;
}
.category-pinterest-toolbar .category-segment button,
.category-pinterest-toolbar .category-sort select{
  border-radius:999px!important;
}
.category-pin-board{
  display:grid!important;
  grid-template-columns:repeat(auto-fill,minmax(220px,1fr))!important;
  gap:18px!important;
  align-items:start!important;
}
.category-pin-card{
  position:relative!important;
  display:block!important;
  min-height:0!important;
  padding:0!important;
  border:0!important;
  border-radius:22px!important;
  overflow:hidden!important;
  text-align:left!important;
  cursor:pointer!important;
  background:var(--cat-bg,#dfe7e2)!important;
  box-shadow:0 16px 38px rgba(20,42,32,.12)!important;
  transform:translateZ(0)!important;
  transition:transform .2s ease, box-shadow .2s ease, filter .2s ease!important;
}
.category-pin-card:hover,
.category-pin-card:focus-visible{
  transform:translateY(-5px)!important;
  box-shadow:0 24px 58px rgba(16,54,38,.2)!important;
}
.category-pin-card figure{
  margin:0!important;
  aspect-ratio:var(--cat-ratio, .9)!important;
  min-height:220px!important;
  background:var(--cat-bg,#dfe7e2)!important;
}
.category-pin-card figure img,
.category-pin-empty{
  display:block!important;
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
}
.category-pin-empty{
  display:grid!important;
  place-items:center!important;
  color:rgba(12,31,23,.46)!important;
  font-size:28px!important;
  font-weight:950!important;
}
.category-pin-card::after{
  content:""!important;
  position:absolute!important;
  inset:42% 0 0!important;
  background:linear-gradient(180deg,transparent,rgba(0,0,0,.72))!important;
  pointer-events:none!important;
}
.cat-pin-kind{
  position:absolute!important;
  top:12px!important;
  left:12px!important;
  z-index:3!important;
  min-height:28px!important;
  padding:0 11px!important;
  display:inline-flex!important;
  align-items:center!important;
  border-radius:999px!important;
  color:#0a1a13!important;
  background:rgba(255,255,255,.86)!important;
  font-weight:950!important;
  box-shadow:0 8px 24px rgba(0,0,0,.12)!important;
}
.cat-pin-overlay{
  position:absolute!important;
  left:14px!important;
  right:14px!important;
  bottom:12px!important;
  z-index:2!important;
  color:#fff!important;
}
.cat-pin-overlay strong{
  display:block!important;
  font-size:clamp(20px,2.2vw,34px)!important;
  line-height:1.02!important;
  font-weight:950!important;
  text-shadow:0 2px 18px rgba(0,0,0,.35)!important;
}
.cat-pin-overlay em{
  display:block!important;
  margin-top:6px!important;
  font-style:normal!important;
  color:rgba(255,255,255,.82)!important;
  font-weight:800!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
.cat-pin-overlay span{
  display:block!important;
  margin-top:8px!important;
  color:rgba(255,255,255,.88)!important;
  font-size:13px!important;
  font-weight:900!important;
}
.cat-pin-tags{
  display:flex!important;
  gap:6px!important;
  flex-wrap:wrap!important;
  margin-top:10px!important;
}
.cat-pin-tags i{
  font-style:normal!important;
  border-radius:999px!important;
  padding:4px 8px!important;
  color:#06452e!important;
  background:rgba(221,246,234,.92)!important;
  font-size:12px!important;
  font-weight:950!important;
}
.cat-pin-strip{
  position:absolute!important;
  top:12px!important;
  right:12px!important;
  z-index:3!important;
  display:flex!important;
  gap:4px!important;
}
.cat-pin-strip img{
  width:34px!important;
  height:34px!important;
  border:2px solid rgba(255,255,255,.9)!important;
  border-radius:10px!important;
  object-fit:cover!important;
  box-shadow:0 8px 20px rgba(0,0,0,.16)!important;
}
.category-pinterest-page{
  width:min(1560px,calc(100vw - 52px))!important;
  margin:112px auto 84px!important;
  padding:0!important;
  background:transparent!important;
}
.category-pin-detail-head{
  position:relative!important;
  display:grid!important;
  grid-template-columns:minmax(300px,560px) minmax(420px,1fr)!important;
  gap:22px!important;
  align-items:stretch!important;
  margin-bottom:24px!important;
}
.category-pin-detail-copy,
.category-pin-hero{
  border-radius:28px!important;
  overflow:hidden!important;
  background:rgba(255,255,255,.86)!important;
  box-shadow:0 22px 70px rgba(20,65,44,.12)!important;
}
.category-pin-detail-copy{
  padding:clamp(22px,3.6vw,44px)!important;
}
.category-pin-detail-copy h1{
  margin:8px 0 10px!important;
  font-size:clamp(46px,6vw,96px)!important;
  line-height:.9!important;
}
.category-pin-detail-copy p{
  color:#607168!important;
  line-height:1.65!important;
}
.category-pin-stats{
  display:flex!important;
  gap:8px!important;
  flex-wrap:wrap!important;
  margin-top:14px!important;
}
.category-pin-stats span{
  border-radius:999px!important;
  padding:7px 11px!important;
  color:#057348!important;
  background:rgba(219,244,232,.86)!important;
  font-weight:950!important;
}
.category-pin-hero{
  min-height:340px!important;
  background:var(--cat-bg,#dfe7e2)!important;
}
.category-pin-hero img,
.category-pin-hero span{
  width:100%!important;
  height:100%!important;
  display:block!important;
  object-fit:cover!important;
}
.category-pin-hero span{
  display:grid!important;
  place-items:center!important;
  color:rgba(12,31,23,.42)!important;
  font-size:52px!important;
  font-weight:950!important;
}
.category-pin-detail-head .category-page-back{
  position:absolute!important;
  top:-52px!important;
  left:0!important;
}
.category-pin-stream-head{
  margin:0 0 18px!important;
}
@media(max-width:980px){
  body.category-list-mode .category-zone.standalone-category-zone,
  body.category-list-mode .category-zone,
  .category-pinterest-page{
    width:calc(100vw - 24px)!important;
    margin-top:94px!important;
  }
  body.category-list-mode .category-zone .section-heading,
  .category-pin-detail-head{
    grid-template-columns:1fr!important;
  }
  .category-pinterest-toolbar{
    width:100%!important;
    margin-left:0!important;
    overflow:auto!important;
  }
  .category-pin-board{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:12px!important;
  }
  .category-pin-card figure{
    min-height:180px!important;
  }
  .cat-pin-overlay strong{
    font-size:20px!important;
  }
  .cat-pin-overlay em,
  .cat-pin-strip{
    display:none!important;
  }
}

/* v266: clean Pinterest-like category boards. */
body.category-list-mode .category-zone.standalone-category-zone,
body.category-list-mode .category-zone{
  width:min(1420px,calc(100vw - 48px))!important;
  margin:112px auto 86px!important;
  padding:0!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}
body.category-list-mode .category-zone .section-heading{
  display:grid!important;
  grid-template-columns:minmax(260px,1fr) minmax(260px,520px)!important;
  align-items:end!important;
  gap:24px!important;
  margin:0 0 24px!important;
}
body.category-list-mode .category-zone .section-heading h2{
  max-width:760px!important;
  margin:0!important;
  font-size:clamp(50px,7vw,104px)!important;
  line-height:.9!important;
  letter-spacing:0!important;
}
body.category-list-mode .category-zone .section-note{
  max-width:520px!important;
  color:#647269!important;
  font-size:16px!important;
  line-height:1.7!important;
}
.category-board-grid-v266{
  display:grid!important;
  grid-template-columns:repeat(auto-fill,minmax(260px,1fr))!important;
  gap:22px!important;
  align-items:start!important;
}
.category-board-card{
  display:block!important;
  width:100%!important;
  padding:0!important;
  border:0!important;
  border-radius:24px!important;
  overflow:hidden!important;
  text-align:left!important;
  cursor:pointer!important;
  background:rgba(255,255,255,.86)!important;
  box-shadow:0 18px 52px rgba(22,54,39,.11)!important;
  transform:translateZ(0)!important;
  transition:transform .18s ease, box-shadow .18s ease!important;
}
.category-board-card:hover,
.category-board-card:focus-visible{
  transform:translateY(-4px)!important;
  box-shadow:0 26px 70px rgba(18,58,40,.18)!important;
}
.category-board-cover{
  display:grid!important;
  grid-template-columns:2fr 1fr 1fr!important;
  grid-template-rows:1fr 1fr!important;
  gap:3px!important;
  height:238px!important;
  background:#e9f0ec!important;
}
.category-board-img{
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  display:block!important;
}
.category-board-img.img-0{grid-row:1/3!important;grid-column:1/2!important}
.category-board-img.img-1{grid-column:2/3!important;grid-row:1/2!important}
.category-board-img.img-2{grid-column:3/4!important;grid-row:1/2!important}
.category-board-img.img-3{grid-column:2/3!important;grid-row:2/3!important}
.category-board-img.img-4{grid-column:3/4!important;grid-row:2/3!important}
.category-board-copy{
  padding:16px 16px 18px!important;
}
.category-board-title{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
}
.category-board-title strong{
  min-width:0!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  color:#101812!important;
  font-size:22px!important;
  line-height:1.15!important;
  font-weight:950!important;
}
.category-board-title span{
  flex:0 0 auto!important;
  border-radius:999px!important;
  padding:5px 9px!important;
  color:#04764a!important;
  background:rgba(220,244,232,.92)!important;
  font-size:13px!important;
  font-weight:950!important;
}
.category-board-copy p{
  min-height:42px!important;
  margin:8px 0 12px!important;
  color:#68756d!important;
  line-height:1.45!important;
  display:-webkit-box!important;
  -webkit-line-clamp:2!important;
  -webkit-box-orient:vertical!important;
  overflow:hidden!important;
}
.category-board-meta{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:7px!important;
}
.category-board-meta span,
.category-board-meta i{
  font-style:normal!important;
  border-radius:999px!important;
  padding:5px 8px!important;
  color:#53645a!important;
  background:rgba(240,246,243,.95)!important;
  font-size:12px!important;
  font-weight:900!important;
}
.category-board-page-v266{
  width:min(1420px,calc(100vw - 48px))!important;
  margin:112px auto 86px!important;
  padding:0!important;
  background:transparent!important;
}
.category-board-back-v266{
  margin:0 0 18px!important;
  border:0!important;
  border-radius:999px!important;
  min-height:40px!important;
  padding:0 16px!important;
  color:#101812!important;
  background:rgba(255,255,255,.9)!important;
  box-shadow:0 12px 34px rgba(20,60,42,.12)!important;
  font-weight:950!important;
}
.category-board-hero-v266{
  display:grid!important;
  grid-template-columns:minmax(320px,.9fr) minmax(360px,1.1fr)!important;
  gap:22px!important;
  align-items:stretch!important;
  margin-bottom:26px!important;
}
.category-board-hero-cover,
.category-board-hero-copy{
  border-radius:28px!important;
  overflow:hidden!important;
  background:rgba(255,255,255,.88)!important;
  box-shadow:0 20px 70px rgba(21,57,40,.12)!important;
}
.category-board-hero-cover{
  display:grid!important;
  grid-template-columns:1.25fr 1fr!important;
  grid-template-rows:1fr 1fr!important;
  gap:4px!important;
  min-height:360px!important;
}
.category-board-hero-cover img:first-child{grid-row:1/3!important}
.category-board-hero-cover img{
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
}
.category-board-hero-copy{
  padding:clamp(26px,4vw,56px)!important;
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
}
.category-board-hero-copy h1{
  margin:8px 0 12px!important;
  color:#0b120e!important;
  font-size:clamp(48px,6vw,94px)!important;
  line-height:.9!important;
  letter-spacing:0!important;
}
.category-board-hero-copy p{
  max-width:680px!important;
  color:#617168!important;
  line-height:1.7!important;
}
.category-board-hero-stats,
.category-board-stream-head{
  display:flex!important;
  flex-wrap:wrap!important;
  align-items:center!important;
  gap:8px!important;
}
.category-board-hero-stats span{
  border-radius:999px!important;
  padding:7px 11px!important;
  color:#057348!important;
  background:rgba(219,244,232,.9)!important;
  font-weight:950!important;
}
.category-board-stream-head{
  justify-content:space-between!important;
  margin:0 0 16px!important;
  color:#63736a!important;
}
.category-board-stream-head strong{
  color:#101812!important;
  font-size:24px!important;
  font-weight:950!important;
}
@media(max-width:920px){
  body.category-list-mode .category-zone.standalone-category-zone,
  body.category-list-mode .category-zone,
  .category-board-page-v266{
    width:calc(100vw - 24px)!important;
    margin-top:94px!important;
  }
  body.category-list-mode .category-zone .section-heading,
  .category-board-hero-v266{
    grid-template-columns:1fr!important;
  }
  .category-board-grid-v266{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:12px!important;
  }
  .category-board-cover{height:190px!important}
  .category-board-title strong{font-size:18px!important}
  .category-board-copy{padding:12px!important}
  .category-board-copy p{font-size:13px!important;min-height:36px!important}
  .category-board-hero-cover{min-height:260px!important}
}
@media(max-width:520px){
  .category-board-grid-v266{grid-template-columns:1fr!important}
  .category-board-cover{height:220px!important}
}

/* v267: category board cards use a horizontal 3:2 cover ratio. */
.category-board-grid-v266{
  grid-template-columns:repeat(auto-fill,minmax(360px,1fr))!important;
  gap:22px!important;
}
.category-board-card{
  border-radius:22px!important;
}
.category-board-cover{
  height:auto!important;
  aspect-ratio:3 / 2!important;
}
.category-board-copy{
  padding:13px 15px 15px!important;
}
.category-board-copy p{
  min-height:0!important;
  margin:6px 0 10px!important;
  -webkit-line-clamp:2!important;
}
.category-board-title strong{
  font-size:20px!important;
}
@media(max-width:920px){
  .category-board-grid-v266{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:12px!important;
  }
  .category-board-cover{
    height:auto!important;
    aspect-ratio:3 / 2!important;
  }
}
@media(max-width:520px){
  .category-board-grid-v266{
    grid-template-columns:1fr!important;
  }
  .category-board-cover{
    height:auto!important;
    aspect-ratio:3 / 2!important;
  }
}

/* v268: refined folder-style category module. */
body.category-list-mode .category-zone.standalone-category-zone,
body.category-list-mode .category-zone{
  width:min(1500px,calc(100vw - 48px))!important;
  margin:112px auto 88px!important;
}
body.category-list-mode .category-zone .section-heading{
  grid-template-columns:minmax(320px,1fr) auto!important;
  margin-bottom:14px!important;
}
body.category-list-mode .category-zone .section-heading h2{
  font-size:clamp(54px,7vw,112px)!important;
  line-height:.88!important;
}
.category-folder-toolbar-v268{
  display:flex!important;
  justify-content:space-between!important;
  align-items:center!important;
  gap:14px!important;
  margin:0 0 26px!important;
}
.category-folder-tabs{
  display:flex!important;
  gap:6px!important;
  padding:6px!important;
  border:1px solid rgba(9,60,40,.1)!important;
  border-radius:999px!important;
  background:rgba(255,255,255,.72)!important;
  box-shadow:0 18px 46px rgba(20,65,44,.09)!important;
  -webkit-backdrop-filter:blur(18px) saturate(1.2)!important;
  backdrop-filter:blur(18px) saturate(1.2)!important;
}
.category-folder-tabs button,
.category-folder-toolbar-v268 select{
  min-height:34px!important;
  border:0!important;
  border-radius:999px!important;
  padding:0 14px!important;
  color:#16251d!important;
  background:transparent!important;
  font-weight:950!important;
}
.category-folder-tabs button.active{
  color:#fff!important;
  background:#078451!important;
  box-shadow:0 10px 24px rgba(7,132,81,.22)!important;
}
.category-folder-toolbar-v268 select{
  border:1px solid rgba(9,60,40,.1)!important;
  background:rgba(255,255,255,.86)!important;
}
.category-folder-grid-v268{
  display:grid!important;
  grid-template-columns:repeat(auto-fill,minmax(250px,1fr))!important;
  gap:32px 26px!important;
  align-items:start!important;
}
.category-folder-card-v268{
  position:relative!important;
  display:block!important;
  width:100%!important;
  aspect-ratio:3 / 2!important;
  padding:0!important;
  border:0!important;
  border-radius:24px!important;
  cursor:pointer!important;
  isolation:isolate!important;
  background:transparent!important;
  text-align:left!important;
  transform:translateZ(0)!important;
}
.category-folder-card-v268 .folder-stack{
  position:absolute!important;
  left:18px!important;
  right:18px!important;
  top:10px!important;
  bottom:8px!important;
  border-radius:24px!important;
  background:rgba(255,255,255,.72)!important;
  box-shadow:0 14px 42px rgba(20,55,38,.1)!important;
  transform-origin:center bottom!important;
  transition:transform .28s ease, opacity .28s ease!important;
  -webkit-backdrop-filter:blur(16px) saturate(1.12)!important;
  backdrop-filter:blur(16px) saturate(1.12)!important;
}
.category-folder-card-v268 .folder-stack.s2{transform:translateY(-14px) scale(.88);opacity:.55!important}
.category-folder-card-v268 .folder-stack.s1{transform:translateY(-7px) scale(.94);opacity:.82!important}
.folder-tab{
  position:absolute!important;
  z-index:4!important;
  top:-8px!important;
  left:18px!important;
  min-width:72px!important;
  height:30px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  border-radius:16px 16px 8px 8px!important;
  color:#08764b!important;
  background:rgba(222,247,235,.96)!important;
  font-size:13px!important;
  font-weight:950!important;
  box-shadow:0 10px 24px rgba(17,72,48,.1)!important;
}
.folder-cover-v268{
  position:absolute!important;
  inset:18px 0 0!important;
  z-index:2!important;
  overflow:hidden!important;
  border-radius:24px!important;
  background:#edf4ef!important;
  box-shadow:0 22px 58px rgba(20,55,38,.16)!important;
  transition:transform .28s ease, box-shadow .28s ease, filter .28s ease!important;
}
.folder-cover-v268::after{
  content:""!important;
  position:absolute!important;
  inset:42% 0 0!important;
  background:linear-gradient(180deg,rgba(5,12,8,0),rgba(5,12,8,.62))!important;
  pointer-events:none!important;
}
.folder-cover-v268>img:first-child{
  width:72%!important;
  height:100%!important;
  object-fit:cover!important;
  display:block!important;
  filter:saturate(.98) contrast(.98)!important;
}
.folder-peek{
  position:absolute!important;
  top:0!important;
  width:22%!important;
  height:52%!important;
  object-fit:cover!important;
  border-left:3px solid rgba(255,255,255,.75)!important;
  transition:transform .28s ease, opacity .28s ease!important;
}
.folder-peek.p0{right:0!important;top:0!important}
.folder-peek.p1{right:0!important;top:50%!important}
.folder-peek.p2{right:21%!important;top:0!important;opacity:.9!important}
.folder-peek.p3{right:21%!important;top:50%!important;opacity:.9!important}
.folder-copy-v268{
  position:absolute!important;
  left:16px!important;
  right:16px!important;
  bottom:14px!important;
  z-index:5!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  color:#fff!important;
}
.folder-copy-v268 strong{
  min-width:0!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  font-size:22px!important;
  line-height:1.05!important;
  font-weight:950!important;
  text-shadow:0 3px 16px rgba(0,0,0,.38)!important;
}
.folder-copy-v268 span{
  flex:0 0 auto!important;
  border-radius:999px!important;
  padding:6px 10px!important;
  color:#07452e!important;
  background:rgba(255,255,255,.9)!important;
  font-weight:950!important;
}
.category-folder-card-v268:hover .folder-stack.s2,
.category-folder-card-v268:focus-visible .folder-stack.s2{transform:translate(-10px,-20px) rotate(-3deg) scale(.9)!important;opacity:.68!important}
.category-folder-card-v268:hover .folder-stack.s1,
.category-folder-card-v268:focus-visible .folder-stack.s1{transform:translate(8px,-12px) rotate(2deg) scale(.96)!important;opacity:.9!important}
.category-folder-card-v268:hover .folder-cover-v268,
.category-folder-card-v268:focus-visible .folder-cover-v268{transform:translateY(-6px)!important;box-shadow:0 30px 80px rgba(17,58,39,.24)!important;filter:saturate(1.04)!important}
.category-folder-card-v268:hover .folder-peek,
.category-folder-card-v268:focus-visible .folder-peek{transform:translateX(-8px)!important}
@media(max-width:920px){
  .category-folder-toolbar-v268{align-items:flex-start!important;flex-direction:column!important}
  .category-folder-tabs{max-width:100%!important;overflow:auto!important}
  .category-folder-grid-v268{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:22px 14px!important}
  .folder-copy-v268 strong{font-size:18px!important}
}
@media(max-width:560px){
  .category-folder-grid-v268{grid-template-columns:1fr!important}
  .category-folder-card-v268{aspect-ratio:3 / 2!important}
}

/* v280: portrait bottom nav and simplified category folders. */
.category-clean-v280 .section-heading{
  grid-template-columns:minmax(0,1fr)!important;
  align-items:end!important;
  margin-bottom:14px!important;
}
.category-clean-v280 .section-heading .create-category-button{display:none!important}
.category-folder-toolbar-v280{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:16px!important;
  margin:0 0 26px!important;
}
.category-folder-toolbar-v280 .create-category-button-v280{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:38px!important;
  padding:0 18px!important;
  border-radius:999px!important;
  border:0!important;
  color:#fff!important;
  background:#078451!important;
  box-shadow:0 16px 38px rgba(7,132,81,.22)!important;
  font-weight:950!important;
}
.category-toolbar-controls-v280{
  display:flex!important;
  align-items:center!important;
  gap:12px!important;
  margin-left:auto!important;
}
.category-toolbar-controls-v280 select{
  min-height:38px!important;
  border:1px solid rgba(9,60,40,.1)!important;
  border-radius:999px!important;
  padding:0 36px 0 16px!important;
  background:rgba(255,255,255,.88)!important;
  color:#12241c!important;
  font-weight:900!important;
  box-shadow:0 12px 34px rgba(20,65,44,.08)!important;
}
.category-folder-grid-v280{
  display:grid!important;
  grid-template-columns:repeat(auto-fill,minmax(260px,1fr))!important;
  gap:28px 24px!important;
  align-items:start!important;
}
.category-folder-card-v280{
  position:relative!important;
  display:block!important;
  width:100%!important;
  aspect-ratio:3 / 2!important;
  padding:0!important;
  border:0!important;
  border-radius:22px!important;
  overflow:hidden!important;
  cursor:pointer!important;
  background:#eaf1ed!important;
  box-shadow:0 18px 54px rgba(22,55,39,.12)!important;
  text-align:left!important;
  transform:translateZ(0)!important;
  transition:transform .24s ease, box-shadow .24s ease, filter .24s ease!important;
}
.category-folder-card-v280::before{
  content:""!important;
  position:absolute!important;
  left:0!important;
  right:0!important;
  top:0!important;
  height:22px!important;
  z-index:3!important;
  background:rgba(255,255,255,.62)!important;
  border-bottom:1px solid rgba(255,255,255,.38)!important;
  -webkit-backdrop-filter:blur(12px) saturate(1.08)!important;
  backdrop-filter:blur(12px) saturate(1.08)!important;
}
.category-folder-card-v280::after{
  content:""!important;
  position:absolute!important;
  inset:38% 0 0!important;
  z-index:2!important;
  background:linear-gradient(180deg,rgba(7,16,11,0),rgba(7,16,11,.66))!important;
}
.folder-cover-v280,
.folder-cover-v280 img{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
}
.folder-cover-v280 img{
  object-fit:cover!important;
  filter:saturate(.98) contrast(.96)!important;
  transition:transform .36s ease, filter .36s ease!important;
}
.folder-kind-v280{
  position:absolute!important;
  z-index:5!important;
  top:10px!important;
  left:12px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-width:48px!important;
  height:24px!important;
  padding:0 10px!important;
  border-radius:999px!important;
  color:#067148!important;
  background:rgba(222,247,235,.72)!important;
  -webkit-backdrop-filter:blur(14px) saturate(1.2)!important;
  backdrop-filter:blur(14px) saturate(1.2)!important;
  font-size:12px!important;
  font-weight:950!important;
}
.folder-copy-v280{
  position:absolute!important;
  z-index:5!important;
  left:16px!important;
  right:16px!important;
  bottom:14px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  color:#fff!important;
}
.folder-copy-v280 strong{
  min-width:0!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  font-size:21px!important;
  line-height:1.05!important;
  font-weight:950!important;
  text-shadow:0 4px 18px rgba(0,0,0,.42)!important;
}
.folder-copy-v280 span{
  flex:0 0 auto!important;
  padding:6px 10px!important;
  border-radius:999px!important;
  color:#07452e!important;
  background:rgba(255,255,255,.9)!important;
  font-weight:950!important;
}
.category-folder-card-v280:hover,
.category-folder-card-v280:focus-visible{
  transform:translateY(-5px)!important;
  box-shadow:0 26px 70px rgba(22,55,39,.18)!important;
  outline:none!important;
}
.category-folder-card-v280:hover .folder-cover-v280 img,
.category-folder-card-v280:focus-visible .folder-cover-v280 img{
  transform:scale(1.045)!important;
  filter:saturate(1.04) contrast(.98)!important;
}
@media(max-width:920px){
  body{padding-bottom:92px!important}
  .site-header{padding-bottom:8px!important}
  .main-nav{
    position:fixed!important;
    left:12px!important;
    right:12px!important;
    bottom:12px!important;
    top:auto!important;
    z-index:999!important;
    display:grid!important;
    grid-template-columns:repeat(4,1fr)!important;
    gap:6px!important;
    padding:7px!important;
    border:1px solid rgba(9,60,40,.12)!important;
    border-radius:28px!important;
    background:rgba(255,255,255,.82)!important;
    box-shadow:0 18px 48px rgba(21,55,40,.2)!important;
    -webkit-backdrop-filter:blur(22px) saturate(1.18)!important;
    backdrop-filter:blur(22px) saturate(1.18)!important;
    overflow:visible!important;
  }
  .main-nav .nav-link{
    min-width:0!important;
    width:100%!important;
    min-height:44px!important;
    padding:0 8px!important;
    border-radius:22px!important;
    font-size:15px!important;
    justify-content:center!important;
    white-space:nowrap!important;
  }
  .main-nav .nav-link.active,
  .main-nav .nav-link.v230-nav-active{
    color:#fff!important;
    background:#078451!important;
    box-shadow:0 10px 22px rgba(7,132,81,.24)!important;
  }
  .topbar-actions{margin-left:auto!important}
  .category-folder-toolbar-v280{align-items:flex-start!important;flex-direction:column!important;gap:12px!important}
  .category-toolbar-controls-v280{width:100%!important;justify-content:space-between!important;margin-left:0!important;gap:10px!important}
  .category-folder-tabs{max-width:100%!important;overflow:auto!important}
  .category-folder-grid-v280{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:18px 12px!important}
  .folder-copy-v280 strong{font-size:17px!important}
}
@media(max-width:560px){
  .category-folder-grid-v280{grid-template-columns:1fr!important}
  .category-folder-card-v280{border-radius:20px!important}
}

/* v281: align create category directly left of sort selector. */
.category-sort-group-v280{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:10px!important;
  margin-left:auto!important;
}
.category-folder-toolbar-v280 .create-category-button-v280{
  flex:0 0 auto!important;
}
@media(max-width:920px){
  .category-toolbar-controls-v280{align-items:flex-start!important;flex-direction:column!important}
  .category-sort-group-v280{width:100%!important;justify-content:flex-start!important;margin-left:0!important}
}

/* v282: clean category cards, translucent tags, and CLIFFS URL modal. */
.category-folder-card-v280::before{
  display:none!important;
  content:none!important;
}
.category-folder-card-v280{
  border:0!important;
  outline:0!important;
  box-shadow:0 18px 54px rgba(22,55,39,.12)!important;
}
.category-folder-card-v280 .folder-kind-v280{
  color:rgba(4,112,70,.88)!important;
  background:rgba(226,250,238,.46)!important;
  border:1px solid rgba(255,255,255,.34)!important;
  box-shadow:none!important;
  -webkit-backdrop-filter:blur(16px) saturate(1.25)!important;
  backdrop-filter:blur(16px) saturate(1.25)!important;
}
.cliffs-url-panel{
  position:relative!important;
  max-width:480px!important;
}
.cliffs-url-panel h2{
  font-size:clamp(34px,5vw,58px)!important;
  line-height:.98!important;
  margin-bottom:22px!important;
}
.cliffs-url-close{
  position:absolute!important;
  right:18px!important;
  top:18px!important;
  width:42px!important;
  height:42px!important;
  border:0!important;
  border-radius:50%!important;
  background:rgba(255,255,255,.86)!important;
  font-size:26px!important;
  font-weight:900!important;
  cursor:pointer!important;
}
.cliffs-url-hint{
  margin:14px 0 0!important;
  color:#64726b!important;
  font-size:13px!important;
  line-height:1.6!important;
}
.profile-menu #cliffsUrlMenuButton{
  color:#078451!important;
  font-weight:950!important;
}

/* v283: keep CLIFFS URL visually aligned with the rest of the profile menu. */
.profile-menu #cliffsUrlMenuButton{
  color:var(--muted)!important;
  font-weight:600!important;
}
.profile-menu #cliffsUrlMenuButton:hover{
  color:var(--ink)!important;
}

/* v285: final portrait mobile nav and interaction polish. */
@media (max-width: 760px), (orientation: portrait) and (max-width: 920px) {
  body {
    padding-bottom: calc(92px + env(safe-area-inset-bottom)) !important;
    -webkit-tap-highlight-color: transparent;
  }
  .topbar {
    position: sticky !important;
    top: max(8px, env(safe-area-inset-top)) !important;
    left: 8px !important;
    right: 8px !important;
    width: calc(100% - 16px) !important;
    margin: 0 auto !important;
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) auto auto !important;
    gap: 8px !important;
    min-height: 64px !important;
    padding: 8px 10px !important;
    border-radius: 22px !important;
  }
  .main-nav {
    position: fixed !important;
    left: 8px !important;
    right: 8px !important;
    bottom: max(10px, env(safe-area-inset-bottom)) !important;
    top: auto !important;
    z-index: 1200 !important;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 6px !important;
    height: 62px !important;
    padding: 8px !important;
    border: 1px solid rgba(255,255,255,.72) !important;
    border-radius: 24px !important;
    background: rgba(255,255,255,.82) !important;
    box-shadow: 0 16px 42px rgba(18,48,34,.18) !important;
    -webkit-backdrop-filter: blur(18px) saturate(1.15) !important;
    backdrop-filter: blur(18px) saturate(1.15) !important;
    overflow: visible !important;
  }
  .main-nav .nav-link {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 46px !important;
    padding: 0 6px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 18px !important;
    font-size: clamp(15px, 3.8vw, 18px) !important;
    font-weight: 900 !important;
    white-space: nowrap !important;
    transition: transform .16s ease, background-color .18s ease, color .18s ease, box-shadow .18s ease !important;
  }
  .main-nav .nav-link:active {
    transform: scale(.96) !important;
  }
  .main-nav .nav-link.v230-nav-active,
  .main-nav .nav-link.active {
    color: #fff !important;
    background: #078451 !important;
    box-shadow: 0 10px 24px rgba(7,132,81,.24) !important;
  }
  .search-box {
    grid-column: 2 !important;
    min-width: 0 !important;
  }
  .brand-name {
    font-size: 18px !important;
  }
  .library-page,
  .search-page,
  .category-zone,
  .home-ia,
  .portfolio-section,
  .site-footer {
    padding-bottom: calc(24px + env(safe-area-inset-bottom)) !important;
  }
  .blocks-dock {
    bottom: calc(86px + env(safe-area-inset-bottom)) !important;
  }
}

/* v286: latest and favorites share the same fixed-position Pinterest masonry. */
body.library-mode #libraryGrid.v251-pinterest-stable,
body[data-library-mode="latest"] #libraryGrid.v251-pinterest-stable,
body[data-library-mode="favorites"] #libraryGrid.v251-pinterest-stable{
  position:relative!important;
  display:block!important;
  width:min(1540px,calc(100vw - 56px))!important;
  max-width:none!important;
  height:var(--v251-container-h, auto)!important;
  min-height:var(--v251-container-h, 320px)!important;
  margin:34px auto 76px!important;
  columns:auto!important;
  column-count:auto!important;
  column-width:auto!important;
  column-gap:normal!important;
  grid-template-columns:none!important;
  grid-auto-rows:auto!important;
  grid-auto-flow:row!important;
  gap:0!important;
  align-items:initial!important;
  justify-content:initial!important;
  overflow:visible!important;
  contain:layout style!important;
}
body.library-mode #libraryGrid.v251-pinterest-stable > .all-work-card,
body[data-library-mode="latest"] #libraryGrid.v251-pinterest-stable > .all-work-card,
body[data-library-mode="favorites"] #libraryGrid.v251-pinterest-stable > .all-work-card{
  position:absolute!important;
  left:0!important;
  top:0!important;
  right:auto!important;
  bottom:auto!important;
  display:block!important;
  width:var(--v251-card-w)!important;
  min-width:var(--v251-card-w)!important;
  max-width:var(--v251-card-w)!important;
  height:var(--v251-card-h)!important;
  min-height:var(--v251-card-h)!important;
  max-height:var(--v251-card-h)!important;
  margin:0!important;
  grid-row:auto!important;
  grid-row-end:auto!important;
  break-inside:auto!important;
  page-break-inside:auto!important;
  vertical-align:baseline!important;
  transform:translate3d(var(--v251-x),var(--v251-y),0)!important;
  -webkit-transform:translate3d(var(--v251-x),var(--v251-y),0)!important;
  overflow:hidden!important;
}
body.library-mode #libraryGrid.v251-pinterest-stable > .masonry-sentinel,
body[data-library-mode="latest"] #libraryGrid.v251-pinterest-stable > .masonry-sentinel,
body[data-library-mode="favorites"] #libraryGrid.v251-pinterest-stable > .masonry-sentinel{
  position:absolute!important;
  left:0!important;
  top:max(0px,calc(var(--v251-container-h, 1px) - 1px))!important;
  bottom:auto!important;
  width:1px!important;
  height:1px!important;
  opacity:0!important;
}
body.library-mode #libraryGrid.v251-pinterest-stable > .all-work-card img,
body[data-library-mode="latest"] #libraryGrid.v251-pinterest-stable > .all-work-card img,
body[data-library-mode="favorites"] #libraryGrid.v251-pinterest-stable > .all-work-card img{
  display:block!important;
  width:100%!important;
  height:var(--v251-img-h)!important;
  min-height:var(--v251-img-h)!important;
  max-height:var(--v251-img-h)!important;
  object-fit:cover!important;
  aspect-ratio:auto!important;
}

/* v300: favorites has one fixed coordinate system, independent from legacy masonry layers. */
body[data-library-mode="favorites"] #libraryGrid.v300-favorites-masonry{
  position:relative!important;
  display:block!important;
  columns:initial!important;
  column-count:initial!important;
  column-width:auto!important;
  column-gap:0!important;
  grid-template-columns:none!important;
  grid-auto-flow:initial!important;
  gap:0!important;
  overflow:visible!important;
}
body[data-library-mode="favorites"] #libraryGrid.v300-favorites-masonry > .all-work-card{
  position:absolute!important;
  margin:0!important;
  break-inside:auto!important;
  grid-column:auto!important;
  grid-row:auto!important;
}
@media(max-width:1180px){
  body.library-mode #libraryGrid.v251-pinterest-stable,
  body[data-library-mode="latest"] #libraryGrid.v251-pinterest-stable,
  body[data-library-mode="favorites"] #libraryGrid.v251-pinterest-stable{
    width:min(100%,calc(100vw - 36px))!important;
  }
}
@media(max-width:760px), (orientation:portrait) and (max-width:920px){
body.library-mode #libraryGrid.v251-pinterest-stable,
body[data-library-mode="latest"] #libraryGrid.v251-pinterest-stable,
body[data-library-mode="favorites"] #libraryGrid.v251-pinterest-stable{
    width:calc(100vw - 20px)!important;
    margin-top:20px!important;
    margin-bottom:96px!important;
  }
}

/* v289 final: compact category board title area. */
.category-board-hero-v266{min-height:240px!important;gap:18px!important}
.category-board-hero-cover{min-height:240px!important}
.category-board-hero-copy{min-height:240px!important;padding:clamp(20px,3vw,36px)!important}
.category-board-hero-copy h1{margin:5px 0 8px!important;font-size:clamp(42px,5vw,72px)!important}
@media(max-width:760px){
  .category-board-hero-v266,.category-board-hero-cover,.category-board-hero-copy{min-height:190px!important}
  .category-board-hero-copy{padding:22px!important}
}

/* v291: compact, evenly spaced category stream. */
.category-page-grid.v251-pinterest-stable{margin:24px auto 56px!important}
.category-page-grid.v251-pinterest-stable > .all-work-card{border-radius:16px!important}

/* v294: direct-message center. */
#messageModal .message-panel{width:min(980px,calc(100vw - 36px))!important;max-height:min(82vh,760px)!important}
#messageModal .message-list{max-height:none!important;overflow:visible!important;padding:0!important}
.dm-tabs{display:flex;gap:8px;margin:-4px 0 16px}
.dm-tabs button{height:34px;padding:0 14px;border:0;border-radius:999px;background:rgba(255,255,255,.6);color:#5b6b62;font-weight:850;cursor:pointer}
.dm-tabs button.active{background:#087a4f;color:#fff}
.dm-tabs i,.dm-conversation i{display:inline-grid;place-items:center;min-width:17px;height:17px;margin-left:5px;padding:0 4px;border-radius:999px;background:#f04456;color:#fff;font-size:10px;font-style:normal}
.dm-layout{display:grid;grid-template-columns:290px minmax(0,1fr);min-height:480px;border:1px solid rgba(14,72,48,.1);border-radius:18px;overflow:hidden;background:rgba(255,255,255,.56)}
.dm-sidebar{display:flex;flex-direction:column;min-width:0;border-right:1px solid rgba(14,72,48,.1);background:rgba(244,249,246,.74)}
.dm-new{display:grid;gap:6px;padding:16px;border-bottom:1px solid rgba(14,72,48,.08);color:#315342;font-size:12px;font-weight:900}
.dm-new select{height:38px;border:1px solid rgba(14,72,48,.12);border-radius:10px;background:#fff;padding:0 10px;color:#1b3527;font:inherit}
.dm-conversations{overflow:auto;max-height:490px;padding:8px}
.dm-conversation{position:relative;display:grid;grid-template-columns:42px minmax(0,1fr) auto;gap:10px;align-items:center;width:100%;padding:10px;border:0;border-radius:12px;background:transparent;text-align:left;cursor:pointer}
.dm-conversation:hover,.dm-conversation.active{background:rgba(8,122,79,.1)}
.dm-conversation img,.dm-thread header img{width:42px;height:42px;border-radius:50%;object-fit:cover}
.dm-conversation span{min-width:0}.dm-conversation strong,.dm-conversation em{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dm-conversation strong{color:#1d3227;font-size:13px}.dm-conversation em{margin-top:3px;color:#74847b;font-size:12px;font-style:normal}
.dm-thread{display:grid;grid-template-rows:auto minmax(0,1fr) auto;min-width:0}.dm-thread header{display:flex;align-items:center;gap:10px;padding:14px 18px;border-bottom:1px solid rgba(14,72,48,.1)}.dm-thread header strong{font-size:15px;color:#173327}
.dm-history{min-height:300px;max-height:390px;overflow:auto;padding:20px;display:flex;flex-direction:column;gap:10px}.dm-bubble{align-self:flex-start;max-width:min(78%,480px)}.dm-bubble.mine{align-self:flex-end}.dm-bubble p{margin:0;padding:10px 12px;border-radius:14px 14px 14px 4px;background:#fff;color:#1a2c22;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere;box-shadow:0 6px 16px rgba(19,58,42,.06)}.dm-bubble.mine p{border-radius:14px 14px 4px 14px;background:#087a4f;color:#fff}.dm-bubble time{display:block;margin:4px 2px;color:#839187;font-size:11px}.dm-bubble.mine time{text-align:right}
.dm-compose{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;padding:14px;border-top:1px solid rgba(14,72,48,.1)}.dm-compose textarea{min-height:42px;max-height:100px;resize:vertical;border:1px solid rgba(14,72,48,.14);border-radius:12px;padding:10px;font:inherit}.dm-compose button,.direct-message-trigger{border:0;border-radius:12px;padding:0 16px;background:#087a4f;color:#fff;font-weight:900;cursor:pointer}.dm-compose button:disabled{opacity:.45;cursor:not-allowed}.dm-empty{display:grid;place-items:center;min-height:160px;padding:20px;color:#738178;text-align:center}.dm-empty.small{min-height:80px;font-size:12px}.notice-stream{display:grid;gap:12px}.direct-message-trigger{height:36px;margin-top:12px}
@media(max-width:760px),(orientation:portrait) and (max-width:920px){#messageModal .message-panel{width:calc(100vw - 20px)!important;max-height:calc(100dvh - 28px)!important;padding:22px 16px 16px!important}.dm-layout{grid-template-columns:1fr;min-height:0}.dm-sidebar{border-right:0;border-bottom:1px solid rgba(14,72,48,.1)}.dm-conversations{display:flex;max-height:90px;padding:8px;gap:8px}.dm-conversation{flex:0 0 190px}.dm-thread header{padding:12px 14px}.dm-history{min-height:260px;max-height:36dvh;padding:14px}.dm-compose{padding:10px}.dm-new{padding:10px 12px}.direct-message-trigger{width:100%}}

/* v303: the message frame is viewport-locked; only its inner panes scroll. */
#messageModal.login-modal{padding:max(14px,env(safe-area-inset-top)) max(14px,env(safe-area-inset-right)) max(14px,env(safe-area-inset-bottom)) max(14px,env(safe-area-inset-left))!important}
#messageModal .message-panel{width:min(980px,calc(100vw - 28px))!important;height:min(760px,calc(100dvh - 28px))!important;max-height:calc(100dvh - 28px)!important;display:flex!important;flex-direction:column!important;min-height:0!important}
#messageModal .message-panel .kicker{flex:none!important}
#messageModal .message-panel h2{flex:none!important}
#messageModal .message-list{display:flex!important;flex:1 1 auto!important;min-height:0!important;max-height:none!important;overflow:hidden!important}
#messageModal .dm-layout{width:100%!important;min-height:0!important;height:100%!important;grid-template-rows:minmax(0,1fr)!important}
#messageModal .dm-sidebar,#messageModal .dm-thread{min-height:0!important}
#messageModal .dm-conversations{max-height:none!important;min-height:0!important;flex:1 1 auto!important}
#messageModal .dm-history{min-height:0!important;max-height:none!important}
@media(max-width:760px),(orientation:portrait) and (max-width:920px){
  #messageModal .message-panel{width:calc(100vw - 20px)!important;height:calc(100dvh - 20px)!important;max-height:calc(100dvh - 20px)!important;padding:18px 14px 14px!important}
  #messageModal .message-panel .kicker{margin:0 0 10px!important}
  #messageModal .message-panel h2{margin:0 0 12px!important;font-size:clamp(28px,9vw,38px)!important}
  #messageModal .dm-layout{grid-template-rows:auto minmax(0,1fr)!important}
  #messageModal .dm-sidebar{max-height:142px!important}
  #messageModal .dm-history{padding:12px!important}
}

/* v303: portrait keeps the notification bell beside the profile control. */
@media(max-width:920px),(orientation:portrait) and (max-width:920px){
  .topbar .message-button:not([hidden]){display:inline-flex!important;grid-area:message!important;justify-self:end!important;width:40px!important;height:40px!important;min-width:40px!important;flex:0 0 40px!important}
}

/* v303: favorites has one native, responsive masonry owner. */
body[data-library-mode="favorites"] #libraryGrid.v303-favorites-masonry{
  position:relative!important;display:block!important;width:min(1540px,calc(100vw - 56px))!important;height:auto!important;min-height:0!important;margin:34px auto 76px!important;
  columns:5 220px!important;column-gap:16px!important;column-fill:balance!important;contain:none!important;overflow:visible!important;
}
body[data-library-mode="favorites"] #libraryGrid.v303-favorites-masonry > .all-work-card{
  position:relative!important;display:inline-block!important;width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;margin:0 0 16px!important;
  break-inside:avoid!important;page-break-inside:avoid!important;transform:none!important;left:auto!important;top:auto!important;overflow:hidden!important;
}
body[data-library-mode="favorites"] #libraryGrid.v303-favorites-masonry > .all-work-card img{
  display:block!important;width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;aspect-ratio:auto!important;object-fit:cover!important;
}
@media(max-width:1180px){body[data-library-mode="favorites"] #libraryGrid.v303-favorites-masonry{width:calc(100vw - 36px)!important;columns:4 200px!important}}
@media(max-width:760px),(orientation:portrait) and (max-width:920px){body[data-library-mode="favorites"] #libraryGrid.v303-favorites-masonry{width:calc(100vw - 20px)!important;margin:20px auto 96px!important;columns:2 150px!important;column-gap:12px!important}body[data-library-mode="favorites"] #libraryGrid.v303-favorites-masonry > .all-work-card{margin-bottom:12px!important}}

/* v293: keep portrait navigation outside the transformed header so it is truly viewport-fixed. */
@media (max-width: 920px), (orientation: portrait) and (max-width: 920px) {
  body.mobile-bottom-nav {
    padding-bottom: calc(94px + env(safe-area-inset-bottom)) !important;
  }
  body.mobile-bottom-nav > .main-nav {
    position: fixed !important;
    left: 8px !important;
    right: 8px !important;
    top: auto !important;
    bottom: max(10px, env(safe-area-inset-bottom)) !important;
    z-index: 2147483000 !important;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 6px !important;
    height: 62px !important;
    padding: 8px !important;
    border: 1px solid rgba(255, 255, 255, .72) !important;
    border-radius: 24px !important;
    background: rgba(255, 255, 255, .86) !important;
    box-shadow: 0 16px 42px rgba(18, 48, 34, .18) !important;
    -webkit-backdrop-filter: blur(18px) saturate(1.15) !important;
    backdrop-filter: blur(18px) saturate(1.15) !important;
  }
  body.mobile-bottom-nav > .main-nav .nav-link {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 46px !important;
    padding: 0 6px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 18px !important;
    font-size: clamp(15px, 3.8vw, 18px) !important;
    font-weight: 900 !important;
    white-space: nowrap !important;
  }
}

/* v294: rebalance the category detail board and restore readable stream thumbnails. */
.category-board-hero-v266{min-height:120px!important;gap:12px!important}
.category-board-hero-cover{min-height:120px!important}
.category-board-hero-copy{min-height:120px!important;padding:clamp(14px,2vw,24px)!important}
.category-board-hero-copy h1{margin:2px 0 4px!important;font-size:clamp(32px,4vw,52px)!important}
.category-board-hero-copy p{margin:0!important;line-height:1.45!important}
@media(max-width:920px){
  .category-board-hero-v266,.category-board-hero-cover,.category-board-hero-copy{min-height:120px!important}
  .category-board-hero-copy{padding:16px!important}
}

/* v304: desktop favorites always uses five full-width masonry columns. */
@media(min-width:1000px){
  body[data-library-mode="favorites"] #libraryPage.library-page{
    width:min(1540px,calc(100vw - 56px))!important;
    max-width:none!important;
    margin-left:auto!important;
    margin-right:auto!important;
  }
  body[data-library-mode="favorites"] #libraryGrid.v303-favorites-masonry{
    width:100%!important;
    column-count:5!important;
    column-width:auto!important;
    column-gap:16px!important;
  }
  body[data-library-mode="favorites"] #libraryGrid.v303-favorites-masonry > .all-work-card{
    column-span:none!important;
    width:100%!important;
  }
}

/* v305: no absolute positioning in favorites. A five-column grid always owns its height. */
body[data-library-mode="favorites"] #libraryGrid.v300-favorites-masonry{
  position:relative!important;
  display:grid!important;
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
  grid-auto-rows:auto!important;
  grid-auto-flow:row!important;
  align-items:start!important;
  gap:16px!important;
  width:min(1540px,calc(100vw - 56px))!important;
  height:auto!important;
  min-height:0!important;
  margin:34px auto 76px!important;
  columns:auto!important;
  column-count:auto!important;
  column-width:auto!important;
  overflow:visible!important;
  contain:none!important;
}
body[data-library-mode="favorites"] #libraryGrid.v300-favorites-masonry > .all-work-card{
  position:relative!important;
  display:block!important;
  width:100%!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  margin:0!important;
  transform:none!important;
  left:auto!important;
  top:auto!important;
  right:auto!important;
  bottom:auto!important;
  grid-column:auto!important;
  grid-row:auto!important;
  overflow:hidden!important;
}
body[data-library-mode="favorites"] #libraryGrid.v300-favorites-masonry > .all-work-card img{
  width:100%!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  object-fit:cover!important;
  aspect-ratio:auto!important;
}
@media(max-width:1180px){body[data-library-mode="favorites"] #libraryGrid.v300-favorites-masonry{grid-template-columns:repeat(4,minmax(0,1fr))!important;width:calc(100vw - 36px)!important}}
@media(max-width:760px),(orientation:portrait) and (max-width:920px){body[data-library-mode="favorites"] #libraryGrid.v300-favorites-masonry{grid-template-columns:repeat(2,minmax(0,1fr))!important;width:calc(100vw - 20px)!important;gap:12px!important;margin:20px auto 96px!important}}

/* v306: isolated favorites component. No legacy masonry selector can affect it. */
#libraryGrid.favorites-grid-v306{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;grid-auto-flow:row!important;align-items:start!important;gap:16px!important;width:min(1540px,calc(100vw - 56px))!important;height:auto!important;min-height:0!important;margin:34px auto 76px!important;overflow:visible!important;contain:none!important}
#libraryGrid.favorites-grid-v306 > .all-work-card{position:relative!important;display:block!important;width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;margin:0!important;transform:none!important;overflow:hidden!important}
#libraryGrid.favorites-grid-v306 > .all-work-card img{display:block!important;width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;object-fit:cover!important}
@media(max-width:1180px){#libraryGrid.favorites-grid-v306{grid-template-columns:repeat(4,minmax(0,1fr))!important;width:calc(100vw - 36px)!important}}
@media(max-width:760px),(orientation:portrait) and (max-width:920px){#libraryGrid.favorites-grid-v306{grid-template-columns:repeat(2,minmax(0,1fr))!important;width:calc(100vw - 20px)!important;gap:12px!important;margin:20px auto 96px!important}}

/* v309: Bilibili-style conversation frame with Instagram-like clean surfaces. */
#messageModal.login-modal{background:rgba(10,16,14,.58)!important;backdrop-filter:blur(22px) saturate(1.15)!important}
#messageModal .message-panel{width:min(1080px,calc(100vw - 40px))!important;height:min(740px,calc(100dvh - 40px))!important;padding:22px!important;border:1px solid rgba(255,255,255,.72)!important;border-radius:24px!important;background:#fff!important;box-shadow:0 32px 90px rgba(0,0,0,.32)!important}
#messageModal .message-panel .kicker{margin:0 0 3px!important;color:#00965e!important;font-size:12px!important;letter-spacing:.08em!important}
#messageModal .message-panel h2{margin:0 0 16px!important;color:#151515!important;font-size:28px!important;line-height:1.1!important}
#messageModal .message-panel .modal-close{top:18px!important;right:18px!important;width:38px!important;height:38px!important;border:1px solid #ececec!important;background:#fff!important;box-shadow:none!important;font-size:27px!important;line-height:1!important}
#messageModal .message-list{gap:12px!important}
#messageModal .dm-tabs{gap:18px!important;margin:0!important;padding:0 4px 10px!important;border-bottom:1px solid #ececec!important}
#messageModal .dm-tabs button{position:relative;height:34px!important;padding:0!important;border-radius:0!important;background:transparent!important;color:#8b8b8b!important;font-size:14px!important;font-weight:800!important}
#messageModal .dm-tabs button.active{color:#151515!important}
#messageModal .dm-tabs button.active::after{content:"";position:absolute;left:0;right:0;bottom:-11px;height:3px;border-radius:3px;background:#00965e}
#messageModal .dm-tabs i{min-width:16px!important;height:16px!important;margin-left:4px!important;background:#ef4444!important}
#messageModal .dm-content{min-height:0!important;flex:1!important;display:flex!important;overflow:hidden!important}
#messageModal .dm-layout{height:100%!important;min-height:0!important;border:1px solid #ededed!important;border-radius:16px!important;background:#fff!important;grid-template-columns:320px minmax(0,1fr)!important}
#messageModal .dm-sidebar{background:#fff!important;border-right:1px solid #ededed!important}
#messageModal .dm-new{gap:8px!important;padding:16px!important;border-bottom:1px solid #f0f0f0!important;color:#222!important;font-size:13px!important}
#messageModal .dm-new span::after{content:"  ·  新建私信";color:#999;font-weight:600}
#messageModal .dm-new select{height:40px!important;border:1px solid #e4e4e4!important;border-radius:10px!important;background:#fafafa!important}
#messageModal .dm-conversations{padding:8px!important;background:#fff!important}
#messageModal .dm-conversation{grid-template-columns:44px minmax(0,1fr) auto!important;gap:12px!important;padding:11px 10px!important;border-radius:12px!important}
#messageModal .dm-conversation:hover{background:#f7f7f7!important}
#messageModal .dm-conversation.active{background:#edf9f3!important}
#messageModal .dm-conversation img,#messageModal .dm-thread header img{width:44px!important;height:44px!important;border:1px solid #eee!important}
#messageModal .dm-conversation strong{font-size:14px!important;color:#171717!important}.dm-conversation em{font-size:12px!important;color:#999!important}
#messageModal .dm-thread{background:#fff!important}.dm-thread header{min-height:68px;padding:12px 20px!important;border-bottom:1px solid #ededed!important}.dm-thread header strong{font-size:15px!important;color:#171717!important}
#messageModal .dm-history{padding:22px 28px!important;background:linear-gradient(180deg,#fff,#fcfcfc)!important;gap:14px!important}
#messageModal .dm-bubble{max-width:min(70%,500px)!important}.dm-bubble p{padding:11px 14px!important;border:1px solid #ececec!important;border-radius:16px 16px 16px 4px!important;background:#f5f5f5!important;color:#202020!important;box-shadow:none!important}.dm-bubble.mine p{border:0!important;border-radius:16px 16px 4px 16px!important;background:#00965e!important;color:#fff!important}.dm-bubble time{color:#aaa!important}
#messageModal .dm-compose{gap:10px!important;padding:14px 18px!important;border-top:1px solid #ededed!important;background:#fff!important}.dm-compose textarea{min-height:44px!important;border:1px solid #e3e3e3!important;border-radius:12px!important;background:#fafafa!important}.dm-compose button{min-width:72px!important;border-radius:12px!important;background:#00965e!important}
#messageModal .notice-stream{width:100%!important;padding:4px!important;gap:8px!important;overflow:auto!important}.message-item{padding:14px!important;border:1px solid #ededed!important;border-radius:14px!important;background:#fff!important;box-shadow:none!important}.message-item:hover{background:#fafafa!important}.message-item.unread{border-color:#bfe9d4!important;background:#f4fcf7!important}
@media(max-width:760px),(orientation:portrait) and (max-width:920px){#messageModal .message-panel{width:calc(100vw - 16px)!important;height:calc(100dvh - 16px)!important;padding:16px!important;border-radius:20px!important}#messageModal .message-panel h2{font-size:25px!important}#messageModal .dm-layout{grid-template-columns:1fr!important;border-radius:14px!important}#messageModal .dm-sidebar{max-height:168px!important;border-right:0!important;border-bottom:1px solid #ededed!important}#messageModal .dm-conversations{display:flex!important;gap:6px!important}.dm-conversation{flex:0 0 210px!important}.dm-history{padding:16px!important}.dm-bubble{max-width:82%!important}.dm-compose{padding:10px!important}}

/* v311: dense notification rows, roughly one third of the former vertical footprint. */
#messageModal .notice-stream{gap:5px!important;padding:2px!important}
#messageModal .notice-stream .message-item{min-height:64px!important;padding:8px 12px!important;grid-template-columns:40px minmax(0,1fr) auto!important;gap:10px!important;border-radius:10px!important}
#messageModal .notice-stream .message-item img{width:40px!important;height:40px!important}
#messageModal .notice-stream .message-item strong{font-size:14px!important;line-height:1.25!important;-webkit-line-clamp:1!important}
#messageModal .notice-stream .message-item span{margin-top:2px!important;font-size:11px!important;line-height:1.15!important}
#messageModal .notice-stream .message-type{height:21px!important;padding:0 8px!important;font-size:11px!important}
@media(max-width:760px),(orientation:portrait) and (max-width:920px){#messageModal .notice-stream .message-item{min-height:58px!important;padding:7px 10px!important}}

/* v313: companion entry for Plugin Shelf, stacked with the existing side badge. */
.plugin-shelf-dock{position:fixed;right:0;top:calc(50% + 56px);z-index:90;display:grid;place-items:center;width:48px;height:48px;border:1px solid rgba(15,40,29,.12);border-right:0;border-radius:16px 0 0 16px;color:#173327;background:rgba(255,255,255,.88);box-shadow:0 14px 36px rgba(12,28,20,.16);-webkit-backdrop-filter:blur(16px) saturate(1.2);backdrop-filter:blur(16px) saturate(1.2);transition:width .18s ease,background-color .18s ease,transform .18s ease}
.plugin-shelf-dock:hover,.plugin-shelf-dock:focus-visible{width:64px;background:#fff;transform:translateX(-2px)}
.plugin-shelf-dock svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:2.4}
@media(max-width:760px){.plugin-shelf-dock{top:auto;right:0;bottom:146px;width:48px;height:48px}.plugin-shelf-dock:hover,.plugin-shelf-dock:focus-visible{width:48px;transform:none}}

/* v315: one dock, two left-expanding site actions. */
.blocks-dock,.plugin-shelf-dock{display:none!important}.side-sites-dock{position:fixed;right:0;top:50%;z-index:90;display:flex;align-items:center;transform:translateY(-50%)}.side-sites-trigger{position:relative;z-index:2;display:grid;place-items:center;width:48px;height:48px;padding:0;border:1px solid rgba(15,40,29,.12);border-right:0;border-radius:16px 0 0 16px;color:#173327;background:rgba(255,255,255,.9);box-shadow:0 14px 36px rgba(12,28,20,.16);cursor:pointer}.side-sites-trigger svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:2.4}.side-sites-menu{display:flex;gap:8px;max-width:0;margin-right:-1px;padding:6px 0;overflow:hidden;opacity:0;transform:translateX(12px);transition:max-width .24s ease,opacity .18s ease,transform .24s ease}.side-sites-menu a{display:grid;place-items:center;min-width:92px;height:36px;padding:0 12px;border-radius:11px;color:#173327;background:#fff;box-shadow:0 10px 28px rgba(12,28,20,.14);font-size:12px;font-weight:850;text-decoration:none;white-space:nowrap}.side-sites-menu a:hover,.side-sites-menu a:focus-visible{color:#fff;background:#00965e}.side-sites-dock:hover .side-sites-menu,.side-sites-dock:focus-within .side-sites-menu{max-width:230px;opacity:1;transform:translateX(0)}@media(max-width:760px){.side-sites-dock{top:auto;bottom:calc(86px + env(safe-area-inset-bottom))}.side-sites-menu a{min-width:82px}}

/* v316: expanded actions sit on one continuous white rail. */
.side-sites-menu{gap:0!important;margin-left:-1px!important;margin-right:0!important;padding:0!important;border:1px solid rgba(15,40,29,.12)!important;border-right:0!important;border-radius:16px 0 0 16px!important;background:#fff!important;box-shadow:0 14px 36px rgba(12,28,20,.16)!important}.side-sites-menu a{height:48px!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}.side-sites-menu a+a{border-left:1px solid rgba(15,40,29,.1)!important}.side-sites-menu a:hover,.side-sites-menu a:focus-visible{color:#00965e!important;background:#f1faf5!important}.side-sites-dock:hover .side-sites-menu,.side-sites-dock:focus-within .side-sites-menu{max-width:246px!important}.side-sites-dock:hover .side-sites-trigger,.side-sites-dock:focus-within .side-sites-trigger{box-shadow:0 14px 36px rgba(12,28,20,.16)!important}

/* v318: trigger and expanded rail are one seamless surface. */
.side-sites-dock{gap:0!important;border-radius:16px 0 0 16px!important;background:#fff!important;box-shadow:0 14px 36px rgba(12,28,20,.16)!important}.side-sites-trigger{border:0!important;border-radius:16px 0 0 16px!important;background:transparent!important;box-shadow:none!important}.side-sites-menu{margin-left:0!important;border:0!important;border-radius:0!important;box-shadow:none!important}.side-sites-dock:hover .side-sites-trigger,.side-sites-dock:focus-within .side-sites-trigger{box-shadow:none!important;border-radius:16px 0 0 16px!important}
/* 展开条与九宫格触发器共用高度，避免缩放后出现细条。 */
.side-sites-dock{--cliffs-dock-height:70px;align-items:stretch!important}
.side-sites-dock .side-sites-trigger{width:70px!important;height:var(--cliffs-dock-height)!important;min-height:var(--cliffs-dock-height)!important}
.side-sites-dock .side-sites-menu{height:var(--cliffs-dock-height)!important;min-height:var(--cliffs-dock-height)!important;align-self:stretch!important;display:flex!important;align-items:stretch!important}
.side-sites-dock .side-sites-menu a{height:var(--cliffs-dock-height)!important;min-height:var(--cliffs-dock-height)!important;display:flex!important;align-items:center!important;justify-content:center!important}
@media(max-width:760px){.side-sites-dock{--cliffs-dock-height:58px}.side-sites-dock .side-sites-trigger{width:58px!important}}

/* v314: favorites is an isolated page, outside all historical gallery layouts. */
.favorites-page-v314{width:min(1540px,calc(100vw - 56px));margin:46px auto 84px}.favorites-page-v314[hidden]{display:none!important}.favorites-page-v314 header{display:flex;align-items:end;justify-content:space-between;gap:18px;margin-bottom:26px}.favorites-page-v314 .kicker{margin:0 0 6px;color:#00965e;font-size:12px;font-weight:900;letter-spacing:.08em}.favorites-page-v314 h1{margin:0;color:#141414;font-size:clamp(36px,5vw,64px);line-height:1}.favorites-page-v314 .favorite-count{margin:0;color:#748078;font-weight:700}.favorites-grid-v314{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px;align-items:start}.favorite-card-v314{display:block;min-width:0;overflow:hidden;border:0;border-radius:16px;background:#fff;box-shadow:0 8px 24px rgba(8,34,21,.08);text-align:left;cursor:pointer}.favorite-card-v314 img{display:block;width:100%;height:auto;max-height:none;object-fit:cover;background:#edf2ef}.favorite-card-v314 div{padding:10px 11px 12px}.favorite-card-v314 strong{display:block;overflow:hidden;color:#19251e;font-size:13px;text-overflow:ellipsis;white-space:nowrap}.favorite-card-v314 span{display:block;margin-top:4px;color:#829087;font-size:11px}@media(max-width:1180px){.favorites-grid-v314{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(max-width:760px),(orientation:portrait) and (max-width:920px){.favorites-page-v314{width:calc(100vw - 20px);margin:24px auto 100px}.favorites-page-v314 header{margin-bottom:18px}.favorites-grid-v314{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}}

/* v312: a view switch never leaves a composited blur behind. */
body:not([data-library-mode="favorites"]) #libraryGrid{filter:none!important;backdrop-filter:none!important}
body.view-transitioning{filter:none!important}

/* v319: the standalone favorites view excludes home-only status panels. */
body.favorites-v314-mode .home-ia,
body.favorites-v314-mode #statsStrip,
body.favorites-v314-mode #activityFeed,
body.favorites-v314-mode #mySpacePanel,
body.favorites-v314-mode .home-jump-card{display:none!important}

/* v320: no homepage section may reserve space above the standalone favorites page. */
body.favorites-v314-mode main>:not(.favorites-page-v314){display:none!important}
body.favorites-v314-mode .favorites-page-v314{margin-top:22px!important}

/* v321: view state can be reset by legacy navigation; the visible page is authoritative. */
main:has(> .favorites-page-v314:not([hidden]))>:not(.favorites-page-v314){display:none!important}
main:has(> .favorites-page-v314:not([hidden]))>.favorites-page-v314{margin-top:22px!important}

/* v323: favorites inherits the site's restrained page and card motion. */
.favorites-page-v314{margin-top:116px!important;opacity:0;transform:translateY(10px)}
.favorites-page-v314.is-active{animation:fadeInUp .34s ease both}
.favorite-card-v314{border-radius:18px;transition:transform .22s ease,box-shadow .22s ease}
.favorite-card-v314 img{border-radius:18px 18px 0 0;transition:transform .32s ease}
.favorite-card-v314:hover,.favorite-card-v314:focus-visible{transform:translateY(-4px);box-shadow:0 16px 30px rgba(8,34,21,.14);outline:0}
.favorite-card-v314:hover img,.favorite-card-v314:focus-visible img{transform:scale(1.025)}
@media(prefers-reduced-motion:reduce){.favorites-page-v314.is-active{animation:none}.favorite-card-v314,.favorite-card-v314 img{transition:none}.favorite-card-v314:hover,.favorite-card-v314:focus-visible{transform:none}}
@media(max-width:760px){.favorites-page-v314{margin-top:98px!important}}
body.favorites-v314-mode .favorites-page-v314,
main:has(> .favorites-page-v314:not([hidden]))>.favorites-page-v314{margin-top:116px!important}
@media(max-width:760px){body.favorites-v314-mode .favorites-page-v314,main:has(> .favorites-page-v314:not([hidden]))>.favorites-page-v314{margin-top:98px!important}}

/* v340: modal composer and compact topic cards. */
.treehole-page{width:calc(100vw - 32px)!important;max-width:none!important;margin:94px 16px 48px!important}.th333-home{grid-template-columns:230px minmax(0,1fr) 270px!important;gap:24px!important}.th333-feed{min-height:calc(100vh - 160px)}.th333-list button{min-height:142px!important;padding:18px 18px 44px 96px!important}.th333-list button strong{font-size:24px!important;text-align:left}.th333-list button em{color:#8b9690!important}.th342-author{bottom:13px!important}.th333-list button small{bottom:15px!important}@media(max-width:980px){.treehole-page{width:calc(100vw - 20px)!important;margin-left:10px!important;margin-right:10px!important}.th333-home{grid-template-columns:1fr!important}}
.th333-nav{color:#fff!important;background:linear-gradient(rgba(0,140,84,.7),rgba(0,140,84,.7)),url('backscrean/流萤Firefly.png') center/cover!important}.th333-nav a,.th333-nav small{color:#fff!important}.th340-open{display:grid;place-items:center;width:48px;height:48px;margin-top:20px;border:0;border-radius:50%;background:#fff;color:#00965e;cursor:pointer}.th340-open svg{width:24px;fill:none;stroke:currentColor;stroke-width:2.5}.th340-modal{position:fixed;inset:0;z-index:300;display:none;place-items:center;background:rgba(10,24,16,.42);backdrop-filter:blur(8px)}.th340-modal.open{display:grid}.th340-dialog{position:relative;width:min(620px,calc(100vw - 30px));padding:22px;border-radius:20px;background:#fff;box-shadow:0 24px 80px rgba(0,0,0,.24)}.th340-dialog h2{margin:0 0 12px}.th340-dialog form{display:block!important;margin:0!important}.th340-close{position:absolute;right:14px;top:12px;border:0;background:transparent;font-size:28px;cursor:pointer}.th333-list{margin-top:18px}.th333-list button{min-height:104px!important;border-radius:16px!important}.th333-list button em{display:block;margin:2px 0 6px;color:#929b95;font-size:12px;font-style:normal}.th333-list button small{position:absolute;right:15px;bottom:13px}.th333-list button strong{color:#15231a!important;font-size:18px!important}.th333-list button::before{content:'热度 '+attr(data-thread);display:none}.th342-author{position:absolute!important;left:14px!important;bottom:10px!important;display:flex!important;align-items:center;gap:6px;border:0!important;background:transparent!important;color:#617168!important;padding:0!important;font-size:12px!important}.th342-author img{width:20px;height:20px;border-radius:50%;object-fit:cover}

/* v336: Treehole search group. */
.search-treehole-results{margin:20px 0;padding:16px;border:1px solid #e1ebe4;border-radius:16px;background:#fff}.search-treehole-results h2{margin:0 0 12px;font-size:18px}.search-treehole-results h2 small{color:#8a978f;font-size:12px}.search-treehole-results>div{display:grid;gap:7px}.search-treehole-results button{display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:center;width:100%;border:0;border-radius:10px;background:#f6faf7;padding:10px;text-align:left;cursor:pointer}.search-treehole-results button:hover{background:#edf8f1}.search-treehole-results span{color:#008b58;font-size:12px;font-weight:800}.search-treehole-results b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.search-treehole-results small{color:#87948c;font-size:12px}

/* v333: Zhihu-like feed + Tieba-like thread layout. */
.th333{margin-top:116px!important}.th333-in{animation:fadeInUp .3s ease both}.th333-home{display:grid;grid-template-columns:170px minmax(420px,720px) 230px;gap:22px;justify-content:center}.th333-nav,.th333-feed,.th333-side,.th333-thread article,.th333-thread section{border:1px solid #e3ece6;border-radius:18px;background:#fff;box-shadow:0 10px 28px rgba(8,34,21,.06)}.th333-nav,.th333-side{height:max-content;padding:18px;position:sticky;top:104px}.th333-nav b{display:block;font-size:25px}.th333-nav a{display:block;padding:10px;margin-top:6px;border-radius:9px;color:#5c6b62}.th333-nav a.active{background:#edf8f1;color:#008c58;font-weight:850}.th333-nav small{color:#829087}.th333-feed{padding:18px}.th333-feed header{display:flex;align-items:end;justify-content:space-between}.th333-feed header p{margin:0;color:#00965e;font-size:11px;font-weight:850}.th333-feed h1{margin:5px 0;font-size:30px}.th333-feed header span,.th333-list small{color:#849187;font-size:12px}.th333-feed form{margin:16px 0;padding:12px;border-radius:14px;background:#f3f8f5}.th333-feed input,.th333-feed textarea,.th333-feed select,.th333-thread input{box-sizing:border-box;width:100%;border:1px solid #d9e7de;border-radius:9px;padding:10px;font:inherit}.th333-feed textarea{min-height:76px;margin:8px 0;resize:vertical}.th333-feed footer{display:flex;gap:7px;align-items:center}.th333-feed select{width:auto}.th333-feed label{font-size:12px;color:#087c50;font-weight:800}.th333-feed button,.th333-thread form button{border:0;border-radius:9px;background:#00965e;color:#fff;padding:9px 15px;font-weight:850;cursor:pointer}.th333-feed footer button{margin-left:auto}.th333-list{display:grid;gap:7px}.th333-list button{position:relative;border:1px solid #e8efea;border-radius:12px;background:#fff;padding:13px 15px 13px 76px;text-align:left;cursor:pointer}.th333-list button:hover{border-color:#9bd8b9;background:#f7fcf8}.th333-list span{position:absolute;left:14px;top:17px;border-radius:99px;background:#e4f6ed;color:#008b58;padding:3px 7px;font-size:10px;font-weight:850}.th333-list strong,.th333-list small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.th333-list strong{margin-bottom:6px}.th333-side h3{margin-top:0}.th333-side p,.th333-side div{color:#637269;line-height:1.65;font-size:13px}.th333-thread{width:min(760px,100%);margin:auto}.th333-thread>a{display:inline-block;margin-bottom:14px;color:#087c50;font-weight:850;text-decoration:none}.th333-thread article,.th333-thread section{padding:25px;margin-bottom:15px}.th333-thread article h1{margin:12px 0;font-size:40px}.th333-thread article span{color:#008b58;font-size:12px;font-weight:850}.th333-thread article small{color:#839087}.th333-body{margin:22px 0;color:#3f5046;line-height:1.85}.th333-thread img{max-width:100%;border-radius:14px}.th333-thread section h2{margin-top:0;font-size:19px}.th333-reply{padding:11px 0;border-bottom:1px solid #edf2ee}.th333-reply p{margin:5px 0;color:#5e6c63}.th333-thread form{display:flex;gap:8px;margin-top:14px}@media(max-width:980px){.th333-home{grid-template-columns:1fr}.th333-nav,.th333-side{position:static}.th333-side{display:none}.th333-nav{display:flex;gap:12px;align-items:center}.th333-nav a{display:none}}@media(max-width:760px){.th333{margin-top:98px!important}.th333-feed,.th333-thread article,.th333-thread section{padding:14px}.th333-feed footer{flex-wrap:wrap}.th333-feed footer button{margin-left:0}.th333-thread article h1{font-size:31px}}@media(prefers-reduced-motion:reduce){.th333-in{animation:none}}

/* v330: secure Treehole forum surface. */
.hole-v330{margin-top:116px!important}.hole-v330.hole-enter{animation:fadeInUp .32s ease both}.hole-layout{display:grid;grid-template-columns:200px minmax(360px,1fr) 240px;gap:20px}.hole-layout>aside,.hole-layout>main,.hole-detail article,.hole-detail section{padding:20px;border:1px solid #e2ece5;border-radius:20px;background:#fff;box-shadow:0 12px 30px rgba(8,34,21,.07)}.hole-layout>aside{height:max-content}.hole-layout h1{margin:5px 0;font-size:42px}.hole-layout aside>p{margin:0;color:#008b58;font-size:12px;font-weight:850}.hole-layout aside>span,.hole-rules p{display:block;color:#68776e;line-height:1.65}.hole-layout main>header{display:flex;justify-content:space-between;align-items:center}.hole-layout main>header h2{margin:0}.hole-layout main>header b,.hole-layout small{color:#829087;font-size:12px}.hole-layout form{margin:14px 0;padding:12px;border-radius:15px;background:#f2f8f4}.hole-layout input,.hole-layout textarea,.hole-layout select,.hole-detail input{box-sizing:border-box;width:100%;padding:10px;border:1px solid #dae7de;border-radius:10px;background:#fff;font:inherit}.hole-layout textarea{min-height:82px;margin:8px 0;resize:vertical}.hole-layout form>div{display:flex;gap:8px;align-items:center}.hole-layout select{width:auto}.hole-layout label{font-size:12px;color:#087c50;font-weight:800}.hole-layout form button,.hole-detail form button{margin-left:auto;border:0;border-radius:10px;background:#00965e;color:#fff;padding:10px 16px;font-weight:850;cursor:pointer}.hole-layout main>section{display:grid;gap:9px}.hole-layout main>section>button{padding:14px;border:1px solid #e5ede8;border-radius:15px;background:#fff;text-align:left;cursor:pointer}.hole-layout main>section>button:hover{border-color:#8dd4ae;background:#f4fbf6}.hole-layout h3{margin:7px 0}.hole-layout main p{margin:0 0 8px;color:#5d6c62;line-height:1.5}.hole-layout main span,.hole-detail article span{display:inline-block;padding:3px 8px;border-radius:99px;background:#e1f5e9;color:#008b58;font-size:11px;font-weight:850}.hole-detail{width:min(760px,100%);margin:auto}.hole-detail>a{display:inline-block;margin-bottom:14px;color:#087c50;font-weight:850;text-decoration:none}.hole-detail article,.hole-detail section{margin-bottom:16px}.hole-detail h1{font-size:42px;margin:12px 0}.hole-detail article>p{line-height:1.8}.hole-detail img{display:block;max-width:100%;max-height:480px;margin-top:16px;border-radius:15px}.hole-detail section>div{padding:11px 0;border-bottom:1px solid #edf2ee}.hole-detail section p{margin:4px 0;color:#596860}.hole-detail form{display:flex;gap:8px}.hole-detail form button{margin-left:0}@media(max-width:980px){.hole-layout{grid-template-columns:1fr}.hole-rules{display:none!important}}@media(max-width:760px){.hole-v330{margin-top:98px!important}.hole-layout>aside,.hole-layout>main,.hole-detail article,.hole-detail section{padding:14px}.hole-layout h1,.hole-detail h1{font-size:32px}.hole-layout form>div{flex-wrap:wrap}.hole-layout form button{margin-left:0}}@media(prefers-reduced-motion:reduce){.hole-v330.hole-enter{animation:none}}

/* v331: compact, title-first Treehole topic index. */
.hole-layout main>section{gap:7px}.hole-layout main>section>button{position:relative;min-height:68px;padding:13px 15px 13px 94px;transition:background .18s ease,border-color .18s ease,transform .18s ease}.hole-layout main>section>button:hover{transform:translateX(3px)}.hole-layout main>section>button>span{position:absolute;left:15px;top:18px;min-width:44px;text-align:center}.hole-layout main>section>button h3{margin:0 0 7px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:16px}.hole-layout main>section>button p{display:none}.hole-layout main>section>button small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.hole-layout main>section>button::after{content:'›';position:absolute;right:15px;top:22px;color:#91a096;font-size:22px}.hole-layout main>section>button small{padding-right:22px}@media(max-width:760px){.hole-layout main>section>button{padding-left:76px}.hole-layout main>section>button>span{left:12px;min-width:38px}}

/* v326 Treehole */
.treehole-page{width:min(1320px,calc(100vw - 48px));margin:118px auto 80px}.treehole-shell{display:grid;grid-template-columns:220px minmax(320px,1fr) 350px;gap:22px;align-items:start}.treehole-side,.treehole-main,.treehole-thread{border:1px solid #e5eee8;border-radius:20px;background:rgba(255,255,255,.9);box-shadow:0 12px 34px rgba(8,34,21,.07)}.treehole-side{padding:24px;position:sticky;top:106px}.treehole-side h1{margin:5px 0;font-size:42px}.treehole-side p{color:#718076;line-height:1.6}.treehole-new,.treehole-compose button{border:0;border-radius:12px;background:#00965e;color:#fff;font-weight:850;cursor:pointer}.treehole-new{width:100%;padding:12px}.treehole-tags{display:grid;gap:6px;margin-top:18px}.treehole-tags button{border:0;background:transparent;padding:9px;text-align:left;color:#52635a;cursor:pointer}.treehole-main{padding:16px}.treehole-compose{padding:12px;border-radius:16px;background:#f4f8f5}.treehole-compose input,.treehole-compose textarea,.treehole-compose select,.treehole-reply input{width:100%;box-sizing:border-box;border:1px solid #dce8e0;border-radius:10px;background:#fff;padding:10px;font:inherit}.treehole-compose textarea{min-height:86px;margin:8px 0;resize:vertical}.treehole-compose>div{display:flex;gap:8px;align-items:center}.treehole-compose select{width:auto}.treehole-compose button{margin-left:auto;padding:10px 18px}.treehole-upload{font-size:12px;color:#087a50;font-weight:800;cursor:pointer}.treehole-list{display:grid;gap:9px;margin-top:14px}.treehole-topic{border:1px solid transparent;border-radius:14px;background:#fff;padding:14px;text-align:left;cursor:pointer}.treehole-topic:hover,.treehole-topic.selected{border-color:#9bd7bd;background:#f3fbf6}.treehole-topic b{display:block;margin:6px 0}.treehole-topic p{margin:0;color:#5f6d64;font-size:13px;line-height:1.45}.treehole-topic small,.treehole-thread small{color:#89968e}.treehole-tag{display:inline-block;border-radius:999px;background:#e4f6ed;color:#008957;padding:3px 8px;font-size:11px;font-weight:850}.treehole-thread{padding:24px;position:sticky;top:106px}.treehole-thread h2{margin:12px 0 8px}.treehole-thread>p{line-height:1.7;color:#425046}.treehole-thread>img{width:100%;max-height:260px;object-fit:cover;border-radius:14px;margin:12px 0}.treehole-like{display:block;margin:14px 0;border:0;background:#f2f7f4;border-radius:10px;padding:8px 12px;color:#087a50;cursor:pointer}.treehole-replies{border-top:1px solid #e8efea;padding-top:12px}.treehole-replies div{padding:8px 0}.treehole-replies p{margin:4px 0;color:#58665d;font-size:14px}.treehole-reply{display:flex;gap:8px;margin-top:12px}.treehole-reply button{border:0;border-radius:10px;background:#173327;color:#fff;padding:0 14px;font-weight:800}@media(max-width:980px){.treehole-shell{grid-template-columns:1fr}.treehole-side,.treehole-thread{position:static}.treehole-side{display:grid;grid-template-columns:1fr auto;gap:12px}.treehole-tags{display:none}}@media(max-width:760px){.treehole-page{width:calc(100vw - 20px);margin-top:98px}.treehole-compose>div{flex-wrap:wrap}.treehole-compose button{margin-left:0}}

/* v347: treehole performance guard. */
.treehole-page.th344{background-attachment:scroll!important;contain:layout paint!important}.th344-list{content-visibility:auto}.th344-card{contain:layout paint style}.th346-fixed{animation:none!important}

/* v349: finished Treehole cards and Bilibili-inspired discussion surface. */
.treehole-page.th349-page{width:calc(100vw - 32px)!important;max-width:none!important;margin:92px 16px 56px!important;min-height:calc(100vh - 150px);background:linear-gradient(135deg,rgba(246,252,248,.91),rgba(238,248,242,.8)),url('backscrean/流萤Firefly.png') center/cover!important}.th349-layout{display:grid;grid-template-columns:246px minmax(0,1fr) 260px;gap:24px;max-width:1760px;margin:auto;padding:28px}.th349-side,.th349-feed,.th349-note,.th349-post,.th349-comments{border:1px solid #deebe3;border-radius:20px;background:rgba(255,255,255,.94);box-shadow:0 12px 30px rgba(8,34,21,.07)}.th349-side{position:sticky;top:100px;align-self:start;padding:22px;color:#fff;background:linear-gradient(rgba(0,137,83,.72),rgba(0,126,77,.8)),url('backscrean/流萤Firefly.png') center/cover}.th349-side small{font-size:10px;font-weight:900;letter-spacing:.1em}.th349-side h1{margin:6px 0 18px;font-size:34px}.th349-side>button{display:block;width:100%;border:0;border-radius:11px;padding:11px 12px;background:transparent;color:#fff;text-align:left;font:inherit;font-weight:800;cursor:pointer}.th349-side>button:hover{background:rgba(255,255,255,.15)}.th349-side .th349-create{display:flex;justify-content:center;align-items:center;gap:8px;margin-bottom:10px;background:#fff;color:#008b58}.th349-create svg,.th349-data svg,.th349-comments svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2}.th349-side hr{border:0;border-top:1px solid rgba(255,255,255,.55);margin:16px 0}.th349-side>span{font-size:12px;font-weight:700}.th349-feed{min-width:0;padding:24px}.th349-feed header{display:flex;justify-content:space-between;align-items:end;gap:16px}.th349-feed header small{color:#008b58;font-weight:900;letter-spacing:.08em}.th349-feed h1{margin:5px 0 0;font-size:42px;line-height:1}.th349-feed header>span{color:#86938a;font-size:12px}.th349-feed nav{display:flex;flex-wrap:wrap;gap:8px;margin:24px 0 16px}.th349-feed nav button{border:1px solid #dcece2;border-radius:999px;padding:7px 11px;background:#fff;color:#607067;font:inherit;font-size:12px;cursor:pointer}.th349-feed nav button.active,.th349-feed nav button:hover{border-color:#00965e;background:#e9f8f0;color:#008b58}.th349-list{display:grid;gap:12px}.th349-card{position:relative;min-height:154px;overflow:hidden;border:1px solid #e2ece5;border-radius:16px;background:#fff;transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease}.th349-card:hover{border-color:#91d6b0;box-shadow:0 12px 26px rgba(5,77,45,.1);transform:translateY(-2px)}.th349-card-main{display:block;width:100%;min-height:154px;padding:19px 20px 46px;border:0;background:transparent;color:#1a291f;text-align:left;cursor:pointer}.th349-card h2{margin:0;text-align:left;font-size:21px}.th349-preview{margin:8px 0 0;overflow:hidden;color:#7d8982;font-size:13px;line-height:1.45;text-align:left;text-overflow:ellipsis;white-space:nowrap}.th349-tag{margin:7px 0 0;color:#96a098;font-size:11px;text-align:left}.th349-data{position:absolute;right:16px;bottom:14px;display:flex;gap:12px;color:#809087;font-size:12px}.th349-data span{display:flex;align-items:center;gap:4px}.th349-person{display:inline-flex;align-items:center;gap:7px;border:0;background:transparent;color:#43544a;font:inherit;font-size:12px;font-weight:800;cursor:pointer}.th349-person img{width:28px;height:28px;border-radius:50%;object-fit:cover}.th349-person em{margin-left:3px;border-radius:99px;background:#e1f6eb;color:#008b58;padding:2px 5px;font-size:9px;font-style:normal}.th349-card-user{position:absolute;left:18px;bottom:11px}.th349-note{position:sticky;top:100px;align-self:start;padding:19px}.th349-note b{font-size:16px}.th349-note p{margin:10px 0 0;color:#68776e;font-size:13px;line-height:1.65}.th349-modal[hidden]{display:none!important}.th349-modal{position:fixed;inset:0;z-index:1200;display:grid;place-items:center;padding:16px;background:rgba(9,31,19,.44);backdrop-filter:blur(9px)}.th349-compose{position:relative;width:min(680px,100%);padding:28px;border-radius:22px;background:#fff;box-shadow:0 28px 70px rgba(0,0,0,.28)}.th349-compose>[data-close]{position:absolute;top:12px;right:14px;border:0;background:transparent;font-size:26px;cursor:pointer}.th349-compose>p{margin:0;color:#008b58;font-size:11px;font-weight:900}.th349-compose h2{margin:6px 0 18px;font-size:31px}.th349-compose input,.th349-compose textarea,.th349-compose select{box-sizing:border-box;width:100%;border:1px solid #d7e6dc;border-radius:11px;padding:12px;font:inherit}.th349-compose textarea{min-height:150px;margin-top:10px;resize:vertical}.th349-compose form>div{display:flex;align-items:center;gap:10px;margin-top:12px}.th349-compose select{width:auto}.th349-upload{display:flex;align-items:center;gap:5px;color:#008b58;font-size:13px;font-weight:850;cursor:pointer}.th349-upload svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2}.th349-compose form button{margin-left:auto;border:0;border-radius:10px;padding:11px 18px;background:#00965e;color:#fff;font:inherit;font-weight:850;cursor:pointer}.th349-thread{width:min(980px,calc(100vw - 32px));margin:0 auto;padding:26px}.th349-back{margin:0 0 14px;border:0;background:transparent;color:#008b58;font:inherit;font-weight:850;cursor:pointer}.th349-post,.th349-comments{padding:28px;margin-bottom:16px}.th349-tags{color:#008b58;font-size:12px;font-weight:850}.th349-post h1{margin:10px 0 16px;font-size:44px;line-height:1.1}.th349-post-meta{display:flex;align-items:center;gap:12px}.th349-post-meta time,.th349-reply time{color:#94a098;font-size:11px}.th349-post>p{color:#435349;line-height:1.85}.th349-post>img{display:block;max-width:100%;margin-top:16px;border-radius:15px}.th349-comments h2{margin:0 0 12px}.th349-reply{display:grid;grid-template-columns:42px 1fr;gap:10px;padding:16px 0;border-bottom:1px solid #edf2ee}.th349-reply>.th349-person{align-self:start}.th349-reply>.th349-person span{display:none}.th349-reply>.th349-person img{width:34px;height:34px}.th349-reply-body>div{display:flex;align-items:center;gap:8px}.th349-reply-body p{margin:6px 0;color:#526159;line-height:1.65}.th349-reply footer{display:flex;gap:10px}.th349-reply footer button{display:flex;align-items:center;gap:4px;border:0;background:transparent;color:#74827a;font:inherit;font-size:12px;cursor:pointer}.th349-comments form{display:flex;gap:8px;margin-top:16px}.th349-comments form input{flex:1;min-width:0;border:1px solid #d7e6dc;border-radius:11px;padding:11px;font:inherit}.th349-comments form button{display:flex;align-items:center;gap:5px;border:0;border-radius:11px;padding:10px 16px;background:#00965e;color:#fff;font:inherit;font-weight:850;cursor:pointer}@media(max-width:1100px){.th349-layout{grid-template-columns:220px minmax(0,1fr)}.th349-note{display:none}}@media(max-width:720px){.treehole-page.th349-page{width:100%!important;margin:74px 0 32px!important}.th349-layout{grid-template-columns:1fr;padding:10px;gap:12px}.th349-side{position:static;display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:15px}.th349-side small,.th349-side h1,.th349-side hr,.th349-side>span{grid-column:1/-1}.th349-side h1{margin:0}.th349-feed{padding:17px}.th349-feed h1{font-size:33px}.th349-thread{width:100%;padding:12px}.th349-post,.th349-comments{padding:18px}.th349-post h1{font-size:31px}.th349-compose{padding:24px 16px}.th349-compose form>div{flex-wrap:wrap}.th349-compose form button{margin-left:0;width:100%}}

/* v350: content-only modal blur, persistent navigation, and action feedback. */
.site-header{position:relative;z-index:1301}.site-footer{position:relative;z-index:1301}.th349-modal{inset:92px 0 0!important;z-index:1300!important;background:rgba(8,28,17,.4)!important}.th349-modal:before{content:"";position:absolute;inset:0;background:rgba(230,242,235,.18);backdrop-filter:blur(10px) saturate(.9)}.th349-compose{position:relative;z-index:1}.nav-link.active[data-view="treehole"]{background:#00965e!important;color:#fff!important;box-shadow:0 8px 18px rgba(0,150,94,.22)}.toast-root,.toast-container{position:fixed!important;right:22px!important;bottom:22px!important;z-index:1500!important}.toast.success{border-left:3px solid #00965e}.toast.error{border-left:3px solid #e65353}@media(max-width:720px){.th349-modal{inset:74px 0 0!important}.toast-root,.toast-container{right:12px!important;bottom:12px!important}}

/* v351: composer portal and Treehole texture. */
body>.th349-modal{position:fixed!important;inset:92px 0 0!important;display:grid!important;place-items:center!important;padding:18px!important;overflow:auto!important;background:rgba(11,35,22,.48)!important;backdrop-filter:blur(13px) saturate(.86)!important}.site-footer{z-index:1302!important}.treehole-page.th349-page{position:relative;isolation:isolate;overflow:hidden;background:linear-gradient(120deg,rgba(245,252,247,.9),rgba(231,247,238,.78)),url('backscrean/流萤Firefly.png') center/cover!important}.treehole-page.th349-page:before{content:"";position:absolute;z-index:-1;inset:-25%;pointer-events:none;opacity:.25;background:radial-gradient(circle at 20% 20%,rgba(88,205,151,.35),transparent 28%),radial-gradient(circle at 78% 62%,rgba(105,178,224,.28),transparent 27%),repeating-linear-gradient(120deg,rgba(255,255,255,.14) 0 1px,transparent 1px 13px);animation:th351-flow 18s ease-in-out infinite alternate}.th349-layout,.th349-thread{position:relative;z-index:1}.th349-person img{background:#e5f3eb}@keyframes th351-flow{from{transform:translate3d(-2%,-1%,0) rotate(-1deg)}to{transform:translate3d(2%,1%,0) rotate(1deg)}}@media(max-width:720px){body>.th349-modal{inset:74px 0 0!important;padding:12px!important}}@media(prefers-reduced-motion:reduce){.treehole-page.th349-page:before{animation:none!important}}

/* v348: restrained global polish — clearer hierarchy, feedback, and accessible focus. */
:root{--ui-ease:cubic-bezier(.2,.75,.25,1);--ui-ring:0 0 0 3px rgba(0,150,94,.18);--ui-shadow:0 14px 34px rgba(8,34,21,.10)}button,a,input,textarea,select{transition:transform .18s var(--ui-ease),box-shadow .18s var(--ui-ease),border-color .18s var(--ui-ease),background-color .18s var(--ui-ease),color .18s var(--ui-ease)}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:none!important;box-shadow:var(--ui-ring)!important}button:not(:disabled):active{transform:translateY(1px) scale(.985)}button:disabled{cursor:not-allowed!important;opacity:.5}.site-header{box-shadow:0 10px 28px rgba(11,49,30,.07)}.nav-link,.nav-item{border-radius:999px}.all-work-card,.work-card,.feature-card,.home-jump-card,.category-card,.user-card{overflow:hidden;border-color:rgba(19,74,46,.10)!important}.all-work-card:hover,.work-card:hover,.feature-card:hover,.home-jump-card:hover,.category-card:hover,.user-card:hover{box-shadow:var(--ui-shadow)!important}.all-work-card img,.work-card img,.feature-card img{transition:transform .38s var(--ui-ease),filter .38s var(--ui-ease)}.all-work-card:hover img,.work-card:hover img,.feature-card:hover img{transform:scale(1.025);filter:saturate(1.04)}input,textarea,select{background-color:rgba(255,255,255,.88)!important}input:focus,textarea:focus,select:focus{border-color:#00965e!important}.modal,.lightbox,.message-modal{backdrop-filter:blur(12px) saturate(1.05)}.toast{border-radius:14px!important;box-shadow:0 16px 38px rgba(0,0,0,.18)!important}.th346-fixed .th333-list button{transition:transform .18s var(--ui-ease),box-shadow .18s var(--ui-ease),border-color .18s var(--ui-ease)!important}.th346-fixed .th333-list button:hover{box-shadow:0 10px 24px rgba(6,76,44,.10)!important}.th346-fixed .th333-thread article,.th346-fixed .th333-thread section{box-shadow:0 12px 30px rgba(8,34,21,.07)}@media(max-width:760px){.site-header{box-shadow:0 8px 22px rgba(11,49,30,.08)}.all-work-card:hover,.work-card:hover,.feature-card:hover,.home-jump-card:hover,.category-card:hover,.user-card:hover{box-shadow:0 8px 20px rgba(8,34,21,.09)!important}}@media(prefers-reduced-motion:reduce){:root{scroll-behavior:auto}.all-work-card img,.work-card img,.feature-card img,button,a,input,textarea,select{transition:none!important}}

/* v346: clamp every legacy Treehole child and restore site-wide motion. */
.treehole-page.th346-fixed{width:calc(100vw - 32px)!important;max-width:none!important;margin:94px 16px 56px!important;overflow-x:clip!important}.th346-fixed .th333-home{width:100%!important;max-width:1680px!important;grid-template-columns:230px minmax(0,1fr) 270px!important;gap:22px!important;margin:auto!important}.th346-fixed .th333-feed,.th346-fixed .th333-side,.th346-fixed .th333-nav{min-width:0!important;max-width:100%!important;overflow:hidden!important}.th346-fixed .th333-list button{min-width:0!important;max-width:100%!important;overflow:hidden!important;white-space:normal!important}.th346-fixed .th333-list strong,.th346-fixed .th333-list small{max-width:calc(100% - 28px)!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}.th346-fixed .th333-feed form,.th346-fixed .th333-feed footer{max-width:100%!important;min-width:0!important;overflow:hidden!important}.th346-fixed .th333-feed select{max-width:calc(100% - 126px)!important;min-width:0!important}.th346-fixed .th340-modal{z-index:1200!important}.th346-fixed .th340-dialog{max-height:calc(100dvh - 32px)!important;overflow:auto!important}.th346-fixed .th340-dialog form{overflow:visible!important}.th346-fixed .th333-thread{width:min(960px,100%)!important;max-width:100%!important}.th346-fixed .th333-thread article,.th346-fixed .th333-thread section{overflow:hidden!important}.th346-fixed .th333-thread img{width:100%!important;height:auto!important}.site-header,.home-hero,.home-section,.library-page,.user-page,.category-page,.search-page,.treehole-page{animation:fadeInUp .36s ease both}.all-work-card,.work-card,.feature-card,.favorite-card-v314,.th333-list button,.th344-card,.message-item{transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease,background-color .2s ease}.all-work-card:hover,.work-card:hover,.feature-card:hover,.th333-list button:hover,.th344-card:hover{transform:translateY(-3px)}@media(max-width:980px){.treehole-page.th346-fixed{width:calc(100vw - 20px)!important;margin:84px 10px 38px!important}.th346-fixed .th333-home{grid-template-columns:1fr!important}.th346-fixed .th333-nav{position:static!important}.th346-fixed .th333-side{display:none!important}.th346-fixed .th333-feed footer{flex-wrap:wrap!important}.th346-fixed .th333-feed select{max-width:100%!important;flex:1 1 160px!important}}@media(prefers-reduced-motion:reduce){.site-header,.home-hero,.home-section,.library-page,.user-page,.category-page,.search-page,.treehole-page{animation:none!important}.all-work-card,.work-card,.feature-card,.favorite-card-v314,.th333-list button,.th344-card,.message-item{transition:none!important}.all-work-card:hover,.work-card:hover,.feature-card:hover,.th333-list button:hover,.th344-card:hover{transform:none!important}}

/* v344: canonical Treehole surface; legacy treehole rules above are intentionally overridden. */
.treehole-page.th344{width:calc(100vw - 32px)!important;max-width:none!important;margin:94px 16px 56px!important;min-height:calc(100vh - 150px);background:linear-gradient(rgba(247,252,249,.3),rgba(247,252,249,.86)),url('backscrean/流萤Firefly.png') center/cover fixed!important}.th344-layout{display:grid;grid-template-columns:250px minmax(0,1fr) 270px;gap:24px;max-width:1720px;margin:auto;padding:28px}.th344-nav,.th344-feed,.th344-guide,.th344-post,.th344-replies{border:1px solid rgba(14,82,55,.12);border-radius:22px;box-shadow:0 14px 38px rgba(6,47,29,.09)}.th344-nav{position:sticky;top:100px;align-self:start;padding:22px;background:linear-gradient(rgba(0,139,85,.7),rgba(0,139,85,.7)),url('backscrean/流萤Firefly.png') center/cover;color:#fff}.th344-brand small{display:block;font-size:10px;font-weight:900;letter-spacing:.08em}.th344-brand b{display:block;margin:4px 0 20px;font-size:32px}.th344-nav button{display:flex;align-items:center;gap:9px;width:100%;margin:4px 0;border:0;border-radius:12px;padding:11px 12px;background:transparent;color:#fff;font:inherit;font-weight:800;text-align:left;cursor:pointer}.th344-nav button:hover{background:rgba(255,255,255,.17)}.th344-nav .th344-new{justify-content:center;margin-bottom:12px;background:#fff;color:#008b58}.th344-new svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:2.5}.th344-nav-foot{margin-top:18px;padding-top:16px;border-top:1px solid rgba(255,255,255,.55);font-size:12px;font-weight:700}.th344-feed{padding:24px;background:rgba(255,255,255,.94)}.th344-feed header{display:flex;justify-content:space-between;align-items:end;gap:12px}.th344-feed header p{margin:0;color:#008b58;font-size:12px;font-weight:900;letter-spacing:.08em}.th344-feed h1{margin:5px 0 0;color:#16251b;font-size:clamp(32px,4vw,48px);line-height:1}.th344-feed header>span{color:#849187;font-size:13px}.th344-filter{display:flex;flex-wrap:wrap;gap:8px;margin:24px 0 16px}.th344-filter button,.th344-guide button{border:1px solid #dcece2;border-radius:999px;padding:7px 11px;background:#fff;color:#50645a;font:inherit;font-size:12px;cursor:pointer}.th344-filter button.active,.th344-filter button:hover,.th344-guide button:hover{border-color:#00965e;background:#eaf8f0;color:#008b58}.th344-list{display:grid;gap:12px}.th344-card{position:relative;overflow:hidden;min-height:174px;border:1px solid #e1ece5;border-radius:18px;background:#fff;transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease}.th344-card:hover{border-color:#8bd3ad;box-shadow:0 12px 26px rgba(4,74,42,.1);transform:translateY(-2px)}.th344-card-open{display:block;width:100%;min-height:174px;border:0;padding:20px 20px 54px 20px;background:transparent;color:#15241a;text-align:left;cursor:pointer}.th344-card h2{margin:0;overflow:hidden;font-size:22px;text-overflow:ellipsis;white-space:nowrap}.th344-tags{margin:7px 0!important;color:#89938e!important;font-size:12px!important}.th344-preview{margin:0;max-width:80%;overflow:hidden;color:#55645c;font-size:14px;line-height:1.5;text-overflow:ellipsis;white-space:nowrap}.th344-stats{position:absolute;right:18px;bottom:16px;display:flex;gap:11px;color:#7c8b82;font-size:12px}.th344-author,.th344-reply-author{position:absolute;left:18px;bottom:14px;display:flex;align-items:center;gap:7px;border:0;background:transparent;color:#55675d;font:inherit;font-size:12px;font-weight:800;cursor:pointer}.th344-author img,.th344-reply-author img{width:25px;height:25px;border-radius:50%;object-fit:cover}.th344-guide{position:sticky;top:100px;align-self:start;padding:20px;background:rgba(255,255,255,.93)}.th344-guide h3{margin:0 0 10px;color:#18261d}.th344-guide h3+ p{margin:0 0 22px;color:#64746a;font-size:13px;line-height:1.65}.th344-guide div{display:flex;flex-wrap:wrap;gap:6px}.th344-modal[hidden]{display:none!important}.th344-modal{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;padding:16px;background:rgba(5,24,15,.48);backdrop-filter:blur(10px)}.th344-dialog{position:relative;width:min(720px,100%);padding:28px;border-radius:24px;background:#fff;box-shadow:0 30px 100px rgba(0,0,0,.3)}.th344-dialog>p{margin:0;color:#008b58;font-size:11px;font-weight:900;letter-spacing:.08em}.th344-dialog h2{margin:4px 0 18px;font-size:34px}.th344-close{position:absolute;right:16px;top:12px;width:36px;height:36px;border:0;border-radius:50%;background:#f3f6f4;font-size:25px;cursor:pointer}.th344-dialog input,.th344-dialog textarea,.th344-dialog select,.th344-replies input{box-sizing:border-box;width:100%;border:1px solid #d8e7dd;border-radius:12px;padding:12px;font:inherit}.th344-dialog textarea{min-height:160px;margin-top:10px;resize:vertical}.th344-compose-tools{display:flex;align-items:center;gap:9px;margin-top:12px}.th344-compose-tools select{width:auto}.th344-upload{color:#087e50;font-size:13px;font-weight:850;cursor:pointer}.th344-publish,.th344-replies form button{margin-left:auto;border:0;border-radius:11px;padding:11px 18px;background:#00965e;color:#fff;font:inherit;font-weight:850;cursor:pointer}.th344-lock{overflow:hidden}.th344-thread{width:min(940px,calc(100vw - 32px));margin:0 auto;padding:28px}.th344-back{margin:0 0 14px;border:0;background:transparent;color:#007f50;font:inherit;font-weight:850;cursor:pointer}.th344-post,.th344-replies{padding:28px;margin-bottom:16px;background:rgba(255,255,255,.95)}.th344-post-tag{color:#008b58;font-size:13px;font-weight:850}.th344-post h1{margin:10px 0 16px;color:#132219;font-size:clamp(30px,5vw,48px);line-height:1.13}.th344-post-author{position:relative;display:flex;align-items:center;min-height:32px;padding-left:0}.th344-post-author .th344-author{position:static}.th344-post-author time{margin-left:12px;color:#87938c;font-size:12px}.th344-body{color:#405247;line-height:1.85}.th344-post>img{display:block;max-width:100%;max-height:600px;margin-top:18px;border-radius:16px}.th344-replies h2{margin:0 0 12px}.th344-reply{position:relative;display:grid;grid-template-columns:42px 1fr;gap:10px;min-height:68px;padding:14px 0 13px 0;border-bottom:1px solid #edf2ee}.th344-reply-author{position:static;align-self:start;padding:0}.th344-reply-author span{display:none}.th344-reply-author img{width:34px;height:34px}.th344-reply-meta{font-size:13px;font-weight:850;color:#28392f}.th344-reply-meta:before{content:attr(data-name)}.th344-reply-meta span{color:#8a968e;font-size:11px;font-weight:400}.th344-reply p{margin:5px 0;color:#53645a;line-height:1.6}.th344-reply-actions{display:flex;gap:8px}.th344-reply-actions button{display:flex;align-items:center;gap:4px;border:0;background:transparent;color:#718076;font:inherit;font-size:12px;cursor:pointer}.th344-reply-actions svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8}.th344-replies form{display:flex;gap:9px;margin-top:16px}.th344-replies form button{margin-left:0}@media(max-width:1120px){.th344-layout{grid-template-columns:220px minmax(0,1fr)}.th344-guide{display:none}}@media(max-width:760px){.treehole-page.th344{width:100%!important;margin:74px 0 30px!important}.th344-layout{grid-template-columns:1fr;gap:12px;padding:10px}.th344-nav{position:static;display:grid;grid-template-columns:1fr 1fr;gap:3px;padding:14px}.th344-brand{grid-column:1/-1}.th344-brand b{font-size:26px;margin-bottom:4px}.th344-nav-foot{display:none}.th344-feed{padding:17px}.th344-card,.th344-card-open{min-height:160px}.th344-card h2{font-size:18px}.th344-preview{max-width:100%}.th344-stats{right:12px}.th344-author{left:12px}.th344-dialog{padding:22px 16px}.th344-compose-tools{align-items:stretch;flex-wrap:wrap}.th344-compose-tools select{flex:1;width:auto}.th344-publish{margin-left:0}.th344-thread{width:100%;padding:12px}.th344-post,.th344-replies{padding:18px}.th344-replies form{flex-wrap:wrap}.th344-replies form button{width:100%}}
