/* Components: navigation, hero profile, news, research, BibTeX, records, footer, toast, and figure dialog. */

/* Section navigation */
.section-nav {
  --indicator-y: 0px;
  --indicator-height: 30px;
  --indicator-x: 0px;
  --indicator-width: 56px;
  position: fixed;
  top: 50%;
  left: max(20px, calc(50% - 656px));
  width: 148px;
  transform: translateY(-50%);
  z-index: 30;
}
.section-nav__label {
  display: inline-block;
  margin: 0 0 14px 17px;
  font-family: "Outfit", "Segoe UI", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  line-height: 1;
}
.section-nav__track { position: relative; }
.section-nav__track::before { position: absolute; top: 0; bottom: 0; left: 0; width: 1px; background: var(--line); content: ""; }
.section-nav__indicator {
  position: absolute;
  top: 0;
  left: -0.5px;
  width: 2px;
  height: var(--indicator-height);
  border-radius: 2px;
  background: var(--accent-blue);
  transform: translateY(var(--indicator-y));
  transition: height var(--motion-fast) ease, transform var(--motion-medium) var(--ease-out);
  opacity: 0;
}
.section-nav.is-ready .section-nav__indicator { opacity: 1; }
.section-nav__list { list-style: none; margin: 0; padding: 0; }
.section-nav__item { margin: 0; padding: 0; }
.section-nav__link {
  display: block;
  padding: 8.5px 4px 8.5px 17px;
  font-family: var(--font-heading);
  font-size: var(--font-size-sm);
  color: var(--text-tertiary);
  line-height: 1.3;
  transition: color var(--motion-fast) ease, transform var(--motion-medium) var(--ease-out);
}
.section-nav__link:hover, .section-nav__link.is-active { color: var(--link-color); transform: translateX(3px); }
.section-nav__link.is-active { font-weight: 600; }

/* Theme toggle */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 22px 0 0 15px;
  padding: 6px 12px 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-elevated);
  color: var(--text-secondary);
  font-size: var(--font-size-2xs);
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition:
    color var(--motion-fast) ease,
    border-color var(--motion-fast) ease,
    background-color var(--motion-fast) ease,
    transform var(--motion-fast) var(--ease-out);
}
.theme-toggle:hover {
  color: var(--text-primary);
  border-color: var(--accent-blue-border);
  background: var(--bg-hover);
  transform: translateY(-1px);
}
.theme-icon { width: 14px; height: 14px; flex-shrink: 0; display: block; }
.theme-icon--sun { display: none; }
[data-theme="dark"] .theme-icon--sun { display: block; }
[data-theme="dark"] .theme-icon--moon { display: none; }

/* Profile Hero */
.profile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 256px;
  gap: 48px;
  align-items: center;
  margin-top: 0;
}
.name {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 14px;
  font-family: var(--font-heading);
  font-size: var(--font-size-display);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -.025em;
}
.name-divider { color: var(--text-tertiary); font-size: var(--font-size-heading); opacity: 0.65; }
.chinese-name { font-family: "Ma Shan Zheng", "KaiTi", serif; font-size: var(--font-size-display); font-weight: 400; letter-spacing: 0; }

.profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
}
.profile-tag {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--bg-surface);
  border: 1px solid var(--line);
  color: var(--text-secondary);
  font-size: var(--font-size-2xs);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.45;
}

.profile-intro { margin-top: 11px; color: var(--text-secondary); line-height: 1.72; }
.profile-intro strong { color: var(--text-primary); }

.profile-portrait { margin: 0; }
.avatar-frame {
  padding: 4px;
  border-radius: 50px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-avatar);
  transition: transform var(--motion-medium) var(--ease-out), border-color var(--motion-fast) ease;
}
@media (hover: hover) and (pointer: fine) {
  .avatar-frame:hover { transform: translateY(-2px); border-color: var(--accent-blue-border); }
}
.avatar {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  border-radius: 46px;
}
.portrait-caption {
  margin-top: 12px;
  text-align: center;
  color: var(--text-tertiary);
  font-size: var(--font-size-xs);
  line-height: 1.55;
}

.affiliation-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  vertical-align: -.2em;
  font-weight: 500;
}
.affiliation-link img {
  width: auto;
  height: 1.22em;
  max-width: 2em;
  flex: 0 0 auto;
  object-fit: contain;
  transition: transform var(--motion-medium) var(--ease-out);
}
[data-theme="dark"] .affiliation-link img {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 4px;
  padding: 1.5px;
}
@media (hover: hover) and (pointer: fine) {
  .affiliation-link:hover img { transform: scale(1.08); }
}

