/* Client login motion is confined to the illustration so the form stays steady. */
.login-brand .signal-map {
  width: clamp(340px, 40vw, 660px);
  right: -16%;
  bottom: -16%;
  opacity: 0.95;
  isolation: isolate;
  pointer-events: none;
  border-radius: 50%;
}
.signal-map .orbit {
  border-color: #9abca044;
}
.signal-cross {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    linear-gradient(
      90deg,
      transparent 49.9%,
      #94b09638 50%,
      transparent 50.15%
    ),
    linear-gradient(transparent 49.9%, #94b09638 50%, transparent 50.15%);
}
.signal-sweep {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    from -76deg,
    transparent 0deg 294deg,
    #9fc4a50c 320deg,
    #9ac9a53c 354deg,
    #b6d6b574 359deg,
    transparent 360deg
  );
  animation: signal-orbit 11s linear infinite;
}
.signal-track {
  position: absolute;
  border-radius: 50%;
  animation: signal-orbit 22s linear infinite;
}
.signal-track i {
  position: absolute;
  width: 10px;
  height: 10px;
  top: 50%;
  left: 0;
  border-radius: 50%;
  background: #edab85;
  border: 2px solid #315744;
  box-shadow: 0 0 0 3px #c7916c25;
  transform: translate(-50%, -50%);
}
.track-outer {
  inset: 10%;
  animation-delay: -6s;
}
.track-mid {
  inset: 20%;
  animation-duration: 17s;
  animation-delay: -9s;
  animation-direction: reverse;
}
.track-mid i {
  background: #dce8ce;
}
.track-inner {
  inset: 30%;
  animation-duration: 13s;
  animation-delay: -2s;
}
.track-inner i {
  background: #9bc8ab;
}
.signal-pulse {
  position: absolute;
  inset: 39%;
  border-radius: 50%;
  border: 1px solid #b7d4b194;
  animation: signal-pulse 4.2s ease-out infinite;
}
.signal-map .orb-center {
  inset: 41%;
  background: #2a4e3e;
  box-shadow: 0 8px 38px #102e2533;
  font-size: clamp(1.5rem, 3vw, 2.8rem);
}
@keyframes signal-orbit {
  to {
    transform: rotate(360deg);
  }
}
@keyframes signal-pulse {
  0% {
    transform: scale(1);
    opacity: 0.75;
  }
  90%,
  100% {
    transform: scale(2.3);
    opacity: 0;
  }
}
.login-frame[data-motion="paused"] .signal-map * {
  animation-play-state: paused;
}
.motion-control {
  position: absolute;
  bottom: clamp(20px, 3.5vw, 57px);
  left: clamp(30px, 5.5vw, 90px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid #66816e;
  border-radius: 20px;
  color: #e3ece0;
  background: #1c3b30;
  font-size: 0.78rem;
  font-weight: 550;
}
.motion-control:hover {
  background: #2c4b3c;
}
.motion-control i {
  width: 10px;
  height: 11px;
  border-inline: 3px solid currentColor;
}
[data-motion="paused"] .motion-control i {
  width: 0;
  height: 0;
  border: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid currentColor;
}
/* Client context and report */
.client-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 20px 0 14px;
  padding: 17px 20px;
  border: 1px solid #cddbc9;
  border-radius: 12px;
  background: #edf2e9;
}
.client-identity,
.client-actions,
.client-score {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}
.client-identity > div {
  min-width: 0;
}
.client-identity .avatar {
  width: 44px;
  height: 44px;
  border: 1px solid #cad8c7;
  font-size: 1rem;
}
.client-kicker,
.report-kicker {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 650;
  color: #526f58;
}
.client-identity .subject-chip {
  border: 0;
  background: transparent;
  padding: 0;
  min-height: 28px;
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  justify-content: flex-start;
  gap: 8px;
  text-align: left;
  font-size: 1.04rem;
  font-weight: 680;
  color: #263f2e;
}
.client-identity .subject-chip span {
  overflow-wrap: anywhere;
}
.client-identity .subject-chip > .icon:first-child {
  display: none;
}
.client-identity p,
.client-score small,
.baseline-meta {
  font-size: 0.81rem;
  color: #5a6d5e;
  line-height: 1.5;
}
.client-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}
.client-score {
  gap: 4px;
  white-space: nowrap;
}
.client-score b {
  font: 570 1.7rem/1 var(--serif);
}
.client-score small {
  font-size: 0.75rem;
}
.snapshot-content {
  padding: 17px 22px 23px;
}
.snapshot-content > strong {
  font: 500 1.8rem var(--serif);
}
.snapshot-content p {
  margin: 8px 0 14px;
  max-width: 44rem;
  color: var(--muted);
  line-height: 1.6;
}
.table-score {
  display: inline-grid;
  place-content: center;
  min-width: 32px;
  min-height: 23px;
  background: #eef3e9;
  border: 1px solid #d9e3d4;
  border-radius: 5px;
  font-weight: 650;
  color: #36553c;
  font-variant-numeric: tabular-nums;
}
dialog.report-modal {
  width: min(900px, calc(100vw - 36px));
  max-width: 100vw;
  max-height: calc(100dvh - 34px);
  border-radius: 16px;
  margin: auto;
  background: #fcfdf9;
  scrollbar-gutter: stable;
}
.report-modal .drawer-head {
  padding: 23px 28px 9px;
  border: 0;
}
.report-modal .drawer-kicker {
  margin-bottom: 7px;
}
.report-tools,
.report-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 0 28px 17px;
}
.report-tools > div {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.report-tabs {
  display: flex;
  position: sticky;
  top: 0;
  z-index: 2;
  gap: 3px;
  padding: 0 22px;
  border-block: 1px solid var(--line);
  background: #f4f6f0;
}
.report-tabs button {
  position: relative;
  padding: 12px 11px;
  white-space: nowrap;
  color: #52685b;
  font-size: 0.9rem;
  font-weight: 520;
}
.report-tabs button[aria-selected="true"] {
  color: #234632;
  background: #edf2e8;
  font-weight: 670;
}
.report-tabs button[aria-selected="true"]:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 10px;
  right: 10px;
  height: 3px;
  background: #a86b4d;
}
.review-panel {
  padding: 21px 28px 24px;
  min-width: 0;
}
.report-footer {
  border-top: 1px solid var(--line);
  padding: 15px 28px;
  justify-content: flex-end;
  background: #f4f6f0;
}
.review-panel:focus-visible {
  outline-offset: -3px;
}
.score-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 17px;
  align-items: center;
  background: #244333;
  color: #f4f5ea;
  border-radius: 12px;
  padding: 18px 21px;
}
.score-ring {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: conic-gradient(#c6d8b1 var(--value), #4b6752 0);
  transform: rotate(-0.01deg);
  flex: none;
}
.score-ring > div {
  display: flex;
  align-items: baseline;
  justify-content: center;
  width: 70px;
  height: 70px;
  align-content: center;
  flex-wrap: wrap;
  gap: 1px;
  background: #244333;
  border-radius: 50%;
}
.score-ring strong {
  font: 500 2.05rem/1 var(--serif);
  letter-spacing: -0.07em;
}
.score-ring small {
  font-size: 0.68rem;
  color: #c9d6c3;
}
.score-hero .report-kicker {
  color: #bacfb9;
}
.score-hero h3 {
  font: 500 clamp(1.35rem, 2.4vw, 1.95rem) / 1.22 var(--serif);
  letter-spacing: -0.035em;
  margin: 3px 0;
}
.score-hero p {
  font-size: 0.91rem;
  color: #e1eadc;
}
.score-hero > div > small {
  font-size: 0.76rem;
  color: #c6d6c2;
}
.report-section-head {
  margin: 23px 0 11px;
}
.review-panel > .report-section-head:first-child {
  margin-top: 0;
}
.report-section-head h3 {
  font-size: 1.1rem;
  letter-spacing: -0.025em;
  font-weight: 650;
}
.report-section-head p,
.report-note,
.dimension-body p,
.report-fields,
.post-list small,
.activity-list p,
.match-list p,
.priorities p,
.outreach-list li,
.content-angles p,
.finding-card p {
  font-size: 0.9rem;
  line-height: 1.57;
  color: var(--copy);
}
.report-section-head p {
  margin-top: 3px;
  color: var(--muted);
}
.dimension-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  align-items: start;
}
.dimension,
.answer-group {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  min-width: 0;
}
.dimension summary,
.answer-group summary {
  list-style: none;
  cursor: pointer;
}
.dimension summary::-webkit-details-marker,
.answer-group summary::-webkit-details-marker {
  display: none;
}
.dimension summary {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto 14px;
  align-items: center;
  gap: 5px 8px;
  padding: 10px 12px;
}
.dimension-icon {
  display: inline-grid;
  place-items: center;
  width: 27px;
  height: 27px;
  color: #4c6951;
  background: #edf3e8;
  border-radius: 6px;
}
.dim-title {
  font-weight: 580;
  font-size: 0.91rem;
}
.dimension summary strong {
  font-size: 1rem;
}
.dimension summary > .icon,
.answer-group summary > .icon {
  color: #66806b;
}
.dimension[open] summary > .icon,
.answer-group[open] summary > .icon {
  transform: rotate(180deg);
}
.dimension-track,
.dimension-track i {
  display: block;
  height: 3px;
  background: #e9eee5;
  border-radius: 3px;
}
.dimension-track {
  grid-column: 2/-1;
}
.dimension-track i {
  background: #719276;
}
.dimension-body {
  border-top: 1px solid var(--line);
  padding: 11px 13px;
}
.dimension-body b {
  display: block;
  margin: 7px 0 1px;
  font-size: 0.8rem;
  color: #4b6652;
}
.report-note {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  color: var(--muted);
  font-size: 0.81rem;
  margin: 11px 0;
}
.report-note .icon {
  margin-top: 3px;
}
.report-pipeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 9px;
}
.report-pipeline li,
.finding-card,
.match-list article {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px;
  background: #f1f4ed;
  border: 1px solid #dce5d6;
  border-radius: 8px;
}
.report-pipeline li > span,
.finding-card > span {
  color: #54775e;
}
.report-pipeline b,
.report-pipeline small,
.match-list b,
.match-list small,
.content-angles small,
.content-angles b,
.post-list b,
.post-list span,
.activity-list b,
.activity-list time,
.priorities b,
.priorities small {
  display: block;
}
.report-pipeline b,
.match-list b,
.post-list b,
.activity-list b,
.content-angles b,
.priorities b,
.finding-card b {
  font-size: 0.94rem;
  font-weight: 620;
}
.report-pipeline small,
.content-angles small,
.match-list small,
.post-list span,
.post-list small,
.activity-list time,
.priorities small {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.5;
}
.report-fields {
  border-top: 1px solid var(--line);
}
.report-fields > div {
  display: grid;
  grid-template-columns: minmax(120px, 0.37fr) 1fr;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.report-fields dt {
  color: var(--muted);
}
.report-fields dd {
  overflow-wrap: anywhere;
}
.report-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin: 8px 0 12px;
}
.report-metrics > div {
  padding: 11px 13px;
  background: #f1f5ed;
  border-radius: 8px;
  border: 1px solid var(--line);
}
.report-metrics strong,
.report-metrics span {
  display: block;
}
.report-metrics strong {
  font: 550 1.65rem/1.2 var(--serif);
  color: #2d4d36;
}
.report-metrics span {
  font-size: 0.83rem;
  margin-top: 2px;
  color: #516656;
}
.post-list > article,
.activity-list > article,
.query-list > div {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding: 10px 1px;
}
.post-list article > small {
  white-space: nowrap;
  text-align: right;
}
.activity-list article {
  justify-content: flex-start;
}
.activity-list time {
  flex: 0 0 95px;
}
.query-list > div > span {
  display: flex;
  gap: 8px;
  align-items: center;
}
.query-list b {
  font-size: 0.88rem;
  white-space: nowrap;
}
.finding-card {
  margin: 12px 0;
  gap: 11px;
}
.finding-card p {
  margin-top: 4px;
}
.answer-groups {
  display: grid;
  gap: 8px;
}
.answer-group summary {
  display: flex;
  gap: 7px;
  align-items: center;
  padding: 12px;
  font-weight: 580;
  font-size: 0.92rem;
}
.answer-group summary > span:first-child {
  flex: 1;
}
.report-tag {
  display: inline-flex;
  font-size: 0.74rem;
  color: #4e6755;
  background: #ecf3e8;
  border-radius: 4px;
  padding: 2px 6px;
}
.answer-group > div {
  padding: 0 12px 8px;
}
.answer-group article {
  display: grid;
  grid-template-columns: minmax(70px, 0.5fr) minmax(82px, 0.65fr) 1.35fr;
  gap: 8px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  align-items: start;
  font-size: 0.88rem;
}
.answer-group article small {
  font-size: 0.8rem;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.priorities,
.outreach-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.priorities li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.priority-index {
  display: grid;
  place-items: center;
  flex: none;
  border: 1px solid #d3c3b2;
  background: #f8f2e8;
  color: #815c43;
  border-radius: 6px;
  width: 27px;
  height: 27px;
  font-weight: 620;
}
.priorities small {
  margin-top: 4px;
}
.match-list,
.content-angles {
  display: grid;
  gap: 8px;
}
.match-list article {
  background: white;
}
.match-list article > div {
  min-width: 0;
}
.match-list p {
  margin-top: 3px;
}
.outreach-list {
  list-style: decimal;
  padding-left: 21px;
}
.outreach-list li {
  margin: 5px 0;
}
.content-angles {
  grid-template-columns: 1fr 1fr;
}
.content-angles article {
  background: #f4f5ef;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.content-angles p {
  margin-top: 4px;
}
.review-sources li {
  border-top: 1px solid var(--line);
  padding: 8px 0;
}
.draft-inputs {
  margin-top: 15px;
}
@media (max-width: 740px) {
  .login-brand {
    min-height: 142px;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
  }
  .login-brand .signal-map {
    width: 238px;
    right: -61px;
    bottom: -56px;
  }
  .signal-map .orb-center {
    font-size: 1.3rem;
  }
  .motion-control {
    position: relative;
    left: auto;
    bottom: auto;
    min-height: 34px;
    padding: 4px 9px;
    font-size: 0.73rem;
  }
  .client-banner {
    gap: 10px;
    padding: 14px;
    flex-wrap: wrap;
  }
  .client-actions {
    justify-content: flex-start;
  }
  .client-score b {
    font-size: 1.35rem;
  }
  .report-tools,
  .report-footer,
  .review-panel {
    padding-inline: 17px;
  }
  .report-modal .drawer-head {
    padding-inline: 17px;
  }
  .report-tabs {
    padding: 0 8px;
  }
}
@media (max-width: 570px) {
  dialog.report-modal {
    width: 100%;
    max-width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    border: 0;
    border-radius: 0;
    scrollbar-gutter: auto;
  }
  .report-tabs {
    gap: 0;
    flex-wrap: wrap;
    position: relative;
    justify-content: flex-start;
  }
  .report-tabs button {
    font-size: 0.81rem;
    padding: 9px 8px;
    min-height: 38px;
  }
  .dimension-grid,
  .content-angles {
    grid-template-columns: 1fr;
  }
  .report-pipeline {
    grid-template-columns: 1fr;
  }
  .score-hero {
    gap: 12px;
    padding: 13px;
  }
  .score-ring {
    width: 65px;
    height: 65px;
  }
  .score-ring > div {
    width: 54px;
    height: 54px;
  }
  .score-ring strong {
    font-size: 1.7rem;
  }
  .client-banner {
    align-items: flex-start;
  }
  .client-identity .avatar {
    width: 35px;
    height: 35px;
  }
  .client-actions {
    width: 100%;
    justify-content: space-between;
    border-top: 1px solid #d2dfce;
    padding-top: 8px;
  }
  .report-fields > div {
    grid-template-columns: minmax(72px, 0.52fr) 1fr;
    gap: 8px;
  }
  .report-metrics > div {
    padding: 9px;
  }
  .activity-list time {
    flex-basis: 73px;
  }
  .answer-group article {
    grid-template-columns: 1fr 1fr;
  }
  .answer-group article small {
    grid-column: 1/-1;
  }
  .answer-group summary {
    flex-wrap: wrap;
  }
  .answer-group summary > span:first-child {
    min-width: 135px;
  }
  .audit-table tbody tr {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .report-footer {
    justify-content: flex-start;
  }
  .client-score small {
    font-size: 0.72rem;
  }
}

.tab-short {
  display: none;
}
.ai-advice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid #d9e2d3;
  border-radius: 11px;
  background: #eef3e9;
  padding: 16px 18px;
  margin: 0 0 20px;
}
.ai-advice > div {
  flex: 1;
  min-width: 0;
}
.ai-advice h2 {
  font-size: 1.06rem;
  font-weight: 640;
  line-height: 1.35;
}
.ai-advice small {
  color: #56735c;
  font-size: 0.73rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.ai-advice p {
  font-size: 0.89rem;
  margin-top: 4px;
  color: var(--copy);
  line-height: 1.55;
}
.ai-advice .btn {
  align-self: center;
}
@media (max-width: 570px) {
  .report-tabs {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    padding: 0 4px;
  }
  .report-tabs button {
    padding-inline: 1px;
    font-size: 0.79rem;
  }
  .tab-long {
    display: none;
  }
  .tab-short {
    display: inline;
  }
  .ai-advice {
    flex-wrap: wrap;
    padding: 13px;
  }
  .ai-advice > div {
    flex: 1 1 calc(100% - 51px);
  }
  .ai-advice .btn {
    margin-left: 39px;
  }
}

.review-panel,
.report-modal .drawer-head h2,
.ai-advice p,
.client-banner,
.report-fields dd {
  overflow-wrap: anywhere;
}

.match-list .match-purpose {
  display: inline;
  font-size: 0.83rem;
  color: #365c42;
}
