html, body {
  margin: 0;
  padding: 0;
  background: #0b0d12;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #ffffff;
}

* {
  box-sizing: border-box;
}

a {
  text-decoration: none;
}

.ai-director-body {
  background: #0b0d12;
}

.dashboard-page {
  display: flex;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(68, 92, 255, 0.10), transparent 28%),
    radial-gradient(circle at top right, rgba(88, 122, 255, 0.08), transparent 30%),
    linear-gradient(180deg, #0b0d12 0%, #10131b 100%);
}

.sidebar {
  display: flex;
  flex-direction: column;
  width: 280px;
  padding: 28px 22px;
  background: rgba(12, 15, 22, 0.88);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
}

.brand-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 6px 22px;
}

.brand-logo {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: linear-gradient(145deg, #0f1420, #1b2233);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 1px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}

.brand-text h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.1;
  font-weight: 700;
  color: #f4f7ff;
}

.brand-text p {
  margin: 8px 0 0;
  font-size: 15px;
  color: rgba(255,255,255,0.70);
  line-height: 1.4;
}

.brand-text.only-text {
  padding: 6px 4px 16px;
}

.brand-text.only-text h1 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 700;
  color: #f4f7ff;
}

.brand-text.only-text p {
  margin: 8px 0 0;
  font-size: 13px;
  color: rgba(255,255,255,0.62);
  line-height: 1.5;
}

.sidebar-divider {
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: 8px 0 18px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-logout {
  margin-top: auto;
  padding-top: 24px;
}

.sidebar-logout form.button_to {
  margin: 0;
  width: 100%;
}

.logout-btn {
  width: 100%;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.logout-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 14px;
  border-radius: 14px;
  color: rgba(255,255,255,0.82);
  font-size: 18px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.nav-item:hover {
  background: rgba(255,255,255,0.05);
  color: #ffffff;
}

.nav-item.active {
  background: linear-gradient(90deg, rgba(91, 115, 255, 0.22), rgba(91, 115, 255, 0.08));
  color: #7fa2ff;
  box-shadow: inset 1px 0 0 #7fa2ff;
}

.nav-icon {
  width: 24px;
  text-align: center;
  font-size: 18px;
  opacity: 0.95;
}

.main-content {
  flex: 1;
  padding: 40px 48px 56px;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.page-header.simple {
  display: block;
}

.page-actions {
  flex-shrink: 0;
}

.page-header h2 {
  margin: 0;
  font-size: 48px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -1px;
  color: #f7f9ff;
}

.page-header p {
  margin: 12px 0 0;
  font-size: 17px;
  color: rgba(255,255,255,0.64);
  line-height: 1.8;
  max-width: 860px;
}

.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  border-radius: 14px;
  background: linear-gradient(135deg, #5b73ff, #7fa2ff);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(91,115,255,0.28);
}

.primary-btn:hover {
  transform: translateY(-1px);
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}

.summary-card,
.content-card,
.module-card,
.parameter-card,
.shot-card,
.output-card {
  background: linear-gradient(180deg, rgba(28,33,48,0.92), rgba(22,26,38,0.96));
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 10px 30px rgba(0,0,0,0.22);
  border-radius: 20px;
}

.summary-card {
  padding: 22px;
}

.summary-label {
  font-size: 15px;
  color: rgba(255,255,255,0.58);
  margin-bottom: 12px;
}

.summary-value {
  font-size: 38px;
  font-weight: 700;
  color: #ffffff;
}

.summary-value.small {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
  word-break: break-word;
}

.project-brief {
  margin-top: 8px;
  font-size: 16px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.70);
}

.project-brief p {
  margin: 0 0 12px;
}

.project-brief p:last-child {
  margin-bottom: 0;
}

.result-block {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.section-header + .result-block {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.result-block h4 {
  margin: 0 0 12px;
  font-size: 17px;
  font-weight: 600;
  color: #e8ecff;
}

.result-content {
  font-size: 15px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.68);
}

.result-content p {
  margin: 0 0 10px;
}

.result-content p:last-child {
  margin-bottom: 0;
}

.result-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 8px;
}

.meta-item {
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.meta-label {
  display: block;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.48);
  margin-bottom: 8px;
}

.meta-value {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
  word-break: break-word;
}

@media (max-width: 768px) {
  .result-meta-grid {
    grid-template-columns: 1fr;
  }
}

.content-card {
  padding: 24px;
}

.section-header h3 {
  margin: 0;
  font-size: 24px;
  color: #ffffff;
}

.section-header p {
  margin: 8px 0 0;
  color: rgba(255,255,255,0.58);
}

.table-wrap {
  margin-top: 22px;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 16px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  text-align: left;
}

.data-table th {
  color: rgba(255,255,255,0.60);
  font-size: 14px;
  font-weight: 600;
}

.data-table td {
  color: #f4f7ff;
  font-size: 15px;
}

.project-table {
  width: 100%;
  border-collapse: collapse;
}

.project-table th,
.project-table td {
  padding: 16px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  text-align: left;
}

.project-table th {
  color: rgba(255,255,255,0.60);
  font-size: 14px;
  font-weight: 600;
}

.project-table td {
  color: #f4f7ff;
  font-size: 15px;
}

.project-table .table-empty {
  color: rgba(255,255,255,0.55);
  text-align: center;
}

.text-link {
  color: #8fb0ff;
}

.module-grid,
.shot-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.module-card,
.shot-card,
.output-card {
  padding: 24px;
}

.module-card {
  min-height: 180px;
}

.module-card h3,
.parameter-card h3,
.shot-card h3,
.output-card h3 {
  margin: 0 0 12px;
  font-size: 24px;
  color: #ffffff;
}

.module-card p,
.parameter-card p,
.shot-card p,
.output-card p {
  margin: 0;
  font-size: 16px;
  color: rgba(255,255,255,0.66);
  line-height: 1.8;
}

.parameter-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 1100px;
}

.parameter-card {
  min-height: 120px;
  padding: 28px;
}

.shot-card {
  min-height: 220px;
}

.shot-index {
  display: inline-block;
  margin-bottom: 16px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(127,162,255,0.12);
  border: 1px solid rgba(127,162,255,0.24);
  color: #9db7ff;
  font-size: 13px;
}

.output-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
}

.output-card.large {
  grid-row: span 2;
}

.preview-box {
  min-height: 360px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.03);
  border: 1px dashed rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.38);
  font-size: 18px;
  margin-bottom: 16px;
}

.status-list {
  margin: 0;
  padding-left: 20px;
  color: rgba(255,255,255,0.72);
  line-height: 2;
}

/* Dashboard home */
.hero-section {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 28px;
  align-items: stretch;
  margin-bottom: 28px;
}

.hero-left .page-badge {
  display: inline-block;
  margin-bottom: 16px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #9db7ff;
  background: rgba(127, 162, 255, 0.12);
  border: 1px solid rgba(127, 162, 255, 0.24);
}

.hero-left h3 {
  margin: 0 0 14px;
  font-size: 28px;
  font-weight: 700;
  color: #f7f9ff;
  line-height: 1.25;
}

.hero-left > p {
  margin: 0 0 22px;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.66);
  line-height: 1.85;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e8ecff;
  font-weight: 600;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.secondary-btn:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(127, 162, 255, 0.35);
  color: #fff;
}

.hero-panel {
  height: 100%;
  padding: 24px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(28, 33, 48, 0.92), rgba(22, 26, 38, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}

.hero-panel-title {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 18px;
  letter-spacing: 0.04em;
}

.flow-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.flow-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.02);
}

