/* Editorul de album */
.alb { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.alb-body { flex: 1; display: flex; min-height: 0; }
.alb-side { display: flex; flex: none; background: var(--panel); border-right: 1px solid var(--line); min-height: 0; }
.alb-rail { width: 68px; display: flex; flex-direction: column; gap: 2px; padding: 8px 6px; border-right: 1px solid var(--line); background: var(--panel-2); }
.rail-btn { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 9px 2px 7px; border: 0; border-radius: 9px; background: transparent; color: var(--ink-soft); font-size: 11px; font-weight: 600; }
.rail-btn:hover { background: rgba(20, 24, 40, .06); }
.rail-btn.on { background: var(--accent-soft); color: var(--accent-2); }
.rail-badge { position: absolute; top: 4px; right: 8px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--danger); color: #fff; font-size: 10.5px; font-style: normal; display: flex; align-items: center; justify-content: center; }
.alb-panel { width: 290px; display: flex; flex-direction: column; min-height: 0; }
.panel-head { display: flex; align-items: center; gap: 8px; padding: 12px 10px 8px 14px; }
.panel-head b { font-size: 15px; }
.panel-tools { display: flex; flex-direction: column; gap: 8px; padding: 0 14px 10px; }
.panel-foot { padding: 10px 14px; border-top: 1px solid var(--line); display: flex; }
.panel-foot .btn { flex: 1; }

/* lista de poze */
.well { flex: 1; padding: 0 10px 12px 14px; min-height: 0; }
.well-chapter { font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin: 10px 0 6px; position: sticky; top: 0; background: var(--panel); padding: 4px 0; z-index: 1; }
.well-grid { columns: 2; column-gap: 6px; }
.th { position: relative; break-inside: avoid; margin-bottom: 6px; border-radius: 5px; overflow: hidden; background: #e7e3db; cursor: grab; outline: 2px solid transparent; outline-offset: -2px; touch-action: none; }
.th img { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.th.picked { outline-color: var(--accent); }
.th-used { position: absolute; top: 4px; left: 4px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.th-heart { position: absolute; top: 3px; right: 3px; width: 24px; height: 24px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .35); color: #fff; display: flex; align-items: center; justify-content: center; opacity: 0; padding: 0; }
.th:hover .th-heart, .th-heart.on { opacity: 1; }
.th-heart.on { background: #fff; color: #e11d48; }
.th-heart.on .ic { fill: currentColor; }
.th-stars { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; gap: 1px; padding: 10px 0 3px; background: linear-gradient(transparent, rgba(0, 0, 0, .55)); opacity: 0; }
.th:hover .th-stars, .th-stars:has(.on) { opacity: 1; }
.th-star { border: 0; background: transparent; padding: 1px; color: rgba(255, 255, 255, .75); display: inline-flex; }
.th-star.on { color: #f59e0b; }
.th-star.on .ic { fill: currentColor; }
.th-tag { position: absolute; top: 4px; right: 4px; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; }
.th-rate { position: absolute; bottom: 3px; left: 5px; color: #fbbf24; font-size: 11px; font-weight: 700; text-shadow: 0 1px 2px rgba(0, 0, 0, .7); }
.tg-yes { background: #16a34a; } .tg-maybe { background: #d97706; } .tg-no { background: #dc2626; }

/* stiluri de text + logouri */
.styles { flex: 1; padding: 0 14px 14px; display: flex; flex-direction: column; gap: 6px; }
.style-item { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; background: #fff; text-align: left; cursor: grab; touch-action: none; }
.style-item:hover { border-color: var(--accent); }
.style-sample { line-height: 1.2; color: var(--text); }
.style-ghost { background: #fff; padding: 8px 14px; font-size: 20px; }
.logos { flex: 1; padding: 0 14px 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-content: start; }
.logo-item { position: relative; aspect-ratio: 4 / 3; border: 1px solid var(--line); border-radius: 9px; padding: 10px; display: flex; align-items: center; justify-content: center; cursor: grab; touch-action: none;
  background-color: #fff; background-image: linear-gradient(45deg, #eee 25%, transparent 25%, transparent 75%, #eee 75%), linear-gradient(45deg, #eee 25%, transparent 25%, transparent 75%, #eee 75%); background-size: 14px 14px; background-position: 0 0, 7px 7px; }
.logo-item img { max-width: 100%; max-height: 100%; pointer-events: none; }
.logo-del { position: absolute; top: 4px; right: 4px; width: 20px; height: 20px; border: 0; border-radius: 50%; background: var(--ink); color: #fff; display: none; align-items: center; justify-content: center; padding: 0; }
.logo-item:hover .logo-del { display: flex; }
.logo-add { flex-direction: column; gap: 6px; border-style: dashed; border-width: 1.5px; background: transparent; color: var(--ink-soft); font-weight: 600; font-size: 12.5px; cursor: pointer; }
.logo-add:hover { border-color: var(--accent); color: var(--accent-2); }
.comments-host { flex: 1; padding: 0 14px 14px; min-height: 0; }

/* zona de lucru */
.alb-main { flex: 1; display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.alb-ctxbar { flex: none; min-height: 46px; display: flex; align-items: center; gap: 4px; padding: 5px 12px; background: var(--panel); border-bottom: 1px solid var(--line); overflow-x: auto; white-space: nowrap; }
.ct { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 8px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: var(--ink-soft); font-size: 13px; flex: none; }
.ct:hover { background: rgba(20, 24, 40, .06); color: var(--text); }
.ct.on { background: var(--accent-soft); color: var(--accent-2); border-color: #cfcbf7; }
.ct.danger:hover { background: #fde8e8; color: var(--danger); }
.ct-font { min-width: 150px; justify-content: space-between; border-color: var(--line-2); font-size: 15px; }
.ct-swatch { width: 20px; height: 20px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .25); }
.ct-sep { width: 1px; height: 22px; background: var(--line); margin: 0 6px; flex: none; }
.ct-group { display: inline-flex; align-items: center; gap: 2px; flex: none; }
.ct-label { font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-right: 8px; }
.ct-hint { color: var(--muted); font-size: 12.5px; padding: 0 6px; }
.alb-work { flex: 1; position: relative; min-height: 0; display: flex; }
.alb-stage { flex: 1; padding: 22px 26px 70px; outline: none; }
.alb-grid { display: grid; gap: 26px 26px; align-items: start; }
.alb-addcover { justify-self: start; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border: 1.5px dashed var(--line-2); border-radius: 8px; background: transparent; color: var(--ink-soft); font-size: 12.5px; font-weight: 600; }
.alb-addcover:hover { border-color: var(--accent); color: var(--accent-2); }
.sp { min-width: 0; }
.sp-cover { max-width: 760px; }
.sp-head { display: flex; align-items: center; gap: 6px; height: 26px; margin-bottom: 4px; color: var(--muted); font-size: 12.5px; }
.sp.active .sp-label { color: var(--accent-2); font-weight: 700; }
.sp-grip { border: 0; background: transparent; color: var(--muted); padding: 4px; border-radius: 6px; cursor: grab; opacity: 0; touch-action: none; }
.sp:hover .sp-grip { opacity: 1; }
.sp-grip:hover { background: rgba(20, 24, 40, .08); color: var(--text); }
.sp-wrap { position: relative; background: #fff; box-shadow: 0 2px 10px rgba(20, 24, 40, .14); outline: 2px solid transparent; outline-offset: 3px; touch-action: none; user-select: none; }
.sp.active .sp-wrap { outline-color: rgba(81, 70, 224, .45); }
.sp-canvas { display: block; width: 100%; height: 100%; }
.sp-ov { position: absolute; inset: 0; pointer-events: none; }
.sp-wrap.cropping .sp-ov { overflow: hidden; }
.sp-ghost { background: var(--ink); color: #fff; padding: 6px 12px; font-size: 12.5px; font-weight: 600; }
.sp-marker { position: fixed; width: 4px; border-radius: 3px; background: var(--accent); z-index: 1200; pointer-events: none; }
.spine-line { position: absolute; top: 0; bottom: 0; width: 0; border-left: 1px dashed rgba(37, 99, 235, .8); }
.pin { position: absolute; width: 26px; height: 26px; margin: -26px 0 0 -13px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--danger); color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm); }
.pin::first-line { transform: rotate(45deg); }

/* selecție */
.sel { position: absolute; border: 1.5px solid var(--accent); pointer-events: none; }
.sel-text, .sel-logo { pointer-events: auto; cursor: move; }
.sel-zone { border-style: dashed; }
.sel-photo { position: absolute; border: 2px solid var(--accent); box-shadow: 0 0 0 1px #fff inset; pointer-events: none; }
.sel-photo.cropping { border-color: #f59e0b; box-shadow: 0 0 0 9999px rgba(20, 24, 40, .45); }
.hd { position: absolute; width: 11px; height: 11px; background: #fff; border: 1.5px solid var(--accent); border-radius: 2px; pointer-events: auto; touch-action: none; }
.hd-nw { left: -6px; top: -6px; cursor: nwse-resize; } .hd-ne { right: -6px; top: -6px; cursor: nesw-resize; }
.hd-sw { left: -6px; bottom: -6px; cursor: nesw-resize; } .hd-se { right: -6px; bottom: -6px; cursor: nwse-resize; }
.hd-n { left: calc(50% - 6px); top: -6px; cursor: ns-resize; } .hd-s { left: calc(50% - 6px); bottom: -6px; cursor: ns-resize; }
.hd-w { left: -6px; top: calc(50% - 6px); cursor: ew-resize; } .hd-e { right: -6px; top: calc(50% - 6px); cursor: ew-resize; }
.zone-grip { position: absolute; left: calc(50% - 16px); top: -26px; width: 32px; height: 20px; border-radius: 6px; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; pointer-events: auto; cursor: move; touch-action: none; }
.drop-hl { position: absolute; border: 3px solid #22c55e; background: rgba(34, 197, 94, .18); pointer-events: none; }
.drop-hl.whole { border-style: dashed; background: rgba(34, 197, 94, .08); }
.txt-edit { position: absolute; pointer-events: auto; border: 1.5px dashed var(--accent); background: rgba(255, 255, 255, .35); padding: 0; margin: 0; resize: none; overflow: hidden; outline: none; white-space: pre-wrap; overflow-wrap: break-word; }

/* legendă ghidaje */
.alb-legend { position: absolute; left: 18px; bottom: 12px; z-index: 5; display: flex; gap: 14px; padding: 6px 12px; border-radius: 20px; background: rgba(255, 255, 255, .92); box-shadow: var(--shadow-sm); font-size: 12px; color: var(--ink-soft); pointer-events: none; }
.alb-legend:empty { display: none; }
.alb-legend span { display: inline-flex; align-items: center; gap: 6px; }
.lg { width: 16px; height: 10px; border-radius: 2px; display: inline-block; }
.lg-cut { background: rgba(236, 72, 153, .45); border: 1px solid rgba(219, 39, 119, .9); }
.lg-safe { border: 1.5px dashed rgba(22, 163, 74, .95); }
.lg-fold { height: 0; border-top: 2px solid rgba(37, 99, 235, .8); }

/* dialoguri */
.note { background: var(--panel-2); border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; font-size: 13px; }
.note.accent { background: var(--accent-soft); border-color: #cfcbf7; }
.note.warn { background: #fdf3df; border-color: #f0d59a; color: #6b4300; display: flex; flex-direction: column; gap: 6px; }
.note.ok { background: #e3f5ea; border-color: #b5e0c5; color: #14562f; }
.opt { display: flex; flex-direction: column; gap: 4px; }
.check { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; cursor: pointer; }
.lowres { margin: 0; padding-left: 18px; }
.linkish { align-self: flex-start; border: 0; background: transparent; color: var(--accent); font-weight: 600; padding: 0; }
.files { margin: 6px 0 0; padding-left: 18px; font-size: 13px; max-height: 160px; overflow: auto; }
.lay-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.lay-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 8px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; text-align: left; font-size: 12.5px; color: var(--ink-soft); }
.lay-card canvas { width: 100%; height: auto; display: block; background: #fff; box-shadow: var(--shadow-sm); }
.lay-card:hover, .lay-card.on { border-color: var(--accent); }
.lay-choose { position: absolute; right: 12px; top: 12px; background: var(--accent); color: #fff; font-style: normal; font-weight: 700; font-size: 12px; padding: 3px 9px; border-radius: 20px; opacity: 0; }
.lay-card:hover .lay-choose { opacity: 1; }
.sc { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 28px; }
.sc-sec h3 { font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.sc-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 5px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.keys { display: inline-flex; gap: 4px; flex: none; }
kbd { font: 600 11.5px var(--font); background: var(--panel-2); border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 5px; padding: 1px 6px; }

/* compară pozele */
.alb-over { position: absolute; inset: 0; background: #14161d; z-index: 20; display: flex; }
.cpr { flex: 1; display: flex; min-width: 0; color: #e8eaf0; }
.cpr-side { width: 300px; flex: none; display: flex; flex-direction: column; background: #1d2029; border-right: 1px solid #2c303c; min-height: 0; }
.cpr-filters { padding: 12px; display: flex; flex-direction: column; gap: 10px; border-bottom: 1px solid #2c303c; }
.cpr .chip { background: #2a2e3a; border-color: #3a3f4f; color: #dfe2ea; }
.cpr .chip.on { background: var(--accent); border-color: var(--accent); }
.cpr-stars { display: inline-flex; }
.cpr-list { flex: 1; padding: 10px; min-height: 0; }
.cpr .th { background: #2a2e3a; cursor: pointer; }
.cpr .th.picked { outline-color: #f59e0b; }
.cpr .th.picked .th-used { background: #f59e0b; color: #1c1300; }
.cpr-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.cpr-head { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid #2c303c; }
.cpr-head .muted, .cpr .muted { color: #9aa0b3; }
.cpr-view { flex: 1; display: flex; gap: 10px; padding: 14px; min-height: 0; }
.cpr-item { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.cpr-img { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; }
.cpr-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.cpr-meta { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.cpr-name { color: #9aa0b3; font-size: 12.5px; }
.cpr-rate, .cpr-tags { display: inline-flex; gap: 3px; }
.tag-btn { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid #4a5063; background: transparent; color: #c5c9d6; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.tag-btn.on { color: #fff; border-color: transparent; }
.tag-btn.tg-yes, .tag-btn.tg-maybe, .tag-btn.tg-no { background: transparent; }
.tag-btn.tg-yes.on { background: #16a34a; } .tag-btn.tg-maybe.on { background: #d97706; } .tag-btn.tg-no.on { background: #dc2626; }
.tag-btn.tg-fav.on { background: #fff; color: #e11d48; } .tag-btn.tg-fav.on .ic { fill: currentColor; }
.cpr .empty { color: #9aa0b3; margin: auto; }

@media (max-width: 900px) {
  .alb-panel { width: 230px; }
  .alb-stage { padding: 14px 12px 60px; }
  .sc { grid-template-columns: 1fr; }
}
