/* My Space Dashboard Styles */
.my-space-page {
  padding-top: 7.5rem;
  height: 100vh;
  background-color: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Modifier class for pages without global header */
.my-space-page.no-header {
  padding-top: 0;
}

.my-space-layout {
  display: flex;
  flex: 1;
  min-height: 0;
  border-top: 1px solid #DEE0E3;
}

.my-space-page.no-header .my-space-layout {
  flex: 1;
  min-height: 0;
  border-top: none;
}

.my-space-sidebar {
  width: 15rem;
  flex-shrink: 0;
  border-right: 1px solid #DEE0E3;
  display: flex;
  flex-direction: column;
  background-color: #fff;
  overflow-y: auto;
  
}

.sidebar-header {
  padding: 2rem 1.5rem 1rem;
}

.sidebar-title h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #101010;
  margin: 0 0 0.25rem 0;
}

.sidebar-title p {
  font-size: 0.75rem;
  color: #878C96;
  margin: 0 0 1.5rem 0;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
}

.user-avatar-circle {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 2px solid #000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.user-avatar-circle .inner-dot {
  width: 0.75rem;
  height: 0.75rem;
  background-color: #000;
  border-radius: 50%;
}

.user-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
}

.user-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: #101010;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-email {
  font-size: 0.75rem;
  color: #878C96;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notification-icon {
  position: relative;
  color: #878C96;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  padding: 1rem 0;
  flex: 1;
}

.sidebar-nav a {
  padding: 0.625rem 1.5rem;
  font-size: 0.875rem;
  color: #878C96;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
  transition: all 0.2s;
}

.sidebar-nav a:hover {
  background-color: #FAFAFA;
  color: #101010;
}

.sidebar-nav a .indicator {
  opacity: 0;
  color: #000;
  font-size: 0.75rem;
  position: absolute;
  left: 1.5rem;
}

.sidebar-nav a.active {
  color: #101010;
  font-weight: 500;
}

.sidebar-nav a.active .indicator {
  opacity: 1;
}

.sidebar-nav a.active {
  padding-left: 2.75rem;
}

.sidebar-footer {
  padding: 1.5rem;
  border-top: 1px solid #DEE0E3;
}

.footer-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
}

.my-space-logout {
  width: 100%;
  margin-top: 1rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid #dee0e3;
  border-radius: 8px;
  background: #fff;
  color: #535862;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.my-space-logout:hover,
.my-space-logout:focus-visible {
  border-color: #b8bdc7;
  background: #fafafa;
  color: #101010;
  outline: none;
}

.user-avatar-small {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background-color: #E9EAEC;
  color: #878C96;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
}

.footer-user .user-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: #101010;
}

/* Main Content Area */
.my-space-content {
  flex: 1;
  min-width: 0;
  padding: 3rem 4rem;
  background-color: #fff;
  overflow-y: auto;
  overflow-x: hidden;
}

.profile-header-actions {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 3rem;
}

.btn-outline {
  border: 1px solid #DEE0E3;
  background: #fff;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #101010;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-outline:hover {
  background: #FAFAFA;
}

.profile-details {
  max-width: 600px;
}

.profile-cover-preview {
  width: 100%;
  aspect-ratio: 5 / 2;
  margin-bottom: 2rem;
  border: 1px solid #DEE0E3;
  border-radius: 8px;
  background: #F5F5F4;
  overflow: hidden;
}

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

.profile-avatar-large {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  background-color: #E9EAEC;
  color: #878C96;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 2rem;
  background-position: center;
  background-size: cover;
}

.profile-avatar-large.has-image {
  color: transparent;
  border: 1px solid #DEE0E3;
}

.profile-name {
  font-size: 1.5rem;
  font-weight: 600;
  color: #101010;
  margin: 0 0 0.5rem 0;
}

.profile-subtitle {
  font-size: 1rem;
  color: #535862;
  margin: 0 0 3rem 0;
}

.profile-info-group {
  margin-bottom: 2rem;
}

.profile-info-group label {
  display: block;
  font-size: 0.75rem;
  color: #878C96;
  margin-bottom: 0.5rem;
}

.profile-info-group p {
  font-size: 0.875rem;
  color: #101010;
  line-height: 1.6;
  margin: 0;
}

.profile-stats {
  display: flex;
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid #DEE0E3;
}

.stat-item {
  font-size: 0.875rem;
  color: #535862;
}

.stat-item strong {
  color: #101010;
  font-weight: 600;
}

