:root {
  --bg: #f6f2ea;
  --paper: #fffdf8;
  --ink: #1c211d;
  --muted: #626b62;
  --line: #d7d2c7;
  --accent: #2c6f63;
  --accent-2: #8a4d34;
  --accent-3: #2f536f;
  --main-tag-border: rgba(30, 109, 91, 0.72);
  --main-tag-bg: #cdebd8;
  --main-tag-bg-hover: #b9e3ca;
  --main-tag-ink: #174e43;
  --main-tag-ink-hover: #123f37;
  --meta-tag-border: rgba(138, 77, 52, 0.34);
  --meta-tag-bg: #f0ded2;
  --meta-tag-bg-hover: #e7c9b8;
  --meta-tag-ink: #7a3f2d;
  --meta-tag-ink-hover: #623120;
  --soft: #e6ede8;
  --shadow: 0 18px 45px rgba(37, 43, 35, 0.08);
  color-scheme: light;
  font-family: ui-serif, Georgia, "Times New Roman", "Hiragino Mincho ProN", "Yu Mincho", serif;
}

body[data-works-page="papers"] {
  --accent: #1f8a78;
  --accent-2: #a4522c;
  --accent-3: #3f7398;
  --soft: #e8f1e9;
  --main-tag-border: rgba(31, 138, 120, 0.46);
  --main-tag-bg: #e3f2ee;
  --main-tag-bg-hover: #d4ebe5;
  --main-tag-ink: #176b5f;
  --main-tag-ink-hover: #12594f;
  --meta-tag-border: rgba(207, 106, 47, 0.34);
  --meta-tag-bg: #f5e3d4;
  --meta-tag-bg-hover: #edd4c0;
  --meta-tag-ink: #a4522c;
  --meta-tag-ink-hover: #843f23;
  --paper-ink: #1f2721;
  --paper-ink-strong: #24312a;
  --paper-teal: #1f8a78;
  --paper-teal-rgb: 31, 138, 120;
  --paper-teal-deep: #176b5f;
  --paper-teal-soft: #e3f2ee;
  --paper-green: #4b8062;
  --paper-green-rgb: 75, 128, 98;
  --paper-green-soft: #e8f1e9;
  --paper-orange: #cf6a2f;
  --paper-orange-rgb: 207, 106, 47;
  --paper-orange-deep: #a4522c;
  --paper-orange-soft: #f5e3d4;
  --paper-blue: #3f7398;
  --paper-blue-rgb: 63, 115, 152;
  --paper-blue-deep: #315b78;
  --paper-blue-soft: #e5edf3;
  --paper-red: #bf4f43;
  --paper-red-rgb: 191, 79, 67;
  --paper-red-soft: #f4e1dc;
  --paper-purple: #7765a6;
  --paper-purple-rgb: 119, 101, 166;
  --paper-purple-soft: #ece8f3;
  --paper-gray: #747872;
  --paper-gray-rgb: 116, 120, 114;
  --paper-gray-soft: #e7e7e2;
}

* {
  box-sizing: border-box;
}

img,
svg,
video,
canvas {
  max-width: 100%;
}

html {
  max-width: 100%;
  overflow-x: clip;
  scroll-behavior: smooth;
}

.publication-item-compact {
  padding-block: 14px;
}

.publication-item-compact h3 {
  margin-bottom: 6px;
}

.publication-compact-meta,
.publication-summary-compact {
  margin-block: 4px 8px;
}

.paper-tag-index-head-compact {
  align-items: center;
}

.paper-tag-toggle {
  flex: none;
}

.works-search-loading {
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.88), transparent 36%),
    color-mix(in srgb, var(--surface) 88%, transparent);
}

.loading-dots {
  display: flex;
  gap: 12px;
  color: var(--ink);
}

.loading-dots span {
  width: 11px;
  height: 11px;
  display: block;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.3;
  animation: works-dot-bounce 0.9s ease-in-out infinite;
}

.loading-dots span:nth-child(2) {
  animation-delay: 0.12s;
}

.loading-dots span:nth-child(3) {
  animation-delay: 0.24s;
}

.publication-figure.is-loading {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes works-dot-bounce {
  0%,
  80%,
  100% {
    opacity: 0.3;
    transform: translateY(0) scale(0.86);
  }

  40% {
    opacity: 0.95;
    transform: translateY(-8px) scale(1);
  }
}

body {
  margin: 0;
  max-width: 100%;
  overflow-x: clip;
  background:
    radial-gradient(circle at 18% 8%, rgba(44, 111, 99, 0.1), transparent 25rem),
    linear-gradient(180deg, #f7f3ec 0%, var(--bg) 36%, #f2efe8 100%);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.62;
}

a {
  color: var(--accent);
  overflow-wrap: anywhere;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent-2);
}

button,
input {
  font: inherit;
}

:where(
  .site-header,
  .site-footer,
  .section,
  .hero,
  .section-head,
  .publication-title,
  .problem-feature-head,
  .problem-detail-grid,
  .problem-toolbar,
  .paper-controls,
  .note-toolbar,
  .notes-filter-row,
  .talk-map-toolbar,
  .diagram-dialog-header
) > * {
  min-width: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 10px clamp(16px, 4vw, 64px);
  border-bottom: 1px solid rgba(45, 54, 45, 0.14);
  background: rgba(246, 242, 234, 0.92);
  backdrop-filter: blur(16px);
}

.draft-notice {
  position: sticky;
  top: 64px;
  z-index: 19;
  padding: 6px clamp(16px, 4vw, 64px);
  border-bottom: 1px solid rgba(172, 33, 33, 0.18);
  background: rgba(255, 246, 246, 0.94);
  color: #b42318;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Hiragino Sans", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.1;
}

.brand small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.8rem;
}

.ui-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 18px;
  height: 18px;
  color: currentColor;
}

.ui-icon-svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: hidden;
}

.site-nav {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: clamp(4px, 0.75vw, 8px);
  overflow: clip;
  overflow-clip-margin: 260px;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.9rem;
}

.nav-group {
  position: relative;
}

.nav-group::after {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: none;
  height: 8px;
  content: "";
}

.nav-group:hover::after,
.nav-group:focus-within::after {
  display: block;
}

.site-nav a,
.nav-group-label {
  color: var(--ink);
  text-decoration: none;
}

.nav-group-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 5px 6px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  font: inherit;
}

.nav-group-label::after {
  width: 5px;
  height: 5px;
  margin: 0 0 2px 4px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  content: "";
  opacity: 0.62;
  transform: rotate(45deg);
}

.nav-submenu {
  position: absolute;
  top: calc(100% + 7px);
  left: 0;
  z-index: 25;
  display: none;
  min-width: 152px;
  gap: 2px;
  padding: 8px;
  border: 1px solid rgba(43, 52, 43, 0.14);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.98);
  box-shadow: 0 16px 34px rgba(42, 45, 39, 0.12);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 140ms ease, transform 140ms ease, visibility 140ms ease;
  visibility: hidden;
}

.nav-submenu a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--ink);
  line-height: 1.2;
  white-space: nowrap;
  width: 100%;
}

.nav-item-icon {
  width: 15px;
  height: 15px;
  opacity: 0.86;
}

.nav-group-label > .nav-item-icon {
  width: 16px;
  height: 16px;
}

.nav-submenu .nav-item-icon {
  width: 14px;
  height: 14px;
  opacity: 0.78;
}

.nav-group:hover .nav-submenu,
.nav-group:focus-within .nav-submenu {
  display: grid;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  visibility: visible;
}

.nav-group-label:hover,
.nav-group-label:focus-visible,
.nav-group.is-active > .nav-group-label,
.nav-submenu a:hover,
.nav-submenu a:focus-visible,
.site-nav a.is-active {
  color: var(--accent);
}

.nav-group-label:focus-visible,
.nav-submenu a:focus-visible,
.nav-search:focus-visible {
  outline: 2px solid rgba(44, 111, 99, 0.42);
  outline-offset: 2px;
}

.nav-submenu a:hover,
.nav-submenu a:focus-visible,
.nav-submenu a.is-active {
  background: #e7efe8;
}

.nav-search {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(44, 111, 99, 0.24);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.7);
}

.nav-search:hover,
.nav-search.is-active {
  border-color: rgba(44, 111, 99, 0.52);
  background: #fffdf8;
}

.search-icon {
  position: relative;
  display: block;
  width: 16px;
  height: 16px;
}

.search-icon::before,
.search-icon::after {
  position: absolute;
  content: "";
}

.search-icon::before {
  box-sizing: border-box;
  top: 2px;
  left: 2px;
  width: 9px;
  height: 9px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.search-icon::after {
  top: 10px;
  left: 10px;
  width: 5px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform: rotate(45deg);
  transform-origin: 1px 1px;
}

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

.language-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 5px 10px;
  border: 1px solid rgba(44, 111, 99, 0.28);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.78);
  color: var(--accent);
  cursor: pointer;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
}

.language-toggle:hover,
.language-toggle:focus-visible {
  border-color: var(--accent);
  background: #fffdf8;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  appearance: none;
  background: var(--paper);
}

.menu-button span {
  display: block;
  width: 100%;
  height: 1px;
  margin: 5px 0;
  background: var(--ink);
}

.section {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(36px, 5.4vw, 76px) 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.75fr);
  gap: clamp(22px, 4.2vw, 54px);
  align-items: center;
  min-height: auto;
  padding-top: clamp(30px, 5.4vh, 58px);
  padding-bottom: clamp(18px, 4.2vh, 40px);
}

.hero.section + .section {
  padding-top: clamp(18px, 3vw, 40px);
}

.page-hero {
  padding-top: clamp(44px, 6vw, 78px);
  padding-bottom: clamp(28px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
}


.page-hero h1 {
  max-width: 900px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--accent-2);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.12;
}

h1 {
  max-width: 760px;
  font-size: 4.2rem;
}

h2 {
  font-size: 2.25rem;
}

h2.has-section-icon {
  display: flex;
  align-items: center;
  gap: 0.38em;
}

.page-hero h1.has-section-icon {
  display: flex;
  align-items: center;
  gap: 0.28em;
}

h2.has-section-icon[id] {
  scroll-margin-top: 92px;
}

.anchor-alias {
  position: relative;
  top: -92px;
  display: block;
  height: 0;
  visibility: hidden;
}

.section-title-icon {
  flex: 0 0 auto;
  width: clamp(28px, 1.05em, 44px);
  height: clamp(28px, 1.05em, 44px);
  color: var(--accent);
}

.page-hero .section-title-icon {
  width: clamp(32px, 0.78em, 48px);
  height: clamp(32px, 0.78em, 48px);
  color: var(--accent-2);
}

.section-title-link {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 4px;
  color: inherit;
  line-height: 0;
  text-decoration: none;
}

.section-title-link:hover .section-title-icon,
.section-title-link:focus-visible .section-title-icon {
  color: var(--accent-2);
}

.section-title-link:focus-visible {
  outline: 2px solid rgba(138, 77, 52, 0.42);
  outline-offset: 3px;
}

.section-title-text-link {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 0.12em;
}

.section-title-text-link:hover,
.section-title-text-link:focus-visible {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 0.06em;
}

.profile-grid h2.has-section-icon {
  gap: 8px;
}

.profile-grid .section-title-icon {
  width: 26px;
  height: 26px;
  color: var(--accent-2);
}

h3 {
  font-size: 1.2rem;
}

.lead {
  max-width: 720px;
  margin: 20px 0 0;
  color: #3c453d;
  font-size: 1.16rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 26px;
  margin-top: 26px;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.profile-link-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.profile-link-icon {
  width: 18px;
  height: 18px;
  color: var(--accent);
}

.hero-email-panel {
  margin-top: 16px;
}

.hero-email-panel .email-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 0;
}

.hero-email-panel .email-item + .email-item {
  margin-top: 0;
}

.hero-email-panel .email-card {
  display: inline-flex;
  grid-template-columns: none;
  min-width: 0;
  gap: 8px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.hero-email-panel .email-card:hover,
.hero-email-panel .email-card:focus-visible {
  border-color: transparent;
  background: transparent;
  transform: none;
}

.hero-email-panel .email-icon {
  width: 40px;
  height: 30px;
}

.hero-email-panel .email-icon svg {
  width: 25px;
  height: 25px;
}

.hero-email-panel .email-kind {
  font-size: 0.68rem;
}

.hero-email-panel .email-address {
  font-size: 0.92rem;
}

@media (max-width: 640px) {
  .hero-email-panel .email-list {
    display: grid;
    gap: 8px;
  }

  .hero-email-panel .email-card {
    width: 100%;
  }
}

.text-link {
  color: var(--ink);
  font-weight: 650;
}

.hero-media {
  display: grid;
  gap: 14px;
  align-content: center;
  justify-items: end;
}

.profile-photo {
  width: min(clamp(340px, 28vw, 500px), 100%);
  aspect-ratio: 4 / 3;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(43, 52, 43, 0.16);
  border-radius: 8px;
  background: #fffdf8;
  box-shadow: 0 18px 48px rgba(35, 37, 30, 0.14);
}

.profile-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 43% 48%;
}

.research-figure {
  margin: 0;
  border: 1px solid rgba(43, 52, 43, 0.16);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.research-figure svg {
  display: block;
  width: 100%;
  height: auto;
}

.page-photo-section {
  padding-top: 0;
  padding-bottom: clamp(22px, 3vw, 34px);
}

.page-photo-feature {
  width: 100%;
  max-height: 420px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(43, 52, 43, 0.14);
  border-radius: 8px;
  background: #f6f2ea;
  box-shadow: var(--shadow);
  aspect-ratio: 21 / 8;
}

.page-photo-feature img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-photo-feature-talk img {
  object-position: 54% 39%;
}

.page-photo-feature-activity img {
  object-position: 70% 45%;
}

.diagram-line {
  fill: none;
  stroke: #456d63;
  stroke-width: 4;
  stroke-linecap: round;
  opacity: 0.76;
}

.diagram-line.thin {
  stroke-width: 2;
  stroke-dasharray: 9 12;
  opacity: 0.42;
}

.diagram-node circle {
  fill: #fffdf8;
  stroke: #243128;
  stroke-width: 2;
}

.diagram-node.center circle {
  fill: #e7efe8;
  stroke: var(--accent);
  stroke-width: 3;
}

.diagram-node text {
  fill: #1f2721;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 18px;
  font-weight: 700;
  text-anchor: middle;
}

.diagram-node.center text {
  font-size: 25px;
}

.diagram-dot circle {
  fill: var(--accent-2);
}

.research-map-section {
  border-top: 1px solid var(--line);
}

.research-map {
  height: clamp(520px, 68vh, 760px);
  overflow-y: auto;
  overflow-anchor: none;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  padding: clamp(12px, 2vw, 18px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.58);
  box-shadow: var(--shadow);
}

.research-map::-webkit-scrollbar {
  width: 10px;
}

.research-map::-webkit-scrollbar-track {
  background: rgba(49, 70, 61, 0.08);
  border-radius: 999px;
}

.research-map::-webkit-scrollbar-thumb {
  border: 2px solid rgba(255, 253, 248, 0.72);
  border-radius: 999px;
  background: rgba(44, 111, 99, 0.36);
}

.research-map-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.34fr) minmax(0, 1.66fr);
  min-height: calc(100% + 1px);
  gap: clamp(16px, 3vw, 32px);
  align-items: start;
  overflow-anchor: none;
}

.theme-map-column {
  position: sticky;
  top: 12px;
  display: grid;
  align-self: start;
  gap: 12px;
  min-width: 0;
}

.theme-graph {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(43, 52, 43, 0.16);
  border-radius: 8px;
  background: #fffdf8;
  box-shadow: var(--shadow);
}

.theme-graph svg {
  display: block;
  width: 100%;
  height: auto;
}

.theme-map-bg {
  fill: #fbf8f1;
}

.theme-layer-group {
  pointer-events: none;
}

.theme-layer-band {
  fill: rgba(232, 240, 234, 0.4);
  stroke: rgba(43, 52, 43, 0.1);
  stroke-width: 1.2;
}

.theme-layer:nth-child(2) .theme-layer-band {
  fill: rgba(244, 230, 215, 0.36);
}

.theme-layer-label {
  fill: rgba(43, 52, 43, 0.48);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.theme-simplex-layer,
.theme-simplex {
  pointer-events: none;
}

.theme-simplex {
  opacity: 0;
  transition: opacity 180ms ease;
}

.theme-simplex.has-simplex {
  opacity: 1;
}

.theme-simplex-fill {
  fill: rgba(44, 111, 99, 0.12);
  stroke: rgba(44, 111, 99, 0.5);
  stroke-linejoin: round;
  stroke-width: 2;
}

.theme-simplex-chord {
  fill: none;
  stroke: rgba(44, 111, 99, 0.5);
  stroke-linecap: round;
  stroke-width: 3.2;
}

.theme-simplex-preview .theme-simplex-fill {
  fill: rgba(199, 120, 61, 0.1);
  stroke: rgba(199, 120, 61, 0.58);
}

.theme-simplex-preview .theme-simplex-chord {
  stroke: rgba(199, 120, 61, 0.66);
  stroke-dasharray: 9 8;
  stroke-width: 3;
}

.theme-edge-group {
  cursor: pointer;
  outline: none;
}

.theme-edge-hit {
  fill: none;
  stroke: transparent;
  stroke-linecap: round;
  stroke-width: 18;
  pointer-events: stroke;
}

.theme-edge {
  fill: none;
  stroke: rgba(53, 66, 58, 0.24);
  stroke-linecap: round;
  stroke-width: 3;
  pointer-events: none;
  transition: stroke 180ms ease, stroke-width 180ms ease, opacity 180ms ease;
}

.theme-edge-group:hover .theme-edge,
.theme-edge-group:focus-visible .theme-edge {
  stroke: #2c6f63;
  stroke-width: 5;
}

.theme-edge-group.is-active .theme-edge {
  stroke: #c7783d;
  stroke-width: 5;
}

.theme-edge-group.is-preview .theme-edge {
  stroke: #2c6f63;
  stroke-width: 5;
}

.theme-edge-group.is-selected .theme-edge {
  stroke: #2c6f63;
  stroke-width: 5.5;
}

.theme-node {
  cursor: pointer;
  outline: none;
}

.theme-node circle {
  fill: #fffdf8;
  stroke: #253229;
  stroke-width: 2.4;
  transition: fill 180ms ease, filter 180ms ease, stroke 180ms ease, transform 180ms ease;
}

.theme-node text {
  fill: #1f2721;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  font-weight: 800;
  pointer-events: none;
  text-anchor: middle;
}

.theme-node:hover circle,
.theme-node:focus-visible circle,
.theme-node.is-active circle,
.theme-node.is-preview circle {
  fill: #e7efe8;
  stroke: #2c6f63;
  filter: drop-shadow(0 0 13px rgba(44, 111, 99, 0.45));
}

.theme-panel {
  display: grid;
  gap: 14px;
}

.theme-overview {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.76);
}

.theme-status {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.76);
}

.theme-overview .theme-status {
  display: grid;
  min-height: 62px;
  align-content: start;
  padding: 0 0 12px;
  border: 0;
  border-bottom: 1px solid rgba(43, 52, 43, 0.12);
  border-radius: 0;
  background: transparent;
}

.theme-status-label {
  display: -webkit-box;
  overflow: hidden;
  color: var(--ink);
  font-size: 1.14rem;
  font-weight: 800;
  line-height: 1.22;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.theme-status-count {
  color: var(--accent-2);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.78rem;
  font-weight: 750;
  text-transform: uppercase;
}

.theme-choice-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.meta-theme-choice-list {
  padding-top: 10px;
  border-top: 1px solid var(--meta-tag-border);
}

.theme-choice {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  max-width: 100%;
  min-height: 32px;
  gap: 8px;
  padding: 4px 10px;
  border: 1px solid rgba(44, 111, 99, 0.26);
  border-radius: 999px;
  background: var(--soft);
  color: #31463d;
  cursor: pointer;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.8rem;
  text-align: left;
  white-space: normal;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.theme-choice:hover,
.theme-choice:focus-visible,
.theme-choice.is-preview {
  border-color: var(--accent);
  color: var(--accent);
  outline: none;
}

.theme-choice:not(.meta-theme-choice) {
  border-color: var(--main-tag-border);
  background: var(--main-tag-bg);
  color: var(--main-tag-ink);
  font-weight: 850;
}

.theme-choice:not(.meta-theme-choice):hover,
.theme-choice:not(.meta-theme-choice):focus-visible,
.theme-choice:not(.meta-theme-choice).is-preview {
  border-color: var(--main-tag-ink);
  background: var(--main-tag-bg-hover);
  color: var(--main-tag-ink-hover);
}

.theme-choice.is-active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fffdf8;
  box-shadow: 0 8px 18px rgba(44, 111, 99, 0.18);
}

.meta-theme-choice {
  border-color: var(--meta-tag-border);
  background: var(--meta-tag-bg);
  color: var(--meta-tag-ink);
}

.meta-theme-choice:hover,
.meta-theme-choice:focus-visible {
  border-color: var(--meta-tag-ink);
  background: var(--meta-tag-bg-hover);
  color: var(--meta-tag-ink-hover);
}

.meta-theme-choice.is-active {
  border-color: var(--meta-tag-ink);
  background: var(--meta-tag-ink);
  color: #fffdf8;
  box-shadow: 0 8px 18px rgba(138, 77, 52, 0.16);
}

.theme-choice-label,
.theme-choice-count {
  min-width: 0;
  overflow-wrap: anywhere;
}

.theme-choice-icon {
  width: 17px;
  height: 17px;
  color: currentColor;
  opacity: 0.9;
}

.theme-choice-count {
  color: currentColor;
  font-size: 0.68rem;
  font-weight: 800;
  opacity: 0.72;
  text-transform: uppercase;
  white-space: nowrap;
}

.paper-tag-index {
  display: grid;
  gap: 10px;
  margin: 14px 0 18px;
  padding: 12px 0 0;
  border-top: 1px solid rgba(44, 111, 99, 0.16);
}

.paper-tag-index-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  color: var(--accent-3);
  font-family: ui-sans-serif, system-ui, sans-serif;
}

.paper-tag-index-head h3 {
  margin: 0;
  color: inherit;
  font-size: 0.92rem;
}

.paper-tag-index-status {
  color: rgba(49, 70, 61, 0.66);
  font-size: 0.78rem;
  font-weight: 800;
}

.paper-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.paper-tag-button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  min-width: 0;
  max-width: 100%;
  min-height: 32px;
  gap: 8px;
  padding: 4px 10px;
  border: 1px solid rgba(44, 111, 99, 0.26);
  border-radius: 999px;
  background: var(--soft);
  color: #31463d;
  cursor: pointer;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.8rem;
  text-align: left;
  white-space: normal;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.paper-tag-button:hover,
.paper-tag-button:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  outline: none;
}

.paper-tag-button:not(.paper-tag-button-meta) {
  border-color: var(--main-tag-border);
  background: var(--main-tag-bg);
  color: var(--main-tag-ink);
  font-weight: 850;
}

.paper-tag-button:not(.paper-tag-button-meta):hover,
.paper-tag-button:not(.paper-tag-button-meta):focus-visible {
  border-color: var(--main-tag-ink);
  background: var(--main-tag-bg-hover);
  color: var(--main-tag-ink-hover);
}

.paper-tag-button.is-active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fffdf8;
  box-shadow: 0 8px 18px rgba(44, 111, 99, 0.18);
}

.paper-tag-button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.paper-tag-label,
.paper-tag-count,
.tag-label,
.web-app-tag-label {
  min-width: 0;
  overflow-wrap: anywhere;
}

.paper-tag-count {
  color: currentColor;
  font-size: 0.68rem;
  font-weight: 850;
}

.theme-result-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.theme-result-column {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
}

.theme-result-column h3 {
  margin: 0;
  font-size: 0.95rem;
  color: var(--accent-2);
}

.theme-result-heading-link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 7px;
  width: 100%;
  min-height: 40px;
  padding: 8px 9px;
  border: 1px solid rgba(151, 82, 52, 0.3);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(151, 82, 52, 0.16), rgba(246, 230, 203, 0.54)),
    rgba(255, 253, 248, 0.78);
  color: #84472f;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 253, 248, 0.82), 0 1px 0 rgba(151, 82, 52, 0.08);
  transition: background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.theme-result-heading-link:hover,
.theme-result-heading-link:focus-visible {
  border-color: rgba(151, 82, 52, 0.5);
  background:
    linear-gradient(135deg, rgba(151, 82, 52, 0.22), rgba(246, 230, 203, 0.68)),
    rgba(255, 253, 248, 0.86);
  color: #6f3b27;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  box-shadow: inset 0 1px 0 rgba(255, 253, 248, 0.92), 0 8px 20px rgba(151, 82, 52, 0.12);
  transform: translateY(-1px);
}

.theme-result-heading-label {
  min-width: 0;
  line-height: 1.2;
}

.theme-result-heading-section-icon,
.theme-result-heading-open-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
}

.theme-result-heading-section-icon .ui-icon-svg,
.theme-result-heading-open-icon .ui-icon-svg {
  width: 18px;
  height: 18px;
}

.theme-result-heading-open-icon {
  width: 22px;
  height: 22px;
  border: 1px solid rgba(151, 82, 52, 0.28);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.72);
  color: #84472f;
}

.theme-result-heading-link:hover .theme-result-heading-open-icon,
.theme-result-heading-link:focus-visible .theme-result-heading-open-icon {
  border-color: rgba(151, 82, 52, 0.5);
  background: rgba(255, 253, 248, 0.9);
  color: #6f3b27;
}

.theme-result-count {
  color: rgba(92, 67, 53, 0.78);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
}

.theme-result-list {
  display: grid;
  gap: 9px;
}

.theme-result {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(43, 52, 43, 0.14);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.7);
  overflow-wrap: anywhere;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease, background 180ms ease;
}

.theme-result.is-active {
  border-color: rgba(199, 120, 61, 0.58);
  background: #fffaf1;
  box-shadow: 0 0 0 1px rgba(199, 120, 61, 0.18), 0 14px 30px rgba(120, 81, 36, 0.12);
}

.theme-result-icons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  margin: 0 0 7px;
  color: var(--main-tag-ink);
}

.theme-result-meta-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: -3px 0 7px;
  color: var(--meta-tag-ink);
}

.theme-result-icon {
  width: 24px;
  height: 24px;
  opacity: 1;
}

.theme-result-meta-icon {
  width: 20px;
  height: 20px;
  color: var(--meta-tag-ink);
  opacity: 0.96;
}

.theme-result.is-active .theme-result-icons {
  color: var(--main-tag-ink-hover);
}

.theme-result .theme-result-meta-icon,
.theme-result.is-active .theme-result-meta-icon {
  color: var(--meta-tag-ink);
}

.theme-result h4 {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.24;
}

.theme-result h4 a {
  color: var(--ink);
  text-decoration: none;
}

.theme-result h4 a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.theme-result-meta {
  display: -webkit-box;
  margin: 7px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  border-top: 1px solid var(--line);
}

.profile-grid > div,
.publication-item,
.timeline-group,
.note-item,
.activity-column,
.link-column,
.automation-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.72);
  box-shadow: 0 10px 28px rgba(42, 45, 39, 0.04);
}

.profile-grid > div {
  padding: clamp(18px, 2.4vw, 26px);
}

.plain-list {
  margin: 18px 0 0;
  padding-left: 1.1rem;
}

.plain-list li + li {
  margin-top: 10px;
}

.plain-list.compact li + li {
  margin-top: 6px;
}

.email-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.email-item + .email-item {
  margin-top: 10px;
}

.email-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 11px 12px;
  border: 1px solid rgba(43, 52, 43, 0.12);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.92);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 140ms ease, background 140ms ease, transform 140ms ease;
}

.email-card:hover,
.email-card:focus-visible {
  border-color: rgba(44, 111, 99, 0.3);
  background: #fffdf8;
  transform: translateY(-1px);
}

.email-icon {
  position: relative;
  display: grid;
  width: 44px;
  height: 32px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(43, 52, 43, 0.16);
  border-radius: 7px;
  box-shadow: inset 0 -1px 0 rgba(255, 253, 248, 0.62);
}

.email-icon::before {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 32'%3E%3Cpath d='M1.5 2.5L22 16.5L42.5 2.5' fill='none' stroke='%232b342b' stroke-opacity='.18' stroke-width='1.45' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  content: "";
}

.email-icon::after {
  content: none;
}

.email-icon svg {
  position: relative;
  z-index: 1;
  width: 25px;
  height: 25px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.75;
}

.email-icon--academic {
  background: rgba(231, 239, 245, 0.96);
  color: #2b4f6e;
}

.email-icon--casual {
  background: rgba(244, 235, 224, 0.96);
  color: #8c5a22;
}

.email-meta {
  display: grid;
  min-width: 0;
}

.email-kind {
  color: var(--accent-2);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.email-address {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 0.98rem;
  line-height: 1.35;
}

.position-list {
  margin-top: 18px;
  padding-left: 0;
  list-style: none;
}

.position-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 11px;
  align-items: start;
}

.position-item + .position-item {
  margin-top: 12px;
}

.position-item-body {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
}

.position-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--accent-2);
  box-shadow: none;
  text-decoration: none;
  transition: color 140ms ease, transform 140ms ease;
}

a.position-icon:hover,
a.position-icon:focus-visible {
  color: var(--accent);
  transform: translateY(-1px);
}

a.position-icon:focus-visible {
  outline: 2px solid rgba(44, 111, 99, 0.36);
  outline-offset: 2px;
}

.position-icon-svg {
  width: 28px;
  height: 28px;
  display: block;
  overflow: visible;
}

.position-icon--building {
  background: rgba(242, 243, 244, 0.96);
  border-color: rgba(17, 18, 21, 0.12);
  color: #111215;
}

.position-icon--flask {
  background: rgba(229, 240, 249, 0.96);
  border-color: rgba(21, 94, 139, 0.16);
  color: #155e8b;
}

.position-icon--humai {
  color: #2f536f;
}

.position-icon--badge {
  background: rgba(232, 241, 248, 0.96);
  border-color: rgba(15, 91, 153, 0.16);
  color: #0f5b99;
}

.position-icon--kakenhi {
  background: rgba(232, 241, 248, 0.96);
  border-color: rgba(15, 91, 153, 0.16);
  color: #0f5b99;
}

.position-icon--money {
  color: var(--accent-2);
}

.position-icon--network {
  background: rgba(249, 228, 239, 0.96);
  border-color: rgba(193, 40, 114, 0.18);
  color: #c12872;
}

.position-icon--kan-extension {
  background: rgba(249, 228, 239, 0.96);
  border-color: rgba(193, 40, 114, 0.18);
  color: #c12872;
}

.position-icon--mentor {
  background: rgba(231, 239, 245, 0.96);
  border-color: rgba(43, 79, 110, 0.16);
  color: #2b4f6e;
}

.position-icon--hexagon {
  background: rgba(231, 239, 245, 0.96);
  border-color: rgba(43, 79, 110, 0.16);
  color: #2b4f6e;
}

.position-icon--book {
  background: rgba(228, 241, 247, 0.96);
  border-color: rgba(34, 110, 147, 0.16);
  color: #226e93;
}

.position-icon--pullback {
  background: rgba(228, 241, 247, 0.96);
  border-color: rgba(34, 110, 147, 0.16);
  color: #226e93;
}

.position-icon--building,
.position-icon--flask,
.position-icon--humai,
.position-icon--badge,
.position-icon--kakenhi,
.position-icon--money,
.position-icon--network,
.position-icon--kan-extension,
.position-icon--mentor,
.position-icon--hexagon,
.position-icon--book,
.position-icon--pullback {
  background: transparent;
  border-color: transparent;
  color: var(--accent-2);
}

.position-link {
  color: var(--accent);
  line-height: 1.48;
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

.partial-linked-text.position-link {
  color: var(--ink);
  text-decoration: none;
}

a.position-link:hover,
a.position-link:focus-visible,
.partial-linked-text.position-link a:hover,
.partial-linked-text.position-link a:focus-visible {
  color: var(--accent-2);
}

.categories-tokyo-feature {
  display: grid;
  grid-template-columns: minmax(260px, 0.42fr) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 32px);
  align-items: center;
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.74);
  box-shadow: var(--shadow);
}

.categories-tokyo-copy {
  min-width: 0;
}

.categories-tokyo-copy h2 {
  margin-top: 0;
  font-size: 2.35rem;
  line-height: 1.04;
}

.categories-tokyo-copy h2 a {
  color: inherit;
  hyphens: manual;
  overflow-wrap: normal;
  text-decoration: none;
  text-wrap: balance;
  word-break: normal;
}

.categories-tokyo-copy h2 a:hover,
.categories-tokyo-copy h2 a:focus-visible {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 0.06em;
  text-underline-offset: 0.12em;
}

.categories-tokyo-lead {
  max-width: 34rem;
  margin: 14px 0 22px;
  color: var(--muted);
  font-size: 1.06rem;
}

.categories-tokyo-schedule {
  max-width: 34rem;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.categories-tokyo-map {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
}

.categories-tokyo-map svg {
  display: block;
  width: 100%;
  height: auto;
}

.categories-map-svg {
  background: #fffdf8;
}

.categories-map-bg {
  fill: url("#tokyo-map-paper");
}

.categories-map-water {
  fill: #d7edf7;
  stroke: rgba(47, 83, 111, 0.22);
  stroke-width: 1;
}

.categories-map-prefecture {
  fill: #e9ddc7;
  stroke: rgba(92, 84, 67, 0.42);
  stroke-linejoin: round;
  stroke-width: 0.65;
  vector-effect: non-scaling-stroke;
}

.categories-map-kanto .categories-map-prefecture {
  fill: #efe3cd;
  stroke-width: 0.9;
}

.categories-map-kanto.is-tokyo-focus .categories-map-prefecture {
  stroke-width: 0.35;
}

.categories-map-prefecture.is-tokyo {
  fill: #c7783d;
  stroke: #8a4d34;
  stroke-width: 1.7;
}

.categories-map-ward-boundary {
  fill: none;
  stroke: rgba(255, 253, 248, 0.78);
  stroke-dasharray: 1.2 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 0.72;
  pointer-events: none;
  vector-effect: non-scaling-stroke;
}

.categories-map-label,
.categories-map-credit {
  fill: rgba(49, 70, 61, 0.72);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  font-weight: 850;
}

.categories-map-label.is-small {
  fill: rgba(138, 77, 52, 0.88);
  font-size: 13px;
}

.categories-map-venues {
  pointer-events: auto;
}

.categories-map-venue-leader {
  fill: none;
  stroke: rgba(36, 49, 42, 0.72);
  stroke-dasharray: 2.7 2.8;
  stroke-linecap: round;
  stroke-width: 1.7;
  vector-effect: non-scaling-stroke;
}

.categories-map-venue-halo {
  fill: rgba(47, 83, 111, 0.18);
}

.categories-map-venue-dot {
  fill: #2f536f;
  stroke: #fffdf8;
  stroke-width: 1.8;
  vector-effect: non-scaling-stroke;
}

.categories-map-venue-label {
  fill: #243128;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12.5px;
  font-weight: 900;
  paint-order: stroke;
  stroke: #fffdf8;
  stroke-linejoin: round;
  stroke-width: 3px;
}

.categories-map-venue-leader {
  pointer-events: none;
}

.categories-map-venue-point-link,
.categories-map-venue-label-link {
  cursor: pointer;
  outline: none;
}

.categories-map-venue-point-hit {
  fill: transparent;
  pointer-events: all;
}

.categories-map-venue-point-link:hover .categories-map-venue-halo,
.categories-map-venue-point-link:focus-visible .categories-map-venue-halo {
  fill: rgba(191, 107, 50, 0.28);
}

.categories-map-venue-point-link:hover .categories-map-venue-dot,
.categories-map-venue-point-link:focus-visible .categories-map-venue-dot {
  stroke: var(--accent);
  stroke-width: 2.35;
}

.categories-map-venue-label-link:hover .categories-map-venue-label,
.categories-map-venue-label-link:focus-visible .categories-map-venue-label {
  fill: var(--accent);
  text-decoration: underline;
}

.categories-map-venue-label-link:hover .categories-map-venue-label-segment,
.categories-map-venue-label-link:focus-visible .categories-map-venue-label-segment {
  fill: var(--accent);
  text-decoration: underline;
}

.categories-map-kanto.is-tokyo-focus .categories-map-venue-label {
  font-size: 1.34px;
  stroke-width: 0.38px;
}

.categories-map-kanto.is-tokyo-focus .venue-komaba .categories-map-venue-label {
  font-size: 1.16px;
  stroke-width: 0.34px;
}

.categories-map-kanto.is-tokyo-focus .venue-kabukiza .categories-map-venue-label {
  font-size: 2.03px;
  stroke-width: 0.54px;
}

.categories-map-credit {
  fill: rgba(49, 70, 61, 0.52);
  font-size: 11px;
  font-weight: 700;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.tag-cloud > span,
.tag-cloud > a,
.publication-meta > .publication-tag,
.publication-meta > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
  min-height: 30px;
  padding: 4px 10px;
  border: 1px solid rgba(44, 111, 99, 0.26);
  border-radius: 999px;
  background: var(--soft);
  color: #31463d;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.82rem;
  overflow-wrap: anywhere;
  white-space: normal;
}

.tag-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 19px;
  height: 19px;
  color: currentColor;
  opacity: 0.9;
}