.profile-links {
  display: flex;
  gap: 9px 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 22px;
}
.profile-link-group {
  display: inline-flex;
  align-items: stretch;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition:
    border-color var(--motion-fast) ease,
    box-shadow var(--motion-fast) ease,
    transform var(--motion-fast) var(--ease-out);
}
.profile-link-group:hover {
  border-color: var(--accent-blue-border);
  transform: translateY(-1px);
}
.profile-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  color: var(--text-primary);
  font-size: var(--font-size-sm);
  font-weight: 500;
  line-height: 1.2;
  box-shadow: var(--shadow-sm);
  transition:
    color var(--motion-fast) ease,
    border-color var(--motion-fast) ease,
    background-color var(--motion-fast) ease,
    transform var(--motion-fast) var(--ease-out);
}
.profile-link:hover {
  color: var(--link-color);
  border-color: var(--accent-blue-border);
  background: var(--bg-hover);
  transform: translateY(-1px);
}
.profile-link--grouped {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding-right: 11px;
}
.profile-link--grouped:hover { transform: none; }
.profile-copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 11px 0 9px;
  border: 0;
  border-left: 1px solid var(--line);
  background: transparent;
  color: var(--text-tertiary);
  cursor: pointer;
  transition: color var(--motion-fast) ease, background-color var(--motion-fast) ease;
}
.profile-copy-btn:hover {
  color: var(--link-color);
  background: var(--bg-hover);
}
.profile-copy-btn .ui-icon { width: 14px; height: 14px; }
.profile-link-icon { width: 18px; height: 18px; flex-shrink: 0; object-fit: contain; }

/* Main sections */
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.section-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: var(--font-size-heading);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.news-section { margin-top: 44px; }
.news-list { list-style: none; margin: 0; padding: 0; }
.news-list li {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 16px;
  align-items: baseline;
  padding: 11px 14px;
  margin: 0 -14px;
  border-radius: 10px;
  font-size: var(--font-size-base);
  transition: background-color var(--motion-fast) ease;
}
@media (hover: hover) and (pointer: fine) {
  .news-list li:hover { background: var(--bg-hover); }
}
.news-list time {
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  font-size: var(--font-size-sm);
  font-variant-numeric: tabular-nums;
}
.news-list p { color: var(--text-secondary); }

/* Section toggle button (News, Research, Competition) */
.research-heading { margin-bottom: 10px; }
.research-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-elevated);
  color: var(--link-color);
  font-size: var(--font-size-xs);
  font-weight: 500;
  cursor: pointer;
  transition:
    color var(--motion-fast) ease,
    border-color var(--motion-fast) ease,
    background-color var(--motion-fast) ease;
}
.research-toggle:hover {
  color: var(--accent-orange);
  border-color: var(--accent-blue-border);
  background: var(--bg-hover);
}
.paper-meta-note { margin: 2px 0 14px; color: var(--text-tertiary); font-size: var(--font-size-sm); }
#news-list, #research-papers, #competition-list { overflow-anchor: none; }

/* Research */
.paper-row {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  padding: 22px 16px;
  margin: 0 -16px;
  border-radius: 14px;
  transition: background-color var(--motion-fast) ease;
}
@media (hover: hover) and (pointer: fine) {
  .paper-row:hover { background: var(--bg-hover); }
}
.paper-figure { display: block; min-width: 0; }
.paper-figure__frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 16 / 10;
  padding: 8px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition:
    border-color var(--motion-fast) ease,
    box-shadow var(--motion-medium) var(--ease-out),
    transform var(--motion-medium) var(--ease-out);
}
[data-theme="dark"] .paper-figure__frame img { filter: brightness(0.96); }
.paper-figure__frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform var(--motion-medium) var(--ease-out);
}
.paper-figure__zoom {
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(27, 32, 40, 0.78);
  color: #ffffff;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity var(--motion-fast) ease, transform var(--motion-fast) var(--ease-out);
}
.paper-figure__zoom .ui-icon { width: 14px; height: 14px; }
@media (hover: hover) and (pointer: fine) {
  .paper-figure:hover .paper-figure__frame {
    border-color: var(--accent-blue-border);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
  }
  .paper-figure:hover .paper-figure__frame img { transform: scale(1.02); }
  .paper-figure:hover .paper-figure__zoom,
  .paper-figure:focus-visible .paper-figure__zoom { opacity: 1; transform: scale(1); }
}

