/* Campus · the map (satchel.js): a place's page with its pages as paper things to pick up, the way back, the sibling
   list on wide screens, and the two pages that give 交作业 and 作品展 their one entry. Colours come from tokens.css
   (--kit-*); every move is a held stop-motion frame (--frame), nothing eases. */

/* ---------- layout: the old tab strip is gone; the view takes the page ---------- */
.campus { display: block; }
.campus-main { min-width: 0; }
.index-card { display: none; }
@media (min-width: 900px) {
  .campus[data-index] { display: grid; grid-template-columns: 176px minmax(0, 1fr); gap: 28px; align-items: start; }
  .index-card:not([hidden]) { position: sticky; top: 24px; display: grid; gap: 0; padding: 8px 0 10px; background: var(--kit-paper); color: var(--kit-ink);
    border-top: 6px solid var(--navy); box-shadow: var(--shadow-paper); transform: rotate(calc(var(--tilt-max) * -1));
    background-image: repeating-linear-gradient(transparent 0 39px, color-mix(in srgb, var(--p-navy) 10%, transparent) 39px 40px); }
  .index-card a { display: flex; align-items: center; min-height: 40px; padding: 0 16px; color: inherit; text-decoration: none; font-family: var(--zh); font-weight: 700; font-size: 15px; border-left: 4px solid transparent; }
  .index-card a:hover { background: color-mix(in srgb, var(--p-gold) 16%, transparent); }
  .index-card a.on { border-left-color: var(--red); color: var(--red-deep); background: color-mix(in srgb, var(--p-gold) 22%, transparent); }
  .index-card .index-head { display: grid; align-content: center; gap: 0; min-height: 52px; font-size: 19px; font-weight: 900; color: var(--green-deep); }
  .index-card .index-head small { font-family: var(--label); font-weight: 400; font-size: 9px; letter-spacing: .2em; color: var(--red); }
  /* the sibling list already says where you are */
  .campus[data-index] #campus-crumb { display: none; }
}

/* ---------- the way back ---------- */
#campus-crumb { margin: 0 0 12px; }
#campus-crumb[hidden] { display: none; }
.back-link.crumb { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; margin: 0; padding: 0 14px 0 11px; font-size: 14px; }
.back-link.crumb span[aria-hidden] { font-size: 18px; line-height: 1; margin-top: -2px; }
.back-link[data-tucked], .campus-view .back-link[data-tucked] { display: none; }

/* ---------- a place's page: the kit ---------- */
.kit-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 700px) { .kit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; } }
@media (min-width: 1040px) { .kit-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.kit { --kit-bg: var(--kit-paper); --kit-fg: var(--kit-ink); --kit-sub: var(--kit-soft); --kit-label: var(--kit-en);
  position: relative; isolation: isolate; display: grid; align-content: center; gap: 1px; min-height: 104px; padding: 16px 20px 15px; color: var(--kit-fg); text-decoration: none;
  filter: drop-shadow(3px 4px 0 color-mix(in srgb, var(--shadow-color) 22%, transparent)) drop-shadow(0 12px 12px color-mix(in srgb, var(--shadow-color) 30%, transparent));
  touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
/* the paper itself (shape and ground) sits behind the words, so a cut edge never clips them */
.kit::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--kit-bg); }
.kit-grid > :nth-child(odd) .kit { transform: rotate(calc(var(--tilt-max) * -1)); }
.kit-grid > :nth-child(even) .kit { transform: rotate(var(--tilt-max)); }
/* pressed: one held frame down, like a card pushed into the desk */
.kit:focus-visible { outline: 2px dashed var(--focus); outline-offset: 4px; }
.kit-en { font-family: var(--label); font-size: 10px; letter-spacing: .2em; line-height: 1.5; color: var(--kit-label); }
.kit-zh { font-family: var(--zh); font-weight: 900; font-size: 22px; line-height: 1.3; }
.kit-text { font-size: 13.5px; line-height: 1.6; color: var(--kit-sub); }
.kit-hint { justify-self: start; max-width: 100%; margin-top: 7px; padding: 2px 9px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 12.5px; font-weight: 700; color: var(--kit-gold-ink); background: var(--kit-gold); border-radius: 3px; }
.kit-count { position: absolute; right: -6px; top: -9px; z-index: 2; min-width: 26px; height: 26px; padding: 0 4px; border-radius: 13px; background: var(--kit-count-bg); color: var(--kit-count-ink);
  font-family: var(--cp-en, var(--label)); font-size: 13px; line-height: 26px; text-align: center; box-shadow: 0 0 0 2px var(--kit-count-ink), 0 0 0 3px var(--kit-count-bg); transform: rotate(10deg); }
.kit-art { position: absolute; z-index: 0; pointer-events: none; }
.kit-en, .kit-zh, .kit-text, .kit-hint { position: relative; z-index: 1; }

