:root {
  color-scheme: dark;
  --bg: #151715;
  --bg-soft: #191c19;
  --surface: #20231f;
  --surface-2: #262a25;
  --surface-3: #2c312b;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(185, 217, 74, 0.58);
  --text: #f1f2ea;
  --muted: #a5aa9d;
  --quiet: #71776d;
  --accent: #b9d94a;
  --accent-soft: rgba(185, 217, 74, 0.14);
  --warning: #d8b64c;
  --danger: #ff7b6e;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* Client review: restrained dark workspace */
.review-page {
  --review-bg: #0b0b0c;
  --review-surface: #1c1c1e;
  --review-surface-raised: #232325;
  --review-line: #2c2c2e;
  --review-text: #f2f2f3;
  --review-muted: #96969d;
  min-width: 0;
  color: var(--review-text);
  background: var(--review-bg);
}

.review-page .review-shell {
  min-width: 0;
  background: var(--review-bg);
}

.review-page .review-frame {
  width: min(1600px, 100%);
  min-width: 0;
}

.review-page .review-topbar {
  border-color: var(--review-line);
}

.review-page .review-stage,
.review-page .review-comments {
  border: 0;
  border-radius: 16px;
  background: #121214;
}

.review-video-wrap {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border-radius: 12px;
  background: #000;
}

.review-page .review-video {
  max-height: 72vh;
  border-radius: 12px;
  box-shadow: none;
}

.video-pause-mask {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.4);
}

.leave-comment-button {
  position: absolute;
  z-index: 3;
  right: 16px;
  bottom: 60px;
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 0 14px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(20, 20, 22, 0.72);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
  font-size: 12px;
}

.jump-time-feedback {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: 50%;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -45%) scale(0.96);
  color: #fff;
  font-size: clamp(34px, 6vw, 68px);
  font-weight: 650;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.55);
}

.jump-time-feedback.show {
  animation: review-time-flash 800ms ease both;
}

@keyframes review-time-flash {
  0% { opacity: 0; transform: translate(-50%, -42%) scale(0.94); }
  25% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -54%) scale(1.02); }
}

.review-panel-heading {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--review-line);
}

.review-panel-heading > div {
  display: flex;
  gap: 9px;
  align-items: baseline;
}

.review-panel-heading h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.review-panel-heading span {
  color: var(--review-muted);
  font-size: 12px;
}

.file-info-button,
.sheet-close-button {
  display: inline-grid;
  width: 30px;
  min-height: 30px;
  place-items: center;
  border: 1px solid var(--review-line);
  border-radius: 50%;
  padding: 0;
  color: var(--review-muted);
  background: transparent;
  font-size: 14px;
}

.file-info-button.active {
  color: var(--review-text);
  background: var(--review-surface-raised);
}

.review-file-popover {
  margin: -8px 0 18px;
  border-radius: 12px;
  padding: 14px;
  background: var(--review-surface);
}

.review-file-popover h3 {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 600;
}

.review-page .file-info-list > div {
  border-color: var(--review-line);
}

.review-page .comment-list {
  gap: 0;
}

.review-page .comment-item {
  border: 0;
  border-bottom: 1px solid var(--review-line);
  border-radius: 0;
  padding: 16px 2px;
  background: transparent;
  cursor: pointer;
  transition: background 160ms ease, padding 160ms ease;
}

.review-page .comment-item.is-expanded {
  margin: 6px 0;
  border-bottom-color: transparent;
  border-radius: 12px;
  padding: 16px;
  background: var(--review-surface);
}

.review-page .comment-item:focus-visible {
  outline: 1px solid #48484a;
  outline-offset: 2px;
}

.review-page .comment-time {
  min-width: auto;
  min-height: 28px;
  border: 0;
  border-radius: 6px;
  padding: 4px 7px;
  color: #d5d5d7;
  background: var(--review-surface-raised);
  font-size: 12px;
}

.review-page .comment-state {
  margin-left: auto;
  border-radius: 6px;
  padding: 4px 6px;
  color: #e5c158;
  background: rgba(229, 193, 88, 0.05);
}

.review-page .comment-state.is-fixed {
  color: #30d158;
  background: rgba(48, 209, 88, 0.05);
}

.review-page .comment-item.is-unfinished,
.review-page .comment-item.is-fixed {
  border-color: var(--review-line);
  background: transparent;
}

.review-page .comment-item.is-expanded.is-unfinished,
.review-page .comment-item.is-expanded.is-fixed {
  border-color: transparent;
  background: var(--review-surface);
}

.reply-details {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--review-line);
}

.review-page .reply-list {
  margin-top: 0;
}

.review-page .reply-form textarea,
.review-page .review-comment-sheet textarea {
  border: 1px solid var(--review-line);
  border-radius: 10px;
  color: var(--review-text);
  background: #151517;
}

.review-page .review-comment-sheet {
  position: fixed;
  z-index: 30;
  right: 50%;
  bottom: 18px;
  width: min(620px, calc(100vw - 32px));
  max-height: min(52vh, 440px);
  margin: 0;
  border: 1px solid var(--review-line);
  border-radius: 16px;
  padding: 10px 16px 16px;
  transform: translateX(50%);
  color: var(--review-text);
  background: rgba(28, 28, 30, 0.96);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(24px);
  animation: review-sheet-in 220ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes review-sheet-in {
  from { opacity: 0; transform: translate(50%, 24px); }
  to { opacity: 1; transform: translate(50%, 0); }
}

.comment-sheet-handle {
  width: 36px;
  height: 4px;
  margin: 0 auto 12px;
  border-radius: 99px;
  background: #48484a;
}

.comment-sheet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}

