:root {
  color-scheme: light;
  --bg: #f1f4f6;
  --bg-deep: #e3e8ed;
  --panel: rgba(248, 251, 253, 0.76);
  --panel-strong: rgba(255, 255, 255, 0.84);
  --panel-soft: rgba(95, 114, 132, 0.06);
  --line: rgba(26, 46, 66, 0.09);
  --line-strong: rgba(36, 58, 82, 0.16);
  --text: #081523;
  --text-soft: rgba(8, 21, 35, 0.74);
  --text-dim: rgba(48, 67, 87, 0.5);
  --accent: #8d97a3;
  --accent-soft: rgba(141, 151, 163, 0.14);
  --accent-strong: #5f6772;
  --accent-rgb: 141, 151, 163;
  --success: #19c37d;
  --success-rgb: 25, 195, 125;
  --shadow: 0 28px 64px rgba(44, 58, 76, 0.12);
  --chrome: rgba(252, 253, 255, 0.68);
  --chrome-strong: rgba(255, 255, 255, 0.82);
  --chrome-outline: rgba(255, 255, 255, 0.66);
  --grid: rgba(86, 108, 128, 0.03);
  --grid-strong: rgba(104, 126, 148, 0.06);
  --beam: rgba(166, 183, 196, 0.06);
  --beam-strong: rgba(124, 143, 160, 0.09);
  --hero-glow: rgba(190, 203, 214, 0.12);
  --grid-layer-opacity: 0.3;
  --beam-layer-opacity: 0.16;
  --shell-layer-opacity: 0.16;
  --shell-top: rgba(255, 255, 255, 0.18);
  --shell-scan: rgba(118, 132, 145, 0.08);
  --shell-edge: rgba(112, 126, 140, 0.24);
  --shell-edge-shadow: rgba(112, 126, 140, 0.1);
  --console-bg: rgba(242, 246, 249, 0.92);
  --console-strong: rgba(255, 255, 255, 0.9);
  --console-line: rgba(90, 112, 132, 0.08);
  --input-bg: rgba(255, 255, 255, 0.86);
  --chip-bg: rgba(247, 250, 252, 0.8);
  --chip-hover: rgba(141, 151, 163, 0.13);
  --message-user: rgba(141, 151, 163, 0.14);
  --message-system: rgba(244, 247, 250, 0.82);
  --scroll-track: rgba(255, 255, 255, 0.42);
  --scroll-thumb: rgba(255, 255, 255, 0.96);
  --badge-bg: rgba(255, 255, 255, 0.52);
  --badge-top: rgba(255, 255, 255, 0.38);
  --badge-border: rgba(141, 151, 163, 0.18);
  --badge-shadow: rgba(44, 58, 76, 0.08);
  --radius: 8px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 22px;
  --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;
  --font-mono: "SF Mono", "JetBrains Mono", "Menlo", "Monaco", "Consolas",
    "Liberation Mono", monospace;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #07111f;
  --bg-deep: #0a1730;
  --panel: rgba(8, 18, 36, 0.74);
  --panel-strong: rgba(10, 21, 40, 0.88);
  --panel-soft: rgba(169, 178, 188, 0.1);
  --line: rgba(169, 178, 188, 0.18);
  --line-strong: rgba(169, 178, 188, 0.3);
  --text: #e6f2ff;
  --text-soft: rgba(226, 239, 255, 0.76);
  --text-dim: rgba(160, 188, 220, 0.6);
  --accent: #a9b2bc;
  --accent-soft: rgba(169, 178, 188, 0.14);
  --accent-strong: #d3dae2;
  --accent-rgb: 169, 178, 188;
  --success: #31d6a1;
  --success-rgb: 49, 214, 161;
  --shadow: 0 34px 96px rgba(0, 0, 0, 0.42);
  --chrome: rgba(7, 14, 28, 0.72);
  --chrome-strong: rgba(10, 17, 32, 0.84);
  --chrome-outline: rgba(169, 178, 188, 0.12);
  --grid: rgba(169, 178, 188, 0.1);
  --grid-strong: rgba(169, 178, 188, 0.2);
  --beam: rgba(169, 178, 188, 0.12);
  --beam-strong: rgba(169, 178, 188, 0.2);
  --hero-glow: rgba(169, 178, 188, 0.22);
  --grid-layer-opacity: 0.7;
  --beam-layer-opacity: 0.5;
  --shell-layer-opacity: 0.42;
  --shell-top: rgba(var(--accent-rgb), 0.08);
  --shell-scan: rgba(var(--accent-rgb), 0.1);
  --shell-edge: rgba(var(--accent-rgb), 0.38);
  --shell-edge-shadow: rgba(var(--accent-rgb), 0.18);
  --console-bg: rgba(5, 12, 24, 0.84);
  --console-strong: rgba(8, 17, 34, 0.92);
  --console-line: rgba(169, 178, 188, 0.12);
  --input-bg: rgba(7, 18, 33, 0.88);
  --chip-bg: rgba(9, 20, 38, 0.76);
  --chip-hover: rgba(169, 178, 188, 0.12);
  --message-user: rgba(169, 178, 188, 0.16);
  --message-system: rgba(8, 19, 37, 0.76);
  --scroll-track: rgba(17, 31, 56, 0.74);
  --scroll-thumb: rgba(184, 192, 201, 0.72);
  --badge-bg: rgba(8, 18, 36, 0.78);
  --badge-top: rgba(169, 178, 188, 0.1);
  --badge-border: rgba(169, 178, 188, 0.18);
  --badge-shadow: rgba(0, 0, 0, 0.18);
}

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

