:root {
  color-scheme: light;
  --bg: #f5f7f8;
  --ink: #1d2628;
  --muted: #687477;
  --line: #dce3e5;
  --panel: #ffffff;
  --accent: #0f766e;
  --accent-dark: #115e59;
  --warn: #b45309;
}

.site-body,
.login-body {
  min-height: 100vh;
  margin: 0;
  color: #e8edf7;
  background:
    linear-gradient(rgba(92, 209, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(92, 209, 255, 0.035) 1px, transparent 1px),
    #090c14;
  background-size: 44px 44px;
  font-family: Inter, "Source Han Sans SC", "Microsoft YaHei", sans-serif;
}

.site-body::before,
.login-body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 72% 18%, rgba(92, 209, 255, 0.1), transparent 30%),
    linear-gradient(135deg, rgba(54, 224, 199, 0.06), transparent 36%);
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 22px 0;
  backdrop-filter: blur(16px);
}

.site-brand {
  color: #e8edf7;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 5px;
  text-decoration: none;
}

.site-nav nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-nav a {
  color: #8a98b5;
  text-decoration: none;
  font-size: 14px;
}

.site-nav a:hover,
.site-nav .employee-link {
  color: #5cd1ff;
}

.site-hero,
.site-section {
  position: relative;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.site-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.75fr);
  gap: 56px;
  align-items: center;
  min-height: 680px;
}

.site-hero h1 {
  max-width: 850px;
  margin: 18px 0 22px;
  color: #edf4ff;
  font-size: clamp(44px, 6vw, 82px);
  line-height: 1.04;
  letter-spacing: 6px;
}

.site-hero p,
.site-section p {
  max-width: 760px;
  color: #8a98b5;
  font-size: 17px;
  line-height: 1.8;
}

.site-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.site-primary,
.site-secondary,
.contact-card button,
.login-form button {
  border: 1px solid rgba(92, 209, 255, 0.36);
  border-radius: 6px;
  padding: 13px 20px;
  color: #090c14;
  background: linear-gradient(90deg, #36e0c7, #5cd1ff);
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.site-secondary {
  color: #e8edf7;
  background: rgba(18, 23, 34, 0.58);
}

.site-signal {
  position: relative;
  min-height: 360px;
  border: 1px solid rgba(92, 209, 255, 0.2);
  border-radius: 8px;
  padding: 34px;
  background: rgba(18, 23, 34, 0.44);
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.32), 0 8px 30px rgba(92, 209, 255, 0.06);
}

.site-signal span {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border: 1px dashed rgba(92, 209, 255, 0.26);
  background:
    linear-gradient(90deg, transparent 49%, rgba(92, 209, 255, 0.18) 50%, transparent 51%),
    linear-gradient(transparent 49%, rgba(92, 209, 255, 0.18) 50%, transparent 51%);
}

.site-signal strong {
  display: block;
  margin-top: 24px;
  color: #e8edf7;
  font-size: 36px;
  letter-spacing: 8px;
}

.site-signal em {
  display: block;
  margin-top: 10px;
  color: #36e0c7;
  font-style: normal;
  letter-spacing: 3px;
}

.site-section {
  padding: 86px 0;
}

.site-section-head {
  margin-bottom: 28px;
}

.site-section h2 {
  margin: 10px 0 0;
  color: #e8edf7;
  font-size: clamp(30px, 4vw, 52px);
  letter-spacing: 4px;
}

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

.site-grid article,
.contact-card,
.login-panel {
  border: 1px solid rgba(232, 237, 247, 0.1);
  border-radius: 8px;
  background: rgba(18, 23, 34, 0.52);
  box-shadow: 0 12px 42px rgba(92, 209, 255, 0.05);
}

.site-grid article {
  padding: 24px;
}

.site-grid span {
  color: #36e0c7;
  font-weight: 900;
  letter-spacing: 4px;
}

.site-grid h3 {
  color: #e8edf7;
  margin: 16px 0 8px;
}

.site-grid p {
  font-size: 14px;
  line-height: 1.7;
}

.site-band {
  display: grid;
  min-height: 330px;
  align-items: center;
  border-top: 1px dashed rgba(92, 209, 255, 0.18);
  border-bottom: 1px dashed rgba(92, 209, 255, 0.18);
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.65fr);
  gap: 38px;
  align-items: start;
}

.contact-card,
.login-form {
  display: grid;
  gap: 14px;
}

.contact-card {
  padding: 24px;
}

.contact-card label,
.login-form label {
  display: grid;
  gap: 8px;
  color: #8a98b5;
}

.contact-card input,
.contact-card textarea,
.login-form input {
  width: 100%;
  border: 1px solid rgba(232, 237, 247, 0.14);
  border-radius: 6px;
  padding: 12px 13px;
  color: #e8edf7;
  background: rgba(9, 12, 20, 0.58);
}

.contact-card textarea {
  min-height: 112px;
  resize: vertical;
}

.contact-result,
.login-error {
  min-height: 22px;
  margin: 0;
  color: #36e0c7;
}

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

.login-panel {
  width: min(430px, 100%);
  padding: 34px;
}

.login-panel h1 {
  color: #e8edf7;
  font-size: 48px;
  letter-spacing: 8px;
  margin: 12px 0 10px;
}

.login-panel p {
  color: #8a98b5;
  line-height: 1.7;
}

.login-error {
  color: #ff8a8a;
}

.back-home {
  display: inline-block;
  margin-top: 14px;
  color: #8a98b5;
}

@media (max-width: 860px) {
  .site-nav,
  .site-hero,
  .site-section {
    width: min(100% - 32px, 1180px);
  }

  .site-nav {
    align-items: flex-start;
    gap: 14px;
  }

  .site-nav nav {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
  }

  .site-hero,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .site-hero {
    min-height: auto;
    padding: 72px 0 40px;
  }

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

  .site-hero h1 {
    letter-spacing: 2px;
  }
}

