.selection-summary { width: 100%; min-height: 138px; display: grid; grid-template-columns: 104px minmax(0, 1fr) auto; align-items: center; gap: 22px; padding: 14px; border: 1px solid var(--line); background: rgba(251, 250, 247, .56); text-align: left; transition: border-color .2s, background .2s, transform .2s; }
.selection-summary:hover { border-color: var(--gold); background: var(--white); transform: translateY(-1px); }
.selection-summary__visual { position: relative; width: 104px; height: 108px; display: grid; place-items: center; overflow: hidden; background: #e5e1d9; color: var(--gold); }
.selection-summary__visual--bag { background: white; }
.selection-summary__visual img { width: 100%; height: 100%; object-fit: cover; }
.selection-summary__visual--bag img { object-fit: contain; }
.selection-summary__visual i { font-size: 25px; font-style: normal; font-weight: 300; }
.selection-summary__visual b { position: absolute; right: 7px; bottom: 7px; min-width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: white; font-size: 9px; }
.selection-summary__copy { display: grid; gap: 6px; min-width: 0; }
.selection-summary__copy small { color: var(--gold); font-size: 8px; letter-spacing: .18em; }
.selection-summary__copy strong { font-family: var(--serif); font-size: 21px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.selection-summary__copy em { color: var(--muted); font-size: 10px; font-style: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.selection-summary > b { align-self: end; padding: 0 4px 5px 12px; font-size: 10px; font-weight: 500; }
.batch-summary { display: grid; grid-template-columns: 130px 110px minmax(0, 1fr); align-items: center; min-height: 74px; margin-bottom: 12px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.batch-summary > div { display: grid; gap: 4px; }
.batch-summary small { color: var(--muted); font-size: 8px; }
.batch-summary strong { font-family: var(--serif); font-size: 17px; }
.batch-summary p { margin: 0; color: var(--muted); font-size: 9px; text-align: right; }
.batch-preview-badge { position: absolute; left: 16px; bottom: 16px; display: grid; gap: 3px; min-width: 128px; padding: 12px; background: rgba(23, 23, 20, .88); color: white; }
.batch-preview-badge small { color: #c9a873; font-size: 8px; letter-spacing: .15em; }
.batch-preview-badge strong { font-family: var(--serif); font-size: 22px; }
.batch-preview-badge span { color: #bbb; font-size: 8px; }
.bag-reference { overflow: visible; }
.bag-reference b { position: absolute; right: -8px; top: -8px; width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; background: var(--gold); color: white; font-size: 8px; }
.batch-results { width: 100%; min-height: 600px; display: grid; grid-template-columns: 1fr; gap: 12px; align-content: start; overflow: auto; }
.batch-results a { position: relative; width: 100%; min-height: 600px; max-height: 70vh; overflow: hidden; background: #dedad2; }
.batch-results img { width: 100%; height: 100%; min-height: 600px; max-height: 70vh; object-fit: contain; }
.batch-results span { position: absolute; left: 7px; top: 7px; width: 22px; height: 22px; display: grid; place-items: center; background: rgba(251, 250, 247, .88); color: var(--ink); font-size: 8px; }
.batch-result-card > b { position: absolute; right: 14px; bottom: 14px; padding: 11px 14px; background: var(--ink); color: white; font-size: 10px; font-weight: 500; }
.history-grid a > b { position: absolute; right: 8px; bottom: 8px; padding: 5px 7px; background: var(--ink); color: white; font-size: 9px; font-weight: 500; }
dialog.asset-picker-dialog { width: min(1040px, 92vw); max-width: none; height: min(780px, 88vh); max-height: 88vh; padding: 0; background: var(--paper); overflow: hidden; box-shadow: 0 30px 100px rgba(0, 0, 0, .25); }
dialog.asset-picker-dialog[open] { display: flex; flex-direction: column; }
.picker-dialog-head { flex: 0 0 auto; min-height: 92px; padding: 22px 26px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.picker-dialog-head p { margin: 0 0 4px; color: var(--gold); font-size: 8px; letter-spacing: .18em; }
.picker-dialog-head h2 { margin: 0 0 3px; font-family: var(--serif); font-size: 25px; }
.picker-dialog-head span { color: var(--muted); font-size: 9px; }
.picker-dialog-head > button { align-self: start; border: 0; background: transparent; font-size: 25px; font-weight: 300; }
.picker-grid { flex: 1 1 auto; min-height: 0; padding: 22px 26px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; align-content: start; overflow: auto; }
.picker-item { position: relative; display: block; width: 100%; border: 1px solid transparent; background: transparent; padding: 0; text-align: left; appearance: none; -webkit-appearance: none; transition: transform .18s, border-color .18s; }
.picker-item:hover { transform: translateY(-2px); }
.picker-item.is-selected { border-color: var(--gold); }
.picker-item__thumb { display: block; width: 100%; aspect-ratio: 3 / 4; overflow: hidden; background: #e5e1d9; }
.picker-item__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; border: 0; pointer-events: none; }
.picker-item__name { display: block; padding: 8px; font-size: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.picker-item i { display: none; position: absolute; right: 7px; top: 7px; width: 24px; height: 24px; border-radius: 50%; place-items: center; background: var(--gold); color: white; font-size: 10px; font-style: normal; }
.picker-item.is-selected i { display: grid; }
.picker-dialog-foot { flex: 0 0 auto; min-height: 66px; padding: 0 26px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); background: var(--white); }
.picker-dialog-foot > span { color: var(--muted); font-size: 10px; }
.picker-dialog-foot > div { display: flex; gap: 8px; }
#workspace-page { padding-top: 36px; }
#workspace-page .settings { grid-template-columns: minmax(0, 1fr) 145px 210px; }

@media (max-width: 1150px) {
  .selection-summary { grid-template-columns: 104px minmax(0, 1fr); }
  .selection-summary > b { display: none; }
  #workspace-page .settings { grid-template-columns: 1fr 1fr; }
  #workspace-page .settings label:first-child { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .selection-summary { grid-template-columns: 82px minmax(0, 1fr); gap: 14px; min-height: 112px; }
  .selection-summary__visual { width: 82px; height: 84px; }
  .selection-summary > b { display: none; }
  .batch-summary { grid-template-columns: 1fr 1fr; }
  .batch-summary p { grid-column: 1/-1; text-align: left; padding-bottom: 10px; }
  .asset-picker-dialog { width: 96vw; height: 90vh; }
  .picker-grid { grid-template-columns: repeat(2, 1fr); padding: 15px; }
  .picker-dialog-head, .picker-dialog-foot { padding-left: 15px; padding-right: 15px; }
  #workspace-page { padding-top: 24px; }
  #workspace-page .settings { grid-template-columns: 1fr; }
  #workspace-page .settings label:first-child { grid-column: auto; }
}