html {
  font-size: 17px;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-sans);
  color: var(--text);
  background:
    radial-gradient(circle at 16% 14%, var(--hero-glow), transparent 24%),
    radial-gradient(circle at 86% 2%, var(--beam), transparent 28%),
    linear-gradient(180deg, var(--bg), var(--bg-deep));
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-y: auto;
  transition:
    background 280ms ease,
    color 240ms ease;
}

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%, transparent calc(50% - 0.5px), var(--grid-strong) 50%, transparent calc(50% + 0.5px)),
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 100% 100%, 100% 6.5rem, 6.5rem 100%;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.92), transparent 92%);
  opacity: var(--grid-layer-opacity);
  animation: grid-drift 18s linear infinite;
}

body::after {
  background:
    linear-gradient(118deg, transparent 0%, transparent 44%, var(--beam) 49%, var(--beam-strong) 51%, transparent 56%, transparent 100%),
    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");
  background-size: 220% 220%, 180px 180px;
  background-position: 140% 0, 0 0;
  opacity: var(--beam-layer-opacity);
  animation: beam-sweep 14s linear infinite;
}

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;
  min-height: 100dvh;
  padding: 18px 18px 16px;
}

.page-shell::before,
.page-shell::after {
  content: "";
  position: absolute;
  pointer-events: none;
  inset: 0;
}

.page-shell::before {
  background:
    linear-gradient(180deg, var(--shell-top), transparent 18%),
    linear-gradient(90deg, transparent 0%, var(--shell-scan) 50%, transparent 100%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.74), transparent 90%);
  opacity: var(--shell-layer-opacity);
}

.page-shell::after {
  display: none;
}

.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-strong);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 70%),
    var(--chrome);
  backdrop-filter: blur(20px) saturate(1.2);
  box-shadow:
    var(--shadow),
    inset 0 1px 0 var(--chrome-outline);
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  animation: panel-rise 720ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

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

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

.panel__eyebrow {
  color: rgba(8, 21, 35, 0.82);
}

.topbar__name {
  font-size: 1.12rem;
  font-weight: 630;
  letter-spacing: 0.03em;
  color: var(--text);
}

.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.86rem;
  line-height: 1.32;
  color: var(--text);
  white-space: nowrap;
}

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

.topbar__link-item a {
  min-width: 0;
  color: #4f6f95;
  font-weight: 500;
  transition: color 160ms ease;
}

.topbar__link-item a:hover {
  color: #405d80;
}

.topbar__meta {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.03em;
  text-transform: none;
  white-space: nowrap;
  padding: 8px 12px;
  border: 1px solid var(--badge-border);
  border-radius: 999px;
  background:
    linear-gradient(180deg, var(--badge-top), rgba(var(--accent-rgb), 0.04)),
    var(--badge-bg);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 8px 20px var(--badge-shadow);
}

.topbar__controls {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-width: 0;
}

.theme-toggle {
  position: relative;
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent),
    var(--chrome-strong);
  box-shadow: inset 0 1px 0 var(--chrome-outline);
  border-radius: 12px;
}

.theme-toggle__button {
  appearance: none;
  min-width: 30px;
  min-height: 30px;
  padding: 5px;
  border: 0;
  background: transparent;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 9px;
  transition:
    color 160ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.theme-toggle__button:hover,
.theme-toggle__button:focus-visible {
  color: var(--text);
  outline: none;
}

.theme-toggle__button.is-active {
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(var(--accent-rgb), 0.16), rgba(var(--accent-rgb), 0.06)),
    rgba(255, 255, 255, 0.02);
  box-shadow:
    inset 0 0 0 1px rgba(var(--accent-rgb), 0.2),
    0 0 16px rgba(var(--accent-rgb), 0.14);
}

