:root {
  color-scheme: light;
  --navy-900: #0b2b4a;
  --navy-800: #103b64;
  --navy-700: #195483;
  --blue-600: #236fba;
  --teal-700: #087b78;
  --teal-600: #079792;
  --green-700: #247652;
  --gold-700: #9b6707;
  --gold-500: #d49b28;
  --red-700: #a92d3e;
  --red-600: #c2384c;
  --ink: #142236;
  --muted: #617187;
  --soft: #edf4f8;
  --soft-blue: #e6f0f8;
  --line: #cfdee9;
  --white: #ffffff;
  --shadow: 0 8px 24px rgba(22, 54, 82, 0.09);
}

* { box-sizing: border-box; }

html { background: var(--soft); }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background: var(--soft);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

button, input, textarea, select { font: inherit; letter-spacing: 0; }
button { cursor: pointer; }
a { color: inherit; }

.loading-screen {
  min-height: 100vh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  color: var(--muted);
}

.brand-mark {
  display: grid;
  width: 66px;
  height: 66px;
  place-items: center;
  color: var(--white);
  background: var(--navy-800);
  border: 5px solid #d6e7f2;
  border-radius: 50%;
  font-weight: 800;
  letter-spacing: 0;
}

.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
  background: var(--white);
}

.login-story {
  position: relative;
  display: flex;
  min-height: 100vh;
  padding: 72px clamp(42px, 7vw, 108px);
  flex-direction: column;
  justify-content: space-between;
  color: var(--white);
  overflow: hidden;
  background: var(--navy-800);
}

.login-story::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: 8%;
  width: 330px;
  height: 190px;
  border: 2px solid rgba(255, 255, 255, 0.17);
  border-left: 0;
  border-bottom: 0;
  transform: skewY(-14deg);
}

.login-lockup { position: relative; z-index: 1; }
.login-lockup .eyebrow { color: #bcd9e8; }
.login-lockup h1 {
  max-width: 720px;
  margin: 18px 0 18px;
  font-size: 58px;
  line-height: 1.12;
  font-weight: 800;
}
.login-lockup p {
  max-width: 660px;
  margin: 0;
  color: #d8e7f0;
  font-size: 18px;
  line-height: 1.8;
}

.login-steps {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  max-width: 720px;
}
.login-step {
  border-top: 3px solid rgba(255,255,255,.34);
  padding-top: 12px;
  color: #d8e7f0;
  font-size: 13px;
}
.login-step strong { display: block; margin-bottom: 4px; color: var(--white); font-size: 17px; }

.login-panel {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 36px;
  background: #f7fafc;
}
.login-card { width: min(420px, 100%); }
.login-card h2 { margin: 22px 0 8px; font-size: 28px; }
.login-card > p { margin: 0 0 30px; color: var(--muted); line-height: 1.7; }
.login-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--navy-800);
  font-weight: 700;
}

