/* DO NOT EDIT — copied from packages/shared/src/storehub/ui/page-media.css
   by `npm run tokens`. Edit the source there, regenerate, commit both.
   A vitest in packages/shared fails if this file drifts from the source. */
/* Store Hub page: Media & Ads. Copied verbatim to apps/server/public/shared/storehub/page-media.css by
 * npm run tokens. Class prefix .tdtt-sh-md-. Tokens only (var(--...)); no alpha tints (solid color-mix),
 * so it is safe on /m. See storehub.css for the shared kit. */
.tdtt-sh-md .tdtt-sh-tabs { margin-bottom: 14px; }
/* main is first in the DOM (tab order); wrap-reverse floats the aside above the grid when it cannot sit beside it */
.tdtt-sh-md-cols { display: flex; flex-wrap: wrap-reverse; gap: 16px; align-items: flex-end; }
.tdtt-sh-md-main { flex: 3 1 520px; min-width: 0; align-self: flex-end; }
.tdtt-sh-md-side { display: flex; flex-direction: column; gap: 12px; flex: 1 1 280px; min-width: 0; align-self: flex-end; }
.tdtt-sh-md-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.tdtt-sh-md-card { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.tdtt-sh-md-thumb { aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--input); border: 1px solid var(--surface-2); display: flex; align-items: center; justify-content: center; }
.tdtt-sh-md-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tdtt-sh-md-thumb--none span { font-size: 12px; color: var(--text-dim); }
.tdtt-sh-md-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tdtt-sh-md-title b { overflow-wrap: anywhere; }
.tdtt-sh-md-meta { font-size: 12.5px; color: var(--text-dim); }
.tdtt-sh-md-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.tdtt-sh-md-acts { gap: 6px; }
.tdtt-sh-md-edit { display: flex; flex-direction: column; gap: 6px; }
.tdtt-sh-md-meter { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin-top: 10px; }
.tdtt-sh-md-meter i { display: block; height: 100%; width: 0; background: var(--cyan); border-radius: 999px; }
.tdtt-sh-md-used { font-size: 14px; }
.tdtt-sh-md-drop { border: 2px dashed color-mix(in srgb, var(--text-dim) 22%, var(--surface)); border-radius: 12px; padding: 16px 12px; text-align: center; display: flex; flex-direction: column; gap: 8px; align-items: center; cursor: pointer; }
.tdtt-sh-md-drop p { margin: 0; }
.tdtt-sh-md-drop.is-over { border-color: var(--cyan); background: color-mix(in srgb, var(--cyan) 10%, var(--surface)); }
.tdtt-sh-md-drop:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.tdtt-sh-md-droprow { justify-content: center; align-items: center; }
.tdtt-sh-md-file { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; overflow: hidden; }
.tdtt-sh-md-art { margin: 10px 0 0; font-size: 12.5px; }
.tdtt-sh-md-note { margin: 8px 0 0; font-size: 13px; }
.tdtt-sh-md-note--error { color: var(--red); }
.tdtt-sh-md-note--ok { color: var(--green); }
.tdtt-sh-md-plist { display: flex; flex-direction: column; gap: 8px; }
.tdtt-sh-md-prow { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; text-align: left; font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--surface-2); border-radius: 12px; padding: 14px 16px; cursor: pointer; }
.tdtt-sh-md-prow:hover { border-color: var(--text-dim); }
.tdtt-sh-md-dhead { margin-bottom: 12px; }
.tdtt-sh-md-create { align-items: flex-end; }
.tdtt-sh-md-items { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.tdtt-sh-md-item { display: grid; grid-template-columns: auto 96px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--surface-2); border-radius: 10px; background: var(--input); cursor: grab; }
.tdtt-sh-md-item .tdtt-sh-md-thumb { width: 96px; height: 54px; align-self: start; }
.tdtt-sh-md-grip { color: var(--text-dim); font-size: 18px; }
.tdtt-sh-md-ibody { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.tdtt-sh-md-dates { align-items: center; gap: 6px; }
.tdtt-sh-md-days { display: flex; gap: 4px; flex-wrap: wrap; }
.tdtt-sh-md-days .tdtt-sh-chip { min-height: 28px; padding: 0 8px; font-size: 12px; }
.tdtt-sh-md-order { display: flex; flex-direction: column; gap: 6px; }
.tdtt-sh-md-picker { align-items: center; margin: 12px 0; }

.tdtt-sh--narrow .tdtt-sh-md-side { flex-basis: 100%; }
.tdtt-sh--narrow .tdtt-sh-md-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.tdtt-sh--narrow .tdtt-sh-md-item { grid-template-columns: 1fr; cursor: default; }
.tdtt-sh--narrow .tdtt-sh-md-grip { display: none; }
.tdtt-sh--narrow .tdtt-sh-md-order { flex-direction: row; flex-wrap: wrap; }
