body.review {
  background: var(--bg);
  color: var(--text);
  font-family: 'Geist', sans-serif;
  font-weight: 300;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.review-layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* HEADER */
.review-layout .header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 14px 32px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 50;
}

.review-layout .logo {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
}

.review-layout .logo .logo-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent-glow);
}

.header-title {
  font-size: 14px;
  font-weight: 400;
  text-align: center;
  color: var(--text);
}

.header-right { display: flex; justify-content: flex-end; align-items: center; gap: 10px; }

.review-layout .status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-family: 'DM Mono', monospace;
  border: 1px solid;
}
.review-layout .status-pending { color: var(--muted); border-color: var(--border); }
.review-layout .status-approved { color: var(--green); border-color: rgba(93,214,140,0.3); background: rgba(93,214,140,0.08); }
.review-layout .status-changes_requested { color: var(--orange); border-color: rgba(245,166,35,0.3); background: rgba(245,166,35,0.08); }

/* VERSION TABS */
.review-version-tabs {
  display: flex;
  gap: 6px;
  padding: 10px 32px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.review-version-tab {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 5px;
  font-size: 12px;
  font-family: 'DM Mono', monospace;
  color: var(--muted);
  text-decoration: none;
  transition: all 0.2s;
}
.review-version-tab:hover { border-color: var(--border-light); color: var(--text); }
.review-version-tab.active { border-color: var(--accent); color: var(--accent-text); background: var(--accent-dim); }
.review-version-latest {
  font-size: 9px;
  background: var(--accent);
  color: #1a1a18;
  padding: 1px 5px;
  border-radius: 3px;
  font-weight: 500;
}

/* FLASH */
.review-flash {
  background: var(--accent-dim);
  border-bottom: 1px solid rgba(212,245,122,0.2);
  padding: 12px 32px;
  font-size: 14px;
  color: var(--accent-text);
  text-align: center;
}

/* BODY LAYOUT */
.review-layout .body {
  display: grid;
  grid-template-columns: 1fr 360px;
  flex: 1;
  min-height: calc(100vh - 57px);
}

/* IMAGE COLUMN */
.image-col {
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 32px;
  gap: 14px;
}

.image-wrap {
  position: relative;
  display: inline-block;
  cursor: crosshair;
  max-width: 100%;
}

.design-image {
  display: block;
  width: 100%;
  max-width: 540px;
  border-radius: 10px;
  box-shadow: 0 20px 60px var(--shadow-heavy);
  position: relative;
  overflow: hidden;
}

.image-hint {
  font-size: 12px;
  color: var(--muted);
  font-family: 'DM Mono', monospace;
  text-align: center;
}

/* PINS */
.review-layout .pin {
  position: absolute;
  width: 26px; height: 26px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
  font-family: 'DM Mono', monospace;
  color: #1a1a18;
  transform: translate(-50%, -50%);
  cursor: pointer;
  transition: transform 0.15s;
  z-index: 10;
  pointer-events: none;
}
.review-layout .pin:hover { transform: translate(-50%, -50%) scale(1.15); }

.pin-temp {
  position: absolute;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(212,245,122,0.25);
  border: 2px dashed var(--accent);
  transform: translate(-50%, -50%);
  pointer-events: none;
  display: none;
}

/* SIDEBAR */
.review-layout .sidebar {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  max-height: calc(100vh - 57px);
  position: sticky;
  top: 57px;
  width: auto;
  height: auto;
  border-right: none;
  padding: 0;
  gap: 0;
}

.section-label {
  font-size: 11px;
  font-family: 'DM Mono', monospace;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* COMMENT FORM */
.form-section {
  padding: 20px;
  border-bottom: 1px solid var(--border);
}

.review-layout .field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.review-layout .field label { font-size: 12px; color: var(--muted); }
.review-layout .field input,
.review-layout .field textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 9px 12px;
  font-size: 13px;
  color: var(--text);
  font-family: 'Geist', sans-serif;
  outline: none;
  resize: none;
  transition: border-color 0.2s;
  width: 100%;
}
.review-layout .field input:focus,
.review-layout .field textarea:focus { border-color: var(--accent); }
.review-layout .field input::placeholder,
.review-layout .field textarea::placeholder { color: var(--placeholder); }
.field-optional { font-size: 11px; color: var(--muted); font-weight: 300; }

.pin-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-dim);
  border: 1px solid rgba(212,245,122,0.2);
  border-radius: 6px;
  padding: 7px 10px;
  margin-bottom: 12px;
  font-size: 12px;
  color: var(--accent-text);
  font-family: 'DM Mono', monospace;
}

.btn-clear-pin {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
  font-family: 'DM Mono', monospace;
  transition: color 0.15s;
}
.btn-clear-pin:hover { color: var(--text); }

