.report-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  min-height: calc(100vh - 54px);
}

/* 보고서 본문 — 문단 + 불릿 목록 */
.report-page .sec-body p {
  margin: 0 0 8px;
  line-height: 1.75;
}

.report-page .sec-body ul {
  margin: 4px 0 8px;
  padding-left: 20px;
}

.report-page .sec-body li {
  margin: 4px 0;
  line-height: 1.7;
}

/* 웹 검색 보고서 — 실제 출처 링크 */
.report-page .src-link {
  text-decoration: none;
  border-color: #8fb0ff;
  color: var(--blue);
}

.report-page .src-link:hover {
  background: #eff5ff;
}

/* 보고서 본문 직접 편집(글 수정) — 편집 가능 영역 표시 */
.report-page [contenteditable="true"] {
  border-radius: 4px;
  transition: background 0.12s ease, box-shadow 0.12s ease;
}

.report-page [contenteditable="true"]:hover {
  background: #f5f8ff;
}

.report-page [contenteditable="true"]:focus {
  outline: none;
  background: #fff;
  box-shadow: 0 0 0 2px #8fb0ff;
}

@media print {
  .report-page [contenteditable="true"]:hover,
  .report-page [contenteditable="true"]:focus {
    background: transparent;
    box-shadow: none;
  }
}

.report-form {
  padding: 20px;
  border-right: 1px solid #e1e7f0;
  background: #fff;
}

.report-form h2 {
  margin: 0 0 18px;
  font-size: 22px;
}

.report-form h3 {
  margin: 16px 0 10px;
}

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

.select-list button {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #334155;
  font-weight: 900;
  text-align: left;
}

.chart-icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  color: currentColor;
  background:
    linear-gradient(currentColor, currentColor) left 2px bottom 2px / 3px 7px
      no-repeat,
    linear-gradient(currentColor, currentColor) left 7px bottom 2px / 3px 11px
      no-repeat,
    linear-gradient(currentColor, currentColor) left 12px bottom 2px / 3px 5px
      no-repeat;
}

.select-list button.active {
  border-color: #8fb0ff;
  background: #eff5ff;
  color: var(--blue);
}

.source-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 42px;
  color: #111827;
  font-weight: 800;
}

.source-toggle.is-off,
.source-toggle.disabled {
  color: #98a5ba;
}

.report-form > .btn {
  display: flex;
  width: 100%;
}

.preview-zone {
  padding: 0 26px 36px;
}

.preview-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 54px;
  color: #718097;
  font-weight: 900;
}

.preview-toolbar div {
  display: flex;
  gap: 10px;
}

.report-page {
  width: min(760px, 100%);
  margin: 24px auto 0;
  overflow: hidden;
}

.report-page > header {
  padding: 26px 34px;
  background: #183f8f;
  color: #fff;
}

.report-page header p {
  margin: 0 0 10px;
  color: #34d3cc;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.report-page header h2 {
  margin: 0 0 14px;
  font-size: 26px;
}

.report-page header span {
  color: #aebee0;
}

.report-page section,
.report-page footer {
  padding: 22px 34px 0;
}

.report-page section p {
  color: #334155;
  font-size: 15px;
  line-height: 1.75;
}

.line-chart {
  height: 128px;
}

.line-chart::after {
  content: "";
  display: block;
  height: 58px;
  margin-top: 16px;
  background:
    linear-gradient(
      140deg,
      transparent 0 30%,
      #2563ff 31% 33%,
      transparent 34%
    ),
    linear-gradient(40deg, transparent 0 50%, #14b8a6 51% 53%, transparent 54%);
  opacity: 0.35;
}

.line-chart div {
  display: flex;
  justify-content: space-around;
  color: #7f8ba1;
  font-weight: 900;
}

.report-page table {
  width: calc(100% - 68px);
  margin: 14px 34px 22px;
  border-collapse: collapse;
}

.report-page th,
.report-page td {
  padding: 10px 10px;
  border-bottom: 1px solid #e5ebf4;
  text-align: left;
}

.report-page th {
  color: #718097;
}

.report-page footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding-bottom: 22px;
}

.report-page footer b {
  color: #14b8a6;
}

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