.flow-item.active {
  border-color: rgba(127, 162, 255, 0.35);
  background: rgba(91, 115, 255, 0.10);
}

.flow-index {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  color: #9db7ff;
  background: rgba(127, 162, 255, 0.14);
}

.flow-item h4 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 600;
  color: #f4f7ff;
}

.flow-item p {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.58);
  line-height: 1.6;
}

.module-card .card-footer {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.bottom-panels {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 8px;
}

.timeline-list {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.timeline-item:last-child {
  border-bottom: none;
}

.timeline-dot {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  margin-top: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5b73ff, #7fa2ff);
  box-shadow: 0 0 0 3px rgba(91, 115, 255, 0.2);
}

.timeline-item h4 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 600;
  color: #f4f7ff;
}

.timeline-item p {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.58);
  line-height: 1.65;
}

.info-list {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.info-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.info-item:last-child {
  border-bottom: none;
}

.info-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.52);
  flex-shrink: 0;
}

.info-value {
  font-size: 14px;
  color: #e8ecff;
  text-align: right;
  line-height: 1.5;
}

@media (max-width: 1200px) {
  .summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .output-card.large {
    grid-row: auto;
  }
}

@media (max-width: 980px) {
  .sidebar {
    width: 240px;
    padding: 22px 16px;
  }

  .brand-logo {
    width: 60px;
    height: 60px;
    font-size: 26px;
  }

  .brand-text h1 {
    font-size: 24px;
  }

  .main-content {
    padding: 28px 24px 40px;
  }

  .page-header h2 {
    font-size: 38px;
  }

  .module-grid,
  .shot-grid {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 768px) {
  .dashboard-page {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }

  .main-content {
    padding: 22px 16px 30px;
  }

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

  .page-header {
    flex-direction: column;
  }

  .page-header h2 {
    font-size: 32px;
  }

  .page-header p {
    font-size: 15px;
  }

  .nav-item {
    font-size: 16px;
  }
}

.hero-section {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 24px;
  align-items: stretch;
  margin-bottom: 28px;
}

.hero-left,
.hero-right {
  background: linear-gradient(180deg, rgba(28,33,48,0.92), rgba(22,26,38,0.96));
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 10px 30px rgba(0,0,0,0.22);
  border-radius: 24px;
}

.hero-left {
  padding: 34px 34px 30px;
}

.page-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(127,162,255,0.12);
  border: 1px solid rgba(127,162,255,0.24);
  color: #9db7ff;
  font-size: 12px;
  letter-spacing: 1.5px;
  margin-bottom: 18px;
}

.hero-left h3 {
  margin: 0;
  font-size: 34px;
  line-height: 1.15;
  color: #f7f9ff;
}

.hero-left p {
  margin: 16px 0 0;
  font-size: 17px;
  color: rgba(255,255,255,0.66);
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 26px;
}

.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: #f3f6ff;
  font-weight: 600;
}

.secondary-btn:hover {
  background: rgba(255,255,255,0.07);
}

.hero-right {
  padding: 22px;
}

.hero-panel {
  height: 100%;
  border-radius: 18px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
  padding: 22px;
}

.hero-panel-title {
  font-size: 18px;
  font-weight: 700;
  color: #f7f9ff;
  margin-bottom: 16px;
}

.flow-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.flow-item {
  display: flex;
  gap: 14px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.04);
}

.flow-item.active {
  background: linear-gradient(90deg, rgba(91,115,255,0.14), rgba(91,115,255,0.05));
  border-color: rgba(127,162,255,0.22);
}

.flow-index {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(127,162,255,0.10);
  border: 1px solid rgba(127,162,255,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9db7ff;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.flow-item h4 {
  margin: 2px 0 6px;
  font-size: 17px;
  color: #ffffff;
}

.flow-item p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,0.62);
}

.card-footer {
  margin-top: 18px;
}

.bottom-panels {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
  margin-top: 28px;
}

.timeline-list {
  margin-top: 20px;
}

.timeline-item {
  display: flex;
  gap: 14px;
  padding: 0 0 18px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  width: 12px;
  height: 12px;
  margin-top: 7px;
  border-radius: 999px;
  background: #7fa2ff;
  box-shadow: 0 0 0 6px rgba(127,162,255,0.12);
  flex-shrink: 0;
}

.timeline-item h4 {
  margin: 0 0 6px;
  font-size: 17px;
  color: #ffffff;
}

.timeline-item p {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255,255,255,0.62);
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 20px;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.04);
}

.info-label {
  font-size: 13px;
  color: rgba(255,255,255,0.48);
}

.info-value {
  font-size: 15px;
  color: #f5f7ff;
  line-height: 1.7;
}

@media (max-width: 1200px) {
  .hero-section,
  .bottom-panels {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero-left,
  .hero-right {
    border-radius: 18px;
  }

  .hero-left {
    padding: 24px 20px;
  }

  .hero-left h3 {
    font-size: 28px;
  }

  .hero-left p {
    font-size: 15px;
  }

  .hero-actions {
    flex-direction: column;
  }
}

/* Project create page — scoped to .project-form-page only (does not affect edit partial .project-form-card) */
.project-form-page {
  width: 100%;
  max-width: 100%;
  padding: 32px 20px 72px;
  box-sizing: border-box;
  overflow-x: clip;
}

.project-form-container {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
}

.project-form-page .project-form-card {
  width: 100%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.24);
  padding: 32px 32px 36px;
  box-sizing: border-box;
}

.project-form-page .project-form-back-row {
  margin-bottom: 22px;
}

.project-form-page .project-form-back-btn.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: auto;
  min-height: 0;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.project-form-page .project-form-back-btn.secondary-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.94);
}

.project-form-page .project-form-header {
  margin-bottom: 0;
}

.project-form-page .project-form-header .eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.56);
}

.project-form-page .project-form-header h1 {
  margin: 0 0 14px;
  font-size: 40px;
  font-weight: 800;
  line-height: 1.08;
  color: #ffffff;
}

.project-form-page .project-form-header .desc {
  margin: 0 0 28px;
  max-width: 720px;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.72);
}

.project-form-page .project-form {
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin-top: 0;
  padding-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.project-form-page .form-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  margin: 0;
}

.project-form-page .form-row-topic {
  margin-top: 2px;
  margin-bottom: 2px;
}

.project-form-page .form-label {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
}

.project-form-page .form-field {
  min-width: 0;
}