.theme-toggle__button--icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0;
  text-transform: none;
}

.theme-toggle__button--icon span {
  display: block;
  line-height: 1;
  opacity: 0.84;
  transform: translateY(-0.5px);
}

.stage {
  display: grid;
  grid-template-columns: minmax(248px, 0.9fr) minmax(340px, 0.98fr) minmax(360px, 1.14fr);
  gap: 14px;
  flex: 1 0 auto;
  --desktop-panel-height: auto;
  min-height: 0;
  margin-top: 14px;
  align-items: stretch;
}

.panel {
  position: relative;
  min-height: 0;
  height: var(--desktop-panel-height, auto);
  max-height: var(--desktop-panel-height, none);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 22%),
    linear-gradient(135deg, var(--panel-strong), var(--panel)),
    var(--panel);
  backdrop-filter: blur(24px) saturate(1.14);
  box-shadow:
    var(--shadow),
    inset 0 1px 0 var(--chrome-outline);
  border-radius: var(--radius-xl);
  transition:
    border-color 220ms ease,
    box-shadow 220ms ease,
    background 220ms ease,
    transform 220ms ease;
  animation: panel-rise 760ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.panel:nth-of-type(2) {
  animation-delay: 0.08s;
}

.panel:nth-of-type(3) {
  animation-delay: 0.16s;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 20%),
    linear-gradient(90deg, transparent, rgba(var(--accent-rgb), 0.1), transparent);
  opacity: 0.78;
  pointer-events: none;
}

.panel::after {
  content: "";
  position: absolute;
  inset: -20% 45% -20% -10%;
  background:
    linear-gradient(90deg, transparent, rgba(var(--accent-rgb), 0.18), transparent);
  opacity: 0.38;
  transform: translateX(-28%);
  transition:
    opacity 220ms ease,
    transform 280ms ease;
  pointer-events: none;
  animation: edge-scan 10s linear infinite;
}

.panel:hover,
.panel:focus-within {
  border-color: rgba(var(--accent-rgb), 0.32);
  box-shadow:
    0 34px 80px rgba(0, 0, 0, 0.16),
    0 0 0 1px rgba(var(--accent-rgb), 0.1) inset,
    0 0 24px rgba(var(--accent-rgb), 0.08);
  transform: translateY(-2px);
}

.panel:hover::after,
.panel:focus-within::after {
  opacity: 0.68;
  transform: translateX(0);
}

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

.panel--profile {
  padding: 17px 18px 15px;
}

.panel--agent {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  padding: 17px 18px 15px;
  background:
    linear-gradient(180deg, rgba(var(--accent-rgb), 0.12), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 42%),
    linear-gradient(180deg, var(--panel-strong), var(--panel)),
    var(--panel-strong);
}

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

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

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

.panel__header--agent > div {
  display: grid;
  gap: 8px;
}

.panel__title {
  margin: 0;
  max-width: 20ch;
  font-size: clamp(1.52rem, 1.7vw, 2.08rem);
  line-height: 1.12;
  letter-spacing: -0.038em;
  font-weight: 620;
  color: var(--text);
}

.panel__title--timeline {
  max-width: none;
  font-size: clamp(1.64rem, 1.95vw, 2.28rem);
  line-height: 1.04;
  white-space: normal;
}

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

.title-line {
  display: block;
}

.title-line--secondary {
  font-size: 0.88em;
  line-height: 1.18;
  white-space: nowrap;
  color: var(--text-soft);
}

.hero {
  margin: 0;
  max-width: none;
  width: 100%;
  font-size: clamp(1.64rem, 1.95vw, 2.28rem);
  line-height: 1.04;
  letter-spacing: -0.042em;
  font-weight: 640;
  color: var(--text);
  text-shadow: 0 0 18px var(--hero-glow);
}

.hero__body {
  margin: 0;
  max-width: none;
  width: 100%;
  font-size: 0.98rem;
  line-height: 1.62;
  color: var(--text-soft);
}

.section-divider {
  width: 100%;
  height: 1px;
  margin: 9px 0 7px;
  background: linear-gradient(90deg, rgba(var(--accent-rgb), 0.26), rgba(var(--accent-rgb), 0.04));
}

.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: 6px;
  padding-right: 20px;
}

.glass-scrollbar {
  position: absolute;
  top: 6px;
  right: 3px;
  bottom: 6px;
  width: 10px;
  border-radius: 999px;
  background: var(--scroll-track);
  border: 1px solid rgba(var(--accent-rgb), 0.1);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 8px 18px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(20px) saturate(1.26);
  opacity: 0.38;
  transition:
    opacity 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
  pointer-events: auto;
  touch-action: none;
}

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

