* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #e9edf3;
  color: #111827;
}

body.modal-open {
  overflow: hidden;
}

body.is-resizing-review {
  cursor: col-resize;
  user-select: none;
}

body.review-page {
  min-height: 100vh;
}

.page {
  min-height: 100vh;
  padding: 12px;
}

.review-page .page {
  min-height: 100vh;
  width: 100%;
  padding: 0;
}

.app-shell {
  width: min(100%, 1600px);
  min-height: calc(100vh - 24px);
  margin: 0 auto;
  background: #f7f9fc;
  border: 1px solid #dbe2ec;
  border-radius: 20px;
  padding: 12px;
  display: grid;
  gap: 12px;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
}

.review-page .app-shell {
  width: 100%;
  max-width: none;
  height: 100vh;
  min-height: 100vh;
  margin: 0;
  grid-template-rows: auto minmax(0, 1fr);
}

.page-banner,
.overlay-status,
.status-message {
  margin: 0;
  min-height: 20px;
  color: #555;
}

.page-banner {
  padding: 10px 14px;
  border: 1px solid #d6deeb;
  border-radius: 12px;
  background: #fff;
}

.page-banner.error,
.overlay-status.error,
.status-message.error {
  color: #b42318;
}

.page-banner.success,
.overlay-status.success,
.status-message.success {
  color: #18794e;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(220px, 264px) minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}

.review-page .workspace {
  width: 100%;
  min-height: 0;
  height: 100%;
  align-items: stretch;
}

.workspace.sidebar-collapsed {
  grid-template-columns: 72px minmax(0, 1fr);
}

.sidebar-panel,
.video-column,
.comments-panel {
  min-width: 0;
}

.sidebar-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  border: 1px solid #dbe2ec;
  border-radius: 18px;
  background: linear-gradient(180deg, #fcfdff 0%, #f3f6fb 100%);
  overflow: hidden;
}

.review-page .sidebar-panel {
  height: 100%;
}

.sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sidebar-brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-brand-mark {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #111827;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.sidebar-brand-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.sidebar-brand-title,
.sidebar-brand-subtitle {
  margin: 0;
}

.sidebar-brand-title {
  font-size: 15px;
  font-weight: 700;
}

.sidebar-brand-subtitle {
  color: #667085;
  font-size: 13px;
}

.sidebar-toggle {
  width: 32px;
  height: 32px;
  padding: 0;
  flex: none;
  border-radius: 10px;
  font-size: 18px;
  line-height: 1;
}

.sidebar-panel-content {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 0;
  overflow-y: auto;
}

.meta-card {
  padding: 12px;
  border: 1px solid #dde5f0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
}

.project-video-list-card {
  gap: 10px;
}

.meta-label,
.meta-value {
  margin: 0;
}

.meta-label {
  color: #667085;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.meta-value {
  margin-top: 6px;
  color: #101828;
  font-size: 14px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.project-video-list-head {
  display: grid;
  gap: 6px;
}

.project-video-list-summary {
  margin: 0;
  color: #667085;
  font-size: 13px;
}

.project-video-list {
  display: grid;
  gap: 8px;
}

.project-video-item {
  width: 100%;
  display: grid;
  justify-items: start;
  gap: 4px;
  padding: 10px 12px;
  text-align: left;
  border-radius: 12px;
  border-color: #dbe2ec;
  background: #fff;
}

.project-video-item:hover:not(:disabled) {
  background: #f5f9ff;
}

.project-video-item.is-active {
  border-color: #0f62fe;
  background: #e7f0ff;
  box-shadow: inset 0 0 0 1px rgba(15, 98, 254, 0.16);
}

.project-video-item-title {
  width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
  color: #101828;
}

.project-video-item-meta {
  color: #667085;
  font-size: 13px;
}

.project-video-item-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: start;
}

.video-delete-button,
.video-copy-link-button {
  width: 36px;
  height: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e4b0aa;
  border-radius: 12px;
  background: #fff7f6;
  color: #b42318;
  font-size: 15px;
  line-height: 1;
}

.video-copy-link-button {
  border-color: #c7d0dc;
  background: #fff;
  color: #344054;
}

.video-delete-button:hover:not(:disabled) {
  background: #fdeceb;
}

.video-copy-link-button:hover:not(:disabled) {
  border-color: #0f62fe;
  background: #eef4ff;
}

.workspace.sidebar-collapsed .sidebar-panel-content,
.workspace.sidebar-collapsed .sidebar-brand-copy {
  display: none;
}

.workspace.sidebar-collapsed .sidebar-panel {
  padding: 12px 10px;
  justify-items: center;
}

.workspace.sidebar-collapsed .sidebar-head {
  width: 100%;
  flex-direction: column;
  justify-content: flex-start;
}

.video-column {
  display: grid;
  align-content: start;
  justify-items: start;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.review-page .video-column {
  width: 100%;
  max-width: 100%;
  height: auto;
  min-height: 0;
  align-self: start;
  grid-template-rows: auto;
}

.comments-panel {
  min-height: min(72vh, 760px);
  width: 100%;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 0;
  align-self: stretch;
  padding: 10px;
  border: 1px solid #dbe2ec;
  border-radius: 18px;
  background: linear-gradient(180deg, #fcfdff 0%, #f3f6fb 100%);
  overflow: hidden;
}

.review-page .comments-panel {
  min-height: 0;
  height: auto;
  justify-self: stretch;
}

.composer-section {
  position: sticky;
  bottom: 0;
  z-index: 2;
  display: grid;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid #dfe6f0;
  background: linear-gradient(180deg, rgba(243, 246, 251, 0.72) 0%, rgba(243, 246, 251, 0.96) 14%, #f3f6fb 100%);
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  font-weight: 600;
}

.field-hint {
  color: #667085;
  font-size: 12px;
  line-height: 1.4;
}

input[type="file"],
input[type="date"],
input[type="text"],
textarea {
  width: 100%;
  padding: 10px 12px;
  font: inherit;
  border: 1px solid #c7d0dc;
  border-radius: 12px;
  background: #fff;
}

textarea {
  resize: vertical;
}

.actions,
.overlay-actions,
.studio-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

button {
  padding: 9px 14px;
  font: inherit;
  border: 1px solid #c7d0dc;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease,
    transform 0.2s ease;
}

button:hover:not(:disabled) {
  background: #f0f0f0;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.primary-button {
  color: #fff;
  border-color: #0f62fe;
  background: #0f62fe;
  box-shadow: 0 8px 18px rgba(15, 98, 254, 0.22);
}

.primary-button:hover:not(:disabled) {
  background: #0b57e3;
}

.video-stage {
  position: relative;
  width: max-content;
  max-width: 100%;
  min-height: 0;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  overflow: visible;
  background: transparent;
}

.review-page .video-stage {
  height: auto;
  min-height: 0;
  align-self: start;
}

.project-review-page .video-stage,
.studio-project-page .video-stage {
  width: 100%;
  height: 100%;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.video-stage.is-horizontal {
  width: min(100%, var(--review-max-video-width, calc(100vw - 720px)));
  max-width: 100%;
}

.review-page .video-stage.is-horizontal {
  width: min(100%, var(--review-max-video-width, calc(100vw - 720px)));
}

.video-stage.is-vertical {
  width: auto;
  max-width: 100%;
  justify-self: start;
  align-self: start;
  flex: none;
}

.review-page .video-stage.is-vertical {
  height: auto;
}

.project-review-page .video-stage.is-horizontal,
.studio-project-page .video-stage.is-horizontal,
.project-review-page .video-stage.is-vertical,
.studio-project-page .video-stage.is-vertical {
  width: 100%;
  max-width: 100%;
}

video {
  width: auto;
  max-width: 100%;
  max-height: calc(100vh - 80px);
  height: auto;
  display: block;
  background: transparent;
  border-radius: 14px;
  object-fit: contain;
}

.review-page .video-stage.is-horizontal video {
  width: 100%;
  max-width: 100%;
  max-height: calc(100vh - 80px);
  height: auto;
}

.review-page .video-stage.is-vertical video {
  width: auto;
  max-width: 100%;
  max-height: calc(100vh - 80px);
  height: auto;
}

.project-review-page video,
.studio-project-page video {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.review-work-area {
  --review-divider-width: 8px;
  --comments-panel-width: 400px;
  --review-max-video-width: calc(100vw - 720px);
  width: 100%;
  height: 100%;
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.project-review-page .review-work-area,
.studio-project-page .review-work-area {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--review-divider-width) var(--comments-panel-width);
  align-items: stretch;
}

.review-work-area .comments-panel {
  width: auto;
  min-width: 0;
  max-width: none;
  margin-right: 0;
  flex: 1 1 var(--comments-panel-width);
}

.review-work-area .video-column {
  width: max-content;
  min-width: 0;
  max-width: 100%;
  flex: 0 1 auto;
}

.project-review-page .review-work-area .video-column,
.studio-project-page .review-work-area .video-column {
  width: 100%;
  max-width: 100%;
  min-height: 0;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
}

.studio-project-page .video-column.is-empty-project {
  align-items: center;
  justify-content: center;
}

.comments-resize-handle {
  position: relative;
  flex: 0 0 var(--review-divider-width);
  width: var(--review-divider-width);
  align-self: stretch;
  height: auto;
  min-height: 100%;
  cursor: col-resize;
  touch-action: none;
}

.comments-resize-handle::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    rgba(203, 213, 225, 0) 0%,
    #c7d0dc 12%,
    #c7d0dc 88%,
    rgba(203, 213, 225, 0) 100%
  );
}

.comments-resize-handle:hover::before,
body.is-resizing-review .comments-resize-handle::before {
  background: linear-gradient(
    180deg,
    rgba(15, 98, 254, 0) 0%,
    #8fb0f8 12%,
    #8fb0f8 88%,
    rgba(15, 98, 254, 0) 100%
  );
}

.comments-section {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 8px;
  overflow: hidden;
}

.comments-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.comments-toolbar h2 {
  margin: 0;
  font-size: 16px;
}

.version-select {
  min-width: 132px;
  padding: 7px 10px;
  border: 1px solid #d0d7e2;
  border-radius: 10px;
  background: #fff;
  color: #101828;
  font: inherit;
}

.comments-note,
.modal-copy {
  margin: 0;
  color: #667085;
  line-height: 1.45;
}

.versions-note {
  margin: 0;
  color: #667085;
  font-size: 13px;
  line-height: 1.45;
}

.toolbar-button {
  padding: 7px 10px;
  font-size: 13px;
}

.composer-title {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #5b6780;
  text-transform: uppercase;
}

.composer-section textarea {
  min-height: 44px;
  max-height: 120px;
  padding: 10px 12px;
  border-color: #c9d2e2;
  border-radius: 13px;
  resize: none;
  overflow-y: auto;
  background: #fff;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

.composer-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.composer-submit-button {
  padding: 7px 11px;
  font-size: 13px;
  box-shadow: 0 4px 10px rgba(15, 98, 254, 0.16);
}

.composer-secondary-button {
  padding: 7px 11px;
  font-size: 13px;
}

.send-comments-button {
  width: 100%;
  justify-content: center;
}

.video-overlay {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.62);
}

.video-overlay.is-visible {
  display: flex;
}

.final-overlay {
  background: rgba(6, 23, 53, 0.74);
}

.overlay-card,
.modal-card {
  width: min(100%, 520px);
  display: grid;
  gap: 14px;
  padding: 22px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
}

.final-overlay-card {
  width: min(100%, 560px);
}

.overlay-card h2,
.modal-card h2 {
  margin: 0;
  font-size: 22px;
}

.comments-list,
.final-comments-list {
  display: grid;
  gap: 6px;
  min-height: 0;
  max-height: none;
  align-content: start;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

.final-comments-list {
  max-height: 220px;
}

.empty-state {
  margin: 0;
  padding: 6px 2px;
  color: #667085;
}

.comment-item {
  width: 100%;
  height: auto;
  align-self: start;
  padding: 6px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid #d9e1ec;
  border-radius: 12px;
  background: #fff;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease,
    transform 0.2s ease;
}

.comment-item.is-clickable {
  cursor: pointer;
}

.comment-item.is-clickable:hover {
  border-color: #9db8f5;
  background: #f5f9ff;
  box-shadow: 0 6px 16px rgba(15, 98, 254, 0.08);
}

.comment-item.selected-comment {
  border-color: #6f8ed8;
  background: #eef3ff;
  box-shadow: inset 0 0 0 1px rgba(54, 85, 176, 0.16);
}

.comment-item.active-comment {
  border-color: #0f62fe;
  background: #e7f0ff;
  box-shadow: inset 0 0 0 1px rgba(15, 98, 254, 0.2), 0 10px 22px rgba(15, 98, 254, 0.08);
}

.comment-item.active-comment.selected-comment {
  border-color: #0b57e3;
  background: #ddeaff;
}

.comment-content {
  min-width: 0;
  flex: 1 1 auto;
  display: grid;
  gap: 4px;
}

.comment-mainline {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.comment-actions {
  display: flex;
  flex: none;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.comment-time {
  flex: none;
  font-weight: 700;
  color: #0d2f74;
  font-size: 13px;
  white-space: nowrap;
}

.comment-text {
  min-width: 0;
  flex: 1 1 120px;
  color: #333;
  white-space: pre-wrap;
  line-height: 1.4;
  overflow-wrap: anywhere;
  word-break: break-word;
  font-size: 13px;
}

.comment-now {
  justify-self: start;
  padding: 2px 8px;
  border-radius: 999px;
  background: #0f62fe;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.comment-icon-button {
  width: 24px;
  height: 24px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d6dce7;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: none;
  font-size: 12px;
  line-height: 1;
}

.comment-icon-button:hover:not(:disabled) {
  background: #eef4ff;
  border-color: #a9bbec;
}

.comment-item.is-sent {
  opacity: 0.72;
}

.comment-status-badge {
  display: inline-flex;
  width: fit-content;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eef2f7;
  color: #667085;
  font-size: 12px;
  font-weight: 600;
}

.comment-icon-button.delete-button:hover:not(:disabled) {
  background: #fff1f0;
  border-color: #e6b8b4;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.52);
  z-index: 100;
}

.modal-backdrop.is-visible {
  display: flex;
}

.studio-shell {
  width: min(100%, 920px);
  min-height: calc(100vh - 24px);
  margin: 0 auto;
  display: grid;
  place-items: center;
}

.studio-dashboard {
  width: 100%;
  display: grid;
  gap: 16px;
}

.studio-create-card {
  gap: 14px;
}

.studio-card {
  width: 100%;
  display: grid;
  gap: 20px;
  padding: 24px;
  border: 1px solid #dbe2ec;
  border-radius: 20px;
  background: #f7f9fc;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
}

.auth-page {
  display: grid;
  place-items: center;
}

.auth-card {
  width: min(100%, 420px);
}

.secondary-link {
  color: #0f62fe;
  text-decoration: none;
  font-weight: 600;
}

.secondary-link:hover {
  text-decoration: underline;
}

.studio-header h1,
.studio-copy,
.studio-eyebrow {
  margin: 0;
}

.studio-header {
  display: grid;
  gap: 8px;
}

.studio-eyebrow {
  color: #0f62fe;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.studio-header h1 {
  font-size: 28px;
}

.studio-copy {
  color: #667085;
  line-height: 1.5;
}

.studio-form {
  display: grid;
  gap: 16px;
}

.studio-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.studio-list-card {
  gap: 16px;
}

.studio-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.studio-section-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.studio-section-head h2 {
  margin: 4px 0 0;
  font-size: 22px;
}

.studio-storage-status {
  margin: 8px 0 0;
  color: #475467;
  font-size: 13px;
}

.studio-user-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #dbe2ec;
  border-radius: 999px;
  background: #fff;
  color: #344054;
  font-size: 13px;
  font-weight: 600;
}

.studio-reviews-list {
  display: grid;
  gap: 10px;
}

.studio-project-card {
  display: grid;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid #dbe2ec;
  border-radius: 18px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.studio-project-card:hover {
  border-color: #bfd0ea;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.studio-project-card:focus-visible {
  outline: 2px solid #0f62fe;
  outline-offset: 2px;
}

.studio-project-card.is-expanded {
  border-color: #0f62fe;
  box-shadow: 0 12px 28px rgba(15, 98, 254, 0.08);
}

.studio-project-card-title,
.studio-project-card-summary {
  margin: 0;
}

.studio-project-card-title {
  font-size: 18px;
  font-weight: 700;
  color: #101828;
}

.studio-project-card-summary {
  color: #667085;
  line-height: 1.45;
}

.studio-project-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.studio-project-videos {
  display: grid;
  gap: 6px;
  padding-left: 12px;
  border-left: 2px solid #e6edf7;
}

.studio-project-video-link-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.studio-project-video-link {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  background: #f8fafc;
  text-align: left;
}

.studio-project-video-link:hover:not(:disabled) {
  background: #eef4ff;
}

.studio-project-video-link-title,
.studio-project-video-link-meta {
  min-width: 0;
}

.studio-project-video-link-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
  color: #101828;
}

.studio-project-video-link-meta {
  flex: none;
  color: #667085;
  font-size: 13px;
}

.studio-review-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid #dbe2ec;
  border-radius: 16px;
  background: #fff;
}

.studio-review-info {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.studio-review-title,
.studio-review-meta {
  margin: 0;
}

.studio-review-title {
  font-size: 16px;
}

.studio-review-meta {
  color: #667085;
  line-height: 1.45;
}

.studio-row-actions {
  flex: none;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.studio-project-stats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.studio-project-stat {
  margin: 0;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef2f7;
  color: #475467;
  font-size: 12px;
  font-weight: 600;
}

.studio-inline-button {
  padding: 7px 10px;
  font-size: 13px;
}

.studio-project-card-actions .copy-link-button {
  min-width: 36px;
}

.studio-project-card-actions .copy-link-button:hover:not(:disabled) {
  border-color: #0f62fe;
  background: #eef4ff;
}

.danger-button {
  border-color: #e4b0aa;
  color: #b42318;
  background: #fff7f6;
}

.danger-button:hover:not(:disabled) {
  background: #fdeceb;
}

.studio-review-shell {
  width: min(100%, 1520px);
  min-height: calc(100vh - 24px);
  margin: 0 auto;
  display: grid;
  gap: 16px;
  padding: 12px;
}

.studio-review-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.studio-review-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 420px);
  gap: 16px;
  align-items: start;
}

.studio-project-layout {
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.studio-project-sidebar,
.studio-project-main {
  min-width: 0;
}

.studio-project-main {
  display: grid;
  gap: 16px;
}

.studio-project-video-list {
  display: grid;
  gap: 8px;
}

.studio-project-video-row {
  display: grid;
  gap: 8px;
}

.studio-project-video-button {
  width: 100%;
  display: grid;
  justify-items: start;
  gap: 4px;
  padding: 10px 12px;
  text-align: left;
  border-radius: 12px;
  border-color: #dbe2ec;
  background: #fff;
}

.studio-project-video-button:hover:not(:disabled) {
  background: #f5f9ff;
}

.studio-project-video-button.is-active {
  border-color: #0f62fe;
  background: #e7f0ff;
  box-shadow: inset 0 0 0 1px rgba(15, 98, 254, 0.16);
}

.studio-project-video-title {
  width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
  color: #101828;
}

.studio-project-video-meta {
  color: #667085;
  font-size: 13px;
}

.studio-video-inline-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.sidebar-back-button {
  width: 100%;
  padding: 9px 12px;
  justify-content: flex-start;
  border: 1px solid #d6dce7;
  border-radius: 12px;
  background: #fff;
  font-weight: 600;
}

.studio-project-comments-section {
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.studio-review-video-card,
.studio-sessions-card {
  display: grid;
  gap: 16px;
  padding: 20px;
  border: 1px solid #dbe2ec;
  border-radius: 20px;
  background: #f7f9fc;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
}

.studio-review-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.studio-review-player {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}

.studio-review-player video {
  width: auto;
  max-width: 100%;
  max-height: calc(100vh - 220px);
  height: auto;
  display: block;
  border-radius: 14px;
  background: transparent;
}

.studio-sessions-card {
  min-height: 0;
  align-self: stretch;
  grid-template-rows: auto minmax(0, 1fr);
}

.studio-sessions-list {
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 8px;
  overflow-y: auto;
}

.studio-project-footer {
  position: sticky;
  bottom: 0;
  padding-top: 8px;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0) 0%, #f8fafc 24%);
}

.studio-download-button {
  width: 100%;
  justify-content: center;
}

.studio-session-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid #dbe2ec;
  border-radius: 16px;
  background: #fff;
}

.studio-session-card + .studio-session-card {
  margin-top: 8px;
  border-top: 2px solid #dbe2ec;
}

.studio-session-head {
  display: grid;
  gap: 4px;
}

.studio-session-title,
.studio-session-meta {
  margin: 0;
}

.studio-session-title {
  font-size: 16px;
}

.studio-session-meta {
  color: #667085;
  font-size: 13px;
}

.comment-bullet {
  color: #667085;
}

.empty-project-button {
  padding: 12px 18px;
  border: 1px dashed #aebbd0;
  border-radius: 16px;
  background: #fff;
  color: #0f62fe;
  font-size: 16px;
  font-weight: 700;
}

.studio-session-comments {
  display: grid;
  gap: 8px;
}

.review-link-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid #dbe2ec;
  border-radius: 16px;
  background: #fff;
}

.review-link-title,
.review-link-anchor {
  margin: 0;
}

.review-link-title {
  font-weight: 700;
}

.review-link-anchor {
  color: #0f62fe;
  overflow-wrap: anywhere;
}

.selected-files-list {
  display: grid;
  gap: 6px;
}

.selected-file-item {
  margin: 0;
  color: #344054;
  line-height: 1.45;
}

@media (max-width: 980px) {
  .page {
    padding: 10px;
  }

  .app-shell,
  .studio-card {
    min-height: auto;
    padding: 10px;
  }

  .workspace,
  .workspace.sidebar-collapsed {
    grid-template-columns: 1fr;
  }

  .review-work-area {
    display: flex;
    flex-direction: column;
  }

  .comments-resize-handle {
    display: none;
  }

  .review-page .page,
  body.review-page {
    height: auto;
    overflow: auto;
  }

  .review-page .app-shell,
  .review-page .workspace,
  .review-page .review-work-area,
  .review-page .video-column,
  .review-page .video-stage,
  .review-page .sidebar-panel,
  .review-page .comments-panel {
    height: auto;
    min-height: 0;
  }

  .sidebar-toggle {
    display: none;
  }

  .sidebar-panel {
    height: auto !important;
  }

  .sidebar-panel-content,
  .workspace.sidebar-collapsed .sidebar-panel-content,
  .workspace.sidebar-collapsed .sidebar-brand-copy {
    display: grid;
  }

  .workspace.sidebar-collapsed .sidebar-panel {
    padding: 12px;
    justify-items: stretch;
  }

  .workspace.sidebar-collapsed .sidebar-head {
    flex-direction: row;
  }

  .comments-panel {
    height: auto !important;
    min-height: auto;
    padding: 12px;
  }

  .video-stage {
    min-height: 220px;
  }

  .studio-form-grid {
    grid-template-columns: 1fr;
  }

  .studio-review-layout,
  .studio-review-meta-grid,
  .studio-project-layout {
    grid-template-columns: 1fr;
  }

  .studio-review-header,
  .studio-review-row {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .page {
    padding: 0;
  }

  .app-shell,
  .studio-shell,
  .studio-card {
    min-height: 100vh;
  }

  .app-shell {
    border-radius: 0;
    border: 0;
    box-shadow: none;
  }

  .actions,
  .overlay-actions,
  .studio-actions {
    flex-direction: column;
  }

  .actions button,
  .overlay-actions button,
  .studio-actions button {
    width: 100%;
  }

  .overlay-card,
  .modal-card,
  .studio-card {
    padding: 16px;
  }

  .studio-header h1 {
    font-size: 24px;
  }
}