.comment-sheet-head > div {
  display: flex;
  gap: 9px;
  align-items: center;
  min-width: 0;
}

.comment-sheet-head p {
  margin: 0;
  color: var(--review-muted);
  font-size: 12px;
}

.review-page .comment-meta {
  border: 0;
  border-radius: 6px;
  padding: 4px 7px;
  background: var(--review-surface-raised);
  font-size: 12px;
}

.review-page .timeline-comment-compose button {
  border: 0;
  border-radius: 10px;
  color: #0b0b0c;
  background: #f2f2f3;
  font-weight: 650;
}

.review-page .timeline-line::before {
  background: #6e6e73;
}

.review-page .timeline-marker {
  width: 10px;
  height: 10px;
  min-height: 10px;
  background: #d1d1d6;
}

@media (max-width: 760px) {
  .review-page .review-shell {
    padding: 12px;
  }

  .review-page .review-topbar {
    gap: 10px;
  }

  .review-page .brand-name {
    font-size: 15px;
  }

  .review-page .review-stage,
  .review-page .review-comments {
    padding: 10px;
  }

  .review-page .timeline-hint {
    align-items: flex-start;
    flex-direction: column;
  }

  .review-page .timeline-line {
    width: 100%;
    flex: none;
  }

  .leave-comment-button {
    right: 10px;
    bottom: 52px;
    max-width: calc(100% - 20px);
  }

  .review-page .review-comment-sheet {
    bottom: 0;
    width: 100%;
    max-height: 58vh;
    border-width: 1px 0 0;
    border-radius: 16px 16px 0 0;
    padding-bottom: max(16px, env(safe-area-inset-bottom));
  }

  .review-page .timeline-comment-compose {
    grid-template-columns: 1fr;
  }

  .review-page .timeline-comment-compose button {
    min-height: 44px;
  }

  .comment-sheet-head p {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(185, 217, 74, 0.06), transparent 34rem),
    radial-gradient(circle at 95% 30%, rgba(255, 255, 255, 0.035), transparent 30rem),
    linear-gradient(180deg, #171917, var(--bg));
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

button {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--accent);
  color: #151715;
  font-weight: 760;
  cursor: pointer;
}

button:disabled {
  opacity: 0.6;
  cursor: wait;
}

.visually-hidden {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
}

.auth-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.auth-panel {
  width: min(420px, 100%);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015)),
    var(--surface);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
}

.auth-brand {
  margin-bottom: 38px;
}

.auth-heading h1 {
  margin: 0;
  font-size: 30px;
  letter-spacing: 0;
}

.auth-heading p {
  margin: 10px 0 24px;
  color: var(--muted);
  line-height: 1.55;
}

.auth-form {
  display: grid;
  gap: 15px;
}

.auth-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.auth-form input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 12px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.14);
  outline: none;
}

.auth-form input:focus {
  border-color: var(--line-strong);
}

.auth-form > button {
  margin-top: 3px;
}

.auth-mode-toggle {
  width: 100%;
  min-height: 38px;
  margin-top: 14px;
  color: var(--muted);
  background: transparent;
  font-size: 13px;
}

.app-shell,
.library-shell,
.shell {
  min-height: 100vh;
  padding: 28px 32px 36px;
}

.app-frame,
.library-panel,
.panel {
  width: min(1440px, 100%);
  margin: 0 auto;
}

.topbar,
.library-header {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  min-height: 58px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--accent);
  font-size: 17px;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.03);
}

.brand-name,
.library-header h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 780;
  letter-spacing: 0;
}

.topbar-search {
  justify-self: center;
  width: min(520px, 100%);
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 16px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
}

.topbar-actions {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
}

.nav-pills {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.nav-pills span,
.nav-pills button,
.nav-pills a {
  min-width: 84px;
  border-radius: 10px;
  padding: 9px 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 680;
  text-align: center;
  text-decoration: none;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-pills .active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 -2px 0 var(--accent);
}

.avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text);
  font-size: 13px;
  font-weight: 780;
  background: var(--surface);
  cursor: pointer;
}

.account-control {
  position: relative;
  flex: 0 0 auto;
}

.account-menu {
  position: absolute;
  z-index: 60;
  top: calc(100% + 10px);
  right: 0;
  width: min(260px, calc(100vw - 32px));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 6px;
  background: #20231f;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
}

.account-menu[hidden] {
  display: none;
}

.account-summary {
  display: grid;
  gap: 3px;
  margin-bottom: 5px;
  border-bottom: 1px solid var(--line);
  padding: 10px 10px 12px;
}