/* 布告栏 · a cork board with one notice pinned on it */
.kit-cork { padding: 22px 26px 20px; }
.kit-cork::before { background: var(--cork) radial-gradient(color-mix(in srgb, var(--p-bark) 30%, transparent) 1px, transparent 1.6px) 0 0 / 9px 9px; box-shadow: inset 0 0 0 6px var(--cork-frame); }
.kit-cork::after { content: ""; position: absolute; inset: 12px 14px; z-index: -1; background: var(--kit-paper); box-shadow: 1px 2px 0 color-mix(in srgb, var(--shadow-color) 30%, transparent); }
.kit-cork .kit-art { left: 50%; top: 5px; z-index: 2; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, var(--d-ember-white-60), var(--red) 60%, var(--red-deep)); }
/* 交作业 · a ruled library card with its date column */
.kit-card { --kit-bg: var(--kit-frost); --kit-fg: var(--kit-frost-ink); --kit-sub: var(--kit-frost-ink); --kit-label: var(--kit-frost-ink); padding-right: 68px; }
.kit-card::before { background: var(--kit-frost) repeating-linear-gradient(transparent 0 25px, color-mix(in srgb, var(--p-navy) 16%, transparent) 25px 26px); border-top: 7px solid var(--kit-frost-ink); }
.kit-card .kit-art { right: 52px; top: 7px; bottom: 0; width: 5px; border-left: 1px solid color-mix(in srgb, var(--p-wine) 60%, transparent); border-right: 1px solid color-mix(in srgb, var(--p-wine) 60%, transparent); }
.kit-card .kit-art::after { content: "DUE"; position: absolute; left: 12px; top: 8px; font-family: var(--label); font-size: 9px; letter-spacing: .14em; color: var(--p-wine); }
/* 选课 · a tear-off slip with two boxes to tick */
.kit-slip { padding-left: 34px; }
.kit-slip::before { background: var(--kit-paper); border-left: 3px dashed color-mix(in srgb, var(--p-bark) 45%, transparent); border-top: 5px solid var(--gold); }
.kit-slip .kit-art { left: 12px; top: 26px; width: 12px; height: 12px; border: 1.5px solid var(--p-bark); box-shadow: 0 22px 0 -1.5px var(--kit-paper), 0 22px 0 0 var(--p-bark); }
/* 成绩单 · a registrar's sheet with a double rule and a grade circle */
.kit-sheet { padding-right: 76px; }
.kit-sheet::before { background: var(--surface-paper-max); box-shadow: inset 0 0 0 5px var(--surface-paper-max), inset 0 0 0 6.5px color-mix(in srgb, var(--p-wine) 60%, transparent); }
.kit-sheet .kit-art { right: 22px; top: 50%; width: 42px; height: 42px; margin-top: -21px; border: 2px solid var(--p-pine); border-radius: 50%; transform: rotate(-8deg); }
.kit-sheet .kit-art::after { content: "A"; position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 22px; color: var(--p-pine); }
/* 公示栏 · a navy ledger and three dice */
.kit-ledger { --kit-bg: var(--kit-navy); --kit-fg: var(--kit-navy-ink); --kit-sub: var(--kit-navy-ink); --kit-label: var(--kit-navy-en); padding-right: 92px; }
.kit-ledger::before { box-shadow: inset 0 0 0 4px var(--kit-navy), inset 0 0 0 5px color-mix(in srgb, var(--p-gold) 55%, transparent); }
.kit-ledger .kit-art { right: 62px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 5px; background: var(--kit-paper) radial-gradient(circle, var(--p-bark) 2.4px, transparent 3px);
  box-shadow: 26px -9px 0 0 var(--kit-paper), 14px 17px 0 0 var(--kit-paper); transform: rotate(-9deg); }
/* 同学录 · two instant photos, one on top of the other */
.kit-snap { padding-right: 96px; }
.kit-snap .kit-art { right: 22px; top: 50%; width: 54px; height: 62px; margin-top: -31px; background: var(--surface-paper-max); box-shadow: 0 0 0 1px var(--line), -9px 4px 0 -1px var(--surface-paper-max), -9px 4px 0 0 var(--line); transform: rotate(5deg); }
.kit-snap .kit-art::after { content: ""; position: absolute; inset: 5px 5px 16px; background: repeating-linear-gradient(135deg, var(--p-frost) 0 5px, var(--d-frost-white-80) 5px 10px); }
/* 纸条 · a lined note held by a strip of tape */
.kit-note { padding-top: 20px; }
.kit-note::before { background: var(--kit-paper) repeating-linear-gradient(transparent 0 25px, color-mix(in srgb, var(--p-navy) 9%, transparent) 25px 26px); }
.kit-note .kit-art { left: 50%; top: -8px; z-index: 2; width: 74px; height: 20px; margin-left: -37px; background: var(--tape); transform: rotate(-3deg); }
/* 作品展 · a pine mount with a paper frame */
.kit-frame { --kit-bg: var(--kit-pine); --kit-fg: var(--kit-pine-ink); --kit-sub: var(--kit-pine-ink); --kit-label: var(--p-frost); padding: 20px 24px 19px; }
.kit-frame::before { box-shadow: inset 0 0 0 5px var(--kit-pine), inset 0 0 0 8px var(--kit-paper); }
.kit-frame .kit-art { left: 50%; top: -9px; z-index: 2; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--p-gold); box-shadow: 0 0 0 2px var(--p-bark); }
/* 社团 · 宿舍 · a door-key tag with an eyelet */
.kit-keytag { --kit-bg: var(--kit-wine); --kit-fg: var(--kit-wine-ink); --kit-sub: var(--kit-wine-ink); --kit-label: var(--kit-wine-en); padding-left: 52px; }
.kit-keytag::before { clip-path: polygon(22px 0, 100% 0, 100% 100%, 22px 100%, 0 72%, 0 28%); }
.kit-keytag .kit-art { left: 20px; top: 50%; width: 13px; height: 13px; margin-top: -6.5px; border-radius: 50%; background: var(--surface-desk); box-shadow: 0 0 0 3px var(--p-gold); }
/* 企划活动 · an ADMIT ONE ticket: a notch on each side and a stub */
.kit-ticket { --kit-bg: var(--kit-gold); --kit-fg: var(--kit-gold-ink); --kit-sub: var(--kit-gold-ink); padding: 16px 78px 15px 26px; }
.kit-ticket::before { border-top: 2px dashed color-mix(in srgb, var(--p-bark) 35%, transparent);
  -webkit-mask: radial-gradient(circle 10px at 0 50%, transparent 98%, var(--d-bark-black-10)) left / 51% 100% no-repeat, radial-gradient(circle 10px at 100% 50%, transparent 98%, var(--d-bark-black-10)) right / 51% 100% no-repeat;
          mask: radial-gradient(circle 10px at 0 50%, transparent 98%, var(--d-bark-black-10)) left / 51% 100% no-repeat, radial-gradient(circle 10px at 100% 50%, transparent 98%, var(--d-bark-black-10)) right / 51% 100% no-repeat; }
