:root {
  color-scheme: dark;
  --black: #0a0a0b;
  --panel: #111113;
  --panel-soft: #171719;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #fbfbfb;
  --muted: rgba(251, 251, 251, 0.64);
  --dim: rgba(251, 251, 251, 0.38);
  --accent: #d8d8d8;
  --accent-soft: rgba(255, 255, 255, 0.1);
  --danger: #ff6d5e;
  --radius: 8px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 24% 38%, rgba(255, 255, 255, 0.08), transparent 30%),
    radial-gradient(ellipse at 76% 28%, rgba(255, 255, 255, 0.12), transparent 34%),
    linear-gradient(180deg, #252729 0%, #121314 54%, #050506 100%);
  color: var(--text);
}

[hidden] {
  display: none !important;
}

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

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
  transform: none !important;
}

@keyframes surfaceIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-screen {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(320px, 500px);
  grid-template-rows: 1fr;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 100vh;
  padding: clamp(22px, 5vw, 74px) clamp(28px, 8vw, 146px);
  overflow: hidden;
}

.login-photo-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--black);
}

.login-photo-grid::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(5, 5, 6, 0.42), rgba(5, 5, 6, 0.12) 48%, rgba(5, 5, 6, 0.46)),
    linear-gradient(180deg, rgba(5, 5, 6, 0), rgba(5, 5, 6, 0.34)),
    radial-gradient(ellipse at 30% 48%, rgba(120, 136, 150, 0.16), transparent 34%);
}

.bg-photo {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  filter: saturate(1.12) contrast(1.06) brightness(0.94);
  opacity: 0;
  transform: translate3d(0, 0, 0) scale(1.045);
  backface-visibility: hidden;
  will-change: opacity;
  transition:
    opacity 2200ms ease-in-out,
    transform 8200ms ease-out;
}

.bg-photo-wide {
  background-image: url("assets/login-taneycomo.jpg");
  background-position: center 55%;
}

.bg-photo-paynes,
.bg-photo-court,
.bg-photo-big-cedar,
.bg-photo-herschend,
.bg-photo-rink,
.bg-photo-sdc,
.bg-photo-lake,
.bg-photo-christmas {
  border: 0;
  box-shadow: none;
}

.bg-photo-paynes {
  background-image: url("assets/login-paynes-valley.jpg");
  background-position: center;
}

.bg-photo-court {
  background-image: url("assets/login-steadicam-court.jpg");
  background-position: center;
}

.bg-photo-big-cedar {
  background-image: url("assets/login-big-cedar.jpg");
  background-position: center;
}

.bg-photo-herschend {
  background-image: url("assets/login-herschend.jpg");
  background-position: center;
}

.bg-photo-rink {
  background-image: url("assets/login-rink-production.jpg");
  background-position: center;
}

.bg-photo-sdc {
  background-image: url("assets/login-sdc-campaign.jpg");
  background-position: center;
}

.bg-photo-lake {
  background-image: url("assets/login-lake-wheelchair.jpg");
  background-position: center;
}

.bg-photo-christmas {
  background-image: url("assets/login-christmas-house.jpg");
  background-position: center;
}

.login-screen[data-bg-index="0"] .bg-photo-wide,
.login-screen[data-bg-index="1"] .bg-photo-paynes,
.login-screen[data-bg-index="2"] .bg-photo-court,
.login-screen[data-bg-index="3"] .bg-photo-big-cedar,
.login-screen[data-bg-index="4"] .bg-photo-herschend,
.login-screen[data-bg-index="5"] .bg-photo-rink,
.login-screen[data-bg-index="6"] .bg-photo-sdc,
.login-screen[data-bg-index="7"] .bg-photo-lake,
.login-screen[data-bg-index="8"] .bg-photo-christmas {
  opacity: 0.96;
  transform: translate3d(0, 0, 0) scale(1.012);
}

.login-screen::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(10, 10, 11, 0), rgba(10, 10, 11, 0.18)),
    linear-gradient(90deg, rgba(10, 10, 11, 0.46), rgba(10, 10, 11, 0.06) 45%, rgba(10, 10, 11, 0.28)),
    repeating-linear-gradient(
      178deg,
      rgba(255, 255, 255, 0.012) 0,
      rgba(255, 255, 255, 0.012) 1px,
      transparent 1px,
      transparent 8px
    );
}

.login-screen::after {
  content: "";
  position: fixed;
  left: -8vw;
  right: -8vw;
  bottom: 0;
  z-index: 1;
  pointer-events: none;
  height: 28vh;
  background:
    linear-gradient(180deg, rgba(80, 92, 104, 0.03), rgba(8, 9, 9, 0.12)),
    radial-gradient(ellipse at 20% 25%, rgba(120, 132, 142, 0.06), transparent 34%),
    radial-gradient(ellipse at 58% 12%, rgba(255, 255, 255, 0.1), transparent 44%),
    repeating-linear-gradient(170deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 12px);
  filter: blur(1.5px);
  transform: skewY(-1.6deg);
}

