.fn-report-builder {
  margin: 8px 0 28px;
  overflow: hidden;
  border: 1px solid #d5e3e8;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(5, 35, 61, 0.08);
  color: #05233d;
}

.fn-report-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px;
  background:
    radial-gradient(circle at 88% 15%, rgba(50, 210, 207, 0.2), transparent 34%),
    linear-gradient(135deg, #05233d 0%, #073a52 100%);
  color: #fff;
}

.fn-report-hero > div:first-child {
  max-width: 760px;
}

.fn-report-hero span {
  display: block;
  margin-bottom: 8px;
  color: #55d9d7;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.fn-report-hero h2 {
  margin: 0 0 10px;
  color: #fff;
  font-size: clamp(25px, 3vw, 38px);
  line-height: 1.05;
}

.fn-report-hero p {
  max-width: 720px;
  margin: 0;
  color: #c9dbe3;
  font-size: 15px;
  line-height: 1.6;
}

.fn-report-privacy {
  min-width: auto;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  text-align: center;
}

.fn-report-privacy b,
.fn-report-privacy small {
  display: block;
}

.fn-report-privacy b {
  margin-bottom: 0;
  color: #fff;
  font-size: 15px;
}

.report-card-grid.fn-single-report-grid {
  grid-template-columns: minmax(0, 1fr) !important;
}

.report-card-grid.fn-legacy-reports-hidden {
  display: none !important;
}

.fn-daily-report-wrapper {
  margin-top: 0;
}

.fn-daily-report-card {
  display: grid !important;
  gap: 18px;
  min-height: 0 !important;
  padding: clamp(24px, 4vw, 38px) !important;
}

.fn-daily-report-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.fn-daily-report-heading > div > span {
  display: block;
  margin-bottom: 8px;
  color: #55d9d7 !important;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.fn-daily-report-heading h3 {
  max-width: 760px;
  margin: 0;
  color: #fff !important;
  font-size: clamp(24px, 3vw, 34px) !important;
  line-height: 1.12;
}

.fn-daily-report-heading i {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: #55d9d7;
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
}

.fn-daily-report-card > p {
  max-width: 850px;
  margin: -4px 0 0 !important;
  color: #c9dbe3 !important;
  line-height: 1.55;
}

.fn-daily-report-preview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.fn-daily-report-preview > span {
  display: block;
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
}

.fn-daily-report-preview small,
.fn-daily-report-preview b {
  display: block;
}

.fn-daily-report-preview small {
  margin-bottom: 5px;
  color: #83dcd9 !important;
  font-size: 10px;
  font-weight: 750;
}

.fn-daily-report-preview b {
  overflow: hidden;
  color: #fff;
  font-size: 12px;
  line-height: 1.35;
  text-overflow: ellipsis;
}

.fn-daily-report-card > button {
  width: 100%;
  min-height: 50px;
  margin: 0 !important;
}

.fn-daily-report-card > small {
  color: #9db6c5 !important;
}

.fn-report-privacy small {
  color: #8fe9e6;
  font-size: 12px;
  line-height: 1.45;
}

.fn-report-form {
  display: grid;
  gap: 22px;
  padding: 28px 32px 32px;
}

.fn-report-presets {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.fn-report-presets > span {
  margin-right: 4px;
  color: #60778a;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.fn-report-presets button {
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid #cddce3;
  border-radius: 999px;
  background: #fff;
  color: #05233d;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
  transition: 0.18s ease;
}

.fn-report-presets button:hover {
  border-color: #0fa9b1;
  background: #eefafb;
  color: #087f87;
  transform: translateY(-1px);
}

.fn-report-grid {
  display: grid;
  gap: 16px;
}

.fn-report-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fn-report-grid .wide {
  grid-column: 1 / -1;
}

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

.fn-report-field {
  display: grid;
  align-content: start;
  gap: 7px;
}

.fn-report-field > span {
  color: #324e65;
  font-size: 12px;
  font-weight: 800;
}

.fn-report-field input,
.fn-report-field select {
  width: 100%;
  min-height: 48px;
  box-sizing: border-box;
  padding: 0 14px;
  border: 1px solid #cbdbe3;
  border-radius: 12px;
  outline: none;
  background: #fbfdfe;
  color: #05233d;
  font: inherit;
  font-size: 14px;
}

.fn-report-field input:focus,
.fn-report-field select:focus {
  border-color: #0fa9b1;
  box-shadow: 0 0 0 3px rgba(15, 169, 177, 0.12);
}

.fn-report-field input:disabled,
.fn-report-field select:disabled {
  cursor: not-allowed;
  background: #eef3f5;
  color: #7990a0;
}

.fn-report-field > small,
.fn-report-help {
  margin: 0;
  color: #778d9d;
  font-size: 11px;
  line-height: 1.45;
}

.fn-report-fieldset {
  min-width: 0;
  margin: 0;
  padding: 18px;
  border: 1px solid #d9e5ea;
  border-radius: 16px;
  background: #fbfdfe;
}

.fn-report-fieldset legend {
  padding: 0 8px;
  color: #05233d;
  font-size: 14px;
  font-weight: 850;
}

.fn-report-fieldset legend small {
  margin-left: 4px;
  color: #8094a3;
  font-size: 10px;
  font-weight: 650;
}

.fn-report-check-grid {
  display: grid;
  gap: 10px;
}

.fn-report-check-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.fn-report-check-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fn-report-check-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fn-report-check-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 76px;
  box-sizing: border-box;
  padding: 14px;
  border: 1px solid #d4e2e7;
  border-radius: 13px;
  background: #fff;
  cursor: pointer;
  transition: 0.18s ease;
}