.account-summary strong {
  overflow: hidden;
  color: var(--text);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-summary span {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-menu > button {
  display: flex;
  width: 100%;
  min-height: 38px;
  align-items: center;
  border: 0;
  border-radius: 8px;
  padding: 0 10px;
  color: var(--text);
  background: transparent;
  text-align: left;
}

.account-menu > button:hover,
.account-menu > button:focus-visible {
  background: rgba(255, 255, 255, 0.055);
}

.account-menu > button:disabled {
  opacity: 0.45;
}

.account-menu > .account-menu-danger {
  color: #ff817a;
}

.account-menu > p {
  margin: 4px 10px 6px;
  color: #ff817a;
  font-size: 12px;
}

.primary-button,
.library-header button,
.project-detail-title button {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 13px;
  background: var(--accent);
  color: #151715;
}

.compact-button {
  min-height: 38px;
  min-width: 74px;
  padding: 0 14px;
  border-radius: 11px;
  font-size: 14px;
  white-space: nowrap;
}

.ghost-button,
.icon-button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
}

.icon-button {
  width: 42px;
  min-height: 42px;
  padding: 0;
}

.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  padding: 44px 0 28px;
}

.page-kicker,
.eyebrow {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

h1 {
  margin: 0;
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.02;
  letter-spacing: 0;
}

.page-subtitle {
  max-width: 620px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.status {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.status.error {
  color: var(--danger);
}

.library-layout,
.project-layout,
.admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
}

.project-layout:has(> aside[hidden]) {
  grid-template-columns: 1fr;
}

.focus-strip {
  margin: 0 0 28px;
}

.focus-strip .side-panel {
  padding: 20px;
}

.focus-strip .focus-list {
  grid-template-columns: minmax(0, 1fr);
}

.panel-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
}

.panel-heading p {
  margin: 8px 0 0;
}

.task-compose {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 128px 86px 148px 44px;
  gap: 8px;
  align-items: center;
}

.version-field,
.dialog-version-field {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding-left: 12px;
  color: var(--accent);
  background: rgba(255, 255, 255, 0.035);
  font-weight: 760;
}

.version-field input,
.dialog-version-field input {
  min-width: 0;
  border: 0;
  padding-left: 5px;
  background: transparent;
}

.task-compose input,
.task-compose select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 12px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
  outline: none;
}

.task-compose select {
  appearance: none;
  padding-right: 28px;
  background:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%) right 14px center / 6px 6px no-repeat,
    linear-gradient(135deg, var(--muted) 50%, transparent 50%) right 10px center / 6px 6px no-repeat,
    rgba(255, 255, 255, 0.035);
}

.task-compose input:focus,
.task-compose select:focus {
  border-color: var(--line-strong);
}

.task-compose input::placeholder {
  color: var(--quiet);
}

.task-compose .version-field input {
  min-width: 0;
  border: 0;
  padding-left: 5px;
  background: transparent;
}

.task-compose button {
  display: grid;
  place-items: center;
  width: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: 12px;
  font-size: 20px;
  line-height: 1;
}

.delivery-timeline {
  margin-top: 18px;
}

.timeline-block {
  grid-column: 1 / -1;
  margin-top: 0;
}

.timeline-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
}

.timeline-heading strong {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  min-height: 24px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent);
  background: rgba(255, 255, 255, 0.026);
}

.timeline-track {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.timeline-point,
.timeline-empty {
  position: relative;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 12px;
  color: inherit;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.024);
}

.timeline-point::before {
  position: absolute;
  top: 20px;
  left: 22px;
  right: -10px;
  height: 1px;
  background: var(--line);
  content: "";
}

.timeline-point:last-child::before {
  display: none;
}

.timeline-dot,
.timeline-empty span {
  position: relative;
  z-index: 1;
  display: block;
  width: 10px;
  height: 10px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 5px var(--accent-soft);
}

.timeline-point strong,
.timeline-empty strong {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
}

.timeline-point small,
.timeline-empty small {
  display: block;
  color: var(--muted);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.timeline-empty {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 12px;
  align-items: center;
}

.timeline-empty span {
  grid-row: 1 / span 2;
  margin: 0;
}

.section-toolbar {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.section-title {
  margin: 0;
  color: var(--text);
  font-size: 18px;
  font-weight: 720;
}

.view-toggle {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
}

.archive-tabs {
  display: inline-flex;
  gap: 4px;
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 3px;
  background: rgba(255, 255, 255, 0.025);
}

.archive-tabs button {
  min-height: 34px;
  border: 0;
  border-radius: 8px;
  padding: 0 12px;
  color: var(--muted);
  background: transparent;
  font-size: 13px;
}

.archive-tabs button.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 -2px 0 var(--accent);
}

.project-list,
.project-video-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.project-card,
.video-card {
  min-width: 0;
}

.project-empty {
  grid-column: 1 / -1;
  display: grid;
  gap: 6px;
  min-height: 120px;
  place-content: center;
  border: 1px dashed var(--line);
  border-radius: 14px;
  color: var(--muted);
  text-align: center;
}

.project-empty strong {
  color: var(--text);
}

.project-card a,
.video-card a {
  display: grid;
  min-height: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px;
  color: inherit;
  text-decoration: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.018)),
    var(--surface-2);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.topic-card-body {
  display: grid;
  min-height: 0;
  align-content: start;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px;
  background: var(--surface-2);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
}

.project-card a:hover,
.video-card a:hover {
  border-color: var(--line-strong);
  background: var(--surface-3);
  transform: translateY(-2px);
}

.project-card:first-child a,
.video-card:first-child a {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 1px rgba(185, 217, 74, 0.18), 0 18px 44px rgba(0, 0, 0, 0.22);
}

