.report-loss .card-h > div h3 { margin: 0 0 3px; }
.report-loss .card-h > div p { margin: 0; color: var(--text-3); font-size: 11px; }
.report-loss-metrics { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line-2); }
.report-loss-metrics > div { padding: 16px 18px; border-right: 1px solid var(--line-2); }
.report-loss-metrics > div:last-child { border-right: 0; }
.report-loss-metrics span, .report-loss-metrics small { display: block; color: var(--text-3); font-size: 10.5px; }
.report-loss-metrics b { display: block; margin: 5px 0 3px; color: var(--text); font-size: 22px; }
.report-loss-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 24px; padding: 18px; }
.report-loss-grid h4 { margin: 0 0 11px; font-size: 12.5px; }
.report-party-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.report-party-grid > div { display: grid; grid-template-columns: 8px 1fr auto; align-items: center; gap: 7px; padding: 9px; background: var(--panel-2); border-radius: 6px; }
.report-party-grid i { width: 8px; height: 8px; border-radius: 50%; }
.report-party-grid span { color: var(--text-2); font-size: 11px; }
.report-party-grid b { font-size: 13px; }
.report-reason-list { display: flex; flex-direction: column; gap: 8px; }
.report-reason-list > div { display: grid; grid-template-columns: 105px 1fr 22px; align-items: center; gap: 8px; font-size: 11px; }
.report-reason-list > div > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); }
.report-reason-list > div > div { height: 6px; overflow: hidden; background: var(--panel-2); border-radius: 3px; }
.report-reason-list i { display: block; height: 100%; background: #d88f94; border-radius: 3px; }
.report-analysis-empty { padding: 22px; color: var(--text-3); background: var(--panel-2); border-radius: 6px; text-align: center; font-size: 11px; }
.report-loss-list { margin: 0 18px 18px; border-top: 1px solid var(--line-2); }
.report-loss-list summary { padding: 13px 0; color: var(--text-2); cursor: pointer; font-size: 11.5px; }
.report-loss-list button { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 0; border: 0; border-top: 1px solid var(--line-2); background: transparent; text-align: left; cursor: pointer; }
.report-loss-list button span b, .report-loss-list button span small { display: block; }
.report-loss-list button span b { font-size: 12px; }
.report-loss-list button span small { margin-top: 2px; color: var(--text-3); font-size: 10px; }
.report-loss-list button em { color: var(--text-2); font-size: 10.5px; font-style: normal; }

.fu-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 16px; }
.fu-page-head > div:first-child > span { color: var(--brand); font-size: 11px; font-weight: 700; }
.fu-page-head h1 { margin: 4px 0 5px; font-size: 30px; line-height: 1.2; }
.fu-page-head p { margin: 0; color: var(--text-3); font-size: 12px; }
.fu-summary { display: flex; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 7px; }
.fu-summary > div { min-width: 86px; padding: 10px 13px; border-right: 1px solid var(--line-2); }
.fu-summary > div:last-child { border-right: 0; }
.fu-summary b, .fu-summary span { display: block; }
.fu-summary b { font-size: 17px; }
.fu-summary span { margin-top: 1px; color: var(--text-3); font-size: 9.5px; }
.fu-summary .risk b { color: var(--danger); }
.candidate-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.candidate-page-head > div:first-child > span { color: var(--brand); font-size: 11px; font-weight: 700; }
.candidate-page-head h1 { margin: 4px 0 5px; font-size: 30px; line-height: 1.2; }
.candidate-page-head p { margin: 0; color: var(--text-3); font-size: 12px; }
.candidate-view-switch { display: inline-flex; flex: 0 0 auto; padding: 3px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 7px; }
.candidate-view-switch button { min-height: 34px; padding: 6px 15px; color: var(--text-2); background: transparent; border: 0; border-radius: 5px; cursor: pointer; font-size: 12px; }
.candidate-view-switch button.on { color: var(--brand); background: #fff; box-shadow: 0 1px 4px rgba(31,42,68,.1); font-weight: 650; }
.fu-embedded-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 12px; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 7px; }
.fu-embedded-summary > div { padding: 11px 14px; border-right: 1px solid var(--line-2); }
.fu-embedded-summary > div:last-child { border-right: 0; }
.fu-embedded-summary b, .fu-embedded-summary span { display: block; }
.fu-embedded-summary b { font-size: 18px; }
.fu-embedded-summary span { margin-top: 2px; color: var(--text-3); font-size: 10px; }
.fu-embedded-summary .risk b { color: var(--danger); }
.fu-toolbar { display: grid; grid-template-columns: minmax(260px, 1fr) 150px 160px; gap: 8px; margin-bottom: 14px; }
.fu-toolbar .search { width: 100%; }
.fu-timeline { display: flex; flex-direction: column; gap: 15px; }
.fu-day { display: grid; grid-template-columns: 94px 1fr; gap: 14px; }
.fu-date { padding-top: 4px; text-align: right; }
.fu-date b, .fu-date span { display: block; }
.fu-date b { font-size: 13px; }
.fu-date span { margin-top: 2px; color: var(--text-3); font-size: 9.5px; }
.fu-day-list { position: relative; display: flex; flex-direction: column; gap: 7px; padding-left: 18px; }
.fu-day-list::before { position: absolute; top: 0; bottom: 0; left: 3px; width: 1px; background: var(--line); content: ''; }
.fu-record { position: relative; width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 7px; background: #fff; text-align: left; cursor: pointer; }
.fu-record::before { position: absolute; top: 20px; left: -20px; width: 8px; height: 8px; border: 2px solid #fff; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 1px var(--brand); content: ''; }
.fu-record.risk { border-left: 3px solid var(--danger); }
.fu-record.risk::before { background: var(--danger); box-shadow: 0 0 0 1px var(--danger); }
.fu-record-body { display: flex; align-items: flex-start; gap: 10px; }
.fu-record-copy { min-width: 0; flex: 1; }
.fu-record-title { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.fu-record-title > b { font-size: 13px; }
.fu-record-meta { margin-top: 3px; color: var(--text-3); font-size: 10.5px; }
.fu-record-note { margin-top: 6px; color: var(--text-2); font-size: 12px; }
.fu-copy-notice { align-self: flex-start; flex: 0 0 auto; white-space: nowrap; }
.notification-template-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; padding: 12px 14px; background: var(--brand-soft); border: 1px solid #d9e0fb; border-radius: 7px; }
.notification-template-bar > div:first-child b, .notification-template-bar > div:first-child span { display: block; }
.notification-template-bar > div:first-child b { font-size: 12.5px; }
.notification-template-bar > div:first-child span { margin-top: 2px; color: var(--text-3); font-size: 10.5px; }
.notification-template-bar > div:last-child { display: flex; gap: 6px; }

@media (max-width: 700px) {
  .candidate-page-head { align-items: stretch; flex-direction: column; gap: 12px; }
  .candidate-page-head h1 { font-size: 25px; }
  .candidate-view-switch { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .candidate-view-switch button { min-width: 0; padding-inline: 8px; }
  .report-page-head h1 { font-size: 25px; }
  .report-loss-metrics { grid-template-columns: 1fr; }
  .report-loss-metrics > div { border-right: 0; border-bottom: 1px solid var(--line-2); }
  .report-loss-metrics > div:last-child { border-bottom: 0; }
  .report-loss-grid { grid-template-columns: 1fr; gap: 18px; padding: 14px; }
  .fu-page-head { align-items: stretch; flex-direction: column; gap: 12px; }
  .fu-page-head h1 { font-size: 25px; }
  .fu-summary { width: 100%; }
  .fu-summary > div { min-width: 0; flex: 1; }
  .fu-toolbar { grid-template-columns: 1fr 1fr; }
  .fu-toolbar .search { grid-column: 1 / -1; }
  .fu-day { grid-template-columns: 1fr; gap: 7px; }
  .fu-date { text-align: left; }
  .fu-day-list { padding-left: 15px; }
  .fu-record::before { left: -17px; }
  .fu-record-body { flex-wrap: wrap; }
  .fu-copy-notice { margin-left: 48px; }
  .notification-template-bar { align-items: stretch; flex-direction: column; }
  .notification-template-bar > div:last-child { display: grid; grid-template-columns: 1fr 1fr; }
}

@media (max-width: 420px) {
  .report-party-grid { grid-template-columns: 1fr; }
  .report-reason-list > div { grid-template-columns: 88px 1fr 20px; }
  .report-loss-list button { align-items: flex-start; flex-direction: column; gap: 5px; }
}
.report-page-head { margin-bottom: 16px; }
.report-page-head > span { color: var(--brand); font-size: 11px; font-weight: 700; }
.report-page-head h1 { margin: 4px 0 5px; font-size: 30px; line-height: 1.2; }
.report-page-head p { margin: 0; color: var(--text-3); font-size: 12px; }

@media (max-width: 700px) {
  .report-page-head h1 { font-size: 25px; }
}
