/*
 * Bab Rizq 1.5.0 — باب المصورين
 * Uses only the semantic tokens from theme-system.css so every component has
 * the same contrast in the light and dark themes.
 */

.photo-hero {
  position: relative;
  overflow: hidden;
  padding: 70px 0 56px;
  background:
    radial-gradient(circle at 12% 20%, color-mix(in srgb, var(--ui-accent) 18%, transparent), transparent 24rem),
    linear-gradient(145deg, var(--ui-deep-2), var(--ui-deep));
  color: var(--ui-on-deep);
}

.photo-hero::after {
  position: absolute;
  inset: auto -80px -180px auto;
  width: 420px;
  height: 420px;
  border: 74px solid color-mix(in srgb, var(--ui-accent) 12%, transparent);
  border-radius: 50%;
  content: "";
}

.photo-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(350px, .75fr);
  gap: 70px;
  align-items: center;
}

.photo-hero .eyebrow,
.photo-hero h1,
.photo-hero p {
  color: var(--ui-on-deep);
}

.photo-hero h1 {
  margin: 10px 0;
  font-size: clamp(46px, 7vw, 78px);
  line-height: 1.12;
}

.photo-hero p {
  max-width: 720px;
  margin: 0;
  font-size: 18px;
  opacity: .86;
}

.photo-hero-actions,
.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.photo-hero .button.outline {
  border-color: color-mix(in srgb, var(--ui-on-deep) 38%, transparent);
  color: var(--ui-on-deep);
}

.photo-hero .button.outline:hover {
  background: color-mix(in srgb, var(--ui-on-deep) 12%, transparent);
}

.photo-hero-visual {
  position: relative;
  display: grid;
  gap: 14px;
  min-height: 330px;
  align-content: center;
}

.photo-lens {
  position: absolute;
  inset: 50% auto auto 50%;
  display: grid;
  width: 260px;
  height: 260px;
  translate: -50% -50%;
  place-items: center;
  border: 26px solid color-mix(in srgb, var(--ui-on-deep) 12%, transparent);
  border-radius: 50%;
  background: color-mix(in srgb, var(--ui-bg) 35%, transparent);
  color: var(--ui-accent);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .28);
}

.photo-hero-visual article {
  position: relative;
  z-index: 2;
  display: flex;
  width: min(300px, 85%);
  gap: 12px;
  align-items: center;
  padding: 15px;
  border: 1px solid color-mix(in srgb, var(--ui-on-deep) 18%, transparent);
  border-radius: 17px;
  background: color-mix(in srgb, var(--ui-deep-2) 76%, transparent);
  box-shadow: var(--ui-shadow-sm);
  backdrop-filter: blur(12px);
}

.photo-hero-visual article:last-child {
  margin-inline-start: auto;
}

.photo-hero-visual article > span {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 13px;
  background: var(--ui-accent);
  color: var(--ui-on-accent);
}

.photo-hero-visual strong,
.photo-hero-visual small {
  display: block;
  color: var(--ui-on-deep);
}

.photo-hero-visual small {
  opacity: .7;
}

.photo-directory {
  background: var(--ui-bg);
}

.photo-filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1.7fr) repeat(4, minmax(130px, .8fr)) auto;
  gap: 9px;
  margin-bottom: 25px;
  padding: 13px;
  border: 1px solid var(--ui-border);
  border-radius: 18px;
  background: var(--ui-surface);
  box-shadow: var(--ui-shadow-sm);
}

.photo-filter-panel.request-filters {
  grid-template-columns: minmax(230px, 1.8fr) repeat(3, minmax(150px, 1fr)) auto;
}

.photo-search {
  display: flex;
  min-width: 0;
  gap: 8px;
  align-items: center;
  padding-inline: 12px;
  border: 1px solid var(--ui-border);
  border-radius: 12px;
  background: var(--ui-surface-2);
  color: var(--ui-muted);
}

.photo-search input {
  min-width: 0;
  padding-inline: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.photo-filter-panel select,
.photo-filter-panel input {
  color: var(--ui-heading);
}

.result-count {
  padding: 7px 12px;
  border: 1px solid var(--ui-border);
  border-radius: 999px;
  background: var(--ui-surface-2);
  color: var(--ui-muted);
  font-size: 13px;
  font-weight: 800;
}

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

.home-photographer-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.photographer-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--ui-border);
  border-radius: 20px;
  background: var(--ui-surface);
  box-shadow: var(--ui-shadow-sm);
  transition: translate .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.photographer-card:hover {
  translate: 0 -4px;
  border-color: color-mix(in srgb, var(--ui-accent) 42%, var(--ui-border));
  box-shadow: var(--ui-shadow);
}

