.db-content-status {
  margin: 1rem 0;
  padding: .75rem 1rem;
  border-left: 4px solid #2365ea;
  background: rgba(35, 101, 234, .08);
  color: #42526b;
  border-radius: 10px;
}

.db-admin-toast {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 1200;
  box-sizing: border-box;
  width: max-content;
  max-width: min(30rem, calc(100vw - 2rem));
  margin: 0;
  padding: .85rem 1.1rem .85rem 2.8rem;
  border: 1px solid #b8e2ce;
  border-left: 4px solid #178653;
  background: #f0fbf5;
  color: #155d3a;
  box-shadow: 0 14px 38px rgba(20, 42, 34, .2);
  opacity: 1;
  transform: translateY(0);
  transition: opacity .35s ease, transform .35s ease;
}
.db-admin-toast::before {
  position: absolute;
  left: 1rem;
  top: 50%;
  display: grid;
  width: 1.2rem;
  height: 1.2rem;
  place-items: center;
  border-radius: 50%;
  background: #178653;
  color: #fff;
  content: "✓";
  font-size: .78rem;
  font-weight: 800;
  transform: translateY(-50%);
}
.db-admin-toast.is-leaving { opacity: 0; transform: translateY(.55rem); pointer-events: none; }
.db-admin-toast.db-admin-error { border-color: #f1c4c2; border-left-color: #c03935; background: #fff6f5; color: #8c2622; }
.db-admin-toast.db-admin-error::before { background: #c03935; content: "!"; }
.db-admin-toast.db-admin-info { border-color: #bfd8f5; border-left-color: #2365ea; background: #f2f7ff; color: #254d85; }
.db-admin-toast.db-admin-info::before { background: #2365ea; content: "i"; }

.db-page-intro {
  margin: -.35rem 0 1.5rem;
  color: #718096;
  font-size: 1.05rem;
}
.db-site-meta { color: var(--global-text-color-light); font-size: .82rem; }
.greedy-nav.db-static-nav {
  overflow: visible;
}
.greedy-nav.db-static-nav > .nav-toggle,
.greedy-nav.db-static-nav > .hidden-links { display: none !important; }
.greedy-nav .visible-links {
  display: flex;
  align-items: center;
  width: 100%;
}
.greedy-nav .visible-links > li {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}
.greedy-nav .visible-links > .db-language-menu-item { margin-left: auto; }
.db-language-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .28rem;
  min-width: 2.35rem;
  min-height: 2.5rem;
  padding: .25rem .42rem;
  border: 0;
  border-radius: 999px;
  color: var(--global-masthead-link-color);
  background: transparent;
  font: inherit;
  font-size: .78rem;
  font-weight: 700;
  cursor: pointer;
}
.greedy-nav .visible-links .db-language-toggle {
  display: inline-flex;
  position: static;
  right: auto;
  height: 2.5rem;
  padding: .25rem .42rem;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--global-masthead-link-color);
  z-index: auto;
  visibility: visible;
}
.greedy-nav .visible-links .db-language-toggle:hover,
.greedy-nav .visible-links .db-language-toggle:focus-visible { color: var(--global-link-color); background: var(--global-border-color); outline: 0; }
.db-language-icon { display: block; width: 1.1rem; height: 1.1rem; flex: 0 0 auto; }
.db-language-toggle span { line-height: 1; }

/* Keep the theme choice explicit while preserving the compact masthead. */
#theme-menu { position: relative; z-index: 20; }
.db-theme-menu { position: relative; z-index: 20; }
.db-theme-menu > summary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  min-height: 2.5rem;
  color: var(--global-masthead-link-color);
  cursor: pointer;
  list-style: none;
}
.db-theme-menu > summary::-webkit-details-marker { display: none; }
.db-theme-menu > summary:hover { color: var(--global-masthead-link-color-hover); }
.db-theme-menu-options {
  position: absolute;
  top: calc(100% + .55rem);
  right: 0;
  z-index: 30;
  display: grid;
  min-width: 7.5rem;
  padding: .35rem;
  border: 1px solid var(--global-border-color);
  border-radius: 10px;
  background: var(--global-bg-color);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .16);
}
.db-theme-menu-options [data-theme-choice] {
  border: 0;
  border-radius: 7px;
  padding: .45rem .65rem;
  color: var(--global-text-color);
  background: transparent;
  font: inherit;
  font-size: .86rem;
  text-align: left;
  cursor: pointer;
}
.db-theme-menu-options [data-theme-choice]:hover,
.db-theme-menu-options [data-theme-choice]:focus,
.db-theme-menu-options [data-theme-choice].is-active { color: var(--global-link-color); background: var(--global-border-color); outline: 0; }
.db-theme-menu-options [data-theme-choice].is-active::before { content: "✓"; display: inline-block; width: 1rem; }
.db-theme-menu-options [data-theme-choice]:not(.is-active)::before { content: ""; display: inline-block; width: 1rem; }

