:root {
  --bg: #eef4f8;
  --paper: #fbfdff;
  --ink: #17324a;
  --muted: #5f7488;
  --line: #d5e1eb;
  --accent: #163f66;
  --accent-soft: #dcecf8;
  --warn: #c48b1f;
  --danger: #c94b4b;
  --shadow: 0 20px 50px rgba(22, 63, 102, 0.10);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top right, rgba(38, 101, 156, 0.18), transparent 28%),
    radial-gradient(circle at left center, rgba(22, 63, 102, 0.10), transparent 24%),
    linear-gradient(180deg, #f7fbfe 0%, var(--bg) 100%);
}

.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 286px 1fr;
}

.sidebar {
  padding: 34px 24px;
  background: linear-gradient(180deg, #123450 0%, #173f63 55%, #1d4a74 100%);
  color: #f7f7f0;
  display: flex;
  flex-direction: column;
  gap: 30px;
  box-shadow: 8px 0 24px rgba(15, 52, 80, 0.12);
}

.brand {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, #f0c55a, #ffe3a8);
  color: #16344c;
  display: grid;
  place-items: center;
  font-weight: 800;
}

.brand h1,
.brand p {
  margin: 0;
}

.brand h1 {
  font-size: 22px;
  letter-spacing: 1px;
}

.brand p,
.sidebar-note p {
  color: rgba(247, 247, 240, 0.72);
  font-size: 13px;
  line-height: 1.6;
}

.menu {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.menu-item,
.primary-btn,
.secondary-btn,
.icon-btn {
  border: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.menu-item {
  padding: 18px 16px;
  border-radius: 18px;
  text-align: center;
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.8px;
}

.menu-item.active,
.menu-item:hover {
  background: rgba(240, 197, 90, 0.22);
  transform: translateY(-1px);
}

.sidebar-note {
  margin-top: auto;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
}

.content {
  padding: 34px 36px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(112, 149, 186, 0.18);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.toolbar-field {
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
  min-width: 170px;
}

.toolbar-field span {
  color: var(--muted);
  font-size: 13px;
}

.toolbar-field strong {
  color: var(--ink);
  font-size: 17px;
  font-weight: 700;
}

.user-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: #e7f0f7;
  color: var(--ink);
  font-size: 14px;
}

.user-badge-avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  object-fit: cover;
  flex: 0 0 40px;
  background: #d7e8f5;
  box-shadow: 0 4px 12px rgba(22, 63, 102, 0.10);
}

.user-badge-avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  padding: 0 4px;
}

.user-badge-avatar-fallback.len-2 {
  font-size: 14px;
}

.user-badge-avatar-fallback.len-3 {
  font-size: 11px;
}

.user-badge-main {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  line-height: 1.15;
}

.user-badge-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
}

.user-badge-role {
  font-size: 12px;
  color: var(--muted);
}

.student-inline-avatar {
  width: 56px;
  height: 80px;
  border-radius: 12px;
  object-fit: cover;
  display: block;
  margin: 0 auto;
  background: #dfeaf6;
  box-shadow: 0 8px 18px rgba(13, 44, 88, 0.12);
}

.student-inline-avatar.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2d5f8f;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  padding: 0 4px;
}

.student-inline-avatar.placeholder.len-2 {
  font-size: 16px;
}

.student-inline-avatar.placeholder.len-3 {
  font-size: 12px;
}

#students-table-body td {
  vertical-align: middle;
}

.topbar h2,
.topbar p {
  margin: 0;
}

.topbar h2 {
  font-size: 34px;
  letter-spacing: 0.6px;
}

.topbar p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
}

.primary-btn {
  padding: 12px 18px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #2a5d8e);
  color: white;
  box-shadow: var(--shadow);
  font-weight: 700;
}

.secondary-btn {
  padding: 12px 18px;
  border-radius: 10px;
  background: #e7f0f7;
  color: var(--ink);
  border: 1px solid rgba(94, 128, 160, 0.22);
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: #dbeaf5;
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
}

.primary-btn:hover {
  transform: translateY(-1px);
}

.status-bar {
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 18px;
  background: linear-gradient(135deg, #e3f0fa 0%, #d4e7f6 100%);
  color: var(--accent);
}

.card-grid,
.panel-grid {
  display: grid;
  gap: 18px;
}

.card-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 18px;
}

.panel-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.squad-stats-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

#dashboard-view .panel-grid {
  grid-template-columns: 1fr;
}

.stat-card,
.panel,
.table-panel {
  background: var(--paper);
  border: 1px solid rgba(112, 149, 186, 0.20);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.stat-card {
  padding: 20px;
}

.stat-label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 14px;
}

.stat-card strong {
  font-size: 30px;
}