.photographer-card-cover {
  position: relative;
  display: block;
  height: 145px;
  background:
    linear-gradient(130deg, color-mix(in srgb, var(--ui-deep) 86%, transparent), color-mix(in srgb, var(--ui-accent) 38%, var(--ui-deep))),
    var(--ui-surface-3);
  background-position: center;
  background-size: cover;
}

.photographer-card-cover::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, .34), transparent 60%);
  content: "";
}

.photographer-device,
.photo-featured {
  position: absolute;
  z-index: 1;
  top: 12px;
  display: inline-flex;
  gap: 5px;
  align-items: center;
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  background: rgba(7, 17, 15, .72);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.photographer-device {
  right: 12px;
}

.photo-featured {
  left: 12px;
  background: color-mix(in srgb, var(--ui-accent) 82%, #2a1808);
  color: #fff;
}

.photographer-card-body {
  position: relative;
  padding: 47px 17px 17px;
}

.photographer-avatar {
  position: absolute;
  top: -39px;
  right: 17px;
  width: 76px;
  height: 76px;
  border: 4px solid var(--ui-surface);
  border-radius: 22px;
  object-fit: cover;
  background: var(--ui-surface-2);
}

.photographer-title-row {
  display: flex;
  min-height: 64px;
  gap: 10px;
  justify-content: space-between;
}

.photographer-title-row h3,
.photographer-title-row p {
  margin: 0;
}

.photographer-title-row h3 {
  color: var(--ui-heading);
  font-size: 18px;
}

.photographer-title-row p {
  display: -webkit-box;
  overflow: hidden;
  color: var(--ui-muted);
  font-size: 12px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.verified-dot {
  color: var(--ui-success);
}

.photographer-meta {
  display: grid;
  gap: 5px;
  margin: 11px 0;
  color: var(--ui-muted);
  font-size: 12.5px;
  line-height: 1.6;
}

.photographer-meta span,
.request-card-meta span {
  display: flex;
  gap: 5px;
  align-items: center;
}

.photographer-rating {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-bottom: 10px;
}

.photographer-rating small {
  color: var(--ui-muted);
}

.cooperation-chips,
.profile-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cooperation-chips {
  min-height: 31px;
  margin-bottom: 13px;
}

.cooperation-chips span,
.profile-chips span {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  padding: 5px 9px;
  border: 1px solid var(--ui-border);
  border-radius: 999px;
  background: var(--ui-surface-2);
  color: var(--ui-text);
  font-size: 10px;
  font-weight: 750;
}

.home-photographers {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--ui-accent-soft) 42%, var(--ui-bg)), var(--ui-bg));
}

.home-photographers .section-heading p {
  margin: 4px 0 0;
  color: var(--ui-muted);
  font-size: 13px;
}

.photo-home-cta {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin-top: 22px;
  padding: 17px 20px;
  border: 1px solid color-mix(in srgb, var(--ui-accent) 32%, var(--ui-border));
  border-radius: 17px;
  background: var(--ui-surface);
}

.photo-home-cta > div,
.photo-home-cta span {
  display: flex;
  gap: 12px;
  align-items: center;
}

.photo-home-cta span {
  display: block;
}

.photo-home-cta strong,
.photo-home-cta small {
  display: block;
}

.photo-home-cta > div > svg {
  color: var(--ui-accent);
}

.photo-home-cta small {
  color: var(--ui-muted);
}

.photo-requests-preview {
  background: var(--ui-bg-alt);
}

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

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

.photo-request-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 18px;
  border: 1px solid var(--ui-border);
  border-radius: 18px;
  background: var(--ui-surface);
  box-shadow: var(--ui-shadow-sm);
}

.photo-request-head,
.request-worker {
  display: flex;
  gap: 10px;
  align-items: center;
}

.photo-request-head img,
.request-worker img {
  width: 43px;
  height: 43px;
  border-radius: 13px;
  object-fit: cover;
}

.photo-request-head strong,
.photo-request-head small,
.request-worker strong,
.request-worker small,
.request-worker span {
  display: block;
}