/* Edit Profile Styles */
.profile-edit-container {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.profile-edit-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.btn-primary {
  background: #14151A;
  color: #fff;
  border: none;
  padding: 0.625rem 1.25rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-primary:hover {
  background: #333;
}

.btn-cancel {
  color: #101010;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-cancel:hover {
  text-decoration: underline;
}

.profile-edit-avatar-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.profile-edit-media-grid {
  display: grid;
  grid-template-columns: 8rem minmax(0, 1fr);
  align-items: end;
  gap: 1.25rem;
}

.profile-edit-cover-section {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 1rem;
}

.profile-edit-cover-section .profile-cover-preview {
  margin-bottom: 0;
}

.btn-change-photo {
  background: transparent;
  border: none;
  color: #101010;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  width: fit-content;
}

.btn-change-photo:hover {
  text-decoration: underline;
}

.profile-edit-form {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.form-group-line {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group-line label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #535862;
}

.form-group-line input,
.profile-textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid #DEE0E3;
  padding: 0.5rem 0;
  font-size: 1.25rem;
  font-family: inherit;
  color: #101010;
  background: transparent;
  outline: none;
}

.profile-textarea {
  min-height: 6.5rem;
  resize: vertical;
  line-height: 1.5;
}

.form-group-line input:focus,
.profile-textarea:focus {
  border-bottom-color: #101010;
}

.form-group-line input.text-optional {
  color: #878C96;
}

.form-group-line .field-hint {
  font-size: 0.75rem;
  color: #878C96;
  margin-top: 0.25rem;
}

.my-space-mobile-header {
  display: none;
}

@media (max-width: 68.75rem) {
  .my-space-layout {
    flex-direction: column;
  }

  .my-space-mobile-header {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #E5E5E5;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 30;
  }

  .my-space-breadcrumb-toggle {
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #101828;
  }

  .my-space-mobile-title {
    font-size: 1rem;
    font-weight: 600;
  }

  .my-space-mobile-title .separator {
    color: #878C96;
    margin: 0 0.25rem;
  }

  .my-space-mobile-title .current-page {
    color: #101828;
  }

  .my-space-sidebar {
    display: block !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: #fff;
    z-index: 9999;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
  }

  .my-space-sidebar.is-open {
    transform: translateX(0);
  }

  .my-space-sidebar-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.4);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .my-space-sidebar-backdrop.is-visible {
    display: block;
    opacity: 1;
  }

  .my-space-content {
    padding: 2rem 1.5rem;
  }

  .profile-edit-media-grid {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .profile-edit-actions {
    gap: 1rem;
    flex-wrap: wrap;
  }

  .profile-cover-preview {
    aspect-ratio: 16 / 7;
  }
}

/* Fix for Profile pages global header z-index overlap */
body.my-space-sidebar-open .site-header {
  z-index: 10 !important;
}

body.my-space-sidebar-open main.my-space-page {
  position: relative;
  z-index: 9999;
}

/* My Space Works Grid */
.works-content-area {
  background-color: #FAFAFA;
}

.works-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.works-page-title {
  font-size: 2rem;
  font-weight: 500;
  color: #101828;
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.btn-black.btn-add-work {
  background: #1C1917;
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-black.btn-add-work:hover {
  background: #333;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 68.75rem) {
  .works-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 48rem) {
  .works-grid {
    grid-template-columns: 1fr;
  }
}

.myspace-work-card {
  background: transparent;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.work-card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: #E7E5E4;
  border-radius: 4px;
  overflow: hidden;
}

.work-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-status-badge {
  position: absolute;
  top: 0.625rem;
  right: 0.625rem;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.625rem;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  color: #fff;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
}

.work-status-badge.available {
  background: rgba(255, 255, 255, 0.9);
  color: #44403B;
}

.work-card-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.work-card-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.work-card-title-row h3 {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: #171717;
  margin: 0;
  line-height: 1.42;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.work-badge {
  font-family: 'Inter', sans-serif;
  font-size: 0.6875rem;
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
  font-weight: 400;
}

.work-badge.published {
  background: #1C1917;
  color: #fff;
}

.work-badge.draft {
  background: transparent;
  color: #79716B;
}

.work-badge.review {
  background: transparent;
  color: #F59E0B;
}

.work-badge.collaboration {
  background: transparent;
  color: #3B82F6;
}

.work-card-toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.75rem;
  border-top: 1px solid #F5F5F4;
}

.toggle-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.toggle-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.6875rem;
  color: #1C1917;
  font-weight: 500;
}

.toggle-sub {
  font-family: 'Inter', sans-serif;
  font-size: 0.625rem;
  color: #79716B;
  font-weight: 400;
}

/* Switch Component */
.switch {
  position: relative;
  display: inline-block;
  width: 28.8px;
  height: 16.2px;
}

.switch input { 
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #CBCED4;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 14.2px;
  width: 14.2px;
  left: 1px;
  bottom: 1px;
  background-color: white;
  transition: .4s;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

input:checked + .slider {
  background-color: #1C1917;
}

input:checked + .slider:before {
  transform: translateX(12.6px);
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

/* Submit Modal Styles */
.submit-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.submit-modal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.submit-modal {
  background: #fff;
  width: 100%;
  max-width: 768px;
  max-height: 90vh;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 24px -4px rgba(16, 24, 40, 0.08), 0 8px 8px -4px rgba(16, 24, 40, 0.03);
}

.submit-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 2rem 2rem 1.5rem 2rem;
  border-bottom: 1px solid #E7E5E4;
}

.submit-modal-title-wrap h2 {
  font-size: 1.5rem;
  font-weight: 500;
  color: #1C1917;
  margin: 0 0 0.25rem 0;
  letter-spacing: -0.02em;
}

.submit-modal-title-wrap p {
  font-size: 0.875rem;
  color: #79716B;
  margin: 0;
}

.btn-close-modal {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.btn-close-modal:hover {
  background: #F5F5F4;
}

.submit-modal-body {
  padding: 2rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  scrollbar-width: none; /* Firefox */
}

.submit-modal-body::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}

.submit-image-previews {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.preview-item {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
}

.preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #1C1917;
}

.upload-area {
  border: 2px dashed #E7E5E4;
  border-radius: 10px;
  height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: border-color 0.2s;
  background: #FAFAFA;
}

.upload-area:hover {
  border-color: #D6D3D1;
}

.upload-title {
  font-size: 0.875rem;
  font-weight: 500;
  color: #1C1917;
  margin-top: 0.5rem;
}

.upload-sub {
  font-size: 0.75rem;
  color: #79716B;
}

.upload-error {
  font-size: 0.75rem;
  color: #B42318;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.input-wrapper input {
  width: 100%;
  border: 1px solid #E7E5E4;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: #1C1917;
  outline: none;
  font-family: inherit;
}

.input-wrapper input::placeholder {
  color: #A8A29E;
}

.input-wrapper input:focus {
  border-color: #1C1917;
}

.select-wrapper input {
  padding-right: 2.5rem;
  cursor: pointer;
  background-color: transparent;
}

.select-icon {
  position: absolute;
  right: 1rem;
  pointer-events: none;
  transition: transform 0.2s ease;
}

.select-wrapper.is-open .select-icon {
  transform: rotate(180deg);
}

.custom-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  width: 100%;
  background: #fff;
  border: 1px solid #E7E5E4;
  border-radius: 8px;
  box-shadow: 0 10px 15px -3px rgba(16, 24, 40, 0.1), 0 4px 6px -4px rgba(16, 24, 40, 0.05);
  z-index: 10;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  max-height: 200px;
  overflow-y: auto;
}

.select-wrapper.is-open .custom-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: #1C1917;
  cursor: pointer;
  transition: background 0.2s;
}

.dropdown-item:hover {
  background: #FAFAFA;
}

.dropdown-item:not(:last-child) {
  border-bottom: 1px solid #F5F5F4;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.collaboration-toggle-group {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid #E7E5E4;
}

.work-identity-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: #1c1917;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
}

.work-identity-toggle input {
  accent-color: #1c1917;
  height: 1rem;
  width: 1rem;
}

.collab-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.collab-title {
  font-size: 0.875rem;
  font-weight: 500;
  color: #1C1917;
}

.collab-sub {
  font-size: 0.75rem;
  color: #79716B;
}

.submit-modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-top: 1px solid #E7E5E4;
  background: #fff;
}

