:root {
  --bg: #f4efe7;
  --bg-deep: #ebe1d3;
  --surface: rgba(252, 249, 244, 0.9);
  --surface-strong: rgba(255, 253, 249, 0.98);
  --surface-soft: rgba(244, 238, 229, 0.92);
  --line: rgba(113, 99, 78, 0.15);
  --line-strong: rgba(76, 63, 46, 0.22);
  --text: #17130d;
  --muted: #655c52;
  --muted-soft: #8a7d6c;
  --accent: #1f4e42;
  --accent-soft: rgba(31, 78, 66, 0.08);
  --link: #2554d7;
  --link-soft: rgba(37, 84, 215, 0.08);
  --shadow: 0 18px 48px rgba(49, 37, 20, 0.065);
  --radius-2xl: 30px;
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-pill: 999px;
  --body-font: "SF Pro Text", "SF Pro Display", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
  --display-font: var(--body-font);
  --text-xs: 0.76rem;
  --text-sm: 0.84rem;
  --text-md: 0.9rem;
  --text-lg: 1rem;
  --lh-tight: 1.28;
  --lh-copy: 1.62;
  --lh-relaxed: 1.72;
  --lh-heading: 1.12;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--body-font);
  font-size: 15px;
  line-height: var(--lh-copy);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  background:
    radial-gradient(circle at 0% 0%, rgba(210, 226, 217, 0.82), transparent 22%),
    radial-gradient(circle at 92% 4%, rgba(244, 233, 212, 0.88), transparent 26%),
    linear-gradient(180deg, #faf7f1 0%, var(--bg) 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 100% 28px;
  opacity: 0.18;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
  font-family: var(--body-font);
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

.app-shell {
  position: relative;
  width: min(1640px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 18px 0 24px;
}

.topbar,
.notice-strip,
.workspace,
.results-panel,
.detail-panel,
.updates-panel {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.topbar {
  position: sticky;
  top: 12px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 11px 16px;
  border-radius: 24px;
  margin-bottom: 10px;
}

.brand-block {
  display: grid;
  gap: 6px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent) 0%, #6e9588 100%);
  box-shadow: 0 0 0 6px rgba(36, 77, 65, 0.08);
}

.brand-copy,
.workspace-copy,
.results-copy,
.update-item p,
.detail-summary,
.candidate-summary,
.candidate-headline,
.topbar-chip span,
.onepager-summary,
.onepager-loading p,
.onepager-error p,
.detail-empty p,
.notice-strip p {
  color: var(--muted);
  line-height: var(--lh-copy);
}

.brand-copy {
  max-width: 38ch;
  font-size: 0.82rem;
}

.topbar-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.topbar-chip,
.topbar-link,
.summary-chip,
.mini-tag,
.signal-pill,
.status-pill,
.score-pill,
.top-pill,
.action-link,
.detail-badge,
.subtle-pill,
.update-type,
.update-persona {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 11px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: rgba(255, 253, 249, 0.95);
  font-size: 0.77rem;
}

.topbar-chip {
  gap: 8px;
}

.metric-chip {
  min-width: 94px;
  justify-content: space-between;
}

.metric-chip strong {
  font-size: 0.96rem;
}

.topbar-chip strong,
.topbar-link {
  color: var(--text);
}

.notice-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 14px;
  border-radius: 18px;
  margin-bottom: 10px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
}

.notice-strip p {
  font-size: 0.79rem;
}

.dashboard {
  display: grid;
  gap: 14px;
}

.workspace,
.updates-panel {
  padding: 16px;
  border-radius: var(--radius-2xl);
}

.workspace-head,
.updates-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.eyebrow {
  margin-bottom: 8px;
  color: var(--muted-soft);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.workspace h1,
.updates-head h2,
.detail-hero h2,
.detail-block h3 {
  font-family: var(--display-font);
  letter-spacing: -0.022em;
  font-weight: 650;
}

.workspace h1 {
  font-size: clamp(1.58rem, 2.05vw, 2.2rem);
  line-height: 1.08;
}

.workspace-copy {
  max-width: 34ch;
  font-size: var(--text-sm);
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(280px, 1.55fr) repeat(3, minmax(145px, 0.72fr));
  gap: 10px;
  padding: 8px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 252, 246, 0.92);
  margin-bottom: 10px;
}

.persona-tabs {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
}

.persona-tab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 15px;
  border-radius: 17px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  color: var(--muted);
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.persona-tab strong {
  color: var(--text);
  font-size: 0.9rem;
}

.persona-tab.is-active,
.persona-tab:hover {
  color: var(--text);
  background: var(--surface-soft);
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--muted);
  font-size: var(--text-sm);
}