.photo-request-head small,
.request-worker small,
.request-worker span {
  color: var(--ui-muted);
  font-size: 12px;
  line-height: 1.55;
}

.cooperation-label {
  align-self: flex-start;
  margin: 14px 0 8px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--ui-info-soft);
  color: var(--ui-info);
  font-size: 10px;
  font-weight: 800;
}

.cooperation-label.paid {
  background: var(--ui-success-soft);
  color: var(--ui-success);
}

.cooperation-label.exchange {
  background: var(--ui-warning-soft);
  color: var(--ui-warning);
}

.cooperation-label.free {
  background: var(--ui-accent-soft);
  color: var(--ui-accent);
}

.photo-request-card h2,
.photo-request-card h3 {
  margin: 0 0 7px;
  color: var(--ui-heading);
  font-size: 17px;
}

.photo-request-card p {
  flex: 1;
  margin: 0 0 15px;
  color: var(--ui-muted);
  font-size: 12px;
}

.request-label-row,
.request-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  color: var(--ui-muted);
  font-size: 10px;
}

.request-label-row .cooperation-label {
  margin-block: 14px 8px;
}

.request-card-meta {
  margin-bottom: 13px;
  justify-content: flex-start;
}

.photo-page-intro {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--ui-deep) 8%, var(--ui-bg)), var(--ui-bg));
}

.request-detail-heading {
  display: flex;
  gap: 20px;
  align-items: flex-end;
  justify-content: space-between;
}

.request-detail-heading h1 {
  margin-block: 7px 12px;
}

.request-detail-grid,
.photographer-profile-grid,
.collaboration-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 20px;
  align-items: start;
}

.request-detail-grid > main,
.photographer-profile-main,
.collaboration-layout > main {
  display: grid;
  min-width: 0;
  gap: 17px;
}

.photo-content-card,
.photo-side-card {
  border: 1px solid var(--ui-border);
  border-radius: 19px;
  background: var(--ui-surface);
  box-shadow: var(--ui-shadow-sm);
}

.photo-content-card {
  padding: 22px;
}

.photo-side-card {
  margin-bottom: 15px;
  padding: 18px;
}

.photo-content-card h2,
.photo-side-card h2,
.photo-content-card h3,
.photo-side-card h3 {
  color: var(--ui-heading);
}

.photo-content-card > h2,
.photo-side-card > h2 {
  margin-top: 0;
}

.photo-content-card p,
.photo-side-card p {
  color: var(--ui-text);
}

.long-copy {
  color: var(--ui-text);
  font-size: 15px;
  line-height: 2;
}

.request-worker {
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--ui-border);
}

.request-worker > div {
  flex: 1;
}

.request-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  margin-top: 20px;
}

.request-summary-grid > div {
  padding: 11px;
  border: 1px solid var(--ui-border);
  border-radius: 12px;
  background: var(--ui-surface-2);
}

.request-summary-grid span,
.request-summary-grid strong {
  display: block;
}

.request-summary-grid span {
  color: var(--ui-muted);
  font-size: 10px;
}

.request-summary-grid strong {
  margin-top: 3px;
  color: var(--ui-heading);
  font-size: 12px;
}

.sticky-side {
  position: sticky;
  top: 92px;
}

.photo-offer-box .eyebrow {
  color: var(--ui-accent);
}

.inline-price {
  display: grid;
  grid-template-columns: 1fr 84px;
  gap: 7px;
}

.offer-list,
.manage-offer-list,
.verified-work-list,
.photo-review-list {
  display: grid;
  gap: 12px;
}

.offer-list > article,
.manage-offer-list > article {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 13px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--ui-border);
  border-radius: 15px;
  background: var(--ui-surface-2);
}

.offer-list > article > img,
.manage-offer-list > article > img {
  width: 54px;
  height: 54px;
  border-radius: 15px;
  object-fit: cover;
}

.offer-title,
.offer-terms {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.offer-title strong {
  color: var(--ui-heading);
}

.offer-body small,
.manage-offer-list small {
  color: var(--ui-muted);
}

.offer-body p,
.manage-offer-list p {
  margin: 8px 0;
  color: var(--ui-text);
  font-size: 12px;
}

.offer-terms span {
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--ui-accent-soft);
  color: var(--ui-accent);
  font-size: 10px;
}