.btn-cancel {
  background: transparent;
  border: none;
  color: #535862;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
}

.btn-cancel:hover {
  color: #1C1917;
}

.submit-footer-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.submit-notice {
  font-size: 0.75rem;
  color: #79716B;
}

.btn-submit {
  background: #1C1917;
  color: #fff;
  border: none;
  padding: 0.625rem 1.25rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-submit:hover {
  background: #333;
}

@media (max-width: 48rem) {
  .submit-modal-footer {
    padding: 1rem 2rem;
    gap: 1rem;
  }

  .submit-footer-right {
    flex: 1;
    justify-content: flex-end;
    gap: 0;
    min-width: 0;
  }

  .submit-notice {
    display: none;
  }

  .submit-modal-footer .btn-submit {
    min-width: 10rem;
    white-space: nowrap;
  }
}

/* My Space Curations Grid */
.curations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 68.75rem) {
  .curations-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 48rem) {
  .curations-grid {
    grid-template-columns: 1fr;
  }
}

.curation-card {
  display: flex;
  flex-direction: column;
  background: transparent;
}

.curation-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: #E7E5E4;
  overflow: hidden;
  margin-bottom: 1rem;
}

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

.curation-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.curation-date {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  color: #79716B;
}

.curation-title {
  font-family: 'Inter', sans-serif;
  font-size: 1.125rem;
  font-weight: 500;
  color: #171717;
  margin: 0;
}

.curation-desc {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  color: #79716B;
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.curation-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #12B76A;
  color: #12B76A;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  width: fit-content;
  margin-top: 0.25rem;
}

.curation-badge svg {
  flex-shrink: 0;
}

/* My Space Add Curation */
.curation-sticky-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: #FAFAFA;
  padding: 1.5rem 0;
  border-bottom: 1px solid #DEE0E3;
}