.login-brand {
  position: fixed;
  top: clamp(22px, 5vw, 74px);
  left: clamp(28px, 8vw, 146px);
  z-index: 2;
}

.login-brand .brand {
  align-items: flex-start;
}

.login-brand .brand-logo {
  width: 148px;
  height: 42px;
}

.login-brand .brand small {
  margin-top: 18px;
}

.login-panel {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  justify-self: center;
  position: relative;
  z-index: 2;
  width: min(500px, 100%);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
}

.login-panel h1 {
  max-width: 500px;
  margin: 0;
  font-size: clamp(2.7rem, 4.6vw, 4.6rem);
  line-height: 0.96;
  letter-spacing: 0;
  text-wrap: balance;
}

.login-copy {
  max-width: 430px;
  margin: 18px 0 18px;
  color: rgba(251, 251, 251, 0.78);
  font-size: 1.02rem;
  line-height: 1.65;
}

.line-kicker {
  display: inline-flex;
  align-items: center;
  gap: 18px;
}

.line-kicker::after {
  content: "";
  display: block;
  width: 42px;
  height: 1px;
  background: rgba(251, 251, 251, 0.24);
}

.login-form {
  display: grid;
  gap: 10px;
  max-width: 100%;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: var(--radius);
  background: rgba(10, 10, 11, 0.34);
  backdrop-filter: blur(16px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
}

.login-form input {
  min-height: 42px;
}

.signup-sms-fields {
  display: grid;
  gap: 10px;
}

.label-line {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}

.optional-note {
  margin-left: 0;
  color: rgba(251, 251, 251, 0.52);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.toggle-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  cursor: pointer;
}

.toggle-row input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 0;
  accent-color: var(--text);
}

.toggle-row span {
  color: var(--muted);
  font-size: 0.86rem;
}

.toggle-row small {
  margin-left: 4px;
  color: rgba(251, 251, 251, 0.48);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-access-button {
  min-height: 36px;
  border: 0;
  background: transparent;
  color: rgba(251, 251, 251, 0.58);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-access-button:hover {
  color: var(--text);
}

.story-preview {
  grid-column: 2;
  grid-row: 1 / span 2;
  position: relative;
  z-index: 2;
  align-self: center;
  max-width: 760px;
}

.story-preview::after {
  content: none;
}

.story-frame {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  min-height: 0;
  min-height: clamp(310px, 32vw, 430px);
  padding: 0;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  background: transparent;
  box-shadow: 0 28px 76px rgba(0, 0, 0, 0.32);
}

.story-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
  pointer-events: none;
}

.story-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(10, 10, 11, 0.12), rgba(10, 10, 11, 0.28)),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.012) 0,
      rgba(255, 255, 255, 0.012) 1px,
      transparent 1px,
      transparent 6px
    );
}

.story-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(10, 10, 11, 0.06), transparent 28%, rgba(10, 10, 11, 0.72)),
    radial-gradient(ellipse at center, transparent 54%, rgba(0, 0, 0, 0.22));
}

.story-title {
  position: relative;
  z-index: 1;
  display: grid;
  max-width: 300px;
  color: transparent;
  font-size: clamp(4.2rem, 7.2vw, 7.8rem);
  font-weight: 900;
  line-height: 0.78;
  -webkit-text-stroke: 2px rgba(251, 251, 251, 0.86);
  text-stroke: 2px rgba(251, 251, 251, 0.86);
  opacity: 0.96;
}

.play-symbol {
  position: absolute;
  right: 24px;
  bottom: 22px;
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  border: 2px solid rgba(251, 251, 251, 0.46);
  border-radius: 50%;
  background: rgba(10, 10, 11, 0.22);
  backdrop-filter: blur(6px);
}

.play-symbol::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 5px;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 13px solid var(--text);
}

.shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 220px),
    #080809;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
  height: 100vh;
  padding: 24px;
  border-right: 1px solid var(--line);
  background: rgba(8, 8, 9, 0.94);
  backdrop-filter: blur(16px);
}

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

.brand-mark,
.brand-logo {
  display: grid;
  place-items: center;
  width: 150px;
  height: 42px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font-weight: 900;
}

.brand-logo {
  position: relative;
  overflow: hidden;
}

.brand-logo::after {
  content: attr(data-fallback);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.brand-logo:has(img:not([hidden]))::after {
  content: "";
}

.brand-logo img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  padding: 0;
  object-fit: contain;
  object-position: left center;
  background: transparent;
  filter: brightness(0) invert(1);
}

.brand-logo img:not([src]),
.brand-logo img[src=""] {
  display: none;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 0.88rem;
  letter-spacing: 0.12em;
}

