:root {
  --bg: #f3f5f7;
  --bg-deep: #e9edf2;
  --panel: rgba(255, 255, 255, 0.84);
  --panel-strong: rgba(251, 252, 254, 0.95);
  --panel-soft: rgba(10, 20, 40, 0.04);
  --line: rgba(15, 23, 42, 0.08);
  --line-strong: rgba(15, 23, 42, 0.12);
  --text: #111827;
  --text-soft: rgba(17, 24, 39, 0.72);
  --text-dim: rgba(17, 24, 39, 0.46);
  --accent: #0071e3;
  --accent-soft: rgba(0, 113, 227, 0.1);
  --accent-strong: #005bb5;
  --success: #16a34a;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
  --radius: 8px;
  --panel-padding: 24px;
  --font-sans: "SF Pro Display", "SF Pro Text", "PingFang SC", "Helvetica Neue",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-serif: "Iowan Old Style", "Baskerville", "Songti SC", "STSong", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-sans);
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.42) 26%, rgba(231, 237, 245, 0.74) 100%),
    linear-gradient(135deg, #f7f8fa, #eff2f6 54%, #e8edf3);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow: hidden;
}

body.is-dragging-scrollbar {
  cursor: ns-resize;
  user-select: none;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  background:
    linear-gradient(90deg, transparent 0%, rgba(15, 23, 42, 0.03) 49.5%, transparent 50%),
    linear-gradient(transparent 0%, rgba(15, 23, 42, 0.015) 48%, transparent 49%);
  background-size: 100% 100%, 100% 18rem;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.4), transparent 80%);
  opacity: 0.55;
}

body::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch' /%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.055' /%3E%3C/svg%3E");
  mix-blend-mode: multiply;
  opacity: 0.04;
}

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

button,
textarea {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page-shell {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100dvh;
  padding: 18px 18px 16px;
}

.panel__scroll {
  position: relative;
  min-height: 0;
}

.topbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 60px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(24px);
  box-shadow: var(--shadow);
}

.topbar__brand {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.topbar__eyebrow,
.panel__eyebrow {
  margin: 0;
  font-size: 0.73rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.topbar__name {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.topbar__links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.topbar__link-item {
  display: flex;
  align-items: baseline;
  gap: 7px;
  min-width: 0;
  font-size: 0.8rem;
  line-height: 1.25;
  color: var(--text-soft);
  white-space: nowrap;
}

.topbar__link-label {
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  flex-shrink: 0;
}

.topbar__link-item a {
  min-width: 0;
  color: var(--accent-strong);
}

.topbar__link-item a:hover {
  color: var(--accent);
}

.topbar__meta {
  font-size: 0.78rem;
  color: var(--text-dim);
  letter-spacing: 0.03em;
  text-transform: none;
  white-space: nowrap;
}

.stage {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.86fr) minmax(0, 0.96fr);
  gap: 14px;
  flex: 1;
  min-height: 0;
  margin-top: 14px;
}

.panel {
  position: relative;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(252, 253, 255, 0.76)),
    var(--panel);
  backdrop-filter: blur(28px);
  box-shadow: var(--shadow);
  transition:
    border-color 220ms ease,
    box-shadow 220ms ease,
    background 220ms ease,
    transform 220ms ease;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.7), transparent 24%),
    linear-gradient(90deg, rgba(15, 23, 42, 0.018), transparent 30%, transparent 70%, rgba(15, 23, 42, 0.018));
  opacity: 1;
  pointer-events: none;
}

.panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0.08)),
    linear-gradient(135deg, rgba(0, 113, 227, 0.08), transparent 38%);
  opacity: 0;
  transition: opacity 220ms ease;
  pointer-events: none;
}

.panel:hover,
.panel:focus-within {
  border-color: rgba(0, 113, 227, 0.16);
  box-shadow:
    0 24px 60px rgba(15, 23, 42, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.55) inset;
  transform: translateY(-1px);
}

.panel:hover::after,
.panel:focus-within::after {
  opacity: 1;
}

.panel--timeline,
.panel--profile {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  padding: var(--panel-padding);
}

.panel--profile {
  padding: 19px 20px 17px;
}

.panel--agent {
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  padding: var(--panel-padding);
  background:
    linear-gradient(180deg, rgba(0, 113, 227, 0.05), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(249, 251, 255, 0.8)),
    var(--panel-strong);
}

.panel__header {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
}

.panel__header--profile {
  gap: 10px;
}

.panel__header--agent {
  gap: 8px;
}