.project-cover,
.video-thumbnail {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 10px;
  color: var(--text);
  font-size: 34px;
  font-weight: 820;
  background:
    radial-gradient(circle at 70% 30%, rgba(185, 217, 74, 0.16), transparent 28%),
    linear-gradient(135deg, #323a35, #171917);
}

.project-cover::after,
.video-thumbnail::after {
  position: absolute;
  inset: auto 10px 10px auto;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 3px 8px;
  color: var(--text);
  font-size: 12px;
  font-weight: 720;
  background: rgba(0, 0, 0, 0.42);
  content: "档案";
}

.project-cover span,
.video-thumbnail span {
  position: relative;
  z-index: 1;
}

.video-thumbnail video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.03) brightness(0.88);
}

.video-thumbnail::after {
  content: attr(data-duration);
}

.project-card h2,
.video-card h2,
.archive-topic h2 {
  margin: 14px 6px 8px;
  color: var(--text);
  font-size: 18px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.topic-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 14px 6px 4px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.topic-actions > * {
  flex: 0 0 auto;
}

.topic-more {
  position: relative;
}

.topic-more summary {
  display: grid;
  place-items: center;
  width: 38px;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
  list-style: none;
}

.topic-more summary::-webkit-details-marker {
  display: none;
}

.topic-more-menu {
  position: absolute;
  z-index: 12;
  top: calc(100% + 7px);
  right: 0;
  display: grid;
  gap: 5px;
  width: 150px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 7px;
  background: #252923;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.38);
}

.topic-more:not([open]) .topic-more-menu {
  display: none;
}

.topic-more-menu button {
  width: 100%;
  justify-content: flex-start;
}

.topic-actions button,
.topic-primary-link,
.version-actions a,
.version-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 0 10px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  font-size: 12px;
  font-weight: 720;
  text-decoration: none;
}

.topic-primary-link {
  border-color: var(--line-strong);
  color: #151715;
  background: var(--accent);
}

.danger-text-button {
  color: var(--danger) !important;
  background: rgba(255, 123, 110, 0.06) !important;
}

.version-history {
  display: grid;
  gap: 7px;
  margin: 10px 6px 4px;
}

.version-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 10px;
  background: rgba(0, 0, 0, 0.12);
}

.version-row strong,
.version-row small {
  display: block;
}

.version-row small {
  margin-top: 3px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.version-actions {
  display: flex;
  gap: 6px;
}

.project-header-actions {
  display: flex;
  gap: 9px;
  align-items: center;
}

.archive-topic {
  grid-column: 1 / -1;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  background: var(--surface-2);
}

.archive-topic-heading h2,
.archive-topic-heading p {
  margin: 0;
}

.archive-topic-heading p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.delivery-form {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.delivery-form label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.delivery-form input,
.delivery-form select,
.delivery-form textarea {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 0 10px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.14);
}

.delivery-saved-copy {
  grid-column: 2;
  min-width: 0;
  max-width: 100%;
  min-height: 92px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 12px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.12);
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.delivery-saved-state {
  align-self: start;
  border-radius: 999px;
  padding: 5px 9px;
  color: #d7e997;
  background: rgba(185, 217, 74, 0.09);
  font-size: 12px;
  font-weight: 720;
}

.delivery-form > textarea,
.delivery-actions {
  grid-column: 2;
}

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

.delivery-form textarea {
  min-height: 92px;
  padding: 10px;
  resize: vertical;
  line-height: 1.5;
}

.delivery-form button {
  min-height: 40px;
  border-radius: 9px;
  padding: 0 12px;
  white-space: nowrap;
}

.final-version-display {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--accent);
}

.archive-topic-heading {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
}

.completed-topic-more {
  margin-left: auto;
}

.completed-topic-more .topic-more-menu {
  width: 174px;
}

.completed-topic-more .danger-text-button {
  color: var(--danger);
}

.completed-archives {
  display: grid;
  gap: 18px;
}

.completed-archive {
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 18px;
  background: var(--surface);
}

.completed-archive-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.completed-archive-heading span {
  color: var(--muted);
  font-size: 12px;
}

.completed-archive-heading h2 {
  margin: 4px 0 0;
  font-size: 22px;
}

.completed-archive-heading a {
  color: var(--accent);
  text-decoration: none;
}

.completed-project-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.completed-project-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 13px 0 4px;
}

.completed-project-list strong,
.completed-project-list small {
  display: block;
}

.completed-project-list small {
  margin-top: 4px;
  color: var(--muted);
}

.completed-project-list li > div:last-child {
  display: flex;
  gap: 8px;
}

.completed-project-list a,
.completed-project-list button {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 0 11px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.project-meta,
.project-updated,
.video-meta,
.video-footer {
  margin: 0 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 610;
  line-height: 1.55;
}

.video-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
}

.video-meta strong {
  border-radius: 7px;
  padding: 3px 7px;
  color: #d7e997;
  background: rgba(185, 217, 74, 0.09);
  font-size: 12px;
  font-weight: 720;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 16px 6px 2px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.stat-row span {
  color: var(--quiet);
  font-size: 12px;
}

.stat-row strong {
  display: block;
  margin-top: 4px;
  color: var(--accent);
  font-size: 17px;
}

.side-panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015)),
    var(--surface);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
}

.side-panel + .side-panel {
  margin-top: 18px;
}

.side-panel h2,
.side-panel h3 {
  margin: 0;
  font-size: 20px;
}

.side-panel p {
  color: var(--muted);
}

