:root {
  color-scheme: light;
  --bg: #f6f5f2;
  --panel: #ffffff;
  --panel-soft: #fbfaf8;
  --line: #e7e5e1;
  --text: #171717;
  --muted: #6b7280;
  --accent: #2563ff;
  --accent-soft: rgba(37, 99, 255, 0.1);
  --success: #0f766e;
  --success-soft: rgba(15, 118, 110, 0.12);
  --warning: #d97706;
  --shadow: 0 18px 48px rgba(23, 23, 23, 0.08);
  --radius-panel: 20px;
  --radius-card: 16px;
  --radius-control: 14px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: "PingFang SC", "SF Pro Display", -apple-system, BlinkMacSystemFont, sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
  cursor: not-allowed;
}

#app {
  min-height: 100vh;
}

.v2-body {
  min-height: 100vh;
}

.v2-app {
  min-height: 100vh;
  padding: 24px;
}

.service-toolbar,
.booting-screen,
.projects-page {
  max-width: 1440px;
  margin: 0 auto;
}

.service-toolbar {
  min-height: 72px;
  margin-bottom: 16px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow);
}

.service-toolbar--home {
  position: relative;
  z-index: 3;
  min-height: 112px;
  margin-bottom: 0;
  padding: 12px 8px 28px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.service-toolbar--home .service-toolbar-group--right {
  flex-wrap: wrap;
}

.home-brand {
  display: grid;
  gap: 6px;
}

.home-brand--button {
  padding: 0;
  color: inherit;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  transition: opacity 160ms ease, transform 160ms ease;
}

.home-brand--button:hover {
  opacity: 0.76;
  transform: translateY(-1px);
}

.home-brand--button:focus-visible {
  outline: 2px solid #1c1f23;
  outline-offset: 5px;
}

.home-brand-title {
  color: #111315;
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-size: clamp(36px, 3.2vw, 52px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: 0.06em;
}

.home-brand-subtitle {
  color: #858991;
  font-family: "Times New Roman", serif;
  font-size: 20px;
  letter-spacing: 0.08em;
}

.service-toolbar:not(.service-toolbar--home) .service-toolbar-group--brand {
  gap: 20px;
}

.service-toolbar:not(.service-toolbar--home) .home-brand {
  gap: 2px;
}

.service-toolbar:not(.service-toolbar--home) .home-brand-title {
  font-size: 24px;
}

.service-toolbar:not(.service-toolbar--home) .home-brand-subtitle {
  font-size: 12px;
}

.service-page-context {
  padding-left: 20px;
  color: #4d5157;
  border-left: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.5;
}

.home-page {
  isolation: isolate;
  position: relative;
  max-width: 1440px;
  min-height: max(560px, calc(100vh - 160px));
  margin: 0 auto;
  padding: clamp(48px, 8vh, 110px) clamp(36px, 7vw, 108px) clamp(28px, 4vh, 52px);
  display: grid;
  grid-template-rows: minmax(276px, 1fr) auto;
  gap: clamp(28px, 5vh, 64px);
  overflow: hidden;
  border: 1px solid rgba(25, 28, 32, 0.06);
  border-radius: 28px;
  background: linear-gradient(145deg, #f5f5f4 0%, #e4e6e7 100%);
}

.home-page::before {
  content: "";
  position: absolute;
  z-index: -3;
  inset: 0;
  background:
    radial-gradient(circle at 16% 22%, rgba(255, 255, 255, 0.7), transparent 42%),
    radial-gradient(circle at 86% 72%, rgba(255, 255, 255, 0.22), transparent 36%);
  pointer-events: none;
}

.home-page::after {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.12), transparent 58%);
  pointer-events: none;
}

.home-curve-scene {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.home-curve-surface {
  stroke: none;
}

.home-curve-surface--air {
  fill: #fefefd;
}

.home-curve-surface--upper {
  fill: #fbfbfa;
}

.home-curve-surface--lower {
  fill: #e1e3e4;
}

.home-review-workbench {
  align-self: center;
  justify-self: start;
  width: min(720px, 100%);
  margin-left: clamp(8px, 5vw, 72px);
  display: grid;
  grid-template-columns: minmax(220px, 1.45fr) repeat(2, minmax(150px, 1fr));
  align-items: stretch;
  gap: 10px;
}

.home-review-heading {
  grid-column: 1 / -1;
  margin: 0 0 2px;
  font-family: "Songti SC", "STSong", "SimSun", serif;
  color: #555b61;
  font-size: 15px;
  letter-spacing: 0.16em;
}

.home-review-summary {
  min-width: 0;
  padding: 16px 18px;
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 8px;
  color: #121416;
  text-align: left;
  background: rgba(255, 255, 255, 0.38);
  border: 1px solid rgba(30, 33, 37, 0.12);
  border-radius: 16px;
  transition: background-color 160ms ease, transform 160ms ease;
}

.home-review-summary:hover {
  background: rgba(255, 255, 255, 0.72);
  transform: translateY(-2px);
}

.home-review-summary--primary {
  min-height: 190px;
  padding: 20px 22px;
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(30, 33, 37, 0.2);
}

.home-review-summary:focus-visible,
.home-feature-card:focus-visible {
  outline: 2px solid #1c1f23;
  outline-offset: 4px;
}

.home-review-label {
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-size: clamp(18px, 1.7vw, 24px);
  letter-spacing: 0.08em;
}

.home-review-number {
  font-family: "Times New Roman", serif;
  font-size: clamp(54px, 5.5vw, 78px);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.06em;
}

.home-review-summary--primary .home-review-number {
  font-size: clamp(108px, 10vw, 156px);
}

.home-review-description {
  color: #73777c;
  font-size: 16px;
  line-height: 1.7;
}

.home-navigation {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  transform: translateY(-10px);
}

.home-feature-card {
  min-width: 0;
  min-height: clamp(142px, 18vh, 176px);
  padding: clamp(24px, 3vw, 38px);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(20px, 2.4vw, 34px);
  color: #151719;
  text-align: left;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(247, 247, 247, 0.94));
  border: 1px solid rgba(30, 33, 37, 0.08);
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(28, 31, 35, 0.085);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.home-feature-card:hover {
  border-color: rgba(30, 33, 37, 0.17);
  box-shadow: 0 21px 48px rgba(28, 31, 35, 0.12);
  transform: translateY(-4px);
}

.home-feature-icon {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  color: #111315;
  border-radius: 50%;
  background: linear-gradient(145deg, #f1f1f1, #e7e8e9);
}

.home-feature-icon svg {
  width: 42px;
  height: 42px;
}

.home-feature-copy {
  min-width: 0;
  display: grid;
  gap: 12px;
}

.home-feature-title {
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-size: clamp(25px, 2.2vw, 34px);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.home-feature-description {
  color: #72767d;
  font-size: 15px;
  line-height: 1.65;
}

.home-feature-arrow {
  font-family: "Times New Roman", serif;
  font-size: 44px;
  font-weight: 300;
  line-height: 1;
  transition: transform 160ms ease;
}

.home-feature-card:hover .home-feature-arrow {
  transform: translateX(5px);
}

.booting-screen {
  min-height: calc(100vh - 48px);
  display: grid;
  place-items: center;
}

.booting-card,
.panel,
.project-card,
.upload-drawer-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow);
}

.booting-card {
  width: min(520px, 100%);
  padding: 48px;
}

.booting-card h1,
.projects-header h1,
.project-heading h1 {
  margin: 0;
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.booting-card p,
.projects-header p,
.project-heading p,
.panel-header p,
.muted-text {
  margin: 0;
  color: var(--muted);
}

.flash-banner {
  max-width: 1440px;
  margin: 0 auto 16px;
  padding: 14px 18px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.flash-banner--success {
  background: rgba(15, 118, 110, 0.08);
  border-color: rgba(15, 118, 110, 0.2);
}

.flash-banner--error {
  background: rgba(185, 28, 28, 0.08);
  border-color: rgba(185, 28, 28, 0.18);
}

.text-button,
.secondary-button,
.primary-button,
.control-button,
.filter-pill,
.tool-button,
.timecode-button,
.approve-button {
  border: none;
  border-radius: var(--radius-control);
  transition: 160ms ease;
}

.text-button,
.secondary-button,
.control-button,
.tool-button {
  background: var(--panel-soft);
  color: var(--text);
  border: 1px solid var(--line);
}

.secondary-button,
.primary-button,
.approve-button,
.control-button {
  min-height: 44px;
  padding: 0 16px;
}

.secondary-button:hover,
.control-button:hover,
.tool-button:hover,
.timecode-button:hover,
.filter-pill:hover {
  background: #f3f4f6;
}

.secondary-button--small {
  min-height: 36px;
  padding: 0 14px;
}

.primary-button,
.approve-button {
  background: var(--accent);
  color: #ffffff;
}

.primary-button:hover,
.approve-button:hover {
  background: #1f56de;
}

.primary-button:disabled,
.approve-button:disabled {
  background: #cbd5e1;
  color: #ffffff;
}

.projects-page {
  display: grid;
  gap: 24px;
}

.v2-people-page {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  gap: 20px;
}

.v2-people-page .page-header,
.v2-people-page .person-row,
.v2-people-page .person-title-line,
.v2-people-page .person-meta,
.v2-people-page .person-actions,
.v2-people-page .form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.v2-people-page .page-header,
.v2-people-page .person-row {
  justify-content: space-between;
}

.v2-people-page .page-header,
.v2-people-page .card,
.v2-people-page .form-card,
.v2-people-page .list-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.v2-people-page .page-title,
.v2-people-page .card-title,
.v2-people-page .form-title,
.v2-people-page .person-name {
  margin: 0;
}

.v2-people-page .page-title {
  font-size: 30px;
  letter-spacing: -0.03em;
}

.v2-people-page .page-desc,
.v2-people-page .card-text,
.v2-people-page .form-desc,
.v2-people-page .person-subline {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.v2-people-page .card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.v2-people-page .card-title,
.v2-people-page .form-title {
  font-size: 18px;
}

.v2-people-page .inline-note,
.v2-people-page .empty-state {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--panel-soft);
  color: var(--muted);
}

.v2-people-page .form-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.v2-people-page .form-field {
  display: block;
}

.v2-people-page .text-input {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--panel);
  color: var(--text);
}

.v2-people-page .full-span {
  grid-column: 1 / -1;
}

.v2-people-page .people-list {
  margin-top: 16px;
  display: grid;
}

.v2-people-page .person-row {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.v2-people-page .person-row:first-child {
  border-top: 0;
}

.v2-people-page .person-main {
  min-width: 0;
}

.v2-people-page .person-name {
  font-size: 17px;
}

.v2-people-page .person-meta {
  margin-top: 8px;
  flex-wrap: wrap;
}

.v2-people-page .person-subline {
  font-size: 12px;
  overflow-wrap: anywhere;
}

.v2-people-page .account-summary {
  margin-top: 12px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.v2-people-page .account-summary-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.v2-people-page .account-state,
.v2-people-page .account-username,
.v2-people-page .account-role {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: #eef2f7;
  color: #475569;
  font-size: 12px;
  font-weight: 650;
}

.v2-people-page .account-state--enabled {
  background: #dcfce7;
  color: #166534;
}

.v2-people-page .account-state--pending_password_change {
  background: #fef3c7;
  color: #92400e;
}

.v2-people-page .account-state--disabled,
.v2-people-page .account-state--provisioning_blocked {
  background: #f1f5f9;
  color: #64748b;
}

.v2-people-page .account-state--invalid {
  background: #fee2e2;
  color: #991b1b;
}

.v2-people-page .account-identity-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.v2-people-page .account-identity-grid .detail-item {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--panel-soft);
}

.v2-people-page .account-form .inline-note {
  grid-column: 1 / -1;
}

.v2-people-page .account-action {
  white-space: nowrap;
}

.v2-people-page .meta-tag,
.v2-people-page .status-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--panel-soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.v2-people-page .meta-tag.accent,
.v2-people-page .status-tag {
  background: var(--accent-soft);
  color: var(--accent);
}

.v2-people-page .status-tag.disabled {
  background: #f3f4f6;
  color: var(--muted);
}

.v2-people-page .button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--panel-soft);
  color: var(--text);
}

.v2-people-page .button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.v2-people-page .button.danger {
  color: #b91c1c;
}

.v2-people-page .button:disabled {
  opacity: 0.55;
}

.projects-header {
  min-height: 140px;
  padding: 32px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
}

.projects-header-actions,
.service-toolbar-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.service-toolbar-group--right {
  margin-left: auto;
  flex-wrap: wrap;
  justify-content: flex-end;
}

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

.notification-trigger {
  position: relative;
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  color: #34383e;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.notification-trigger:hover {
  border-color: #aeb3bb;
  box-shadow: 0 8px 20px rgba(23, 23, 23, 0.08);
  transform: translateY(-1px);
}

.notification-trigger:focus-visible,
.notification-panel-close:focus-visible,
.notification-item:focus-visible {
  outline: 2px solid rgba(37, 99, 255, 0.42);
  outline-offset: 2px;
}

.notification-bell-icon {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.notification-badge {
  position: absolute;
  top: -6px;
  right: -7px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: #c9362b;
  border: 2px solid var(--panel);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.notification-panel {
  position: absolute;
  z-index: 40;
  top: calc(100% + 12px);
  right: 0;
  width: min(390px, calc(100vw - 32px));
  max-height: min(640px, calc(100vh - 120px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 24px 64px rgba(23, 23, 23, 0.18);
}

.notification-panel-header {
  padding: 17px 18px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
}

.notification-panel-header > div {
  display: grid;
  gap: 2px;
}

.notification-panel-header strong {
  font-size: 17px;
}

.notification-panel-header span,
.notification-item-body span,
.notification-item-body time,
.notification-item-status {
  color: var(--muted);
  font-size: 12px;
}

.notification-panel-close {
  padding: 6px 8px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}

.notification-panel-error {
  margin: 12px 14px 0;
  padding: 10px 12px;
  color: #9f2d24;
  background: #fff1ef;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.45;
}

.notification-list {
  flex: 1 1 auto;
  min-height: 120px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.notification-item {
  width: 100%;
  min-height: 88px;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
  color: inherit;
  text-align: left;
  background: #fff;
  border: 0;
  border-bottom: 1px solid #ecebe8;
  cursor: pointer;
}

.notification-item:hover {
  background: #f8f8f6;
}

.notification-item:disabled {
  cursor: wait;
  opacity: 0.72;
}

.notification-item--unread {
  background: #f5f8ff;
}

.notification-item-marker {
  width: 7px;
  height: 7px;
  margin-top: 7px;
  background: transparent;
  border-radius: 50%;
}

.notification-item--unread .notification-item-marker {
  background: #c9362b;
}

.notification-item-body {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.notification-item-body strong {
  font-size: 14px;
  line-height: 1.4;
}

.notification-item-body span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notification-item-status {
  padding-top: 3px;
  white-space: nowrap;
}

.notification-empty {
  margin: 0;
  padding: 44px 20px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.service-toolbar-title {
  font-size: 16px;
  letter-spacing: -0.02em;
}

.connection-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.connection-pill--connected {
  background: var(--success-soft);
  color: var(--success);
}

.connection-pill--disconnected {
  background: rgba(185, 28, 28, 0.08);
  color: #b91c1c;
}

.service-meta,
.page-helper-text,
.project-people,
.opinion-action-note {
  color: var(--muted);
  line-height: 1.6;
}

.service-meta,
.page-helper-text,
.project-people,
.opinion-action-note,
.operator-select span {
  font-size: 14px;
}

.page-helper-text {
  margin: -8px 0 0;
  padding: 0 4px;
}

.project-status-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px;
  width: fit-content;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}

.project-review-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 2px 4px;
}

.project-review-tab {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.project-review-tab:hover,
.project-review-tab:focus-visible {
  border-color: var(--line);
  color: var(--ink);
}

.project-review-tab--active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

.project-review-pill {
  font-weight: 700;
}

.project-review-pill--pending {
  background: #fff3db;
  color: #98550d;
}

.project-review-pill--changes {
  background: #fff0e8;
  color: #ad4c21;
}

.project-review-pill--approved {
  background: #e8f7ed;
  color: #25734a;
}

.project-review-pill--historical {
  background: #eff1f3;
  color: #687078;
}

.project-review-pill--unsubmitted {
  background: #f1f3f5;
  color: #687078;
}

.project-task-pill {
  min-height: 38px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 800;
}

.project-task-pill--pending {
  background: #fff3db;
  color: #98550d;
}

.project-task-pill--changes {
  background: #fff0e8;
  color: #ad4c21;
}

.project-task-pill--approved {
  background: #e8f7ed;
  color: #25734a;
}

.project-task-pill--historical,
.project-task-pill--unsubmitted {
  background: #eff1f3;
  color: #687078;
}

.project-lifecycle-pill {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  font-weight: 500;
}

.project-status-tab {
  min-height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.project-status-tab--active {
  background: var(--accent-soft);
  color: var(--accent);
}

.projects-hint {
  align-self: flex-start;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
}

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

.project-card {
  padding: 28px;
  display: grid;
  gap: 18px;
}

.project-card-heading {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.project-card-menu {
  position: relative;
  flex: 0 0 auto;
}

.project-card-menu summary {
  min-height: 36px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-soft);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.project-card-menu summary::-webkit-details-marker {
  display: none;
}

.project-card-menu-actions {
  position: absolute;
  z-index: 10;
  top: calc(100% + 8px);
  right: 0;
  min-width: 148px;
  padding: 6px;
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.12);
}

.project-card-menu-actions button {
  min-height: 36px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}

.project-card-menu-actions button:hover,
.project-card-menu-actions button:focus-visible {
  background: var(--panel-soft);
}

.project-card-menu-actions button:disabled {
  cursor: wait;
  opacity: 0.5;
}

.project-card h2,
.panel-header h2,
.drawer-header h2 {
  margin: 0;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.project-meta,
.project-card-footer,
.panel-header,
.review-topbar,
.timeline-header,
.timeline-labels,
.composer-toolbar,
.composer-actions,
.opinion-top,
.opinion-actions,
.drawer-header,
.drawer-footer,
.approve-confirm-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.project-meta {
  flex-wrap: wrap;
  justify-content: flex-start;
}

.meta-pill,
.status-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}

.meta-pill {
  background: #f3f4f6;
  color: var(--muted);
}

.project-note,
.opinion-content,
.approve-note,
.field-help,
.opinion-source,
.source-note {
  margin: 0;
  line-height: 1.6;
  color: var(--text);
}

.project-updated,
.field-help,
.opinion-source,
.source-note {
  color: var(--muted);
  font-size: 14px;
}

.project-people {
  margin: 0;
}

.review-page {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  gap: 24px;
}

.review-topbar {
  min-height: 72px;
  padding: 0 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow);
}

.topbar-left,
.topbar-right,
.project-heading,
.version-select,
.operator-select,
.player-group,
.tool-group,
.color-group,
.filter-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.project-heading {
  align-items: flex-start;
  flex-direction: column;
  gap: 6px;
}

.version-submission-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.version-submission-meta span {
  white-space: nowrap;
}

.version-review-detail {
  color: var(--muted);
}

.version-review-status {
  border: 1px solid transparent;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.version-review-status--pending {
  color: #9a4d0a;
  background: #fff2e2;
  border-color: #f5cf9f;
}

.version-review-status--changes {
  color: #815800;
  background: #fff8d8;
  border-color: #ead38c;
}

.version-review-status--approved {
  color: #24613c;
  background: #e9f6ed;
  border-color: #b9e0c4;
}

.version-review-status--historical {
  color: #70757b;
  background: #f2f3f4;
  border-color: #d8dbde;
}

.version-select {
  position: relative;
  padding: 10px 14px;
  border-radius: var(--radius-control);
  border: 1px solid var(--line);
  background: var(--panel-soft);
}

.operator-select {
  padding: 8px 12px;
  border-radius: var(--radius-control);
  border: 1px solid var(--line);
  background: var(--panel-soft);
}

.version-select span,
.field-label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.operator-select span {
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
}

.version-select select,
.operator-select select,
.field input,
.field select,
.field textarea,
.composer-input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: #ffffff;
  color: var(--text);
}

.version-select select {
  min-width: 120px;
  border: none;
  background: transparent;
  outline: none;
}

.version-status-menu {
  position: relative;
  min-width: 214px;
}

.version-status-menu summary {
  min-height: 38px;
  padding: 0 2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--text);
  cursor: pointer;
  list-style: none;
}

.version-status-menu summary::-webkit-details-marker {
  display: none;
}

.version-status-menu summary::after {
  content: "⌄";
  margin-left: 2px;
  color: var(--muted);
  font-size: 15px;
}

.version-status-menu[open] summary::after {
  transform: rotate(180deg);
}

.version-status-menu--empty summary {
  cursor: default;
}

.version-status-menu--empty summary::after {
  display: none;
}

.version-status-options {
  position: absolute;
  z-index: 20;
  top: calc(100% + 10px);
  right: -14px;
  width: min(332px, calc(100vw - 48px));
  max-height: 320px;
  padding: 8px;
  display: grid;
  gap: 4px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: 0 16px 32px rgba(17, 24, 39, 0.14);
}

.version-status-option {
  min-height: 42px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.version-status-option:hover,
.version-status-option:focus-visible {
  background: var(--panel-soft);
  outline: none;
}

.version-status-option--selected {
  border-color: var(--line);
  background: #ffffff;
}

.version-status-option .version-review-status {
  flex-shrink: 0;
}

.operator-select select {
  min-width: 220px;
  min-height: 40px;
  padding: 0 10px;
  outline: none;
}

.review-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 384px;
  gap: 24px;
  align-items: start;
}

.video-column {
  display: grid;
  gap: 16px;
}

.video-stage,
.player-bar,
.composer-panel,
.opinions-panel {
  padding: 20px;
}

.panel-fade-in {
  animation: panelFadeIn 150ms ease;
}

.video-frame {
  position: relative;
  width: 100%;
  height: clamp(360px, 58vh, 680px);
  min-height: 0;
  max-height: 680px;
  border-radius: 18px;
  background: #0f1115;
  overflow: hidden;
  display: grid;
  place-items: center;
  margin-top: 20px;
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.video-frame--seeking {
  animation: framePulse 300ms ease;
}

.stage-video {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  background: #0f1115;
}

.annotation-layer {
  position: absolute;
  z-index: 1;
  display: block;
  overflow: visible;
  pointer-events: none;
  touch-action: none;
  user-select: none;
}

.annotation-layer--interactive {
  pointer-events: auto;
  cursor: crosshair;
}

.annotation-item {
  pointer-events: visiblePainted;
  cursor: pointer;
}

.annotation-item--preview {
  pointer-events: none;
  opacity: 0.78;
}

.annotation-item--saved,
.annotation-item--saved * {
  pointer-events: none;
}

.annotation-item--saved {
  cursor: default;
  opacity: 0.84;
}

.annotation-shape {
  stroke-linecap: round;
  stroke-linejoin: round;
}

.annotation-rectangle,
.annotation-arrow-line,
.annotation-pen-line {
  stroke-width: 4;
}

.annotation-pen-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.annotation-pen-hit-area {
  stroke-width: 14;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: stroke;
}

.annotation-pen-hit-area--dot {
  pointer-events: all;
}

.annotation-arrow-head {
  stroke-width: 1;
}

.annotation-text {
  font-size: 22px;
  font-weight: 700;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}

.annotation-item--white .annotation-shape {
  filter: drop-shadow(0 0 2px rgba(15, 17, 21, 0.95));
}

.annotation-item--white .annotation-text {
  stroke: rgba(15, 17, 21, 0.9);
  stroke-width: 4px;
  paint-order: stroke fill;
}

.annotation-selection-box {
  fill: none;
  stroke: rgba(238, 239, 240, 0.95);
  stroke-width: 2px;
  stroke-dasharray: 6 5;
  pointer-events: none;
  filter: drop-shadow(0 0 1px rgba(18, 20, 23, 0.92));
}

.annotation-text-input {
  position: absolute;
  z-index: 3;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 10px;
  outline: none;
  color: #17191c;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.annotation-text-input:focus {
  border-color: #ffffff;
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.28),
    0 0 0 3px rgba(255, 255, 255, 0.24);
}

.video-overlay {
  pointer-events: none;
  position: absolute;
  z-index: 2;
  inset: 16px 16px auto 16px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.overlay-version,
.overlay-hint {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  color: #ffffff;
  font-size: 13px;
}

.source-note {
  padding: 0 24px 24px;
}

.empty-state {
  width: min(420px, 100%);
  padding: 32px;
  display: grid;
  gap: 12px;
  text-align: center;
}

.empty-state h3 {
  margin: 0;
  font-size: 22px;
}

.empty-state p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.timeline-panel {
  padding: 0 8px;
  display: grid;
  gap: 12px;
}

.timeline-track {
  position: relative;
  min-height: 28px;
  border-radius: 999px;
  background: #eae8e3;
  overflow: visible;
  cursor: ew-resize;
  user-select: none;
  touch-action: none;
}

.timeline-track--dragging {
  cursor: grabbing;
}

.timeline-progress {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  border-radius: 999px;
  background: rgba(37, 99, 255, 0.22);
  pointer-events: none;
}

.timeline-marker {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: #ffffff;
  color: var(--accent);
  box-shadow: 0 4px 12px rgba(23, 23, 23, 0.1);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
  cursor: inherit;
  user-select: none;
  touch-action: none;
}

.timeline-marker--active {
  background: var(--accent);
  color: #ffffff;
}

.timeline-marker:hover {
  transform: translate(-50%, -50%) scale(1.08);
  box-shadow: 0 8px 20px rgba(23, 23, 23, 0.14);
}

.timeline-marker--pulse {
  animation: markerPulse 300ms ease;
}

.timeline-tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 12px);
  transform: translateX(-50%) translateY(4px);
  min-width: 140px;
  max-width: 220px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(23, 23, 23, 0.92);
  color: #ffffff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 140ms ease, transform 140ms ease;
  display: grid;
  gap: 4px;
  box-shadow: 0 10px 24px rgba(23, 23, 23, 0.18);
}

.timeline-tooltip strong {
  font-size: 13px;
}

.timeline-tooltip small {
  font-size: 12px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.78);
}

.timeline-marker:hover .timeline-tooltip,
.timeline-marker:focus-visible .timeline-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.timeline-labels {
  font-size: 14px;
  color: var(--muted);
}

.player-bar {
  min-height: 52px;
}

.player-group--right {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.inline-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

.inline-control input[type="range"] {
  width: 120px;
}

.inline-control select {
  min-width: 88px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #ffffff;
}

.composer-panel {
  min-height: 128px;
}

.tool-group,
.color-group,
.annotation-draft-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.tool-button,
.filter-pill {
  min-height: 40px;
  padding: 0 14px;
}

.tool-button--active,
.filter-pill--active {
  background: var(--accent);
  color: #ffffff;
  border-color: transparent;
}

.color-swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid rgba(17, 24, 39, 0.18);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.color-swatch--active {
  border-color: #111827;
  box-shadow:
    0 0 0 2px #ffffff,
    0 0 0 4px #55595f;
}

.comment-time {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.composer-form {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.composer-input,
.field textarea,
.field input {
  min-height: 112px;
  padding: 14px 16px;
  resize: vertical;
  outline: none;
  line-height: 1.65;
}

.field input {
  min-height: 48px;
}

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

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #ffffff;
}

.directory-person-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.directory-person-copy strong {
  color: var(--text);
  font-size: 14px;
}

.directory-person-copy small {
  color: var(--muted);
  font-size: 12px;
}

.project-owner-help {
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--panel-soft);
}

.directory-error-state,
.historical-participants {
  display: grid;
  gap: 10px;
}

.directory-error-state {
  justify-items: start;
}

.historical-participants {
  margin-top: 4px;
}

.historical-participant-row {
  min-height: 44px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  color: var(--muted);
  background: var(--panel-soft);
  font-size: 14px;
}

.composer-input:focus,
.field input:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 255, 0.12);
}

.opinions-panel {
  min-height: calc(100vh - 120px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 12px;
  position: sticky;
  top: 24px;
}

.opinions-header {
  align-items: flex-start;
}

.opinions-list {
  min-height: 0;
  overflow: auto;
  display: grid;
  gap: 8px;
  padding-right: 4px;
  align-content: start;
}

.opinion-version-group {
  display: grid;
  gap: 8px;
  align-content: start;
}

.opinion-version-header {
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f7f7f5;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  position: sticky;
  top: 0;
  z-index: 1;
}

button.opinion-version-header {
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease;
}

button.opinion-version-header:hover {
  background: #f1f1ef;
  border-color: #cfd0d0;
}

button.opinion-version-header:focus-visible {
  outline: 2px solid rgba(31, 33, 36, 0.42);
  outline-offset: 2px;
}

.opinion-version-group--current .opinion-version-header {
  background: #ededeb;
  border-color: #c8c9c8;
}

.opinion-version-heading,
.opinion-version-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.opinion-version-heading strong {
  font-size: 14px;
}

.opinion-version-current {
  padding: 2px 7px;
  border-radius: 999px;
  background: #202225;
  color: #ffffff;
  font-size: 11px;
  font-weight: 650;
}

.opinion-version-meta {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.opinion-version-toggle {
  min-width: 28px;
  color: #34373b;
  font-weight: 650;
}

.opinion-version-body {
  display: grid;
  gap: 8px;
}

.opinion-version-body[hidden] {
  display: none;
}

.opinion-version-empty {
  margin: 0;
  padding: 14px 10px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.opinion-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px;
  border-radius: var(--radius-card);
  border: 1px solid var(--line);
  background: var(--panel-soft);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.opinion-read-anchor {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.opinion-read-anchor--end {
  top: auto;
  bottom: 0;
}

.opinion-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(23, 23, 23, 0.06);
}

.opinion-card--done {
  border-color: rgba(15, 118, 110, 0.2);
  background: #fafcfb;
}

.opinion-card--done .opinion-content,
.opinion-card--done .opinion-meta {
  color: #7b8580;
}

.opinion-card--active {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 255, 0.08);
}

.opinion-card--pulse {
  animation: opinionPulse 300ms ease;
}

.opinion-card--new {
  animation: opinionNewComment 1200ms ease;
  border-left: 3px solid var(--accent);
  background: rgba(37, 99, 255, 0.05);
}

.opinion-card:focus-visible {
  outline: 2px solid rgba(37, 99, 255, 0.42);
  outline-offset: 2px;
}

.opinion-thumbnail-button {
  display: block;
  flex: 0 0 64px;
  width: 64px;
  height: 48px;
  padding: 0;
  border: none;
  overflow: hidden;
  border-radius: 10px;
  background: transparent;
  transition: transform 180ms ease;
}

.opinion-thumbnail-button--pulse {
  animation: thumbPulse 300ms ease;
}

.opinion-thumbnail {
  display: block;
  width: 64px;
  height: 48px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.opinion-card:hover .opinion-thumbnail,
.opinion-card--active .opinion-thumbnail {
  transform: scale(1.02);
  box-shadow: 0 10px 20px rgba(23, 23, 23, 0.1);
}

.opinion-body {
  display: grid;
  flex: 1 1 auto;
  min-width: 0;
  gap: 5px;
  align-content: start;
}

.opinion-top {
  gap: 10px;
  justify-content: space-between;
}

.opinion-thumbnail-status {
  color: var(--muted);
  font-size: 12px;
}

.opinion-content {
  font-size: 14px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.opinion-card--active .opinion-content {
  -webkit-line-clamp: unset;
  display: block;
}

.opinion-meta {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.opinion-card .status-chip {
  min-height: 26px;
  padding: 0 9px;
  font-size: 12px;
}

.production-reply {
  display: grid;
  gap: 6px;
  margin-top: 4px;
  padding: 8px;
  border-radius: 8px;
  background: rgba(37, 99, 255, 0.06);
}

.production-reply-title,
.production-reply-text,
.production-reply-meta {
  margin: 0;
}

.production-reply-title {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.production-reply-text {
  font-size: 13px;
  line-height: 1.45;
  white-space: pre-wrap;
}

.production-reply-meta {
  color: var(--muted);
  font-size: 12px;
}

.production-reply-input {
  width: 100%;
  min-height: 52px;
  resize: vertical;
  font: inherit;
}

.production-reply-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.production-reply-actions button {
  min-height: 30px;
  padding: 4px 10px;
  font-size: 12px;
}

.timecode-button {
  padding: 0;
  background: transparent;
  color: var(--accent);
  font-weight: 700;
}

.timecode-button:disabled,
.opinion-thumbnail-button:disabled {
  cursor: default;
  opacity: 0.68;
}

.status-chip--pending {
  background: rgba(249, 115, 22, 0.12);
  color: var(--warning);
}

.status-chip--done {
  background: var(--success-soft);
  color: var(--success);
}

.review-page {
  --accent: #60778e;
  --accent-soft: rgba(96, 119, 142, 0.12);
}

.review-page .primary-button,
.review-page .approve-button,
.review-page ~ .upload-drawer .primary-button {
  color: #ffffff;
  background: #191b1e;
  border: 1px solid #191b1e;
}

.review-page .primary-button:hover:not(:disabled),
.review-page .approve-button:hover:not(:disabled),
.review-page ~ .upload-drawer .primary-button:hover:not(:disabled) {
  background: #2b2e32;
  border-color: #2b2e32;
}

.review-page .primary-button:active:not(:disabled),
.review-page .approve-button:active:not(:disabled),
.review-page ~ .upload-drawer .primary-button:active:not(:disabled) {
  background: #0f1012;
  transform: translateY(1px);
}

.review-page .primary-button:focus-visible,
.review-page .approve-button:focus-visible,
.review-page ~ .upload-drawer .primary-button:focus-visible {
  outline: 2px solid rgba(25, 27, 30, 0.42);
  outline-offset: 3px;
}

.review-page .primary-button:disabled,
.review-page .approve-button:disabled,
.review-page ~ .upload-drawer .primary-button:disabled {
  color: #96999d;
  background: #e2e3e4;
  border-color: #e2e3e4;
}

.review-page .secondary-button,
.review-page ~ .upload-drawer .secondary-button {
  color: #202226;
  background: #ffffff;
  border: 1px solid #dedfdf;
}

.review-page .secondary-button:hover:not(:disabled),
.review-page ~ .upload-drawer .secondary-button:hover:not(:disabled) {
  background: #f3f3f2;
  border-color: #cfd0d1;
}

.review-page .secondary-button:focus-visible,
.review-page .control-button:focus-visible,
.review-page .tool-button:focus-visible,
.review-page .filter-pill:focus-visible,
.review-page ~ .upload-drawer .secondary-button:focus-visible {
  outline: 2px solid rgba(31, 33, 36, 0.34);
  outline-offset: 3px;
}

.review-page .control-button,
.review-page .tool-button,
.review-page .filter-pill {
  color: #2d3034;
  background: #f7f7f6;
  border-color: #e3e3e1;
}

.review-page .tool-button--active,
.review-page .filter-pill--active {
  color: #ffffff;
  background: #303338;
  border-color: #303338;
}

.review-page .composer-input:focus,
.review-page .field input:focus,
.review-page .field textarea:focus {
  border-color: #55595f;
  box-shadow: 0 0 0 3px rgba(31, 33, 36, 0.09);
}

.review-page .timeline-progress {
  background: rgba(96, 119, 142, 0.24);
}

.review-page .timeline-marker {
  color: #4b4f55;
  border: 1px solid #d8d9da;
}

.review-page .timeline-marker--active {
  color: #ffffff;
  background: #60778e;
  border-color: #60778e;
}

.review-page .opinion-card--active {
  border-color: #3f4348;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(31, 33, 36, 0.11);
}

.review-page .opinion-card:focus-visible {
  outline-color: rgba(31, 33, 36, 0.48);
}

.review-page .timecode-button {
  color: #30343a;
  font-weight: 750;
}

.review-page .status-chip--pending {
  color: #655d52;
  background: #eeeae4;
}

.review-page .status-chip--done {
  color: #5a665f;
  background: #edf0ed;
}

.review-page .color-swatch:disabled {
  filter: grayscale(1);
  opacity: 0.48;
}

.review-page .video-frame--seeking {
  animation-name: reviewFramePulse;
}

.review-page .opinion-card--pulse {
  animation-name: reviewOpinionPulse;
}

.review-page ~ .upload-drawer .upload-progress-fill {
  background: linear-gradient(90deg, #2a2d31 0%, #6f7378 100%);
}

.approve-footer {
  padding-top: 8px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
}

.approve-note {
  color: var(--muted);
  font-size: 14px;
}

.approve-confirm {
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--panel-soft);
  display: grid;
  gap: 12px;
}

.approve-confirm > p {
  margin: 0;
  color: var(--text);
  line-height: 1.6;
}

.approve-confirm textarea {
  min-height: 78px;
  resize: vertical;
}

.upload-drawer {
  position: fixed;
  inset: 0;
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  display: flex;
  justify-content: flex-end;
  overflow: hidden;
  overscroll-behavior: contain;
  background: rgba(23, 23, 23, 0.18);
  backdrop-filter: blur(6px);
}

.upload-drawer-panel {
  width: min(420px, 100%);
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  padding: 24px;
  border-radius: 0;
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow: hidden;
}

.drawer-header,
.drawer-mode-group,
.drawer-footer {
  flex-shrink: 0;
}

.drawer-mode-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.drawer-form {
  flex: 1;
  min-height: 0;
  display: grid;
  gap: 16px;
  align-content: start;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
}

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

.field textarea {
  min-height: 100px;
}

.drawer-footer {
  align-items: flex-end;
}

.drawer-upload-status {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 8px;
}

.drawer-upload-status .muted-text {
  margin: 0;
}

.form-error {
  margin: 0;
  color: #b91c1c;
  font-size: 14px;
}

.upload-state {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel-soft);
  display: grid;
  gap: 12px;
}

.upload-state h3 {
  margin: 0;
  font-size: 20px;
}

.upload-state p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.upload-progress-track {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: #e5e7eb;
  overflow: hidden;
}

.upload-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #2563ff 0%, #5b8cff 100%);
  transition: width 180ms ease;
}

@keyframes panelFadeIn {
  from {
    opacity: 0.7;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes framePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 99, 255, 0);
  }
  45% {
    box-shadow: 0 0 0 8px rgba(37, 99, 255, 0.16);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 99, 255, 0);
  }
}

@keyframes reviewFramePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(31, 33, 36, 0);
  }
  45% {
    box-shadow: 0 0 0 8px rgba(31, 33, 36, 0.12);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(31, 33, 36, 0);
  }
}

@keyframes markerPulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.18);
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes opinionPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 99, 255, 0);
  }
  45% {
    box-shadow: 0 0 0 6px rgba(37, 99, 255, 0.14);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 99, 255, 0);
  }
}