.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field label, .field-label { color: #35465c; font-size: 14px; font-weight: 700; }
.field-help { margin: -2px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.input, .textarea, .select {
  width: 100%;
  min-height: 48px;
  border: 1px solid #bccfdd;
  border-radius: 6px;
  padding: 11px 13px;
  color: var(--ink);
  background: var(--white);
  outline: none;
  transition: border-color .16s, box-shadow .16s;
}
.textarea { min-height: 132px; resize: vertical; line-height: 1.65; }
.input:focus, .textarea:focus, .select:focus {
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px rgba(35, 111, 186, .12);
}

.primary-button, .secondary-button, .ghost-button, .danger-button, .icon-button {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
}
.primary-button { color: var(--white); background: var(--navy-800); }
.primary-button:hover { background: var(--navy-700); }
.primary-button.submit-confirm-ready {
  color: #17243a;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(211, 156, 24, .18);
}
.secondary-button { color: var(--navy-800); border-color: #b8ccda; background: var(--white); }
.secondary-button:hover { background: #f4f8fb; }
.ghost-button { color: var(--muted); background: transparent; }
.ghost-button:hover { color: var(--navy-800); background: var(--soft-blue); }
.danger-button { color: var(--white); background: var(--red-600); }
.icon-button { width: 42px; min-height: 42px; padding: 0; color: var(--navy-800); background: var(--soft-blue); }
button:disabled { cursor: not-allowed; opacity: .5; }
.full-button { width: 100%; }

.app-shell { min-height: 100vh; padding-bottom: 96px; }
.topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .96);
}
.topbar-inner {
  max-width: 1080px;
  height: 68px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.topbar-back {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  place-items: center;
  border: 1px solid #bfd0dc;
  border-radius: 6px;
  color: var(--navy-800);
  background: var(--white);
  box-shadow: 0 2px 8px rgba(16, 59, 100, .06);
}
.topbar-back:hover { border-color: var(--blue-600); background: var(--soft-blue); }
.topbar-back:focus-visible { outline: 3px solid rgba(35, 111, 186, .18); outline-offset: 2px; }
.brand-line { display: flex; min-width: 0; flex: 1; align-items: center; gap: 11px; }
.brand-mini {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  border-radius: 6px;
  color: var(--white);
  background: var(--navy-800);
  font-size: 11px;
  font-weight: 800;
}
.brand-copy { min-width: 0; }
.brand-copy strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.brand-copy span { display: block; color: var(--muted); font-size: 11px; }
.profile-button { display: flex; align-items: center; gap: 9px; border: 0; color: var(--ink); background: transparent; }
.avatar {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--teal-700);
  font-weight: 800;
}

.page { width: min(100% - 32px, 1040px); margin: 0 auto; padding: 28px 0 10px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.page-heading h1 { margin: 0 0 6px; font-size: 28px; line-height: 1.25; }
.page-heading p { margin: 0; color: var(--muted); line-height: 1.6; }
.eyebrow { color: var(--teal-700); font-size: 13px; font-weight: 800; text-transform: uppercase; }

.hero-band {
  position: relative;
  min-height: 292px;
  border-radius: 8px;
  padding: 38px 42px 32px;
  color: var(--white);
  overflow: hidden;
  background: var(--navy-800);
  box-shadow: var(--shadow);
}
.hero-band::before, .hero-band::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255,255,255,.15);
}
.hero-band::before { right: -78px; top: 38px; width: 330px; height: 150px; transform: rotate(-9deg); }
.hero-band::after { right: 72px; top: 108px; width: 240px; height: 88px; transform: rotate(7deg); }
.hero-content { position: relative; z-index: 1; max-width: 820px; }
.hero-band .eyebrow { color: #a9d8de; }
.hero-band h1 { margin: 12px 0 15px; font-size: 37px; line-height: 1.22; font-weight: 800; }
.hero-title-line { display: block; }
.hero-band p { max-width: 790px; margin: 0; color: #d9e8f1; font-size: 15px; line-height: 1.75; }
.hero-stats {
  position: relative;
  z-index: 1;
  display: flex;
  max-width: 650px;
  margin-top: 27px;
  border-top: 1px solid rgba(255,255,255,.16);
  padding-top: 20px;
}
.hero-stat { min-width: 165px; padding: 0 28px; }
.hero-stat:first-child { padding-left: 0; }
.hero-stat + .hero-stat { border-left: 1px solid rgba(255,255,255,.16); }
.hero-stat strong { display: block; font-size: 26px; line-height: 1; }
.hero-stat span { display: block; margin-top: 8px; color: #bcd3e1; font-size: 12px; }

.section { margin-top: 24px; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 0 0 13px; }
.section-title h2 { margin: 0; font-size: 20px; }
.section-title p { margin: 0; color: var(--muted); font-size: 13px; }

.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 5px 16px rgba(22, 54, 82, .055);
}
.focus-card { display: grid; grid-template-columns: 140px 1fr auto; align-items: stretch; overflow: hidden; }
.focus-date { padding: 24px 20px; display: grid; align-content: center; color: var(--white); background: var(--teal-700); }
.focus-date strong { display: block; font-size: 27px; }
.focus-date span { margin-top: 5px; color: #c9eeeb; font-size: 13px; }
.focus-copy { padding: 23px 24px; min-width: 0; }
.focus-copy h3 { margin: 8px 0 8px; font-size: 21px; }
.focus-copy p { margin: 0; color: var(--muted); line-height: 1.65; }
.focus-action { padding: 20px; display: grid; align-content: center; }

.status-chip, .keyword-chip, .live-chip, .format-chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 700;
}
.status-chip { color: var(--navy-800); background: var(--soft-blue); }
.status-open { color: #0b6a48; background: #dff3e9; }
.status-late, .status-returned, .status-invalid { color: #9b2637; background: #fde7ea; }
.status-submitted, .status-approved { color: #0b6a48; background: #dff3e9; }
.status-draft { color: #8b5b00; background: #fff0cf; }
.status-locked, .status-closed { color: #657487; background: #edf1f4; }
.status-make_up { color: #8b5b00; background: #fff0cf; }
.live-chip { color: var(--white); background: var(--red-600); }
.keyword-chip { color: var(--navy-800); background: var(--soft-blue); }
.format-chip { color: var(--teal-700); border: 1px solid #b8dcd9; background: #eff9f8; }

.entry-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.entry-card {
  min-height: 146px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 19px;
  text-align: left;
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 5px 16px rgba(22, 54, 82, .055);
}
.entry-card:hover { border-color: #99b8cd; transform: translateY(-1px); }
.entry-card .entry-icon { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 6px; color: var(--white); background: var(--navy-700); }
.entry-card:nth-child(2) .entry-icon { background: var(--gold-700); }
.entry-card:nth-child(3) .entry-icon { background: var(--teal-700); }
.entry-card:nth-child(4) .entry-icon { background: var(--red-600); }
.entry-card strong { display: block; margin: 16px 0 4px; font-size: 17px; }
.entry-card strong em { display: inline-flex; margin-left: 7px; border-radius: 999px; padding: 3px 7px; color: #fff; background: var(--red-600); font-size: 9px; font-style: normal; vertical-align: 2px; }
.entry-card span { color: var(--muted); font-size: 13px; line-height: 1.55; }

.week-track { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.week-node { position: relative; min-height: 110px; border-top: 4px solid var(--navy-700); padding: 14px 12px; background: var(--white); }
.week-node:nth-child(2) { border-top-color: var(--gold-700); }
.week-node:nth-child(3) { border-top-color: var(--teal-700); }
.week-node:nth-child(4) { border-top-color: var(--red-600); }
.week-node small { color: var(--muted); font-weight: 700; }
.week-node strong { display: block; margin: 6px 0 4px; }
.week-node span { color: var(--muted); font-size: 12px; line-height: 1.5; }

.filter-row { display: flex; gap: 8px; margin-bottom: 16px; overflow-x: auto; padding-bottom: 3px; }
.filter-button { min-width: max-content; min-height: 38px; border: 1px solid var(--line); border-radius: 999px; padding: 0 14px; color: var(--muted); background: var(--white); font-weight: 700; }
.filter-button.active { color: var(--white); border-color: var(--navy-800); background: var(--navy-800); }

.task-list { display: grid; gap: 11px; }
.task-row {
  width: 100%;
  min-height: 116px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 17px;
  display: grid;
  grid-template-columns: 84px 1fr auto;
  align-items: center;
  gap: 17px;
  text-align: left;
  color: var(--ink);
  background: var(--white);
}
.task-row:hover { border-color: #9fbacb; box-shadow: 0 5px 16px rgba(22, 54, 82, .07); }
.date-box { border-right: 1px solid var(--line); }
.date-box strong { display: block; color: var(--navy-800); font-size: 19px; }
.date-box span { color: var(--muted); font-size: 12px; }
.task-main { min-width: 0; }
.task-main h3 { margin: 5px 0; font-size: 17px; }
.task-main p { margin: 0; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-meta { display: flex; align-items: center; gap: 7px; }
.task-score { min-width: 108px; display: grid; justify-items: end; gap: 6px; text-align: right; color: var(--navy-800); font-weight: 800; }
.task-score strong { font-size: 16px; }
.task-score span { display: flex; align-items: center; gap: 4px; color: var(--teal-700); font-size: 11px; white-space: nowrap; }

.score-layout { display: grid; grid-template-columns: 1.2fr .8fr; gap: 16px; }
.score-card { padding: 24px; }
.score-preview-note { width: fit-content; margin-bottom: 16px; padding: 6px 9px; display: inline-flex; align-items: center; gap: 6px; color: #116e65; background: #e3f4ef; font-size: 10px; font-weight: 900; letter-spacing: .2px; }
.score-total { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.score-result-withheld { width: 100%; min-height: 92px; display: flex; align-items: center; gap: 15px; }
.score-result-withheld > span { width: 56px; height: 56px; flex: 0 0 56px; display: grid; place-items: center; color: var(--teal-700); background: #dff2ee; }
.score-result-withheld small { color: var(--teal-700); font-size: 9px; font-weight: 900; letter-spacing: .7px; }
.score-result-withheld strong { display: block; margin-top: 4px; color: var(--navy-800); font-size: 22px; }
.score-result-withheld p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.score-number strong { font-size: 44px; color: var(--navy-800); }
.score-number span { color: var(--muted); }
.score-grade-summary { display: grid; justify-items: end; gap: 5px; margin-left: auto; text-align: right; }
.score-grade-summary small { max-width: 180px; color: var(--muted); font-size: 11px; }
.total-grade { min-width: 58px; min-height: 29px; border-radius: 5px; display: inline-flex; align-items: center; justify-content: center; padding: 0 10px; color: #fff; background: var(--teal-700); font-size: 12px; font-weight: 900; }
.total-grade.grade-pending { color: #69501b; background: #f6e4a8; }
.total-grade.grade-hd { background: #08766e; }
.total-grade.grade-d { background: #236da6; }
.total-grade.grade-cr { color: #5f4100; background: #f0bf4e; }
.total-grade.grade-p { background: #647a8c; }
.total-grade.grade-failed { background: var(--red-600); }
.progress-ring {
  --progress: 0deg;
  display: grid;
  width: 92px;
  height: 92px;
  flex: 0 0 92px;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--teal-600) var(--progress), #dce8ee 0);
}
.progress-ring::after { content: attr(data-label); display: grid; width: 68px; height: 68px; place-items: center; border-radius: 50%; color: var(--navy-800); background: var(--white); font-size: 14px; font-weight: 800; }
.score-breakdown { display: grid; gap: 12px; margin-top: 23px; }
.score-line { display: grid; grid-template-columns: 130px 1fr minmax(76px, auto); align-items: center; gap: 10px; font-size: 13px; }
.score-line > strong { white-space: nowrap; text-align: right; }
.score-bar { height: 7px; border-radius: 99px; overflow: hidden; background: #e2ebf0; }
.score-bar i { display: block; height: 100%; border-radius: inherit; background: var(--navy-700); }
.score-line:nth-child(2) i { background: var(--gold-500); }
.score-line:nth-child(3) i { background: var(--red-600); }
.score-line:nth-child(4) i { background: var(--teal-600); }
.score-checkin-card { display: flex; flex-direction: column; }
.score-own-work { margin-top: 24px; border: 1px solid #b8ddd8; border-left: 5px solid var(--teal-700); padding: 15px; display: grid; grid-template-columns: 42px minmax(0,1fr) auto; align-items: center; gap: 12px; background: linear-gradient(135deg,#eff9f7,#f8fbfc); }
.score-own-work > span { width: 40px; height: 40px; display: grid; place-items: center; color: #fff; background: var(--teal-700); }
.score-own-work small { display: block; color: var(--teal-700); font-size: 8px; font-weight: 900; letter-spacing: .8px; }
.score-own-work strong { display: block; overflow: hidden; margin-top: 3px; color: var(--navy-800); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.score-own-work a { min-height: 36px; padding: 0 12px; display: inline-flex; align-items: center; gap: 5px; color: #fff; background: var(--navy-800); font-size: 10px; font-weight: 900; text-decoration: none; white-space: nowrap; }
.score-own-work a:hover { background: var(--teal-700); }
.score-required-gate { margin-top: 22px; border: 1px solid #ecd89a; border-left: 5px solid var(--gold-500); border-radius: 7px; padding: 15px; background: #fff9e8; }
.score-required-gate.is-complete { border-color: #b7dfd3; border-left-color: var(--teal-700); background: #edf8f5; }
.score-required-gate.is-withheld { border-color: #cddfe2; border-left-color: #5f8d91; background: #f2f7f7; }
.score-required-gate header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.score-required-gate header strong, .score-required-gate header span { display: block; }
.score-grade-scale { margin: 10px 0 -8px; border-top: 1px solid var(--line); padding-top: 10px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.score-grade-scale > span { min-width: 0; border: 1px solid #d9e5e9; border-top: 3px solid var(--teal-700); padding: 7px 5px 6px; display: grid; grid-template-columns: auto 1fr; align-items: baseline; column-gap: 5px; background: #f8fbfc; }
.score-grade-scale > span:nth-child(2) { border-top-color: #236da6; }
.score-grade-scale > span:nth-child(3) { border-top-color: var(--gold-500); }
.score-grade-scale > span:nth-child(4) { border-top-color: #647a8c; }
.score-grade-scale > span:nth-child(5) { border-top-color: #9baab4; }
.score-grade-scale b { color: var(--navy-800); font-size: 12px; }
.score-grade-scale small { color: var(--muted); font-size: 9px; white-space: nowrap; }
.score-grade-scale em { grid-column: 1 / -1; margin-top: 2px; color: var(--muted); font-size: 9px; font-style: normal; white-space: nowrap; }
.score-required-gate header strong { color: var(--navy-800); font-size: 14px; }
.score-required-gate header span { margin-top: 3px; color: var(--muted); font-size: 10px; }
.score-required-gate header b { color: #8a650d; font-size: 22px; }
.score-required-gate.is-complete header b { color: var(--teal-700); }
.score-required-gate > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin-top: 13px; }
.score-required-gate > div span { border: 1px solid #e6d8ac; border-radius: 5px; padding: 8px 7px; color: #765f2b; background: rgba(255,255,255,.72); font-size: 10px; font-weight: 800; text-align: center; }
.score-required-gate > div span.done { border-color: #b8ddcf; color: #0a6a52; background: #e3f4ed; }
.score-required-gate p { margin: 11px 0 0; color: #6c6045; font-size: 10px; line-height: 1.55; }

.completion-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 16px; }
.completion-dot { min-height: 52px; border: 1px solid var(--line); border-radius: 6px; display: grid; place-items: center; color: var(--muted); background: #f8fbfc; font-size: 12px; font-weight: 700; }
.completion-dot.done { color: #096349; border-color: #b7dfcd; background: #e7f6ef; }
.completion-dot.late { color: #8b5b00; border-color: #ead18c; background: #fff4d7; }
.completion-dot.attention { color: #9b2637; border-color: #f0bdc4; background: #fff0f2; }

.group-preview { display: grid; grid-template-columns: 1fr auto; gap: 22px; align-items: center; padding: 22px; border-left: 5px solid var(--gold-500); }
.group-preview h3 { margin: 0 0 7px; }
.group-preview p { margin: 0; color: var(--muted); line-height: 1.65; }
.group-preview strong { color: var(--gold-700); }

.group-stage {
  display: grid;
  grid-template-columns: 124px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 20px;
}
.group-stage + .group-stage { border-top: 1px solid var(--line); }
.stage-week { color: var(--navy-800); font-size: 13px; font-weight: 800; }
.stage-week strong { display: block; margin-top: 3px; font-size: 22px; }
.stage-copy h3 { margin: 0 0 5px; font-size: 17px; }
.stage-copy p { margin: 0; color: var(--muted); line-height: 1.6; }
.role-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.role-item { min-height: 118px; border: 1px solid var(--line); border-top: 4px solid var(--navy-700); border-radius: 6px; padding: 13px; background: var(--white); }
.role-item:nth-child(2) { border-top-color: var(--teal-700); }
.role-item:nth-child(3) { border-top-color: var(--gold-500); }
.role-item:nth-child(4) { border-top-color: var(--red-600); }
.role-item:nth-child(5) { border-top-color: var(--green-700); }
.role-item strong { display: block; margin: 8px 0 4px; font-size: 14px; }
.role-item span { color: var(--muted); font-size: 12px; line-height: 1.5; }

.formation-flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--white); }
.formation-flow article { position: relative; min-height: 154px; padding: 22px 18px 18px; }
.formation-flow article + article { border-left: 1px solid var(--line); }
.formation-flow article > i { position: absolute; top: 14px; right: 14px; color: #c5d3dd; font-size: 20px; font-style: normal; font-weight: 800; }
.formation-flow article > span { width: 40px; height: 40px; display: grid; place-items: center; color: var(--white); background: var(--navy-700); }
.formation-flow article:nth-child(2) > span { background: var(--teal-700); }
.formation-flow article:nth-child(3) > span { background: var(--gold-700); }
.formation-flow article:nth-child(4) > span { background: var(--green-700); }
.formation-flow strong { display: block; margin-top: 14px; font-size: 15px; }
.formation-flow p { margin: 6px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }

.group-task-list { border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--white); }
.group-submission-archive { margin-top: 28px; }
.group-submission-archive .section-title > div { min-width: 0; }
.group-submission-archive .section-title .eyebrow { margin-bottom: 4px; }
.group-archive-timeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.group-archive-card { min-width: 0; border: 1px solid var(--line); border-top: 5px solid var(--navy-700); border-radius: 6px; padding: 17px 16px 15px; background: var(--white); }
.group-archive-card.status-open { border-top-color: var(--teal-700); }
.group-archive-card.status-submitted, .group-archive-card.status-draft { border-top-color: var(--gold-500); }
.group-archive-card.status-approved { border-top-color: var(--green-700); }
.group-archive-card.status-returned { border-top-color: var(--red-600); }
.group-archive-card > header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.group-archive-week { color: var(--navy-700); font-size: 11px; font-weight: 900; }
.group-archive-card h3 { min-height: 46px; margin: 14px 0 8px; font-size: 16px; line-height: 1.45; }
.group-archive-conclusion { min-height: 68px; margin: 0; color: #40546b; font-size: 12px; line-height: 1.7; display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.group-archive-meta { min-height: 46px; margin-top: 13px; border-top: 1px solid var(--line); padding-top: 11px; display: flex; flex-wrap: wrap; align-content: flex-start; gap: 4px 10px; }
.group-archive-meta span { color: var(--muted); font-size: 10px; }
.panorama-submission-summary .group-archive-conclusion strong { color: var(--navy-700); }
.panorama-summary-link { align-self: flex-start; margin-top: 16px; text-decoration: none; }
.group-archive-detail { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 9px; }
.group-archive-detail > summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--navy-700); cursor: pointer; list-style: none; font-size: 12px; font-weight: 800; }
.group-archive-detail > summary::-webkit-details-marker { display: none; }
.group-archive-detail[open] > summary svg { transform: rotate(180deg); }
.group-archive-detail > div { padding-top: 2px; }
.group-archive-detail .group-version-summary { margin-top: 12px; padding-top: 13px; }
.group-archive-detail .group-version-summary > div, .group-archive-detail .group-contribution-view p { grid-template-columns: 1fr; gap: 4px; }
.group-archive-detail .group-quality-feedback { margin-top: 14px; }
.group-submit-section { margin-top: 14px; }
.group-submit-drawer { border: 1px solid #bfd2de; border-radius: 6px; overflow: hidden; background: var(--white); box-shadow: 0 8px 20px rgba(17,57,88,.06); }
.group-submit-drawer > summary { min-height: 92px; padding: 17px 20px; display: grid; grid-template-columns: 48px 1fr auto 22px; align-items: center; gap: 15px; cursor: pointer; list-style: none; }
.group-submit-drawer > summary::-webkit-details-marker { display: none; }
.group-submit-drawer[open] > summary { border-bottom: 1px solid var(--line); background: #f6fafc; }
.group-submit-icon { width: 44px; height: 44px; display: grid; place-items: center; color: var(--white); background: var(--navy-700); }
.group-submit-drawer > summary small, .group-submit-drawer > summary strong, .group-submit-drawer > summary p { display: block; }
.group-submit-drawer > summary small { color: var(--teal-700); font-size: 10px; font-weight: 900; }
.group-submit-drawer > summary strong { margin-top: 3px; font-size: 17px; }
.group-submit-drawer > summary p { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.group-submit-chevron { color: var(--navy-700); transition: transform .2s ease; }
.group-submit-drawer[open] .group-submit-chevron { transform: rotate(180deg); }
.group-submit-drawer-body { padding: 16px; background: #f7fafc; }
.panorama-group-archives { border-top: 4px solid var(--teal); }
.panorama-group-list { display: grid; gap: 12px; }
.panorama-group-record { overflow: hidden; border: 1px solid var(--line); background: #fff; }
.panorama-group-record > summary { display: grid; grid-template-columns: minmax(0, 1fr) auto 24px; align-items: center; gap: 18px; padding: 18px 20px; cursor: pointer; list-style: none; }
.panorama-group-record > summary::-webkit-details-marker { display: none; }
.panorama-group-record > summary div { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 16px; align-items: baseline; }
.panorama-group-record > summary strong { color: var(--navy); font-size: 18px; }
.panorama-group-record > summary span, .panorama-group-record > summary small { color: var(--muted); }
.panorama-group-record > summary small { grid-column: 1 / -1; }
.panorama-group-record > summary b { color: var(--teal); }
.panorama-group-record > summary i { display: inline-flex; transition: transform 180ms ease; }
.panorama-group-record[open] > summary i { transform: rotate(180deg); }
.panorama-group-record-body { padding: 0 20px 20px; border-top: 1px solid var(--line); }
.group-task-stage + .group-task-stage { border-top: 1px solid var(--line); }
.group-task-stage summary { min-height: 116px; padding: 20px 22px; display: grid; grid-template-columns: 54px 1fr auto; align-items: center; gap: 18px; cursor: pointer; list-style: none; }
.group-task-stage summary::-webkit-details-marker { display: none; }
.group-task-stage[open] summary { border-bottom: 1px solid var(--line); background: #f7fafc; }
.group-task-stage.status-open summary { box-shadow: inset 5px 0 0 var(--teal-700); }
.group-task-stage.status-approved summary { box-shadow: inset 5px 0 0 var(--green-700); }
.stage-number { width: 46px; height: 46px; display: grid; place-items: center; color: var(--white); background: var(--navy-800); font-weight: 800; }
.group-task-stage summary small, .group-task-stage summary strong, .group-task-stage summary p { display: block; }
.group-task-stage summary small { color: var(--navy-700); font-size: 10px; font-weight: 800; }
.group-task-stage summary strong { margin-top: 3px; font-size: 17px; }
.group-task-stage summary p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.group-task-stage summary .status-chip { justify-self: end; }
.group-task-body { padding: 24px; }
.group-task-lock, .group-member-note { display: flex; align-items: flex-start; gap: 13px; border-left: 4px solid var(--gold-500); padding: 15px 17px; background: #fff8e7; }
.group-task-lock p, .group-member-note p { margin: 5px 0 0; color: var(--muted); line-height: 1.6; }
.group-member-note { margin-top: 18px; border-left-color: var(--teal-700); background: #eff8f7; }
.group-task-requirements { display: grid; grid-template-columns: 1fr minmax(220px,.45fr); gap: 28px; align-items: start; }
.group-task-requirements span { color: var(--teal-700); font-size: 12px; font-weight: 800; }
.group-task-requirements ol { margin: 10px 0 0; padding-left: 22px; color: #34475e; line-height: 1.8; }
.group-task-requirements > p { margin: 0; border-left: 4px solid var(--gold-500); padding: 12px 14px; color: #5d4a1d; background: #fff8e7; line-height: 1.65; }
.group-version-summary { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 20px; display: grid; gap: 14px; }
.group-version-summary > div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; }
.group-version-summary span { color: var(--muted); font-size: 12px; font-weight: 800; }
.group-version-summary strong, .group-version-summary p { margin: 0; line-height: 1.7; white-space: pre-wrap; }
.group-work-links a { width: fit-content; display: inline-flex; align-items: center; gap: 6px; margin: 0 10px 7px 0; color: var(--navy-700); font-weight: 700; text-decoration: none; }
.group-contribution-view p { display: grid; grid-template-columns: 170px 1fr; gap: 12px; }
.group-contribution-view b { color: var(--navy-800); font-size: 12px; }
.group-task-form { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 22px; }
.group-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.group-form-grid label { display: grid; gap: 7px; }
.group-form-grid label > span, .contribution-fields label > span { color: #35465c; font-size: 13px; font-weight: 800; }
.group-form-grid .full { grid-column: 1 / -1; }
.group-form-grid .textarea { margin: 0; }
.group-form-grid .textarea.compact { min-height: 88px; }
.group-form-grid small { color: var(--muted); line-height: 1.5; }
.group-document-upload { border: 1px dashed #91acbc; padding: 14px; display: grid; gap: 11px; background: #f7fbfc; }
.group-document-upload input { width: 100%; color: var(--navy-800); }
.group-document-slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.group-document-slot { min-width: 0; border: 1px solid #cbdbe4; padding: 10px; display: grid; gap: 8px; background: #fff; }
.group-document-slot > span { color: var(--navy-700); font-size: 11px; font-weight: 900; }
.group-document-slot input { min-width: 0; font-size: 11px; }
.group-document-capacity { padding: 10px 12px; display: flex; align-items: center; gap: 8px; color: #187653; background: #e8f6ef; font-size: 12px; font-weight: 800; }
.group-document-list { display: grid; gap: 8px; }
.group-document-current, .group-document-empty { min-width: 0; display: flex; align-items: center; gap: 11px; color: var(--navy-800); text-decoration: none; }
.group-document-current { justify-content: space-between; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.group-document-current > a { min-width: 0; display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.group-document-current > a > span, .group-document-empty > span { min-width: 0; }
.group-document-current strong, .group-document-current small, .group-document-empty strong, .group-document-empty small { display: block; }
.group-document-current strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.group-document-current small, .group-document-empty small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.group-document-selected { color: var(--teal-700); font-size: 12px; font-weight: 800; }
.group-resource-kit { margin-top: 18px; border: 1px solid #d3e1e8; border-left: 4px solid var(--gold-500); padding: 16px 18px; display: grid; grid-template-columns: minmax(220px,.8fr) minmax(360px,1.2fr); align-items: center; gap: 20px; background: #fbfcfd; }
.group-resource-copy > span { color: #9a6904; font-size: 11px; font-weight: 900; }
.group-resource-copy > strong { display: block; margin-top: 4px; color: var(--navy-800); font-size: 15px; }
.group-resource-copy p { margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.group-resource-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.group-resource-actions a { min-height: 58px; border: 1px solid #cbdbe4; padding: 10px 12px; display: flex; align-items: center; gap: 10px; color: var(--navy-700); background: var(--white); text-decoration: none; }
.group-resource-actions a:hover { border-color: var(--teal-700); color: var(--teal-700); }
.group-resource-actions a > span, .group-resource-actions a strong, .group-resource-actions a small { display: block; min-width: 0; }
.group-resource-actions a strong { font-size: 12px; }
.group-resource-actions a small { margin-top: 3px; color: var(--muted); font-size: 9px; line-height: 1.35; }

.ips-advisor-brief { margin-top: 24px; overflow: hidden; border: 1px solid #bed4df; border-top: 6px solid var(--teal-700); background: #f7fafc; }
.week-four-priority { margin-top: 24px; }
.week-four-priority .ips-advisor-brief { margin-top: 0; }
.week-four-task-section { margin-top: 34px; }
.ips-advisor-head { padding: 24px 26px; display: flex; align-items: center; justify-content: space-between; gap: 26px; color: #fff; background: var(--navy-800); }
.ips-advisor-head .eyebrow { color: #9eddd7; }
.ips-advisor-head h3 { margin: 5px 0 6px; font-size: 24px; }
.ips-advisor-head p { max-width: 720px; margin: 0; color: #c8d9e5; font-size: 12px; line-height: 1.7; }
.ips-advisor-head .primary-button { flex: 0 0 auto; color: var(--navy-900); background: #f2c65d; }
.ips-advisor-head .primary-button:hover { background: #ffd879; }
.ips-privacy-note { min-height: 46px; padding: 11px 26px; display: flex; align-items: center; gap: 8px; color: #36556c; background: #e9f5f3; font-size: 11px; font-weight: 700; }
.ips-information-chain { padding: 6px 26px 2px; background: #fff; }
.ips-chain-step { position: relative; padding: 24px 0 24px 74px; display: grid; grid-template-columns: 1fr; }
.ips-chain-step + .ips-chain-step { border-top: 1px solid var(--line); }
.ips-chain-step:not(:last-child)::before { content: ""; position: absolute; left: 27px; top: 70px; bottom: -20px; width: 2px; background: #bed4df; }
.ips-chain-index { position: absolute; left: 0; top: 24px; width: 56px; height: 56px; display: grid; place-items: center; color: #fff; background: var(--navy-700); font-size: 13px; font-weight: 900; }
.ips-chain-content > small { color: var(--teal-700); font-size: 10px; font-weight: 900; }
.ips-chain-content > h4 { margin: 5px 0 7px; color: var(--ink); font-size: 20px; }
.ips-chain-content > p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.75; }
.ips-family-facts { margin: 16px 0 0; border: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: #f8fafb; }
.ips-family-facts > div { padding: 14px 15px; }
.ips-family-facts > div + div { border-left: 1px solid var(--line); }
.ips-family-facts dt { color: var(--navy-700); font-size: 10px; font-weight: 900; }
.ips-family-facts dd { margin: 6px 0 0; color: #405268; font-size: 11px; line-height: 1.7; }
.ips-risk-tags { margin-top: 11px; display: flex; flex-wrap: wrap; gap: 7px; }
.ips-risk-tags span { padding: 6px 9px; color: #a42d3c; background: #fff0f1; font-size: 10px; font-weight: 800; }
.ips-holding-list { margin-top: 16px; border: 1px solid var(--line); }
.ips-holding-list > div { min-height: 62px; padding: 11px 13px; display: grid; grid-template-columns: minmax(110px,.55fr) minmax(80px,.35fr) minmax(210px,1fr); align-items: center; gap: 5px 14px; }
.ips-holding-list > div:nth-child(even) { background: #f6f9fa; }
.ips-holding-list > div + div { border-top: 1px solid var(--line); }
.ips-holding-list strong { color: var(--navy-800); font-size: 11px; }
.ips-holding-list b { color: var(--teal-700); font-size: 11px; }
.ips-holding-list span { color: #405268; font-size: 10px; line-height: 1.5; }
.ips-holding-list small { grid-column: 3; color: var(--muted); font-size: 9px; line-height: 1.45; }
.ips-clue-list, .ips-event-constraints, .ips-advisor-ask ol { margin: 14px 0 0; padding: 14px 18px 14px 35px; color: #34475e; background: #fff8e7; font-size: 11px; line-height: 1.8; }
.ips-event-step .ips-chain-index { background: var(--red-700); }
.ips-event-step blockquote { margin: 15px 0 0; border-left: 4px solid var(--red-700); padding: 13px 16px; color: var(--navy-800); background: #fff4f5; font-size: 13px; font-weight: 800; line-height: 1.7; }
.ips-event-constraints { background: #fff4f5; }
.ips-event-decision { display: block; margin-top: 12px; color: #8e2937; font-size: 11px; line-height: 1.7; }
.ips-conclusion-list { margin-top: 15px; display: grid; gap: 8px; }
.ips-conclusion-list > div { border-left: 4px solid var(--teal-700); padding: 12px 14px; display: grid; grid-template-columns: 34px 1fr; gap: 4px 12px; background: #f1f8f7; }
.ips-conclusion-list b { grid-row: 1 / span 2; color: var(--teal-700); font-size: 11px; }
.ips-conclusion-list p { margin: 0; color: #34475e; font-size: 11px; line-height: 1.65; }
.ips-conclusion-list small { color: var(--muted); font-size: 9px; line-height: 1.55; }
.ips-advisor-ask .ips-chain-index { color: var(--navy-900); background: var(--gold-500); }
.ips-advisor-ask ol { background: #eef7f6; }
.ips-advisor-brief > footer { padding: 17px 26px; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 18px; color: #fff; background: var(--teal-700); }
.ips-advisor-brief > footer strong { font-size: 12px; }
.ips-advisor-brief > footer span { color: #e5f7f5; font-size: 11px; line-height: 1.65; }
.contribution-fields { margin-top: 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.contribution-fields > strong { grid-column: 1 / -1; }
.contribution-fields label { display: grid; gap: 6px; }
.group-form-actions { margin-top: 18px; display: flex; justify-content: flex-end; gap: 9px; }
.family-bound { min-height: 108px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 96px 1fr; background: var(--white); }
.family-bound img { width: 96px; height: 108px; object-fit: cover; }
.family-bound > div { padding: 18px 20px; }
.family-bound span, .family-bound strong { display: block; }
.family-bound span { color: var(--teal-700); font-size: 11px; font-weight: 800; }
.family-bound strong { margin-top: 3px; }
.family-bound p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }

.leaderboard-section .section-title > div p { margin-top: 4px; }
.my-rank { color: var(--muted); font-size: 13px; }
.my-rank strong { margin-left: 5px; color: var(--teal-700); font-size: 24px; }
.leaderboard-card { border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--white); box-shadow: var(--shadow); }
.leaderboard-head { min-height: 42px; padding: 0 18px; display: grid; grid-template-columns: minmax(250px,1fr) minmax(150px,.65fr) 112px; align-items: center; gap: 18px; color: var(--muted); background: #f2f6f8; font-size: 11px; font-weight: 800; }
.leaderboard-head span:nth-child(2), .leaderboard-head span:nth-child(3) { text-align: right; }
.leaderboard-row { min-height: 76px; padding: 12px 18px; display: grid; grid-template-columns: 42px minmax(180px,1fr) minmax(150px,.65fr) 112px; align-items: center; gap: 14px; border-top: 1px solid var(--line); }
.leaderboard-row.is-me { background: #edf8f7; box-shadow: inset 4px 0 0 var(--teal-700); }
.leaderboard-rank { width: 34px; height: 34px; display: grid; place-items: center; color: var(--navy-800); background: var(--soft-blue); font-weight: 900; }
.leaderboard-row.rank-1 .leaderboard-rank { color: #684605; background: #f4d98d; }
.leaderboard-row.rank-2 .leaderboard-rank { color: #435666; background: #dce4e9; }
.leaderboard-row.rank-3 .leaderboard-rank { color: #73472d; background: #e6c3a9; }
.leaderboard-person strong, .leaderboard-person span { display: block; }
.leaderboard-person strong { font-size: 14px; }
.leaderboard-person span { margin-top: 4px; color: var(--muted); font-size: 11px; }
.leaderboard-progress { height: 8px; overflow: hidden; background: #e5edf2; }
.leaderboard-progress i { height: 100%; display: block; background: var(--teal-700); }
.leaderboard-score { text-align: right; }
.leaderboard-score strong { color: var(--navy-800); font-size: 22px; }
.leaderboard-score span { color: var(--muted); font-size: 11px; }
.leaderboard-score small { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; }
.leaderboard-gap { min-height: 40px; border-top: 1px dashed var(--line); display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--muted); }
.leaderboard-toggle { width: 100%; min-height: 46px; border: 0; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: center; gap: 7px; color: var(--navy-700); background: #f7fafc; font-weight: 800; }

.group-public-progress .section-title > div p { margin-top: 4px; }
.my-group-identity { margin-bottom: 14px; border: 1px solid #9fcac6; border-left: 6px solid var(--teal-700); background: linear-gradient(90deg, #eaf8f5 0, #f8fbfc 62%, #fff 100%); box-shadow: var(--shadow); }
.my-group-identity > header { min-height: 82px; padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.my-group-identity > header div { display: flex; align-items: baseline; gap: 12px; }
.my-group-identity > header span { color: var(--teal-700); font-size: 10px; font-weight: 900; }
.my-group-identity > header strong { color: var(--navy-800); font-size: 30px; }
.my-group-identity > header b { display: inline-flex; align-items: center; gap: 7px; color: #466176; font-size: 12px; font-weight: 700; }
.my-group-family { padding: 14px 20px; display: grid; grid-template-columns: 110px minmax(0, 1fr); align-items: baseline; gap: 12px; border-top: 1px solid #cce3e0; background: rgba(255,255,255,.68); }
.my-group-family span { color: var(--muted); font-size: 10px; font-weight: 900; }
.my-group-family strong { color: var(--navy-700); font-size: 16px; }
.my-group-week-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid #cce3e0; }
.my-group-week-grid > div { min-height: 72px; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 9px; }
.my-group-week-grid > div + div { border-left: 1px solid #cce3e0; }
.my-group-week-grid small { color: var(--muted); font-size: 10px; font-weight: 900; }
.group-public-status.is-compact { margin-left: 0; }
.group-public-all { overflow: hidden; border: 1px solid var(--line); background: var(--white); box-shadow: var(--shadow); }
.group-public-all > summary { min-height: 64px; padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; list-style: none; }
.group-public-all > summary::-webkit-details-marker { display: none; }
.group-public-all > summary > div { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 9px; color: var(--navy-700); }
.group-public-all > summary strong { font-size: 14px; }
.group-public-all > summary span { color: var(--muted); font-size: 11px; }
.group-public-all > summary > svg { color: var(--muted); transition: transform 180ms ease; }
.group-public-all[open] > summary > svg { transform: rotate(180deg); }
.group-public-all-body { padding: 14px; border-top: 1px solid var(--line); background: #f6fafc; }
.group-public-week-summary { margin-bottom: 14px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.group-public-week-summary article { min-height: 108px; border: 1px solid var(--line); border-top: 4px solid var(--teal-700); padding: 15px 17px; background: var(--white); box-shadow: var(--shadow); }
.group-public-week-summary article:nth-child(2) { border-top-color: var(--navy-600); }
.group-public-week-summary article:nth-child(3) { border-top-color: var(--gold-500); }
.group-public-week-summary article:nth-child(4) { border-top-color: var(--red-600); }
.group-public-week-summary span { display: block; color: var(--muted); font-size: 10px; font-weight: 900; }
.group-public-week-summary strong { display: flex; align-items: baseline; gap: 3px; margin-top: 7px; color: var(--navy-800); font-size: 27px; }
.group-public-week-summary strong small { color: var(--muted); font-size: 10px; }
.group-public-week-summary p { margin: 4px 0 0; color: #52657a; font-size: 11px; }
.group-public-progress-table-wrap { border: 1px solid var(--line); overflow-x: auto; background: var(--white); box-shadow: var(--shadow); }
.group-public-progress-table { min-width: 760px; }
.group-public-progress-head, .group-public-progress-row { display: grid; grid-template-columns: minmax(150px, 1.25fr) repeat(4, minmax(105px, 1fr)); align-items: center; }
.group-public-progress-head { min-height: 44px; color: var(--muted); background: #eef4f7; font-size: 11px; font-weight: 900; }
.group-public-progress-head span { padding: 0 16px; }
.group-public-progress-row { min-height: 68px; border-top: 1px solid var(--line); }
.group-public-progress-row.is-mine { background: #edf8f6; box-shadow: inset 5px 0 0 var(--teal-700); }
.group-public-progress-row > div { padding: 10px 16px; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 8px; }
.group-public-progress-row > div strong { color: var(--navy-800); font-size: 13px; }
.group-public-progress-row > div b { justify-self: start; display: inline-flex; align-items: center; gap: 3px; padding: 3px 6px; color: #087468; background: #d8f0ea; font-size: 9px; }
.group-public-progress-row > div small { grid-column: 1 / -1; color: var(--muted); font-size: 9px; }
.group-public-status { justify-self: start; min-height: 28px; margin-left: 16px; padding: 0 9px; display: inline-flex; align-items: center; gap: 5px; color: #53677a; background: #eef2f4; font-size: 10px; font-weight: 900; white-space: nowrap; }
.group-public-status.status-complete { color: #17744f; background: #dff3e8; }
.group-public-status.status-submitted { color: #8a6105; background: #fff0c9; }
.group-public-status.status-draft { color: #0b6485; background: #e3f2f7; }
.group-public-status.status-returned { color: #a62f42; background: #ffe8eb; }
.group-public-status.status-open { color: #8b3b3b; background: #f8eeee; }
.group-public-progress-note { padding: 10px 2px 0; display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 10px; }

.final-showcase-section { margin-top: 0; }
.final-showcase-hero { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 24px; border: 1px solid #163f68; border-left: 6px solid var(--teal-600); padding: 24px 26px; color: var(--white); background: var(--navy-800); box-shadow: var(--shadow); }
.final-showcase-hero::after { content: ""; position: absolute; right: 180px; top: -48px; width: 180px; height: 180px; border: 1px solid rgba(255,255,255,.12); transform: rotate(15deg); pointer-events: none; }
.final-showcase-hero > * { position: relative; z-index: 1; }
.final-showcase-hero .eyebrow { color: #8dd8d3; }
.final-showcase-hero h2 { margin: 7px 0 5px; font-size: 26px; }
.final-showcase-hero p { margin: 0; color: #d4e4ef; font-size: 13px; line-height: 1.7; }
.final-showcase-hero .primary-button { flex: 0 0 auto; color: var(--navy-900); background: var(--gold-500); }
.final-showcase-list { border: 1px solid var(--line); border-top: 0; background: var(--white); box-shadow: var(--shadow); }
.final-showcase-item { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 18px 22px; border-top: 1px solid var(--line); }
.final-showcase-item:first-child { border-top: 0; }
.final-showcase-index { width: 40px; height: 40px; display: grid; place-items: center; color: var(--teal-700); background: #e7f5f3; font-size: 12px; font-weight: 900; }
.final-showcase-copy { min-width: 0; }
.final-showcase-person { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.final-showcase-person strong { font-size: 15px; }
.final-showcase-person span, .final-showcase-copy small { color: var(--muted); font-size: 10px; }
.final-showcase-copy h3 { margin: 7px 0 4px; color: var(--navy-800); font-size: 16px; }
.final-showcase-copy p { display: -webkit-box; overflow: hidden; margin: 0 0 7px; color: #40536a; font-size: 12px; line-height: 1.65; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.final-showcase-copy small { display: block; overflow-wrap: anywhere; }
.final-showcase-actions { display: flex; gap: 8px; }
.final-showcase-actions a { text-decoration: none; }
.final-showcase-empty { min-height: 180px; border: 1px solid var(--line); border-top: 0; display: grid; place-items: center; align-content: center; gap: 8px; color: var(--muted); background: var(--white); }
.final-showcase-empty strong { color: var(--navy-800); font-size: 16px; }
.final-showcase-empty span { font-size: 12px; }

.honor-showcase-section { overflow: hidden; margin-top: 0; border: 1px solid var(--line); background: var(--white); box-shadow: var(--shadow); }
.honor-showcase-hero { position: relative; overflow: hidden; min-height: 148px; padding: 28px 30px; display: flex; align-items: center; justify-content: space-between; gap: 24px; color: var(--white); background: linear-gradient(115deg, var(--navy-800), #0b6e7c 68%, #078577); }
.honor-showcase-hero::after { content: ""; position: absolute; right: -60px; top: -125px; width: 250px; height: 250px; border: 38px solid rgba(255,255,255,.07); border-radius: 50%; pointer-events: none; }
.honor-showcase-hero > * { position: relative; z-index: 1; }
.honor-showcase-hero .eyebrow { color: #9de2dc; }
.honor-showcase-hero h2 { margin: 7px 0 6px; font-size: 28px; }
.honor-showcase-hero p { margin: 0; color: #d5e9ed; font-size: 13px; }
.honor-hero-actions { position: relative; z-index: 2; flex: 0 0 auto; display: flex; align-items: center; gap: 8px; }
.honor-hero-actions button { min-height: 34px; border: 1px solid rgba(255,255,255,.48); padding: 0 12px; display: inline-flex; align-items: center; gap: 7px; color: var(--navy-900); background: var(--gold-500); font: inherit; font-size: 11px; font-weight: 900; cursor: pointer; white-space: nowrap; }
.honor-hero-actions button:hover { background: #ffdc74; }
.honor-preview-badge { min-height: 30px; padding: 0 10px; display: inline-flex; align-items: center; gap: 6px; border: 1px solid rgba(255,255,255,.34); color: #eefcfa; background: rgba(255,255,255,.1); font-size: 11px; font-weight: 800; white-space: nowrap; }
.honor-showcase-block { padding: 25px 28px 4px; }
.honor-block-heading { margin-bottom: 14px; display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; }
.honor-block-heading .eyebrow { color: var(--teal-700); }
.honor-block-heading h3 { margin: 3px 0 0; color: var(--navy-800); font-size: 20px; }
.honor-block-heading p { margin: 0; color: var(--muted); font-size: 11px; }
.honor-rank-grid { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 9px; }
.honor-rank-card { min-width: 0; min-height: 124px; border: 1px solid #d9e5ec; border-top: 4px solid var(--teal-700); padding: 14px; background: #f9fbfc; }
.honor-rank-card.is-first { border-color: #e3ce85; border-top-color: var(--gold-500); background: #fffaf0; }
.honor-rank-card header { display: flex; align-items: center; justify-content: space-between; color: var(--gold-700); font-size: 10px; font-weight: 900; }
.honor-rank-card header b { padding: 3px 6px; color: #08705e; background: #daf1e9; font-size: 9px; }
.honor-rank-card > strong { display: block; overflow: hidden; margin-top: 15px; color: var(--navy-800); font-size: 18px; text-overflow: ellipsis; white-space: nowrap; }
.honor-rank-card p { margin: 8px 0 0; color: var(--muted); font-size: 11px; }
.honor-rank-card p em { color: var(--teal-700); font-size: 21px; font-style: normal; font-weight: 900; }
.honor-rank-champion { display: none; }
.honor-speech-list { overflow: hidden; border: 1px solid #d7e4ec; background: var(--white); }
.honor-speech-card { min-width: 0; min-height: 96px; padding: 16px 18px; display: grid; grid-template-columns: 46px minmax(0,1fr) auto; align-items: center; gap: 18px; background: var(--white); }
.honor-speech-card + .honor-speech-card { border-top: 1px solid var(--line); }
.honor-speech-index { width: 44px; height: 44px; display: grid; place-items: center; color: var(--teal-700); background: #e5f4f2; font-size: 11px; font-weight: 900; }
.honor-speech-copy { min-width: 0; }
.honor-speech-copy > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.honor-speech-copy strong { color: var(--ink); font-size: 15px; }
.honor-speech-copy span { color: var(--muted); font-size: 9px; }
.honor-speech-copy h4 { margin: 7px 0 0; color: var(--navy-800); font-size: 16px; line-height: 1.5; }
.honor-speech-card a { min-height: 40px; padding: 0 14px; display: inline-flex; align-items: center; gap: 7px; color: var(--white); background: var(--navy-800); font-size: 11px; font-weight: 900; text-decoration: none; white-space: nowrap; }
.honor-speech-card a:hover { background: var(--teal-700); }
.honor-award-stage { position: relative; width: 100%; min-width: 0; margin: 0 auto; border: 1px solid #ead9a1; padding: 66px 28px 24px; background: radial-gradient(circle at 50% 0,#fff8db 0,#fffdf7 36%,#f7fafb 76%); }
.honor-award-stage::before, .honor-award-stage::after { content: "★"; position: absolute; top: 18px; color: #e3ba51; font-size: 12px; }
.honor-award-stage::before { left: 30px; }
.honor-award-stage::after { right: 30px; }
.honor-award-crown { position: absolute; top: 0; left: 50%; min-width: 220px; min-height: 52px; padding: 0 22px; transform: translate(-50%,-1px); display: flex; align-items: center; justify-content: center; gap: 10px; color: #fff9e4; background: linear-gradient(135deg,#9a6504,#d69b27); box-shadow: 0 7px 18px rgba(142,94,5,.19); }
.honor-award-crown span { font-size: 15px; font-weight: 900; letter-spacing: 1px; }
.honor-award-grid { width: 100%; max-width: 880px; min-width: 0; margin: 0 auto; display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 10px; }
.honor-award-card { position: relative; min-width: 0; min-height: 136px; border: 1px solid #e6d49a; border-top: 4px solid var(--gold-500); padding: 10px 14px; display: flex; align-items: center; flex-direction: column; text-align: center; background: rgba(255,255,255,.92); box-shadow: 0 8px 20px rgba(89,70,25,.06); }
.honor-award-card.is-single { grid-column: span 2; }
.honor-award-card.is-multi { grid-column: span 3; }
.honor-award-stars { height: 9px; display: flex; align-items: center; gap: 4px; color: #e0af3c; }
.honor-award-stars i { font-size: 7px; font-style: normal; }
.honor-award-stars i:nth-child(2) { font-size: 11px; }
.honor-award-icon { width: 36px; height: 36px; margin-top: 3px; display: grid; place-items: center; border: 1px solid #e6c76d; border-radius: 50%; color: #9a6504; background: linear-gradient(145deg,#fff8d9,#f5d777); box-shadow: 0 5px 14px rgba(190,137,24,.16); }
.honor-award-icon svg { width: 21px; height: 21px; }
.honor-award-card small, .honor-award-card strong { display: block; }
.honor-award-card small { margin-top: 5px; color: var(--gold-700); font-size: 9px; font-weight: 900; letter-spacing: 1px; }
.honor-award-card strong { margin-top: 3px; color: var(--navy-800); font-size: 15px; line-height: 1.25; }
.honor-award-card p { margin: 3px 0 0; color: var(--muted); font-size: 9px; line-height: 1.35; }
.honor-long-term { position: relative; overflow: hidden; margin: 28px; border: 1px solid #dfc66f; border-top: 6px solid var(--gold-500); padding: 30px; background: radial-gradient(circle at 50% -30%,#ffefac 0,#fffaf0 32%,#f2f8f6 78%); box-shadow: 0 12px 28px rgba(115,82,15,.1); }
.honor-long-term::before, .honor-long-term::after { content: "★"; position: absolute; top: 25px; color: rgba(195,139,21,.38); font-size: 18px; }
.honor-long-term::before { left: 32px; }
.honor-long-term::after { right: 32px; }
.honor-long-term > header { width: 100%; max-width: 880px; margin: 0 auto; display: flex; align-items: center; justify-content: center; gap: 17px; text-align: left; }
.honor-long-term-medal { width: 72px; height: 72px; flex: 0 0 72px; display: grid; place-items: center; border: 1px solid #d7a935; border-radius: 50%; color: #805500; background: linear-gradient(145deg,#fff4bd,#edc456); box-shadow: 0 9px 22px rgba(165,111,7,.2); }
.honor-long-term > header small { color: var(--gold-700); font-size: 9px; font-weight: 900; letter-spacing: 1.4px; }
.honor-long-term > header h3 { margin: 4px 0 5px; color: #76520d; font-size: 28px; }
.honor-long-term > header p { margin: 0; color: #5e6d68; font-size: 11px; }
.honor-long-term-grid { width: 100%; max-width: 880px; margin: 25px auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 11px; }
.honor-long-term-grid article { flex: 0 1 calc(25% - 9px); min-width: 190px; min-height: 88px; border: 1px solid #e3d199; border-bottom: 4px solid #e2bd58; padding: 14px 15px; display: grid; grid-template-columns: 42px minmax(0,1fr) 18px; align-items: center; gap: 11px; background: rgba(255,255,255,.88); box-shadow: 0 6px 16px rgba(102,79,24,.06); }
.honor-long-term-grid article > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: #916306; background: #ffedb4; }
.honor-long-term-grid article > svg { color: #d09a23; }
.honor-long-term-grid strong, .honor-long-term-grid small { display: block; }
.honor-long-term-grid strong { color: var(--navy-800); font-size: 17px; }
.honor-long-term-grid small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.honor-excellent-groups { position: relative; overflow: hidden; margin: 28px; border: 1px solid #d4b854; border-top: 7px solid var(--gold-500); padding: 32px; color: #fff; background: radial-gradient(circle at 50% -20%,rgba(50,212,195,.23),transparent 39%),linear-gradient(125deg,#071e35,#0c4561 55%,#08766d); box-shadow: 0 17px 38px rgba(5,35,55,.18); }
.honor-excellent-groups::after { content: "★  ★  ★"; position: absolute; top: 28px; right: 32px; color: rgba(247,207,101,.42); font-size: 13px; letter-spacing: 8px; }
.honor-excellent-groups > header { display: flex; align-items: center; gap: 16px; }
.honor-excellent-groups > header > span { width: 66px; height: 66px; flex: 0 0 66px; display: grid; place-items: center; border-radius: 50%; color: #775007; background: linear-gradient(145deg,#fff1a9,#e6b33d); box-shadow: 0 9px 22px rgba(0,0,0,.22); }
.honor-excellent-groups > header small { color: #8ce0d8; font-size: 9px; font-weight: 900; letter-spacing: 1.4px; }
.honor-excellent-groups > header h3 { margin: 3px 0 5px; font-size: 29px; }
.honor-excellent-groups > header p { margin: 0; color: #cce2e8; font-size: 11px; }
.honor-excellent-group-grid { margin-top: 24px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.honor-excellent-group-grid article { border: 1px solid rgba(247,207,101,.42); padding: 19px; background: rgba(255,255,255,.08); backdrop-filter: blur(7px); }
.honor-group-title { display: grid; grid-template-columns: 46px minmax(0,1fr) auto; align-items: center; gap: 12px; }
.honor-group-title > span { width: 46px; height: 46px; display: grid; place-items: center; color: #805605; background: #ffe7a0; }
.honor-group-title small, .honor-group-title strong { display: block; }
.honor-group-title small { color: #9ce4df; font-size: 9px; font-weight: 900; }
.honor-group-title strong { margin-top: 3px; font-size: 23px; }
.honor-group-title b { color: #f5d06e; font-size: 28px; }
.honor-group-title b em { margin-left: 2px; color: #bcd6dd; font-size: 10px; font-style: normal; }
.honor-group-members { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.honor-group-members span { border: 1px solid rgba(255,255,255,.22); padding: 6px 9px; color: #f3fafb; background: rgba(255,255,255,.07); font-size: 11px; font-weight: 800; }
.honor-excellent-group-grid article > p { margin: 13px 0 0; color: #bcd4dc; font-size: 9px; }
.grade-journey { color: #fff; background: #71869a; }

html.celebration-open, html.celebration-open body { overflow: hidden; }
.completion-celebration { position: fixed; inset: 0; z-index: 3000; overflow: hidden; display: grid; place-items: center; color: #fff; background: radial-gradient(circle at 50% 42%, rgba(12,105,112,.66), transparent 36%), linear-gradient(145deg,#041525 0,#082c4d 52%,#075f60 100%); isolation: isolate; }
.completion-celebration::before, .completion-celebration::after { content: ""; position: absolute; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; pointer-events: none; }
.completion-celebration::before { width: min(76vw,850px); height: min(76vw,850px); top: -48vw; right: -15vw; box-shadow: 0 0 0 55px rgba(255,255,255,.025),0 0 0 110px rgba(255,255,255,.02); }
.completion-celebration::after { width: 410px; height: 410px; bottom: -330px; left: -130px; box-shadow: 0 0 0 48px rgba(45,212,191,.04); }
.celebration-fireworks, .celebration-glow, .celebration-confetti, .celebration-danmaku { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.celebration-fireworks { z-index: 1; }
.celebration-glow { z-index: 0; background: radial-gradient(circle at 50% 50%,rgba(17,184,169,.18),transparent 44%); animation: celebration-breathe 2.8s ease-in-out infinite alternate; }
.celebration-confetti { z-index: 2; }
.celebration-confetti i { position: absolute; top: -24px; left: var(--left); width: 8px; height: 14px; border-radius: 2px; background: var(--confetti); transform: rotate(var(--rotation)); opacity: .9; animation: celebration-confetti-fall var(--duration) linear var(--delay) infinite; }
.celebration-confetti i:nth-child(3n) { width: 5px; height: 10px; border-radius: 50%; }
.celebration-danmaku { z-index: 3; overflow: hidden; }
.celebration-danmaku span { position: absolute; top: calc(8% + var(--lane) * 14%); left: 100%; min-height: 30px; padding: 6px 13px; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; color: rgba(255,255,255,.76); background: rgba(5,25,45,.28); backdrop-filter: blur(5px); font-size: 12px; font-weight: 700; white-space: nowrap; animation: celebration-danmaku var(--speed) linear var(--delay) infinite; }
.celebration-content { position: relative; z-index: 5; width: min(calc(100% - 40px),760px); padding: 44px 42px 35px; text-align: center; background: linear-gradient(150deg,rgba(4,24,43,.84),rgba(6,65,71,.72)); border: 1px solid rgba(255,255,255,.28); box-shadow: 0 30px 90px rgba(0,0,0,.38); backdrop-filter: blur(14px); }
.celebration-content::before { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(244,202,96,.28); pointer-events: none; }
.celebration-emblem { position: relative; width: 70px; height: 70px; margin: -80px auto 16px; display: grid; place-items: center; border: 1px solid #efc65d; border-radius: 50%; color: #714a00; background: linear-gradient(145deg,#fff3b1,#e7b840); box-shadow: 0 12px 35px rgba(242,200,91,.28); }
.celebration-content > small { position: relative; color: #91e2dd; font-size: 10px; font-weight: 900; letter-spacing: 2px; }
.celebration-content h2 { position: relative; margin: 12px 0 2px; color: #f6cf69; font-size: clamp(24px,4vw,38px); }
.celebration-content h1 { position: relative; margin: 0; font-size: clamp(29px,5vw,52px); line-height: 1.23; letter-spacing: 1px; text-shadow: 0 4px 25px rgba(0,0,0,.24); }
.celebration-recognitions { position: relative; margin: 20px auto 22px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.celebration-recognitions span { min-height: 32px; padding: 0 12px; display: inline-flex; align-items: center; gap: 6px; border: 1px solid rgba(246,207,105,.46); color: #ffe9a8; background: rgba(240,186,62,.1); font-size: 11px; font-weight: 900; }
.celebration-enter { position: relative; min-height: 44px; border: 1px solid #f3c95f; padding: 0 20px; display: inline-flex; align-items: center; gap: 8px; color: #08253f; background: #f4ca60; font: inherit; font-size: 12px; font-weight: 900; cursor: pointer; }
.celebration-enter:hover { background: #ffdc78; }
.celebration-progress { position: absolute; right: 0; bottom: 0; left: 0; height: 4px; overflow: hidden; background: rgba(255,255,255,.08); }
.celebration-progress i { display: block; width: 100%; height: 100%; background: linear-gradient(90deg,#32d7c3,#f4ca60); transform-origin: left center; animation: celebration-progress 8.4s linear forwards; }
.celebration-skip { position: absolute; z-index: 7; top: max(20px,env(safe-area-inset-top)); right: max(20px,env(safe-area-inset-right)); min-height: 36px; border: 1px solid rgba(255,255,255,.26); padding: 0 12px; display: inline-flex; align-items: center; gap: 7px; color: #e8f5f7; background: rgba(3,20,37,.34); font: inherit; font-size: 11px; font-weight: 800; cursor: pointer; backdrop-filter: blur(8px); }
.celebration-skip:hover { background: rgba(255,255,255,.12); }
@keyframes celebration-breathe { from { opacity: .46; transform: scale(.92); } to { opacity: 1; transform: scale(1.08); } }
@keyframes celebration-confetti-fall { 0% { transform: translate3d(0,-5vh,0) rotate(var(--rotation)); opacity: 0; } 10% { opacity: .92; } 100% { transform: translate3d(35px,108vh,0) rotate(calc(var(--rotation) + 560deg)); opacity: .12; } }
@keyframes celebration-danmaku { from { transform: translateX(4vw); } to { transform: translateX(-145vw); } }
@keyframes celebration-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.panorama-control {
  margin-bottom: 14px;
  padding: 22px 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  border: 1px solid #bed5d8;
  border-left: 5px solid var(--teal-700);
  border-radius: 8px;
  background: #eef8f7;
}
.panorama-control .eyebrow { color: var(--teal-700); }
.panorama-control strong { display: block; margin-top: 4px; color: var(--navy-800); font-size: 19px; }
.panorama-control p { max-width: 700px; margin: 6px 0 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.panorama-week-tabs { display: grid; grid-template-columns: repeat(4, 54px); gap: 6px; }
.panorama-week-tabs button { min-height: 54px; border: 1px solid #bbccd8; border-radius: 6px; color: var(--navy-700); background: var(--white); cursor: pointer; }
.panorama-week-tabs button small, .panorama-week-tabs button strong { display: block; margin: 0; }
.panorama-week-tabs button small { font-size: 8px; }
.panorama-week-tabs button strong { font-size: 18px; }
.panorama-week-tabs button.active { border-color: var(--teal-700); color: var(--white); background: var(--teal-700); }
.panorama-family-tabs { grid-column: 1 / -1; border-top: 1px solid #c8dddd; padding-top: 15px; }
.panorama-family-tabs > span { display: block; margin-bottom: 8px; color: var(--teal-700); font-size: 11px; font-weight: 900; }
.panorama-family-tabs > div { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 7px; }
.panorama-family-tabs button { min-height: 52px; border: 1px solid #bbccd8; border-radius: 6px; padding: 7px 8px; color: var(--navy-700); background: var(--white); cursor: pointer; }
.panorama-family-tabs button small, .panorama-family-tabs button strong { display: block; margin: 0; }
.panorama-family-tabs button small { font-size: 10px; }
.panorama-family-tabs button strong { margin-top: 3px; font-size: 13px; }
.panorama-family-tabs button.active { border-color: var(--teal-700); color: var(--white); background: var(--teal-700); }
.panorama-family-tabs button.active strong { color: var(--white); }

.panorama-role-plan { margin-bottom: 12px; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--white); }
.panorama-plan-head { min-height: 56px; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 18px; background: #f3f7f9; }
.panorama-plan-head strong { color: var(--navy-800); }
.panorama-plan-head span { color: var(--muted); font-size: 11px; }
.panorama-role-table { min-width: 680px; }
.panorama-role-row { display: grid; grid-template-columns: 170px repeat(4, minmax(110px, 1fr)); align-items: stretch; }
.panorama-role-row + .panorama-role-row { border-top: 1px solid var(--line); }
.panorama-role-row > * { min-height: 48px; padding: 10px 12px; display: flex; align-items: center; }
.panorama-role-row > * + * { border-left: 1px solid var(--line); }
.panorama-role-row > strong { color: var(--navy-800); font-size: 12px; }
.panorama-role-row > span { gap: 6px; color: #34475e; font-size: 12px; font-weight: 800; }
.panorama-role-header > span { min-height: 38px; color: var(--muted); background: #f8fafb; font-size: 10px; }
.panorama-role-row .role-key-leader, .task-role-lineup .role-key-leader { box-shadow: inset 4px 0 0 var(--navy-700); }
.panorama-role-row .role-key-researcher, .task-role-lineup .role-key-researcher { box-shadow: inset 4px 0 0 var(--teal-700); }
.panorama-role-row .role-key-analyst, .task-role-lineup .role-key-analyst { box-shadow: inset 4px 0 0 var(--gold-500); }
.panorama-role-row .role-key-presenter, .task-role-lineup .role-key-presenter { box-shadow: inset 4px 0 0 var(--red-600); }
.task-role-lineup { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 18px; }
.task-role-lineup > strong { color: var(--navy-800); font-size: 13px; }
.task-role-lineup > div { margin-top: 10px; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.task-role-lineup span { min-height: 52px; padding: 9px 11px; display: grid; align-content: center; gap: 3px; color: var(--muted); background: #f5f8fa; font-size: 11px; }
.task-role-lineup b { color: var(--navy-800); font-size: 12px; }

.group-game {
  position: relative;
  overflow: hidden;
  border: 1px solid #bfcfdb;
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}
.special-group-notice {
  padding: 17px 30px;
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid #ead49f;
  color: var(--navy-800);
  background: #fff8e8;
}
.special-group-notice > span { width: 42px; height: 42px; display: grid; place-items: center; color: var(--white); background: var(--gold-700); }
.special-group-notice strong, .special-group-notice p, .special-group-notice small { display: block; }
.special-group-notice p { margin: 4px 0 2px; color: #455a70; line-height: 1.55; }
.special-group-notice small { color: var(--gold-700); font-weight: 800; }
.waiting-game, .countdown-game {
  min-height: 230px;
  padding: 42px;
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--white);
  background: var(--navy-800);
}
.countdown-game { background: var(--teal-700); }
.waiting-game::after, .countdown-game::after {
  content: "";
  position: absolute;
  right: -68px;
  top: 48px;
  width: 310px;
  height: 138px;
  border: 1px solid rgba(255,255,255,.18);
  transform: rotate(-8deg);
}
.waiting-game > *, .countdown-game > * { position: relative; z-index: 1; }
.waiting-game .eyebrow, .countdown-game .eyebrow { color: #b9dce8; }
.waiting-game h2, .countdown-game h2 { margin: 8px 0 9px; font-size: 30px; }
.waiting-game p, .countdown-game p { max-width: 720px; margin: 0; color: #d9e8f1; line-height: 1.75; }
.game-seal {
  width: 66px;
  height: 66px;
  flex: 0 0 66px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.38);
  color: var(--white);
  background: rgba(255,255,255,.08);
}
.game-header {
  min-height: 142px;
  padding: 27px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--white);
  background: var(--navy-800);
}
.game-header .eyebrow { color: #9edfd9; }
.game-header h2 { margin: 7px 0 5px; font-size: 29px; }
.game-header p { margin: 0; color: #d9e8f1; }
.live-state {
  min-width: 80px;
  border: 1px solid rgba(255,255,255,.32);
  padding: 9px 12px;
  color: var(--white);
  text-align: center;
  font-size: 12px;
  font-weight: 800;
}
.group-guide {
  padding: 20px 30px 22px;
  border-bottom: 1px solid var(--line);
  background: #f4f8fb;
}
.group-guide header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 15px; }
.group-guide header span { color: var(--navy-800); font-size: 13px; font-weight: 800; }
.group-guide header strong { color: var(--teal-700); font-size: 12px; }
.group-guide ol { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); list-style: none; }
.group-guide li { position: relative; min-width: 0; display: grid; grid-template-columns: 28px 1fr; align-items: center; gap: 8px; color: #8695a5; }
.group-guide li:not(:last-child)::after { content: ""; position: absolute; z-index: 0; top: 13px; left: 27px; right: -1px; height: 2px; background: #d7e1e8; }
.group-guide li i { position: relative; z-index: 1; width: 28px; height: 28px; border: 2px solid #c8d4dd; border-radius: 50%; display: grid; place-items: center; background: #f4f8fb; color: #7f8e9e; font-size: 11px; font-style: normal; font-weight: 800; }
.group-guide li div { position: relative; z-index: 1; min-width: 0; padding-right: 8px; background: #f4f8fb; }
.group-guide li strong, .group-guide li span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.group-guide li strong { font-size: 12px; }
.group-guide li span { margin-top: 2px; font-size: 10px; }
.group-guide li.is-done { color: var(--navy-700); }
.group-guide li.is-done i { border-color: var(--navy-700); color: var(--white); background: var(--navy-700); }
.group-guide li.is-done:not(:last-child)::after { background: var(--navy-700); }
.group-guide li.is-current { color: var(--teal-700); }
.group-guide li.is-current i { border-color: var(--teal-700); color: var(--white); background: var(--teal-700); box-shadow: 0 0 0 5px rgba(13, 137, 132, .12); }
.team-lineup {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
  background: #f7fafc;
}
.team-lineup.is-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.team-member {
  position: relative;
  min-width: 0;
  min-height: 96px;
  padding: 18px 14px;
  display: grid;
  grid-template-columns: 38px 1fr 8px;
  align-items: center;
  gap: 9px;
}
.team-member + .team-member { border-left: 1px solid var(--line); }
.team-member.is-me { background: #eaf5f4; }
.member-avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--navy-700);
  font-weight: 800;
}
.team-member.is-me .member-avatar { background: var(--teal-700); }
.team-member strong, .team-member span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team-member strong { font-size: 13px; }
.team-member div > span { margin-top: 4px; color: var(--muted); font-size: 11px; }
.presence-dot { width: 8px; height: 8px; border-radius: 50%; background: #bdc8d0; }
.presence-dot.online { background: #28a56f; box-shadow: 0 0 0 4px rgba(40,165,111,.11); }
.game-action, .leader-choice, .role-draw {
  padding: 27px 30px;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}
.game-action, .leader-choice { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.game-action p, .leader-choice p, .role-draw p { margin: 0; color: var(--muted); line-height: 1.65; }
.leader-choice h3, .role-draw h3 { margin: 6px 0 6px; font-size: 21px; }
.leader-choice > div:last-child { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.role-draw { display: grid; grid-template-columns: minmax(220px,.8fr) minmax(0,1.2fr); align-items: center; gap: 30px; }
.role-deck { display: flex; justify-content: flex-end; gap: 10px; perspective: 900px; }
.role-deck button {
  width: 92px;
  height: 132px;
  border: 2px solid #d8ad51;
  border-radius: 8px;
  padding: 13px 10px;
  display: grid;
  align-content: space-between;
  justify-items: center;
  color: var(--white);
  background: var(--navy-800);
  box-shadow: 0 9px 18px rgba(14,48,78,.16);
  transition: transform .18s, border-color .18s;
}
.role-deck button:hover { border-color: #f0c86d; transform: translateY(-5px); }
.role-deck button span, .role-deck button small { font-size: 10px; font-weight: 800; }
.role-deck button strong { color: #f0c86d; font-size: 36px; }
.role-deck button.is-flipping { animation: roleFlip .7s ease both; }
@keyframes roleFlip { 0% { transform: rotateY(0); } 55% { transform: rotateY(90deg) translateY(-5px); } 100% { transform: rotateY(180deg); } }
.identity-result {
  padding: 28px 30px;
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  background: #f9fbfc;
}
.identity-mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--gold-700);
}
.identity-copy > span { color: var(--teal-700); font-size: 11px; font-weight: 800; }
.identity-copy h3 { margin: 3px 0; font-size: 22px; }
.identity-copy p { margin: 0; color: var(--muted); }
.identity-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.role-mission {
  grid-column: 1 / -1;
  margin-top: 6px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  display: grid;
  grid-template-columns: 132px 1fr 1fr;
  gap: 18px;
  align-items: start;
}
.role-mission > strong { color: var(--navy-800); }
.role-mission ul { margin: 0; padding-left: 19px; color: #34475e; line-height: 1.8; }
.role-mission div { border-left: 4px solid var(--gold-500); padding-left: 13px; }
.role-mission div span { color: var(--gold-700); font-size: 11px; font-weight: 800; }
.role-mission div p { margin: 4px 0 0; color: #34475e; line-height: 1.65; }
.support-role-mission {
  grid-column: 1 / -1;
  margin-top: 2px;
  border: 1px solid #ead49f;
  padding: 15px 17px;
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: start;
  gap: 12px;
  background: #fff8e8;
}
.support-role-mission > span { width: 34px; height: 34px; display: grid; place-items: center; color: var(--gold-700); background: #fff; }
.support-role-mission strong, .support-role-mission p, .support-role-mission small { display: block; }
.support-role-mission p { margin: 4px 0; color: #455a70; line-height: 1.6; }
.support-role-mission small { color: var(--gold-700); font-weight: 800; line-height: 1.5; }
.swap-panel {
  padding: 20px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: #fff8e8;
}
.swap-panel strong, .swap-panel span { display: block; }
.swap-panel span { margin-top: 3px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.swap-panel > div:last-child, .swap-targets { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.family-waiting {
  min-height: 104px;
  padding: 24px 30px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-top: 1px solid var(--line);
  background: #f7fafc;
}
.family-waiting > span { width: 46px; height: 46px; flex: 0 0 46px; display: grid; place-items: center; color: var(--navy-700); background: #e4eef4; }
.family-waiting strong, .family-waiting p { display: block; }
.family-waiting p { margin: 5px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.family-draw { padding: 28px 30px; display: grid; grid-template-columns: minmax(250px,.85fr) minmax(0,1.15fr); align-items: center; gap: 28px; border-top: 1px solid var(--line); background: #fff; }
.family-draw h3 { margin: 6px 0; font-size: 21px; }
.family-draw p { margin: 0; color: var(--muted); line-height: 1.65; }
.family-deck { display: flex; justify-content: flex-end; gap: 10px; perspective: 900px; }
.family-deck button { position: relative; width: 126px; height: 154px; overflow: hidden; border: 2px solid #d8ad51; border-radius: 8px; padding: 14px 11px; display: grid; align-content: space-between; justify-items: center; color: var(--white); background: var(--navy-800); box-shadow: 0 10px 20px rgba(14,48,78,.15); transition: transform .18s, border-color .18s; }
.family-deck button::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--gold-500); }
.family-deck button:hover { border-color: #f0c86d; transform: translateY(-5px); }
.family-deck button span, .family-deck button small { position: relative; z-index: 1; font-size: 9px; font-weight: 800; }
.family-deck button strong { position: relative; z-index: 1; color: #f0c86d; font-size: 38px; }
.family-deck button.is-flipping { animation: roleFlip .7s ease both; }
.family-reveal { display: grid; grid-template-columns: 230px 1fr; border-top: 1px solid var(--line); background: #fff; }
.family-reveal-image { min-height: 310px; overflow: hidden; background: #dce8ee; }
.family-reveal-image img { width: 100%; height: 100%; display: block; object-fit: cover; }
.family-reveal-copy { padding: 30px 32px; }
.family-reveal-copy h3 { margin: 7px 0 6px; font-size: 28px; }
.family-reveal-copy > p { margin: 0; color: var(--muted); line-height: 1.65; }
.family-reveal-copy > div { margin-top: 22px; border-left: 4px solid var(--gold-500); padding: 13px 16px; background: #fff8e7; }
.family-reveal-copy > div strong, .family-reveal-copy > div span { display: block; }
.family-reveal-copy > div strong { color: var(--gold-700); font-size: 12px; }
.family-reveal-copy > div span { margin-top: 5px; color: #33485d; line-height: 1.7; }
.family-reveal-copy small { display: block; margin-top: 18px; color: var(--muted); line-height: 1.6; }
.family-dossier {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
  padding: 28px 32px 30px;
  background: #f7fafc;
}
.family-dossier-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; }
.family-dossier-head strong { display: block; margin-top: 5px; color: var(--ink); font-size: 17px; }
.family-theme-row { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.family-theme-row span { border: 1px solid #bed7dc; padding: 6px 9px; color: var(--teal-700); background: #fff; font-size: 11px; font-weight: 800; }
.family-fact-grid { margin-top: 20px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); background: #fff; }
.family-fact-grid article { min-width: 0; padding: 18px; }
.family-fact-grid article + article { border-left: 1px solid var(--line); }
.family-fact-grid span, .family-dossier-grid > article > span { color: var(--navy-700); font-size: 12px; font-weight: 900; }
.family-fact-grid p { margin: 7px 0 0; color: #34475e; font-size: 13px; line-height: 1.75; }
.family-dossier-grid { margin-top: 14px; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 14px; }
.family-dossier-grid article { border: 1px solid var(--line); padding: 18px; background: #fff; }
.family-risk-panel div { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 7px; }
.family-risk-panel b { padding: 6px 9px; color: #a42d3c; background: #fff0f1; font-size: 11px; }
.family-mission-panel ul { margin: 9px 0 0; padding-left: 19px; color: #34475e; font-size: 13px; line-height: 1.8; }
.family-deliverable { margin-top: 14px; padding: 14px 17px; display: flex; align-items: center; gap: 18px; color: #fff; background: var(--navy-800); }
.family-deliverable span { color: #a9d8df; font-size: 11px; font-weight: 900; }
.family-deliverable strong { font-size: 14px; }
.family-dossier > small { display: block; margin-top: 10px; color: var(--muted); font-size: 10px; }
.family-bound-wrap { border-top: 1px solid var(--line); background: #fff; }
.family-bound-wrap .family-bound { border-top: 0; }
.family-dossier-toggle { border-top: 1px solid var(--line); background: #f7fafc; }
.family-dossier-toggle summary { cursor: pointer; padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--navy-700); list-style: none; font-weight: 800; }
.family-dossier-toggle summary::-webkit-details-marker { display: none; }
.family-dossier-toggle summary span { display: inline-flex; align-items: center; gap: 8px; }
.family-dossier-toggle summary small { color: var(--muted); font-weight: 500; }
.family-dossier-toggle[open] summary { border-bottom: 1px solid var(--line); }
.family-dossier-toggle .family-dossier { border-top: 0; }
.investment-pack { border-top: 1px solid var(--line); padding: 28px 32px 30px; background: #f3f8f8; }
.investment-pack-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; }
.investment-pack-head h3 { margin: 5px 0 6px; color: var(--ink); font-size: 24px; }
.investment-pack-head p { max-width: 720px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.investment-total { min-width: 178px; border-left: 4px solid var(--gold-500); padding: 11px 14px; background: #fff8e7; }
.investment-total span, .investment-total strong { display: block; }
.investment-total span { color: var(--gold-700); font-size: 10px; font-weight: 900; }
.investment-total strong { margin-top: 4px; color: var(--ink); font-size: 15px; }
.investment-ledger { margin-top: 20px; border: 1px solid #c8dbe0; background: #fff; }
.investment-ledger-row { min-height: 60px; display: grid; grid-template-columns: minmax(110px, 1.05fr) minmax(90px, .72fr) minmax(150px, 1.3fr) minmax(90px, .72fr) minmax(170px, 1.45fr); align-items: center; }
.investment-ledger-row + .investment-ledger-row { border-top: 1px solid var(--line); }
.investment-ledger-row:nth-child(odd):not(.investment-ledger-header) { background: #f9fbfc; }
.investment-ledger-row > * { min-width: 0; padding: 12px 13px; font-size: 11px; line-height: 1.55; }
.investment-ledger-row > * + * { border-left: 1px solid #e2ebef; }
.investment-ledger-row strong { color: var(--navy-800); font-size: 12px; }
.investment-ledger-row b { color: var(--teal-700); }
.investment-ledger-row span { color: #405268; }
.investment-ledger-header { min-height: 38px; color: #fff; background: var(--navy-800); }
.investment-ledger-header > span { color: #d9e8ef; font-size: 10px; font-weight: 900; }
.investment-ledger-header > span + span { border-left-color: rgba(255,255,255,.16); }
.investment-clue-grid { margin-top: 14px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.investment-clue-grid article { border: 1px solid #c8dbe0; padding: 17px 18px; background: #fff; }
.investment-clue-grid article:last-child { border-left: 4px solid var(--gold-500); background: #fffaf0; }
.investment-clue-grid span { color: var(--navy-700); font-size: 11px; font-weight: 900; }
.investment-clue-grid ul { margin: 9px 0 0; padding-left: 19px; color: #34475e; font-size: 12px; line-height: 1.75; }
.investment-clue-grid p { margin: 9px 0 0; color: #34475e; font-size: 12px; line-height: 1.75; }
.investment-pack > small { display: block; margin-top: 10px; color: var(--muted); font-size: 10px; }
.sudden-event { border-top: 1px solid var(--line); background: #fff; }
.page > .sudden-event { margin: 14px 0; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); }
.page > .sudden-event.event-revealed { border-top: 6px solid var(--red-700); }
.event-sealed { min-height: 170px; padding: 28px 32px; display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 20px; border-left: 6px solid var(--red-600); background: #f7fafc; }
.event-ring { width: 58px; height: 58px; display: grid; place-items: center; color: #fff; background: var(--red-700); box-shadow: 8px 8px 0 #efd9dd; }
.event-sealed-copy h3 { margin: 5px 0 6px; font-size: 24px; }
.event-sealed-copy p { margin: 0; color: #405269; font-size: 14px; line-height: 1.7; }
.event-sealed-copy small { display: block; margin-top: 7px; color: var(--muted); font-size: 11px; }
.event-answer-button { min-height: 48px; border: 0; border-radius: 6px; padding: 0 20px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; color: #fff; background: var(--red-700); font-weight: 900; box-shadow: 0 8px 18px rgba(169,45,62,.18); }
.event-answer-button:hover { background: #8f2332; }
.event-revealed { border-top: 6px solid var(--red-700); }
.event-alert-head { min-height: 116px; padding: 25px 32px; display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; align-items: center; gap: 18px; color: #fff; background: var(--navy-900); }
.event-alert-head .event-ring { color: var(--red-700); background: #fff; box-shadow: 7px 7px 0 rgba(194,56,76,.42); }
.event-alert-head .eyebrow { color: #f1a7b1; }
.event-alert-head h3 { margin: 5px 0 0; font-size: 26px; }
.event-live-chip { border: 1px solid rgba(255,255,255,.35); padding: 8px 11px; color: #fff; font-size: 10px; font-weight: 900; }
.event-story-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(250px, .7fr); border-bottom: 1px solid var(--line); }
.event-story-grid > div, .event-story-grid blockquote { margin: 0; padding: 25px 32px; }
.event-story-grid > div > span, .event-story-grid blockquote > span, .event-decision > span { display: block; color: var(--red-700); font-size: 11px; font-weight: 900; }
.event-story-grid p { margin: 8px 0 0; color: #31465d; font-size: 14px; line-height: 1.8; }
.event-story-grid blockquote { border-left: 1px solid var(--line); background: #f3f7f9; }
.event-story-grid blockquote p { color: var(--navy-800); font-size: 16px; font-weight: 800; }
.event-constraint-panel { margin: 22px 32px 0; border: 1px solid #e5c1c7; border-left: 5px solid var(--red-600); padding: 16px 18px; background: #fff6f7; }
.event-constraint-panel > span { display: inline-flex; align-items: center; gap: 7px; color: var(--red-700); font-size: 12px; font-weight: 900; }
.event-constraint-panel ul { margin: 10px 0 0; padding-left: 20px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 24px; color: #34475e; font-size: 12px; line-height: 1.7; }
.event-decision { margin: 14px 32px 0; border-left: 5px solid var(--gold-500); padding: 15px 18px; background: #fff9eb; }
.event-decision > span { color: var(--gold-700); }
.event-decision strong { display: block; margin-top: 6px; color: var(--ink); font-size: 15px; line-height: 1.7; }
.event-vote-panel { margin: 22px 32px 28px; border: 1px solid var(--line); background: #f7fafc; }
.event-vote-panel > header { padding: 20px 22px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); background: #fff; }
.event-vote-panel h4 { margin: 4px 0; font-size: 18px; }
.event-vote-panel header p { margin: 0; color: var(--muted); font-size: 12px; }
.event-vote-panel > header > strong { color: var(--teal-700); font-size: 28px; white-space: nowrap; }
.event-vote-panel > header > strong small { color: var(--muted); font-size: 10px; }
.event-vote-grid { padding: 16px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.event-vote-option { min-height: 98px; border: 1px solid #bdcfdc; border-radius: 6px; padding: 14px; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: start; gap: 10px; color: var(--ink); text-align: left; background: #fff; transition: border-color .15s, transform .15s, box-shadow .15s; }
.event-vote-option:not(:disabled):hover { border-color: var(--teal-700); transform: translateY(-2px); box-shadow: 0 8px 18px rgba(16,59,100,.1); }
.event-vote-option > i { width: 32px; height: 32px; display: grid; place-items: center; color: #fff; background: var(--navy-700); font-style: normal; font-weight: 900; }
.event-vote-option span, .event-vote-option strong, .event-vote-option small { display: block; }
.event-vote-option strong { font-size: 13px; }
.event-vote-option small { margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.event-vote-option.is-selected { border: 2px solid var(--teal-700); background: #ecf8f7; }
.event-vote-option.is-selected > i { background: var(--teal-700); }
.event-vote-option:disabled { cursor: default; opacity: .72; }
.event-vote-option.is-selected:disabled { opacity: 1; }
.event-vote-locked { margin: 0 16px 16px; display: flex; align-items: center; gap: 7px; color: var(--teal-700); font-size: 11px; font-weight: 800; }
.event-vote-private { margin: 0 16px 16px; border: 1px dashed #b8c9d4; padding: 13px 15px; display: flex; align-items: center; gap: 9px; color: var(--muted); background: #fff; font-size: 11px; line-height: 1.6; }
.event-vote-breakdown { border-top: 1px solid var(--line); padding: 18px 20px 20px; background: #fff; }
.event-breakdown-head { margin-bottom: 12px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.event-breakdown-head strong { color: var(--navy-800); }
.event-breakdown-head span { color: var(--muted); font-size: 10px; }
.event-result-row { min-height: 44px; display: grid; grid-template-columns: minmax(150px, .8fr) minmax(140px, 1fr) 34px; align-items: center; gap: 14px; border-top: 1px solid #e7eef2; }
.event-result-row > div:first-child strong, .event-result-row > div:first-child span { display: block; }
.event-result-row > div:first-child strong { font-size: 11px; }
.event-result-row > div:first-child span { margin-top: 2px; color: var(--muted); font-size: 9px; }
.event-result-row > b { color: var(--navy-700); font-size: 11px; text-align: right; }
.event-result-row.is-mine > div:first-child strong::after { content: " · 我的选择"; color: var(--teal-700); }
.event-result-meter { height: 8px; overflow: hidden; background: #e8eff3; }
.event-result-meter i { height: 100%; display: block; background: var(--teal-700); }
.event-revealed > footer { padding: 18px 32px; display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 12px; color: #fff; background: var(--teal-700); }
.event-revealed > footer > span { display: inline-flex; align-items: center; gap: 7px; font-weight: 900; }
.event-revealed > footer p { margin: 0; color: #e7f8f6; font-size: 12px; line-height: 1.7; }

.bottom-nav {
  position: fixed;
  z-index: 30;
  left: 50%;
  bottom: max(12px, env(safe-area-inset-bottom));
  width: min(calc(100% - 24px), 560px);
  min-height: 66px;
  transform: translateX(-50%);
  border: 1px solid #c8d8e4;
  border-radius: 8px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 6px;
  background: rgba(255,255,255,.97);
  box-shadow: 0 12px 30px rgba(16, 59, 100, .18);
}
.bottom-nav.has-honor { grid-template-columns: repeat(5, 1fr); }
.nav-button { position: relative; border: 0; border-radius: 6px; display: grid; place-items: center; align-content: center; gap: 3px; color: var(--muted); background: transparent; font-size: 11px; font-weight: 700; }
.nav-button.active { color: var(--navy-800); background: var(--soft-blue); }
.nav-button svg { width: 20px; height: 20px; }
.nav-badge { position: absolute; top: 3px; right: calc(50% - 28px); min-width: 18px; height: 18px; border: 2px solid #fff; border-radius: 999px; padding: 0 4px; display: grid; place-items: center; color: #fff; background: var(--red-600); font-size: 9px; line-height: 1; }

.mentor-student-page { padding-bottom: 112px; }
.mentor-page-heading { align-items: flex-end; }
.mentor-page-count { min-width: 240px; border-left: 4px solid var(--teal-600); padding: 13px 16px; display: grid; grid-template-columns: auto 1fr auto 1fr; align-items: baseline; gap: 3px 8px; background: #f3f8fa; }
.mentor-page-count strong, .mentor-page-count b { color: var(--navy-800); font-size: 24px; }
.mentor-page-count b { color: var(--red-600); }
.mentor-page-count span, .mentor-page-count small { color: var(--muted); font-size: 10px; font-weight: 800; }
.mentor-student-list { display: grid; gap: 16px; }
.mentor-answer-group { display: grid; gap: 13px; margin-top: 22px; }
.mentor-answer-group + .mentor-answer-group { margin-top: 34px; }
.mentor-answer-group-title { display: flex; align-items: end; justify-content: space-between; border-bottom: 2px solid var(--teal-700); padding: 0 2px 10px; }
.mentor-answer-group-title h2 { margin: 3px 0 0; color: var(--navy-800); font-size: 24px; }
.mentor-answer-group-title > strong { min-width: 42px; text-align: right; color: var(--teal-700); font-size: 26px; }
.mentor-answer-group.shared .mentor-answer-group-title { border-bottom-color: var(--gold-500); }
.mentor-answer-group.shared .mentor-answer-group-title > strong { color: var(--gold-700); }
.mentor-answer-mini-empty { border: 1px dashed var(--line); padding: 24px; color: var(--muted); text-align: center; background: #f8fbfc; }
.mentor-student-card { border: 1px solid var(--line); border-left: 6px solid var(--teal-700); border-radius: 8px; overflow: hidden; background: #fff; box-shadow: 0 7px 20px rgba(22, 54, 82, .06); }
.mentor-student-card.is-unread { border-left-color: var(--gold-500); box-shadow: 0 8px 22px rgba(163, 112, 0, .11); }
.mentor-student-card.is-shared { border-left-color: var(--gold-500); }
.mentor-student-card.is-shared > header { background: #fffaf0; }
.mentor-student-card > header { padding: 20px 22px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--line); background: #f8fbfc; }
.mentor-student-card > header span { color: var(--teal-700); font-size: 11px; font-weight: 800; }
.mentor-student-card > header h2 { margin: 5px 0 0; color: var(--navy-800); font-size: 21px; }
.mentor-student-card > header strong { border-radius: 999px; padding: 5px 9px; color: #fff; background: var(--red-600); font-size: 10px; }
.mentor-student-card > header small { display: inline-flex; align-items: center; gap: 5px; color: var(--teal-700); font-weight: 800; }
.mentor-student-card > header .mentor-shared-badge { display: inline-flex; align-items: center; gap: 5px; border-radius: 3px; padding: 6px 9px; color: #704b00; background: #ffe8ad; font-size: 10px; }
.mentor-student-dialogue { display: grid; grid-template-columns: .85fr 1.15fr; }
.mentor-student-dialogue section { padding: 22px; }
.mentor-student-dialogue section + section { border-left: 1px solid var(--line); background: #f3faf8; }
.mentor-student-dialogue span { display: block; margin-bottom: 9px; color: var(--muted); font-size: 10px; font-weight: 900; }
.mentor-student-dialogue p { margin: 0; color: #344a60; line-height: 1.78; white-space: pre-wrap; }
.mentor-student-dialogue section:last-child p { color: #183d39; font-weight: 650; }
.mentor-student-tags { padding: 0 22px 18px; display: flex; flex-wrap: wrap; gap: 7px; }
.mentor-student-tags span { border-radius: 999px; padding: 5px 9px; color: var(--navy-800); background: var(--soft-blue); font-size: 10px; font-weight: 800; }
.mentor-student-response { border-top: 1px solid var(--line); padding: 20px 22px 22px; background: #fffdf7; }
.mentor-student-response > label { display: block; margin-bottom: 8px; color: var(--gold-700); font-size: 12px; font-weight: 900; }
.mentor-student-response .textarea { min-height: 92px; margin: 0; background: #fff; }
.mentor-student-response > div { margin-top: 11px; display: flex; align-items: center; justify-content: flex-end; gap: 9px; }
.mentor-student-response > div small { margin-right: auto; color: var(--muted); }
.mentor-shared-note { display: flex; align-items: center; gap: 7px; border-top: 1px solid #f0deb4; padding: 13px 22px; color: #765a1f; background: #fffaf0; font-size: 11px; font-weight: 750; }
.mentor-student-empty { min-height: 360px; border: 1px dashed #b9ccd8; display: grid; place-items: center; align-content: center; padding: 40px; text-align: center; background: #f8fbfc; }
.mentor-student-empty > span { width: 62px; height: 62px; display: grid; place-items: center; color: var(--teal-700); background: #dff2ef; }
.mentor-student-empty h2 { margin: 15px 0 6px; }
.mentor-student-empty p { max-width: 460px; margin: 0; color: var(--muted); line-height: 1.7; }

.sheet-dialog {
  width: min(720px, calc(100% - 24px));
  max-height: min(90vh, 900px);
  margin: auto;
  border: 0;
  border-radius: 8px;
  padding: 0;
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 22px 70px rgba(8, 31, 54, .3);
}
.sheet-dialog::backdrop { background: rgba(7, 27, 45, .58); }
.dialog-head { position: sticky; z-index: 2; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding: 16px 20px; background: var(--white); }
.dialog-head h2 { margin: 0; font-size: 19px; }
.dialog-body { padding: 20px; }
.task-brief { border-left: 5px solid var(--teal-600); padding: 18px; background: #f1f8f8; }
.task-brief h3 { margin: 8px 0; font-size: 22px; }
.task-brief p { margin: 0; line-height: 1.75; }
.chip-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 13px; }
.live-note { margin-top: 12px; border: 1px solid #f1bcc4; border-radius: 6px; padding: 11px 13px; color: var(--red-700); background: #fff1f3; font-size: 13px; font-weight: 700; line-height: 1.6; }
.task-poster { width: 100%; border: 1px solid var(--line); border-radius: 6px; display: block; margin-top: 12px; }
.poster-details { margin: 16px 0; }
.poster-details summary { cursor: pointer; color: var(--navy-700); font-weight: 700; }
.submit-panel { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 20px; }
.format-options { display: flex; flex-wrap: wrap; gap: 7px; }
.format-option input { position: absolute; opacity: 0; pointer-events: none; }
.format-option span { display: inline-flex; min-height: 36px; align-items: center; border: 1px solid var(--line); border-radius: 999px; padding: 0 12px; color: var(--muted); background: var(--white); font-size: 13px; font-weight: 700; }
.format-option input:checked + span { color: var(--navy-800); border-color: #8eb2c9; background: var(--soft-blue); }
.attachment-box { border: 1px dashed #9db7c8; border-radius: 6px; padding: 14px; background: #f8fbfc; }
.attachment-box input { width: 100%; }
.attachment-current { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; color: var(--navy-700); font-size: 13px; }
.attachment-count { color: var(--teal-700); font-size: 12px; font-weight: 800; }
.attachment-list { display: grid; gap: 8px; margin-top: 10px; }
.attachment-list .attachment-current { margin-top: 0; border-top: 1px solid var(--line); padding-top: 8px; }
.attachment-current > a, .attachment-current > span { display: flex; min-width: 0; align-items: center; gap: 6px; }
.attachment-current > a span, .attachment-current > span span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attachment-selected > div { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; }
.attachment-selected strong { color: var(--muted); font-size: 11px; }
.final-video-box { overflow: hidden; border: 1px dashed #8faebf; border-radius: 7px; padding: 14px; background: #f5fafb; }
.final-video-box > input { width: 100%; }
.final-video-current { margin-bottom: 14px; overflow: hidden; border: 1px solid var(--line); border-radius: 7px; background: var(--white); }
.final-video-current video { display: block; width: 100%; max-height: 420px; background: #071827; object-fit: contain; }
.final-video-meta { display: flex; align-items: center; justify-content: space-between; gap: 14px; border-top: 1px solid var(--line); padding: 11px 12px; }
.final-video-meta > span { display: flex; min-width: 0; align-items: center; gap: 8px; color: var(--navy-700); }
.final-video-meta strong, .final-video-meta small { display: block; }
.final-video-meta strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.final-video-meta small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.final-video-meta > div { display: flex; flex: 0 0 auto; gap: 5px; }
.video-upload-status { margin-top: 12px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; color: var(--teal-700); font-size: 11px; font-weight: 800; }
.video-upload-status[hidden] { display: none; }
.video-upload-status > div { height: 8px; overflow: hidden; border-radius: 999px; background: #dce9ed; }
.video-upload-status i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--teal-700); transition: width .18s ease; }
.check-line { display: flex; align-items: flex-start; gap: 10px; border: 1px solid var(--line); border-radius: 6px; padding: 13px; line-height: 1.55; }
.check-line input { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 2px; accent-color: var(--teal-700); }
.dialog-actions { position: sticky; bottom: 0; display: flex; justify-content: flex-end; gap: 9px; border-top: 1px solid var(--line); padding: 14px 20px; background: var(--white); }
.locked-message { margin-top: 18px; border: 1px solid var(--line); border-radius: 6px; padding: 14px; color: var(--muted); background: #f5f8fa; line-height: 1.6; }

.share-panel {
  margin-top: 20px;
  border: 1px solid #b8d9d7;
  border-left: 5px solid var(--teal-700);
  border-radius: 6px;
  padding: 17px;
  background: #f0f8f7;
}
.share-panel-active { border-color: #b8d9d7; background: #f7fbfb; }
.share-heading { display: flex; align-items: flex-start; gap: 12px; }
.share-icon { width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center; color: var(--white); border-radius: 50%; background: var(--teal-700); }
.share-heading h3 { margin: 0 0 4px; color: var(--navy-900); font-size: 16px; }
.share-heading p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.share-create-button { width: 100%; min-height: 44px; margin-top: 14px; border: 0; border-radius: 6px; display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--white); background: var(--teal-700); font-weight: 800; }
.share-create-button:hover { background: var(--teal-600); }
.share-image-output { margin-top: 14px; border-top: 1px solid #c9e0df; padding-top: 14px; }
.share-image-output[hidden] { display: none; }
.share-image-previews { display: grid; gap: 12px; }
.share-image-previews figure { margin: 0; }
.share-image-previews img { width: 100%; max-height: 900px; border: 1px solid #c7d8e2; border-radius: 6px; display: block; object-fit: contain; background: var(--white); }
.share-image-previews figcaption { margin-top: 5px; color: var(--muted); font-size: 11px; text-align: center; }
.share-image-output > p { margin: 9px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; text-align: center; }
.share-image-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.share-downloads { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.share-downloads a { text-decoration: none; }
.share-image-actions.native-enabled .share-downloads { grid-column: auto; }
.speech-share-dynamic { margin-top: 14px; }
.speech-share-dynamic > .share-create-button { margin-top: 0; }
.speech-card-output { margin-top: 14px; border-top: 1px solid #c9e0df; padding-top: 14px; }
.speech-card-output[hidden] { display: none; }
.speech-card-output figure { margin: 0; }
.speech-card-output img { width: min(100%, 460px); max-height: 720px; margin: 0 auto; border: 1px solid #c7d8e2; border-radius: 6px; display: block; object-fit: contain; background: var(--white); box-shadow: 0 10px 28px rgba(8, 48, 79, .12); }
.speech-card-output figcaption { margin-top: 8px; color: var(--muted); font-size: 11px; line-height: 1.55; text-align: center; }
.speech-card-actions { display: flex; justify-content: center; gap: 8px; margin-top: 11px; }
.speech-card-actions a { text-decoration: none; }
.speech-link-fallback { margin-top: 13px; border-top: 1px dashed #c9e0df; padding-top: 11px; }
.speech-link-fallback > summary { width: fit-content; cursor: pointer; color: var(--muted); font-size: 11px; font-weight: 700; list-style-position: inside; }
.speech-link-fallback[open] > summary { color: var(--navy-700); }
.speech-share-link { margin-top: 10px; border: 1px solid #d6e4e8; border-radius: 6px; padding: 11px; background: var(--white); }
.speech-share-link > input { width: 100%; color: var(--navy-800); background: var(--white); font-size: 12px; }
.speech-share-link > div { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 9px; }
.speech-share-link > div a { text-decoration: none; }
.speech-share-link > small { display: block; margin-top: 9px; color: var(--muted); font-size: 11px; line-height: 1.6; }

.toast {
  position: fixed;
  z-index: 100;
  left: 50%;
  bottom: 98px;
  max-width: min(90vw, 460px);
  transform: translate(-50%, 20px);
  border-radius: 6px;
  padding: 11px 15px;
  color: var(--white);
  background: var(--navy-900);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s, transform .18s;
  box-shadow: var(--shadow);
  font-size: 14px;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: var(--red-700); }

.deadline-notice-dialog { width: min(520px, calc(100% - 28px)); margin: auto; overflow: hidden; border: 0; border-radius: 8px; padding: 0; color: var(--ink); background: var(--white); box-shadow: 0 28px 80px rgba(7, 27, 45, .3); }
.deadline-notice-dialog::backdrop { background: rgba(7, 27, 45, .68); backdrop-filter: blur(3px); }
.deadline-notice-accent { height: 8px; background: linear-gradient(90deg, var(--teal-700) 0 68%, var(--gold-500) 68% 100%); }
.deadline-notice-body { position: relative; padding: 29px 30px 24px; }
.deadline-notice-icon { position: absolute; top: 27px; right: 28px; width: 48px; height: 48px; display: grid; place-items: center; color: var(--white); border-radius: 50%; background: var(--teal-700); }
.deadline-notice-body .eyebrow { color: var(--teal-700); font-size: 11px; }
.deadline-notice-body h2 { max-width: calc(100% - 60px); margin: 7px 0 20px; color: var(--navy-900); font-size: 25px; }
.deadline-notice-date { border-left: 5px solid var(--gold-500); padding: 10px 15px; background: #f2f7f9; }
.deadline-notice-date strong, .deadline-notice-date span { display: block; }
.deadline-notice-date strong { color: var(--navy-900); font-size: 28px; }
.deadline-notice-date span { margin-top: 3px; color: var(--teal-700); font-size: 13px; font-weight: 800; }
.deadline-notice-body p { margin: 19px 0 0; color: #334e63; font-size: 15px; line-height: 1.75; }
.deadline-notice-body small { display: block; margin-top: 12px; color: var(--muted); line-height: 1.65; }
.final-deadline-list { display: grid; gap: 10px; margin-top: 17px; }
.final-deadline-list section { display: grid; grid-template-columns: 38px 1fr; gap: 12px; align-items: start; border: 1px solid #d9e6eb; border-radius: 7px; padding: 13px 14px; background: #fbfcfd; }
.final-deadline-list section > span { width: 34px; height: 34px; display: grid; place-items: center; color: var(--white); background: var(--navy-800); }
.final-deadline-list section + section > span { background: var(--teal-700); }
.final-deadline-list strong { display: block; color: var(--navy-900); font-size: 14px; }
.final-deadline-list p { margin: 4px 0 0; color: #52697c; font-size: 13px; line-height: 1.6; }
.final-primary-reminder { display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: start; margin: 16px 0; border: 1px solid #e5c26d; border-left: 5px solid var(--gold-500); border-radius: 7px; padding: 15px 17px; background: #fff8e7; }
.final-primary-reminder > span { width: 42px; height: 42px; display: grid; place-items: center; color: var(--white); background: var(--gold-600); }
.final-primary-reminder strong { display: block; color: var(--navy-900); font-size: 15px; }
.final-primary-reminder p { margin: 5px 0 0; color: #675329; font-size: 13px; line-height: 1.65; }
.deadline-notice-actions { display: flex; justify-content: flex-end; border-top: 1px solid var(--line); padding: 14px 30px 18px; background: #f8fafb; }
.deadline-notice-actions button { min-width: 132px; }

.group-emergency-dialog { width: min(650px, calc(100% - 28px)); max-height: min(90vh, 760px); margin: auto; overflow: auto; border: 0; border-radius: 8px; padding: 0; color: var(--ink); background: var(--white); box-shadow: 0 28px 80px rgba(7, 27, 45, .34); }
.group-emergency-dialog::backdrop { background: rgba(7, 27, 45, .72); backdrop-filter: blur(3px); }
.group-emergency-accent { height: 8px; background: var(--red-600); }
.group-emergency-head { position: relative; display: flex; align-items: flex-start; gap: 17px; padding: 25px 27px 21px; color: var(--white); background: var(--navy-900); }
.group-emergency-icon { flex: 0 0 auto; width: 52px; height: 52px; display: grid; place-items: center; color: var(--white); background: var(--red-600); }
.group-emergency-head .eyebrow { color: #f0c65f; font-size: 10px; }
.group-emergency-head h2 { margin: 5px 0 6px; color: var(--white); font-size: 26px; }
.group-emergency-head p { margin: 0; color: #c7d9e4; line-height: 1.6; }
.group-emergency-body { padding: 22px 27px 24px; }
.group-emergency-incident { border-left: 5px solid var(--red-600); padding: 13px 16px; background: #fcedef; }
.group-emergency-incident span, .group-emergency-incident strong { display: block; }
.group-emergency-incident span, .group-emergency-people > span { color: var(--red-700); font-size: 10px; font-weight: 900; }
.group-emergency-incident strong { margin-top: 4px; color: var(--navy-900); font-size: 20px; }
.group-emergency-incident p { margin: 4px 0 0; color: #5d6f7e; }
.group-emergency-people { margin-top: 16px; border: 1px solid #d9e5ec; padding: 15px 16px; background: #f8fafb; }
.group-emergency-people > div { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; }
.group-emergency-people b { border-left: 4px solid var(--teal-700); padding: 7px 10px; color: var(--navy-800); background: #e6f4f1; font-size: 12px; }
.group-emergency-people p { margin: 11px 0 0; color: #425a6e; line-height: 1.7; }
.group-emergency-rules { margin: 17px 0 0; padding-left: 20px; color: #3e566a; line-height: 1.8; }
.group-emergency-actions { display: flex; justify-content: flex-end; border-top: 1px solid var(--line); padding: 14px 27px 18px; background: #f8fafb; }
.group-emergency-inline { display: flex; align-items: flex-start; gap: 12px; margin-top: 17px; border: 1px solid #efcbd0; border-left: 5px solid var(--red-600); padding: 14px 16px; color: #8f2937; background: #fff5f6; }
.group-emergency-inline > span { flex: 0 0 auto; }
.group-emergency-inline strong { color: var(--red-700); }
.group-emergency-inline p { margin: 4px 0 0; color: #4c5f70; line-height: 1.65; }
.group-emergency-inline small { display: block; margin-top: 5px; color: #7d5e64; line-height: 1.55; }
.group-emergency-submit { display: flex; align-items: flex-start; gap: 11px; margin-bottom: 17px; border-left: 5px solid var(--teal-700); padding: 13px 15px; color: #087468; background: #edf8f5; }
.group-emergency-submit p { margin: 4px 0 0; color: #436174; line-height: 1.6; }
.role-member-offline { box-shadow: inset 4px 0 0 var(--red-600) !important; color: #8e3946 !important; background: #faecee !important; }
.role-member-offline b { color: var(--red-700) !important; }
.contribution-emergency-note .input { border-color: #efcbd0; color: #954050; background: #fff3f4; }
.shared-submit-dialog .group-emergency-accent { background: var(--teal-700); }
.shared-submit-dialog .group-emergency-icon { background: var(--teal-700); }
.shared-submit-dialog .group-emergency-incident { border-left-color: var(--teal-700); background: #edf8f5; }
.shared-submit-dialog .group-emergency-incident span { color: var(--teal-700); }
.group-emergency-inline.shared-submit { border-color: #b9dcd4; border-left-color: var(--teal-700); color: var(--teal-700); background: #f0faf7; }
.group-emergency-inline.shared-submit strong { color: var(--teal-700); }

.group-quality-feedback { margin: 16px 0; overflow: hidden; border: 1px solid #cfe0ea; border-left: 5px solid var(--teal-700); border-radius: 8px; background: #f8fbfc; }
.group-quality-feedback > header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 18px 12px; border-bottom: 1px solid #dce7ed; background: var(--white); }
.group-quality-feedback > header span { display: block; color: var(--muted); font-size: 9px; font-weight: 800; }
.group-quality-feedback > header h3 { margin: 3px 0 0; font-size: 18px; }
.group-quality-feedback > header > strong { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 6px 10px; color: #086a5f; background: #dff4ed; font-size: 11px; }
.group-quality-feedback-grid { display: grid; grid-template-columns: 1fr 1fr; }
.group-quality-feedback-grid > div { padding: 15px 18px; }
.group-quality-feedback-grid > div + div { border-left: 1px solid #dce7ed; }
.group-quality-feedback-grid span { display: flex; align-items: center; gap: 6px; color: #24465f; font-size: 12px; font-weight: 800; }
.group-quality-feedback-grid p { margin: 7px 0 0; color: #4f6578; line-height: 1.65; }
.group-quality-evidence { margin: 15px 18px 0; border-left: 4px solid var(--navy-700); padding: 11px 13px; background: #eef4f7; }
.group-quality-evidence span { display: flex; align-items: center; gap: 6px; color: #24465f; font-size: 12px; font-weight: 800; }
.group-quality-evidence p { margin: 6px 0 0; color: #2f465a; line-height: 1.7; font-weight: 700; }
.group-quality-bridge { display: flex; align-items: flex-start; gap: 9px; margin: 0 18px 14px; border-top: 1px dashed #cbdbe4; padding: 12px 2px 0; color: #087468; }
.group-quality-bridge svg { flex: 0 0 auto; margin-top: 2px; }
.group-quality-bridge p { margin: 0; line-height: 1.6; font-weight: 700; }
.group-quality-feedback > footer { padding: 9px 18px; color: #718497; background: #eef4f7; font-size: 10px; }
.group-quality-operator { margin: 0 18px 13px; border-left: 3px solid var(--gold-500); padding: 8px 10px; color: #6d531b; background: #fff8e7; line-height: 1.55; }
.group-quality-feedback.quality-solid { border-left-color: var(--blue-600); }
.group-quality-feedback.quality-solid > header > strong { color: #185d90; background: #e3f0fa; }
.group-quality-feedback.quality-basic { border-left-color: var(--gold-500); }
.group-quality-feedback.quality-basic > header > strong { color: #8c6000; background: #fff2d1; }
.group-quality-feedback.quality-weak { border-left-color: var(--red-600); }
.group-quality-feedback.quality-weak > header > strong { color: #a62b3d; background: #fae7ea; }

.group-feedback-dialog { width: min(760px, calc(100% - 28px)); max-height: min(88vh, 780px); margin: auto; overflow: auto; border: 0; border-radius: 8px; padding: 0; color: var(--ink); background: var(--white); box-shadow: 0 28px 80px rgba(7, 27, 45, .28); }
.group-feedback-dialog::backdrop { background: rgba(7, 27, 45, .66); backdrop-filter: blur(3px); }
.group-feedback-popup-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 7px solid var(--teal-700); padding: 24px 26px 20px; background: #f8fbfc; }
.group-feedback-popup-head span { color: var(--teal-700); font-size: 11px; font-weight: 800; }
.group-feedback-popup-head h2 { margin: 5px 0 4px; font-size: 25px; }
.group-feedback-popup-head p { margin: 0; color: var(--muted); }
.group-feedback-popup-head > strong { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 8px 12px; color: #086a5f; background: #dff4ed; font-size: 12px; }
.group-feedback-popup-body { padding: 22px 26px; }
.group-feedback-conclusion { border-left: 4px solid var(--navy-700); padding: 11px 14px; background: #eef4f7; }
.group-feedback-conclusion span, .group-feedback-popup-grid span { display: flex; align-items: center; gap: 6px; color: #24465f; font-size: 12px; font-weight: 800; }
.group-feedback-conclusion p { margin: 5px 0 0; color: #2f465a; font-size: 16px; line-height: 1.6; font-weight: 800; }
.group-feedback-popup-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.group-feedback-popup-grid section { border: 1px solid #d9e5ec; border-radius: 7px; padding: 16px; background: #fbfcfd; }
.group-feedback-popup-grid p { margin: 8px 0 0; color: #4f6578; line-height: 1.7; }
.group-feedback-bridge { display: flex; align-items: flex-start; gap: 9px; margin-top: 14px; border: 1px dashed #b9d8d1; padding: 11px 13px; color: #087468; background: #f1faf7; }
.group-feedback-bridge svg { flex: 0 0 auto; margin-top: 2px; }
.group-feedback-bridge p { margin: 0; line-height: 1.65; font-weight: 700; }
.group-feedback-admin { margin-top: 14px; border-left: 4px solid var(--gold-500); padding: 10px 13px; color: #6d531b; background: #fff8e7; }
.group-feedback-admin p { margin: 4px 0 0; line-height: 1.6; }
.group-feedback-private { display: flex; align-items: center; gap: 6px; margin: 15px 0 0; color: #718497; font-size: 11px; }
.group-feedback-popup-actions { display: flex; justify-content: flex-end; gap: 9px; border-top: 1px solid var(--line); padding: 14px 26px 18px; background: var(--white); }
.group-feedback-dialog.quality-solid .group-feedback-popup-head { border-top-color: var(--blue-600); }
.group-feedback-dialog.quality-solid .group-feedback-popup-head > strong { color: #185d90; background: #e3f0fa; }
.group-feedback-dialog.quality-basic .group-feedback-popup-head { border-top-color: var(--gold-500); }
.group-feedback-dialog.quality-basic .group-feedback-popup-head > strong { color: #8c6000; background: #fff2d1; }
.group-feedback-dialog.quality-weak .group-feedback-popup-head { border-top-color: var(--red-600); }
.group-feedback-dialog.quality-weak .group-feedback-popup-head > strong { color: #a62b3d; background: #fae7ea; }

@media (max-width: 720px) {
  .final-video-current video { max-height: 310px; }
  .final-video-meta { align-items: flex-start; flex-direction: column; }
  .final-video-meta > div { width: 100%; justify-content: flex-end; }
  .deadline-notice-dialog { width: calc(100% - 24px); }
  .deadline-notice-body { padding: 25px 22px 20px; }
  .deadline-notice-icon { top: 23px; right: 21px; width: 44px; height: 44px; }
  .deadline-notice-body h2 { margin-top: 6px; font-size: 22px; }
  .deadline-notice-date strong { font-size: 25px; }
  .deadline-notice-actions { padding: 12px 22px max(16px, env(safe-area-inset-bottom)); }
  .deadline-notice-actions button { width: 100%; }
  .group-emergency-dialog { width: 100%; max-height: 94vh; margin: auto 0 0; border-radius: 8px 8px 0 0; }
  .group-emergency-head { gap: 12px; padding: 21px 18px 18px; }
  .group-emergency-icon { width: 44px; height: 44px; }
  .group-emergency-head h2 { font-size: 21px; }
  .group-emergency-body { padding: 17px 18px 20px; }
  .group-emergency-actions { padding: 12px 18px max(14px, env(safe-area-inset-bottom)); }
  .group-emergency-actions button { width: 100%; }
  .speech-card-output img { width: 100%; max-height: none; }
  .speech-card-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .speech-card-actions > * { width: 100%; }
  .speech-share-link > div { display: grid; grid-template-columns: 1fr 1fr; }
  .speech-share-link > div > * { width: 100%; }
  .speech-share-link > div .ghost-button { grid-column: 1 / -1; }
  .group-quality-feedback-grid { grid-template-columns: 1fr; }
  .group-quality-feedback-grid > div + div { border-top: 1px solid #dce7ed; border-left: 0; }
  .group-feedback-dialog { width: 100%; max-height: 92vh; margin: auto 0 0; border-radius: 8px 8px 0 0; }
  .group-feedback-popup-head { align-items: flex-start; flex-direction: column; gap: 12px; padding: 20px 18px 16px; }
  .group-feedback-popup-head h2 { font-size: 21px; }
  .group-feedback-popup-body { padding: 17px 18px; }
  .group-feedback-popup-grid { grid-template-columns: 1fr; }
  .group-feedback-popup-actions { padding: 12px 18px max(14px, env(safe-area-inset-bottom)); }
  .group-feedback-popup-actions button { flex: 1; padding: 0 9px; }
}

.admin-body { background: #eef3f6; }
.admin-shell { min-height: 100vh; }
.admin-topbar { color: var(--white); background: var(--navy-900); }
.admin-topbar .topbar-inner { max-width: 1500px; height: 72px; }
.admin-topbar .brand-copy span { color: #b9cfdd; }
.admin-topbar .ghost-button { color: #d9e8f1; }
.admin-page { width: min(calc(100% - 32px), 1460px); margin: 0 auto; padding: 26px 0 48px; }
.admin-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.admin-heading h1 { margin: 0 0 5px; font-size: 27px; }
.admin-heading p { margin: 0; color: var(--muted); }
.button-row { display: flex; flex-wrap: wrap; gap: 9px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.metric-card { padding: 18px; border-top: 4px solid var(--navy-700); }
.metric-card:nth-child(2) { border-top-color: var(--teal-700); }
.metric-card:nth-child(3) { border-top-color: var(--gold-500); }
.metric-card:nth-child(4) { border-top-color: var(--red-600); }
.metric-card span { color: var(--muted); font-size: 13px; }
.metric-card strong { display: block; margin-top: 5px; font-size: 28px; }
.group-week-dashboard { margin-top: 14px; border: 1px solid var(--line); border-radius: 8px; padding: 15px 17px 17px; background: var(--white); }
.group-week-dashboard > header { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 11px; }
.group-week-dashboard h2 { margin: 2px 0 0; font-size: 18px; }
.group-week-dashboard header p { margin: 0; color: var(--muted); font-size: 12px; }
.group-week-dashboard-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.group-week-dashboard-grid button,
.group-week-dashboard-grid article { border: 1px solid #d9e4eb; border-radius: 6px; padding: 12px 14px; text-align: left; color: var(--ink); background: #f8fafb; }
.group-week-dashboard-grid button:hover { border-color: var(--teal-700); background: #f2faf8; }
.group-week-dashboard-grid span, .group-week-dashboard-grid em { display: block; color: var(--muted); font-size: 10px; font-style: normal; }
.group-week-dashboard-grid strong { display: block; margin: 5px 0 7px; font-size: 23px; }
.group-week-dashboard-grid strong small { color: var(--muted); font-size: 12px; }
.personal-task-dashboard .group-week-progress i { background: var(--navy-700); }
.group-week-progress { height: 5px; margin-bottom: 7px; overflow: hidden; border-radius: 999px; background: #dfe8ed; }
.group-week-progress i { display: block; height: 100%; border-radius: inherit; background: var(--teal-700); }
.group-work-archive { margin-top: 18px; }
.group-work-archive-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; border: 1px solid var(--line); border-bottom: 0; border-radius: 8px 8px 0 0; padding: 20px; background: var(--white); }
.group-work-archive-head h2 { margin: 4px 0; font-size: 23px; }
.group-work-archive-head p { margin: 0; color: var(--muted); }
.group-work-week-tabs { display: flex; gap: 6px; }
.group-work-week-tabs button { min-height: 38px; border: 1px solid var(--line); border-radius: 5px; padding: 0 12px; color: var(--muted); background: var(--white); font-weight: 800; }
.group-work-week-tabs button span { margin-left: 4px; font-size: 10px; }
.group-work-week-tabs button.active { border-color: var(--navy-800); color: var(--white); background: var(--navy-800); }
.group-work-insight { display: grid; grid-template-columns: 160px minmax(0, 1.4fr) minmax(260px, .8fr); gap: 0; border: 1px solid var(--line); background: #f8fbfc; }
.group-work-insight > div { padding: 20px; }
.group-work-insight > div + div { border-left: 1px solid var(--line); }
.group-work-rate { display: grid; place-content: center; text-align: center; }
.group-work-rate strong { color: var(--teal-700); font-size: 38px; }
.group-work-rate span, .group-work-follow > span { color: var(--muted); font-size: 11px; font-weight: 800; }
.group-work-analysis h3 { margin: 0 0 7px; font-size: 17px; }
.group-work-analysis p, .group-work-follow p { margin: 0; color: #44586d; line-height: 1.65; }
.group-work-analysis-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.group-work-analysis-tags span { border-radius: 999px; padding: 5px 8px; color: #176a64; background: #e1f4ef; font-size: 10px; font-weight: 800; }
.group-work-follow strong { display: block; margin: 5px 0 8px; }
.group-work-follow small { display: block; margin-top: 8px; color: var(--gold-700); font-weight: 800; }
.group-work-archive-list { border: 1px solid var(--line); border-top: 0; border-radius: 0 0 8px 8px; overflow: hidden; background: var(--white); }
.group-work-archive-columns { display: grid; grid-template-columns: 190px minmax(260px, 1fr) minmax(210px, .8fr) 150px; gap: 16px; padding: 10px 20px 10px 24px; border-bottom: 1px solid var(--line); color: #60758a; background: #eef4f7; font-size: 10px; font-weight: 800; }
.group-work-archive-columns span:last-child { text-align: right; }
.group-work-archive-row { display: grid; grid-template-columns: 190px minmax(260px, 1fr) minmax(210px, .8fr) 150px; gap: 16px; align-items: center; min-height: 118px; padding: 17px 20px; border-left: 4px solid #c9d4dc; }
.group-work-archive-row + .group-work-archive-row { border-top: 1px solid var(--line); }
.group-work-archive-row.status-submitted { border-left-color: var(--gold-500); }
.group-work-archive-row.status-approved { border-left-color: var(--teal-700); }
.group-work-archive-row.status-returned { border-left-color: var(--red-600); }
.group-work-archive-identity strong, .group-work-archive-identity span, .group-work-archive-identity small, .group-work-archive-summary span, .group-work-archive-links span { display: block; }
.group-work-archive-identity strong { font-size: 18px; }
.group-work-archive-identity span { margin: 4px 0; color: #425a70; font-size: 12px; }
.group-work-archive-identity small, .group-work-archive-summary span, .group-work-archive-links span { color: var(--muted); font-size: 10px; }
.group-work-archive-identity .group-work-archive-members { margin-top: 5px; color: #536b80; line-height: 1.55; overflow-wrap: anywhere; }
.group-work-archive-summary p { margin: 5px 0 0; color: #2f4256; line-height: 1.6; }
.group-work-archive-summary > small { display: block; margin-top: 6px; color: #6b7f91; font-size: 10px; }
.group-work-quality { display: inline-flex; margin-left: 5px; border-radius: 999px; padding: 3px 7px; font-size: 9px; font-weight: 800; }
.group-work-quality.quality-deep { color: #086a5f; background: #dff4ed; }
.group-work-quality.quality-solid { color: #185d90; background: #e3f0fa; }
.group-work-quality.quality-basic { color: #8c6000; background: #fff2d1; }
.group-work-quality.quality-weak { color: #a62b3d; background: #fae7ea; }
.group-work-archive-links { display: grid; gap: 7px; }
.group-work-archive-links a { display: inline-flex; align-items: center; gap: 6px; width: fit-content; color: var(--blue-600); font-size: 12px; font-weight: 800; }
.group-work-archive-action { display: grid; justify-items: end; gap: 7px; }
.group-work-archive-action small { color: var(--muted); font-size: 10px; }
.group-work-archive-action .feedback-card-button { display: inline-flex; align-items: center; gap: 5px; border-color: #b9d8d1; color: #087468; background: #f0faf7; }
.feedback-card-preview-dialog { width: min(780px, calc(100% - 24px)); }
.feedback-card-preview { padding: 18px; background: #e8f0f4; }
.feedback-card-preview img { display: block; width: min(100%, 560px); height: auto; margin: 0 auto; border-radius: 7px; box-shadow: 0 14px 35px rgba(13, 42, 64, .18); }

.mentor-feedback-page { display: grid; gap: 18px; margin-top: 18px; }
.mentor-feedback-entry, .mentor-feedback-archive { border: 1px solid var(--line); border-radius: 8px; background: var(--white); overflow: hidden; }
.mentor-feedback-entry > header, .mentor-feedback-archive > header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 22px; border-bottom: 1px solid var(--line); background: #f8fbfc; }
.mentor-feedback-entry h2, .mentor-feedback-archive h2 { margin: 4px 0; font-size: 23px; }
.mentor-feedback-entry p, .mentor-feedback-archive p { margin: 0; color: var(--muted); }
.mentor-feedback-entry-stats { width: 190px; flex: 0 0 190px; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: baseline; gap: 2px 9px; border-left: 4px solid var(--teal-700); padding: 9px 12px; background: #edf7f5; }
.mentor-feedback-entry-stats strong { color: var(--teal-700); font-size: 24px; }
.mentor-feedback-entry-stats span { color: var(--muted); font-size: 10px; font-weight: 800; }
.mentor-feedback-form { padding: 22px; }
.mentor-feedback-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.mentor-feedback-form-grid > label { display: grid; align-content: start; gap: 7px; }
.mentor-feedback-form-grid > label > span { color: #35465c; font-size: 12px; font-weight: 800; }
.mentor-feedback-form-grid .full { grid-column: 1 / -1; }
.mentor-feedback-form-grid .textarea { min-height: 100px; margin: 0; }
.mentor-feedback-form-grid .textarea.compact { min-height: 72px; }
.mentor-feedback-form-grid .mentor-answer-input { min-height: 140px; }
.mentor-visibility { margin: 0; border: 0; padding: 0; }
.mentor-visibility legend { margin-bottom: 8px; color: #35465c; font-size: 12px; font-weight: 800; }
.mentor-visibility-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.mentor-visibility-options label { position: relative; cursor: pointer; }
.mentor-visibility-options input { position: absolute; opacity: 0; pointer-events: none; }
.mentor-visibility-options span { min-height: 72px; display: grid; align-content: center; gap: 4px; border: 1px solid var(--line); padding: 12px 14px; background: #f8fafb; }
.mentor-visibility-options strong, .mentor-visibility-options small { display: block; }
.mentor-visibility-options strong { color: var(--navy-800); }
.mentor-visibility-options small { color: var(--muted); font-size: 10px; }
.mentor-visibility-options input:checked + span { border: 2px solid var(--teal-700); padding: 11px 13px; background: #edf8f5; box-shadow: 0 0 0 3px rgba(0, 132, 121, .08); }
.mentor-visible-check { grid-template-columns: 20px 1fr !important; align-items: center; border: 1px solid #cfe0e9; border-radius: 6px; padding: 10px 12px; background: #f3f8fa; }
.mentor-visible-check input { width: 17px; height: 17px; accent-color: var(--teal-700); }
.mentor-visible-check strong, .mentor-visible-check small { display: block; }
.mentor-visible-check small { margin-top: 2px; color: var(--muted); font-size: 10px; font-weight: 500; line-height: 1.4; }
.mentor-feedback-form-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 18px; }
.mentor-feedback-archive > header .input { width: min(380px, 42vw); }
.mentor-feedback-list { display: grid; }
.mentor-feedback-item { display: grid; grid-template-columns: 150px minmax(0, 1fr) 150px; gap: 20px; align-items: start; padding: 20px 22px; border-left: 5px solid #c8d6df; }
.mentor-feedback-item + .mentor-feedback-item { border-top: 1px solid var(--line); }
.mentor-feedback-item.is-unread { border-left-color: var(--gold-500); background: #fffdf8; }
.mentor-feedback-person strong, .mentor-feedback-person span, .mentor-feedback-person small, .mentor-feedback-meta span, .mentor-feedback-meta strong, .mentor-feedback-meta small { display: block; }
.mentor-feedback-person strong { color: var(--navy-800); font-size: 17px; }
.mentor-feedback-person span { margin-top: 4px; color: #526a7e; font-size: 11px; }
.mentor-feedback-person small { margin-top: 7px; color: var(--muted); }
.mentor-feedback-content > span { color: var(--teal-700); font-size: 10px; font-weight: 800; }
.mentor-feedback-content h3 { margin: 6px 0 9px; color: #233b51; font-size: 16px; line-height: 1.55; }
.mentor-feedback-content > p { color: #4a6074; line-height: 1.7; white-space: pre-wrap; }
.mentor-feedback-content blockquote { margin: 12px 0 0; border-left: 3px solid var(--gold-500); padding: 8px 11px; color: #6b5522; background: #fff8e7; line-height: 1.6; }
.mentor-feedback-content blockquote b { display: block; margin-bottom: 3px; font-size: 10px; }
.mentor-tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 11px; }
.mentor-tag-row em { border-radius: 999px; padding: 4px 7px; color: #176a64; background: #e1f4ef; font-size: 9px; font-style: normal; font-weight: 800; }
.mentor-feedback-meta { display: grid; justify-items: start; gap: 4px; }
.mentor-feedback-meta span, .mentor-feedback-meta small { color: var(--muted); font-size: 10px; }
.mentor-feedback-meta strong { color: var(--navy-800); }
.mentor-feedback-meta button { margin-top: 10px; min-height: 34px; padding: 0 11px; font-size: 11px; }
.mentor-quick-visibility { display: grid; grid-template-columns: repeat(3, auto); gap: 3px; margin-top: 8px; padding: 3px; background: #edf2f5; }
.mentor-quick-visibility button { min-height: 29px; margin: 0; border: 0; padding: 0 7px; color: #647689; background: transparent; font-size: 9px; font-weight: 800; cursor: pointer; }
.mentor-quick-visibility button.active { color: #fff; background: var(--teal-700); }
.mentor-quick-visibility button[data-mentor-visibility="all"].active { color: #5e4100; background: #f5ca5d; }
.mentor-quick-visibility button[data-mentor-visibility="admin"].active { background: #718092; }
.mentor-feedback-empty { padding: 56px 24px; text-align: center; }
.mentor-feedback-empty > span { display: inline-grid; place-items: center; width: 54px; height: 54px; color: var(--teal-700); background: #e1f4ef; }
.mentor-feedback-empty h3 { margin: 13px 0 5px; }
.mentor-feedback-empty p { margin: 0; color: var(--muted); }
.mentor-student-target { margin: 7px 0 0; color: var(--teal-700); font-size: 12px; font-weight: 800; }
.mentor-panorama-reflection { margin: 0 22px 20px; border-left: 3px solid var(--teal-700); padding: 12px 14px; background: #edf7f5; }
.mentor-panorama-reflection span { color: var(--teal-700); font-size: 11px; font-weight: 800; }
.mentor-panorama-reflection p { margin: 6px 0 0; color: #344d61; line-height: 1.7; white-space: pre-wrap; }
.mentor-panorama-pending { margin: 0 22px 20px; padding: 12px 14px; color: var(--muted); background: #f4f7f9; font-size: 12px; }
.mentor-quote-button { color: var(--teal-700); }
.admin-tools { display: grid; grid-template-columns: minmax(220px, 1fr) 180px 260px 190px; gap: 10px; margin: 18px 0 12px; }
.admin-view-tabs { display: inline-flex; gap: 4px; margin-top: 20px; border: 1px solid var(--line); border-radius: 7px; padding: 4px; background: var(--white); }
.admin-view-tabs button { min-height: 38px; border: 0; border-radius: 5px; display: inline-flex; align-items: center; gap: 7px; padding: 0 16px; color: var(--muted); background: transparent; font-weight: 800; }
.admin-view-tabs button.active { color: var(--white); background: var(--navy-800); }
.admin-honor-center { display: grid; gap: 14px; margin-top: 12px; }
.admin-honor-hero { min-height: 132px; border-left: 6px solid var(--gold-500); padding: 24px 26px; display: grid; grid-template-columns: 62px minmax(0,1fr) auto; align-items: center; gap: 20px; color: #fff; background: linear-gradient(118deg,var(--navy-900),#164c72 66%,#0a756d); }
.admin-honor-trophy { width: 62px; height: 62px; display: grid; place-items: center; color: #6d4b06; background: linear-gradient(145deg,#fff1ad,#e3ad35); box-shadow: 0 10px 24px rgba(0,0,0,.18); }
.admin-honor-hero .eyebrow { color: #8dd8d3; }
.admin-honor-hero h2 { margin: 4px 0 6px; font-size: 28px; }
.admin-honor-hero p { margin: 0; color: #d4e4ed; font-size: 12px; }
.admin-honor-preview { min-height: 34px; border: 1px solid rgba(255,255,255,.26); padding: 0 11px; display: inline-flex; align-items: center; gap: 6px; color: #f6fbfd; background: rgba(255,255,255,.08); font-size: 10px; font-weight: 800; }
.admin-honor-section { border: 1px solid var(--line); padding: 20px; background: var(--white); }
.admin-honor-heading { margin-bottom: 14px; display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.admin-honor-heading span { color: var(--teal-700); font-size: 9px; font-weight: 900; letter-spacing: .8px; }
.admin-honor-heading h3 { margin: 3px 0 0; color: var(--navy-800); font-size: 19px; }
.admin-honor-heading p { margin: 0; color: var(--muted); font-size: 10px; }
.admin-honor-ranking { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 9px; }
.admin-honor-ranking article { min-height: 142px; border: 1px solid #d6e2e9; border-top: 4px solid var(--teal-700); padding: 13px; display: grid; grid-template-columns: 1fr auto; align-content: start; background: #f8fbfc; }
.admin-honor-ranking article.rank-1 { border-color: #dec878; border-top-color: var(--gold-500); background: linear-gradient(145deg,#fff7d9,#fffdfa); }
.admin-honor-ranking article.rank-2 { border-top-color: #7e93a5; }
.admin-honor-ranking article.rank-3 { border-top-color: #b77d42; }
.admin-honor-ranking article > span { color: var(--gold-700); font-size: 9px; font-weight: 900; }
.admin-honor-ranking article > div { color: var(--gold-700); }
.admin-honor-ranking article > strong { grid-column: 1 / -1; margin-top: 16px; color: var(--navy-800); font-size: 19px; }
.admin-honor-ranking article > b { grid-column: 1 / -1; margin-top: 8px; color: var(--teal-700); font-size: 25px; }
.admin-honor-ranking article > b small { margin-left: 2px; color: var(--muted); font-size: 9px; }
.admin-honor-columns { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(340px,.85fr); gap: 14px; align-items: start; }
.admin-honor-speech-list, .admin-honor-award-list { border: 1px solid var(--line); }
.admin-honor-speech-list article { min-height: 69px; padding: 11px 13px; display: grid; grid-template-columns: 34px minmax(0,1fr) auto; align-items: center; gap: 12px; }
.admin-honor-speech-list article + article, .admin-honor-award-list article + article { border-top: 1px solid var(--line); }
.admin-honor-speech-list article > span { width: 32px; height: 32px; display: grid; place-items: center; color: var(--teal-700); background: #e4f3f1; font-size: 9px; font-weight: 900; }
.admin-honor-speech-list strong { color: var(--navy-800); font-size: 13px; }
.admin-honor-speech-list p { margin: 4px 0 0; color: #4d6376; font-size: 11px; line-height: 1.4; }
.admin-honor-speech-list a { min-height: 32px; padding: 0 10px; display: inline-flex; align-items: center; gap: 5px; color: #fff; background: var(--navy-800); font-size: 9px; font-weight: 900; text-decoration: none; }
.admin-honor-award-list article { min-height: 78px; padding: 12px; display: grid; grid-template-columns: 42px minmax(0,1fr); align-items: center; gap: 11px; }
.admin-honor-award-list article > span { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: #8b6104; background: linear-gradient(145deg,#fff5cb,#efcb65); }
.admin-honor-award-list small { display: block; color: var(--gold-700); font-size: 9px; font-weight: 900; }
.admin-honor-award-list strong { display: block; margin-top: 3px; color: var(--navy-800); font-size: 13px; line-height: 1.45; }
.admin-honor-award-list p { margin: 3px 0 0; color: var(--muted); font-size: 9px; }
.admin-honor-long-term { border: 1px solid #e4d49c; border-left: 6px solid var(--gold-500); padding: 17px 19px; display: grid; grid-template-columns: 46px 230px 1fr; align-items: center; gap: 14px; background: linear-gradient(110deg,#fff8e5,#eff8f5); }
.admin-honor-long-term > span { width: 44px; height: 44px; display: grid; place-items: center; color: #805a06; background: #ffe9ab; }
.admin-honor-long-term small { color: var(--gold-700); font-size: 8px; font-weight: 900; }
.admin-honor-long-term strong { display: block; margin-top: 2px; color: #785713; font-size: 15px; }
.admin-honor-long-term p { margin: 3px 0 0; color: var(--muted); font-size: 9px; }
.admin-honor-name-list { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.admin-honor-name-list b { border: 1px solid #e1d3a4; padding: 6px 9px; color: #4f5f58; background: rgba(255,255,255,.75); font-size: 10px; }
.admin-honor-groups { border: 1px solid #d8bd65; border-left: 6px solid var(--gold-500); padding: 20px; color: #fff; background: linear-gradient(115deg,var(--navy-900),#12526a 70%,#08766d); }
.admin-honor-groups > header { display: flex; align-items: center; gap: 13px; }
.admin-honor-groups > header > span { width: 45px; height: 45px; display: grid; place-items: center; color: #765007; background: #f4ce67; }
.admin-honor-groups header small { color: #8bdcd6; font-size: 8px; font-weight: 900; }
.admin-honor-groups header strong { display: block; margin-top: 2px; font-size: 16px; }
.admin-honor-groups header p { margin: 3px 0 0; color: #c8dfe5; font-size: 9px; }
.admin-honor-groups > div { margin-top: 15px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.admin-honor-groups article { padding: 13px 14px; display: grid; grid-template-columns: 1fr auto; align-items: center; border: 1px solid rgba(244,206,103,.36); background: rgba(255,255,255,.07); }
.admin-honor-groups article > span { font-size: 17px; font-weight: 900; }
.admin-honor-groups article > strong { color: #f6d57b; font-size: 22px; }
.admin-honor-groups article > strong small { font-size: 9px; }
.admin-honor-groups article > p { grid-column: 1 / -1; margin: 7px 0 0; color: #d8e7eb; font-size: 10px; }
.score-center { margin-top: 12px; }
.score-center-rule { border-left: 6px solid var(--gold-500); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 21px 23px; color: var(--white); background: var(--navy-800); }
.score-center-rule h2 { margin: 4px 0 7px; font-size: 24px; }
.score-center-rule p { max-width: 820px; margin: 0; color: #c7d7e2; font-size: 12px; line-height: 1.65; }
.score-center-rule .eyebrow { color: #70d3c8; }
.score-weight-strip { display: grid; grid-template-columns: repeat(2, minmax(110px, 1fr)); gap: 6px; }
.score-weight-strip span { border: 1px solid rgba(255,255,255,.18); min-height: 54px; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 7px; padding: 9px 11px; color: #d7e3ea; font-size: 10px; }
.score-weight-strip b { color: #fff; font-size: 17px; }
.score-center-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.score-center-metrics article { border: 1px solid var(--line); border-top: 4px solid var(--navy-700); min-height: 118px; padding: 16px; background: var(--white); }
.score-center-metrics article:nth-child(2) { border-top-color: var(--teal-700); }
.score-center-metrics article:nth-child(3) { border-top-color: var(--gold-500); }
.score-center-metrics article:nth-child(4) { border-top-color: var(--red-600); }
.score-center-metrics span, .score-center-metrics small { display: block; color: var(--muted); font-size: 10px; }
.score-center-metrics strong { display: block; margin: 7px 0 5px; color: var(--navy-800); font-size: 30px; }
.score-center-metrics strong small { display: inline; margin-left: 3px; font-size: 12px; }
.score-grade-overview { border: 1px solid var(--line); display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 10px; padding: 12px 14px; background: #f8fbfc; }
.score-grade-overview > span { margin-right: 4px; color: var(--navy-800); font-size: 11px; font-weight: 900; }
.score-grade-overview b { border-radius: 4px; padding: 5px 8px; color: #0b6550; background: #e1f3ec; font-size: 10px; }
.score-grade-overview b.is-pending { color: #755718; background: #f8ebbf; }
.score-grade-overview small { margin-left: auto; color: var(--muted); font-size: 10px; }
.score-center-tools { display: grid; grid-template-columns: minmax(260px, 520px) 210px; gap: 10px; margin: 14px 0 10px; }
.score-center-table-wrap { max-height: calc(100vh - 390px); min-height: 430px; overflow: auto; border: 1px solid var(--line); background: var(--white); }
.score-center-table { width: 100%; min-width: 1120px; border-collapse: separate; border-spacing: 0; font-size: 11px; }
.score-center-table th, .score-center-table td { border-right: 1px solid #e3ebf0; border-bottom: 1px solid #e3ebf0; padding: 10px 9px; text-align: center; vertical-align: middle; }
.score-center-table thead th { position: sticky; z-index: 2; top: 0; color: #405568; background: #f0f5f7; font-weight: 900; }
.score-center-table thead small { color: var(--muted); font-size: 8px; }
.score-center-table th:nth-child(2), .score-center-table td:nth-child(2) { min-width: 210px; text-align: left; }
.score-center-table th:nth-child(3), .score-center-table td:nth-child(3) { min-width: 225px; text-align: left; }
.score-center-table tbody tr.is-qualified { background: #fbfffd; }
.score-center-table tbody tr:hover { background: #f2f8fa; }
.score-center-table td > strong { color: var(--navy-800); font-size: 15px; }
.score-center-table td > small { display: block; margin-top: 2px; color: var(--muted); font-size: 8px; }
.manual-score-pending { display: inline-flex; border-radius: 4px; padding: 5px 7px; color: #8b6700; background: #fff0bd; font-size: 10px; font-weight: 900; }
.score-center-table .student-meta { display: grid; gap: 2px; margin-top: 3px; color: var(--muted); font-size: 9px; }
.score-rank { display: inline-grid; width: 30px; height: 30px; place-items: center; color: var(--navy-800); background: #edf3f6; }
.score-center-table tr:nth-child(-n+3) .score-rank { color: #694800; background: #f5d875; }
.requirement-checks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.requirement-checks span { border-radius: 4px; padding: 6px 4px; color: #778594; background: #edf1f3; font-size: 8px; font-weight: 800; text-align: center; white-space: nowrap; }
.requirement-checks span.done { color: #08654e; background: #ddf1e9; }
.score-current-total { font-size: 18px !important; }
.score-center-table .total-grade { min-width: 54px; min-height: 25px; font-size: 10px; }
.matrix-wrap { max-height: calc(100vh - 330px); min-height: 420px; overflow: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
.matrix { width: max-content; min-width: 100%; border-collapse: separate; border-spacing: 0; font-size: 12px; }
.matrix th, .matrix td { min-width: 68px; height: 50px; border-right: 1px solid #e2eaf0; border-bottom: 1px solid #e2eaf0; padding: 6px; text-align: center; }
.matrix thead th { position: sticky; z-index: 3; top: 0; color: #34465a; background: #f3f7f9; font-weight: 800; }
.matrix .sticky-name { position: sticky; z-index: 2; left: 0; min-width: 210px; max-width: 210px; text-align: left; background: var(--white); box-shadow: 5px 0 8px rgba(22,54,82,.05); }
.matrix thead .sticky-name { z-index: 4; background: #f3f7f9; }
.matrix .student-name { display: block; color: var(--ink); font-size: 13px; }
.matrix-student-cell { display: grid; gap: 5px; }
.student-score-button { width: 100%; border: 0; padding: 0; text-align: left; color: inherit; background: transparent; }
.student-score-button:hover .student-name { color: var(--blue-600); }
.matrix .student-meta { display: grid; gap: 2px; margin-top: 2px; color: var(--muted); font-size: 10px; line-height: 1.35; }
.matrix .student-meta > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.matrix .student-advisor { color: #46667d; font-weight: 700; }
.student-admin-note { width: 100%; min-width: 0; border: 0; border-left: 3px solid #c8d4dc; display: grid; grid-template-columns: 14px minmax(0, 1fr); align-items: center; gap: 4px; padding: 4px 6px; text-align: left; color: #71808e; background: #f2f5f7; font-size: 9px; line-height: 1.35; }
.student-admin-note span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.student-admin-note:hover { border-left-color: var(--teal-700); color: var(--teal-700); background: #edf8f5; }
.student-admin-note.has-note { border-left-color: var(--gold-500); color: #775716; background: #fff8e7; font-weight: 800; }
.student-note-dialog { width: min(620px, calc(100% - 24px)); }
.student-note-context { margin-bottom: 18px; border-left: 4px solid var(--teal-700); padding: 12px 14px; background: #eef8f6; }
.student-note-context strong, .student-note-context small { display: block; }
.student-note-context .student-meta { display: flex; flex-wrap: wrap; gap: 5px 12px; margin-top: 4px; color: #526a7e; font-size: 11px; }
.student-note-context small { margin-top: 8px; color: var(--muted); }
.student-note-dialog .textarea { min-height: 150px; }
.matrix-cell { width: 42px; height: 34px; border: 0; border-radius: 6px; color: var(--muted); background: #eef2f4; font-size: 11px; font-weight: 800; }
.matrix-cell.open, .matrix-cell.locked, .matrix-cell.closed { background: #eef2f4; }
.matrix-cell.submitted, .matrix-cell.approved { color: #096349; background: #dff3e9; }
.matrix-cell.late, .matrix-cell.make_up, .matrix-cell.draft { color: #875900; background: #fff0cf; }
.matrix-cell.returned, .matrix-cell.invalid { color: #9b2637; background: #fde7ea; }
.matrix-empty { padding: 48px; text-align: center; color: var(--muted); }
.content-tools { display: grid; gap: 10px; margin: 18px 0 12px; }
.content-tools-single { grid-template-columns: minmax(220px, 520px); }
.content-matrix-wrap { max-height: calc(100vh - 370px); }
.content-matrix-cell { position: relative; width: 58px; height: 34px; border: 0; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; gap: 3px; font-size: 10px; font-weight: 800; }
.content-matrix-cell.submitted, .content-matrix-cell.approved { color: #096349; background: #dff3e9; }
.content-matrix-cell.late { color: #875900; background: #fff0cf; }
.content-matrix-cell.returned, .content-matrix-cell.invalid { color: #9b2637; background: #fde7ea; }
.content-matrix-cell:hover { box-shadow: inset 0 0 0 1px currentColor; }
.content-matrix-cell.has-mentor-answer { box-shadow: inset 0 0 0 2px var(--red-600), 0 0 0 1px rgba(196,55,73,.16); }
.content-matrix-cell.has-mentor-answer:hover { box-shadow: inset 0 0 0 2px var(--red-600), 0 0 0 2px rgba(196,55,73,.2); }
.mentor-answer-mark { position: absolute; top: -8px; right: -8px; min-width: 29px; height: 16px; border: 2px solid var(--white); border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; padding: 0 3px; color: var(--white); background: var(--red-600); font-size: 8px; font-weight: 900; line-height: 1; white-space: nowrap; }
.content-cell-empty { color: #bec9d1; }
.report-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 18px 0 12px; }
.report-toolbar > div { display: flex; align-items: center; gap: 10px; }
.report-toolbar small { color: var(--muted); }
.report-lock-state { min-height: 28px; border-left: 4px solid var(--gold-500); display: inline-flex; align-items: center; padding: 0 10px; color: #74530d; background: #fff7df; font-size: 12px; font-weight: 800; }
.report-lock-state.locked { border-left-color: var(--teal-700); color: #096349; background: #e5f5f1; }
.report-summary-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.report-summary-grid article { min-height: 120px; border: 1px solid var(--line); border-top: 4px solid var(--navy-700); border-radius: 7px; padding: 16px; background: var(--white); }
.report-summary-grid article:nth-child(2) { border-top-color: var(--teal-700); }
.report-summary-grid article:nth-child(3) { border-top-color: var(--red-600); }
.report-summary-grid article:nth-child(4) { border-top-color: var(--gold-500); }
.report-summary-grid span, .report-summary-grid small { display: block; }
.report-summary-grid span { color: var(--muted); font-size: 12px; }
.report-summary-grid strong { display: block; margin: 6px 0 5px; font-size: 28px; }
.report-summary-grid small { color: var(--muted); font-size: 11px; line-height: 1.5; }
.weekly-progress-overview { margin-top: 12px; border: 1px solid var(--line); border-radius: 8px; padding: 20px; background: var(--white); }
.weekly-progress-heading h2 { margin: 4px 0 2px; font-size: 22px; }
.weekly-progress-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.weekly-progress-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.weekly-progress-card { --week-tone: var(--navy-700); border: 1px solid #dce7ed; border-top: 4px solid var(--week-tone); border-radius: 7px; padding: 16px; background: #f9fbfc; }
.weekly-progress-card.tone-teal { --week-tone: var(--teal-700); }
.weekly-progress-card.tone-gold { --week-tone: var(--gold-500); }
.weekly-progress-card > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.weekly-progress-card > header span, .weekly-progress-card > header h3, .weekly-progress-card > header small { display: block; }
.weekly-progress-card > header span { color: var(--week-tone); font-size: 10px; font-weight: 900; }
.weekly-progress-card > header h3 { margin: 3px 0 1px; font-size: 18px; }
.weekly-progress-card > header small { color: var(--muted); font-size: 10px; }
.weekly-progress-card > header > strong { color: var(--week-tone); font-size: 30px; line-height: 1; }
.weekly-progress-bar { height: 8px; margin-top: 15px; overflow: hidden; border-radius: 999px; background: #e7eef2; }
.weekly-progress-bar i { display: block; height: 100%; border-radius: inherit; background: var(--week-tone); }
.weekly-progress-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 14px; }
.weekly-progress-metrics > div + div { border-left: 1px solid #dde7ec; padding-left: 10px; }
.weekly-progress-metrics span, .weekly-progress-metrics strong, .weekly-progress-metrics small { display: block; }
.weekly-progress-metrics span { color: var(--muted); font-size: 10px; }
.weekly-progress-metrics strong { margin-top: 4px; color: var(--navy-800); font-size: 18px; }
.weekly-progress-metrics small { margin-top: 1px; color: var(--muted); font-size: 9px; font-weight: 600; }
.first-week-report { margin-top: 12px; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; padding: 20px; background: var(--white); }
.first-week-report header { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.first-week-report h2 { margin: 4px 0 2px; font-size: 22px; }
.first-week-report header p { margin: 0; color: var(--muted); font-size: 12px; }
.first-week-rate { min-width: 116px; text-align: right; }
.first-week-rate strong, .first-week-rate span { display: block; }
.first-week-rate strong { color: var(--teal-700); font-size: 36px; line-height: 1; }
.first-week-rate span { margin-top: 5px; color: var(--muted); font-size: 11px; font-weight: 800; }
.first-week-progress { height: 10px; margin-top: 18px; overflow: hidden; border-radius: 999px; background: #e9f0f4; }
.first-week-progress i { height: 100%; display: block; border-radius: inherit; background: var(--teal-700); }
.first-week-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 16px; border: 1px solid #e5edf2; }
.first-week-metrics > div { padding: 13px 16px; }
.first-week-metrics > div + div { border-left: 1px solid #e5edf2; }
.first-week-metrics span, .first-week-metrics strong { display: block; }
.first-week-metrics span { color: var(--muted); font-size: 11px; }
.first-week-metrics strong { margin-top: 5px; color: var(--navy-800); font-size: 22px; }
.first-week-metrics small { color: var(--muted); font-size: 11px; font-weight: 600; }
.first-week-days { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.first-week-days > div { border-top: 3px solid var(--navy-700); padding: 10px 12px; background: #f5f9fb; }
.first-week-days > div:nth-child(2), .first-week-days > div:nth-child(4) { border-top-color: var(--teal-700); }
.first-week-days > div:nth-child(3) { border-top-color: var(--gold-500); }
.first-week-days > div:nth-child(5) { border-top-color: var(--red-600); }
.first-week-days span, .first-week-days strong, .first-week-days small { display: block; }
.first-week-days span { color: var(--muted); font-size: 10px; }
.first-week-days strong { margin-top: 4px; font-size: 20px; }
.first-week-days small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.report-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr); gap: 12px; margin-top: 12px; }
.report-panel { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
.report-panel-wide { grid-row: span 2; }
.report-panel-head { min-height: 72px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; }
.report-panel-head h2 { margin: 3px 0 0; font-size: 18px; }
.report-panel-head > strong { color: var(--navy-800); font-size: 20px; }
.task-progress-list { max-height: 620px; overflow: auto; }
.task-progress-row { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(120px, 1fr) 70px; gap: 14px; align-items: center; border-bottom: 1px solid #e5edf2; padding: 11px 18px; }
.task-progress-row:last-child { border-bottom: 0; }
.task-progress-row > div:first-child strong, .task-progress-row > div:first-child span, .task-progress-row > div:last-child strong, .task-progress-row > div:last-child span { display: block; }
.task-progress-row > div:first-child strong { font-size: 12px; }
.task-progress-row > div:first-child span { margin-top: 2px; color: var(--muted); font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-progress-row > div:last-child { text-align: right; }
.task-progress-row > div:last-child span { color: var(--muted); font-size: 10px; }
.report-progress { height: 7px; overflow: hidden; border-radius: 999px; background: #e9f0f4; }
.report-progress i { height: 100%; display: block; border-radius: inherit; background: var(--teal-700); }
.pending-roster { max-height: 270px; overflow: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; padding: 14px; }
.pending-roster > span { border-left: 3px solid var(--gold-500); padding: 7px 9px; background: #f7fafb; font-size: 11px; font-weight: 800; }
.pending-roster small { display: block; margin-top: 2px; color: var(--muted); font-size: 9px; font-weight: 500; }
.pending-roster p { grid-column: 1 / -1; margin: 0; padding: 20px; color: var(--muted); text-align: center; }
.region-report { max-height: 300px; overflow: auto; padding: 8px 16px; }
.region-report > div { display: grid; grid-template-columns: 82px minmax(80px, 1fr) 46px; gap: 10px; align-items: center; border-bottom: 1px solid #e5edf2; padding: 9px 0; font-size: 11px; }
.region-report > div:last-child { border-bottom: 0; }
.region-report > div > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.region-report > div > strong { text-align: right; }
.group-admin-toolbar {
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--teal-700);
  border-radius: 8px;
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr minmax(290px, .55fr);
  align-items: end;
  gap: 24px;
  background: var(--white);
}
.group-admin-toolbar h2 { margin: 4px 0 5px; font-size: 21px; }
.group-admin-toolbar p { margin: 0; color: var(--muted); line-height: 1.6; }
.group-open-control { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.group-open-control label { grid-column: 1 / -1; color: #35465c; font-size: 12px; font-weight: 800; }
.group-admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.group-admin-item { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
.group-admin-item header { min-height: 72px; border-bottom: 1px solid var(--line); padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.group-admin-item header strong, .group-admin-item header span { display: block; }
.group-admin-item header strong { font-size: 17px; }
.group-admin-item header div > span { margin-top: 3px; color: var(--muted); font-size: 11px; }
.special-group-badge { margin-left: 7px; border: 1px solid #d8ad51; padding: 3px 6px; color: #8f6100; background: #fff8e8; font-size: 10px; font-style: normal; vertical-align: 2px; }
.group-admin-special { margin: 12px 16px 0; border-left: 4px solid var(--gold-500); padding: 10px 12px; color: #455a70; background: #fff8e8; font-size: 11px; line-height: 1.55; }
.group-admin-special b, .group-admin-special span { display: block; }
.group-admin-special b { color: var(--gold-700); }
.rotation-support { display: inline-block; margin-top: 4px; border: 1px solid #ead49f; padding: 2px 5px; color: #8f6100; background: #fff8e8; font-size: 9px; font-weight: 800; }
.group-admin-members { min-height: 74px; padding: 13px 16px; display: flex; flex-wrap: wrap; align-content: flex-start; gap: 7px; }
.group-admin-members span { border-left: 3px solid var(--navy-700); padding: 6px 9px; color: #34475e; background: #f4f8fa; font-size: 11px; font-weight: 700; }
.group-role-history { border-top: 1px solid var(--line); }
.group-role-history-heading { min-height: 42px; padding: 11px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--navy-800); background: #f8fbfc; font-size: 12px; font-weight: 800; }
.group-role-history-heading small { color: var(--muted); font-size: 10px; font-weight: 500; }
.group-role-table-wrap { overflow-x: auto; padding: 0 12px 12px; background: #f8fbfc; }
.group-role-table { width: 100%; min-width: 560px; border-collapse: collapse; background: var(--white); }
.group-role-table th, .group-role-table td { border: 1px solid var(--line); padding: 8px 7px; text-align: left; vertical-align: top; }
.group-role-table thead th { color: var(--muted); background: #eef4f7; font-size: 10px; }
.group-role-table tbody th { width: 74px; color: #283b52; font-size: 11px; white-space: nowrap; }
.group-role-table td small { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; }
.rotation-role { display: inline-block; border-left: 3px solid var(--navy-700); padding: 4px 6px; color: #274057; background: #edf4f8; font-size: 10px; font-weight: 800; white-space: nowrap; }
.rotation-role.role-leader { border-color: var(--navy-700); color: var(--navy-800); background: #eaf2f8; }
.rotation-role.role-researcher { border-color: var(--teal-700); color: #086a66; background: #e8f7f5; }
.rotation-role.role-analyst { border-color: var(--gold-500); color: #805c0c; background: #fff7df; }
.rotation-role.role-presenter { border-color: var(--red-600); color: #993343; background: #fff0f2; }
.rotation-role.role-pending { border-color: #b9c8d2; color: var(--muted); background: #f2f5f7; }
.group-work-board { border-top: 1px solid var(--line); background: #fbfdfe; }
.group-work-board summary { min-height: 42px; padding: 11px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--navy-800); cursor: pointer; font-size: 12px; font-weight: 800; }
.group-work-board summary small { color: var(--muted); font-size: 10px; font-weight: 500; }
.group-work-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 0 16px 14px; }
.group-work-emergency { display: block; margin-top: 6px; border-left: 3px solid var(--red-600); padding: 5px 7px; color: var(--red-700); background: #fae7ea; font-size: 9px; line-height: 1.45; }
.group-work-emergency.shared-submit { border-left-color: var(--teal-700); color: var(--teal-700); background: #e6f4f1; }
.group-work-cell {
  min-height: 118px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--navy-700);
  border-radius: 6px;
  padding: 10px;
  display: grid;
  align-content: start;
  gap: 5px;
  text-align: left;
  color: var(--ink);
  background: var(--white);
}
.group-work-cell:hover { border-color: #9fb8c9; box-shadow: 0 4px 12px rgba(22, 54, 82, .07); }
.group-work-cell.status-open { border-top-color: var(--teal-700); }
.group-work-cell.status-draft, .group-work-cell.status-submitted { border-top-color: var(--gold-500); }
.group-work-cell.status-approved { border-top-color: var(--green-700); }
.group-work-cell.status-returned, .group-work-cell.status-invalid { border-top-color: var(--red-600); }
.group-work-cell small { color: var(--navy-700); font-size: 9px; font-weight: 900; }
.group-work-cell strong { min-height: 34px; font-size: 12px; line-height: 1.4; }
.group-work-cell span, .group-work-cell em { color: var(--muted); font-size: 10px; line-height: 1.45; font-style: normal; }
.group-review-contributions { display: grid; gap: 8px; }
.group-review-contributions p { margin: 0; border: 1px solid var(--line); border-left: 4px solid var(--navy-700); border-radius: 6px; padding: 10px 12px; display: grid; grid-template-columns: 170px 1fr; gap: 12px; background: #fbfdfe; }
.group-review-contributions b { color: var(--navy-800); font-size: 12px; }
.group-review-contributions span { color: #33465c; line-height: 1.6; }
.group-admin-item footer { min-height: 40px; border-top: 1px solid var(--line); padding: 10px 16px; display: flex; flex-wrap: wrap; gap: 14px; color: var(--muted); font-size: 11px; }
.group-admin-empty { min-height: 270px; border: 1px dashed #b4c8d5; border-radius: 8px; display: grid; place-content: center; justify-items: center; padding: 30px; text-align: center; background: #f7fafc; }
.group-admin-empty > span { width: 56px; height: 56px; display: grid; place-items: center; color: var(--white); background: var(--navy-700); }
.group-admin-empty h3 { margin: 14px 0 5px; }
.group-admin-empty p { margin: 0; color: var(--muted); }
.review-dialog { width: min(660px, calc(100% - 24px)); }
.review-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 16px; }
.review-meta div { border: 1px solid var(--line); border-radius: 6px; padding: 10px; }
.review-meta span { display: block; color: var(--muted); font-size: 11px; }
.review-meta strong { display: block; margin-top: 3px; }
.score-editor-gate { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin: -4px 0 17px; }
.score-editor-gate span { border-radius: 5px; padding: 9px 8px; color: #718091; background: #edf1f3; font-size: 10px; font-weight: 800; text-align: center; }
.score-editor-gate span.done { color: #08654e; background: #ddf1e9; }
.score-components-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; margin-top: 18px; }
.score-components-grid .field { margin: 0; }
.submission-content { border: 1px solid var(--line); border-radius: 6px; padding: 14px; background: #f8fbfc; white-space: pre-wrap; line-height: 1.7; }
.review-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; margin-top: 18px; }
.review-attachments { display: flex; flex-wrap: wrap; gap: 8px; }
.review-video { margin-top: 16px; overflow: hidden; border: 1px solid var(--line); border-radius: 7px; background: #f7fafc; }
.review-video-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 11px 13px; }
.review-video-head strong, .review-video-head small { display: block; }
.review-video-head strong { color: var(--navy-800); font-size: 13px; }
.review-video-head small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.review-video video { display: block; width: 100%; max-height: 430px; border-top: 1px solid var(--line); background: #071827; object-fit: contain; }

@media (max-width: 820px) {
  .review-video-head { align-items: flex-start; flex-direction: column; }
  .review-video-head .secondary-button { width: 100%; }
  .login-page { grid-template-columns: 1fr; background: var(--soft); }
  .login-story { min-height: auto; padding: 36px 24px 28px; }
  .login-story::after { width: 190px; height: 90px; }
  .login-lockup h1 { font-size: 34px; }
  .login-lockup p { font-size: 15px; }
  .login-steps { margin-top: 30px; }
  .login-step { font-size: 11px; }
  .login-step strong { font-size: 14px; }
  .login-panel { min-height: auto; padding: 34px 22px 54px; }
  .entry-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .score-layout { grid-template-columns: 1fr; }
  .score-center-rule { grid-template-columns: 1fr; }
  .score-center-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .score-center-tools { grid-template-columns: 1fr 190px; }
  .admin-honor-ranking { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .admin-honor-columns { grid-template-columns: 1fr; }
  .hero-band { padding: 34px 32px 28px; }
  .hero-band h1 { font-size: 33px; }
  .week-track { grid-template-columns: repeat(2, 1fr); }
  .focus-card { grid-template-columns: 104px 1fr; }
  .focus-date { padding: 18px 14px; }
  .focus-date strong { font-size: 22px; }
  .focus-action { grid-column: 1 / -1; border-top: 1px solid var(--line); padding: 12px 16px; }
  .focus-action .primary-button { width: 100%; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .group-week-dashboard-grid { grid-template-columns: repeat(2, 1fr); }
  .group-work-archive-head { align-items: flex-start; flex-direction: column; }
  .group-work-insight { grid-template-columns: 130px 1fr; }
  .group-work-follow { grid-column: 1 / -1; border-top: 1px solid var(--line); border-left: 0 !important; }
  .group-work-archive-row { grid-template-columns: 170px 1fr; }
  .group-work-archive-columns { display: none; }
  .group-work-archive-action { justify-items: start; }
  .role-grid { grid-template-columns: repeat(2, 1fr); }
  .formation-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .formation-flow article:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .formation-flow article:nth-child(4) { border-top: 1px solid var(--line); }
  .team-lineup { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team-lineup.is-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .group-guide { overflow-x: auto; }
  .group-guide ol { min-width: 620px; }
  .team-member { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .team-member + .team-member { border-left: 0; }
  .role-draw { grid-template-columns: 1fr; }
  .role-deck { justify-content: flex-start; overflow-x: auto; padding: 4px 0 8px; }
  .family-draw { grid-template-columns: 1fr; }
  .family-deck { justify-content: flex-start; overflow-x: auto; padding: 4px 0 8px; }
  .role-mission { grid-template-columns: 120px 1fr; }
  .role-mission div { grid-column: 1 / -1; }
  .group-stage { grid-template-columns: 100px 1fr; }
  .group-stage > .status-chip { grid-column: 2; justify-self: start; }
  .admin-tools { grid-template-columns: 1fr 1fr; }
  .admin-tools .input { grid-column: 1 / -1; }
  .content-tools { grid-template-columns: 1fr; }
  .report-summary-grid { grid-template-columns: repeat(2, 1fr); }
  .first-week-days { grid-template-columns: repeat(5, minmax(100px, 1fr)); overflow-x: auto; }
  .report-layout { grid-template-columns: 1fr; }
  .report-panel-wide { grid-row: auto; }
  .group-admin-toolbar { grid-template-columns: 1fr; }
  .panorama-control { grid-template-columns: 1fr; }
  .panorama-week-tabs { justify-content: start; }
  .panorama-role-plan { overflow-x: auto; }
  .task-role-lineup > div { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .investment-pack-head { align-items: flex-start; flex-direction: column; gap: 14px; }
  .investment-total { width: 100%; }
  .investment-ledger-header { display: none; }
  .investment-ledger-row { padding: 14px; grid-template-columns: 1fr auto; gap: 6px 14px; }
  .investment-ledger-row > * { padding: 0; }
  .investment-ledger-row > * + * { border-left: 0; }
  .investment-ledger-row strong { font-size: 13px; }
  .investment-ledger-row b { text-align: right; }
  .investment-ledger-row span { grid-column: 1 / -1; display: grid; grid-template-columns: 78px 1fr; gap: 8px; }
  .investment-ledger-row span::before { content: attr(data-label); color: var(--muted); font-size: 10px; font-weight: 800; }
  .event-sealed { grid-template-columns: 58px 1fr; }
  .event-answer-button { grid-column: 2; justify-self: start; }
  .event-story-grid { grid-template-columns: 1fr; }
  .event-story-grid blockquote { border-left: 0; border-top: 1px solid var(--line); }
  .event-constraint-panel ul { grid-template-columns: 1fr; gap: 7px; }
  .event-vote-grid { grid-template-columns: 1fr; }
  .ips-advisor-head { align-items: flex-start; flex-direction: column; }
  .ips-advisor-head .primary-button { width: 100%; }
  .ips-family-facts { grid-template-columns: 1fr; }
  .ips-family-facts > div + div { border-top: 1px solid var(--line); border-left: 0; }
  .ips-holding-list > div { grid-template-columns: minmax(110px,.55fr) minmax(80px,.35fr); }
  .ips-holding-list span, .ips-holding-list small { grid-column: 1 / -1; }
  .mentor-page-heading { align-items: flex-start; }
  .mentor-page-count { width: 100%; }
  .mentor-student-dialogue { grid-template-columns: 1fr; }
  .mentor-student-dialogue section + section { border-top: 1px solid var(--line); border-left: 0; }
}

@media (max-width: 560px) {
  body { font-size: 14px; }
  .topbar-inner { height: 60px; gap: 10px; padding: 0 12px; }
  .topbar-back { width: 36px; height: 36px; flex-basis: 36px; }
  .brand-mini { width: 32px; height: 32px; flex-basis: 32px; }
  .brand-copy strong { max-width: 170px; font-size: 12px; }
  .brand-copy span { font-size: 10px; }
  .primary-button, .secondary-button, .ghost-button, .danger-button { min-height: 40px; padding: 0 13px; font-size: 12px; }
  .profile-button > span:not(.avatar) { display: none; }
  .page { width: min(100% - 20px, 1040px); padding-top: 15px; }
  .page-heading { align-items: flex-start; flex-direction: column; gap: 10px; margin-bottom: 14px; }
  .page-heading h1 { margin-bottom: 4px; font-size: 20px; }
  .page-heading p { font-size: 12px; line-height: 1.55; }
  .eyebrow { font-size: 10px; letter-spacing: .2px; }
  .section-title { gap: 9px; margin-bottom: 10px; }
  .section-title h2 { font-size: 17px; }
  .section-title p { font-size: 11px; }
  .hero-band { min-height: 0; padding: 21px 17px 18px; }
  .hero-band h1 { margin: 8px 0 10px; font-size: 19px; line-height: 1.32; }
  .hero-band p { font-size: 12px; line-height: 1.6; }
  .hero-stats { max-width: none; margin-top: 17px; padding-top: 14px; }
  .hero-stat { min-width: 0; flex: 1; padding: 0 10px; }
  .hero-stat:first-child { padding-left: 0; }
  .hero-stat strong { font-size: 18px; }
  .hero-stat span { margin-top: 5px; font-size: 9px; }
  .section { margin-top: 16px; }
  .focus-date { padding: 14px 11px; }
  .focus-date strong { font-size: 18px; }
  .focus-date span { font-size: 10px; }
  .focus-copy { padding: 16px 14px; }
  .focus-copy h3 { margin: 6px 0; font-size: 16px; }
  .focus-copy p { font-size: 11px; line-height: 1.55; }
  .status-chip, .keyword-chip, .live-chip, .format-chip { min-height: 23px; padding: 3px 7px; font-size: 10px; }
  .entry-grid { grid-template-columns: 1fr; gap: 8px; }
  .entry-card {
    min-height: 74px;
    display: grid;
    grid-template-columns: 34px minmax(82px, 100px) minmax(0, 1fr);
    align-items: center;
    column-gap: 9px;
    padding: 10px 12px;
  }
  .entry-card .entry-icon { grid-column: 1; grid-row: 1; width: 34px; height: 34px; }
  .entry-card strong { grid-column: 2; grid-row: 1; margin: 0; font-size: 13px; line-height: 1.35; }
  .entry-card > span:last-child { grid-column: 3; grid-row: 1; font-size: 10px; line-height: 1.45; }
  .entry-card strong em { display: table; margin: 4px 0 0; vertical-align: 0; }
  .week-track { grid-template-columns: 1fr; }
  .week-node { min-height: 76px; padding: 11px; }
  .week-node strong { margin: 4px 0 3px; font-size: 13px; }
  .week-node span { font-size: 10px; }
  .task-row { min-height: 96px; grid-template-columns: 58px 1fr; gap: 10px; padding: 12px; }
  .date-box strong { font-size: 16px; }
  .date-box span { font-size: 10px; }
  .task-main h3 { font-size: 14px; }
  .task-main p { font-size: 11px; }
  .task-row > .task-score { grid-column: 2; min-width: 0; justify-items: start; text-align: left; }
  .task-main p { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .score-card { padding: 15px; }
  .score-preview-note { margin-bottom: 12px; font-size: 9px; }
  .score-total { align-items: flex-start; flex-wrap: wrap; }
  .score-number strong { font-size: 36px; }
  .progress-ring { width: 78px; height: 78px; flex-basis: 78px; }
  .progress-ring::after { width: 58px; height: 58px; font-size: 12px; }
  .score-grade-summary { order: 3; width: 100%; grid-template-columns: auto 1fr; align-items: center; justify-items: start; text-align: left; }
  .score-breakdown { gap: 9px; margin-top: 17px; }
  .score-line { grid-template-columns: 88px 1fr minmax(62px, auto); gap: 7px; font-size: 11px; }
  .score-own-work { margin-top: 14px; grid-template-columns: 31px minmax(0,1fr) auto; gap: 7px; padding: 9px; }
  .score-own-work > span { width: 30px; height: 30px; }
  .score-own-work strong { max-width: 128px; font-size: 10px; }
  .score-own-work a { min-height: 30px; padding: 0 8px; font-size: 9px; }
  .score-required-gate { margin-top: 17px; padding: 12px; }
  .score-required-gate header strong { font-size: 12px; }
  .score-required-gate header b { font-size: 17px; }
  .score-required-gate > div { grid-template-columns: 1fr; }
  .score-grade-scale { margin: 8px 0 -5px; gap: 3px; padding-top: 8px; }
  .score-grade-scale > span { min-height: 47px; padding: 5px 3px 4px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 1px; text-align: center; }
  .score-grade-scale b { font-size: 11px; }
  .score-grade-scale small, .score-grade-scale em { margin: 0; font-size: 8px; line-height: 1.2; white-space: nowrap; }
  .completion-grid { grid-template-columns: repeat(3, 1fr); }
  .waiting-game, .countdown-game { min-height: 210px; padding: 27px 22px; align-items: flex-start; flex-direction: column; gap: 18px; }
  .waiting-game h2, .countdown-game h2 { font-size: 20px; }
  .game-seal { width: 54px; height: 54px; flex-basis: 54px; }
  .game-header { min-height: 132px; padding: 22px 20px; align-items: flex-start; }
  .game-header h2 { font-size: 20px; }
  .live-state { min-width: 64px; padding: 7px 8px; }
  .team-lineup { grid-template-columns: 1fr; }
  .team-lineup.is-three { grid-template-columns: 1fr; }
  .group-guide { padding: 18px 20px 20px; }
  .group-guide ol { min-width: 650px; }
  .team-member { min-height: 76px; border-right: 0; }
  .game-action, .leader-choice { padding: 21px 20px; align-items: stretch; flex-direction: column; }
  .leader-choice > div:last-child { justify-content: stretch; }
  .leader-choice > div:last-child button { flex: 1; }
  .role-draw { padding: 22px 20px; gap: 20px; }
  .role-deck button { width: 82px; height: 118px; }
  .identity-result { padding: 22px 20px; grid-template-columns: 46px 1fr; }
  .identity-result > .primary-button, .identity-result > .status-chip, .identity-actions { grid-column: 1 / -1; justify-self: stretch; }
  .identity-actions { display: grid; grid-template-columns: 1fr; }
  .identity-mark { width: 46px; height: 46px; }
  .identity-copy h3 { font-size: 16px; }
  .support-role-mission { grid-template-columns: 1fr; }
  .role-mission { grid-template-columns: 1fr; }
  .role-mission div { grid-column: auto; }
  .swap-panel { padding: 18px 20px; align-items: stretch; flex-direction: column; }
  .swap-panel > div:last-child, .swap-targets { justify-content: flex-start; }
  .family-waiting { padding: 20px; align-items: flex-start; }
  .family-draw { padding: 22px 20px; gap: 20px; }
  .family-deck button { min-width: 112px; height: 142px; }
  .family-reveal { grid-template-columns: 1fr; }
  .family-reveal-image { min-height: 260px; max-height: 360px; }
  .family-reveal-copy { padding: 24px 20px; }
  .family-reveal-copy h3 { font-size: 19px; }
  .family-dossier { padding: 22px 20px 24px; }
  .family-dossier-head { align-items: flex-start; flex-direction: column; gap: 12px; }
  .family-theme-row { justify-content: flex-start; }
  .family-fact-grid, .family-dossier-grid { grid-template-columns: 1fr; }
  .family-fact-grid article + article { border-left: 0; border-top: 1px solid var(--line); }
  .family-deliverable { align-items: flex-start; flex-direction: column; gap: 5px; }
  .family-dossier-toggle summary { align-items: flex-start; flex-direction: column; gap: 4px; }
  .investment-pack { padding: 22px 20px 24px; }
  .investment-pack-head h3 { font-size: 18px; }
  .investment-clue-grid { grid-template-columns: 1fr; }
  .event-sealed { padding: 22px 20px; grid-template-columns: 48px 1fr; gap: 14px; }
  .event-sealed .event-ring { width: 46px; height: 46px; }
  .event-sealed-copy h3 { font-size: 18px; }
  .event-answer-button { grid-column: 1 / -1; width: 100%; }
  .event-alert-head { padding: 20px; grid-template-columns: 48px 1fr; }
  .event-alert-head .event-ring { width: 46px; height: 46px; }
  .event-alert-head h3 { font-size: 18px; }
  .event-live-chip { grid-column: 2; justify-self: start; }
  .event-story-grid > div, .event-story-grid blockquote { padding: 20px; }
  .event-constraint-panel, .event-decision { margin-left: 20px; margin-right: 20px; }
  .event-vote-panel { margin: 18px 20px 22px; }
  .event-vote-panel > header { align-items: flex-start; flex-direction: column; gap: 10px; }
  .event-vote-grid { padding: 12px; }
  .event-breakdown-head { align-items: flex-start; flex-direction: column; gap: 3px; }
  .event-result-row { grid-template-columns: 1fr 34px; gap: 6px 10px; padding: 9px 0; }
  .event-result-meter { grid-column: 1 / -1; grid-row: 2; }
  .event-result-row > b { grid-column: 2; grid-row: 1; }
  .event-revealed > footer { padding: 18px 20px; grid-template-columns: 1fr; }
  .mentor-page-count { min-width: 0; grid-template-columns: auto 1fr; }
  .mentor-student-card > header { align-items: flex-start; padding: 17px 16px; }
  .mentor-answer-group-title h2 { font-size: 19px; }
  .mentor-answer-group-title > strong { font-size: 20px; }
  .mentor-student-card > header h2 { font-size: 16px; }
  .mentor-student-dialogue p { font-size: 12px; line-height: 1.65; }
  .mentor-student-dialogue section { padding: 17px 16px; }
  .mentor-student-tags { padding: 0 16px 15px; }
  .mentor-student-response { padding: 17px 16px 18px; }
  .mentor-student-response > div { align-items: stretch; flex-direction: column; }
  .mentor-student-response > div small { margin-right: 0; }
  .mentor-student-response > div button { width: 100%; }
  .mentor-student-empty { min-height: 300px; padding: 28px 20px; }
  .bottom-nav { width: min(calc(100% - 16px), 560px); bottom: max(8px, env(safe-area-inset-bottom)); }
  .bottom-nav.has-honor { width: min(calc(100% - 10px), 650px); }
  .nav-button { font-size: 9px; }
  .nav-button svg { width: 18px; height: 18px; }
  .nav-badge { right: calc(50% - 25px); }
  .formation-flow { grid-template-columns: 1fr; }
  .formation-flow article + article { border-left: 0; border-top: 1px solid var(--line); }
  .group-task-stage summary { min-height: 96px; grid-template-columns: 40px 1fr; gap: 10px; padding: 14px 13px; }
  .group-task-stage summary strong { font-size: 14px; }
  .group-task-stage summary p { font-size: 10px; }
  .group-archive-timeline { grid-template-columns: 1fr; }
  .group-archive-card h3, .group-archive-conclusion, .group-archive-meta { min-height: 0; }
  .group-submit-drawer > summary { min-height: 82px; grid-template-columns: 40px 1fr 20px; padding: 13px; }
  .group-submit-drawer > summary strong { font-size: 14px; }
  .group-submit-drawer > summary p { font-size: 10px; }
  .group-submit-drawer > summary .status-chip { grid-column: 2; justify-self: start; }
  .group-submit-chevron { grid-column: 3; grid-row: 1 / span 2; }
  .group-submit-drawer-body { padding: 10px; }
  .panorama-group-record > summary { grid-template-columns: minmax(0, 1fr) 20px; gap: 10px; padding: 16px; }
  .panorama-group-record > summary div { grid-template-columns: 1fr; gap: 3px; }
  .panorama-group-record > summary small { grid-column: auto; }
  .panorama-group-record > summary b { grid-column: 1 / -1; grid-row: 2; }
  .panorama-group-record > summary i { grid-column: 2; grid-row: 1; }
  .panorama-group-record-body { padding: 0 12px 12px; }
  .group-task-stage summary .status-chip { grid-column: 2; justify-self: start; }
  .stage-number { width: 40px; height: 40px; }
  .group-task-body { padding: 18px 15px; }
  .group-task-requirements, .group-form-grid, .contribution-fields, .group-resource-kit { grid-template-columns: 1fr; }
  .group-resource-actions { grid-template-columns: 1fr; }
  .group-document-slots { grid-template-columns: 1fr; }
  .group-task-requirements { gap: 14px; }
  .group-form-grid .full, .contribution-fields > strong { grid-column: auto; }
  .group-version-summary > div, .group-contribution-view p { grid-template-columns: 1fr; gap: 5px; }
  .panorama-control { padding: 18px 16px; }
  .panorama-week-tabs { width: 100%; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .panorama-family-tabs > div { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .panorama-plan-head { align-items: flex-start; flex-direction: column; gap: 4px; }
  .task-role-lineup > div { grid-template-columns: 1fr; }
  .group-form-actions { align-items: stretch; flex-direction: column; }
  .group-form-actions button { width: 100%; }
  .ips-advisor-head { padding: 20px 18px; }
  .ips-privacy-note { align-items: flex-start; padding: 11px 18px; }
  .ips-information-chain { padding: 4px 17px 2px; }
  .ips-chain-step { padding: 20px 0 20px 54px; }
  .ips-chain-index { width: 42px; height: 42px; font-size: 11px; }
  .ips-chain-step:not(:last-child)::before { left: 20px; top: 60px; }
  .ips-chain-content > h4 { font-size: 15px; }
  .ips-conclusion-list > div { grid-template-columns: 1fr; }
  .ips-conclusion-list b { grid-row: auto; }
  .ips-advisor-brief > footer { grid-template-columns: 1fr; gap: 5px; padding: 15px 18px; }
  .leaderboard-head { display: none; }
  .leaderboard-row { grid-template-columns: 36px 1fr 76px; gap: 9px; padding: 12px; }
  .leaderboard-progress { grid-column: 2 / -1; grid-row: 2; }
  .leaderboard-score { grid-column: 3; grid-row: 1; }
  .leaderboard-person span { white-space: normal; }
  .group-public-week-summary { grid-template-columns: 1fr 1fr; gap: 8px; }
  .my-group-identity > header { align-items: flex-start; flex-direction: column; padding: 16px; }
  .my-group-identity > header strong { font-size: 21px; }
  .my-group-family { grid-template-columns: 1fr; padding: 13px 16px; gap: 4px; }
  .my-group-week-grid { grid-template-columns: 1fr 1fr; }
  .my-group-week-grid > div:nth-child(3) { border-left: 0; border-top: 1px solid #cce3e0; }
  .my-group-week-grid > div:nth-child(4) { border-top: 1px solid #cce3e0; }
  .group-public-all > summary { padding: 14px; }
  .group-public-all > summary > div { grid-template-columns: auto 1fr; }
  .group-public-all > summary span { grid-column: 1 / -1; }
  .group-public-all-body { padding: 10px; }
  .group-public-week-summary article { min-height: 96px; padding: 13px 14px; }
  .group-public-week-summary strong { font-size: 19px; }
  .group-public-progress-table-wrap { margin-right: -14px; }
  .final-showcase-hero { align-items: stretch; flex-direction: column; padding: 17px; }
  .final-showcase-hero h2 { font-size: 20px; }
  .final-showcase-hero p { font-size: 11px; }
  .final-showcase-hero::after { right: -70px; }
  .final-showcase-hero .primary-button { width: 100%; }
  .final-showcase-item { grid-template-columns: 38px minmax(0, 1fr); gap: 12px; padding: 16px 14px; }
  .final-showcase-index { width: 34px; height: 34px; }
  .final-showcase-actions { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
  .final-showcase-actions > * { width: 100%; }
  .honor-showcase-hero { align-items: flex-start; flex-direction: column; padding: 19px 16px; }
  .honor-showcase-hero h2 { font-size: 20px; }
  .honor-showcase-hero p { font-size: 11px; line-height: 1.55; }
  .honor-hero-actions { width: 100%; align-items: stretch; flex-direction: column; }
  .honor-hero-actions > * { width: 100%; justify-content: center; }
  .honor-showcase-block { min-width: 0; padding: 18px 11px 2px; }
  .honor-block-heading { align-items: flex-start; flex-direction: column; gap: 4px; }
  .honor-block-heading h3 { font-size: 17px; }
  .honor-rank-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; overflow: visible; padding-bottom: 0; }
  .honor-rank-card { min-width: 0; min-height: 96px; padding: 10px 11px; }
  .honor-rank-card.is-first { position: relative; grid-column: 1 / -1; min-height: 100px; padding-right: 105px; }
  .honor-rank-card.is-first header b { position: absolute; top: 9px; right: 10px; z-index: 1; }
  .honor-rank-card > strong { margin-top: 9px; font-size: 16px; }
  .honor-rank-card p { margin-top: 5px; }
  .honor-rank-card p em { font-size: 18px; }
  .honor-rank-champion {
    position: absolute;
    top: 50%;
    right: 12%;
    width: 112px;
    min-height: 72px;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    align-content: center;
    gap: 3px;
    border-left: 1px solid #e7cc77;
    color: #a66d00;
    background: linear-gradient(90deg, rgba(255,246,203,.18), rgba(255,225,139,.5));
  }
  .honor-rank-champion > i { color: #d9a21d; font-size: 8px; font-style: normal; letter-spacing: 3px; }
  .honor-rank-champion > span { display: flex; align-items: center; gap: 6px; }
  .honor-rank-champion small { font-size: 11px; font-weight: 900; letter-spacing: .8px; }
  .honor-rank-champion > em { color: #b18425; font-size: 6px; font-style: normal; font-weight: 900; letter-spacing: 1.1px; }
  .honor-speech-card { grid-template-columns: 38px minmax(0,1fr) auto; gap: 10px; padding: 14px 12px; }
  .honor-speech-index { width: 36px; height: 36px; }
  .honor-speech-copy h4 { font-size: 13px; }
  .honor-speech-card a { min-height: 36px; padding: 0 10px; font-size: 10px; }
  .honor-award-stage { width: 100%; min-width: 0; padding: 39px 4px 9px; }
  .honor-award-crown { min-width: 154px; min-height: 31px; padding: 0 15px; gap: 8px; }
  .honor-award-crown span { font-size: 12px; }
  .honor-award-grid { max-width: 100%; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 4px; }
  .honor-award-card { min-height: 101px; padding: 5px 3px 5px; }
  .honor-award-card.is-single { grid-column: span 2; }
  .honor-award-card.is-multi { grid-column: span 3; }
  .honor-award-stars { height: 7px; }
  .honor-award-icon { width: 31px; height: 31px; margin-top: 2px; }
  .honor-award-icon svg { width: 18px; height: 18px; }
  .honor-award-card small { margin-top: 3px; font-size: 7.5px; letter-spacing: .2px; }
  .honor-award-card strong { margin-top: 2px; font-size: 11px; line-height: 1.22; }
  .honor-award-card p { display: none; }
  .honor-long-term { margin: 22px 11px 18px; padding: 24px 14px; }
  .honor-long-term::before, .honor-long-term::after { display: none; }
  .honor-long-term > header { align-items: center; flex-direction: column; text-align: center; }
  .honor-excellent-groups { margin: 22px 11px 18px; padding: 24px 14px; }
  .honor-excellent-groups::after { display: none; }
  .honor-excellent-groups > header { align-items: center; flex-direction: column; text-align: center; }
  .honor-excellent-group-grid { grid-template-columns: 1fr; gap: 10px; }
  .honor-group-title { grid-template-columns: 42px minmax(0,1fr) auto; }
  .honor-group-title > span { width: 42px; height: 42px; }
  .honor-group-title strong { font-size: 20px; }
  .admin-honor-groups > div { grid-template-columns: 1fr; }
  .celebration-content { width: min(calc(100% - 26px),760px); padding: 38px 18px 28px; }
  .celebration-emblem { width: 58px; height: 58px; margin-top: -68px; }
  .celebration-content h1 { font-size: clamp(27px,8.4vw,40px); }
  .celebration-recognitions { margin: 15px auto 18px; gap: 5px; }
  .celebration-recognitions span { min-height: 29px; padding: 0 8px; font-size: 9px; }
  .celebration-danmaku span { font-size: 10px; opacity: .72; }
  .celebration-skip { top: max(12px,env(safe-area-inset-top)); right: max(12px,env(safe-area-inset-right)); }
  .honor-long-term > header h3 { font-size: 20px; }
  .honor-long-term-grid { gap: 9px; }
  .honor-long-term-grid article { flex-basis: calc(50% - 5px); min-width: 0; grid-template-columns: 36px minmax(0,1fr); padding: 12px 10px; }
  .honor-long-term-grid article > span { width: 36px; height: 36px; }
  .honor-long-term-grid article > svg { display: none; }
  .honor-long-term p { justify-content: flex-start; }
  .my-rank strong { font-size: 20px; }
  .group-preview { grid-template-columns: 1fr; }
  .group-stage { grid-template-columns: 1fr; gap: 8px; }
  .group-stage > .status-chip { grid-column: auto; }
  .sheet-dialog { width: 100%; max-width: none; max-height: 92vh; margin: auto 0 0; border-radius: 8px 8px 0 0; }
  .dialog-body { padding: 16px; }
  .dialog-actions { padding-bottom: max(14px, env(safe-area-inset-bottom)); }
  .dialog-actions button { flex: 1; padding: 0 10px; }
  .share-link-row { grid-template-columns: 1fr; }
  .share-link-row .primary-button { width: 100%; }
  .share-image-actions { grid-template-columns: 1fr; }
  .share-image-actions > * { width: 100%; }
  .share-downloads { grid-template-columns: 1fr; }
  .share-actions { align-items: stretch; flex-direction: column; }
  .share-actions .secondary-button { width: 100%; }
  .share-revoke { width: 100%; margin-left: 0; }
  .admin-page { width: min(calc(100% - 20px), 1460px); }
  .admin-heading { align-items: flex-start; flex-direction: column; }
  .metric-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .group-week-dashboard > header { align-items: flex-start; flex-direction: column; }
  .group-week-dashboard-grid { grid-template-columns: 1fr 1fr; }
  .group-work-week-tabs { width: 100%; overflow-x: auto; }
  .group-work-week-tabs button { flex: 0 0 auto; }
  .group-work-insight { grid-template-columns: 1fr; }
  .group-work-insight > div + div { border-top: 1px solid var(--line); border-left: 0; }
  .group-work-rate { justify-content: start; text-align: left; }
  .group-work-archive-row { grid-template-columns: 1fr; gap: 12px; }
  .metric-card { padding: 13px; }
  .metric-card strong { font-size: 22px; }
  .admin-tools { grid-template-columns: 1fr; }
  .admin-tools .input { grid-column: auto; }
  .admin-view-tabs { width: 100%; overflow-x: auto; }
  .admin-view-tabs button { flex: 0 0 auto; justify-content: center; padding: 0 12px; }
  .score-center-rule { padding: 18px 16px; }
  .score-weight-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .score-center-metrics { grid-template-columns: 1fr 1fr; gap: 8px; }
  .score-center-metrics article { min-height: 108px; padding: 13px; }
  .score-grade-overview { align-items: flex-start; }
  .score-grade-overview small { width: 100%; margin-left: 0; line-height: 1.5; }
  .score-center-tools { grid-template-columns: 1fr; }
  .admin-honor-hero { grid-template-columns: 48px 1fr; padding: 19px 16px; }
  .admin-honor-trophy { width: 48px; height: 48px; }
  .admin-honor-preview { grid-column: 1 / -1; width: fit-content; }
  .admin-honor-ranking { grid-template-columns: 1fr 1fr; }
  .admin-honor-ranking article.rank-1 { grid-column: 1 / -1; }
  .admin-honor-long-term { grid-template-columns: 42px 1fr; }
  .admin-honor-name-list { grid-column: 1 / -1; justify-content: flex-start; }
  .content-tools { grid-template-columns: 1fr; }
  .report-toolbar { align-items: stretch; flex-direction: column; }
  .report-toolbar > div { align-items: flex-start; flex-direction: column; }
  .report-toolbar .secondary-button { width: 100%; }
  .report-summary-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .report-summary-grid article { min-height: 106px; padding: 13px; }
  .report-summary-grid strong { font-size: 23px; }
  .weekly-progress-overview { padding: 16px; }
  .weekly-progress-grid { grid-template-columns: 1fr; }
  .first-week-report { padding: 16px; }
  .first-week-report header { align-items: flex-start; flex-direction: column; gap: 12px; }
  .first-week-rate { text-align: left; }
  .first-week-metrics { grid-template-columns: 1fr; }
  .first-week-metrics > div + div { border-top: 1px solid #e5edf2; border-left: 0; }
  .first-week-days { grid-template-columns: repeat(5, minmax(104px, 1fr)); }
  .group-open-control { grid-template-columns: 1fr; }
  .group-open-control .primary-button { width: 100%; }
  .group-admin-grid { grid-template-columns: 1fr; }
  .task-progress-row { grid-template-columns: minmax(130px, 1fr) 90px 58px; gap: 9px; padding: 10px 12px; }
  .pending-roster { grid-template-columns: 1fr; }
  .review-meta, .review-controls { grid-template-columns: 1fr; }
  .score-editor-gate { grid-template-columns: 1fr; }
  .score-components-grid { grid-template-columns: 1fr; }
  .mentor-feedback-entry > header, .mentor-feedback-archive > header { align-items: flex-start; flex-direction: column; padding: 18px 16px; }
  .mentor-feedback-entry-stats { grid-template-columns: auto auto auto auto; }
  .mentor-feedback-form { padding: 17px 16px; }
  .mentor-feedback-form-grid { grid-template-columns: 1fr; }
  .mentor-visibility-options { grid-template-columns: 1fr; }
  .mentor-feedback-form-grid .full { grid-column: auto; }
  .mentor-feedback-form-actions { align-items: stretch; flex-direction: column; }
  .mentor-feedback-form-actions button { width: 100%; }
  .mentor-feedback-archive > header .input { width: 100%; }
  .mentor-feedback-item { grid-template-columns: 1fr; gap: 12px; padding: 17px 16px; }
  .mentor-feedback-meta { grid-template-columns: auto 1fr; align-items: center; }
  .mentor-feedback-meta span, .mentor-feedback-meta strong, .mentor-feedback-meta small { grid-column: 1 / -1; }
  .mentor-feedback-meta button { grid-column: 1 / -1; width: 100%; }
}