.project-form-page .form-field input,
.project-form-page .form-field textarea,
.project-form-page .form-field select {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  color: #ffffff;
  padding: 14px 16px;
  font-size: 16px;
  line-height: 1.5;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.project-form-page .form-field input::placeholder,
.project-form-page .form-field textarea::placeholder {
  color: rgba(255, 255, 255, 0.34);
}

.project-form-page .form-field input:focus,
.project-form-page .form-field textarea:focus,
.project-form-page .form-field select:focus {
  outline: none;
  border-color: rgba(118, 122, 255, 0.85);
  box-shadow: 0 0 0 3px rgba(118, 122, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
}

.project-form-page .form-field textarea.form-textarea {
  min-height: 140px;
  resize: vertical;
}

.project-form-page .form-field select {
  min-height: calc(1.5em + 28px);
  cursor: pointer;
}

.project-form-page .duration-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
}

.project-form-page .duration-field .form-input {
  width: 100%;
  min-width: 0;
}

.project-form-page .duration-field .unit {
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  padding-right: 4px;
}

/* Button row: overrides global .form-actions only on this page */
.project-form-page .project-form-actions.form-actions {
  margin-top: 14px;
  padding-top: 44px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  min-width: 0;
}

.project-form-page .project-form-actions .primary-btn {
  width: auto;
  min-width: 0;
  flex: 0 0 auto;
  padding: 14px 22px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #6f72ff, #8a7dff);
  box-shadow: 0 10px 24px rgba(101, 96, 255, 0.28);
  border: none;
  height: auto;
  line-height: 1.4;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.project-form-page .project-form-actions .primary-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
  box-shadow: 0 12px 28px rgba(101, 96, 255, 0.34);
}

.project-form-page .project-form-actions .primary-btn:active {
  transform: translateY(0);
  filter: brightness(0.98);
  box-shadow: 0 6px 16px rgba(101, 96, 255, 0.22);
}

@media (max-width: 640px) {
  .project-form-page {
    padding: 22px 14px 56px;
  }

  .project-form-page .project-form-card {
    padding: 20px 16px 24px;
  }

  .project-form-page .project-form-header h1 {
    font-size: 28px;
    line-height: 1.1;
  }

  .project-form-page .project-form-header .desc {
    font-size: 15px;
    margin-bottom: 22px;
  }

  .project-form-page .project-form {
    gap: 24px;
  }

  .project-form-page .project-form-actions.form-actions {
    padding-top: 36px;
    margin-top: 10px;
  }
}

/* Project edit page — aligned with create page; scoped to .project-edit-page */
.project-edit-page {
  width: 100%;
  max-width: 100%;
  padding: 32px 20px 72px;
  box-sizing: border-box;
  overflow-x: clip;
}

.project-edit-container {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
}

.project-edit-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px 24px;
  margin-bottom: 28px;
}

.project-edit-header__eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.56);
}

.project-edit-header__title {
  margin: 0 0 10px;
  font-size: 40px;
  font-weight: 800;
  line-height: 1.08;
  color: #ffffff;
}

.project-edit-header__desc {
  margin: 0;
  max-width: 640px;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.72);
}

.project-edit-header__actions {
  flex-shrink: 0;
}

.project-edit-back-btn.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: auto;
  min-height: 0;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.project-edit-back-btn.secondary-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.94);
}

.project-edit-card {
  width: 100%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.24);
  padding: 32px 32px 36px;
  box-sizing: border-box;
}

.project-edit-card__header {
  margin-bottom: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.project-edit-card__title {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.project-edit-card__hint {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.52);
}

.project-edit-page .project-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 0;
  padding: 0;
  border: none;
}

.project-edit-page .form-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  margin: 0;
}

.project-edit-page .form-row-topic {
  margin-top: 0;
  margin-bottom: 0;
}

.project-edit-page .form-label {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
}

.project-edit-page .form-field {
  min-width: 0;
}

.project-edit-page .form-field input,
.project-edit-page .form-field textarea,
.project-edit-page .form-field select {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  color: #ffffff;
  padding: 14px 16px;
  font-size: 16px;
  line-height: 1.5;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.project-edit-page .form-field input::placeholder,
.project-edit-page .form-field textarea::placeholder {
  color: rgba(255, 255, 255, 0.34);
}

.project-edit-page .form-field input:focus,
.project-edit-page .form-field textarea:focus,
.project-edit-page .form-field select:focus {
  outline: none;
  border-color: rgba(118, 122, 255, 0.85);
  box-shadow: 0 0 0 3px rgba(118, 122, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
}

.project-edit-page .form-field textarea.form-textarea {
  min-height: 150px;
  resize: vertical;
}

.project-edit-page .form-field select {
  min-height: calc(1.5em + 28px);
  cursor: pointer;
}

.project-edit-page .duration-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
}

.project-edit-page .duration-field .form-input {
  width: 100%;
  min-width: 0;
}

.project-edit-page .duration-field .unit {
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  padding-right: 4px;
}

.project-edit-page .project-edit-actions.form-actions {
  margin-top: 16px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  min-width: 0;
}

.project-edit-page .project-edit-actions .primary-btn {
  width: auto;
  min-width: 0;
  flex: 0 0 auto;
  padding: 14px 22px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #6f72ff, #8a7dff);
  box-shadow: 0 10px 24px rgba(101, 96, 255, 0.28);
  border: none;
  height: auto;
  line-height: 1.4;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.project-edit-page .project-edit-actions .primary-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
  box-shadow: 0 12px 28px rgba(101, 96, 255, 0.34);
}

.project-edit-page .project-edit-actions .primary-btn:active {
  transform: translateY(0);
  filter: brightness(0.98);
  box-shadow: 0 6px 16px rgba(101, 96, 255, 0.22);
}

@media (max-width: 640px) {
  .project-edit-page {
    padding: 22px 14px 56px;
  }

  .project-edit-header {
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 22px;
  }

  .project-edit-header__title {
    font-size: 28px;
    line-height: 1.1;
  }

  .project-edit-header__desc {
    font-size: 15px;
  }

  .project-edit-header__actions .project-edit-back-btn {
    width: 100%;
    justify-content: center;
  }

  .project-edit-card {
    padding: 20px 16px 24px;
    border-radius: 18px;
  }

  .project-edit-page .project-form {
    gap: 22px;
  }

  .project-edit-page .project-edit-actions.form-actions {
    padding-top: 32px;
    margin-top: 12px;
  }
}

/* Project form (new / edit) */
.form-card {
  padding: 28px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(28, 33, 48, 0.92), rgba(22, 26, 38, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
  max-width: 960px;
}

.form-card .section-header {
  margin-bottom: 24px;
}

.project-form {
  margin-top: 8px;
}

.alert-card {
  margin-bottom: 22px;
  padding: 18px 20px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.alert-card.error {
  border-color: rgba(255, 120, 120, 0.35);
  background: rgba(180, 40, 40, 0.12);
}

.alert-card h4 {
  margin: 0 0 10px;
  font-size: 16px;
  color: #ffb4b4;
}

.alert-card ul {
  margin: 0;
  padding-left: 20px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 22px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group.full-width {
  grid-column: 1 / -1;
  margin-top: 8px;
}

.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(12, 15, 22, 0.65);
  color: #f4f7ff;
  font-size: 15px;
  font-family: inherit;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: rgba(127, 162, 255, 0.45);
  box-shadow: 0 0 0 3px rgba(91, 115, 255, 0.15);
}

select.form-input {
  min-height: 46px;
  cursor: pointer;
  appearance: auto;
}

.form-textarea {
  resize: vertical;
  line-height: 1.65;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
}

.ghost-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

input.primary-btn[type="submit"] {
  cursor: pointer;
  border: none;
  font-family: inherit;
  font-size: 15px;
}

@media (max-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

.result-block {
  margin-top: 24px;
  padding: 20px;
  border-radius: 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
}

.result-block h4 {
  margin: 0 0 12px;
  font-size: 18px;
  color: #ffffff;
}

.result-content {
  font-size: 15px;
  line-height: 1.9;
  color: rgba(255,255,255,0.78);
  white-space: pre-wrap;
  word-break: break-word;
}

.result-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.meta-item {
  padding: 18px;
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
}

.meta-label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.52);
}

.meta-value {
  font-size: 15px;
  line-height: 1.8;
  color: #f5f7ff;
  word-break: break-word;
}

@media (max-width: 768px) {
  .result-meta-grid {
    grid-template-columns: 1fr;
  }
}

.table-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.text-link {
  color: #8fb0ff;
  font-weight: 600;
}

.text-link.warning {
  color: #ffd36b;
}

.text-link.danger {
  color: #ff8e8e;
}

.delete-btn-inline {
  background: transparent;
  border: none;
  padding: 0;
  color: #ff8e8e;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
  cursor: pointer;
}

.brand-card {
  padding: 6px 4px 16px;
}

.brand-text.only-text {
  padding: 0;
}

.brand-text.only-text h1 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 700;
  color: #f4f7ff;
  letter-spacing: 0.2px;
}

.brand-text.only-text p {
  margin: 8px 0 0;
  font-size: 13px;
  color: rgba(255,255,255,0.62);
  line-height: 1.5;
}

.sidebar-divider {
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: 8px 0 14px;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.page-header h2 {
  margin: 0;
  font-size: 42px;
  line-height: 1.1;
  font-weight: 700;
  color: #f7f9ff;
}

.page-header p {
  margin: 12px 0 0;
  font-size: 16px;
  line-height: 1.8;
  color: rgba(255,255,255,0.64);
  max-width: 880px;
}

.page-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-section {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 24px;
  margin-bottom: 28px;
}

.hero-left,
.hero-right,
.summary-card,
.module-card,
.content-card {
  background: linear-gradient(180deg, rgba(28,33,48,0.92), rgba(22,26,38,0.96));
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 10px 30px rgba(0,0,0,0.22);
  border-radius: 22px;
}

.hero-left {
  padding: 34px 34px 30px;
}

.page-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(127,162,255,0.12);
  border: 1px solid rgba(127,162,255,0.24);
  color: #9db7ff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.4px;
  margin-bottom: 18px;
}

.hero-left h3 {
  margin: 0;
  font-size: 34px;
  line-height: 1.15;
  color: #f7f9ff;
}

.hero-left p {
  margin: 16px 0 0;
  font-size: 17px;
  color: rgba(255,255,255,0.66);
  line-height: 1.85;
  max-width: 760px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 26px;
  flex-wrap: wrap;
}

.primary-btn,
.secondary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.primary-btn {
  background: linear-gradient(135deg, #5b73ff, #7fa2ff);
  color: #fff;
  box-shadow: 0 8px 20px rgba(91,115,255,0.24);
}

.primary-btn:hover {
  transform: translateY(-1px);
}

.secondary-btn {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: #f3f6ff;
}

.secondary-btn:hover {
  background: rgba(255,255,255,0.07);
}

.ghost-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.86);
}

