/* Ovládací panel náhledu prototypu (není součástí aplikace) */
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { font-family: 'Inter', system-ui, sans-serif; background: #e9ecf2; color: #1d2340; display: grid; grid-template-columns: 300px 1fr; grid-template-rows: 52px 1fr; height: 100vh; overflow: hidden; }
body.panel-hidden { grid-template-columns: 0 1fr; }
body.panel-hidden #pvSide { display: none; }
#pvTop { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; padding: 0 14px; background: #0A1A65; color: #fff; font-size: 13px; }
#pvTop .brand { font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 8px; margin-right: 8px; }
#pvTop .brand img { height: 26px; }
#pvTop .ver { opacity: .7; }
#pvTop select, #pvTop button { font: inherit; font-size: 12px; border-radius: 6px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); color: #fff; padding: 5px 8px; cursor: pointer; }
#pvTop select option { color: #000; }
#pvTop .sp { flex: 1; }
#pvTop a { color: #9DB5FF; }
#pvCrumb { font-size: 12px; opacity: .85; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 40vw; }
#pvCrumb .cur { font-weight: 700; opacity: 1; }
#pvSide { background: #fff; border-right: 1px solid #d5d9e3; display: flex; flex-direction: column; overflow: hidden; }
#pvSide .head { padding: 10px 12px 6px; border-bottom: 1px solid #e3e6ee; }
#pvSide .head input { width: 100%; font: inherit; font-size: 13px; padding: 7px 10px; border-radius: 8px; border: 1px solid #cfd4e0; }
#pvCount { font-size: 11px; color: #6b7390; margin-top: 6px; }
#pvList { flex: 1; overflow-y: auto; padding: 6px 0 20px; }
.pv-area-t { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #6b7390; padding: 12px 12px 4px; display: flex; justify-content: space-between; }
.pv-area-t span { font-weight: 500; }
.pv-var { display: block; width: 100%; text-align: left; font: inherit; font-size: 13px; padding: 7px 12px 7px 16px; border: 0; background: transparent; cursor: pointer; color: #1d2340; border-left: 3px solid transparent; }
.pv-var:hover { background: #f1f3f8; }
.pv-var.active { background: #e8eeff; border-left-color: #3366FF; font-weight: 600; }
#pvNote { font-size: 12px; color: #4a5272; padding: 10px 12px; border-top: 1px solid #e3e6ee; background: #fbfbfd; min-height: 40px; }
#pvStage { position: relative; overflow: auto; display: flex; align-items: center; justify-content: center; padding: 12px; }
.pv-zoom { display: inline-block; }
#pvFrame { position: relative; overflow: hidden; background: #fff; border-radius: 44px; box-shadow: 0 0 0 10px #16182a, 0 0 0 12px #3b3e55, 0 24px 60px rgba(0,0,0,.35); }
#pvFrame.tablet { border-radius: 24px; }
#pvFrame .pv-screens, #pvFrame .pv-overlays { position: absolute; inset: 0; }
#pvFrame .pv-overlays { pointer-events: none; }
#pvFrame .pv-overlays > * { pointer-events: auto; }
#pvFrame .pv-home { position: absolute; left: 50%; bottom: 8px; width: 134px; height: 5px; border-radius: 3px; background: rgba(0,0,0,.35); transform: translateX(-50%); z-index: 40; pointer-events: none; }
@media (max-width: 800px) { body { grid-template-columns: 1fr; } #pvSide { display: none; } }

body.no-notes .z-note { display: none; }
#pvTop label { display: inline-flex; align-items: center; gap: 4px; }

/* záložky panelu: Varianty | Konfigurace */
.pv-tabs { display: flex; border-bottom: 1px solid #e3e6ee; }
.pv-tabs button { flex: 1; font: inherit; font-size: 13px; font-weight: 600; padding: 9px 6px; border: 0; background: #f6f7fa; color: #6b7390; cursor: pointer; border-bottom: 2px solid transparent; }
.pv-tabs button.on { background: #fff; color: #1d2340; border-bottom-color: #3366FF; }
body:not([data-side="cfg"]) .pv-cfg-only { display: none; }
body[data-side="cfg"] .pv-var-only { display: none; }
#pvCfg { flex: 1; overflow-y: auto; padding: 8px 0 20px; font-size: 12px; }
.cfg-head { display: flex; gap: 6px; padding: 4px 12px 8px; }
.cfg-head select { flex: 1; font: inherit; font-size: 13px; padding: 6px; border-radius: 8px; border: 1px solid #cfd4e0; }
.cfg-head button { font: inherit; font-size: 12px; border: 1px solid #cfd4e0; border-radius: 8px; background: #fff; cursor: pointer; }
.cfg-note { margin: 0 12px 8px; color: #4a5272; font-size: 12px; }
.cfg-group summary { cursor: pointer; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #6b7390; padding: 10px 12px 4px; display: flex; justify-content: space-between; }
.cfg-row { display: flex; align-items: center; gap: 8px; padding: 5px 12px 5px 16px; border-left: 3px solid transparent; }
.cfg-row.changed { border-left-color: #E5B80B; background: #FFFBEA; }
.cfg-row label { flex: 1; min-width: 0; cursor: pointer; }
.cfg-row .cfg-l { display: block; color: #1d2340; font-size: 12.5px; }
.cfg-row code { display: block; color: #8a91aa; font-size: 10.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cfg-row select, .cfg-row input[type=number], .cfg-row input:not([type]) { font: inherit; font-size: 12px; max-width: 120px; }
.cfg-scr a { font-size: 10.5px; color: #3366FF; margin-right: 4px; }

/* režim pro klienty (?klient=1, export dist-klient): bez konfigurace, poznámek a interních odkazů */
body.client .z-note, body.client .pv-tabs, body.client .pv-cfg-only, body.client #pvNote, body.client #pvNotesLabel, body.client #pvReadme { display: none !important; }