.paper-tag-icon,
.publication-tag-icon {
  width: 19px;
  height: 19px;
}

.publication-meta .publication-tag-theme .tag-icon {
  opacity: 0.9;
}

.publication-meta .publication-tag {
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  gap: 7px;
  min-height: 28px;
  padding: 2px 3px;
  text-align: left;
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.publication-meta .publication-tag:hover,
.publication-meta .publication-tag:focus-visible {
  background: transparent;
  color: var(--accent);
  outline: none;
}

.publication-meta .publication-tag-theme {
  color: var(--main-tag-ink);
  font-weight: 850;
}

.publication-meta .publication-tag-meta {
  background: transparent;
  color: var(--meta-tag-ink);
}

.publication-meta .publication-tag-meta:hover,
.publication-meta .publication-tag-meta:focus-visible {
  color: var(--meta-tag-ink-hover);
}

.publication-meta .publication-tag-icon {
  width: 24px;
  height: 24px;
  opacity: 1;
}

.tag-cloud > span,
.tag-cloud > a {
  border-color: var(--main-tag-border);
  background: var(--main-tag-bg);
  color: var(--main-tag-ink);
  font-weight: 850;
}

.tag-cloud > a:hover {
  border-color: var(--main-tag-ink);
  background: var(--main-tag-bg-hover);
  color: var(--main-tag-ink-hover);
}

.publication-meta > span:not(.content-review-badge):not(.publication-status):not(.meta-tag-pill) {
  border-color: var(--main-tag-border);
  background: var(--main-tag-bg);
  color: var(--main-tag-ink);
  font-weight: 850;
}

.meta-tag-pill {
  border-color: var(--meta-tag-border);
  background: var(--meta-tag-bg);
  color: var(--meta-tag-ink);
  font-weight: 850;
}

.tag-cloud > a {
  color: var(--main-tag-ink);
  text-decoration: none;
}

.tag-cloud > a:hover {
  border-color: var(--main-tag-ink);
  background: var(--main-tag-bg-hover);
  color: var(--main-tag-ink-hover);
}

.section-head {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.section-link {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 700;
}

.section-link-hidden {
  display: none;
}

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

.explore-card {
  display: grid;
  min-height: 136px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.72);
  box-shadow: 0 10px 28px rgba(42, 45, 39, 0.04);
}

.explore-card-media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 1px solid rgba(43, 52, 43, 0.12);
  background: #ebe6dc;
}

.explore-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.explore-card-body {
  padding: clamp(16px, 2vw, 20px);
}

.explore-card-head {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.explore-card-icon {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(44, 111, 99, 0.14);
  border-radius: 999px;
  background: rgba(231, 239, 232, 0.9);
  color: var(--accent-2);
}

.explore-card-copy {
  min-width: 0;
}

.explore-title {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 1.18rem;
  font-weight: 700;
  text-decoration: none;
}

.explore-title:hover {
  color: var(--accent);
  text-decoration: underline;
}

.explore-card p {
  margin: 0;
  color: var(--muted);
}

.explore-child-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(43, 52, 43, 0.1);
}

.explore-child-link {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 9px;
  border: 1px solid rgba(44, 111, 99, 0.16);
  border-radius: 999px;
  background: rgba(246, 248, 240, 0.82);
  color: var(--ink);
  font-size: 0.82rem;
  line-height: 1.2;
  text-decoration: none;
}

.explore-child-link:hover {
  border-color: rgba(44, 111, 99, 0.4);
  color: var(--accent);
}

.web-app-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.web-app-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.78);
  box-shadow: 0 12px 30px rgba(42, 45, 39, 0.05);
}

.web-app-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #ebe6dc;
}

.web-app-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.web-app-media.is-missing {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.web-app-body {
  display: grid;
  align-content: start;
  gap: 9px;
  padding: clamp(16px, 2vw, 20px);
}

.web-app-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: var(--accent-2);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.web-app-tag-icon {
  width: 17px;
  height: 17px;
  opacity: 0.9;
}

.web-app-title {
  margin: 0;
  font-size: 1.28rem;
  font-weight: 750;
  line-height: 1.12;
}

.web-app-title a {
  color: var(--ink);
  text-decoration: none;
}

.web-app-title a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.web-app-summary {
  margin: 0;
  color: var(--muted);
}

.web-app-card .action-links {
  margin-top: 3px;
}

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

.plan-item {
  display: grid;
  align-content: center;
  min-height: 88px;
  padding: clamp(16px, 2vw, 20px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.72);
  box-shadow: 0 10px 28px rgba(42, 45, 39, 0.04);
}

.plan-item h3 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.34;
}

.plan-item a {
  color: var(--accent);
  font-weight: 650;
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

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

.search-label {
  display: grid;
  gap: 8px;
  width: min(360px, 100%);
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.82rem;
  font-weight: 650;
}

.search-label input {
  width: 100%;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
}

.note-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: flex-end;
  gap: 10px;
}

.notes-section {
  padding-top: clamp(12px, 2vw, 24px);
}

.notes-filter-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.24fr) minmax(0, 1fr);
  align-items: end;
  gap: 12px clamp(16px, 3vw, 28px);
  margin-bottom: 16px;
  padding: 12px;
  border: 1px solid rgba(43, 52, 43, 0.12);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.62);
}

.notes-filter-row .note-toolbar {
  justify-self: end;
  width: 100%;
}

.note-search-label {
  width: min(300px, 100%);
}

.note-filter-label {
  display: grid;
  min-width: 128px;
  gap: 8px;
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.82rem;
  font-weight: 650;
}

.note-filter-label select {
  width: 100%;
  min-height: 44px;
  padding: 9px 34px 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
}

.note-filter-count {
  margin: 0;
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
}

.slide-talk-meta {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.slide-talk-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.05em;
  height: 1.05em;
  margin-top: 0.15em;
  color: var(--accent-3);
}

.site-search-panel {
  display: grid;
  gap: 18px;
  max-width: 980px;
}

.site-search-label {
  width: min(520px, 100%);
}

.site-search-count {
  margin: 0;
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
}

.site-search-results {
  display: grid;
  gap: 12px;
}

.site-search-result {
  display: grid;
  gap: 8px;
  padding: clamp(16px, 2.5vw, 22px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.76);
  box-shadow: 0 10px 28px rgba(42, 45, 39, 0.04);
  overflow-wrap: anywhere;
}

.site-search-result.has-thumbnail {
  grid-template-columns: minmax(120px, 176px) minmax(0, 1fr);
  gap: 16px;
}

.site-search-result-body {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.site-search-type {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  justify-self: start;
  min-height: 26px;
  padding: 3px 9px;
  border: 1px solid rgba(44, 111, 99, 0.25);
  border-radius: 999px;
  background: var(--soft);
  color: #31463d;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.74rem;
  font-weight: 800;
}

.site-search-type-icon {
  width: 13px;
  height: 13px;
}

.site-search-media {
  display: block;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  border: 1px solid rgba(43, 52, 43, 0.14);
  border-radius: 8px;
  background: #f3eee4;
}

.site-search-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-search-result h3 {
  margin: 0;
  font-size: 1.14rem;
  line-height: 1.32;
}

.site-search-result h3 a {
  color: var(--ink);
  text-decoration: none;
}

.site-search-result h3 a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.site-search-summary,
.site-search-meta {
  margin: 0;
  color: var(--muted);
}

.site-search-meta {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.82rem;
}

.publication-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.paper-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: flex-end;
  gap: 12px 16px;
}

.paper-view-tabs {
  margin-bottom: 0;
}

.tab-button {
  min-height: 38px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}

.tab-button.is-active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fffdf8;
}

.publication-list,
.timeline-list {
  display: grid;
  gap: 12px;
}

.paper-subsection {
  display: grid;
  gap: 12px;
  margin-top: clamp(24px, 4vw, 42px);
  padding-top: clamp(18px, 3vw, 28px);
  border-top: 1px solid var(--line);
}

.paper-subsection-head {
  display: grid;
  gap: 4px;
}

.paper-subsection-head h3 {
  font-size: 1.28rem;
}

.publication-item {
  display: grid;
  gap: 12px;
  padding: clamp(16px, 2.4vw, 24px);
}

.publication-item-compact {
  gap: 10px;
}

.publication-figure {
  --paper-ink: #1f2721;
  --paper-ink-strong: #24312a;
  --paper-ink-soft: rgba(31, 39, 33, 0.72);
  --paper-line: rgba(43, 52, 43, 0.22);
  --paper-line-strong: rgba(43, 52, 43, 0.42);
  --paper-surface: #fffdf8;
  --paper-surface-soft: #f6f2ea;
  --paper-surface-tint: #fbf7ef;
  --paper-teal: #1f8a78;
  --paper-teal-rgb: 31, 138, 120;
  --paper-teal-deep: #176b5f;
  --paper-teal-soft: #e3f2ee;
  --paper-green: #4b8062;
  --paper-green-rgb: 75, 128, 98;
  --paper-green-soft: #e8f1e9;
  --paper-orange: #cf6a2f;
  --paper-orange-rgb: 207, 106, 47;
  --paper-orange-deep: #a4522c;
  --paper-orange-soft: #f5e3d4;
  --paper-blue: #3f7398;
  --paper-blue-rgb: 63, 115, 152;
  --paper-blue-deep: #315b78;
  --paper-blue-soft: #e5edf3;
  --paper-red: #bf4f43;
  --paper-red-rgb: 191, 79, 67;
  --paper-red-soft: #f4e1dc;
  --paper-purple: #7765a6;
  --paper-purple-rgb: 119, 101, 166;
  --paper-purple-soft: #ece8f3;
  --paper-gray: #747872;
  --paper-gray-rgb: 116, 120, 114;
  --paper-gray-soft: #e7e7e2;
  --paper-figure-bg: linear-gradient(180deg, var(--paper-surface) 0%, var(--paper-surface-tint) 56%, var(--paper-surface-soft) 100%);
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 5 / 3;
  overflow: hidden;
  border: 1px solid rgba(43, 52, 43, 0.14);
  border-radius: 8px;
  background: var(--paper-surface-soft);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
  color: var(--paper-ink);
  text-decoration: none;
}

.publication-figure-quotient-toposes {
  aspect-ratio: 19 / 10;
}

.publication-figure svg {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--paper-figure-bg);
}

.publication-figure-games-integral-calculus {
  aspect-ratio: 760 / 410;
}

.publication-figure-automata-cantor-morphism {
  aspect-ratio: 16 / 9;
}