.hidden {
  display: none !important;
}

.admin-body {
  background: #eef2f2;
}

.admin-shell {
  max-width: 1220px;
  margin: 0 auto;
  padding: 28px 22px 70px;
}

.admin-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 20px;
  padding: 28px;
  border-radius: 8px;
  color: white;
  background: #172326;
}

.admin-hero h1 {
  font-size: 34px;
}

.admin-hero p {
  color: rgba(255, 255, 255, 0.72);
  margin-top: 8px;
}

.eyebrow-dark {
  color: #7ddfd3;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.ghost-light {
  border: 1px solid rgba(255, 255, 255, 0.32);
  color: #172326;
  background: #ffffff;
}

.ghost-light:hover {
  color: #0f5f58;
  background: #ecfdf9;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.8fr);
  gap: 16px;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}

.archive-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #fbfcfc;
  cursor: pointer;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.archive-card:hover {
  border-color: #0f766e;
  transform: translateY(-1px);
}

.archive-card strong {
  font-size: 18px;
}

.archive-card p {
  color: var(--muted);
  margin-top: 6px;
}

.card-menu {
  position: relative;
}

.gear-btn {
  display: grid;
  place-items: center;
  width: 32px;
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0;
  color: #334244;
  background: #ffffff;
  font-size: 15px;
}

.gear-btn:hover {
  color: #0f5f58;
  background: #ecfdf9;
}

.card-menu-pop {
  position: absolute;
  z-index: 8;
  top: 38px;
  right: 0;
  min-width: 112px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(23, 35, 38, 0.15);
}

.menu-danger {
  width: 100%;
  min-height: 34px;
  border-radius: 6px;
  color: #9f1239;
  background: #fff1f2;
  font-size: 13px;
}

.menu-danger:hover {
  background: #ffe4e6;
}

.archive-stats {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.archive-stats span {
  border-radius: 999px;
  padding: 4px 9px;
  color: #0f5f58;
  background: #ecfdf9;
  font-size: 12px;
}

.archive-delete {
  display: none;
}

.manage-mode .archive-delete {
  display: inline-flex;
}

.manage-mode .archive-card {
  cursor: default;
}

.detail-top {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 16px;
}

.detail-top h2 {
  font-size: 28px;
}

.tabbar {
  display: flex;
  gap: 8px;
  margin: 16px 0;
}

.tabbar button {
  color: #223134;
  background: white;
  border: 1px solid var(--line);
}

.tabbar button.active {
  color: white;
  background: var(--accent);
}

.link-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  background: #fbfcfc;
}

.link-row .secondary-action {
  flex: 0 0 auto;
}

.link-row span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 13px;
}

.link-row a {
  color: #0f766e;
  word-break: break-all;
}

.boss-photo-control {
  flex: 0 0 auto;
}

.boss-photo-trigger {
  position: relative;
  width: 54px;
  height: 78px;
  min-width: 54px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(92, 209, 255, 0.32);
  border-radius: 6px;
  color: #8a98b5;
  background: rgba(8, 15, 27, 0.78);
}

.boss-photo-trigger:hover {
  border-color: rgba(92, 209, 255, 0.72);
  transform: translateY(-2px);
}

.boss-photo-trigger.is-uploading::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 20%, rgba(92, 209, 255, 0.22), transparent 80%);
  animation: photoUploadSweep 1s linear infinite;
}

.boss-photo-placeholder {
  display: grid;
  place-items: center;
  height: 100%;
  padding: 8px;
  font-size: 12px;
  line-height: 1.35;
}