.curation-sticky-inner {
  max-width: 68rem;
  padding: 0;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

@media (max-width: 68.75rem) {
  .curation-sticky-header {
    padding: 1rem 0;
  }
  .curation-sticky-inner {
    max-width: 100%;
    padding: 0 1.5rem;
  }
}

.curation-add-container {
  max-width: 68rem;
  width: 100%;
  margin: 0 auto;
  padding: 0 0 4rem 0;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (max-width: 68.75rem) {
  .curation-add-container {
    max-width: 100%;
    padding: 0 1.5rem 4rem 1.5rem;
  }
}

.curation-add-actions {
  display: flex;
  gap: 1rem;
}

.curation-form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.form-group-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: #79716B;
}

.form-input {
  width: 100%;
  border: 1px solid #E7E5E4;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: #1C1917;
  outline: none;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.2s;
}

.form-input::placeholder {
  color: #A8A29E;
}

.form-input:focus {
  border-color: #1C1917;
}

.btn-outline {
  background: transparent;
  border: 1px solid #E7E5E4;
  padding: 0.625rem 1.25rem;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: #171717;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-outline:hover {
  background: #FAFAFA;
}

.upload-cover {
  width: 100%;
  aspect-ratio: 21 / 9;
  border: 1px dashed #E7E5E4;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  background: #FAFAFA;
  transition: border-color 0.2s;
  color: #79716B;
  font-size: 0.875rem;
  font-weight: 500;
  margin-top: 0.5rem;
}

.upload-cover:hover {
  border-color: #D6D3D1;
}

.form-textarea {
  width: 100%;
  border: 1px solid #E7E5E4;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: #1C1917;
  outline: none;
  font-family: inherit;
  min-height: 120px;
  resize: vertical;
}

.form-textarea::placeholder {
  color: #A8A29E;
}

.form-textarea:focus {
  border-color: #1C1917;
}

.content-block {
  border: 1px solid #E5E5E5;
  border-radius: 10px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  background: transparent;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}

.content-block.dragging {
  opacity: 0.5;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  transform: scale(1.02);
  z-index: 10;
}

.content-block.drag-over {
  border-top: 2px solid #1C1917;
}

.content-block-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.content-block-title {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 400;
  color: #737373;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.content-block-actions {
  display: flex;
  gap: 0.75rem;
  color: #737373;
}

.content-block-actions button {
  background: transparent;
  border: none;
  cursor: pointer;
  color: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: color 0.2s;
}

.content-block-actions button:hover {
  color: #171717;
}

.content-block .form-textarea {
  border: none;
  padding: 0;
  min-height: 80px;
  color: #171717;
}

.btn-add-block {
  width: 100%;
  padding: 1rem;
  border: 2px dashed #E5E5E5;
  border-radius: 10px;
  background: transparent;
  color: #525252;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-add-block:hover {
  border-color: #D4D4D4;
  background: #FAFAFA;
}

/* My Space Logbook Grid */
.logbook-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 68.75rem) {
  .logbook-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 48rem) {
  .logbook-grid {
    grid-template-columns: 1fr;
  }
}

.logbook-card {
  background: #fff;
  display: flex;
  overflow: hidden;
  flex-direction: column;
}

.logbook-card-image {
  width: 100%;
  aspect-ratio: 1.5 / 1;
  background-color: #F5F5F4;
  overflow: hidden;
}

.logbook-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logbook-card-content {
  padding: 1.25rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.logbook-card-date {
  font-size: 0.75rem;
  color: #79716B;
  font-family: 'Inter', sans-serif;
}

.logbook-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #171717;
  margin: 0;
  font-family: 'Inter', sans-serif;
  line-height: 1.3;
}

.logbook-card-desc {
  font-size: 0.875rem;
  color: #79716B;
  margin: 0;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-family: 'Inter', sans-serif;
}

.logbook-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.logbook-tag {
  font-size: 0.75rem;
  color: #79716B;
  background: #F5F5F4;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
}

/* My Space People */
.people-tabs {
  display: flex;
  gap: 2rem;
  border-bottom: 1px solid #DEE0E3;
  width: 100%;
}

.people-tab {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0.5rem 0;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  color: #79716B;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.people-tab.active {
  color: #171717;
  font-weight: 500;
  border-bottom-color: #171717;
}

.people-tab:focus-visible {
  outline: 2px solid #171717;
  outline-offset: 4px;
}

.people-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.people-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  min-width: 0;
  padding: 0.875rem 1rem;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.people-item:hover {
  border-color: #C9CDD4;
  background: #FAFAF9;
  transform: translateY(-1px);
}

.people-item:focus-visible {
  outline: 2px solid #171717;
  outline-offset: 3px;
}

.people-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: #F5F5F4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  color: #525252;
  flex-shrink: 0;
  overflow: hidden;
}

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

.people-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
  flex: 1;
}

.people-name {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: #171717;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.people-role {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  color: #79716B;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.people-relationship {
  flex-shrink: 0;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  background: #F5F5F4;
  color: #525252;
  font-family: 'Inter', sans-serif;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}