.scroll-panel:hover .glass-scrollbar,
.scroll-panel:focus-within .glass-scrollbar,
.glass-scrollbar--active {
  opacity: 0.6;
  border-color: rgba(var(--accent-rgb), 0.16);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.1),
    0 10px 20px rgba(0, 0, 0, 0.1);
}

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

.glass-scrollbar__thumb {
  position: absolute;
  left: 1px;
  right: 1px;
  top: 0;
  min-height: 38px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(var(--accent-rgb), 0.14), rgba(255, 255, 255, 0.1)),
    var(--scroll-thumb);
  border: 1px solid rgba(var(--accent-rgb), 0.14);
  box-shadow:
    0 8px 16px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  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: 14px;
  animation: rise-in 0.7s ease both;
  z-index: 0;
}

.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(var(--accent-rgb), 0.28);
  box-shadow: 0 0 0 6px rgba(var(--accent-rgb), 0.08);
}

.timeline__rail::after {
  top: 1rem;
  bottom: -0.35rem;
  width: 1px;
  background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.24), rgba(var(--accent-rgb), 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(var(--accent-rgb), 0.1),
    0 0 18px rgba(var(--accent-rgb), 0.24);
  animation: dot-breathe 3s ease-in-out infinite;
}

.timeline__item:hover .timeline__rail::before,
.timeline__item:focus-within .timeline__rail::before {
  background: var(--accent-strong);
  box-shadow:
    0 0 0 6px rgba(var(--accent-rgb), 0.1),
    0 0 16px rgba(var(--accent-rgb), 0.2);
}

.timeline__content {
  display: grid;
  gap: 8px;
  padding: 14px 16px 16px;
  border: 1px solid rgba(var(--accent-rgb), 0.1);
  border-radius: var(--radius-md);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.12)),
    rgba(255, 255, 255, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 12px 28px rgba(44, 58, 76, 0.05);
  transform: translateY(0) scale(1);
  transform-origin: center;
  transition:
    transform 260ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 260ms cubic-bezier(0.16, 1, 0.3, 1),
    border-color 220ms ease,
    background 220ms ease;
  will-change: transform;
}

.timeline__item:hover .timeline__content,
.timeline__item:focus-within .timeline__content {
  transform: translateY(-4px) scale(1.028);
  border-color: rgba(var(--accent-rgb), 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.16)),
    rgba(255, 255, 255, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 20px 38px rgba(44, 58, 76, 0.12);
  z-index: 2;
}

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

.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,
.prompt-strip,
.agent-console {
  position: relative;
  z-index: 1;
}

.timeline__role {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.24;
  font-weight: 600;
  color: var(--text);
}

.timeline__project {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.08rem;
  line-height: 1.28;
  color: var(--text);
  letter-spacing: 0.01em;
}

.timeline__summary {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.64;
  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.91rem;
  line-height: 1.58;
  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(var(--accent-rgb), 0.9), rgba(var(--accent-rgb), 0.36));
  box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.2);
}

.timeline__facts a,
.contact-list a {
  color: #4f6f95;
}

.timeline__facts a:hover,
.contact-list a:hover {
  color: #405d80;
}

.inline-doc-link {
  color: #4f6f95;
  text-decoration: none;
  font-weight: 500;
  border-radius: var(--radius-sm);
}

.timeline__facts a.inline-doc-link {
  color: #4f6f95;
}

.timeline__facts a:not(.inline-doc-link) {
  font-weight: 600;
}

.inline-doc-link:hover {
  color: #405d80;
}

.timeline__facts a.inline-doc-link:hover {
  color: #405d80;
}

.panel__scroll--profile {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(var(--accent-rgb), 0.1);
  border-radius: calc(var(--radius-xl) - 2px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.12)),
    rgba(255, 255, 255, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 14px 30px rgba(44, 58, 76, 0.05);
}

.profile-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  margin: 0;
  padding: 0;
}

.profile-tabs__button {
  appearance: none;
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid rgba(var(--accent-rgb), 0.1);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.08)),
    rgba(255, 255, 255, 0.2);
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition:
    color 180ms ease,
    background 220ms ease,
    box-shadow 220ms ease,
    transform 220ms ease;
}

.profile-tabs__button:hover,
.profile-tabs__button:focus-visible {
  color: var(--text);
  outline: none;
}

.profile-tabs__button.is-active {
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(var(--accent-rgb), 0.18), rgba(var(--accent-rgb), 0.06)),
    rgba(255, 255, 255, 0.36);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 10px 22px rgba(44, 58, 76, 0.08);
}

.profile-section[hidden] {
  display: none;
}

.profile-section {
  display: grid;
  gap: 12px;
  min-height: 0;
  height: 100%;
  align-content: stretch;
}