.boss-photo-preview {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.public-link-copy {
  min-width: 0;
  flex: 1 1 auto;
}

@keyframes photoUploadSweep {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}

.secondary-action {
  min-width: 96px;
  color: #0f5f58;
  border: 1px solid #c8e3df;
  background: #ecfdf9;
}

.qa-block {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: 12px;
}

.qa-block strong {
  color: #182729;
}

.qa-block p {
  margin-top: 8px;
  color: #435154;
  line-height: 1.7;
}

.qa-block .learning-text {
  border-left: 3px solid #0f766e;
  padding-left: 10px;
  color: #0f5f58;
  background: #f0faf8;
}

.item-head,
.item-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.item-actions {
  justify-content: flex-end;
  margin-top: 12px;
}

.compact-actions {
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 8px;
}

.centered-actions {
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.mini-btn {
  min-height: 30px;
  border: 1px solid #c8e3df;
  border-radius: 6px;
  padding: 5px 9px;
  color: #0f5f58;
  background: #ecfdf9;
  font-size: 13px;
}

.mini-btn.danger {
  color: #9f1239;
  border-color: #fecdd3;
  background: #fff1f2;
}

.mini-btn.primary-mini {
  min-width: 148px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Microsoft YaHei", "Source Han Sans SC", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 240px;
  padding: 24px 18px;
  background: #172326;
  color: white;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: #14b8a6;
  font-weight: 800;
}

.brand small {
  display: block;
  color: #b9c7ca;
  margin-top: 4px;
}

nav {
  display: grid;
  gap: 8px;
}

nav a {
  color: #e6eeee;
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 6px;
}

nav a:hover {
  background: rgba(255, 255, 255, 0.09);
}

main {
  margin-left: 240px;
  padding: 28px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: 30px;
  line-height: 1.2;
}

.topbar p,
.panel-head span {
  color: var(--muted);
  margin-top: 8px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  margin-bottom: 18px;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 18px;
}

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

.panel-actions .secondary-action {
  min-height: 38px;
}

.grid-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}

.stack-form {
  display: grid;
  gap: 12px;
}

.form-row,
.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

label {
  display: grid;
  gap: 7px;
  color: #334244;
  font-size: 14px;
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  font: inherit;
  color: var(--ink);
  background: white;
}

textarea {
  min-height: 132px;
  resize: vertical;
  line-height: 1.55;
}

button {
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  padding: 10px 16px;
  font: inherit;
  font-weight: 700;
  color: white;
  background: var(--accent);
  cursor: pointer;
}

button:hover {
  background: var(--accent-dark);
}

.icon-btn {
  width: 82px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.card,
.list article,
.script-preview {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fbfcfc;
}

.card strong,
.list strong {
  display: block;
  margin-bottom: 8px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.chip {
  border: 1px solid #bedbd7;
  border-radius: 999px;
  padding: 3px 8px;
  color: #0f5f58;
  background: #ecfdf9;
  font-size: 12px;
}

.list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.script-preview {
  margin-top: 16px;
  white-space: pre-wrap;
  line-height: 1.7;
}

.compact-form {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.script-grid,
.client-script-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.script-card,
.client-script {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #fbfcfc;
}

.script-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.script-card-head span {
  border: 1px solid #cfe0dd;
  border-radius: 999px;
  padding: 3px 9px;
  color: #0f5f58;
  background: #f0faf8;
  font-size: 12px;
}

.script-card p {
  white-space: pre-wrap;
  line-height: 1.65;
}

.status-live {
  color: #075985 !important;
  border-color: #bae6fd !important;
  background: #e0f2fe !important;
}

.raw-text {
  margin-top: 12px;
  max-height: 420px;
  overflow: auto;
  white-space: pre-wrap;
  border: 1px solid #e2e8ea;
  border-radius: 8px;
  padding: 12px;
  color: #344245;
  background: #ffffff;
  line-height: 1.7;
}

.raw-text.compact {
  max-height: 260px;
}

.reference-card.editing .raw-text {
  max-height: none;
}

.reference-title-row,
.reference-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.referenceSelect {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: #36e0c7;
}

.library-reference-card .editable-reference-text {
  max-height: none;
}

.source-details {
  margin-top: 14px;
  border-top: 1px dashed rgba(92, 209, 255, 0.18);
  padding-top: 12px;
}

.source-details summary {
  cursor: pointer;
  color: #8a98b5;
  font-size: 13px;
  user-select: none;
}

.source-details[open] summary {
  color: #5cd1ff;
}

.source-original {
  max-height: 360px;
  margin-top: 10px;
}

.reference-card-actions .mini-btn {
  min-width: 58px;
}

.inline-editor {
  min-height: 260px;
  font-size: 14px;
  line-height: 1.7;
}

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

.sub-head {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.sub-block {
  display: grid;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.sub-block h3 {
  color: #253638;
}

.inline-hint {
  border: 1px solid #bae6fd;
  border-radius: 8px;
  padding: 10px 12px;
  color: #075985;
  background: #e0f2fe;
  font-size: 14px;
}

.add-script-btn {
  margin-top: 14px;
}

.script-bottom-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
}

.broll-library-panel {
  display: grid;
  gap: 14px;
}

.broll-card {
  overflow: hidden;
}

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

.broll-main img,
.broll-shot img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
  background: #edf2f3;
}

.broll-main img,
.broll-thumb-empty {
  aspect-ratio: 16 / 9;
}

.broll-thumb-empty {
  display: grid;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #f7f9fa;
}

.broll-shot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.broll-shot {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 10px;
  border: 1px solid #e2e8ea;
  border-radius: 8px;
  padding: 10px;
  background: #ffffff;
}

.broll-shot img {
  aspect-ratio: 16 / 9;
}

.wide-modal {
  width: min(680px, 100%);
}

.production-detail-modal {
  width: min(960px, calc(100vw - 32px));
  max-height: min(86vh, 980px);
  overflow: auto;
}

.production-detail-body {
  display: grid;
  gap: 18px;
  margin-top: 14px;
}

.detail-section {
  display: grid;
  gap: 10px;
}

.detail-section h3 {
  margin: 0;
  font-size: 15px;
}

.detail-section video {
  width: min(360px, 100%);
  max-height: 520px;
  background: #000;
}

.stage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
}

.stage-grid span,
.timeline-row {
  border: 1px solid rgba(90, 190, 255, 0.18);
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
}

.timeline-row {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 10px;
  align-items: start;
}

.timeline-row em {
  color: var(--muted);
  font-style: normal;
}

.segmented {
  display: inline-flex;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px;
  margin: 10px 0 16px;
  background: #f7f9fa;
}

.segmented button {
  min-height: 34px;
  border-radius: 6px;
  color: #334244;
  background: transparent;
}

.segmented button.active {
  color: white;
  background: var(--accent);
}

.copy-line {
  margin-top: 12px;
}

.copy-line input {
  font-size: 13px;
}

.script-preview h3 {
  margin-bottom: 10px;
}

.meta {
  color: var(--muted);
  font-size: 13px;
}

.warn {
  color: var(--warn);
}

#toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  max-width: 360px;
  padding: 12px 14px;
  border-radius: 8px;
  color: white;
  background: #172326;
  opacity: 0;
  transform: translateY(12px);
  transition: 0.18s ease;
  pointer-events: none;
}

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

.client-clean-body {
  min-height: 100vh;
  color: #e8edf7;
  background:
    linear-gradient(115deg, rgba(92, 209, 255, 0.055), transparent 28%),
    linear-gradient(180deg, #090c14 0%, #0b1019 46%, #090c14 100%);
}

.tech-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.42;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(232, 237, 247, 0.09) 1px, transparent 0),
    linear-gradient(90deg, rgba(92, 209, 255, 0.045) 1px, transparent 1px);
  background-size: 30px 30px, 160px 160px;
  mask-image: linear-gradient(180deg, black, transparent 78%);
}

.client-clean-main {
  position: relative;
  z-index: 1;
  max-width: 1040px;
  margin: 0 auto;
  padding: 46px 22px 88px;
}

.clean-hero {
  min-height: 72vh;
  display: grid;
  place-items: center;
  text-align: center;
}

.hero-frame {
  position: relative;
  width: min(980px, 100%);
  padding: 72px 38px;
}

.hero-frame::before,
.hero-frame::after {
  content: "";
  position: absolute;
  width: 56px;
  height: 56px;
  border-color: rgba(92, 209, 255, 0.42);
  border-style: solid;
  pointer-events: none;
}

.hero-frame::before {
  left: 0;
  top: 0;
  border-width: 1px 0 0 1px;
}

.hero-frame::after {
  right: 0;
  bottom: 0;
  border-width: 0 1px 1px 0;
}

.tech-kicker {
  color: #5cd1ff;
  font-family: Inter, "Space Grotesk", "Microsoft YaHei", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 8px;
  text-transform: uppercase;
}

.clean-hero h1 {
  max-width: 940px;
  margin: 18px auto 0;
  font-size: 58px;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: 8px;
  color: #e8edf7;
}

.title-identity,
.title-plan {
  display: block;
}

.title-identity {
  white-space: nowrap;
  font-size: 1.06em;
  letter-spacing: 5px;
  color: #cfd8e8;
}

.title-plan {
  margin-top: 14px;
  font-size: 0.72em;
  color: #e8edf7;
}

.clean-profile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 100px;
  align-items: center;
  gap: 28px;
  width: min(780px, 100%);
  max-width: none;
  margin: 30px auto 0;
  padding: 26px 30px;
  border-top: 1px solid rgba(92, 209, 255, 0.18);
  border-bottom: 1px solid rgba(92, 209, 255, 0.1);
  color: #8a98b5;
  text-align: left;
}

