/* Zhou Lab website */
:root {
  --ink: #2b3466;
  --ink-soft: #66709c;
  --navy: #2b3466;
  --aqua: #5fcfe0; --aqua-deep: #2196ad; --aqua-soft: #e6f8fb;
  --mint: #7fdcaa; --mint-deep: #1f9a6c; --mint-soft: #e8f9ef;
  --peri: #6c7fc6; --peri-deep: #4d5fae; --peri-soft: #eceffa;
  --lav: #b39af0; --lav-deep: #7b5fd0; --lav-soft: #f1edfd;
  --pink: #ee8db4; --pink-deep: #c84a7c; --pink-soft: #fdeef4;
  --gold: #f2c45a; --gold-deep: #b07d0a; --gold-soft: #fff5dc;
  --line: #dbe6f2;
  --bg: #f8fafe;
  --card: rgba(255, 255, 255, .92);
  --accepted: #1f9a78;
  --late: #c0527a;
  --radius: 22px;
  --shadow: 0 6px 22px rgba(43, 52, 102, .07);
  --wrap: 60rem;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ink); background: var(--bg);
  font-family: "Zen Maru Gothic", "Quicksand", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: 16px; line-height: 1.8; overflow-x: hidden;
}
html[lang="en"] body { font-family: "Quicksand", "Zen Maru Gothic", system-ui, sans-serif; line-height: 1.65; }
body.no-scroll { overflow: hidden; }
[hidden] { display: none !important; }
img { max-width: 100%; }
a { color: var(--peri-deep); }
h1, h2, h3, .hero-title, .sec-title { font-family: "M PLUS Rounded 1c", "Zen Maru Gothic", sans-serif; }
html[lang="en"] h1, html[lang="en"] h2, html[lang="en"] h3, html[lang="en"] .hero-title { font-family: "Quicksand", "M PLUS Rounded 1c", sans-serif; }
.skip { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--navy); color: #fff; padding: .4rem .9rem; border-radius: 0 0 12px 0; }
.skip:focus { left: 0; }
button:focus-visible, a:focus-visible, textarea:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid var(--peri); outline-offset: 2px; }
.wrap { position: relative; z-index: 1; max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
main.wrap { padding-bottom: 4.5rem; min-height: 60vh; outline: none; }
.ic { display: inline-flex; width: 1.1em; height: 1.1em; flex: none; vertical-align: -.15em; }
.ic svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.center { text-align: center; margin-top: 1.4rem; }

/* color helpers */
.c-aqua { --c: var(--aqua-deep); --cb: var(--aqua); --cs: var(--aqua-soft); }
.c-mint { --c: var(--mint-deep); --cb: var(--mint); --cs: var(--mint-soft); }
.c-peri { --c: var(--peri-deep); --cb: var(--peri); --cs: var(--peri-soft); }
.c-lav { --c: var(--lav-deep); --cb: var(--lav); --cs: var(--lav-soft); }
.c-pink { --c: var(--pink-deep); --cb: var(--pink); --cs: var(--pink-soft); }
.c-gold { --c: var(--gold-deep); --cb: var(--gold); --cs: var(--gold-soft); }
.c-navy { --c: var(--navy); --cb: var(--navy); --cs: var(--peri-soft); }
.b-aqua { --c: var(--aqua-deep); --cb: var(--aqua); --cs: var(--aqua-soft); }
.b-mint { --c: var(--mint-deep); --cb: var(--mint); --cs: var(--mint-soft); }
.b-peri { --c: var(--peri-deep); --cb: var(--peri); --cs: var(--peri-soft); }
.b-lav { --c: var(--lav-deep); --cb: var(--lav); --cs: var(--lav-soft); }
.b-pink { --c: var(--pink-deep); --cb: var(--pink); --cs: var(--pink-soft); }
.b-gold { --c: var(--gold-deep); --cb: var(--gold); --cs: var(--gold-soft); }

/* ---------- soap bubbles ---------- */
.bubbles { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.bubbles span {
  position: absolute; bottom: -180px; border-radius: 50%;
  background:
    radial-gradient(circle at 30% 26%, rgba(255,255,255,.95) 0 3.5%, rgba(255,255,255,0) 11%),
    radial-gradient(circle at 50% 50%, rgba(255,255,255,0) 62%, rgba(140,225,235,.16) 80%, rgba(190,170,240,.24) 93%, rgba(255,190,225,.18) 100%);
  box-shadow: inset 0 0 0 1px rgba(170,200,240,.28);
  animation: rise linear infinite; will-change: transform;
}
@keyframes rise {
  0% { transform: translate3d(0, 0, 0) scale(.92); opacity: 0; }
  8% { opacity: .8; }
  50% { transform: translate3d(26px, -60vh, 0) scale(1); }
  92% { opacity: .8; }
  100% { transform: translate3d(-14px, -125vh, 0) scale(1.05); opacity: 0; }
}

/* ---------- header ---------- */
.site-header { position: relative; z-index: 5; background: #fff; padding-bottom: .9rem; }
.topbar { display: flex; justify-content: flex-end; align-items: center; gap: .6rem; padding-top: .9rem; }
.lang { display: inline-flex; border: 2px solid var(--peri); border-radius: 999px; overflow: hidden; background: #fff; }
.lang button { border: 0; background: transparent; color: var(--peri-deep); font: inherit; font-weight: 700; font-size: .78rem; padding: .15rem .8rem; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--peri); color: #fff; }
.login-btn, .user-btn { display: inline-flex; align-items: center; gap: .35rem; border: 0; border-radius: 999px; background: var(--peri); color: #fff; font: inherit; font-weight: 700; font-size: .8rem; padding: .3rem .95rem; text-decoration: none; cursor: pointer; }
.user-btn { background: #fff; color: var(--ink); border: 2px solid var(--line); padding: .15rem .7rem .15rem .2rem; }
.avatar { display: inline-grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: linear-gradient(135deg, var(--aqua), var(--lav)); color: #fff; font-weight: 700; font-size: .85rem; }
.avatar.big { width: 2.8rem; height: 2.8rem; font-size: 1.2rem; }
.caret { font-size: .7rem; color: var(--ink-soft); }
.user-name { max-width: 9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand { display: flex; align-items: center; gap: 1.6rem; padding: .2rem 0 .8rem; }
.brand-logo img { width: 92px; height: auto; display: block; }
.brand-text { min-width: 0; flex: 1; }
.brand-name { font-family: "Quicksand", sans-serif; font-weight: 700; font-size: 2.1rem; line-height: 1.1; text-decoration: none; color: var(--aqua-deep); letter-spacing: .01em; }
.brand-sub { margin: .35rem 0 0; color: var(--ink-soft); font-size: .82rem; line-height: 1.5; }
.brand-tree { width: 150px; height: auto; flex: none; margin: -.6rem 0 -.8rem; }

.mainnav { position: relative; }
.nav-row { display: flex; align-items: center; gap: .2rem; overflow-x: auto; padding: .35rem; border-radius: 999px; background: linear-gradient(100deg, var(--aqua-soft), var(--mint-soft) 55%, var(--lav-soft)); scrollbar-width: none; }
.nav-row::-webkit-scrollbar { display: none; }
.nav-item { flex: none; display: inline-flex; align-items: center; gap: .25rem; color: var(--ink); text-decoration: none; font-weight: 700; font-size: .82rem; padding: .35rem .48rem; border-radius: 999px; white-space: nowrap; transition: background .15s; }
.nav-item:hover { background: rgba(255,255,255,.6); }
.nav-item[aria-current="page"] { background: #fff; color: var(--peri-deep); box-shadow: 0 2px 8px rgba(108,127,198,.2); }
.nav-item.member { color: var(--peri-deep); }
.nav-item.locked { color: #8a93bd; font-weight: 500; }
.nav-item .ic { width: .9em; height: .9em; }
.nav-item.admin { color: var(--navy); }
.nav-item.attention { color: var(--late); }
.nav-sep { flex: none; width: 2px; height: 1.3rem; background: var(--peri); border-radius: 2px; margin: 0 .2rem; }
.nav-label { flex: none; font-size: .7rem; font-weight: 700; color: var(--ink-soft); padding-right: .2rem; white-space: nowrap; }

/* account menu */
.overlay { position: fixed; inset: 0; z-index: 50; }
.menu-overlay { background: transparent; }
.account-menu { position: absolute; top: 3.2rem; right: max(1.25rem, calc((100vw - var(--wrap)) / 2 + 1.25rem)); width: 19rem; background: #fff; border: 2px solid var(--line); border-radius: 20px; box-shadow: 0 16px 40px rgba(43,52,102,.18); padding: .6rem; }
.acc-head { display: flex; align-items: center; gap: .7rem; padding: .5rem .6rem .8rem; border-bottom: 2px dotted var(--line); margin-bottom: .3rem; }
.acc-head b { display: block; }
.acc-head span { font-size: .78rem; color: var(--ink-soft); }
.acc-item { display: flex; align-items: center; gap: .6rem; width: 100%; padding: .55rem .6rem; border: 0; background: none; border-radius: 12px; color: var(--ink); text-decoration: none; font: inherit; font-weight: 700; font-size: .9rem; text-align: left; cursor: pointer; }
a.acc-item:hover, button.acc-item:hover { background: var(--peri-soft); }
.acc-item .seg { margin-left: auto; }
.acc-item.danger { color: var(--late); }

/* ---------- shared pieces ---------- */
.chip { display: inline-block; background: var(--cb, var(--navy)); color: #fff; font-family: "Quicksand", sans-serif; font-weight: 700; font-size: .72rem; letter-spacing: .12em; padding: .2rem .9rem; transform: skewX(-12deg); white-space: nowrap; }
.chip.c-mint, .chip.c-gold, .chip.c-aqua { background: var(--c); }
.chip.c-lav { background: var(--lav-deep); } .chip.c-pink { background: var(--pink-deep); } .chip.c-peri { background: var(--peri-deep); }
.card { background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.3rem 1rem; margin-bottom: 1rem; box-shadow: var(--shadow); }
.hero-card { position: relative; overflow: hidden; display: flex; align-items: center; gap: 2rem; margin: 1rem 0 1rem; padding: 2.6rem 2.6rem; border-radius: 32px; border: 2px solid #e2eef7;
  background: radial-gradient(circle at 15% 20%, rgba(255,255,255,.7), transparent 40%), linear-gradient(115deg, #dcf6f6 0%, #e7f6f8 38%, #ecebfb 75%, #efe6fb 100%); }
.hero-main { position: relative; z-index: 2; flex: 1; min-width: 0; }
.hero-side { position: relative; z-index: 2; flex: 0 1 46%; min-width: 0; }
.hero-title { margin: .7rem 0 .4rem; font-size: clamp(1.9rem, 4.5vw, 2.6rem); font-weight: 800; line-height: 1.25; color: var(--navy); letter-spacing: .02em; }
.hero-title.big { font-size: clamp(2.2rem, 5.6vw, 3.4rem); }
html[lang="en"] .hero-title.big { font-size: clamp(2rem, 4.4vw, 2.8rem); }
.hero-desc { margin: 0 0 .4rem; color: var(--ink-soft); max-width: 34rem; }
.hero-note { margin: 0; font-size: .78rem; color: var(--aqua-deep); font-weight: 700; }
.hero-note::before { content: "※ "; }
html[lang="en"] .hero-note::before { content: ""; }
.spark { position: absolute; z-index: 1; color: var(--lav); font-size: 1.2rem; opacity: .8; animation: twinkle 3.5s ease-in-out infinite; }
.spark.s1 { top: 18%; left: 44%; color: var(--aqua); } .spark.s2 { top: 12%; right: 6%; color: var(--pink); animation-delay: -1.2s; } .spark.s3 { bottom: 18%; left: 58%; font-size: .8rem; animation-delay: -2s; }
@keyframes twinkle { 0%, 100% { transform: scale(1); opacity: .8; } 50% { transform: scale(.6); opacity: .35; } }
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.2rem; }
.btn-pill { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; border-radius: 999px; padding: .65rem 1.4rem; font: inherit; font-weight: 700; font-size: .92rem; text-decoration: none; cursor: pointer; border: 2px solid var(--navy); transition: transform .15s; }
.btn-pill.solid { background: var(--navy); color: #fff; }
.btn-pill.outline { background: rgba(255,255,255,.8); color: var(--navy); }
.btn-pill.small { padding: .35rem 1rem; font-size: .84rem; }
.btn-pill:hover { transform: translateY(-2px); }
.stat-row { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1rem; }
.stat-box { min-width: 6.2rem; padding: .55rem 1rem .5rem; border-radius: 16px; background: #fff; box-shadow: 0 3px 0 rgba(43,52,102,.06); border: 2px solid #eef3f9; }
.stat-box b { display: block; font-family: "Quicksand", sans-serif; font-size: 1.65rem; line-height: 1.15; color: var(--c); }
.stat-box span { font-size: .76rem; color: var(--ink-soft); font-weight: 700; }
.anchor-chips { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.2rem; }
.anchor-chip { display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .9rem .35rem .4rem; border-radius: 14px; background: #fff; border: 2px solid #eef3f9; box-shadow: 0 3px 0 rgba(43,52,102,.06); text-decoration: none; color: var(--ink); font-weight: 700; font-size: .84rem; transition: transform .15s; }
.anchor-chip:hover { transform: translateY(-2px); }
.anchor-chip .num { display: inline-grid; place-items: center; min-width: 1.6rem; height: 1.4rem; padding: 0 .3rem; border-radius: 8px; background: var(--cb); color: #fff; font-family: "Quicksand", sans-serif; font-size: .72rem; font-style: italic; }
.anchor-chip .num.c-navy { background: var(--navy); }
.polaroids { position: relative; height: 15rem; }
.polaroid { position: absolute; width: 58%; background: #fff; padding: .45rem .45rem 1.4rem; box-shadow: 0 10px 24px rgba(43,52,102,.15); border-radius: 4px; }
.polaroid img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.polaroid.p0 { left: 2%; top: 10%; transform: rotate(-7deg); } .polaroid.p1 { right: 2%; top: 0; transform: rotate(5deg); } .polaroid.p2 { left: 24%; top: 34%; transform: rotate(-1deg); }

.sec-head { position: relative; margin: 3.2rem 0 1.2rem; scroll-margin-top: 1rem; }
.sec-ghost { position: absolute; left: -.2rem; top: -2.1rem; font-family: "Quicksand", sans-serif; font-weight: 700; font-size: 4.2rem; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px #e3eaf5; white-space: nowrap; pointer-events: none; user-select: none; letter-spacing: .02em; }
.sec-ghost.small { font-size: 3.4rem; top: -1.4rem; }
.sec-row { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.sec-title { margin: .45rem 0 0; font-size: 1.65rem; font-weight: 800; color: var(--navy); line-height: 1.3; }
.more-link { display: inline-flex; align-items: center; gap: .5rem; color: var(--navy); font-weight: 700; font-size: .86rem; text-decoration: none; white-space: nowrap; }
.more-line { width: 1.2rem; height: 2px; background: currentColor; }
.mini-tag { display: inline-block; font-size: .72rem; font-weight: 700; padding: .05rem .6rem; border-radius: 999px; background: var(--lav-soft); color: var(--lav-deep); }
.seg { display: inline-flex; padding: .2rem; border-radius: 999px; background: var(--peri-soft); }
.seg button { border: 0; background: none; font: inherit; font-weight: 700; font-size: .84rem; color: var(--ink-soft); padding: .3rem 1rem; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.seg button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.searchbox { flex: 1; min-width: 12rem; display: flex; align-items: center; gap: .5rem; padding: 0 1rem; border: 2px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink-soft); }
.searchbox input { border: 0 !important; padding: .55rem 0 !important; background: transparent; outline: none; flex: 1; min-width: 0; font: inherit; color: var(--ink); }
.searchbox:focus-within { border-color: var(--peri); }
.filter-card { padding: .9rem 1rem; }
.filter-top { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; }
.year-pills { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .8rem; }
.ypill { border: 2px solid var(--line); background: #fff; color: var(--ink); font: inherit; font-weight: 700; font-size: .84rem; padding: .15rem 1rem; border-radius: 999px; cursor: pointer; }
.ypill[aria-pressed="true"] { background: linear-gradient(100deg, var(--aqua), var(--lav)); border-color: transparent; color: #fff; }
.list-count { margin: 1.2rem 0 .8rem; font-size: .84rem; color: var(--ink-soft); font-weight: 700; }

/* ---------- home ---------- */
.home-hero { min-height: 26rem; }
.hero-tree { position: relative; z-index: 2; flex: 0 0 46%; aspect-ratio: 1 / 1; max-width: 28rem; display: grid; place-items: center; }
.orbit { position: absolute; inset: 4%; border: 2px dashed #c8cdee; border-radius: 50%; }
.tree-big { position: relative; width: 106%; max-width: none; height: auto; }
.tree-badge { position: absolute; top: 45%; left: 50%; transform: translate(-50%, -50%); width: 34%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
  background:
    radial-gradient(circle at 30% 24%, rgba(255,255,255,.95) 0 4%, rgba(255,255,255,0) 12%),
    radial-gradient(circle at 72% 78%, rgba(255,255,255,.5) 0 3%, rgba(255,255,255,0) 9%),
    radial-gradient(circle at 50% 50%, rgba(255,255,255,.34) 0 48%, rgba(255,255,255,.12) 64%, rgba(140,225,235,.22) 80%, rgba(190,170,240,.32) 92%, rgba(255,190,225,.3) 100%);
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.75), inset 0 -6px 14px rgba(179,154,240,.18), 0 6px 18px rgba(108,127,198,.14);
  backdrop-filter: blur(1.5px) saturate(1.15); -webkit-backdrop-filter: blur(1.5px) saturate(1.15); }
.tree-badge img { width: 64%; filter: drop-shadow(0 0 6px rgba(255,255,255,.9)) drop-shadow(0 0 2px rgba(255,255,255,.9)); }
.float-stat { position: absolute; z-index: 3; padding: .35rem .9rem .35rem .8rem; background: #fff; border-radius: 14px; box-shadow: 0 8px 20px rgba(43,52,102,.12); border-left: 5px solid var(--cb); line-height: 1.2; white-space: nowrap; transform: translate(-50%, -50%); animation: floaty 5s ease-in-out infinite; }
.float-stat b { display: block; font-family: "Quicksand", sans-serif; font-size: 1.4rem; color: var(--c); }
.float-stat span { font-size: .7rem; color: var(--ink-soft); font-weight: 700; }
/* the dashed circle (inset 4%, radius 46%) passes through the centre of each number card */
.float-stat.f1 { left: 17.47%; top: 17.47%; } .float-stat.f2 { left: 96%; top: 50%; animation-delay: -1.5s; } .float-stat.f3 { left: 17.47%; top: 82.53%; animation-delay: -3s; }
@keyframes floaty { 0%, 100% { transform: translate(-50%, -50%); } 50% { transform: translate(-50%, calc(-50% - 6px)); } }

.news-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1.2rem; align-items: stretch; }
.news-card { display: flex; flex-direction: column; justify-content: space-between; padding: .4rem 1.3rem; margin: 0; }
.news-row { display: grid; grid-template-columns: 4.4rem 4.2rem 1fr; align-items: center; gap: .6rem; padding: .85rem 0; border-bottom: 2px dotted var(--line); font-size: .9rem; }
.news-row:last-child { border-bottom: 0; }
.news-date { font-family: "Quicksand", sans-serif; font-weight: 700; color: var(--ink-soft); font-size: .84rem; }
.news-tag { text-align: center; font-size: .72rem; font-weight: 700; border-radius: 999px; padding: .05rem .3rem; background: var(--aqua-soft); color: var(--aqua-deep); }
.news-tag.t-adopted { background: var(--gold-soft); color: var(--gold-deep); } .news-tag.t-grant { background: var(--mint-soft); color: var(--mint-deep); }
.news-tag.t-award { background: var(--pink-soft); color: var(--pink-deep); } .news-tag.t-event { background: var(--lav-soft); color: var(--lav-deep); } .news-tag.t-other { background: var(--peri-soft); color: var(--peri-deep); }
.news-text { line-height: 1.65; }
.home-side { display: grid; grid-template-rows: auto 1fr; gap: 1.2rem; }
.home-side .side-card { display: flex; flex-direction: column; }
.conf-list { flex: 1; display: flex; flex-direction: column; justify-content: space-around; }
.side-card { display: block; text-decoration: none; color: var(--ink); border-radius: var(--radius); padding: 1rem 1.2rem 1.1rem; border: 2px solid #e5eef8; box-shadow: var(--shadow); transition: transform .15s; }
.side-card:hover { transform: translateY(-2px); }
.side-card.today { background: linear-gradient(120deg, #e3f7fa, #eef0fc); }
.side-card.conf { background: linear-gradient(120deg, #fdeef4, #f2ecfd); }
.side-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .6rem; }
.side-more { font-size: .78rem; font-weight: 700; color: var(--ink-soft); }
.side-title { display: block; margin: .3rem 0 .2rem; font-size: .98rem; line-height: 1.45; }
.side-text { margin: 0; font-size: .84rem; color: var(--ink-soft); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.conf-row { display: flex; justify-content: space-between; align-items: center; gap: .6rem; padding: .45rem 0; border-bottom: 2px dotted rgba(200,74,124,.15); }
.conf-row:last-child { border-bottom: 0; }
.conf-row b { display: block; font-size: .95rem; }
.conf-row span { font-size: .74rem; color: var(--ink-soft); }
.days { white-space: nowrap; font-size: .78rem; font-weight: 700; color: var(--ink-soft); }
.days b { display: inline; font-family: "Quicksand", sans-serif; font-size: 1.6rem; margin-right: .1rem; color: var(--mint-deep); }
.days.d0 b { color: var(--gold-deep); }

.page-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.page-card { position: relative; overflow: hidden; display: block; padding: 1.1rem 1.2rem 1.2rem; border-radius: var(--radius); background: #fff; border: 2px solid var(--line); text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .15s, border-color .15s; }
.page-card::before { content: ""; position: absolute; right: -2.5rem; top: -1rem; width: 9rem; height: 9rem; background: var(--cs); transform: rotate(45deg); }
.page-card::after { content: ""; position: absolute; left: 0; top: 1.2rem; width: 6px; height: 1.6rem; background: var(--cb); border-radius: 0 6px 6px 0; }
.page-card:hover { transform: translateY(-3px); border-color: var(--cb); }
.pc-head { position: relative; display: flex; align-items: center; gap: .8rem; }
.pc-icon { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 12px; background: var(--cb); color: #fff; }
.pc-icon .ic { width: 1.3rem; height: 1.3rem; }
.pc-kicker { display: block; font-family: "Quicksand", sans-serif; font-size: .66rem; font-weight: 700; letter-spacing: .12em; color: var(--c); }
.pc-title { display: block; font-size: 1.12rem; line-height: 1.3; }
.pc-desc { position: relative; margin: .8rem 2.4rem 0 0; font-size: .84rem; color: var(--ink-soft); }
.pc-go { position: absolute; right: 1rem; bottom: 1rem; display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--navy); color: #fff; }
.pc-go .ic { width: .95rem; height: .95rem; }
.member-band { display: grid; grid-template-columns: auto repeat(4, minmax(0, 1fr)); gap: .7rem; align-items: stretch; margin-top: 1rem; padding: 1rem 1.1rem; border-radius: 28px; background: linear-gradient(100deg, #2f3a7a, #4a4ea6 60%, #7d63d6); color: #fff; }
.mb-label span { display: block; font-family: "Quicksand", sans-serif; font-size: .7rem; letter-spacing: .14em; opacity: .8; }
.mb-label b { display: flex; align-items: center; gap: .3rem; font-size: 1rem; white-space: nowrap; }
.mb-label { align-self: center; padding: 0 .4rem; }
.mb-card { display: flex; align-items: center; gap: .6rem; padding: .7rem .9rem; border-radius: 16px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); color: #fff; text-decoration: none; transition: background .15s; }
.mb-card:hover { background: rgba(255,255,255,.2); }
.mb-card b { display: block; font-size: .95rem; }
.mb-card span { display: block; font-size: .72rem; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mb-card > div { min-width: 0; }
.album-strip { position: relative; margin: 1.6rem calc(50% - 50vw) 0; padding: 1.4rem 0; background: repeating-linear-gradient(135deg, #eef1fb 0 14px, #f6f8fd 14px 28px); overflow-x: auto; scrollbar-width: none; }
.album-strip::-webkit-scrollbar { display: none; }
.strip-in { display: flex; gap: 1.3rem; max-width: var(--wrap); margin: 0 auto; padding: .6rem 1.25rem; }
.strip-photo { position: relative; flex: 1 0 10.5rem; max-width: 12rem; padding: .5rem .5rem .7rem; background: #fff; border: 0; border-radius: 4px; box-shadow: 0 8px 20px rgba(43,52,102,.12); text-align: left; font: inherit; color: var(--ink); cursor: pointer; transition: transform .2s; }
.strip-photo.r0 { transform: rotate(-3deg); } .strip-photo.r1 { transform: rotate(2deg); } .strip-photo.r2 { transform: rotate(-1deg); } .strip-photo.r3 { transform: rotate(3deg); } .strip-photo.r4 { transform: rotate(-2deg); }
.strip-photo:hover { transform: rotate(0) translateY(-4px); }
.strip-photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.tape { position: absolute; top: -.6rem; left: 50%; transform: translateX(-50%) rotate(-2deg); width: 3.2rem; height: 1.1rem; background: rgba(179,154,240,.55); }
.sp-date { display: block; margin-top: .4rem; font-family: "Quicksand", sans-serif; font-size: .7rem; color: var(--ink-soft); }
.sp-title { display: block; font-size: .82rem; line-height: 1.4; }

.status-row { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1rem; margin-bottom: .6rem; }
.status-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.status-card { display: block; padding: .9rem 1.1rem; border-radius: 20px; background: #fff; border: 2px solid var(--line); text-decoration: none; color: var(--ink); box-shadow: var(--shadow); }
.status-card.main { display: flex; align-items: center; justify-content: space-between; gap: .8rem; }
.status-card.main.open { border-color: var(--mint); background: linear-gradient(110deg, #ecfbf3, #fff); }
.st-left { display: flex; align-items: center; gap: .7rem; min-width: 0; }
.st-left b { display: block; }
.st-left span { font-size: .8rem; color: var(--ink-soft); }
.dot { width: .75rem; height: .75rem; border-radius: 50%; background: #c9d1e6; flex: none; }
.dot.on { background: var(--mint-deep); box-shadow: 0 0 0 5px rgba(31,154,108,.15); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgba(31,154,108,.05); } }
.st-done { font-size: .8rem; font-weight: 700; color: var(--mint-deep); background: var(--mint-soft); border-radius: 999px; padding: .2rem .8rem; white-space: nowrap; }
.st-kicker { display: block; font-size: .72rem; font-weight: 700; color: var(--ink-soft); }
.status-card > b { display: block; font-size: 1.05rem; }
.status-card > b.warn { color: var(--late); } .status-card > b.ok { color: var(--mint-deep); }
.st-sub { display: block; font-size: .74rem; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- research ---------- */
.theme { display: grid; grid-template-columns: 1fr 1fr; gap: 2.6rem; align-items: center; margin: 3.4rem 0; scroll-margin-top: 1rem; }
.theme-num-row { display: flex; align-items: flex-end; gap: .6rem; }
.theme-num { font-family: "Quicksand", sans-serif; font-weight: 700; font-size: 4.2rem; line-height: .9; color: transparent; -webkit-text-stroke: 2px var(--cb); }
.theme-title { margin: .6rem 0 .5rem; font-size: 1.7rem; font-weight: 800; color: var(--navy); line-height: 1.35; }
.theme-en { margin-left: .6rem; font-family: "Quicksand", sans-serif; font-size: .95rem; font-weight: 700; color: var(--c); }
.theme-desc { margin: 0 0 1rem; }
.theme-papers { border-left: 4px solid var(--cb); padding: .2rem 0 .2rem 1rem; margin-bottom: 1rem; }
.tp-label { display: block; font-size: .78rem; font-weight: 700; color: var(--c); }
.tp-item { margin: .45rem 0; }
.tp-item b { display: block; font-family: "Quicksand", sans-serif; font-size: .9rem; line-height: 1.45; }
.tp-item span { font-size: .74rem; color: var(--ink-soft); }
.more-arrow { font-weight: 700; font-size: .88rem; color: var(--c); text-decoration: none; }
.theme-fig { position: relative; }
.theme-fig .dots { position: absolute; right: -1.2rem; top: -1.2rem; width: 6rem; height: 6rem; background-image: radial-gradient(var(--cb) 2px, transparent 2.5px); background-size: 14px 14px; opacity: .6; }
.theme.flip .theme-fig .dots { right: auto; left: -1.2rem; }
.fig-card { position: relative; background: #fff; border: 2px solid var(--line); border-radius: 24px; padding: 1.4rem; box-shadow: 12px 14px 0 var(--cs); min-height: 12rem; display: grid; place-items: center; }
.fig-card img { display: block; max-height: 18rem; object-fit: contain; }
.timeline { position: relative; margin-left: .5rem; }
.tl-row { position: relative; display: grid; grid-template-columns: 6.5rem 1.4rem 1fr; gap: .8rem; align-items: start; padding-bottom: 1rem; }
.tl-row::before { content: ""; position: absolute; left: calc(6.5rem + .8rem + .6rem); top: 1rem; bottom: -1rem; width: 2px; background: var(--line); }
.tl-row:last-child::before { display: none; }
.tl-date { text-align: right; padding-top: .6rem; font-family: "Quicksand", sans-serif; line-height: 1.3; }
.tl-date b { display: block; } .tl-date span { font-size: .8rem; color: var(--ink-soft); }
.tl-dot { position: relative; z-index: 1; width: 1.1rem; height: 1.1rem; margin-top: .85rem; border-radius: 50%; background: #fff; border: 4px solid var(--cb); }
.tl-card { background: #fff; border: 2px solid var(--line); border-left: 6px solid var(--cb); border-radius: 18px; padding: .8rem 1.1rem; box-shadow: var(--shadow); }
.tl-funder { display: block; font-size: .78rem; font-weight: 700; color: var(--c); }
.tl-card b { display: block; line-height: 1.5; }

/* ---------- lab ---------- */
.hero-card.with-photos .hero-side { flex-basis: 38%; }
.prof-card { display: grid; grid-template-columns: 13rem 1fr; gap: 1.8rem; padding: 1.4rem; border-radius: 28px; background: linear-gradient(110deg, #fff 55%, #f4f0fe); }
.prof-photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 20px; box-shadow: 8px 10px 0 var(--lav-soft); }
.prof-name { margin: .5rem 0 .1rem; font-size: 1.8rem; font-weight: 800; color: var(--navy); }
.prof-name span { margin-left: .8rem; font-family: "Quicksand", sans-serif; font-size: 1rem; color: var(--lav-deep); }
.prof-tag { margin: 0 0 .5rem; color: var(--peri-deep); font-weight: 700; font-size: .9rem; }
.prof-bio { margin: 0 0 .9rem; }
.prof-bio-long { margin-top: 1rem; padding-top: .8rem; border-top: 2px dotted var(--line); font-size: .9rem; }
.mini-tag.lav { background: var(--lav-soft); color: var(--lav-deep); }
.member-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 1rem; }
.member-col { background: #fff; border: 2px solid var(--line); border-top: 6px solid var(--cb); border-radius: 20px; padding: .9rem 1rem; box-shadow: var(--shadow); }
.member-col.t-peri { --cb: var(--peri); --c: var(--peri-deep); } .member-col.t-aqua { --cb: var(--aqua); --c: var(--aqua-deep); }
.member-col.t-mint { --cb: var(--mint); --c: var(--mint-deep); } .member-col.t-pink { --cb: var(--pink); --c: var(--pink-deep); }
.mc-head { display: flex; align-items: center; gap: .5rem; padding-bottom: .5rem; margin-bottom: .4rem; border-bottom: 2px dotted var(--line); }
.mc-badge { font-family: "Quicksand", sans-serif; font-weight: 700; font-size: .72rem; color: #fff; background: var(--cb); border-radius: 8px; padding: .05rem .5rem; }
.mc-count { margin-left: auto; font-size: .78rem; color: var(--c); }
.mc-count b { font-family: "Quicksand", sans-serif; font-size: 1.3rem; }
.mc-list { list-style: none; margin: 0; padding: 0; }
.mc-list li { padding: .4rem 0; border-bottom: 1px dashed var(--line); line-height: 1.35; }
.mc-list li:last-child { border-bottom: 0; }
.m-ja { display: block; font-weight: 700; font-size: .92rem; }
.mc-list a { color: var(--ink); text-decoration: none; } .mc-list a .m-ja { text-decoration: underline; text-decoration-color: var(--line); }
.m-en { display: block; font-family: "Quicksand", sans-serif; font-size: .74rem; color: var(--ink-soft); }
.map-frame { padding: 1.2rem; border-radius: 28px; background: linear-gradient(120deg, #f2f6fe, #f4f0fd); border: 2px solid #e5ecf8; }
.map-scroll { padding: .9rem .2rem .4rem; }
.plan { display: grid; gap: 2rem; }
.proom { position: relative; border: 4px solid var(--navy); border-radius: 22px; background: #fff; }
.room-name, .room-door, .room-window { position: absolute; top: -.85rem; padding: 0 .5rem; background: #fff; font-family: "Quicksand", sans-serif; font-weight: 700; font-size: .9rem; line-height: 1.5; color: var(--navy); }
.room-name { left: 1.1rem; }
.room-door { right: 1.6rem; font-family: inherit; font-size: .82rem; }
.room-window { top: auto; bottom: -.8rem; left: 30%; font-family: inherit; font-size: .76rem; color: var(--aqua-deep); }
.r511 { width: 55%; padding: 1.3rem 1.2rem 1rem; }
.r504 { display: grid; grid-template-columns: 6.6rem 1fr 6.6rem 7.2rem; grid-template-areas: "top top top top" "wall door . right" "wall window lounge right"; gap: .7rem; padding: 1.4rem 1rem 1.3rem; }
.p-top { grid-area: top; display: grid; grid-template-columns: 6.6rem 10rem 1fr; gap: .7rem; }
.pzone { position: relative; border: 2px dashed; border-radius: 14px; padding: .5rem .7rem .7rem; }
.pz-label b { display: block; font-size: .8rem; line-height: 1.3; }
.pz-label span { display: block; font-family: "Quicksand", sans-serif; font-size: .56rem; letter-spacing: .1em; font-weight: 700; }
.z-gpu { border-color: var(--mint); background: var(--mint-soft); } .z-gpu .pz-label span { color: var(--mint-deep); }
.z-shelf { border-color: var(--gold); background: var(--gold-soft); } .z-shelf .pz-label span { color: var(--gold-deep); }
.z-wall { grid-area: wall; border-color: var(--pink); background: var(--pink-soft); } .z-wall .pz-label span { color: var(--pink-deep); }
.z-door { grid-area: door; border-color: var(--aqua); background: var(--aqua-soft); } .z-door .pz-label span { color: var(--aqua-deep); }
.z-window { grid-area: window; border-color: var(--aqua); background: var(--aqua-soft); } .z-window .pz-label span { color: var(--aqua-deep); }
.p-right { grid-area: right; display: flex; flex-direction: column; gap: .7rem; }
.z-printer { align-self: stretch; border-color: #9aa3c7; background: #f4f6fb; } .z-printer .pz-label span { color: var(--ink-soft); }
.z-lounge { grid-area: lounge; align-self: end; border-color: var(--pink); background: var(--pink-soft); } .z-lounge .pz-label span { color: var(--pink-deep); }
.z-free { flex: 1; border-color: var(--lav); background: var(--lav-soft); } .z-free .pz-label span { color: var(--lav-deep); }
.pseats { border: 3px solid var(--navy); border-radius: 14px; padding: .5rem .8rem .7rem; background: #fff; }
.pseats .pz-label span { color: var(--peri-deep); }
.seat-list { list-style: none; margin: .4rem 0 0; padding: 0; columns: 3 9rem; column-gap: 1rem; font-size: .84rem; }
.seat-list li { display: flex; align-items: center; gap: .4rem; padding: .1rem 0; break-inside: avoid; font-weight: 700; }
.sl-num { display: inline-grid; place-items: center; min-width: 1.45rem; height: 1.45rem; border-radius: 50%; background: var(--navy); color: #fff; font-family: "Quicksand", sans-serif; font-size: .7rem; font-weight: 700; flex: none; }
.pseats .hint { margin-top: .5rem; }
.pd-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem .7rem; margin-top: .7rem; }
.pd-row + .pd-row { margin-top: .5rem; }
.pd-col { display: grid; gap: .55rem; margin-top: .7rem; justify-items: start; }
.z-free .pd-col { justify-items: end; }
.pdesk { position: relative; background: #fff; border: 2px solid #c9d3ec; border-radius: 8px; }
.pdesk.h { height: 2.9rem; }
.pdesk.v { width: 2.9rem; height: 3.8rem; }
.pdesk.taken { border-color: var(--peri); background: #f6f7ff; }
.pd-line { position: absolute; background: #c9d3ec; border-radius: 2px; }
.pdesk.h .pd-line { left: 30%; width: 40%; height: 3px; }
.pdesk.h.chair-top .pd-line { bottom: .22rem; } .pdesk.h.chair-bottom .pd-line { top: .22rem; }
.pdesk.v .pd-line { top: 25%; height: 50%; width: 3px; left: .22rem; }
.pdesk.v.chair-left .pd-line { left: auto; right: .22rem; }
.pdesk.v.chair-left .pd-chair { left: -1.05rem; top: 50%; transform: translateY(-50%); }
.pd-num { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; min-width: 1.4rem; height: 1.4rem; border-radius: 50%; border: 2px solid var(--navy); background: #fff; color: var(--navy); font-family: "Quicksand", sans-serif; font-size: .7rem; font-weight: 700; }
.pdesk.taken .pd-num { background: var(--navy); color: #fff; }
.pd-chair { position: absolute; width: .7rem; height: .7rem; border-radius: 50%; background: #c9d1e6; }
.pdesk.h.chair-top .pd-chair { left: 50%; top: -1.05rem; transform: translateX(-50%); }
.pdesk.h.chair-bottom .pd-chair { left: 50%; bottom: -1.05rem; transform: translateX(-50%); }
.pdesk.v.chair-right .pd-chair { right: -1.05rem; top: 50%; transform: translateY(-50%); }
.z-door, .z-window { display: flex; flex-direction: column; }
.z-wall, .z-free { display: flex; flex-direction: column; }
.z-wall .pd-col, .z-free .pd-col { flex: 1; align-content: space-evenly; }
.z-free .pdesk.v { height: 3.1rem; }
.z-door .pz-label, .z-window .pz-label { margin-bottom: .9rem; }
.z-door .pd-row:last-child, .z-window .pd-row:last-child { margin-bottom: .8rem; }
.z-free .pd-col { margin-top: .6rem; padding-left: 1rem; }
.z-wall .pd-col { margin-top: .6rem; }
.racks { display: flex; gap: .3rem; justify-content: center; margin-top: .6rem; }
.racks i { width: 1rem; height: 3.4rem; border-radius: 3px; background: repeating-linear-gradient(#555f8a 0 5px, #7fdcaa 5px 7px, #555f8a 7px 11px); }
.books { display: flex; gap: .2rem; align-items: flex-end; margin-top: .6rem; }
.books i { flex: 1; height: 3rem; border-radius: 3px; background: var(--aqua); }
.books i:nth-child(2) { background: var(--peri); height: 3.2rem; } .books i:nth-child(3) { background: var(--mint); } .books i:nth-child(4) { background: var(--pink); height: 2.8rem; }
.books i:nth-child(5) { background: var(--lav); } .books i:nth-child(6) { background: var(--gold); height: 3.3rem; } .books i:nth-child(7) { background: #fff; border: 2px solid var(--gold); }
.printer-ic { width: 2.6rem; height: 1.6rem; margin: .5rem auto .2rem; border: 2px solid #9aa3c7; border-radius: 5px; background: #fff; box-shadow: inset 0 -5px 0 #dfe3f0; }
.lounge-ic { display: flex; align-items: flex-end; gap: .4rem; margin-top: .5rem; }
.fridge { width: 1.5rem; height: 2.6rem; border: 2px solid var(--pink); border-radius: 4px; background: #fff; }
.microwave { width: 1.9rem; height: 1.2rem; border: 2px solid var(--pink); border-radius: 4px; background: #fff; }
.seat-editor { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: .5rem .8rem; }
.seat-in { display: flex; align-items: center; gap: .45rem; }
.prof-kana { margin: -.2rem 0 .3rem; font-size: .8rem; color: var(--ink-soft); }
.prof-more { grid-column: 1 / -1; display: grid; gap: 1.3rem; padding-top: 1.1rem; border-top: 2px dotted var(--line); }
.prof-more p { margin: 0 0 .5rem; font-size: .92rem; }
.pm-head { display: flex; align-items: center; gap: .6rem; margin: 0 0 .6rem; font-size: 1rem; color: var(--navy); }
.pm-head::before { content: ""; width: 4px; height: 1.1rem; border-radius: 2px; background: var(--lav); }
.pm-head::after { content: ""; flex: 1; height: 2px; background: var(--line); }
.pm-row { display: grid; grid-template-columns: 9rem 1fr; gap: .8rem; padding: .45rem 0; border-bottom: 1px dashed var(--line); font-size: .88rem; }
.pm-row:last-child { border-bottom: 0; }
.pm-period { font-family: "Quicksand", sans-serif; font-weight: 700; color: var(--lav-deep); }
.pm-awards { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.pm-award { display: flex; gap: .7rem; align-items: flex-start; padding: .6rem .8rem; background: #fff; border: 2px solid var(--line); border-radius: 14px; }
.pm-trophy { display: grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 9px; background: var(--gold-soft); color: var(--gold-deep); flex: none; font-size: .9rem; }
.pm-award b { display: block; font-size: .86rem; line-height: 1.45; } .pm-award span { font-size: .74rem; color: var(--ink-soft); }
.pm-chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.pm-chips span { padding: .25rem .75rem; background: #fff; border: 2px solid var(--line); border-radius: 12px; font-size: .82rem; }
.alumni-card { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem 1.6rem; padding: 1.4rem 1.6rem; border-radius: 28px; border: 2px solid #e6e3fa; background: linear-gradient(110deg, #f1eefd 40%, rgba(234,246,253,.9)), repeating-linear-gradient(135deg, transparent 0 12px, rgba(255,255,255,.4) 12px 24px); }
.al-count b { display: block; font-family: "Quicksand", sans-serif; font-size: 3.4rem; line-height: 1; color: var(--peri-deep); }
.al-count span { font-weight: 700; font-size: .9rem; }
.al-dest-label { display: block; font-size: .78rem; font-weight: 700; color: var(--lav-deep); margin-bottom: .4rem; }
.dest-chips { display: flex; flex-wrap: wrap; align-items: flex-start; align-content: flex-start; gap: .4rem; }
.dest { font-family: "Quicksand", sans-serif; font-size: .8rem; font-weight: 700; padding: .15rem .7rem; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.dest.more { color: var(--ink-soft); background: transparent; }
.al-actions { grid-column: 1 / -1; text-align: center; }
.alumni-list { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: .3rem 1rem; padding-top: .6rem; border-top: 2px dotted #d9d2f6; }
.al-row { font-size: .88rem; padding: .25rem 0; } .al-row span { display: block; font-size: .76rem; color: var(--ink-soft); }
.env-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.env-card { display: flex; gap: .9rem; padding: .8rem; background: #fff; border: 2px solid var(--line); border-left: 6px solid var(--cb); border-radius: 20px; box-shadow: var(--shadow); }
.env-card img { width: 6rem; height: 5.4rem; object-fit: cover; border-radius: 10px; flex: none; }
.env-kicker { display: block; font-family: "Quicksand", sans-serif; font-size: .64rem; letter-spacing: .12em; font-weight: 700; color: var(--c); }
.env-card b { display: block; font-size: 1rem; }
.env-card p { margin: .2rem 0 0; font-size: .78rem; color: var(--ink-soft); line-height: 1.55; }

/* ---------- publications ---------- */
.chart-card { background: #fff; border-radius: 22px; padding: 1rem 1.1rem .7rem; box-shadow: var(--shadow); }
.chart-legend { display: flex; align-items: center; gap: .9rem; font-size: .78rem; font-weight: 700; }
.chart-legend .lg::before { content: ""; display: inline-block; width: .65rem; height: .65rem; border-radius: 3px; margin-right: .3rem; vertical-align: -.05rem; }
.lg.j::before { background: #b39af0; } .lg.c::before { background: #5fcfe0; }
.chart-cap { margin-left: auto; color: var(--ink-soft); font-size: .72rem; }
.chart-svg svg { display: block; width: 100%; height: auto; margin-top: .6rem; overflow: visible; }
.chart-svg text { font-family: Quicksand, sans-serif; font-size: 10px; fill: #66709c; }
.chart-svg text.top { font-weight: 700; fill: #2b3466; }
.year-group { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; margin-bottom: 1.6rem; }
.yg-side { position: sticky; top: 1rem; align-self: start; }
.yg-year { display: block; font-family: "Quicksand", sans-serif; font-weight: 700; font-size: 3rem; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--peri); }
.yg-side b { display: block; margin-top: .4rem; font-size: 1.1rem; } .yg-side b small { font-size: .72rem; margin-left: .1rem; }
.yg-mix { display: block; font-size: .74rem; color: var(--ink-soft); letter-spacing: .1em; }
.yg-list { display: grid; gap: .8rem; min-width: 0; }
.pub-card { position: relative; padding: .8rem 1.1rem .8rem 1.3rem; background: #fff; border: 2px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
.pub-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--aqua); }
.pub-card.journal::before { background: var(--lav); }
.pub-tags { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-bottom: .25rem; }
.type-tag { font-family: "Quicksand", sans-serif; font-style: italic; font-weight: 700; font-size: .72rem; color: #fff; background: var(--aqua-deep); border-radius: 6px; padding: 0 .55rem; }
.type-tag.journal { background: var(--lav-deep); }
.venue-tag { font-family: "Quicksand", sans-serif; font-weight: 700; font-size: .72rem; background: var(--peri-soft); border-radius: 6px; padding: 0 .5rem; }
.pub-date { margin-left: auto; font-family: "Quicksand", sans-serif; font-size: .76rem; color: var(--ink-soft); }
.pub-title { display: block; color: var(--ink); text-decoration: none; font-family: "Quicksand", "Zen Maru Gothic", sans-serif; font-size: 1rem; line-height: 1.45; }
.pub-authors { margin: .2rem 0 0; font-size: .8rem; color: var(--ink-soft); }
.pub-venue { margin: .1rem 0 0; font-size: .78rem; color: var(--peri-deep); font-weight: 700; }
.side-list { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; }
.big-outline { display: block; font-family: "Quicksand", sans-serif; font-weight: 700; font-size: 3.6rem; line-height: 1; color: transparent; -webkit-text-stroke: 2px var(--cb); }
.sl-mix { display: block; margin-top: .4rem; font-size: .76rem; color: var(--ink-soft); font-weight: 700; }
.list-card { padding: .4rem 1.2rem; margin: 0; }
.patent-row { display: grid; grid-template-columns: 2.6rem 1fr auto; gap: .9rem; align-items: center; padding: .75rem 0; border-bottom: 2px dotted var(--line); }
.patent-row:last-child { border-bottom: 0; }
.cc { display: grid; place-items: center; height: 1.6rem; border-radius: 8px; font-family: "Quicksand", sans-serif; font-weight: 700; font-size: .72rem; background: var(--gold-soft); color: var(--gold-deep); }
.cc-us { background: var(--aqua-soft); color: var(--aqua-deep); } .cc-cn { background: var(--pink-soft); color: var(--pink-deep); }
.pr-main b { display: block; font-size: .92rem; line-height: 1.45; } .pr-main span { font-size: .76rem; color: var(--ink-soft); }
.pr-side { text-align: right; } .pr-side b { display: block; font-family: "Quicksand", sans-serif; font-size: .8rem; } .pr-side span { font-size: .72rem; color: var(--ink-soft); }
.talks { padding: .6rem 1.2rem; }
.talk-row { display: grid; grid-template-columns: 4.8rem 1fr; gap: .6rem; padding: .6rem 0; border-bottom: 2px dotted var(--line); font-size: .88rem; }
.talk-row b { display: block; line-height: 1.45; } .talk-row span { font-size: .76rem; color: var(--ink-soft); }
.tk-date { font-family: "Quicksand", sans-serif; font-weight: 700; color: var(--pink-deep) !important; font-size: .78rem !important; }
.talk-row.keynote b { font-size: .98rem; }
.kn { display: inline-block; margin-left: .5rem; font-family: "Quicksand", sans-serif; font-size: .68rem !important; color: #fff !important; background: var(--pink-deep); border-radius: 6px; padding: 0 .45rem; vertical-align: .1rem; }
.talk-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 1.6rem; }

/* ---------- album ---------- */
.year-group.album { grid-template-columns: 9rem 1fr; }
.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: 1rem; }
.album-card { position: relative; display: block; padding: 0; text-align: left; font: inherit; color: var(--ink); background: #fff; border: 2px solid var(--line); border-radius: 18px; overflow: hidden; cursor: pointer; box-shadow: 4px 5px 0 #e6edf8, var(--shadow); transition: transform .15s; }
.album-card:hover { transform: translateY(-3px); }
.ac-photo { position: relative; }
.ac-photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--peri-soft); }
.ac-type { position: absolute; left: .5rem; top: .5rem; font-size: .7rem; font-weight: 700; color: #fff; background: var(--aqua-deep); border-radius: 999px; padding: 0 .6rem; }
.ac-type.t-event { background: var(--pink-deep); } .ac-type.t-award { background: var(--gold-deep); }
.vw-head .ac-type { position: static; display: inline-block; margin-bottom: .2rem; }
.ac-count { position: absolute; right: .5rem; bottom: .5rem; display: inline-flex; align-items: center; gap: .2rem; font-size: .7rem; font-weight: 700; color: #fff; background: rgba(43,52,102,.6); border-radius: 999px; padding: 0 .5rem; }
.ac-body { display: block; padding: .6rem .8rem .8rem; }
.ac-date { display: block; font-family: "Quicksand", sans-serif; font-size: .74rem; color: var(--ink-soft); }
.ac-title { display: block; font-size: .95rem; line-height: 1.4; }
.ac-loc { display: flex; gap: .25rem; align-items: flex-start; margin-top: .2rem; font-size: .74rem; color: var(--ink-soft); line-height: 1.4; }
.ac-loc .ic { margin-top: .1rem; }
.ac-who { display: block; margin-top: .1rem; font-size: .74rem; font-weight: 700; color: var(--peri-deep); }
.viewer-overlay { background: rgba(23,28,58,.82); display: grid; place-items: center; padding: 1rem; outline: none; }
.viewer { width: min(60rem, 100%); max-height: 100%; display: flex; flex-direction: column; background: #fff; border-radius: 24px; overflow: hidden; }
.vw-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding: .9rem 1.1rem; }
.vw-head b { display: block; font-size: 1.05rem; } .vw-meta { font-size: .78rem; color: var(--ink-soft); }
.vw-close { border: 0; background: var(--peri-soft); width: 2.2rem; height: 2.2rem; border-radius: 50%; cursor: pointer; color: var(--ink); flex: none; }
.vw-stage { position: relative; background: #111530; display: grid; place-items: center; min-height: 0; flex: 1; }
.vw-stage img { display: block; max-width: 100%; max-height: 66vh; object-fit: contain; }
.vw-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 2.6rem; height: 2.6rem; border: 0; border-radius: 50%; background: rgba(255,255,255,.85); color: var(--navy); cursor: pointer; display: grid; place-items: center; }
.vw-nav.prev { left: .7rem; } .vw-nav.next { right: .7rem; }
.vw-foot { text-align: center; padding: .4rem; font-size: .78rem; color: var(--ink-soft); font-family: "Quicksand", sans-serif; }
.vw-strip { display: flex; gap: .4rem; overflow-x: auto; padding: 0 .9rem .9rem; }
.vw-strip button { flex: none; padding: 0; border: 3px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; background: none; }
.vw-strip button[aria-current="true"] { border-color: var(--peri); }
.vw-strip img { display: block; width: 4.4rem; height: 3.2rem; object-fit: cover; }

/* ---------- paper digest & deadlines (app.js content inside the new pages) ---------- */
.digest, .ddl-page { margin-top: 1.6rem; }
.digest-foot { margin-top: 2rem; font-size: .76rem; color: var(--ink-soft); text-align: center; }

/* ---------- member pages ---------- */
.member-head { position: relative; margin: 2.6rem 0 1.2rem; }
.member-head .chip { position: relative; }
.member-title { position: relative; margin: .4rem 0 0; font-size: 1.7rem; font-weight: 800; color: var(--navy); }
.back-link { position: relative; display: inline-block; margin-top: .3rem; font-size: .84rem; font-weight: 700; text-decoration: none; }
.member-body { max-width: 52rem; }
.member-body.narrow { max-width: 36rem; }
.login-page { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1.2rem; align-items: start; margin-top: 1.6rem; }
.login-card { display: block; padding: 2rem; }
.login-card .card.auth { margin: 1rem 0 0; max-width: none; background: #fff; }
.first-card { margin: 0; background: linear-gradient(120deg, #fff, #f2fbf6); }
.fc-title { display: block; font-size: 1.05rem; }
.first-card .btn-pill { margin-top: .8rem; }
.acc-links { padding: .5rem; }
.mystats { display: flex; align-items: center; gap: 1.1rem; }
.ms-rate { display: grid; place-items: center; width: 4.6rem; height: 4.6rem; border-radius: 50%; flex: none; background: conic-gradient(var(--mint-deep) 0 100%); background: radial-gradient(circle, #fff 58%, transparent 59%), linear-gradient(135deg, var(--aqua), var(--mint)); }
.ms-rate b { font-family: "Quicksand", sans-serif; font-size: 1.15rem; color: var(--navy); }
.mystats > div:last-child { flex: 1; min-width: 0; }
.ms-bar { display: flex; height: .55rem; border-radius: 999px; overflow: hidden; background: #eef2f8; }
.ms-bar .onsite { background: var(--mint-deep); } .ms-bar .online { background: var(--aqua); } .ms-bar .absent { background: var(--pink); }
.countdown-line { margin: 0 0 .5rem; font-weight: 700; color: var(--ink-soft); font-size: .9rem; }
.countdown-line.open { color: var(--mint-deep); font-size: 1.05rem; }

/* ---------- admin ---------- */
.admin-group { margin: 2rem 0 .8rem; font-size: 1.1rem; color: var(--peri-deep); }
.admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: .8rem; }
.admin-tile { position: relative; display: flex; flex-direction: column; gap: .3rem; padding: 1rem 1.1rem; background: #fff; border: 2px solid var(--line); border-radius: 18px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: border-color .15s, transform .15s; }
.admin-tile:hover { border-color: var(--peri); transform: translateY(-2px); }
.admin-tile > .ic { width: 1.5rem; height: 1.5rem; color: var(--peri-deep); }
.admin-tile.attention { border-color: var(--pink); }
.admin-tile .badge { align-self: flex-start; font-size: .74rem; font-weight: 700; color: #fff; background: var(--late); border-radius: 999px; padding: 0 .6rem; }
.admin-tile .hint { margin: 0; }
.admin-editor { padding: 1.2rem 1.3rem; }
.obj-editor > .field:first-child { margin-top: 0; }
.i18n-pair { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.lang-field { position: relative; display: block; }
.lang-tag { position: absolute; right: .6rem; top: .45rem; font-family: "Quicksand", sans-serif; font-size: .62rem; font-weight: 700; color: var(--ink-soft); background: var(--peri-soft); border-radius: 6px; padding: 0 .35rem; pointer-events: none; }
.lang-field input, .lang-field textarea { padding-right: 2.6rem; }
.sub-list { border: 2px dashed var(--line); border-radius: 16px; padding: .6rem .9rem .9rem; margin: .9rem 0; }
.sub-list legend { font-weight: 700; font-size: .9rem; color: var(--peri-deep); padding: 0 .4rem; }
.le-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; margin-bottom: .7rem; }
.le-rows { display: grid; gap: .45rem; }
.le-row { border: 2px solid var(--line); border-radius: 14px; background: #fff; }
.le-row.open { border-color: var(--peri); }
.le-row > .le-sum, .le-row > .le-btns { display: inline-flex; }
.le-row { display: grid; grid-template-columns: 1fr auto; align-items: center; }
.le-sum { display: flex; align-items: center; gap: .7rem; min-width: 0; padding: .5rem .8rem; border: 0; background: none; font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
.le-sum img { width: 2.6rem; height: 2rem; object-fit: cover; border-radius: 6px; flex: none; }
.le-k { flex: none; font-family: "Quicksand", sans-serif; font-size: .74rem; color: var(--ink-soft); font-weight: 700; max-width: 11rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.le-sum b { min-width: 0; font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.le-btns { display: flex; align-items: center; gap: .3rem; padding-right: .6rem; }
.mini { width: 1.8rem; height: 1.8rem; border: 2px solid var(--line); background: #fff; border-radius: 8px; cursor: pointer; color: var(--ink); font: inherit; font-weight: 700; line-height: 1; }
.mini:disabled { opacity: .35; cursor: default; }
.le-body { grid-column: 1 / -1; padding: .4rem 1rem 1rem; border-top: 2px dotted var(--line); }
.img-field { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; }
.img-field > img { width: 7rem; height: 5rem; object-fit: cover; border-radius: 10px; border: 2px solid var(--line); }
.img-ctl { display: flex; flex-wrap: wrap; gap: .5rem; flex: 1; min-width: 14rem; align-items: center; }
.img-ctl input[type="text"] { flex: 1; min-width: 10rem; font-size: .82rem; }
.imgs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(6.5rem, 1fr)); gap: .5rem; }
.imgs-item { position: relative; }
.imgs-item img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; border: 2px solid var(--line); }
.imgs-btns { position: absolute; top: .25rem; right: .25rem; display: flex; gap: .2rem; }
.imgs-btns button { width: 1.5rem; height: 1.5rem; border: 0; border-radius: 6px; background: rgba(255,255,255,.92); cursor: pointer; font-weight: 700; color: var(--ink); }
.save-bar { position: sticky; bottom: .8rem; z-index: 10; display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: .6rem; padding: .7rem 1rem; background: rgba(255,255,255,.96); border: 2px solid var(--line); border-radius: 18px; box-shadow: 0 10px 30px rgba(43,52,102,.14); }
.save-bar .msg { margin: 0 auto 0 0; }
.dirty-note { display: none; margin-right: auto; font-size: .84rem; font-weight: 700; color: var(--late); }
.save-bar.dirty { border-color: var(--pink); }
.save-bar.dirty .dirty-note { display: inline; }
.save-bar.dirty .msg { display: none; }
a.btn { text-decoration: none; display: inline-block; }

/* ---------- footer ---------- */
.site-footer { position: relative; z-index: 1; background: var(--navy); color: #fff; }
.footer-in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.4rem; padding-top: 2.2rem; padding-bottom: 1.4rem; }
.footer-lab { display: flex; align-items: center; gap: 1.2rem; min-width: 0; flex: 1 1 24rem; }
.footer-hosei { flex: none; }
.footer-lab img { width: 64px; height: auto; flex: none; }
.footer-name { margin: 0; font-family: "Quicksand", sans-serif; font-weight: 700; font-size: 1.3rem; }
.footer-addr { margin: .1rem 0 0; font-size: .8rem; opacity: .85; line-height: 1.6; }
.footer-hosei img { display: block; width: 170px; height: auto; filter: brightness(0) invert(1); opacity: .95; }
.footer-bottom { padding-bottom: 1.4rem; }
.footer-bottom p { margin: 0; padding-top: .9rem; border-top: 1px solid rgba(255,255,255,.15); font-size: .72rem; opacity: .7; }

/* ================= features from app.js (attendance, reports, board, digest, deadlines, accounts) ================= */
.stats { margin: 0 0 1rem; font-weight: 500; }
.stats b { color: var(--peri-deep); font-size: 1.15em; }
.intro { margin: 0 0 1rem; color: var(--ink-soft); }
.who { margin: 0 0 .8rem; font-size: .88rem; color: var(--ink-soft); display: flex; flex-wrap: wrap; align-items: center; gap: .15rem .5rem; }
.who b { color: var(--ink); }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.2rem; }
.pill { border: 2px solid var(--line); background: #fff; color: var(--ink); font: inherit; font-weight: 700; font-size: .86rem; padding: .25rem .95rem; border-radius: 999px; cursor: pointer; transition: transform .15s, border-color .15s, background .15s; }
.pill:hover { transform: translateY(-2px); border-color: var(--aqua); }
.pill[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
h2.day { display: flex; align-items: center; gap: .7rem; margin: 1.8rem 0 .9rem; font-size: 1.05rem; font-weight: 700; color: var(--peri-deep); }
h2.day::after { content: ""; flex: 1; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--aqua), var(--mint), transparent); }
article.card { transition: border-color .2s, transform .2s; }
article.card:hover { border-color: var(--aqua); }
.card.is-read, .card.closed { border-style: dashed; box-shadow: none; }
.card.notice { border-color: var(--mint); background: rgba(240,252,246,.95); }
.card.admin { border-color: var(--lav); }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .45rem; }
.tag { display: inline-block; font-size: .74rem; font-weight: 700; padding: .05rem .65rem; border-radius: 999px; background: var(--aqua-soft); color: var(--aqua-deep); line-height: 1.7; }
.tag.accepted { background: var(--mint-soft); color: var(--accepted); }
.tag.preprint { background: var(--lav-soft); color: var(--peri-deep); }
.tag.late { background: var(--pink-soft); color: var(--late); margin-left: .5rem; }
.card h3 { margin: 0 0 .2rem; font-size: 1.1rem; line-height: 1.45; overflow-wrap: anywhere; }
.paper h3 a, .ddl h3 a { color: var(--ink); text-decoration: none; background: linear-gradient(transparent 62%, var(--mint-soft) 62%); }
.paper h3 a:hover, .ddl h3 a:hover { color: var(--peri-deep); }
.authors { margin: 0 0 .6rem; color: var(--ink-soft); font-size: .86rem; line-height: 1.5; overflow-wrap: anywhere; }
.authors b { color: var(--ink); }
.summary { margin: 0 0 .5rem; font-weight: 500; overflow-wrap: anywhere; }
.pre { margin: .5rem 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.pre b, details p b { display: inline-block; color: var(--aqua-deep); margin-right: .6em; }
details { margin: .2rem 0 .4rem; }
summary { cursor: pointer; color: var(--peri-deep); font-weight: 700; font-size: .92rem; width: fit-content; }
details p { margin: .55rem 0; overflow-wrap: anywhere; }
.st.onsite { color: var(--accepted); } .st.online { color: var(--aqua-deep); } .st.absent { color: var(--late); } .st.none { color: var(--ink-soft); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: .6rem; }
.admin-row { padding-top: .6rem; border-top: 2px dotted var(--line); }
.count { font-size: .88rem; color: var(--ink-soft); margin-right: auto; }
.btn { border: 2px solid var(--navy); background: #fff; color: var(--navy); font: inherit; font-weight: 700; font-size: .86rem; padding: .25rem 1rem; border-radius: 999px; cursor: pointer; transition: transform .12s; }
.btn:hover:not(:disabled) { transform: scale(1.04); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.primary, .btn.toggle[aria-pressed="true"] { background: var(--navy); color: #fff; }
.btn.primary.alt { background: var(--aqua-deep); border-color: var(--aqua-deep); }
.btn.danger { border-color: #e3b3c6; color: var(--late); }
.btn.danger.armed { background: var(--late); border-color: var(--late); color: #fff; }
.link { border: 0; background: none; padding: 0; font: inherit; color: var(--peri-deep); text-decoration: underline; cursor: pointer; }
.form { display: block; }
.field { display: block; margin: .7rem 0; }
.field > span { display: block; font-size: .84rem; font-weight: 700; color: var(--ink-soft); margin-bottom: .2rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 0 .9rem; }
input[type="text"], input[type="search"], input[type="number"], input[type="password"], input[type="datetime-local"], input[type="date"], input[type="time"], select, textarea {
  width: 100%; padding: .5rem .75rem; border: 2px solid var(--line); border-radius: 14px; font: inherit; font-size: .95rem; color: var(--ink); background: #fff;
}
textarea { min-height: 5rem; resize: vertical; }
textarea.tall { min-height: 15rem; line-height: 1.7; }
textarea:disabled, input:disabled { background: #f6f9fc; color: var(--ink-soft); }
.comment { margin: .7rem 0 0; padding: .45rem .9rem; border-left: 4px solid var(--lav); background: var(--lav-soft); border-radius: 0 12px 12px 0; }
.comment .authors { margin: 0; } .comment .pre { margin: .15rem 0 .3rem; }
td select { width: auto; padding: .15rem .5rem; border-radius: 10px; }
.inline { display: flex; gap: .5rem; margin-top: .6rem; }
.inline input { flex: 1; min-width: 0; border-radius: 999px; }
.check { display: flex; align-items: center; gap: .5rem; margin: .6rem 0; font-size: .92rem; }
.check input { width: 1.1rem; height: 1.1rem; accent-color: var(--peri); }
.hint { margin: .25rem 0 0; font-size: .78rem; color: var(--ink-soft); }
.hint.center { text-align: center; }
.msg { margin: .5rem 0 0; font-size: .88rem; }
.msg:empty { display: none; }
.msg.bad { color: var(--late); font-weight: 700; }
.msg.good { color: var(--accepted); font-weight: 700; }
.memo-view { margin: .7rem 0 0; padding: .35rem .9rem; border-left: 4px solid var(--aqua); background: var(--aqua-soft); border-radius: 0 12px 12px 0; white-space: pre-wrap; overflow-wrap: anywhere; }
ul.plain { list-style: none; margin: .4rem 0 0; padding: 0; }
ul.plain li { padding: .2rem 0; font-size: .92rem; }
li.sched { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; padding: .35rem 0; }
.tablewrap { overflow-x: auto; margin-top: .7rem; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { text-align: left; padding: .4rem .6rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { color: var(--ink-soft); font-size: .8rem; }
.empty { padding: 1.4rem; text-align: center; color: var(--ink-soft); border: 2px dashed var(--line); border-radius: var(--radius); background: rgba(255,255,255,.85); }
.more { display: flex; margin: 1.6rem auto 0; }
mjx-container { max-width: 100%; overflow-x: auto; overflow-y: hidden; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .85rem; user-select: all; }
.viewas { width: auto; padding: .1rem .5rem; border-radius: 999px; font-size: .82rem; }
.preview-bar { margin: 0 0 .6rem; padding: .4rem .9rem; border-radius: 12px; background: var(--lav-soft); color: var(--peri-deep); font-size: .88rem; font-weight: 700; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); gap: .5rem; margin: .6rem 0; }
.gallery img { width: 100%; height: 9rem; object-fit: cover; border-radius: 14px; border: 2px solid var(--line); display: block; background: var(--aqua-soft); }
.event { margin: .7rem 0 .3rem; padding: .7rem .9rem; border-radius: 16px; background: linear-gradient(100deg, var(--aqua-soft), var(--mint-soft)); }
.event .summary { margin: 0 0 .2rem; } .event .authors { margin: 0; }
.theme-row { padding: .4rem 0 .9rem; margin-bottom: .6rem; border-bottom: 2px dotted var(--line); }
.theme-row textarea { min-height: 4.5rem; }
input[type="file"] { font: inherit; font-size: .88rem; max-width: 100%; }
#papers-admin { margin-top: 1.6rem; }
.card.meeting { border-top: 6px solid var(--aqua); }
.card.meeting.oneoff { border-top-color: var(--pink); background: rgba(255, 248, 251, .95); }
.tag.kind.weekly { background: var(--aqua); color: #0f3d4a; }
.tag.kind.oneoff { background: var(--pink); color: #5c1f3b; }
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: 1rem 0 0; font-size: .85rem; color: var(--ink-soft); }
.hint.other { margin-top: .5rem; font-size: .86rem; }
h3.sub { margin: 1rem 0 .3rem; font-size: .98rem; color: var(--peri-deep); }
.card.ddl.past, .card.ddl.tbd { border-style: dashed; box-shadow: none; opacity: .85; }
.ddl-line { margin: .25rem 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .6rem; }
.ddl-line b { color: var(--aqua-deep); min-width: 6.5em; }
.ddl-line.main { font-weight: 700; }
.countdown { font-weight: 700; padding: 0 .6rem; border-radius: 999px; font-size: .85rem; }
.countdown.u-red { background: var(--pink-soft); color: var(--late); }
.countdown.u-orange { background: #fff3e2; color: #b4610b; }
.countdown.u-calm { background: var(--mint-soft); color: var(--accepted); }
.countdown.done { background: #f1f3f7; color: var(--ink-soft); }
.tag.rank-A { background: var(--gold-soft); color: #9a5b00; }
.tag.rank-B { background: var(--aqua-soft); color: var(--aqua-deep); }
.tag.rank-C, .tag.rank-N { background: #f1f3f7; color: var(--ink-soft); }
.rank-filter { align-items: center; margin-bottom: .2rem; }
details.dropdown { position: relative; margin: 0; }
details.dropdown > summary { list-style: none; cursor: pointer; width: auto; color: var(--ink); font-weight: 500; font-size: .9rem; border: 2px solid var(--line); background: #fff; border-radius: 999px; padding: .3rem 2rem .3rem .95rem; position: relative; }
details.dropdown > summary::-webkit-details-marker { display: none; }
details.dropdown > summary::after { content: ""; position: absolute; right: .85rem; top: 50%; width: .45rem; height: .45rem; border-right: 2px solid var(--peri); border-bottom: 2px solid var(--peri); transform: translateY(-70%) rotate(45deg); }
details.dropdown[open] > summary::after { transform: translateY(-25%) rotate(-135deg); }
details.dropdown.active > summary { background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 700; }
.dropdown-menu { position: absolute; z-index: 20; top: calc(100% + .35rem); left: 0; min-width: 8.5rem; padding: .4rem .8rem; background: #fff; border: 2px solid var(--line); border-radius: 16px; box-shadow: 0 8px 24px rgba(43,52,102,.14); }
.dropdown-menu .check { margin: .3rem 0; }
.rank-hint { margin: 0 0 .6rem; }
.rank-filter .link { font-size: .85rem; }
input.ddl-search { margin: 0 0 .4rem; border-radius: 999px; }
.ddl-source { margin-top: 1.4rem; }
.pager { margin: 1.4rem 0 .6rem; text-align: center; display: flex; justify-content: center; align-items: center; gap: .6rem; flex-wrap: wrap; }
.pager > div, .pager > p { width: 100%; }
.pg-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .35rem; }
.pg { min-width: 2.3rem; height: 2.3rem; padding: 0 .7rem; border: 2px solid var(--line); background: #fff; color: var(--ink); font: inherit; font-weight: 700; font-size: .9rem; border-radius: 999px; cursor: pointer; }
.pg:hover:not(:disabled) { border-color: var(--aqua); }
.pg[aria-current="page"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.pg:disabled { opacity: .4; cursor: default; }
.pg-gap { color: var(--ink-soft); padding: 0 .1rem; }
.pg-info { margin: .45rem 0 0; font-size: .8rem; color: var(--ink-soft); }
.card.auth { max-width: 32rem; }
.card.auth input[type="text"], .card.auth input[type="password"] { font-size: 1.05rem; }
.card.pending { border-color: var(--pink); }
.actions.tight { margin: 0; flex-wrap: nowrap; }
.card.danger-zone { border-color: #e3b3c6; }
.card.danger-zone > summary { color: var(--late); }
.card.danger-zone .field { margin: 0; flex: 1; }

/* ================= responsive ================= */
@media (min-width: 901px) {
  .nav-row { justify-content: space-between; gap: 0; }
}
@media (max-width: 900px) {
  .hero-card { flex-direction: column; align-items: stretch; padding: 2rem 1.6rem; }
  .hero-side, .hero-card.with-photos .hero-side { flex-basis: auto; }
  .home-hero .hero-tree { flex-basis: auto; width: min(22rem, 86%); margin: 0 auto; }
  .news-grid, .status-row { grid-template-columns: 1fr; }
  .page-cards { grid-template-columns: 1fr 1fr; }
  .member-band { grid-template-columns: 1fr 1fr; } .mb-label { grid-column: 1 / -1; }
  .theme, .theme.flip { grid-template-columns: 1fr; gap: 1.4rem; }
  .theme.flip .theme-fig { order: 2; }
  .member-cols { grid-template-columns: 1fr 1fr; }
  .env-cards { grid-template-columns: 1fr; }
  .login-page { grid-template-columns: 1fr; }
  .account-menu { right: 1rem; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 1rem; }
  .topbar { padding-top: .7rem; }
  .brand { gap: .8rem; padding-bottom: .5rem; }
  .brand-logo img { width: 54px; }
  .brand-name { font-size: 1.5rem; }
  .brand-sub { font-size: .66rem; }
  .brand-tree { width: 84px; margin: -.4rem 0 -.4rem; }
  .user-name { max-width: 5rem; }
  .nav-item { font-size: .82rem; padding: .3rem .7rem; }
  .hero-card { padding: 1.6rem 1.2rem; border-radius: 26px; margin-top: .6rem; }
  .hero-title { font-size: 1.8rem; } .hero-title.big { font-size: 2.1rem; }
  .home-hero .hero-tree { width: min(17rem, 82%); }
  .polaroids { height: 11rem; }
  .sec-head { margin-top: 2.6rem; }
  .sec-ghost { font-size: 2.9rem; top: -1.5rem; }
  .sec-title { font-size: 1.35rem; }
  .news-row { grid-template-columns: 4.4rem 1fr; gap: .2rem .6rem; }
  .news-row .news-text { grid-column: 1 / -1; }
  .news-tag { justify-self: start; padding: .05rem .8rem; }
  .page-cards { gap: .7rem; }
  .page-card { padding: .9rem; }
  .pc-head { flex-direction: column; align-items: flex-start; gap: .5rem; }
  .pc-desc { margin: .5rem 0 1.6rem; font-size: .76rem; }
  .pc-go { right: .7rem; bottom: .7rem; width: 1.6rem; height: 1.6rem; }
  .member-band { grid-template-columns: 1fr 1fr; }
  .status-pair { gap: .7rem; }
  .theme { margin: 2.4rem 0; }
  .theme-num { font-size: 3.2rem; } .theme-title { font-size: 1.4rem; }
  .theme-en { display: block; margin: .1rem 0 0; }
  .tl-row { grid-template-columns: 1.2rem 1fr; gap: .6rem; }
  .tl-date { grid-column: 2; grid-row: 1; text-align: left; padding-top: 0; display: flex; gap: .4rem; align-items: baseline; }
  .tl-dot { grid-column: 1; grid-row: 1 / span 2; margin-top: .25rem; }
  .tl-card { grid-column: 2; }
  .tl-row::before { left: .5rem; top: 1.2rem; }
  .prof-card { grid-template-columns: 1fr; }
  .pm-awards { grid-template-columns: 1fr; }
  .pm-row { grid-template-columns: 1fr; gap: 0; }
  .map-frame { padding: .6rem; }
  .map-scroll { overflow-x: auto; }
  .plan { min-width: 44rem; }
  .prof-photo img { max-width: 12rem; }
  .member-cols { grid-template-columns: 1fr; }
  .alumni-card { grid-template-columns: 1fr; padding: 1.2rem; }
  .year-group, .year-group.album, .side-list { grid-template-columns: 1fr; gap: .5rem; }
  .yg-side { position: static; display: flex; align-items: baseline; gap: .7rem; }
  .yg-year { font-size: 2.2rem; } .yg-side b { margin: 0; }
  .sl-side { display: flex; align-items: baseline; gap: .8rem; }
  .big-outline { font-size: 2.6rem; }
  .album-grid { grid-template-columns: 1fr 1fr; gap: .7rem; }
  .ac-title { font-size: .84rem; }
  .talk-grid { grid-template-columns: 1fr; }
  .patent-row { grid-template-columns: 2.4rem 1fr; } .pr-side { grid-column: 2; text-align: left; }
  .viewer-overlay { padding: 0; } .viewer { border-radius: 0; height: 100%; }
  .vw-stage img { max-height: none; }
  .account-menu { position: fixed; top: auto; bottom: 0; left: 0; right: 0; width: auto; border-radius: 24px 24px 0 0; padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom)); }
  .menu-overlay { background: rgba(23,28,58,.35); }
  .i18n-pair { grid-template-columns: 1fr; }
  .footer-hosei img { width: 140px; }
  .card { padding: 1rem; border-radius: 18px; }
  .member-title { font-size: 1.45rem; }
}
@media (prefers-reduced-motion: reduce) {
  .bubbles span, .spark, .float-stat, .dot.on { animation: none; }
  .bubbles span { bottom: auto; opacity: .7; }
  html { scroll-behavior: auto; }
  .pill, .btn, .card, .btn-pill, .page-card { transition: none; }
}

/* attendance page: meetings on the left, my status / weekly report / board on the right */
.att-banner { display: flex; align-items: center; gap: .8rem; margin: 0 0 1rem; padding: .8rem 1rem .8rem 1.2rem; border: 2px solid var(--mint); border-radius: 20px; background: linear-gradient(100deg, #e9faf1, #eef7fd); }
.att-banner b { flex: 1; min-width: 0; }
.att-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 1.2rem; align-items: start; }
.att-side { display: grid; gap: 1rem; position: sticky; top: 1rem; }
.side-box { display: block; margin: 0; text-decoration: none; color: var(--ink); }
.side-box h3 { margin: 0 0 .6rem; font-size: 1.02rem; color: var(--navy); }
a.side-box { transition: border-color .15s; } a.side-box:hover { border-color: var(--peri); }
.my-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: .45rem; }
.my-stat { padding: .5rem .5rem; border-radius: 14px; background: var(--aqua-soft); }
.my-stat b { display: block; font-family: "Quicksand", sans-serif; font-size: 1.35rem; line-height: 1.2; color: var(--navy); }
.my-stat span { font-size: .66rem; color: var(--ink-soft); font-weight: 700; white-space: nowrap; }
.my-recent { list-style: none; margin: .7rem 0 0; padding: 0; }
.my-recent li { display: flex; align-items: center; gap: .5rem; padding: .25rem 0; font-size: .88rem; }
.mr-date { min-width: 5.2rem; color: var(--ink-soft); font-family: "Quicksand", sans-serif; }
.mr-dot { width: .7rem; height: .7rem; border-radius: 50%; background: #c9d1e6; }
.mr-dot.st-onsite { background: var(--accepted); } .mr-dot.st-online { background: var(--aqua-deep); } .mr-dot.st-absent { background: var(--late); }
.rep-box { border-color: var(--mint); background: linear-gradient(120deg, #f0fbf5, #fff); }
.rep-box.done { border-color: var(--line); background: #fff; }
.rb-due { margin: 0; font-weight: 700; }
.rep-box .hint { margin-bottom: .7rem; }
.rep-box .hint.ok { color: var(--accepted); font-weight: 700; }
.bb-title { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.seat-preview { margin-top: 1.2rem; }
@media (max-width: 900px) {
  .att-layout { grid-template-columns: 1fr; }
  .att-side { position: static; }
}
@media (max-width: 640px) {
  .att-banner { flex-wrap: wrap; }
  .my-stat b { font-size: 1.1rem; }
}
.member-body:has(> .att-layout) { max-width: none; }

a.pub-title:hover { color: var(--peri-deep); text-decoration: underline; text-decoration-color: var(--line); }
a.pub-title .ext { font-size: .8em; color: var(--peri); }

/* ---------- header: long lab name ---------- */
.brand-name { font-size: 1.75rem; }

/* ---------- home: recent publications ---------- */
.recent-pubs .rp-row { padding: .35rem 0; border-bottom: 2px dotted rgba(33,150,173,.15); }
.recent-pubs .rp-row:last-child { border-bottom: 0; }
.rp-row b { display: block; margin-top: .1rem; font-size: .88rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.rp-venue { font-size: .72rem; color: var(--ink-soft); }
.hero-note.inline { display: inline; }
.digest-stats { margin: 0 0 1rem; }

/* ---------- lab visit ---------- */
.visit-hero .hero-side { flex: 0 0 22rem; }
.v-sub { margin: 0 0 .5rem; font-weight: 700; color: var(--peri-deep); }
.v-inline { font-weight: 700; text-decoration: none; white-space: nowrap; }
.v-next { background: #fff; border-radius: 24px; padding: 1.1rem 1.1rem 1.2rem; box-shadow: 0 12px 30px rgba(43,52,102,.1); }
.v-next-head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-bottom: .8rem; }
.v-next-head .hint { margin: 0; }
.v-next-main { display: flex; gap: .9rem; align-items: center; margin-bottom: .8rem; }
.v-cal { display: grid; place-items: center; width: 4.4rem; padding: .45rem 0; border-radius: 16px; background: linear-gradient(160deg, var(--pink), var(--lav)); color: #fff; line-height: 1.2; flex: none; }
.v-cal span { font-family: "Quicksand", sans-serif; font-size: .68rem; font-weight: 700; letter-spacing: .08em; }
.v-cal b { font-family: "Quicksand", sans-serif; font-size: 1.4rem; }
.v-next-main > div:last-child { display: grid; gap: .1rem; font-size: .8rem; color: var(--ink-soft); }
.v-next-main span { display: flex; align-items: center; gap: .3rem; }
.v-next-title { font-size: 1.05rem; color: var(--ink); }
.v-next-row { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .45rem .7rem; margin-bottom: .4rem; border-radius: 12px; background: #f6f8fc; font-size: .84rem; font-weight: 700; }
.v-badge { flex: none; font-size: .7rem; font-weight: 700; border-radius: 999px; padding: .05rem .6rem; }
.v-badge.ok { background: var(--mint-soft); color: var(--mint-deep); }
.v-badge.req { background: var(--pink-soft); color: var(--pink-deep); border: 1px solid #f3bcd1; }
.v-apply { width: 100%; margin-top: .4rem; }
.v-sched-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: stretch; }
.v-sched { display: flex; flex-direction: column; background: #fff; border: 2px solid var(--line); border-top: 6px solid var(--cb); border-radius: 22px; padding: 1rem 1.1rem 1.1rem; box-shadow: var(--shadow); }
.v-sched.t-aqua { --cb: var(--aqua); } .v-sched.t-pink { --cb: var(--pink); }
.v-sched-head { display: flex; justify-content: space-between; align-items: center; }
.v-sched h3 { margin: .6rem 0 .2rem; font-size: 1.1rem; color: var(--navy); }
.v-text { margin: 0 0 .7rem; font-size: .86rem; color: var(--ink-soft); }
.v-slots { display: grid; gap: .5rem; margin-bottom: .7rem; }
.v-slot { display: flex; align-items: center; gap: .8rem; padding: .45rem .6rem; background: #f6f8fc; border-radius: 14px; }
.v-date { display: grid; place-items: center; min-width: 4rem; padding: .2rem .4rem; border: 2px solid var(--cb); border-radius: 12px; background: #fff; line-height: 1.25; }
.v-date b { font-family: "Quicksand", sans-serif; font-size: 1.05rem; color: var(--c); }
.v-date span { font-size: .66rem; color: var(--ink-soft); }
.v-when { display: grid; gap: .05rem; font-size: .8rem; }
.v-when span { display: flex; align-items: center; gap: .35rem; }
.v-note { margin: auto 0 0; padding: .45rem; border-radius: 12px; background: var(--mint-soft); color: var(--mint-deep); text-align: center; font-weight: 700; font-size: .84rem; }
.v-wide { width: 100%; margin-top: auto; }
.v-env { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1.6rem; align-items: center; }
.v-env-title { margin: 0 0 .6rem; font-size: 1.2rem; color: var(--navy); }
.v-env p { margin: 0 0 1rem; font-size: .9rem; color: var(--ink-soft); }
.v-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin-bottom: 1rem; }
.v-stats .stat-box { background: var(--cs); border-color: transparent; box-shadow: none; }
.v-mats { display: grid; grid-template-columns: 16rem 1fr; gap: 1rem; align-items: start; }
.v-mats.single { grid-template-columns: 1fr; }
.v-files { display: grid; gap: .7rem; }
.v-file { display: flex; align-items: center; gap: .8rem; padding: .8rem 1rem; background: #fff; border: 2px solid var(--line); border-radius: 18px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); }
.v-file:hover { border-color: var(--peri); }
.v-file > div { flex: 1; min-width: 0; } .v-file b { display: block; font-size: .92rem; } .v-file span { font-size: .72rem; color: var(--ink-soft); }
.vf-icon { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 12px; background: var(--pink-soft); color: var(--pink-deep); flex: none; }
.vf-down { display: grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--navy); color: #fff !important; flex: none; }
.v-videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: .8rem; }
.v-video { text-decoration: none; color: var(--ink); }
.vv-thumb { position: relative; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; background: linear-gradient(135deg, var(--aqua-soft), var(--lav-soft)); }
.vv-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vv-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: rgba(255,255,255,.9); color: var(--navy); }
.v-video b { display: block; margin-top: .3rem; font-size: .82rem; }
.v-faq { display: grid; gap: .7rem; }
.v-q { margin: 0; background: #fff; border: 2px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.v-q[open] { border-color: var(--gold); }
.v-q summary { display: flex; align-items: center; gap: .7rem; width: auto; padding: .8rem 1rem; list-style: none; color: var(--ink); font-size: .95rem; }
.v-q summary::-webkit-details-marker { display: none; }
.q-mark, .a-mark { display: grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 9px; background: var(--gold); color: #fff; font-family: "Quicksand", sans-serif; font-weight: 700; flex: none; }
.a-mark { background: var(--lav-soft); color: var(--lav-deep); }
.v-q summary b { flex: 1; }
.q-toggle::before { content: "+"; font-size: 1.2rem; color: var(--ink-soft); }
.v-q[open] .q-toggle::before { content: "−"; }
.v-a { display: flex; gap: .7rem; align-items: flex-start; margin: 0 1rem; padding: .7rem 0 .9rem; border-top: 2px dotted var(--line); }
.v-a p { margin: 0; font-size: .9rem; color: var(--ink-soft); }
.v-join { display: flex; align-items: center; justify-content: space-between; gap: 1.4rem; flex-wrap: wrap; margin-top: 3rem; padding: 2rem 2.2rem; border-radius: 28px; color: #fff;
  background: repeating-linear-gradient(135deg, rgba(255,255,255,.04) 0 14px, transparent 14px 28px), linear-gradient(100deg, #2f3a7a, #4a4ea6 60%, #7d63d6); }
.v-join h2 { margin: .6rem 0 .3rem; font-size: 1.7rem; }
.v-join p { margin: 0; opacity: .9; max-width: 30rem; }
.v-join-btns { display: flex; flex-wrap: wrap; gap: .7rem; }
.btn-pill.white { background: #fff; color: var(--navy); border-color: #fff; }
.btn-pill.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.r511 { padding: 1.2rem 1.2rem 1.9rem; }
.r511 .pd-row { margin-top: .2rem; }
@media (max-width: 900px) {
  .visit-hero .hero-side { flex-basis: auto; }
  .v-sched-grid, .v-env, .v-mats { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .brand-name { font-size: 1.05rem; line-height: 1.25; display: block; }
  .v-join { padding: 1.5rem 1.2rem; }
  .v-join-btns, .v-join-btns .btn-pill { width: 100%; }
  .v-stats .stat-box { min-width: 0; }
}

/* admin: website content grouped by page */
.admin-groups { columns: 3 17rem; column-gap: 1rem; }
.admin-groups .admin-pg { break-inside: avoid; margin-bottom: 1rem; }
.admin-pg { background: #fff; border: 2px solid var(--line); border-top: 6px solid var(--cb); border-radius: 20px; padding: .8rem .9rem .6rem; box-shadow: var(--shadow); }
.apg-head { display: flex; align-items: center; gap: .5rem; padding: 0 .2rem .5rem; border-bottom: 2px dotted var(--line); }
.apg-head > .ic { width: 1.6rem; height: 1.6rem; padding: .3rem; border-radius: 9px; background: var(--cs); color: var(--c); }
.apg-head b { flex: 1; font-size: 1rem; color: var(--navy); }
.apg-open { font-size: .74rem; font-weight: 700; text-decoration: none; color: var(--ink-soft); }
.apg-list { display: grid; }
.apg-item { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: .5rem; padding: .5rem .4rem; border-radius: 12px; text-decoration: none; color: var(--ink); }
.apg-item + .apg-item { border-top: 1px dashed var(--line); }
.apg-item:hover { background: var(--cs); }
.apg-item b { font-size: .92rem; } .apg-item .hint { grid-column: 1; margin: 0; }
.apg-go { grid-column: 2; grid-row: 1 / span 2; font-size: 1.3rem; color: var(--c); }

.v-next .hint { margin: 0 0 .6rem; }
.v-lab-btn { margin-top: .2rem; }

/* home: number bubbles around the tree */
.float-stat { width: 5.6rem; height: 5.6rem; padding: 0; border: 0; border-radius: 50%; display: grid; place-content: center; text-align: center; line-height: 1.15; box-shadow: none;
  background:
    radial-gradient(circle at 30% 24%, rgba(255,255,255,.95) 0 6%, rgba(255,255,255,0) 15%),
    radial-gradient(circle at 70% 80%, rgba(255,255,255,.6) 0 3%, rgba(255,255,255,0) 9%),
    radial-gradient(circle at 50% 50%, rgba(255,255,255,.55) 0 50%, rgba(255,255,255,.3) 64%, rgba(140,225,235,.3) 80%, rgba(190,170,240,.38) 92%, rgba(255,190,225,.34) 100%);
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.85), inset 0 -6px 14px rgba(179,154,240,.2), 0 8px 20px rgba(108,127,198,.14);
  backdrop-filter: blur(3px) saturate(1.2); -webkit-backdrop-filter: blur(3px) saturate(1.2); }
.float-stat b { font-size: 1.45rem; }
.float-stat span { font-size: .68rem; color: var(--ink); }
.news-row.linked { color: var(--ink); text-decoration: none; border-radius: 10px; transition: background .15s; }
.news-row.linked:hover { background: var(--peri-soft); }
.news-row.linked:hover .news-text { color: var(--peri-deep); }
.m-link { display: inline-flex; align-items: center; gap: .3rem; }
.m-home { display: inline-grid; place-items: center; width: 1.15rem; height: 1.15rem; border-radius: 6px; background: var(--peri-soft); color: var(--peri-deep); flex: none; }
.m-home .ic { width: .75rem; height: .75rem; }
.mc-list a .m-ja { text-decoration: none; }
@media (max-width: 640px) {
  .float-stat { width: 4.4rem; height: 4.4rem; }
  .float-stat b { font-size: 1.1rem; } .float-stat span { font-size: .6rem; }
}

/* home tree: logo sits softly in the canopy; number bubbles with coloured reflections */
.tree-badge { top: 43%; width: 30%; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.82) 0 34%, rgba(255,255,255,.45) 52%, rgba(255,255,255,0) 72%);
  box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.tree-badge img { width: 70%; filter: drop-shadow(0 0 4px rgba(255,255,255,.95)); }
a.float-stat { text-decoration: none; color: var(--ink); cursor: pointer; transition: filter .2s; }
a.float-stat:hover { filter: brightness(1.06) saturate(1.2); }
.float-stat { width: 6rem; height: 6rem;
  background:
    radial-gradient(ellipse 34% 22% at 32% 22%, rgba(255,255,255,.98), rgba(255,255,255,0) 100%),
    radial-gradient(circle at 72% 80%, rgba(255,255,255,.7) 0 4%, rgba(255,255,255,0) 10%),
    conic-gradient(from 200deg at 50% 50%, rgba(140,225,235,.45), rgba(190,170,240,.5), rgba(255,190,225,.45), rgba(255,236,170,.4), rgba(170,240,205,.45), rgba(140,225,235,.45));
  -webkit-mask: radial-gradient(circle, #000 70.5%, transparent 71%); mask: radial-gradient(circle, #000 70.5%, transparent 71%);
  box-shadow: none; }
.float-stat::before { content: ""; position: absolute; inset: 7%; border-radius: 50%; background: radial-gradient(circle at 50% 50%, rgba(255,255,255,.7) 0 45%, rgba(255,255,255,.35) 75%, rgba(255,255,255,.05) 100%); z-index: -1; }
.float-stat::after { content: ""; position: absolute; left: 18%; top: 12%; width: 30%; height: 18%; border-radius: 50%; background: radial-gradient(ellipse, rgba(255,255,255,.95), rgba(255,255,255,0) 70%); transform: rotate(-30deg); pointer-events: none; }
.float-stat { isolation: isolate; }
.float-stat b, .float-stat span { position: relative; }
.v-hero-btns { margin: .2rem 0 .2rem; }
.v-next .vc-group { margin-bottom: .8rem; }
.vc-head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-bottom: .4rem; font-size: .88rem; }
.v-slots.compact { gap: .35rem; margin: 0; }
.v-slots.compact .v-slot { padding: .3rem .45rem; }
.v-slots.compact .v-date { min-width: 3.4rem; }
.v-slots.compact .v-date b { font-size: .92rem; }
.v-slots.compact .v-when { font-size: .74rem; }
@media (max-width: 640px) {
  .float-stat { width: 4.8rem; height: 4.8rem; }
}

/* clearer bubbles, bigger logo without a backdrop */
.float-stat::before { background: radial-gradient(circle at 50% 50%, rgba(255,255,255,.42) 0 40%, rgba(255,255,255,.2) 72%, rgba(255,255,255,0) 100%); }
.float-stat { background:
    radial-gradient(circle at 72% 80%, rgba(255,255,255,.6) 0 4%, rgba(255,255,255,0) 10%),
    radial-gradient(circle, rgba(255,255,255,0) 0 60%, rgba(255,255,255,.25) 78%, rgba(255,255,255,0) 100%),
    conic-gradient(from 200deg at 50% 50%, rgba(140,225,235,.3), rgba(190,170,240,.34), rgba(255,190,225,.3), rgba(255,236,170,.26), rgba(170,240,205,.3), rgba(140,225,235,.3));
  backdrop-filter: blur(1.5px) saturate(1.3); -webkit-backdrop-filter: blur(1.5px) saturate(1.3); }
.float-stat b { text-shadow: 0 0 6px rgba(255,255,255,.95), 0 0 2px #fff; }
.float-stat span { text-shadow: 0 0 5px rgba(255,255,255,.95), 0 0 2px #fff; }
.tree-badge { width: 40%; top: 42%; background: none; }
.tree-badge img { width: 82%; filter: drop-shadow(0 0 3px rgba(255,255,255,.9)) drop-shadow(0 0 1px rgba(255,255,255,.9)); }

/* admin: coloured blocks (visit page: student tour / meeting with the professor) */
.sub-list.tint { border: 2px solid var(--cb); background: var(--cs); }
.sub-list.tint > legend { color: #fff; background: var(--c); border-radius: 999px; padding: .05rem .8rem; }
.sub-list.tint .le-row, .sub-list.tint input, .sub-list.tint textarea, .sub-list.tint select { background: #fff; }

/* tree logo in the same bubble as the numbers */
.tree-badge { width: 36%; top: 42%; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(circle at 72% 80%, rgba(255,255,255,.6) 0 4%, rgba(255,255,255,0) 10%),
    radial-gradient(circle, rgba(255,255,255,0) 0 60%, rgba(255,255,255,.25) 78%, rgba(255,255,255,0) 100%),
    conic-gradient(from 200deg at 50% 50%, rgba(140,225,235,.3), rgba(190,170,240,.34), rgba(255,190,225,.3), rgba(255,236,170,.26), rgba(170,240,205,.3), rgba(140,225,235,.3));
  -webkit-mask: radial-gradient(circle, #000 70.5%, transparent 71%); mask: radial-gradient(circle, #000 70.5%, transparent 71%);
  backdrop-filter: blur(1.5px) saturate(1.3); -webkit-backdrop-filter: blur(1.5px) saturate(1.3); }
.tree-badge::before { content: ""; position: absolute; inset: 7%; border-radius: 50%; background: radial-gradient(circle at 50% 50%, rgba(255,255,255,.42) 0 40%, rgba(255,255,255,.2) 72%, rgba(255,255,255,0) 100%); z-index: -1; }
.tree-badge::after { content: ""; position: absolute; left: 18%; top: 12%; width: 30%; height: 18%; border-radius: 50%; background: radial-gradient(ellipse, rgba(255,255,255,.95), rgba(255,255,255,0) 70%); transform: rotate(-30deg); pointer-events: none; }
.tree-badge img { position: relative; width: 74%; }

/* visit page: one typeface throughout (dates and times as well) */
.visit-hero, .v-next, .v-sched, .v-env, .v-mats, .v-faq, .v-join { font-family: inherit; }
.v-date b, .v-cal b, .v-cal span, .v-when, .v-badge, .v-env .stat-box b, .v-next .hint { font-family: inherit; }
.v-date b { font-size: 1rem; font-weight: 700; }
.v-when { font-size: .82rem; font-weight: 500; color: var(--ink); }
.v-text, .v-note, .v-when, .vc-head { line-height: 1.6; }

/* lab groups (admin editor and account page) */
.groups-editor { display: grid; gap: .9rem; }
.grp-card, .mg-item { background: #fff; border: 2px solid var(--cb); border-left: 8px solid var(--cb); border-radius: 18px; padding: .8rem 1rem .9rem; box-shadow: var(--shadow); }
.grp-head, .mg-head { display: flex; align-items: center; gap: .55rem; margin-bottom: .6rem; }
.grp-no { display: inline-grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--c); color: #fff; font-weight: 700; font-size: .9rem; flex: none; }
.grp-head b, .mg-head b { font-size: 1.02rem; color: var(--navy); }
.grp-kind { font-size: .72rem; font-weight: 700; color: var(--c); background: var(--cs); border-radius: 999px; padding: .05rem .65rem; }
.grp-btns { margin-left: auto; display: flex; gap: .3rem; align-items: center; }
.grp-roles { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.grp-role { display: block; padding: .5rem .7rem; border-radius: 12px; }
.grp-role > span { display: block; font-size: .78rem; font-weight: 700; margin-bottom: .2rem; }
.grp-role.lead { background: var(--gold-soft); } .grp-role.lead > span { color: var(--gold-deep); }
.grp-role.sub { background: var(--lav-soft); } .grp-role.sub > span { color: var(--lav-deep); }
.grp-members { margin-top: .7rem; padding: .55rem .7rem .7rem; border-radius: 12px; background: var(--cs); }
.grp-mlabel { display: block; font-size: .78rem; font-weight: 700; color: var(--c); margin-bottom: .35rem; }
.grp-chips { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.grp-chip { display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .3rem .2rem .7rem; border-radius: 999px; background: #fff; border: 1px solid var(--cb); font-size: .84rem; font-weight: 700; }
.grp-chip button { border: 0; background: var(--cs); color: var(--c); width: 1.3rem; height: 1.3rem; border-radius: 50%; cursor: pointer; font-weight: 700; line-height: 1; }
.grp-chips select { width: auto; min-width: 11rem; padding: .25rem .6rem; border-radius: 999px; font-size: .84rem; }
.grp-add .grp-add-grad { border-color: var(--peri-deep); color: var(--peri-deep); }
.grp-add .grp-add-ug { border-color: var(--mint-deep); color: var(--mint-deep); }
.my-groups h3 { margin: 0 0 .6rem; }
.mg-list { display: grid; gap: .6rem; }
.mg-item { box-shadow: none; }
.mg-role { margin-left: auto; font-size: .74rem; font-weight: 700; color: #fff; background: var(--c); border-radius: 999px; padding: .05rem .7rem; }
.mg-line { margin: .15rem 0; font-size: .88rem; }
.mg-line span { display: inline-block; min-width: 6.5rem; font-size: .76rem; font-weight: 700; color: var(--ink-soft); }
@media (max-width: 640px) { .grp-roles { grid-template-columns: 1fr; } }

/* group markers next to the member's name */
.grp-marks { display: inline-flex; gap: .25rem; margin-left: .35rem; vertical-align: .05em; }
.grp-mark { display: inline-flex; align-items: center; gap: .2rem; padding: 0 .45rem; border-radius: 999px; font-size: .7rem; font-weight: 700; line-height: 1.6; white-space: nowrap; color: #fff; }
.grp-mark.grad { background: var(--peri-deep); } .grp-mark.ug { background: var(--mint-deep); }
.grp-mark small { font-size: .62rem; opacity: .9; }
.user-btn .grp-marks { margin-left: 0; }
.user-btn .grp-mark small { display: none; }
@media (max-width: 640px) { .user-btn .grp-mark:nth-child(n+2) { display: none; } }
.acc-head .grp-marks { display: inline-flex; margin-left: .4rem; }
.acc-head .grp-mark { color: #fff; font-size: .7rem; }
.acc-head .grp-mark small { color: #fff; font-size: .62rem; }

/* in-page window for materials and videos */
.embed-win { width: min(56rem, 100%); height: min(86vh, 52rem); display: flex; flex-direction: column; background: #fff; border-radius: 22px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.embed-win.is-video { height: auto; }
.embed-btns { display: flex; align-items: center; gap: .7rem; flex: none; }
.embed-ext { font-size: .8rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.embed-body { flex: 1; min-height: 0; background: #f2f4f9; }
.embed-body iframe { display: block; width: 100%; height: 100%; border: 0; }
.embed-win.is-video .embed-body { flex: none; aspect-ratio: 16 / 9; background: #000; }
.embed-body video { display: block; width: 100%; height: 100%; background: #000; }
@media (max-width: 640px) { .embed-win { height: 100%; border-radius: 0; } .embed-win.is-video { height: auto; border-radius: 16px; } }

/* research: theme title opens the details window; videos in the figure */
.theme-open { display: inline; padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.theme-open:hover { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: .2em; }
.theme-more { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; margin-left: .45rem; border-radius: 50%; background: var(--cs); vertical-align: .15em; }
.theme-more .ic { width: .9rem; height: .9rem; }
.fig-card.has-video { padding: .6rem; display: block; }
.fig-card iframe, .fig-card video { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 14px; background: #000; }
.fig-empty { display: grid; justify-items: center; gap: .4rem; color: var(--ink-soft); font-size: .84rem; font-weight: 700; }
.fig-empty .ic { width: 2.6rem; height: 2.6rem; padding: .6rem; border-radius: 50%; background: var(--cs); color: var(--c); }
.theme-win { height: min(88vh, 54rem); }
.theme-win .vw-head { align-items: flex-start; border-bottom: 2px dotted var(--line); }
.td-title { display: block; margin-top: .35rem; font-size: 1.15rem; color: var(--navy); }
.td-body { flex: 1; min-height: 0; overflow-y: auto; padding: 1rem 1.3rem 1.4rem; display: grid; gap: 1.1rem; align-content: start; }
.fig-card.in-window { box-shadow: none; min-height: 0; padding: 0; border: 0; }
.fig-card.in-window img { max-height: 22rem; margin: 0 auto; }
.td-sec p { margin: 0 0 .6rem; font-size: .92rem; line-height: 1.85; }
.td-paper { margin: 0; padding: .6rem .9rem; border-left: 4px solid var(--cb); background: var(--cs); border-radius: 0 12px 12px 0; font-size: .86rem; }
.td-paper span { display: block; font-size: .72rem; font-weight: 700; color: var(--c); }

/* research: English label under the theme name; figure opens the video window */
.theme-title { margin-bottom: .1rem; }
.theme-en-line { margin: 0 0 .7rem; font-family: "Quicksand", sans-serif; font-weight: 700; font-size: .95rem; color: var(--c); }
button.fig-card { width: 100%; font: inherit; cursor: pointer; position: relative; overflow: hidden; }
.fig-video img { transition: transform .3s; }
.fig-video:hover img { transform: scale(1.03); }
.fig-blank { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 14px; background: linear-gradient(135deg, var(--cs), #fff); }
.fig-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 3.6rem; height: 3.6rem; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--c); box-shadow: 0 6px 20px rgba(43,52,102,.25); transition: transform .2s; }
.fig-play .ic { width: 1.5rem; height: 1.5rem; margin-left: .15rem; }
.fig-video:hover .fig-play { transform: translate(-50%, -50%) scale(1.08); }

/* grade colours */
.g-b3 { --gc: var(--pink-deep); --gs: var(--pink-soft); }
.g-b4 { --gc: var(--mint-deep); --gs: var(--mint-soft); }
.g-master { --gc: var(--aqua-deep); --gs: var(--aqua-soft); }
.g-doctor { --gc: var(--peri-deep); --gs: var(--peri-soft); }
.g-professor { --gc: var(--lav-deep); --gs: var(--lav-soft); }
.ws-g-chip { display: inline-block; font-size: .74rem; font-weight: 700; color: var(--gc); background: var(--gs); border-radius: 999px; padding: .05rem .7rem; }

/* admin: members = accounts */
.roster { border-top: 6px solid var(--gc); }
.roster-head { display: flex; align-items: center; gap: .3rem; margin: 0 0 .4rem; font-size: .95rem; color: var(--ink-soft); }
.roster-table td { vertical-align: middle; }
.roster-table td input, .roster-table td select { min-width: 7rem; padding: .3rem .5rem; font-size: .86rem; }
.roster-table .tag { margin-left: .4rem; }
.roster-add { display: grid; grid-template-columns: 8rem 1fr 1fr 1fr auto; gap: .5rem; margin-top: .7rem; padding-top: .7rem; border-top: 2px dotted var(--line); }
.roster-add input { padding: .35rem .6rem; font-size: .88rem; }
@media (max-width: 760px) { .roster-add { grid-template-columns: 1fr 1fr; } }

/* board: workshop */
.tag.ws-tag { background: var(--gold-soft); color: var(--gold-deep); }
.ws-form { display: grid; gap: .7rem; }
.ws-day { border: 2px solid var(--line); border-radius: 16px; padding: .4rem .9rem .7rem; margin: 0; }
.ws-day.d1 { border-color: var(--aqua); } .ws-day.d2 { border-color: var(--pink); }
.ws-day legend { padding: 0 .3rem; font-weight: 700; }
.ws-day legend .check { margin: 0; }
.ws-grades { display: flex; flex-wrap: wrap; gap: .4rem .9rem; }
.ws-grades .check { margin: .2rem 0; padding: .1rem .6rem; border-radius: 999px; background: var(--gs); color: var(--gc); font-weight: 700; font-size: .86rem; }
.ws { display: grid; gap: .7rem; margin: .7rem 0 .3rem; }
.ws-day-card { border-radius: 16px; padding: .7rem .9rem .8rem; border: 2px solid var(--line); background: #fff; }
.ws-day-card.d1 { border-left: 6px solid var(--aqua); } .ws-day-card.d2 { border-left: 6px solid var(--pink); }
.ws-head { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .7rem; }
.ws-badge { font-family: "Quicksand", sans-serif; font-weight: 700; font-size: .8rem; color: #fff; background: var(--aqua-deep); border-radius: 8px; padding: .05rem .55rem; }
.ws-day-card.d2 .ws-badge { background: var(--pink-deep); }
.ws-place { font-size: .86rem; color: var(--ink-soft); }
.ws-count { margin-left: auto; font-size: .82rem; font-weight: 700; color: var(--accepted); }
.ws-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; margin: .45rem 0 .55rem; }
.ws-deadline { margin-left: auto; font-size: .8rem; font-weight: 700; color: var(--late); }
.ws-deadline.closed { color: var(--ink-soft); }
.ws-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: .3rem .6rem; }
.ws-person { display: flex; align-items: center; gap: .45rem; padding: .3rem .5rem; border-radius: 10px; background: #f6f8fc; font-size: .88rem; cursor: pointer; }
.ws-person input { width: 1.05rem; height: 1.05rem; accent-color: var(--accepted); }
.ws-person.me { background: var(--gold-soft); }
.ws-person:has(input:checked) { background: var(--mint-soft); }
.ws-sid { font-family: ui-monospace, Menlo, monospace; font-size: .78rem; color: var(--ink-soft); }

/* workshop rows: number, ID, name, then the checkbox */
.ws-list { grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); }
.ws-no { display: inline-grid; place-items: center; min-width: 1.5rem; height: 1.5rem; border-radius: 50%; background: #fff; border: 1px solid var(--line); font-size: .72rem; font-weight: 700; color: var(--ink-soft); flex: none; }
.ws-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ws-person input { margin-left: auto; flex: none; }

/* member list (admin): fits the width, no horizontal scrolling */
.roster .tablewrap { overflow: visible; }
.roster-table { table-layout: fixed; width: 100%; }
.roster-table th, .roster-table td { white-space: normal; overflow-wrap: anywhere; padding: .4rem .35rem; }
.roster-table th:nth-child(1) { width: 6.8rem; } .roster-table th:nth-child(4) { width: 4.5rem; } .roster-table th:nth-child(5) { width: 7.5rem; } .roster-table th:nth-child(6) { width: 8.6rem; }
.roster-table td input, .roster-table td select { min-width: 0; width: 100%; }
.roster-table .actions.tight { flex-wrap: wrap; gap: .3rem; }
.roster-table .btn { padding: .15rem .7rem; font-size: .8rem; }
@media (max-width: 760px) {
  .roster-table thead { display: none; }
  .roster-table, .roster-table tbody, .roster-table tr, .roster-table td { display: block; width: 100%; }
  .roster-table tr { display: grid; grid-template-columns: auto 1fr auto; gap: .2rem .5rem; align-items: center; padding: .5rem 0; border-bottom: 1px solid var(--line); }
  .roster-table td { border: 0; padding: 0; }
  .roster-table td:nth-child(3), .roster-table td:nth-child(5) { grid-column: 2; font-size: .78rem; color: var(--ink-soft); }
  .roster-table td:nth-child(4) { grid-column: 3; grid-row: 2; }
  .roster-table td:nth-child(6) { grid-column: 3; grid-row: 1; }
}
@media (max-width: 760px) {
  .roster-table tr.editing { grid-template-columns: 1fr 1fr; }
  .roster-table tr.editing td { grid-column: auto !important; grid-row: auto !important; font-size: inherit; color: inherit; }
}

/* visit page: documents and videos on one shelf */
.v-shelf { padding: 1rem 1.1rem 1.2rem; border-radius: 26px; border: 2px solid #e2eef7; background: linear-gradient(120deg, #eefaf4, #f1f5fd 60%, #f4f0fd); }
.v-shelf-head { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .8rem; }
.vs-count { display: inline-flex; align-items: center; gap: .35rem; padding: .15rem .8rem; border-radius: 999px; background: #fff; font-size: .8rem; font-weight: 700; }
.vs-count.video { color: var(--peri-deep); } .vs-count.doc { color: var(--pink-deep); }
.vs-count .ic { width: .85rem; height: .85rem; }
.v-shelf-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .9rem; }
.v-shelf-grid.few { grid-template-columns: repeat(auto-fill, minmax(14rem, 17rem)); }
.v-tile { display: block; padding: .5rem .5rem .7rem; border-radius: 18px; background: #fff; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .15s; }
.v-tile:hover { transform: translateY(-3px); }
.vt-thumb { position: relative; aspect-ratio: 16 / 10; border-radius: 13px; overflow: hidden; background: linear-gradient(135deg, var(--peri-soft), var(--lav-soft)); display: grid; place-items: center; }
.v-tile.doc .vt-thumb { background: linear-gradient(135deg, var(--pink-soft), var(--gold-soft)); }
.vt-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vt-doc { display: grid; justify-items: center; gap: .2rem; color: var(--pink-deep); }
.vt-doc .ic { width: 2.6rem; height: 2.6rem; }
.vt-doc small { font-family: "Quicksand", sans-serif; font-weight: 700; font-size: .72rem; letter-spacing: .08em; }
.vt-kind { position: absolute; left: .45rem; top: .45rem; font-size: .66rem; font-weight: 700; color: #fff; background: rgba(43,52,102,.65); border-radius: 999px; padding: 0 .55rem; }
.v-tile.doc .vt-kind { background: var(--pink-deep); }
.vt-title { display: block; margin: .5rem .2rem 0; font-size: .86rem; line-height: 1.45; }
@media (max-width: 900px) { .v-shelf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .v-shelf-grid.few { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* lab map: the seat list scrolls inside its card so the GPU and shelf boxes keep their size */
.pseats.scroll { contain: size; display: flex; flex-direction: column; min-height: 8rem; }
.pseats.scroll .seat-list { flex: 1; min-height: 0; overflow-y: auto; padding-right: .3rem; }
.pseats.scroll .seat-list { columns: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); align-content: start; column-gap: 1rem; }

/* weekly report (Notion) */
.wr-me { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; margin: 0 0 1rem; padding: .8rem 1rem .8rem 1.2rem; border-radius: 20px; border: 2px solid var(--line); background: #fff; }
.wr-me.todo { border-color: var(--pink); background: linear-gradient(100deg, #fff3f7, #fff); }
.wr-me.ok { border-color: var(--mint); background: linear-gradient(100deg, #ecfbf3, #fff); }
.wr-me > div { flex: 1; min-width: 12rem; } .wr-me b { display: block; } .wr-me span { font-size: .84rem; color: var(--ink-soft); }
.wr-me.todo .dot.on { background: var(--late); box-shadow: 0 0 0 5px rgba(192,82,122,.15); }
.wr-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.2rem; margin-bottom: .8rem; }
.wr-week-l { display: flex; align-items: center; gap: .5rem; font-weight: 700; font-size: .86rem; }
.wr-week-l select { width: auto; }
.wr-period { font-size: .8rem; color: var(--ink-soft); }
.wr-total { margin-left: auto; font-size: .86rem; color: var(--ink-soft); } .wr-total b { font-size: 1.3rem; color: var(--accepted); margin-right: .2rem; }
.wr-tabs { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .7rem; }
.wr-tab { display: inline-flex; align-items: baseline; gap: .35rem; border: 2px solid var(--line); background: #fff; color: var(--ink); font: inherit; font-weight: 700; font-size: .86rem; padding: .2rem .8rem; border-radius: 999px; cursor: pointer; }
.wr-tab small { font-size: .72rem; color: var(--ink-soft); font-weight: 700; }
.wr-tab.k-grad { border-color: var(--peri-soft); } .wr-tab.k-undergrad { border-color: var(--mint-soft); }
.wr-tab[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: #fff; } .wr-tab[aria-selected="true"] small { color: #dfe3f5; }
.wr-group-report { margin: 0 0 .6rem; font-size: .86rem; color: var(--late); } .wr-group-report.ok { color: var(--accepted); }
.wr-list { padding: .4rem .9rem; } .wr-list tr.me td { background: var(--gold-soft); }
.wr-list td, .wr-list th { white-space: normal; }
.wr-st { display: inline-block; min-width: 4.2rem; text-align: center; font-size: .74rem; font-weight: 700; border-radius: 999px; padding: .05rem .5rem; }
.wr-st.ok { background: var(--mint-soft); color: var(--accepted); } .wr-st.no { background: var(--pink-soft); color: var(--late); }
.wr-hist { display: flex; flex-wrap: wrap; gap: .4rem; }
.wr-h { display: grid; justify-items: center; min-width: 4.4rem; padding: .3rem .4rem; border-radius: 12px; text-decoration: none; font-size: .8rem; }
.wr-h small { font-size: .68rem; color: var(--ink-soft); } .wr-h b { font-size: 1rem; }
.wr-h.ok { background: var(--mint-soft); color: var(--accepted); } .wr-h.no { background: #f4f6fb; color: var(--late); }
.wr-un { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .7rem; padding: .45rem 0; border-bottom: 1px dashed var(--line); }
.wr-un select { width: auto; max-width: 16rem; }
@media (max-width: 640px) { .wr-list th:nth-child(4), .wr-list td:nth-child(4) { display: none; } .wr-total { margin-left: 0; } }
.sec-ghost { right: 0; overflow: hidden; }
.card.admin .actions select { width: auto; }

/* weekly report: roles and the report window */
.wr-grade { display: block; font-size: .72rem; color: var(--ink-soft); }
.wr-role { display: inline-block; margin: .1rem .25rem .1rem 0; padding: 0 .55rem; border-radius: 999px; font-size: .72rem; font-weight: 700; white-space: nowrap; }
.wr-role.grad { background: var(--peri-soft); color: var(--peri-deep); } .wr-role.ug { background: var(--mint-soft); color: var(--mint-deep); }
.wr-role.r-leader { background: var(--gold-soft); color: var(--gold-deep); } .wr-role.r-sub { background: var(--lav-soft); color: var(--lav-deep); }
.wr-view { padding: .1rem .8rem; font-size: .8rem; }
button.wr-h { border: 0; font: inherit; cursor: pointer; }
.nt-win { height: min(90vh, 56rem); }
.nt-body { flex: 1; min-height: 0; overflow-y: auto; padding: 1rem 1.4rem 1.6rem; }
.nt-props { display: grid; grid-template-columns: max-content 1fr; gap: .2rem 1rem; margin: 0 0 1rem; padding: .7rem .9rem; border-radius: 12px; background: #f6f8fc; font-size: .84rem; }
.nt-props dt { color: var(--ink-soft); font-weight: 700; } .nt-props dd { margin: 0; overflow-wrap: anywhere; }
.nt-content { font-size: .94rem; line-height: 1.8; overflow-wrap: anywhere; }
.nt-content h3, .nt-content h4, .nt-content h5 { margin: 1.1rem 0 .4rem; color: var(--navy); }
.nt-content p { margin: .3rem 0; } .nt-content img { max-width: 100%; border-radius: 10px; } .nt-content figure { margin: .8rem 0; }
.nt-content figcaption { font-size: .78rem; color: var(--ink-soft); }
.nt-content blockquote { margin: .5rem 0; padding: .2rem .9rem; border-left: 4px solid var(--line); color: var(--ink-soft); }
.nt-callout { margin: .5rem 0; padding: .6rem .9rem; border-radius: 12px; background: var(--gold-soft); }
.nt-code { margin: .5rem 0; padding: .7rem .9rem; border-radius: 10px; background: #1f2440; color: #e8ebff; overflow-x: auto; font-size: .82rem; }
.nt-indent { margin-left: 1.2rem; }
.nt-cols { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 1rem; }
.nt-table td { border: 1px solid var(--line); white-space: normal; }
.nt.b { font-weight: 700; } .nt.i { font-style: italic; } .nt.s { text-decoration: line-through; } .nt.u { text-decoration: underline; }
.nt.c { font-family: ui-monospace, Menlo, monospace; font-size: .86em; background: #f1f3f8; padding: 0 .3em; border-radius: 4px; color: var(--late); }
@media (max-width: 640px) { .nt-cols { grid-auto-flow: row; } .wr-list th:nth-child(4), .wr-list td:nth-child(4) { display: table-cell; } }

.wr-range { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: .6rem; }
.wr-range-l { font-size: .84rem; font-weight: 700; color: var(--ink-soft); }
.wr-range input[type="date"] { width: auto; }

/* group announcement dialog */
.grp-ann-win { width: min(640px, 94vw); height: auto; max-height: 90vh; display: flex; flex-direction: column; }
.grp-ann-body { padding: 1rem 1.2rem 1.2rem; overflow: auto; display: grid; gap: .7rem; }
.grp-ann-body .hint { margin: 0; }
.grp-ann-text { width: 100%; font: inherit; line-height: 1.6; resize: vertical; }
.grp-ann-body .check { display: flex; align-items: center; gap: .45rem; font-weight: 600; }
.grp-ann-body .actions { display: flex; justify-content: flex-end; gap: .6rem; }