.profile-section[data-profile-panel="strengths"],
.profile-section[data-profile-panel="education"] {
  height: 100%;
}

.profile-section[data-profile-panel="strengths"] {
  grid-template-rows: minmax(0, 1fr);
}

.profile-section[data-profile-panel="education"] .education-list {
  grid-template-rows: repeat(3, minmax(0, 1fr));
  min-height: 100%;
}

.profile-section__title {
  display: none;
}

.strength-list {
  margin: 0;
  display: grid;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 12px;
  min-height: 100%;
}

.strength-list__item {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 16px 18px;
  border: 1px solid rgba(var(--accent-rgb), 0.08);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(0) scale(1);
  transform-origin: center;
  transition:
    transform 260ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 260ms cubic-bezier(0.16, 1, 0.3, 1),
    border-color 220ms ease,
    background 220ms ease;
  will-change: transform;
}

.strength-list__item dt {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.08rem;
  font-weight: 610;
  letter-spacing: -0.026em;
}

.strength-list__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(var(--accent-rgb), 0.14);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(var(--accent-rgb), 0.12), rgba(var(--accent-rgb), 0.04)),
    rgba(255, 255, 255, 0.38);
  color: var(--accent-strong);
  font-family: var(--font-mono);
  font-size: 0.92rem;
  line-height: 1;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 8px 18px rgba(44, 58, 76, 0.06);
  transition:
    transform 260ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 260ms cubic-bezier(0.16, 1, 0.3, 1),
    border-color 220ms ease;
}

.strength-list__icon svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.strength-list__item:hover,
.strength-list__item:focus-within {
  transform: translateY(-3px) scale(1.018);
  border-color: rgba(var(--accent-rgb), 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.16)),
    rgba(255, 255, 255, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 16px 30px rgba(44, 58, 76, 0.09);
}

.strength-list__item:hover .strength-list__icon,
.strength-list__item:focus-within .strength-list__icon {
  transform: scale(1.06);
  border-color: rgba(var(--accent-rgb), 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 12px 22px rgba(44, 58, 76, 0.08);
}

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

.strength-points {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.strength-points li {
  position: relative;
  padding-left: 14px;
}

.strength-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.56rem;
  width: 5px;
  height: 5px;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.86), rgba(var(--accent-rgb), 0.32));
  box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.16);
}

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

.education-list__item {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
  align-content: start;
  min-height: 0;
  height: 100%;
  padding: 16px 18px;
  border: 1px solid rgba(var(--accent-rgb), 0.08);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.24);
  animation: rise-in 0.7s ease both;
  transform: translateY(0) scale(1);
  transform-origin: center;
  transition:
    transform 260ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 260ms cubic-bezier(0.16, 1, 0.3, 1),
    border-color 220ms ease,
    background 220ms ease;
  will-change: transform;
}

.education-list__item:hover,
.education-list__item:focus-within {
  transform: translateY(-3px) scale(1.018);
  border-color: rgba(var(--accent-rgb), 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.16)),
    rgba(255, 255, 255, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 16px 30px rgba(44, 58, 76, 0.09);
}

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

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

:root[data-theme="dark"] .timeline__content,
:root[data-theme="dark"] .profile-section,
:root[data-theme="dark"] .education-list__item,
:root[data-theme="dark"] .strength-list__item {
  border-color: rgba(var(--accent-rgb), 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
    linear-gradient(180deg, rgba(9, 20, 38, 0.92), rgba(6, 15, 31, 0.88));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 12px 28px rgba(0, 0, 0, 0.2);
}

:root[data-theme="dark"] .strength-list__item,
:root[data-theme="dark"] .education-list__item {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.008)),
    linear-gradient(180deg, rgba(10, 21, 40, 0.9), rgba(7, 17, 33, 0.86));
}

:root[data-theme="dark"] .profile-tabs {
  background: none;
}

:root[data-theme="dark"] .panel__scroll--profile {
  border-color: rgba(var(--accent-rgb), 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.008)),
    linear-gradient(180deg, rgba(10, 21, 40, 0.9), rgba(7, 17, 33, 0.86));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 18px 34px rgba(0, 0, 0, 0.22);
}

:root[data-theme="dark"] .profile-tabs__button {
  border-color: rgba(var(--accent-rgb), 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.006)),
    rgba(10, 21, 40, 0.72);
}

:root[data-theme="dark"] .profile-tabs__button.is-active {
  background:
    linear-gradient(180deg, rgba(var(--accent-rgb), 0.1), rgba(var(--accent-rgb), 0.03)),
    rgba(11, 24, 45, 0.92);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 12px 24px rgba(0, 0, 0, 0.2);
}

