body {
  font-family: Arial, sans-serif;
  background: #eef2f7;
  margin: 0;
  padding: 0;
  color: #1f2937;
}

.container {
  max-width: 1400px;
  margin: 14px auto;
  background: white;
  padding: 18px 22px 22px;
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
  position: relative;
}

.hero-wrap {
  position: relative;
  padding: 6px 320px 8px 0;
  min-height: 150px;
}

.brand-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 8px;
}

.brand-logo {
  position: relative;
  width: 70px;
  height: 50px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.logo-bars {
  position: relative;
  width: 58px;
  height: 28px;
  display: flex;
  gap: 6px;
  align-items: flex-end;
}

.bar {
  display: block;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, #24356b 0%, #3f5ea8 100%);
}

.bar-1 { width: 14px; height: 16px; }
.bar-2 { width: 14px; height: 24px; }
.bar-3 { width: 14px; height: 12px; }

.logo-node {
  position: absolute;
  top: 5px;
  right: 0;
  width: 15px;
  height: 15px;
  background: #12a4d9;
  border: 4px solid white;
  border-radius: 50%;
  box-shadow: 0 0 0 3px #24356b;
}

.brand-text {
  text-align: left;
}

.brand-name {
  font-size: 18px;
  font-weight: 800;
  color: #24356b;
  line-height: 1.1;
}

.brand-tagline {
  font-size: 11px;
  color: #6b7280;
  margin-top: 2px;
  letter-spacing: 0.3px;
}

.cem-box {
  position: absolute;
  top: 0;
  right: 0;
  width: 250px;
  background: linear-gradient(180deg, #f8fbff 0%, #edf3fb 100%);
  border: 1px solid #d4ddeb;
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 6px 16px rgba(36, 53, 107, 0.08);
}

.cem-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 6px;
}

.cem-title {
  font-size: 18px;
  font-weight: 800;
  color: #24356b;
  line-height: 1.25;
  margin-bottom: 8px;
}

.cem-text {
  font-size: 12px;
  color: #4b5563;
  line-height: 1.4;
  margin-bottom: 10px;
}

.cem-btn {
  display: inline-block;
  padding: 9px 12px;
  background: #24356b;
  color: white;
  text-decoration: none;
  border-radius: 10px;
  font-weight: bold;
  font-size: 12px;
}

.cem-btn:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

.main-title {
  text-align: center;
  font-size: 28px;
  line-height: 1.1;
  margin: 6px 0 8px 0;
  color: #24356b;
}

.subtitle {
  text-align: center;
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 16px;
}

.upload-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 2px;
  flex-wrap: wrap;
}

.hidden-file-input {
  display: none;
}

.file-name {
  font-size: 13px;
  color: #374151;
  background: #f4f6fb;
  padding: 10px 14px;
  border-radius: 10px;
  min-width: 180px;
}

.primary-btn,
.secondary-btn,
.mini-btn {
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.2s ease;
}

.primary-btn {
  display: block;
  margin: 14px auto 16px auto;
  padding: 14px 34px;
  background: #24356b;
  color: white;
  font-size: 16px;
}

.secondary-btn {
  padding: 10px 18px;
  background: #12a4d9;
  color: white;
  font-size: 14px;
}

.mini-btn {
  padding: 8px 12px;
  background: #24356b;
  color: white;
  font-size: 12px;
}

.primary-btn:hover,
.secondary-btn:hover,
.mini-btn:hover,
.download-btn:hover,
.web-dial-card:hover {
  transform: translateY(-1px);
  opacity: 0.96;
}

.filters-panel {
  background: #f7f9fc;
  border: 1px solid #d9e2ef;
  border-radius: 16px;
  padding: 14px;
  margin: 10px 0 12px 0;
}

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

.filters-header h2 {
  margin: 0;
  color: #24356b;
  font-size: 16px;
}

.filter-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.scope-panel {
  background: white;
  border: 1px solid #d9e2ef;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 12px;
}

.scope-title {
  font-size: 13px;
  font-weight: 700;
  color: #24356b;
  margin-bottom: 8px;
}

.scope-option {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  color: #374151;
}

.scope-option input {
  margin-right: 8px;
}

.filter-groups {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.filter-group {
  background: white;
  border: 1px solid #d9e2ef;
  border-radius: 12px;
  padding: 12px 14px;
}

.filter-group h3 {
  margin-top: 0;
  margin-bottom: 10px;
  color: #24356b;
  font-size: 14px;
}

.filter-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  color: #374151;
}

.filter-group input[type="checkbox"] {
  margin-right: 8px;
}

.result-box {
  margin-top: 8px;
  padding: 18px;
  background: #eef2f7;
  border-radius: 14px;
  min-height: 72px;
}