.kit-ticket .kit-art { right: 58px; top: 10px; bottom: 10px; border-left: 2px dashed color-mix(in srgb, var(--p-bark) 45%, transparent); }
.kit-ticket .kit-art::after { content: "No. 1887"; position: absolute; left: 12px; top: 50%; width: 60px; margin-top: -8px; transform: rotate(90deg); transform-origin: 8px 8px; font-family: var(--label); font-size: 9px; letter-spacing: .12em; color: var(--p-wine); white-space: nowrap; }
.kit-ticket .kit-hint, .kit-price .kit-hint { background: var(--kit-paper); color: var(--kit-ink); }
/* 校园日历 · a tear-off calendar leaf showing today */
.kit-leaf { padding: 24px 84px 15px 20px; }
.kit-leaf::before { background: linear-gradient(var(--p-wine) 0 12px, var(--kit-paper) 12px); }
.kit-leaf .kit-art { right: 20px; top: 20px; bottom: 12px; width: 52px; display: grid; place-items: center; border: 1.5px solid color-mix(in srgb, var(--p-bark) 35%, transparent); background: var(--surface-paper-max); }
.kit-leaf .kit-art::after { content: attr(data-day); font-family: var(--display); font-weight: 700; font-size: 26px; line-height: 1; color: var(--p-wine); }
/* 美术征集 · a poster and three dabs of paint */
.kit-poster { padding-right: 86px; }
.kit-poster::before { border-top: 6px solid var(--p-ember); }
.kit-poster .kit-art { right: 54px; top: 50%; width: 22px; height: 22px; margin-top: -16px; border-radius: 50%; background: var(--p-wine); box-shadow: 16px 6px 0 0 var(--p-gold), 4px 20px 0 0 var(--p-pine); }
/* 枫叶集市 · a price tag on a string */
.kit-price { --kit-bg: var(--kit-gold); --kit-fg: var(--kit-gold-ink); --kit-sub: var(--kit-gold-ink); padding-left: 56px; }
.kit-price::before { clip-path: polygon(26px 0, 100% 0, 100% 100%, 26px 100%, 0 50%); }
.kit-price .kit-art { left: 24px; top: 50%; width: 11px; height: 11px; margin-top: -5.5px; border-radius: 50%; background: var(--surface-desk); box-shadow: 0 0 0 2px var(--p-bark); }
/* 圣诞集市 · a stall under a striped awning */
.kit-awning { padding-top: 34px; }
.kit-awning::before { background: repeating-linear-gradient(90deg, var(--p-wine) 0 20px, var(--kit-paper) 20px 40px) top / 100% 22px no-repeat, var(--kit-paper); }
.kit-awning .kit-art { left: 0; right: 0; top: 22px; height: 7px; background: radial-gradient(circle at 10px 0, var(--p-wine) 9.5px, transparent 10px) 0 0 / 40px 7px repeat-x, radial-gradient(circle at 10px 0, var(--kit-paper) 9.5px, transparent 10px) 20px 0 / 40px 7px repeat-x; opacity: .96; }

/* phones: a card is one thumb tall and the words never run under its drawing */
@media (max-width: 699.98px) {
  .kit { min-height: 96px; }
  .kit-zh { font-size: 21px; }
}

/* ---------- 交作业 ---------- */
.hw-card h3 { margin: 0 0 2px; font-size: 19px; color: var(--green-deep); }
.hw-card > .muted { margin: 0 0 10px; font-size: 13.5px; }
.hw-list, .hw-areas { list-style: none; margin: 0; padding: 0; display: grid; }
.hw-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: center; padding: 12px 0; border-top: 1px dashed var(--line); }
.hw-row:first-child, .hw-area:first-child { border-top: 0; }
.hw-title { grid-column: 1 / -1; color: var(--ink); font-family: var(--zh); font-weight: 900; font-size: 17px; text-decoration: none; overflow-wrap: anywhere; }
.hw-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.hw-area { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 14px; align-items: center; padding: 14px 0; border-top: 1px dashed var(--line); }
.hw-area-text { display: grid; gap: 2px; min-width: 0; }
.hw-area-text b { font-family: var(--zh); font-weight: 900; font-size: 17px; color: var(--green-deep); }
.hw-area-desc { font-size: 13.5px; color: var(--brown); white-space: pre-line; overflow-wrap: anywhere; }
.hw-area-text small { font-size: 12.5px; color: var(--muted); }
.hw-area-go { display: grid; gap: 4px; justify-items: center; }
@media (max-width: 420px) { .hw-area { grid-template-columns: minmax(0, 1fr); } .hw-area-go { grid-auto-flow: column; justify-content: start; gap: 16px; } }
.slip-go { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 14px 0 0; }

/* ---------- 作品展 ---------- */
.work-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.work-card { display: grid; gap: 4px; padding: 10px 10px 12px; border-top: 0; background: var(--surface-paper-max); color: var(--ink); text-decoration: none; }
.work-grid > :nth-child(odd) { transform: rotate(calc(var(--tilt-max) * -1)); } .work-grid > :nth-child(even) { transform: rotate(var(--tilt-max)); }
.work-card .note-cover, .work-blank { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; background: repeating-linear-gradient(135deg, var(--p-frost) 0 6px, var(--d-frost-white-80) 6px 12px); }
.work-card b { font-family: var(--zh); font-size: 15px; line-height: 1.4; overflow-wrap: anywhere; }
.work-card small { font-size: 12.5px; color: var(--muted); }
.gallery-new { align-self: center; }
.composer-hint { margin-top: 12px; font-size: 13.5px; }
.composer-hint a { color: var(--red); font-weight: 700; }

/* ---------- 今日 ---------- */
.me-strip { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 64px; padding: 10px 16px; margin: 0 0 18px; color: var(--kit-ink); text-decoration: none;
  background: var(--kit-paper); border-top: 6px solid var(--red); box-shadow: var(--shadow-paper); }
