/* The original Lina layout with neutral accents and a compact work comparison. */
:root {
  --color-copper: #292826;
}

.loading-state { box-shadow: 0 12px 32px rgb(0 0 0 / 10%); }
.app-main[data-client-stage="ready"] .booking-summary { box-shadow: 0 14px 38px rgb(0 0 0 / 12%); }

@media (min-width: 1024px) {
  html:not(.admin-view) .client-editorial { --color-copper: #c8c4bc; }
  html:not(.admin-view) .client-editorial .master-role,
  html:not(.admin-view) .client-editorial .hero-location-action { color: #dedbd5; }
  html:not(.admin-view) .client-nav { gap: clamp(24px, 3vw, 44px); }
  html:not(.admin-view) .client-nav-button { white-space: nowrap; }
}

@media (max-width: 1023px) {
  .client-nav-button[data-client-view="works"],
  .client-nav-button[data-client-view="works"]:last-child {
    width: max-content;
    min-height: 0;
    justify-self: start;
    padding: 3px 0 4px;
    border: 0;
    border-bottom: 1px solid currentColor;
    border-radius: 0;
    color: var(--color-text);
    background: transparent;
    font-size: 16px;
    text-align: left;
  }
  .client-nav-button[data-client-view="works"].active {
    border-color: var(--color-text);
    color: var(--color-text);
    background: transparent;
    font-weight: 600;
  }
  .app-main[data-client-stage="works"] .master-avatar,
  .app-main[data-client-stage="works"] .hero-location { display: none; }
  .app-main[data-client-stage="works"] .client-nav { margin-top: 16px; }
}

.works-panel { min-width: 0; padding-top: 34px; }
.works-panel-heading h2 {
  margin: 0 0 23px;
  font-family: var(--font-editorial);
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 400;
  line-height: 1.12;
}
.client-works-grid { display: grid; gap: 14px; }
.work-picker { min-width: 0; display: flex; gap: 7px; overflow-x: auto; scrollbar-width: none; }
.work-picker::-webkit-scrollbar { display: none; }
.work-picker button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: 0 13px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-control);
  color: var(--color-text);
  background: var(--color-surface);
  cursor: pointer;
  font-size: 12px;
}
.work-picker button[aria-pressed="true"] { border-color: var(--color-action); color: var(--color-action-text); background: var(--color-action); }
.work-picker button > span:first-child { opacity: .65; font-size: 10px; }
.work-picker-title-short { display: none; }

.result-work-card {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, .7fr);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-media);
  overflow: hidden;
  background: var(--color-surface);
}
.result-work-comparison {
  position: relative;
  width: 100%;
  aspect-ratio: var(--work-aspect, .75);
  overflow: hidden;
  background: #e7e3de;
  touch-action: pan-y;
}
.result-work-comparison img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.result-work-before { clip-path: inset(0 calc(100% - var(--position)) 0 0); }
.result-work-divider {
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  left: var(--position);
  width: 2px;
  transform: translateX(-50%);
  background: #fff;
  pointer-events: none;
}
.result-work-divider i {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  color: var(--color-action);
  background: #fff;
  box-shadow: 0 2px 10px #0002;
  font-style: normal;
  font-size: 18px;
}
.result-work-label {
  position: absolute;
  z-index: 2;
  top: 14px;
  padding: 7px 9px;
  color: #fff;
  background: #242321e8;
  font-size: 11px;
  pointer-events: none;
}
.result-work-label-before { left: 14px; }
.result-work-label-after { right: 14px; }
.result-work-comparison input[type="range"] {
  position: absolute;
  z-index: 3;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}
.result-work-copy { display: flex; flex-direction: column; justify-content: center; padding: 24px; }
.result-work-copy > span { color: var(--color-text-muted); font-size: 11px; }
.result-work-copy h3 { margin: 9px 0 6px; font-size: 25px; font-weight: 500; line-height: 1.2; }
.result-work-copy p { margin: 0; color: var(--color-text-muted); font-size: 13px; line-height: 1.5; }
.result-work-foot { display: grid; gap: 13px; align-items: start; margin-top: 23px; font-size: 13px; }
.result-work-foot button {
  width: max-content;
  padding: 0 0 3px;
  border-bottom: 1px solid currentColor;
  color: var(--color-text);
  background: transparent;
  cursor: pointer;
  font-size: 13px;
}
.example-disclosure { margin: 12px 0 0; color: var(--color-text-muted); font-size: 11px; line-height: 1.45; }

