/* Desktop workspace: products are visual assets, not file-list rows. */
:root { --upload-border:#8cb5e5; --preview-bg:#f8f9fb; }
main { padding:40px clamp(28px,3.5vw,60px); }
.page-header { margin-bottom:28px; align-items:flex-start; }
.page-header h1 { font-size:34px; line-height:1.2; }
.page-header .muted { margin-top:10px; }
.heading-dot, .sidebar-bottom>.fine { display:none; }
.library-toolbar { margin-bottom:16px; }
.search { width:min(620px,100%); }
.filter-toolbar { padding-bottom:22px; border-bottom:1px solid var(--line); margin-bottom:26px; }
.article-list { display:grid; grid-template-columns:repeat(auto-fill,minmax(min(190px,100%),1fr)); gap:16px; border:0; align-items:stretch; }
.article-row { display:flex; flex-direction:column; align-items:stretch; gap:0; padding:0; position:relative; overflow:hidden; border:1px solid var(--line); border-radius:16px; background:var(--surface); min-width:0; }
.article-row:hover { border-color:var(--accent); box-shadow:0 6px 18px #18263a0a; }
.article-row:focus-visible { outline:3px solid var(--accent); outline-offset:4px; }
.article-thumb { position:relative; flex-shrink:0; width:100%; height:auto; aspect-ratio:4/3; border-radius:0; border-bottom:1px solid var(--line); background:var(--preview-bg); font-size:42px; }
.article-thumb img { position:absolute; inset:0; min-height:0; max-height:100%; width:100%; height:100%; object-fit:contain; padding:12px; }
.article-row>span:nth-child(2) { display:flex; flex-direction:column-reverse; gap:8px; padding:12px 12px 0; }
.article-row strong { margin:0; font-size:15px; line-height:1.45; font-weight:600; overflow-wrap:anywhere; }
.article-row .sku-line { font-size:12px; line-height:1.4; font-weight:650; color:var(--accent); letter-spacing:0; font-variant-numeric:tabular-nums; }
.article-meta { margin-top:auto; padding:10px 38px 12px 12px; text-align:left; font-size:12px; line-height:1.7; }
.article-row .arrow { position:absolute; bottom:14px; right:14px; color:var(--accent); font-size:19px; }
#detail-view .page-header h1 { max-width:820px; font-size:clamp(26px,2.4vw,34px); }
#detail-view .page-header .secondary { flex-shrink:0; }
.drop-zone { min-height:160px; border:2px dashed var(--upload-border); background:var(--accent-soft); justify-content:flex-start; }
.drop-zone.over { border-style:solid; border-color:var(--accent); }
.drop-zone h3 { font-size:19px; }
.upload-icon { width:52px; height:52px; background:var(--surface); }
.gallery-note { text-align:left; margin:12px 0 32px; }
.upload-status { padding:16px; margin-top:12px; border:1px solid var(--line); border-radius:12px; background:var(--surface); }
#upload-text { margin-bottom:0; line-height:1.6; overflow-wrap:anywhere; }
.gallery-toolbar { margin-bottom:20px; }
.empty { padding:48px 24px; }
.empty h2 { font-size:22px; }
/* Keep the grid fluid even on very wide screens. */
.library-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:10px; }
.library-actions > * { white-space:nowrap; }
#articles-view .page-header { flex-wrap:wrap; gap:20px; }
@media(max-width:1100px) { .page-header h1 { font-size:30px; } }