@media (max-width: 48rem) {
  .people-tabs {
    gap: 1.25rem;
  }

  .people-item {
    gap: 0.75rem;
    padding: 0.75rem;
  }

  .people-avatar {
    width: 42px;
    height: 42px;
  }

  .people-relationship {
    max-width: 6.75rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

.selected-work-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid #E5E5E5;
  border-radius: 10px;
  background: #fff;
}

.selected-work-img {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  background: #F5F5F4;
  object-fit: cover;
  flex-shrink: 0;
}

.selected-work-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.selected-work-info h4 {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  color: #171717;
  font-weight: 500;
  line-height: 1.2;
}

.selected-work-info p {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  color: #737373;
  line-height: 1.2;
}


/* My Space Saved Page Styles */
.saved-tabs-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.saved-tab {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  background: #F4F4F4;
  color: #666666;
  transition: all 0.2s;
}

.saved-tab:hover {
  background: #EAEAEA;
}

.saved-tab.active {
  background: #101828;
  color: #FFFFFF;
}

.saved-tab-content {
  display: none;
}

.saved-tab-content.active {
  display: block;
}

.saved-tab-content .hf-state {
  min-width: 0;
}

/* Saved Artworks Grid */
.saved-artworks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

.saved-artwork-card {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #F4F4F4;
  overflow: hidden;
  min-width: 0;
}

.saved-artwork-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.saved-artwork-card:hover .saved-artwork-img {
  transform: scale(1.05);
}

.saved-artwork-card.is-unavailable {
  background: #f2f4f7;
  color: #344054;
}

.saved-artwork-placeholder {
  align-items: center;
  background: repeating-linear-gradient(-45deg, #f8fafc, #f8fafc 0.75rem, #eef2f6 0.75rem, #eef2f6 1.5rem);
  color: #667085;
  display: flex;
  font-size: 0.875rem;
  height: 100%;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
}

.saved-artwork-card.is-unavailable .saved-artwork-overlay {
  background: linear-gradient(180deg, rgba(16, 24, 40, 0.08) 20%, rgba(16, 24, 40, 0.78) 100%);
}

.saved-unavailable-remove {
  background: #ffffff;
  border: 1px solid #d0d5dd;
  color: #344054;
  cursor: pointer;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.375rem 0.625rem;
}

.saved-unavailable-remove:hover,
.saved-unavailable-remove:focus-visible {
  background: #f9fafb;
  border-color: #98a2b3;
}

.btn-save-heart {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  z-index: 10;
}

.btn-save-heart img {
  width: 2rem;
  height: 2rem;
  filter: drop-shadow(0px 1px 2px rgba(0,0,0,0.15));
}

.saved-artwork-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 48%, rgba(0, 0, 0, 0.5) 100%);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 1.5rem;
  opacity: 1; /* By default the gradient is visible as per Figma design (opacity 0.2 on gradient layer but let's just make text visible) */
}

.saved-artwork-info {
  color: #FFFFFF;
}

.saved-artwork-info h3 {
  font-size: 1.5rem;
  font-weight: 400;
  margin: 0 0 0.25rem 0;
}

.saved-artwork-info p {
  font-size: 1rem;
  margin: 0;
}

.saved-artwork-badge {
  font-size: 0.875rem;
  background: #000000;
  color: #FFFFFF;
  padding: 0.125rem 0.5rem;
  border-radius: 0;
  margin-bottom: 0.25rem;
}

/* Saved Curations Grid */
.curations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

.curation-card {
  display: flex;
  flex-direction: column;
  background: #FAFAFA;
  min-width: 0;
}

.curation-image {
  width: 100%;
  height: 442px;
  background: #D9D9D9;
}

.curation-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.curation-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.curation-date {
  font-size: 1.25rem;
  color: #666666;
  margin-bottom: 0.5rem;
}

.curation-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #101828;
  margin: 0 0 0.5rem 0;
}

.curation-author {
  font-size: 1.25rem;
  color: #666666;
  margin: 0 0 0.5rem 0;
}

.curation-desc {
  font-size: 1rem;
  color: #4A5565;
  margin: 0;
  line-height: 1.5;
}


.saved-tab-content .logbook-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 100%;
}

@media (max-width: 68.75rem) {
  .saved-artworks-grid,
  .curations-grid,
  .saved-tab-content .logbook-grid,
  .events-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .project-card {
    flex-direction: column;
    padding: 1.5rem;
  }
  .project-image {
    width: 100%;
  }
  .project-content {
    padding-right: 0;
  }
}
@media (max-width: 48rem) {
  .saved-artworks-grid,
  .curations-grid,
  .saved-tab-content .logbook-grid,
  .events-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .my-space-page .my-space-content {
    padding: 2rem 1.5rem;
  }

  .saved-artworks-grid,
  .curations-grid,
  .saved-tab-content .logbook-grid,
  .events-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .events-grid > .hf-state {
    grid-column: 1 / -1;
    width: 100%;
  }
}

/* Saved Projects Tab */
.projects-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.project-card {
  display: flex;
  align-items: center;
  padding: 1.5rem;
  gap: 2.5rem;
  color: #fff;
  min-width: 0;
}

.project-image {
  flex-shrink: 0;
  width: 50%;
  aspect-ratio: 16 / 9;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  padding-right: 2rem;
}