.hero-right {
  padding: 22px;
}

.hero-panel {
  height: 100%;
  border-radius: 18px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
  padding: 22px;
}

.hero-panel-title {
  font-size: 18px;
  font-weight: 700;
  color: #f7f9ff;
  margin-bottom: 16px;
}

.flow-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.flow-item {
  display: flex;
  gap: 14px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.04);
}

.flow-item.active {
  background: linear-gradient(90deg, rgba(91,115,255,0.14), rgba(91,115,255,0.05));
  border-color: rgba(127,162,255,0.22);
}

.flow-index {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(127,162,255,0.10);
  border: 1px solid rgba(127,162,255,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9db7ff;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.flow-item h4 {
  margin: 2px 0 6px;
  font-size: 17px;
  color: #ffffff;
}

.flow-item p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,0.62);
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}

.summary-card {
  padding: 22px;
}

.summary-label {
  font-size: 15px;
  color: rgba(255,255,255,0.58);
  margin-bottom: 12px;
}

.summary-value {
  font-size: 38px;
  font-weight: 700;
  color: #ffffff;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}

.module-card {
  padding: 24px;
  min-height: 210px;
}

.module-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.module-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(127,162,255,0.10);
  border: 1px solid rgba(127,162,255,0.18);
  color: #9db7ff;
  font-size: 20px;
  flex-shrink: 0;
}

.module-head h3 {
  margin: 0;
  font-size: 22px;
  color: #ffffff;
}

.module-head p {
  margin: 6px 0 0;
  font-size: 14px;
  color: rgba(255,255,255,0.54);
}

.module-body {
  font-size: 15px;
  line-height: 1.9;
  color: rgba(255,255,255,0.72);
  min-height: 82px;
}

.module-footer,
.card-footer {
  margin-top: 18px;
}

.text-link {
  color: #8fb0ff;
  font-weight: 600;
}

.dashboard-bottom,
.bottom-panels {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
}

.content-card {
  padding: 24px;
}

.section-header h3 {
  margin: 0;
  font-size: 24px;
  color: #ffffff;
}

.section-header p {
  margin: 8px 0 0;
  color: rgba(255,255,255,0.58);
}

.timeline-list {
  margin-top: 20px;
}

.timeline-item {
  display: flex;
  gap: 14px;
  padding: 0 0 18px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  width: 12px;
  height: 12px;
  margin-top: 7px;
  border-radius: 999px;
  background: #7fa2ff;
  box-shadow: 0 0 0 6px rgba(127,162,255,0.12);
  flex-shrink: 0;
}

.timeline-item h4 {
  margin: 0 0 6px;
  font-size: 17px;
  color: #ffffff;
}

.timeline-item p {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255,255,255,0.62);
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 20px;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.04);
}

.info-label {
  font-size: 13px;
  color: rgba(255,255,255,0.48);
}

.info-value {
  font-size: 15px;
  color: #f5f7ff;
  line-height: 1.7;
}

@media (max-width: 1280px) {
  .hero-section,
  .dashboard-bottom,
  .bottom-panels {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1100px) {
  .summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 768px) {
  .main-content {
    padding: 20px 16px 28px;
  }

  .page-header {
    flex-direction: column;
  }

  .page-header h2 {
    font-size: 32px;
  }

  .hero-left {
    padding: 24px 20px;
  }

  .hero-left h3 {
    font-size: 28px;
  }

  .hero-left p,
  .page-header p {
    font-size: 15px;
  }

  .hero-actions {
    flex-direction: column;
  }

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

.director-plan-box {
  white-space: pre-wrap;
  line-height: 1.8;
  font-size: 15px;
  color: #f5f7fb;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 20px;
  overflow-x: auto;
}

.script-output-section {
  margin-top: 8px;
}

.script-output-section h2 {
  margin: 0 0 16px;
  font-size: 24px;
  font-weight: 700;
  color: #f5f7fb;
}

.script-output-section p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.62);
}

.script-output-box {
  white-space: pre-wrap;
  line-height: 1.8;
  font-size: 15px;
  color: #f5f7fb;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 20px;
  overflow-x: auto;
}

.storyboard-output-section {
  margin-top: 8px;
}

.storyboard-output-section h2 {
  margin: 0 0 16px;
  font-size: 24px;
  font-weight: 700;
  color: #f5f7fb;
}

.storyboard-output-section p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.62);
}

.storyboard-output-box {
  white-space: pre-wrap;
  line-height: 1.8;
  font-size: 15px;
  color: #f5f7fb;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 20px;
  overflow-x: auto;
}

.shots-output-section {
  margin-top: 8px;
}

.shots-output-section h2 {
  margin: 0 0 16px;
  font-size: 24px;
  font-weight: 700;
  color: #f5f7fb;
}

.shots-output-section p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.62);
}

.shots-output-box {
  white-space: pre-wrap;
  line-height: 1.8;
  font-size: 15px;
  color: #f5f7fb;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 20px;
  overflow-x: auto;
}

.image-prompts-output-section {
  margin-top: 8px;
}

.image-prompts-output-section h2 {
  margin: 0 0 16px;
  font-size: 24px;
  font-weight: 700;
  color: #f5f7fb;
}

.image-prompts-output-section p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.62);
}

.image-prompts-output-box {
  white-space: pre-wrap;
  line-height: 1.8;
  font-size: 15px;
  color: #f5f7fb;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 20px;
  overflow-x: auto;
}

