:root {
  --bg-main: #fffaf8;
  --bg-card: rgba(255, 255, 255, 0.84);
  --text-main: #24314d;
  --text-soft: #6f7f9d;
  --accent: #7588ff;
  --accent-2: #6ed0ff;
  --accent-3: #ffcb73;
  --accent-4: #96e3c6;
  --accent-5: #ff9ec4;
  --border: rgba(116, 135, 190, 0.12);
  --success: #e7fff0;
  --success-text: #15693e;
  --error: #fff1f1;
  --error-text: #a73434;
  --shadow: 0 20px 48px rgba(97, 114, 173, 0.14);
  --shadow-soft: 0 12px 28px rgba(109, 126, 186, 0.12);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text-main);
  position: relative;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 10% 8%, rgba(110, 208, 255, 0.26), transparent 22%),
    radial-gradient(circle at 92% 10%, rgba(255, 203, 115, 0.24), transparent 20%),
    radial-gradient(circle at 85% 78%, rgba(150, 227, 198, 0.2), transparent 18%),
    radial-gradient(circle at 18% 88%, rgba(255, 158, 196, 0.12), transparent 20%),
    linear-gradient(180deg, #fffdfc 0%, #f7f5ff 50%, #f6fbff 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  filter: blur(12px);
}

body::before {
  top: 120px;
  left: -90px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(117, 136, 255, 0.16), transparent 68%);
}

body::after {
  right: -70px;
  bottom: 80px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(255, 158, 196, 0.13), transparent 70%);
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell,
.simple-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 40px;
}

.page-shell {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 24px;
  align-items: stretch;
  min-height: 100vh;
}

.hero-panel,
.entry-panel,
.simple-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}

.hero-panel {
  padding: 42px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(251, 247, 255, 0.92)),
    var(--bg-card);
}

.hero-panel::before,
.hero-panel::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero-panel::before {
  top: -46px;
  right: 110px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(255, 203, 115, 0.4), transparent 72%);
}

.hero-panel::after {
  right: -40px;
  bottom: -46px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(110, 208, 255, 0.28), rgba(255, 158, 196, 0.08) 58%, transparent 74%);
}

.hero-badge,
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 10px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(117, 136, 255, 0.14), rgba(255, 158, 196, 0.11), rgba(110, 208, 255, 0.14));
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.hero-panel h1,
.simple-card h1 {
  margin: 18px 0 14px;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.15;
}

.hero-text,
.entry-card p,
.simple-card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 1.02rem;
  line-height: 1.7;
}

.hero-card-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  position: relative;
  z-index: 1;
}

.hero-mini-card {
  padding: 18px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(250, 246, 255, 0.9));
  border: 1px solid rgba(116, 135, 190, 0.1);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  transform: rotate(-0.6deg);
}

.hero-mini-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 30px rgba(109, 126, 186, 0.16);
}

.hero-mini-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 10px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2), var(--accent-5));
  color: #fff;
  font-weight: 800;
  box-shadow: 0 10px 20px rgba(117, 136, 255, 0.2);
}

.hero-mini-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.hero-mini-card p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.6;
}

.entry-panel {
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(245, 249, 255, 0.9)),
    var(--bg-card);
}

.tab-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.tab-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  border-radius: 18px;
  background: rgba(242, 246, 255, 0.88);
  color: #5e6e8c;
  font-weight: 700;
  border: 1px solid rgba(116, 135, 190, 0.08);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.tab-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.tab-btn.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-5) 72%, #ffb86a 120%);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(106, 124, 255, 0.24);
}

.flash-stack {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.flash-message {
  padding: 14px 16px;
  border-radius: 18px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.flash-message.success {
  background: var(--success);
  color: var(--success-text);
}

.flash-message.error {
  background: var(--error);
  color: var(--error-text);
}

.forms-wrap {
  position: relative;
}

.group-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  color: #41506f;
}

.digit-boxes {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 24px;
}

.digit-box {
  width: 100%;
  aspect-ratio: 1;
  font-size: 1.8rem;
  font-weight: 800;
  text-align: center;
  border-radius: 20px;
  border: 2px solid rgba(84, 104, 156, 0.15);
  background: linear-gradient(180deg, #ffffff, #f8f4ff);
  color: var(--accent);
  transition: all 0.2s ease;
  padding: 0;
  box-shadow: 0 8px 18px rgba(117, 136, 255, 0.08);
}

.digit-box:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 4px 12px rgba(95, 124, 255, 0.15);
}

.entry-card {
  display: none;
  padding: 26px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(251, 247, 255, 0.95));
  border: 1px solid rgba(116, 135, 190, 0.1);
  box-shadow: var(--shadow-soft);
}