.offer-terms strong {
  color: var(--ui-heading);
  font-size: 12px;
}

.offer-actions {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.status-pill.submitted {
  background: var(--ui-warning-soft);
  color: var(--ui-warning);
}

.status-pill.cancelled,
.status-pill.withdrawn {
  background: var(--ui-danger-soft);
  color: var(--ui-danger);
}

.status-pill.completed,
.status-pill.matched {
  background: var(--ui-success-soft);
  color: var(--ui-success);
}

.photographer-profile-cover {
  min-height: 260px;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--ui-deep) 88%, transparent), color-mix(in srgb, var(--ui-accent) 25%, var(--ui-deep))),
    var(--ui-surface-3);
  background-position: center;
  background-size: cover;
}

.photographer-profile-head {
  position: relative;
  border-bottom: 1px solid var(--ui-border);
  background: var(--ui-surface);
}

.photographer-profile-head-grid {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding-bottom: 20px;
}

.photographer-profile-avatar {
  width: 142px;
  height: 142px;
  margin-top: -62px;
  border: 6px solid var(--ui-surface);
  border-radius: 32px;
  object-fit: cover;
  background: var(--ui-surface-2);
  box-shadow: var(--ui-shadow-sm);
}

.title-with-badge {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
}

.title-with-badge h1 {
  margin: 0;
  font-size: 31px;
}

.title-with-badge span {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  color: var(--ui-success);
  font-size: 11px;
  font-weight: 800;
}

.photographer-profile-title h2 {
  margin: 4px 0 10px;
  color: var(--ui-muted);
  font-size: 16px;
  font-weight: 650;
}

.photographer-profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: flex-end;
}

.photographer-profile-actions form {
  display: contents;
}

.photographer-profile-body {
  background: var(--ui-bg);
}

.card-heading {
  display: flex;
  gap: 15px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

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

.card-heading p {
  color: var(--ui-muted);
  font-size: 11px;
}

.card-heading > svg {
  color: var(--ui-accent);
}

.photo-detail-block {
  margin-top: 20px;
  padding-top: 17px;
  border-top: 1px solid var(--ui-border);
}

.photo-detail-block h3 {
  display: flex;
  gap: 7px;
  align-items: center;
  margin: 0 0 7px;
  font-size: 15px;
}

.photo-detail-block p {
  margin: 0;
  color: var(--ui-text);
}

.photo-portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.photo-portfolio-grid a {
  overflow: hidden;
  aspect-ratio: 1;
  border-radius: 12px;
  background: var(--ui-surface-2);
}

.photo-portfolio-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: scale .2s ease;
}

.photo-portfolio-grid a:hover img {
  scale: 1.04;
}

.photo-video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.photo-video-grid strong {
  display: block;
  margin-top: 6px;
  color: var(--ui-heading);
  font-size: 12px;
}

.verified-work {
  padding: 15px;
  border: 1px solid var(--ui-border);
  border-radius: 15px;
  background: var(--ui-surface-2);
}

.verified-work > h3 {
  margin: 13px 0 4px;
  font-size: 16px;
}

.verified-work > p {
  margin: 0 0 10px;
  color: var(--ui-muted);
  font-size: 12px;
}

.verified-work-owner {
  display: flex;
  gap: 9px;
  align-items: center;
}

.verified-work-owner img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: cover;
}

.verified-work-owner div {
  min-width: 0;
  flex: 1;
}

.verified-work-owner span,
.verified-work-owner strong,
.verified-work-owner small {
  display: block;
}

.verified-work-owner span,
.verified-work-owner small {
  color: var(--ui-muted);
  font-size: 9px;
}

.verified-work-owner a {
  color: var(--ui-accent);
  font-size: 11px;
  font-weight: 800;
}

.verified-work-images {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
  margin: 10px 0;
}

.verified-work-images a {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
}

.verified-work-images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-review-list > article {
  display: flex;
  gap: 11px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ui-border);
}

.photo-review-list > article:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.photo-review-list img,
.review-avatar {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 12px;
  object-fit: cover;
}

.review-avatar {
  display: grid;
  place-items: center;
  background: var(--ui-accent-soft);
  color: var(--ui-accent);
  font-weight: 800;
}

.photo-review-list > article > div {
  flex: 1;
}