.field input,
.field select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 15px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  color: var(--text);
  outline: none;
}

.field input:focus,
.field select:focus {
  border-color: rgba(36, 77, 65, 0.28);
  box-shadow: 0 0 0 4px rgba(36, 77, 65, 0.07);
}

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.68fr) minmax(780px, 1.32fr);
  gap: 14px;
  align-items: start;
}

.results-panel,
.detail-panel {
  padding: 12px;
  border-radius: var(--radius-2xl);
}

.results-panel {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
}

.detail-panel {
  position: sticky;
  top: 90px;
  min-height: 80vh;
  max-height: 80vh;
  overflow-y: auto;
  padding: 16px 18px 18px;
  background: linear-gradient(180deg, rgba(255, 254, 251, 0.99) 0%, rgba(247, 242, 234, 0.96) 100%);
}

.results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.results-head strong {
  font-size: 1.16rem;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.results-head span {
  margin-left: 5px;
  color: var(--muted);
}

.results-copy {
  max-width: 24ch;
  font-size: var(--text-xs);
}

.results-table-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  padding: 0 12px 10px;
  color: var(--muted-soft);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.candidate-list {
  flex: 1;
  overflow-y: auto;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
}

.candidate-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background 140ms ease;
}

.candidate-row:last-child {
  border-bottom: none;
}

.candidate-row:hover,
.candidate-row.is-active {
  background: #f7f0e5;
}

.candidate-row.is-active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 0 999px 999px 0;
  background: var(--accent);
}

.candidate-primary {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  min-width: 0;
}

.candidate-rank {
  padding-top: 3px;
  color: var(--muted-soft);
  font-size: 0.74rem;
}

.candidate-identity {
  min-width: 0;
}

.identity-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.candidate-row h3 {
  font-family: var(--body-font);
  font-size: 0.9rem;
  line-height: 1.34;
  letter-spacing: -0.02em;
  font-weight: 640;
}

.candidate-company {
  color: var(--muted-soft);
  font-size: var(--text-xs);
  white-space: nowrap;
}

.candidate-headline {
  margin-top: 3px;
  font-size: 0.79rem;
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-tag,
.detail-badge,
.summary-chip {
  background: var(--surface-soft);
}

.signal-pill,
.status-pill,
.top-pill,
.subtle-pill,
.update-type,
.update-persona {
  color: var(--muted);
}

.status-pill.is-ready,
.top-pill.is-ready,
.score-pill {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: rgba(36, 77, 65, 0.16);
}

.status-pill.is-loading,
.top-pill.is-loading {
  color: #9b6a11;
  background: rgba(210, 148, 35, 0.11);
  border-color: rgba(210, 148, 35, 0.18);
}

.score-pill {
  min-width: 52px;
  font-weight: 700;
}

.table-muted {
  color: var(--muted-soft);
  font-size: 0.8rem;
}

.candidate-empty {
  padding: 18px;
  color: var(--muted);
}

.candidate-load-more {
  display: grid;
  gap: 10px;
  padding: 16px 18px 18px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(252, 249, 244, 0.72) 0%, rgba(245, 238, 227, 0.92) 100%);
}

.candidate-load-more p {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.6;
}

.load-more-button {
  justify-self: start;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(36, 77, 65, 0.16);
  background: var(--accent-soft);
  color: var(--accent);
  cursor: pointer;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease;
}

.load-more-button:hover {
  transform: translateY(-1px);
  border-color: rgba(36, 77, 65, 0.28);
  background: rgba(31, 78, 66, 0.12);
}