.entry-card.visible {
  display: block;
}

.entry-card h2 {
  margin: 0 0 10px;
  font-size: 1.75rem;
}

.entry-card p {
  margin-bottom: 18px;
}

label {
  display: block;
  margin-bottom: 14px;
}

label span {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}

input {
  width: 100%;
  min-height: 58px;
  border: 2px solid rgba(116, 135, 190, 0.06);
  border-radius: 20px;
  padding: 0 18px;
  font-size: 1rem;
  color: var(--text-main);
  background: linear-gradient(180deg, #ffffff, #f7f4ff);
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

input:focus {
  border-color: rgba(106, 124, 255, 0.45);
  background: #fff;
  box-shadow: 0 0 0 5px rgba(106, 124, 255, 0.1);
  transform: translateY(-1px);
}

input[type="file"] {
  padding: 14px 16px;
}

textarea {
  width: 100%;
  border: 2px solid rgba(116, 135, 190, 0.06);
  border-radius: 20px;
  padding: 16px 18px;
  font: inherit;
  font-size: 1rem;
  color: var(--text-main);
  background: linear-gradient(180deg, #ffffff, #f7f4ff);
  outline: none;
  resize: vertical;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

textarea:focus {
  border-color: rgba(106, 124, 255, 0.45);
  background: #fff;
  box-shadow: 0 0 0 5px rgba(106, 124, 255, 0.1);
  transform: translateY(-1px);
}

.group-selector {
  margin-bottom: 24px;
}

.group-selector-label {
  display: block;
  margin-bottom: 12px;
  font-weight: 700;
  color: #38517d;
}

.group-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.group-card-label {
  margin: 0;
  cursor: pointer;
}

.group-card-label input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.group-card-content {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff, #f7f4ff);
  border: 2px solid rgba(116, 135, 190, 0.04);
  transition: all 0.2s ease;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.group-card-content strong {
  font-size: 1rem;
  color: var(--text-main);
  margin-bottom: 0;
}

.group-card-content small {
  color: var(--text-soft);
  font-size: 0.95rem;
}

.group-card-label:hover .group-card-content {
  transform: translateY(-2px);
  background: linear-gradient(135deg, rgba(117, 136, 255, 0.08), rgba(255, 158, 196, 0.08), rgba(110, 208, 255, 0.1));
}

.group-card-label input:checked + .group-card-content {
  background: linear-gradient(135deg, rgba(117, 136, 255, 0.12), rgba(255, 158, 196, 0.12), rgba(110, 208, 255, 0.14));
  border-color: var(--accent);
}

.group-card-label input:checked + .group-card-content strong {
  color: var(--accent);
}

.select-input {
  width: 100%;
  min-height: 58px;
  border: 2px solid transparent;
  border-radius: 18px;
  padding: 0 18px;
  font: inherit;
  font-size: 1rem;
  color: var(--text-main);
  background: #f5f7ff;
  outline: none;
}

.select-input:focus {
  border-color: rgba(95, 124, 255, 0.55);
  background: #fff;
}

.primary-btn,
.link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  width: 100%;
  border: 0;
  border-radius: 22px;
  background: linear-gradient(135deg, #7588ff, #6ed0ff 45%, #96e3c6 78%, #ff9ec4 120%);
  color: #fff;
  font-size: 1.04rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 16px 30px rgba(117, 136, 255, 0.24);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.primary-btn:hover,
.link-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 34px rgba(93, 135, 232, 0.34);
  filter: saturate(1.05);
}

.hint-box {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(117, 136, 255, 0.06), rgba(255, 158, 196, 0.07), rgba(110, 208, 255, 0.08));
  border: 1px solid rgba(116, 135, 190, 0.08);
  color: var(--text-soft);
  line-height: 1.65;
}

.simple-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.simple-card {
  width: min(760px, 100%);
  padding: 36px;
}

.simple-card strong {
  color: var(--accent);
}

.group-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0;
}

.group-chip {
  padding: 12px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(117, 136, 255, 0.12), rgba(255, 158, 196, 0.1));
  color: #37507f;
  font-weight: 700;
}

.link-btn {
  margin-top: 10px;
}

.dashboard-shell {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 40px;
}

.dashboard-hero,
.dashboard-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}

.dashboard-hero {
  padding: 24px;
  margin-bottom: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(251, 247, 255, 0.92)),
    var(--bg-card);
}