.photo-review-list > article > div > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.photo-review-list p {
  margin: 5px 0;
  color: var(--ui-text);
  font-size: 12px;
}

.photo-review-list small {
  color: var(--ui-muted);
  font-size: 10px;
}

.cooperation-options,
.photo-social-links {
  display: grid;
  gap: 8px;
}

.cooperation-options span,
.photo-social-links a {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 9px 10px;
  border: 1px solid var(--ui-border);
  border-radius: 11px;
  background: var(--ui-surface-2);
  color: var(--ui-text);
  font-size: 12px;
}

.price-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 12px 0;
  padding-top: 12px;
  border-top: 1px solid var(--ui-border);
}

.price-line strong {
  color: var(--ui-heading);
}

.availability {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-bottom: 0;
  color: var(--ui-muted);
  font-size: 11px;
}

.availability.available {
  color: var(--ui-success);
}

.cooperation-switches {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.cooperation-switches > span {
  width: 100%;
  color: var(--ui-heading);
  font-weight: 750;
}

.cooperation-switches label {
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 9px 12px;
  border: 1px solid var(--ui-border);
  border-radius: 11px;
  background: var(--ui-surface-2);
  color: var(--ui-text);
}

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

.photo-profile-summary img {
  width: 66px;
  height: 66px;
  border-radius: 18px;
  object-fit: cover;
}

.photo-profile-summary > div:nth-child(2) {
  min-width: 0;
  flex: 1;
}

.photo-profile-summary strong,
.photo-profile-summary p,
.photo-profile-summary span {
  display: block;
}

.photo-profile-summary p {
  margin: 2px 0;
  color: var(--ui-muted);
  font-size: 11px;
}

.photo-profile-summary span {
  color: var(--ui-accent);
  font-size: 10px;
  font-weight: 800;
}

.photo-profile-summary > div:last-child {
  display: flex;
  gap: 6px;
}

.photo-collaboration-list .status-pill {
  white-space: nowrap;
}

.collaboration-layout {
  grid-template-columns: minmax(0, 1fr) 300px;
}

.collaboration-people {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto;
  gap: 15px;
  align-items: center;
}

.collaboration-people > a:not(.button) {
  display: grid;
  grid-template-columns: 54px 1fr;
  column-gap: 10px;
  align-items: center;
}

.collaboration-people img {
  grid-row: 1 / span 2;
  width: 54px;
  height: 54px;
  border-radius: 15px;
  object-fit: cover;
}

.collaboration-people span,
.collaboration-people strong {
  display: block;
}

.collaboration-people > a span {
  color: var(--ui-muted);
  font-size: 10px;
}

.collaboration-people > a strong {
  color: var(--ui-heading);
}

.collaboration-link {
  color: var(--ui-accent);
}

.single-video {
  max-width: 720px;
  margin: 15px auto 0;
}

.approval-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 15px;
  align-items: center;
  border-color: color-mix(in srgb, var(--ui-success) 38%, var(--ui-border));
  background: var(--ui-success-soft);
}

.approval-card > span {
  color: var(--ui-success);
}

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

.collaboration-timeline {
  display: grid;
  gap: 0;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.collaboration-timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 8px;
  min-height: 60px;
}

.collaboration-timeline li:not(:last-child)::after {
  position: absolute;
  top: 27px;
  right: 13px;
  bottom: 0;
  width: 2px;
  background: var(--ui-border);
  content: "";
}

.collaboration-timeline li.done:not(:last-child)::after {
  background: var(--ui-success);
}

.collaboration-timeline li > span {
  z-index: 1;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 2px solid var(--ui-border);
  border-radius: 50%;
  background: var(--ui-surface);
  color: var(--ui-muted);
}

.collaboration-timeline li.done > span {
  border-color: var(--ui-success);
  background: var(--ui-success-soft);
  color: var(--ui-success);
}

.collaboration-timeline strong,
.collaboration-timeline small {
  display: block;
}

.collaboration-timeline small {
  color: var(--ui-muted);
  font-size: 9px;
}

.collaboration-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding: 11px;
  border-radius: 11px;
  background: var(--ui-surface-2);
}

.collaboration-price span {
  color: var(--ui-muted);
  font-size: 10px;
}

.collaboration-price strong {
  color: var(--ui-heading);
}

.compact-form {
  box-shadow: none;
}

.review-form {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid var(--ui-border);
  border-radius: 14px;
  background: var(--ui-surface-2);
}