@keyframes opinionNewComment {
  0%,
  100% {
    border-color: var(--line);
    box-shadow: none;
  }
  20%,
  70% {
    border-color: #666b70;
    box-shadow: 0 0 0 3px rgba(31, 33, 36, 0.1);
  }
}

@keyframes reviewOpinionPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(31, 33, 36, 0);
  }
  45% {
    box-shadow: 0 0 0 6px rgba(31, 33, 36, 0.1);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(31, 33, 36, 0);
  }
}

@keyframes thumbPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.03);
  }
  100% {
    transform: scale(1);
  }
}

.auth-page {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.96), transparent 42%),
    linear-gradient(145deg, #f4f4f2 0%, #e7e7e4 100%);
}

.auth-card {
  width: min(440px, 100%);
  padding: 42px;
  border: 1px solid rgba(23, 23, 23, 0.1);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 28px 70px rgba(20, 20, 20, 0.12);
}

.auth-brand h1 {
  margin: 0;
  font-size: 38px;
  font-weight: 620;
  letter-spacing: 0.04em;
}

.auth-brand-subtitle {
  margin: 8px 0 0;
  color: #7a7c80;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  letter-spacing: 0.12em;
}

.auth-description {
  margin: 28px 0 0;
  color: #55585c;
}

.auth-form {
  display: grid;
  gap: 18px;
  margin-top: 30px;
}