.focus-list,
.ai-list {
  display: grid;
  gap: 14px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.focus-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 14px;
  align-items: center;
  min-height: 84px;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.026);
}

.focus-task {
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.026);
}

.work-group-title {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 28px;
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
}

.work-group-title + .work-task {
  margin-top: -2px;
}

.work-group-title strong {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  min-height: 24px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent);
  background: rgba(255, 255, 255, 0.026);
}

.work-task {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 13px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.012)),
    rgba(255, 255, 255, 0.018);
}

.work-task.is-done {
  opacity: 0.56;
}

.manual-task.status-doing {
  border-color: var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.012)),
    rgba(255, 255, 255, 0.018);
}

.work-task-main {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 82px;
  border: 0;
  padding: 10px;
  color: var(--text);
  background: transparent;
  text-align: left;
}

button.work-task-main {
  cursor: pointer;
}

.feedback-task .work-task-main {
  grid-template-columns: 48px minmax(0, 1fr) auto 34px;
}

.feedback-version {
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  min-height: 30px;
  border: 1px solid rgba(185, 217, 74, 0.28);
  border-radius: 8px;
  color: var(--accent);
  background: rgba(185, 217, 74, 0.07);
  font-size: 12px;
  font-weight: 760;
  white-space: nowrap;
}

.work-source {
  display: inline-grid;
  place-items: center;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent);
  background: var(--accent-soft);
  font-size: 12px;
  font-weight: 760;
}

.work-task-main strong {
  display: block;
  margin-bottom: 4px;
  overflow-wrap: anywhere;
  line-height: 1.35;
}

.work-task-main small {
  display: block;
  color: var(--muted);
  line-height: 1.5;
}

.work-task-arrow {
  display: grid;
  place-items: center;
  width: 34px;
  min-height: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  transition: transform 160ms ease;
}

.work-task.open .work-task-arrow {
  transform: rotate(180deg);
}

.manual-task .work-task-main {
  grid-template-columns: minmax(104px, 132px) minmax(0, 1fr) minmax(270px, auto);
}

.project-source-select {
  width: 100%;
  min-width: 0;
  min-height: 34px;
  appearance: none;
  padding: 0 24px 0 11px;
  overflow: hidden;
  border-radius: 999px;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
  background:
    linear-gradient(45deg, transparent 50%, var(--accent) 50%) right 13px center / 6px 6px no-repeat,
    linear-gradient(135deg, var(--accent) 50%, transparent 50%) right 9px center / 6px 6px no-repeat,
    var(--accent-soft);
}

.project-source-select option,
.task-compose select option {
  color: #11140f;
  background: #f4f5ef;
}

.feedback-add-form {
  display: grid;
  grid-template-columns: 132px auto auto;
  gap: 8px;
  align-items: center;
}

.feedback-add-form input {
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 9px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
}

.feedback-add-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-height: 36px;
  border-radius: 10px;
  padding: 0 12px;
  font-size: 12px;
  white-space: nowrap;
}

.feedback-add-form button:disabled {
  width: auto;
  padding: 0 10px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  cursor: default;
}

.feedback-meta {
  display: flex !important;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.feedback-count {
  border-radius: 7px;
  padding: 3px 7px;
  color: #d7e997;
  background: rgba(185, 217, 74, 0.09);
  font-size: 12px;
  font-weight: 720;
}

.task-status-select {
  min-width: 72px;
  min-height: 34px;
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 28px 0 12px;
  color: var(--text);
  background:
    linear-gradient(45deg, transparent 50%, currentColor 50%) right 13px center / 5px 5px no-repeat,
    linear-gradient(135deg, currentColor 50%, transparent 50%) right 9px center / 5px 5px no-repeat,
    rgba(255, 255, 255, 0.035);
  font-size: 12px;
  font-weight: 720;
  white-space: nowrap;
}

.task-status-select.is-todo {
  color: var(--muted);
}

.task-status-select.is-doing {
  border-color: rgba(124, 157, 188, 0.44);
  color: #a7bed3;
  background: rgba(91, 124, 155, 0.11);
}

.manual-task.status-doing .work-source {
  border-color: rgba(185, 217, 74, 0.28);
  color: var(--accent);
  background: var(--accent-soft);
}

.task-status-select:hover {
  border-color: var(--line-strong);
  color: var(--accent);
  background: var(--accent-soft);
}

.task-status-select.is-doing:hover,
.task-status-select.is-doing:focus {
  border-color: rgba(124, 157, 188, 0.58);
  color: #bfd0df;
  background: rgba(91, 124, 155, 0.16);
}

.task-controls,
.task-actions {
  display: flex;
  gap: 7px;
  align-items: center;
  justify-content: flex-end;
}

.task-actions button {
  min-height: 34px;
  border-radius: 9px;
  padding: 0 10px;
  font-size: 12px;
}

.task-upload-button,
.task-share-button,
.task-edit-button {
  border-color: var(--line);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
}

.task-uploaded-state {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 10px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.025);
  font-size: 12px;
  font-weight: 720;
  white-space: nowrap;
}

.upload-center {
  position: fixed;
  z-index: 28;
  right: 28px;
  bottom: 28px;
  width: min(340px, calc(100vw - 36px));
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  color: var(--text);
  background: #252923;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
}

.upload-center > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.upload-center span,
.upload-center p {
  color: var(--muted);
  font-size: 12px;
}

