/* Independent form layout; legacy product selectors must not size IP uploads. */
#workspace-oral-ip > section { padding: 28px; background: #111114; color: #f4f4f5; }
#workspace-oral-ip .product-studio-intro { display: flex; justify-content: space-between; gap: 16px; margin: 0 0 24px; }
#workspace-oral-ip .studio-format { color: #b5b5bd; }
#oralIpForm { display: flex; flex-direction: column; align-items: stretch; gap: 20px; padding: 0; background: none; color: #f4f4f5; width: 100%; }
#oralIpForm .product-form-step { display: block; align-self: stretch; box-sizing: border-box; width: 100%; min-width: 0; min-height: 0; margin: 0; padding: 24px; border: 1px solid #35353b; border-radius: 16px; background: #19191e; color: #f4f4f5; }
#oralIpForm .product-step-heading { display: flex; align-items: flex-start; gap: 12px; margin: 0 0 20px; }
#oralIpForm .product-step-heading > b { display: grid; place-items: center; width: 28px; height: 28px; flex: 0 0 28px; border-radius: 50%; background: #ececf0; color: #18181b; }
#oralIpForm .product-step-heading strong { display: block; color: #fafafa; font-size: 17px; }
#oralIpForm .product-step-heading span { display: block; margin-top: 5px; color: #b4b4bf; line-height: 1.6; }
#oralIpForm .product-essential-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
#oralIpForm label.product-field-card { display: block; position: static; padding: 0; margin: 0 0 16px; min-width: 0; background: none; border: 0; box-shadow: none; color: #f4f4f5; }
#oralIpForm .product-field-label { display: flex; gap: 8px; margin-bottom: 10px; color: #f4f4f5; }
#oralIpForm .product-field-label em { color: #aaaab6; font-size: 12px; font-style: normal; }
#oralIpForm textarea { display: block; box-sizing: border-box; width: 100%; min-height: 90px; padding: 14px; border: 1px solid #484851; border-radius: 10px; background: #24242b; box-shadow: none; color: #fafafa; font: inherit; resize: vertical; }
#oralIpForm textarea::placeholder { color: #a5a5b1; }
#oralIpForm input[type=file] { display: block; position: static; opacity: 1; width: 100%; height: auto; min-height: 48px; box-sizing: border-box; padding: 10px; border: 1px solid #484851; border-radius: 10px; background: #24242b; color: #e4e4e7; font-size: 13px; }
#oralIpForm input::file-selector-button { margin-right: 10px; padding: 6px 10px; border: 0; border-radius: 6px; background: #ededf1; color: #18181b; cursor: pointer; }
#oralIpForm small { display: block; margin-top: 8px; color: #b5b5c1; font-size: 12px; line-height: 1.7; }
#oralIpForm .product-form-step > label:not(.product-field-card) { display: block; margin: 12px 0; color: #e4e4e7; line-height: 1.7; font-weight: 400; }
#oralIpForm input[type=checkbox] { display: inline-block; width: 16px; height: 16px; min-height: 0; padding: 0; margin: 0 8px 0 0; vertical-align: middle; accent-color: #c9c9ff; }
#oralIpForm p { color: #b5b5c1; font-size: 13px; line-height: 1.8; }
#oralIpForm button[type=submit], #oralIpTasks { width: auto; padding: 13px 22px; border: 1px solid #dddde4; border-radius: 10px; background: #f4f4f5; color: #18181b; font: inherit; font-weight: 600; cursor: pointer; }
#oralIpForm button:disabled { opacity: .55; cursor: wait; }
#oralIpTasks { margin-top: 20px; background: transparent; color: #e4e4e7; border-color: #45454e; }
#oralIpForm select { width: 100%; padding: 12px; border: 1px solid #484851; border-radius: 10px; background: #24242b; color: #e4e4e7; font: inherit; }
#oralIpForm :focus-visible { outline: 2px solid #b4b4ff; outline-offset: 3px; }
@media (max-width: 700px) {
  #workspace-oral-ip > section { padding: 16px; }
  #workspace-oral-ip .product-studio-intro { flex-direction: column; }
  #oralIpForm .product-form-step { padding: 16px; }
  #oralIpForm .product-essential-fields { grid-template-columns: 1fr; }
}

/* Clothing uses the same optional upload surface, with saved owner-bound previews. */
#oralIpForm .oral-wardrobe-field { grid-column: 1 / -1; margin-top: 18px; min-width: 0; }
#oralIpForm .oral-clothing-list { display: grid; grid-template-columns: minmax(0,140px); gap: 10px; max-width: 140px; padding: 0; margin: 12px 0 0; list-style: none; }
#oralIpForm .oral-clothing-list[hidden], #oralIpForm [data-clothing-clear][hidden], #oralIpForm [data-clothing-status][hidden] { display: none; }
#oralIpForm .oral-clothing-item { position: relative; display: flex; flex-direction: column; gap: 7px; min-width: 0; padding: 7px; border: 1px solid var(--s-line,#484851); border-radius: 12px; background: var(--s-panel,#24242b); }
#oralIpForm .oral-clothing-item img { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 7px; background: #fff; }
#oralIpForm .oral-clothing-item > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-right: 3px; font-size: 12px; color: var(--s-text,inherit); }
#oralIpForm .oral-clothing-item .upload-file-remove { position: absolute; top: 9px; right: 9px; display: grid; place-items: center; width: 30px; height: 30px; min-height: 0; margin: 0; padding: 0; border-radius: 50%; background: #111827d9; color: #fff; border: 1px solid #ffffff80; font: 21px/1 system-ui; cursor: pointer; }
#oralIpForm .oral-clothing-actions { display: flex; justify-content: flex-end; margin-top: 8px; }
#oralIpForm .oral-clothing-actions button { min-height: 36px; padding: 6px 10px; font: inherit; font-size: 12px; }
#oralIpForm .oral-wardrobe-field .upload-drop { position: relative; }
#oralIpForm .oral-wardrobe-field input.upload-native { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; min-height: 0; margin: 0; padding: 0; cursor: pointer; }
#oralIpForm [data-clothing-status] { overflow-wrap: anywhere; }
@media (max-width: 700px) {
  #oralIpForm .oral-wardrobe-field { margin-top: 16px; }
  #oralIpForm .oral-clothing-item .upload-file-remove { width: 36px; height: 36px; top: 5px; right: 5px; }
}