.me-strip-face { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 4px; background: repeating-linear-gradient(135deg, var(--p-frost) 0 6px, var(--d-frost-white-80) 6px 12px); color: var(--p-navy); font-family: var(--zh); font-weight: 900; font-size: 22px; }
.me-strip-text { display: grid; min-width: 0; line-height: 1.35; }
.me-strip-text small { font-family: var(--label); font-size: 9.5px; letter-spacing: .18em; color: var(--red); }
.me-strip-text b { font-family: var(--zh); font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-strip-go { font-size: 13.5px; font-weight: 700; color: var(--red); white-space: nowrap; }
.news-card h2 { margin: 0 0 4px; }
.news-card .mini-list li { align-items: center; min-height: 44px; }
.today-more { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 4px; }

/* ---------- links that are buttons, and thumbs ---------- */
.button-like { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 16px; border-radius: 4px; background: var(--red); color: var(--cream); font-size: 14px; font-weight: 700; line-height: 1.3;
  text-decoration: none; white-space: nowrap; box-shadow: 2px 3px 0 var(--green-deep); }
.button-like:hover { background: var(--red-deep); }
.button-like.small-btn { min-height: 36px; padding: 0 12px; box-shadow: none; }
@media (pointer: coarse), (max-width: 699.98px) {
  /* On a touch screen every link or button in a campus page is at least a fingertip tall (44px), without growing its box
     in running text: the row it sits in takes the height. */
  .campus-view .link-btn, .campus-view .small-btn, .campus-view .chip, .campus-view .back-link { display: inline-flex; align-items: center; min-height: 44px; }
  .campus-view .button-like, .campus-view .button-like.small-btn { min-height: 44px; }
  .campus-view .mini-list li { align-items: center; min-height: 44px; }
  .campus-view .mini-list a { display: inline-flex; align-items: center; min-height: 44px; }
  .campus-view .chips { gap: 8px; }
  .campus-view .chip { padding-inline: 14px; }
}

/* ---------- a classmate's 档案 no longer grows wider than the phone ----------
   The row of stickers to give is a sideways-scrolling strip; as a grid item it used to widen the whole page once a
   member owned six kinds, cutting every card off at the right edge. */
.record-page { grid-template-columns: minmax(0, 1fr); }
.record-page > * { min-width: 0; }
.wall-choices { max-width: 100%; }

/* ====================== v2: the campus opens on works ======================
   Looking at works costs no tap, handing one in is the stamp on the line. What follows is the wall itself: a paper
   tape with today and the newest notice, slips for what is waiting, and the works as pictures in paper mounts. */
.home { display: grid; gap: 14px; }

/* the tape: a strip of masking tape across the top of the wall, with a calendar leaf torn off for today */
.tape { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: stretch; min-height: 56px; color: var(--kit-ink);
  background: var(--kit-paper) repeating-linear-gradient(90deg, transparent 0 11px, color-mix(in srgb, var(--p-bark) 6%, transparent) 11px 12px);
  box-shadow: var(--shadow-paper); transform: rotate(calc(var(--tilt-max) * -1));
  clip-path: polygon(0 4%, 2% 0, 5% 6%, 9% 0, 13% 5%, 100% 0, 100% 96%, 98% 100%, 95% 94%, 91% 100%, 87% 95%, 0 100%); }
.tape-day { display: grid; grid-template-rows: auto 1fr auto; justify-items: center; align-content: center; width: 54px; padding: 0 0 3px; color: var(--kit-ink); text-decoration: none; background: var(--surface-paper-max); border-right: 1px dashed var(--line); }
.tape-day small { font-size: 10.5px; line-height: 1.5; } .tape-day small:first-child { width: 100%; text-align: center; background: var(--p-wine); color: var(--p-paper); }
.tape-day b { font-family: var(--display); font-size: 22px; line-height: 1.15; color: var(--p-wine); }
.tape-note { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 6px 10px 6px 12px; color: var(--kit-ink); text-decoration: none; }
.tape-note.empty { color: var(--kit-soft); font-size: 13.5px; }
.tape-kind { flex: none; padding: 1px 7px; font-size: 11.5px; font-weight: 700; color: var(--p-paper); background: var(--p-wine); border-radius: 3px; }
.tape-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--zh); font-weight: 900; font-size: 15.5px; }
.tape-all { display: flex; align-items: center; padding: 0 16px 0 10px; color: var(--red); font-size: 13.5px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* what is waiting: one slip each, gone once it is done */
.todo { display: grid; gap: 8px; }
.todo:not(:has(.todo-slip:not([hidden]))) { display: none; }
.todo-slip { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 52px; padding: 6px 14px 6px 12px; color: var(--kit-frost-ink); text-decoration: none;
  background: var(--kit-frost); border-left: 5px solid var(--kit-frost-ink); box-shadow: 2px 3px 0 color-mix(in srgb, var(--shadow-color) 22%, transparent); }
.todo-slip[hidden] { display: none; }
.todo-text { display: grid; min-width: 0; line-height: 1.35; }
.todo-text b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--zh); font-size: 15px; }
.todo-text small { font-size: 12.5px; }
.todo-go { font-size: 13.5px; font-weight: 700; white-space: nowrap; text-decoration: underline; text-underline-offset: 3px; }

/* what the wall shows: works (here), chat, themes */
/* The wall's three doors as the index tabs of a card file. The one she is on (作品) stands in front: cream card, wine
   edge, joined to the strip of card below it. 纸条 and 作业 are the tabs of the cards behind: frost blue and
   manila, a little lower. Cut corners, a small typed label over the name (the same two faces as the tags on the line). */
.wall-filter { display: flex; align-items: flex-end; gap: 5px; margin: 16px 0 16px; padding: 0 8px; border-bottom: 4px solid var(--kit-paper);
  filter: drop-shadow(1px 2px 0 color-mix(in srgb, var(--shadow-color) 34%, transparent)); }
.wall-tab { position: relative; display: grid; align-content: center; justify-items: start; min-height: 46px; padding: 7px 15px 5px 13px; color: var(--kit-ink); text-decoration: none;
  background: var(--kit-paper); clip-path: polygon(0 100%, 0 10px, 10px 0, calc(100% - 10px) 0, 100% 10px, 100% 100%); }
.wall-tab-en { font-family: var(--cp-en); font-size: 8.5px; letter-spacing: .18em; line-height: 1.3; opacity: .78; }
.wall-tab b { font-family: var(--cp-zh); font-weight: 900; font-size: 16px; line-height: 1.25; white-space: nowrap; }
.wall-tab.on { min-height: 54px; margin-bottom: -4px; padding-bottom: 9px; box-shadow: inset 0 5px 0 var(--p-wine); padding-top: 11px; }
.wall-tab.on .wall-tab-en { color: var(--kit-en); opacity: 1; }
.wall-tab-chat { background: var(--kit-frost); color: var(--kit-frost-ink); }
.wall-tab-themes { background: var(--kit-gold); color: var(--kit-gold-ink); }
.wall-tab:not(.on):hover { min-height: 50px; }
.wall-tab:focus-visible { outline: 2px dashed var(--focus); outline-offset: -5px; }