.detail-hero {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.detail-topbar,
.detail-actions,
.detail-badges,
.onepager-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.onepager-meta {
  margin-top: 2px;
}

.detail-hero h2 {
  margin-top: 10px;
  font-size: clamp(1.48rem, 1.9vw, 2.04rem);
  line-height: 1.1;
}

.detail-headline {
  margin-top: 8px;
  color: var(--muted-soft);
  font-size: var(--text-md);
  line-height: 1.56;
}

.detail-signal-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.detail-actions {
  margin-top: 14px;
}

.action-link.is-muted {
  color: var(--muted-soft);
}

.detail-grid,
.onepager-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.info-item,
.onepager-fact {
  padding: 13px 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.info-item span,
.onepager-fact span {
  display: block;
  color: var(--muted-soft);
  font-size: 0.72rem;
  line-height: 1.45;
}

.info-item strong,
.onepager-fact strong {
  display: block;
  margin-top: 5px;
  font-size: 0.9rem;
  line-height: 1.52;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  word-break: break-word;
}

.detail-block,
.onepager-section {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.onepager-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.onepager-section-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.detail-block h3,
.onepager-section h4 {
  font-size: 1rem;
  line-height: 1.2;
  font-weight: 640;
  letter-spacing: 0.01em;
}

.contact-group h5,
.contact-summary-card strong,
.contact-item strong,
.contact-synopsis-block span,
.contact-group-head span,
.contact-item-meta {
  font-family: var(--body-font);
}

.onepager-section-link {
  display: inline-flex;
  align-items: center;
  color: var(--link);
  font-size: 0.76rem;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  white-space: nowrap;
}

.onepager-section h4,
.onepager-entry-title,
.onepager-entry-meta,
.onepager-entry-body,
.onepager-source-list,
.onepager-source-list a,
.onepager-fact span,
.onepager-fact strong {
  font-family: var(--body-font);
}

.detail-list,
.onepager-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: var(--lh-copy);
  font-size: var(--text-md);
}

.onepager-brief {
  margin-top: 14px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(36, 77, 65, 0.11);
  background:
    radial-gradient(circle at 100% 0%, rgba(200, 224, 215, 0.18), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 252, 0.98) 0%, rgba(248, 242, 234, 0.9) 100%);
}

.onepager-kicker {
  display: inline-block;
  color: var(--muted-soft);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.onepager-entry-list {
  display: grid;
  gap: 12px;
}

.onepager-section.is-cards .onepager-entry-list {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.onepager-section.is-contact {
  display: grid;
  gap: 14px;
}

.onepager-section.is-strategy {
  display: grid;
  gap: 14px;
}

.strategy-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.strategy-overview-card,
.strategy-group-card,
.strategy-coverage-item {
  padding: 14px 15px;
  border-radius: 18px;
  border: 1px solid rgba(84, 72, 54, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 242, 234, 0.76) 100%);
}

.strategy-overview-card.is-wide,
.strategy-group-card.is-wide {
  grid-column: 1 / -1;
}

.strategy-overview-card span,
.strategy-group-head span,
.strategy-coverage-item span {
  display: block;
  color: var(--muted-soft);
  font-size: 0.72rem;
  line-height: 1.45;
}

.strategy-overview-card p,
.strategy-group-list,
.strategy-coverage-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.66;
}

.strategy-overview-card p {
  margin-top: 6px;
}

.strategy-group-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.strategy-group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(84, 72, 54, 0.1);
}

.strategy-group-head h5 {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.3;
  font-weight: 640;
  letter-spacing: -0.01em;
}

.strategy-group-list {
  margin-top: 12px;
  padding-left: 19px;
  display: grid;
  gap: 10px;
}

.strategy-group-list.is-ordered {
  padding-left: 22px;
}

.strategy-coverage-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.strategy-coverage-item strong {
  display: block;
  color: var(--text);
  font-size: 0.84rem;
  line-height: 1.45;
}

.strategy-coverage-item span {
  margin-top: 3px;
}

.strategy-coverage-item p {
  margin-top: 6px;
}

.contact-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}

.contact-summary-card {
  padding: 14px 15px;
  border-radius: 16px;
  border: 1px solid rgba(84, 72, 54, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(247, 241, 232, 0.82) 100%);
}

.contact-summary-card span,
.contact-synopsis-block span,
.contact-group-head span,
.contact-item-meta {
  display: block;
  color: var(--muted-soft);
  font-size: 0.72rem;
  line-height: 1.45;
}