.shots-records-section {
  margin-top: 8px;
}

.shots-records-section > h2 {
  margin: 0 0 16px;
  font-size: 24px;
  font-weight: 700;
  color: #f5f7fb;
}

.shots-records-section > p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.62);
}

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

.shot-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 18px;
}

.shot-card h3 {
  margin-top: 0;
  margin-bottom: 12px;
}

.shot-card p {
  margin: 8px 0;
  line-height: 1.7;
}

.shot-actions {
  margin-top: 14px;
  margin-bottom: 14px;
}

.shot-actions form {
  display: inline-block;
  margin-right: 8px;
}

.shot-preview {
  margin-top: 14px;
  width: 220px;
}

.shot-preview a {
  display: inline-block;
  width: 220px;
}

.shot-thumb-image,
.shot-preview-image {
  display: block !important;
  width: 220px !important;
  height: 124px !important;
  max-width: 220px !important;
  max-height: 124px !important;
  object-fit: cover !important;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
  margin-top: 8px;
}

.shot-preview-video {
  display: block !important;
  width: 220px !important;
  height: 124px !important;
  max-width: 220px !important;
  max-height: 124px !important;
  object-fit: cover !important;
  border-radius: 10px;
  margin-top: 8px;
  background: #000;
}

.shot-path-text {
  margin-top: 8px;
  font-size: 12px;
  opacity: 0.75;
  word-break: break-all;
}

.shot-prompt-box {
  white-space: pre-wrap;
  line-height: 1.7;
  font-size: 14px;
  color: #f5f7fb;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 14px;
  overflow-x: auto;
  margin-top: 10px;
}

.shot-error {
  color: #ff8a8a;
}

.shots-records-section details {
  margin-top: 12px;
}

.shots-records-section summary {
  cursor: pointer;
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

.project-actions form.button_to {
  display: inline;
  margin: 0;
}

.project-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  box-sizing: border-box;
}

.project-actions .btn-primary {
  border: none;
  background: linear-gradient(135deg, #5b7cff, #7f66ff);
  color: #fff;
}

.project-actions .btn-primary:hover {
  opacity: 0.95;
}

.project-actions .btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  color: #e8ecff;
}

.project-actions .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* -------------------------------------------------------------------------- */
/* Project show — AI Director console layout (scoped to .project-show-page)   */
/* -------------------------------------------------------------------------- */

.project-show-page {
  width: 100%;
  max-width: 100%;
  padding: 28px 24px 56px;
  box-sizing: border-box;
  overflow-x: clip;
  min-height: calc(100vh - 58px);
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(90, 100, 200, 0.12), transparent),
    linear-gradient(180deg, #090b0f 0%, #0c0f14 100%);
}

.project-show-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: stretch;
}

.project-show-columns {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 28px;
  align-items: start;
}

/* Flash — show page only (layout skips global flash here) */
.project-show-flash-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.project-show-flash {
  border-radius: 14px;
  padding: 14px 18px;
  font-size: 14px;
  line-height: 1.55;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(240, 244, 255, 0.95);
}

.project-show-flash--notice {
  border-color: rgba(118, 165, 255, 0.28);
  background: rgba(80, 120, 220, 0.12);
  color: #e8eeff;
}

.project-show-flash--alert {
  border-color: rgba(255, 120, 120, 0.3);
  background: rgba(160, 50, 50, 0.14);
  color: #ffd8d8;
}

.project-status-card__badge {
  margin-bottom: 16px;
}

.project-main-column,
.project-side-column {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* Hero */
.project-hero {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.project-hero__eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.52);
  margin-bottom: 10px;
}

.project-hero__title {
  margin: 0 0 14px;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.1;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.project-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.68);
}

.project-hero__meta-sep {
  color: rgba(255, 255, 255, 0.28);
  user-select: none;
}

.project-hero__page-context {
  margin: 10px 0 0;
  padding: 0;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.58);
  letter-spacing: 0.01em;
}

.project-hero__page-context-label {
  font-weight: 500;
}

.project-hero__page-context-value {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
}

.project-hero__topic-line {
  margin: 8px 0 0;
  padding: 0;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.55);
}

.project-hero__topic-label {
  display: inline-block;
  margin-right: 8px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.38);
}

.project-hero__topic-text {
  color: rgba(255, 255, 255, 0.72);
}

a.project-inline-link {
  color: rgba(150, 175, 255, 0.95);
  text-decoration: underline;
  text-underline-offset: 3px;
}

a.project-inline-link:hover {
  color: #c8caff;
}

/* Shots step — main output */
.project-shots-output__prose {
  margin-bottom: 22px;
}

.project-shots-output__subhead {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: -0.01em;
}

.project-shots-output__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.project-shots-output__card {
  margin: 0;
}

/* Director plan page — main reading column */
.project-page--director-plan .project-page-main {
  min-width: 0;
}

.project-director-plan-card .project-show-card__title {
  margin-bottom: 16px;
}

.project-director-plan__body {
  margin-top: 4px;
}

.project-director-prose {
  font-size: 15px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.88);
  max-width: 72ch;
}

.project-director-prose p {
  margin: 0 0 1em;
}

.project-director-prose p:last-child {
  margin-bottom: 0;
}

.project-director-prose__h {
  margin: 1.35em 0 0.5em;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.96);
}

.project-director-prose__h--2 {
  font-size: 1.25rem;
}

.project-director-prose__h--3 {
  font-size: 1.08rem;
}

.project-director-prose__h:first-child {
  margin-top: 0;
}

.project-director-prose ul,
.project-director-prose ol {
  margin: 0 0 1em 1.2em;
  padding: 0;
  color: rgba(255, 255, 255, 0.82);
}

.project-director-prose li {
  margin-bottom: 0.35em;
}

.project-director-plan__empty {
  padding: 36px 24px;
  text-align: center;
  border-radius: 14px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.14);
}

.project-director-plan__empty-title {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.78);
}

.project-director-plan__empty-hint {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.45);
}

.project-hero__status-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.88);
}

.project-hero__status-badge--completed {
  background: rgba(52, 180, 120, 0.15);
  border-color: rgba(52, 180, 120, 0.35);
  color: #9ee9c0;
}

.project-hero__status-badge--failed {
  background: rgba(220, 80, 80, 0.12);
  border-color: rgba(255, 120, 120, 0.3);
  color: #ffb4b4;
}

.project-hero__status-badge--processing,
.project-hero__status-badge--rendering {
  background: rgba(118, 122, 255, 0.14);
  border-color: rgba(118, 122, 255, 0.35);
  color: #c8caff;
}

.project-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  min-width: 0;
  max-width: 100%;
}

.project-show-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.project-show-link--ghost {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.88);
}

.project-show-link--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

/* Banners (processing / error) */
.project-show-banner {
  border-radius: 14px;
  padding: 14px 18px;
  font-size: 14px;
  line-height: 1.6;
}

.project-show-banner--info {
  background: rgba(118, 122, 255, 0.1);
  border: 1px solid rgba(118, 122, 255, 0.22);
  color: rgba(230, 232, 255, 0.95);
}

.project-show-banner--error {
  background: rgba(180, 60, 60, 0.14);
  border: 1px solid rgba(255, 120, 120, 0.28);
  color: #ffd6d6;
}

.project-show-banner__body {
  margin-top: 8px;
  color: rgba(255, 220, 220, 0.88);
  font-size: 14px;
}

.project-show-banner__body p {
  margin: 0 0 0.5em;
}

.project-show-banner__body p:last-child {
  margin-bottom: 0;
}