.clean-profile.photo-only {
  grid-template-columns: 100px;
  justify-content: center;
}

.clean-profile-copy {
  position: relative;
  padding-left: 20px;
  font-size: 16px;
  line-height: 1.9;
  color: #aebbd2;
}

.clean-profile-copy::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  bottom: 5px;
  width: 2px;
  background: linear-gradient(180deg, #5cd1ff, rgba(54, 224, 199, 0.12));
}

.clean-profile-photo {
  position: relative;
  width: 100px;
  aspect-ratio: 9 / 16;
  margin: 0;
  padding: 5px;
  border: 1px solid rgba(92, 209, 255, 0.22);
  border-radius: 6px;
  background: rgba(18, 23, 34, 0.72);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.26), 0 4px 18px rgba(92, 209, 255, 0.07);
}

.clean-profile-photo::before,
.clean-profile-photo::after {
  content: "";
  position: absolute;
  z-index: 1;
  width: 22px;
  height: 22px;
  pointer-events: none;
}

.clean-profile-photo::before {
  left: -5px;
  top: -5px;
  border-left: 1px solid #5cd1ff;
  border-top: 1px solid #5cd1ff;
}

.clean-profile-photo::after {
  right: -5px;
  bottom: -5px;
  border-right: 1px solid #36e0c7;
  border-bottom: 1px solid #36e0c7;
}

.clean-profile-photo img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 3px;
  object-fit: cover;
}

.clean-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 42px;
}

.primary-soft,
.secondary-soft {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(92, 209, 255, 0.28);
  color: #e8edf7;
  background: rgba(18, 23, 34, 0.62);
  box-shadow: 0 4px 18px rgba(92, 209, 255, 0.07);
}

.primary-soft {
  border-color: rgba(92, 209, 255, 0.55);
  background: rgba(92, 209, 255, 0.12);
}

.primary-soft::before,
.secondary-soft::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 -48px;
  width: 42px;
  background: linear-gradient(90deg, transparent, rgba(92, 209, 255, 0.28), transparent);
  transform: skewX(-18deg);
  transition: transform 260ms ease;
}

.primary-soft:hover::before,
.secondary-soft:hover::before {
  transform: translateX(180px) skewX(-18deg);
}

.small-btn {
  min-height: 34px;
  padding: 7px 12px;
  font-size: 14px;
}

.clean-panel {
  position: relative;
  border: 1px solid rgba(92, 209, 255, 0.16);
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 18px;
  background: rgba(18, 23, 34, 0.72);
  box-shadow: 0 4px 18px rgba(92, 209, 255, 0.07);
  backdrop-filter: blur(10px);
  animation: panelIn 250ms ease both;
}