.project-title {
  font-size: 3rem;
  font-weight: 500;
  margin: 0 0 1.5rem 0;
  line-height: 1.1;
}

.project-desc {
  font-size: 1.125rem;
  line-height: 1.6;
  margin: 0 0 2rem 0;
  opacity: 0.9;
}

.btn-project-view {
  background: #fff;
  color: #000;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  text-transform: uppercase;
}

/* Saved Events Tab */
.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.event-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.event-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #f4f4f4;
  margin-bottom: 1.25rem;
}

.event-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-info {
  display: flex;
  flex-direction: column;
}

.event-date {
  font-size: 1rem;
  color: #666;
  margin-bottom: 0.75rem;
}

.event-title {
  font-size: 1.75rem;
  font-weight: 600;
  color: #101828;
  margin: 0 0 0.5rem 0;
}

.event-author {
  font-size: 1.125rem;
  color: #666;
  margin: 0 0 0.75rem 0;
}

.event-desc {
  font-size: 1rem;
  color: #4A5565;
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 700px) {
  .events-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}



﻿/* Global Image Card Hover Effects */
.work-card, .logbook-card-image, .curation-image, .myspace-work-card .work-card-image, .gallery-card__image, .stream-image, .work-image-container, .logbook-detail-large-image {
  position: relative;
  overflow: visible;
  clip-path: inset(-50% 0 0 0);
}

.work-card img, .logbook-card-image img, .curation-image img, .myspace-work-card .work-card-image img, .gallery-card__image img, .stream-image img, .work-image-container img {
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), clip-path 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  clip-path: inset(0%);
}

.work-card:hover img, .logbook-card:hover .logbook-card-image img, .curation-card:hover .curation-image img, .myspace-work-card:hover .work-card-image img, .gallery-card:hover .gallery-card__image img, .stream-card:hover .stream-image img, .work-card:hover .work-image-container img {
  transform: scale(1.05);
  clip-path: inset(2.38095%);
}

.work-card::after, .logbook-card-image::after, .curation-image::after, .myspace-work-card .work-card-image::after, .gallery-card__image::after, .stream-image::after, .work-image-container::after,
.work-card::before, .logbook-card-image::before, .curation-image::before, .myspace-work-card .work-card-image::before, .gallery-card__image::before, .stream-image::before, .work-image-container::before,
.work-card__content::after, .logbook-card__content::after, .curation-card__content::after, .myspace-work-card__content::after, .gallery-card__content::after, .stream-card__content::after, .work-card__content::after, .wave-overlay::after,
.work-card__content::before, .logbook-card__content::before, .curation-card__content::before, .myspace-work-card__content::before, .gallery-card__content::before, .stream-card__content::before, .work-card__content::before, .wave-overlay::before {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  width: 220%;
  height: 220%;
  transform: translate(-50%, 0) rotate(0deg);
  pointer-events: none;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  background: transparent;
}

.work-card::after, .logbook-card-image::after, .curation-image::after, .myspace-work-card .work-card-image::after, .gallery-card__image::after, .stream-image::after, .work-image-container::after {
  border-radius: 43%;
  box-shadow: inset 0 0 20px 10px rgba(255, 255, 255, 0.3);
  transition-duration: 1s;
  z-index: 2;
}

.work-card::before, .logbook-card-image::before, .curation-image::before, .myspace-work-card .work-card-image::before, .gallery-card__image::before, .stream-image::before, .work-image-container::before {
  border-radius: 46%;
  box-shadow: inset 0 0 15px 8px rgba(255, 255, 255, 0.2);
  transition-duration: 0.8s;
  z-index: 1;
}

.work-card__content::after, .logbook-card__content::after, .curation-card__content::after, .myspace-work-card__content::after, .gallery-card__content::after, .stream-card__content::after, .work-card__content::after, .wave-overlay::after {
  border-radius: 41%;
  box-shadow: inset 0 0 25px 12px rgba(255, 255, 255, 0.4);
  transition-duration: 0.6s;
  z-index: -2;
}

.work-card:hover::after, .logbook-card:hover .logbook-card-image::after, .curation-card:hover .curation-image::after, .myspace-work-card:hover .work-card-image::after, .gallery-card:hover .gallery-card__image::after, .stream-card:hover .stream-image::after, .work-card:hover .work-image-container::after {
  transform: translate(-50%, -60%) rotate(0deg);
}

.work-card:hover::before, .logbook-card:hover .logbook-card-image::before, .curation-card:hover .curation-image::before, .myspace-work-card:hover .work-card-image::before, .gallery-card:hover .gallery-card__image::before, .stream-card:hover .stream-image::before, .work-card:hover .work-image-container::before {
  transform: translate(-50%, -65%) rotate(0deg);
}