.brand small {
  margin-top: 22px;
  color: var(--muted);
}

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

.nav-item,
.ghost-button,
.primary-button,
.icon-button {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  transition:
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 40px;
  padding: 0 12px;
  text-align: left;
}

.nav-item:hover,
.nav-item.active {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.075);
}

.icon {
  color: var(--dim);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.sidebar-footer {
  display: grid;
  gap: 12px;
  margin-top: auto;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.account-summary {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.account-summary strong,
.account-summary small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-summary strong {
  color: var(--text);
  font-size: 0.96rem;
}

.account-summary small {
  color: var(--dim);
  font-size: 0.78rem;
}

.workspace {
  min-width: 0;
  padding: 28px clamp(20px, 4vw, 54px) 54px;
}

.topbar,
.modal-head,
.modal-actions,
.list-row,
.review-head,
.version-row,
.comment-row,
.hero-meta,
.inline-actions {
  display: flex;
  align-items: center;
}

.topbar {
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar h1,
.modal h2,
.hero-band h2 {
  margin: 0;
  line-height: 0.98;
}

.topbar h1 {
  font-size: clamp(2.45rem, 4.4vw, 5rem);
  letter-spacing: 0;
}

.topbar.client-title-card {
  align-items: flex-start;
}

.topbar.client-title-card > div:first-child {
  display: flex;
  flex-direction: column;
  min-width: min(560px, 100%);
  padding: 18px 22px 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012)),
    rgba(8, 8, 9, 0.92);
}

.topbar.client-title-card .eyebrow {
  order: 2;
  margin: 8px 0 0;
  color: rgba(251, 251, 251, 0.55);
}

.topbar.client-title-card h1 {
  order: 1;
  font-size: clamp(2rem, 3.2vw, 3.65rem);
}

.topbar-actions,
.modal-actions,
.inline-actions {
  gap: 10px;
}

.session-label {
  align-self: center;
  color: var(--dim);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.primary-button,
.ghost-button,
.icon-button {
  min-height: 42px;
  padding: 0 15px;
}

.sign-out-button {
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.045);
  color: rgba(251, 251, 251, 0.58);
  font-size: 0.82rem;
  font-weight: 700;
  justify-self: start;
}

.delete-client-button {
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid rgba(255, 109, 94, 0.16);
  border-radius: 7px;
  background: rgba(255, 109, 94, 0.045);
  color: rgba(255, 190, 184, 0.7);
  font-size: 0.82rem;
  font-weight: 700;
}

.delete-client-button:hover {
  border-color: rgba(255, 109, 94, 0.38);
  background: rgba(255, 109, 94, 0.11);
  color: #ffd8d4;
}

.sign-out-button:hover {
  background: rgba(255, 255, 255, 0.075);
  color: rgba(251, 251, 251, 0.82);
}

.danger-button {
  color: rgba(255, 190, 184, 0.86);
}

.danger-button:hover {
  border-color: rgba(255, 109, 94, 0.38);
  background: rgba(255, 109, 94, 0.09);
  color: #ffd8d4;
}

.primary-button {
  border-color: transparent;
  background: var(--text);
  color: var(--black);
  font-weight: 800;
}

.ghost-button:hover,
.primary-button:hover,
.icon-button:hover {
  transform: translateY(-1px);
}

.hero-band {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  min-height: 148px;
  padding: clamp(18px, 2.4vw, 28px) clamp(20px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    rgba(255, 255, 255, 0.025);
  overflow: hidden;
}

.hero-band.admin-hero {
  min-height: 142px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)),
    #09090a;
}

.hero-band.admin-hero .dashboard-photo-grid {
  display: none;
}

.hero-band.client-hero {
  min-height: 118px;
}

.dashboard-photo-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.dashboard-photo-grid::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(10, 10, 11, 0.72), rgba(10, 10, 11, 0.36) 52%, rgba(10, 10, 11, 0.62)),
    linear-gradient(180deg, rgba(10, 10, 11, 0.06), rgba(10, 10, 11, 0.52));
}

.dashboard-photo {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  filter: saturate(1.08) contrast(1.05) brightness(0.9);
  opacity: 0;
  transform: scale(1.04);
  transition:
    opacity 1000ms ease,
    transform 5200ms ease;
}

.dashboard-photo-taneycomo {
  background-image: url("assets/login-taneycomo.jpg");
  background-position: center 55%;
}

.dashboard-photo-paynes {
  background-image: url("assets/login-paynes-valley.jpg");
}

.dashboard-photo-big-cedar {
  background-image: url("assets/login-big-cedar.jpg");
}

.dashboard-photo-herschend {
  background-image: url("assets/login-herschend.jpg");
}

.dashboard-photo-sdc {
  background-image: url("assets/login-sdc-campaign.jpg");
}