.dashboard-hero::after,
.dashboard-card::after {
  content: "";
  position: absolute;
  top: -26px;
  right: -26px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 158, 196, 0.12), transparent 70%);
  pointer-events: none;
}

.dashboard-hero::before,
.dashboard-card::before {
  content: "";
  position: absolute;
  left: 26px;
  top: 20px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255, 203, 115, 0.46);
  box-shadow:
    22px 8px 0 rgba(110, 208, 255, 0.26),
    46px -2px 0 rgba(255, 158, 196, 0.22);
  pointer-events: none;
}

.dashboard-card {
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(251, 247, 255, 0.94)),
    var(--bg-card);
}

.dashboard-hero h1 {
  margin: 16px 0 10px;
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1.2;
}

.dashboard-hero p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.7;
  font-size: 1.02rem;
}

.hero-action-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.hero-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  background: rgba(95, 124, 255, 0.12);
  border: 1px solid rgba(95, 124, 255, 0.18);
  color: var(--accent);
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease;
}

.hero-nav-btn:hover {
  transform: translateY(-1px);
  background: rgba(95, 124, 255, 0.18);
}

.hero-nav-btn.guard-link {
  background: rgba(84, 104, 156, 0.08);
  border-color: rgba(84, 104, 156, 0.12);
  color: #667792;
}

.dashboard-flash {
  margin-top: 18px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 24px;
  align-items: start;
}

.single-column-grid {
  display: block;
}

.single-column-grid > .dashboard-card:not(:last-child) {
  margin-bottom: 24px;
}

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

.card-head h2 {
  margin: 0 0 8px;
  font-size: 1.55rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.toggle-icon {
  font-size: 1rem;
  color: var(--text-soft);
  transition: transform 0.2s ease;
}

.card-head p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.65;
}

.tips-chip {
  min-width: fit-content;
  padding: 10px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 203, 115, 0.32), rgba(255, 158, 196, 0.18), rgba(255, 223, 145, 0.4));
  color: #8a5d00;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

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

.hint-panel {
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(117, 136, 255, 0.06), rgba(255, 158, 196, 0.06), rgba(110, 208, 255, 0.08));
  border: 1px dashed rgba(106, 124, 255, 0.22);
}

.hint-panel strong {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
}

.hint-panel p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.6;
}

.dynamic-input-section {
  margin-bottom: 16px;
}

.dynamic-input-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.dynamic-input-head span {
  font-weight: 700;
}

.dynamic-input-head small {
  color: var(--text-soft);
  font-size: 0.92rem;
}

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

.dynamic-field {
  margin-bottom: 0;
  padding: 14px;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff, #faf5ff);
  border: 1px solid rgba(116, 135, 190, 0.08);
}

.dynamic-field span {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  color: #41506f;
}

.dynamic-empty {
  padding: 16px 18px;
  border-radius: 18px;
  color: var(--text-soft);
  background: linear-gradient(135deg, rgba(117, 136, 255, 0.05), rgba(255, 158, 196, 0.05), rgba(110, 208, 255, 0.07));
  border: 1px dashed rgba(106, 124, 255, 0.22);
}

.course-list {
  display: grid;
  gap: 16px;
}

.course-item {
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(252, 247, 255, 0.92));
  border: 1px solid rgba(116, 135, 190, 0.1);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.course-item:hover,
.peer-card:hover,
.overview-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 36px rgba(109, 126, 186, 0.18);
}

.course-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.course-top h3 {
  margin: 0 0 8px;
  font-size: 1.3rem;
}

.course-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.course-code-badge {
  min-width: 104px;
  padding: 12px 16px;
  border-radius: 18px;
  text-align: center;
  background: linear-gradient(135deg, #7588ff, #6ed0ff 55%, #ff9ec4 120%);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.08em;
  box-shadow: 0 12px 24px rgba(93, 135, 232, 0.26);
}

.token-block {
  margin-top: 12px;
}

.token-block strong {
  display: block;
  margin-bottom: 8px;
}

.token-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.token-chip {
  padding: 10px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(117, 136, 255, 0.1), rgba(255, 158, 196, 0.08), rgba(110, 208, 255, 0.11));
  color: #38517d;
  font-weight: 700;
}