.panel__title {
  margin: 0;
  max-width: 20ch;
  font-size: clamp(1.32rem, 1.5vw, 1.8rem);
  line-height: 1.18;
  letter-spacing: -0.03em;
  font-weight: 580;
}

.panel__title--timeline {
  max-width: none;
  font-size: clamp(1.04rem, 1.12vw, 1.2rem);
  line-height: 1.16;
  white-space: nowrap;
}

.panel__title--agent {
  max-width: none;
  display: grid;
  gap: 2px;
}

.title-line {
  display: block;
}

.title-line--secondary {
  font-size: 0.86em;
  line-height: 1.16;
  white-space: nowrap;
}

.hero {
  margin: 0;
  font-size: clamp(1.74rem, 2.42vw, 2.58rem);
  line-height: 0.96;
  letter-spacing: -0.055em;
  font-weight: 640;
}

.hero__body {
  margin: 0;
  max-width: 42ch;
  font-size: 0.96rem;
  line-height: 1.6;
  color: var(--text-soft);
}

.section-divider {
  width: 100%;
  height: 1px;
  margin: 11px 0 9px;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.14), rgba(15, 23, 42, 0.03));
}

.timeline {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0;
  list-style: none;
}

.scroll-panel {
  overflow: auto;
  scrollbar-width: none;
  padding-right: 18px;
}

.scroll-panel::-webkit-scrollbar {
  display: none;
}

.scroll-panel--timeline {
  margin-top: 20px;
  padding-right: 22px;
}

.scroll-panel--profile {
  margin-top: 8px;
}

.glass-scrollbar {
  position: absolute;
  top: 6px;
  right: 2px;
  bottom: 6px;
  width: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.68);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.28),
    0 14px 28px rgba(148, 163, 184, 0.2);
  backdrop-filter: blur(20px) saturate(1.26);
  opacity: 0.68;
  transition:
    opacity 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
  pointer-events: auto;
  touch-action: none;
}

.glass-scrollbar--timeline {
  opacity: 0.74;
}

.scroll-panel:hover .glass-scrollbar,
.scroll-panel:focus-within .glass-scrollbar,
.glass-scrollbar--active {
  opacity: 0.94;
  border-color: rgba(255, 255, 255, 0.86);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.34),
    0 16px 30px rgba(148, 163, 184, 0.24);
}

.glass-scrollbar--hidden {
  opacity: 0;
}

.glass-scrollbar__thumb {
  position: absolute;
  left: 1px;
  right: 1px;
  top: 0;
  min-height: 46px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.64)),
    rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow:
    0 12px 24px rgba(148, 163, 184, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  cursor: grab;
  touch-action: none;
}

.glass-scrollbar__thumb--dragging {
  cursor: grabbing;
}

.timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  gap: 16px;
  padding-bottom: 20px;
  animation: rise-in 0.7s ease both;
}

.timeline__item:nth-child(2) {
  animation-delay: 0.12s;
}

.timeline__item:nth-child(3) {
  animation-delay: 0.22s;
}

.timeline__rail {
  position: relative;
}

.timeline__rail::before,
.timeline__rail::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.timeline__rail::before {
  top: 0.3rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(17, 24, 39, 0.2);
  box-shadow: 0 0 0 6px rgba(0, 113, 227, 0.06);
}

.timeline__rail::after {
  top: 1rem;
  bottom: -0.35rem;
  width: 1px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.12), rgba(15, 23, 42, 0.03));
}

.timeline__item:last-child .timeline__rail::after {
  display: none;
}

.timeline__item--active .timeline__rail::before {
  background: var(--accent-strong);
  box-shadow:
    0 0 0 6px rgba(0, 113, 227, 0.08),
    0 0 18px rgba(0, 113, 227, 0.16);
  animation: dot-breathe 3s ease-in-out infinite;
}

.timeline__content {
  display: grid;
  gap: 8px;
  padding-bottom: 2px;
}

.timeline__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-dim);
  font-size: 0.78rem;
}

.timeline__time {
  letter-spacing: 0.04em;
}

.timeline__org {
  text-align: right;
}

.timeline__role,
.timeline__project,
.timeline__summary,
.timeline__facts,
.profile-section__title,
.strength-list,
.education-list,
.contact-list,
.agent-status-bar,
.prompt-strip,
.agent-console {
  position: relative;
  z-index: 1;
}

.timeline__role {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.25;
  font-weight: 560;
}

.timeline__project {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 1.25;
  color: var(--accent-strong);
  letter-spacing: 0.01em;
}

.timeline__summary {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.58;
  color: var(--text-soft);
}

.timeline__facts {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline__facts li {
  position: relative;
  padding-left: 14px;
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--text-soft);
}