.hero-band[data-bg-index="0"] .dashboard-photo-taneycomo,
.hero-band[data-bg-index="1"] .dashboard-photo-paynes,
.hero-band[data-bg-index="2"] .dashboard-photo-big-cedar,
.hero-band[data-bg-index="3"] .dashboard-photo-herschend,
.hero-band[data-bg-index="4"] .dashboard-photo-sdc {
  opacity: 0.68;
  transform: scale(1);
}

.hero-copy,
.hero-meta {
  position: relative;
  z-index: 3;
}

.hero-band h2 {
  max-width: 620px;
  margin-bottom: 10px;
  font-size: clamp(1.55rem, 2.6vw, 3rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-subcopy {
  max-width: 500px;
  margin: 0;
  color: rgba(251, 251, 251, 0.72);
  font-size: 0.95rem;
  line-height: 1.45;
}

.hero-meta {
  align-self: end;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.hero-meta span,
.status-pill,
.provider-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(10, 10, 11, 0.4);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.status-pill.approved {
  border-color: rgba(255, 255, 255, 0.32);
  color: var(--text);
}

.status-pill.archived {
  color: var(--dim);
}

.view-root {
  margin-top: 22px;
}

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

.card,
.panel,
.modal {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(14, 14, 16, 0.82);
  box-shadow: none;
}

.card {
  min-height: 176px;
  padding: 16px;
  animation: surfaceIn 240ms ease both;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.card:hover {
  border-color: var(--line-strong);
  background: rgba(18, 18, 20, 0.94);
  transform: translateY(-2px);
}

.card h3,
.panel h3,
.project-title h2,
.review-head h2 {
  margin: 0;
}

.card h3 {
  font-size: 1.28rem;
  letter-spacing: 0;
}

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

.project-card {
  display: flex;
  flex-direction: column;
}

.client-project-card {
  position: relative;
}

.new-project-dot {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #21d36b;
  box-shadow: 0 0 0 0 rgba(33, 211, 107, 0.45);
  animation: newProjectPulse 1.4s ease-in-out infinite;
}

@keyframes newProjectPulse {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(0.9);
    box-shadow: 0 0 0 0 rgba(33, 211, 107, 0.34);
  }
  50% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 0 7px rgba(33, 211, 107, 0);
  }
}

.project-card .card-footer {
  margin-top: auto;
  padding-top: 20px;
}

.card p,
.muted {
  color: var(--muted);
  line-height: 1.5;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
  margin-top: 20px;
}

.metric {
  color: var(--dim);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.meta-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 9px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--dim);
  font-size: 0.72rem;
  font-weight: 800;
}

.panel {
  padding: 16px;
}

.stack {
  display: grid;
  gap: 18px;
}

.section-head,
.settings-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.section-head h3,
.settings-card-head h3 {
  margin: 0;
  font-size: 1.1rem;
  letter-spacing: 0;
}

.settings-card-head .avatar {
  width: 48px;
  height: 48px;
  font-size: 0.9rem;
}

.workspace-panel {
  display: grid;
  gap: 18px;
}

.workspace-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.workspace-head h2 {
  max-width: 560px;
  margin: 0 0 8px;
  font-size: clamp(1.45rem, 2.1vw, 2.35rem);
  line-height: 1;
  letter-spacing: 0;
}

.workspace-head .muted {
  max-width: 520px;
  margin: 0;
}

.media-clean-head {
  align-items: center;
}

.workspace-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.workspace-stats span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

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

.media-section {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.workspace-panel > .media-section:first-of-type {
  margin-top: 0;
}

.project-media-panel {
  display: grid;
  gap: 14px;
}

.media-library-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.media-section-box {
  min-height: 0;
  margin-top: 0;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.012);
}

.media-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.media-section-head h3 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: 0;
}

.media-section-head .eyebrow {
  margin-bottom: 6px;
}

.media-section-head > span {
  color: var(--dim);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

.media-head-actions > span,
.media-summary span,
.media-card-head > span {
  color: var(--dim);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.small-action {
  min-height: 32px;
  padding: 0 12px;
  font-size: 0.82rem;
}

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

.video-card-wrap {
  position: relative;
  min-width: 0;
}

.video-card {
  display: grid;
  align-content: start;
  gap: 11px;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.022);
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
  animation: surfaceIn 220ms ease both;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.video-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-1px);
}

.video-card:disabled {
  cursor: default;
  opacity: 0.62;
  transform: none;
}

.video-card:disabled:hover {
  border-color: rgba(255, 255, 255, 0.075);
  background: rgba(255, 255, 255, 0.022);
}