.paper-body { min-width: 0; }
.papertitle {
  margin: 0 0 7px;
  font-family: "Outfit", "Segoe UI", sans-serif;
  font-size: var(--font-size-title);
  font-weight: 600;
  line-height: 1.42;
  color: var(--text-primary);
}
.papertitle a { color: var(--text-primary); }
.papertitle a:hover { color: var(--link-color); }
.authors { color: var(--text-secondary); font-size: 15px; line-height: 1.58; }
.author-self {
  position: relative;
  z-index: 0;
  display: inline-block;
  padding: 0 2px;
  font-weight: 600;
  color: var(--text-primary);
  isolation: isolate;
}
.author-self::before {
  position: absolute;
  top: 52%;
  right: -2px;
  left: -2px;
  z-index: -1;
  height: .88em;
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--highlight-yellow) 12%, transparent),
    color-mix(in srgb, var(--highlight-yellow) calc(var(--highlight-opacity) * 100%), transparent) 12%,
    color-mix(in srgb, var(--highlight-yellow) calc(var(--highlight-opacity) * 100%), transparent) 82%,
    color-mix(in srgb, var(--highlight-yellow) 12%, transparent)
  );
  clip-path: polygon(0 22%, 9% 10%, 36% 17%, 68% 5%, 100% 18%, 99% 84%, 82% 94%, 51% 88%, 21% 100%, 1% 84%);
  content: "";
  transform: translateY(-50%) rotate(-.6deg) skewX(-2deg);
}

.venue-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 9px;
  margin-top: 9px;
  line-height: 1.5;
}
.venue-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: var(--font-size-2xs);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.4;
  white-space: nowrap;
}
.venue-badge--conference {
  background: var(--accent-blue-soft);
  color: var(--accent-blue);
  border: 1px solid var(--accent-blue-border);
}
.venue-badge--preprint {
  background: var(--bg-surface);
  color: var(--text-secondary);
  border: 1px solid var(--line);
}
.venue-full {
  color: var(--text-tertiary);
  font-size: var(--font-size-sm);
  font-style: italic;
}

.paper-links-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 13px;
}
.link-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  color: var(--text-primary);
  font-size: var(--font-size-xs);
  font-weight: 500;
  line-height: 1.25;
  cursor: pointer;
  transition:
    color var(--motion-fast) ease,
    border-color var(--motion-fast) ease,
    background-color var(--motion-fast) ease,
    transform var(--motion-fast) var(--ease-out);
}
.link-with-icon:hover {
  color: var(--link-color);
  border-color: var(--accent-blue-border);
  background: var(--bg-surface);
  transform: translateY(-1px);
}
.link-with-icon[aria-expanded="true"] {
  color: var(--link-color);
  border-color: var(--accent-blue-border);
  background: var(--accent-blue-soft);
}
.link-with-icon img, .link-with-icon svg { width: 15px; height: 15px; flex-shrink: 0; object-fit: contain; }

/* BibTeX expandable panel */
.bibtex-panel {
  margin-top: 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-surface);
  overflow: hidden;
  animation: filter-item-enter var(--motion-fast) var(--ease-out) both;
}
.bibtex-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 12px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-elevated);
}
.bibtex-panel__label {
  font-size: var(--font-size-2xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}
.bibtex-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: var(--font-size-2xs);
  font-weight: 500;
  cursor: pointer;
  transition: color var(--motion-fast) ease, border-color var(--motion-fast) ease, background-color var(--motion-fast) ease;
}
.bibtex-copy-btn:hover { color: var(--link-color); border-color: var(--accent-blue-border); }
.bibtex-copy-btn .ui-icon { width: 13px; height: 13px; }
.bibtex-code {
  margin: 0;
  padding: 12px 14px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-secondary);
  white-space: pre;
}

/* Education, experience, and competition share one record layout. */
.record-row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding: 16px 16px;
  margin: 0 -16px;
  border-radius: 14px;
  transition: background-color var(--motion-fast) ease;
}
@media (hover: hover) and (pointer: fine) {
  .record-row:hover { background: var(--bg-hover); }
}

.record-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 112px;
  height: 62px;
  padding: 8px 12px;
  border-radius: 12px;
  background: var(--logo-surface);
  border: 1px solid var(--line-subtle);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--motion-fast) ease, transform var(--motion-medium) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  a.record-logo:hover { border-color: var(--accent-blue-border); transform: translateY(-1px); }
}
.record-logo img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
/* Optical area normalization across square seals vs wide horizontal wordmarks */
.record-logo--square img { max-height: 44px; max-width: 44px; }
.record-logo--landscape img { max-height: 42px; max-width: 82px; }
.record-logo--wide img { max-height: 36px; max-width: 88px; }