.panel {
  padding: 22px;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.panel-header h3,
.panel-header span {
  margin: 0;
}

.panel-header span {
  color: var(--muted);
  font-size: 13px;
}

.panel-header h3 {
  font-size: 24px;
  letter-spacing: 0.4px;
}

.stack-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stack-item {
  padding: 22px 24px;
  border-radius: 16px;
  background: #f4f9fd;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

.stack-item strong,
.stack-item span,
.stack-item small {
  display: block;
}

.stack-item span,
.stack-item small {
  color: var(--muted);
}

.current-term-row {
  background: rgba(23, 89, 74, 0.08);
}

.term-status-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: #e7eff7;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.term-status-chip.current {
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 15px;
}

.dashboard-analytics,
.trend-panel {
  margin-top: 18px;
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

.trend-list {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 18px;
  min-height: 360px;
  padding: 18px 16px 8px;
  overflow-x: auto;
}

.trend-bar-card {
  width: 92px;
  min-width: 92px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.trend-bar-wrap {
  height: 220px;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.trend-bar-column {
  width: 48px;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 8px 0;
  border-radius: 18px 18px 12px 12px;
  background: linear-gradient(180deg, rgba(220, 235, 248, 0.45) 0%, rgba(210, 228, 243, 0.9) 100%);
  border: 1px solid rgba(112, 149, 186, 0.18);
}

.trend-bar-fill {
  width: 100%;
  min-height: 12px;
  border-radius: 14px 14px 10px 10px;
  background: linear-gradient(135deg, var(--accent), #267764);
  box-shadow: 0 10px 20px rgba(17, 63, 112, 0.14);
}

.trend-bar-fill.plus {
  background: linear-gradient(180deg, #ee6a5e 0%, #c94b4b 100%);
}

.trend-bar-fill.minus {
  background: linear-gradient(180deg, #6fb36d 0%, #3f8d4c 100%);
}

.trend-bar-fill.neutral {
  background: linear-gradient(180deg, #505863 0%, #1f252c 100%);
}

.trend-bar-info {
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.trend-bar-info strong {
  font-size: 13px;
  color: var(--text);
}

.trend-bar-info span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  white-space: nowrap;
}

.trend-delta {
  font-weight: 700;
}

.trend-delta.plus {
  color: var(--danger);
}

.trend-delta.minus {
  color: var(--accent);
}

.trend-delta.neutral {
  color: var(--muted);
}

.score-workbench {
  margin-top: 0;
}

.score-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(360px, 520px));
  gap: 16px;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
}

.score-grid label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--muted);
  font-size: 19px;
  align-items: center;
  text-align: center;
}

.score-grid input,
.score-grid select,
.score-grid textarea {
  width: 50%;
  min-width: 320px;
  max-width: 520px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 19px;
  font-family: inherit;
  margin: 0 auto;
}

.score-grid textarea {
  min-height: 120px;
  resize: vertical;
}

.score-grid .wide {
  grid-column: 1 / -1;
}

.score-upload-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.score-photo-name {
  margin-top: 8px;
  font-size: 17px;
}

.score-summary-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
  justify-content: center;
}

.web-score-view-switch {
  justify-content: center;
  margin-bottom: 18px;
}

.web-score-student-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid rgba(23, 78, 130, 0.1);
  border-radius: 18px;
  background: linear-gradient(180deg, #fcfeff 0%, #f1f7fc 100%);
}

.web-score-student-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.web-score-student-panel-header strong {
  display: block;
  font-size: 20px;
  color: var(--ink);
}

.web-score-student-toolbar {
  margin-bottom: 0;
}

.web-score-student-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.web-score-student-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(22, 63, 102, 0.12);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.web-score-student-card:hover {
  border-color: rgba(22, 63, 102, 0.26);
  box-shadow: 0 10px 24px rgba(22, 63, 102, 0.08);
  transform: translateY(-1px);
}

.web-score-student-card.active {
  border-color: #1a5a93;
  background: linear-gradient(180deg, #eef6ff 0%, #f8fbff 100%);
  box-shadow: 0 12px 24px rgba(26, 90, 147, 0.14);
}

.web-score-student-card.disabled {
  cursor: not-allowed;
  opacity: 0.68;
  background: #f5f7fa;
}

.web-score-student-card-name {
  font-size: 18px;
  font-weight: 700;
}

.web-score-student-card-meta,
.web-score-student-card-tip,
.web-score-student-empty {
  font-size: 15px;
  color: var(--muted);
}

.web-score-student-empty {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px dashed rgba(22, 63, 102, 0.14);
}

.summary-chip {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: #eef4f0;
  color: #24473e;
  font-size: 18px;
}

.toolbar {
  display: flex;
  gap: 12px;
  align-items: end;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.toolbar label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--muted);
  font-size: 18px;
}

.settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  gap: 20px;
  align-items: start;
}

.settings-panel {
  height: 100%;
}

.settings-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 18px;
}

.settings-form-grid label,
.settings-logo-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.settings-form-grid input,
.settings-form-grid select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 14px;
}

.settings-form-grid .wide {
  grid-column: 1 / -1;
}

.settings-form-actions {
  grid-column: 1 / -1;
}

.settings-logo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.settings-logo-card {
  min-height: 100%;
  padding: 16px;
  border-radius: 16px;
  background: linear-gradient(180deg, #fcfeff 0%, #f4f9fd 100%);
  border: 1px solid rgba(112, 149, 186, 0.18);
}

.settings-logo-card > span {
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
}

.settings-showcase-panel,
.settings-dictionary-panel {
  align-self: start;
}

.settings-compact-table-panel {
  padding: 0;
  overflow: hidden;
}

.settings-table-scroll {
  max-height: 360px;
  overflow-y: auto;
  overflow-x: auto;
  scrollbar-gutter: stable;
}

.toolbar-hint {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(208, 168, 92, 0.12);
  color: #6f5a32;
  font-size: 17px;
  line-height: 1.6;
}

.detail-summary-card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
  margin-bottom: 24px;
  padding: 28px 30px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(30, 84, 138, 0.12);
  box-shadow: 0 18px 42px rgba(25, 71, 112, 0.08);
}

.detail-summary-item {
  text-align: center;
}

.detail-summary-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 16px;
}

.detail-summary-value {
  display: block;
  color: var(--text);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.35;
}

.link-btn {
  padding: 0;
  border: none;
  background: none;
  color: var(--primary);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.link-btn:hover {
  color: var(--primary-deep);
  text-decoration: underline;
}

.toolbar input,
.toolbar select {
  min-width: 180px;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: white;
  font-size: 18px;
}

.file-input-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal.hidden {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(22, 28, 36, 0.45);
}

.modal-card {
  position: relative;
  width: min(560px, calc(100vw - 32px));
  background: var(--paper);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 30px 80px rgba(18, 18, 18, 0.24);
}

.modal-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.modal-header h3,
.modal-header p {
  margin: 0;
}

.modal-header p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 18px;
}

.modal-header h3 {
  font-size: 31px;
}

.modal-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.modal-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--muted);
  font-size: 19px;
}