.video-thumb {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 7px;
  background:
    radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.1), transparent 42%),
    rgba(255, 255, 255, 0.035);
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.video-thumb > span {
  display: none;
  color: var(--dim);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.video-thumb.is-empty > span {
  display: none;
}

.video-card-body {
  display: grid;
  gap: 8px;
}

.video-card-title {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.15;
}

.video-card .muted {
  display: block;
  margin: 0;
  font-size: 0.88rem;
}

.video-card .meta-strip {
  margin-top: 0;
}

.video-card-action {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.media-delete-button {
  position: absolute;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(8, 8, 9, 0.72);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(-2px);
  transition:
    opacity 160ms ease,
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.media-delete-button {
  top: 9px;
  right: 9px;
  border: 1px solid rgba(255, 109, 94, 0.16);
  color: rgba(255, 210, 206, 0.82);
}

.video-card-wrap:hover .media-delete-button,
.media-delete-button:focus-visible {
  opacity: 1;
  transform: translateY(0);
}

.media-delete-button:hover {
  border-color: rgba(255, 109, 94, 0.4);
  background: rgba(255, 109, 94, 0.16);
}

.media-row {
  cursor: pointer;
  font: inherit;
  padding: 14px;
  background: rgba(255, 255, 255, 0.016);
}

.media-row .inline-actions {
  flex: 0 0 auto;
}

.media-row .meta-strip {
  margin-top: 9px;
}

.activity-layout,
.settings-layout {
  display: grid;
  gap: 14px;
}

.activity-panel {
  max-width: 920px;
}

.activity-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.022);
}

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

.activity-row strong {
  color: var(--text);
  font-size: 0.98rem;
}

.activity-row span {
  color: var(--muted);
  font-size: 0.86rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activity-time {
  text-align: right;
}

.activity-time span {
  color: var(--dim);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.activity-time small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.78rem;
}

.settings-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.settings-card {
  display: grid;
  gap: 14px;
}

.settings-card > .muted {
  margin: 0;
}

.settings-form {
  display: grid;
  gap: 10px;
}

.settings-form .primary-button,
.settings-form .ghost-button {
  width: 100%;
}

.invite-generator-card,
.integration-settings {
  grid-column: span 2;
}

.invite-result {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.025);
}

.invite-result[hidden] {
  display: none;
}

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

.copy-row code {
  min-width: 0;
  overflow: hidden;
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.integration-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.integration-list > div {
  display: grid;
  gap: 5px;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.022);
}

.integration-list strong {
  color: var(--text);
}

.integration-list span {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.open-arrow {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.action-panel {
  align-self: start;
  gap: 12px;
}

.action-divider {
  height: 1px;
  margin: 4px 0;
  background: rgba(255, 255, 255, 0.08);
}

.access-block {
  display: grid;
  gap: 9px;
}

.access-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.access-block-head > span {
  color: var(--dim);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.access-list {
  display: grid;
  gap: 7px;
  max-height: none;
  overflow: visible;
}

.access-row,
.access-empty {
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.access-row {
  padding: 9px 10px;
}

.access-row > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.access-row strong,
.access-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.access-row strong {
  color: var(--text);
  font-size: 0.88rem;
}

.access-row span {
  color: var(--dim);
  font-size: 0.74rem;
}

.access-empty {
  padding: 12px 10px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.download-package {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.026);
}

.download-package.compact {
  display: grid;
  gap: 12px;
  margin-bottom: 0;
  padding: 12px;
}

.download-package .eyebrow,
.download-package h3,
.download-package .muted {
  margin: 0;
}

.download-package h3 {
  margin-top: 4px;
  font-size: 1rem;
  letter-spacing: 0;
}

.download-package .muted {
  margin-top: 5px;
}

.download-picker {
  display: grid;
  gap: 9px;
  min-height: 240px;
}

.download-choice {
  position: relative;
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: center;
  gap: 11px;
  min-height: auto;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  cursor: pointer;
}

.download-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.download-choice-dot {
  width: 18px;
  height: 18px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
}

.download-choice input:checked + .download-choice-dot {
  border-color: #fbfbfb;
  box-shadow: inset 0 0 0 5px #fbfbfb;
}

.download-choice strong,
.download-choice small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.download-choice small {
  margin-top: 3px;
  color: var(--muted);
}

.download-choice.is-disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.media-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.media-summary span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
}

.client-video-stack,
.media-card {
  display: grid;
  gap: 10px;
}

.media-card {
  padding: 11px;
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.012);
}

.media-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}

.media-card-head h3 {
  margin: 0 0 5px;
  font-size: 1rem;
  letter-spacing: 0;
}

.media-card-head .muted {
  margin: 0;
}

.client-project-block {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.018);
}

.client-project-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
}

.client-project-head h3 {
  margin: 0 0 6px;
  font-size: 1.35rem;
  letter-spacing: 0;
}

.client-project-head .muted {
  margin: 0;
}

.list-row,
.version-row {
  display: flex;
  width: 100%;
  color: inherit;
  text-align: left;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.026);
  transition:
    border-color 160ms ease,
    background 160ms ease;
}