.games-rb-table-figure {
  --games-rb-cycle: 12s;
  --games-rb-green: var(--paper-green, #4b8062);
  --games-rb-green-rgb: var(--paper-green-rgb, 75, 128, 98);
  --games-rb-orange: var(--paper-orange, #cf6a2f);
  --games-rb-orange-rgb: var(--paper-orange-rgb, 207, 106, 47);
  --games-rb-blue: var(--paper-blue, #3f7398);
  --games-rb-blue-rgb: var(--paper-blue-rgb, 63, 115, 152);
  --games-rb-purple: var(--paper-purple, #7765a6);
  --games-rb-purple-rgb: var(--paper-purple-rgb, 119, 101, 166);
  --games-rb-red: var(--paper-red, #bf4f43);
  --games-rb-red-rgb: var(--paper-red-rgb, 191, 79, 67);
  --games-rb-ink: var(--paper-ink-strong, #24312a);
  color: var(--games-rb-ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.games-rb-table-paper {
  fill: url("#games-rb-table-paper");
}

.games-rb-table-figure marker path {
  fill: var(--games-rb-green);
}

.games-rb-table-figure #games-rb-mex-arrow-orange path {
  fill: var(--games-rb-orange);
}

.games-rb-table-figure #games-rb-mex-arrow-red path {
  fill: var(--games-rb-red);
}

.games-rb-table-figure #games-rb-arrow-blue path {
  fill: var(--games-rb-blue);
}

.games-rb-table-figure #games-rb-arrow-red path {
  fill: var(--games-rb-red);
}

.games-rb-table-title,
.games-rb-table-subtitle,
.games-rb-panel-label,
.games-rb-panel-note,
.games-rb-cell-text,
.games-rb-legend text,
.games-rb-mex-lines text,
.games-rb-readout text,
.games-rb-answer text {
  letter-spacing: 0;
}

.games-rb-table-title {
  fill: var(--games-rb-purple);
  font-size: 20px;
  font-weight: 900;
  text-anchor: middle;
}

.games-rb-top-equation {
  color: #1f2721;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15.5px;
  font-weight: 900;
  line-height: 1;
  overflow: visible;
  pointer-events: none;
}

.games-rb-top-equation > div {
  align-items: center;
  display: flex;
  height: 100%;
  justify-content: center;
  white-space: nowrap;
}

.games-rb-top-equation .katex {
  color: inherit;
  line-height: 1;
}

.games-rb-table-subtitle {
  fill: rgba(36, 49, 42, 0.62);
  font-size: 12px;
  font-weight: 800;
  text-anchor: middle;
}

.games-rb-panel-bg {
  fill: rgba(255, 253, 248, 0.84);
  stroke: rgba(43, 52, 43, 0.14);
  stroke-width: 1.5;
}

.games-rb-panel-label {
  fill: var(--games-rb-green);
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.games-rb-panel-label.is-right {
  fill: var(--games-rb-orange);
}

.games-rb-panel-note {
  fill: rgba(36, 49, 42, 0.58);
  font-size: 11px;
  font-weight: 780;
}

.games-rb-table-bg {
  fill: rgba(255, 253, 248, 0.92);
  stroke: rgba(43, 52, 43, 0.18);
  stroke-width: 1.2;
}

.games-rb-table-head-row,
.games-rb-table-head-col {
  fill: transparent;
}

.games-rb-table-mex-head {
  fill: rgba(var(--games-rb-orange-rgb, 207, 106, 47), 0.3);
  opacity: 0.24;
  animation: games-rb-step-mex var(--games-rb-cycle) steps(1, end) infinite;
}

.games-rb-cell {
  stroke: none;
  opacity: 0.18;
}

.games-rb-cell.is-s-def,
.games-rb-cell.is-t-def {
  fill: rgba(var(--games-rb-green-rgb, 75, 128, 98), 0.38);
  animation: games-rb-step-define var(--games-rb-cycle) steps(1, end) infinite;
}

.games-rb-cell.is-t-def {
  fill: rgba(var(--games-rb-blue-rgb, 63, 115, 152), 0.34);
}

.games-rb-cell.is-row-read {
  fill: rgba(var(--games-rb-green-rgb, 75, 128, 98), 0.42);
  animation: games-rb-step-rhs var(--games-rb-cycle) steps(1, end) infinite;
}

.games-rb-cell.is-col-read {
  fill: rgba(var(--games-rb-blue-rgb, 63, 115, 152), 0.38);
  animation: games-rb-step-rhs var(--games-rb-cycle) steps(1, end) infinite;
}

.games-rb-cell.is-lhs {
  fill: rgba(var(--games-rb-red-rgb, 191, 79, 67), 0.34);
  animation: games-rb-step-lhs var(--games-rb-cycle) steps(1, end) infinite;
}

.games-rb-table-lines {
  fill: none;
  stroke: rgba(43, 52, 43, 0.22);
  stroke-linecap: square;
  stroke-width: 1;
}

.games-rb-table-lines.is-major {
  stroke: rgba(43, 52, 43, 0.34);
  stroke-width: 1.35;
}

.games-rb-table-lines.is-border {
  stroke: rgba(43, 52, 43, 0.34);
  stroke-width: 1.35;
}

.games-rb-table-lines.is-input-output {
  stroke: rgba(31, 39, 33, 0.68);
  stroke-width: 2.2;
}

.games-rb-cell-text {
  fill: var(--games-rb-ink);
  font-size: 13px;
  font-weight: 850;
}

.games-rb-cell-text.is-head {
  fill: rgba(36, 49, 42, 0.78);
  font-weight: 900;
}

.games-rb-cell-text.is-lhs {
  fill: var(--games-rb-red);
  font-size: 14px;
  font-weight: 950;
}

.games-rb-cell-text.is-s-entry {
  fill: var(--games-rb-green);
}

.games-rb-cell-text.is-t-entry {
  fill: var(--games-rb-blue);
}

.games-rb-cell-text.is-mex-s-text,
.games-rb-cell-text.is-mex-t-text {
  fill: var(--games-rb-orange);
  font-weight: 950;
}

.games-rb-cell-text.is-row-value {
  fill: var(--games-rb-green);
  font-weight: 940;
}

.games-rb-cell-text.is-col-value {
  fill: var(--games-rb-blue);
  font-weight: 940;
}

.games-rb-grid-label {
  fill: var(--games-rb-ink);
  font-size: 10.5px;
  font-weight: 950;
  letter-spacing: 0;
  opacity: 0;
  paint-order: stroke;
  stroke: rgba(255, 253, 248, 0.96);
  stroke-linejoin: round;
  stroke-width: 3px;
}

.games-rb-mex-arrow {
  fill: none;
  opacity: 0;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
  vector-effect: non-scaling-stroke;
}

.games-rb-mex-arrow.is-mex-s-arrow,
.games-rb-mex-arrow.is-mex-t-arrow {
  marker-end: url("#games-rb-mex-arrow-orange");
  stroke: var(--games-rb-orange);
  animation: games-rb-label-mex var(--games-rb-cycle) steps(1, end) infinite;
}

.games-rb-mex-arrow.is-result-arrow {
  marker-end: url("#games-rb-mex-arrow-red");
  stroke: var(--games-rb-red);
  animation: games-rb-label-result var(--games-rb-cycle) steps(1, end) infinite;
}

.games-rb-grid-label.is-s-label {
  fill: var(--games-rb-green);
  animation: games-rb-label-define var(--games-rb-cycle) steps(1, end) infinite;
}

.games-rb-grid-label.is-t-label {
  fill: var(--games-rb-blue);
  animation: games-rb-label-define var(--games-rb-cycle) steps(1, end) infinite;
}

.games-rb-grid-label.is-mex-s-label,
.games-rb-grid-label.is-mex-t-label {
  fill: var(--games-rb-orange);
  animation: games-rb-label-mex var(--games-rb-cycle) steps(1, end) infinite;
}

.games-rb-grid-label.is-lhs-label {
  fill: var(--games-rb-red);
  animation: games-rb-label-lhs var(--games-rb-cycle) steps(1, end) infinite;
}

.games-rb-grid-label.is-row-label {
  fill: var(--games-rb-green);
  animation: games-rb-label-rhs var(--games-rb-cycle) steps(1, end) infinite;
}

.games-rb-grid-label.is-col-label {
  fill: var(--games-rb-blue);
  animation: games-rb-label-rhs var(--games-rb-cycle) steps(1, end) infinite;
}

.games-rb-grid-label.is-result-label {
  fill: var(--games-rb-red);
  animation: games-rb-label-result var(--games-rb-cycle) steps(1, end) infinite;
}

.games-rb-legend text {
  fill: rgba(36, 49, 42, 0.64);
  font-size: 10px;
  font-weight: 800;
}

.games-rb-legend-swatch {
  stroke-width: 1.2;
}

.games-rb-legend-swatch.is-row-read {
  fill: rgba(44, 111, 99, 0.18);
  stroke: rgba(44, 111, 99, 0.54);
}

.games-rb-legend-swatch.is-col-read {
  fill: rgba(47, 83, 111, 0.16);
  stroke: rgba(47, 83, 111, 0.52);
}

.games-rb-legend-swatch.is-lhs {
  fill: var(--paper-red-soft, #f4e1dc);
  stroke: var(--paper-red, #bf4f43);
}

.games-rb-mex-lines text {
  fill: rgba(36, 49, 42, 0.72);
  font-size: 13px;
  font-weight: 860;
}

.games-rb-mex-lines {
  opacity: 0.42;
  animation: games-rb-step-mex var(--games-rb-cycle) steps(1, end) infinite;
}

.games-rb-readout rect {
  fill: rgba(255, 253, 248, 0.94);
  stroke-width: 1.45;
}

.games-rb-readout {
  opacity: 0.34;
}

.games-rb-readout.is-lhs rect {
  stroke: rgba(182, 103, 55, 0.38);
}

.games-rb-readout.is-lhs {
  animation: games-rb-step-lhs var(--games-rb-cycle) steps(1, end) infinite;
}

.games-rb-readout.is-rhs rect {
  stroke: rgba(47, 83, 111, 0.34);
}

.games-rb-readout.is-rhs {
  animation: games-rb-step-rhs var(--games-rb-cycle) steps(1, end) infinite;
}

.games-rb-readout-label {
  fill: rgba(36, 49, 42, 0.54);
  font-size: 9.5px;
  font-weight: 820;
  text-transform: uppercase;
}

.games-rb-readout-main {
  fill: var(--games-rb-orange);
  font-size: 18px;
  font-weight: 950;
}

.games-rb-readout-small {
  fill: rgba(36, 49, 42, 0.76);
  font-size: 12px;
  font-weight: 850;
}

.games-rb-step-item {
  opacity: 0.28;
}

.games-rb-step-item circle {
  fill: rgba(255, 253, 248, 0.94);
  stroke: rgba(43, 52, 43, 0.28);
  stroke-width: 1.3;
}

.games-rb-step-number {
  fill: rgba(36, 49, 42, 0.7);
  font-size: 9px;
  font-weight: 950;
}

.games-rb-step-title,
.games-rb-step-detail {
  letter-spacing: 0;
}

.games-rb-step-title {
  fill: var(--games-rb-ink);
  font-size: 12px;
  font-weight: 900;
}

.games-rb-step-detail {
  fill: rgba(36, 49, 42, 0.64);
  font-size: 10.3px;
  font-weight: 780;
}

.games-rb-term-s,
.games-rb-term-row {
  fill: var(--games-rb-green);
  font-weight: 920;
}

.games-rb-term-t,
.games-rb-term-col {
  fill: var(--games-rb-blue);
  font-weight: 920;
}

.games-rb-term-mex-s,
.games-rb-term-mex-t {
  fill: var(--games-rb-orange);
  font-weight: 940;
}

.games-rb-term-set {
  fill: var(--games-rb-purple);
  font-weight: 940;
}

.games-rb-term-result {
  fill: var(--games-rb-red);
  font-weight: 960;
}

.games-rb-step-item.step-define {
  animation: games-rb-step-define var(--games-rb-cycle) steps(1, end) infinite;
}

.games-rb-step-item.step-mex {
  animation: games-rb-step-mex var(--games-rb-cycle) steps(1, end) infinite;
}

.games-rb-step-item.step-lhs {
  animation: games-rb-step-lhs var(--games-rb-cycle) steps(1, end) infinite;
}

.games-rb-step-item.step-rhs {
  animation: games-rb-step-rhs var(--games-rb-cycle) steps(1, end) infinite;
}

.games-rb-step-item.step-result {
  animation: games-rb-step-result-text var(--games-rb-cycle) steps(1, end) infinite;
}

.games-rb-step-item.step-define circle {
  stroke: rgba(44, 111, 99, 0.5);
}

.games-rb-step-item.step-mex circle {
  stroke: rgba(182, 103, 55, 0.5);
}

.games-rb-step-item.step-lhs circle {
  stroke: rgba(155, 58, 48, 0.5);
}

.games-rb-step-item.step-rhs circle {
  stroke: rgba(47, 83, 111, 0.5);
}

.games-rb-step-item.step-result circle {
  stroke: rgba(44, 111, 99, 0.58);
}

.games-rb-answer circle {
  fill: rgba(231, 239, 232, 0.96);
  stroke: rgba(44, 111, 99, 0.58);
  stroke-width: 2;
}

.games-rb-answer {
  opacity: 0.28;
  animation: games-rb-step-result var(--games-rb-cycle) steps(1, end) infinite;
}

.games-rb-same-result {
  opacity: 0.28;
  animation: games-rb-step-result-text var(--games-rb-cycle) steps(1, end) infinite;
}

.games-rb-answer-note {
  fill: rgba(36, 49, 42, 0.58);
  font-size: 10px;
  font-weight: 850;
}

.games-rb-answer-value {
  fill: var(--games-rb-green);
  font-size: 30px;
  font-weight: 950;
}

.games-rb-same-result {
  fill: rgba(44, 111, 99, 0.72);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-anchor: middle;
}

.games-rb-table-tex {
  color: #24312a;
  font-size: 0.58rem;
  line-height: 1;
}

.games-rb-table-tex .katex {
  color: inherit;
}

.games-rb-table-tex:not(:has(.katex)) {
  font-size: 0;
}

.games-rb-table-tex-lhs {
  left: 25%;
  top: 89.9%;
  color: var(--games-rb-purple);
  opacity: 0.42;
  animation: games-rb-step-lhs var(--games-rb-cycle) steps(1, end) infinite;
}

.games-rb-table-tex-rhs {
  left: 50%;
  top: 95.2%;
  opacity: 0.42;
  animation: games-rb-step-rhs-tex var(--games-rb-cycle) steps(1, end) infinite;
}

@keyframes games-rb-step-define {
  0%,
  14% {
    opacity: 1;
  }

  24%,
  100% {
    opacity: 0.3;
  }
}

@keyframes games-rb-step-mex {
  0%,
  16% {
    opacity: 0.26;
  }

  24%,
  36% {
    opacity: 1;
  }

  46%,
  100% {
    opacity: 0.34;
  }
}

@keyframes games-rb-step-lhs {
  0%,
  34% {
    opacity: 0.28;
  }

  43%,
  55% {
    opacity: 1;
  }

  66%,
  100% {
    opacity: 0.36;
  }
}

@keyframes games-rb-step-rhs {
  0%,
  52% {
    opacity: 0.24;
  }

  61%,
  77% {
    opacity: 1;
  }

  88%,
  100% {
    opacity: 0.34;
  }
}

@keyframes games-rb-step-rhs-tex {
  0%,
  56% {
    opacity: 0.34;
  }

  66%,
  100% {
    opacity: 1;
  }
}

@keyframes games-rb-step-result {
  0%,
  76% {
    opacity: 0.26;
  }

  84%,
  94% {
    opacity: 1;
  }

  100% {
    opacity: 0.34;
  }
}

@keyframes games-rb-step-result-text {
  0%,
  76% {
    opacity: 0.26;
  }

  84%,
  94% {
    opacity: 1;
  }

  100% {
    opacity: 0.34;
  }
}

@keyframes games-rb-label-define {
  0%,
  14% {
    opacity: 1;
  }

  24%,
  100% {
    opacity: 0;
  }
}

@keyframes games-rb-label-mex {
  0%,
  16% {
    opacity: 0;
  }

  24%,
  36% {
    opacity: 1;
  }

  46%,
  100% {
    opacity: 0;
  }
}

@keyframes games-rb-label-lhs {
  0%,
  34% {
    opacity: 0;
  }

  43%,
  55% {
    opacity: 1;
  }

  66%,
  100% {
    opacity: 0;
  }
}

@keyframes games-rb-label-rhs {
  0%,
  52% {
    opacity: 0;
  }

  61%,
  77% {
    opacity: 1;
  }

  88%,
  100% {
    opacity: 0;
  }
}

@keyframes games-rb-label-result {
  0%,
  76% {
    opacity: 0;
  }

  84%,
  94% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

.games-rb-dual-figure .games-rb-panel-bg {
  fill: rgba(255, 253, 248, 0.88);
}

.games-rb-dual-table {
  color: var(--games-rb-ink);
}

.games-rb-dual-table .games-rb-table-bg,
.games-rb-dual-table .games-rb-table-lines.is-major {
  stroke: none;
}

.games-rb-dual-table .games-rb-cell-text {
  font-size: 12.8px;
}

.games-rb-set-highlight {
  stroke: none;
}

.games-rb-set-highlight.is-s-entry {
  fill: #dfe8ff;
}

.games-rb-set-highlight.is-t-entry {
  fill: #f8dddd;
}

.games-rb-hit-target {
  cursor: pointer;
  fill: transparent;
  pointer-events: all;
  stroke: transparent;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.games-rb-hit-target:hover,
.games-rb-hit-target:focus-visible {
  stroke: rgba(31, 39, 33, 0.34);
}

.games-rb-hit-target.is-s-target:hover,
.games-rb-hit-target.is-s-target:focus-visible {
  stroke: rgba(var(--games-rb-blue-rgb, 63, 115, 152), 0.56);
}

.games-rb-hit-target.is-t-target:hover,
.games-rb-hit-target.is-t-target:focus-visible {
  stroke: rgba(var(--games-rb-red-rgb, 191, 79, 67), 0.54);
}

.games-rb-limit-toast {
  background: rgba(255, 253, 248, 0.96);
  border: 1px solid rgba(var(--games-rb-purple-rgb, 119, 101, 166), 0.32);
  border-radius: 7px;
  box-shadow: 0 8px 18px rgba(31, 39, 33, 0.14);
  color: var(--games-rb-purple);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.88rem;
  font-weight: 850;
  left: 50%;
  line-height: 1;
  opacity: 0;
  padding: 0.42rem 0.62rem;
  pointer-events: none;
  position: absolute;
  top: 8.6%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  z-index: 4;
}

.games-rb-limit-toast.is-visible {
  opacity: 1;
}

.games-rb-set-axis-label {
  font-size: 15px;
  font-weight: 950;
  letter-spacing: 0;
  paint-order: stroke;
  stroke: rgba(255, 253, 248, 0.95);
  stroke-linejoin: round;
  stroke-width: 4px;
}

.games-rb-set-axis-label.is-s-label {
  fill: var(--games-rb-blue);
}

.games-rb-set-axis-label.is-t-label {
  fill: var(--games-rb-red);
}

.games-rb-mex-cell-ring,
.games-rb-mex-axis-label {
  opacity: 0;
  animation: games-rb-mex-entry var(--games-rb-cycle) steps(1, end) infinite;
}

.games-rb-mex-cell-ring {
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.games-rb-mex-cell-ring.is-mex-s-ring {
  fill: none;
  stroke: rgba(var(--games-rb-blue-rgb, 63, 115, 152), 0.54);
}

.games-rb-mex-cell-ring.is-mex-t-ring {
  fill: none;
  stroke: rgba(var(--games-rb-red-rgb, 191, 79, 67), 0.5);
}

.games-rb-mex-axis-label {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0;
  paint-order: stroke;
  stroke: rgba(255, 253, 248, 0.96);
  stroke-linejoin: round;
  stroke-width: 3px;
}

.games-rb-mex-axis-label.is-mex-s-label {
  fill: var(--games-rb-blue);
}

.games-rb-mex-axis-label.is-mex-t-label {
  fill: var(--games-rb-red);
}

.games-rb-mex-axis-tex {
  color: var(--games-rb-ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 11.2px;
  font-weight: 950;
  line-height: 1;
  overflow: visible;
  pointer-events: none;
}

.games-rb-mex-axis-tex > div {
  align-items: center;
  display: flex;
  height: 100%;
  justify-content: center;
  white-space: nowrap;
}

.games-rb-mex-axis-tex .katex {
  color: inherit;
  line-height: 1;
}

.games-rb-mex-axis-svg-label {
  fill: #24312a;
  font-size: 12.6px;
  font-style: italic;
  font-weight: 950;
  letter-spacing: 0;
  paint-order: stroke;
  pointer-events: none;
  stroke: rgba(255, 253, 248, 0.98);
  stroke-linejoin: round;
  stroke-width: 3.2px;
}

.games-rb-mex-axis-svg-label .is-s-var {
  fill: var(--games-rb-blue);
}

.games-rb-mex-axis-svg-label .is-t-var {
  fill: var(--games-rb-red);
}

.games-rb-union-highlight {
  stroke: none;
}

.games-rb-union-highlight.is-mex-s-plus-t {
  fill: #f8dddd;
}

.games-rb-union-highlight.is-s-plus-mex-t {
  fill: #dfe8ff;
}

.games-rb-union-highlight.is-both-union-terms {
  fill: url("#games-rb-union-both");
}

.games-rb-product-highlight {
  fill: none;
  stroke: rgba(var(--games-rb-purple-rgb, 119, 101, 166), 0.58);
  stroke-width: 2.2;
  vector-effect: non-scaling-stroke;
}

.games-rb-product-arrow {
  fill: none;
  stroke-linecap: round;
  stroke-width: 2.1;
  vector-effect: non-scaling-stroke;
}

.games-rb-product-arrow.is-from-mex-s {
  marker-end: url("#games-rb-arrow-blue");
  stroke: rgba(var(--games-rb-blue-rgb, 63, 115, 152), 0.66);
}

.games-rb-product-arrow.is-from-mex-t {
  marker-end: url("#games-rb-arrow-red");
  stroke: rgba(var(--games-rb-red-rgb, 191, 79, 67), 0.62);
}

.games-rb-dual-figure[data-games-rb-interactive] .games-rb-mex-axis-label,
.games-rb-dual-figure[data-games-rb-interactive] .games-rb-mex-cell-ring {
  animation: none;
  opacity: 1;
}

.games-rb-dual-highlight {
  opacity: 0.2;
  stroke: none;
}

.games-rb-dual-highlight.is-mex-s-head,
.games-rb-dual-highlight.is-col-product {
  fill: rgba(var(--games-rb-blue-rgb, 63, 115, 152), 0.38);
  animation: games-rb-dual-mex var(--games-rb-cycle) steps(1, end) infinite;
}

.games-rb-dual-highlight.is-mex-t-head,
.games-rb-dual-highlight.is-row-product {
  fill: rgba(var(--games-rb-red-rgb, 191, 79, 67), 0.34);
  animation: games-rb-dual-mex var(--games-rb-cycle) steps(1, end) infinite;
}

.games-rb-dual-highlight.is-row-product,
.games-rb-dual-highlight.is-col-product {
  animation: games-rb-dual-products var(--games-rb-cycle) steps(1, end) infinite;
}

.games-rb-dual-highlight.is-product-cell {
  fill: rgba(var(--games-rb-purple-rgb, 119, 101, 166), 0.3);
  animation: games-rb-dual-products var(--games-rb-cycle) steps(1, end) infinite;
}

.games-rb-dual-label {
  font-size: 10.2px;
  font-weight: 950;
  letter-spacing: 0;
  opacity: 0;
  paint-order: stroke;
  stroke: rgba(255, 253, 248, 0.96);
  stroke-linejoin: round;
  stroke-width: 3px;
}

.games-rb-dual-label.is-row-label {
  fill: var(--games-rb-green);
  animation: games-rb-dual-products var(--games-rb-cycle) steps(1, end) infinite;
}

.games-rb-dual-label.is-col-label {
  fill: var(--games-rb-blue);
  animation: games-rb-dual-products var(--games-rb-cycle) steps(1, end) infinite;
}

.games-rb-dual-label.is-product-label {
  fill: var(--games-rb-red);
  animation: games-rb-dual-products var(--games-rb-cycle) steps(1, end) infinite;
}

.games-rb-dual-label.is-result-label {
  fill: var(--games-rb-red);
  animation: games-rb-dual-result var(--games-rb-cycle) steps(1, end) infinite;
}

.games-rb-mex-arrow.is-mex-product-arrow {
  marker-end: url("#games-rb-mex-arrow-red");
  stroke: var(--games-rb-red);
  animation: games-rb-dual-products var(--games-rb-cycle) steps(1, end) infinite;
}

.games-rb-dual-table .games-rb-mex-arrow.is-result-arrow {
  animation: games-rb-dual-result var(--games-rb-cycle) steps(1, end) infinite;
}

.games-rb-result-chip,
.games-rb-equality-check {
  opacity: 0.24;
  animation: games-rb-dual-result var(--games-rb-cycle) steps(1, end) infinite;
}

.games-rb-result-chip circle,
.games-rb-equality-check circle {
  fill: rgba(255, 240, 237, 0.96);
  stroke: var(--games-rb-red);
  stroke-width: 2;
}

.games-rb-result-chip text,
.games-rb-equality-check text {
  fill: var(--games-rb-red);
  font-size: 18px;
  font-weight: 950;
  letter-spacing: 0;
}

.games-rb-equality-check .equals {
  fill: var(--games-rb-purple);
  font-size: 22px;
}

.games-rb-dual-main-equals {
  fill: var(--games-rb-purple);
  font-size: 44px;
  font-weight: 950;
  letter-spacing: 0;
  paint-order: stroke;
  stroke: rgba(255, 253, 248, 0.96);
  stroke-linejoin: round;
  stroke-width: 5px;
}

.games-rb-dual-tex-left {
  left: 25.8%;
  top: 30%;
  color: #24312a;
  font-size: 0.7rem;
  width: 38%;
  white-space: normal;
  line-height: 1.08;
}

.games-rb-dual-tex-right {
  left: 74.2%;
  top: 30%;
  color: #24312a;
  font-size: 0.76rem;
  width: 34%;
  white-space: normal;
  line-height: 1.08;
}

.games-rb-expanded-mex-readout {
  align-items: center;
  display: inline-flex;
  left: 26%;
  top: 88.1%;
  width: 48%;
  color: #24312a;
  font-size: 1.14rem;
  font-weight: 950;
  line-height: 1;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
}

.games-rb-expanded-mex-readout:not(:has(.katex)) {
  font-size: 1.14rem;
}

.games-rb-expanded-mex-readout .games-rb-math-part,
.games-rb-expanded-mex-readout .games-rb-highlighted-term {
  align-items: center;
  display: inline-flex;
  line-height: 1;
}

.games-rb-highlighted-term {
  border-radius: 4px;
  background: rgba(var(--games-rb-purple-rgb, 119, 101, 166), 0.18);
  padding: 0.08em 0.12em;
}

.games-rb-expanded-mex-readout .katex {
  line-height: 1;
}

.games-rb-bottom-result {
  left: 55.2%;
  top: 88.1%;
  width: 7%;
  color: #24312a;
  font-size: 1.34rem;
  font-weight: 950;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.games-rb-bottom-result:not(:has(.katex)) {
  font-size: 1.34rem;
}

.games-rb-expanded-mex-equals {
  left: 55.2%;
  top: 88.1%;
  width: 8%;
  color: var(--games-rb-purple);
  font-size: 1.26rem;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
}

.games-rb-expanded-mex-equals:not(:has(.katex)) {
  font-size: 1.26rem;
}

.games-rb-expanded-mex-rhs {
  left: 78.6%;
  top: 88.1%;
  width: 34%;
  color: #24312a;
  font-size: 1.26rem;
  font-weight: 950;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.games-rb-expanded-mex-rhs:not(:has(.katex)) {
  font-size: 1.26rem;
}

.games-rb-integral-left,
.games-rb-integral-right {
  color: #24312a;
  font-size: 1.32rem;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.games-rb-integral-left {
  left: 29.8%;
  top: 7.6%;
  width: 34%;
}

.games-rb-integral-right {
  left: 77.7%;
  top: 7.6%;
  width: 34%;
}

.games-rb-integral-left:not(:has(.katex)),
.games-rb-integral-right:not(:has(.katex)) {
  font-size: 1.32rem;
}

@media (max-width: 520px) {
  .games-rb-expanded-mex-readout,
  .games-rb-expanded-mex-readout:not(:has(.katex)),
  .games-rb-expanded-mex-equals,
  .games-rb-expanded-mex-equals:not(:has(.katex)),
  .games-rb-bottom-result,
  .games-rb-bottom-result:not(:has(.katex)),
  .games-rb-expanded-mex-rhs,
  .games-rb-expanded-mex-rhs:not(:has(.katex)),
  .games-rb-integral-left,
  .games-rb-integral-left:not(:has(.katex)),
  .games-rb-integral-right,
  .games-rb-integral-right:not(:has(.katex)) {
    font-size: 0.82rem;
  }
}

@media (max-width: 430px) {
  .games-rb-expanded-mex-readout,
  .games-rb-expanded-mex-readout:not(:has(.katex)),
  .games-rb-expanded-mex-equals,
  .games-rb-expanded-mex-equals:not(:has(.katex)),
  .games-rb-bottom-result,
  .games-rb-bottom-result:not(:has(.katex)),
  .games-rb-expanded-mex-rhs,
  .games-rb-expanded-mex-rhs:not(:has(.katex)),
  .games-rb-integral-left,
  .games-rb-integral-left:not(:has(.katex)),
  .games-rb-integral-right,
  .games-rb-integral-right:not(:has(.katex)) {
    font-size: 0.62rem;
  }
}

@media (max-width: 520px) {
  .games-rb-integral-left,
  .games-rb-integral-right {
    display: none;
  }

  .games-rb-expanded-mex-readout {
    left: 29%;
    width: 42%;
  }

  .games-rb-bottom-result {
    left: 56%;
  }

  .games-rb-expanded-mex-rhs {
    left: 80.4%;
    width: 30%;
  }
}

@keyframes games-rb-dual-mex {
  0%,
  28% {
    opacity: 1;
  }

  36%,
  100% {
    opacity: 0.28;
  }
}

@keyframes games-rb-mex-entry {
  0%,
  38% {
    opacity: 0;
  }

  42%,
  100% {
    opacity: 1;
  }
}

@keyframes games-rb-dual-products {
  0%,
  32% {
    opacity: 0.2;
  }

  40%,
  68% {
    opacity: 1;
  }

  76%,
  100% {
    opacity: 0.3;
  }
}

@keyframes games-rb-dual-result {
  0%,
  70% {
    opacity: 0;
  }

  78%,
  100% {
    opacity: 1;
  }
}

.grundy-figure {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--paper-figure-bg, linear-gradient(180deg, #fffdf8 0%, #f6f2ea 100%));
  color: var(--paper-ink, var(--ink));
}

.publication-figure .grundy-figure {
  pointer-events: none;
}

.diagram-expanded .grundy-figure {
  min-height: min(58vh, 620px);
  border: 1px solid rgba(43, 52, 43, 0.14);
  border-radius: 8px;
}

.diagram-expanded .grundy-figure svg {
  height: 100%;
  max-height: none;
}

.diagram-expanded .grundy-key {
  display: none;
}

.grundy-title,
.grundy-formula,
.grundy-level-label,
.grundy-key text,
.grundy-node text {
  fill: var(--paper-ink-strong, #25342d);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.grundy-title {
  font-size: 22px;
  font-weight: 850;
}

.grundy-formula {
  font-size: 15px;
  font-weight: 700;
}

.grundy-formula.muted {
  fill: var(--paper-ink-soft, rgba(37, 52, 45, 0.64));
  font-weight: 650;
}

.grundy-game-frame {
  fill: rgba(255, 253, 248, 0.62);
  stroke: var(--paper-line, rgba(43, 52, 43, 0.12));
  stroke-width: 1.5;
}

.grundy-level-label {
  fill: rgba(31, 39, 33, 0.52);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.grundy-key rect {
  fill: rgba(255, 253, 248, 0.82);
  stroke: rgba(43, 52, 43, 0.16);
  stroke-width: 1.5;
}

.grundy-key text {
  font-size: 13px;
  font-weight: 750;
}

.key-pending {
  fill: var(--paper-surface-soft, #f6f2ea);
  stroke: var(--paper-line-strong, rgba(43, 52, 43, 0.42));
  stroke-width: 2;
}

.key-active {
  fill: var(--paper-orange-soft, #f3d7ba);
  stroke: var(--paper-orange, #cf6a2f);
  stroke-width: 2;
}

.grundy-edge {
  fill: none;
  color: var(--paper-ink, #1f2721);
  stroke: var(--paper-line, rgba(31, 39, 33, 0.26));
  stroke-linecap: round;
  stroke-width: 1.45;
  opacity: 0.24;
  transition: opacity 220ms ease, stroke 220ms ease, stroke-width 220ms ease;
}

.grundy-edge.is-computed {
  stroke: rgba(31, 39, 33, 0.34);
  opacity: 0.36;
}

.grundy-edge.is-active {
  stroke: var(--paper-ink, #1f2721);
  stroke-width: 3.2;
  opacity: 1;
}

.grundy-figure svg marker path {
  fill: var(--paper-ink, #1f2721);
}

.grundy-node {
  cursor: pointer;
}

.publication-figure .grundy-node {
  cursor: zoom-in;
}

.grundy-node-shell {
  fill: var(--paper-surface, #fffdf8);
  stroke: var(--paper-line-strong, rgba(43, 52, 43, 0.42));
  stroke-width: 2;
  transition: fill 220ms ease, stroke 220ms ease, stroke-width 220ms ease, transform 220ms ease;
}

.grundy-node.is-known .grundy-node-shell {
  fill: var(--paper-green-soft, #edf5f1);
  stroke: rgba(var(--paper-green-rgb, 75, 128, 98), 0.66);
}

.grundy-node.is-active .grundy-node-shell {
  fill: var(--paper-orange-soft, #fff0df);
  stroke: var(--paper-orange, #cf6a2f);
  stroke-width: 3;
}

.grundy-node.is-active {
  filter: drop-shadow(0 10px 14px rgba(166, 91, 44, 0.16));
}

.grundy-node.is-p-state .grundy-node-shell {
  fill: var(--paper-blue-soft, #e5edf3);
  stroke: var(--paper-blue, #3f7398);
}

.grundy-node.is-n-state .grundy-node-shell {
  fill: var(--paper-red-soft, #f4e1dc);
  stroke: var(--paper-red, #bf4f43);
}

.grundy-node.is-active.is-p-state .grundy-node-shell,
.grundy-node.is-active.is-n-state .grundy-node-shell {
  stroke-width: 3.2;
}

.grundy-node.is-active.is-p-state {
  filter: drop-shadow(0 10px 14px rgba(49, 92, 168, 0.16));
}

.grundy-node.is-active.is-n-state {
  filter: drop-shadow(0 10px 14px rgba(182, 74, 61, 0.16));
}

.grundy-node.is-referenced {
  filter: drop-shadow(0 8px 13px rgba(31, 39, 33, 0.18));
}

.grundy-node.is-referenced .grundy-node-shell {
  stroke: #1f2721;
  stroke-width: 3;
}

.grundy-node text {
  pointer-events: none;
  text-anchor: middle;
}

.grundy-value-label {
  font-size: 17px;
  font-weight: 900;
}

.grundy-node.is-active .grundy-value-label {
  font-weight: 900;
}

.grundy-node.is-p-state .grundy-value-label {
  fill: var(--paper-blue-deep, #315b78);
}

.grundy-node.is-n-state .grundy-value-label {
  fill: var(--paper-red, #bf4f43);
}

.grundy-node.is-receiving .grundy-node-shell {
  transform-box: fill-box;
  transform-origin: center;
  animation: grundy-node-receive 520ms cubic-bezier(0.16, 0.84, 0.22, 1) both;
}

.grundy-node.is-receiving .grundy-value-label {
  transform-box: fill-box;
  transform-origin: center;
  animation: grundy-value-receive 520ms cubic-bezier(0.16, 0.84, 0.22, 1) both;
}

.grundy-transfer-ball {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 4;
  display: grid;
  width: var(--grundy-transfer-size, 36px);
  height: var(--grundy-transfer-size, 36px);
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 999px;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: calc(var(--grundy-transfer-size, 36px) * 0.48);
  font-weight: 900;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transform: translate(var(--from-x), var(--from-y)) translate(-50%, -50%) scale(0.84);
  will-change: transform, opacity;
}

.grundy-transfer-ball.is-css-flight {
  animation: grundy-transfer-flight 560ms cubic-bezier(0.2, 0.78, 0.18, 1) both;
}

.grundy-transfer-ball.is-zero {
  background: var(--paper-blue-soft, #e5edf3);
  box-shadow:
    0 0 0 7px rgba(var(--paper-blue-rgb, 63, 115, 152), 0.1),
    0 16px 26px rgba(var(--paper-blue-rgb, 63, 115, 152), 0.18);
  color: var(--paper-blue-deep, #315b78);
}

.grundy-transfer-ball.is-positive {
  background: var(--paper-red-soft, #f4e1dc);
  box-shadow:
    0 0 0 7px rgba(var(--paper-red-rgb, 191, 79, 67), 0.1),
    0 16px 26px rgba(var(--paper-red-rgb, 191, 79, 67), 0.18);
  color: var(--paper-red, #bf4f43);
}

@keyframes grundy-transfer-flight {
  0% {
    opacity: 0;
    transform: translate(var(--from-x), var(--from-y)) translate(-50%, -50%) scale(0.72);
  }

  12% {
    opacity: 1;
    transform: translate(var(--from-x), var(--from-y)) translate(-50%, -50%) scale(0.9);
  }

  58% {
    opacity: 1;
    transform: translate(var(--mid-x), var(--mid-y)) translate(-50%, -50%) scale(0.98);
  }

  88% {
    opacity: 1;
    transform: translate(var(--to-x), var(--to-y)) translate(-50%, -50%) scale(0.8);
  }

  100% {
    opacity: 0;
    transform: translate(var(--to-x), var(--to-y)) translate(-50%, -50%) scale(0.68);
  }
}

@keyframes grundy-node-receive {
  0%,
  55% {
    transform: scale(1);
  }

  78% {
    transform: scale(1.12);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes grundy-value-receive {
  0%,
  55% {
    opacity: 0.72;
    transform: scale(0.86);
  }

  78% {
    opacity: 1;
    transform: scale(1.18);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.grundy-algebra-panel {
  --grundy-panel-pad-x: 20px;
  --grundy-panel-pad-y: 18px;
  position: absolute;
  top: 78px;
  right: clamp(72px, 16%, 170px);
  bottom: 34px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(24%, 190px);
  padding: 18px 20px;
  border: 1px solid rgba(43, 52, 43, 0.13);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.84);
  box-shadow: 0 10px 28px rgba(43, 52, 43, 0.08);
  overflow: hidden;
}

.grundy-natural-line {
  --grundy-axis-pad: 32px;
  --grundy-mex-water-height: 0px;
  --grundy-valve-width: 260px;
  position: relative;
  display: flex;
  flex-direction: column-reverse;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  align-self: stretch;
  width: calc(100% + (var(--grundy-panel-pad-x) * 2));
  min-height: 100%;
  margin-inline: calc(var(--grundy-panel-pad-x) * -1);
  padding: 8px 0;
}

.grundy-natural-line::before {
  position: absolute;
  top: 28px;
  bottom: 28px;
  left: 50%;
  z-index: 0;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(
    to top,
    rgba(43, 52, 43, 0.16),
    rgba(43, 52, 43, 0.08)
  );
  content: "";
  transform: translateX(-50%);
}

.grundy-natural-number {
  position: relative;
  z-index: 2;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: #171b18;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.22rem;
  font-weight: 900;
  transition: color 220ms ease, opacity 220ms ease, transform 220ms ease;
}

.grundy-natural-core {
  position: relative;
  z-index: 2;
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  border: 2px solid #171b18;
  border-radius: 999px;
  background: linear-gradient(180deg, #fffdf8, #f4f3ee);
  box-shadow:
    0 0 0 3px rgba(20, 25, 22, 0.12),
    0 7px 13px rgba(20, 25, 22, 0.12);
  transition: background 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.grundy-natural-number::after {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 0;
  width: var(--grundy-valve-width);
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(12, 15, 13, 0.96), rgba(34, 40, 36, 0.92), rgba(12, 15, 13, 0.96));
  box-shadow: 0 2px 9px rgba(20, 25, 22, 0.28);
  content: "";
  opacity: 0.94;
  transform: translate(-50%, -50%);
}

.grundy-natural-number.is-excluded {
  color: rgba(37, 52, 45, 0.42);
}

.grundy-natural-number.is-excluded .grundy-natural-core {
  border-color: rgba(var(--paper-teal-rgb, 31, 138, 120), 0.22);
  background: var(--paper-teal-soft, #e3f2ee);
  box-shadow: none;
}

.grundy-natural-number.is-excluded::after {
  position: absolute;
  top: 50%;
  bottom: auto;
  left: 9px;
  right: 9px;
  z-index: 3;
  width: auto;
  height: 3px;
  border-radius: 999px;
  background: var(--paper-orange, #cf6a2f);
  box-shadow: none;
  content: "";
  opacity: 1;
  transform: translateY(-50%) rotate(-18deg);
  transform-origin: center;
  animation: grundy-cross-number 260ms ease both;
}

.grundy-natural-number.is-mex {
  z-index: 3;
  color: var(--paper-red, #bf4f43);
  transform: scale(1.12);
  animation: grundy-mex-pop 300ms ease both;
}

.grundy-natural-number.is-mex .grundy-natural-core {
  border-color: var(--paper-red, #bf4f43);
  background: var(--paper-red-soft, #f4e1dc);
  box-shadow:
    0 7px 0 rgba(var(--paper-red-rgb, 191, 79, 67), 0.2),
    0 11px 20px rgba(var(--paper-red-rgb, 191, 79, 67), 0.14);
}

.grundy-natural-number.is-mex::before {
  position: absolute;
  z-index: 1;
  inset: -8px;
  border: 2px solid rgba(var(--paper-red-rgb, 191, 79, 67), 0.26);
  border-radius: 999px;
  content: "";
  animation: grundy-mex-ring 760ms ease-out both;
}

.grundy-natural-number.is-mex::after {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 0;
  width: var(--grundy-valve-width);
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--paper-red, #bf4f43), rgba(var(--paper-red-rgb, 191, 79, 67), 0.88), var(--paper-red, #bf4f43));
  box-shadow: 0 2px 10px rgba(var(--paper-red-rgb, 191, 79, 67), 0.24);
  content: "";
  opacity: 1;
  transform: translate(-50%, -50%);
}

.grundy-natural-number.is-mex[data-grundy-natural="0"] {
  color: var(--paper-blue-deep, #315b78);
}

.grundy-natural-number.is-mex[data-grundy-natural="0"] .grundy-natural-core {
  border-color: var(--paper-blue, #3f7398);
  background: var(--paper-blue-soft, #e5edf3);
  box-shadow:
    0 7px 0 rgba(var(--paper-blue-rgb, 63, 115, 152), 0.18),
    0 11px 20px rgba(var(--paper-blue-rgb, 63, 115, 152), 0.13);
}

.grundy-natural-number.is-mex[data-grundy-natural="0"]::before {
  border-color: rgba(var(--paper-blue-rgb, 63, 115, 152), 0.26);
}

.grundy-natural-number.is-mex[data-grundy-natural="0"]::after {
  background: linear-gradient(90deg, var(--paper-blue-deep, #315b78), rgba(var(--paper-blue-rgb, 63, 115, 152), 0.88), var(--paper-blue-deep, #315b78));
  box-shadow: 0 2px 10px rgba(var(--paper-blue-rgb, 63, 115, 152), 0.22);
}

.grundy-natural-number.is-after-mex {
  opacity: 1;
}

.grundy-mex-water {
  position: absolute;
  right: 0;
  bottom: calc(var(--grundy-panel-pad-y) * -1);
  left: 0;
  z-index: 1;
  width: auto;
  height: calc(var(--grundy-mex-water-height) + var(--grundy-panel-pad-y));
  opacity: 0;
  overflow: visible;
  border-radius: 0 0 8px 8px;
  background:
    linear-gradient(180deg, rgba(var(--paper-blue-rgb, 63, 115, 152), 0.22), rgba(var(--paper-teal-rgb, 31, 138, 120), 0.28)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.22) 0 8px, rgba(255, 255, 255, 0) 8px 18px);
  box-shadow: 0 -10px 26px rgba(var(--paper-blue-rgb, 63, 115, 152), 0.18);
  transform: none;
  transition:
    height 780ms cubic-bezier(0.18, 0.8, 0.14, 1),
    opacity 180ms ease;
  pointer-events: none;
}

.grundy-mex-water::before {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0) 38% 62%, rgba(var(--paper-teal-rgb, 31, 138, 120), 0.1));
  content: "";
}

.grundy-mex-water::after {
  position: absolute;
  top: -3px;
  right: 0;
  left: 0;
  height: 6px;
  border-radius: 1px;
  background: linear-gradient(90deg, rgba(var(--paper-blue-rgb, 63, 115, 152), 0.48), rgba(255, 253, 248, 0.78), rgba(var(--paper-teal-rgb, 31, 138, 120), 0.48));
  box-shadow: 0 1px 8px rgba(var(--paper-blue-rgb, 63, 115, 152), 0.18);
  content: "";
}

.grundy-mex-water.is-ready {
  opacity: 0.88;
}

@keyframes grundy-cross-number {
  from {
    opacity: 0;
    transform: translateY(-50%) scaleX(0.2) rotate(-18deg);
  }

  to {
    opacity: 1;
    transform: translateY(-50%) scaleX(1) rotate(-18deg);
  }
}

@keyframes grundy-mex-pop {
  0% {
    transform: scale(0.96);
  }

  100% {
    transform: scale(1.12);
  }
}

@keyframes grundy-mex-ring {
  from {
    opacity: 0.58;
    transform: scale(0.82);
  }

  to {
    opacity: 0;
    transform: scale(1.34);
  }
}

.grundy-panel {
  position: absolute;
  right: 14px;
  bottom: 12px;
  left: 14px;
  z-index: 2;
  display: grid;
  grid-template-columns: auto minmax(0, 0.55fr) minmax(0, 1fr) minmax(0, 0.8fr) minmax(0, 0.6fr);
  gap: 6px 12px;
  align-items: center;
  padding: 9px 11px;
  border: 1px solid rgba(43, 52, 43, 0.14);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.9);
  box-shadow: 0 10px 28px rgba(43, 52, 43, 0.1);
  color: #25342d;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.74rem;
  line-height: 1.25;
}

.grundy-panel-label {
  color: var(--accent-2);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.grundy-panel strong {
  font-weight: 900;
}

.publication-figure .grundy-panel {
  display: none;
}

.publication-figure .grundy-algebra-panel {
  --grundy-panel-pad-x: 12px;
  --grundy-panel-pad-y: 10px;
  top: 64px;
  right: clamp(96px, 18%, 230px);
  bottom: 46px;
  width: 128px;
  padding: 10px 12px;
}

.publication-figure .grundy-natural-line {
  --grundy-axis-pad: 26px;
  --grundy-valve-width: 172px;
  gap: 10px;
  min-height: 100%;
}

.publication-figure .grundy-natural-line::before {
  top: 20px;
  bottom: 20px;
}

.publication-figure .grundy-natural-number {
  width: 36px;
  height: 36px;
  font-size: 0.96rem;
}

.publication-figure .grundy-natural-number::after {
  height: 3px;
}

.publication-figure .grundy-natural-number.is-excluded::after {
  top: 50%;
  bottom: auto;
  left: 7px;
  right: 7px;
  height: 2px;
}

.publication-figure .grundy-natural-number.is-mex::after {
  height: 5px;
}

@media (max-width: 640px) {
  .publication-figure-games-coalgebras .grundy-title {
    font-size: 28px;
  }

  .publication-figure-games-coalgebras .grundy-value-label {
    font-size: 19px;
  }

  .publication-figure-games-coalgebras .grundy-algebra-panel {
    --grundy-panel-pad-x: clamp(4px, 1.8vw, 8px);
    --grundy-panel-pad-y: clamp(4px, 1.8vw, 8px);
    top: 13.8%;
    right: clamp(18px, 6.5%, 46px);
    bottom: 9.8%;
    width: clamp(64px, 24%, 120px);
    padding: var(--grundy-panel-pad-y) var(--grundy-panel-pad-x);
    border-radius: 6px;
  }

  .publication-figure-games-coalgebras .grundy-natural-line {
    --grundy-axis-pad: clamp(12px, 5vw, 20px);
    --grundy-valve-width: calc(clamp(64px, 24vw, 120px) + (var(--grundy-panel-pad-x) * 2));
    gap: clamp(1px, 0.8vw, 5px);
    padding: clamp(3px, 1vw, 6px) 0;
  }

  .publication-figure-games-coalgebras .grundy-natural-line::before {
    top: clamp(10px, 3.4vw, 18px);
    bottom: clamp(10px, 3.4vw, 18px);
    width: 2px;
  }

  .publication-figure-games-coalgebras .grundy-natural-number {
    width: clamp(20px, 6.5vw, 30px);
    height: clamp(20px, 6.5vw, 30px);
    font-size: 0.78rem;
  }

  .publication-figure-games-coalgebras .grundy-natural-core {
    border-width: 1.5px;
    box-shadow:
      0 0 0 2px rgba(20, 25, 22, 0.1),
      0 5px 9px rgba(20, 25, 22, 0.1);
  }

  .publication-figure-games-coalgebras .grundy-natural-number::after {
    height: 2px;
  }

  .publication-figure-games-coalgebras .grundy-natural-number.is-excluded::after {
    left: 5px;
    right: 5px;
    height: 2px;
  }

  .publication-figure-games-coalgebras .grundy-natural-number.is-mex {
    transform: scale(1.07);
  }

  .publication-figure-games-coalgebras .grundy-natural-number.is-mex::before {
    inset: -4px;
    border-width: 1.5px;
  }

  .publication-figure-games-coalgebras .grundy-natural-number.is-mex::after {
    height: 4px;
  }

  .publication-figure-games-coalgebras .grundy-transfer-ball {
    --grundy-transfer-size: clamp(20px, 6.6vw, 28px) !important;
    border-width: 1.5px;
  }
}

.lawvere-pullback-figure {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--paper-figure-bg, linear-gradient(180deg, #fffdf8 0%, #f6f2ea 100%));
  color: var(--paper-ink, var(--ink));
}

.publication-figure .lawvere-pullback-figure {
  pointer-events: none;
}

.lawvere-pullback-figure svg {
  display: block;
  width: 100%;
  height: 100%;
}

.diagram-expanded .lawvere-pullback-figure {
  min-height: min(58vh, 620px);
  border: 1px solid rgba(43, 52, 43, 0.14);
  border-radius: 8px;
}

.diagram-expanded .lawvere-pullback-figure svg {
  height: 100%;
  max-height: none;
}

.lawvere-panel-divider {
  fill: none;
  stroke: var(--paper-line, rgba(43, 52, 43, 0.12));
  stroke-linecap: round;
  stroke-width: 1.5;
}

.lawvere-panel-label {
  fill: var(--paper-ink-soft, rgba(37, 52, 45, 0.72));
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lawvere-graph-frame {
  fill: rgba(255, 253, 248, 0.72);
  stroke: var(--paper-line, rgba(43, 52, 43, 0.28));
  stroke-width: 2.2;
}

.lawvere-graph-frame.small {
  stroke: rgba(var(--paper-teal-rgb, 31, 138, 120), 0.28);
}

.lawvere-alpha-arrow {
  stroke: var(--paper-teal, #1f8a78);
  stroke-width: 2.8;
}

.lawvere-y-edge,
.lawvere-x-edge {
  fill: none;
  stroke-linecap: round;
  stroke-width: 2.6;
  transition: opacity 260ms ease, stroke-width 260ms ease, filter 260ms ease;
}

.lawvere-x-edge {
  opacity: 0.9;
}

.lawvere-y-edge {
  opacity: 0.95;
}

.lawvere-pullback-figure.is-animated .lawvere-x-edge,
.lawvere-pullback-figure.is-animated .lawvere-y-edge {
  opacity: 0.13;
}

.lawvere-pullback-figure.is-animated .lawvere-x-edge.is-complete,
.lawvere-pullback-figure.is-animated .lawvere-y-edge.is-complete {
  opacity: 0.5;
}

.lawvere-pullback-figure.is-animated .lawvere-x-edge.is-active,
.lawvere-pullback-figure.is-animated .lawvere-y-edge.is-active {
  opacity: 1;
  stroke-width: 4.2;
  filter: drop-shadow(0 0 9px rgba(43, 52, 43, 0.2));
}

.lawvere-pullback-figure.is-complete .lawvere-x-edge,
.lawvere-pullback-figure.is-complete .lawvere-y-edge {
  opacity: 0.92;
}

.lawvere-y-edge,
.lawvere-x-edge {
  stroke: var(--paper-ink, #2b342b);
}

.lawvere-x-vertices circle,
.lawvere-y-vertices circle {
  stroke: var(--paper-surface, #fffdf8);
  stroke-width: 2.3;
}

.lawvere-coskel-frame,
.lawvere-coskel-core-frame {
  fill: rgba(255, 253, 248, 0.62);
  stroke: var(--paper-line, rgba(43, 52, 43, 0.2));
  stroke-width: 1.4;
}

.lawvere-coskel-core-frame {
  fill: rgba(255, 253, 248, 0.74);
  stroke: rgba(var(--paper-teal-rgb, 31, 138, 120), 0.24);
  stroke-width: 2;
  transition: opacity 260ms ease;
}

.lawvere-coskel-edge {
  fill: none;
  stroke: var(--paper-ink, #2b342b);
  stroke-linecap: round;
  stroke-width: 2.1;
  transition: opacity 260ms ease, stroke-width 260ms ease, filter 260ms ease;
}

.lawvere-coskel-edge.boundary {
  stroke: rgba(43, 52, 43, 0.56);
  stroke-width: 1.2;
}

.lawvere-coskel-edge.g0 {
  stroke: var(--paper-blue, #244db7);
}

.lawvere-coskel-edge.g1 {
  stroke: var(--paper-orange, #cf6a2f);
}

.lawvere-coskel-edge.g2 {
  stroke: var(--paper-green, #4b8062);
}

.lawvere-coskel-edge.g3 {
  stroke: var(--paper-purple, #7765a6);
}

.lawvere-coskel-edge.core {
  stroke: var(--paper-ink, #2b342b);
}

.lawvere-coskel-vertex {
  stroke: var(--paper-surface, #fffdf8);
  stroke-width: 1.8;
  transition: opacity 260ms ease, filter 260ms ease;
}

.lawvere-coskel-boundary .lawvere-coskel-vertex {
  stroke-width: 1;
}

.lawvere-coskel-deleted path {
  fill: none;
  stroke: var(--paper-blue, #3f7398);
  stroke-linecap: round;
  stroke-width: 2.3;
}

.lawvere-coskel-boundary {
  transition: opacity 420ms ease, filter 420ms ease, transform 620ms cubic-bezier(0.16, 1, 0.3, 1);
  transform-box: view-box;
  transform-origin: var(--coskel-origin-x) var(--coskel-origin-y);
  transform: translate(var(--coskel-home-x), var(--coskel-home-y)) scale(var(--coskel-home-scale));
}

.lawvere-pullback-figure.is-animated .lawvere-coskel-boundary,
.lawvere-pullback-figure.is-animated .lawvere-coskel-edge[data-coskel-core-edge],
.lawvere-pullback-figure.is-animated .lawvere-coskel-vertex[data-coskel-vertex] {
  opacity: 0.16;
}

.lawvere-pullback-figure.is-coskel-building .lawvere-coskel-core-frame {
  opacity: 0.42;
}

.lawvere-pullback-figure.is-animated .lawvere-coskel-boundary.is-active {
  opacity: 0.92;
  filter: drop-shadow(0 0 14px rgba(47, 114, 189, 0.32));
  transform: translate(0, 0) scale(1);
}

.lawvere-pullback-figure.is-animated .lawvere-coskel-boundary.is-glued {
  opacity: 0;
  transform: translate(0, 0) scale(1);
}

.lawvere-pullback-figure.is-animated .lawvere-coskel-edge[data-coskel-core-edge].is-gluing {
  opacity: 0.9;
  stroke-width: 2.9;
  filter: drop-shadow(0 0 7px rgba(43, 52, 43, 0.2));
}

.lawvere-pullback-figure.is-animated .lawvere-coskel-vertex[data-coskel-vertex].is-gluing {
  opacity: 1;
}

.lawvere-pullback-figure.is-complete .lawvere-coskel-boundary {
  opacity: 0.62;
}

.lawvere-pullback-figure.is-complete .lawvere-coskel-edge[data-coskel-core-edge],
.lawvere-pullback-figure.is-complete .lawvere-coskel-vertex[data-coskel-vertex] {
  opacity: 0.94;
}

.grundy-controls {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  justify-content: flex-end;
  max-width: min(440px, calc(100% - 28px));
  padding: 8px;
  border: 1px solid rgba(43, 52, 43, 0.14);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.92);
  box-shadow: 0 10px 28px rgba(43, 52, 43, 0.1);
}

.grundy-control {
  appearance: none;
  border: 1px solid rgba(44, 111, 99, 0.28);
  border-radius: 6px;
  background: #fffdf8;
  color: var(--accent-2);
  cursor: pointer;
  font: 850 0.72rem/1 ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  padding: 7px 9px;
}

.grundy-control:hover,
.grundy-control:focus-visible {
  border-color: rgba(44, 111, 99, 0.52);
  background: #edf5f1;
}

.grundy-slider {
  display: flex;
  gap: 7px;
  align-items: center;
  color: var(--muted);
  font: 800 0.72rem/1 ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.grundy-slider input {
  width: 112px;
  accent-color: var(--accent);
}

.publication-figure:hover,
.publication-figure:focus-within {
  border-color: rgba(44, 111, 99, 0.4);
}

.figure-math {
  position: absolute;
  z-index: 2;
  color: var(--paper-ink, #1f2721);
  line-height: 1;
  pointer-events: auto;
  text-align: center;
  transform: translate(-50%, -50%);
  white-space: nowrap;
}

.figure-math.large {
  font-size: 1.12rem;
}

.figure-math.small {
  font-size: 0.88rem;
}

.figure-math.tiny {
  font-size: 0.72rem;
}

.publication-title .katex,
.publication-summary .katex,
.figure-math .katex {
  color: inherit;
}

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

.math-hint {
  cursor: help;
  outline: none;
  text-decoration: underline dotted rgba(199, 120, 61, 0.72);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

.math-hint:hover,
.math-hint:focus-visible {
  color: var(--paper-orange-deep, #a4522c);
}

.math-tooltip {
  position: fixed;
  z-index: 60;
  width: min(320px, calc(100vw - 24px));
  padding: 12px 14px;
  border: 1px solid rgba(43, 52, 43, 0.16);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.98);
  box-shadow: 0 18px 44px rgba(23, 27, 23, 0.18);
  color: var(--ink);
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 140ms ease, transform 140ms ease;
}

.math-tooltip.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.math-tooltip-title {
  color: var(--accent-2);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.math-tooltip p {
  margin: 6px 0 0;
  color: #3d453d;
  font-size: 0.9rem;
  line-height: 1.42;
}

.math-tooltip-link {
  display: inline-flex;
  margin-top: 10px;
  color: var(--accent);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
}

.timeline-tooltip {
  position: fixed;
  z-index: 70;
  width: min(380px, calc(100vw - 24px));
  padding: 12px 14px;
  border: 1px solid rgba(43, 52, 43, 0.16);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.98);
  box-shadow: 0 18px 44px rgba(23, 27, 23, 0.18);
  color: var(--ink);
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 140ms ease, transform 140ms ease;
}

.timeline-tooltip.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline-tooltip-kicker {
  color: var(--accent-2);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.timeline-tooltip-title {
  margin-top: 5px;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.24;
}

.timeline-tooltip-meta {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

.figure-node,
.figure-cycle {
  fill: var(--paper-surface, #fffdf8);
  stroke: var(--paper-ink, #1f2721);
  stroke-width: 2.4;
}

.figure-node.soft {
  fill: var(--paper-green-soft, #e8f0ea);
  stroke: var(--paper-green, #4b8062);
}

.figure-node.soft-2 {
  fill: var(--paper-blue-soft, #e5edf3);
  stroke: var(--paper-blue, #3f7398);
}

.figure-node.pale {
  fill: var(--paper-blue-soft, #e5edf3);
  stroke: var(--paper-blue, #3f7398);
}

.figure-node.warm {
  fill: var(--paper-orange-soft, #f4e6d7);
  stroke: var(--paper-orange-deep, #a4522c);
}

.figure-line,
.figure-stem path {
  fill: none;
  stroke: var(--paper-ink, #1f2721);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.figure-line.dashed,
.figure-arrow.dashed {
  stroke-dasharray: 8 9;
}

.figure-arrow {
  fill: none;
  stroke: var(--paper-ink, #1f2721);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.publication-figure svg marker path {
  fill: var(--paper-ink, #1f2721);
}

.internal-parameterization-figure marker path {
  fill: var(--paper-ink, #1f2721);
}

.internal-parameterization-figure .internal-marker-n path {
  fill: var(--paper-teal, #1f8a78);
}

.internal-parameterization-figure .internal-marker-l path {
  fill: var(--paper-orange, #cf6a2f);
}

.normalization-figure marker path {
  fill: var(--paper-teal, #1f8a78);
}

.publication-figure svg marker.connected-marker-a path,
.diagram-expanded svg marker.connected-marker-a path,
.connected-marker-a path {
  fill: var(--paper-teal, #1f8a78);
}

.publication-figure svg marker.connected-marker-b path,
.diagram-expanded svg marker.connected-marker-b path,
.connected-marker-b path {
  fill: var(--paper-blue, #3f7398);
}

.publication-figure svg marker.connected-marker-c path,
.diagram-expanded svg marker.connected-marker-c path,
.connected-marker-c path {
  fill: var(--paper-orange-deep, #a4522c);
}

.figure-label,
.figure-small {
  fill: var(--paper-ink, #1f2721);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-anchor: middle;
}

.figure-label {
  font-size: 22px;
  font-weight: 750;
}

.figure-small {
  font-size: 16px;
  font-weight: 650;
}

.publication-figure-topoi-automata,
.diagram-expanded,
.automata-cantor-figure,
.automata-cover-figure {
  --cantor-cover-cycle: 12s;
  --cantor-ink: var(--paper-ink, #1f2721);
  --cantor-muted: var(--paper-gray, #747872);
  --cantor-muted-rgb: var(--paper-gray-rgb, 116, 120, 114);
  --cantor-green: var(--paper-teal-deep, #176b5f);
  --cantor-green-rgb: var(--paper-teal-rgb, 31, 138, 120);
  --cantor-red: var(--paper-red, #bf4f43);
  --cantor-red-rgb: var(--paper-red-rgb, 191, 79, 67);
  --cantor-blue: var(--paper-blue, #3f7398);
  --cantor-blue-rgb: var(--paper-blue-rgb, 63, 115, 152);
  --cantor-purple: var(--paper-purple, #7765a6);
  --cantor-purple-rgb: var(--paper-purple-rgb, 119, 101, 166);
  --cantor-orange: var(--paper-orange-deep, #a4522c);
  --cantor-orange-rgb: var(--paper-orange-rgb, 207, 106, 47);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.automata-cantor-paper {
  fill: var(--paper-surface, #fffdf8);
}

.automata-cantor-main-arrow {
  stroke: var(--cantor-muted);
  stroke-width: 2.1;
}

.automata-etale-arrow,
.automata-etale-label {
  opacity: 0;
  animation: automata-etale-stage var(--cantor-cover-cycle) ease-in-out infinite;
}

.automata-sublocale-arrow,
.automata-sublocale-label {
  opacity: 0;
  animation: automata-sublocale-stage var(--cantor-cover-cycle) ease-in-out infinite;
}

.automata-cantor-arrow-label {
  fill: var(--cantor-muted);
  font-size: 13px;
  font-weight: 820;
  text-anchor: middle;
}

.automata-cantor-arrow-label.large {
  fill: var(--cantor-ink);
  font-size: 18px;
  font-weight: 800;
}

.automata-topos-label {
  opacity: 1;
  overflow: visible;
  pointer-events: none;
}

.automata-topos-tex {
  align-items: center;
  color: var(--cantor-ink);
  display: flex;
  font-size: 20px;
  height: 100%;
  justify-content: center;
  line-height: 1;
  width: 100%;
}

.automata-topos-tex .katex {
  color: inherit;
  font-size: 1.08em;
}

.automata-cantor-interval {
  fill: none;
  opacity: 0;
  stroke: var(--cantor-purple);
  stroke-linecap: butt;
  stroke-width: 7;
  vector-effect: non-scaling-stroke;
}

.automata-cantor-interval.stage-0 {
  animation: automata-cantor-stage-0 var(--cantor-cover-cycle) ease-in-out infinite;
}

.automata-cantor-interval.stage-1 {
  animation: automata-cantor-stage-1 var(--cantor-cover-cycle) ease-in-out infinite;
}

.automata-cantor-interval.stage-2 {
  animation: automata-cantor-stage-2 var(--cantor-cover-cycle) ease-in-out infinite;
}

.automata-cantor-interval.stage-3 {
  animation: automata-cantor-stage-3 var(--cantor-cover-cycle) ease-in-out infinite;
}

.automata-cantor-interval.stage-4 {
  animation: automata-cantor-stage-4 var(--cantor-cover-cycle) ease-in-out infinite;
  stroke-width: 3;
}

.automata-cantor-connector {
  fill: none;
  opacity: 0;
  stroke: rgba(var(--cantor-purple-rgb), 0.24);
  stroke-linecap: round;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.automata-cantor-connector.cantor-stage-1 {
  animation: automata-cantor-connector-stage-1 var(--cantor-cover-cycle) ease-in-out infinite;
}

.automata-cantor-connector.cantor-stage-2 {
  animation: automata-cantor-connector-stage-2 var(--cantor-cover-cycle) ease-in-out infinite;
}

.automata-cantor-connector.cantor-stage-3 {
  animation: automata-cantor-connector-stage-3 var(--cantor-cover-cycle) ease-in-out infinite;
}

.automata-cantor-connector.cantor-stage-4 {
  animation: automata-cantor-connector-stage-4 var(--cantor-cover-cycle) ease-in-out infinite;
}

.automata-cantor-ray,
.automata-cantor-tree-edge,
.automata-cantor-bouquet-loop {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.automata-cantor-ray {
  opacity: 0.62;
  stroke-width: 1.8;
}

.automata-cantor-tree-edge,
.automata-cantor-bouquet-loop {
  stroke-width: 4.6;
}

.automata-prefix-poset .automata-cantor-tree-edge {
  opacity: 1;
}

.automata-cantor-bouquet-loop {
  animation: automata-bouquet-loop-unfold var(--cantor-cover-cycle) ease-in-out infinite;
}

.automata-unfold-reverse-cover {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.automata-unfold-reverse-cover {
  opacity: 0;
  stroke: var(--cantor-muted);
  stroke-dasharray: 8 7;
  stroke-width: 2.45;
  animation: automata-unfold-reverse-cover var(--cantor-cover-cycle) ease-in-out infinite;
}

.automata-cover-unfolding {
  pointer-events: none;
}

.automata-rolling-bouquet {
  pointer-events: none;
}

.automata-rolling-bouquet-loop {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3.8;
  vector-effect: non-scaling-stroke;
}

.automata-rolling-bouquet-loop.blue {
  stroke: var(--cantor-blue);
}

.automata-rolling-bouquet-loop.red {
  stroke: var(--cantor-red);
}

.automata-rolling-bouquet-node {
  fill: var(--cantor-ink);
  stroke: var(--paper-surface, #fffdf8);
  stroke-width: 1.8;
  vector-effect: non-scaling-stroke;
}

.automata-cantor-ray.red,
.automata-cantor-tree-edge.red,
.automata-cantor-bouquet-loop.red {
  stroke: var(--cantor-red);
}

.automata-cantor-ray.blue,
.automata-cantor-tree-edge.blue,
.automata-cantor-bouquet-loop.blue {
  stroke: var(--cantor-blue);
}

.automata-cantor-node {
  fill: var(--cantor-ink);
  stroke: var(--paper-surface, #fffdf8);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}

.automata-prefix-poset .automata-cantor-node {
  opacity: 1;
}

.automata-cantor-node.small {
  stroke-width: 1;
}

.automata-cantor-node.tiny {
  stroke-width: 0.9;
}

.automata-cantor-node.micro {
  stroke-width: 0.75;
}

.automata-cantor-node.large {
  stroke-width: 2;
}

.publication-figure svg .automata-cantor-marker-neutral path,
.diagram-expanded svg .automata-cantor-marker-neutral path,
.automata-cantor-marker-neutral path {
  fill: var(--cantor-muted);
}

.publication-figure svg .automata-cantor-marker-red path,
.diagram-expanded svg .automata-cantor-marker-red path,
.automata-cantor-marker-red path {
  fill: var(--cantor-red);
}

.publication-figure svg .automata-cantor-marker-blue path,
.diagram-expanded svg .automata-cantor-marker-blue path,
.automata-cantor-marker-blue path {
  fill: var(--cantor-blue);
}

.publication-figure svg .automata-cantor-marker-purple path,
.diagram-expanded svg .automata-cantor-marker-purple path,
.automata-cantor-marker-purple path {
  fill: var(--cantor-purple);
}

@keyframes automata-bouquet-loop-unfold {
  0%,
  100% {
    opacity: 1;
    stroke-width: 4.6;
  }

  8%,
  28% {
    opacity: 1;
    stroke-width: 5.9;
  }

  42%,
  50% {
    opacity: 0.68;
    stroke-width: 3.7;
  }

  58% {
    opacity: 1;
    stroke-width: 4.6;
  }
}

@keyframes automata-unfold-reverse-cover {
  0%,
  15%,
  66%,
  100% {
    opacity: 0;
    stroke-dashoffset: 18;
  }

  20%,
  49% {
    opacity: 0.78;
    stroke-dashoffset: 0;
  }
}

@keyframes automata-etale-stage {
  0%,
  10% {
    opacity: 0;
  }

  18%,
  100% {
    opacity: 1;
  }
}

@keyframes automata-sublocale-stage {
  0%,
  52% {
    opacity: 0;
  }

  62%,
  100% {
    opacity: 1;
  }
}

@keyframes automata-topos-right-stage {
  0%,
  100% {
    opacity: 1;
  }
}

@keyframes automata-topos-middle-stage {
  0%,
  55% {
    opacity: 0;
  }

  59%,
  100% {
    opacity: 1;
  }
}

@keyframes automata-topos-left-stage {
  0%,
  91.6% {
    opacity: 0;
  }

  91.7%,
  100% {
    opacity: 1;
  }
}

@keyframes automata-cantor-stage-0 {
  0%,
  13% {
    opacity: 0;
  }

  17%,
  100% {
    opacity: 0.58;
  }
}

@keyframes automata-cantor-stage-1 {
  0%,
  23% {
    opacity: 0;
  }

  27%,
  100% {
    opacity: 0.74;
  }
}

@keyframes automata-cantor-stage-2 {
  0%,
  34% {
    opacity: 0;
  }

  38%,
  100% {
    opacity: 0.95;
  }
}

@keyframes automata-cantor-stage-3 {
  0%,
  45% {
    opacity: 0;
  }

  50%,
  100% {
    opacity: 0.95;
  }
}

@keyframes automata-cantor-stage-4 {
  0%,
  55% {
    opacity: 0;
  }

  59%,
  100% {
    opacity: 0.95;
  }
}

@keyframes automata-cantor-connector-stage-1 {
  0%,
  23% {
    opacity: 0;
  }

  27%,
  100% {
    opacity: 1;
  }
}

@keyframes automata-cantor-connector-stage-2 {
  0%,
  34% {
    opacity: 0;
  }

  38%,
  100% {
    opacity: 1;
  }
}

@keyframes automata-cantor-connector-stage-3 {
  0%,
  45% {
    opacity: 0;
  }

  50%,
  100% {
    opacity: 1;
  }
}

@keyframes automata-cantor-connector-stage-4 {
  0%,
  55% {
    opacity: 0;
  }

  59%,
  100% {
    opacity: 1;
  }
}

.automata-cover-figure .automata-panel {
  fill: rgba(255, 253, 248, 0.86);
  stroke: var(--paper-line, rgba(43, 52, 43, 0.16));
  stroke-width: 1.5;
}

.automata-cover-figure .automata-panel-total {
  fill: rgba(var(--cantor-green-rgb), 0.08);
}

.automata-cover-figure .automata-panel-base {
  fill: rgba(var(--cantor-orange-rgb), 0.08);
}

.automata-panel-title {
  fill: var(--cantor-green);
  font-weight: 820;
}

.automata-cover-figure .automata-edge {
  stroke-width: 2.8;
}

.automata-cover-figure .automata-edge-a {
  stroke: var(--cantor-red);
}

.automata-cover-figure .automata-edge-b {
  stroke: var(--cantor-blue);
}

.automata-cover-figure .automata-marker-a path {
  fill: var(--cantor-red);
}

.automata-cover-figure .automata-marker-b path {
  fill: var(--cantor-blue);
}

.automata-cover-figure .automata-marker-neutral path {
  fill: var(--cantor-muted);
}

.automata-accept-ring {
  fill: none;
  stroke: var(--cantor-ink);
  stroke-width: 1.8;
}

.automata-state-mark {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.7;
}

.automata-state-check {
  stroke: var(--cantor-green);
}

.automata-state-cross {
  stroke: var(--cantor-red);
}

.automata-dot-links {
  pointer-events: none;
}

.automata-dot-link {
  fill: none;
  stroke: rgba(var(--cantor-muted-rgb), 0.58);
  stroke-dasharray: 5 7;
  stroke-linecap: round;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.automata-lift-label {
  fill: var(--paper-ink-strong, #24312a);
  font-size: 18px;
  font-weight: 920;
  letter-spacing: 0;
  text-anchor: middle;
}

.automata-input-start-link {
  display: none;
  fill: none;
  stroke: rgba(var(--cantor-muted-rgb), 0.24);
  stroke-linecap: round;
  stroke-width: 1.6;
  vector-effect: non-scaling-stroke;
}

.automata-input-panel {
  fill: none;
  stroke: none;
  stroke-width: 1.5;
}

.automata-input-heading {
  fill: var(--cantor-muted);
  font-size: 16px;
  font-weight: 860;
  text-anchor: start;
}

.automata-input-word {
  font-size: 16px;
  font-weight: 850;
  letter-spacing: 0;
  text-anchor: start;
}

.automata-word-a {
  fill: var(--cantor-red);
}

.automata-word-b {
  fill: var(--cantor-blue);
}

.automata-consume-effects {
  display: none;
  pointer-events: none;
}

.automata-consume-effect {
  opacity: 0;
}

.automata-consume-effect circle {
  stroke-width: 4.2;
  vector-effect: non-scaling-stroke;
}

.automata-consume-effect path {
  fill: none;
  stroke-linecap: round;
  stroke-width: 7.5;
  vector-effect: non-scaling-stroke;
}

.automata-consume-effect-a circle,
.automata-consume-effect-a path {
  stroke: rgba(var(--cantor-red-rgb), 0.92);
}

.automata-consume-effect-a circle {
  fill: rgba(var(--cantor-red-rgb), 0.12);
}

.automata-consume-effect-b circle,
.automata-consume-effect-b path {
  stroke: rgba(var(--cantor-blue-rgb), 0.92);
}

.automata-consume-effect-b circle {
  fill: rgba(var(--cantor-blue-rgb), 0.12);
}

.automata-edge-highlights {
  display: none;
  pointer-events: none;
}

.automata-edge-highlight {
  fill: none;
  opacity: 0;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 7;
  vector-effect: non-scaling-stroke;
}

.automata-edge-highlight-a {
  stroke: rgba(var(--cantor-red-rgb), 0.82);
}

.automata-edge-highlight-b {
  stroke: rgba(var(--cantor-blue-rgb), 0.82);
}

.automata-interactive-edge-highlight-layer {
  pointer-events: none;
}

.automata-interactive-edge-highlight {
  fill: none;
  opacity: 0;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 6;
  vector-effect: non-scaling-stroke;
}

.automata-interactive-edge-highlight-a {
  filter: drop-shadow(0 0 4px rgba(var(--cantor-red-rgb), 0.34));
  stroke: rgba(var(--cantor-red-rgb), 0.72);
}

.automata-interactive-edge-highlight-b {
  filter: drop-shadow(0 0 4px rgba(var(--cantor-blue-rgb), 0.34));
  stroke: rgba(var(--cantor-blue-rgb), 0.72);
}

.automata-output-panel-bg {
  fill: none;
  stroke: none;
  stroke-width: 1.5;
}

.automata-output-heading {
  fill: var(--cantor-muted);
  font-size: 13px;
  font-weight: 860;
  text-anchor: start;
}

.automata-current-output-block {
  fill: rgba(var(--cantor-red-rgb), 0.12);
  stroke: rgba(var(--cantor-red-rgb), 0.32);
  stroke-width: 1.6;
  vector-effect: non-scaling-stroke;
}

.automata-output-panel.is-accept .automata-current-output-block {
  fill: rgba(var(--cantor-green-rgb), 0.15);
  stroke: rgba(var(--cantor-green-rgb), 0.36);
}

.automata-output-panel.is-reject .automata-current-output-block {
  fill: rgba(var(--cantor-red-rgb), 0.13);
  stroke: rgba(var(--cantor-red-rgb), 0.34);
}

.automata-output-cell rect {
  stroke-width: 1.5;
}

.automata-output-cell-label {
  font-size: 12px;
  font-weight: 860;
  text-anchor: start;
}

.automata-output-cell-accept rect {
  fill: rgba(var(--cantor-green-rgb), 0.13);
  stroke: rgba(var(--cantor-green-rgb), 0.34);
}

.automata-output-cell-accept text {
  fill: var(--cantor-green);
}

.automata-output-cell-reject rect {
  fill: rgba(var(--cantor-red-rgb), 0.12);
  stroke: rgba(var(--cantor-red-rgb), 0.32);
}

.automata-output-cell-reject text {
  fill: var(--cantor-red);
}

.automata-output-token {
  pointer-events: none;
}

.automata-output-token rect {
  fill: var(--paper-surface, #fffdf8);
  stroke-width: 1.6;
  vector-effect: non-scaling-stroke;
}

.automata-output-token text {
  font-size: 13px;
  font-weight: 880;
  text-anchor: middle;
}

.automata-word-a {
  fill: var(--cantor-red);
}

.automata-word-b {
  fill: var(--cantor-blue);
}

.automata-output-token-accept rect {
  stroke: rgba(var(--cantor-green-rgb), 0.42);
}

.automata-output-token-accept text {
  fill: var(--cantor-green);
}

.automata-output-token-reject rect {
  stroke: rgba(var(--cantor-red-rgb), 0.4);
}

.automata-output-token-reject text {
  fill: var(--cantor-red);
}

.automata-consuming-letters {
  display: none;
  pointer-events: none;
}

.automata-consumed-letter {
  opacity: 0;
}

.automata-consumed-letter text {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  font-weight: 900;
  paint-order: stroke;
  stroke: var(--paper-surface, #fffdf8);
  stroke-linejoin: round;
  stroke-width: 3.6px;
  text-anchor: middle;
}

.automata-consumed-letter-a text {
  fill: var(--cantor-red);
}

.automata-consumed-letter-b text {
  fill: var(--cantor-blue);
}

.automata-moving-word {
  pointer-events: none;
}

.automata-moving-word text {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0;
  paint-order: stroke;
  stroke: rgba(255, 253, 248, 0.9);
  stroke-linejoin: round;
  stroke-width: 4px;
  text-anchor: start;
}

.automata-moving-word .automata-word-a {
  stroke: rgba(var(--cantor-red-rgb), 0.58);
  stroke-width: 2.4px;
}

.automata-moving-word .automata-word-b {
  stroke: rgba(var(--cantor-blue-rgb), 0.58);
  stroke-width: 2.4px;
}

.automata-language-accept {
  fill: var(--cantor-green);
}

.automata-language-reject {
  fill: var(--cantor-orange);
}

.automata-result-output {
  opacity: 0;
  pointer-events: none;
}

.automata-result-badge-bg {
  fill: var(--paper-surface, #fffdf8);
  stroke: rgba(31, 39, 33, 0.22);
  stroke-width: 1.6;
  vector-effect: non-scaling-stroke;
}

.automata-result-mark {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.7;
  vector-effect: non-scaling-stroke;
}

.automata-result-output.automata-language-accept .automata-result-badge-bg {
  stroke: rgba(var(--cantor-green-rgb), 0.34);
}

.automata-result-output.automata-language-accept .automata-result-mark {
  stroke: var(--cantor-green);
}

.automata-result-output.automata-language-reject .automata-result-badge-bg {
  stroke: rgba(var(--cantor-orange-rgb), 0.34);
}

.automata-result-output.automata-language-reject .automata-result-mark {
  stroke: var(--cantor-orange);
}

.automata-moving-dot {
  pointer-events: none;
}

.automata-moving-dot-halo {
  display: none;
}

.automata-moving-dot-core {
  fill: rgba(var(--cantor-muted-rgb), 0.56);
  stroke: none;
}

.is-interactive-automaton .automata-input-word[display="none"],
.is-interactive-automaton .automata-moving-dot[display="none"],
.is-interactive-automaton .automata-moving-word[display="none"],
.is-interactive-automaton .automata-result-output[display="none"] {
  display: none;
}

.automata-interactive-dot .automata-moving-dot-core {
  fill: rgba(var(--cantor-muted-rgb), 0.7);
}

.is-interactive-automaton .automata-dot-links {
  display: none;
}

.automata-live-word {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0;
  paint-order: stroke;
  stroke: rgba(255, 253, 248, 0.72);
  stroke-linejoin: round;
  stroke-width: 2px;
  text-anchor: start;
}

.automata-live-word-near-dot {
  font-size: 14px;
}

.automata-consume-letter-flash {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  font-weight: 950;
  paint-order: stroke;
  stroke: rgba(255, 253, 248, 0.78);
  stroke-linejoin: round;
  stroke-width: 2.5px;
  text-anchor: start;
  transform-box: fill-box;
  transform-origin: center;
}

.automata-interactive-result {
  font-size: 28px;
  font-weight: 950;
  text-anchor: middle;
}

.automata-output-panel.is-accept .automata-interactive-result {
  fill: var(--cantor-green);
}

.automata-output-panel.is-reject .automata-interactive-result {
  fill: var(--cantor-red);
}

.automata-interactive-controls {
  align-items: center;
  background: transparent;
  border: 0;
  box-shadow: none;
  display: flex;
  gap: 8px;
  justify-content: center;
  padding: 0;
  position: absolute;
  transform: translateX(-50%);
  z-index: 2;
}

.automata-interactive-controls-input {
  left: 27.5%;
  top: 12%;
}

.automata-button {
  appearance: none;
  background: var(--paper-surface, #fffdf8);
  border: 1.5px solid var(--paper-line, rgba(43, 52, 43, 0.18));
  border-radius: 7px;
  color: var(--paper-ink, var(--ink));
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  min-width: 42px;
  padding: 7px 11px;
}

.automata-button:hover,
.automata-button:focus-visible {
  border-color: rgba(var(--cantor-green-rgb), 0.45);
  box-shadow: 0 0 0 3px rgba(var(--cantor-green-rgb), 0.12);
  outline: none;
}

.automata-interactive-controls-input .automata-button {
  font-size: 16px;
  min-width: 56px;
  padding: 10px 15px;
}

.automata-button-a {
  background: rgba(var(--cantor-red-rgb), 0.09);
  border-color: rgba(var(--cantor-red-rgb), 0.24);
  color: var(--cantor-red);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.automata-button-b {
  background: rgba(var(--cantor-blue-rgb), 0.09);
  border-color: rgba(var(--cantor-blue-rgb), 0.24);
  color: var(--cantor-blue);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.automata-button-a:hover,
.automata-button-a:focus-visible {
  border-color: rgba(var(--cantor-red-rgb), 0.45);
  box-shadow: 0 0 0 3px rgba(var(--cantor-red-rgb), 0.12);
}

.automata-button-b:hover,
.automata-button-b:focus-visible {
  border-color: rgba(var(--cantor-blue-rgb), 0.45);
  box-shadow: 0 0 0 3px rgba(var(--cantor-blue-rgb), 0.12);
}

.automata-moving-dot-reject .automata-moving-dot-halo {
  display: none;
}

.normalization-caption {
  fill: var(--paper-ink-soft, var(--muted));
  text-anchor: start;
}

.figure-math-label {
  fill: var(--paper-ink, #1f2721);
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  text-anchor: middle;
  dominant-baseline: middle;
}

.figure-math-label.large {
  font-size: 26px;
}

.figure-math-label.small {
  font-size: 19px;
}

.figure-math-label.tiny {
  font-size: 15px;
}

.normalization-subgroup .figure-math-label.large {
  font-size: 18px;
}

.normalization-subgroup .figure-math-label.small {
  font-size: 14.5px;
}

.normalization-subgroup .figure-math-label.tiny {
  font-size: 11.2px;
}

.normalization-subgroup .figure-math-label {
  opacity: 0;
}

.normalization-object-label {
  fill: var(--paper-ink, #1f2721);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 700;
  text-anchor: middle;
}

.normalization-xi-label {
  font-family: "Times New Roman", Georgia, serif;
  font-style: normal;
  font-weight: 600;
}

.normalization-object-arrow {
  fill: none;
  stroke: rgba(31, 39, 33, 0.5);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
  vector-effect: non-scaling-stroke;
}

.normalization-tex-object,
.normalization-tex-morphism {
  overflow: visible;
  pointer-events: none;
}

.normalization-tex-label {
  align-items: center;
  color: rgba(31, 39, 33, 0.86);
  display: flex;
  height: 100%;
  justify-content: center;
  line-height: 1;
  text-align: center;
  width: 100%;
}

.normalization-tex-object .normalization-tex-label {
  font-size: 22px;
  font-weight: 650;
}

.normalization-tex-morphism .normalization-tex-label {
  color: rgba(31, 39, 33, 0.78);
  font-size: 17px;
  font-weight: 650;
}

.normalization-tex-label .katex {
  line-height: 1;
}

.normalization-morphism-label {
  fill: rgba(31, 39, 33, 0.78);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  font-style: italic;
  font-weight: 650;
  text-anchor: middle;
}

.normalization-arrow-caption {
  fill: rgba(31, 39, 33, 0.66);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  font-style: normal;
  font-weight: 760;
  letter-spacing: 0;
  text-anchor: middle;
}

.normalization-hasse-edge {
  stroke: var(--paper-line, rgba(93, 97, 92, 0.28));
  stroke-width: 2;
}

.normalization-map-arrow,
.normalization-operator-link {
  stroke: rgba(var(--paper-teal-rgb, 31, 138, 120), 0.3);
  stroke-width: 2.55;
}

.normalization-operator-link {
  fill: none;
  marker-mid: url("#normalization-link-arrow-d4");
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.normalization-operator-link[data-normalization-operator-source="d4"] {
  stroke: rgba(var(--paper-gray-rgb, 116, 120, 114), 0.58);
}

.normalization-operator-link[data-normalization-operator-source="ref0"] {
  marker-mid: url("#normalization-link-arrow-ref0");
  stroke: rgba(var(--paper-blue-rgb, 63, 115, 152), 0.74);
}

.normalization-operator-link[data-normalization-operator-source="ref2"] {
  marker-mid: url("#normalization-link-arrow-ref2");
  stroke: rgba(var(--paper-red-rgb, 191, 79, 67), 0.7);
}

.normalization-operator-link[data-normalization-operator-source="ref1"] {
  marker-mid: url("#normalization-link-arrow-ref1");
  stroke: rgba(var(--paper-green-rgb, 75, 128, 98), 0.72);
}

.normalization-operator-link[data-normalization-operator-source="ref3"] {
  marker-mid: url("#normalization-link-arrow-ref3");
  stroke: rgba(var(--paper-purple-rgb, 119, 101, 166), 0.72);
}

.normalization-figure #normalization-link-arrow-d4 path,
.normalization-figure #normalization-link-arrow-ref0 path,
.normalization-figure #normalization-link-arrow-ref2 path,
.normalization-figure #normalization-link-arrow-ref1 path,
.normalization-figure #normalization-link-arrow-ref3 path {
  fill: context-stroke;
  fill-opacity: 1;
}

.normalization-stabilizer-links,
.normalization-operator-links {
  pointer-events: none;
}

.normalization-stabilizer-link {
  fill: none;
  marker-mid: url("#normalization-link-arrow-d4");
  stroke: rgba(var(--paper-gray-rgb, 116, 120, 114), 0.46);
  stroke-width: 2.45;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.normalization-stabilizer-link[data-normalization-link-subgroup="ref0"] {
  marker-mid: url("#normalization-link-arrow-ref0");
  stroke: rgba(var(--paper-blue-rgb, 63, 115, 152), 0.72);
}

.normalization-stabilizer-link[data-normalization-link-subgroup="ref2"] {
  marker-mid: url("#normalization-link-arrow-ref2");
  stroke: rgba(var(--paper-red-rgb, 191, 79, 67), 0.7);
}

.normalization-stabilizer-link[data-normalization-link-subgroup="ref1"] {
  marker-mid: url("#normalization-link-arrow-ref1");
  stroke: rgba(var(--paper-green-rgb, 75, 128, 98), 0.72);
}

.normalization-stabilizer-link[data-normalization-link-subgroup="ref3"] {
  marker-mid: url("#normalization-link-arrow-ref3");
  stroke: rgba(var(--paper-purple-rgb, 119, 101, 166), 0.72);
}

.normalization-stabilizer-link[data-normalization-link-subgroup="d4"] {
  stroke: rgba(var(--paper-gray-rgb, 116, 120, 114), 0.58);
}

.normalization-figure.is-transporting .normalization-stabilizer-link {
  stroke-width: 2.65;
  opacity: 1;
}

.normalization-subgroup {
  outline: none;
  transition: opacity 180ms ease, filter 180ms ease;
}

.normalization-subgroup[data-normalization-face-colors="blue"] {
  --normalization-subgroup-fill: var(--paper-blue-soft, #e4edf4);
  --normalization-subgroup-stroke: rgba(var(--paper-blue-rgb, 63, 115, 152), 0.56);
  --normalization-subgroup-highlight-fill: var(--paper-blue-soft, #dcebf5);
  --normalization-subgroup-highlight-stroke: var(--paper-blue, #3f7398);
}

.normalization-subgroup[data-normalization-face-colors="red"] {
  --normalization-subgroup-fill: var(--paper-red-soft, #f3e3dc);
  --normalization-subgroup-stroke: rgba(var(--paper-red-rgb, 191, 79, 67), 0.52);
  --normalization-subgroup-highlight-fill: var(--paper-red-soft, #f4ded4);
  --normalization-subgroup-highlight-stroke: var(--paper-red, #bf4f43);
}

.normalization-subgroup[data-normalization-edge-colors="green"] {
  --normalization-subgroup-fill: var(--paper-green-soft, #e6efdf);
  --normalization-subgroup-stroke: rgba(var(--paper-green-rgb, 75, 128, 98), 0.52);
  --normalization-subgroup-highlight-fill: var(--paper-green-soft, #dcebd2);
  --normalization-subgroup-highlight-stroke: var(--paper-green, #4b8062);
}

.normalization-subgroup[data-normalization-edge-colors="purple"] {
  --normalization-subgroup-fill: var(--paper-purple-soft, #e9e4f2);
  --normalization-subgroup-stroke: rgba(var(--paper-purple-rgb, 119, 101, 166), 0.52);
  --normalization-subgroup-highlight-fill: var(--paper-purple-soft, #dfd7ee);
  --normalization-subgroup-highlight-stroke: var(--paper-purple, #7765a6);
}

.normalization-subgroup:not([data-normalization-face-colors]):not([data-normalization-edge-colors]) {
  --normalization-subgroup-fill: var(--paper-gray-soft, #e7e7e2);
  --normalization-subgroup-stroke: var(--paper-gray, #747872);
  --normalization-subgroup-highlight-fill: var(--paper-gray-soft, #e7e7e2);
  --normalization-subgroup-highlight-stroke: var(--paper-gray, #747872);
}

.normalization-subgroup[data-normalization-subgroup="d4"] {
  --normalization-subgroup-fill: var(--paper-gray-soft, #e7e7e2);
  --normalization-subgroup-stroke: var(--paper-gray, #747872);
  --normalization-subgroup-highlight-fill: var(--paper-gray-soft, #e7e7e2);
  --normalization-subgroup-highlight-stroke: var(--paper-gray, #747872);
}

.normalization-figure.is-interactive .normalization-element-control {
  cursor: pointer;
}

.normalization-subgroup .figure-node {
  fill: var(--normalization-subgroup-fill, rgba(255, 253, 248, 0.96));
  stroke: var(--normalization-subgroup-stroke, rgba(43, 52, 43, 0.72));
  transition: fill 180ms ease, stroke 180ms ease, stroke-width 180ms ease;
}

.normalization-subgroup.is-muted {
  opacity: 1;
}

.normalization-subgroup.is-muted .figure-node {
  fill: var(--paper-surface-tint, #f8f7f2);
  stroke: var(--paper-line, rgba(43, 52, 43, 0.22));
  stroke-width: 2.1;
}

.normalization-subgroup.is-muted .figure-math-label {
  fill: rgba(43, 52, 43, 0.42);
}

.normalization-subgroup.is-highlighted .figure-node {
  fill: var(--normalization-subgroup-highlight-fill, #f4f1e8);
  stroke: var(--normalization-subgroup-highlight-stroke, rgba(43, 52, 43, 0.76));
  stroke-width: 2.8;
}

.normalization-subgroup.is-selected .figure-node {
  fill: var(--normalization-subgroup-highlight-fill, #f0eadc);
  stroke: var(--normalization-subgroup-highlight-stroke, var(--paper-ink, #2b342b));
  stroke-width: 3.4;
}

.normalization-subgroup:focus-visible .figure-node {
  stroke: var(--paper-teal-deep, #1f5c54);
  stroke-width: 3.6;
}

.normalization-action {
  transition: opacity 180ms ease, filter 180ms ease;
}

.normalization-action.is-dimmed {
  opacity: 0.18;
  filter: grayscale(0.55);
}

.normalization-action-card {
  fill: rgba(255, 253, 248, 0.92);
  stroke: var(--paper-line, rgba(43, 52, 43, 0.16));
  stroke-width: 1.4;
  transition: fill 180ms ease, stroke 180ms ease, stroke-width 180ms ease;
}

.normalization-action.is-matched .normalization-action-card,
.normalization-action.is-selected .normalization-action-card {
  fill: rgba(var(--paper-teal-rgb, 31, 138, 120), 0.12);
  stroke: rgba(var(--paper-teal-rgb, 31, 138, 120), 0.38);
  stroke-width: 2;
}

.normalization-action:focus-visible .normalization-action-card {
  stroke: var(--paper-teal-deep, #1f5c54);
  stroke-width: 2.4;
}

.normalization-action-atlas {
  color: #1f2721;
}

.normalization-action-stage-bg {
  fill: none;
  stroke: none;
}

.normalization-square-shadow {
  fill: none;
  stroke: none;
  stroke-width: 1.4;
  vector-effect: non-scaling-stroke;
}

.normalization-square-frame {
  stroke: rgba(31, 39, 33, 0.48);
  stroke-width: 2.1;
}

.normalization-square-edge-segment {
  transition: opacity 180ms ease, stroke 180ms ease, stroke-width 180ms ease;
}

.normalization-square-edge-hit {
  fill: none;
  pointer-events: stroke;
  stroke: transparent;
  stroke-linecap: round;
  stroke-width: 8;
}

.normalization-action-hit {
  fill: rgba(255, 253, 248, 0.78);
  stroke: rgba(43, 52, 43, 0.1);
  stroke-width: 1.1;
  transition: fill 180ms ease, stroke 180ms ease, stroke-width 180ms ease;
}

.normalization-action.is-matched .normalization-action-hit,
.normalization-action.is-selected .normalization-action-hit {
  fill: rgba(244, 230, 215, 0.36);
  stroke: rgba(var(--paper-orange-rgb, 207, 106, 47), 0.3);
  stroke-width: 1.45;
}

.normalization-action:focus-visible .normalization-action-hit {
  stroke: var(--paper-teal-deep, #176b5f);
  stroke-width: 1.8;
}

.normalization-action-line,
.normalization-cycle-arrow {
  fill: none;
  stroke: rgba(var(--paper-blue-rgb, 63, 115, 152), 0.58);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  vector-effect: non-scaling-stroke;
}

.normalization-action-line.faint {
  stroke: rgba(var(--paper-blue-rgb, 63, 115, 152), 0.16);
  stroke-width: 1.4;
}

.normalization-cycle-arrow {
  stroke: var(--paper-teal, #1f8a78);
  stroke-width: 1.55;
}

.normalization-action-dot {
  fill: var(--paper-surface, #fffdf8);
  stroke: var(--paper-teal, #1f8a78);
  stroke-width: 1.7;
  vector-effect: non-scaling-stroke;
}

.normalization-vertex-point {
  filter: drop-shadow(0 2px 3px rgba(31, 39, 33, 0.14));
}

.normalization-center-point {
  fill: var(--paper-gray-soft, #e7e7e2);
  stroke: var(--paper-gray, #747872);
  stroke-width: 1.7;
}

.normalization-edge-point {
  opacity: 0.88;
}

.normalization-action-dot.normalization-edge-point[data-normalization-place-stabilizer="ref1"] {
  --normalization-token-fill: var(--paper-green-soft, #e6efdf);
  --normalization-token-stroke: rgba(var(--paper-green-rgb, 75, 128, 98), 0.6);
}

.normalization-action-dot.normalization-edge-point[data-normalization-place-stabilizer="ref3"] {
  --normalization-token-fill: var(--paper-purple-soft, #e9e4f2);
  --normalization-token-stroke: rgba(var(--paper-purple-rgb, 119, 101, 166), 0.6);
}

.normalization-halfturn-frame {
  stroke: rgba(var(--paper-blue-rgb, 63, 115, 152), 0.18);
}

.normalization-cayley-edge {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.normalization-cayley-edge.rotation {
  stroke: rgba(var(--paper-orange-rgb, 207, 106, 47), 0.26);
  stroke-width: 1.6;
}

.normalization-cayley-edge.reflection {
  stroke: rgba(var(--paper-teal-rgb, 31, 138, 120), 0.2);
  stroke-width: 1.2;
}

.normalization-action-place[data-normalization-token="a"] {
  --normalization-token-fill: var(--paper-blue-soft, #e4edf4);
  --normalization-token-stroke: rgba(var(--paper-blue-rgb, 63, 115, 152), 0.58);
}

.normalization-action-place[data-normalization-token="b"] {
  --normalization-token-fill: var(--paper-red-soft, #f3e3dc);
  --normalization-token-stroke: rgba(var(--paper-red-rgb, 191, 79, 67), 0.54);
}

.normalization-action-place[data-normalization-token="c"] {
  --normalization-token-fill: var(--paper-blue-soft, #e4edf4);
  --normalization-token-stroke: rgba(var(--paper-blue-rgb, 63, 115, 152), 0.58);
}

.normalization-action-place[data-normalization-token="d"] {
  --normalization-token-fill: var(--paper-red-soft, #f3e3dc);
  --normalization-token-stroke: rgba(var(--paper-red-rgb, 191, 79, 67), 0.54);
}

.normalization-action-place[data-normalization-token="e"] {
  --normalization-token-fill: var(--paper-orange-soft, #f1e7d8);
  --normalization-token-stroke: rgba(var(--paper-orange-rgb, 207, 106, 47), 0.56);
}

.normalization-action-place[data-normalization-token="f"] {
  --normalization-token-fill: var(--paper-blue-soft, #e2eef2);
  --normalization-token-stroke: rgba(var(--paper-blue-rgb, 63, 115, 152), 0.5);
}

.normalization-action-place[data-normalization-token="g"] {
  --normalization-token-fill: var(--paper-orange-soft, #eee5d7);
  --normalization-token-stroke: rgba(var(--paper-orange-rgb, 207, 106, 47), 0.48);
}

.normalization-action-place[data-normalization-token="h"] {
  --normalization-token-fill: var(--paper-green-soft, #e6eddf);
  --normalization-token-stroke: rgba(var(--paper-green-rgb, 75, 128, 98), 0.5);
}

.normalization-action-line.normalization-action-place,
.normalization-cycle-arrow.normalization-action-place {
  stroke: var(--normalization-token-stroke, rgba(var(--paper-blue-rgb, 63, 115, 152), 0.58));
}

.normalization-action-dot.normalization-action-place:not(.filled) {
  fill: var(--normalization-token-fill, var(--paper-surface, #fffdf8));
  stroke: var(--normalization-token-stroke, var(--paper-teal, #1f8a78));
}

.normalization-action-dot.normalization-center-point.normalization-action-place {
  fill: var(--paper-gray-soft, #e7e7e2);
  stroke: var(--paper-gray, #747872);
}

.normalization-element-control text {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.normalization-element-button {
  fill: rgba(255, 253, 248, 0.96);
  stroke: rgba(43, 52, 43, 0.2);
  stroke-width: 1.3;
  transition: fill 180ms ease, stroke 180ms ease, stroke-width 180ms ease;
}

.normalization-element-control {
  transition: opacity 180ms ease;
}

.normalization-element-control text {
  fill: var(--paper-ink, #1f2721);
  font-size: 16.5px;
  font-weight: 850;
  letter-spacing: 0;
  pointer-events: none;
  text-anchor: middle;
}

.normalization-element-control.is-acted .normalization-element-button {
  fill: var(--paper-orange-soft, #f4e6d7);
  stroke: var(--paper-orange, #cf6a2f);
  stroke-width: 2;
}

.normalization-element-control:focus-visible .normalization-element-button {
  stroke: var(--paper-teal-deep, #1f5c54);
  stroke-width: 2.2;
}

.figure-dot {
  fill: var(--paper-ink, #1f2721);
}

.figure-dot.ghost {
  fill: none;
  stroke: var(--paper-ink, #1f2721);
  stroke-dasharray: 4 5;
  stroke-width: 1.8;
}

.figure-dot.ghost-fill {
  fill: var(--paper-surface, #fffdf8);
  stroke: var(--paper-ink, #1f2721);
  stroke-width: 1.7;
}

.quotient-toposes-figure .figure-line,
.quotient-toposes-figure .figure-arrow,
.quotient-toposes-figure .figure-stem path,
.quotient-toposes-figure .figure-cycle {
  stroke: rgba(31, 39, 33, 0.54);
}

.quotient-toposes-figure .quotient-guide,
.quotient-toposes-figure .quotient-infinite-continuation,
.quotient-toposes-figure .quotient-infinite-height-continuation {
  display: none;
}

.quotient-toposes-figure .quotient-edge-height,
.quotient-toposes-figure .quotient-edge-period,
.quotient-toposes-figure .quotient-edge-infinite {
  stroke-width: 2.45;
}

.quotient-toposes-figure .quotient-edge-height {
  stroke: var(--paper-teal, #1f8a78);
}

.quotient-toposes-figure .quotient-edge-period {
  stroke: var(--paper-orange, #cf6a2f);
}

.quotient-toposes-figure .quotient-edge-infinite,
.quotient-toposes-figure .quotient-infinite-continuation {
  stroke: var(--paper-orange, #cf6a2f);
}

.quotient-toposes-figure .quotient-infinite-height-continuation {
  stroke: var(--paper-teal, #1f8a78);
}

.quotient-toposes-figure .quotient-infinite-continuation {
  stroke-dasharray: 7 9;
  stroke-width: 2;
  opacity: 0.32;
}

.quotient-toposes-figure .quotient-infinite-height-continuation {
  stroke-dasharray: 7 9;
  stroke-width: 2;
  opacity: 0.32;
}

.quotient-toposes-figure .quotient-marker-height path {
  fill: var(--paper-teal, #1f8a78);
}

.quotient-toposes-figure .quotient-marker-period path {
  fill: var(--paper-orange, #cf6a2f);
}

.quotient-toposes-figure .quotient-marker-infinite path {
  fill: var(--paper-orange, #cf6a2f);
}

.quotient-state-height {
  fill: var(--paper-teal-soft, #e3f2ee);
  stroke: var(--paper-teal, #1f8a78);
  stroke-width: 2.25;
}

.quotient-state-period {
  fill: var(--paper-orange-soft, #f5e3d4);
  stroke: var(--paper-orange, #cf6a2f);
  stroke-width: 2.25;
}

.quotient-state-infinite {
  fill: var(--paper-orange-soft, #f5e3d4);
  stroke: var(--paper-orange, #cf6a2f);
  stroke-width: 2.25;
}

.quotient-system-title {
  fill: var(--paper-ink, #1f2721);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0;
  text-anchor: start;
}

.quotient-system-caption,
.quotient-point-label,
.quotient-ellipsis {
  fill: rgba(31, 39, 33, 0.72);
  font-weight: 800;
  letter-spacing: 0;
}

.quotient-system-caption {
  font-size: 12px;
  text-anchor: start;
}

.quotient-point-label {
  font-style: italic;
  text-anchor: middle;
}

.quotient-ellipsis {
  font-size: 18px;
  text-anchor: middle;
}

.quotient-legend .quotient-label {
  font-size: 11.5px;
}

.quotient-guide {
  pointer-events: none;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 6.4;
  opacity: 0.28;
}

.quotient-height-guide {
  animation: quotient-guide-pulse 2.7s ease-in-out infinite;
  stroke: var(--paper-teal, #1f8a78);
  stroke-dasharray: 2 10;
}

.quotient-period-guide {
  animation: quotient-guide-pulse 2.7s ease-in-out infinite;
  stroke: var(--paper-orange, #cf6a2f);
  stroke-dasharray: 4 9;
}

.quotient-core-guide,
.quotient-infinite-guide {
  animation: quotient-guide-pulse 2.7s ease-in-out infinite;
  stroke-dasharray: 3 10;
}

.quotient-core-guide {
  stroke: var(--paper-blue, #3f7398);
}

.quotient-infinite-guide {
  stroke: var(--paper-orange, #cf6a2f);
}

.quotient-moving-light {
  opacity: 0;
  pointer-events: none;
  filter: none;
}

.quotient-flow-light {
  opacity: 1;
}

.quotient-moving-light-period {
  filter: none;
}

.quotient-moving-light-blue {
  filter: none;
}

.quotient-light-halo {
  display: none;
}

.quotient-light-core {
  fill: var(--paper-teal, #1f8a78);
  stroke: none;
}

.quotient-light-core-orange {
  fill: var(--paper-orange, #cf6a2f);
}

.quotient-light-core-blue {
  fill: var(--paper-blue, #3f7398);
}

.quotient-label {
  fill: rgba(31, 39, 33, 0.74);
  font-size: 12px;
  font-weight: 850;
  text-anchor: start;
}

.quotient-height-label {
  fill: var(--paper-teal-deep, #176b5f);
}

.quotient-period-label {
  fill: var(--paper-orange-deep, #a4522c);
}

.quotient-core-label {
  fill: var(--paper-blue-deep, #315b78);
}

.quotient-infinite-label {
  fill: var(--paper-orange-deep, #a4522c);
}

@keyframes quotient-guide-pulse {
  0%,
  100% {
    opacity: 0.22;
    stroke-width: 5.8;
  }

  38%,
  70% {
    opacity: 0.42;
    stroke-width: 7;
  }
}

@keyframes quotient-period-pulse {
  0%,
  24%,
  100% {
    opacity: 0.14;
    stroke-width: 5.2;
  }

  34%,
  88% {
    opacity: 0.46;
    stroke-width: 7;
  }
}

@keyframes quotient-core-pulse {
  0%,
  44%,
  100% {
    opacity: 0.15;
    stroke-width: 5.2;
  }

  58%,
  88% {
    opacity: 0.42;
    stroke-width: 6.8;
  }
}

.internal-parameterization-figure .internal-panel-bg {
  fill: rgba(255, 253, 248, 0.72);
  stroke: rgba(43, 52, 43, 0.13);
  stroke-width: 1.3;
}

.internal-figure-heading {
  fill: #1f2721;
  font-size: 17px;
  font-weight: 850;
}

.internal-graph-node,
.internal-classifier-node {
  fill: #fffdf8;
  stroke: #1f2721;
  stroke-width: 2;
}

.internal-classifier-node {
  fill: var(--paper-blue-soft, #e5edf3);
  stroke: var(--paper-blue, #3f7398);
}

.internal-edge-base,
.internal-classifier-loop {
  stroke: rgba(44, 49, 45, 0.5);
  stroke-width: 2.2;
}

.internal-source-graph {
  opacity: 0;
}

.internal-loop-l {
  stroke: var(--paper-orange, #cf6a2f);
}

.internal-loop-n {
  stroke: var(--paper-teal, #1f8a78);
}

.internal-highlight-n,
.internal-highlight-l {
  opacity: 0.12;
  stroke-width: 4;
}

.internal-highlight-n {
  animation: internal-n-state 5.2s ease-in-out infinite;
  stroke: var(--paper-teal, #1f8a78);
}

.internal-highlight-l {
  animation: internal-l-state 5.2s ease-in-out infinite;
  stroke: var(--paper-orange, #cf6a2f);
}

.internal-self-loop.internal-highlight-l,
.internal-classifier-loop.internal-highlight-n,
.internal-classifier-loop.internal-highlight-l {
  stroke-width: 3.2;
}

.internal-map-arrow {
  stroke-dasharray: 8 10;
  stroke-linecap: round;
}

.internal-highlight-n.internal-map-arrow {
  animation:
    internal-n-state 5.2s ease-in-out infinite,
    internal-arrow-flow 900ms linear infinite;
}

.internal-highlight-l.internal-map-arrow {
  animation:
    internal-l-state 5.2s ease-in-out infinite,
    internal-arrow-flow 900ms linear infinite;
}

.internal-edge-label,
.internal-map-label,
.internal-loop-label {
  font-weight: 850;
}

.internal-edge-label-n,
.internal-loop-label-n {
  fill: var(--paper-teal, #1f8a78);
}

.internal-edge-label-l,
.internal-loop-label-l {
  fill: var(--paper-orange, #cf6a2f);
}

.internal-edge-label.internal-highlight-n,
.internal-map-label.internal-highlight-n,
.internal-loop-label.internal-highlight-n {
  fill: var(--paper-teal, #1f8a78);
  stroke: none;
}

.internal-edge-label.internal-highlight-l,
.internal-map-label.internal-highlight-l,
.internal-loop-label.internal-highlight-l {
  fill: var(--paper-orange, #cf6a2f);
  stroke: none;
}

.internal-classifier-edge-label {
  font-size: 12px;
  font-weight: 850;
  text-anchor: middle;
}

.internal-classifier-caption-loop {
  fill: var(--paper-orange, #cf6a2f);
}

.internal-classifier-caption-nonloop {
  fill: var(--paper-teal, #1f8a78);
}

.internal-classifier-symbol-box {
  overflow: visible;
}

.internal-classifier-symbol {
  align-items: center;
  color: #1f2721;
  display: flex;
  font-size: 21px;
  font-weight: 400;
  height: 30px;
  justify-content: center;
  line-height: 1;
  width: 38px;
}

.internal-classifier-symbol .katex {
  color: inherit;
  font-size: 1em;
  font-weight: 400;
}

.internal-piece {
  filter: none;
}

.internal-piece-dot {
  fill: #fffdf8;
  stroke: #1f2721;
  stroke-width: 2;
}

.internal-piece-arrow {
  stroke: var(--paper-ink, #1f2721);
  stroke-width: 2.2;
}

@keyframes internal-source-graph-phase {
  0%,
  16%,
  100% {
    opacity: 1;
  }

  28%,
  86% {
    opacity: 0.26;
  }
}

@keyframes internal-piece-vertex-color {
  0%,
  42%,
  100% {
    stroke: #1f2721;
  }

  50%,
  86% {
    stroke: #3f7398;
  }
}

@keyframes internal-piece-nonloop-color {
  0%,
  42%,
  100% {
    stroke: #1f2721;
  }

  50%,
  86% {
    stroke: #1f8a78;
  }
}

@keyframes internal-piece-nonloop-marker-color {
  0%,
  42%,
  100% {
    fill: #1f2721;
  }

  50%,
  86% {
    fill: #1f8a78;
  }
}

@keyframes internal-piece-loop-color {
  0%,
  42%,
  100% {
    stroke: #1f2721;
  }

  50%,
  86% {
    stroke: #cf6a2f;
  }
}

@keyframes internal-piece-loop-marker-color {
  0%,
  42%,
  100% {
    fill: #1f2721;
  }

  50%,
  86% {
    fill: #cf6a2f;
  }
}

@keyframes internal-n-state {
  0%,
  40% {
    opacity: 1;
  }

  50%,
  100% {
    opacity: 0.12;
  }
}

@keyframes internal-l-state {
  0%,
  48% {
    opacity: 0.12;
  }

  58%,
  92% {
    opacity: 1;
  }

  100% {
    opacity: 0.12;
  }
}

@keyframes internal-arrow-flow {
  to {
    stroke-dashoffset: -18;
  }
}

.connected-figure {
  position: relative;
  width: 100%;
  height: 100%;
}

.connected-pattern {
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.connected-pattern.is-visible {
  opacity: 1;
}

.connected-match,
.connected-match .figure-line,
.connected-match .figure-node,
.connected-correspondence-arrow,
.connected-top-edge,
.connected-top-root {
  transition:
    opacity 180ms ease,
    fill 180ms ease,
    stroke 180ms ease,
    stroke-width 180ms ease,
    transform 180ms ease;
}

.connected-match {
  opacity: 0.78;
}

.connected-figure.is-complete .connected-match,
.connected-match.is-complete {
  opacity: 1;
}

.connected-match.is-active {
  opacity: 1;
}

.connected-top-edge,
.connected-top-root {
  opacity: 1;
}

.connected-figure.is-complete .connected-top-edge,
.connected-figure.is-complete .connected-top-root {
  opacity: 1;
}

.connected-top-edge {
  stroke-width: 2.6;
}

.connected-top-root {
  fill: #d8d8d2;
  stroke: #1f2721;
  stroke-width: 2.8;
}

.connected-divider {
  opacity: 0.58;
}

.connected-category-svg-label {
  fill: #1f2721;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-style: normal;
  font-weight: 800;
  pointer-events: none;
  text-anchor: middle;
}

.connected-correspondence-arrow {
  opacity: 0;
  stroke-width: 3;
}

.connected-correspondence-arrow.is-complete {
  opacity: 0.34;
}

.connected-correspondence-arrow.is-active {
  opacity: 0.96;
  stroke-dasharray: 12 9;
  stroke-width: 4;
  animation: connected-arrow-flow 720ms linear infinite;
}

.connected-match.is-active .figure-line {
  stroke-width: 3.2;
}

.connected-match.is-active .figure-node {
  stroke-width: 3.4;
}

.connected-match .figure-node {
  fill: #fffdf8;
  stroke: #1f2721;
}

.connected-match[data-connected-left="a"].is-complete .figure-line,
.connected-match[data-connected-right="a"].is-complete .figure-line,
.connected-match[data-connected-left="a"].is-active .figure-line,
.connected-match[data-connected-right="a"].is-active .figure-line,
.connected-correspondence-arrow[data-connected-arrow="a"] {
  stroke: var(--paper-teal, #1f8a78);
}

.connected-match[data-connected-left="a"].is-complete .figure-node,
.connected-match[data-connected-right="a"].is-complete .figure-node,
.connected-match[data-connected-left="a"].is-active .figure-node,
.connected-match[data-connected-right="a"].is-active .figure-node {
  fill: var(--paper-teal-soft, #e3f2ee);
  stroke: var(--paper-teal, #1f8a78);
}

.connected-match[data-connected-left="b"].is-complete .figure-line,
.connected-match[data-connected-right="b"].is-complete .figure-line,
.connected-match[data-connected-left="b"].is-active .figure-line,
.connected-match[data-connected-right="b"].is-active .figure-line,
.connected-correspondence-arrow[data-connected-arrow="b"] {
  stroke: var(--paper-blue, #3f7398);
}

.connected-match[data-connected-left="b"].is-complete .figure-node,
.connected-match[data-connected-right="b"].is-complete .figure-node,
.connected-match[data-connected-left="b"].is-active .figure-node,
.connected-match[data-connected-right="b"].is-active .figure-node {
  fill: var(--paper-blue-soft, #e5edf3);
  stroke: var(--paper-blue, #3f7398);
}

.connected-match[data-connected-left="c"].is-complete .figure-line,
.connected-match[data-connected-right="c"].is-complete .figure-line,
.connected-match[data-connected-left="c"].is-active .figure-line,
.connected-match[data-connected-right="c"].is-active .figure-line,
.connected-correspondence-arrow[data-connected-arrow="c"] {
  stroke: var(--paper-orange, #cf6a2f);
}

.connected-match[data-connected-left="c"].is-complete .figure-node,
.connected-match[data-connected-right="c"].is-complete .figure-node,
.connected-match[data-connected-left="c"].is-active .figure-node,
.connected-match[data-connected-right="c"].is-active .figure-node {
  fill: var(--paper-orange-soft, #f5e3d4);
  stroke: var(--paper-orange, #cf6a2f);
}

@keyframes connected-arrow-flow {
  from {
    stroke-dashoffset: 21;
  }

  to {
    stroke-dashoffset: 0;
  }
}

.lawvere-band {
  fill: rgba(var(--paper-teal-rgb, 31, 138, 120), 0.1);
  stroke: rgba(var(--paper-teal-rgb, 31, 138, 120), 0.22);
  stroke-width: 1.5;
}

.lawvere-band.lower {
  fill: rgba(var(--paper-orange-rgb, 207, 106, 47), 0.1);
  stroke: rgba(var(--paper-orange-rgb, 207, 106, 47), 0.22);
}

.lawvere-mini-box,
.lawvere-object-card,
.lawvere-quotient-card,
.lawvere-endpoint,
.lawvere-universal {
  fill: rgba(255, 253, 248, 0.9);
  stroke: rgba(43, 52, 43, 0.34);
  stroke-width: 1.8;
}

.lawvere-mini-box.soft,
.lawvere-universal {
  fill: var(--paper-blue-soft, #e5edf3);
  stroke: rgba(var(--paper-blue-rgb, 63, 115, 152), 0.56);
}

.lawvere-object-card {
  fill: var(--paper-teal-soft, #e3f2ee);
  stroke: rgba(var(--paper-teal-rgb, 31, 138, 120), 0.58);
}

.lawvere-quotient-card {
  fill: var(--paper-orange-soft, #f5e3d4);
  stroke: rgba(var(--paper-orange-rgb, 207, 106, 47), 0.58);
}

.lawvere-endpoint {
  fill: #fffdf8;
}

.lawvere-equivalence-arrow {
  stroke: rgba(var(--paper-teal-rgb, 31, 138, 120), 0.78);
}

.lawvere-caption {
  fill: var(--accent-2);
  font-size: 14px;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.tensor-card {
  fill: rgba(255, 253, 248, 0.94);
  stroke: rgba(43, 52, 43, 0.2);
  stroke-width: 1.8;
  filter: drop-shadow(0 12px 18px rgba(38, 46, 39, 0.08));
}

.tensor-card-final {
  fill: rgba(232, 240, 234, 0.82);
  stroke: rgba(44, 111, 99, 0.3);
}

.tensor-string-card {
  fill: rgba(255, 253, 248, 0.92);
  stroke: rgba(43, 52, 43, 0.18);
  stroke-width: 1.8;
  filter: drop-shadow(0 16px 24px rgba(38, 46, 39, 0.08));
}

.tensor-unit-cell {
  stroke-width: 1.2;
}

.tensor-unit-cell.warm {
  fill: rgba(var(--paper-orange-rgb, 207, 106, 47), 0.16);
  stroke: rgba(var(--paper-orange-rgb, 207, 106, 47), 0.16);
}

.tensor-unit-cell.green {
  fill: rgba(var(--paper-teal-rgb, 31, 138, 120), 0.12);
  stroke: rgba(var(--paper-teal-rgb, 31, 138, 120), 0.18);
}

.tensor-unit-cell.muted {
  fill: rgba(232, 232, 224, 0.32);
  stroke: rgba(43, 52, 43, 0.08);
}

.tensor-left-a-node text,
.tensor-right-a-node text,
.tensor-s-node text,
.tensor-x-node text {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-anchor: middle;
}

.tensor-factorization-figure .tensor-tex-object {
  overflow: visible;
  pointer-events: none;
}

.tensor-factorization-figure .tensor-tex-label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: rgba(67, 72, 64, 0.82);
  font-size: 21px;
  line-height: 1;
  text-align: center;
}

.tensor-factorization-figure .tensor-tex-object-left .tensor-tex-label {
  color: var(--tensor-map);
}

.tensor-factorization-figure .tensor-tex-object-right .tensor-tex-label {
  color: var(--tensor-subset);
}

.tensor-factorization-figure .tensor-tex-label .katex {
  line-height: 1;
}

.tensor-factorization-figure .tensor-tex-object-product .katex {
  font-size: 1.08em;
}

.tensor-factorization-figure .tensor-edge-direction {
  pointer-events: none;
  opacity: 0.95;
}

.tensor-factorization-figure .tensor-edge-direction-map {
  fill: var(--tensor-map);
}

.tensor-factorization-figure .tensor-edge-direction-subset {
  fill: var(--tensor-subset);
}

.tensor-left-a-node text,
.tensor-right-a-node text,
.tensor-s-node text,
.tensor-x-node text {
  fill: #24312a;
  font-size: 15px;
  font-weight: 900;
}

.tensor-left-a-node text,
.tensor-right-a-node text,
.tensor-s-node text,
.tensor-x-node text {
  font-size: 22px;
}

.tensor-factorization-figure .tensor-left-a-node text,
.tensor-factorization-figure .tensor-right-a-node text,
.tensor-factorization-figure .tensor-s-node text,
.tensor-factorization-figure .tensor-x-node text,
.tensor-factorization-figure .tensor-s-new-node text {
  display: none;
}

.tensor-x-node circle {
  fill: rgba(255, 253, 248, 0.96);
  stroke: rgba(43, 52, 43, 0.28);
  stroke-width: 2;
}

.tensor-x-node.selected circle {
  fill: var(--paper-orange-soft, #f5e3d4);
  stroke: var(--paper-orange, #cf6a2f);
  stroke-width: 2.6;
}

.tensor-x-node.green circle {
  fill: var(--paper-teal-soft, #e3f2ee);
  stroke: var(--paper-teal, #1f8a78);
}

.tensor-x-node.muted circle {
  fill: rgba(248, 246, 238, 0.82);
  stroke: rgba(43, 52, 43, 0.18);
  transform-box: fill-box;
  transform-origin: center;
}

.tensor-x-node.muted text {
  fill: rgba(36, 49, 42, 0.42);
}

.tensor-factorization-figure {
  --tensor-cycle: 12.4s;
  --tensor-map: var(--paper-teal, #1f8a78);
  --tensor-map-fill: var(--paper-teal-soft, #e3f2ee);
  --tensor-subset: var(--paper-orange, #cf6a2f);
  --tensor-subset-fill: var(--paper-orange-soft, #f5e3d4);
  --tensor-neutral: var(--paper-gray, #747872);
  --tensor-neutral-fill: var(--paper-gray-soft, #e7e7e2);
}

.tensor-factorization-figure .tensor-step1-block {
  fill: rgba(255, 253, 248, 0.18);
  stroke: rgba(102, 106, 100, 0.38);
  stroke-width: 2.2;
  vector-effect: non-scaling-stroke;
}

.tensor-factorization-figure .tensor-step1-block-left {
  fill: rgba(223, 238, 229, 0.28);
  stroke: rgba(44, 111, 99, 0.38);
}

.tensor-factorization-figure .tensor-step1-block-middle {
  fill: rgba(237, 237, 223, 0.18);
  stroke: rgba(102, 106, 100, 0.46);
}

.tensor-factorization-figure .tensor-step1-block-subset {
  fill: rgba(245, 220, 198, 0.28);
  stroke: rgba(182, 103, 55, 0.48);
}

.tensor-factorization-figure .tensor-left-map-cord {
  fill: none;
  stroke: var(--tensor-map);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.8;
  opacity: 0.82;
  vector-effect: non-scaling-stroke;
}

.tensor-factorization-figure .tensor-subset-link {
  fill: none;
  stroke: var(--tensor-subset);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3.4;
  opacity: 0.92;
  vector-effect: non-scaling-stroke;
}

.tensor-factorization-figure .tensor-neutral-link {
  fill: none;
  stroke: var(--tensor-neutral);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3.2;
  opacity: 0;
  vector-effect: non-scaling-stroke;
}

.tensor-factorization-figure .tensor-a-copy-link {
  fill: none;
  stroke: var(--tensor-neutral);
  stroke-dasharray: 5 7;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
  opacity: 0.55;
  vector-effect: non-scaling-stroke;
}

.tensor-factorization-figure .tensor-s-new-node {
  opacity: 0;
  animation: tensor-s-new-node-stage var(--tensor-cycle) ease-in-out infinite;
}

.tensor-factorization-figure .tensor-s-new-node circle {
  fill: var(--tensor-neutral-fill);
  stroke: var(--tensor-neutral);
  stroke-width: 2.6;
}

.tensor-factorization-figure .tensor-s-new-node text {
  fill: var(--tensor-neutral);
  font-size: 22px;
  font-weight: 900;
  text-anchor: middle;
}

.tensor-factorization-figure .tensor-f-arrow-head-green {
  fill: var(--tensor-map);
  stroke: rgba(255, 253, 248, 0.96);
  stroke-linejoin: round;
  stroke-width: 0.9;
}

.tensor-factorization-figure .tensor-left-a-node circle {
  fill: rgba(255, 253, 248, 0.95);
  stroke: rgba(44, 111, 99, 0.34);
  stroke-width: 2;
}

.tensor-factorization-figure .tensor-left-a-node.selected circle {
  fill: var(--tensor-map-fill);
  stroke: var(--tensor-map);
  stroke-width: 2.6;
}

.tensor-factorization-figure .tensor-left-a-node.selected.green circle {
  fill: var(--tensor-map-fill);
  stroke: var(--tensor-map);
}

.tensor-factorization-figure .tensor-left-a-node.muted circle {
  fill: rgba(248, 246, 238, 0.84);
  stroke: rgba(44, 111, 99, 0.18);
}

.tensor-factorization-figure .tensor-left-a-node.muted text {
  fill: rgba(36, 49, 42, 0.44);
}

.tensor-factorization-figure .tensor-right-a-node {
  opacity: 1;
}

.tensor-factorization-figure .tensor-right-a-node circle {
  fill: rgba(255, 253, 248, 0.94);
  stroke: rgba(67, 72, 64, 0.3);
  stroke-width: 2;
}

.tensor-factorization-figure .tensor-right-a-node text {
  fill: rgba(36, 49, 42, 0.68);
}

.tensor-factorization-figure .tensor-neutral-node circle {
  fill: var(--tensor-neutral-fill);
  stroke: var(--tensor-neutral);
  stroke-width: 2.6;
}

.tensor-factorization-figure .tensor-neutral-node text {
  fill: var(--tensor-neutral);
}

.tensor-factorization-figure .tensor-s-node {
  opacity: 1;
}

.tensor-factorization-figure .tensor-s-duplicate-node {
  opacity: 1;
}

.tensor-factorization-figure .tensor-s-node.tensor-s-duplicate-node circle {
  fill: var(--tensor-neutral-fill);
  stroke: var(--tensor-neutral);
  stroke-width: 2.6;
}

.tensor-factorization-figure .tensor-s-node.tensor-s-duplicate-node text {
  fill: var(--tensor-neutral);
}

.tensor-factorization-figure .tensor-s-node circle {
  fill: var(--tensor-subset-fill);
  stroke: var(--tensor-subset);
  stroke-width: 2.8;
}

.tensor-factorization-figure .tensor-s-node text {
  fill: #24312a;
}

.tensor-factorization-figure .tensor-x-node.selected circle {
  fill: var(--tensor-map-fill);
  stroke: var(--tensor-map);
}

.tensor-factorization-figure .tensor-s-duplicate-node,
.tensor-factorization-figure .tensor-s-new-node {
  animation-iteration-count: infinite;
}

.tensor-factorization-figure .tensor-step2-absorbed {
  animation: tensor-step2-absorbed-stage var(--tensor-cycle) ease-in-out infinite;
}

.tensor-factorization-figure .tensor-step2-absorbed-node {
  animation: tensor-step2-absorbed-node-stage var(--tensor-cycle) ease-in-out infinite;
}

.tensor-factorization-figure .tensor-step2-late-absorbed-node {
  animation: tensor-step2-late-absorbed-node-stage var(--tensor-cycle) ease-in-out infinite;
}

@keyframes tensor-step2-absorbed-node-stage {
  0%,
  54.03% {
    opacity: 1;
  }

  62.2%,
  100% {
    opacity: 0;
  }
}

@keyframes tensor-step2-late-absorbed-node-stage {
  0%,
  79% {
    opacity: 1;
  }

  79.84%,
  100% {
    opacity: 0;
  }
}

@keyframes tensor-step2-absorbed-stage {
  0%,
  20.97% {
    opacity: 0;
  }

  27.42%,
  54.03% {
    opacity: 1;
  }

  62.2%,
  100% {
    opacity: 0;
  }
}

@keyframes tensor-s-new-node-stage {
  0%,
  20.16% {
    opacity: 0;
  }

  25.81%,
  100% {
    opacity: 1;
  }
}

.c-red {
  fill: var(--paper-red, #bf4f43);
}

.c-blue {
  fill: var(--paper-blue, #3f7398);
}

.c-green {
  fill: var(--paper-green, #4b8062);
}

.c-orange {
  fill: var(--paper-orange, #cf6a2f);
}

.publication-figure .c-red,
.diagram-expanded .c-red {
  fill: var(--paper-red, #bf4f43);
}

.publication-figure .c-blue,
.diagram-expanded .c-blue {
  fill: var(--paper-blue, #3f7398);
}

.publication-figure .c-green,
.diagram-expanded .c-green {
  fill: var(--paper-green, #4b8062);
}

.publication-figure .c-orange,
.diagram-expanded .c-orange {
  fill: var(--paper-orange, #cf6a2f);
}

.publication-figure .connected-top-root,
.diagram-expanded .connected-top-root {
  fill: var(--paper-gray-soft, #e7e7e2);
  stroke: var(--paper-ink, #1f2721);
}

.publication-figure .connected-category-svg-label,
.diagram-expanded .connected-category-svg-label {
  fill: var(--paper-ink, #1f2721);
}

.publication-figure .connected-match .figure-node,
.diagram-expanded .connected-match .figure-node {
  fill: var(--paper-surface, #fffdf8);
  stroke: var(--paper-ink, #1f2721);
}

.publication-figure .connected-match[data-connected-left="a"].is-complete .figure-line,
.publication-figure .connected-match[data-connected-right="a"].is-complete .figure-line,
.publication-figure .connected-match[data-connected-left="a"].is-active .figure-line,
.publication-figure .connected-match[data-connected-right="a"].is-active .figure-line,
.publication-figure .connected-correspondence-arrow[data-connected-arrow="a"],
.diagram-expanded .connected-match[data-connected-left="a"].is-complete .figure-line,
.diagram-expanded .connected-match[data-connected-right="a"].is-complete .figure-line,
.diagram-expanded .connected-match[data-connected-left="a"].is-active .figure-line,
.diagram-expanded .connected-match[data-connected-right="a"].is-active .figure-line,
.diagram-expanded .connected-correspondence-arrow[data-connected-arrow="a"] {
  stroke: var(--paper-teal, #1f8a78);
}

.publication-figure .connected-match[data-connected-left="a"].is-complete .figure-node,
.publication-figure .connected-match[data-connected-right="a"].is-complete .figure-node,
.publication-figure .connected-match[data-connected-left="a"].is-active .figure-node,
.publication-figure .connected-match[data-connected-right="a"].is-active .figure-node,
.diagram-expanded .connected-match[data-connected-left="a"].is-complete .figure-node,
.diagram-expanded .connected-match[data-connected-right="a"].is-complete .figure-node,
.diagram-expanded .connected-match[data-connected-left="a"].is-active .figure-node,
.diagram-expanded .connected-match[data-connected-right="a"].is-active .figure-node {
  fill: var(--paper-teal-soft, #e3f2ee);
  stroke: var(--paper-teal, #1f8a78);
}

.publication-figure .connected-match[data-connected-left="b"].is-complete .figure-line,
.publication-figure .connected-match[data-connected-right="b"].is-complete .figure-line,
.publication-figure .connected-match[data-connected-left="b"].is-active .figure-line,
.publication-figure .connected-match[data-connected-right="b"].is-active .figure-line,
.publication-figure .connected-correspondence-arrow[data-connected-arrow="b"],
.diagram-expanded .connected-match[data-connected-left="b"].is-complete .figure-line,
.diagram-expanded .connected-match[data-connected-right="b"].is-complete .figure-line,
.diagram-expanded .connected-match[data-connected-left="b"].is-active .figure-line,
.diagram-expanded .connected-match[data-connected-right="b"].is-active .figure-line,
.diagram-expanded .connected-correspondence-arrow[data-connected-arrow="b"] {
  stroke: var(--paper-blue, #3f7398);
}

.publication-figure .connected-match[data-connected-left="b"].is-complete .figure-node,
.publication-figure .connected-match[data-connected-right="b"].is-complete .figure-node,
.publication-figure .connected-match[data-connected-left="b"].is-active .figure-node,
.publication-figure .connected-match[data-connected-right="b"].is-active .figure-node,
.diagram-expanded .connected-match[data-connected-left="b"].is-complete .figure-node,
.diagram-expanded .connected-match[data-connected-right="b"].is-complete .figure-node,
.diagram-expanded .connected-match[data-connected-left="b"].is-active .figure-node,
.diagram-expanded .connected-match[data-connected-right="b"].is-active .figure-node {
  fill: var(--paper-blue-soft, #e5edf3);
  stroke: var(--paper-blue, #3f7398);
}

.publication-figure .connected-match[data-connected-left="c"].is-complete .figure-line,
.publication-figure .connected-match[data-connected-right="c"].is-complete .figure-line,
.publication-figure .connected-match[data-connected-left="c"].is-active .figure-line,
.publication-figure .connected-match[data-connected-right="c"].is-active .figure-line,
.publication-figure .connected-correspondence-arrow[data-connected-arrow="c"],
.diagram-expanded .connected-match[data-connected-left="c"].is-complete .figure-line,
.diagram-expanded .connected-match[data-connected-right="c"].is-complete .figure-line,
.diagram-expanded .connected-match[data-connected-left="c"].is-active .figure-line,
.diagram-expanded .connected-match[data-connected-right="c"].is-active .figure-line,
.diagram-expanded .connected-correspondence-arrow[data-connected-arrow="c"] {
  stroke: var(--paper-orange, #cf6a2f);
}

.publication-figure .connected-match[data-connected-left="c"].is-complete .figure-node,
.publication-figure .connected-match[data-connected-right="c"].is-complete .figure-node,
.publication-figure .connected-match[data-connected-left="c"].is-active .figure-node,
.publication-figure .connected-match[data-connected-right="c"].is-active .figure-node,
.diagram-expanded .connected-match[data-connected-left="c"].is-complete .figure-node,
.diagram-expanded .connected-match[data-connected-right="c"].is-complete .figure-node,
.diagram-expanded .connected-match[data-connected-left="c"].is-active .figure-node,
.diagram-expanded .connected-match[data-connected-right="c"].is-active .figure-node {
  fill: var(--paper-orange-soft, #f5e3d4);
  stroke: var(--paper-orange, #cf6a2f);
}

.publication-figure .internal-figure-heading,
.publication-figure .internal-classifier-symbol,
.diagram-expanded .internal-figure-heading,
.diagram-expanded .internal-classifier-symbol {
  color: var(--paper-ink, #1f2721);
  fill: var(--paper-ink, #1f2721);
}

.publication-figure .internal-panel-bg,
.diagram-expanded .internal-panel-bg {
  fill: rgba(255, 253, 248, 0.72);
  stroke: var(--paper-line, rgba(43, 52, 43, 0.22));
}

.publication-figure .internal-graph-node,
.publication-figure .internal-piece-dot,
.diagram-expanded .internal-graph-node,
.diagram-expanded .internal-piece-dot {
  fill: var(--paper-surface, #fffdf8);
  stroke: var(--paper-ink, #1f2721);
}

.publication-figure .internal-classifier-node,
.diagram-expanded .internal-classifier-node {
  fill: var(--paper-blue-soft, #e5edf3);
  stroke: var(--paper-blue, #3f7398);
}

.publication-figure .internal-edge-base,
.publication-figure .internal-piece-arrow,
.publication-figure .internal-classifier-loop,
.diagram-expanded .internal-edge-base,
.diagram-expanded .internal-piece-arrow,
.diagram-expanded .internal-classifier-loop {
  stroke: rgba(31, 39, 33, 0.52);
}

.publication-figure .internal-loop-n,
.publication-figure path.internal-highlight-n,
.publication-figure .internal-classifier-loop.internal-highlight-n,
.diagram-expanded .internal-loop-n,
.diagram-expanded path.internal-highlight-n,
.diagram-expanded .internal-classifier-loop.internal-highlight-n {
  fill: none;
  stroke: var(--paper-teal, #1f8a78);
}

.publication-figure .internal-edge-label-n,
.publication-figure .internal-loop-label-n,
.publication-figure .internal-edge-label.internal-highlight-n,
.publication-figure .internal-map-label.internal-highlight-n,
.publication-figure .internal-loop-label.internal-highlight-n,
.publication-figure .internal-classifier-caption-nonloop,
.diagram-expanded .internal-edge-label-n,
.diagram-expanded .internal-loop-label-n,
.diagram-expanded .internal-edge-label.internal-highlight-n,
.diagram-expanded .internal-map-label.internal-highlight-n,
.diagram-expanded .internal-loop-label.internal-highlight-n,
.diagram-expanded .internal-classifier-caption-nonloop {
  fill: var(--paper-teal, #1f8a78);
  stroke: none;
}

.publication-figure .internal-loop-l,
.publication-figure path.internal-highlight-l,
.publication-figure .internal-classifier-loop.internal-highlight-l,
.diagram-expanded .internal-loop-l,
.diagram-expanded path.internal-highlight-l,
.diagram-expanded .internal-classifier-loop.internal-highlight-l {
  fill: none;
  stroke: var(--paper-orange, #cf6a2f);
}

.publication-figure .internal-edge-label-l,
.publication-figure .internal-loop-label-l,
.publication-figure .internal-edge-label.internal-highlight-l,
.publication-figure .internal-map-label.internal-highlight-l,
.publication-figure .internal-loop-label.internal-highlight-l,
.publication-figure .internal-classifier-caption-loop,
.diagram-expanded .internal-edge-label-l,
.diagram-expanded .internal-loop-label-l,
.diagram-expanded .internal-edge-label.internal-highlight-l,
.diagram-expanded .internal-map-label.internal-highlight-l,
.diagram-expanded .internal-loop-label.internal-highlight-l,
.diagram-expanded .internal-classifier-caption-loop {
  fill: var(--paper-orange, #cf6a2f);
  stroke: none;
}

.publication-figure .lawvere-band,
.diagram-expanded .lawvere-band {
  fill: rgba(var(--paper-teal-rgb, 31, 138, 120), 0.1);
  stroke: rgba(var(--paper-teal-rgb, 31, 138, 120), 0.24);
}

.publication-figure .lawvere-band.lower,
.diagram-expanded .lawvere-band.lower {
  fill: rgba(var(--paper-orange-rgb, 207, 106, 47), 0.1);
  stroke: rgba(var(--paper-orange-rgb, 207, 106, 47), 0.24);
}

.publication-figure .lawvere-mini-box,
.publication-figure .lawvere-object-card,
.publication-figure .lawvere-quotient-card,
.publication-figure .lawvere-endpoint,
.publication-figure .lawvere-universal,
.diagram-expanded .lawvere-mini-box,
.diagram-expanded .lawvere-object-card,
.diagram-expanded .lawvere-quotient-card,
.diagram-expanded .lawvere-endpoint,
.diagram-expanded .lawvere-universal {
  fill: rgba(255, 253, 248, 0.9);
  stroke: var(--paper-line-strong, rgba(43, 52, 43, 0.42));
}

.publication-figure .lawvere-object-card,
.diagram-expanded .lawvere-object-card {
  fill: var(--paper-teal-soft, #e3f2ee);
  stroke: rgba(var(--paper-teal-rgb, 31, 138, 120), 0.58);
}

.publication-figure .lawvere-quotient-card,
.diagram-expanded .lawvere-quotient-card {
  fill: var(--paper-orange-soft, #f5e3d4);
  stroke: rgba(var(--paper-orange-rgb, 207, 106, 47), 0.58);
}

.publication-figure .lawvere-equivalence-arrow,
.diagram-expanded .lawvere-equivalence-arrow {
  stroke: var(--paper-teal, #1f8a78);
}

.publication-figure .lawvere-caption,
.diagram-expanded .lawvere-caption {
  fill: var(--paper-orange-deep, #a4522c);
}

.publication-figure .tensor-factorization-figure,
.diagram-expanded .tensor-factorization-figure {
  --tensor-map: var(--paper-teal, #1f8a78);
  --tensor-map-fill: var(--paper-teal-soft, #e3f2ee);
  --tensor-subset: var(--paper-orange, #cf6a2f);
  --tensor-subset-fill: var(--paper-orange-soft, #f5e3d4);
  --tensor-neutral: var(--paper-gray, #747872);
  --tensor-neutral-fill: var(--paper-gray-soft, #e7e7e2);
}

.publication-figure .tensor-left-a-node text,
.publication-figure .tensor-right-a-node text,
.publication-figure .tensor-s-node text,
.publication-figure .tensor-x-node text,
.diagram-expanded .tensor-left-a-node text,
.diagram-expanded .tensor-right-a-node text,
.diagram-expanded .tensor-s-node text,
.diagram-expanded .tensor-x-node text {
  fill: var(--paper-ink-strong, #24312a);
}

.publication-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 20px;
}

.publication-title h3 {
  min-width: 0;
  overflow-wrap: anywhere;
}

.publication-title a {
  color: var(--ink);
  text-decoration: none;
}

.publication-title a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.title-copy-link {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-left: 2px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 999px;
  appearance: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  vertical-align: middle;
}

.title-copy-link::after {
  position: absolute;
  z-index: 40;
  bottom: calc(100% + 8px);
  left: 50%;
  display: none;
  width: max-content;
  max-width: min(520px, 72vw);
  padding: 7px 9px;
  border: 1px solid rgba(31, 39, 33, 0.16);
  border-radius: 7px;
  background: rgba(255, 253, 248, 0.97);
  box-shadow: 0 10px 24px rgba(31, 39, 33, 0.14);
  color: var(--ink);
  content: attr(data-copy-preview);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.25;
  overflow-wrap: anywhere;
  opacity: 0;
  pointer-events: none;
  text-align: left;
  transform: translate(-50%, 3px);
  transition: opacity 0.14s ease, transform 0.14s ease;
  white-space: normal;
}

.title-copy-link:hover::after,
.title-copy-link:focus-visible::after {
  display: block;
  opacity: 1;
  transform: translate(-50%, 0);
}

.title-copy-link.is-copied::after,
.title-copy-link.is-failed::after {
  display: none;
}

.title-copy-link.is-copied,
.title-copy-link.is-failed {
  width: auto;
  gap: 6px;
  padding: 0 9px;
}

.title-copy-link-icon {
  width: 15px;
  height: 15px;
}

.title-copy-link-status {
  display: none;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
}

.title-copy-link.is-copied .title-copy-link-status,
.title-copy-link.is-failed .title-copy-link-status {
  display: inline;
}

.title-copy-link:hover,
.title-copy-link:focus-visible {
  border-color: rgba(44, 111, 99, 0.28);
  background: rgba(44, 111, 99, 0.08);
  color: var(--accent);
  outline: 0;
}

.title-copy-link.is-copied {
  background: rgba(44, 111, 99, 0.14);
  color: var(--accent);
}

.title-copy-link.is-failed {
  background: rgba(166, 72, 55, 0.12);
  color: #a64837;
}

.section-copy-link {
  margin-left: auto;
}

.publication-venue {
  justify-self: end;
  max-width: 100%;
  color: var(--accent-3);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
}

.publication-details {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  align-items: baseline;
  min-width: 0;
  color: #465249;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.82rem;
  line-height: 1.35;
}

.publication-detail {
  display: inline-flex;
  gap: 4px;
  align-items: baseline;
  min-width: 0;
  max-width: 100%;
}

.publication-detail-label {
  color: rgba(49, 70, 61, 0.62);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0;
  white-space: nowrap;
}

.publication-detail-label::after {
  content: ":";
}

.publication-detail-value {
  min-width: 0;
  color: #2f3932;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.publication-meta,
.note-meta {
  display: flex;
  flex-wrap: wrap;
  min-width: 0;
}

.publication-meta {
  gap: 8px;
}

.note-meta {
  gap: 4px 10px;
  align-items: baseline;
  color: rgba(49, 70, 61, 0.72);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.8rem;
  line-height: 1.35;
}

.note-meta span {
  display: inline-flex;
  min-width: 0;
  max-width: 100%;
  align-items: baseline;
  color: inherit;
  overflow-wrap: anywhere;
}

.note-meta span + span::before {
  content: "·";
  margin-right: 10px;
  color: rgba(49, 70, 61, 0.34);
}

.note-meta .note-kind-badge {
  padding: 1px 6px;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: var(--accent-3);
  font-weight: 850;
}

.note-meta .meta-tag-pill {
  align-items: center;
  gap: 5px;
  padding: 1px 6px;
  border: 1px solid var(--meta-tag-border);
  border-radius: 999px;
  background: var(--meta-tag-bg);
  color: var(--meta-tag-ink);
  font-weight: 850;
}

.note-meta .meta-tag-pill::before {
  content: none;
  margin: 0;
}

.publication-meta .publication-status {
  border-color: rgba(var(--paper-orange-rgb, 207, 106, 47), 0.28);
  background: var(--paper-orange-soft, #f5e3d4);
  color: var(--paper-orange-deep, #a4522c);
  font-weight: 850;
}

.content-review-badge {
  display: inline-flex;
  min-width: 0;
  max-width: 100%;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border: 1px solid rgba(var(--paper-gray-rgb, 116, 120, 114), 0.22);
  border-radius: 999px;
  background: var(--paper-gray-soft, #e7e7e2);
  color: var(--paper-ink-strong, #24312a);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Hiragino Sans", sans-serif;
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.note-meta .content-review-badge {
  padding: 1px 6px;
  font-size: 0.74rem;
}

.note-meta .content-review-badge::before {
  content: none;
  margin: 0;
}

.content-review-badge.review-preprint,
.content-review-badge.review-draft {
  border-color: rgba(var(--paper-orange-rgb, 207, 106, 47), 0.28);
  background: var(--paper-orange-soft, #f5e3d4);
  color: var(--paper-orange-deep, #a4522c);
}

.content-review-badge.review-speculative {
  border-color: rgba(var(--paper-blue-rgb, 63, 115, 152), 0.3);
  background: var(--paper-blue-soft, #e5edf3);
  color: var(--paper-blue-deep, #315b78);
}

.content-review-badge.review-rights-watch,
.content-review-badge.review-permission-needed {
  border-color: rgba(var(--paper-red-rgb, 191, 79, 67), 0.28);
  background: var(--paper-red-soft, #f4e1dc);
  color: var(--paper-red, #bf4f43);
}

.content-review-badge.review-external-record {
  border-color: rgba(var(--paper-teal-rgb, 31, 138, 120), 0.24);
  background: var(--paper-teal-soft, #e3f2ee);
  color: var(--paper-teal-deep, #176b5f);
}

.content-review-badge.review-pending-public-source {
  border-color: rgba(var(--paper-blue-rgb, 63, 115, 152), 0.28);
  background: var(--paper-blue-soft, #e5edf3);
  color: var(--paper-blue-deep, #315b78);
}

.content-review-badge.review-verified-owner-and-kaken-active,
.content-review-badge.review-coauthored-explicit-permission {
  border-color: rgba(var(--paper-teal-rgb, 31, 138, 120), 0.24);
  background: var(--paper-teal-soft, #e3f2ee);
  color: var(--paper-teal-deep, #176b5f);
}

.content-review-badge.review-self-reported-public-broadcast {
  border-color: rgba(var(--paper-orange-rgb, 207, 106, 47), 0.28);
  background: var(--paper-orange-soft, #f5e3d4);
  color: var(--paper-orange-deep, #a4522c);
}

.publication-summary {
  margin: 0;
  color: #3d453d;
}

.action-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.action-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  appearance: none;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}

.action-link-icon {
  width: 14px;
  height: 14px;
  color: currentColor;
}

.action-links-icon-only {
  gap: 6px;
}

.action-link-icon-only {
  justify-content: center;
  width: 32px;
  min-width: 32px;
  min-height: 32px;
  padding: 0;
  gap: 0;
}

.action-link-icon-only .action-link-icon {
  width: 15px;
  height: 15px;
}

.action-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.problem-random-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.problem-console {
  display: grid;
  gap: 14px;
}

.problem-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 16px 22px;
}

.problem-toolbar .publication-tabs {
  justify-content: flex-end;
  margin-bottom: 0;
}

.problem-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.problem-stat {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid rgba(43, 52, 43, 0.14);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.68);
}

.problem-stat strong,
.problem-stat span,
.problem-id,
.problem-badge,
.problem-updated {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.problem-stat strong {
  color: var(--ink);
  font-size: 1.28rem;
  line-height: 1.1;
}

.problem-stat span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 750;
  text-transform: uppercase;
}

.problem-feature {
  position: relative;
  display: grid;
  gap: 13px;
  padding: clamp(18px, 2.6vw, 26px);
  border: 1px solid rgba(43, 52, 43, 0.16);
  border-left: 5px solid var(--accent);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.82);
  box-shadow: var(--shadow);
}

.problem-anchor-marker {
  position: absolute;
  top: -92px;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.problem-feature-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.problem-feature h2,
.problem-card h3 {
  margin: 0;
  line-height: 1.2;
}

.problem-id {
  margin: 0 0 6px;
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.problem-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 4px 10px;
  border: 1px solid rgba(43, 52, 43, 0.14);
  border-radius: 999px;
  background: #edf3ef;
  color: #28483d;
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
}

.problem-badge.status-open {
  background: #e7efe8;
  color: #24584f;
}

.problem-badge.status-question {
  background: #f3eadc;
  color: #7a4a2c;
}

.problem-badge.status-trail {
  background: #e7edf2;
  color: #2f536f;
}

.problem-badge.status-solved {
  background: #eee9f0;
  color: #574b68;
}

.problem-statement {
  max-width: 920px;
  margin: 0;
  color: #202820;
  font-size: 1.13rem;
  line-height: 1.62;
}

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

.problem-updated {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

.problem-trail {
  display: grid;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.problem-trail h3 {
  margin: 0;
  color: var(--accent-2);
  font-size: 0.96rem;
}

.problem-trail-list {
  display: grid;
  gap: 11px;
  margin: 0;
  padding-left: 1.35rem;
}

.problem-trail-list p {
  margin: 3px 0 0;
  color: var(--muted);
}

.problem-comments {
  display: grid;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.problem-comments-head {
  display: grid;
  gap: 6px;
}

.problem-comments-title {
  margin: 0;
  color: var(--accent-2);
  font-size: 0.96rem;
}

.problem-comments-note,
.problem-comment-state,
.problem-comment-admin {
  margin: 0;
  color: var(--muted);
}

.problem-comment-setup {
  display: grid;
  gap: 12px;
  padding: 16px 18px;
  border: 1px dashed rgba(47, 83, 111, 0.42);
  border-radius: 8px;
  background: rgba(231, 237, 242, 0.45);
}

.problem-comment-setup h4 {
  margin: 0;
  color: var(--accent-3);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.84rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.problem-comment-setup p {
  margin: 0;
  color: #35423c;
}

.problem-comment-setup ol {
  margin: 0;
  padding-left: 1.35rem;
}

.problem-comment-setup li + li {
  margin-top: 6px;
}

.problem-comments-widget {
  overflow: hidden;
  border: 1px solid rgba(43, 52, 43, 0.14);
  border-radius: 8px;
  background: var(--paper);
}

.problem-comment-admin {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.82rem;
}

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

.problem-card {
  display: grid;
  align-content: start;
  gap: 11px;
  min-width: 0;
  min-height: 100%;
  padding: clamp(16px, 2vw, 20px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.72);
  box-shadow: 0 10px 28px rgba(42, 45, 39, 0.04);
  cursor: pointer;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease, background 180ms ease;
}

.problem-card:hover,
.problem-card.is-selected {
  border-color: rgba(44, 111, 99, 0.5);
  background: #fffaf1;
  box-shadow: 0 16px 34px rgba(59, 69, 48, 0.08);
}

.problem-card.is-selected {
  transform: translateY(-2px);
}

.problem-card:focus-visible {
  outline: 3px solid rgba(44, 111, 99, 0.32);
  outline-offset: 3px;
}

.problem-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.problem-card .problem-id {
  margin: 0;
}

.problem-card-statement {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #3d453d;
  line-height: 1.52;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.problem-card .publication-meta > span,
.problem-card .publication-meta > .publication-tag {
  font-size: 0.76rem;
}

.diagram-dialog {
  width: min(1180px, calc(100vw - 32px));
  max-height: min(860px, calc(100vh - 32px));
  padding: 0;
  border: 1px solid rgba(43, 52, 43, 0.2);
  border-radius: 8px;
  background: #fffdf8;
  color: var(--ink);
  box-shadow: 0 30px 90px rgba(23, 27, 23, 0.28);
}

.diagram-dialog::backdrop {
  background: rgba(22, 25, 21, 0.48);
}

.diagram-dialog-shell {
  display: grid;
  max-height: inherit;
  overflow: hidden;
}

.diagram-dialog-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  padding: 16px clamp(16px, 2.4vw, 24px);
  border-bottom: 1px solid var(--line);
  background: rgba(246, 242, 234, 0.9);
}

.diagram-dialog-header h2 {
  font-size: 1.8rem;
}

.diagram-close {
  min-height: 38px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  font-weight: 750;
}

.diagram-close:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.diagram-dialog-body {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 0;
  min-height: 0;
  overflow: auto;
}

.diagram-expanded {
  position: relative;
  display: grid;
  align-items: center;
  min-height: min(64vh, 620px);
  padding: clamp(16px, 2.4vw, 28px);
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, #fffdf8 0%, #f7f2ea 100%);
}

.diagram-expanded .grundy-panel {
  display: none;
}

.diagram-expanded svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 58vh;
}

.diagram-notes {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: clamp(16px, 2.4vw, 24px);
  background: rgba(255, 253, 248, 0.96);
}

.diagram-notes h3 {
  font-size: 1.2rem;
}

.diagram-paper-people {
  margin: -10px 0 0;
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.86rem;
  font-weight: 760;
}

.diagram-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.diagram-keywords > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 4px 10px;
  border: 1px solid rgba(44, 111, 99, 0.25);
  border-radius: 999px;
  background: var(--soft);
  color: #31463d;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
}

.diagram-note-block {
  display: grid;
  gap: 8px;
}

.diagram-note-block h4 {
  margin: 0;
  color: var(--accent-2);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.diagram-note-block p {
  margin: 0;
  color: #3d453d;
}

.timeline-group {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  padding: clamp(16px, 2vw, 22px);
}

.timeline-year {
  color: var(--accent-2);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
}

.talk-timeline-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.timeline-control {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}

.timeline-control:hover,
.timeline-control:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

.timeline-control:disabled {
  cursor: default;
  opacity: 0.38;
}

.control-icon {
  position: relative;
  display: block;
  width: 16px;
  height: 16px;
}

.control-icon.prev::before,
.control-icon.next::before {
  position: absolute;
  top: 1px;
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  content: "";
}

.control-icon.prev::before {
  left: 1px;
  border-right: 11px solid currentColor;
}

.control-icon.next::before {
  right: 1px;
  border-left: 11px solid currentColor;
}

.control-icon.prev::after,
.control-icon.next::after {
  position: absolute;
  top: 1px;
  width: 2px;
  height: 14px;
  border-radius: 1px;
  background: currentColor;
  content: "";
}

.control-icon.prev::after {
  right: 2px;
}

.control-icon.next::after {
  left: 2px;
}

.talk-timeline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
  gap: clamp(14px, 2.4vw, 22px);
  padding: clamp(14px, 2.2vw, 22px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.76);
  box-shadow: var(--shadow);
}

.talk-timeline-track {
  --talk-progress: 0;
  position: relative;
  min-height: clamp(190px, 18vw, 230px);
  overflow: hidden;
  border: 1px solid rgba(43, 52, 43, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(44, 111, 99, 0.08) 1px, transparent 1px) 0 0 / 56px 100%,
    linear-gradient(180deg, #fffdf8 0%, #f3eee6 100%);
}

.talk-timeline-rail,
.talk-timeline-progress {
  position: absolute;
  top: 50%;
  left: 28px;
  height: 3px;
  border-radius: 999px;
  transform: translateY(-50%);
}

.talk-timeline-rail {
  right: 28px;
  background: rgba(43, 52, 43, 0.18);
}

.talk-timeline-progress {
  width: calc((100% - 56px) * var(--talk-progress) / 100);
  background: linear-gradient(90deg, #2c6f63, #c7783d);
  transition: width 480ms ease;
}

.talk-timeline-cursor {
  position: absolute;
  top: 24px;
  bottom: 52px;
  left: calc(28px + (100% - 56px) * var(--talk-progress) / 100);
  width: 2px;
  border-radius: 999px;
  background: rgba(138, 77, 52, 0.72);
  box-shadow: 0 0 0 5px rgba(199, 120, 61, 0.1);
  transform: translateX(-50%);
  transition: left 480ms ease;
}

.talk-timeline-cursor::before {
  position: absolute;
  top: -7px;
  left: 50%;
  width: 14px;
  height: 14px;
  border: 2px solid #8a4d34;
  border-radius: 50%;
  background: var(--paper);
  content: "";
  transform: translateX(-50%);
}

.talk-year-tick,
.talk-timeline-node {
  position: absolute;
  left: calc(28px + (100% - 56px) * var(--x) / 100);
}

.talk-year-tick {
  bottom: 16px;
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  transform: translateX(-50%);
}

.talk-year-tick::before {
  position: absolute;
  bottom: 24px;
  left: 50%;
  width: 1px;
  height: 14px;
  background: rgba(43, 52, 43, 0.22);
  content: "";
}

.talk-timeline-node {
  top: calc(50% + (var(--lane) - 1) * 34px);
  z-index: 2;
  width: 17px;
  height: 17px;
  padding: 0;
  border: 2px solid #243128;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 4px 12px rgba(35, 37, 30, 0.12);
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: width 180ms ease, height 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.talk-timeline-node.theme-topos {
  background: #e7efe8;
  border-color: #2c6f63;
}

.talk-timeline-node.theme-automata {
  background: #e7edf2;
  border-color: #2f536f;
}

.talk-timeline-node.theme-games {
  background: #f3eadc;
  border-color: #8a4d34;
}

.talk-timeline-node.theme-dynamical {
  background: #eaf0dc;
  border-color: #687b32;
}

.talk-timeline-node.theme-category {
  background: #eee9f0;
  border-color: #574b68;
}

.talk-timeline-node.theme-logic {
  background: #f1e8ef;
  border-color: #7a4d78;
}

.talk-timeline-node:hover,
.talk-timeline-node:focus-visible,
.talk-timeline-node.is-active {
  width: 26px;
  height: 26px;
  box-shadow: 0 0 0 7px rgba(44, 111, 99, 0.13), 0 14px 24px rgba(35, 37, 30, 0.14);
}

.talk-timeline-card {
  display: grid;
  align-content: center;
  gap: 10px;
  min-width: 0;
  padding: clamp(16px, 2vw, 20px);
  border: 1px solid rgba(43, 52, 43, 0.14);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.82);
}

.talk-timeline-card h3 {
  margin: 0;
  font-size: 1.28rem;
  line-height: 1.22;
}

.talk-timeline-card h3 a {
  color: var(--ink);
  text-decoration: none;
}

.talk-timeline-card h3 a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.talk-timeline-date,
.talk-timeline-meta,
.talk-timeline-count {
  margin: 0;
}

.talk-timeline-date,
.talk-timeline-count,
.talk-timeline-theme {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.talk-timeline-date {
  color: var(--accent-2);
  font-weight: 800;
}

.talk-timeline-meta {
  color: var(--muted);
}

.talk-timeline-count {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
}

.talk-timeline-theme {
  justify-self: start;
  min-height: 28px;
  padding: 4px 9px;
  border: 1px solid rgba(43, 52, 43, 0.14);
  border-radius: 999px;
  background: var(--soft);
  color: #31463d;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.talk-timeline-theme.theme-automata {
  background: #e7edf2;
  color: #2f536f;
}

.talk-timeline-theme.theme-games {
  background: #f3eadc;
  color: #7a4a2c;
}

.talk-timeline-theme.theme-dynamical {
  background: #eaf0dc;
  color: #687b32;
}

.talk-timeline-theme.theme-category {
  background: #eee9f0;
  color: #574b68;
}

.talk-timeline-theme.theme-logic {
  background: #f1e8ef;
  color: #7a4d78;
}

.talk-map {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.34fr);
  gap: clamp(14px, 2.4vw, 22px);
  align-items: start;
}

.talk-map-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
}

.talk-map-figure {
  --visit-map-zoom: 1;
  --talk-map-viewport-height: clamp(280px, 40vh, 430px);
  display: grid;
  gap: 10px;
  min-width: 0;
  margin: 0;
  padding: clamp(12px, 1.8vw, 16px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.76);
  box-shadow: 0 10px 28px rgba(42, 45, 39, 0.04);
}

.talk-europe-map {
  --talk-map-viewport-height: clamp(280px, 40vh, 430px);
}

.talk-japan-map {
  --talk-map-viewport-height: clamp(280px, 40vh, 430px);
}

.talk-map-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.talk-map-label {
  color: var(--accent-2);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.talk-map-controls {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
}

.talk-map-control {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(44, 111, 99, 0.24);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.82);
  color: var(--accent);
  cursor: pointer;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.82rem;
  font-weight: 850;
  line-height: 1;
}

.talk-map-control:hover,
.talk-map-control:focus-visible {
  border-color: rgba(44, 111, 99, 0.52);
  background: #fffdf8;
  outline: 0;
}

.talk-map-control:disabled {
  opacity: 0.38;
  cursor: default;
}

.talk-map-zoom-readout {
  min-width: 42px;
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.74rem;
  font-weight: 800;
  text-align: right;
}

.talk-map-canvas {
  overflow: auto;
  height: var(--talk-map-viewport-height);
  border: 1px solid rgba(43, 52, 43, 0.1);
  border-radius: 8px;
  background: #edf3f4;
  cursor: grab;
  overflow-anchor: none;
  overscroll-behavior: contain;
  scrollbar-gutter: stable both-edges;
  touch-action: none;
  user-select: none;
}

.talk-map-canvas:focus-visible {
  outline: 2px solid rgba(44, 111, 99, 0.42);
  outline-offset: 2px;
}

.talk-map-canvas.is-dragging {
  cursor: grabbing;
}

.talk-map-figure svg {
  display: block;
  width: calc(100% * var(--visit-map-zoom));
  min-width: 100%;
  max-width: none;
  height: auto;
  overflow: hidden;
}

.talk-map-water {
  fill: #edf3f4;
}

.talk-map-land {
  fill: #e6ede8;
  stroke: rgba(44, 111, 99, 0.32);
  stroke-width: 2;
}

.talk-map-data-land {
  stroke-width: 0.65;
}

.talk-japan-map .talk-map-data-land {
  stroke-width: 1.15;
}

.talk-map-land.small,
.talk-map-land.japan-island {
  fill: #f0eadf;
  stroke: rgba(138, 77, 52, 0.32);
}

.talk-map-land.japan-island.main {
  fill: #e6ede8;
  stroke: rgba(44, 111, 99, 0.36);
}

.talk-map-route {
  fill: none;
  stroke: rgba(47, 83, 111, 0.22);
  stroke-dasharray: 6 7;
  stroke-linecap: round;
  stroke-width: 2;
}

.talk-map-caption {
  fill: rgba(49, 70, 61, 0.56);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.talk-map-marker {
  cursor: pointer;
}

.talk-map-marker circle {
  fill: #fffdf8;
  stroke: #243128;
  stroke-width: 2.5;
  transition: r 180ms ease, stroke-width 180ms ease, filter 180ms ease;
  vector-effect: non-scaling-stroke;
}

.talk-map-marker.is-single circle {
  stroke-width: 2.1;
}

.talk-map-marker text {
  fill: #1f2721;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 11px;
  font-weight: 900;
  pointer-events: none;
  text-anchor: middle;
}

.talk-map-marker.theme-topos circle {
  fill: #e7efe8;
  stroke: #2c6f63;
}

.talk-map-marker.theme-automata circle {
  fill: #e7edf2;
  stroke: #2f536f;
}

.talk-map-marker.theme-games circle {
  fill: #f3eadc;
  stroke: #8a4d34;
}

.talk-map-marker.theme-dynamical circle {
  fill: #eaf0dc;
  stroke: #687b32;
}

.talk-map-marker.theme-category circle {
  fill: #eee9f0;
  stroke: #574b68;
}

.talk-map-marker.theme-logic circle {
  fill: #f1e8ef;
  stroke: #7a4d78;
}

.talk-map-marker.theme-visit circle {
  fill: #fff1da;
  stroke: #c7783d;
}

.talk-map-marker:hover circle,
.talk-map-marker:focus-visible circle,
.talk-map-marker.is-selected circle {
  filter: drop-shadow(0 8px 10px rgba(35, 37, 30, 0.18));
  stroke-width: 4;
}

.talk-map-marker.is-single:hover circle,
.talk-map-marker.is-single:focus-visible circle,
.talk-map-marker.is-single.is-selected circle {
  stroke-width: 3;
}

.talk-map-marker.is-spiderfied circle {
  stroke-width: 3;
}

.talk-map-detail {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: clamp(16px, 2vw, 20px);
  border: 1px solid rgba(43, 52, 43, 0.14);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.82);
  box-shadow: 0 10px 28px rgba(42, 45, 39, 0.04);
}

.talk-map-detail h3 {
  margin: 0;
  font-size: 1.26rem;
  line-height: 1.22;
}

.talk-map-place {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.talk-map-count {
  margin: 0;
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.86rem;
  font-weight: 750;
}

.talk-map-records {
  display: grid;
  gap: 12px;
  max-height: clamp(240px, 34vh, 360px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  margin: 0;
  padding: 0 6px 0 0;
  list-style: none;
}

.talk-map-records:focus-visible {
  outline: 2px solid rgba(44, 111, 99, 0.42);
  outline-offset: 2px;
}

.talk-map-records::-webkit-scrollbar {
  width: 10px;
}

.talk-map-records::-webkit-scrollbar-track {
  background: rgba(49, 70, 61, 0.08);
  border-radius: 999px;
}

.talk-map-records::-webkit-scrollbar-thumb {
  border: 2px solid rgba(255, 253, 248, 0.72);
  border-radius: 999px;
  background: rgba(44, 111, 99, 0.36);
}

.talk-map-records li {
  display: grid;
  gap: 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(215, 210, 199, 0.72);
}

.talk-map-records li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.talk-map-visit-group {
  gap: 8px;
}

.talk-map-visit-heading {
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.82rem;
  font-weight: 780;
  line-height: 1.35;
}

.talk-map-visit-records {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0 0 0 12px;
  border-left: 1px solid rgba(44, 111, 99, 0.22);
  list-style: none;
}

.talk-map-records .talk-map-visit-records li {
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(215, 210, 199, 0.52);
}

.talk-map-records .talk-map-visit-records li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.talk-map-records a {
  color: var(--ink);
  font-weight: 760;
  line-height: 1.28;
  text-decoration: none;
}

.talk-map-records a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.talk-map-records span {
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.78rem;
  line-height: 1.35;
}

.talk-map-records .talk-map-visit-heading {
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 780;
}

.talk-map-spider-lines {
  pointer-events: none;
}

.talk-map-spider-line {
  stroke: rgba(35, 37, 30, 0.34);
  stroke-dasharray: 3 4;
  stroke-linecap: round;
  stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
}

.home-timeline {
  display: grid;
  gap: 12px;
  padding: clamp(14px, 2.2vw, 22px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.76);
  box-shadow: var(--shadow);
}

.home-timeline-status {
  --timeline-status-color: var(--accent);
  position: relative;
  display: grid;
  gap: 3px;
  min-height: 0;
  max-height: 92px;
  margin: 0 2px;
  padding: 9px 78px 10px 12px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--timeline-status-color) 22%, rgba(215, 210, 199, 0.72));
  border-left: 4px solid var(--timeline-status-color);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.92);
  box-shadow: 0 8px 22px rgba(35, 37, 30, 0.08);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.32;
}

.home-timeline-status.kind-paper {
  --timeline-status-color: var(--timeline-paper, #2f536f);
}

.home-timeline-status.kind-affiliation {
  --timeline-status-color: var(--timeline-affiliation, #c7783d);
}

.home-timeline-status.kind-academic {
  --timeline-status-color: var(--timeline-academic, #574b68);
}

.home-timeline-status.kind-teaching {
  --timeline-status-color: var(--timeline-teaching, #687b32);
}

.home-timeline-status.kind-award {
  --timeline-status-color: var(--timeline-award, #a87428);
}

.home-timeline-status.kind-activity {
  --timeline-status-color: var(--timeline-activity, #8a4d34);
}

.home-timeline-status.kind-talk {
  --timeline-status-color: var(--timeline-talk, #2c6f63);
}

.home-timeline-status-kicker,
.home-timeline-status-title,
.home-timeline-status-meta {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-timeline-status-kicker {
  color: var(--timeline-status-color);
  font-size: 0.73rem;
  font-weight: 850;
  letter-spacing: 0;
}

.home-timeline-status-title {
  font-size: 0.95rem;
  font-weight: 820;
}

.home-timeline-status-meta {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
}

.home-timeline-status-nav {
  position: absolute;
  top: 50%;
  right: 10px;
  display: flex;
  gap: 5px;
  transform: translateY(-50%);
}

.home-timeline-status-control.timeline-control {
  width: 28px;
  height: 28px;
  border-color: color-mix(in srgb, var(--timeline-status-color) 28%, var(--line));
  border-radius: 7px;
  background: rgba(255, 253, 248, 0.92);
  color: var(--timeline-status-color);
  box-shadow: none;
}

.home-timeline-status-control.timeline-control:hover,
.home-timeline-status-control.timeline-control:focus-visible {
  border-color: var(--timeline-status-color);
  color: var(--timeline-status-color);
}

.home-timeline-status-control-icon {
  width: 14px;
  height: 14px;
}

.home-timeline-status-control.is-previous .home-timeline-status-control-icon {
  transform: rotate(180deg);
}

.home-timeline-detail {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(43, 52, 43, 0.14);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.84);
}

.home-timeline-detail-nav {
  display: flex;
  gap: 8px;
}

.home-timeline-detail-body {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.home-timeline-detail-kicker,
.home-timeline-detail-count {
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  line-height: 1.3;
  text-transform: uppercase;
}

.home-timeline-detail h3 {
  margin: 0;
  font-size: 1.13rem;
  line-height: 1.25;
}

.home-timeline-detail-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.home-timeline-detail .action-links {
  margin-top: 2px;
}

.home-timeline-detail-count {
  justify-self: end;
  white-space: nowrap;
}

.timeline-scroll-frame {
  position: relative;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(118, 118, 118, 0.62) rgba(118, 118, 118, 0.18);
  box-shadow:
    inset 24px 0 22px -22px rgba(42, 45, 39, 0.36),
    inset -24px 0 22px -22px rgba(42, 45, 39, 0.36);
}

.timeline-scroll-frame::-webkit-scrollbar {
  height: 11px;
}

.timeline-scroll-frame::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(118, 118, 118, 0.18);
}

.timeline-scroll-frame::-webkit-scrollbar-thumb {
  border: 3px solid rgba(255, 253, 248, 0.78);
  border-radius: 999px;
  background: rgba(118, 118, 118, 0.62);
}

.timeline-scroll-frame:focus-visible {
  outline: 2px solid rgba(44, 111, 99, 0.42);
  outline-offset: 3px;
}

.timeline-scroll-shell {
  position: relative;
  min-width: 0;
}

.timeline-scroll-shell::before,
.timeline-scroll-shell::after {
  position: absolute;
  top: 0;
  bottom: 10px;
  z-index: 11;
  width: 22px;
  content: "";
  pointer-events: none;
}

.timeline-scroll-shell::before {
  left: 0;
  background: linear-gradient(90deg, rgba(255, 253, 248, 0.88), rgba(255, 253, 248, 0));
}

.timeline-scroll-shell::after {
  right: 0;
  background: linear-gradient(270deg, rgba(255, 253, 248, 0.88), rgba(255, 253, 248, 0));
}

.timeline-scroll-shell .timeline-scroll-frame {
  width: 100%;
}

.timeline-scroll-shell .home-timeline-track .home-timeline-lane-label {
  visibility: hidden;
}

.timeline-lane-label-overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 12;
  width: 178px;
  overflow: hidden;
  pointer-events: none;
}

#home-timeline .timeline-lane-label-overlay {
  width: 184px;
  border-right: 1px solid rgba(43, 52, 43, 0.08);
  background: linear-gradient(90deg, rgba(255, 253, 248, 0.98) 0%, rgba(255, 253, 248, 0.92) 72%, rgba(255, 253, 248, 0) 100%);
  box-shadow: 18px 0 20px -24px rgba(35, 37, 30, 0.32);
}

.home-timeline-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.home-timeline-theme-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-top: -2px;
}

.paper-timeline-legend {
  justify-content: space-between;
}

.paper-timeline-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.paper-timeline-status::before {
  display: inline-block;
  width: 20px;
  height: 6px;
  border-radius: 999px;
  background: #2f536f;
  content: "";
}

.paper-timeline-status.status-preprint::after {
  display: inline-block;
  width: 9px;
  height: 9px;
  border: 2px solid #2f536f;
  border-radius: 50%;
  background: #fffdf8;
  content: "";
}

.paper-timeline-status.status-note::before {
  width: 10px;
  height: 10px;
  border: 2px solid #574b68;
  border-radius: 50%;
  background: #eee9f0;
}

.home-timeline-legend-item,
.home-timeline-theme-item,
.home-timeline-lane-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.home-timeline-legend-item::before,
.home-timeline-theme-item::before,
.home-timeline-lane-label::before {
  display: inline-block;
  width: 11px;
  height: 11px;
  border: 2px solid #2c6f63;
  background: #e7efe8;
  content: "";
}

.home-timeline-legend-item.kind-talk::before,
.home-timeline-lane-label.kind-talk::before {
  border-radius: 50%;
}

.home-timeline-legend-item.kind-paper::before,
.home-timeline-lane-label.kind-paper::before {
  width: 20px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: #2f536f;
}

.home-timeline-lane-label.kind-affiliation::before {
  width: 18px;
  height: 6px;
  border: 0;
  border-radius: 3px;
  background: #5f6b62;
}

.home-timeline-lane-label.kind-academic::before {
  width: 18px;
  height: 6px;
  border: 0;
  border-radius: 3px;
  background: #2f536f;
}

.home-timeline-lane-label.kind-teaching::before {
  width: 18px;
  height: 6px;
  border: 0;
  border-radius: 3px;
  background: #687b32;
}

.home-timeline-lane-label.kind-award::before {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 3px;
  background: #a87428;
  transform: rotate(45deg);
}

.home-timeline-legend-item.kind-activity::before,
.home-timeline-lane-label.kind-activity::before {
  width: 7px;
  height: 7px;
  border: 0;
  border-radius: 50%;
  background: #8a4d34;
}

.home-timeline-lane-label.kind-note::before {
  width: 9px;
  height: 9px;
  border-color: #574b68;
  border-radius: 50%;
  background: #eee9f0;
}

.home-timeline-theme-item {
  --theme-stroke: #5f6b62;
  --theme-bg: #eceee9;
  color: #4f5a52;
}

.home-timeline-theme-item::before {
  border-color: var(--theme-stroke);
  border-radius: 50%;
  background: var(--theme-bg);
}

.home-timeline-theme-item.theme-topos {
  --theme-stroke: #2c6f63;
  --theme-bg: #e7efe8;
}

.home-timeline-theme-item.theme-automata {
  --theme-stroke: #2f536f;
  --theme-bg: #e7edf2;
}

.home-timeline-theme-item.theme-games {
  --theme-stroke: #8a4d34;
  --theme-bg: #f3eadc;
}

.home-timeline-theme-item.theme-dynamical {
  --theme-stroke: #687b32;
  --theme-bg: #eaf0dc;
}

.home-timeline-theme-item.theme-geometry {
  --theme-stroke: #5d6f3c;
  --theme-bg: #edf1e6;
}

.home-timeline-theme-item.theme-combinatorics {
  --theme-stroke: #6f5d2f;
  --theme-bg: #f1ecd8;
}

.home-timeline-theme-item.theme-category {
  --theme-stroke: #574b68;
  --theme-bg: #eee9f0;
}

.home-timeline-theme-item.theme-logic {
  --theme-stroke: #7a4d78;
  --theme-bg: #f1e8ef;
}

.home-timeline-theme-item.theme-other {
  --theme-stroke: #5f6b62;
  --theme-bg: #eceee9;
}

.home-timeline-track {
  position: relative;
  width: max(100%, calc(var(--timeline-years, 8) * 168px));
  min-height: clamp(430px, 44vw, 520px);
  overflow: hidden;
  border: 1px solid rgba(43, 52, 43, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(44, 111, 99, 0.08) 1px, transparent 1px) 0 0 / 70px 100%,
    linear-gradient(180deg, #fffdf8 0%, #f3eee6 100%);
}

#home-timeline {
  --timeline-lane-step: 94px;
  --timeline-lane-top: 82px;
  --timeline-item-top: 104px;
  --timeline-paper: #2f536f;
  --timeline-paper-bg: #e7edf2;
  --timeline-affiliation: #c7783d;
  --timeline-affiliation-bg: #f4eadc;
  --timeline-academic: #574b68;
  --timeline-academic-bg: #eee9f0;
  --timeline-teaching: #687b32;
  --timeline-teaching-bg: #eaf0dc;
  --timeline-award: #a87428;
  --timeline-award-bg: #f4ecd6;
  --timeline-activity: #8a4d34;
  --timeline-activity-bg: #f3eadc;
  --timeline-talk: #2c6f63;
  --timeline-talk-bg: #e7efe8;
}

#home-timeline .home-timeline-track {
  width: max(100%, var(--timeline-track-width, 100%));
  min-height: 495px;
  background: linear-gradient(180deg, #fffdf8 0%, #f3eee6 100%);
}

#home-timeline .home-timeline-lane-label {
  max-width: 118px;
  line-height: 1.08;
  white-space: normal;
}

#home-timeline .home-timeline-lane-label::before,
#home-timeline .home-timeline-lane-label::after {
  content: none;
}

#home-timeline .home-timeline-lane-rail,
#home-timeline .home-timeline-year-row {
  left: 150px;
}

#home-timeline .home-timeline-node {
  left: calc(150px + (100% - 176px) * var(--x) / 100);
}

#home-timeline .home-timeline-interval-span {
  left: calc(150px + (100% - 176px) * var(--x-start) / 100);
  width: calc((100% - 176px) * (var(--x-end) - var(--x-start)) / 100);
  height: 4px;
  border-radius: 999px;
  box-shadow: 0 3px 9px rgba(35, 37, 30, 0.1);
}

#home-timeline .home-timeline-now {
  left: calc(150px + (100% - 176px) * var(--x) / 100);
}

#home-timeline .home-timeline-relation {
  position: absolute;
  top: calc(var(--relation-y) * 1px);
  left: calc(150px + (100% - 176px) * var(--x-left) / 100);
  z-index: 3;
  width: max(1px, calc((100% - 176px) * var(--x-width) / 100));
  height: max(12px, calc(var(--relation-height) * 1px));
  opacity: 0.62;
  pointer-events: none;
}

#home-timeline .home-timeline-talk-paper-relation {
  position: absolute;
  top: calc(var(--relation-y) * 1px);
  left: calc(150px + (100% - 176px) * var(--x-left) / 100);
  z-index: 3;
  width: max(1px, calc((100% - 176px) * var(--x-width) / 100));
  height: max(12px, calc(var(--relation-height) * 1px));
  opacity: 0;
  pointer-events: none;
  transition: opacity 140ms ease, filter 140ms ease;
}

#home-timeline .home-timeline-talk-paper-relation.is-highlighted {
  opacity: 0.78;
  filter: drop-shadow(0 0 4px rgba(44, 111, 99, 0.32));
}

#home-timeline .home-timeline-talk-paper-relation svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

#home-timeline .home-timeline-talk-paper-relation line {
  stroke: var(--timeline-talk);
  stroke-linecap: round;
  stroke-width: 0.82;
  vector-effect: non-scaling-stroke;
}

#home-timeline .home-timeline-talk-paper-relation.is-highlighted line {
  stroke-width: 1.18;
}

#home-timeline .home-timeline-relation svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

#home-timeline .home-timeline-relation line {
  stroke: rgba(83, 85, 82, 0.48);
  stroke-linecap: round;
  stroke-width: 1.1;
  vector-effect: non-scaling-stroke;
}

#home-timeline .home-year-tick::before {
  height: 455px;
}

#home-timeline .home-timeline-lane {
  top: calc(var(--timeline-lane-top) + var(--lane) * var(--timeline-lane-step));
  height: var(--timeline-lane-step);
}

#home-timeline .home-timeline-lane > .home-timeline-lane-label {
  top: 21px;
}

#home-timeline .home-timeline-node {
  top: calc(var(--timeline-item-top) + var(--lane) * var(--timeline-lane-step) + var(--offset) * 1px);
}

#home-timeline .home-timeline-interval-span {
  top: calc(var(--timeline-item-top) + var(--lane) * var(--timeline-lane-step) + var(--offset) * 1px);
}

#home-timeline .home-timeline-secondary-interval-span {
  top: calc(var(--timeline-item-top) + var(--lane) * var(--timeline-lane-step) + var(--offset) * 1px);
  left: calc(150px + (100% - 176px) * var(--x-start) / 100);
  width: calc((100% - 176px) * (var(--x-end) - var(--x-start)) / 100);
}

#home-timeline .timeline-lane-label-overlay .home-timeline-lane-label {
  top: calc(var(--timeline-lane-top) + var(--lane) * var(--timeline-lane-step) + 21px);
}

.paper-timeline-track {
  min-height: clamp(150px, 13vw, 190px);
}

.document-timeline-track {
  min-height: clamp(218px, 21vw, 260px);
}

.paper-timeline-track .home-year-tick::before {
  height: 94px;
}

.document-timeline-track .home-year-tick::before {
  height: 154px;
}

.home-timeline-year-row {
  position: absolute;
  top: 18px;
  left: 96px;
  right: 26px;
  height: 24px;
}

.home-year-tick {
  position: absolute;
  left: calc(100% * var(--x) / 100);
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1;
  transform: translateX(-50%);
}

.home-year-tick::before {
  position: absolute;
  top: 18px;
  left: 50%;
  width: 1px;
  height: 360px;
  background: rgba(43, 52, 43, 0.1);
  content: "";
}

.home-quarter-tick {
  color: transparent;
}

.home-quarter-tick::before {
  background: rgba(43, 52, 43, 0.075);
}

.home-timeline-now {
  position: absolute;
  top: 42px;
  bottom: 24px;
  left: calc(96px + (100% - 122px) * var(--x) / 100);
  z-index: 2;
  width: 1px;
  background: rgba(138, 77, 52, 0.36);
  color: #8a4d34;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.home-timeline-now::before {
  position: absolute;
  top: -16px;
  left: 50%;
  content: "Now";
  transform: translateX(-50%);
}

.home-timeline-lane {
  position: absolute;
  top: calc(62px + var(--lane) * 48px);
  left: 0;
  right: 0;
  height: 42px;
}

.home-timeline-lane-label {
  position: absolute;
  top: 50%;
  left: 18px;
  z-index: 3;
  transform: translateY(-50%);
}

.timeline-lane-label-overlay .home-timeline-lane-label {
  visibility: visible;
  top: calc(62px + var(--lane) * 48px + 21px);
  z-index: 1;
  width: max-content;
  max-width: 118px;
  padding: 3px 9px 3px 0;
  border-radius: 0 8px 8px 0;
  background: linear-gradient(90deg, rgba(255, 253, 248, 0.98) 0%, rgba(255, 253, 248, 0.94) 78%, rgba(255, 253, 248, 0) 100%);
  line-height: 1.08;
  white-space: normal;
}

#home-timeline .timeline-lane-label-overlay .home-timeline-lane-label {
  box-sizing: border-box;
  max-width: 154px;
  min-height: 34px;
  padding: 7px 11px 7px 12px;
  border-left: 4px solid var(--lane-label-color, var(--accent));
  background: rgba(255, 253, 248, 0.96);
  box-shadow: 0 6px 18px rgba(35, 37, 30, 0.1);
}

.home-timeline-lane-rail {
  position: absolute;
  top: 50%;
  left: 96px;
  right: 26px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(44, 111, 99, 0.32), rgba(199, 120, 61, 0.24));
}

.home-timeline-interval-span {
  --theme-stroke: #5f6b62;
  --theme-bg: #eceee9;
  position: absolute;
  top: calc(82px + var(--lane) * 48px + var(--offset) * 1px);
  left: calc(96px + (100% - 122px) * var(--x-start) / 100);
  z-index: 4;
  width: calc((100% - 122px) * (var(--x-end) - var(--x-start)) / 100);
  min-width: 14px;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, var(--theme-stroke) 72%, var(--theme-bg));
  box-shadow: 0 4px 12px rgba(35, 37, 30, 0.12);
  text-decoration: none;
  transform: translateY(-50%);
  transition: box-shadow 160ms ease, transform 160ms ease;
}

.home-timeline-secondary-interval-span {
  --theme-stroke: #5f6b62;
  --theme-bg: #eceee9;
  position: absolute;
  top: calc(82px + var(--lane) * 48px + var(--offset) * 1px);
  left: calc(96px + (100% - 122px) * var(--x-start) / 100);
  z-index: 3;
  width: calc((100% - 122px) * (var(--x-end) - var(--x-start)) / 100);
  min-width: 14px;
  height: 2px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--theme-stroke) 78%, var(--theme-bg));
  text-decoration: none;
  transform: translateY(-50%);
}

.home-timeline-secondary-interval-span.kind-affiliation {
  --theme-stroke: var(--timeline-affiliation);
  --theme-bg: var(--timeline-affiliation-bg);
}

.home-timeline-secondary-interval-span.kind-academic {
  --theme-stroke: var(--timeline-academic);
  --theme-bg: var(--timeline-academic-bg);
}

.home-timeline-secondary-interval-span.kind-teaching {
  --theme-stroke: var(--timeline-teaching);
  --theme-bg: var(--timeline-teaching-bg);
}

.home-timeline-affiliation-span {
  --theme-stroke: #5f6b62;
  --theme-bg: #eceee9;
  height: 7px;
  border-radius: 3px;
  background: linear-gradient(90deg, #5f6b62, #6f5d2f);
}

.home-timeline-academic-span {
  --theme-stroke: #2f536f;
  --theme-bg: #e7edf2;
  height: 7px;
  border-radius: 3px;
  background: linear-gradient(90deg, #2f536f, #574b68);
}

.home-timeline-teaching-span {
  --theme-stroke: #687b32;
  --theme-bg: #eaf0dc;
  height: 7px;
  border-radius: 3px;
  background: linear-gradient(90deg, #687b32, #8a4d34);
}

.home-timeline-paper-span::before,
.home-timeline-paper-span::after,
.home-timeline-affiliation-span::before,
.home-timeline-affiliation-span::after,
.home-timeline-academic-span::before,
.home-timeline-academic-span::after,
.home-timeline-teaching-span::before,
.home-timeline-teaching-span::after {
  position: absolute;
  top: 50%;
  width: 8px;
  height: 8px;
  border: 2px solid var(--theme-stroke);
  border-radius: 3px;
  background: var(--theme-bg);
  content: "";
  transform: translate(-50%, -50%);
}

.home-timeline-affiliation-span::before,
.home-timeline-academic-span::before,
.home-timeline-teaching-span::before,
.home-timeline-paper-span::before {
  left: 4px;
}

.home-timeline-affiliation-span::after,
.home-timeline-academic-span::after,
.home-timeline-teaching-span::after,
.home-timeline-paper-span::after {
  left: calc(100% - 4px);
}

.home-timeline-paper-span.is-preprint::after {
  border-radius: 50%;
  background: #fffdf8;
}

.home-timeline-affiliation-span::before,
.home-timeline-affiliation-span::after,
.home-timeline-academic-span::before,
.home-timeline-academic-span::after,
.home-timeline-teaching-span::before,
.home-timeline-teaching-span::after {
  border-color: var(--theme-stroke);
  border-radius: 50%;
  background: #fffdf8;
}

.home-timeline-affiliation-span.is-current::after,
.home-timeline-teaching-span.is-current::after {
  border-style: dashed;
}

#home-timeline .home-timeline-interval-span::before,
#home-timeline .home-timeline-interval-span::after {
  display: none;
}

.home-timeline-paper-span.theme-topos {
  --theme-stroke: #2c6f63;
  --theme-bg: #e7efe8;
}

.home-timeline-paper-span.theme-automata {
  --theme-stroke: #2f536f;
  --theme-bg: #e7edf2;
}

.home-timeline-paper-span.theme-games {
  --theme-stroke: #8a4d34;
  --theme-bg: #f3eadc;
}

.home-timeline-paper-span.theme-dynamical {
  --theme-stroke: #687b32;
  --theme-bg: #eaf0dc;
}

.home-timeline-paper-span.theme-geometry {
  --theme-stroke: #5d6f3c;
  --theme-bg: #edf1e6;
}

.home-timeline-paper-span.theme-combinatorics {
  --theme-stroke: #6f5d2f;
  --theme-bg: #f1ecd8;
}

.home-timeline-paper-span.theme-category {
  --theme-stroke: #574b68;
  --theme-bg: #eee9f0;
}

.home-timeline-paper-span.theme-logic {
  --theme-stroke: #7a4d78;
  --theme-bg: #f1e8ef;
}

.home-timeline-paper-span.theme-other {
  --theme-stroke: #5f6b62;
  --theme-bg: #eceee9;
}

.home-timeline-paper-span:hover,
.home-timeline-paper-span:focus-visible,
.home-timeline-paper-span.is-selected {
  z-index: 8;
  box-shadow: 0 0 0 7px color-mix(in srgb, var(--theme-stroke) 16%, transparent), 0 12px 24px rgba(35, 37, 30, 0.16);
  outline: 0;
  transform: translateY(-50%) scaleY(1.3);
}

.home-timeline-affiliation-span:hover,
.home-timeline-affiliation-span:focus-visible,
.home-timeline-affiliation-span.is-selected,
.home-timeline-academic-span:hover,
.home-timeline-academic-span:focus-visible,
.home-timeline-academic-span.is-selected,
.home-timeline-teaching-span:hover,
.home-timeline-teaching-span:focus-visible,
.home-timeline-teaching-span.is-selected {
  z-index: 8;
  box-shadow: 0 0 0 7px rgba(95, 107, 98, 0.14), 0 12px 24px rgba(35, 37, 30, 0.16);
  outline: 0;
  transform: translateY(-50%) scaleY(1.3);
}

.home-timeline-node {
  --theme-stroke: #5f6b62;
  --theme-bg: #eceee9;
  position: absolute;
  top: calc(82px + var(--lane) * 48px + var(--offset) * 1px);
  left: calc(96px + (100% - 122px) * var(--x) / 100);
  z-index: 4;
  display: block;
  width: 13px;
  height: 13px;
  border: 2px solid var(--theme-stroke);
  background: var(--theme-bg);
  box-shadow: 0 4px 10px rgba(35, 37, 30, 0.13);
  text-decoration: none;
  transform: translate(-50%, -50%);
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.home-timeline-node.kind-talk {
  width: 14px;
  height: 14px;
  border-radius: 50%;
}

#home-timeline .home-timeline-node.kind-talk.talk-minor {
  width: 9px;
  height: 9px;
  border-width: 1.6px;
  opacity: 0.82;
}

.home-timeline-node.kind-activity {
  width: 7px;
  height: 7px;
  border: 0;
  border-radius: 50%;
  background: var(--theme-stroke);
  opacity: 0.82;
}

#home-timeline .home-timeline-node.kind-activity.activity-minor {
  width: 5px;
  height: 5px;
  opacity: 0.74;
}

#home-timeline .home-timeline-node.kind-activity.activity-category-attendance {
  --theme-stroke: #356f9d;
  --theme-bg: #e5eef6;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--theme-stroke);
  opacity: 0.88;
}

#home-timeline .home-timeline-node.kind-activity.activity-category-milestone {
  width: 8px;
  height: 8px;
  border: 1.7px solid var(--theme-stroke);
  border-radius: 2px;
  background: var(--theme-bg);
  opacity: 0.9;
  transform: translate(-50%, -50%) rotate(45deg);
}

#home-timeline .home-timeline-node.kind-activity.activity-category-writing-media {
  width: 7.5px;
  height: 7.5px;
  border: 1.5px solid var(--theme-stroke);
  border-radius: 2px;
  background: var(--theme-bg);
  opacity: 0.9;
}

.home-timeline-node.kind-activity.activity-categories-tokyo,
#home-timeline .home-timeline-node.kind-activity.activity-categories-tokyo.activity-minor {
  --theme-stroke: #5f63a9;
  --theme-bg: #ecebfa;
  width: 12px;
  height: 12px;
  border: 2px solid var(--theme-stroke);
  border-radius: 3px;
  background: var(--theme-bg);
  box-shadow: 0 4px 10px rgba(35, 37, 30, 0.16);
  clip-path: none;
  filter: none;
  opacity: 1;
}

#home-timeline .home-timeline-node.kind-activity.activity-categories-tokyo.activity-categories-tokyo-private,
#home-timeline .home-timeline-node.kind-activity.activity-categories-tokyo.activity-minor.activity-categories-tokyo-private {
  width: 8.5px;
  height: 8.5px;
  border-width: 1.4px;
  border-radius: 2px;
}

.home-timeline-node.kind-award {
  --theme-stroke: #a87428;
  --theme-bg: #f4ecd6;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  transform: translate(-50%, -50%) rotate(45deg);
}

.home-timeline-node.kind-teaching {
  --theme-stroke: #687b32;
  --theme-bg: #eaf0dc;
  width: 11px;
  height: 11px;
  border-radius: 4px;
}

.home-timeline-node.kind-note {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.home-timeline-node.theme-topos {
  --theme-stroke: #2c6f63;
  --theme-bg: #e7efe8;
}

.home-timeline-node.theme-automata {
  --theme-stroke: #2f536f;
  --theme-bg: #e7edf2;
}

.home-timeline-node.theme-games {
  --theme-stroke: #8a4d34;
  --theme-bg: #f3eadc;
}

.home-timeline-node.theme-dynamical {
  --theme-stroke: #687b32;
  --theme-bg: #eaf0dc;
}

.home-timeline-node.theme-geometry {
  --theme-stroke: #5d6f3c;
  --theme-bg: #edf1e6;
}

.home-timeline-node.theme-combinatorics {
  --theme-stroke: #6f5d2f;
  --theme-bg: #f1ecd8;
}

.home-timeline-node.theme-category {
  --theme-stroke: #574b68;
  --theme-bg: #eee9f0;
}

.home-timeline-node.theme-logic {
  --theme-stroke: #7a4d78;
  --theme-bg: #f1e8ef;
}

.home-timeline-node.theme-other {
  --theme-stroke: #5f6b62;
  --theme-bg: #eceee9;
}

#home-timeline .home-timeline-lane.kind-paper {
  --lane-stroke: var(--timeline-paper);
}

#home-timeline .home-timeline-lane.kind-affiliation {
  --lane-stroke: var(--timeline-affiliation);
}

#home-timeline .home-timeline-lane.kind-academic {
  --lane-stroke: var(--timeline-academic);
}

#home-timeline .home-timeline-lane.kind-teaching {
  --lane-stroke: var(--timeline-teaching);
}

#home-timeline .home-timeline-lane.kind-award {
  --lane-stroke: var(--timeline-award);
}

#home-timeline .home-timeline-lane.kind-activity {
  --lane-stroke: var(--timeline-activity);
}

#home-timeline .home-timeline-lane.kind-talk {
  --lane-stroke: var(--timeline-talk);
}

#home-timeline .home-timeline-lane-rail {
  top: var(--lane-rail-top, calc(var(--timeline-item-top) - var(--timeline-lane-top) + (var(--timeline-lane-step) / 2) - 0.5px));
  display: none;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    color-mix(in srgb, var(--lane-stroke, #5f6b62) 22%, transparent) 12%,
    color-mix(in srgb, var(--lane-stroke, #5f6b62) 14%, transparent) 100%
  );
}

#home-timeline .home-timeline-lane-label.kind-paper {
  color: var(--timeline-paper);
}

#home-timeline .home-timeline-lane-label.kind-affiliation {
  color: var(--timeline-affiliation);
}

#home-timeline .home-timeline-lane-label.kind-academic {
  color: var(--timeline-academic);
}

#home-timeline .home-timeline-lane-label.kind-affiliation-academic {
  color: var(--timeline-affiliation);
  font-size: 0.66rem;
  line-height: 1;
  text-shadow:
    -1px -1px 0 #fffdf8,
    0 -1px 0 #fffdf8,
    1px -1px 0 #fffdf8,
    -1px 0 0 #fffdf8,
    1px 0 0 #fffdf8,
    -1px 1px 0 #fffdf8,
    0 1px 0 #fffdf8,
    1px 1px 0 #fffdf8,
    0 2px 5px rgba(35, 37, 30, 0.2);
}

#home-timeline .home-timeline-lane-label.kind-teaching {
  color: var(--timeline-teaching);
}

#home-timeline .home-timeline-lane-label.kind-award {
  color: var(--timeline-award);
}

#home-timeline .home-timeline-lane-label.kind-activity {
  color: var(--timeline-activity);
}

#home-timeline .home-timeline-lane-label.kind-talk {
  color: var(--timeline-talk);
}

#home-timeline .home-timeline-lane-label.kind-activity-award-talk {
  color: var(--timeline-activity);
  text-shadow:
    -1px -1px 0 #fffdf8,
    0 -1px 0 #fffdf8,
    1px -1px 0 #fffdf8,
    -1px 0 0 #fffdf8,
    1px 0 0 #fffdf8,
    -1px 1px 0 #fffdf8,
    0 1px 0 #fffdf8,
    1px 1px 0 #fffdf8,
    0 2px 5px rgba(35, 37, 30, 0.2);
}

#home-timeline .home-timeline-lane-label.kind-paper,
#home-timeline .home-timeline-lane-label.kind-affiliation-academic,
#home-timeline .home-timeline-lane-label.kind-activity-award-talk {
  color: #24231f;
  text-shadow:
    -1px -1px 0 #fffdf8,
    0 -1px 0 #fffdf8,
    1px -1px 0 #fffdf8,
    -1px 0 0 #fffdf8,
    1px 0 0 #fffdf8,
    -1px 1px 0 #fffdf8,
    0 1px 0 #fffdf8,
    1px 1px 0 #fffdf8,
    0 2px 5px rgba(35, 37, 30, 0.18);
}

#home-timeline .timeline-lane-label-overlay .home-timeline-lane-label.kind-paper,
#home-timeline .timeline-lane-label-overlay .home-timeline-lane-label.kind-affiliation-academic,
#home-timeline .timeline-lane-label-overlay .home-timeline-lane-label.kind-activity-award-talk {
  color: #24231f;
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0;
  text-shadow: none;
}

#home-timeline .timeline-lane-label-overlay .home-timeline-lane-label.kind-paper {
  --lane-label-color: var(--timeline-paper);
}

#home-timeline .timeline-lane-label-overlay .home-timeline-lane-label.kind-affiliation-academic {
  --lane-label-color: var(--timeline-affiliation);
}

#home-timeline .timeline-lane-label-overlay .home-timeline-lane-label.kind-activity-award-talk {
  --lane-label-color: var(--timeline-activity);
}

#home-timeline .home-timeline-paper-span {
  --theme-stroke: var(--timeline-paper);
  --theme-bg: var(--timeline-paper-bg);
}

#home-timeline .home-timeline-affiliation-span {
  --theme-stroke: var(--timeline-affiliation);
  --theme-bg: var(--timeline-affiliation-bg);
  background: color-mix(in srgb, var(--timeline-affiliation) 78%, var(--timeline-affiliation-bg));
}

#home-timeline .home-timeline-academic-span {
  --theme-stroke: var(--timeline-academic);
  --theme-bg: var(--timeline-academic-bg);
  background: color-mix(in srgb, var(--timeline-academic) 78%, var(--timeline-academic-bg));
}

#home-timeline .home-timeline-teaching-span {
  --theme-stroke: var(--timeline-teaching);
  --theme-bg: var(--timeline-teaching-bg);
  background: color-mix(in srgb, var(--timeline-teaching) 78%, var(--timeline-teaching-bg));
}

#home-timeline .home-timeline-interval-span.is-major-position {
  height: 10px;
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--theme-stroke) 18%, transparent),
    0 5px 12px rgba(35, 37, 30, 0.16);
}

#home-timeline .home-timeline-node.kind-teaching {
  --theme-stroke: var(--timeline-teaching);
  --theme-bg: var(--timeline-teaching-bg);
}

#home-timeline .home-timeline-node.kind-award {
  --theme-stroke: var(--timeline-award);
  --theme-bg: var(--timeline-award-bg);
}

#home-timeline .home-timeline-node.kind-activity {
  --theme-stroke: var(--timeline-activity);
  --theme-bg: var(--timeline-activity-bg);
}

#home-timeline .home-timeline-node.kind-talk {
  --theme-stroke: var(--timeline-talk);
  --theme-bg: var(--timeline-talk-bg);
}

#home-timeline .home-timeline-detail-kicker.kind-paper {
  color: var(--timeline-paper);
}

#home-timeline .home-timeline-detail-kicker.kind-affiliation {
  color: var(--timeline-affiliation);
}

#home-timeline .home-timeline-detail-kicker.kind-academic {
  color: var(--timeline-academic);
}

#home-timeline .home-timeline-detail-kicker.kind-teaching {
  color: var(--timeline-teaching);
}

#home-timeline .home-timeline-detail-kicker.kind-award {
  color: var(--timeline-award);
}

#home-timeline .home-timeline-detail-kicker.kind-activity {
  color: var(--timeline-activity);
}

#home-timeline .home-timeline-detail-kicker.kind-talk {
  color: var(--timeline-talk);
}

#home-timeline .home-timeline-affiliation-span:hover,
#home-timeline .home-timeline-affiliation-span:focus-visible,
#home-timeline .home-timeline-affiliation-span.is-selected,
#home-timeline .home-timeline-academic-span:hover,
#home-timeline .home-timeline-academic-span:focus-visible,
#home-timeline .home-timeline-academic-span.is-selected,
#home-timeline .home-timeline-teaching-span:hover,
#home-timeline .home-timeline-teaching-span:focus-visible,
#home-timeline .home-timeline-teaching-span.is-selected {
  box-shadow: 0 0 0 7px color-mix(in srgb, var(--theme-stroke) 16%, transparent), 0 12px 24px rgba(35, 37, 30, 0.16);
}

.home-timeline-node:hover,
.home-timeline-node:focus-visible,
.home-timeline-node.is-selected {
  z-index: 8;
  box-shadow: 0 0 0 7px color-mix(in srgb, var(--theme-stroke) 16%, transparent), 0 12px 24px rgba(35, 37, 30, 0.16);
  outline: 0;
  transform: translate(-50%, -50%) scale(1.45);
}

.home-timeline-node.kind-award:hover,
.home-timeline-node.kind-award:focus-visible,
.home-timeline-node.kind-award.is-selected {
  transform: translate(-50%, -50%) rotate(45deg) scale(1.45);
}

#home-timeline .home-timeline-node.kind-activity.activity-category-milestone:hover,
#home-timeline .home-timeline-node.kind-activity.activity-category-milestone:focus-visible,
#home-timeline .home-timeline-node.kind-activity.activity-category-milestone.is-selected {
  transform: translate(-50%, -50%) rotate(45deg) scale(1.45);
}

.talk-items {
  display: grid;
  gap: 13px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.talk-items li {
  position: relative;
  padding-bottom: 13px;
  border-bottom: 1px solid rgba(215, 210, 199, 0.75);
  border-radius: 8px;
  transition: background 180ms ease, box-shadow 180ms ease;
}

.talk-items li:hover,
.talk-items li:focus-within {
  background: rgba(255, 250, 241, 0.78);
  box-shadow: inset 4px 0 0 rgba(199, 120, 61, 0.48), 0 8px 20px rgba(86, 66, 38, 0.08);
}

.talk-items li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.talk-items li.is-current {
  margin: -8px -10px 8px;
  padding: 8px 10px 16px;
  border-radius: 8px;
  background: #fffaf1;
  box-shadow: inset 4px 0 0 rgba(199, 120, 61, 0.72);
}

.talk-item-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(104px, 10vw, 136px);
  align-items: start;
  gap: 14px 18px;
}

.talk-thumb {
  display: block;
  grid-column: 2;
  justify-self: end;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid rgba(43, 52, 43, 0.14);
  border-radius: 8px;
  background: #f7f3ec;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.talk-items li:hover .talk-thumb,
.talk-items li:focus-within .talk-thumb,
.talk-items li.is-current .talk-thumb {
  border-color: rgba(199, 120, 61, 0.42);
  box-shadow: 0 10px 22px rgba(86, 66, 38, 0.14);
}

.talk-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  background: #fffdf8;
  object-fit: contain;
}

.talk-item-body {
  grid-column: 1;
  min-width: 0;
}

.talk-title {
  display: flex;
  align-items: start;
  gap: 8px;
  font-weight: 700;
}

.talk-type-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 2px 7px;
  border: 1px solid rgba(43, 52, 43, 0.13);
  border-radius: 999px;
  background: rgba(247, 243, 236, 0.9);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
  line-height: 1;
}

.talk-type-badge-expository {
  border-color: rgba(199, 120, 61, 0.26);
  background: rgba(245, 227, 212, 0.72);
  color: #8f512a;
}

.talk-title .action-links-icon-only {
  flex: 0 0 auto;
  gap: 4px;
  margin-top: -2px;
  margin-left: 1px;
}

.talk-title .action-link-icon-only {
  width: 22px;
  min-width: 22px;
  min-height: 22px;
  padding: 2px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
}

.talk-title .action-link-icon-only .action-link-icon {
  width: 14px;
  height: 14px;
}

.talk-title .action-link-icon-only:hover,
.talk-title .action-link-icon-only:focus-visible {
  background: rgba(199, 120, 61, 0.11);
  color: var(--accent);
}

.talk-title .title-copy-link {
  margin-top: -5px;
}

.talk-title-icon {
  width: 16px;
  height: 16px;
  margin-top: 1px;
  color: var(--accent-2);
}

.talk-title a {
  color: var(--ink);
  text-decoration: none;
}

.talk-title a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.talk-venue {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.talk-items .action-links {
  margin-top: 10px;
}

.talk-filter-row .note-search-label {
  width: min(340px, 100%);
}

.talk-slide-item.is-slide-only .talk-title-icon {
  color: var(--accent);
}

.talk-material-anchor {
  position: relative;
  top: -78px;
  display: block;
  width: 0;
  height: 0;
  overflow: hidden;
}

.talk-material-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 11px;
}

.talk-material-strip-label {
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.76rem;
  font-weight: 760;
}

.talk-material-chip {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  min-height: 30px;
  padding: 5px 8px;
  border: 1px solid rgba(43, 52, 43, 0.13);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.66);
  color: var(--ink);
}

.talk-material-chip-icon {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  color: var(--accent-2);
}

.talk-material-chip-kind {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 760;
}

.talk-material-chip-note {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.25;
}

.talk-material-chip-link,
.talk-material-chip-action {
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 720;
  line-height: 1.2;
  text-decoration: none;
}

.talk-material-chip-action {
  padding-left: 8px;
  border-left: 1px solid rgba(43, 52, 43, 0.13);
}

.talk-material-chip-link:hover,
.talk-material-chip-action:hover {
  color: var(--accent);
  text-decoration: underline;
}

.talk-material-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.talk-material-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px 14px;
  padding: 10px 12px;
  border: 1px solid rgba(43, 52, 43, 0.13);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.72);
}

.talk-material-body {
  min-width: 0;
}

.talk-material-title {
  display: flex;
  align-items: start;
  gap: 7px;
  font-weight: 700;
}

.talk-material-title a {
  color: var(--ink);
  text-decoration: none;
}

.talk-material-title a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.talk-material-kind {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 2px 7px;
  border: 1px solid rgba(43, 52, 43, 0.13);
  border-radius: 999px;
  background: rgba(247, 243, 236, 0.86);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
}

.talk-material-icon {
  width: 15px;
  height: 15px;
  margin-top: 2px;
  color: var(--accent-2);
}

.talk-material-meta {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.88rem;
}

.talk-material-item .action-links {
  margin-top: 0;
  justify-content: flex-end;
}

.note-grid,
.activity-grid,
.link-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.note-item,
.activity-column,
.link-column {
  padding: clamp(16px, 2vw, 20px);
}

.icon-list {
  list-style: none;
  padding-left: 0;
}

.icon-list-item,
.activity-list-item {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.list-item-icon,
.activity-item-icon {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: var(--accent-2);
}

.icon-list-body,
.activity-item-body {
  min-width: 0;
  overflow-wrap: anywhere;
}

.link-date {
  display: inline;
  margin-left: 0.45em;
  color: var(--text-muted);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0;
  white-space: nowrap;
}

.note-thumbnail {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  min-height: 128px;
  margin: 0 0 14px;
  overflow: hidden;
  border: 1px solid rgba(43, 52, 43, 0.14);
  border-radius: 8px;
  background: #f7f3ec;
  color: var(--ink);
  text-decoration: none;
}

.note-thumbnail::before {
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(28, 33, 29, 0.1);
  border-radius: 5px;
  background: rgba(255, 253, 248, 0.68);
  content: "";
}

.note-thumbnail.has-image {
  background: #fffdf8;
}

.note-thumbnail.has-image::before {
  inset: 0;
  z-index: 1;
  border: 0;
  border-radius: 0;
  background: linear-gradient(180deg, rgba(255, 253, 248, 0) 38%, rgba(255, 253, 248, 0.9) 100%);
  pointer-events: none;
}

.note-thumbnail > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #fffdf8;
  object-fit: contain;
}

.note-thumbnail.topos {
  background: linear-gradient(135deg, #e7efe8 0%, #fffdf8 55%, #dce8e3 100%);
}

.note-thumbnail.automata {
  background: linear-gradient(135deg, #e7edf2 0%, #fffdf8 52%, #dde7ef 100%);
}

.note-thumbnail.games {
  background: linear-gradient(135deg, #f3e6d8 0%, #fffdf8 54%, #ead7c9 100%);
}

.note-thumbnail.category,
.note-thumbnail.algebra {
  background: linear-gradient(135deg, #ebe7ef 0%, #fffdf8 54%, #ded7e5 100%);
}

.note-thumbnail.logic {
  background: linear-gradient(135deg, #e9edf1 0%, #fffdf8 54%, #d9e0e7 100%);
}

.note-thumbnail.combinatorics {
  background: linear-gradient(135deg, #e8eee1 0%, #fffdf8 54%, #d8e2cb 100%);
}

.note-thumbnail.number {
  background: linear-gradient(135deg, #f1ead8 0%, #fffdf8 52%, #e4dcc7 100%);
}

.note-thumbnail.archive {
  background: linear-gradient(135deg, #ece9e1 0%, #fffdf8 52%, #d9d6ce 100%);
}

.note-thumb-art,
.note-thumb-body {
  position: absolute;
  z-index: 1;
}

.note-thumb-art {
  inset: 18px 18px 18px 44%;
}

.note-dot {
  position: absolute;
  width: 12px;
  height: 12px;
  border: 2px solid #223229;
  border-radius: 50%;
  background: var(--paper);
}

.note-dot.a {
  top: 16%;
  left: 14%;
}

.note-dot.b {
  top: 54%;
  left: 54%;
}

.note-dot.c {
  top: 24%;
  left: 78%;
}

.note-line {
  position: absolute;
  height: 2px;
  border-radius: 999px;
  background: rgba(44, 111, 99, 0.74);
  transform-origin: left center;
}

.note-line.one {
  top: 32%;
  left: 22%;
  width: 46%;
  transform: rotate(34deg);
}

.note-line.two {
  top: 31%;
  left: 58%;
  width: 32%;
  transform: rotate(-48deg);
}

.note-thumb-body {
  inset: 24px 42% 22px 28px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  align-content: stretch;
  gap: 8px;
}

.note-thumbnail.has-image .note-thumb-body {
  inset: auto 12px 12px;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 4px 10px;
  max-height: calc(100% - 24px);
  overflow: hidden;
  padding: 10px 12px;
  border: 1px solid rgba(43, 52, 43, 0.1);
  border-radius: 6px;
  background: rgba(255, 253, 248, 0.9);
  box-shadow: 0 10px 26px rgba(35, 37, 30, 0.11);
}

.note-thumb-kind,
.note-thumb-meta {
  color: var(--accent-2);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.note-thumbnail.has-image .note-thumb-kind {
  grid-column: 1 / -1;
}

.note-thumb-kind[data-icon],
.note-kind-badge[data-icon] {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.note-thumb-kind[data-icon]::before,
.note-kind-badge[data-icon]::before {
  content: attr(data-icon);
  font-size: 1rem;
  letter-spacing: 0;
  line-height: 1;
}

.note-kind-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15em;
  height: 1.15em;
  flex: 0 0 auto;
}

.note-thumb-kind.is-symbol,
.note-kind-badge.is-symbol {
  font-size: 1rem;
  letter-spacing: 0;
  line-height: 1;
  text-transform: none;
}

.note-kind-badge.note-cloud-badge {
  border-color: rgba(47, 83, 111, 0.28);
  background: #e7edf2;
  color: #2f536f;
}

.note-thumbnail.has-image .note-thumb-meta {
  justify-self: end;
}

.note-thumb-title {
  display: -webkit-box;
  align-self: center;
  overflow: hidden;
  color: #1f2721;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.18;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.note-thumbnail.has-image .note-thumb-title {
  min-width: 0;
  -webkit-line-clamp: 2;
  font-size: 0.9rem;
}

.note-thumbnail:hover {
  border-color: rgba(44, 111, 99, 0.42);
}

.note-item h3 {
  display: flex;
  align-items: start;
  gap: 6px;
  margin-bottom: 8px;
}

.note-item h3 .title-copy-link {
  margin-top: -3px;
}

.note-item p {
  margin: 0 0 14px;
  color: var(--muted);
}

.slide-source-title {
  font-size: 0.9rem;
}

.speculative-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.32fr) minmax(0, 1fr);
  gap: clamp(16px, 3vw, 32px);
  align-items: start;
}

.speculative-sidebar {
  position: sticky;
  top: 82px;
  padding: clamp(16px, 2vw, 20px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.72);
  box-shadow: 0 10px 28px rgba(42, 45, 39, 0.04);
}

.speculative-sidebar h2 {
  font-size: 1.55rem;
}

.speculative-search {
  margin-top: 16px;
  width: 100%;
}

.speculative-index-list {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.speculative-index-list li {
  display: grid;
  gap: 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(215, 210, 199, 0.72);
}

.speculative-index-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.speculative-index-list a {
  color: var(--ink);
  font-weight: 700;
  line-height: 1.28;
  text-decoration: none;
}

.speculative-index-list a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.speculative-index-list span {
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.78rem;
}

.speculative-post-list {
  display: grid;
  gap: 14px;
}

.speculative-post {
  scroll-margin-top: 92px;
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.78);
  box-shadow: 0 10px 28px rgba(42, 45, 39, 0.04);
}

.speculative-post-head {
  display: grid;
  gap: 8px;
}

.speculative-date {
  margin: 0;
  color: var(--accent-2);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.speculative-post h2 {
  font-size: 1.9rem;
}

.speculative-post h2 a {
  color: var(--ink);
  text-decoration: none;
}

.speculative-post h2 a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.speculative-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.speculative-meta > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 4px 10px;
  border: 1px solid rgba(44, 111, 99, 0.26);
  border-radius: 999px;
  background: var(--soft);
  color: #31463d;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.82rem;
}

.speculative-meta .speculative-status {
  border-color: rgba(47, 83, 111, 0.28);
  background: #e7edf2;
  color: #2f536f;
  font-weight: 800;
}

.speculative-abstract {
  margin: 18px 0 0;
  padding-left: 16px;
  border-left: 3px solid rgba(44, 111, 99, 0.45);
  color: #36423a;
  font-size: 1.05rem;
}

.speculative-body {
  margin-top: 18px;
}

.speculative-body p {
  margin: 0;
  color: #333d35;
}

.speculative-body p + p {
  margin-top: 12px;
}

.speculative-questions {
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(43, 52, 43, 0.14);
  border-radius: 8px;
  background: rgba(230, 237, 232, 0.5);
}

.speculative-questions h3 {
  margin-bottom: 10px;
  color: var(--accent-2);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.speculative-questions ul {
  margin: 0;
  padding-left: 1.1rem;
}

.speculative-questions li + li {
  margin-top: 8px;
}

.speculative-post .action-links {
  margin-top: 18px;
}

.activity-column h3,
.link-column h3 {
  margin-bottom: 16px;
}

.activity-column ul,
.link-column ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.activity-column li + li,
.link-column li + li {
  margin-top: 10px;
}

.activity-date {
  display: block;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
}

.muted {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
}

@media (max-width: 760px) {
  .site-search-result.has-thumbnail,
  .talk-item-shell {
    grid-template-columns: 1fr;
  }

  .talk-material-item {
    grid-template-columns: 1fr;
  }

  .talk-material-item .action-links {
    justify-content: flex-start;
  }

  .site-search-media,
  .talk-thumb {
    grid-column: 1;
    justify-self: start;
    max-width: 220px;
  }
}

.automation-panel p:last-child {
  margin-bottom: 0;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding: 24px clamp(16px, 4vw, 64px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer p {
  margin: 0;
}

.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
}

.site-legacy-link {
  color: color-mix(in srgb, var(--muted) 78%, transparent);
  font-size: 0.82rem;
  text-decoration: none;
}

.site-legacy-link:hover {
  color: var(--muted);
  text-decoration: underline;
}

.site-public-url {
  max-width: min(100%, 48rem);
  overflow-wrap: anywhere;
}

.empty-state {
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
}

@media (min-width: 1600px) {
  .site-header {
    padding-inline: clamp(64px, 5vw, 128px);
  }

  .section {
    width: min(1520px, calc(100% - 112px));
  }

  .research-map-layout {
    grid-template-columns: minmax(280px, 0.28fr) minmax(0, 1.72fr);
  }

  .categories-tokyo-feature {
    grid-template-columns: minmax(340px, 0.34fr) minmax(0, 1fr);
  }

  .talk-map {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.28fr);
  }

  .explore-grid {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  }

  .profile-grid,
  .note-grid,
  .activity-grid,
  .link-columns {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  }

  .publication-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .web-app-grid {
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  }

  .plan-list,
  .problem-list {
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  }
}

@media (min-width: 2400px) {
  .site-header {
    padding-inline: clamp(96px, 4vw, 180px);
  }

  .section {
    width: min(1880px, calc(100% - 180px));
  }

  .hero,
  .page-hero {
    width: min(1880px, calc(100% - 180px));
  }

  .hero {
    grid-template-columns: minmax(620px, 1fr) minmax(480px, 0.54fr);
    gap: clamp(42px, 3.2vw, 72px);
    padding-top: 54px;
    padding-bottom: 34px;
  }

  .profile-photo {
    width: min(560px, 100%);
  }

  .talk-map-figure {
    --talk-map-viewport-height: clamp(320px, 40vh, 520px);
  }

  .talk-europe-map {
    --talk-map-viewport-height: clamp(320px, 40vh, 520px);
  }

  .talk-japan-map {
    --talk-map-viewport-height: clamp(320px, 40vh, 520px);
  }
}

@media (min-width: 3200px) {
  .site-header {
    padding-inline: clamp(128px, 5vw, 240px);
  }

  .section,
  .hero,
  .page-hero {
    width: min(2280px, calc(100% - 240px));
  }

  .publication-list,
  .problem-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .profile-grid,
  .note-grid,
  .activity-grid,
  .link-columns {
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  }

  .web-app-grid {
    grid-template-columns: repeat(auto-fit, minmax(460px, 1fr));
  }
}

@media (max-width: 980px) {
  .hero,
  .profile-grid,
  .categories-tokyo-feature,
  .research-map-layout,
  .talk-timeline,
  .talk-map,
  .talk-map-grid,
  .home-timeline,
  .explore-grid,
  .web-app-grid,
  .plan-list,
  .problem-list,
  .speculative-layout,
  .note-grid,
  .activity-grid,
  .link-columns {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: clamp(26px, 4vw, 42px);
    padding-bottom: clamp(16px, 3vw, 30px);
  }

  .hero-media {
    justify-items: start;
  }

  .research-figure {
    max-width: 640px;
  }

  .theme-map-column {
    position: static;
    max-width: 680px;
  }

  .problem-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .speculative-sidebar {
    position: static;
  }

  .theme-result-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .timeline-scroll-frame {
    padding-bottom: 8px;
  }

  .timeline-scroll-frame::-webkit-scrollbar {
    height: 13px;
  }

  .timeline-scroll-shell::before,
  .timeline-scroll-shell::after {
    bottom: 13px;
    width: 32px;
  }

  .timeline-scroll-frame > .home-timeline-track {
    min-width: 680px;
  }

  .timeline-scroll-frame > .paper-timeline-track {
    min-width: 600px;
  }

  .timeline-scroll-frame > .talk-timeline-track {
    min-width: 640px;
  }
}

@media (max-width: 760px) {
  .home-timeline-status {
    padding-right: 72px;
  }

  .home-timeline-status-control.timeline-control {
    width: 26px;
    height: 26px;
  }

  .home-timeline-detail {
    grid-template-columns: 1fr auto;
    gap: 10px;
  }

  .home-timeline-detail-nav {
    grid-column: 1 / -1;
    order: 3;
  }

  .home-timeline-detail-body {
    order: 1;
  }

  .home-timeline-detail-count {
    order: 2;
    max-width: 7.5rem;
    white-space: normal;
    text-align: right;
  }

  body {
    line-height: 1.56;
  }

  .site-header {
    min-height: 64px;
    padding-inline: 14px;
  }

  .menu-button {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    overflow: visible;
    overflow-clip-margin: 0;
    padding: 8px 16px 16px;
    border-bottom: 1px solid var(--line);
    background: rgba(246, 242, 234, 0.98);
    min-width: 0;
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-group::after {
    display: none;
  }

  .nav-group {
    display: grid;
    gap: 4px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(215, 210, 199, 0.8);
  }

  .nav-group-label {
    min-height: 28px;
    padding: 0;
    color: var(--accent-2);
    cursor: default;
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  a.nav-group-label {
    cursor: pointer;
  }

  .nav-group-label::after {
    display: none;
  }

  .nav-submenu {
    position: static;
    display: grid;
    min-width: 0;
    gap: 0;
    padding: 0 0 0 14px;
    border: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    visibility: visible;
  }

  .nav-submenu a {
    padding: 8px 0;
    border-radius: 0;
    background: transparent;
  }

  .nav-submenu a:hover,
  .nav-submenu a:focus-visible,
  .nav-submenu a.is-active {
    background: transparent;
  }

  .nav-search {
    width: 100%;
    height: 40px;
    margin-top: 10px;
    border-radius: 8px;
  }

  .language-toggle {
    justify-content: center;
    width: 100%;
    margin-top: 10px;
    border-radius: 8px;
  }

  .theme-result-grid {
    grid-template-columns: 1fr;
  }

  .research-map {
    height: 72vh;
    padding: 12px;
  }

  .theme-status {
    display: grid;
  }

  .problem-random-actions,
  .problem-toolbar,
  .problem-toolbar .publication-tabs,
  .paper-controls,
  .note-toolbar {
    justify-content: stretch;
  }

  .problem-random-actions .tab-button,
  .problem-toolbar .tab-button,
  .paper-view-tabs .tab-button {
    flex: 1 1 auto;
  }

  .problem-stats,
  .problem-detail-grid {
    grid-template-columns: 1fr;
  }

  .problem-feature-head {
    display: grid;
  }

  .talk-timeline-actions {
    justify-content: flex-start;
  }

  .talk-timeline-track {
    min-height: 220px;
  }

  .home-timeline-track {
    min-height: 430px;
  }

  .home-timeline-lane-label {
    left: 12px;
    font-size: 0.68rem;
  }

  .timeline-lane-label-overlay {
    width: 142px;
  }

  #home-timeline .timeline-lane-label-overlay {
    width: 154px;
  }

  .home-timeline-lane-rail,
  .home-timeline-year-row {
    left: 84px;
    right: 16px;
  }

  .home-timeline-node {
    left: calc(84px + (100% - 100px) * var(--x) / 100);
  }

  .home-timeline-paper-span,
  .home-timeline-affiliation-span,
  .home-timeline-academic-span,
  .home-timeline-teaching-span,
  .home-timeline-secondary-interval-span {
    left: calc(84px + (100% - 100px) * var(--x-start) / 100);
    width: calc((100% - 100px) * (var(--x-end) - var(--x-start)) / 100);
  }

  .home-timeline-now {
    left: calc(84px + (100% - 100px) * var(--x) / 100);
  }

  #home-timeline .home-timeline-lane-label {
    max-width: 106px;
    font-size: 0.64rem;
    letter-spacing: 0;
  }

  #home-timeline .timeline-lane-label-overlay .home-timeline-lane-label.kind-paper,
  #home-timeline .timeline-lane-label-overlay .home-timeline-lane-label.kind-affiliation-academic,
  #home-timeline .timeline-lane-label-overlay .home-timeline-lane-label.kind-activity-award-talk {
    max-width: 124px;
    min-height: 30px;
    padding: 6px 9px 6px 10px;
    font-size: 0.72rem;
    line-height: 1.06;
  }

  #home-timeline .home-timeline-lane-rail,
  #home-timeline .home-timeline-year-row {
    left: 122px;
    right: 16px;
  }

  #home-timeline .home-timeline-node {
    left: calc(122px + (100% - 138px) * var(--x) / 100);
  }

  #home-timeline .home-timeline-interval-span {
    left: calc(122px + (100% - 138px) * var(--x-start) / 100);
    width: calc((100% - 138px) * (var(--x-end) - var(--x-start)) / 100);
  }

  #home-timeline .home-timeline-now {
    left: calc(122px + (100% - 138px) * var(--x) / 100);
  }

  #home-timeline .home-timeline-relation {
    left: calc(122px + (100% - 138px) * var(--x-left) / 100);
    width: max(1px, calc((100% - 138px) * var(--x-width) / 100));
  }

  .diagram-dialog {
    width: calc(100vw - 18px);
    max-height: calc(100vh - 18px);
  }

  .diagram-dialog-header,
  .diagram-dialog-body {
    display: grid;
  }

  .diagram-dialog-body {
    grid-template-columns: 1fr;
  }

  .diagram-expanded {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .diagram-expanded .grundy-figure {
    min-height: 520px;
  }

  .diagram-expanded .lawvere-pullback-figure {
    min-height: 520px;
  }

  .grundy-controls {
    right: 12px;
    left: 12px;
    justify-content: flex-start;
    max-width: none;
  }

  .grundy-slider input {
    width: min(144px, 32vw);
  }

  .diagram-expanded .grundy-panel {
    grid-template-columns: 1fr;
  }

  .section {
    width: min(100% - 28px, 1160px);
    padding: 30px 0;
  }

  .hero {
    gap: 22px;
    padding-top: 26px;
    padding-bottom: 18px;
  }

  .hero.section + .section {
    padding-top: 22px;
  }

  .page-hero {
    padding-top: 36px;
    padding-bottom: 24px;
  }

  h1 {
    font-size: 2.55rem;
  }

  h2 {
    font-size: 1.82rem;
  }

  h2.has-section-icon,
  .page-hero h1.has-section-icon {
    flex-wrap: wrap;
    row-gap: 6px;
  }

  .section-title-text-link {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .section-copy-link {
    margin-left: 0;
  }

  .lead {
    margin-top: 14px;
  }

  .section-head,
  .publication-title,
  .site-footer {
    align-items: start;
    flex-direction: column;
  }

  .notes-filter-row {
    grid-template-columns: 1fr;
  }

  .note-toolbar,
  .note-search-label,
  .paper-controls .search-label,
  .paper-view-tabs,
  .note-filter-label {
    width: 100%;
    max-width: none;
  }

  .explore-grid {
    gap: 12px;
  }

  .publication-venue {
    justify-self: start;
    white-space: normal;
  }

  .publication-title {
    grid-template-columns: 1fr;
  }

  .timeline-group {
    grid-template-columns: 1fr;
  }
}

@media (max-height: 760px) and (min-width: 761px) {
  .section {
    padding: 34px 0;
  }

  .hero {
    padding-top: 28px;
    padding-bottom: 20px;
  }

  .hero.section + .section {
    padding-top: 24px;
  }

  .page-hero {
    padding-top: 36px;
    padding-bottom: 24px;
  }

  .talk-timeline-track {
    min-height: 185px;
  }

  .home-timeline-track {
    min-height: 210px;
  }

}

@media (max-height: 520px) and (min-width: 700px) and (max-width: 980px) {
  .site-header {
    min-height: 58px;
    padding-block: 8px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
    gap: 22px;
    padding-top: 18px;
    padding-bottom: 16px;
  }

  .hero-media {
    justify-items: end;
  }

  .profile-photo {
    width: min(160px, 22vw);
  }

  .page-hero {
    padding-top: 24px;
    padding-bottom: 18px;
  }

  .section {
    padding: 24px 0;
  }

  .talk-timeline-track {
    min-height: 180px;
  }

  .home-timeline-track {
    min-height: 420px;
  }

}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .talk-timeline-progress,
  .talk-timeline-cursor,
  .talk-timeline-node,
  .home-timeline-paper-span,
  .home-timeline-affiliation-span,
  .home-timeline-academic-span,
  .home-timeline-teaching-span,
  .home-timeline-secondary-interval-span,
  .home-timeline-node,
  .connected-pattern,
  .connected-match,
  .connected-match .figure-line,
  .connected-match .figure-node,
  .connected-correspondence-arrow,
  .connected-top-edge,
  .connected-top-root,
  .internal-highlight-n,
  .internal-highlight-l,
  .grundy-natural-number,
  .grundy-transfer-ball,
  .grundy-mex-water {
    transition: none;
  }

  .connected-correspondence-arrow.is-active,
  .internal-source-graph,
  .internal-highlight-n,
  .internal-highlight-l,
  .internal-classifier-node,
  .internal-piece-dot-vertex,
  .internal-piece-dot-edge,
  .internal-piece-dot-loop,
  .internal-piece-arrow-n,
  .internal-piece-arrow-l,
  .internal-marker-piece-n path,
  .internal-marker-piece-l path,
  .automata-consumed-letter,
  .automata-moving-dot,
  .quotient-guide,
  .quotient-moving-light,
  .grundy-natural-number.is-excluded::after,
  .grundy-natural-number.is-mex,
  .grundy-natural-number.is-mex::before,
  .grundy-natural-number.is-mex::after,
  .grundy-transfer-ball,
  .grundy-node.is-receiving .grundy-node-shell,
  .grundy-node.is-receiving .grundy-value-label,
  .tensor-factorization-figure .tensor-s-new-node,
  .games-rb-table-mex-head,
  .games-rb-cell.is-s-def,
  .games-rb-cell.is-t-def,
  .games-rb-cell.is-row-read,
  .games-rb-cell.is-col-read,
  .games-rb-cell.is-lhs,
  .games-rb-mex-lines,
  .games-rb-readout.is-lhs,
  .games-rb-readout.is-rhs,
  .games-rb-step-item,
  .games-rb-grid-label,
  .games-rb-mex-arrow,
  .games-rb-answer,
  .games-rb-same-result,
  .games-rb-table-tex-lhs,
  .games-rb-table-tex-rhs,
  .games-rb-dual-highlight,
  .games-rb-dual-label,
  .games-rb-result-chip,
  .games-rb-equality-check,
  .automata-cantor-bouquet-loop,
  .automata-unfold-reverse-cover,
  .automata-etale-arrow,
  .automata-etale-label,
  .automata-sublocale-arrow,
  .automata-sublocale-label,
  .automata-prefix-poset .automata-cantor-tree-edge,
  .automata-prefix-poset .automata-cantor-node,
  .automata-topos-label,
  .automata-cantor-interval,
  .automata-cantor-connector {
    animation: none;
  }

  .games-rb-table-mex-head,
  .games-rb-cell.is-s-def,
  .games-rb-cell.is-t-def,
  .games-rb-cell.is-row-read,
  .games-rb-cell.is-col-read,
  .games-rb-cell.is-lhs,
  .games-rb-mex-lines,
  .games-rb-readout,
  .games-rb-step-item,
  .games-rb-grid-label,
  .games-rb-mex-arrow,
  .games-rb-answer,
  .games-rb-same-result,
  .games-rb-table-tex-lhs,
  .games-rb-table-tex-rhs {
    opacity: 1;
  }

  .games-rb-dual-highlight,
  .games-rb-dual-label,
  .games-rb-result-chip,
  .games-rb-equality-check {
    opacity: 1;
  }

  .internal-piece {
    display: none;
  }

  .internal-source-graph {
    opacity: 1;
  }

  .internal-classifier-node {
    fill: rgba(47, 95, 145, 0.12);
    stroke: #2f5f91;
  }

  .automata-moving-dot {
    display: none;
  }

  .automata-rolling-bouquet {
    display: none;
  }

  .automata-cantor-bouquet-loop,
  .automata-etale-arrow,
  .automata-etale-label,
  .automata-sublocale-arrow,
  .automata-sublocale-label,
  .automata-prefix-poset .automata-cantor-tree-edge,
  .automata-prefix-poset .automata-cantor-node,
  .automata-topos-label,
  .automata-cantor-interval,
  .automata-cantor-connector {
    opacity: 1;
  }

  .automata-unfold-reverse-cover {
    opacity: 0;
  }

  .quotient-moving-light {
    display: none;
  }

  .quotient-guide {
    opacity: 0.24;
  }

  .tensor-factorization-figure .tensor-right-a-node,
  .tensor-factorization-figure .tensor-s-new-node,
  .tensor-factorization-figure .tensor-s-node {
    opacity: 1;
  }

  .automata-input-word tspan {
    opacity: 1 !important;
  }

  .automata-consuming-letters {
    display: none;
  }
}