.record-content { min-width: 0; }
.record-heading, .record-meta { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: baseline; }
.record-heading { margin-bottom: 5px; }
.record-title { min-width: 0; margin: 0; font-size: 17px; font-weight: 600; line-height: 1.42; }
.record-title a { color: var(--text-primary); }
.record-title a:hover { color: var(--link-color); }
.record-details, .record-date, .record-location { color: var(--text-secondary); font-size: 15px; line-height: 1.55; }
.record-date {
  margin: 0;
  text-align: right;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  font-size: var(--font-size-xs);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.record-details { min-width: 0; }
.record-location { margin: 0; text-align: right; color: var(--text-tertiary); font-size: var(--font-size-xs); white-space: nowrap; }

.news-list li, .paper-row, .record-row { position: relative; }
.news-list li:not([hidden]) ~ li:not([hidden])::before,
.paper-row:not([hidden]) ~ .paper-row:not([hidden])::before,
.record-row:not([hidden]) ~ .record-row:not([hidden])::before {
  content: "";
  position: absolute;
  top: 0;
  left: 16px;
  right: 16px;
  height: 1px;
  background: var(--line-subtle);
  pointer-events: none;
}

/* Competition badges & metadata */
.competition-details {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-top: 2px;
}
.comp-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: var(--font-size-2xs);
  font-weight: 600;
  line-height: 1.45;
}
.comp-badge .ui-icon { width: 13px; height: 13px; }
.comp-badge--gold { background: var(--tier-gold-bg); color: var(--tier-gold-text); border-color: var(--tier-gold-border); }
.comp-badge--silver { background: var(--tier-silver-bg); color: var(--tier-silver-text); border-color: var(--tier-silver-border); }
.comp-badge--bronze { background: var(--tier-bronze-bg); color: var(--tier-bronze-text); border-color: var(--tier-bronze-border); }
.comp-badge--award { background: var(--tier-award-bg); color: var(--tier-award-text); border-color: var(--tier-award-border); }

.comp-meta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--text-secondary);
  font-size: var(--font-size-xs);
  font-variant-numeric: tabular-nums;
}
.comp-meta .ui-icon { width: 13px; height: 13px; color: var(--text-tertiary); }

/* Footer */
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 52px;
  padding: 24px 0 42px;
  border-top: 1px solid var(--line);
  color: var(--text-tertiary);
  font-size: var(--font-size-xs);
}
.site-footer__meta { margin: 0; }
.back-top {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-elevated);
  color: var(--text-secondary);
  font-size: var(--font-size-xs);
  font-weight: 500;
  transition:
    color var(--motion-fast) ease,
    border-color var(--motion-fast) ease,
    background-color var(--motion-fast) ease,
    transform var(--motion-fast) var(--ease-out);
}
.back-top:hover {
  color: var(--link-color);
  border-color: var(--accent-blue-border);
  background: var(--bg-hover);
  transform: translateY(-2px);
}
.back-top .ui-icon { width: 14px; height: 14px; }

/* Toast notification */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 90;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--toast-bg);
  color: var(--toast-text);
  font-size: var(--font-size-xs);
  font-weight: 500;
  box-shadow: var(--shadow-md);
  transform: translate(-50%, 10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--motion-fast) ease, transform var(--motion-medium) var(--ease-out);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* Native figure preview. */
.figure-dialog {
  width: min(1120px, calc(100% - 36px));
  max-height: calc(100dvh - 50px);
  padding: 46px 24px 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text-primary);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(6px) scale(.97);
  transition:
    opacity var(--motion-fast) ease,
    transform var(--motion-medium) var(--ease-out),
    overlay var(--motion-fast) allow-discrete,
    display var(--motion-fast) allow-discrete;
}
.figure-dialog[open] { opacity: 1; transform: translateY(0) scale(1); }
.figure-dialog::backdrop {
  background: rgba(10, 14, 22, 0.72);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition:
    opacity var(--motion-fast) ease,
    overlay var(--motion-fast) allow-discrete,
    display var(--motion-fast) allow-discrete;
}
.figure-dialog[open]::backdrop { opacity: 1; }
@starting-style {
  .figure-dialog[open] { opacity: 0; transform: translateY(6px) scale(.97); }
  .figure-dialog[open]::backdrop { opacity: 0; }
}
.figure-dialog img {
  max-height: calc(100dvh - 190px);
  width: 100%;
  object-fit: contain;
  border-radius: 8px;
  background: #ffffff;
  padding: 8px;
}
.figure-dialog figcaption { text-align: center; font-size: var(--font-size-sm); color: var(--text-secondary); margin-top: 16px; }
.dialog-close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: color var(--motion-fast) ease, background-color var(--motion-fast) ease;
}
.dialog-close:hover { color: var(--text-primary); background: var(--bg-surface); }
body:has(.figure-dialog[open]) { overflow: hidden; }
