/* Marketplace-only additions on top of the DOS web layer (dos/css: synced from DOS_WORK/design, do not edit).
   Only semantic tokens (--bg, --surface, --text, --muted, --line, --line-soft, --alert). */
.who { font-size: 13px; color: var(--muted); padding: 0 8px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; margin: 0 0 16px; }
.actions { display: flex; flex-wrap: wrap; gap: 6px; }
.actions .dos-btn, td .dos-btn { min-height: 34px; padding: 0 12px; font-size: 13px; }
.dos-btn.is-alert { color: var(--alert); border-color: var(--alert); background: transparent; }
h2.section { margin: 40px 0 12px; }
.table-scroll { overflow-x: auto; }
small { color: var(--muted); }
.waste { color: var(--alert); }

/* Catalogue cards */
.card { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.card h3 { margin: 0; font-size: 18px; }
.card p { margin: 0; font-size: 14px; color: var(--muted); }
.card .row { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: auto; padding-top: 8px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.dos-tag.is-on { color: var(--text); border-color: var(--text); }
.chip { min-height: 34px; padding: 0 12px; font: 500 13px/1 var(--dos-font); color: var(--text); background: transparent; border: 1px solid var(--line); cursor: pointer; }
.chip[aria-pressed="true"] { color: var(--bg); background: var(--text); border-color: var(--text); }
.logo { width: 32px; height: 32px; object-fit: contain; flex: none; filter: grayscale(1); }

/* Illustrations (Colorfigures UI, team licence): shown in greyscale, the brand is monochrome (DESIGN.md §1). */
.fig { width: 48px; height: 36px; object-fit: contain; flex: none; filter: grayscale(1); }
.fig.hero { width: 200px; height: 150px; align-self: center; }
.with-fig { display: flex; align-items: center; gap: 8px; }
.with-fig small { display: block; font-size: 12px; }

/* KPI band (DESIGN.md §4: number 500, short label 700) */
.dos-kpis { margin: 0 0 16px; }
.dos-kpi b { font-size: 32px; }
.dos-kpi small { display: block; margin-top: 4px; font-size: 12px; }

/* Forms and dialog */
#dialog-form label { display: flex; flex-direction: column; gap: 4px; }
#dialog-form label.check { flex-direction: row; align-items: center; gap: 8px; color: var(--text); }
textarea { min-height: 80px; }
dialog { padding: 0; width: min(560px, calc(100vw - 32px)); color: var(--text); background: var(--surface); border: 1px solid var(--line); }
dialog::backdrop { background: rgb(0 0 0 / .5); }
#dialog-form { display: flex; flex-direction: column; gap: 12px; padding: 24px; }
#dialog-form h2 { margin: 0; }
.error { margin: 0; font-size: 14px; color: var(--alert); }
.login { max-width: 420px; margin: 48px auto; display: flex; flex-direction: column; gap: 12px; }
#toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); padding: 10px 16px; color: var(--bg); background: var(--text); }

@media (max-width: 720px) {
  .dos-header { flex-wrap: wrap; gap: 8px; padding: 8px 16px; }
  .dos-nav { order: 3; flex-basis: 100%; }
  .dos-main { padding: 24px 16px 64px; }
  .who { display: none; }
  .dos-filters { display: grid; grid-template-columns: 1fr 1fr; }
  .dos-filters label { min-width: 0; }
  .dos-filters select { width: 100%; }
}
.dos-nav a { white-space: nowrap; }

/* Info status rows: the reason goes under the row. dos.css caps <p> width, which kept it inline (fix upstream in design). */
.dos-status .dos-help { max-width: none; }