/* the works: pictures in paper mounts, two to a row on a phone, hung a little unevenly */
.works-wall { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; align-items: start; }
.works-wall.is-empty { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) { .works-wall { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 18px; } }
@media (min-width: 1040px) { .works-wall { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.works-wall > .loading-note, .works-wall > .read-failure, .works-wall > .college-empty { grid-column: 1 / -1; }
.work-card { position: relative; display: block; margin: 0; padding: 6px 6px 9px; color: var(--kit-ink); text-decoration: none; background: var(--surface-paper-max);
  box-shadow: 2px 3px 0 color-mix(in srgb, var(--shadow-color) 22%, transparent), 0 12px 16px -10px color-mix(in srgb, var(--shadow-color) 55%, transparent); }
.works-wall > .work-card:nth-child(3n+1) { transform: rotate(calc(var(--tilt-max) * -1.6)); } .works-wall > .work-card:nth-child(3n+2) { transform: rotate(calc(var(--tilt-max) * 1.4)); }
/* a strip of tape holds every other one */
.works-wall > .work-card:nth-child(odd)::before { content: ""; position: absolute; left: 50%; top: -7px; z-index: 1; width: 54px; height: 15px; margin-left: -27px; background: var(--tape); transform: rotate(-3deg); }
/* 公开 (on the home page): a red edge everyone sees. 可公开 (the author agreed, not up yet): a mustard edge only 教职员 get
   (campus.js openToPick). Lavro 2026-11-20. The edge is a thick paper mount line, so it reads on a phone at a glance. */
.work-card.is-picked { box-shadow: 0 0 0 3px var(--p-wine), 2px 3px 0 3px color-mix(in srgb, var(--shadow-color) 22%, transparent), 0 12px 16px -10px color-mix(in srgb, var(--shadow-color) 55%, transparent); }
.work-card.is-open { box-shadow: 0 0 0 3px var(--p-gold), 2px 3px 0 3px color-mix(in srgb, var(--shadow-color) 22%, transparent), 0 12px 16px -10px color-mix(in srgb, var(--shadow-color) 55%, transparent); }
.work-ribbon.is-open { color: var(--p-bark); background: var(--p-gold); }
.post-article.is-picked { box-shadow: inset 0 0 0 3px var(--p-wine); }
.post-article.is-open { box-shadow: inset 0 0 0 3px var(--p-gold); }
.public-line { margin: 10px 0; padding: 8px 12px; border-left: 4px solid var(--p-wine); background: var(--surface-paper-max); font-size: 13.5px; line-height: 1.65; color: var(--kit-ink); }
.public-line.is-open { border-left-color: var(--p-gold); }
.open-choice { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 6px; padding: 12px 12px 12px 10px; border: 2px dashed var(--p-wine); background: var(--surface-paper-max); cursor: pointer; }
.open-choice input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--p-wine); }
.open-choice span { display: grid; gap: 3px; }
.open-choice b { font-family: var(--zh); font-size: 15px; color: var(--kit-ink); }
.open-choice small { font-size: 12.5px; line-height: 1.6; color: var(--kit-soft); }
.open-choice:has(input:checked) { border-style: solid; }
.work-card:focus-visible { outline: 2px dashed var(--focus); outline-offset: 3px; }
.work-cover { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--d-frost-white-80); }
.work-blank { aspect-ratio: 4 / 5; }
.work-blank { display: grid; place-items: center; min-height: 120px; padding: 14px 10px; text-align: center; font-family: var(--zh); font-weight: 900; font-size: 17px; line-height: 1.5; color: var(--p-navy);
  background: repeating-linear-gradient(135deg, var(--p-frost) 0 6px, var(--d-frost-white-80) 6px 12px); }
.work-name { display: block; margin: 7px 3px 2px; font-family: var(--zh); font-size: 14.5px; line-height: 1.45; overflow-wrap: anywhere; }
.work-card.no-picture .work-name { display: none; }
.work-card.no-picture .work-by { margin-top: 7px; }
.work-by { display: flex; align-items: center; gap: 6px; margin: 0 3px; font-size: 12.5px; color: var(--kit-soft); }
.work-by i { flex: none; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--p-pine); color: var(--p-paper); font-style: normal; font-family: var(--zh); font-size: 11px; font-weight: 700; }
.work-by span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.work-by small { margin-left: auto; white-space: nowrap; }
.work-ribbon { position: absolute; left: -4px; top: 14px; z-index: 1; padding: 1px 8px 1px 9px; font-size: 11.5px; font-weight: 700; color: var(--p-paper); background: var(--p-wine); box-shadow: 1px 2px 0 color-mix(in srgb, var(--shadow-color) 30%, transparent); }
.work-count { position: absolute; right: 10px; top: 10px; padding: 0 7px; font-size: 11.5px; line-height: 1.7; color: var(--p-paper); background: color-mix(in srgb, var(--p-navy) 82%, transparent); border-radius: 9px; }

/* ---------- "where to": chosen first, above every form that hands something in ---------- */
#campus-dest { margin: 0 0 14px; }
#campus-dest[hidden] { display: none; }
.dest-h { margin: 0 0 6px; font-family: var(--label); font-size: 10.5px; letter-spacing: .2em; color: var(--p-frost); }
.dest-row { display: flex; gap: 8px; max-width: 100%; overflow-x: auto; padding: 2px 2px 8px; scrollbar-width: thin; }
.dest-chip { flex: none; display: grid; align-content: center; gap: 0; min-height: 52px; max-width: 168px; padding: 5px 14px 6px; color: var(--kit-ink); text-decoration: none; background: color-mix(in srgb, var(--kit-paper) 82%, transparent);
  border-top: 4px solid transparent; box-shadow: 2px 3px 0 color-mix(in srgb, var(--shadow-color) 22%, transparent); }
.dest-chip b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--zh); font-size: 15px; line-height: 1.4; }
.dest-chip small { font-size: 11.5px; color: var(--kit-soft); white-space: nowrap; }
.dest-chip.on { background: var(--kit-paper); border-top-color: var(--red); }
.dest-chip.on b { color: var(--red-deep); }
.work-reach { margin-top: 14px; }

/* ---------- 活动, on one page ---------- */
.events-h { margin: 18px 0 10px; font-family: var(--zh); font-weight: 900; font-size: 19px; color: var(--paper); }
.events-more { margin: 10px 0 20px; text-align: center; }
.events-more:empty { margin: 0 0 18px; }
.events-more .link-btn { color: var(--gold-soft); }
.transcript-also { margin: -8px 0 14px; }
.transcript-also:not(:has(a:not([hidden]))) { display: none; }
.transcript-also .link-btn { color: var(--gold-soft); }
.transcript-also a[hidden] { display: none; }