.work-card:hover .work-card__content::after, .logbook-card:hover .logbook-card__content::after, .curation-card:hover .curation-card__content::after, .myspace-work-card:hover .myspace-work-card__content::after, .gallery-card:hover .gallery-card__content::after, .stream-card:hover .stream-card__content::after, .work-card:hover .work-card__content::after, .logbook-card:hover .wave-overlay::after, .curation-card:hover .wave-overlay::after, .myspace-work-card:hover .wave-overlay::after, .gallery-card:hover .wave-overlay::after, .stream-card:hover .wave-overlay::after, .work-image-container:hover .wave-overlay::after {
  transform: translate(-50%, -70%) rotate(0deg);
}


/* Wave Spatial Vignette Overlay */
.work-card__content, .logbook-card__content, .curation-card__content, .myspace-work-card__content, .gallery-card__content, .stream-card__content, .wave-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 52%, rgba(0, 0, 0, 0.54) 100%);
}

.work-card:hover .work-card__content, .logbook-card:hover .logbook-card__content, .curation-card:hover .curation-card__content, .myspace-work-card:hover .myspace-work-card__content, .gallery-card:hover .gallery-card__content, .stream-card:hover .stream-card__content, .logbook-card:hover .wave-overlay, .curation-card:hover .wave-overlay, .myspace-work-card:hover .wave-overlay, .gallery-card:hover .wave-overlay, .stream-card:hover .wave-overlay, .work-image-container:hover .wave-overlay {
  box-shadow: inset 150px 0 100px -50px rgba(0,0,0,0.9), inset -150px 0 100px -50px rgba(0,0,0,0.9), inset 0 -100px 100px -50px rgba(255,255,255,0.6);
}


/* --- Fixes for My Space Cards (No black overlay, no overflow) --- */
.my-space-page .wave-overlay,
.my-space-page .curation-card__content,
.my-space-page .myspace-work-card__content,
.my-space-page .logbook-card__content,
.my-space-page .gallery-card__content,
.my-space-page .stream-card__content,
.my-space-page .work-card__content,
.my-space-page .logbook-card:hover .wave-overlay,
.my-space-page .curation-card:hover .wave-overlay,
.my-space-page .myspace-work-card:hover .wave-overlay,
.my-space-page .gallery-card:hover .wave-overlay,
.my-space-page .stream-card:hover .wave-overlay,
.my-space-page .work-image-container:hover .wave-overlay {
    background: transparent !important;
    box-shadow: none !important;
}

.my-space-page .curation-image,
.my-space-page .myspace-work-card .work-card-image,
.my-space-page .logbook-card-image,
.my-space-page .gallery-card__image,
.my-space-page .stream-image,
.my-space-page .work-image-container,
.my-space-page .work-card {
    overflow: hidden !important;
    clip-path: none !important;
}

.my-space-page .curation-image img,
.my-space-page .myspace-work-card .work-card-image img,
.my-space-page .logbook-card-image img,
.my-space-page .gallery-card__image img,
.my-space-page .stream-image img,
.my-space-page .work-image-container img,
.my-space-page .work-card img {
    clip-path: none !important;
}

/* Space pin controls */
.space-pins-panel {
  max-width: 760px;
  margin-top: 3rem;
  padding: 1.25rem;
  border: 1px solid #DEE0E3;
  border-radius: 8px;
  background: #FAFAFA;
}

.space-pins-panel header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #E7E5E4;
}

.space-pins-panel h2 {
  margin: 0 0 0.25rem 0;
  color: #101010;
  font-size: 1rem;
  font-weight: 650;
}

.space-pins-panel p {
  max-width: 34rem;
  margin: 0;
  color: #667085;
  font-size: 0.8125rem;
  line-height: 1.5;
}

.space-pin-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.space-pin-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem;
  border: 1px solid #E7E5E4;
  border-radius: 8px;
  background: #fff;
}

.space-pin-row strong,
.space-pin-row span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.space-pin-row strong {
  color: #101010;
  font-size: 0.875rem;
  font-weight: 650;
}

.space-pin-row span {
  margin-top: 0.25rem;
  color: #667085;
  font-size: 0.75rem;
}

.space-pin-actions,
.space-pin-card-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.space-pin-card-actions {
  margin-top: 1rem;
  padding-top: 0.875rem;
  border-top: 1px solid #E7E5E4;
}

