.header-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.header-actions .button { white-space: nowrap; }
.add-main { display: flex; align-items: center; gap: 10px; }
.add-main > span, .add-option > span { color: var(--muted); font-size: 11px; line-height: 1.5; }
.add-other-label { display: block; margin-bottom: 5px; color: var(--muted); font-size: 11px; text-align: right; }
.add-other-options { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.add-option { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.add-option .button { min-height: 38px; padding: 7px 12px; font-size: 12px; }
.photo-label { margin: 0 0 10px; font-size: 13px; font-weight: 600; }
.advanced-settings { border-top: 1px solid var(--border, #dde1da); margin-top: 4px; }
.advanced-settings summary { padding: 18px 0; cursor: pointer; color: var(--green, #2a4036); font-size: 14px; font-weight: 600; min-height: 48px; }
.advanced-settings summary:focus-visible { outline: 2px solid #2a4036; outline-offset: 3px; }
.advanced-settings > .fields { padding-bottom: 8px; }
.season-choices { flex-wrap: wrap; }
#bulk-dialog { width: min(1060px, calc(100vw - 40px)); }
.bulk-intro { color: #606961; font-size: 14px; line-height: 1.8; }
.bulk-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 22px 0 12px; }
#bulk-count { margin-left: auto; font-weight: 600; }
.bulk-rows { display: grid; gap: 18px; margin: 24px 0; }
.bulk-row { min-width: 0; padding: 20px; border: 1px solid #dde1da; border-radius: 14px; background: #fff; }
.bulk-row-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; gap: 12px; }
.bulk-row-heading .danger { margin-right: 0; min-height: 44px; }
.bulk-row h3 { margin: 0; font-size: 14px; }
.bulk-row-main { display: grid; grid-template-columns: 112px 1fr; gap: 20px; align-items: start; }
.bulk-photo-column > label { display: block; font-size: 12px; font-weight: 600; margin-bottom: 8px; }
.bulk-photo-button { position: relative; width: 112px; height: 128px; padding: 0; border: 1px dashed #8b9c8d; border-radius: 9px; overflow: hidden; background: #f4f5f1; color: #455548; font: inherit; font-size: 12px; cursor: pointer; }
.bulk-photo-button img { width: 100%; height: 100%; object-fit: contain; }
.bulk-photo-button img + span { position: absolute; inset: auto 0 0; padding: 6px; background: #ffffffdf; }
.bulk-basic-fields { display: grid; grid-template-columns: 1fr 1.5fr 1fr; gap: 14px; }
.bulk-basic-fields label { min-width: 0; }
.bulk-row .advanced-settings { margin-top: 16px; }
.bulk-row .advanced-settings > .fields { max-width: 700px; }
.bulk-row-errors { padding: 12px 16px 12px 32px; line-height: 1.8; }
.bulk-review-status { padding: 16px; border-radius: 10px; background: #f0f3ed; color: #304b39; font-size: 14px; line-height: 1.8; }
#bulk-error { white-space: pre-wrap; overflow-wrap: anywhere; }
[aria-invalid=true] { border-color: #ac4540 !important; }
.bulk-actions { flex-wrap: wrap; }
.detail-content dd { overflow-wrap: anywhere; white-space: pre-wrap; }
.detail-content dt { width: 86px; }
.chatgpt-item-intro { color: #606961; font-size: 14px; line-height: 1.8; margin: -6px 0 18px; }
.chatgpt-item-paste-label { display: block; font-size: 13px; font-weight: 600; }
.chatgpt-item-paste-label textarea { display: block; width: 100%; min-height: 300px; margin-top: 7px; padding: 13px; resize: vertical; border: 1px solid #dce4d8; border-radius: 7px; color: var(--ink); background: #fbfcfa; font: 14px/1.7 Consolas,"Yu Gothic UI",monospace; }
#chatgpt-item-error { margin-top: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 640px) { .photo-label { flex-basis: 100%; margin-bottom: 0; } }
@media (max-width: 1100px) { .page-heading { align-items: flex-start; flex-wrap: wrap; gap: 20px; } .header-actions { align-items: flex-start; } .add-other-label { text-align: left; } .add-other-options { justify-content: flex-start; } }
@media (max-width: 760px) { .bulk-basic-fields { grid-template-columns: 1fr; gap: 12px; } .bulk-row-main { grid-template-columns: 100px 1fr; gap: 14px; } .bulk-photo-button { width: 100px; height: 122px; } }
@media (max-width: 520px) {
  .header-actions, .add-other { width: 100%; }
  .add-main { width: 100%; justify-content: space-between; }
  .add-other-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .add-option { align-items: stretch; }
  .add-option .button { width: 100%; min-height: 44px; padding-inline: 8px; white-space: normal; font-size: 11px; }
  .add-option > span { text-align: center; font-size: 10px; }
  .import-option { grid-column: 1 / -1; }
  #bulk-dialog { width: calc(100vw - 20px); padding: 22px 16px; }
  #chatgpt-item-dialog { width: calc(100vw - 20px); padding: 22px 16px; }
  .chatgpt-item-paste-label textarea { min-height: 42dvh; font-size: 16px; }
  .bulk-row { padding: 14px; }
  .bulk-row-main { grid-template-columns: 1fr; }
  .bulk-photo-column { display: flex; align-items: center; gap: 16px; }
  .bulk-actions .button { flex: 1 1 100%; }
  .bulk-toolbar .button { flex: 1 1 auto; }
}