.fn-report-check-card.compact {
  min-height: 62px;
  padding: 12px;
}

.fn-report-check-card:hover {
  border-color: #0fa9b1;
  box-shadow: 0 8px 20px rgba(5, 35, 61, 0.07);
}

.fn-report-check-card input,
.fn-report-news-option input {
  width: 17px;
  height: 17px;
  margin: 1px 0 0;
  accent-color: #0fa9b1;
  flex: 0 0 auto;
}

.fn-report-check-card span,
.fn-report-check-card strong,
.fn-report-check-card small {
  display: block;
}

.fn-report-check-card strong {
  margin-bottom: 4px;
  color: #05233d;
  font-size: 13px;
}

.fn-report-check-card small {
  color: #718898;
  font-size: 11px;
  line-height: 1.35;
}

.fn-report-config-columns {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 16px;
}

.fn-report-news-list {
  display: grid;
  gap: 8px;
}

.fn-report-news-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid #d8e5e9;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}

.fn-report-news-option:hover {
  border-color: #0fa9b1;
}

.fn-report-news-option span,
.fn-report-news-option strong,
.fn-report-news-option small {
  display: block;
}

.fn-report-news-option strong {
  margin-bottom: 4px;
  color: #05233d;
  font-size: 13px;
  line-height: 1.35;
}

.fn-report-news-option small {
  color: #718898;
  font-size: 11px;
}

.fn-report-preview {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid #d4e2e7;
  border-radius: 14px;
  background: #d4e2e7;
}

.fn-report-preview > div {
  min-width: 0;
  padding: 14px;
  background: #f7fbfc;
}

.fn-report-preview span,
.fn-report-preview strong {
  display: block;
}

.fn-report-preview span {
  margin-bottom: 5px;
  color: #728898;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.fn-report-preview strong {
  overflow: hidden;
  color: #05233d;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fn-report-download {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 22px;
  border-radius: 16px;
  background: #05233d;
  color: #fff;
}

.fn-report-download b {
  display: block;
  margin-bottom: 4px;
  color: #55d9d7;
  font-size: 13px;
}

.fn-report-download p {
  margin: 0;
  color: #c6d9e1;
  font-size: 12px;
  line-height: 1.5;
}

.fn-report-download button {
  min-width: 230px;
  min-height: 50px;
  padding: 0 22px;
  border: 0;
  border-radius: 12px;
  background: #34d0cc;
  color: #05233d;
  font: inherit;
  font-size: 14px;
  font-weight: 850;
  cursor: pointer;
  transition: 0.18s ease;
}

.fn-report-download button:hover:not(:disabled) {
  background: #62e0dc;
  transform: translateY(-1px);
}

.fn-report-download button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.fn-report-status {
  min-height: 18px;
  margin: -8px 0 0;
  color: #718898;
  font-size: 12px;
  text-align: right;
}

.fn-report-status.error {
  color: #c23e42;
}

.fn-report-status.success {
  color: #188956;
}

.fn-report-status.working {
  color: #087f87;
}

.fn-report-skeleton,
.fn-report-empty {
  padding: 12px;
  color: #718898;
  font-size: 12px;
}

.fn-report-builder.loading .fn-report-download button {
  pointer-events: none;
  opacity: 0.5;
}

@media (max-width: 1100px) {
  .fn-report-check-grid.four,
  .fn-report-preview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fn-report-check-grid.three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fn-report-preview > div:last-child {
    grid-column: 1 / -1;
  }

  .fn-daily-report-preview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .fn-report-builder {
    border-radius: 18px;
  }

  .fn-report-hero,
  .fn-report-download {
    align-items: stretch;
    flex-direction: column;
  }

  .fn-report-hero,
  .fn-report-form {
    padding: 22px 18px;
  }

  .fn-report-privacy {
    min-width: 0;
    align-self: flex-start;
  }

  .fn-report-grid.two,
  .fn-report-config-columns,
  .fn-report-check-grid.four,
  .fn-report-check-grid.three,
  .fn-report-check-grid.two,
  .fn-report-preview {
    grid-template-columns: 1fr;
  }

  .fn-report-date-pair {
    grid-template-columns: 1fr 1fr;
  }

  .fn-report-preview > div:last-child {
    grid-column: auto;
  }

  .fn-report-download button {
    width: 100%;
    min-width: 0;
  }

  .fn-report-status {
    text-align: left;
  }

  .fn-daily-report-preview {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 430px) {
  .fn-report-date-pair {
    grid-template-columns: 1fr;
  }

  .fn-report-presets > span {
    width: 100%;
  }

  .fn-report-presets button {
    flex: 1;
  }
}