.upload-center p {
  margin: 10px 0;
  color: var(--text);
}

.upload-progress {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.upload-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width 160ms ease;
}

.upload-center.error .upload-progress span {
  background: var(--danger);
}

body:has(.upload-center:not([hidden])) .toast {
  bottom: 152px;
}

.task-complete-button {
  border-color: rgba(185, 217, 74, 0.32);
  color: var(--accent);
  background: var(--accent-soft);
}

.task-complete-button[data-armed="true"] {
  color: #151715;
  background: var(--accent);
}

.toast {
  position: fixed;
  z-index: 30;
  right: 28px;
  bottom: 28px;
  display: flex;
  gap: 16px;
  align-items: center;
  max-width: min(420px, calc(100vw - 36px));
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 13px 15px;
  color: var(--text);
  background: #252923;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.38);
}

.toast[hidden] {
  display: none;
}

.toast button {
  min-height: 32px;
  border-radius: 8px;
  padding: 0 10px;
  white-space: nowrap;
}

.project-dialog {
  width: min(460px, calc(100vw - 36px));
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0;
  color: var(--text);
  background: var(--surface);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
}

.project-dialog::backdrop {
  background: rgba(7, 9, 7, 0.72);
  backdrop-filter: blur(5px);
}

.project-dialog form {
  display: grid;
  gap: 13px;
  padding: 22px;
}

.dialog-heading {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 4px;
}

.dialog-heading h2,
.dialog-heading p {
  margin: 0;
}

.dialog-heading h2 {
  font-size: 21px;
}

.dialog-heading p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.dialog-close {
  display: grid;
  place-items: center;
  width: 36px;
  min-height: 36px;
  flex: 0 0 auto;
  border-color: var(--line);
  padding: 0;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  font-size: 20px;
}

.project-dialog label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.project-dialog input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 0 13px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.16);
  outline: none;
}

.project-dialog select {
  width: 100%;
  min-height: 48px;
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 0 34px 0 13px;
  color: var(--text);
  background:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%) right 17px center / 6px 6px no-repeat,
    linear-gradient(135deg, var(--muted) 50%, transparent 50%) right 13px center / 6px 6px no-repeat,
    rgba(0, 0, 0, 0.16);
}

.dialog-version-field {
  min-height: 48px;
  background: rgba(0, 0, 0, 0.16);
}

.project-dialog input:focus {
  border-color: var(--line-strong);
}

.dialog-error {
  min-height: 20px;
  margin: 0;
  color: var(--danger);
  font-size: 13px;
}

.dialog-actions {
  display: flex;
  gap: 9px;
  justify-content: flex-end;
}

.dialog-actions-split {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
}

.danger-button {
  border-color: rgba(255, 123, 110, 0.32);
  color: var(--danger);
  background: rgba(255, 123, 110, 0.08);
}

.danger-button[data-armed="true"] {
  color: #171917;
  background: var(--danger);
}

.dialog-actions button {
  min-height: 40px;
  padding: 0 15px;
}

.focus-task-main {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 14px;
  align-items: center;
  width: 100%;
  min-height: 84px;
  border: 0;
  padding: 10px;
  color: var(--text);
  background: transparent;
  text-align: left;
}

.focus-task-main strong {
  display: block;
  margin-bottom: 4px;
  overflow-wrap: anywhere;
}

.focus-task-main small {
  display: block;
  color: var(--muted);
  line-height: 1.5;
}

.focus-task-arrow {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  transition: transform 160ms ease;
}

.focus-task.open .focus-task-arrow {
  transform: rotate(180deg);
}

.focus-task-detail {
  display: none;
  padding: 0 14px 14px 88px;
}

.focus-task.open .focus-task-detail,
.work-task.open .focus-task-detail {
  display: block;
}

.focus-comment-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.focus-comment-list a {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 10px;
  color: var(--muted);
  text-decoration: none;
  background: rgba(0, 0, 0, 0.12);
}

.focus-comment-list a:hover {
  border-color: var(--line-strong);
  color: var(--text);
}

.focus-comment-list span {
  display: inline-grid;
  place-items: center;
  min-height: 28px;
  border-radius: 8px;
  color: var(--accent);
  background: var(--accent-soft);
  font-weight: 780;
}

.focus-thumb {
  width: 64px;
  aspect-ratio: 1;
  border-radius: 10px;
  background: linear-gradient(135deg, #4a504a, #222622);
}

.focus-item strong {
  display: block;
  margin-bottom: 4px;
}

.focus-item small {
  display: block;
  color: var(--muted);
  line-height: 1.5;
}

.lime-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 7px;
  border-radius: 999px;
  background: var(--accent);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-weight: 690;
  text-decoration: none;
}

.project-detail-header {
  padding: 36px 0 28px;
  border-bottom: 1px solid var(--line);
}

.project-detail-title {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  margin-top: 26px;
}

.project-thumb {
  width: 210px;
  aspect-ratio: 16 / 9;
  border-radius: 13px;
  background:
    linear-gradient(rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.18)),
    radial-gradient(circle at 80% 10%, rgba(185, 217, 74, 0.14), transparent 30%),
    linear-gradient(135deg, #48524a, #20231f);
}

.project-title-copy h1,
.project-detail-title h1 {
  font-size: clamp(32px, 4vw, 48px);
}