.modal-form input,
.modal-form select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 19px;
}

.modal-form .wide {
  grid-column: 1 / -1;
}

.modal-checkbox-row {
  align-items: flex-start;
}

.modal-checkbox-inline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  background: #f2f7fb;
  border: 1px solid rgba(20, 76, 129, 0.1);
}

.modal-checkbox-inline input {
  width: 20px;
  height: 20px;
  margin: 0;
}

.upload-field {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.upload-input-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.upload-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 112px;
}

.upload-name {
  font-size: 17px;
}

.modal-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: end;
  gap: 12px;
  margin-top: 8px;
}

.overview-item-main {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  min-width: 0;
  flex: 1;
}

.overview-item-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  justify-content: center;
}

.overview-photo {
  width: 108px;
  height: 144px;
  border-radius: 16px;
  object-fit: cover;
  flex-shrink: 0;
  background: #eef4f0;
  border: 1px solid rgba(36, 71, 62, 0.08);
}

.overview-photo.student {
  width: 108px;
  height: 144px;
  border-radius: 20px;
}

.overview-photo.dorm {
  width: 232px;
  height: 174px;
  border-radius: 20px;
}

.overview-photo.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #355c51;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  padding: 0 8px;
}

.overview-photo.placeholder.len-2 {
  font-size: 26px;
}

.overview-photo.placeholder.len-3 {
  font-size: 20px;
}

.dashboard-card {
  align-items: center;
  min-height: 174px;
}

.student-card .overview-item-text strong {
  font-size: 20px;
}

.overview-item-text span {
  color: var(--muted);
  line-height: 1.55;
  font-size: 15px;
}

