/* Showcase owner screen (js/showcase). Names use .scs-*; it reuses the Inventory screen's inputs and buttons
   (.inv-*) and the app's tokens; logical properties so Arabic flips with no special cases. */
.showcase-page { min-height: calc(100vh - 64px); box-sizing: border-box; }
.showcase-page[hidden] { display: none; }
.scs-app { display: flex; flex-direction: column; height: calc(100vh - 64px); color: var(--text); font-family: var(--font-ui, system-ui, sans-serif); }
.scs-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 16px; border-bottom: 1px solid var(--border); background: var(--surface-1); }
.scs-title { margin: 0; font-size: 17px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 40ch; }
.scs-status { margin: 0; font-size: 12.5px; color: var(--muted); }
.scs-status-bad { color: var(--danger-text, #dc2626); }
.scs-draft { font-size: 12.5px; color: var(--muted); max-width: 36ch; }
.scs-body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(340px, 460px) minmax(0, 1fr); }
.scs-settings { overflow: auto; padding: 16px; display: flex; flex-direction: column; gap: 14px; border-inline-end: 1px solid var(--border); }
.scs-seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 3px; border-radius: 12px; background: var(--raised, var(--surface-2)); }
.scs-seg-opt { position: relative; }
.scs-seg-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.scs-seg-opt span { display: inline-block; padding: 6px 12px; border-radius: 9px; font-size: 13px; color: var(--muted); }
.scs-seg-opt input:checked + span { background: var(--surface-1); color: var(--text); font-weight: 600; box-shadow: var(--shadow-sm, 0 1px 2px rgb(0 0 0 / .1)); }
.scs-seg-opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 1px; }
.scs-accent { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.scs-accent input[type="color"] { width: 44px; height: 36px; padding: 0; border: 1px solid var(--border); border-radius: 8px; background: none; }
.scs-accent-sample { padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.scs-banner { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.scs-banner img { width: 240px; height: 75px; object-fit: cover; border-radius: 10px; }
.scs-fields { display: flex; flex-direction: column; gap: 6px; }
.scs-social { display: flex; flex-direction: column; gap: 6px; }
.scs-social h3 { margin: 4px 0 0; }
.scs-social-kind { width: 9em; flex: none; }
.scs-bad { color: var(--danger-text, #dc2626); }
.inv-input[aria-invalid="true"] { border-color: var(--danger-text, #dc2626); }
.scs-preview { display: flex; flex-direction: column; min-height: 0; background: var(--surface-inset, var(--surface-2)); }
.scs-preview-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 14px; border-bottom: 1px solid var(--border); }
.scs-preview-title { font-weight: 600; font-size: 13px; }
.scs-frame-wrap { flex: 1; min-height: 0; display: flex; justify-content: center; padding: 14px; overflow: auto; }
.scs-frame { width: 100%; height: 100%; min-height: 560px; border: 1px solid var(--border); border-radius: 12px; background: #fff; box-shadow: var(--shadow-md, 0 8px 24px rgb(0 0 0 / .12)); }
.scs-mobile .scs-frame { width: 390px; max-width: 100%; border-radius: 28px; border-width: 10px; border-color: #1d1b17; }
.scs-views-total { margin: 0; font-size: 14px; }
.scs-views-total strong { font-size: 22px; }
.scs-bars { display: flex; align-items: flex-end; gap: 3px; height: 72px; margin: 0; padding: 0; list-style: none; }
.scs-bars li { flex: 1; min-height: 2px; border-radius: 3px 3px 0 0; background: var(--accent); opacity: .85; }
.scs-bars li[data-h="0"] { height: 2px; opacity: .3; } .scs-bars li[data-h="1"] { height: 10%; } .scs-bars li[data-h="2"] { height: 20%; } .scs-bars li[data-h="3"] { height: 30%; }
.scs-bars li[data-h="4"] { height: 40%; } .scs-bars li[data-h="5"] { height: 50%; } .scs-bars li[data-h="6"] { height: 60%; } .scs-bars li[data-h="7"] { height: 70%; }
.scs-bars li[data-h="8"] { height: 80%; } .scs-bars li[data-h="9"] { height: 90%; } .scs-bars li[data-h="10"] { height: 100%; }
.scs-state { margin: auto; max-width: 520px; padding: 32px; text-align: center; }
.scs-state h2 { margin: 0 0 8px; font-size: 18px; } .scs-state p { color: var(--muted); }
.scs-open-btn { border-color: var(--accent-soft-border, var(--border)); }
.scs-progress { width: 100%; }
.scs-print-host { position: relative; height: 70vh; overflow: auto; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-inset, #eee); }
@media (max-width: 900px) {
  .scs-body { grid-template-columns: 1fr; grid-template-rows: auto minmax(520px, 70vh); }
  .scs-settings { border-inline-end: 0; border-bottom: 1px solid var(--border); }
}

/* Print catalogue / QR posters dialogs (js/showcase/ui/print.js) */
.scs-print-opts { display: grid; gap: 14px; min-width: min(420px, 80vw); }
.scs-print-opts fieldset { border: 0; margin: 0; padding: 0; }
.scs-print-opts legend { margin-bottom: 6px; }
.scs-progress { display: grid; gap: 6px; }
.scs-progress progress { width: 100%; height: 10px; accent-color: var(--scs-accent, #FFB020); }