.project-title-copy p {
  max-width: 700px;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.project-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
}

.project-video-section {
  padding-top: 28px;
}

.video-card-tools {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin: 12px 6px 0;
}

.status-menu {
  position: relative;
}

.status-menu-trigger {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 12px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
  font-size: 13px;
  font-weight: 720;
}

.status-menu-list {
  position: absolute;
  z-index: 10;
  bottom: calc(100% + 8px);
  left: 0;
  display: none;
  min-width: 132px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 6px;
  background: #20231f;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.36);
}

.status-menu.open .status-menu-list {
  display: grid;
  gap: 4px;
}

.status-menu-list button {
  min-height: 34px;
  border: 0;
  border-radius: 9px;
  padding: 0 10px;
  color: var(--text);
  background: transparent;
  text-align: left;
  font-size: 13px;
  font-weight: 680;
}

.status-menu-list button:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.copy-link {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.032);
}

.review-shell {
  min-height: 100vh;
  padding: 22px 28px 28px;
}

.review-frame {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 410px);
  gap: 18px;
  width: min(1500px, 100%);
  margin: 0 auto;
}

.review-main {
  display: grid;
  gap: 14px;
  align-content: start;
  min-width: 0;
}

.review-topbar {
  grid-column: 1 / -1;
  display: flex;
  gap: 16px;
  align-items: center;
  min-height: 50px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.review-topbar h1 {
  min-width: 0;
  flex: 1;
  font-size: 18px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.review-stage,
.review-comments {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.024);
}

.review-stage {
  padding: 24px;
}

.review-video {
  display: block;
  width: 100%;
  max-height: 68vh;
  border-radius: 14px;
  background: #050605;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.32);
}

.timeline-hint {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 13px;
}

.timeline-line {
  position: relative;
  flex: 1;
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.12);
}

.timeline-line::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 36%;
  border-radius: inherit;
  background: var(--accent);
  content: "";
}

.timeline-marker {
  position: absolute;
  top: -5px;
  width: 14px;
  height: 14px;
  min-height: 14px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  transform: translateX(-50%);
  background: #99ad55;
}

.review-comments {
  display: flex;
  min-height: 78vh;
  flex-direction: column;
  padding: 20px;
}

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

.review-comments-header h2 {
  margin: 0;
  font-size: 22px;
}

.review-comments-header p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.comment-form {
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
}

.comment-meta {
  display: inline-flex;
  width: fit-content;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 6px 9px;
  color: var(--text);
  font-weight: 760;
  background: rgba(255, 255, 255, 0.045);
}

.comment-form label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.comment-form textarea {
  width: 100%;
  min-height: 96px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 12px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.12);
}

.comment-form textarea:focus {
  outline: 1px solid var(--line-strong);
}

.comments-section {
  min-height: 0;
}

.comments-section h2 {
  margin: 0 0 12px;
  font-size: 18px;
}

.comment-list,
.admin-comment-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.comment-item {
  border: 1px solid var(--line);
  border-left-color: rgba(185, 217, 74, 0.24);
  border-radius: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.026);
}

.comment-header {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}

.comment-time,
.admin-comment-time {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  min-height: 32px;
  margin-bottom: 8px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 5px 8px;
  color: #c8d39f;
  font: inherit;
  font-weight: 760;
  cursor: pointer;
  text-decoration: none;
  background: rgba(185, 217, 74, 0.08);
}

.timeline-comment-form {
  margin: 0;
  padding: 14px;
}

.timeline-comment-compose {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px;
  gap: 10px;
  align-items: stretch;
}

.timeline-comment-compose textarea {
  min-height: 84px;
}

.timeline-comment-compose button {
  border-color: var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.timeline-comment-compose button:hover {
  border-color: var(--line-strong);
  background: rgba(185, 217, 74, 0.14);
}

.review-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.review-tabs button {
  min-height: 42px;
  border: 0;
  border-radius: 0;
  padding: 0 8px;
  color: var(--muted);
  background: transparent;
  font-size: 14px;
}

.review-tabs button.active {
  color: var(--text);
  box-shadow: inset 0 -2px 0 #9caf5b;
}

.review-tabs span {
  display: inline-grid;
  min-width: 22px;
  min-height: 22px;
  place-items: center;
  margin-left: 4px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
  font-size: 12px;
}

.review-tab-panel {
  min-height: 0;
}

.file-info-list {
  display: grid;
  gap: 0;
  margin: 0;
}

.file-info-list > div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  padding: 13px 2px;
  border-bottom: 1px solid var(--line);
}

.file-info-list dt {
  color: var(--muted);
  font-size: 13px;
}

