/* ==========================================================================
   LIGHT UP OS — Client portal layout
   Deliberately separate from layout.css (the internal app shell). This page
   has no sidebar, no nav, no login — just one project, for one person, on
   whatever device they open the link on (mobile-first: most clients look at
   renders on their phone).
   ========================================================================== */

body{ background:var(--bg); }

.client-shell{ max-width:640px; margin:0 auto; padding:0 0 60px; min-height:100vh; }

.client-center{ min-height:100vh; display:flex; align-items:center; justify-content:center; padding:20px; }
.client-card{ position:relative; background:var(--surface); border:1px solid var(--border); border-radius:var(--r-lg); padding:32px 28px; max-width:380px; width:100%; text-align:center; }
.client-card .input{ margin-top:14px; }

.client-brand{ width:40px; height:40px; border-radius:10px; background:#111; color:#fff; display:flex; align-items:center; justify-content:center; font-weight:800; font-size:17px; margin:0 auto 14px; }

/* EN/RU toggle — a plain flex sibling in the header (sits at the far right
   thanks to the title block's flex:1), absolutely positioned in the top
   right only inside .client-card, whose centered/static layout has no
   natural "corner" slot otherwise. */
.client-lang-toggle{ display:flex; gap:2px; background:var(--surface-2); border-radius:20px; padding:2px; flex-shrink:0; }
.client-lang-toggle button{ border:none; background:none; font-size:11px; font-weight:700; padding:4px 9px; border-radius:16px; cursor:pointer; color:var(--text-tertiary); }
.client-lang-toggle button.is-active{ background:#111; color:#fff; }
.client-card .client-lang-toggle{ position:absolute; top:14px; right:14px; }

.client-header{ display:flex; align-items:center; gap:12px; padding:20px 20px 16px; }
.client-header .client-brand{ margin:0; flex-shrink:0; }
.client-header__title{ font-size:17px; font-weight:800; }
.client-header__sub{ font-size:12.5px; color:var(--text-tertiary); margin-top:2px; }

.client-main{ display:flex; flex-direction:column; gap:16px; padding:0 16px; }

.client-approval{ background:#fff8e6; border:1px solid #f3d98b; border-radius:var(--r-lg); padding:18px; }
[data-theme="dark"] .client-approval{ background:#332b12; border-color:#5c4a12; }
.client-approval h3{ margin-bottom:4px; }
.client-approval__actions{ display:flex; gap:10px; margin-top:14px; }
.client-approval__actions .btn{ flex:1; }

.client-render-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:8px; }
.client-render-grid img{ width:100%; aspect-ratio:1; object-fit:cover; border-radius:var(--r-md); cursor:pointer; display:block; background:var(--surface-2); }
.client-render-grid .pin-count{ position:relative; }
.client-render-grid .pin-count span{ position:absolute; top:6px; right:6px; background:rgba(0,0,0,0.7); color:#fff; font-size:11px; font-weight:700; padding:2px 6px; border-radius:999px; }

.client-note{ display:flex; gap:10px; align-items:flex-start; }
.client-note__avatar{ width:30px; height:30px; border-radius:50%; background:#8a5a44; color:#fff; display:flex; align-items:center; justify-content:center; font-size:12px; font-weight:700; flex-shrink:0; }
.client-note__body{ flex:1; min-width:0; }
.client-note__meta{ font-size:11.5px; color:var(--text-tertiary); margin-bottom:2px; }
.client-note__text{ font-size:13.5px; line-height:1.5; white-space:pre-wrap; word-break:break-word; }

.client-meeting{ display:flex; gap:10px; align-items:center; padding:10px 0; border-top:1px solid var(--border); }
.client-meeting:first-child{ border-top:none; }

/* ---------------- Lightbox / annotator ---------------- */
.lightbox{ position:fixed; inset:0; background:rgba(0,0,0,0.92); z-index:200; display:flex; flex-direction:column; }
.lightbox__top{ display:flex; justify-content:space-between; align-items:center; padding:14px 16px; color:#fff; }
.lightbox__top button{ background:none; border:none; color:#fff; cursor:pointer; padding:6px; }
.lightbox__imgwrap{ position:relative; flex:1; display:flex; align-items:center; justify-content:center; overflow:hidden; touch-action:none; }
.lightbox__imgwrap img{ max-width:100%; max-height:100%; display:block; cursor:crosshair; }
.pin{ position:absolute; width:24px; height:24px; margin-left:-12px; margin-top:-24px; border-radius:50% 50% 50% 0; background:#e24b4a; border:2px solid #fff; transform:rotate(-45deg); display:flex; align-items:center; justify-content:center; cursor:pointer; }
.pin.is-resolved{ background:#888780; opacity:0.75; }
.pin span{ transform:rotate(45deg); color:#fff; font-size:11px; font-weight:800; }
.pin-popover{ position:absolute; background:#fff; color:#111; border-radius:var(--r-md); padding:10px; width:220px; box-shadow:0 8px 24px rgba(0,0,0,0.3); z-index:5; }
.pin-popover textarea{ width:100%; min-height:60px; font-size:13px; border:1px solid var(--border); border-radius:6px; padding:6px; resize:vertical; }
.lightbox__list{ background:#111; color:#fff; max-height:32vh; overflow-y:auto; padding:12px 16px; }
.lightbox__list-item{ display:flex; gap:8px; padding:8px 0; border-top:1px solid rgba(255,255,255,0.12); font-size:12.5px; }
.lightbox__list-item:first-child{ border-top:none; }
.lightbox__list-item.is-resolved{ opacity:0.5; text-decoration:line-through; }
.lightbox__badge{ width:18px; height:18px; border-radius:50%; background:#e24b4a; color:#fff; font-size:10px; font-weight:800; display:flex; align-items:center; justify-content:center; flex-shrink:0; margin-top:1px; }
.lightbox__badge.is-resolved{ background:#666; }

@media (max-width: 480px){
  .client-render-grid{ grid-template-columns:repeat(2,1fr); }
}