@media (max-width: 767px) {
  .works-panel { padding-top: 29px; }
  .works-panel-heading { display: none; }
  .work-picker { gap: 5px; }
  .work-picker button { padding: 0 10px; }
  .work-picker-title-full { display: none; }
  .work-picker-title-short { display: inline; }
  .result-work-card { display: block; }
  .result-work-comparison { width: min(100%, 360px); margin: auto; }
  .result-work-copy { padding: 16px; }
  .result-work-copy h3 { font-size: 20px; }
  .result-work-foot { gap: 10px; margin-top: 14px; }
}

/* Keep the original master workspace and add only the work editor controls. */
.admin-view .tabs { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.works-admin-intro { margin: 14px 0 24px; color: var(--color-text-muted); font-size: 14px; line-height: 1.5; }
.master-works-empty { padding: 24px 0; border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.master-works-empty h2 { margin: 0 0 7px; font-size: 20px; }
.master-works-empty p { max-width: 560px; margin: 0 0 18px; color: var(--color-text-muted); font-size: 13px; }
.master-example-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.master-example-strip figure { min-width: 0; margin: 0; }
.master-example-strip img { width: 100%; height: 170px; object-fit: cover; }
.master-example-strip figcaption { display: flex; justify-content: space-between; gap: 8px; padding: 8px 0; font-size: 12px; }
.master-example-strip small { color: var(--color-text-muted); font-size: 10px; }
.work-admin-row { display: grid; grid-template-columns: 70px minmax(0,1fr) auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--color-border); }
.work-admin-row img, .work-admin-placeholder { width: 70px; height: 88px; object-fit: cover; background: #e7e3de; }
.work-admin-placeholder { display: grid; place-items: center; color: var(--color-text-muted); font-size: 10px; text-align: center; }
.work-admin-row h3 { margin: 0 0 4px; font-size: 15px; }
.work-admin-row p { margin: 0; color: var(--color-text-muted); font-size: 12px; }
.work-admin-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.work-admin-actions button { padding: 0; color: var(--color-text); background: transparent; cursor: pointer; font-size: 12px; }
.work-admin-actions button:last-child { color: #a33b39; }
.work-editor-panel { margin-top: 25px; }
.work-editor { display: grid; gap: 18px; padding-bottom: 27px; }
.work-editor label:not(.checkbox-label) { display: grid; gap: 8px; font-size: 13px; }
.work-editor input[type="text"], .work-editor select, .work-editor textarea { width: 100%; min-height: 46px; padding: 11px; border: 1px solid var(--color-border); border-radius: var(--radius-control); background: var(--color-surface); font-size: 15px; }
.work-photo-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.work-editor .work-photo-field { position: relative; min-height: 205px; display: flex !important; flex-direction: column; justify-content: space-between; padding: 15px; border: 1px dashed var(--color-control-border); cursor: pointer; }
.work-photo-field > span { font-size: 11px; }
.work-photo-field > strong { display: grid; place-items: center; flex: 1; font-size: 14px; text-align: center; }
.work-photo-field input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.work-photo-field:focus-within { outline: 2px solid var(--color-copper); outline-offset: 3px; }
.work-photo-field img:not([hidden]) { position: absolute; inset: 36px 12px 37px; width: calc(100% - 24px); height: calc(100% - 73px); object-fit: contain; }
.work-photo-field:has(img:not([hidden])) > strong { visibility: hidden; }
.work-photo-field small { color: var(--color-text-muted); font-size: 11px; }
.work-upload-status { margin: -7px 0 0; color: var(--color-text-muted); font-size: 12px; }
.work-editor .form-actions { display: flex; gap: 10px; flex-wrap: wrap; }

@media (min-width: 1024px) { .admin-view .tabs { grid-template-columns: 1fr; grid-template-rows: repeat(5, 72px); } }
@media (max-width: 767px) {
  .admin-view .tab { font-size: 11px; }
  .work-admin-row { grid-template-columns: 60px minmax(0,1fr); }
  .work-admin-row img, .work-admin-placeholder { width: 60px; height: 74px; }
  .work-admin-actions { grid-column: 2; }
  .master-example-strip { display: flex; overflow-x: auto; }
  .master-example-strip figure { flex: 0 0 142px; }
  .master-example-strip img { height: 158px; }
  .master-example-strip figcaption { display: block; }
  .master-example-strip small { display: block; }
}