.star-input {
  display: inline-flex;
  flex-direction: row-reverse;
  margin-top: 4px;
}

.star-input input {
  position: absolute;
  opacity: 0;
}

.star-input label {
  cursor: pointer;
  color: var(--ui-border-strong);
  font-size: 27px;
}

.star-input input:checked ~ label,
.star-input label:hover,
.star-input label:hover ~ label {
  color: var(--ui-accent);
}

.photo-linked-works .verified-work-owner span,
.photo-worker-offer .eyebrow {
  color: var(--ui-accent);
}

.photo-worker-offer h3 {
  margin-block: 7px 12px;
}

.photo-form-page .professional-form {
  min-width: 0;
}

@media (max-width: 1180px) {
  .photo-filter-panel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .photo-search {
    grid-column: span 2;
  }

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

  .desktop-nav > a {
    padding-inline: 9px;
    font-size: 12px;
  }
}

@media (max-width: 960px) {
  .photo-hero-grid {
    grid-template-columns: 1fr;
  }

  .photo-hero-visual {
    min-height: 250px;
  }

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

  .request-detail-grid,
  .photographer-profile-grid,
  .collaboration-layout {
    grid-template-columns: 1fr;
  }

  .sticky-side {
    position: static;
  }

  .photographer-profile-head-grid {
    grid-template-columns: 130px 1fr;
  }

  .photographer-profile-avatar {
    width: 125px;
    height: 125px;
  }

  .photographer-profile-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

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

@media (max-width: 720px) {
  .photo-hero {
    padding: 46px 0 38px;
  }

  .photo-hero h1 {
    font-size: 47px;
  }

  .photo-hero p {
    font-size: 15px;
  }

  .photo-hero-actions .button {
    width: 100%;
  }

  .photo-filter-panel,
  .photo-filter-panel.request-filters {
    grid-template-columns: 1fr;
  }

  .photo-search {
    grid-column: auto;
    min-height: 48px;
  }

  .photographer-grid,
  .photo-request-grid,
  .home-photographer-grid,
  .photo-video-grid {
    grid-template-columns: 1fr;
  }

  .request-detail-heading {
    display: block;
  }

  .request-detail-heading > .status-pill {
    margin-top: 14px;
  }

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

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

  .photographer-profile-cover {
    min-height: 190px;
  }

  .photographer-profile-head-grid {
    grid-template-columns: 94px 1fr;
    gap: 12px;
  }

  .photographer-profile-avatar {
    width: 90px;
    height: 90px;
    margin-top: -34px;
    border-width: 4px;
    border-radius: 23px;
  }

  .title-with-badge h1 {
    font-size: 24px;
  }

  .photographer-profile-title h2 {
    font-size: 13px;
  }

  .photographer-profile-actions .button,
  .photographer-profile-actions form {
    flex: 1;
  }

  .photographer-profile-actions form .button {
    width: 100%;
  }

  .offer-list > article,
  .manage-offer-list > article {
    grid-template-columns: 45px minmax(0, 1fr);
  }

  .offer-list > article > img,
  .manage-offer-list > article > img {
    width: 45px;
    height: 45px;
  }

  .offer-actions,
  .offer-list > article > form,
  .manage-offer-list > article > form {
    grid-column: 1 / -1;
    flex-direction: row;
  }

  .collaboration-people {
    grid-template-columns: 1fr auto 1fr;
  }

  .collaboration-people > .button {
    grid-column: 1 / -1;
  }

  .approval-card {
    grid-template-columns: auto 1fr;
  }

  .approval-card form {
    grid-column: 1 / -1;
  }

  .approval-card .button {
    width: 100%;
  }

  .photo-profile-summary {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .photo-profile-summary > div:last-child {
    width: 100%;
  }

  .photo-home-cta {
    display: grid;
  }

  .photo-home-cta .button {
    width: 100%;
  }
}

@media (max-width: 440px) {
  .photo-content-card,
  .photo-side-card {
    padding: 15px;
    border-radius: 15px;
  }

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

  .collaboration-people {
    grid-template-columns: 1fr;
  }

  .collaboration-link {
    rotate: 90deg;
    justify-self: center;
  }

  .request-summary-grid {
    grid-template-columns: 1fr;
  }

  .photographer-card-body {
    padding-inline: 14px;
  }
}
