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 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;
  }
}
/*
 * 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.
 *


 */

.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 {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f7fb;
}

.auth-card {
  width: 420px;
  max-width: 92%;
  background: #ffffff;
  padding: 32px;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

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

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

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

.auth-input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font-size: 15px;
  box-sizing: border-box;
}

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

.auth-button {
  width: 100%;
  height: 46px;
  border: none;
  border-radius: 10px;
  background: #111827;
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

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