:root[data-theme="dark"] .strength-list__icon {
  border-color: rgba(var(--accent-rgb), 0.16);
  background:
    linear-gradient(180deg, rgba(var(--accent-rgb), 0.08), rgba(var(--accent-rgb), 0.03)),
    rgba(10, 21, 40, 0.88);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 10px 20px rgba(0, 0, 0, 0.18);
}

:root[data-theme="dark"] .strength-list__item:hover,
:root[data-theme="dark"] .strength-list__item:focus-within {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)),
    linear-gradient(180deg, rgba(11, 24, 45, 0.94), rgba(8, 18, 36, 0.9));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 18px 34px rgba(0, 0, 0, 0.24);
}

:root[data-theme="dark"] .timeline__item:hover .timeline__content,
:root[data-theme="dark"] .timeline__item:focus-within .timeline__content,
:root[data-theme="dark"] .education-list__item:hover,
:root[data-theme="dark"] .education-list__item:focus-within {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)),
    linear-gradient(180deg, rgba(11, 24, 45, 0.94), rgba(8, 18, 36, 0.9));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 18px 34px rgba(0, 0, 0, 0.24);
}

.education-list__rail {
  position: relative;
  height: 100%;
}

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

.education-list__rail::before {
  top: 0.38rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.26);
  box-shadow: 0 0 0 5px rgba(var(--accent-rgb), 0.06);
  transition:
    background 180ms ease,
    box-shadow 180ms ease;
}

.education-list__rail::after {
  top: 0.98rem;
  bottom: -0.3rem;
  width: 1px;
  background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.18), rgba(var(--accent-rgb), 0.03));
}

.education-list__item:last-child .education-list__rail::after {
  display: none;
}

.education-list__item:hover .education-list__rail::before,
.education-list__item:focus-within .education-list__rail::before {
  background: var(--accent-strong);
  box-shadow:
    0 0 0 5px rgba(var(--accent-rgb), 0.08),
    0 0 14px rgba(var(--accent-rgb), 0.18);
}

.education-list__content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-content: start;
  gap: 14px;
  align-items: start;
  min-height: 0;
  height: 100%;
  border-radius: var(--radius-md);
}

.education-list__content > div {
  display: grid;
  gap: 8px;
}

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

.education-list__degree {
  font-size: 1.08rem;
  letter-spacing: -0.026em;
  font-weight: 600;
  line-height: 1.5;
}

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

.education-list__time {
  padding-top: 1px;
  white-space: nowrap;
  font-family: var(--font-mono);
}

.panel__scroll--profile {
  margin-top: 6px;
  overflow: auto;
  scrollbar-width: none;
  padding-right: 20px;
}

.panel__scroll--profile.scroll-panel--fit {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  align-items: stretch;
  gap: 12px;
}

.panel__scroll--profile::-webkit-scrollbar {
  display: none;
}

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

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

.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;
}

.prompt-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.prompt-chip {
  position: relative;
  overflow: hidden;
  padding: 9px 12px;
  border-color: var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent),
    var(--chip-bg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  font-family: var(--font-mono);
  font-size: 0.86rem;
  line-height: 1.42;
  color: var(--text-soft);
  text-align: left;
  border-radius: var(--radius-md);
}

.prompt-chip::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 -120%;
  width: 70%;
  background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb), 0.2), transparent);
  transform: skewX(-18deg);
  transition: transform 280ms ease;
}

.prompt-chip:hover,
.prompt-chip:focus-visible {
  color: var(--accent-strong);
  border-color: rgba(var(--accent-rgb), 0.28);
  background:
    linear-gradient(180deg, rgba(var(--accent-rgb), 0.12), rgba(var(--accent-rgb), 0.03)),
    var(--chip-hover);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 18px rgba(var(--accent-rgb), 0.1);
  transform: translateY(-1px);
}

.prompt-chip:hover::before,
.prompt-chip:focus-visible::before {
  transform: translateX(190%) skewX(-18deg);
}

.agent-console {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 0;
  margin-top: 6px;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(180deg, rgba(var(--accent-rgb), 0.08), transparent 24%),
    linear-gradient(180deg, var(--console-strong), var(--console-bg));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(var(--accent-rgb), 0.06);
  overflow: hidden;
  border-radius: var(--radius-xl);
}

.agent-console::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(var(--console-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--console-line) 1px, transparent 1px);
  background-size: 100% 3.6rem, 3.6rem 100%;
  pointer-events: none;
  opacity: 0.36;
}

.agent-console::after {
  content: "";
  position: absolute;
  inset: -25% 0 auto;
  height: 40%;
  background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.18), transparent 66%);
  pointer-events: none;
  opacity: 0.42;
  animation: scanline 6.6s linear infinite;
}