.auth-field {
  display: grid;
  gap: 8px;
  color: #34363a;
  font-size: 14px;
}

.auth-field input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid #cfd0d2;
  border-radius: 10px;
  background: #fff;
  color: #171717;
  font: inherit;
}

.auth-field input:focus-visible {
  border-color: #25272a;
  outline: 2px solid rgba(37, 39, 42, 0.16);
  outline-offset: 2px;
}

.auth-field small {
  color: #777a7e;
  line-height: 1.5;
}

.auth-submit {
  width: 100%;
  min-height: 46px;
}

.auth-error {
  margin: -2px 0 0;
  color: #b42318;
  font-size: 14px;
  line-height: 1.5;
}

.auth-logout {
  justify-self: center;
}

.current-user {
  display: grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  gap: 2px 8px;
  padding-left: 18px;
  border-left: 1px solid var(--line);
  white-space: nowrap;
}

.current-user span,
.current-user small {
  color: var(--muted);
  font-size: 12px;
}

.current-user small {
  grid-column: 2;
}

@media (max-width: 1200px) {
  .review-shell {
    grid-template-columns: 1fr;
  }

  .opinions-panel {
    min-height: auto;
    position: static;
  }
}

@media (max-width: 900px) {
  .v2-app {
    padding: 16px;
  }

  .service-toolbar--home {
    min-height: auto;
    padding: 8px 4px 24px;
  }

  .home-page {
    min-height: auto;
    padding: 64px 24px 28px;
    grid-template-rows: auto auto;
    gap: 64px;
  }

  .home-curve-scene {
    transform: translateY(-120px);
  }

  .home-review-summary {
    margin-left: 0;
  }

  .home-review-workbench {
    margin-left: 0;
    grid-template-columns: minmax(190px, 1.35fr) repeat(2, minmax(132px, 1fr));
  }

  .home-navigation {
    grid-template-columns: 1fr;
    gap: 16px;
    transform: translateY(-4px);
  }

  .home-feature-card {
    min-height: 148px;
  }

  .service-toolbar,
  .projects-header,
  .review-topbar {
    padding: 20px;
  }

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

  .v2-people-page .card-grid,
  .v2-people-page .form-grid,
  .v2-people-page .account-identity-grid {
    grid-template-columns: 1fr;
  }

  .v2-people-page .person-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .service-toolbar,
  .review-topbar,
  .panel-header,
  .timeline-header,
  .composer-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .topbar-right {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .service-toolbar-group--right,
  .service-toolbar-group--brand,
  .operator-select,
  .operator-select select {
    width: 100%;
  }

  .notification-control {
    margin-left: auto;
  }

  .current-user {
    width: 100%;
    padding: 10px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .service-toolbar-group--brand {
    flex-wrap: wrap;
  }
}

@media (max-width: 560px) {
  .notification-panel {
    position: fixed;
    inset: 12px;
    width: auto;
    max-height: none;
    border-radius: 16px;
  }

  .auth-card {
    padding: 30px 22px;
    border-radius: 16px;
  }

  .auth-brand h1 {
    font-size: 32px;
  }

  .home-brand-title {
    font-size: 36px;
  }

  .home-brand-subtitle {
    font-size: 17px;
  }

  .home-review-number {
    font-size: 92px;
  }

  .home-review-workbench {
    grid-template-columns: 1fr;
  }

  .home-review-summary--primary .home-review-number {
    font-size: 108px;
  }

  .home-feature-card {
    grid-template-columns: auto minmax(0, 1fr);
    padding: 22px;
  }

  .home-feature-icon {
    width: 64px;
    height: 64px;
  }

  .home-feature-icon svg {
    width: 34px;
    height: 34px;
  }

  .home-feature-arrow {
    display: none;
  }
}