.clean-panel::before {
  content: "";
  position: absolute;
  left: 18px;
  top: -1px;
  width: 72px;
  height: 1px;
  background: linear-gradient(90deg, #5cd1ff, transparent);
}

.clean-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.clean-panel-head h2 {
  color: #e8edf7;
  letter-spacing: 4px;
}

.clean-task-list,
.clean-history {
  display: grid;
  gap: 12px;
}

.clean-task,
.clean-history-item {
  border: 1px solid rgba(232, 237, 247, 0.1);
  border-radius: 8px;
  padding: 18px;
  background: rgba(9, 12, 20, 0.4);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.clean-task:hover,
.clean-history-item:hover {
  transform: translateY(-3px);
  border-color: rgba(92, 209, 255, 0.36);
  box-shadow: 0 8px 26px rgba(92, 209, 255, 0.08);
}

.clean-task-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.clean-task-head span,
.clean-history-item span {
  color: #36e0c7;
  font-size: 13px;
  font-weight: 800;
}

.script-body {
  white-space: pre-wrap;
  color: #dce6f4;
  line-height: 1.8;
}

.clean-task form {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.uploadProgress {
  position: relative;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(232, 237, 247, 0.1);
}

.uploadProgressFill {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #36e0c7, #5cd1ff);
  box-shadow: 0 0 18px rgba(92, 209, 255, 0.35);
  transition: width 160ms ease;
}

.uploadStatus {
  margin: 0;
  color: #8a98b5;
  font-size: 13px;
  line-height: 1.5;
}

.clientUpload.is-uploading button {
  cursor: wait;
  opacity: 0.72;
}

.submitted-video-box {
  display: grid;
  justify-items: center;
  gap: 14px;
  margin-top: 16px;
  padding: 14px 0 4px;
}

.submitted-video-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
}

.compactUpload {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 44px;
  margin: 0;
  padding: 0;
  border-top: 0;
}

.compactUpload .uploadProgress,
.compactUpload .uploadStatus {
  flex-basis: min(360px, 100%);
}

.submitted-video-actions > button,
.submitted-video-actions .replaceVideoBtn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 132px;
  height: 44px;
  margin: 0;
}

.submitted-video-actions .secondary-soft::before {
  display: none;
}

.clientReplaceFile,
.compactUpload .clientReplaceFile {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  border: 0 !important;
  padding: 0 !important;
}

.compactUpload .uploadProgress.hidden,
.compactUpload .uploadStatus.hidden {
  display: none !important;
}

.progress-meta {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
  color: #8a98b5;
  font-size: 12px;
}

#progressFill {
  width: 0%;
  transition: width 220ms ease;
}

.client-preview {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.client-preview video {
  width: min(360px, 100%);
  border: 1px solid rgba(92, 209, 255, 0.2);
  border-radius: 8px;
  background: #05070c;
}

.history-day {
  display: grid;
  gap: 10px;
}

.history-day h3 {
  margin: 4px 0;
  color: #5cd1ff;
  font-size: 14px;
  letter-spacing: 3px;
}

.production-task-card {
  border-left: 3px solid rgba(92, 209, 255, 0.42);
}

.production-workspace {
  overflow: hidden;
  border: 1px solid rgba(92, 209, 255, 0.16);
  padding: 28px;
  color: #e8edf7;
  background:
    linear-gradient(rgba(92, 209, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(92, 209, 255, 0.03) 1px, transparent 1px),
    radial-gradient(circle at 78% 8%, rgba(92, 209, 255, 0.14), transparent 30%),
    radial-gradient(circle at 12% 88%, rgba(120, 230, 143, 0.08), transparent 26%),
    #0b1320;
  background-size: 44px 44px, 44px 44px, auto, auto;
  box-shadow: 0 28px 90px rgba(4, 10, 18, 0.18);
}

.production-workspace-head,
.production-page-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}

.production-workspace-head h2,
.production-page-title h3 {
  margin-top: 8px;
  color: #f3f7ff;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.06;
  letter-spacing: 2px;
}

.tech-kicker-admin {
  margin: 0;
  color: #5cd1ff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 5px;
}

.production-workspace .secondary-action,
.production-workspace .mini-btn,
.production-workspace button {
  border: 1px solid rgba(92, 209, 255, 0.24);
  color: #e8edf7;
  background: rgba(18, 31, 50, 0.82);
}

.production-workspace .secondary-action:hover,
.production-workspace .mini-btn:hover,
.production-workspace button:hover {
  border-color: rgba(92, 209, 255, 0.55);
  background: rgba(32, 72, 96, 0.8);
}

.production-flowline {
  display: none;
}

.production-flowline span {
  position: relative;
  color: #8a98b5;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
}

.production-flowline span::after {
  content: "";
  display: block;
  height: 3px;
  margin-top: 8px;
  border-radius: 999px;
  background: rgba(138, 152, 181, 0.18);
}

.production-flowline span.active {
  color: #5cd1ff;
}

.production-flowline span.active::after {
  background: linear-gradient(90deg, #5cd1ff, #78e68f);
  box-shadow: 0 0 16px rgba(92, 209, 255, 0.22);
}

.production-workspace .production-tabs {
  border-color: rgba(92, 209, 255, 0.16);
  background: rgba(9, 16, 28, 0.68);
}

.production-workspace .production-tabs button {
  color: #8a98b5;
  background: transparent;
}

.production-workspace .production-tabs button.active {
  color: #06111d;
  background: linear-gradient(90deg, #5cd1ff, #78e68f);
}

.production-page {
  min-height: 560px;
  border: 1px solid rgba(92, 209, 255, 0.14);
  border-radius: 8px;
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(22, 38, 61, 0.78), rgba(8, 15, 27, 0.78)),
    rgba(8, 15, 27, 0.68);
  box-shadow: inset 0 1px 0 rgba(232, 237, 247, 0.035), 0 20px 80px rgba(0, 0, 0, 0.18);
}

.production-task-grid {
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  align-items: stretch;
  gap: 16px;
}

.production-workspace .production-task-card,
.production-workspace .production-detail-card,
.production-workspace .broll-card,
.production-workspace .list article {
  position: relative;
  border: 1px solid rgba(92, 209, 255, 0.16);
  border-radius: 8px;
  padding: 18px;
  color: #e8edf7;
  background: rgba(18, 31, 50, 0.72);
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(232, 237, 247, 0.04);
}

.production-workspace .production-task-card {
  display: grid;
  align-content: space-between;
  min-height: 240px;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.production-workspace .production-task-card:hover {
  transform: translateY(-3px);
  border-color: rgba(92, 209, 255, 0.4);
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.24), 0 0 0 1px rgba(92, 209, 255, 0.06);
}

.production-workspace .production-task-card::before,
.production-workspace .production-detail-card::before {
  content: "";
  position: absolute;
  top: -1px;
  right: 18px;
  width: 76px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #5cd1ff);
}

.production-task-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  color: #5cd1ff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 2px;
}

.production-task-topline span:last-child {
  border: 1px solid rgba(92, 209, 255, 0.2);
  border-radius: 999px;
  padding: 4px 9px;
  color: #9cc8e7;
  background: rgba(92, 209, 255, 0.08);
  letter-spacing: 0;
  white-space: nowrap;
}

.production-workspace .status-live {
  border-color: rgba(120, 230, 143, 0.28) !important;
  color: #78e68f !important;
  background: rgba(120, 230, 143, 0.1) !important;
}

.production-workspace .warn {
  color: #f7c56b !important;
}

.production-task-title {
  color: #f3f7ff;
  font-size: 22px;
  line-height: 1.35;
}

.production-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0;
}

