.main.photo-library-page { max-width: 1320px; padding: 28px 30px; }
.photo-library { color: var(--text, #20252b); }
.pl-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 24px; }
.pl-eyebrow { color: var(--brand); font-size: 12px; font-weight: 600; letter-spacing: 1px; margin-bottom: 7px; }
.pl-heading h1 { margin: 0 0 8px; font-size: 27px; letter-spacing: -.6px; }
.pl-heading p, .pl-store-heading p { margin: 0; font-size: 13px; color: #717781; }
.pl-heading > .btn { white-space: nowrap; }
.pl-error, .pl-notice, .pl-draft, .pl-progress { padding: 16px 18px; border-radius: 12px; margin-bottom: 18px; font-size: 13px; line-height: 1.8; }
.pl-error { background: #fff1ef; color: #963a30; border: 1px solid #f1d7d2; overflow-wrap: anywhere; }
.pl-notice { background: #fff8e9; color: #856025; border: 1px solid #eddfbf; }
.pl-draft { background: #fff; border: 1px solid #ddc4bd; }
.pl-draft b { overflow-wrap: anywhere; }
.pl-draft p { color: #6b6b6b; margin: 8px 0 12px; }
.pl-progress { background: #fff8ef; border: 1px solid #ead9c3; }
.pl-progress > span { font-weight: 600; }
.pl-progress > button { float: right; }
.pl-progress p { margin: 4px 0 0; color: #777; font-size: 12px; }
.pl-empty { border: 1px dashed #d8d2cc; background: #fffcf8; padding: 68px 20px; text-align: center; border-radius: 16px; margin: 30px 0; }
.pl-empty > span { display: block; font-size: 44px; color: #bba78e; margin-bottom: 16px; }
.pl-empty h2 { font-size: 18px; margin: 0 0 12px; }
.pl-empty p { color: #7c7771; font-size: 14px; line-height: 1.9; }
.pl-toolbar { display: flex; align-items: end; gap: 12px; padding: 16px 18px; border: 1px solid #e6e3df; background: #fff; border-radius: 12px; margin-bottom: 18px; }
.pl-toolbar label { flex: 1; min-width: 0; }
.photo-library label { display: block; font-size: 12px; color: #727780; }
.photo-library select, .photo-library input[type=search] { display: block; font: inherit; font-size: 13px; color: #353b43; border: 1px solid #dddfe1; background: #fff; border-radius: 8px; padding: 10px 12px; width: 100%; margin-top: 7px; outline: none; min-width: 0; }
.photo-library select:focus, .photo-library input:focus { border-color: var(--brand); box-shadow: 0 0 0 2px #c8281f14; }
.pl-layout { display: grid; grid-template-columns: 225px minmax(0, 1fr); gap: 22px; align-items: start; }
.pl-stores { border: 1px solid #e6e3df; background: #fff; border-radius: 12px; padding: 14px 10px; position: sticky; top: 85px; }
.pl-search-label { padding: 0 4px 14px; }
.pl-store-list { max-height: 68vh; overflow-y: auto; }
.pl-store { border: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; background: none; width: 100%; text-align: left; padding: 12px 10px; font: inherit; font-size: 13px; border-radius: 8px; cursor: pointer; color: #555b63; }
.pl-store:hover { background: #f9f7f4; }
.pl-store.active { background: #fbefeb; color: #b83626; font-weight: 600; }
.pl-store small { font-size: 11px; color: #96918d; }
.pl-store.active small { color: #ba796d; }
.pl-store-heading { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin: 3px 0 22px; }
.pl-store-heading h2 { font-size: 20px; margin: 0 0 7px; }
.pl-store-heading label { min-width: 165px; }
.pl-categories { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 16px; align-items: start; }
.pl-categories.is-filtered { grid-template-columns: minmax(0, 430px); }
.pl-category { min-width: 0; }
.pl-category-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid #e4e0dc; }
.pl-category-title h3 { font-size: 15px; margin: 0; font-weight: 600; }
.pl-category-title > span { font-size: 12px; color: #8a8b8d; }
.pl-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.pl-photo { background: white; border: 1px solid #e6e3df; border-radius: 10px; padding: 0; overflow: hidden; cursor: zoom-in; text-align: left; min-width: 0; transition: box-shadow .15s; }
.pl-photo:hover { box-shadow: 0 4px 16px #30261b14; }
.pl-photo img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: contain; background: #f0eeea; color: #8a8176; font-size: 12px; }
.pl-photo span { display: block; padding: 9px 10px; font-size: 11px; color: #8b8680; }
.pl-no-photo { font-size: 13px; padding: 24px; background: #f4f2ef; border-radius: 10px; color: #92908c; text-align: center; }
.pl-footnote, .pl-muted { font-size: 12px; color: #918b83; line-height: 1.8; margin-top: 24px; }
.pl-muted { padding: 12px; }
.photo-library button:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
@media (max-width: 1100px) { .pl-layout { grid-template-columns: 190px minmax(0, 1fr); gap: 16px; } .pl-categories { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) {
  .main.photo-library-page { padding: 20px 14px; }
  .pl-heading { gap: 10px; align-items: start; }
  .pl-heading h1 { font-size: 24px; }
  .pl-heading p { line-height: 1.6; max-width: 180px; }
  .pl-heading > .btn { font-size: 13px; padding: 11px 12px; margin-top: 12px; }
  .pl-layout { display: block; }
  .pl-stores { position: static; padding: 12px; margin-bottom: 20px; }
  .pl-search-label { padding: 0 0 10px; }
  .pl-store-list { display: flex; overflow-x: auto; max-height: 110px; }
  .pl-store { width: auto; flex-shrink: 0; white-space: nowrap; }
  .pl-store-heading { align-items: start; flex-direction: column; }
  .pl-store-heading label { width: 100%; }
  .pl-empty { padding: 44px 14px; }
  .pl-empty h2 { font-size: 16px; }
}
