.manual-content-toggle { min-height: 44px; border: 1px solid var(--accent-strong); background: #fff; color: var(--accent-strong); font-weight: 650; display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; }
.manual-content-toggle > span { font-size: 23px; font-weight: 400; }
.manual-load-status { margin: 0; color: #a52b24; font-size: 12px; overflow-wrap: anywhere; }
.manual-load-status:empty { display: none; }
.manual-content-modal { padding: 0; width: min(700px, calc(100vw - 24px)); max-width: none; max-height: min(900px, calc(100dvh - 24px)); border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: #fff; box-shadow: 0 18px 70px #24151d30; }
.manual-content-modal::backdrop { background: #21151c55; }
.manual-content-modal form { margin: 0; display: flex; flex-direction: column; max-height: min(900px, calc(100dvh - 24px)); }
.manual-content-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 20px; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.manual-content-header h2 { margin: 0; font-size: 19px; line-height: 1.3; }
.manual-content-header button { width: 40px; height: 40px; padding: 0; display: grid; place-items: center; font-size: 25px; color: var(--muted); background: #fff; border: 1px solid var(--line); box-shadow: none; }
.manual-content-body { padding: 18px 20px; overflow: auto; min-height: 0; }
.manual-content-meta { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 14px; padding-bottom: 8px; }
.manual-content-modal label { display: grid; gap: 5px; font-size: 12px; font-weight: 600; min-width: 0; }
.manual-content-modal input:not([type="checkbox"]):not([type="file"]), .manual-content-modal select { width: 100%; min-width: 0; min-height: 42px; border: 1px solid var(--line); background: #fff; color: var(--ink); padding: 8px 10px; border-radius: 3px; font-size: 16px; font-weight: 400; box-sizing: border-box; }
.manual-product-row { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.manual-photo-pick { position: relative; align-self: start; width: 128px; aspect-ratio: 4 / 5; border: 1px dashed var(--line); border-radius: 4px; overflow: hidden; cursor: pointer; background: #fff; align-content: center; justify-items: center; }
.manual-photo-pick img { width: 100%; height: 132px; object-fit: contain; background: #fff; }
.manual-photo-pick input[type="file"] { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.manual-photo-pick:focus-within { outline: 2px solid var(--accent-strong); outline-offset: 2px; }
.manual-photo-plus { font-size: 35px; font-weight: 300; color: var(--muted); }
.manual-product-fields { display: grid; gap: 8px; min-width: 0; }
.manual-product-heading { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 24px; }
.manual-product-heading strong { font-size: 13px; }
.manual-product-heading button { width: 30px; height: 30px; padding: 0; font-size: 21px; background: #fff; border: 1px solid var(--line); color: var(--muted); box-shadow: none; }
.optional-field { color: var(--muted); font-weight: 400; display: inline; }
.manual-add-product { min-height: 42px; padding: 8px 16px; margin: 14px 0; border: 1px solid var(--line); background: #fff; box-shadow: none; color: var(--ink); font-size: 14px; }
.manual-add-product[hidden] { display: none; }
.manual-content-modal .manual-product-confirm { display: flex; align-items: flex-start; gap: 10px; margin-top: 16px; font-weight: 400; line-height: 1.5; font-size: 12px; }
.manual-product-confirm input { width: 18px; height: 18px; flex: 0 0 18px; margin: 0; accent-color: var(--accent-strong); }
.manual-content-status { min-height: 20px; margin: 12px 0 0; color: #8e394b; font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
.manual-content-footer { flex-shrink: 0; display: flex; justify-content: flex-end; padding: 14px 20px; border-top: 1px solid var(--line); background: #fff; }
.manual-content-footer button { min-height: 46px; padding: 10px 24px; background: var(--accent-strong); border: 1px solid var(--accent-strong); color: #fff; border-radius: 3px; font-size: 14px; font-weight: 650; box-shadow: none; }
.manual-import-button { justify-self: start; min-height: 38px; padding: 7px 14px; border: 1px solid var(--accent-strong); border-radius: 3px; background: #fff; color: var(--accent-strong); font-size: 13px; font-weight: 650; box-shadow: none; cursor: pointer; }
.manual-import-button:hover:not(:disabled) { background: var(--accent-soft); }
.manual-content-modal :disabled { opacity: .6; cursor: wait; }
@media (max-width: 540px) {
  .manual-content-header { padding: 10px 14px; }
  .manual-content-body { padding: 14px; }
  .manual-content-meta { grid-template-columns: 1fr; gap: 12px; }
  .manual-product-row { grid-template-columns: 88px minmax(0, 1fr); gap: 12px; padding: 15px 0; }
  .manual-photo-pick { width: 88px; }
  .manual-photo-pick img { height: 84px; }
  .manual-photo-pick > span:last-of-type { font-size: 11px; }
  .manual-content-footer { padding: 12px 14px; }
  .manual-content-footer button { width: 100%; }
}