.file-info-list dd {
  margin: 0;
  color: var(--text);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.comment-header .comment-time {
  margin-bottom: 0;
}

.comment-header .pill {
  min-height: 32px;
}

.comment-state {
  border-radius: 999px;
  padding: 5px 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  font-size: 11px;
  font-weight: 720;
  white-space: nowrap;
}

.comment-state.is-fixed {
  color: #92ead9;
  background: rgba(93, 214, 190, 0.1);
}

.comment-status-actions {
  display: inline-flex;
  gap: 3px;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 3px;
  flex-wrap: wrap;
  background: rgba(0, 0, 0, 0.1);
}

.comment-status-actions button {
  min-height: 32px;
  border: 0;
  border-radius: 7px;
  padding: 0 10px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  font-size: 12px;
}

.comment-status-actions button.active {
  color: #d7e997;
  background: rgba(185, 217, 74, 0.08);
}

.comment-item.is-unfinished {
  border-color: rgba(216, 182, 76, 0.5);
  background: linear-gradient(180deg, rgba(216, 182, 76, 0.055), rgba(255, 255, 255, 0.022));
}

.comment-item.is-unfinished .comment-state {
  color: #ebcf75;
  background: rgba(216, 182, 76, 0.11);
}

.comment-item.is-fixed {
  border-color: rgba(93, 214, 190, 0.28);
}

.comment-item.is-fixed .comment-status-actions button.active {
  color: #92ead9;
  background: rgba(93, 214, 190, 0.1);
}

.feedback-finish-button {
  border-color: rgba(93, 214, 190, 0.25);
  color: #92ead9;
  background: rgba(93, 214, 190, 0.08);
}

.reply-toggle {
  min-height: 32px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 0 11px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  font-size: 13px;
  font-weight: 700;
}

.comment-item p {
  margin: 0;
  line-height: 1.55;
}

.reply-list {
  display: grid;
  gap: 8px;
  margin: 12px 0 0 16px;
  padding: 0 0 0 14px;
  border-left: 1px solid var(--line);
  list-style: none;
}

.reply-list li {
  border-radius: 10px;
  padding: 9px 10px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  line-height: 1.5;
}

.reply-form {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.reply-form textarea {
  width: 100%;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.12);
}

.reply-form button {
  justify-self: end;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 9px;
  font-size: 13px;
}

.admin-shell {
  place-items: start center;
}

.admin-panel {
  width: min(1320px, 100%);
  border: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.admin-video-group {
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.026);
}

.admin-video-group h2 {
  margin: 0 0 14px;
  color: var(--text);
  font-size: 20px;
  line-height: 1.35;
}

.admin-group-comments {
  display: grid;
  gap: 0;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.admin-group-comments li {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 14px;
  align-items: start;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.admin-video-group a {
  color: var(--accent);
  font-weight: 750;
}

@media (max-width: 1100px) {
  .library-layout,
  .project-layout,
  .admin-layout,
  .review-frame {
    grid-template-columns: 1fr;
  }

  .project-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-video-list {
    grid-template-columns: 1fr;
  }

  .focus-strip .focus-list {
    grid-template-columns: 1fr;
  }

  .panel-heading {
    grid-template-columns: 1fr;
  }

  .task-compose {
    grid-template-columns: minmax(220px, 1fr) 128px 86px 44px;
  }

  .task-compose input[type="date"] {
    grid-column: 1 / -1;
  }

  .manual-task .work-task-main {
    grid-template-columns: minmax(104px, 132px) minmax(0, 1fr);
  }

  .manual-task .task-controls {
    grid-column: 2;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .timeline-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .delivery-form {
    grid-template-columns: 110px minmax(0, 1fr);
  }

  .delivery-form button {
    grid-column: auto;
  }
}

@media (max-width: 720px) {
  .app-shell,
  .library-shell,
  .shell,
  .review-shell {
    padding: 18px;
  }

  .topbar,
  .library-header {
    grid-template-columns: 1fr;
  }

  .review-topbar {
    display: grid;
    grid-template-columns: 1fr auto;
  }

  .review-topbar .brand {
    grid-column: 1 / -1;
  }

  .review-topbar h1 {
    font-size: 16px;
  }

  .review-stage,
  .review-comments {
    padding: 12px;
  }

  .review-comments {
    min-height: auto;
  }

  .topbar-search,
  .topbar-actions {
    justify-self: stretch;
  }

  .nav-pills {
    overflow-x: auto;
  }

  .page-hero,
  .project-detail-title {
    grid-template-columns: 1fr;
  }

  .project-thumb {
    width: 100%;
  }

  .project-list,
  .project-video-list {
    grid-template-columns: 1fr;
  }

  .task-compose {
    grid-template-columns: 1fr 44px;
  }

  .task-compose select {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .task-compose .version-field {
    grid-column: 1;
    grid-row: 3;
  }

  .task-compose input[type="date"] {
    grid-column: 1 / -1;
    grid-row: 4;
  }

  .task-compose button {
    grid-column: 2;
    grid-row: 1;
  }

  .manual-task .work-task-main,
  .work-task-main {
    grid-template-columns: minmax(92px, 118px) minmax(0, 1fr);
  }

  .feedback-add-form {
    grid-column: 2;
    grid-template-columns: minmax(0, 1fr) auto;
    width: 100%;
  }

  .timeline-track {
    grid-template-columns: 1fr;
  }

  .timeline-point::before {
    display: none;
  }

  .work-task-arrow,
  .task-controls {
    grid-column: 2;
    justify-self: start;
  }

  .task-controls {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .toast {
    right: 18px;
    bottom: 18px;
  }

  .project-header-actions {
    align-items: stretch;
    flex-direction: column;
  }

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

  .delivery-form > textarea,
  .delivery-saved-copy,
  .delivery-actions {
    grid-column: 1;
  }

  .delivery-form button {
    width: 100%;
  }

  .timeline-comment-compose {
    grid-template-columns: 1fr;
  }

  .timeline-comment-compose button {
    min-height: 42px;
  }

  .completed-project-list li {
    grid-template-columns: 1fr;
  }
}
