.fwhr-page {
  color: #f5f5f7;
}

.fwhr-hero {
  padding: 56px 0 36px;
}

.fwhr-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 36px;
  align-items: start;
}

.fwhr-hero-copy {
  padding-top: 24px;
}

.fwhr-kicker {
  display: inline-flex;
  margin-bottom: 18px;
  color: #5eead4;
  font-weight: 700;
}

.fwhr-hero h1 {
  font-family: "Bricolage Grotesque", "Inter", sans-serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.05;
  margin-bottom: 18px;
}

.fwhr-hero-copy p {
  color: rgba(245, 245, 247, 0.72);
  font-size: 1.08rem;
  line-height: 1.75;
}

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

.fwhr-tool-panel,
.fwhr-info-card,
.fwhr-formula-box,
.fwhr-note,
.fwhr-source-box,
.fwhr-related-card {
  background: rgba(18, 18, 21, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 18px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.38);
}

.fwhr-tool-panel {
  padding: 24px;
}

.fwhr-tool-header h2 {
  font-size: 1.45rem;
  margin-bottom: 8px;
}

.fwhr-tool-header p,
.fwhr-upload p,
.fwhr-info-card p,
.fwhr-formula-box p,
.fwhr-note p,
.fwhr-source-box span,
.fwhr-related-card span {
  color: rgba(245, 245, 247, 0.68);
}

.fwhr-upload {
  border: 1.5px dashed rgba(94, 234, 212, 0.28);
  border-radius: 16px;
  padding: 32px 20px;
  text-align: center;
  background: rgba(15, 23, 42, 0.44);
}

.fwhr-upload-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  border: 0;
  border-radius: 12px;
  padding: 12px 22px;
  color: #04111d;
  font-weight: 800;
  background: linear-gradient(135deg, #5eead4, #93c5fd);
}

.fwhr-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 18px;
  margin-top: 20px;
}

.fwhr-canvas-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

#fwhrCanvas {
  display: block;
  width: 100%;
  height: auto;
  cursor: crosshair;
}

.fwhr-controls {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.fwhr-step-status {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.65);
}

.fwhr-step-status span {
  font-weight: 800;
}

.fwhr-step-status small {
  color: rgba(245, 245, 247, 0.64);
}

.fwhr-point-list {
  display: grid;
  gap: 10px;
}

.fwhr-point-button {
  min-height: 60px;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.5);
  color: #f8fafc;
  padding: 10px 12px;
}

.fwhr-point-button span {
  display: block;
  color: rgba(245, 245, 247, 0.58);
  font-size: 0.82rem;
}

.fwhr-point-button.is-active {
  border-color: rgba(94, 234, 212, 0.65);
  background: rgba(20, 184, 166, 0.16);
}

.fwhr-point-button.is-set strong::after {
  content: " ✓";
  color: #5eead4;
}

.fwhr-control-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.fwhr-result {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
  padding: 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.16), rgba(99, 102, 241, 0.14));
  border: 1px solid rgba(94, 234, 212, 0.18);
}

.fwhr-result-label {
  display: block;
  color: rgba(245, 245, 247, 0.62);
  font-size: 0.86rem;
}

.fwhr-result strong {
  display: block;
  font-size: 1.55rem;
  line-height: 1.2;
}

.fwhr-result p,
.fwhr-result ul {
  grid-column: 1 / -1;
  margin: 0;
  color: rgba(245, 245, 247, 0.72);
}

.fwhr-result ul {
  padding-left: 1.2rem;
}

.fwhr-section .section-header {
  max-width: 780px;
  margin-inline: auto;
}

.fwhr-card-grid,
.fwhr-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.fwhr-info-card {
  padding: 24px;
}

.fwhr-info-card i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 14px;
  border-radius: 14px;
  color: #5eead4;
  background: rgba(20, 184, 166, 0.14);
}

.fwhr-info-card h3,
.fwhr-formula-box h3,
.fwhr-note h3,
.fwhr-source-box h3 {
  font-size: 1.13rem;
  margin-bottom: 10px;
}

.fwhr-formula-box,
.fwhr-note,
.fwhr-source-box {
  padding: 24px;
  margin-top: 24px;
}

.fwhr-formula {
  font-size: clamp(1.3rem, 3vw, 2rem);
  color: #5eead4;
  font-weight: 800;
}

.fwhr-table-wrap {
  border-radius: 16px;
  overflow: hidden;
  background: rgba(18, 18, 21, 0.9);
}

.fwhr-table {
  color: rgba(245, 245, 247, 0.78);
  margin-bottom: 0;
}

.fwhr-table th {
  color: #f8fafc;
  background: rgba(15, 23, 42, 0.72);
}

.fwhr-table td,
.fwhr-table th {
  border-color: rgba(255, 255, 255, 0.08);
  padding: 16px;
}

.fwhr-related-card {
  display: grid;
  gap: 8px;
  padding: 20px;
  text-decoration: none;
}

.fwhr-related-card strong,
.fwhr-source-box a {
  color: #5eead4;
}

.fwhr-source-box ul {
  display: grid;
  gap: 14px;
  padding-left: 1.1rem;
  margin: 0;
}

.fwhr-source-box li span {
  display: block;
}

@media (max-width: 992px) {
  .fwhr-hero-grid,
  .fwhr-workspace {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .fwhr-hero {
    padding-top: 32px;
  }

  .fwhr-tool-panel {
    padding: 18px;
  }

  .fwhr-result,
  .fwhr-control-row {
    grid-template-columns: 1fr;
  }
}