.production-metrics span {
  min-height: 54px;
  border: 1px solid rgba(92, 209, 255, 0.12);
  border-radius: 8px;
  padding: 10px;
  color: #9aa8c2;
  background: rgba(5, 11, 20, 0.42);
  font-size: 12px;
  line-height: 1.45;
  overflow: hidden;
  text-overflow: ellipsis;
}

.production-workspace .meta,
.production-workspace label,
.production-workspace .empty-state p {
  color: #8a98b5;
}

.production-workspace .raw-text,
.production-workspace input,
.production-workspace select,
.production-workspace textarea {
  border-color: rgba(232, 237, 247, 0.12);
  color: #e8edf7;
  background: rgba(5, 11, 20, 0.72);
}

.production-workspace .inline-hint {
  border-color: rgba(92, 209, 255, 0.18);
  color: #9cc8e7;
  background: rgba(92, 209, 255, 0.08);
}

.production-workspace .production-progress span {
  border-color: rgba(232, 237, 247, 0.1);
  color: #8a98b5;
  background: rgba(5, 11, 20, 0.5);
}

.production-workspace .production-progress span.done {
  border-color: rgba(92, 209, 255, 0.34);
  color: #5cd1ff;
  background: rgba(92, 209, 255, 0.1);
}

.production-page-detail {
  display: grid;
  gap: 16px;
}

.production-detail-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(280px, 0.8fr);
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(92, 209, 255, 0.12);
}

.production-detail-hero strong {
  display: block;
  margin-top: 6px;
  color: #f3f7ff;
  font-size: clamp(24px, 3vw, 42px);
  line-height: 1.12;
}

.production-detail-state .production-progress {
  margin: 0;
}

.production-detail-state > span {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 40px;
  border: 1px solid rgba(92, 209, 255, 0.2);
  border-radius: 999px;
  padding: 8px 14px;
  color: #9cc8e7;
  background: rgba(92, 209, 255, 0.08);
  font-weight: 800;
}

.production-done-card .raw-text {
  max-height: 180px;
}

.production-page-form {
  margin-top: 16px;
  border: 1px solid rgba(92, 209, 255, 0.14);
  border-radius: 8px;
  padding: 16px;
  background: rgba(5, 11, 20, 0.45);
}

.production-upload-form {
  border: 1px solid rgba(92, 209, 255, 0.12);
  border-radius: 8px;
  padding: 16px;
  background: rgba(9, 16, 28, 0.48);
}

.production-workspace .production-stage-grid section {
  border-color: rgba(232, 237, 247, 0.1);
  background: rgba(5, 11, 20, 0.48);
}

.production-workspace .production-candidate,
.production-workspace .broll-shot.production-candidate {
  border-color: rgba(92, 209, 255, 0.16);
  color: #dce7f7;
  background: rgba(5, 11, 20, 0.58);
  box-shadow: inset 0 1px 0 rgba(232, 237, 247, 0.035);
}

.production-workspace .production-candidate img,
.production-workspace .broll-shot.production-candidate img {
  border-color: rgba(92, 209, 255, 0.16);
  background: #050b14;
}

.production-workspace .production-candidate .chip {
  border-color: rgba(92, 209, 255, 0.18);
  color: #9cc8e7;
  background: rgba(92, 209, 255, 0.08);
}

.production-workspace .production-stage-grid h3 {
  color: #dce7f7;
}

.production-workspace .timeline-row {
  border-color: rgba(92, 209, 255, 0.14);
  color: #cbd7e8;
  background: rgba(5, 11, 20, 0.44);
}

.bulk-check {
  display: inline-flex;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px;
  color: inherit;
  font-size: inherit;
}

.bulk-check input {
  width: 16px;
  min-height: 16px;
}

.production-bulk-bar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(92, 209, 255, 0.18);
  border-radius: 8px;
  padding: 10px 12px;
  color: #e8edf7;
  background: rgba(5, 11, 20, 0.86);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.production-bulk-bar strong {
  margin: 0 8px 0 0;
}

.production-progress {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin: 12px 0;
}

.production-progress span {
  min-height: 30px;
  border: 1px solid #d7e3e5;
  border-radius: 6px;
  padding: 6px 8px;
  color: #687477;
  background: #f7f9fa;
  font-size: 12px;
  text-align: center;
}

.production-progress span.done {
  color: #0f5f58;
  border-color: #a9d7d1;
  background: #ecfdf9;
}

.production-task-detail,
.production-form-panel {
  margin-top: 16px;
}

.production-detail-card {
  border: 1px solid #c8e3df;
  border-radius: 8px;
  padding: 18px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(15, 118, 110, 0.06);
}

.production-stage-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.production-stage-grid section {
  border: 1px solid #e2e8ea;
  border-radius: 8px;
  padding: 14px;
  background: #fbfcfc;
}

.production-stage-grid h3 {
  margin-bottom: 10px;
  color: #253638;
  font-size: 15px;
}

.production-stage-grid video {
  width: min(320px, 100%);
  max-height: 480px;
  border-radius: 8px;
  background: #000;
}

.subtitle-template-panel {
  margin: 14px 0;
  padding-top: 14px;
  border-top: 1px dashed #cad8da;
}