.contact-summary-card strong {
  display: block;
  margin-top: 6px;
  font-size: 0.88rem;
  line-height: 1.52;
  color: var(--text);
}

.contact-synopsis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
}

.contact-synopsis-block {
  padding: 15px 16px;
  border-radius: 18px;
  border: 1px solid rgba(84, 72, 54, 0.12);
  background: rgba(255, 255, 255, 0.58);
}

.contact-synopsis-block p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.64;
}

.contact-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.contact-group {
  padding: 14px 15px 15px;
  border-radius: 20px;
  border: 1px solid rgba(84, 72, 54, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 252, 0.92) 0%, rgba(248, 242, 234, 0.78) 100%);
  box-shadow: 0 10px 24px rgba(80, 66, 46, 0.03);
}

.contact-group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(84, 72, 54, 0.1);
}

.contact-group h5 {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.3;
  font-weight: 640;
  letter-spacing: -0.01em;
}

.contact-group-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.contact-item {
  padding: 11px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(84, 72, 54, 0.08);
}

.contact-item strong {
  display: block;
  color: var(--text);
  font-size: 0.76rem;
  font-weight: 640;
  letter-spacing: 0.02em;
}

.contact-item p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.62;
}

.onepager-section.is-timeline .onepager-entry-list {
  gap: 14px;
}

.onepager-section.is-speaking .onepager-entry-list {
  gap: 0;
}

.onepager-entry {
  padding: 15px 16px;
  border-radius: 18px;
  border: 1px solid rgba(84, 72, 54, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86) 0%, rgba(249, 244, 236, 0.72) 100%);
  box-shadow: 0 10px 24px rgba(80, 66, 46, 0.04);
}

.onepager-entry.is-timeline,
.onepager-section.is-timeline .onepager-entry {
  position: relative;
  padding: 0 0 4px 20px;
  border: 0;
  border-left: 1px solid rgba(76, 63, 46, 0.18);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.onepager-entry.is-speaking,
.onepager-section.is-speaking .onepager-entry {
  padding: 14px 0;
  border: 0;
  border-bottom: 1px solid rgba(84, 72, 54, 0.12);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.onepager-section.is-speaking .onepager-entry:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.onepager-section.is-timeline .onepager-entry::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent) 0%, #6e9588 100%);
  box-shadow: 0 0 0 4px rgba(31, 78, 66, 0.08);
}

.onepager-entry-button {
  width: 100%;
  text-align: left;
  color: var(--text);
  cursor: pointer;
}

.onepager-entry.is-link {
  background: linear-gradient(180deg, rgba(255, 255, 252, 0.9) 0%, rgba(248, 242, 234, 0.84) 100%);
}

.onepager-entry.is-plain {
  background: rgba(255, 255, 255, 0.42);
}

.onepager-entry-title {
  display: inline-block;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 640;
  line-height: 1.42;
}

.onepager-entry.is-academic .onepager-entry-title {
  font-size: 0.86rem;
  line-height: 1.38;
  color: var(--text);
  text-decoration: none;
}