.space-pin-button,
.content-revision-button,
.space-pin-actions button {
  min-height: 2rem;
  padding: 0.375rem 0.75rem;
  border: 1px solid #D0D5DD;
  border-radius: 8px;
  background: #fff;
  color: #344054;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 650;
  line-height: 1;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.space-pin-button:hover,
.content-revision-button:hover,
.space-pin-actions button:hover {
  border-color: #98A2B3;
  background: #F9FAFB;
  color: #101010;
}

.space-pin-button:focus-visible,
.content-revision-button:focus-visible,
.space-pin-actions button:focus-visible {
  outline: 2px solid #101010;
  outline-offset: 2px;
}

.content-revision-button {
  border-color: #101010;
  background: #101010;
  color: #fff;
}

.content-revision-button:hover {
  background: #333;
  color: #fff;
}

.space-pin-button.is-pinned {
  border-color: #101010;
  background: #101010;
  color: #fff;
}

.space-pin-button:disabled,
.content-revision-button:disabled,
.space-pin-actions button:disabled {
  border-color: #EAECF0;
  background: #F5F5F4;
  color: #98A2B3;
  cursor: not-allowed;
}

.space-pin-empty {
  padding: 1rem;
  border: 1px dashed #D0D5DD;
  border-radius: 8px;
  background: #fff;
  color: #667085;
  font-size: 0.875rem;
  line-height: 1.5;
}

.content-revision-modal {
  max-width: 720px;
}

.content-revision-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.content-revision-field,
.content-revision-checkbox {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.4rem;
}

.content-revision-field-wide,
.content-revision-checkbox.content-revision-field-wide {
  grid-column: 1 / -1;
}

.content-revision-field span,
.content-revision-checkbox span {
  color: #44403C;
  font-size: 0.78rem;
  font-weight: 650;
}

.content-revision-field input,
.content-revision-field textarea {
  width: 100%;
  border: 1px solid #D7D3CE;
  border-radius: 8px;
  background: #fff;
  color: #1C1917;
  font: inherit;
  font-size: 0.9rem;
  line-height: 1.5;
  padding: 0.65rem 0.75rem;
}

.content-revision-field textarea {
  min-height: 6rem;
  resize: vertical;
}

.content-revision-field input:focus,
.content-revision-field textarea:focus {
  border-color: #1C1917;
  outline: 2px solid rgba(28, 25, 23, 0.1);
  outline-offset: 1px;
}

.content-revision-checkbox {
  align-items: flex-start;
  flex-direction: row;
  padding: 0.75rem;
  border: 1px solid #E7E5E4;
  border-radius: 8px;
  background: #FAFAF9;
}

.content-revision-checkbox input {
  width: 1rem;
  height: 1rem;
  margin-top: 0.1rem;
  accent-color: #1C1917;
}

.work-asset-manager {
  margin-top: 1rem;
  padding-top: 0.875rem;
  border-top: 1px solid #E7E5E4;
}

.work-asset-manager-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.work-asset-manager-header strong {
  color: #101010;
  font-size: 0.8125rem;
  font-weight: 650;
}

.work-asset-manager-header span {
  color: #667085;
  font-size: 0.75rem;
  line-height: 1.4;
  text-align: right;
}

.work-asset-list {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.work-asset-row {
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem;
  border: 1px solid #E7E5E4;
  border-radius: 8px;
  background: #fff;
}

.work-asset-row img {
  width: 3.25rem;
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  object-fit: cover;
  background: #F5F5F4;
}

.work-asset-meta {
  min-width: 0;
}

.work-asset-meta > strong {
  display: block;
  margin-bottom: 0.5rem;
  color: #101010;
  font-size: 0.8125rem;
  font-weight: 650;
}

.work-asset-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.work-asset-actions button {
  min-height: 2rem;
  padding: 0.375rem 0.65rem;
  border: 1px solid #D0D5DD;
  border-radius: 8px;
  background: #fff;
  color: #344054;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 650;
  line-height: 1;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.work-asset-actions button:hover {
  border-color: #98A2B3;
  background: #F9FAFB;
  color: #101010;
}

.work-asset-actions button:focus-visible {
  outline: 2px solid #101010;
  outline-offset: 2px;
}

.work-asset-actions button:disabled {
  border-color: #EAECF0;
  background: #F5F5F4;
  color: #98A2B3;
  cursor: not-allowed;
}

.my-space-page .curations-grid > .curation-card > img,
.my-space-page .logbook-card > img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #E7E5E4;
  margin-bottom: 1rem;
}

.my-space-page .logbook-card > img {
  aspect-ratio: 3 / 2;
}

.my-space-page .curation-image::before,
.my-space-page .curation-image::after,
.my-space-page .myspace-work-card .work-card-image::before,
.my-space-page .myspace-work-card .work-card-image::after,
.my-space-page .logbook-card-image::before,
.my-space-page .logbook-card-image::after,
.my-space-page .gallery-card__image::before,
.my-space-page .gallery-card__image::after,
.my-space-page .stream-image::before,
.my-space-page .stream-image::after,
.my-space-page .work-image-container::before,
.my-space-page .work-image-container::after,
.my-space-page .work-card::before,
.my-space-page .work-card::after,
.my-space-page .wave-overlay::before,
.my-space-page .wave-overlay::after {
  content: none !important;
  box-shadow: none !important;
}

@media (max-width: 48rem) {
  .space-pins-panel {
    margin-top: 2rem;
    padding: 1rem;
  }

  .space-pin-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .space-pin-actions {
    justify-content: flex-start;
  }

  .content-revision-grid {
    grid-template-columns: 1fr;
  }

  .content-revision-modal {
    max-height: 92vh;
  }

  .work-asset-manager-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .work-asset-manager-header span {
    text-align: left;
  }

  .work-asset-row {
    grid-template-columns: 3rem minmax(0, 1fr);
  }

  .work-asset-row img {
    width: 3rem;
  }
}