#campus-extra { margin: 0 0 18px; }
/* 同学: 同学录 · 宿舍 · 社团 are three pages of the same rank, one row of index tabs at the top of all three (satchel.js
   paintExtra; the tabs are the works wall's .wall-tab). The one she is on is the cream card in front; the other two are
   frost blue and manila by their place in the row. The 宿舍 | 社团 strip that houses.js and clubs.js draw themselves is
   put away while this row is there, so there is one row, not two. */
.people-tabs { margin: 0 0 18px; }
.people-tabs .wall-tab:not(.on):nth-child(odd) { background: var(--kit-frost); color: var(--kit-frost-ink); }
.people-tabs .wall-tab:not(.on):nth-child(even) { background: var(--kit-gold); color: var(--kit-gold-ink); }
#campus-extra:not([hidden]) ~ .campus-view .art-tabs:has(> .hs-tab) { display: none; }
#campus-extra[hidden] { display: none; }
/* 防呆: on a phone the button that sends a form stays in sight above the line, however long the form is; while the
   keyboard is up (the line has stepped aside) it sits right above the keyboard. */
@media (max-width: 699.98px) {
  .campus-view form.composer > .inline-actions:last-child, .campus-view form.paper > .inline-actions:last-child {
    position: sticky; bottom: calc(104px + env(safe-area-inset-bottom, 0px)); z-index: 3; margin: 14px -16px -18px; padding: 10px 16px 12px;
    background: var(--surface-paper); border-top: 1px dashed var(--line); box-shadow: 0 -8px 10px -8px color-mix(in srgb, var(--shadow-color) 35%, transparent); }
  html[data-typing] .campus-view form.composer > .inline-actions:last-child, html[data-typing] .campus-view form.paper > .inline-actions:last-child { bottom: 0; }
  .campus-view form.composer > .inline-actions:last-child button[type=submit], .campus-view form.paper > .inline-actions:last-child button[type=submit] { flex: 1 1 auto; min-height: 46px; }
}

/* Whatever is brought into view (a field that takes the focus, a link followed to its anchor) stops clear of the line
   and of a form's own button row, both of which sit over the bottom of a phone's screen. */
@media (max-width: 699.98px) { html.has-college-line { scroll-padding-bottom: 190px; scroll-padding-top: 76px; } }

/* a suggestion rather than a task: paper instead of frost, and a × to put it away for good */
.todo-tip { background: var(--kit-paper); color: var(--kit-ink); border-left-color: var(--p-gold); }
.todo-tip .todo-text b { white-space: normal; }

/* letters she has not read: an airmail-edged slip, the same stripes as the mailbox tag on the line */
.todo-mail { color: var(--kit-ink); background: var(--kit-paper); border: 0; border-left: 0; padding: 6px 14px 6px 16px; position: relative; }
.todo-mail::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 7px;
  background: repeating-linear-gradient(180deg, var(--tag-mail-stripe-a) 0 8px, var(--tag-mail-bg) 8px 13px, var(--tag-mail-stripe-b) 13px 21px, var(--tag-mail-bg) 21px 26px); }
.todo-mail::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 7px;
  background: repeating-linear-gradient(180deg, var(--tag-mail-stripe-b) 0 8px, var(--tag-mail-bg) 8px 13px, var(--tag-mail-stripe-a) 13px 21px, var(--tag-mail-bg) 21px 26px); }
.todo-mail .todo-go { margin-right: 6px; color: var(--red); }

/* ---------- the home page asks by letter (campus.js showcaseBox) ----------
   On her own work's page: the 校务处's question as a small letter (airmail edge, a postmark), two buttons. Once the work
   hangs on the home page the same card says so, with the one way to take it down. */
.ask-card { position: relative; display: grid; gap: 8px; margin: 14px 0; padding: 18px 16px 16px 20px; background: var(--kit-paper); color: var(--kit-ink);
  box-shadow: 2px 4px 0 color-mix(in srgb, var(--p-navy) 26%, transparent); rotate: -0.3deg; }
.ask-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 7px;
  background: repeating-linear-gradient(90deg, var(--tag-mail-stripe-a) 0 10px, var(--tag-mail-bg) 10px 16px, var(--tag-mail-stripe-b) 16px 26px, var(--tag-mail-bg) 26px 32px); }
.ask-card p { margin: 0; font-size: 14px; line-height: 1.7; color: var(--kit-soft); }
.ask-title { font-family: var(--zh); font-size: 17px; line-height: 1.4; padding-right: 88px; }
.ask-stamp { position: absolute; top: 14px; right: 12px; padding: 3px 8px; border: 2px solid var(--kit-en); border-radius: 3px; color: var(--kit-en);
  font-size: 11px; font-weight: 700; letter-spacing: .12em; rotate: 6deg; opacity: .82; }
