@font-face {
  font-family:'Atelier Han';
  src:url('/salon/assets/atelier-serif-zh.woff') format('woff');
  font-weight:400 600;
  font-display:swap;
}
:root { --cn:'Atelier Han','Songti SC','Noto Serif SC',serif; }
.footer nav { display:flex; flex-wrap:wrap; gap:12px 22px; align-items:center; }
.footer nav a, .footer > a { display:inline-flex; align-items:center; min-height:44px; }
.reference-pick { width:fit-content; }
@media (max-width:700px) {
  .footer { flex-wrap:wrap; gap:16px 24px; }
  .footer nav { width:100%; gap:4px 18px; }
}

/* Photography fills the frame. Proofs and private uploads retain their true aspect. */
.record-actions a { font-size:12px; min-height:44px; }
@media (max-width:700px) {
  .piece-image-area.look > img, .piece-image-area.twin > img { object-fit:cover; }
  .piece-image-area:not(.detail) > img { object-position:var(--plate-pos, 50% 35%); }
  .draft-pane:has(#studio-picture:not([hidden])) {
    display:block; height:auto; min-height:0; padding:0;
  }
  #studio-picture { min-height:0; height:auto; width:100%; background:transparent; }
  #studio-picture picture { display:block; }
  #studio-picture picture > img {
    position:static; width:100%; height:auto; display:block; object-fit:cover; background:transparent;
  }
  #studio-picture[data-stage='brief'][data-visual='look'] { aspect-ratio:16/9; }
  #studio-picture[data-stage='brief'][data-visual='reference'] { max-height:38svh; overflow:hidden; }
  #studio-picture[data-stage='brief'][data-visual='twin'] {
    display:grid; grid-template-columns:minmax(0, 1fr) minmax(0, 1fr); aspect-ratio:8/5;
  }
  #studio-picture[data-visual='twin'][data-stage='brief'] img { width:100%; height:100%; object-fit:cover; }
  #studio-picture[data-visual='twin'][data-stage='brief']::after {
    position:static; z-index:0; grid-column:2; grid-row:1; background:var(--work-detail) center/cover;
  }
  #studio-picture[data-visual='twin'][data-stage='brief'] > span { z-index:1; left:auto; right:12px; max-width:46%; }
  #studio-picture[data-stage='brief'][data-visual='twin'] picture { grid-column:1; grid-row:1; }
  .note-photo[data-view='fit'] img { object-fit:cover; }
  .studio-form :is(input:not([type=file]),select,textarea) { font-size:16px; }
  .record-actions button, .record-actions a { min-height:44px; }
}

@media (min-width:701px) {
  .draft-pane:has(#studio-picture:not([hidden])) { align-self:start; width:100%; }
  #studio-picture { flex:none; min-height:0; }
  #studio-picture picture, #studio-picture picture > img { display:block; width:100%; }
  #studio-picture picture > img { position:static; height:auto; background:transparent; }
  .piece-image-area.twin > img { object-fit:cover; }
}

.library-actions {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px 20px;
  margin-top:20px;
}
.library-actions :is(a, button) { width:fit-content; min-height:44px; margin:0; }
#library-status:empty { display:none; }

.library-body .draft-record h3 { margin:0; font-size:18px; line-height:1.45; }
.record-title { display:inline-flex; align-items:center; min-height:44px; color:var(--ft-ink); text-decoration:underline; text-decoration-color:#9d827c; text-underline-offset:4px; }
.library-body :is(.library-sub,.draft-record p) { font-size:14px; color:var(--ft-muted); }
.library-body .record-actions button { font-size:14px; }