.timeline__facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.56rem;
  width: 5px;
  height: 5px;
  background: linear-gradient(135deg, rgba(0, 113, 227, 0.78), rgba(0, 113, 227, 0.4));
}

.timeline__facts a,
.contact-list a {
  color: var(--accent-strong);
}

.timeline__facts a:hover,
.contact-list a:hover {
  color: var(--accent);
}

.profile-section {
  display: grid;
  gap: 3px;
}

.profile-section__title {
  margin: 0;
  font-size: 0.84rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.strength-list {
  margin: 0;
  display: grid;
  gap: 11px;
}

.strength-list__item {
  display: grid;
  gap: 6px;
}

.strength-list__item dt {
  font-size: 1rem;
  font-weight: 560;
  letter-spacing: -0.02em;
}

.strength-list__item dd {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.58;
  color: var(--text-soft);
}

.education-list,
.contact-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.education-list__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
}

.education-list__item > div {
  display: grid;
  gap: 4px;
}

.education-list__degree,
.education-list__school {
  margin: 0;
}

.education-list__degree {
  font-size: 0.93rem;
  font-weight: 560;
  line-height: 1.42;
}

.education-list__school,
.education-list__time {
  font-size: 0.82rem;
  line-height: 1.52;
  color: var(--text-soft);
}

.education-list__time {
  padding-top: 1px;
  white-space: nowrap;
}

.panel__scroll--profile {
  margin-top: 8px;
  overflow: visible;
  padding-right: 0;
}

.contact-list li {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  font-size: 0.84rem;
  color: var(--text-soft);
}

.contact-list span {
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.68rem;
}

.profile-section--contact {
  padding-bottom: 10px;
}

.prompt-chip,
.send-button {
  appearance: none;
  border: 1px solid transparent;
  color: var(--text);
  background: none;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.agent-status-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  margin-top: 14px;
  padding: 0 2px;
  color: var(--text-soft);
  font-size: 0.84rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  box-shadow: 0 0 0 5px rgba(22, 163, 74, 0.12);
  animation: dot-breathe 2.6s ease-in-out infinite;
}

.prompt-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.prompt-chip {
  padding: 9px 12px;
  border-color: rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.74);
  font-size: 0.82rem;
  line-height: 1.35;
  color: var(--text-soft);
  text-align: left;
}

.prompt-chip:hover,
.prompt-chip:focus-visible {
  color: var(--accent-strong);
  border-color: rgba(0, 113, 227, 0.24);
  background: rgba(0, 113, 227, 0.08);
  transform: translateY(-1px);
}

.agent-console {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 0;
  margin-top: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 249, 252, 0.88)),
    rgba(255, 255, 255, 0.88);
  overflow: hidden;
}

.agent-console::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid transparent;
  background: linear-gradient(180deg, rgba(0, 113, 227, 0.14), transparent 28%) border-box;
  mask:
    linear-gradient(#fff 0 0) padding-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask:
    linear-gradient(#fff 0 0) padding-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  pointer-events: none;
  animation: console-breathe 4.6s ease-in-out infinite;
}

.conversation {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
  padding: 18px;
  overflow: auto;
  scrollbar-width: none;
  scroll-behavior: smooth;
}

.message {
  display: flex;
  gap: 10px;
  max-width: 94%;
  animation: rise-in 0.28s ease both;
}

.message--user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.message__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  min-width: 32px;
  height: 32px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.92);
  font-size: 0.72rem;
  color: var(--text-dim);
  overflow: hidden;
  flex-shrink: 0;
}

.message__badge--portrait {
  border-radius: 50%;
  padding: 0;
  border-color: rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.94);
}

.message__badge--portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 34%;
  transform: scale(1.14);
}

.message__badge--viewer {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 245, 249, 0.88)),
    rgba(255, 255, 255, 0.96);
}

.message__badge--viewer img {
  object-position: center;
  transform: none;
}

.message__body {
  max-width: min(34rem, calc(100% - 38px));
  padding: 11px 12px 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.92);
  font-size: 0.9rem;
  line-height: 1.64;
  color: var(--text-soft);
  white-space: pre-wrap;
  word-break: break-word;
}

.message--user .message__body {
  border-color: rgba(0, 113, 227, 0.18);
  background:
    linear-gradient(180deg, rgba(0, 113, 227, 0.16), rgba(0, 113, 227, 0.08)),
    rgba(255, 255, 255, 0.92);
  color: #0f172a;
}

.message--system .message__body {
  background: rgba(247, 249, 252, 0.96);
  color: var(--text-dim);
}

.message--error .message__body {
  border-color: rgba(220, 38, 38, 0.14);
  background: rgba(254, 242, 242, 0.94);
}