.token-chip.warm {
  background: linear-gradient(135deg, rgba(255, 203, 115, 0.24), rgba(255, 233, 170, 0.36));
  color: #8f6200;
}

.course-time {
  margin-top: 16px;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.empty-panel {
  padding: 26px 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 255, 0.9));
  border: 1px dashed rgba(106, 124, 255, 0.2);
}

.empty-panel strong {
  display: block;
  margin-bottom: 8px;
}

.empty-panel p {
  margin: 0;
  color: var(--text-soft);
}

.selected-group-banner {
  margin: 16px 0;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(117, 136, 255, 0.1), rgba(255, 158, 196, 0.08), rgba(110, 208, 255, 0.12));
  color: #37507f;
}

.score-board {
  margin: 18px 0;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 243, 255, 0.95));
  border: 1px solid rgba(116, 135, 190, 0.08);
}

.score-row {
  padding: 14px 0;
  border-bottom: 1px solid rgba(84, 104, 156, 0.08);
}

.score-row:last-child {
  border-bottom: 0;
}

.score-title {
  margin-bottom: 10px;
  font-weight: 700;
}

.star-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.star-rating-label {
  cursor: pointer;
  margin: 0;
  display: inline-flex;
}

.star-rating-label input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.star-rating-icon {
  font-size: 2.8rem;
  color: #d1d9e6;
  transition: color 0.2s ease, transform 0.1s ease;
  line-height: 1;
}

.star-rating-label:hover .star-rating-icon {
  transform: scale(1.15);
}

.star-rating-icon.active {
  color: #ffbb3d;
}

.star-rating-icon.hover-active {
  color: #ffda7e;
}

.star-label {
  margin: 0;
}

.star-label input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.star-label span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  min-width: 74px;
  padding: 0 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(84, 104, 156, 0.14);
  color: #4a5d82;
  font-weight: 700;
}

.star-label input:checked + span {
  background: linear-gradient(135deg, var(--accent), #4f8dff);
  color: #fff;
  border-color: transparent;
}

.submitted-panel {
  margin-top: 16px;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 255, 0.92));
  border: 1px solid rgba(116, 135, 190, 0.1);
}

.submitted-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 10px;
}

.submitted-tag {
  padding: 8px 12px;
  border-radius: 999px;
  background: #e7fff0;
  color: #15693e;
  font-weight: 700;
}

.submission-image {
  width: 100%;
  margin-top: 12px;
  border-radius: 20px;
  border: 1px solid rgba(116, 135, 190, 0.1);
  object-fit: cover;
  box-shadow: var(--shadow-soft);
}

.peer-entry-panel {
  margin-top: 16px;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(106, 124, 255, 0.06), rgba(103, 200, 255, 0.08));
  border: 1px solid rgba(116, 135, 190, 0.08);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.next-step-section {
  margin-top: 18px;
  padding: 20px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 255, 0.92));
  border: 1px solid rgba(116, 135, 190, 0.1);
  box-shadow: var(--shadow-soft);
}

.next-step-head {
  margin-bottom: 14px;
}

.next-step-head strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.05rem;
}

.next-step-head p {
  margin: 0;
  color: var(--text-soft);
}

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

.compact-entry-panel {
  margin-top: 0;
  height: 100%;
  align-items: stretch;
}

.compact-entry-panel .link-btn,
.compact-entry-panel .secondary-link {
  width: auto;
  min-width: 164px;
  align-self: center;
}

.peer-entry-panel p {
  margin: 8px 0 0;
  color: var(--text-soft);
}

.overview-entry-panel {
  margin-bottom: 20px;
}

.peer-review-shell {
  margin-top: 24px;
}

.page-peer-review-shell {
  margin-top: 0;
}

.peer-review-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
}

.peer-review-head h2 {
  margin: 12px 0 8px;
  font-size: 1.9rem;
}

.peer-review-head p {
  margin: 0;
  color: var(--text-soft);
}

.peer-progress-card {
  min-width: 140px;
  padding: 16px 18px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(106, 124, 255, 0.14), rgba(103, 200, 255, 0.16), rgba(141, 226, 193, 0.16));
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.peer-progress-card strong {
  display: block;
  font-size: 1.9rem;
  color: var(--accent);
}

