/* Scoped to the additive tool. Existing desktop, IRIS and controls are unchanged. */
.ff-marketplace{padding:20px;max-width:960px;width:100%;box-sizing:border-box;color:var(--text,#e4e8ec);font-size:14px;line-height:1.45}
.ff-marketplace h2{font-size:22px;margin:0 0 8px}.ff-marketplace h3{font-size:16px;margin:0 0 10px}
.ff-marketplace p{margin:8px 0}.ff-marketplace .mp-notice{color:#b5c1ce;font-size:13px}
.ff-marketplace .mp-status{padding:10px 12px;background:#242c34;border-radius:6px;min-height:20px}
.ff-marketplace .mp-section{margin-top:22px;padding-top:18px;border-top:1px solid #39434d}
.ff-marketplace .mp-intents,.ff-marketplace .mp-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:12px 0}
html body .ff-marketplace button{width:auto!important;min-width:0!important;max-width:100%;flex:0 0 auto!important;padding:8px 12px!important;min-height:40px;line-height:1.2;font-size:14px;border:1px solid #485460;border-radius:6px;background:#28323c;color:#edf2f7;cursor:pointer;transform:none!important}
html body .ff-marketplace button[aria-pressed=true]{background:#374e62;border-color:#9ebcd4}
html body .ff-marketplace button:disabled{opacity:.55;cursor:default}
.ff-marketplace :is(button,input,select,textarea):focus-visible{outline:2px solid #b6d7f1;outline-offset:3px}
.ff-marketplace .mp-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px}
.ff-marketplace .mp-field{display:grid;gap:5px;align-content:start}.ff-marketplace label{display:block;font-size:13px}
.ff-marketplace :is(input:not([type=checkbox]),select,textarea){box-sizing:border-box;width:100%;min-height:40px;padding:8px;background:#1a2229;color:#edf2f7;border:1px solid #4c5966;border-radius:5px;font:inherit}
.ff-marketplace input[type=checkbox]{width:18px;height:18px;vertical-align:middle;margin:12px 8px 4px 0}.ff-marketplace input[type=checkbox]+label{display:inline}
.ff-marketplace .mp-photo{width:auto;max-width:100%;height:150px;object-fit:contain;margin:12px 0;display:block}.ff-marketplace .mp-photo[hidden]{display:none}
.ff-marketplace .mp-evidence{padding:8px 0;color:#cfdae5}.ff-marketplace .mp-draft{padding:12px;background:#1b232b;white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;border-radius:6px}
.ff-marketplace [hidden]{display:none!important}
@media(max-width:580px){.ff-marketplace{padding:14px}.ff-marketplace .mp-fields{grid-template-columns:1fr}.ff-marketplace .mp-intents button{min-height:44px}}
/* Keep long forms inside their managed window; window movement stays in its titlebar. */
html body #ffMarketplacePanel.ff-marketplace{min-height:0;max-width:none;flex:1 1 0;overflow:auto;overscroll-behavior:contain}
html body #ffMarketplacePanel.ff-marketplace :is(button,input,select,textarea){font-size:14px!important;line-height:1.3!important}
html body #ffMarketplacePanel.ff-marketplace input[type=checkbox]{width:18px!important;height:18px!important}
/* Follow the resizable app window, not only the browser viewport. */
html body #ffMarketplacePanel.ff-marketplace{container:ff-marketplace / inline-size}
#ffMarketplacePanel .mp-field{min-width:0}
@container ff-marketplace (max-width:580px){
  #ffMarketplacePanel .mp-fields{grid-template-columns:minmax(0,1fr)}
}