.ask-card .inline-actions { margin-top: 4px; gap: 10px; flex-wrap: wrap; }
.ask-card.is-up { padding-right: 76px; rotate: 0deg; border-left: 5px solid var(--p-gold); }
.ask-card.is-up::before { display: none; }
.ask-card.is-up .ask-stamp { border-color: var(--kit-gold-ink); color: var(--kit-gold-ink); }
.ask-quiet { margin: 10px 0; font-size: 13px; color: var(--kit-soft); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
@media (prefers-reduced-motion: reduce) { .ask-card { rotate: none; } }

/* ---------- the wall while it waits (campus.js wallWaiting): empty photo mounts, same size as the real ones ---------- */
.work-skel { pointer-events: none; }
.work-skel .work-blank { min-height: 0; padding: 0; }
.work-skel .work-name { display: block; height: 15px; width: 68%; margin: 9px 0 6px; background: color-mix(in srgb, var(--p-bark) 16%, transparent); }
.work-skel .work-by { display: block; height: 12px; width: 40%; background: color-mix(in srgb, var(--p-bark) 10%, transparent); }
.tape-blank { min-height: 56px; }
@media (prefers-reduced-motion: no-preference) {
  /* stop-motion, slow: the stripes of the empty paper shift in three held steps */
  .work-skel .work-blank { animation: skel-wait 1.8s steps(3, jump-none) infinite; }
  .work-skel:nth-child(2n) .work-blank { animation-delay: .6s; }
  @keyframes skel-wait { from { opacity: 1; } to { opacity: .55; } }
}
/* the picker's label and its hint are two lines, not one run of words */
.sec-picker > .field-label, .sec-picker > .help { display: block; }
/* 主题和作业: homework set on the notice board, on top of the themes (satchel.js paintExtra) */
.set-h { margin: 0 0 6px; font-size: 12px; letter-spacing: .14em; color: var(--p-frost); }
.set-block { display: grid; gap: 8px; margin: 0 0 20px; }
.set-slip.is-done { opacity: .78; }
.todo-ask .todo-text b { white-space: normal; }
/* 宿舍: the row of jumps (satchel.js paintJumps) */
.dh-jump { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 4px 0 16px; }
.dh-jump-h { font-size: 12px; letter-spacing: .14em; color: var(--p-frost); margin-right: 2px; }
.dh-kind { scroll-margin-top: 14px; }
.dh-kind h3:focus { outline: none; }

/* ---------- paper instead of pills, on every campus page ----------
   The wall's three doors showed the way (.wall-tab above). Every row that switches what a page shows is the same card
   file: 公告 and 纸条 (the filters), 作业区 (its filter), 宿舍 · 社团, 美术征集 and 枫叶集市 (the kinds), and the kind picker on
   the 征集 form. The one that is on stands in front (cream, wine edge); the rest are the tabs of the cards behind it,
   frost blue and manila in turn. The rows are drawn by several scripts (.chips > .chip, .art-tabs > .art-tab); only
   their look is set here, and only inside the campus view (the 校务处 desk keeps its own). */
.campus-view .chips, .campus-view .art-tabs { display: flex; flex-wrap: nowrap; align-items: flex-end; gap: 5px; margin: 6px 0 16px; padding: 4px 8px 0;
  border-bottom: 4px solid var(--kit-paper); overflow-x: auto; scrollbar-width: none;
  filter: drop-shadow(1px 2px 0 color-mix(in srgb, var(--shadow-color) 34%, transparent)); }
.campus-view .chips::-webkit-scrollbar, .campus-view .art-tabs::-webkit-scrollbar { display: none; }
.campus-view .view-head > .chips { margin: 0; }
.campus-view .chips > .chip, .campus-view .art-tabs > .art-tab { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 8px 15px 6px 13px;
  border: 0; border-radius: 0; box-shadow: none; text-decoration: none; white-space: nowrap; font-family: var(--cp-zh); font-weight: 900; font-size: 15px; line-height: 1.25;
  background: var(--kit-frost); color: var(--kit-frost-ink); clip-path: polygon(0 100%, 0 10px, 10px 0, calc(100% - 10px) 0, 100% 10px, 100% 100%); }
.campus-view .chips > .chip:nth-child(even), .campus-view .art-tabs > .art-tab:nth-child(even) { background: var(--kit-gold); color: var(--kit-gold-ink); }
.campus-view .chips > .chip:hover:not(:disabled), .campus-view .art-tabs > .art-tab:hover:not(:disabled) { min-height: 48px; }
.campus-view .chips > .chip.on, .campus-view .art-tabs > .art-tab[aria-selected="true"], .campus-view .art-tabs > .art-tab[aria-checked="true"] {
  min-height: 52px; padding-top: 12px; background: var(--kit-paper); color: var(--kit-ink); box-shadow: inset 0 5px 0 var(--p-wine); }
.campus-view .chips > .chip:focus-visible, .campus-view .art-tabs > .art-tab:focus-visible { outline: 2px dashed var(--focus); outline-offset: -5px; }
/* A link at the end of such a row is not a tab but something to do or somewhere to go: 「＋ 说句话」 is a small stamped
   button, 「作业 →」 a plain way to the page that has the homework. */
.campus-view .chips > a.chip, .campus-view .chips > a.chip.on { align-self: center; margin: 0 0 7px auto; min-height: 40px; padding: 0 14px; clip-path: none;
  background: var(--red); color: var(--cream); box-shadow: 2px 3px 0 var(--green-deep); font-family: inherit; font-weight: 700; font-size: 14px; }
.campus-view .chips > a.chip.chip-away { padding: 0 4px; background: none; box-shadow: none; color: var(--kit-paper); text-decoration: underline; text-underline-offset: 4px; }
/* 宿舍: the jumps are small punched tags (the same family as the key tag that leads to this page) */
.campus-view .dh-jump .chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 11px 0 25px; border: 0; border-radius: 0; box-shadow: none;
  font-family: var(--cp-zh); font-weight: 900; font-size: 15px; color: var(--kit-ink);
  background: radial-gradient(circle at 14px 50%, var(--kit-pine) 0 3.5px, transparent 4px), var(--kit-paper);
  clip-path: polygon(12px 0, 100% 0, 100% 100%, 12px 100%, 0 50%); }
.campus-view .dh-jump { filter: drop-shadow(1px 2px 0 color-mix(in srgb, var(--shadow-color) 34%, transparent)); }
/* the 枫叶币 purse on 美术征集 and 枫叶集市 (art.js .art-coins): a price flag, not a pill */
.campus-view .art-coins { border-radius: 0; padding: 6px 22px 6px 12px; clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%); }
/* 活动: 枫叶集市 right under the calendar (satchel.js events) */
.events-market { margin: 16px 0 4px; }
.events-market[hidden] { display: none; }
.events-market .kit { transform: rotate(calc(var(--tilt-max) * -1)); }

/* ---------- 宿舍: each kind in its own colour (Lavro 2026-11-20: 「这些的颜色可以改成主体色」) ----------
   The room cards and their buttons were the page's default wine for every kind. Now a kind's cards carry its colour on
   their top edge, its buttons are that colour, and its names are written in it: 枫叶 maple yellow, 湖畔 navy, 松林 pine,
   走读 wine: the same four as the tags on the line (shell.css html[data-dorm]). houses.js marks each kind (data-tone). */