.peer-progress-card span {
  color: var(--text-soft);
  font-weight: 700;
}

.peer-progress-card em {
  display: block;
  margin-top: 6px;
  color: var(--text-soft);
  font-style: normal;
  font-size: 0.92rem;
}

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

.peer-card {
  padding: 22px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 255, 0.92));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.peer-card-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.peer-card-top h3 {
  margin: 0 0 6px;
  font-size: 1.28rem;
}

.peer-card-top p {
  margin: 0;
  color: var(--text-soft);
}

.peer-state {
  padding: 9px 12px;
  border-radius: 999px;
  font-weight: 700;
  white-space: nowrap;
}

.peer-state.done {
  background: #e7fff0;
  color: #15693e;
}

.peer-state.todo {
  background: #fff4dc;
  color: #8f6200;
}

.peer-state.empty {
  background: #eef1f7;
  color: #5d6d89;
}

.peer-image-link {
  display: block;
}

.peer-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 20px;
  border: 1px solid rgba(84, 104, 156, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.peer-image-link:hover .peer-image {
  transform: translateY(-2px);
  box-shadow: 0 18px 32px rgba(67, 83, 144, 0.15);
}

.peer-form {
  margin-top: 14px;
}

.peer-result-panel {
  margin-top: 14px;
}

.empty-peer-card {
  margin-top: 14px;
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(106, 124, 255, 0.05), rgba(103, 200, 255, 0.07));
  border: 1px dashed rgba(106, 124, 255, 0.22);
}

.empty-peer-card strong {
  display: block;
  margin-bottom: 8px;
}

.empty-peer-card p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.65;
}

.dashboard-actions {
  margin-top: 18px;
}

.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(116, 135, 190, 0.14);
  color: var(--text-main);
  font-weight: 700;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.secondary-link:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 28px rgba(109, 126, 186, 0.16);
}

.disabled-link {
  opacity: 0.7;
  cursor: not-allowed;
}

.course-actions {
  margin-top: 16px;
}

.overview-shell {
  margin-top: 24px;
}

.overview-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
}

.overview-head h2 {
  margin: 0 0 8px;
  font-size: 1.9rem;
}

.overview-head p {
  margin: 0;
  color: var(--text-soft);
}

.overview-summary {
  min-width: 180px;
  padding: 16px 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 255, 0.92));
  border: 1px solid var(--border);
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.overview-summary span {
  display: block;
  color: var(--text-soft);
  margin-bottom: 6px;
}

.overview-summary strong {
  color: var(--accent);
  font-size: 1.25rem;
}

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

.overview-card {
  padding: 22px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 255, 0.92));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.overview-card-own {
  border-color: rgba(95, 124, 255, 0.38);
  box-shadow: 0 24px 44px rgba(95, 124, 255, 0.18);
}

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

.overview-score-box {
  padding: 16px;
  border-radius: 18px;
  background: #f8fbff;
  border: 1px solid rgba(84, 104, 156, 0.08);
}

.overview-score-box span {
  display: block;
  margin-bottom: 8px;
  color: var(--text-soft);
  font-weight: 700;
}

.overview-score-box strong {
  font-size: 1.75rem;
  color: var(--accent);
}

.review-comment-list {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.review-comment-item {
  padding: 16px;
  border-radius: 18px;
  background: #f8fbff;
  border: 1px solid rgba(84, 104, 156, 0.08);
}

.review-comment-item strong {
  display: block;
  margin-bottom: 8px;
}

.review-comment-item p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.65;
}

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

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

  .dashboard-grid,
  .two-col-grid,
  .dynamic-input-grid,
  .peer-review-grid,
  .overview-grid,
  .overview-score-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .page-shell,
  .simple-shell,
  .dashboard-shell {
    width: min(100% - 20px, 1180px);
  }

  .hero-panel,
  .entry-panel,
  .simple-card,
  .dashboard-hero,
  .dashboard-card {
    padding: 20px;
    border-radius: 24px;
  }

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

  .entry-card {
    padding: 20px;
  }

  .card-head,
  .course-top,
  .dynamic-input-head,
  .submitted-head,
  .peer-card-top,
  .peer-review-head,
  .peer-entry-panel,
  .overview-head {
    flex-direction: column;
  }
}