.conversation {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
  padding: 18px;
  overflow: auto;
  scrollbar-width: none;
  scroll-behavior: smooth;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.01), rgba(255, 255, 255, 0));
  border-radius: calc(var(--radius-xl) - 2px) calc(var(--radius-xl) - 2px) 0 0;
}

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

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

.message--system,
.message--error {
  width: 100%;
}

.message__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  min-width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  background: var(--panel-strong);
  font-size: 0.72rem;
  color: var(--text-dim);
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(var(--accent-rgb), 0.04);
}

.message__badge--portrait {
  border-radius: 50%;
  padding: 0;
  border-color: rgba(var(--accent-rgb), 0.2);
  background: var(--panel-strong);
}

.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.08), transparent),
    var(--panel-strong);
}

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

.message__body {
  max-width: calc(100% - 42px);
  padding: 11px 12px 12px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent),
    var(--panel-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  font-size: 0.98rem;
  line-height: 1.68;
  color: var(--text-soft);
  white-space: pre-wrap;
  word-break: break-word;
  border-radius: var(--radius-lg);
}

.message__quick-replies {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  margin-top: 10px;
}

.message__quick-reply {
  appearance: none;
  padding: 6px 10px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(var(--accent-rgb), 0.1), rgba(var(--accent-rgb), 0.02)),
    var(--chip-bg);
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    color 160ms ease;
}

.message__quick-reply:hover,
.message__quick-reply:focus-visible {
  border-color: rgba(var(--accent-rgb), 0.28);
  color: var(--accent-strong);
  outline: none;
}

.message--user .message__body {
  border-color: rgba(var(--accent-rgb), 0.22);
  background:
    linear-gradient(180deg, rgba(var(--accent-rgb), 0.16), rgba(var(--accent-rgb), 0.04)),
    var(--message-user);
  color: var(--text);
  border-radius: var(--radius-lg) var(--radius-lg) 12px var(--radius-lg);
}

.message--system .message__body {
  background: var(--message-system);
  color: var(--text-dim);
  border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) 12px;
  width: 100%;
}

.message--error .message__body {
  border-color: rgba(248, 113, 113, 0.18);
  background: rgba(127, 29, 29, 0.08);
  border-radius: var(--radius-lg);
  width: 100%;
}

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

.inline-action {
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent-strong);
  font-size: 0.86rem;
  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(var(--accent-rgb), 0.72);
  animation: cursor-blink 0.9s steps(1, end) infinite;
}

.composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 12px;
  row-gap: 0;
  padding: 20px 18px 18px;
  border-top: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(var(--accent-rgb), 0.08), transparent),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent),
    var(--console-bg);
  border-radius: 0 0 calc(var(--radius-xl) - 2px) calc(var(--radius-xl) - 2px);
}

.composer textarea {
  width: 100%;
  min-width: 0;
  min-height: 56px;
  height: 56px;
  max-height: 56px;
  padding: 16px 16px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent),
    var(--input-bg);
  color: var(--text);
  resize: none;
  font-size: 0.88rem;
  font-family: var(--font-mono);
  line-height: 1.55;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  justify-self: stretch;
  margin-top: 0;
  overflow-y: hidden;
}

.composer textarea::placeholder {
  color: rgba(var(--accent-rgb), 0.34);
}

.composer textarea:focus {
  outline: none;
  border-color: rgba(var(--accent-rgb), 0.32);
  box-shadow:
    0 0 0 1px rgba(var(--accent-rgb), 0.1),
    0 0 22px rgba(var(--accent-rgb), 0.08);
}

.composer__actions {
  display: flex;
  align-items: center;
  align-self: center;
  min-width: max-content;
}

.composer__hint {
  display: none;
}

.send-button {
  min-width: 76px;
  height: 56px;
  padding: 0 14px;
  border-color: rgba(var(--accent-rgb), 0.24);
  background:
    linear-gradient(180deg, rgba(var(--accent-rgb), 0.22), rgba(var(--accent-rgb), 0.08)),
    rgba(255, 255, 255, 0.03);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 0 18px rgba(var(--accent-rgb), 0.12);
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--radius-md);
}

.send-button:hover,
.send-button:focus-visible {
  border-color: rgba(var(--accent-rgb), 0.42);
  background:
    linear-gradient(180deg, rgba(var(--accent-rgb), 0.28), rgba(var(--accent-rgb), 0.08)),
    rgba(255, 255, 255, 0.06);
}

.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 panel-rise {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

@keyframes grid-drift {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(3.25rem);
  }
}

@keyframes beam-sweep {
  0%,
  100% {
    background-position: 140% 0, 0 0;
  }
  50% {
    background-position: -40% 0, 0 0;
  }
}