.campus-view .dh-kind[data-tone="maple"] { --tone: color-mix(in srgb, var(--p-gold) 84%, var(--p-ember)); --tone-ink: var(--d-bark-black-60); --tone-text: color-mix(in srgb, var(--p-gold) 45%, var(--p-bark)); --tone-deep: var(--p-bark); }
.campus-view .dh-kind[data-tone="lake"] { --tone: var(--p-navy); --tone-ink: var(--p-paper); --tone-text: var(--p-navy); --tone-deep: var(--d-navy-black-70); }
.campus-view .dh-kind[data-tone="pine"] { --tone: var(--p-pine); --tone-ink: var(--p-paper); --tone-text: var(--p-pine); --tone-deep: var(--d-pine-black-70); }
.campus-view .dh-kind[data-tone="day"] { --tone: var(--p-wine); --tone-ink: var(--p-paper); --tone-text: var(--p-wine); --tone-deep: var(--d-wine-black-80); }
.campus-view .dh-kind[data-tone] .paper { border-top-color: var(--tone); }
.campus-view .dh-kind[data-tone] :is(.hs-head h3, .dr-name, .dh-about dt) { color: var(--tone-text); }
.campus-view .dh-kind[data-tone] .dh-about summary { color: var(--tone-text); }
.campus-view .dh-kind[data-tone] button:not(.secondary) { background: var(--tone); color: var(--tone-ink); box-shadow: 2px 3px 0 var(--tone-deep); }
.campus-view .dh-kind[data-tone] button:not(.secondary):hover:not(:disabled) { background: color-mix(in srgb, var(--tone) 86%, var(--tone-deep)); }
.campus-view .dh-kind[data-tone] button:not(.secondary):active:not(:disabled) { box-shadow: 1px 2px 0 var(--tone-deep); }
.campus-view .dh-kind[data-tone] button.secondary { border-color: var(--tone-text); color: var(--tone-text); }
/* the jump to a kind has that kind's colour in its punched hole and on its edge */
.campus-view .dh-jump .chip[data-tone="maple"] { --hole: color-mix(in srgb, var(--p-gold) 84%, var(--p-ember)); }
.campus-view .dh-jump .chip[data-tone="lake"] { --hole: var(--p-navy); }
.campus-view .dh-jump .chip[data-tone="pine"] { --hole: var(--p-pine); }
.campus-view .dh-jump .chip[data-tone="day"] { --hole: var(--p-wine); }
.campus-view .dh-jump .chip[data-tone="goose"] { --hole: var(--d-paper-white-20); } /* 鹅窝 is white: without this the tag had no background at all (1.0.4b) */
.campus-view .dh-jump .chip[data-tone] { background: radial-gradient(circle at 14px 50%, var(--hole) 0 4px, transparent 4.5px), linear-gradient(var(--hole), var(--hole)) right / 5px 100% no-repeat, var(--kit-paper); padding-right: 15px; }
.campus-view .dh-jump .chip[data-tone="goose"] { background: radial-gradient(circle at 14px 50%, var(--hole) 0 2.5px, var(--p-bark) 3px 4px, transparent 4.5px), linear-gradient(var(--hole), var(--hole)) right / 5px 100% no-repeat, var(--kit-paper); }

/* ---------- 宿舍: who lives in a room (houses.js mates) ----------
   Their 学生证 photos side by side: the same upright rectangle (104 : 132), with the 头像框 she wears drawn round it by
   wardrobe.js (it reaches about a quarter beyond the photo on every side, hence the room left around each one). Under
   them a small line for each name. A free bed is an empty dashed photo. Not capsules, not circles (Lavro 2026-11-20). */
.dr-mates { display: grid; gap: 4px; min-width: 0; }
.dr-faces { display: flex; flex-wrap: wrap; gap: 14px 18px; padding: 10px 9px 12px; }
.dr-face { flex: none; display: block; text-decoration: none; }
.dr-photo { display: grid; place-items: center; width: 44px; height: 56px; border-radius: 4px; font-size: 19px; box-shadow: 0 0 0 2px var(--kit-paper), 0 0 0 3.5px var(--tone, var(--p-bark)); }
.dr-face.me .dr-photo { box-shadow: 0 0 0 2px var(--kit-paper), 0 0 0 3.5px var(--p-gold); }
.dr-face .art-frame-host .dr-photo { box-shadow: none; }
.dr-bed { box-sizing: border-box; width: 44px; height: 56px; border-radius: 4px; border: 2px dashed color-mix(in srgb, var(--p-bark) 38%, transparent); }
.dr-names { display: grid; gap: 0; min-width: 0; }
.dr-mate { display: flex; align-items: baseline; gap: 6px; min-width: 0; font-size: 13px; line-height: 1.6; color: var(--kit-ink); text-decoration: none; }
.dr-mate > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dr-mate small { flex: none; font-size: 11px; color: var(--kit-soft); }
.dr-mate.dr-free { font-size: 12px; color: var(--kit-soft); }
.dr-face:focus-visible { outline: 2px dashed var(--focus); outline-offset: 5px; }
/* the same on the rest of the dorm page (who asked to move in, who is a day student): a face and a name, no capsule */
.campus-view :is(.dh-ask, .dh-kind) .hs-person, .campus-view :is(.dh-ask, .dh-kind) .hs-person.me { gap: 9px; min-height: 44px; padding: 0 6px 0 3px; border-radius: 0; background: none; font-size: 14px; }
.campus-view :is(.dh-ask, .dh-kind) .hs-person .hs-face { width: 34px; height: 43px; border-radius: 4px; font-size: 16px; box-shadow: 0 0 0 2px var(--kit-paper), 0 0 0 3.5px var(--tone, var(--p-bark)); }
.campus-view :is(.dh-ask, .dh-kind) .hs-person.me .hs-face { box-shadow: 0 0 0 2px var(--kit-paper), 0 0 0 3.5px var(--p-gold); }

/* 「发到哪里」: the menu under the row (which 作业区, which other upload). It is one piece of paper with the chip that is
   on: the same cream, starting at the row's left edge and as wide as the row, so nothing sits a few pixels off
   (Lavro 2026-11-20: 「作业的这个没有对齐」). Inside it the choices are small labels; the one that is on is wine. */
.dest-row.has-menu { padding-bottom: 0; }
.dest-row.has-menu .dest-chip.on { min-height: 60px; padding-bottom: 14px; }
.dest-row.has-menu .dest-chip:not(.on) { align-self: flex-start; }
.dest-sub { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 2px 12px; padding: 10px; background: var(--kit-paper); box-shadow: 2px 3px 0 color-mix(in srgb, var(--shadow-color) 22%, transparent); }
.dest-pick { display: inline-flex; align-items: center; min-height: 44px; max-width: 100%; padding: 0 13px; font-family: var(--zh); font-weight: 700; font-size: 14px; color: var(--kit-ink); text-decoration: none;
  background: color-mix(in srgb, var(--p-bark) 9%, transparent); border-bottom: 3px solid transparent; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dest-pick.on { background: var(--red); color: var(--cream); border-bottom-color: var(--red-deep); }