.db-overview-identity {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 24%);
  align-items: center;
  gap: 1.5rem;
  margin: 0 0 2rem;
  padding: 1.25rem 0 1.5rem;
  border-bottom: 1px solid #e6ebf2;
}
.db-overview-identity-copy { min-width: 0; }
.db-overview-feature-image {
  display: block;
  width: 100%;
  max-width: 280px;
  max-height: 190px;
  margin-left: auto;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(34, 53, 76, .14);
  cursor: zoom-in;
  transition: transform .2s ease, box-shadow .2s ease;
}
.db-overview-feature-image:hover {
  transform: scale(1.02);
  box-shadow: 0 14px 30px rgba(34, 53, 76, .2);
}
.db-image-lightbox {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 2rem;
  background: rgba(9, 20, 31, .78);
  cursor: zoom-out;
}
.db-image-lightbox img {
  display: block;
  width: min(92vw, 960px);
  max-height: 90vh;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, .4);
}

.db-overview-avatar {
  width: 112px;
  height: 112px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #f2d38a;
}

.db-overview-identity h1,
.db-overview-identity p { margin: 0; }
.db-overview-eyebrow,
.db-presentation-eyebrow {
  margin: 0 0 .35rem;
  color: #b7791f;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.db-overview-english { color: #718096; font-size: .95rem; }
.db-overview-meta { margin-top: .4rem !important; color: #4a5568; }
.db-overview-tagline { margin-top: .75rem !important; color: #2365ea; font-size: 1.05rem; }

.db-overview-links {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin: 1.5rem 0 2rem;
}

.db-overview-section { margin: 2.5rem 0; }
.db-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.db-section-heading h2 { margin: 0; }
.db-text-link { color: #2365ea; font-weight: 700; }

.db-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.db-feature-card {
  position: relative;
  min-height: 135px;
  padding: 1rem 1rem 1.1rem 1.15rem;
  border: 1px solid #d9e1ec;
  border-top: 3px solid var(--db-accent, #687385);
  background: #fff;
  box-shadow: 0 6px 18px rgba(34, 53, 76, .06);
  color: inherit;
  text-decoration: none !important;
  border-bottom: 0 !important;
  border-radius: 12px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.db-feature-card:hover,
.db-feature-card:focus,
.db-feature-card:visited { color: inherit; text-decoration: none !important; border-bottom: 0 !important; box-shadow: 0 10px 24px rgba(34, 53, 76, .12); transform: translateY(-2px); }
.db-feature-card h3,
.db-feature-card p { text-decoration: none !important; }
.db-feature-card-pinned { background: #fff9e8; }
.db-feature-card h3 { margin: .25rem 0 .45rem; font-size: 1.05rem; }
.db-feature-card p { margin: 0; color: #4a5568; font-size: .9rem; }
.db-feature-card-date { color: #718096 !important; font-size: .78rem !important; }
.db-feature-card-description { margin-top: .55rem; color: #718096; font-size: .86rem; }
.db-feature-card-image { width: 100%; max-height: 130px; margin-top: .75rem; object-fit: cover; }

.db-category-nav {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin: 0 0 1.6rem;
  padding: .2rem 0 .35rem;
  overflow-x: auto;
  border: 0;
  background: transparent;
  border-radius: 0;
  scrollbar-width: thin;
  scrollbar-color: #c5d2e2 transparent;
}
.db-category-link {
  flex: 0 0 auto;
  padding: .58rem 1rem;
  border: 1px solid #dbe4ef;
  background: #fff;
  color: #4a5568;
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  border-radius: 999px;
  box-shadow: 0 2px 7px rgba(34, 53, 76, .045);
  transition: background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.db-category-link:hover { border-color: #aac4f5; background: #f6f9ff; color: #174daf; transform: translateY(-1px); }
.db-category-link:focus-visible { outline: 3px solid rgba(35, 101, 234, .3); outline-offset: 2px; }
.db-category-link.is-active { border-color: transparent; background: linear-gradient(135deg, #2365ea, #4788f5); color: #fff; box-shadow: 0 7px 16px rgba(35, 101, 234, .24); }
.db-category-link small {
  margin-left: .35rem;
  color: currentColor;
  opacity: .72;
  font-size: .72em;
  font-weight: 700;
  white-space: nowrap;
}
.db-category-heading h2 small {
  margin-left: .45rem;
  color: #718096;
  font-size: .58em;
  font-weight: 700;
  white-space: nowrap;
}

.db-presentation-page {
  --ppt-navy: #0e2742;
  --ppt-navy-2: #153b60;
  --ppt-blue: #2b71b8;
  --ppt-gold: #d99a36;
  --ppt-paper: #fff;
  --ppt-ink: #1c2735;
  --ppt-muted: #637186;
  min-height: calc(100vh - 150px);
  margin-top: -1rem;
  padding: .75rem clamp(.75rem, 4vw, 3rem) 2rem;
  background: #e7ebf1;
}
.db-presentation-stage {
  width: min(100%, calc((100vh - 240px) * 16 / 9));
  max-width: 1280px;
  margin: 0 auto;
}
.db-presentation-page:fullscreen,
.db-presentation-page:-webkit-full-screen {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  margin: 0;
  padding: 1rem;
  overflow: hidden;
  background: #0f1a26;
}
.db-presentation-page:fullscreen::backdrop,
.db-presentation-page:-webkit-full-screen::backdrop { background: #0f1a26; }
.db-presentation-page:fullscreen > [data-presentation],
.db-presentation-page:-webkit-full-screen > [data-presentation] {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
}
.db-presentation-page:fullscreen .db-presentation-stage,
.db-presentation-page:-webkit-full-screen .db-presentation-stage {
  box-sizing: border-box;
  contain: layout;
  flex: 0 0 auto;
  width: min(100%, calc((100vh - 12rem) * 16 / 9));
  max-width: none;
  margin: 0 auto;
}
.db-presentation-page:fullscreen .db-presentation-slides,
.db-presentation-page:-webkit-full-screen .db-presentation-slides {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
}
.db-presentation-mininav {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: .1rem;
  align-items: center;
  width: 100%;
  margin: 0 auto .75rem;
}
.db-presentation-mininav button {
  min-width: 0;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: .45rem .2rem;
  color: #637186;
  background: transparent;
  font: inherit;
  font-size: .72rem;
  cursor: pointer;
  overflow-wrap: anywhere;
}
.db-presentation-mininav button span { display: block; color: #9aa7b7; font-size: .65rem; letter-spacing: .08em; }
.db-presentation-mininav button.is-current { border-bottom-color: #d99a36; color: #0e2742; font-weight: 700; }
.db-presentation-mininav button.is-done { color: #2b71b8; }
.db-presentation-slides {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--ppt-navy);
  border-radius: 12px;
  box-shadow: 0 22px 55px rgba(14, 39, 66, .2);
}
.db-presentation-slide {
  box-sizing: border-box;
  height: 100%;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  padding: clamp(.85rem, 2.2vw, 2rem);
  color: var(--ppt-ink);
  background: var(--ppt-paper);
}
.db-presentation-slide[hidden] { display: none; }
.db-presentation-title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; min-width: 0; margin-bottom: .75rem; }
.db-presentation-title-row > div { min-width: 0; }
.db-presentation-title-row .db-presentation-eyebrow { margin-bottom: .25rem; }
.db-presentation-slide h2 { margin: 0; color: var(--ppt-navy); font-size: clamp(1.9rem, 4.3vw, 4.15rem); line-height: 1.05; letter-spacing: .01em; overflow-wrap: anywhere; }
.db-presentation-title-row .db-presentation-detail-link { flex: 0 0 auto; margin: 0 0 .25rem; white-space: nowrap; }
.db-presentation-slide > * { max-width: 100%; }
.db-presentation-cover,
.db-presentation-closing { color: #fffdf8; background: linear-gradient(135deg, var(--ppt-navy-deep, #091a2d), var(--ppt-navy-2)); }
.db-presentation-cover { position: relative; color: #fffdf8; background: linear-gradient(135deg, var(--ppt-navy-deep, #091a2d), var(--ppt-navy-2)); }
.db-presentation-cover::after,
.db-presentation-closing::after { content: ""; position: absolute; right: -8%; bottom: -35%; width: 48%; aspect-ratio: 1; border: 1px solid rgba(217,154,54,.4); border-radius: 50%; box-shadow: 0 0 0 34px rgba(217,154,54,.07), 0 0 0 68px rgba(217,154,54,.05); pointer-events: none; }
.db-presentation-cover h2,
.db-presentation-closing h2 { color: #fffdf8; }
.db-presentation-cover .db-presentation-eyebrow,
.db-presentation-closing .db-presentation-eyebrow { color: #f2c15b; }
.db-presentation-lead { max-width: 46rem; color: #526274; font-size: 1.2rem; }
.db-presentation-cover > p:not(.db-presentation-eyebrow),
.db-presentation-closing > p { color: #cbd5e0; font-size: 1.15rem; }
.db-presentation-highlight-list,
.db-presentation-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem 1.15rem; max-width: 900px; margin: 1rem 0 0; padding: 0; list-style: none; }
.db-presentation-highlight-list li,
.db-presentation-list li { display: flex; min-width: 0; flex-direction: column; gap: .1rem; padding: .42rem 0; border-bottom: 1px solid #d9e1ec; overflow-wrap: anywhere; }
.db-presentation-highlight-list li { border-color: rgba(255, 255, 255, .2); }
.db-presentation-list span,
.db-presentation-highlight-list span { color: #718096; font-size: .85rem; }
.db-presentation-highlight-list span { color: #cbd5e0; }
.db-presentation-cover-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(130px, 26%); gap: 1.25rem; align-items: end; min-width: 0; }
.db-presentation-cover-grid > * { min-width: 0; }
.db-presentation-avatar { width: min(190px, 100%); max-width: 100%; aspect-ratio: 1; object-fit: cover; border: 4px solid rgba(255,255,255,.8); border-radius: 50%; justify-self: end; box-shadow: 0 16px 30px rgba(0,0,0,.22); }
.db-presentation-overview-grid,
.db-presentation-academic-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, 30%); gap: 1.2rem; align-items: center; }
.db-presentation-overview-aside { padding: .9rem; color: #fff; background: #153b60; border-radius: 14px; }
.db-presentation-avatar-large { display: block; width: min(130px, 100%); margin: 0 auto .65rem; }
.db-presentation-overview-aside strong { display: block; color: #f2c15b; font-size: 1.1rem; }
.db-presentation-overview-aside p { color: #d8e5f3; font-size: .9rem; }
.db-presentation-stat { padding: 1rem; text-align: center; background: #f8eedb; border-radius: 14px; }
.db-presentation-stat strong { display: block; color: #c6862a; font-size: 2.7rem; line-height: 1; }
.db-presentation-stat span { display: block; margin-top: .45rem; color: #637186; }
.db-presentation-stat em { display: inline-block; margin-top: .55rem; padding: .3rem .65rem; color: #0e2742; background: #fff; border-radius: 999px; font-style: normal; }
.db-presentation-statline { display: flex; align-items: baseline; gap: .8rem; margin-bottom: .5rem; }
.db-presentation-statline strong { color: #d99a36; font-size: 2.6rem; line-height: 1; }
.db-presentation-score { display: flex; align-items: baseline; gap: .8rem; margin-bottom: .8rem; padding: .8rem 1rem; color: #fff; background: #153b60; border-radius: 14px; }
.db-presentation-score strong { color: #f2c15b; font-size: 3rem; line-height: 1; }
.db-presentation-hobbies { margin: .65rem 0 0; color: #2b71b8; font-weight: 700; }
.db-presentation-list-dense { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .35rem 1.1rem; margin-top: 1.05rem; }
.db-presentation-list-dense li { padding: .4rem 0; }
.db-presentation-markdown { max-width: 54rem; margin-bottom: .9rem; }
.db-presentation-markdown p { margin: .45rem 0; }
.db-presentation-detail-link { display: inline-block; margin-top: .75rem; color: #f2c15b; font-weight: 700; }
.db-presentation-slide:not(.db-presentation-cover):not(.db-presentation-closing) .db-presentation-detail-link { color: #b87516; }
.db-presentation-activity-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.db-presentation-activity-grid article { padding: .8rem; border-left: 4px solid #d69e2e; background: #fff4d6; }
.db-presentation-activity-grid strong,
.db-presentation-activity-grid span { display: block; }
.db-presentation-activity-grid span { margin-top: .25rem; color: #718096; font-size: .85rem; }
.db-presentation-activity-grid p { margin: .45rem 0 0; color: #4a5568; }
.db-presentation-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .65rem; padding: .65rem; color: #fff; background: #223747; }
.db-presentation-controls button { border: 1px solid rgba(255,255,255,.35); border-radius: 999px; padding: .4rem .7rem; color: #fff; background: transparent; cursor: pointer; }
.db-presentation-controls button:hover { background: #3b5669; }

.db-profile-section {
  clear: both;
  margin: 1.75rem 0;
}
.db-profile-section-with-image { display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, 30%); gap: 1.5rem; align-items: start; }
.db-profile-section-with-image .db-profile-section-copy { grid-column: 1; grid-row: 1; }
.db-profile-section-with-image .db-section-image { grid-column: 2; grid-row: 1; width: 100%; max-width: 320px; margin: 0 0 0 auto; float: none; border-radius: 14px; box-shadow: 0 10px 24px rgba(34, 53, 76, .12); }

.db-profile-section h2,
.db-category h2 {
  margin-bottom: .25rem;
}

[data-profile-sections] { counter-reset: profile-section; }
[data-profile-sections] .db-profile-section { counter-increment: profile-section; }
[data-profile-sections] .db-profile-section h2 {
  display: flex;
  align-items: center;
  gap: .65rem;
  color: #203b54;
  font-weight: 800;
  letter-spacing: .01em;
}
[data-profile-sections] .db-profile-section h2::before {
  content: counter(profile-section);
  display: inline-grid;
  flex: 0 0 2rem;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, #168b93, #176b80);
  box-shadow: 0 3px 9px rgba(23, 107, 128, .22);
  font-size: .88rem;
  letter-spacing: 0;
}

.db-section-subtitle {
  margin: 0 0 .75rem;
  color: #718096;
  font-size: .78rem;
  letter-spacing: .08em;
}

.db-section-image {
  max-width: 220px;
  margin: 0 1rem 1rem 0;
  float: left;
  border-radius: 6px;
}

.db-category {
  clear: both;
  margin: 1.5rem 0 2rem;
}

.db-category-heading {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.db-category-heading::before {
  content: "";
  width: 4px;
  height: 1.3em;
  background: var(--db-accent, #2365ea);
}

.db-category-description {
  color: #718096;
}

.db-accent-gold { --db-accent: #c88a17; }
.db-accent-blue { --db-accent: #2365ea; }
.db-accent-green { --db-accent: #16845b; }
.db-accent-purple { --db-accent: #7654b8; }
.db-accent-gray { --db-accent: #687385; }

.db-awards-table {
  width: 100%;
  table-layout: fixed;
  border: 1px solid #d9e1ec;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 22px rgba(34, 53, 76, .06);
}

.db-awards-table th,
.db-awards-table td {
  padding: .55rem .65rem;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.db-awards-table th {
  color: #34465a;
  background: #f3f6fa;
  font-size: .82rem;
  letter-spacing: .04em;
}
.db-awards-table th:nth-child(1),
.db-awards-table td:nth-child(1) { width: 7rem; }
.db-awards-table th:nth-child(3),
.db-awards-table td:nth-child(3) { width: 10rem; }
.db-awards-table th:nth-child(4),
.db-awards-table td:nth-child(4) { width: 6.5rem; }

.db-awards-table tbody tr + tr td {
  border-top: 1px solid #e6ebf2;
}

.db-awards-table tbody tr:hover td {
  background: #f8fbff;
}

.db-award-pinned {
  background: rgba(255, 214, 102, .18);
  box-shadow: inset 4px 0 0 #d69e2e;
}

.db-offline-label {
  display: inline-block;
  margin-left: .45rem;
  padding: .12rem .42rem;
  border: 1px solid #b8d0e5;
  border-radius: 999px;
  background: #edf6ff;
  color: #27618f;
  font-size: .72rem;
  font-weight: 700;
  vertical-align: middle;
}

.db-award-description,
.db-activity-description {
  margin-top: .25rem;
  color: #718096;
  font-size: .9em;
}

.timeline-item.db-activity-pinned::before {
  background: #d69e2e;
  box-shadow: 0 0 0 3px rgba(214, 158, 46, .2);
}

.db-admin {
  max-width: 980px;
}

.db-admin-toolbar,
.db-admin-tabs,
.db-form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem;
}

.db-admin-tabs {
  margin: 1.25rem 0;
  border-bottom: 1px solid #d9e1ec;
}

.db-admin-tabs button {
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  padding: .65rem .8rem;
  cursor: pointer;
}

.db-admin-tabs button.is-active {
  border-bottom-color: #2365ea;
  color: #2365ea;
  font-weight: 700;
}

.db-admin-panel[hidden] { display: none; }

.db-admin form {
  margin: 1rem 0 1.5rem;
  padding: 1rem;
  border: 1px solid #d9e1ec;
  border-radius: 6px;
}

.db-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .8rem 1rem;
}

.db-form-grid .db-field-full { grid-column: 1 / -1; }
.db-form-section-title {
  margin: .5rem 0 -.15rem;
  padding-top: .75rem;
  border-top: 1px solid #e1e8f0;
  color: #42526b;
  font-size: 1rem;
}

.db-admin label {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  font-weight: 600;
}

.db-admin input,
.db-admin select,
.db-admin textarea {
  box-sizing: border-box;
  width: 100%;
  border: 1px solid #cbd5e0;
  border-radius: 4px;
  padding: .5rem .6rem;
  background: #fff;
  color: #263447;
  font: inherit;
}

.db-admin textarea { min-height: 8rem; resize: vertical; }

.db-admin-table {
  width: 100%;
  border-collapse: collapse;
}

.db-admin-table th,
.db-admin-table td {
  padding: .55rem .4rem;
  border-bottom: 1px solid #e6ebf2;
  text-align: left;
  vertical-align: top;
}

.db-admin-table .db-row-actions {
  white-space: nowrap;
}

.db-admin-error { color: #b42318; }
.db-admin-success { color: #16794c; }

@media (max-width: 700px) {
  .db-presentation-page:fullscreen,
  .db-presentation-page:-webkit-full-screen {
    display: block;
    height: auto;
    min-height: 100vh;
    padding: 1rem .75rem 2rem;
    overflow: auto;
  }
  .db-presentation-page:fullscreen > [data-presentation],
  .db-presentation-page:-webkit-full-screen > [data-presentation] { display: block; }
  .db-presentation-page:fullscreen .db-presentation-stage,
  .db-presentation-page:-webkit-full-screen .db-presentation-stage { width: 100%; }
  .db-overview-identity { grid-template-columns: minmax(0, 1fr) 130px; align-items: start; gap: .8rem; }
  .db-overview-feature-image { max-height: 140px; }
  .db-feature-grid { grid-template-columns: 1fr; }
  .db-category-nav { gap: .45rem; margin-bottom: 1.2rem; padding-bottom: .25rem; overflow-x: visible; flex-wrap: wrap; scrollbar-width: none; }
  .db-category-nav::-webkit-scrollbar { display: none; }
  .db-category-link { padding: .52rem .86rem; font-size: .86rem; }
  .db-section-heading { align-items: center; flex-direction: row; gap: .5rem; }
  .db-section-heading > div { min-width: 0; }
  .db-section-heading .db-text-link { flex: 0 0 auto; white-space: nowrap; font-size: .86rem; }
  .db-presentation-page { padding: 1rem .75rem 2rem; }
  .db-presentation-stage { width: 100%; }
  .db-presentation-mininav { grid-template-columns: repeat(5, minmax(0, 1fr)); row-gap: .2rem; }
  .db-presentation-mininav button { padding: .25rem .15rem; font-size: .66rem; }
  .db-presentation-mininav button span { font-size: .58rem; }
  /* On narrow screens the slide becomes a natural-height page section.  Keep
     the decorative rings out of the viewport so the page can grow vertically
     without clipping the cover content or introducing a horizontal scrollbar. */
  .db-presentation-slides { aspect-ratio: auto; min-height: 0; overflow: visible; }
  .db-presentation-slide { height: auto; min-height: calc(100vh - 235px); overflow: visible; padding: .9rem; border-radius: 12px; }
  .db-presentation-cover::after,
  .db-presentation-closing::after { display: none; }
  .db-presentation-title-row { align-items: center; gap: .5rem; margin-bottom: .65rem; }
  .db-presentation-title-row .db-presentation-detail-link { white-space: normal; text-align: right; }
  .db-presentation-slide h2 { font-size: 2.05rem; }
  .db-presentation-cover-grid { grid-template-columns: 1fr; }
  .db-presentation-overview-grid,
  .db-presentation-academic-grid { grid-template-columns: 1fr; }
  .db-presentation-avatar { width: 110px; justify-self: start; }
  .db-presentation-highlight-list,
  .db-presentation-list,
  .db-presentation-list-dense,
  .db-presentation-activity-grid { grid-template-columns: 1fr; }
  .db-form-grid { grid-template-columns: 1fr; }
  .db-form-grid .db-field-full { grid-column: auto; }
  .db-awards-table th:nth-child(4),
  .db-awards-table td:nth-child(4) { display: none; }
  .db-awards-table th,
  .db-awards-table td { padding: .5rem .45rem; font-size: .88rem; }
  .db-awards-table th:first-child,
  .db-awards-table td:first-child { width: 4.6rem; }
  .db-profile-section-with-image { grid-template-columns: 1fr; }
  .db-profile-section-with-image .db-profile-section-copy,
  .db-profile-section-with-image .db-section-image { grid-column: 1; grid-row: auto; }
  .db-profile-section-with-image .db-section-image { margin: 0 auto 1rem; }
  .db-section-image { float: none; max-width: 100%; margin: 0 auto 1rem; }
}

/* High-contrast overrides for the site's dark theme. */
html[data-theme="dark"] .db-content-status { color: #d9e8f7; background: rgba(99, 170, 238, .16); border-color: #77b7f2; }
html[data-theme="dark"] .db-page-intro,
html[data-theme="dark"] .db-overview-english,
html[data-theme="dark"] .db-overview-meta,
html[data-theme="dark"] .db-section-subtitle,
html[data-theme="dark"] .db-category-description,
html[data-theme="dark"] .db-award-description,
html[data-theme="dark"] .db-activity-description,
html[data-theme="dark"] .db-feature-card-description,
html[data-theme="dark"] .db-feature-card p { color: #b9c9d9; }
html[data-theme="dark"] .db-overview-identity { border-color: #3a4d61; }
html[data-theme="dark"] .db-feature-card,
html[data-theme="dark"] .db-admin form { border-color: #3b5065; background: #182735; color: #edf3f9; }
html[data-theme="dark"] .db-feature-card-pinned { background: #3a321f; }
html[data-theme="dark"] [data-profile-sections] .db-profile-section h2 { color: #f0f6fd; }
html[data-theme="dark"] [data-profile-sections] .db-profile-section h2::before {
  color: #082d38;
  background: linear-gradient(145deg, #8de3dd, #68c3d0);
  box-shadow: 0 3px 10px rgba(0, 0, 0, .28);
}
html[data-theme="dark"] .db-category-link { border-color: #3b5065; background: #182735; color: #c7d5e3; }
html[data-theme="dark"] .db-category-link:hover { border-color: #5c83aa; background: #20384d; color: #edf6ff; }
html[data-theme="dark"] .db-category-link.is-active { border-color: transparent; background: linear-gradient(135deg, #337fc8, #4a9bdb); color: #fff; box-shadow: 0 7px 16px rgba(0, 0, 0, .25); }
html[data-theme="dark"] .db-awards-table th,
html[data-theme="dark"] .db-awards-table td,
html[data-theme="dark"] .db-admin-table th,
html[data-theme="dark"] .db-admin-table td { border-color: #3a4d61; color: #edf3f9; }
html[data-theme="dark"] .db-awards-table { border-color: #3a4d61; background: #182735; }
html[data-theme="dark"] .db-awards-table th { background: #22384c; }
html[data-theme="dark"] .db-awards-table tbody tr:hover td { background: #203447; }
html[data-theme="dark"] .db-award-pinned { background: rgba(217, 154, 54, .2); }
html[data-theme="dark"] .db-offline-label { border-color: #477da8; background: #21425e; color: #c2e1ff; }
html[data-theme="dark"] .db-presentation-page { background: #0f1a26; }
html[data-theme="dark"] .db-presentation-mininav button { color: #b9c9d9; }
html[data-theme="dark"] .db-presentation-mininav button.is-current { color: #fff; }
html[data-theme="dark"] .db-presentation-slide:not(.db-presentation-cover):not(.db-presentation-closing) { background: #182735; color: #edf3f9; }
html[data-theme="dark"] .db-presentation-slide:not(.db-presentation-cover):not(.db-presentation-closing) h2 { color: #f5f8fb; }
html[data-theme="dark"] .db-presentation-slide:not(.db-presentation-cover):not(.db-presentation-closing) .db-presentation-detail-link { color: #f2c15b; }
html[data-theme="dark"] .db-presentation-lead,
html[data-theme="dark"] .db-presentation-list span,
html[data-theme="dark"] .db-presentation-activity-grid span,
html[data-theme="dark"] .db-presentation-activity-grid p,
html[data-theme="dark"] .db-presentation-stat span { color: #bfd0df; }
html[data-theme="dark"] .db-presentation-stat { background: #3b3323; }
html[data-theme="dark"] .db-presentation-stat em { color: #edf3f9; background: #263b4e; }
html[data-theme="dark"] .db-presentation-overview-aside,
html[data-theme="dark"] .db-presentation-score { background: #214a70; }
html[data-theme="dark"] .db-presentation-overview-aside p { color: #d8e7f4; }
html[data-theme="dark"] .db-presentation-hobbies { color: #83c4ff; }
html[data-theme="dark"] .db-presentation-activity-grid article { background: #30402f; }
html[data-theme="dark"] .db-admin input,
html[data-theme="dark"] .db-admin select,
html[data-theme="dark"] .db-admin textarea { border-color: #486076; background: #111c28; color: #edf3f9; }
html[data-theme="dark"] .db-form-section-title { border-color: #3a4d61; color: #d9e8f7; }
html[data-theme="dark"] .db-admin-toast.db-admin-success { border-color: #316a50; border-left-color: #53c486; background: #173829; color: #d9f7e7; }
html[data-theme="dark"] .db-admin-toast.db-admin-error { border-color: #75413e; border-left-color: #f17b74; background: #3a211f; color: #ffe3e1; }
html[data-theme="dark"] .db-admin-toast.db-admin-info { border-color: #3c5c7d; border-left-color: #77b7f2; background: #1b2e42; color: #d9e8f7; }
html[data-theme="dark"] .db-admin-toast.db-admin-success::before { background: #53c486; color: #10261a; }
html[data-theme="dark"] .db-admin-toast.db-admin-error::before { background: #f17b74; color: #351816; }
html[data-theme="dark"] .db-admin-toast.db-admin-info::before { background: #77b7f2; color: #102030; }

@media (prefers-reduced-motion: reduce) {
  .db-admin-toast { transition: none; }
}

/* ---------- 后台：文件上传 ---------- */
.db-upload {
  margin: .25rem 0 .5rem;
  padding: .9rem;
  border: 1px solid #d9e1ec;
  border-radius: 8px;
  background: #f8fbff;
}

.db-upload-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .5rem;
  margin-bottom: .6rem;
}

.db-upload-head span { font-weight: 700; color: #263447; }
.db-upload-head small { color: #66788f; font-weight: 400; }

.db-upload-drop {
  position: relative;
  display: block;
  padding: 1rem;
  border: 1px dashed #a8bdd6;
  border-radius: 8px;
  background: #fff;
  color: #42526b;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}

.db-upload-drop:hover,
.db-upload-drop.is-dragging {
  border-color: #2365ea;
  background: #f0f6ff;
}

.db-upload-drop input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.db-upload-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: .7rem;
}

.db-upload-empty { color: #7b8b9f; font-size: .85rem; }

.db-upload-thumb {
  position: relative;
  width: 84px;
  height: 84px;
  margin: 0;
  border: 1px solid #d9e1ec;
  border-radius: 6px;
  background: #fff;
  overflow: hidden;
}

.db-upload-thumb a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.db-upload-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.db-upload-file {
  font-size: .78rem;
  font-weight: 700;
  color: #2365ea;
  letter-spacing: .06em;
}

.db-upload-remove {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(38, 52, 71, .72);
  color: #fff;
  font-size: .9rem;
  line-height: 20px;
  cursor: pointer;
}

.db-upload-remove:hover { background: #c03935; }

.db-admin-badge {
  display: inline-block;
  padding: .1rem .45rem;
  border-radius: 999px;
  background: #e6f4ec;
  color: #16794c;
  font-size: .78rem;
  font-weight: 700;
}

.db-admin-badge.is-draft {
  background: #fdf2e2;
  color: #9a6100;
}

/* ---------- 站点：获奖证明缩略图 ---------- */
.db-award-proofs {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: .5rem;
}

.db-award-proof {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border: 1px solid #d9e1ec;
  border-radius: 6px;
  background: #fff;
  overflow: hidden;
}

.db-award-proof img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.db-award-proof-file {
  width: auto;
  padding: 0 .5rem;
  font-size: .78rem;
  font-weight: 700;
  color: #2365ea;
  white-space: nowrap;
}