@keyframes edge-scan {
  0% {
    transform: translateX(-32%);
  }
  50% {
    transform: translateX(12%);
  }
  100% {
    transform: translateX(58%);
  }
}

@keyframes scanline {
  0% {
    transform: translateY(-42%);
    opacity: 0;
  }
  14% {
    opacity: 0.42;
  }
  88% {
    opacity: 0.18;
  }
  100% {
    transform: translateY(235%);
    opacity: 0;
  }
}

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

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

  .stage {
    grid-template-columns: minmax(225px, 0.84fr) minmax(340px, 1fr) minmax(310px, 1.08fr);
  }

  .topbar__links {
    gap: 14px;
  }

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

@media (max-width: 1220px) and (min-width: 981px) {
  .topbar {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "brand controls"
      "links links";
    align-items: start;
    gap: 10px 14px;
    padding: 12px 14px;
  }

  .topbar__brand {
    grid-area: brand;
  }

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

  .topbar__controls {
    grid-area: controls;
    justify-self: end;
    padding-top: 2px;
  }

  .stage {
    grid-template-columns: minmax(210px, 0.78fr) minmax(320px, 0.98fr) minmax(290px, 1.04fr);
    gap: 12px;
  }
}

@media (max-height: 940px) and (min-width: 981px) {
  .page-shell {
    padding: 14px 14px 12px;
  }

  .topbar {
    gap: 14px;
    min-height: 56px;
    padding: 0 12px;
  }

  .stage {
    grid-template-columns: minmax(232px, 0.82fr) minmax(336px, 0.98fr) minmax(300px, 1.08fr);
    gap: 12px;
    margin-top: 12px;
  }

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

  .panel--profile {
    padding: 16px 16px 14px;
  }

  .hero {
    font-size: 1.36rem;
    line-height: 1.08;
  }

  .hero__body {
    font-size: 0.92rem;
    line-height: 1.56;
  }

  .section-divider {
    margin: 8px 0 7px;
  }

  .strength-list,
  .education-list {
    gap: 8px;
  }

  .education-list__item {
    gap: 14px;
  }

  .education-list__content {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .education-list__content > div {
    gap: 3px;
  }

  .education-list__time {
    padding-top: 0;
    white-space: normal;
  }

  .timeline__facts li,
  .timeline__summary,
  .strength-list__item dd,
  .message__body {
    font-size: 0.9rem;
    line-height: 1.56;
  }

  .panel__title {
    font-size: 1.34rem;
  }

  .prompt-strip {
    margin-top: 12px;
  }

  .agent-console {
    margin-top: 6px;
  }
}

@media (max-height: 820px) and (min-width: 981px) {
  .stage {
    grid-template-columns: minmax(210px, 0.76fr) minmax(312px, 0.98fr) minmax(280px, 1.04fr);
    gap: 10px;
  }

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

  .panel__title {
    font-size: 1.18rem;
  }

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

  .panel__title--timeline {
    font-size: 1.22rem;
    line-height: 1.1;
  }

  .hero {
    font-size: 1.22rem;
    line-height: 1.1;
  }

  .hero__body,
  .timeline__summary,
  .timeline__facts li,
  .strength-list__item dd,
  .education-list__school,
  .education-list__time,
  .message__body {
    font-size: 0.86rem;
    line-height: 1.52;
  }

  .timeline__role,
  .strength-list__item dt,
  .education-list__degree {
    font-size: 0.98rem;
  }

  .profile-section__title {
    font-size: 0.8rem;
  }

  .strength-list {
    gap: 8px;
  }

  .timeline__item {
    gap: 14px;
    padding-bottom: 16px;
  }

  .panel__scroll--profile {
    padding-right: 22px;
  }
}

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

  .page-shell {
    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;
  }

  .topbar__controls {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

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

  .panel {
    min-height: auto;
    max-height: none;
  }

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

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

  .message__quick-replies {
    grid-template-columns: 1fr;
  }

  .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;
  }

  .page-shell::after {
    inset: 10px 10px auto;
  }

  .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;
  }

  .topbar__controls {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
  }

  .theme-toggle {
    width: 100%;
  }

  .theme-toggle__button {
    min-width: 0;
  }

  .hero {
    font-size: 1.82rem;
  }

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

  .composer {
    grid-template-columns: 1fr;
    padding-top: 16px;
    row-gap: 8px;
  }

  .composer textarea {
    width: 100%;
    margin-top: 0;
    max-height: 96px;
  }

  .composer__actions {
    display: grid;
    justify-items: stretch;
    min-width: 0;
  }

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

  .message {
    max-width: 100%;
  }

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