.btn-submit {
  width: 100%;
  background: var(--accent);
  color: #1a1a18;
  border: none;
  border-radius: 8px;
  padding: 11px;
  font-size: 14px;
  font-weight: 500;
  font-family: 'Geist', sans-serif;
  cursor: pointer;
  transition: opacity 0.2s;
}
.btn-submit:hover { opacity: 0.85; }

.review-layout .form-errors {
  background: rgba(255,107,107,0.1);
  border: 1px solid rgba(255,107,107,0.2);
  border-radius: 6px;
  padding: 10px 14px;
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--red);
}

/* COMMENTS LIST */
.review-layout .comments-section {
  padding: 20px;
  flex: 1;
  border-bottom: 1px solid var(--border);
}

.review-layout .comments-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.review-layout .count-pill {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 1px 8px;
  font-size: 11px;
  color: var(--muted);
  font-family: 'DM Mono', monospace;
}

.review-layout .comment {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 10px;
}
.review-layout .comment-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
}
.comment-pin {
  width: 18px; height: 18px;
  border-radius: 50%;
  font-size: 9px;
  font-weight: 700;
  font-family: 'DM Mono', monospace;
  display: flex; align-items: center; justify-content: center;
  color: #1a1a18;
  flex-shrink: 0;
}
.review-layout .comment-author { font-size: 12px; color: var(--text); font-weight: 400; }
.review-layout .comment-time { font-size: 11px; color: var(--muted); font-family: 'DM Mono', monospace; margin-left: auto; }
.review-layout .comment-body { font-size: 13px; color: var(--muted2); line-height: 1.55; }
.review-layout .empty-comments { font-size: 13px; color: var(--muted); }

/* APPROVAL */
.approval-section { padding: 20px; }
.approval-buttons { display: flex; flex-direction: column; gap: 8px; }

.review-layout .btn-approve {
  width: 100%;
  background: rgba(93,214,140,0.1);
  color: var(--green);
  border: 1px solid rgba(93,214,140,0.3);
  border-radius: 9px;
  padding: 13px;
  font-size: 14px;
  font-family: 'Geist', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.review-layout .btn-approve:hover { background: rgba(93,214,140,0.18); border-color: var(--green); }
.review-layout .btn-approve.active { background: rgba(93,214,140,0.2); border-color: var(--green); font-weight: 500; }

.review-layout .btn-changes {
  width: 100%;
  background: rgba(245,166,35,0.06);
  color: var(--orange);
  border: 1px solid rgba(245,166,35,0.2);
  border-radius: 9px;
  padding: 13px;
  font-size: 14px;
  font-family: 'Geist', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.review-layout .btn-changes:hover { background: rgba(245,166,35,0.12); border-color: var(--orange); }
.review-layout .btn-changes.active { background: rgba(245,166,35,0.15); border-color: var(--orange); font-weight: 500; }

/* POWERED BY */
.powered-by {
  text-align: center;
  padding: 12px;
  font-size: 11px;
  color: var(--muted);
  font-family: 'DM Mono', monospace;
  border-top: 1px solid var(--border);
}
.powered-by a { color: var(--muted2); text-decoration: none; }
.powered-by a:hover { color: var(--text); }

/* PDF VIEWER */
.pdf-viewer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.pdf-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 16px;
}

.pdf-nav-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  padding: 6px 14px;
  font-size: 13px;
  font-family: 'DM Mono', monospace;
  cursor: pointer;
  transition: all 0.2s;
}
.pdf-nav-btn:hover:not(:disabled) { border-color: var(--accent); color: var(--accent-text); }
.pdf-nav-btn:disabled { opacity: 0.3; cursor: not-allowed; }

.pdf-nav-info {
  font-size: 13px;
  color: var(--muted);
  font-family: 'DM Mono', monospace;
}

.pdf-canvas-wrapper canvas {
  border-radius: 8px;
  box-shadow: 0 16px 48px var(--shadow-heavy);
}

.pin-page {
  position: absolute;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: #1a1a18;
  font-size: 11px;
  font-weight: 700;
  font-family: 'DM Mono', monospace;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 3px var(--accent-glow);
  pointer-events: none;
  z-index: 10;
}

/* EMPTY */
.review-empty { display: flex; align-items: center; justify-content: center; min-height: 60vh; color: var(--muted); }

/* LOCKED */
.review-locked {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  gap: 20px;
  text-align: center;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .review-layout .body { grid-template-columns: 1fr; }
  .review-layout .sidebar { max-height: none; position: static; }
  .image-col { border-right: none; border-bottom: 1px solid var(--border); padding: 20px; }
  .review-layout .header { grid-template-columns: 1fr 1fr; }
  .header-title { display: none; }
}