/* Cards */
.project-show-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.22);
  padding: 24px 26px 26px;
  box-sizing: border-box;
}

.project-show-card__title {
  margin: 0 0 18px;
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
}

/* Info card */
.project-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 20px;
  margin: 0;
}

.project-info-grid__cell {
  min-width: 0;
}

.project-info-grid__cell dt {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.project-info-grid__cell dd {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
  word-break: break-word;
}

.project-info-topic {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.project-info-topic__label {
  display: block;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.project-info-topic__body {
  font-size: 15px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.78);
  white-space: pre-wrap;
  word-break: break-word;
}

/* Output text cards */
.project-output-card__body {
  white-space: pre-wrap;
  line-height: 1.8;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.82);
  word-break: break-word;
}

/* Shots */
.project-shots-empty {
  padding: 28px 20px;
  text-align: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.1);
}

.project-shots-empty__title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.88);
}

.project-shots-empty__hint {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.52);
}

.project-shots-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.project-shot-card {
  padding: 20px 22px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.78);
}

.project-shot-card p {
  margin: 0 0 10px;
}

.project-shot-card p:last-child {
  margin-bottom: 0;
}

.project-shot-card__title {
  margin: 0 0 14px;
  font-size: 17px;
  font-weight: 800;
  color: #ffffff;
}

.project-shot-prompt {
  margin-top: 14px;
}

.project-shot-prompt__text {
  margin-top: 8px;
  white-space: pre-wrap;
  line-height: 1.7;
  padding: 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(245, 247, 255, 0.88);
}

.project-shot-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.project-shot-placeholder {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.45);
  font-size: 13px;
}

.project-shot-debug {
  margin-top: 12px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.38);
  line-height: 1.5;
  word-break: break-all;
}

.project-shot-debug div + div {
  margin-top: 4px;
}

.project-shot-media {
  margin-top: 16px;
}

.project-shot-media__image {
  max-width: 320px;
  width: 100%;
  border-radius: 12px;
  display: block;
}

.project-shot-media__video {
  max-width: 420px;
  width: 100%;
  border-radius: 12px;
  display: block;
  background: #000;
}

.project-shot-error {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(120, 20, 20, 0.45);
  border: 1px solid rgba(255, 120, 120, 0.25);
  color: #ffd6d6;
  font-size: 14px;
}

.project-shot-details {
  margin-top: 16px;
}

.project-shot-details__summary {
  cursor: pointer;
  color: #b8a3ff;
  font-weight: 700;
  font-size: 14px;
  list-style: none;
}

.project-shot-details__summary::-webkit-details-marker {
  display: none;
}

.project-shot-details__panel {
  margin-top: 16px;
  padding: 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.project-shot-details__heading {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
}

.project-shot-form-field {
  margin-bottom: 14px;
}

.project-shot-form-field__label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
}

.project-shot-form-field__input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(12, 15, 22, 0.75);
  color: #ffffff;
  font-size: 14px;
  font-family: inherit;
  line-height: 1.5;
}

.project-shot-form-field__input:focus {
  outline: none;
  border-color: rgba(118, 122, 255, 0.65);
  box-shadow: 0 0 0 3px rgba(118, 122, 255, 0.12);
}

.project-shot-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Final video */
.project-final-video-card__path {
  margin: 0 0 14px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  word-break: break-all;
}

.project-final-video-card__video {
  width: 100%;
  max-width: 100%;
  border-radius: 14px;
  display: block;
  background: #000;
}

/* Sidebar status */
.project-status-list {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.project-status-list dt {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

.project-status-list dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
  word-break: break-word;
}

.project-status-progress {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.project-status-progress__label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 10px;
}

.project-status-progress__track {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.project-status-progress__fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #6f72ff, #9b87ff);
  transition: width 0.35s ease;
}

/* Actions card */
.project-actions-card__hint,
.project-upload-card__hint {
  margin: -8px 0 18px;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.48);
}

.project-actions-group {
  margin-bottom: 20px;
}

.project-actions-group:last-child {
  margin-bottom: 0;
}

.project-actions-group__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 12px;
}

.project-actions-group__buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.project-show-btn-form {
  display: block;
  margin: 0;
  width: 100%;
}

.project-show-btn-form--full {
  width: 100%;
}

.project-show-btn-form .project-show-btn {
  width: 100%;
}

.project-show-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: none;
  box-sizing: border-box;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.project-show-btn--sm {
  min-height: 40px;
  padding: 10px 14px;
  font-size: 13px;
  width: auto;
}

.project-show-btn-form .project-show-btn--sm {
  width: 100%;
}

.project-shot-actions .project-show-btn-form {
  width: auto;
  flex: 1 1 auto;
  min-width: 120px;
}

.project-shot-actions .project-show-btn-form .project-show-btn {
  width: auto;
  min-width: 0;
}

.project-shot-actions .project-show-link {
  flex: 0 1 auto;
  text-align: center;
}

.project-show-btn--generate {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(240, 242, 255, 0.95);
}

.project-show-btn--generate:hover {
  background: rgba(118, 122, 255, 0.12);
  border-color: rgba(118, 122, 255, 0.35);
  color: #ffffff;
}

.project-show-btn--primary {
  background: linear-gradient(135deg, #6f72ff, #8a7dff);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(101, 96, 255, 0.28);
  border: none;
}

.project-show-btn--primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 12px 28px rgba(101, 96, 255, 0.34);
}

.project-show-btn--primary:active {
  transform: translateY(0);
  filter: brightness(0.98);
}

.project-show-btn--outline {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.9);
}

.project-show-btn--outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.project-show-btn--ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(200, 210, 255, 0.9);
}

.project-show-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.project-show-btn--upload {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
  width: auto;
  flex-shrink: 0;
}

.project-show-btn--upload:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Upload form */
.project-upload-form__row {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.project-upload-form__file {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

@media (min-width: 480px) {
  .project-upload-form__row {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
  }

  .project-upload-form__file {
    flex: 1 1 200px;
    min-width: 0;
  }
}

/* Observability — Pipeline / Artifacts / Quality / Budget (project show) */
.project-pipeline-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.project-pipeline-step {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.project-pipeline-step__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.25);
}

.project-pipeline-step__label {
  flex: 1 1 auto;
  font-size: 14px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  min-width: 0;
}

.project-pipeline-step__state {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.project-pipeline-step--pending .project-pipeline-step__dot {
  background: rgba(255, 255, 255, 0.22);
}

.project-pipeline-step--running {
  border-color: rgba(118, 122, 255, 0.45);
  background: rgba(118, 122, 255, 0.08);
}

.project-pipeline-step--running .project-pipeline-step__dot {
  background: #8b8fff;
  box-shadow: 0 0 0 4px rgba(118, 122, 255, 0.2);
}

.project-pipeline-step--completed .project-pipeline-step__dot {
  background: #4ecf8b;
}

.project-pipeline-step--failed {
  border-color: rgba(255, 120, 120, 0.35);
  background: rgba(200, 60, 60, 0.1);
}

.project-pipeline-step--failed .project-pipeline-step__dot {
  background: #ff7a7a;
}

.project-artifacts-empty {
  padding: 18px 14px;
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.48);
  text-align: center;
}

.project-artifacts-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.project-artifacts-list__item {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.12);
}

.project-artifacts-list__title {
  font-size: 15px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 6px;
}

.project-artifacts-list__meta {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.project-artifacts-list__sep {
  color: rgba(255, 255, 255, 0.22);
}

.project-artifacts-list__preview {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.55);
  word-break: break-word;
}