.honor-board-root {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.honor-top3-grid {
  display: grid;
  grid-template-columns: repeat(3, 520px);
  gap: 18px;
  align-items: end;
  justify-content: center;
  margin: 0 auto;
}

.honor-board-list {
  display: grid;
  grid-template-columns: repeat(3, 520px);
  gap: 16px;
  justify-content: center;
  margin: 0 auto;
}

.honor-board-card {
  position: relative;
  justify-content: center;
  padding: 26px 24px 24px;
  background: linear-gradient(135deg, #fffaf0 0%, #f7f0df 100%);
  border: 1px solid rgba(199, 168, 98, 0.35);
}

.honor-board-main {
  flex-direction: row;
  align-items: center;
  gap: 18px;
  width: 100%;
  justify-content: center;
  text-align: center;
}

.top3-card {
  min-height: 236px;
  padding: 30px 24px 26px;
  background: linear-gradient(145deg, #fff8de 0%, #f7e8b4 100%);
  border: 1px solid rgba(210, 168, 58, 0.48);
  box-shadow: 0 18px 34px rgba(173, 137, 42, 0.18);
  width: 520px;
}

.top3-main {
  flex-direction: row;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.top3-card.champion {
  min-height: 278px;
  transform: translateY(-12px);
  background: linear-gradient(145deg, #fff7cf 0%, #f3d978 100%);
  border-color: rgba(214, 161, 22, 0.6);
}

.top3-card.runner-up,
.top3-card.third-place {
  min-height: 228px;
}

.top3-card.runner-up {
  background: linear-gradient(145deg, #f8f2e2 0%, #ddd5c6 100%);
  border-color: rgba(166, 156, 134, 0.52);
}

.top3-card.third-place {
  background: linear-gradient(145deg, #fff1dd 0%, #ddb889 100%);
  border-color: rgba(179, 126, 58, 0.5);
}

.honor-board-text strong {
  font-size: 24px;
  letter-spacing: 0.35px;
  line-height: 1.2;
}

.top3-text strong {
  font-size: 30px;
  color: #6b4f12;
}

.honor-board-text span {
  font-size: 16px;
}

.honor-board-text {
  align-items: center;
  text-align: center;
}

.top3-text span {
  font-size: 17px;
}

.top3-text {
  align-items: center;
  text-align: center;
}

.honor-rank-badge {
  position: absolute;
  top: 14px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  padding: 6px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f2d08a 0%, #c8a95a 100%);
  color: #5b4311;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.honor-rank-badge.top3 {
  background: linear-gradient(135deg, #ffef9c 0%, #e1ad24 55%, #bf8411 100%);
  color: #5a3f00;
  box-shadow: 0 10px 18px rgba(191, 132, 17, 0.28);
  font-size: 13px;
  min-width: 82px;
}

.top3-card.runner-up .honor-rank-badge.top3 {
  background: linear-gradient(135deg, #f5f3ee 0%, #cfc8bb 100%);
  color: #57524a;
  box-shadow: 0 10px 18px rgba(111, 105, 96, 0.18);
}

.top3-card.third-place .honor-rank-badge.top3 {
  background: linear-gradient(135deg, #f7ddbf 0%, #c98e48 100%);
  color: #6a4518;
  box-shadow: 0 10px 18px rgba(138, 93, 46, 0.18);
}

.honor-rank-badge.dorm {
  position: static;
  width: fit-content;
  margin-bottom: 10px;
}

.honor-student-photo {
  width: 124px;
  height: 168px;
  border-radius: 20px;
  box-shadow: 0 12px 22px rgba(59, 62, 39, 0.12);
}

.honor-student-photo.top3 {
  width: 148px;
  height: 196px;
  border-radius: 22px;
  box-shadow: 0 16px 28px rgba(128, 98, 17, 0.18);
}

.honor-board-list .student-card {
  width: 520px;
}

.dorm-gallery-list {
  display: grid;
  grid-template-columns: repeat(3, 560px);
  gap: 16px;
  justify-content: center;
}

.dorm-gallery-root {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.dorm-top3-grid {
  display: grid;
  grid-template-columns: repeat(3, 560px);
  gap: 18px;
  align-items: end;
  justify-content: center;
}

.dorm-gallery-card {
  justify-content: center;
  padding: 20px 22px;
  width: 560px;
}

.dorm-gallery-main {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 18px;
  width: 100%;
  text-align: left;
}

.dorm-gallery-photo {
  width: 100%;
  max-width: 280px;
  height: auto;
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  box-shadow: 0 14px 28px rgba(44, 70, 61, 0.12);
}

.dorm-gallery-text strong {
  font-size: 30px;
  margin-bottom: 8px;
  line-height: 1.2;
}

.dorm-gallery-text span {
  font-size: 17px;
  line-height: 1.6;
}

.dorm-gallery-card {
  background: linear-gradient(145deg, #fffaf0 0%, #f1ebdb 100%);
  border: 1px solid rgba(185, 157, 114, 0.32);
}

.dorm-gallery-card .honor-rank-badge.dorm {
  font-size: 13px;
  min-width: 82px;
}

.dorm-gallery-card.top3-card.champion {
  min-height: 278px;
  transform: translateY(-12px);
}

.dorm-gallery-card.top3-card.runner-up,
.dorm-gallery-card.top3-card.third-place {
  min-height: 228px;
}

.dorm-gallery-text {
  gap: 10px;
  align-items: flex-start;
  text-align: left;
}

.dorm-gallery-text .honor-rank-badge.dorm + strong {
  margin-top: 2px;
}

.dorm-gallery-card.top3-card .dorm-gallery-main {
  flex-direction: row;
  align-items: center;
  justify-content: center;
  text-align: left;
}

.dorm-gallery-card.top3-card .dorm-gallery-text {
  align-items: flex-start;
  text-align: left;
}

.dorm-gallery-card.top3-card .dorm-average-label,
.dorm-gallery-card.top3-card .dorm-average-value {
  display: block;
  line-height: 1.4;
}

.dorm-gallery-card.top3-card .dorm-gallery-photo {
  width: 360px;
  max-width: 360px;
  height: auto;
  aspect-ratio: 4 / 3;
}

.template-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.template-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.check-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fcfeff;
  color: var(--ink);
  font-size: 18px;
}

.check-card input {
  width: 22px;
  height: 22px;
}

.check-card.is-required {
  background: #edf5fb;
}

.table-panel {
  overflow: hidden;
  background: linear-gradient(180deg, #fcfeff 0%, #f7fbfe 100%);
}

.collection-table-panel {
  max-height: 620px;
  overflow: auto;
}

.collection-table-panel thead {
  position: sticky;
  top: 0;
  z-index: 1;
}

.table-panel .panel-header {
  padding: 18px 20px 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: transparent;
}

thead {
  background: #edf5fb;
}

th,
td {
  padding: 14px 16px;
  text-align: center;
  border-bottom: 1px solid #e0ebf3;
  font-size: 18px;
  vertical-align: top;
}

th[data-sort-view][data-sort-key] {
  cursor: pointer;
  user-select: none;
}

input[type="checkbox"] {
  width: 22px;
  height: 22px;
}

.text-btn {
  border: none;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  padding: 0;
  margin-right: 12px;
  font-size: 18px;
}

.text-btn.danger {
  color: var(--danger);
}

tbody tr:hover {
  background: #f3f8fc;
}

.view:not(#dashboard-view) .toolbar {
  justify-content: center;
}

.view:not(#dashboard-view) .toolbar label {
  align-items: center;
  text-align: center;
}

.view:not(#dashboard-view) .toolbar input,
.view:not(#dashboard-view) .toolbar select {
  text-align: center;
}

.table-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, #fafdff 0%, #eef6fc 100%);
  border: 1px solid rgba(23, 78, 130, 0.08);
}

.table-pagination-left,
.table-pagination-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.table-pagination-summary,
.table-pagination-indicator,
.table-pagination-size span {
  color: var(--muted);
  font-size: 16px;
}

.table-pagination-size {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.table-pagination-size select {
  min-width: 90px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 16px;
}

.segmented-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(20, 76, 129, 0.12);
  border-radius: 999px;
  background: #f1f7fc;
}

.segmented-toggle-btn {
  min-width: 116px;
  height: 42px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--primary);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.segmented-toggle-btn.active {
  background: linear-gradient(135deg, #1a5a93, #0f4c81);
  color: #fff;
  box-shadow: 0 10px 20px rgba(15, 76, 129, 0.18);
}

.view:not(#dashboard-view) .panel-header {
  justify-content: center;
  text-align: center;
}

.view:not(#dashboard-view) .panel-header span,
.view:not(#dashboard-view) .panel-header h3 {
  width: 100%;
}

.view:not(#dashboard-view) .score-grid label {
  align-items: center;
  text-align: center;
}

.view:not(#dashboard-view) .score-grid input,
.view:not(#dashboard-view) .score-grid select,
.view:not(#dashboard-view) .score-grid textarea {
  text-align: center;
}

.modal-header > div {
  width: 100%;
  text-align: center;
}

.modal-form label {
  align-items: center;
  text-align: center;
}

.modal-form input,
.modal-form select {
  text-align: center;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.pill.plus {
  color: #0f766e;
  background: #d6f5f1;
}

.pill.minus {
  color: var(--danger);
  background: #fee4e2;
}

.muted {
  color: var(--muted);
}

.photo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: none;
  border: none;
  color: var(--accent);
  text-decoration: none;
  font: inherit;
  cursor: pointer;
}

.photo-preview-modal-card {
  width: min(760px, calc(100vw - 40px));
}

.photo-preview-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
}

.photo-preview-image {
  max-width: 100%;
  max-height: min(72vh, 640px);
  border-radius: 18px;
  object-fit: contain;
  box-shadow: var(--shadow);
}

.score-log-modal-card {
  width: min(1120px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: auto;
}

.score-log-modal-header {
  margin-bottom: 12px;
}

.score-log-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-bottom: 16px;
}

.score-log-config {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 14px;
  align-items: end;
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #f7fbfe;
}

.score-log-config label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: var(--muted);
  font-size: 15px;
}

.score-log-config input,
.score-log-config textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.score-log-config textarea {
  min-height: 90px;
  resize: vertical;
}

.score-log-notice-field {
  grid-column: 1 / -1;
}

.score-log-title-field {
  grid-column: 1 / -1;
}

.score-log-preview {
  display: flex;
  justify-content: center;
  padding: 22px;
  border-radius: 18px;
  background: #e7edf3;
}

.score-log-document {
  width: 794px;
  min-height: 1123px;
  margin: 0 auto;
  padding: 88px 72px;
  background: #fff;
  color: #000;
  text-align: center;
  font-family: "仿宋_GB2312", "FangSong", "仿宋", serif;
  font-size: 19px;
  line-height: 1.65;
  box-shadow: 0 18px 50px rgba(20, 42, 66, 0.18);
}

.score-log-document h1 {
  margin: 0 0 34px;
  color: #000;
  font-family: "方正小标宋简体", "方简小标宋简体", "SimSun", serif;
  font-size: 26px;
  font-weight: 400;
  line-height: 1.35;
  text-align: center;
}

.score-log-section {
  margin-top: 28px;
  text-align: center;
}

.score-log-section h2 {
  margin: 0 0 12px;
  color: #000;
  font-family: "仿宋_GB2312", "FangSong", "仿宋", serif;
  font-size: 19px;
  font-weight: 700;
  text-align: left;
}

.score-log-table {
  width: 100%;
  margin: 0 auto;
  border-collapse: collapse;
  table-layout: fixed;
  color: #000;
  font-family: "仿宋_GB2312", "FangSong", "仿宋", serif;
  font-size: 16px;
  line-height: 1.45;
}

.score-log-table th,
.score-log-table td {
  padding: 8px 7px;
  border: 1px solid #000;
  text-align: center;
  vertical-align: middle;
  word-break: break-word;
}

.score-log-table th {
  font-weight: 700;
}

.score-log-table th:nth-child(1),
.score-log-table td:nth-child(1) {
  width: 8%;
}

.score-log-table th:nth-child(2),
.score-log-table td:nth-child(2) {
  width: 12%;
}

.score-log-table th:nth-child(3),
.score-log-table td:nth-child(3) {
  width: 23%;
}

.score-log-table th:nth-child(4),
.score-log-table td:nth-child(4) {
  width: 23%;
}

.score-log-table th:nth-child(5),
.score-log-table td:nth-child(5) {
  width: 12%;
}

.score-log-table th:nth-child(6),
.score-log-table td:nth-child(6) {
  width: 22%;
}

.score-log-notice-table th:nth-child(4),
.score-log-notice-table td:nth-child(4) {
  width: auto;
}

.score-log-notice-text {
  min-height: 120px;
  padding: 16px 18px;
  border: 1px solid #000;
  color: #000;
  font-family: "FangSong_GB2312", "FangSong", "STFangsong", serif;
  font-size: 18px;
  line-height: 1.8;
  text-align: left;
}

.score-log-empty-preview {
  width: 100%;
  padding: 36px;
  border-radius: 16px;
  background: #fff;
  color: var(--danger);
  text-align: center;
  font-weight: 700;
}

.log-empty-cell {
  color: #444;
}

.score-log-print-body {
  margin: 0;
  background: #fff;
}

.score-log-print-body .score-log-document {
  box-shadow: none;
}

@media print {
  @page {
    size: A4;
    margin: 18mm;
  }

  body.score-log-print-body {
    background: #fff;
  }

  body.score-log-print-body .score-log-document {
    width: auto;
    min-height: auto;
    padding: 0;
    box-shadow: none;
  }
}

.hidden-by-role {
  display: none !important;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-card {
  width: min(460px, calc(100vw - 32px));
  padding: 28px;
  border-radius: 28px;
  background: var(--paper);
  border: 1px solid rgba(165, 146, 120, 0.18);
  box-shadow: var(--shadow);
}

.auth-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.auth-header h1,
.auth-header p {
  margin: 0;
}

.auth-header p {
  margin-top: 4px;
  color: var(--muted);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.auth-form input {
  width: 100%;
  padding: 13px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 14px;
}

.auth-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.auth-tip {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.auth-actions .primary-btn {
  min-width: 128px;
  white-space: nowrap;
  text-align: center;
}

.showcase-shell {
  min-height: 100vh;
  padding: 28px 32px 40px;
  zoom: 0.75;
}

.showcase-hero {
  margin-bottom: 24px;
}

.showcase-hero-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 28px;
  min-height: 128px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(231, 243, 252, 0.96), rgba(216, 233, 246, 0.96));
  border: 1px solid rgba(112, 149, 186, 0.18);
  box-shadow: var(--shadow);
}

.showcase-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 0 auto;
  text-align: center;
}

.showcase-hero-actions {
  position: absolute;
  right: 26px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.showcase-brand-logos {
  position: absolute;
  left: 28px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.showcase-brand-logo {
  width: 86px;
  height: 86px;
  border-radius: 999px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.82);
  border: 2px solid rgba(28, 86, 134, 0.14);
  box-shadow: 0 12px 28px rgba(22, 65, 102, 0.12);
}

.showcase-brand h1,
.showcase-brand p {
  margin: 0;
}

.showcase-brand h1 {
  font-size: 34px;
  letter-spacing: 1px;
}

.showcase-brand p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 16px;
}

.showcase-logo-preview-wrap {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
  min-height: 88px;
}

.showcase-logo-preview {
  width: 88px;
  height: 88px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(28, 86, 134, 0.16);
  background: rgba(234, 243, 249, 0.72);
}

.showcase-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

.showcase-search-panel {
  margin-top: 22px;
  padding: 24px 26px 26px;
}

.showcase-search-panel.standalone {
  margin-top: 0;
}

.showcase-search-shell {
  max-width: 1760px;
  margin: 0 auto;
}

.showcase-search-header {
  align-items: flex-start;
  margin-bottom: 16px;
}

.showcase-search-header span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}

.showcase-search-form {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.showcase-search-input {
  flex: 1 1 420px;
  min-width: 280px;
  height: 48px;
  padding: 0 16px;
  border: 1px solid rgba(112, 149, 186, 0.28);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  font-size: 16px;
  outline: none;
  box-shadow: inset 0 1px 2px rgba(14, 42, 72, 0.04);
}

.showcase-search-input:focus {
  border-color: rgba(22, 63, 102, 0.42);
  box-shadow: 0 0 0 4px rgba(22, 63, 102, 0.08);
}

.showcase-search-status {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
}

.showcase-search-status[data-state="loading"] {
  color: #2f628f;
}

.showcase-search-status[data-state="success"] {
  color: #1d6a4d;
}

.showcase-search-status[data-state="error"] {
  color: #b34848;
}

.showcase-search-results {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.showcase-search-item,
.showcase-search-empty {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(112, 149, 186, 0.16);
  box-shadow: 0 10px 24px rgba(22, 63, 102, 0.08);
}

.showcase-search-item {
  padding: 16px 18px;
}

.showcase-search-item.plus {
  border-left: 6px solid rgba(194, 72, 72, 0.88);
}

.showcase-search-item.minus {
  border-left: 6px solid rgba(39, 132, 89, 0.88);
}

.showcase-search-item-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.showcase-search-item-head strong {
  font-size: 18px;
}

.showcase-search-item-head span {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.showcase-search-item-body {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.showcase-search-item-title {
  font-size: 16px;
  font-weight: 700;
}

.showcase-search-item-meta,
.showcase-search-item-remark,
.showcase-search-empty {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.showcase-search-empty {
  padding: 22px 18px;
  text-align: center;
}

.showcase-panel {
  padding: 24px;
  height: 100%;
}

.showcase-login-btn {
  white-space: nowrap;
  text-decoration: none;
}

.showcase-query-btn {
  white-space: nowrap;
  text-decoration: none;
}

.showcase-login-btn:hover,
.showcase-query-btn:hover {
  transform: scale(1.05);
}

.showcase-panel .honor-top3-grid,
.showcase-panel .dorm-top3-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  justify-items: stretch;
}

.showcase-panel .honor-board-list,
.showcase-panel .dorm-gallery-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  justify-items: stretch;
}


.showcase-panel .honor-board-card,
.showcase-panel .top3-card,
.showcase-panel .dorm-gallery-card {
  width: 100%;
}

.showcase-panel .top3-card {
  min-height: 214px;
  padding: 24px 22px 20px;
}

.showcase-panel .top3-card.champion {
  min-height: 236px;
  transform: translateY(-8px);
}

.showcase-panel .top3-card.runner-up,
.showcase-panel .top3-card.third-place {
  min-height: 206px;
}

.showcase-panel .honor-board-card {
  min-height: 206px;
  padding: 24px 22px 20px;
}

.showcase-panel .honor-board-main,
.showcase-panel .top3-main {
  gap: 18px;
  justify-content: center;
  align-items: center;
}

.showcase-panel .honor-board-text,
.showcase-panel .top3-text {
  align-items: flex-start;
  text-align: left;
}

.showcase-panel .honor-student-photo.top3 {
  width: 128px;
  min-width: 128px;
  height: 164px;
}

.showcase-panel .honor-student-photo {
  width: 104px;
  min-width: 104px;
  height: 128px;
}

.showcase-panel .honor-board-text strong {
  font-size: 20px;
}

.showcase-panel .top3-text strong {
  font-size: 24px;
}

.showcase-panel .honor-board-text span {
  font-size: 15px;
}

.showcase-panel .top3-text span {
  font-size: 16px;
}

.showcase-panel .student-card .honor-rank-badge {
  top: 12px;
  right: 12px;
}

.showcase-panel .student-card .honor-rank-badge.top3 {
  min-width: 78px;
}

.showcase-panel .dorm-gallery-card {
  min-height: 172px;
  padding: 16px 16px 14px;
}

.showcase-panel .dorm-gallery-card.top3-card {
  min-height: 232px;
}

.showcase-panel .dorm-gallery-card.top3-card.champion {
  min-height: 258px;
  transform: translateY(-8px);
}

.showcase-panel .dorm-gallery-main,
.showcase-panel .dorm-gallery-card.top3-card .dorm-gallery-main {
  gap: 14px;
  justify-content: center;
}

.showcase-panel .dorm-gallery-card.top3-card .dorm-gallery-photo {
  width: 205px;
  max-width: 205px;
}

.showcase-panel .dorm-gallery-photo {
  width: 151px;
  max-width: 151px;
}

.showcase-panel .dorm-gallery-list .dorm-gallery-card {
  min-height: 236px;
  padding: 14px;
}

.showcase-panel .dorm-gallery-list .dorm-gallery-main {
  align-items: center;
  justify-content: center;
}

.showcase-panel .dorm-gallery-list .dorm-gallery-photo {
  width: 198px;
  max-width: 198px;
  height: auto;
  aspect-ratio: 4 / 3;
}

.showcase-panel .dorm-gallery-list .dorm-gallery-text {
  align-items: flex-start;
  text-align: left;
  gap: 8px;
}

.showcase-panel .dorm-gallery-card.top3-card .dorm-gallery-text {
  align-items: flex-start;
  text-align: left;
}

.showcase-panel .dorm-gallery-text strong {
  font-size: 18px;
}

.showcase-panel .dorm-gallery-text span {
  font-size: 14px;
}

.showcase-header {
  justify-content: center;
  text-align: center;
}

.showcase-header h2 {
  width: 100%;
  font-size: 30px;
}

@media (max-width: 1024px) {
  .shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    gap: 18px;
  }

  .card-grid,
  .panel-grid {
    grid-template-columns: 1fr;
  }

  .honor-board-list {
    grid-template-columns: 1fr;
  }

  .honor-top3-grid {
    grid-template-columns: 1fr;
  }

  .dorm-top3-grid {
    grid-template-columns: 1fr;
  }

  .dorm-gallery-list {
    grid-template-columns: 1fr;
  }

  .dorm-gallery-main {
    flex-direction: column;
    align-items: flex-start;
  }

  .dorm-gallery-photo {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .modal-form {
    grid-template-columns: 1fr;
  }

  .template-grid {
    grid-template-columns: 1fr;
  }

  .showcase-content {
    grid-template-columns: 1fr;
  }

  .showcase-panel .honor-top3-grid,
  .showcase-panel .dorm-top3-grid,
  .showcase-panel .honor-board-list,
  .showcase-panel .dorm-gallery-list {
    grid-template-columns: 1fr;
  }

  .showcase-hero-inner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .showcase-brand {
    justify-content: center;
  }

  .showcase-brand-logos {
    position: static;
    transform: none;
    justify-content: center;
  }

  .showcase-hero-actions {
    position: static;
    transform: none;
    justify-content: center;
    flex-wrap: wrap;
  }

  .showcase-login-btn,
  .showcase-query-btn {
    position: static;
    align-self: center;
  }

  .showcase-search-results {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .showcase-shell {
      zoom: 1;
      padding: 18px 16px 28px;
    }

  .showcase-hero-inner,
  .showcase-panel {
    padding: 18px;
  }

  .showcase-brand {
    flex-direction: column;
  }

  .showcase-brand-logos {
    position: static;
    transform: none;
    justify-content: center;
  }

  .showcase-hero-actions {
    width: 100%;
  }

  .showcase-brand h1 {
    font-size: 28px;
  }

  .showcase-brand p {
    font-size: 15px;
  }

  .showcase-header h2 {
    font-size: 24px;
  }
}

.showcase-slide-preview-wrap {
  display: flex;
  justify-content: center;
}

.showcase-slide-preview {
  width: 132px;
  height: 74px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(112, 149, 186, 0.25);
  box-shadow: var(--shadow-soft);
}

.showcase-crop-modal-content {
  max-width: 860px;
}

.showcase-crop-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 24px;
  align-items: start;
}

.showcase-crop-stage-wrap {
  display: flex;
  justify-content: center;
}

.showcase-crop-stage {
  position: relative;
  width: 420px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(180deg, #f3f8fc 0%, #e7f0f8 100%);
  border: 1px solid rgba(112, 149, 186, 0.24);
  box-shadow: var(--shadow-soft);
}

.showcase-crop-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid rgba(18, 59, 93, 0.18);
  border-radius: 18px;
  pointer-events: none;
}

.showcase-crop-stage img {
  position: absolute;
  max-width: none;
  user-select: none;
  -webkit-user-drag: none;
}

.showcase-crop-controls {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.showcase-crop-controls label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
  text-align: left;
}

.showcase-crop-controls input[type="range"] {
  width: 100%;
}

.showcase-crop-controls strong {
  color: var(--brand-primary);
  font-size: 16px;
  text-align: right;
}

.showcase-carousel-panel {
  margin-top: 24px;
}

.showcase-carousel-shell {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
}

.showcase-carousel-viewport {
  overflow: hidden;
  border-radius: 18px;
  width: 100%;
}

.showcase-carousel-track {
  overflow: hidden;
  width: 100%;
}

.showcase-carousel-marquee {
  display: flex;
  gap: 18px;
  width: max-content;
}

.showcase-carousel-marquee.static {
  width: 100%;
}

.showcase-carousel-marquee.scrolling {
  animation: showcaseCarouselMarquee 42s linear infinite;
}

.showcase-carousel-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 240px;
  gap: 18px;
}

.showcase-carousel-slide {
  min-width: 100%;
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(180deg, #f6fbff 0%, #ebf4fb 100%);
}

.showcase-carousel-image {
  width: 100%;
  aspect-ratio: 21 / 8;
  object-fit: cover;
  display: block;
}

.showcase-carousel-caption {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(9, 37, 64, 0.56);
  color: #fff;
  backdrop-filter: blur(8px);
}

.showcase-carousel-caption strong {
  font-size: 24px;
}

.showcase-carousel-caption span {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.92);
}

.showcase-carousel-nav {
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 999px;
  background: rgba(18, 59, 93, 0.92);
  color: #fff;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.showcase-carousel-nav.hidden {
  display: none;
}

.showcase-carousel-nav:hover {
  background: rgba(14, 48, 78, 0.96);
}

.showcase-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.showcase-carousel-dot {
  width: 12px;
  height: 12px;
  border: none;
  border-radius: 999px;
  background: rgba(18, 59, 93, 0.25);
  cursor: pointer;
}

.showcase-carousel-dot.active {
  width: 34px;
  background: var(--brand-primary);
}

@media (max-width: 1024px) {
  .showcase-crop-layout {
    grid-template-columns: 1fr;
  }

  .showcase-crop-stage {
    width: min(100%, 420px);
  }

  .showcase-carousel-shell {
    gap: 4px;
  }

  .showcase-carousel-nav {
    width: 40px;
    height: 40px;
    font-size: 26px;
  }

  .showcase-carousel-image {
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 720px) {
  .showcase-carousel-caption {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 12px;
  }

  .showcase-carousel-caption strong {
    font-size: 18px;
  }

  .showcase-carousel-caption span {
    font-size: 14px;
  }
}

.showcase-carousel-viewport {
  max-width: 1120px;
  margin: 0 auto;
}

.showcase-carousel-page {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.showcase-carousel-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(180deg, #f6fbff 0%, #ebf4fb 100%);
  border: 1px solid rgba(112, 149, 186, 0.18);
  box-shadow: var(--shadow-soft);
}

.showcase-carousel-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.showcase-carousel-caption {
  left: 14px;
  right: 14px;
  bottom: 14px;
  padding: 10px 12px;
  gap: 4px;
}

.showcase-carousel-caption strong {
  font-size: 18px;
}

.showcase-carousel-caption span {
  font-size: 13px;
}

@media (max-width: 1024px) {
  .showcase-carousel-page {
    grid-template-columns: 1fr;
  }
}

.showcase-carousel-viewport {
  max-width: 1380px;
}

.showcase-carousel-page {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.showcase-carousel-caption {
  left: 10px;
  right: 10px;
  bottom: 10px;
  padding: 8px 10px;
}

.showcase-carousel-caption strong {
  font-size: 16px;
}

.showcase-carousel-caption span {
  font-size: 12px;
}

@media (max-width: 1280px) {
  .showcase-carousel-page {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .showcase-carousel-page {
    grid-template-columns: 1fr;
  }
}

.showcase-carousel-viewport {
  max-width: 1560px;
}

.showcase-carousel-page {
  grid-template-columns: repeat(4, minmax(280px, 1fr));
  gap: 18px;
  justify-content: center;
}

.showcase-carousel-caption {
  left: 14px;
  right: 14px;
  bottom: 14px;
  padding: 10px 12px;
  gap: 4px;
}

.showcase-carousel-caption strong {
  font-size: 18px;
}

.showcase-carousel-caption span {
  font-size: 13px;
}

@media (max-width: 1460px) {
  .showcase-carousel-page {
    grid-template-columns: repeat(3, minmax(260px, 1fr));
  }
}

@media (max-width: 1100px) {
  .showcase-carousel-page {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .showcase-carousel-page {
    grid-template-columns: 1fr;
  }
}

.showcase-carousel-panel {
  margin-top: 16px;
  padding-top: 22px;
  padding-bottom: 22px;
}

.showcase-bottom-grid {
  display: grid;
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}

.showcase-score-feed {
  border-radius: 24px;
  background: linear-gradient(180deg, #f8fbff 0%, #edf5fb 100%);
  border: 1px solid rgba(112, 149, 186, 0.18);
  box-shadow: var(--shadow-soft);
  padding: 14px 16px 12px;
  min-height: 100%;
}

.showcase-score-feed-list {
  width: 100%;
  height: 272px;
  overflow: hidden;
  position: relative;
}

.showcase-score-feed-track {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.showcase-score-feed-track.static {
  justify-content: center;
  min-height: 100%;
}

.showcase-score-feed-track.scrolling {
  animation: showcaseScoreFeedScroll 28s linear infinite;
}

.showcase-score-feed-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.showcase-score-feed-item {
  border-radius: 18px;
  padding: 10px 12px 8px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(112, 149, 186, 0.14);
  min-height: 78px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.showcase-score-feed-item.plus {
  border-left: 6px solid rgba(194, 72, 72, 0.88);
}

.showcase-score-feed-item.minus {
  border-left: 6px solid rgba(39, 132, 89, 0.88);
}

.showcase-score-feed-line {
  color: var(--text-primary);
  font-size: 15px;
  line-height: 1.45;
  font-weight: 700;
}

.showcase-score-feed-meta {
  margin-top: 5px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-muted);
  font-size: 12px;
}

.showcase-score-feed-empty {
  padding: 32px 18px;
  border-radius: 18px;
  text-align: center;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.82);
}

@keyframes showcaseScoreFeedScroll {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(calc(-50% - 5px));
  }
}

@keyframes showcaseCarouselMarquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-50% - 9px));
  }
}

.showcase-carousel-shell {
  margin-top: 0;
}

.showcase-carousel-caption {
  left: 14px;
  right: auto;
  top: auto;
  bottom: 14px;
  transform: none;
  width: calc(25% - 12px);
  max-width: 25%;
  padding: 10px 12px;
  gap: 4px;
  background: rgba(9, 37, 64, 0.1);
  overflow: hidden;
}

.showcase-carousel-caption strong,
.showcase-carousel-caption span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.showcase-carousel-viewport {
  max-width: none;
  width: 100%;
}

.showcase-carousel-strip {
  grid-auto-columns: 420px;
  gap: 10px;
}

.showcase-carousel-card {
  height: 300px;
  border-radius: 22px;
}

.showcase-carousel-image {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
}

.showcase-carousel-page {
  grid-template-columns: repeat(6, minmax(240px, 1fr));
  gap: 16px;
  justify-content: center;
}

@media (max-width: 1800px) {
  .showcase-carousel-page {
    grid-template-columns: repeat(5, minmax(220px, 1fr));
  }
}

@media (max-width: 1560px) {
  .showcase-carousel-page {
    grid-template-columns: repeat(4, minmax(220px, 1fr));
  }
}

@media (max-width: 1280px) {
  .showcase-carousel-page {
    grid-template-columns: repeat(3, minmax(220px, 1fr));
  }
}

@media (max-width: 980px) {
  .showcase-carousel-page {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1280px) {
  .showcase-search-results {
    grid-template-columns: 1fr;
  }

  .showcase-bottom-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1280px) {
  .settings-grid,
  .settings-logo-grid,
  .settings-form-grid {
    grid-template-columns: 1fr;
  }

  .showcase-bottom-grid {
    grid-template-columns: 1fr;
  }

  .showcase-carousel-strip {
    grid-auto-columns: 360px;
  }
}

@media (max-width: 1800px) {
  .showcase-carousel-strip {
    grid-auto-columns: 390px;
  }
}

@media (max-width: 720px) {
  .showcase-carousel-page {
    grid-template-columns: 1fr;
  }

  .showcase-carousel-caption {
    width: calc(30% - 10px);
    max-width: 30%;
    left: 10px;
    right: auto;
    top: auto;
    bottom: 10px;
    transform: none;
    padding: 8px 10px;
  }
}