.subtitle-template-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.subtitle-template-head span {
  color: #5b6d70;
  font-size: 12px;
}

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

.subtitle-template-card {
  display: grid;
  gap: 9px;
  padding: 10px;
  border: 1px solid #dce6e7;
  border-radius: 6px;
  background: #fff;
}

.subtitle-template-card.selected {
  border-color: #16877e;
  box-shadow: 0 0 0 1px rgba(22, 135, 126, 0.14);
}

.subtitle-preview {
  position: relative;
  display: grid;
  place-items: end center;
  min-height: 176px;
  padding: 76px 12px 24px;
  overflow: hidden;
  border-radius: 4px;
  background: linear-gradient(145deg, #6e8790, #bec9c7 55%, #526f67);
}

.subtitle-preview span {
  max-width: 75%;
  text-align: center;
  line-height: 1.28;
  letter-spacing: 1px;
}

.subtitle-universal span {
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.subtitle-business span {
  color: #f2d0aa;
  font-size: 21px;
  font-weight: 800;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.subtitle-business::before {
  content: "\54C1\8D28\7BA1\63A7\7684\771F\76F8";
  position: absolute;
  top: 16px;
  left: 12px;
  right: 12px;
  color: #fff;
  font-size: 26px;
  font-weight: 800;
  text-align: center;
  line-height: 1.2;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.subtitle-emotion span {
  color: #fff;
  font-size: 23px;
  font-weight: 800;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.subtitle-emotion::before {
  content: "\6211\7684\4E00\573A\751F\524D\6B7B";
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  color: #fff;
  font-size: 27px;
  font-weight: 800;
  text-align: center;
  line-height: 1.2;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.subtitle-clean {
  background: linear-gradient(145deg, #263039, #64574c 55%, #20282f);
}

.subtitle-clean span {
  color: #ffe800;
  font-size: 21px;
  font-weight: 800;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.subtitle-clean::before {
  content: "\0032\0030\0032\0036\5E74\89C6\9891\53F7\0049\0050\A\6700\8D5A\94B1\7684\0035\5927\8D8B\52BF";
  white-space: pre;
  position: absolute;
  top: 14px;
  left: 12px;
  right: 12px;
  color: #fff;
  font-size: 25px;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.subtitle-template-copy strong {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #213436;
  font-size: 14px;
}

.subtitle-template-copy em {
  color: #16877e;
  font-size: 11px;
  font-style: normal;
}

.subtitle-template-copy p,
.subtitle-template-copy small {
  display: block;
  margin-top: 3px;
  color: #6c7c7e;
  font-size: 11px;
}

.subtitle-template-card button:disabled {
  color: #fff;
  border-color: #16877e;
  background: #16877e;
  opacity: 1;
}

.timeline-compact {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.clean-history-item p {
  color: #8a98b5;
  margin-top: 6px;
}

.modal-mask {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(4, 7, 12, 0.78);
  backdrop-filter: blur(14px);
}

.modal-card {
  position: relative;
  z-index: 51;
  width: min(420px, 100%);
  border-radius: 8px;
  padding: 26px;
  border: 1px solid rgba(92, 209, 255, 0.24);
  color: #e8edf7;
  background: #121722;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
}

.modal-card::before,
.modal-card::after {
  content: "";
  position: absolute;
  width: 42px;
  height: 42px;
  border-color: rgba(92, 209, 255, 0.52);
  border-style: solid;
}

.modal-card::before {
  top: -1px;
  left: -1px;
  border-width: 1px 0 0 1px;
}

.modal-card::after {
  right: -1px;
  bottom: -1px;
  border-width: 0 1px 1px 0;
}

.modal-card strong {
  font-size: 22px;
}

.modal-card p {
  color: #8a98b5;
  margin-top: 10px;
  line-height: 1.7;
}

.client-clean-body input,
.client-clean-body textarea,
.client-clean-body select {
  border-color: rgba(232, 237, 247, 0.12);
  color: #e8edf7;
  background: rgba(9, 12, 20, 0.56);
}

.client-clean-body input::file-selector-button {
  border: 0;
  border-radius: 4px;
  margin-right: 10px;
  padding: 8px 10px;
  color: #090c14;
  background: #5cd1ff;
}

.client-clean-body label,
.client-clean-body .meta,
.client-clean-body .empty-state p {
  color: #8a98b5;
}

.client-clean-body .empty-state {
  border-color: rgba(92, 209, 255, 0.18);
  background: rgba(9, 12, 20, 0.34);
}

.client-clean-body .empty-state strong {
  color: #e8edf7;
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.modal-actions button {
  min-width: 132px;
}

.client-clean-body .modal-mask {
  z-index: 100;
  background: rgba(4, 7, 12, 0.86);
}

.client-clean-body .modal-card {
  width: min(630px, calc(100vw - 40px));
  padding: 34px 38px;
  text-align: center;
  background: #121722;
  border-color: rgba(92, 209, 255, 0.4);
  box-shadow: 0 32px 120px rgba(0, 0, 0, 0.68);
}

.client-clean-body .modal-card .tech-kicker {
  margin-bottom: 14px;
}

.client-clean-body .modal-card strong,
.client-clean-body .modal-card p,
.client-clean-body .modal-actions {
  position: relative;
  z-index: 2;
}

.client-clean-body .modal-card strong {
  display: block;
  color: #e8edf7;
  font-size: 28px;
  line-height: 1.25;
}

.client-clean-body .modal-card p {
  max-width: 480px;
  margin: 14px auto 0;
  color: #9aa8c2;
  font-size: 16px;
}

.client-clean-body .modal-actions {
  margin-top: 28px;
}

.admin-progress-card {
  color: #172326;
  background: #ffffff;
}

.admin-progress-card p {
  color: #687477;
}

.progress-track {
  position: relative;
  overflow: hidden;
  height: 6px;
  margin-top: 18px;
  border-radius: 999px;
  background: #dce3e5;
}

.progress-track span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0f766e, #5cd1ff);
  animation: none;
  transform: none;
  transition: width 220ms ease;
}

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

@keyframes progressSweep {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(270%);
  }
}

.client-script textarea {
  min-height: 210px;
  white-space: pre-wrap;
}

.clientRevision,
.clientUpload {
  display: grid;
  gap: 10px;
}

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

.submitted-video-actions .clientUpload.compactUpload {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.ghost-btn {
  border: 1px solid #bdd6d2;
  color: white;
  background: rgba(255, 255, 255, 0.1);
}

.ghost-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.issue-label {
  display: inline-block;
  margin-right: 8px;
  color: #0f766e;
  font-size: 13px;
  font-weight: 800;
}

.empty-state {
  border: 1px dashed #cbdada;
  border-radius: 8px;
  padding: 24px;
  text-align: center;
  background: #fbfcfc;
}

.empty-state strong {
  display: block;
  margin-bottom: 8px;
  color: #253638;
}

.empty-state p {
  color: var(--muted);
}

.timeline {
  display: grid;
  gap: 10px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 14px;
  align-items: start;
  border-left: 3px solid #0f766e;
  padding: 12px 0 12px 14px;
  background: #fbfcfc;
}

.timeline-item span {
  color: var(--muted);
  font-size: 13px;
}

.timeline-item p {
  color: var(--muted);
  margin-top: 4px;
}

.admin-body {
  color: #e8edf7;
  background:
    linear-gradient(rgba(92, 209, 255, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(92, 209, 255, 0.022) 1px, transparent 1px),
    radial-gradient(circle at 82% 8%, rgba(92, 209, 255, 0.12), transparent 30%),
    radial-gradient(circle at 12% 86%, rgba(54, 224, 199, 0.07), transparent 28%),
    #090c14;
  background-size: 44px 44px, 44px 44px, auto, auto;
}

.admin-hero,
.panel,
.archive-card,
.script-card,
.reference-card,
.list article,
.link-row,
.script-preview,
.card {
  border-color: rgba(92, 209, 255, 0.16);
  color: #e8edf7;
  background: rgba(18, 31, 50, 0.72);
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.16), inset 0 1px 0 rgba(232, 237, 247, 0.04);
}

.panel,
.archive-card,
.script-card,
.reference-card,
.list article {
  position: relative;
}

.panel::before,
.archive-card::before,
.script-card::before,
.reference-card::before {
  content: "";
  position: absolute;
  top: -1px;
  right: 18px;
  width: 76px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(92, 209, 255, 0.9));
}

.admin-hero {
  background:
    linear-gradient(135deg, rgba(92, 209, 255, 0.1), transparent 36%),
    rgba(18, 31, 50, 0.78);
}

.panel-head h2,
.detail-top h2,
.archive-card strong,
.script-card strong,
.list strong,
.sub-block h3 {
  color: #f3f7ff;
}

.panel-head span,
.topbar p,
.archive-card p,
.qa-block p,
.script-card p,
.raw-text,
.meta,
label,
.empty-state p,
.link-row span {
  color: #8a98b5;
}

.tabbar button,
.segmented,
.secondary-action,
.mini-btn,
.gear-btn,
input,
select,
textarea,
.raw-text,
.inline-hint,
.broll-thumb-empty,
.sub-block {
  border-color: rgba(92, 209, 255, 0.16);
  color: #e8edf7;
  background: rgba(8, 15, 27, 0.68);
}

input::placeholder,
textarea::placeholder {
  color: rgba(138, 152, 181, 0.72);
}

.tabbar button.active,
.segmented button.active,
button,
.secondary-action:hover,
.mini-btn:hover {
  border-color: rgba(92, 209, 255, 0.42);
  color: #06111d;
  background: linear-gradient(90deg, #5cd1ff, #78e68f);
}

.secondary-action,
.mini-btn,
.tabbar button,
.segmented button {
  color: #dce7f7;
  background: rgba(18, 31, 50, 0.82);
}

.archive-stats span,
.script-card-head span,
.status-live {
  border-color: rgba(120, 230, 143, 0.28) !important;
  color: #78e68f !important;
  background: rgba(120, 230, 143, 0.1) !important;
}

.empty-state {
  border-color: rgba(92, 209, 255, 0.18);
  background: rgba(8, 15, 27, 0.5);
}

.empty-state strong {
  color: #e8edf7;
}

.admin-progress-card {
  color: #e8edf7;
  background: #121722;
}

.admin-progress-card p {
  color: #8a98b5;
}

@media (max-width: 900px) {
  .sidebar {
    position: static;
    width: auto;
  }

  main {
    margin-left: 0;
    padding: 18px;
  }

  .topbar,
  .panel-head,
  .client-hero,
  .admin-hero,
  .detail-top,
  .clean-panel-head {
    display: grid;
  }

  .grid-form,
  .form-row,
  .two-col,
  .profile-intro,
  .timeline-item,
  .split-layout,
  .production-stage-grid,
  .production-detail-hero,
  .production-metrics,
  .production-progress {
    grid-template-columns: 1fr;
  }

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

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

  .clean-hero h1 {
    font-size: 34px;
    letter-spacing: 4px;
  }

  .title-identity {
    white-space: normal;
    font-size: 0.9em;
  }

  .title-plan {
    font-size: 0.7em;
  }

  .link-row {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .public-link-copy {
    flex-basis: calc(100% - 72px);
  }

  .clean-profile {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 22px 12px;
  }

  .clean-profile-photo {
    width: 96px;
    justify-self: center;
  }

  .tabbar {
    overflow-x: auto;
  }
}