.onepager-entry.is-link .onepager-entry-title {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.onepager-entry.is-timeline.is-link .onepager-entry-title {
  color: var(--text);
  text-decoration: none;
}

.onepager-entry.is-academic.is-link .onepager-entry-title {
  color: var(--text);
  text-decoration: none;
}

.onepager-entry.is-speaking.is-link .onepager-entry-title {
  color: var(--text);
  text-decoration: none;
}

.onepager-entry-meta {
  margin-top: 5px;
  color: var(--muted-soft);
  font-size: 0.77rem;
  line-height: 1.5;
  letter-spacing: 0;
}

.onepager-entry-body {
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.87rem;
  line-height: 1.66;
  word-break: break-word;
}

.onepager-entry.is-academic .onepager-entry-body {
  font-size: 0.82rem;
  line-height: 1.6;
}

.onepager-entry.is-speaking .onepager-entry-body {
  margin-top: 6px;
  font-size: 0.84rem;
  line-height: 1.58;
}

.onepager-entry.is-speaking .onepager-entry-meta {
  margin-top: 4px;
  font-size: 0.74rem;
}

.onepager-entry.is-academic .onepager-entry-meta {
  font-size: 0.74rem;
}

.onepager-entry-body.is-timeline {
  margin-top: 4px;
  line-height: 1.58;
}

.onepager-entry-link {
  display: inline-flex;
  margin-top: 10px;
  color: var(--link);
  font-size: 0.76rem;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.onepager-entry.is-speaking .onepager-entry-link {
  margin-top: 7px;
  font-size: 0.75rem;
  font-weight: 500;
}


.onepager-source-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.86rem;
  font-family: var(--body-font);
}

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

.related-card {
  width: 100%;
  padding: 12px 13px;
  text-align: left;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
  color: var(--text);
  cursor: pointer;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease;
}

.related-card:hover {
  background: var(--surface-soft);
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.related-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.related-top strong {
  font-size: 0.92rem;
  line-height: 1.34;
}

.related-top span,
.related-card p,
.related-reasons {
  color: var(--muted);
}

.related-card p {
  margin-top: 6px;
  font-size: 0.84rem;
  line-height: 1.56;
}

.related-reasons {
  margin: 8px 0 0;
  padding-left: 18px;
  font-size: 0.83rem;
  line-height: 1.58;
}

.onepager-list a,
.onepager-source-list a,
.action-link,
.topbar-link {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.onepager-summary {
  margin-top: 10px;
  font-size: 0.93rem;
  line-height: 1.66;
  color: var(--text);
}

.onepager-loading,
.onepager-error {
  display: grid;
  gap: 10px;
}

.loading-line {
  height: 11px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(36, 77, 65, 0.07) 0%, rgba(36, 77, 65, 0.18) 50%, rgba(36, 77, 65, 0.07) 100%);
  background-size: 180% 100%;
  animation: shimmer 1.4s linear infinite;
}

.loading-line.is-strong {
  width: 72%;
}

.loading-line:not(.is-strong) {
  width: 100%;
}

.loading-line:not(.is-strong):last-of-type {
  width: 84%;
}

.error-detail {
  color: var(--muted-soft);
  font-size: 0.82rem;
}

.detail-empty {
  display: grid;
  gap: 10px;
}

.updates-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.summary-chip {
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 0 14px;
}

.summary-chip span {
  color: var(--muted);
}

.summary-chip strong {
  font-size: 0.94rem;
  line-height: 1.15;
}

.update-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.update-item {
  padding: 13px 14px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
}

.update-top {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.update-item h3 {
  margin-top: 8px;
  font-size: 0.96rem;
  line-height: 1.32;
}

.update-item p {
  margin-top: 7px;
  font-size: 0.85rem;
  line-height: 1.58;
}

.update-item.is-empty {
  grid-column: 1 / -1;
}

@keyframes shimmer {
  0% {
    background-position: 100% 0;
  }

  100% {
    background-position: -100% 0;
  }
}

@media (max-width: 1380px) {
  .toolbar {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .field-search {
    grid-column: span 2;
  }

  .workspace-grid,
  .update-list {
    grid-template-columns: 1fr;
  }

  .detail-panel {
    position: static;
    max-height: none;
  }
}

@media (max-width: 1040px) {
  .results-table-head,
  .candidate-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .strategy-overview-grid,
  .strategy-group-grid,
  .strategy-coverage-list {
    grid-template-columns: 1fr;
  }

  .update-list {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .app-shell {
    width: min(100vw - 18px, 100%);
    padding-top: 12px;
  }

  .topbar,
  .workspace,
  .updates-panel {
    border-radius: 22px;
  }

  .topbar,
  .workspace-head,
  .updates-head,
  .results-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .notice-strip,
  .toolbar,
  .detail-grid,
  .onepager-facts,
  .strategy-overview-grid,
  .strategy-group-grid,
  .strategy-coverage-list,
  .contact-summary-grid,
  .contact-synopsis,
  .contact-groups,
  .update-list {
    grid-template-columns: 1fr;
  }

  .notice-strip {
    flex-direction: column;
    align-items: flex-start;
  }

  .field-search {
    grid-column: auto;
  }

  .results-table-head {
    display: none;
  }

  .candidate-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .detail-panel {
    min-height: auto;
  }
}