.result-box-empty {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.result-placeholder-title {
  font-size: 14px;
  font-weight: 700;
  color: #24356b;
  margin-bottom: 6px;
}

.result-placeholder-text {
  font-size: 12px;
  color: #6b7280;
}

.web-summary-header {
  margin-bottom: 14px;
  text-align: center;
}

.web-summary-header h2 {
  margin: 0;
  color: #24356b;
  font-size: 28px;
}

.project-file-box,
.scope-display-box {
  max-width: 760px;
  margin: 0 auto 14px auto;
  background: linear-gradient(180deg, #f8fbff 0%, #edf3fb 100%);
  border: 1px solid #d4ddeb;
  border-radius: 14px;
  padding: 14px 18px;
  text-align: center;
  box-shadow: 0 6px 16px rgba(36, 53, 107, 0.08);
}

.project-file-label,
.scope-display-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 6px;
}

.project-file-value,
.scope-display-value {
  font-size: 22px;
  font-weight: 800;
  color: #24356b;
  word-break: break-word;
}

.web-overall-panel {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 18px;
  margin: 20px 0 28px 0;
  align-items: stretch;
}

.overall-box {
  background: #f4f6fb;
  border-radius: 18px;
  padding: 24px 18px;
  text-align: center;
  border: 2px solid #d6dce8;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 145px;
}

.overall-box.green {
  background: #c6efce;
  border-color: #8fcf99;
}

.overall-box.red {
  background: #ffc7ce;
  border-color: #e39aa2;
}

.overall-box:nth-child(2) {
  transform: scale(1.04);
  border-width: 3px;
  box-shadow: 0 14px 30px rgba(36, 53, 107, 0.18);
  position: relative;
  z-index: 2;
}

.overall-box:nth-child(2)::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
  pointer-events: none;
}

.overall-label {
  font-size: 15px;
  color: #4b5563;
  margin-bottom: 12px;
  font-weight: bold;
}

.overall-box:nth-child(2) .overall-label {
  font-size: 18px;
  color: #24356b;
  margin-bottom: 14px;
}

.overall-score {
  font-size: 50px;
  font-weight: 900;
  color: #24356b;
  line-height: 1;
}

.overall-passfail {
  font-size: 60px;
  font-weight: 900;
  color: #24356b;
  letter-spacing: 1px;
  line-height: 1;
}

.overall-points {
  font-size: 34px;
  font-weight: 900;
  color: #24356b;
  line-height: 1.1;
}

.web-section-block {
  margin-top: 24px;
}

.web-section-title {
  background: #12a4d9;
  color: white;
  font-weight: 800;
  font-size: 18px;
  padding: 10px 14px;
  border-radius: 10px;
  margin-bottom: 14px;
}

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

.web-dial-card {
  background: white;
  border-radius: 14px;
  padding: 16px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07);
  border: 2px solid #d6dce8;
  appearance: none;
}

.web-dial-card.green {
  border-top: 8px solid #1f9d43;
}

.web-dial-card.amber {
  border-top: 8px solid #f59e0b;
}

.web-dial-card.red {
  border-top: 8px solid #dc2626;
}

.web-dial-title {
  font-size: 15px;
  font-weight: 700;
  color: #24356b;
  min-height: 44px;
  margin-bottom: 10px;
}

.web-dial-value {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
  color: #111827;
}

.web-dial-percent {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 12px;
}

.web-dial-bar {
  height: 10px;
  border-radius: 999px;
}

.web-dial-bar.green {
  background: #1f9d43;
}

.web-dial-bar.amber {
  background: #f59e0b;
}

.web-dial-bar.red {
  background: #dc2626;
}

.details-panel {
  margin-top: 24px;
  background: white;
  border: 1px solid #d9e2ef;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 6px 16px rgba(36, 53, 107, 0.08);
}

.details-panel.hidden {
  display: none;
}

.details-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.details-header h3 {
  margin: 0;
  color: #24356b;
  font-size: 18px;
}

.details-empty {
  color: #6b7280;
  font-size: 13px;
}

.details-table-wrap {
  overflow-x: auto;
}

.details-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.details-table th {
  background: #24356b;
  color: white;
  padding: 8px;
  text-align: left;
  border: 1px solid #d9e2ef;
  white-space: nowrap;
}

.details-table td {
  padding: 8px;
  border: 1px solid #d9e2ef;
  background: white;
  white-space: nowrap;
}

.download-wrap {
  margin-top: 22px;
  text-align: center;
}

.download-btn {
  display: inline-block;
  padding: 12px 20px;
  background: #24356b;
  color: white;
  text-decoration: none;
  border-radius: 12px;
  font-weight: bold;
  font-size: 14px;
}

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

  .hero-wrap {
    padding-right: 0;
  }

  .cem-box {
    position: static;
    width: auto;
    max-width: 420px;
    margin: 0 auto 14px auto;
  }
}

@media (max-width: 1000px) {
  .web-overall-panel,
  .filter-groups {
    grid-template-columns: 1fr 1fr;
  }

  .main-title {
    font-size: 32px;
  }

  .overall-score,
  .overall-points {
    font-size: 38px;
  }

  .overall-passfail {
    font-size: 46px;
  }

  .overall-box:nth-child(2) {
    transform: none;
  }

  .project-file-value,
  .scope-display-value {
    font-size: 18px;
  }
}

@media (max-width: 700px) {
  .web-overall-panel,
  .web-dial-grid,
  .filter-groups {
    grid-template-columns: 1fr;
  }

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

  .brand-text {
    text-align: center;
  }

  .main-title {
    font-size: 26px;
  }

  .container {
    padding: 16px;
    margin: 8px;
  }

  .overall-score,
  .overall-passfail,
  .overall-points {
    font-size: 34px;
  }

  .project-file-value,
  .scope-display-value {
    font-size: 16px;
  }

  .filters-header,
  .details-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .subtitle {
    font-size: 13px;
  }
}