.version-select {
  cursor: pointer;
  font: inherit;
}

.review-side-panel .version-row {
  padding: 11px;
  background: rgba(255, 255, 255, 0.014);
}

.review-side-panel .version-row h3 {
  font-size: 0.98rem;
}

.review-side-panel .version-row .status-pill {
  flex: 0 0 auto;
}

.version-dropdown {
  position: relative;
  display: grid;
  gap: 8px;
}

.current-version-row {
  background: rgba(255, 255, 255, 0.03);
}

.version-menu-toggle {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.version-menu-toggle:hover,
.version-menu-toggle[aria-expanded="true"] {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
}

.version-menu-toggle[aria-expanded="true"] {
  transform: rotate(180deg);
}

.chevron-down {
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.version-menu {
  display: grid;
  gap: 7px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius);
  background: rgba(10, 10, 11, 0.96);
}

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

.version-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 50px;
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.version-menu-item:hover,
.version-menu-item.active {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.065);
}

.version-menu-item > span:first-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.version-menu-item strong,
.version-menu-item small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.version-menu-item strong {
  color: var(--text);
  font-size: 0.9rem;
}

.version-menu-item small {
  color: var(--dim);
  font-size: 0.74rem;
}

.version-select.active {
  border-color: rgba(251, 251, 251, 0.32);
  background: rgba(255, 255, 255, 0.065);
}

.list-row:hover,
.version-row:hover {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
}

.list-row h3,
.version-row h3 {
  margin: 0 0 6px;
}

.project-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  gap: 16px;
}

.review-layout {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  gap: 16px;
  align-items: start;
}

.review-main-panel,
.review-side-panel,
.comments-panel {
  background: rgba(11, 11, 12, 0.92);
}

.review-main-panel {
  padding: 0;
  border: 0;
  background: transparent;
}

.review-side-panel {
  position: sticky;
  top: 24px;
  gap: 12px;
  padding: 14px;
}

.video-frame {
  position: relative;
  display: grid;
  place-items: center;
  justify-self: center;
  width: 100%;
  max-width: 1040px;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 6px;
  overflow: hidden;
  background: #141416;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025);
}

.video-frame iframe,
.video-frame video {
  border: 0;
  background: #050506;
}

.video-frame iframe,
.video-frame .native-video-stage {
  width: 100%;
  height: 100%;
}

.native-video-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #050506;
  overflow: hidden;
}

.native-review-video {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain !important;
  object-position: center center;
}

.review-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.035), transparent 38%),
    #161618;
}

.review-placeholder span {
  color: rgba(251, 251, 251, 0.48);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.public-review-mode .shell {
  grid-template-columns: minmax(0, 1fr);
}

.public-review-mode .sidebar,
.public-review-mode .topbar {
  display: none;
}

.public-review-mode .workspace {
  min-height: 100vh;
  padding: clamp(18px, 4vw, 42px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.022), transparent 180px),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.018) 0,
      rgba(255, 255, 255, 0.018) 1px,
      transparent 1px,
      transparent 120px
    ),
    #050506;
}

.public-review-page {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 16px;
  min-height: calc(100vh - 84px);
}

.public-review-brand {
  justify-self: start;
  color: rgba(251, 251, 251, 0.76);
  font-size: 1rem;
  font-weight: 950;
  letter-spacing: 0.16em;
}

.public-review-card {
  display: grid;
  gap: clamp(14px, 2vw, 20px);
  width: min(1200px, 100%);
  padding: clamp(12px, 1.8vw, 22px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.014)),
    rgba(12, 12, 14, 0.92);
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.public-review-header {
  text-align: center;
}

.public-review-header h1 {
  margin: 8px auto 0;
  max-width: 980px;
  font-size: clamp(2.2rem, 5.2vw, 5rem);
  letter-spacing: 0;
  line-height: 0.94;
}

.public-review-meta,
.public-review-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.public-review-meta {
  margin-top: 14px;
}

.public-review-meta span,
.public-review-footer span {
  min-height: 26px;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.22);
  color: rgba(251, 251, 251, 0.62);
  font-size: 0.76rem;
  font-weight: 850;
}

.public-review-footer {
  justify-content: space-between;
  padding-top: 2px;
}

.public-review-frame {
  display: grid;
  place-items: center;
  justify-self: center;
  align-self: start;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.025), transparent 36%),
    #0d0d0f;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.42);
}

.public-review-frame iframe,
.public-review-frame video,
.public-review-frame img,
.public-review-frame .native-video-stage {
  width: 100%;
  height: 100%;
  border: 0;
  background: #111113;
}

.public-review-frame video,
.public-review-frame img {
  object-fit: contain;
}

.public-login-button {
  position: fixed;
  left: 18px;
  bottom: 18px;
  min-width: 92px;
  background: rgba(12, 12, 14, 0.8);
  backdrop-filter: blur(12px);
}