.message__actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.inline-action {
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent-strong);
  font-size: 0.82rem;
  cursor: pointer;
}

.inline-action:hover,
.inline-action:focus-visible {
  color: var(--accent);
}

.message--streaming .message__body::after {
  content: "";
  display: inline-block;
  width: 0.55rem;
  height: 1rem;
  margin-left: 0.25rem;
  vertical-align: -0.12rem;
  background: rgba(17, 24, 39, 0.5);
  animation: cursor-blink 0.9s steps(1, end) infinite;
}

.composer {
  display: grid;
  gap: 12px;
  padding: 16px 18px 18px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(242, 246, 250, 0.92));
}

.composer textarea {
  width: 100%;
  min-height: 54px;
  max-height: 132px;
  padding: 14px 14px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  resize: none;
  line-height: 1.55;
}

.composer textarea::placeholder {
  color: rgba(17, 24, 39, 0.34);
}

.composer textarea:focus {
  outline: none;
  border-color: rgba(0, 113, 227, 0.28);
  box-shadow: 0 0 0 1px rgba(0, 113, 227, 0.08);
}

.composer__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.composer__hint {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-dim);
}

.send-button {
  min-width: 84px;
  padding: 11px 18px;
  border-color: rgba(0, 113, 227, 0.18);
  background:
    linear-gradient(180deg, rgba(0, 113, 227, 0.16), rgba(0, 113, 227, 0.06)),
    rgba(255, 255, 255, 0.9);
  font-size: 0.84rem;
  font-weight: 560;
}

.send-button:hover,
.send-button:focus-visible {
  border-color: rgba(0, 113, 227, 0.32);
  background:
    linear-gradient(180deg, rgba(0, 113, 227, 0.2), rgba(0, 113, 227, 0.08)),
    rgba(255, 255, 255, 0.96);
}

.send-button:disabled,
.prompt-chip:disabled {
  opacity: 0.46;
  cursor: not-allowed;
  transform: none;
}

.conversation::-webkit-scrollbar,
.timeline::-webkit-scrollbar {
  display: none;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes dot-breathe {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.82;
  }
  50% {
    transform: scale(1.18);
    opacity: 1;
  }
}

@keyframes console-breathe {
  0%,
  100% {
    opacity: 0.58;
  }
  50% {
    opacity: 0.95;
  }
}

@keyframes cursor-blink {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

@media (max-width: 1360px) {
  html {
    font-size: 15px;
  }

  .stage {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.84fr) minmax(0, 0.95fr);
  }

  .topbar__links {
    gap: 14px;
  }

  .topbar__link-item {
    font-size: 0.75rem;
  }
}

@media (max-height: 860px) and (min-width: 981px) {
  .panel--timeline,
  .panel--profile,
  .panel--agent {
    padding: 20px;
  }

  .hero {
    font-size: clamp(1.86rem, 2.4vw, 2.6rem);
  }

  .timeline__facts li,
  .timeline__summary,
  .strength-list__item dd,
  .message__body {
    font-size: 0.82rem;
  }

  .panel__title {
    font-size: 1.2rem;
  }
}

@media (max-width: 980px) {
  body {
    overflow: auto;
  }

  .page-shell {
    height: auto;
    min-height: 100dvh;
  }

  .topbar {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 8px;
    padding: 12px 14px;
  }

  .topbar__links {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 10px 14px;
  }

  .stage {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .panel {
    min-height: auto;
  }

  .panel--timeline,
  .panel--profile,
  .panel--agent {
    max-height: none;
  }

  .panel--agent {
    min-height: 72dvh;
  }

  .panel__title--timeline,
  .title-line--secondary {
    white-space: normal;
  }

  .timeline,
  .conversation {
    overflow: visible;
  }

  .glass-scrollbar {
    display: none;
  }
}

@media (max-width: 640px) {
  html {
    font-size: 15px;
  }

  .page-shell {
    padding: 10px;
  }

  .panel--timeline,
  .panel--profile,
  .panel--agent {
    padding: 16px;
  }

  .panel__header--agent {
    flex-direction: column;
    align-items: flex-start;
  }

  .topbar__links {
    display: grid;
    justify-items: start;
    gap: 8px;
  }

  .hero {
    font-size: 1.82rem;
  }

  .education-list__item,
  .contact-list li,
  .composer__actions {
    grid-template-columns: 1fr;
    display: grid;
  }

  .education-list__time {
    margin-top: -2px;
  }

  .message {
    max-width: 100%;
  }

  .message__body {
    max-width: calc(100% - 38px);
  }
}