.project-artifacts-list__action {
  flex-shrink: 0;
}

.project-quality-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.project-quality-list__item {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.project-quality-list__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.project-quality-list__name {
  font-size: 14px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
}

.project-quality-list__summary {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.55);
}

.project-quality-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.85);
}

.project-quality-badge--pass {
  border-color: rgba(80, 200, 140, 0.45);
  background: rgba(52, 180, 120, 0.12);
  color: #9ee9c0;
}

.project-quality-badge--warning {
  border-color: rgba(255, 200, 120, 0.4);
  background: rgba(255, 180, 80, 0.1);
  color: #ffd89a;
}

.project-quality-badge--fail {
  border-color: rgba(255, 120, 120, 0.4);
  background: rgba(200, 60, 60, 0.12);
  color: #ffb4b4;
}

.project-budget-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 18px;
  margin: 0 0 12px;
}

.project-budget-grid dt {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.project-budget-grid dd {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.95);
}

.project-budget-footnote {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.42);
}

.project-artifact-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
  margin: 0 0 20px;
}

.project-artifact-meta dt {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.project-artifact-meta dd {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.88);
  word-break: break-word;
}

.project-artifact-show__block-title {
  margin-top: 8px;
}

.project-artifact-show__body {
  margin: 0;
  padding: 16px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 70vh;
  overflow: auto;
}

.project-artifact-show__media {
  margin-top: 12px;
}

/* Responsive */
@media (max-width: 1024px) {
  .project-show-columns {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .project-side-column {
    order: 2;
  }

  .project-main-column {
    order: 1;
  }

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

@media (max-width: 640px) {
  .project-show-page {
    padding: 20px 14px 44px;
  }

  .project-show-card {
    padding: 20px 18px 22px;
    border-radius: 18px;
  }

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

  .project-hero__actions {
    justify-content: stretch;
  }

  .project-hero__actions .project-show-link {
    flex: 1 1 auto;
    justify-content: center;
  }

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

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

  .project-shot-actions {
    flex-direction: column;
  }

  .project-shot-actions .project-show-btn-form {
    width: 100%;
  }

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

  .project-artifact-meta {
    grid-template-columns: 1fr;
  }
}
.projects-index-page {
  min-height: 100vh;
  padding: 36px 24px 72px;
  background: #0b1120;
  color: #f8fafc;
}

.projects-index-shell {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}

.projects-hero-card,
.projects-list-card {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 24px;
  box-sizing: border-box;
}

.projects-list-card {
  margin-top: 24px;
}

.projects-hero-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.projects-eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c4b5fd;
  background: rgba(168, 85, 247, 0.10);
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: 999px;
}

.projects-page-title {
  margin: 0 0 12px;
  font-size: 40px;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.projects-page-desc {
  margin: 0;
  max-width: 780px;
  color: rgba(226, 232, 240, 0.82);
  line-height: 1.85;
  font-size: 15px;
}

.projects-hero-side {
  flex-shrink: 0;
}

.projects-primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  min-height: 42px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  color: #0f172a;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.08);
}

.projects-primary-link:hover {
  opacity: 0.94;
}

.projects-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.projects-stat-item {
  position: relative;
  overflow: hidden;
  padding: 18px 18px 16px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(148, 163, 184, 0.10);
}

.projects-stat-item::after {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(168,85,247,0.0), rgba(168,85,247,0.5), rgba(168,85,247,0.0));
  opacity: 0.6;
}

.projects-stat-label {
  display: block;
  margin-bottom: 10px;
  font-size: 12px;
  color: rgba(203, 213, 225, 0.75);
  letter-spacing: 0.02em;
}

.projects-stat-value {
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
  color: #ffffff;
}

.projects-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.projects-section-kicker {
  margin-bottom: 6px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(196, 181, 253, 0.82);
  font-weight: 700;
}

.projects-list-header h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.1;
  font-weight: 800;
  color: #ffffff;
}

.projects-table-wrap {
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.08);
  background: rgba(255, 255, 255, 0.015);
}

.projects-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.projects-table thead th {
  padding: 15px 14px;
  text-align: left;
  font-size: 12px;
  color: rgba(203, 213, 225, 0.72);
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
  font-weight: 700;
  letter-spacing: 0.02em;
  background: rgba(255, 255, 255, 0.02);
}

.projects-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.projects-table tbody td {
  padding: 18px 14px;
  vertical-align: top;
  border-bottom: 1px solid rgba(148, 163, 184, 0.06);
  font-size: 14px;
  line-height: 1.75;
  color: #f8fafc;
}

.project-name-cell {
  width: 180px;
}

.project-name-main {
  font-weight: 800;
  line-height: 1.5;
  color: #ffffff;
  word-break: break-word;
}

.project-topic-cell {
  color: rgba(226, 232, 240, 0.82);
  word-break: break-word;
}

.project-status-cell {
  width: 130px;
}

.project-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.30);
  color: #e9d5ff;
  font-size: 12px;
  font-weight: 700;
}

.project-time-cell {
  width: 150px;
  color: rgba(203, 213, 225, 0.72);
  white-space: nowrap;
}

.project-actions-cell {
  width: 120px;
}

.project-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.project-action-link {
  color: #c084fc;
  text-decoration: none;
  font-weight: 700;
}

.project-action-link:hover {
  color: #e9d5ff;
}

.project-delete-btn {
  background: rgba(248, 250, 252, 0.92);
  color: #0f172a;
  border: none;
  border-radius: 9px;
  padding: 6px 12px;
  cursor: pointer;
  font-weight: 700;
}

.project-delete-btn:hover {
  opacity: 0.92;
}

.projects-empty-state {
  padding: 34px 8px 16px;
  color: rgba(203, 213, 225, 0.72);
}

@media (max-width: 980px) {
  .projects-index-page {
    padding: 24px 14px 56px;
  }

  .projects-hero-card,
  .projects-list-card {
    padding: 20px 16px;
    border-radius: 16px;
  }

  .projects-hero-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .projects-page-title {
    font-size: 30px;
  }

  .projects-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at top left, rgba(90, 108, 255, 0.18), transparent 28%),
    radial-gradient(circle at right center, rgba(116, 68, 255, 0.16), transparent 24%),
    linear-gradient(180deg, #090b0f 0%, #0d1117 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #f3f6fb;
}

* {
  box-sizing: border-box;
}

a {
  text-decoration: none;
}

nav {
  padding: 14px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: rgba(7, 10, 14, 0.72);
  backdrop-filter: blur(12px);
}

nav a {
  color: #b7c1d6;
  margin-right: 10px;
}

.actions-cell {
  display: flex;
  gap: 12px;
  align-items: center;
}

.action-link {
  color: #cfd6ff;
  text-decoration: none;
  font-size: 14px;
}

.action-link:hover {
  opacity: 0.85;
}

.edit-link {
  color: #8fb3ff;
}

.delete-link {
  color: #ff8f8f;
}

.page-wrap {
  min-height: 100vh;
  background: #0b0d12;
  padding: 40px;
  color: #fff;
}

.form-card {
  max-width: 720px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 32px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #d9def0;
  font-size: 14px;
}

.form-input {
  width: 100%;
  height: 48px;
  background: #141824;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  color: #fff;
  padding: 0 14px;
  box-sizing: border-box;
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.primary-btn,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 20px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 14px;
  cursor: pointer;
  border: none;
}