.public-link-row {
  grid-template-columns: minmax(0, 1fr);
  margin-top: 12px;
}

.play-badge {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--text);
  color: var(--black);
  font-weight: 900;
}

.review-head {
  justify-content: space-between;
  gap: 14px;
  margin: 12px 0 0;
  padding: 0 1px;
}

.review-head h2 {
  font-size: clamp(1.35rem, 2vw, 2.2rem);
  letter-spacing: 0;
}

.comments-panel {
  display: grid;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: transparent;
}

.review-status-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.review-status-toggle-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.78rem;
}

.review-status-toggle .chevron-down {
  width: 8px;
  height: 8px;
  opacity: 0.8;
  transition: transform 160ms ease;
}

.review-status-toggle[aria-expanded="true"] .chevron-down {
  transform: translateY(2px) rotate(225deg);
}

.review-status-panel {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.025);
}

.review-status-panel[hidden] {
  display: none;
}

.review-status-list {
  display: grid;
  gap: 8px;
}

.review-status-row {
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.026);
}

.review-status-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.review-status-main > div:first-child {
  min-width: 0;
}

.review-status-main strong,
.review-status-main span {
  display: block;
}

.review-status-main strong {
  color: var(--text);
  font-size: 0.94rem;
}

.review-status-main span {
  color: var(--muted);
  font-size: 0.78rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.review-status-meta,
.client-review-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.review-status-approval {
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.review-status-approval.approved {
  border-color: rgba(82, 211, 122, 0.85);
  background: #3fd16f;
  box-shadow: 0 0 0 3px rgba(63, 209, 111, 0.12);
}

.client-review-status {
  padding: 11px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.022);
}

.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 850;
}

.status-dot::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
}

.status-dot.ready::before {
  background: #d8d8d4;
}

.status-dot.approved {
  color: var(--text);
}

.status-dot.approved::before {
  background: #3fd16f;
}

.review-side-panel > .eyebrow {
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.action-status {
  display: grid;
  gap: 5px;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
}

.action-status strong {
  font-size: 0.92rem;
}

.action-status span {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.action-status.ready {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.055);
}

.delivery-notice {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
  animation: surfaceIn 220ms ease both;
}

.delivery-notice strong {
  color: var(--text);
  font-size: 0.9rem;
}

.delivery-notice span {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.comment-row {
  align-items: flex-start;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.avatar {
  position: relative;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  overflow: hidden;
}

.comment-row p {
  margin: 4px 0 0;
  color: var(--muted);
}

.comment-form {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.review-share-block {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.018);
}

.review-share-block .eyebrow {
  margin: 0;
}

.review-link-under-comments {
  width: 100%;
}

textarea,
input,
select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 11px 12px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

textarea {
  min-height: 92px;
  resize: vertical;
}

.modal {
  width: min(620px, calc(100vw - 28px));
  padding: 0;
  color: var(--text);
}

.modal::backdrop {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
}

.modal form {
  padding: 20px;
}

.modal-head,
.modal-actions {
  justify-content: space-between;
  gap: 16px;
}

.modal-subtitle {
  max-width: 430px;
  margin: 10px 0 0;
  color: rgba(251, 251, 251, 0.72);
  font-size: 1rem;
  line-height: 1.45;
}

.form-grid {
  display: grid;
  gap: 13px;
  margin: 18px 0;
}

.confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(14px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.confirm-overlay[hidden] {
  display: none;
}

.confirm-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.confirm-card {
  width: min(430px, 100%);
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    rgba(14, 14, 16, 0.96);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.52);
  transform: translateY(8px) scale(0.98);
  transition: transform 180ms ease;
}

.confirm-overlay.show .confirm-card {
  transform: translateY(0) scale(1);
}

.confirm-card h2 {
  margin: 0;
  font-size: 1.65rem;
  letter-spacing: 0;
  line-height: 1;
}

.confirm-card p:not(.eyebrow) {
  margin: 12px 0 0;
  color: rgba(251, 251, 251, 0.72);
  font-size: 0.95rem;
  line-height: 1.5;
}

.confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.confirm-summary {
  margin-top: 14px;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02)),
    rgba(18, 18, 20, 0.64);
}

.confirm-summary-kicker {
  margin: 0;
  color: rgba(251, 251, 251, 0.54);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  line-height: 1;
  text-transform: uppercase;
}

.confirm-summary h3 {
  margin: 8px 0 0;
  color: var(--text);
  font-size: 1.15rem;
  line-height: 1.12;
  letter-spacing: 0;
}

.confirm-summary-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 11px;
}

.confirm-summary-meta span {
  max-width: 100%;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.18);
  color: rgba(251, 251, 251, 0.76);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
}

.confirm-summary-note {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  color: rgba(251, 251, 251, 0.76);
  font-size: 0.95rem;
  line-height: 1.45;
}

