/* Constructorul paginii de prezentare (rvb-) și panoul „Comentarii” din editorul de album (cmp-) */

/* ───── constructor ───── */
.rvb-root { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.rvb-back { text-decoration: none; max-width: 22vw; }
.rvb-back span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar button.title { border: 0; background: transparent; color: inherit; cursor: pointer; display: inline-block; height: 34px; }
.rvb-pub { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 20px; background: rgba(255, 255, 255, .1); color: #c9cde0; margin-right: 6px; white-space: nowrap; }
.rvb-pub.ok { background: rgba(60, 190, 120, .18); color: #9be3bb; }
.rvb-pub.warn { background: rgba(240, 170, 60, .2); color: #ffd28a; }

.rvb { flex: 1; display: flex; min-height: 0; }
.rvb-stage { flex: 1; min-width: 0; display: flex; flex-direction: column; background: var(--bg); }
.rvb-stagebar { flex: none; display: flex; align-items: center; gap: 14px; padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--panel-2); }
.rvb-tip { color: var(--muted); font-size: 12.5px; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rvb-frame-wrap { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 16px; overflow: hidden; }
.rvb-frame { position: relative; flex: none; overflow: hidden; background: #fff; border-radius: 8px; box-shadow: var(--shadow); }
.rvb-frame.phone { border-radius: 26px; box-shadow: 0 0 0 8px #20232e, var(--shadow); }
.rvb-iframe { position: absolute; left: 0; top: 0; border: 0; transform-origin: 0 0; background: #fff; }

.rvb-side { flex: none; width: 384px; overflow-y: auto; background: var(--panel); border-left: 1px solid var(--line); }
.rvb-sec { border-bottom: 1px solid var(--line); }
.rvb-sec-head { display: flex; align-items: center; gap: 10px; width: 100%; height: 48px; padding: 0 16px; border: 0; background: transparent; text-align: left; font-weight: 600; font-size: 14px; color: var(--text); }
.rvb-sec-head:hover { background: var(--panel-2); }
.rvb-sec-head > .ic:first-child { color: var(--ink-soft); }
.rvb-sec-head > .ic:last-child { color: var(--muted); transition: transform .15s; }
.rvb-sec.open > .rvb-sec-head > .ic:last-child { transform: rotate(180deg); }
.rvb-sec-body { display: none; flex-direction: column; gap: 14px; padding: 4px 16px 18px; }
.rvb-sec.open > .rvb-sec-body { display: flex; }
.rvb-sec-body .toggle { justify-content: space-between; flex-direction: row-reverse; width: 100%; }
.rvb-sec-body .toggle-label { flex: 1; }
.rvb-note { color: var(--muted); font-size: 12px; line-height: 1.4; }
.rvb-sec-body textarea.inp { min-height: 76px; }

.rvb-image { display: flex; gap: 12px; align-items: center; }
.rvb-image-thumb { width: 120px; height: 80px; flex: none; border-radius: 8px; overflow: hidden; background: #e7e3db; color: #a8a295; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); }
.rvb-image-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rvb-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.rvb-pick { padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: #e7e3db; aspect-ratio: 3 / 2; }
.rvb-pick img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rvb-pick:hover { border-color: var(--line-2); }
.rvb-pick.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }

.rvb-palettes { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.rvb-palette { position: relative; height: 46px; border-radius: 9px; border: 1px solid rgba(0, 0, 0, .16); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-size: 16px; padding: 0 0 6px; overflow: hidden; }
.rvb-palette i { position: absolute; left: 0; right: 0; bottom: 0; height: 8px; }
.rvb-palette.on { outline: 2px solid var(--accent); outline-offset: 2px; }
.rvb-color { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rvb-color > span { font-size: 13px; color: var(--ink-soft); font-weight: 600; }
.rvb-color .color-field { flex-wrap: nowrap; }
.rvb-editing { display: flex; gap: 8px; align-items: flex-start; padding: 9px 11px; border-radius: 9px; background: var(--accent-soft); color: var(--accent-2); font-size: 12.5px; line-height: 1.4; }
.rvb-editing .ic { margin-top: 1px; }

.rvb-logos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.rvb-logo { height: 62px; padding: 6px; border: 1px solid var(--line-2); border-radius: 9px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--ink-soft);
  /* fundal în carouri, ca logourile albe sau transparente să se vadă */
  background-color: #fafafa;
  background-image: linear-gradient(45deg, #e9e9e9 25%, transparent 25%, transparent 75%, #e9e9e9 75%), linear-gradient(45deg, #e9e9e9 25%, transparent 25%, transparent 75%, #e9e9e9 75%);
  background-size: 12px 12px; background-position: 0 0, 6px 6px; }
.rvb-logo img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.rvb-logo small { font-size: 11px; background: #fff; padding: 0 4px; border-radius: 4px; }
.rvb-logo.add { background-image: none; background-color: transparent; border-style: dashed; }
.rvb-logo.add small { background: none; }
.rvb-logo:hover { border-color: #bdb7ab; }
.rvb-logo.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }

.rvb-design { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; }
.rvb-design-ic { width: 34px; height: 34px; flex: none; border-radius: 8px; background: var(--panel-2); color: var(--ink-soft); display: flex; align-items: center; justify-content: center; }
.rvb-design b { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rvb-design small { color: var(--muted); font-size: 12px; }
.rvb-design .toggle { width: auto; flex: none; }
.rvb-pin { width: 96px; text-align: center; font: 600 16px ui-monospace, Consolas, monospace; letter-spacing: .22em; }

.rvb-tpl-list { display: flex; flex-direction: column; gap: 8px; }
.rvb-tpl { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; }
.rvb-tpl b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rvb-tpl-sw { position: relative; width: 30px; height: 30px; flex: none; border-radius: 8px; border: 1px solid rgba(0, 0, 0, .16); overflow: hidden; }
.rvb-tpl-sw i { position: absolute; left: 0; right: 0; bottom: 0; height: 9px; }

.rvb-share a.btn { text-decoration: none; }
.rvb-share-state { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); }
.rvb-share-state b { display: block; }
.rvb-share-state small { color: var(--muted); font-size: 12.5px; }
.rvb-share-pin { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: #fbecd0; color: #6d4300; font-size: 13px; }
.rvb-share-pin b { font-family: ui-monospace, Consolas, monospace; letter-spacing: .12em; }
.rvb-invite { border: 1px solid var(--line); border-radius: 10px; }
.rvb-invite > summary { display: flex; align-items: center; gap: 9px; padding: 11px 14px; cursor: pointer; font-weight: 600; list-style: none; }
.rvb-invite > summary::-webkit-details-marker { display: none; }
.rvb-invite > summary::after { content: ""; width: 7px; height: 7px; margin-left: auto; border-right: 1.7px solid var(--muted); border-bottom: 1.7px solid var(--muted); transform: rotate(45deg); transition: transform .15s; }
.rvb-invite[open] > summary::after { transform: rotate(-135deg); }
.rvb-invite > .col { padding: 2px 14px 14px; gap: 12px; }
.rvb-check { display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; }
.rvb-check input { accent-color: var(--accent); width: 16px; height: 16px; }

@media (max-width: 980px) {
  .rvb { flex-direction: column; overflow-y: auto; }
  .rvb-stage { flex: none; height: 62vh; }
  .rvb-side { width: auto; overflow: visible; border-left: 0; border-top: 1px solid var(--line); }
  .rvb-tip { display: none; }
  .rvb-stagebar { justify-content: space-between; }
}

/* ───── panoul „Comentarii” din editorul de album ───── */
.cmp { display: flex; flex-direction: column; gap: 14px; font-size: 13px; }
.cmp-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; color: var(--muted); padding: 34px 6px; }
.cmp-empty p { margin: 0; }
.cmp-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 12.5px; }
.cmp-refresh, .cmp-del { border: 0; background: transparent; color: var(--muted); padding: 5px; border-radius: 6px; display: inline-flex; }
.cmp-refresh:hover, .cmp-del:hover { background: rgba(20, 24, 40, .06); color: var(--text); }
.cmp-group { display: flex; flex-direction: column; gap: 10px; }
.cmp-group + .cmp-group { padding-top: 14px; border-top: 1px solid var(--line); }
.cmp-group-name { display: flex; align-items: center; gap: 7px; color: var(--ink-soft); }
.cmp-group-name b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmp-status { display: flex; align-items: flex-start; gap: 8px; padding: 8px 10px; border-radius: 9px; background: var(--panel-2); border: 1px solid var(--line); color: var(--ink-soft); font-weight: 600; line-height: 1.35; }
.cmp-status .ic { margin-top: 1px; }
.cmp-status.ok { background: #dcf3e5; border-color: #bfe6cf; color: #17713f; }
.cmp-status.warn { background: #fbecd0; border-color: #f1d9a8; color: #8a5300; }
.cmp-none { margin: 0; color: var(--muted); padding: 4px 2px; }
.cmp-c { border: 1px solid var(--line); border-radius: 10px; padding: 10px 11px; background: var(--panel); display: flex; flex-direction: column; gap: 6px; }
.cmp-c.resolved { background: var(--panel-2); }
.cmp-c.resolved > .cmp-body { color: var(--muted); }
.cmp-c-head { display: flex; align-items: center; gap: 7px; min-width: 0; }
.cmp-c-head b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmp-num { flex: none; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 11px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.cmp-c.resolved .cmp-num { background: var(--ok); }
.cmp-time { color: var(--muted); font-size: 12px; white-space: nowrap; margin-left: auto; }
.cmp-del { margin: -3px -5px -3px 0; opacity: 0; }
.cmp-c:hover .cmp-del, .cmp-del:focus-visible { opacity: 1; }
.cmp-body { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.45; }
.cmp-replies { display: flex; flex-direction: column; gap: 8px; margin-top: 2px; padding-left: 10px; border-left: 2px solid var(--line); }
.cmp-reply.owner { border-left: 0; }
.cmp-reply.owner .cmp-c-head b { color: var(--accent-2); }
.cmp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-top: 2px; }
.cmp-link { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; padding: 3px 0; color: var(--accent); font-size: 12.5px; font-weight: 600; }
.cmp-link:hover { text-decoration: underline; }
.cmp-link.strong { color: var(--ok); margin-left: auto; }
.cmp-where { color: var(--muted); font-size: 12.5px; }
.cmp-replybox { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.cmp-replybox textarea.inp { min-height: 70px; font-size: 13px; }
.cmp-toggle { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; border: 0; background: none; padding: 4px 0; color: var(--ink-soft); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.cmp-foot { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.cmp-foot .btn { width: 100%; justify-content: flex-start; white-space: normal; text-align: left; height: auto; min-height: 30px; padding-top: 5px; padding-bottom: 5px; }