.primary-btn {
  background: linear-gradient(135deg, #5b7cff, #7f66ff);
  color: #fff;
}

.secondary-btn {
  background: #1a2030;
  color: #d7ddf5;
}

/* 项目列表等表格内操作列 */
.table-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.text-link.warning {
  color: #e8c96a;
}

.text-link.warning:hover {
  opacity: 0.88;
}

.text-link.danger {
  color: #ff8f8f;
}

.text-link.danger:hover {
  opacity: 0.88;
}

.delete-btn-inline {
  background: transparent;
  border: none;
  padding: 0;
  color: #ff8e8e;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
  cursor: pointer;
}

.auth-page,
.auth-shell {
  min-height: calc(100vh - 58px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
}

.auth-card {
  width: 100%;
  max-width: 460px;
  padding: 32px;
  border-radius: 24px;
  background: rgba(17, 22, 29, 0.88);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255,255,255,0.04);
  backdrop-filter: blur(16px);
}

.auth-brand {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 28px;
}

.auth-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #6d7cff 0%, #7a4dff 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
}

.auth-kicker {
  font-size: 12px;
  color: #8e9ab0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.auth-card h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1.1;
  color: #ffffff;
}

.auth-card p {
  margin: 8px 0 0;
  color: #98a4b8;
  font-size: 14px;
  line-height: 1.6;
}

.auth-form {
  margin-top: 8px;
}

.auth-field {
  margin-bottom: 18px;
}

.auth-field label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #dbe3f1;
}

.auth-field input {
  width: 100%;
  height: 50px;
  padding: 0 15px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(9, 13, 18, 0.95);
  color: #ffffff;
  outline: none;
  transition: all 0.18s ease;
  font-size: 15px;
}

.auth-field input::placeholder {
  color: #6f7c91;
}

.auth-field input:focus {
  border-color: rgba(113, 126, 255, 0.9);
  box-shadow: 0 0 0 4px rgba(97, 113, 255, 0.14);
}

.auth-actions {
  margin-top: 26px;
}

.auth-btn {
  width: 100%;
  height: 52px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #6d7cff 0%, #7a4dff 100%);
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.auth-btn:hover {
  opacity: 0.96;
  transform: translateY(-1px);
}

.auth-footer {
  margin-top: 18px;
  text-align: center;
  font-size: 14px;
  color: #95a1b5;
}

.auth-footer a {
  color: #8ea2ff;
  font-weight: 600;
  margin-left: 6px;
}

.flash-wrap {
  max-width: 1360px;
  margin: 16px auto 0;
  padding: 0 24px;
  box-sizing: border-box;
}

.flash-message {
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 14px;
  margin-bottom: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.05);
  color: #eef3fb;
}

.flash-message.notice {
  border-color: rgba(79, 195, 247, 0.22);
  background: rgba(79, 195, 247, 0.08);
}

.flash-message.alert {
  border-color: rgba(255, 107, 107, 0.25);
  background: rgba(255, 107, 107, 0.08);
}

@media (max-width: 640px) {
  .auth-card {
    padding: 24px 20px;
    border-radius: 20px;
  }

  .auth-card h1 {
    font-size: 28px;
  }
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  margin-bottom: 8px;
  font-size: 16px;
}

.field input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid #2d3640;
  border-radius: 10px;
  background: #0d1117;
  color: #fff;
  box-sizing: border-box;
}

.actions {
  margin-top: 24px;
}

.auth-link {
  margin-top: 18px;
  text-align: center;
}

.auth-link a {
  color: #7aa2ff;
  text-decoration: none;
}

.auth-title {
  margin: 0 0 24px;
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  color: #eef3fb;
}

.auth-input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  font-size: 15px;
  box-sizing: border-box;
  background: rgba(9, 13, 18, 0.95);
  color: #fff;
}

.auth-remember {
  margin-bottom: 18px;
  color: #dbe3f1;
}

.auth-button {
  width: 100%;
  height: 46px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #6d7cff 0%, #7a4dff 100%);
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.auth-links {
  margin-top: 18px;
  text-align: center;
}

/* Standalone module pages (e.g. outputs) — scoped under .module-page so grid .module-card on dashboard is unchanged */
.module-page {
  min-height: calc(100vh - 40px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  box-sizing: border-box;
}

.module-page .module-card {
  width: 820px;
  max-width: 100%;
  background: #11141b;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 24px;
  padding: 36px;
  color: #ffffff;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22);
}

.module-badge {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(124, 92, 255, 0.18);
  color: #c9b8ff;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 18px;
}

.module-page .module-card h1 {
  margin: 0 0 16px;
  font-size: 34px;
  font-weight: 800;
  color: #ffffff;
}

.module-desc {
  margin: 0 0 28px;
  font-size: 16px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.76);
}

.module-page .output-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.module-page .output-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  padding: 18px;
}

.module-page .output-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.58);
  margin-bottom: 10px;
}

.module-page .output-value {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.6;
}

.module-page .module-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.module-page .primary-btn,
.module-page .secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  height: 46px;
  padding: 0 18px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 700;
  transition: 0.2s ease;
}

.module-page .primary-btn {
  background: linear-gradient(135deg, #7c5cff, #5b7cff);
  color: #ffffff;
}

.module-page .secondary-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

@media (max-width: 768px) {
  .module-page .output-summary {
    grid-template-columns: 1fr;
  }
}

/* 成片输出 dashboard */
.outputs-dashboard {
  padding: 28px 32px 40px;
  color: #ffffff;
  box-sizing: border-box;
}

.outputs-top {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 26px;
}

.outputs-top-card {
  background: linear-gradient(180deg, rgba(30, 36, 58, 0.92), rgba(20, 24, 40, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 22px;
  padding: 22px 24px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.top-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.58);
  margin-bottom: 10px;
}

.top-value {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.6;
}

.outputs-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.9fr);
  gap: 24px;
  align-items: start;
}

.outputs-left,
.outputs-right {
  min-width: 0;
}

.panel-card {
  background: linear-gradient(180deg, rgba(24, 29, 49, 0.96), rgba(14, 18, 32, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 26px;
  padding: 24px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
}

.panel-card + .panel-card {
  margin-top: 22px;
}

.panel-title {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 18px;
}

.video-wrap {
  background: #000000;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.preview-video {
  width: 100%;
  display: block;
  background: #000000;
}

.video-path {
  margin-top: 18px;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.84);
  word-break: break-all;
}

.path-label {
  color: rgba(255, 255, 255, 0.58);
  margin-right: 8px;
}

.path-value {
  color: #ffffff;
  font-weight: 600;
}

.status-list {
  margin: 0;
  padding-left: 22px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 2;
  font-size: 16px;
}

.status-list li strong {
  color: #ffffff;
  font-weight: 700;
}

.info-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 18px;
  padding: 16px 18px;
}

.info-box + .info-box {
  margin-top: 16px;
}

.info-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.56);
  margin-bottom: 10px;
}

.info-value {
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.7;
  word-break: break-all;
}

.version-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.version-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 18px;
  padding: 16px 18px;
}

.version-item.active {
  background: rgba(113, 92, 255, 0.12);
  border-color: rgba(124, 92, 255, 0.35);
}

.version-main {
  min-width: 0;
}

.version-name {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
  word-break: break-all;
}

.version-meta {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.56);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.version-actions {
  flex-shrink: 0;
}

.text-link {
  color: #a78bfa;
  text-decoration: none;
  font-weight: 700;
}

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

.empty-video-box {
  min-height: 280px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 28px;
}

.empty-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 12px;
}

.empty-desc {
  max-width: 520px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.65);
}

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

@media (max-width: 768px) {
  .outputs-dashboard {
    padding: 20px;
  }

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

  .version-item {
    flex-direction: column;
    align-items: flex-start;
  }
}