.danger-confirm {
  background: #f7b8b2;
  color: #160807;
}

.account-picker {
  display: grid;
  gap: 10px;
}

.account-picker-head {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
}

.account-picker-head > span {
  color: var(--dim);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.account-box {
  display: grid;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.025);
}

.account-box input[type="search"] {
  min-height: 42px;
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.055);
}

.account-options {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 318px;
  max-height: 360px;
  overflow: auto;
}

.account-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  min-height: 58px;
  padding: 10px 11px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  cursor: pointer;
}

.account-option:hover,
.account-option.is-selected {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.07);
}

.account-option input {
  position: relative;
  width: 20px;
  min-width: 20px;
  height: 20px;
  min-height: 20px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  appearance: none;
  background: rgba(255, 255, 255, 0.03);
  accent-color: var(--text);
}

.account-option input:checked {
  border-color: var(--text);
  background:
    radial-gradient(circle at center, var(--text) 0 42%, transparent 46%),
    rgba(255, 255, 255, 0.06);
}

.account-option-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 3px;
  min-width: 0;
  cursor: pointer;
}

.account-option-main > span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.account-option-main strong,
.account-option-main > span > span,
.account-option-main small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-option-main strong {
  color: var(--text);
  font-size: 0.95rem;
}

.account-option-main > span > span {
  color: var(--dim);
  font-size: 0.78rem;
}

.account-option-main small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.sms-option {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.sms-option input {
  width: 15px;
  min-width: 15px;
  height: 15px;
  min-height: 15px;
}

.sms-option.is-disabled {
  color: var(--dim);
  cursor: not-allowed;
  opacity: 0.52;
}

.account-empty {
  align-self: stretch;
  display: grid;
  place-items: center;
  min-height: 260px;
  padding: 16px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
  text-align: center;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  max-width: 360px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--text);
  color: var(--black);
  font-weight: 800;
  opacity: 0;
  transform: translateY(12px);
  transition: 180ms ease;
  z-index: 80;
}

body.processing-active .toast {
  bottom: 102px;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.processing-status {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 79;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  width: min(380px, calc(100vw - 44px));
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(24, 24, 25, 0.96);
  color: var(--text);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px);
}

.processing-status[hidden] {
  display: none;
}

.processing-status-dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: #62db7f;
  box-shadow: 0 0 0 0 rgba(98, 219, 127, 0.48);
  animation: processingPulse 1.45s ease-in-out infinite;
}

.processing-status-dot.is-ready {
  animation: none;
  background: #62db7f;
  box-shadow: 0 0 0 4px rgba(98, 219, 127, 0.12);
}

.processing-status-dot.is-error {
  animation: none;
  background: #ff756b;
  box-shadow: 0 0 0 4px rgba(255, 117, 107, 0.12);
}

.processing-status-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.processing-status-copy strong,
.processing-status-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.processing-status-copy strong {
  font-size: 0.9rem;
}

.processing-status-copy span {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.processing-status-action {
  min-height: 32px;
  padding: 0 12px;
}

@keyframes processingPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(98, 219, 127, 0.42);
    opacity: 1;
  }

  50% {
    box-shadow: 0 0 0 7px rgba(98, 219, 127, 0);
    opacity: 0.72;
  }
}

.empty {
  padding: 28px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

.inline-retry {
  justify-content: center;
  margin-top: 16px;
}

.compact-empty {
  padding: 18px;
  border-style: solid;
  background: rgba(255, 255, 255, 0.012);
  font-size: 0.92rem;
}

.load-diagnostics {
  margin: 10px auto 0;
  max-width: 760px;
  font-size: 0.82rem;
}

@media (max-width: 1080px) {
  .login-screen,
  .shell,
  .project-layout,
  .media-library-grid,
  .hero-band {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
  }

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

  .settings-layout,
  .integration-list {
    grid-template-columns: 1fr;
  }

  .invite-generator-card,
  .integration-settings {
    grid-column: auto;
  }

  .workspace-head {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  .login-screen {
    padding: 18px;
  }

  .login-panel h1 {
    font-size: 2.6rem;
  }

  .shell {
    display: block;
  }

  .sidebar {
    padding: 18px;
  }

  .workspace {
    padding: 20px 14px 42px;
  }

  .topbar,
  .list-row,
  .activity-row,
  .version-row,
  .media-card-head,
  .review-head {
    align-items: stretch;
    flex-direction: column;
  }

  .activity-row {
    display: flex;
  }

  .activity-time {
    text-align: left;
  }

  .topbar-actions,
  .media-head-actions,
  .inline-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .media-section-box {
    min-height: 0;
  }

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

  .media-delete-button {
    opacity: 1;
    transform: none;
  }

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

  .hero-band h2 {
    font-size: 2.4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .new-project-dot {
    animation: none;
    opacity: 1;
  }
}
