:root {
  font-family: Inter, "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  color: #123047;
  background: #f7fbff;
  --navy: #082f49;
  --ink: #123047;
  --muted: #648094;
  --line: rgba(24, 67, 95, 0.14);
  --glass: rgba(255, 255, 255, 0.23);
  --glass-strong: rgba(255, 255, 255, 0.72);
  --coral: #ee8a69;
  --cyan: #6fd1d4;
  --jade: #22958f;
  --gold: #d4aa63;
  --shadow: 0 24px 70px rgba(6, 31, 51, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, rgba(111, 209, 212, 0.16), transparent 26rem),
    linear-gradient(180deg, #f9fcff 0%, #eef7fb 48%, #f9fbfc 100%);
}

.sync-status-banner {
  position: fixed;
  top: 82px;
  right: 18px;
  z-index: 35;
  width: min(420px, calc(100vw - 32px));
  padding: 12px 14px;
  border: 1px solid rgba(16, 88, 99, 0.18);
  border-radius: 12px;
  color: #14414a;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 48px rgba(27, 70, 95, 0.14);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
}

.sync-status-banner.pending {
  border-color: rgba(36, 120, 132, 0.24);
  background: rgba(239, 251, 252, 0.96);
}

.sync-status-banner.delayed,
.sync-status-banner.offline,
.sync-status-banner.auth,
.sync-status-banner.error {
  border-color: rgba(238, 138, 105, 0.34);
  color: #913d27;
  background: rgba(255, 243, 238, 0.96);
}

.sync-status-banner.synced {
  border-color: rgba(35, 149, 112, 0.24);
  color: #126146;
  background: rgba(237, 251, 245, 0.96);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 18px 34px;
  color: white;
  background: linear-gradient(180deg, rgba(6, 37, 58, 0.74), rgba(6, 37, 58, 0.18));
  backdrop-filter: blur(18px);
}

.brand,
.nav-links button,
.login-button {
  border: 0;
  background: transparent;
  color: inherit;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
}

.brand-mark svg {
  width: 30px;
  height: 30px;
}

.brand strong {
  display: block;
  font-size: 20px;
  letter-spacing: 0;
}

.brand small {
  display: block;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 11px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
}

.nav-links button {
  position: relative;
  padding: 10px 13px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 650;
  color: rgba(255, 255, 255, 0.9);
}

.nav-links button.active::after {
  position: absolute;
  right: 18px;
  bottom: 2px;
  left: 18px;
  height: 2px;
  border-radius: 2px;
  background: #a7f4ef;
  content: "";
}

.login-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 92px;
  justify-content: center;
  padding: 11px 17px;
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.16);
  font-weight: 700;
}

.login-button svg {
  width: 20px;
  height: 20px;
}

.message-badge {
  position: absolute;
  top: -6px;
  left: -6px;
  display: grid;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  color: white;
  background: #e53333;
  box-shadow: 0 8px 18px rgba(229, 51, 51, 0.34);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

.hero-section {
  position: relative;
  min-height: 900px;
  overflow: hidden;
  color: white;
}

.hero-bg,
.hero-glow {
  position: absolute;
  inset: 0;
}

.hero-bg {
  overflow: hidden;
  background: url("/assets/hero-campus-clouds.png") center / cover;
  transform: scale(1.02);
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-glow {
  background:
    linear-gradient(180deg, rgba(2, 26, 45, 0.24), rgba(2, 26, 45, 0.1) 42%, rgba(2, 26, 45, 0.55)),
    linear-gradient(180deg, transparent 0%, transparent 62%, #f7fbff 100%);
  pointer-events: none;
}

.hero-glow::before,
.hero-glow::after {
  display: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(340px, 0.92fr) minmax(460px, 1fr);
  gap: 48px;
  width: min(1280px, calc(100% - 96px));
  margin: 0 auto;
  padding: 172px 0 96px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #d7fffb;
  font-size: 13px;
  font-weight: 760;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow svg {
  width: 18px;
}

.hero-copy h1 {
  max-width: min(760px, 100%);
  margin: 24px 0 12px;
  font-family: "Noto Serif SC", "Songti SC", Georgia, serif;
  font-size: clamp(50px, 5.2vw, 78px);
  font-weight: 650;
  line-height: 1.14;
  letter-spacing: 0;
  text-shadow: 0 14px 45px rgba(0, 0, 0, 0.22);
  overflow-wrap: anywhere;
  text-wrap: balance;
  word-break: normal;
}

.hero-subtitle {
  margin: 0;
  font-family: Georgia, serif;
  font-size: clamp(26px, 2.2vw, 38px);
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.hero-line {
  width: min(560px, 100%);
  margin: 30px 0 0;
  font-size: 22px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
}

.hero-actions,
.panel-head,
.section-heading,
.registration-copy .meta-line {
  display: flex;
  align-items: center;
}

.hero-actions {
  gap: 14px;
  margin-top: 34px;
}

.primary-action,
.secondary-action,
.section-heading button,
.panel-head button,
.notice-board article button,
.form-action,
.admin-table button,
.profile-module button,
.story-page button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 13px;
  font-weight: 780;
}

.primary-action {
  min-height: 50px;
  padding: 0 22px;
  color: #123047;
  background: linear-gradient(135deg, #ffffff, #d7fffb);
  box-shadow: 0 20px 46px rgba(4, 44, 55, 0.18);
}

.primary-action.dark {
  color: white;
  background: linear-gradient(135deg, #0b5a61, #0c7a77);
}

.secondary-action {
  min-height: 50px;
  padding: 0 20px;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.14);
}

.secondary-action.light {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.74);
}

.hero-panels {
  align-self: end;
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.glass-panel {
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.24), rgba(4, 34, 55, 0.2));
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.notice-panel,
.activity-panel {
  padding: 22px;
}

.panel-head {
  justify-content: space-between;
  margin-bottom: 15px;
  color: white;
}

.panel-head span {
  font-size: 19px;
  font-weight: 800;
}

.panel-head h2 {
  margin: 0;
  font-size: 19px;
}

.panel-head button {
  padding: 8px 12px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.11);
}

.notice-compact-list,
.notice-list,
.activity-list,
.activity-picker {
  display: grid;
}

.notice-compact-list button,
.activity-row,
.notice-list button,
.activity-list button,
.activity-picker button {
  display: grid;
  align-items: center;
  width: 100%;
  border: 0;
  text-align: left;
}

.notice-compact-list button {
  grid-template-columns: 48px 1fr 54px;
  gap: 12px;
  padding: 12px 0;
  color: white;
  border-bottom: 1px solid rgba(255, 255, 255, 0.17);
  background: transparent;
}

.notice-compact-list span,
.notice-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 20px;
  border-radius: 5px;
  color: #0b4c68;
  background: rgba(230, 252, 255, 0.88);
  font-size: 10px;
  font-weight: 900;
}

.notice-compact-list strong {
  overflow: hidden;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notice-compact-list time {
  justify-self: end;
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
}

.activity-row {
  grid-template-columns: 62px 1fr auto;
  gap: 14px;
  padding: 12px 0;
  color: white;
  border-bottom: 1px solid rgba(255, 255, 255, 0.17);
  background: transparent;
}

.date-box {
  display: grid;
  width: 52px;
  height: 58px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 12px;
  background: rgba(8, 47, 73, 0.28);
  font-size: 24px;
  font-weight: 820;
}

.date-box small {
  align-self: end;
  font-size: 10px;
  letter-spacing: 0.04em;
}

.date-box.large {
  width: 78px;
  height: 84px;
  color: white;
  background: rgba(8, 47, 73, 0.62);
}

.activity-info strong,
.activity-info small {
  display: block;
}

.activity-info small,
.activity-list small,
.activity-picker small {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.78);
}

.status-pill,
.activity-list em {
  padding: 8px 12px;
  border-radius: 10px;
  color: #0b5a61;
  background: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
}

.scroll-cue {
  position: absolute;
  bottom: 32px;
  left: 50%;
  z-index: 4;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  color: white;
  background: rgba(255, 255, 255, 0.16);
  transform: translateX(-50%) rotate(90deg);
}

.quick-links {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  width: min(1280px, calc(100% - 80px));
  margin: 0 auto 52px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 55px rgba(28, 71, 92, 0.08);
}

.hero-quick-links {
  z-index: 3;
  grid-column: 1 / -1;
  width: 100%;
  margin: 8px auto 0;
  border-color: rgba(255, 255, 255, 0.32);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.26);
  box-shadow: 0 20px 58px rgba(2, 26, 45, 0.2);
  backdrop-filter: blur(22px);
}

.quick-links button {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 82px;
  padding: 16px 18px;
  border: 0;
  color: var(--ink);
  background: white;
  text-align: left;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.hero-quick-links button {
  min-height: 74px;
  color: white;
  background: rgba(255, 255, 255, 0.14);
}

.quick-links button:hover {
  background: #f1fbfb;
  box-shadow: inset 0 -3px 0 rgba(14, 128, 131, 0.18);
  transform: translateY(-2px);
}

.hero-quick-links button:hover {
  background: rgba(241, 251, 251, 0.22);
  box-shadow: inset 0 -3px 0 rgba(167, 244, 239, 0.32);
}

.quick-links svg,
.service-item svg,
.profile-icons svg,
.admin-overview svg {
  width: 32px;
  height: 32px;
  color: #0f5a88;
}

.hero-quick-links svg {
  color: #a7f4ef;
}

.quick-links strong,
.quick-links small {
  display: block;
}

.quick-links small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.hero-quick-links small {
  color: rgba(255, 255, 255, 0.74);
}

.content-grid,
.services-section,
.home-overview,
.feature-gallery,
.home-culture-block,
.personal-preview,
.calendar-layout,
.inner-page,
.footer-main,
.footer-shortcuts {
  width: min(1280px, calc(100% - 80px));
  margin-inline: auto;
}

.two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.surface-block,
.registration-panel,
.profile-module,
.admin-table,
.tool-workspace {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 54px rgba(27, 70, 95, 0.08);
}

.surface-block {
  padding: 28px;
}

.section-heading {
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.section-heading.compact {
  margin-bottom: 18px;
}

.section-heading span,
.section-kicker {
  color: #168083;
  font-size: 12px;
  font-weight: 860;
}

.section-heading h2,
.page-title h1,
.profile-hero h1,
.story-page h1,
.login-card h1 {
  margin: 4px 0 0;
  font-family: Georgia, "Noto Serif SC", serif;
  letter-spacing: 0;
}

.section-heading h2 {
  font-size: 30px;
}

.section-heading button {
  min-height: 40px;
  padding: 0 14px;
  color: #0b5a61;
  background: #eefafa;
}

.notice-list button {
  grid-template-columns: 58px 1fr 54px;
  gap: 14px;
  padding: 15px 0;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  background: transparent;
}

.notice-list strong,
.activity-list strong {
  overflow: hidden;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notice-list small {
  justify-self: end;
  color: var(--muted);
}

.activity-list button {
  grid-template-columns: 118px 64px 1fr auto;
  gap: 14px;
  padding: 13px 0;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  background: transparent;
}

.activity-list img {
  width: 118px;
  height: 72px;
  border-radius: 10px;
  object-fit: cover;
}

.activity-date {
  display: grid;
  width: 54px;
  height: 66px;
  place-items: center;
  border-radius: 12px;
  background: #f0f7fa;
  font-size: 25px;
  font-weight: 850;
}

.activity-date small {
  align-self: end;
  color: var(--muted);
  font-size: 10px;
}

.activity-list small {
  color: var(--muted);
}

.activity-list em {
  color: #8a5a22;
  background: #fff7ec;
}

.services-section {
  position: relative;
  margin-top: 72px;
  padding: 76px 0 48px;
}

.home-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.72fr);
  gap: 22px;
  margin-top: 46px;
}

.home-about-card,
.home-feature-card,
.home-stats-grid button {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 54px rgba(27, 70, 95, 0.08);
}

.home-about-card {
  min-height: 260px;
  padding: 32px;
}

.home-about-card h2 {
  margin: 10px 0 14px;
  font-family: Georgia, "Noto Serif SC", serif;
  font-size: 36px;
  letter-spacing: 0;
}

.home-about-card p,
.home-feature-card p {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  line-height: 1.8;
  -webkit-box-orient: vertical;
}

.home-about-card p {
  max-width: 760px;
  -webkit-line-clamp: 4;
}

.home-about-card button,
.home-feature-card button {
  min-height: 42px;
  margin-top: 20px;
  padding: 0 16px;
  border: 0;
  border-radius: 12px;
  color: white;
  background: #0f6870;
  font-weight: 820;
}

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

.home-stats-grid button {
  min-height: 123px;
  padding: 22px;
  color: var(--ink);
  text-align: left;
}

.home-stats-grid strong,
.home-stats-grid span {
  display: block;
}

.home-stats-grid strong {
  font-size: 38px;
  line-height: 1;
}

.home-stats-grid span {
  margin-top: 12px;
  color: var(--muted);
  font-weight: 760;
}

.home-feature-card {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(300px, 0.46fr) minmax(0, 1fr);
  overflow: hidden;
}

.home-feature-card img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}

.home-feature-card > div {
  padding: 30px;
}

.home-feature-card span {
  color: #168083;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.home-feature-card h3 {
  margin: 8px 0 12px;
  font-size: 26px;
}

.home-feature-card p {
  margin: 0;
  -webkit-line-clamp: 3;
}

.services-section::before {
  position: absolute;
  inset: 0 calc(50% - 50vw);
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.46), rgba(255, 255, 255, 0.88)),
    url("/assets/hero-campus-clouds.png") center 58% / cover;
  content: "";
}

.services-section > * {
  position: relative;
  z-index: 1;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--line);
}

.service-item {
  display: grid;
  min-height: 128px;
  place-items: center;
  padding: 22px 14px;
  background: rgba(255, 255, 255, 0.74);
  text-align: center;
}

.service-item strong {
  margin-top: 10px;
  font-size: 15px;
}

.service-item small {
  color: var(--muted);
}

.feature-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 50px;
}

.home-culture-block {
  margin-top: 52px;
}

.image-card {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  color: white;
  background: #0b3048;
  text-align: left;
  box-shadow: 0 20px 54px rgba(6, 31, 51, 0.16);
}

.image-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.image-card::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 27, 43, 0.06), rgba(4, 27, 43, 0.72));
  content: "";
}

.image-card:hover img {
  transform: scale(1.05);
}

.image-card span,
.image-card i {
  position: absolute;
  z-index: 1;
}

.image-card span {
  right: 22px;
  bottom: 24px;
  left: 22px;
}

.image-card small,
.image-card strong,
.image-card em {
  display: block;
  font-style: normal;
}

.image-card small {
  color: rgba(255, 255, 255, 0.78);
}

.image-card strong {
  margin-top: 6px;
  font-size: 24px;
}

.image-card em {
  margin-top: 9px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
}

.image-card i {
  right: 18px;
  bottom: 18px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
}

.personal-preview {
  display: grid;
  grid-template-columns: 240px 1fr auto;
  gap: 28px;
  align-items: center;
  margin-top: 56px;
  margin-bottom: 70px;
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 24px;
  background:
    linear-gradient(90deg, rgba(255, 247, 237, 0.88), rgba(234, 255, 255, 0.78)),
    url("/assets/hero-campus-clouds.png") center bottom / cover;
  box-shadow: var(--shadow);
}

.personal-preview h2 {
  margin: 4px 0 8px;
  font-family: Georgia, "Noto Serif SC", serif;
  font-size: 32px;
}

.personal-preview p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.profile-icons {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
}

.profile-icons button {
  display: grid;
  min-height: 112px;
  place-items: center;
  border: 0;
  border-radius: 18px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
}

.profile-icons strong,
.profile-icons small {
  display: block;
}

.profile-icons small {
  color: var(--muted);
  font-size: 11px;
}

.inner-page {
  padding-top: 128px;
  padding-bottom: 72px;
}

.cloud-page,
.auth-page {
  min-height: 720px;
}

.page-title {
  max-width: 760px;
  margin-bottom: 34px;
}

.page-title h1 {
  color: var(--ink);
  font-size: clamp(46px, 4vw, 68px);
}

.page-title p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.notice-board {
  display: grid;
  gap: 14px;
}

.notice-board article {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
}

.notice-board article.featured {
  background:
    linear-gradient(135deg, rgba(11, 90, 97, 0.94), rgba(36, 147, 143, 0.82)),
    url("/assets/hero-campus-clouds.png") center / cover;
  color: white;
}

.notice-board span {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 7px;
  color: #07566a;
  background: #eaffff;
  font-size: 11px;
  font-weight: 880;
}

.notice-board h3 {
  margin: 10px 0 8px;
  font-size: 22px;
}

.notice-board p {
  margin: 0;
  color: inherit;
  opacity: 0.72;
}

.notice-board .notice-detail {
  max-width: 780px;
  margin-top: 10px;
  white-space: pre-wrap;
  line-height: 1.7;
  opacity: 0.9;
}

.notice-board .notice-excerpt {
  display: -webkit-box;
  max-width: 720px;
  margin-top: 12px;
  overflow: hidden;
  color: var(--muted);
  line-height: 1.72;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.notice-board article.featured .notice-excerpt {
  color: rgba(255, 255, 255, 0.9);
}

.notice-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.notice-card-meta em {
  padding: 4px 9px;
  border: 1px solid rgba(21, 128, 131, 0.24);
  border-radius: 999px;
  color: #0b5a61;
  background: #eefafa;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.notice-board article.featured .notice-card-meta em {
  border-color: rgba(255, 255, 255, 0.5);
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.12);
}

.notice-board article button {
  min-height: 42px;
  padding: 0 14px;
  color: var(--ink);
  background: white;
}

.activity-workspace {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 26px;
}

.activity-picker {
  align-content: start;
  gap: 14px;
}

.activity-picker button {
  grid-template-columns: 126px 1fr auto;
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.8);
}

.activity-picker button.selected {
  border-color: rgba(34, 149, 143, 0.42);
  background: #effffe;
  box-shadow: 0 18px 44px rgba(17, 89, 99, 0.12);
}

.activity-picker img {
  width: 126px;
  height: 84px;
  border-radius: 12px;
  object-fit: cover;
}

.activity-picker em {
  color: var(--jade);
  font-style: normal;
  font-weight: 850;
}

.registration-panel {
  overflow: hidden;
}

.registration-hero {
  position: relative;
  height: 280px;
}

.registration-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.registration-hero::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(8, 47, 73, 0.5));
  content: "";
}

.registration-hero .date-box {
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 1;
}

.registration-copy,
.registration-form {
  padding: 26px 28px 0;
}

.registration-copy h2 {
  margin: 13px 0 8px;
  font-size: 30px;
}

.registration-copy p {
  margin: 0;
  color: var(--muted);
}

.registration-copy .meta-line {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.meta-line span {
  padding: 8px 10px;
  border-radius: 9px;
  color: #126168;
  background: #ecfbfb;
  font-size: 13px;
  font-weight: 760;
}

.registration-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.registration-form label,
.login-card label,
.admin-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 760;
}

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

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  outline: 0;
}

input,
select {
  height: 46px;
  padding: 0 14px;
}

textarea {
  min-height: 96px;
  padding: 13px 14px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(34, 149, 143, 0.56);
  box-shadow: 0 0 0 4px rgba(111, 209, 212, 0.18);
}

.form-action {
  width: calc(100% - 56px);
  margin: 24px 28px 28px;
}

.auth-page {
  display: grid;
  place-items: center;
}

.login-card {
  display: grid;
  width: min(460px, 100%);
  gap: 18px;
  padding: 36px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(234, 255, 255, 0.76)),
    url("/assets/hero-campus-clouds.png") center / cover;
  box-shadow: var(--shadow);
}

.login-card h1 {
  margin: 0;
  font-size: 42px;
}

.auth-required-card {
  width: min(760px, 100%);
}

.auth-required-card h1 {
  max-width: 100%;
  font-size: 48px;
  line-height: 1.16;
  text-wrap: balance;
}

.auth-required-card p {
  font-size: 18px;
}

.auth-required-card .primary-action {
  min-height: 62px;
  font-size: 20px;
}

.login-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.auth-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.auth-actions button {
  min-height: 48px;
}

.auth-message,
.form-message {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(238, 138, 105, 0.34);
  border-radius: 12px;
  color: #913d27;
  background: #fff3ee;
  font-weight: 760;
}

.form-message {
  margin: 18px 28px 0;
}

.profile-page {
  display: grid;
  gap: 22px;
}

.profile-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: start;
  padding: 34px;
  border-radius: 24px;
  color: white;
  background:
    linear-gradient(135deg, rgba(7, 50, 78, 0.92), rgba(19, 132, 131, 0.66)),
    url("/assets/hero-campus-clouds.png") center / cover;
  box-shadow: var(--shadow);
}

.profile-identity {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 16px;
}

.profile-avatar {
  display: grid;
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 20px;
  color: #07324e;
  background: rgba(255, 255, 255, 0.92);
  font-size: 30px;
  font-weight: 900;
}

.profile-hero h1 {
  margin: 6px 0 8px;
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.08;
}

.profile-hero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.65;
}

.profile-hero-actions {
  display: grid;
  justify-items: end;
  gap: 12px;
}

.profile-hero-actions span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  color: #07324e;
  background: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 850;
}

.profile-hero-meta {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding-top: 8px;
}

.profile-hero-meta span {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  overflow-wrap: anywhere;
}

.profile-hero-meta strong {
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 760;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  grid-template-areas:
    "activity account"
    "certificates account";
  gap: 24px;
  align-items: start;
}

.profile-module {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 54px rgba(27, 70, 95, 0.08);
}

.activity-module {
  grid-area: activity;
}

.certificate-module {
  grid-area: certificates;
}

.profile-module.account-module {
  position: sticky;
  top: 112px;
  grid-area: account;
}

.profile-module h2 {
  margin: 0 0 20px;
}

.profile-message {
  width: min(720px, 100%);
  margin: 0;
}

.module-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.module-title-row h2 {
  margin: 0;
}

.profile-upload-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

.profile-upload-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 760;
}

.profile-upload-form label.wide {
  grid-column: 1 / -1;
}

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

.registration-card-list {
  display: grid;
  gap: 14px;
}

.registration-card {
  display: grid;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f8fcfd;
}

.registration-card-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
}

.registration-card-head span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.registration-card-head h3 {
  margin: 6px 0 0;
  font-size: 20px;
}

.registration-card-head strong {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  color: #0b5a61;
  background: #e5fbfb;
  font-size: 13px;
}

.registration-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.registration-info-grid span {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 11px 12px;
  border-radius: 12px;
  background: #fff;
  overflow-wrap: anywhere;
}

.registration-info-grid small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.registration-card button,
.profile-feature-grid button {
  min-height: 36px;
  padding: 0 12px;
  color: #0b5a61;
  background: #eefafa;
}

.registration-card button {
  justify-self: start;
  border: 0;
  border-radius: 10px;
  font-weight: 820;
}

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

.profile-feature-grid button {
  justify-content: flex-start;
  min-height: 72px;
  padding: 0 16px;
  border-radius: 16px;
}

.profile-feature-grid svg {
  width: 26px;
  height: 26px;
}

.certificate-upload-panel {
  display: grid;
  grid-template-columns: minmax(260px, 0.55fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f8fcfd;
}

.certificate-edit-panel {
  background: #f1fbfb;
}

.certificate-upload-panel h3 {
  margin: 6px 0 8px;
}

.certificate-upload-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.certificate-preview {
  grid-column: 1 / -1;
  width: min(280px, 100%);
  max-height: 180px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

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

.certificate-grid article {
  display: grid;
  gap: 10px;
  align-content: start;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(27, 70, 95, 0.06);
}

.certificate-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: contain;
  background: #f3f8fa;
}

.certificate-grid strong,
.certificate-grid small {
  display: block;
  padding: 0 14px;
}

.certificate-grid strong {
  min-height: 42px;
  padding-top: 4px;
  line-height: 1.45;
}

.certificate-grid small {
  padding-bottom: 14px;
  color: var(--muted);
}

.certificate-form-actions,
.certificate-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

.certificate-form-actions button,
.certificate-card-actions button,
.certificate-card-actions a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 9px;
  border: 0;
  color: #0b5a61;
  background: #eefafa;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.certificate-card-actions {
  padding: 0 14px 14px;
}

.certificate-card-actions a,
.certificate-card-actions button {
  flex: 1;
  min-width: 96px;
}

.account-security-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 20px;
}

.account-security-grid section {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.76);
}

.account-security-grid .basic-info-section {
  grid-column: 1 / -1;
  background: #f8fcfd;
}

.account-security-grid h3 {
  margin: 0;
}

.account-security-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.account-security-grid label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 760;
}

.profile-basic-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 0;
}

.account-security-grid button {
  justify-self: start;
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  color: white;
  background: #0b5a61;
  font-weight: 820;
}

.danger-zone {
  border-color: rgba(238, 138, 105, 0.4) !important;
  background: #fff8f5 !important;
}

.danger-zone button {
  margin-top: 16px;
  color: #8b2f2f;
  background: #fff0f0;
}

.admin-overview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.admin-overview article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 16px 42px rgba(25, 73, 95, 0.08);
}

.admin-overview h3 {
  margin: 14px 0 8px;
  font-size: 22px;
}

.admin-overview p {
  margin: 0 0 18px;
  color: var(--muted);
}

.admin-overview button {
  height: 38px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  color: white;
  background: #0f6870;
  font-weight: 760;
}

.admin-table {
  margin-top: 28px;
  padding: 26px;
}

.admin-table .section-heading button {
  gap: 8px;
}

.export-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  max-width: 720px;
}

.export-controls select {
  width: min(240px, 100%);
}

.export-controls input {
  width: min(300px, 100%);
}

.export-controls button {
  flex: 0 0 auto;
}

.user-export-controls {
  max-width: 860px;
}

.assignment-filter-bar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 14px;
  align-items: end;
  margin: 18px 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f6fbfc;
}

.assignment-filter-bar label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 820;
}

.assignment-filter-bar select {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
}

.assignment-status-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.assignment-status-tabs button {
  min-height: 40px;
  padding: 0 13px;
  color: #0b5a61;
  background: #e8f7f8;
}

.assignment-status-tabs button.active {
  color: white;
  background: #0f6870;
}

.resource-submission-panel {
  display: grid;
  gap: 16px;
}

.resource-submission-list {
  display: grid;
  gap: 10px;
}

.resource-submission-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
}

.resource-submission-row div {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.resource-submission-row strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.resource-submission-row small {
  color: var(--muted);
  font-weight: 760;
}

.table-row {
  display: grid;
  grid-template-columns: 1fr 2fr 1.5fr 0.8fr 0.8fr;
  gap: 16px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.table-row.user-row {
  grid-template-columns: 1fr 1fr 1.05fr 1fr 1.1fr 1.3fr 0.8fr 1.05fr;
}

.user-role-actions {
  display: grid;
  gap: 8px;
}

.user-role-actions button {
  width: 100%;
}

.table-row.registration-row {
  grid-template-columns: 0.9fr 1.4fr 1.35fr 1.05fr 0.75fr 1.2fr;
}

.table-row.notice-row {
  grid-template-columns: 1.2fr 2fr 0.8fr 0.7fr;
}

.table-row.header {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.table-row em {
  color: #9b631a;
  font-style: normal;
  font-weight: 780;
}

.table-row button {
  min-height: 34px;
  color: #0b5a61;
  background: #eefafa;
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.admin-tabs button {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.8);
  font-weight: 800;
}

.admin-tabs button.active {
  color: white;
  border-color: transparent;
  background: #0f6870;
}

.invite-panel p {
  max-width: 660px;
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.invite-code {
  display: inline-flex;
  min-height: 76px;
  align-items: center;
  padding: 0 28px;
  border: 1px dashed rgba(15, 104, 112, 0.36);
  border-radius: 16px;
  color: #0f6870;
  background: #eefafa;
  font-size: 34px;
  font-weight: 900;
  letter-spacing: 0;
}

.admin-form,
.admin-lists article,
.empty-state {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 42px rgba(25, 73, 95, 0.08);
}

.admin-form {
  margin-bottom: 24px;
  padding: 26px;
}

.admin-form form {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

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

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

.admin-form .section-heading button {
  color: white;
  background: #0f6870;
}

.certificate-preview {
  width: min(360px, 100%);
  max-height: 220px;
  border-radius: 14px;
  object-fit: cover;
}

.upload-note {
  align-self: end;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
  background: #f4fbfb;
  font-weight: 760;
}

.multi-image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.multi-image-grid a,
.multi-image-grid figure {
  display: grid;
  gap: 7px;
  min-width: 0;
  margin: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
  text-decoration: none;
}

.multi-image-grid .image-preview-button {
  display: grid;
  gap: 7px;
  width: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: inherit;
  background: transparent;
  text-align: left;
  cursor: zoom-in;
}

.multi-image-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 9px;
  object-fit: cover;
  background: #edf7f8;
}

.multi-image-grid span,
.multi-image-grid figcaption {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.multi-image-grid button {
  min-height: 28px;
  padding: 0 8px;
  border: 0;
  border-radius: 8px;
  color: #0b5a61;
  background: #e8fbfb;
  font-weight: 820;
  cursor: pointer;
}

.multi-image-grid .image-download-link {
  display: inline-flex;
  justify-content: center;
  min-height: 28px;
  margin-top: 0;
  padding: 4px 8px;
  border-radius: 8px;
  color: #0b5a61;
  background: #e8fbfb;
  font-size: 12px;
  font-weight: 820;
}

.assignment-panel .multi-image-grid .image-preview-button {
  min-height: 0;
  color: inherit;
  background: transparent;
}

.editable-image-grid {
  margin-bottom: 14px;
}

.admin-lists {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 24px;
  max-height: 560px;
  overflow: auto;
  padding-right: 4px;
}

.admin-lists article {
  padding: 20px;
}

.admin-lists h3 {
  margin: 0 0 14px;
}

.admin-lists p {
  color: var(--muted);
}

.admin-list-head,
.admin-lists article div.admin-list-item {
  display: grid;
  gap: 10px;
  align-items: center;
}

.admin-list-head {
  grid-template-columns: 1fr auto;
  margin-bottom: 14px;
}

.admin-list-head span {
  display: inline-flex;
  min-width: 34px;
  height: 26px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #0b5a61;
  background: #eefafa;
  font-size: 12px;
  font-weight: 900;
}

.admin-list-items {
  display: grid;
  max-height: 168px;
  overflow: auto;
  padding-right: 4px;
}

.admin-lists article.expanded .admin-list-items {
  max-height: 360px;
}

.admin-lists article div.admin-list-item {
  grid-template-columns: 1fr auto;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.admin-lists article div.admin-list-item span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-lists article div.admin-list-item button,
.admin-list-toggle {
  min-height: 32px;
  border: 0;
  border-radius: 9px;
  font-weight: 800;
}

.admin-lists article div.admin-list-item button {
  color: #8b2f2f;
  background: #fff0f0;
}

.admin-list-toggle {
  width: 100%;
  margin-top: 14px;
  color: #0b5a61;
  background: #eefafa;
}

.tools-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(420px, 1.28fr);
  gap: 24px;
}

.tool-list {
  display: grid;
  gap: 12px;
  align-content: start;
}

.tool-list button {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  align-items: center;
  min-height: 88px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
  text-align: left;
}

.tool-list button.active {
  border-color: rgba(15, 104, 112, 0.46);
  background: #eafafa;
  box-shadow: 0 16px 38px rgba(27, 70, 95, 0.08);
}

.tool-list svg {
  width: 34px;
  height: 34px;
  color: #0f5a88;
}

.tool-list strong,
.tool-list small {
  display: block;
}

.tool-list small {
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.45;
}

.tool-list-meta,
.tool-meta-row,
.tool-health-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tool-list-meta {
  margin-top: 10px;
  font-style: normal;
}

.tool-list-meta b,
.tool-meta-row span,
.tool-health-pills span {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 4px 8px;
  border: 1px solid rgba(15, 104, 112, 0.12);
  border-radius: 999px;
  color: #0b5a61;
  background: #eefafa;
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
}

.tool-workspace {
  padding: 28px;
}

.tool-status {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px 18px;
  align-items: start;
  margin-bottom: 22px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 30px rgba(27, 70, 95, 0.06);
}

.tool-status strong {
  display: block;
  margin-bottom: 4px;
  color: #0b5a61;
}

.tool-status span {
  color: var(--muted);
  line-height: 1.5;
}

.tool-status.warning strong {
  color: #9b631a;
}

.tool-status.warning {
  background: #fffaf0;
}

.tool-status.checking strong {
  color: #0f5a88;
}

.tool-health-pills {
  justify-content: flex-end;
  max-width: 420px;
}

.tool-health-pills span {
  min-height: 28px;
  border-color: rgba(15, 104, 112, 0.16);
  color: #0b5a61;
  background: #e9fbfa;
}

.tool-health-pills span.off {
  border-color: rgba(155, 99, 26, 0.2);
  color: #9b631a;
  background: #fff3d9;
}

.tool-health-pills span.checking {
  color: #55707b;
  background: #f3f7f8;
}

.tool-heading {
  display: grid;
  grid-template-columns: 1fr 54px;
  gap: 20px;
  align-items: start;
  margin-bottom: 22px;
}

.tool-heading h2 {
  margin: 6px 0 8px;
  font-size: 34px;
}

.tool-heading p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.tool-meta-row {
  margin-top: 14px;
}

.tool-heading > svg {
  width: 54px;
  height: 54px;
  color: #0f6870;
}

.file-drop {
  position: relative;
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 16px;
  align-items: center;
  min-height: 112px;
  margin-bottom: 18px;
  padding: 20px;
  border: 1px dashed rgba(15, 104, 112, 0.42);
  border-radius: 18px;
  background: #f3fcfc;
}

.file-drop svg {
  width: 42px;
  height: 42px;
  color: #0f6870;
}

.file-drop strong,
.file-drop small {
  display: block;
}

.file-drop small {
  margin-top: 5px;
  color: var(--muted);
}

.file-drop input {
  position: absolute;
  inset: 0;
  height: 100%;
  opacity: 0;
}

.tool-preview,
.tool-audio {
  width: 100%;
  margin-bottom: 18px;
  border-radius: 16px;
}

.tool-preview {
  max-height: 360px;
  background: #082f49;
}

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

.tool-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 760;
}

.tool-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.tool-actions button:disabled,
.image-search-toolbar button:disabled,
.image-result-actions button:disabled,
.image-live-preview button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  box-shadow: none;
}

.tool-inline-hint {
  margin: 12px 0 0;
  color: #607987;
  font-weight: 720;
  line-height: 1.6;
}

.image-search-results {
  margin-top: 22px;
}

.image-search-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
}

.image-search-toolbar strong {
  color: var(--ink);
  font-size: 18px;
}

.image-search-toolbar button,
.image-result-actions button,
.image-result-actions a {
  min-height: 38px;
  padding: 9px 12px;
  border: 1px solid rgba(15, 104, 112, 0.2);
  border-radius: 10px;
  color: #0b5a61;
  background: #eefafa;
  font-size: 13px;
  font-weight: 820;
  text-decoration: none;
}

.image-search-toolbar button {
  color: white;
  background: #0f6870;
}

.image-result-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.image-live-preview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 16px;
  align-items: stretch;
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid rgba(15, 104, 112, 0.16);
  border-radius: 14px;
  background: #f5fbfb;
}

.image-live-preview img {
  width: 100%;
  max-height: 460px;
  object-fit: contain;
  border-radius: 12px;
  background: #eaf5f5;
}

.image-live-preview > div {
  display: grid;
  align-content: start;
  gap: 10px;
}

.image-live-preview strong {
  color: var(--ink);
  line-height: 1.4;
}

.image-live-preview span {
  width: max-content;
  padding: 6px 9px;
  border-radius: 9px;
  color: #0b5a61;
  background: #e2f5f6;
  font-size: 13px;
  font-weight: 840;
}

.image-live-preview button {
  width: 100%;
  min-height: 42px;
  color: white;
  background: #0f6870;
}

.image-result-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 30px rgba(27, 70, 95, 0.06);
}

.image-result-preview {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #eaf5f5;
  cursor: pointer;
}

.image-result-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.image-result-preview span {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 5px 8px;
  border-radius: 8px;
  color: white;
  background: rgba(8, 47, 73, 0.86);
  font-size: 12px;
  font-weight: 900;
}

.image-result-card > div {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.image-result-card strong {
  min-height: 38px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.35;
  overflow: hidden;
}

.image-result-card small {
  color: var(--muted);
}

.image-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 28px;
}

.resource-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-top: 26px;
}

.resource-card {
  overflow: hidden;
  min-height: 220px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 42px rgba(25, 73, 95, 0.08);
}

.resource-card > img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  background: #eaf5f5;
}

.resource-card > div {
  padding: 24px;
}

.resource-card span {
  color: #168083;
  font-size: 12px;
  font-weight: 860;
}

.resource-card h3 {
  margin: 12px 0 10px;
  font-size: 24px;
}

.resource-card p {
  min-height: 72px;
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.65;
}

.resource-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.resource-card a,
.resource-card em,
.resource-actions button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  color: #0b5a61;
  background: #eefafa;
  font-style: normal;
  font-weight: 800;
  text-decoration: none;
}

.english-corner-page {
  display: grid;
  gap: 28px;
}

.english-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: 28px;
  align-items: stretch;
  padding: 32px;
  border: 1px solid rgba(15, 104, 112, 0.2);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(236, 250, 249, 0.76)),
    radial-gradient(circle at 82% 20%, rgba(238, 138, 105, 0.18), transparent 22rem);
  box-shadow: 0 18px 52px rgba(25, 73, 95, 0.12);
}

.english-hero h1 {
  margin: 12px 0 14px;
  font-size: clamp(44px, 7vw, 86px);
  line-height: 0.92;
}

.english-hero p {
  max-width: 640px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.english-hero-stats,
.english-preview-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.english-hero-stats span,
.english-preview-meta span {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid rgba(34, 149, 143, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #0b5a61;
  font-weight: 800;
}

.english-hero-stats strong {
  font-size: 22px;
}

.english-shelf {
  display: grid;
  grid-template-columns: repeat(3, minmax(84px, 1fr));
  gap: 12px;
  min-height: 360px;
  align-items: end;
  padding: 22px;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(8, 47, 73, 0.08), rgba(8, 47, 73, 0.18)),
    linear-gradient(90deg, rgba(255,255,255,0.42), rgba(255,255,255,0.08));
}

.english-spine {
  display: grid;
  align-content: space-between;
  min-height: 300px;
  padding: 18px 14px;
  border: 0;
  border-radius: 12px 12px 6px 6px;
  color: white;
  text-align: left;
  box-shadow: 0 18px 36px rgba(6, 31, 51, 0.22);
}

.english-spine small {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 900;
}

.english-spine strong {
  writing-mode: vertical-rl;
  font-size: 26px;
  letter-spacing: 0;
}

.english-spine span {
  display: -webkit-box;
  overflow: hidden;
  font-weight: 800;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.spine-1 { background: linear-gradient(180deg, #0f6870, #082f49); }
.spine-2 { min-height: 335px; background: linear-gradient(180deg, #d4aa63, #8a5a22); }
.spine-3 { min-height: 318px; background: linear-gradient(180deg, #ee8a69, #9b4630); }

.english-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 14px;
  align-items: start;
}

.english-toolbar select {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  color: var(--ink);
  font-weight: 800;
}

.english-material-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.english-material-card {
  display: grid;
  grid-template-rows: 170px 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 42px rgba(25, 73, 95, 0.08);
}

.english-cover {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #eaf5f5;
}

.english-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.english-cover svg {
  width: 56px;
  height: 56px;
  color: #0f6870;
}

.english-cover span {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: white;
  background: rgba(8, 47, 73, 0.82);
  font-size: 12px;
  font-weight: 900;
}

.english-material-card > div:last-child {
  display: grid;
  gap: 12px;
  padding: 20px;
}

.english-material-card h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
}

.english-material-card p {
  min-height: 76px;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.english-material-card small {
  color: var(--muted);
  line-height: 1.5;
}

.external-preview {
  background: rgba(255, 255, 255, 0.9);
}

.danger-inline-button {
  border: 1px solid rgba(139, 47, 47, 0.24) !important;
  color: #8b2f2f !important;
  background: #fff4f1 !important;
}

.favorite-focus-card {
  outline: 3px solid rgba(238, 138, 105, 0.88);
  outline-offset: 5px;
  box-shadow: 0 0 0 9px rgba(238, 138, 105, 0.16), 0 22px 58px rgba(25, 73, 95, 0.18) !important;
}

.switch-label {
  align-content: center;
}

.switch-label input {
  width: 24px;
  height: 24px;
  accent-color: #0f6870;
}

.file-preview-panel {
  margin: 30px 0;
  padding: 24px;
  border: 1px solid rgba(15, 104, 112, 0.22);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 52px rgba(27, 70, 95, 0.1);
}

.file-preview-panel .section-heading button {
  color: white;
  background: #0f6870;
}

.file-preview-panel iframe {
  width: 100%;
  height: min(72vh, 760px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
}

.file-preview-panel > img {
  width: 100%;
  max-height: 760px;
  border-radius: 16px;
  object-fit: contain;
  background: #eefafa;
}

.preview-fallback {
  display: grid;
  min-height: 280px;
  place-items: center;
  padding: 34px;
  border: 1px dashed rgba(15, 104, 112, 0.32);
  border-radius: 16px;
  background: #f4fbfb;
  text-align: center;
}

.preview-fallback svg {
  width: 58px;
  height: 58px;
  color: #0f6870;
}

.preview-fallback p {
  min-height: 0;
  margin: 0;
}

button:disabled,
input:disabled,
textarea:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.news-article {
  display: block !important;
}

.article-cover {
  width: 100%;
  max-height: 640px;
  margin: 18px 0;
  border-radius: 16px;
  object-fit: contain;
  background: #f2f7f8;
}

.notice-list-image {
  width: min(520px, 100%);
  max-height: 320px;
  margin-top: 14px;
  border-radius: 14px;
  object-fit: contain;
  background: #f2f7f8;
}

.news-detail {
  display: grid;
  gap: 18px;
  margin-top: 32px;
}

.news-detail > button {
  justify-self: start;
}

.news-detail article {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 42px rgba(25, 73, 95, 0.08);
}

.news-detail article span,
.culture-news-card span {
  color: #168083;
  font-size: 12px;
  font-weight: 860;
}

.news-detail h2 {
  margin: 8px 0 6px;
  font-size: clamp(32px, 4vw, 54px);
}

.article-body {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.95;
  white-space: pre-wrap;
}

.culture-journal-intro,
.resource-desk-intro,
.library-archive-intro,
.photo-roll-intro,
.ranking-season-intro {
  margin-top: 10px;
}

.culture-journal-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 24px;
  align-items: end;
  padding: 34px 0 26px;
  border-bottom: 1px solid rgba(184, 93, 64, 0.24);
}

.culture-journal-intro svg,
.resource-desk-intro svg,
.library-archive-intro svg,
.photo-roll-intro svg,
.ranking-season-intro svg {
  width: 42px;
  height: 42px;
}

.culture-journal-intro svg,
.culture-journal-intro span {
  color: #b85d40;
}

.culture-journal-intro span,
.resource-desk-intro span,
.library-archive-intro span,
.photo-roll-intro span,
.ranking-season-intro span {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

.culture-journal-intro h1,
.resource-desk-intro h1,
.library-archive-intro h1,
.photo-roll-intro h1,
.ranking-season-intro h1 {
  margin: 8px 0;
  font-family: Georgia, "Noto Serif SC", serif;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.05;
}

.culture-journal-intro p,
.resource-desk-intro p,
.library-archive-intro p,
.photo-roll-intro p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.culture-journal-intro aside {
  display: grid;
  place-items: center;
  min-height: 150px;
  border: 1px solid rgba(184, 93, 64, 0.18);
  border-radius: 8px;
  background: #fff7f2;
}

.culture-journal-intro aside strong {
  color: #b85d40;
  font-size: 46px;
  line-height: 1;
}

.culture-journal-intro aside span {
  color: #7d5b50;
}

.resource-desk-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.52fr);
  gap: 22px;
  align-items: center;
  padding: 26px;
  border: 1px solid rgba(15, 104, 112, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(238, 250, 250, 0.96), rgba(255, 255, 255, 0.9)),
    repeating-linear-gradient(0deg, transparent 0 30px, rgba(15, 104, 112, 0.06) 30px 31px);
}

.resource-desk-intro > div {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 10px 16px;
  align-items: center;
}

.resource-desk-intro svg,
.resource-desk-intro span {
  color: #0f6870;
}

.resource-desk-intro h1 {
  grid-column: 2;
  margin: 0;
}

.resource-desk-intro p {
  justify-self: end;
  max-width: 360px;
  padding: 18px;
  border-radius: 8px;
  background: white;
}

.quiz-entry-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(15, 104, 112, 0.22);
  border-radius: 8px;
  color: white;
  background: #0f6870;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(15, 104, 112, 0.16);
}

.quiz-entry-button svg {
  width: 18px;
  height: 18px;
  color: currentColor;
}

.quiz-bank-page,
.quiz-practice-page {
  display: grid;
  gap: 24px;
}

.quiz-bank-hero,
.quiz-practice-hero {
  display: grid;
  gap: 22px;
  padding: 30px;
  border-radius: 8px;
  background: #f1fbf8;
  border: 1px solid rgba(15, 104, 112, 0.18);
}

.quiz-bank-hero {
  grid-template-columns: minmax(0, 1fr) 170px;
  align-items: end;
}

.quiz-bank-hero svg,
.quiz-practice-hero svg {
  width: 44px;
  height: 44px;
  color: #0f6870;
}

.quiz-bank-hero span,
.quiz-practice-hero span,
.quiz-course-card span {
  color: #0f6870;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

.quiz-bank-hero h1,
.quiz-practice-hero h1 {
  margin: 8px 0;
  font-family: Georgia, "Noto Serif SC", serif;
  font-size: clamp(42px, 6vw, 74px);
  line-height: 1.05;
}

.quiz-bank-hero p,
.quiz-practice-hero p,
.quiz-course-card p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.quiz-bank-hero aside {
  display: grid;
  place-items: center;
  min-height: 140px;
  border: 1px solid rgba(15, 104, 112, 0.2);
  border-radius: 8px;
  background: white;
}

.quiz-bank-hero aside strong {
  color: #0f6870;
  font-size: 48px;
  line-height: 1;
}

.quiz-course-grid {
  display: grid;
  gap: 18px;
}

.quiz-course-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 26px;
  gap: 22px;
  align-items: center;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: white;
  text-align: left;
  box-shadow: 0 18px 50px rgba(25, 73, 95, 0.08);
}

.quiz-course-card h2 {
  margin: 8px 0;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.15;
}

.quiz-course-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(96px, 1fr));
  gap: 8px;
}

.quiz-course-stats span,
.quiz-course-stats strong {
  padding: 9px 12px;
  border-radius: 8px;
  background: #eefafa;
  text-align: center;
  font-size: 0.88rem;
}

.quiz-course-stats strong {
  color: white;
  background: #0f6870;
}

.quiz-practice-hero {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
}

.quiz-back-button {
  align-self: start;
  white-space: nowrap;
}

.quiz-progress-panel {
  position: sticky;
  top: 82px;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: stretch;
  padding: 12px;
  border: 1px solid rgba(15, 104, 112, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 34px rgba(25, 73, 95, 0.08);
}

.quiz-progress-panel article {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #eefafa;
}

.quiz-progress-panel span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.quiz-progress-panel strong {
  color: #0f6870;
  font-size: 22px;
}

.quiz-submit-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  align-content: center;
}

.quiz-submit-actions button {
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid rgba(15, 104, 112, 0.22);
  border-radius: 8px;
  color: white;
  background: #0f6870;
  font-weight: 900;
}

.quiz-submit-actions button + button {
  color: #0f6870;
  background: white;
}

.quiz-question-stack,
.quiz-question-group {
  display: grid;
  gap: 18px;
}

.quiz-question-card {
  display: grid;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 14px 38px rgba(25, 73, 95, 0.06);
}

.quiz-question-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.quiz-question-head span,
.quiz-question-head em,
.quiz-result {
  padding: 5px 9px;
  border-radius: 999px;
  background: #eefafa;
  color: #0f6870;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.quiz-result.correct {
  color: #176b3f;
  background: #e8f7ee;
}

.quiz-result.partial {
  color: #8a641f;
  background: #fff8e8;
}

.quiz-result.wrong {
  color: #8b2f2f;
  background: #fff4f1;
}

.quiz-question-card > p {
  margin: 0;
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.8;
}

.quiz-question-card input,
.quiz-question-card textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--ink);
  background: #fbfdfd;
  font: inherit;
}

.quiz-question-card textarea {
  min-height: 140px;
  resize: vertical;
}

.quiz-question-card input:disabled,
.quiz-question-card textarea:disabled,
.quiz-options button:disabled {
  cursor: default;
  opacity: 0.78;
}

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

.quiz-options button {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: center;
  min-height: 56px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fbfdfd;
  text-align: left;
}

.quiz-options button.active {
  border-color: rgba(15, 104, 112, 0.42);
  background: #eefafa;
}

.quiz-options strong {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: white;
  background: #0f6870;
}

.quiz-answer-panel {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid rgba(15, 104, 112, 0.16);
  border-radius: 8px;
  background: #f6fbfa;
}

.quiz-answer-panel strong {
  color: #0f6870;
}

.quiz-answer-panel p,
.quiz-answer-panel small {
  margin: 0;
  color: var(--ink);
  line-height: 1.75;
  white-space: pre-wrap;
}

.quiz-answer-panel small {
  color: var(--muted);
}

.library-archive-intro {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding: 30px 0;
  border-top: 5px solid #d4aa63;
  border-bottom: 1px solid rgba(138, 100, 31, 0.2);
}

.library-archive-intro svg,
.library-archive-intro span,
.library-archive-intro strong {
  color: #8a641f;
}

.library-archive-intro svg {
  width: 64px;
  height: 64px;
}

.library-archive-intro h1 {
  margin-bottom: 6px;
}

.library-archive-intro strong {
  padding: 10px 14px;
  border: 1px solid rgba(138, 100, 31, 0.24);
  border-radius: 999px;
  background: #fff8e8;
}

.photo-roll-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0 20px;
  border-bottom: 1px solid var(--line);
}

.photo-roll-intro > div {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 8px 14px;
  align-items: center;
}

.photo-roll-intro svg,
.photo-roll-intro span {
  color: #0f5a88;
}

.photo-roll-intro h1 {
  grid-column: 2;
  margin: 0;
}

.photo-roll-intro p {
  padding: 10px 14px;
  border-radius: 999px;
  color: #0f5a88;
  background: #edf7ff;
  font-weight: 850;
}

.ranking-season-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: end;
  padding: 30px;
  border-radius: 8px;
  color: white;
  background: linear-gradient(135deg, #082f49, #0f6870);
}

.ranking-season-intro svg,
.ranking-season-intro span {
  color: #d7fffb;
}

.ranking-season-intro h1 {
  margin-bottom: 0;
  color: white;
}

.ranking-season-counters {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.ranking-season-counters span {
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.culture-news-grid,
.library-grid,
.photo-grid,
.ranking-layout {
  display: grid;
  gap: 20px;
  margin-top: 32px;
}

.culture-news-grid {
  grid-template-columns: repeat(3, 1fr);
}

.culture-news-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  text-align: left;
  box-shadow: 0 16px 42px rgba(25, 73, 95, 0.08);
}

.culture-news-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.culture-news-card span,
.culture-news-card h3,
.culture-news-card p {
  display: block;
  margin-inline: 20px;
}

.simple-culture-page .simple-hero {
  grid-template-columns: minmax(360px, 0.85fr) minmax(520px, 1.15fr);
}

.simple-culture-page .simple-hero img {
  height: 520px;
  border-radius: 8px;
}

.culture-story-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 24px;
  margin-top: 34px;
  align-items: stretch;
}

.culture-featured-story,
.culture-story-row {
  border: 1px solid var(--line);
  color: var(--ink);
  background: white;
  text-align: left;
}

.culture-featured-story {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(25, 73, 95, 0.1);
}

.culture-featured-story img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.culture-featured-story span,
.culture-featured-story h2,
.culture-featured-story p {
  display: block;
  margin-inline: 26px;
}

.culture-featured-story span {
  margin-top: 24px;
  color: #b85d40;
  font-size: 12px;
  font-weight: 900;
}

.culture-featured-story h2 {
  margin-top: 10px;
  margin-bottom: 10px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12;
}

.culture-featured-story p {
  display: -webkit-box;
  margin-bottom: 26px;
  overflow: hidden;
  color: var(--muted);
  line-height: 1.8;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.culture-story-list {
  display: grid;
  gap: 12px;
  align-content: start;
}

.culture-story-row {
  display: grid;
  grid-template-columns: 48px 1fr 24px;
  gap: 14px;
  align-items: center;
  min-height: 92px;
  padding: 18px;
  border-radius: 8px;
}

.culture-story-row strong {
  color: #b85d40;
  font-size: 24px;
}

.culture-story-row small {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.culture-story-row svg {
  color: #b85d40;
}

.resource-command-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 30px;
  margin-bottom: 18px;
}

.resource-command-strip article {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid rgba(15, 104, 112, 0.2);
  border-radius: 8px;
  background: #eefafa;
}

.resource-command-strip strong {
  color: #0b5a61;
  font-size: 34px;
  line-height: 1;
}

.resource-command-strip span {
  color: #42687b;
  font-weight: 850;
}

.simple-resources-page .resource-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.simple-resources-page .resource-card {
  border-radius: 8px;
  border-left: 5px solid #0f6870;
}

.simple-resources-page .resource-card > img {
  height: 180px;
  object-fit: contain;
  background: #eefafa;
}

.culture-news-card span {
  margin-top: 18px;
}

.culture-news-card h3 {
  margin-top: 8px;
  margin-bottom: 8px;
  font-size: 24px;
}

.culture-news-card p {
  display: -webkit-box;
  min-height: 70px;
  margin-bottom: 20px;
  overflow: hidden;
  color: var(--muted);
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.resource-card-tall {
  min-height: 0;
}

.assignment-panel {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f7fcfc;
}

.assignment-panel strong,
.assignment-panel small {
  display: block;
}

.assignment-panel small {
  color: var(--muted);
}

.assignment-panel label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 780;
}

.assignment-panel button,
.random-actions button {
  min-height: 38px;
  border: 0;
  border-radius: 10px;
  color: white;
  background: #0f6870;
  font-weight: 800;
}

.assignment-panel .multi-image-grid button {
  min-height: 28px;
  color: #0b5a61;
  background: #e8fbfb;
}

.assignment-file-preview {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
}

.assignment-file-preview svg {
  width: 22px;
  height: 22px;
  color: #0f6870;
}

.assignment-file-preview span {
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  font-weight: 820;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.assignment-file-preview button {
  min-height: 30px;
  padding: 0 10px;
}

.feedback-box {
  padding: 12px;
  border-radius: 12px;
  background: white;
}

.feedback-box span {
  color: #0f6870;
  font-weight: 900;
}

.feedback-box p {
  min-height: 0;
  margin: 8px 0 0;
}

.feedback-box img {
  width: 100%;
  max-height: 180px;
  margin-top: 10px;
  border-radius: 12px;
  object-fit: cover;
}

.mini-message {
  min-height: 0 !important;
  margin: 0 !important;
  color: #9b631a !important;
  font-weight: 800;
}

.archived-assignment-panel {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.archived-assignment-card {
  border: 1px solid rgba(143, 157, 166, 0.25);
  background: rgba(255, 255, 255, 0.88);
}

.library-grid {
  grid-template-columns: repeat(4, 1fr);
}

.library-shelf-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-top: 32px;
  padding: 22px 0 14px;
  border-bottom: 4px solid #d4aa63;
}

.library-shelf-head span {
  color: #8a641f;
  font-size: 12px;
  font-weight: 900;
}

.library-shelf-head h2 {
  margin: 6px 0 0;
  font-family: Georgia, "Noto Serif SC", serif;
  font-size: 34px;
}

.library-shelf-head strong {
  color: #8a641f;
}

.library-card,
.ranking-board {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 42px rgba(25, 73, 95, 0.08);
}

.library-card {
  display: grid;
  gap: 10px;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(212, 170, 99, 0.16) 0 10px, transparent 10px),
    rgba(255, 255, 255, 0.92);
}

.library-card > img,
.library-card > svg {
  width: 100%;
  height: 190px;
  border-radius: 14px;
  object-fit: cover;
  color: #0f6870;
  background: #eefafa;
}

.library-card span {
  color: #168083;
  font-size: 12px;
  font-weight: 860;
}

.library-card h3,
.ranking-board h2 {
  margin: 0;
}

.library-card p,
.library-card small {
  color: var(--muted);
}

.photo-grid {
  grid-template-columns: repeat(6, 1fr);
  grid-auto-flow: dense;
}

.simple-photos-page .empty-state {
  width: min(720px, 100%);
  margin: 36px auto 88px;
}

.photo-album-head {
  margin-top: 34px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.photo-album-head span {
  color: #0f6870;
  font-size: 12px;
  font-weight: 900;
}

.photo-album-head h2 {
  margin: 6px 0;
  font-size: 36px;
}

.photo-album-head p {
  margin: 0;
  color: var(--muted);
}

.photo-grid article {
  position: relative;
  overflow: hidden;
  grid-column: span 2;
  min-height: 320px;
  border-radius: 8px;
  color: white;
  background: #082f49;
  box-shadow: 0 16px 42px rgba(25, 73, 95, 0.12);
}

.photo-grid article:nth-child(5n + 1) {
  grid-column: span 3;
  min-height: 420px;
}

.photo-grid article:nth-child(5n + 4) {
  grid-column: span 4;
}

.photo-grid img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-grid article::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 36%, rgba(4, 27, 43, 0.78));
  content: "";
}

.photo-grid div {
  position: absolute;
  right: 22px;
  bottom: 22px;
  left: 22px;
  z-index: 1;
}

.photo-grid h3,
.photo-grid p {
  margin: 0;
}

.photo-grid p {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.82);
}

.ranking-stage {
  display: grid;
  gap: 22px;
  margin-top: 34px;
  padding: 28px;
  border-radius: 28px;
  color: white;
  background:
    linear-gradient(135deg, rgba(7, 50, 78, 0.94), rgba(15, 104, 112, 0.9)),
    url("/assets/cultural-exchange.png") center / cover;
  box-shadow: var(--shadow);
}

.ranking-stat-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ranking-stat-line span {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #d7fffb;
  background: rgba(255, 255, 255, 0.12);
  font-size: 12px;
  font-weight: 900;
}

.ranking-controls {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 6px;
}

.ranking-controls span {
  color: #adfff7;
  font-size: 12px;
  font-weight: 900;
}

.ranking-controls h2 {
  margin: 6px 0 0;
  font-size: clamp(28px, 4vw, 48px);
}

.ranking-controls select {
  width: min(320px, 100%);
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
}

.podium {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: end;
}

.podium-card {
  min-height: 220px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(16px);
}

.podium-card.rank-1 {
  min-height: 280px;
  background: linear-gradient(180deg, rgba(255, 236, 179, 0.34), rgba(255, 255, 255, 0.13));
}

.podium-card.rank-2 {
  min-height: 245px;
}

.podium-card small {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  color: #082f49;
  background: #d7fffb;
  font-weight: 900;
}

.podium-card h2 {
  margin: 20px 0 10px;
  font-size: 30px;
}

.podium-card strong {
  display: block;
  color: #ffdf9a;
  font-size: 38px;
}

.podium-card p {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.65;
}

.ranking-board {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.12);
}

.rank-row {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
}

.rank-row strong {
  color: #0f6870;
  font-size: 22px;
}

.rank-row em {
  color: #9b631a;
  font-style: normal;
  font-weight: 900;
}

.rank-row small {
  grid-column: 2 / -1;
  color: var(--muted);
}

.table-row.assignment-row {
  grid-template-columns: 0.8fr 1fr 1.4fr 1.4fr;
  align-items: start;
}

.table-row.assignment-row > span:first-child {
  display: grid;
  gap: 8px;
}

.table-row.assignment-row a {
  display: inline-flex;
  margin-top: 8px;
  color: #0f6870;
  font-weight: 800;
}

.assignment-status-pill {
  display: inline-flex;
  width: fit-content;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
}

.assignment-status-pill.pending {
  color: #8a4b09;
  background: #fff2d8;
}

.assignment-status-pill.reviewed {
  color: #0b5a61;
  background: #dff6f7;
}

.compact-actions {
  margin-top: 10px;
  justify-content: flex-start;
}

.compact-actions button,
.compact-actions a {
  margin-top: 0;
}

.grade-box {
  display: grid;
  gap: 8px;
}

.grade-box textarea {
  min-height: 68px;
}

.feedback-upload-input {
  display: grid;
  gap: 7px;
  padding: 10px;
  border: 1px dashed #b8d8dc;
  border-radius: 12px;
  color: var(--muted);
  background: #f6fbfc;
  font-size: 13px;
  font-weight: 820;
}

.feedback-upload-input input {
  width: 100%;
}

.feedback-image-grid {
  grid-template-columns: repeat(auto-fill, minmax(86px, 1fr));
  margin: 0 0 2px;
}

.random-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.random-form {
  display: grid !important;
  grid-template-columns: minmax(260px, 1fr) 160px !important;
  gap: 16px;
  margin-bottom: 16px;
}

.random-result {
  width: min(720px, 100%);
  min-height: 118px;
  align-items: flex-start;
  padding-block: 22px;
  white-space: pre-line;
}

.workshop-shell {
  background:
    radial-gradient(circle at 52% 12%, rgba(64, 173, 190, 0.16), transparent 30rem),
    linear-gradient(180deg, #020407 0%, #05090d 48%, #000 100%);
}

.workshop-shell .site-header {
  border-bottom: 1px solid rgba(155, 232, 229, 0.12);
  background: rgba(3, 7, 10, 0.9);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22);
}

.workshop-shell .login-card.workshop-login-card {
  width: min(520px, 100%);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(236, 250, 249, 0.86)),
    radial-gradient(circle at 90% 4%, rgba(111, 209, 212, 0.24), transparent 16rem);
}

.workshop-shell .login-card.workshop-login-card h1 {
  font-family: Inter, "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 52px;
  letter-spacing: 0;
}

.workshop-home-page {
  min-height: 100vh;
  padding: 104px 0 0;
  background:
    radial-gradient(circle at 18% 10%, rgba(71, 152, 78, 0.22), transparent 28rem),
    radial-gradient(circle at 88% 72%, rgba(24, 92, 48, 0.3), transparent 34rem),
    linear-gradient(180deg, #030604 0%, #07110a 44%, #000 100%);
}

.workshop-home-hero {
  --revive-x: 50%;
  --revive-y: 62%;
  position: relative;
  display: grid;
  isolation: isolate;
  width: 100%;
  min-height: calc(100vh - 104px);
  align-items: center;
  overflow: hidden;
  padding: clamp(54px, 8vh, 92px) clamp(30px, 6vw, 96px) 74px;
  color: white;
}

.workshop-home-hero::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(rgba(111, 210, 132, 0.045) 1px, transparent 1px) 50% 0 / 82px 82px,
    linear-gradient(90deg, rgba(111, 210, 132, 0.038) 1px, transparent 1px) 50% 0 / 82px 82px,
    radial-gradient(circle at 68% 26%, rgba(125, 255, 157, 0.09), transparent 28rem);
  content: "";
}

.workshop-home-hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.84) 0%, rgba(0, 0, 0, 0.48) 43%, rgba(0, 0, 0, 0.18) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.82) 84%, #000 100%);
  content: "";
  pointer-events: none;
}

.revival-stage {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.revival-vignette,
.revival-light-field,
.revival-cursor-light {
  position: absolute;
  inset: 0;
}

.revival-vignette {
  background:
    radial-gradient(ellipse at 70% 28%, rgba(42, 121, 57, 0.2), transparent 34rem),
    radial-gradient(ellipse at 76% 88%, rgba(88, 255, 125, 0.08), transparent 38rem),
    linear-gradient(180deg, rgba(8, 20, 11, 0.22), rgba(0, 0, 0, 0.84));
}

.revival-light-field {
  opacity: 0.16;
  background:
    radial-gradient(circle at var(--revive-x) var(--revive-y), rgba(106, 255, 130, 0.34), transparent 20rem),
    conic-gradient(from 116deg at 72% 46%, transparent, rgba(124, 255, 149, 0.1), transparent 34%);
  transition: opacity 220ms ease;
}

.workshop-home-hero.is-reviving .revival-light-field {
  opacity: 0.56;
}

.revival-ground {
  position: absolute;
  inset: 31% 0 0;
  overflow: hidden;
  background:
    radial-gradient(circle at var(--revive-x) calc(var(--revive-y) - 28%), rgba(81, 255, 109, 0.1), transparent 24rem),
    linear-gradient(180deg, rgba(4, 10, 5, 0), rgba(0, 0, 0, 0.9) 26%, #000 100%);
}

.revival-ground::before {
  position: absolute;
  inset: 4% 0 0;
  background:
    linear-gradient(180deg, transparent 0 45%, rgba(50, 255, 91, 0.08) 46%, transparent 47%),
    linear-gradient(90deg, transparent, rgba(128, 255, 151, 0.1), transparent);
  opacity: 0.28;
  content: "";
}

.revival-roots {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.revival-roots path {
  vector-effect: non-scaling-stroke;
}

.revival-roots.dead {
  opacity: 0.86;
  stroke: #071008;
  stroke-width: 9px;
  filter: drop-shadow(0 9px 14px rgba(0, 0, 0, 0.72));
}

.revival-roots.live {
  opacity: 0;
  stroke: #78ff87;
  stroke-width: 4px;
  stroke-dasharray: 0.58 0.42;
  stroke-dashoffset: 1;
  filter: drop-shadow(0 0 10px rgba(107, 255, 130, 0.82)) drop-shadow(0 0 34px rgba(69, 255, 115, 0.32));
  mask-image: radial-gradient(circle 15rem at var(--revive-x) var(--revive-y), #000 0 42%, rgba(0, 0, 0, 0.56) 62%, transparent 100%);
  -webkit-mask-image: radial-gradient(circle 15rem at var(--revive-x) var(--revive-y), #000 0 42%, rgba(0, 0, 0, 0.56) 62%, transparent 100%);
}

.workshop-home-hero.is-reviving .revival-roots.live {
  opacity: 1;
  animation: revivalRootFlow 2.4s linear infinite;
}

.revival-sprouts {
  position: absolute;
  inset: 0;
  opacity: 0;
  mask-image: radial-gradient(circle 13rem at var(--revive-x) var(--revive-y), #000 0 34%, rgba(0, 0, 0, 0.54) 58%, transparent 100%);
  -webkit-mask-image: radial-gradient(circle 13rem at var(--revive-x) var(--revive-y), #000 0 34%, rgba(0, 0, 0, 0.54) 58%, transparent 100%);
}

.workshop-home-hero.is-reviving .revival-sprouts {
  opacity: 1;
}

.revival-sprouts span {
  position: absolute;
  left: var(--sx);
  top: var(--sy);
  width: 5px;
  height: 34px;
  border-radius: 999px 999px 2px 2px;
  background: linear-gradient(180deg, #caffc9, #5dff75 52%, rgba(19, 116, 39, 0));
  box-shadow: 0 0 18px rgba(103, 255, 128, 0.62);
  opacity: 0;
  transform: translate(-50%, 18px) scaleY(0.12);
  transform-origin: bottom;
}

.workshop-home-hero.is-reviving .revival-sprouts span {
  animation: sproutRise 1.9s ease-out infinite;
}

.revival-sprouts span:nth-child(2n) {
  height: 24px;
  animation-delay: 160ms;
}

.revival-sprouts span:nth-child(3n) {
  width: 4px;
  height: 42px;
  animation-delay: 320ms;
}

.revival-cursor-light {
  left: var(--revive-x);
  top: var(--revive-y);
  width: 420px;
  height: 420px;
  inset: auto;
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(182, 255, 184, 0.22), rgba(80, 255, 106, 0.12) 34%, transparent 68%);
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 180ms ease;
}

.workshop-home-hero.is-reviving .revival-cursor-light {
  opacity: 1;
}

.workshop-home-copy,
.workshop-home-hero .home-auth-card {
  position: relative;
  z-index: 1;
}

.workshop-home-copy {
  display: grid;
  gap: 20px;
  width: min(700px, 100%);
  padding: 0;
}

.workshop-home-copy .section-kicker {
  color: #9dffad;
  text-shadow: 0 0 22px rgba(84, 255, 105, 0.18);
}

.workshop-home-copy h1 {
  margin: 0;
  max-width: 740px;
  color: #f6fff5;
  font-size: clamp(72px, 9.8vw, 142px);
  font-weight: 900;
  line-height: 0.94;
  letter-spacing: 0;
  text-wrap: balance;
  text-shadow: 0 0 44px rgba(115, 255, 138, 0.16);
}

.workshop-home-copy p {
  max-width: 520px;
  margin: 0;
  color: rgba(232, 255, 231, 0.72);
  font-size: 22px;
  font-weight: 650;
  line-height: 1.55;
}

.workshop-signal-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.workshop-signal-row span {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 0 11px;
  border: 1px solid rgba(140, 255, 154, 0.22);
  border-radius: 999px;
  color: rgba(227, 255, 225, 0.82);
  background: rgba(75, 255, 106, 0.06);
  font-size: 11px;
  font-weight: 900;
}

.workshop-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

.workshop-hero-cta .primary-action.dark {
  color: #031005;
  background: linear-gradient(135deg, #d8ffd3, #70ff83 52%, #28c74f);
  box-shadow: 0 24px 80px rgba(62, 255, 96, 0.18);
}

.workshop-hero-cta .secondary-action.light {
  color: #eaffea;
  border-color: rgba(214, 255, 212, 0.22);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.workshop-home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 720px;
  margin-top: 12px;
}

.workshop-home-actions button {
  position: relative;
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 10px;
  min-width: 146px;
  min-height: 72px;
  align-items: center;
  overflow: hidden;
  padding: 14px;
  border: 1px solid rgba(142, 255, 155, 0.12);
  border-radius: 14px;
  color: white;
  background: rgba(0, 11, 4, 0.62);
  text-align: left;
  backdrop-filter: blur(16px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.workshop-home-actions button::before {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--revive-x) var(--revive-y), rgba(92, 255, 108, 0.2), transparent 62%);
  opacity: 0;
  content: "";
  transition: opacity 180ms ease;
}

.workshop-home-actions button:hover {
  border-color: rgba(142, 255, 155, 0.38);
  background: rgba(7, 35, 13, 0.82);
  box-shadow: 0 18px 58px rgba(0, 0, 0, 0.34), 0 0 32px rgba(92, 255, 108, 0.12);
  transform: translateY(-4px) rotateX(2deg);
}

.workshop-home-actions button:hover::before {
  opacity: 1;
}

.workshop-home-actions svg {
  position: relative;
  z-index: 1;
  width: 28px;
  height: 28px;
  color: #92ff9e;
}

.workshop-home-actions strong,
.workshop-home-actions small {
  position: relative;
  z-index: 1;
  display: block;
}

.workshop-home-actions strong {
  font-weight: 850;
}

.workshop-home-actions small {
  margin-top: 4px;
  color: rgba(230, 255, 228, 0.52);
  font-size: 12px;
}

.workshop-shell .workshop-home-hero .login-card.home-auth-card {
  width: 100%;
  color: #e9ffff;
  background:
    linear-gradient(180deg, rgba(13, 36, 47, 0.88), rgba(4, 13, 19, 0.88)),
    radial-gradient(circle at 84% 8%, rgba(155, 232, 229, 0.16), transparent 12rem);
  border: 1px solid rgba(155, 232, 229, 0.16);
  border-radius: 24px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(20px);
}

.workshop-shell .workshop-home-hero .login-card.home-auth-card .section-kicker {
  color: #9be8e5;
}

.workshop-shell .workshop-home-hero .login-card.home-auth-card h1 {
  color: #f7ffff;
  font-size: 48px;
  line-height: 1.08;
}

.workshop-shell .workshop-home-hero .login-card.home-auth-card p {
  color: rgba(224, 252, 252, 0.66);
}

.workshop-shell .workshop-home-hero .login-card.home-auth-card label {
  color: rgba(239, 255, 255, 0.88);
}

.workshop-shell .workshop-home-hero .login-card.home-auth-card input {
  border-color: rgba(155, 232, 229, 0.14);
  color: #f6ffff;
  background: rgba(0, 0, 0, 0.28);
}

.workshop-shell .workshop-home-hero .login-card.home-auth-card input::placeholder {
  color: rgba(226, 248, 249, 0.42);
}

.workshop-shell .workshop-home-hero .login-card.home-auth-card input:focus {
  border-color: rgba(155, 232, 229, 0.44);
  box-shadow: 0 0 0 4px rgba(155, 232, 229, 0.12);
}

.workshop-shell .workshop-home-hero .login-card.home-auth-card .primary-action {
  color: #001114;
  background: linear-gradient(135deg, #c9fffb, #79dfe4);
}

.workshop-shell .workshop-home-hero .login-card.home-auth-card .secondary-action.light {
  color: #e9ffff;
  background: rgba(255, 255, 255, 0.08);
}

.workshop-shell .workshop-home-hero .login-card.home-auth-card .auth-message {
  border-color: rgba(155, 232, 229, 0.16);
  color: #dff;
  background: rgba(155, 232, 229, 0.08);
}

.workshop-original-page {
  min-height: 100vh;
  padding-top: 84px;
  color: #f4ffff;
  background:
    radial-gradient(circle at 42% 10%, rgba(63, 169, 179, 0.12), transparent 34rem),
    linear-gradient(rgba(111, 232, 229, 0.035) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, rgba(111, 232, 229, 0.028) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(180deg, #020506 0%, #020608 48%, #000 100%);
}

.workshop-shell:has(.workshop-original-page) .site-header {
  color: #f6ffff;
  border-bottom: 1px solid rgba(155, 232, 229, 0.14);
  background: rgba(1, 4, 6, 0.92);
  box-shadow: none;
}

.workshop-shell:has(.workshop-original-page) .brand-mark,
.workshop-shell:has(.workshop-original-page) .login-button {
  border-color: rgba(239, 255, 255, 0.72);
}

.workshop-shell:has(.workshop-original-page) .nav-links button.active::after {
  background: #9efff6;
  box-shadow: 0 0 16px rgba(158, 255, 246, 0.42);
}

.workshop-console-hero {
  display: grid;
  grid-template-columns: minmax(300px, 0.95fr) minmax(300px, 0.8fr) minmax(300px, 0.86fr);
  gap: clamp(22px, 3vw, 36px);
  min-height: calc(100vh - 84px);
  align-items: center;
  padding: clamp(50px, 7vh, 76px) clamp(34px, 5.8vw, 84px) 80px;
}

.workshop-console-frame {
  position: absolute;
  inset: 54px 12.2% 48px;
  z-index: -1;
  border: 1px solid rgba(155, 232, 229, 0.12);
  border-radius: 28px;
  background:
    radial-gradient(circle at 64% 34%, rgba(91, 214, 220, 0.1), transparent 24rem),
    linear-gradient(180deg, rgba(16, 40, 45, 0.62), rgba(0, 4, 5, 0.2));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 36px 120px rgba(0, 0, 0, 0.34);
  pointer-events: none;
}

.workshop-console-copy h1 {
  font-size: clamp(72px, 8vw, 122px);
  letter-spacing: 0;
}

.workshop-console-copy p {
  color: rgba(230, 252, 252, 0.72);
}

.workshop-console-copy .section-kicker,
.workshop-system-panel span,
.workshop-welcome-card .section-kicker {
  color: #a7fff5;
}

.workshop-console-copy .workshop-home-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 560px;
}

.workshop-system-panel,
.workshop-entry-panel > .login-card,
.workshop-welcome-card {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border: 1px solid rgba(128, 236, 239, 0.18);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(16, 45, 52, 0.78), rgba(3, 13, 17, 0.84)),
    radial-gradient(circle at 86% 4%, rgba(124, 239, 235, 0.12), transparent 13rem);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(22px);
}

.workshop-system-panel {
  display: grid;
  gap: 14px;
  padding: 24px;
}

.system-panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.system-panel-top span,
.workspace-card span {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.system-panel-top i {
  display: block;
  width: 46px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(167, 255, 245, 0.18), #85e5df);
  box-shadow: 0 0 24px rgba(133, 229, 223, 0.34);
}

.study-orbit {
  position: relative;
  display: grid;
  min-height: 230px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(128, 236, 239, 0.12);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 50%, rgba(112, 233, 231, 0.22), transparent 26%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04), rgba(112, 233, 231, 0.08), rgba(255, 255, 255, 0.03));
}

.study-orbit strong {
  width: 156px;
  height: 156px;
  border: 1px solid rgba(117, 225, 226, 0.32);
  border-radius: 999px;
  background:
    radial-gradient(circle at 42% 38%, rgba(232, 255, 255, 0.5), transparent 12%),
    radial-gradient(circle at 64% 58%, rgba(96, 212, 215, 0.38), transparent 28%),
    radial-gradient(circle, rgba(11, 35, 41, 0.72), rgba(1, 6, 8, 0.94));
  box-shadow: inset 0 0 44px rgba(117, 225, 226, 0.14), 0 0 42px rgba(117, 225, 226, 0.16);
}

.study-orbit span {
  position: absolute;
  width: 156px;
  height: 44px;
  border: 1px solid rgba(111, 224, 225, 0.24);
  border-radius: 999px;
}

.study-orbit span:nth-child(1) {
  transform: rotate(18deg);
}

.study-orbit span:nth-child(2) {
  transform: rotate(74deg);
}

.study-orbit span:nth-child(3) {
  transform: rotate(132deg);
}

.workspace-card,
.workshop-system-panel > button {
  border: 1px solid rgba(128, 236, 239, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
}

.workspace-card {
  padding: 22px;
}

.workspace-card h2 {
  margin: 12px 0 4px;
  font-size: 30px;
}

.workspace-card p {
  margin: 0;
  color: rgba(227, 250, 250, 0.62);
}

.workshop-system-panel > button {
  display: grid;
  grid-template-columns: 48px 1fr;
  min-height: 46px;
  align-items: center;
  padding: 0 14px;
  border: 1px solid rgba(128, 236, 239, 0.1);
  color: #f2ffff;
  text-align: left;
}

.workshop-system-panel > button span {
  font-size: 13px;
  letter-spacing: 0;
}

.workshop-entry-panel > .login-card,
.workshop-welcome-card {
  width: 100%;
  padding: 34px 36px;
}

.workshop-entry-panel > .login-card h1,
.workshop-welcome-card h2 {
  color: #f7ffff;
  font-size: 46px;
  line-height: 1.08;
  letter-spacing: 0;
}

.workshop-entry-panel > .login-card p,
.workshop-welcome-card p {
  color: rgba(226, 250, 250, 0.68);
  line-height: 1.75;
}

.workshop-entry-panel > .login-card label {
  color: rgba(239, 255, 255, 0.9);
}

.workshop-entry-panel > .login-card input {
  border-color: rgba(155, 232, 229, 0.16);
  color: #f6ffff;
  background: rgba(0, 0, 0, 0.28);
}

.workshop-entry-panel > .login-card input::placeholder {
  color: rgba(226, 248, 249, 0.42);
}

.workshop-entry-panel > .login-card .primary-action,
.workshop-welcome-card .primary-action {
  color: #001114;
  background: linear-gradient(135deg, #c9fffb, #7ae2e7);
}

.workshop-entry-panel > .login-card .secondary-action.light,
.workshop-welcome-card .secondary-action.light {
  color: #e9ffff;
  background: rgba(255, 255, 255, 0.08);
}

.workshop-welcome-card {
  display: grid;
  gap: 14px;
}

.spring-exhibition-page {
  min-height: 100vh;
  padding-top: 84px;
  color: #f6f0e6;
  background:
    radial-gradient(circle at 74% 72%, rgba(154, 165, 112, 0.1), transparent 34rem),
    linear-gradient(180deg, #e5e0d4 0%, #bdb4a4 36%, #463429 72%, #17110d 100%);
}

.workshop-shell:has(.spring-exhibition-page) .site-header {
  color: #3a2b20;
  border-bottom: 1px solid rgba(72, 53, 38, 0.12);
  background: rgba(232, 226, 214, 0.72);
  box-shadow: none;
}

.workshop-shell:has(.spring-exhibition-page) .site-header .brand small,
.workshop-shell:has(.spring-exhibition-page) .nav-links button,
.workshop-shell:has(.spring-exhibition-page) .login-button {
  color: rgba(58, 43, 32, 0.74);
}

.workshop-shell:has(.spring-exhibition-page) .nav-links button.active::after {
  background: #8f9e63;
}

.workshop-shell:has(.spring-exhibition-page) .brand-mark,
.workshop-shell:has(.spring-exhibition-page) .login-button {
  border-color: rgba(58, 43, 32, 0.2);
  background: rgba(255, 252, 242, 0.42);
}

.workshop-shell:has(.spring-exhibition-page) .sync-status-banner {
  display: none;
}

.spring-scroll-scene {
  position: relative;
  min-height: 300vh;
  background: #d8d4ca;
}

.spring-sticky-frame {
  position: sticky;
  top: 84px;
  min-height: calc(100vh - 84px);
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(180deg, #e5e0d4 0%, #cbc2b1 38%, #6a5442 68%, #1a120d 100%);
}

.spring-sky,
.spring-earth,
.spring-stage {
  position: absolute;
  inset: 0;
}

.spring-sky {
  background:
    radial-gradient(circle at 68% 30%, rgba(229, 209, 151, calc(var(--spring-progress) * 0.42)), transparent 25rem),
    linear-gradient(180deg,
      rgba(231, 227, 218, 1) 0%,
      rgba(211, 205, 193, calc(1 - var(--spring-progress) * 0.22)) 46%,
      rgba(141, 119, 98, 0.82) 100%);
}

.spring-sky::after {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 62% 40%, rgba(171, 213, 140, calc(var(--spring-progress) * 0.32)), transparent 36rem),
    linear-gradient(180deg, rgba(255, 248, 226, calc(var(--spring-progress) * 0.26)), transparent 58%);
  content: "";
}

.spring-sun {
  position: absolute;
  right: 16%;
  top: 18%;
  width: 280px;
  height: 280px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(239, 216, 144, 0.72), rgba(203, 219, 142, 0.25) 34%, transparent 70%);
  opacity: calc(var(--spring-progress) * 0.62);
  transform: translateY(calc((1 - var(--spring-progress)) * 56px)) scale(calc(0.7 + var(--spring-progress) * 0.3));
  filter: blur(3px);
}

.spring-haze {
  position: absolute;
  right: -8%;
  left: -8%;
  height: 28vh;
  border-radius: 999px;
  background: rgba(244, 239, 225, 0.52);
  filter: blur(42px);
  opacity: calc(0.72 - var(--spring-progress) * 0.34);
  transform: translateX(calc(var(--spring-progress) * -5vw));
}

.haze-a {
  top: 30%;
}

.haze-b {
  top: 47%;
  background: rgba(190, 180, 164, 0.46);
  transform: translateX(calc(var(--spring-progress) * 7vw));
}

.spring-earth {
  top: 59%;
  background:
    radial-gradient(ellipse at 52% 0%, rgba(214, 199, 168, 0.22), transparent 34%),
    linear-gradient(180deg, rgba(86, 63, 45, 0), #5a4434 18%, #2b1d15 56%, #0e0a07 100%);
}

.spring-earth::after {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 60% 20%, rgba(179, 204, 130, 0.14), transparent 32%),
    linear-gradient(180deg, transparent 0 38%, rgba(154, 180, 112, 0.12) 54%, transparent 100%);
  opacity: calc(var(--spring-progress) * 0.82);
  content: "";
}

.spring-stage {
  z-index: 1;
}

.spring-branch {
  position: absolute;
  right: -12%;
  bottom: -7%;
  width: min(88vw, 1260px);
  height: min(48vh, 520px);
  overflow: visible;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dead-branch {
  stroke: #4a382c;
  stroke-width: 11px;
  opacity: calc(0.72 - var(--spring-progress) * 0.12);
  filter: drop-shadow(0 20px 24px rgba(31, 20, 13, 0.34));
}

.live-branch {
  stroke: #a9b77b;
  stroke-width: 3px;
  stroke-dasharray: 1;
  stroke-dashoffset: calc(1 - var(--spring-progress));
  opacity: calc(var(--spring-progress) * 0.72);
  filter: drop-shadow(0 0 10px rgba(186, 197, 127, 0.32));
}

.spring-buds {
  position: absolute;
  inset: 0;
  opacity: calc((var(--spring-progress) - 0.36) * 1.2);
}

.spring-buds span {
  position: absolute;
  left: var(--bud-x);
  top: var(--bud-y);
  width: 10px;
  height: 19px;
  border-radius: 80% 0 80% 0;
  background: linear-gradient(135deg, #e2e7bf, #a5b86d 64%, #778a4e);
  box-shadow: 0 0 14px rgba(178, 190, 116, 0.22);
  transform: translate(-50%, -50%) rotate(var(--bud-rotate)) scale(calc(0.12 + var(--spring-progress) * 0.88));
  transform-origin: bottom center;
}

.spring-hero-copy {
  position: relative;
  z-index: 2;
  width: min(780px, 100% - 64px);
  padding-top: min(9vh, 82px);
  margin-left: clamp(32px, 8vw, 124px);
}

.spring-hero-copy > span,
.spring-exhibit-index span,
.spring-finale > span {
  display: block;
  color: rgba(92, 70, 46, 0.62);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.spring-hero-copy h1 {
  max-width: 760px;
  margin: 24px 0 20px;
  color: #2b1d14;
  font-family: Georgia, "Times New Roman", "Noto Serif SC", serif;
  font-size: clamp(44px, 5vw, 76px);
  font-weight: 560;
  line-height: 1.08;
  letter-spacing: 0;
  text-wrap: balance;
}

.spring-hero-copy p {
  max-width: 560px;
  margin: 0;
  color: rgba(54, 40, 28, 0.82);
  font-size: clamp(17px, 1.35vw, 21px);
  font-weight: 560;
  line-height: 1.75;
}

.spring-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.spring-hero-actions .primary-action.dark,
.spring-finale .primary-action.dark {
  color: #f9f3e7;
  background: linear-gradient(135deg, #4a382b, #221710);
  box-shadow: 0 18px 46px rgba(51, 34, 22, 0.14);
}

.spring-hero-actions .secondary-action.light {
  color: #302216;
  border-color: rgba(74, 54, 37, 0.14);
  background: rgba(246, 240, 226, 0.38);
  backdrop-filter: blur(16px);
}

.spring-exhibit-index {
  position: absolute;
  right: clamp(26px, 5vw, 80px);
  top: 15%;
  z-index: 2;
  display: grid;
  gap: 16px;
  text-align: right;
}

.spring-exhibit-index span {
  color: rgba(74, 55, 38, 0.62);
  transition: color 220ms ease, transform 220ms ease;
}

.spring-exhibit-index span:nth-child(2) {
  color: rgba(96, 111, 60, calc(0.32 + var(--spring-progress) * 0.5));
  transform: translateX(calc(var(--spring-progress) * -8px));
}

.spring-exhibit-index span:nth-child(3) {
  color: rgba(111, 128, 67, calc(var(--spring-progress) * 0.84));
  transform: translateX(calc(var(--spring-progress) * -16px));
}

.spring-module-dock {
  position: absolute;
  right: clamp(20px, 5vw, 76px);
  bottom: 34px;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, minmax(96px, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(246, 238, 220, 0.16);
  border-radius: 8px;
  background: rgba(42, 31, 22, 0.32);
  backdrop-filter: blur(20px);
}

.spring-module-dock button {
  display: grid;
  gap: 8px;
  min-height: 84px;
  place-items: center;
  border: 0;
  color: rgba(247, 241, 228, 0.74);
  background: rgba(255, 255, 255, 0.028);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.spring-module-dock button:hover {
  color: #fbf8ee;
  background: rgba(165, 181, 112, 0.13);
  transform: translateY(-2px);
}

.spring-module-dock svg {
  width: 24px;
  height: 24px;
  color: #c3c79d;
}

.spring-finale {
  display: grid;
  min-height: 84vh;
  place-items: center;
  padding: 120px 32px;
  color: #efe8d9;
  background:
    radial-gradient(circle at 50% 18%, rgba(173, 198, 113, 0.24), transparent 28rem),
    linear-gradient(180deg, #25180f, #101309 72%, #080906);
  text-align: center;
}

.spring-finale > span {
  color: rgba(206, 199, 175, 0.62);
}

.spring-finale h2 {
  max-width: 860px;
  margin: 24px 0 34px;
  color: #f6efdf;
  font-family: "Noto Serif SC", "Songti SC", Georgia, serif;
  font-size: clamp(34px, 5vw, 74px);
  font-weight: 600;
  line-height: 1.24;
  letter-spacing: 0;
  text-wrap: balance;
}

.workshop-gate-page {
  min-height: 100vh;
  padding: 0;
  color: white;
  background:
    radial-gradient(circle at 72% 40%, rgba(110, 255, 105, 0.18), transparent 28rem),
    linear-gradient(180deg, #00140e 0%, #00100b 48%, #000805 100%);
}

.workshop-shell:has(.workshop-gate-page) .site-header {
  top: 24px;
  right: 36px;
  left: 36px;
  grid-template-columns: auto 1fr auto;
  max-width: none;
  padding: 17px 28px;
  border: 1px solid rgba(177, 255, 170, 0.18);
  border-radius: 18px;
  color: #f5fff2;
  background: rgba(0, 22, 15, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 22px 70px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(24px);
}

.workshop-shell:has(.workshop-gate-page) .brand-mark {
  border-color: rgba(203, 255, 146, 0.38);
  color: #c8ff82;
  background: rgba(130, 255, 106, 0.08);
  box-shadow: 0 0 24px rgba(144, 255, 113, 0.12);
}

.workshop-shell:has(.workshop-gate-page) .brand small,
.workshop-shell:has(.workshop-gate-page) .nav-links button {
  color: rgba(241, 255, 237, 0.76);
}

.workshop-shell:has(.workshop-gate-page) .nav-links {
  gap: 22px;
}

.workshop-shell:has(.workshop-gate-page) .nav-links button {
  padding: 8px 4px;
  border-radius: 0;
  font-size: 17px;
}

.workshop-shell:has(.workshop-gate-page) .nav-links button.active::after {
  right: 4px;
  bottom: -7px;
  left: 4px;
  height: 2px;
  background: #c9ff6e;
  box-shadow: 0 0 14px rgba(201, 255, 110, 0.78);
}

.workshop-shell:has(.workshop-gate-page) .login-button {
  min-width: 118px;
  border-color: rgba(218, 255, 205, 0.28);
  border-radius: 999px;
  color: #f7fff3;
  background: rgba(255, 255, 255, 0.055);
}

.workshop-shell:has(.workshop-gate-page) .sync-status-banner {
  display: none;
}

.workshop-gate-hero {
  --gate-x: 66%;
  --gate-y: 45%;
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  isolation: isolate;
  padding: 190px clamp(44px, 6.6vw, 104px) 112px;
}

.workshop-gate-hero::before,
.workshop-gate-hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
}

.workshop-gate-hero::before {
  background:
    radial-gradient(circle at 76% 42%, rgba(118, 255, 88, 0.18), transparent 30rem),
    radial-gradient(circle at 40% 88%, rgba(221, 211, 124, 0.12), transparent 24rem),
    linear-gradient(180deg, rgba(3, 21, 14, 0.72), rgba(0, 9, 6, 0.96));
}

.workshop-gate-hero::after {
  background:
    linear-gradient(90deg, rgba(0, 14, 10, 0.98) 0%, rgba(0, 18, 12, 0.8) 35%, rgba(0, 16, 11, 0.08) 69%, rgba(0, 8, 5, 0.24) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 8, 5, 0.48) 78%, rgba(0, 5, 3, 0.94) 100%);
}

.gate-scenery {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.gate-light-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.gate-light-layer::before,
.gate-light-layer::after {
  position: absolute;
  z-index: 1;
  content: "";
  pointer-events: none;
}

.gate-light-layer::before {
  top: 19%;
  right: 9%;
  width: min(23vw, 360px);
  height: 64%;
  border-radius: 999px;
  background:
    radial-gradient(ellipse at 52% 48%, rgba(255, 255, 236, 0.84) 0 3%, rgba(215, 255, 122, 0.48) 12%, rgba(113, 255, 83, 0.18) 42%, transparent 72%),
    linear-gradient(90deg, transparent, rgba(191, 255, 126, 0.2), transparent);
  filter: blur(16px);
  mix-blend-mode: screen;
  opacity: 0.68;
  animation: gateDoorGlow 3.4s ease-in-out infinite;
}

.gate-light-layer::after {
  top: 14%;
  right: 18.5%;
  width: 2px;
  height: 72%;
  background: linear-gradient(180deg, transparent, rgba(229, 255, 173, 0.58), rgba(255, 255, 245, 0.9), rgba(164, 255, 105, 0.5), transparent);
  box-shadow: 0 0 24px rgba(196, 255, 120, 0.7), 0 0 70px rgba(118, 255, 85, 0.32);
  opacity: 0.74;
}

.gate-scenery img {
  position: absolute;
  top: 0;
  right: -2%;
  width: 84%;
  height: 100%;
  object-fit: cover;
  object-position: 88% 46%;
  opacity: 0.98;
  filter: saturate(1.15) contrast(1.1) brightness(1.16);
  transform: scale(1.035);
  clip-path: inset(0 0 0 44%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 100%);
}

.gate-atmosphere {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 45%, rgba(153, 255, 93, 0.18), transparent 18rem),
    radial-gradient(circle at 58% 88%, rgba(255, 225, 135, 0.14), transparent 23rem),
    linear-gradient(180deg, transparent 0 58%, rgba(0, 8, 5, 0.74) 100%);
}

.gate-light-beam {
  position: absolute;
  z-index: 2;
  top: var(--gate-y);
  right: 0;
  left: 44%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(215, 255, 137, 0.92), transparent);
  opacity: 0.68;
  box-shadow: 0 0 20px rgba(175, 255, 88, 0.76), 0 0 80px rgba(119, 255, 79, 0.34);
  transform: translateY(-50%);
  transition: top 120ms ease, opacity 180ms ease;
}

.gate-light-core,
.gate-cursor-flare {
  position: absolute;
  z-index: 3;
  left: var(--gate-x);
  top: var(--gate-y);
  border-radius: 999px;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: left 120ms ease, top 120ms ease, opacity 180ms ease;
}

.gate-light-core {
  width: 156px;
  height: 156px;
  background:
    radial-gradient(circle, rgba(255, 255, 236, 0.98) 0 8%, rgba(214, 255, 132, 0.78) 16%, rgba(113, 255, 76, 0.28) 43%, transparent 72%);
  opacity: 0.88;
  filter: blur(1px);
  animation: gatePulse 2.8s ease-in-out infinite;
}

.gate-cursor-flare {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(208, 255, 129, 0.24), rgba(91, 255, 75, 0.1) 42%, transparent 70%);
  opacity: 0;
}

.gate-is-lit .gate-cursor-flare {
  opacity: 1;
}

.gate-is-lit .gate-light-core {
  opacity: 1;
}

.gate-particles {
  position: absolute;
  inset: 0;
  z-index: 4;
  overflow: hidden;
}

.gate-particles span {
  position: absolute;
  left: 60%;
  top: 34%;
  width: 5px;
  height: 13px;
  border-radius: 80% 0 80% 0;
  background: linear-gradient(180deg, #e4ff9e, #85da50);
  opacity: 0.42;
  filter: blur(0.2px) drop-shadow(0 0 8px rgba(170, 255, 98, 0.48));
  transform: rotate(calc(-24deg + var(--particle) * 7deg));
  animation: gateParticleFloat 7s ease-in-out infinite;
  animation-delay: calc(var(--particle) * -0.34s);
}

.gate-particles span:nth-child(1) { left: 50%; top: 24%; }
.gate-particles span:nth-child(2) { left: 56%; top: 18%; }
.gate-particles span:nth-child(3) { left: 62%; top: 32%; }
.gate-particles span:nth-child(4) { left: 69%; top: 21%; }
.gate-particles span:nth-child(5) { left: 73%; top: 41%; }
.gate-particles span:nth-child(6) { left: 82%; top: 28%; }
.gate-particles span:nth-child(7) { left: 88%; top: 46%; }
.gate-particles span:nth-child(8) { left: 94%; top: 20%; }
.gate-particles span:nth-child(9) { left: 52%; top: 60%; }
.gate-particles span:nth-child(10) { left: 65%; top: 58%; }
.gate-particles span:nth-child(11) { left: 78%; top: 63%; }
.gate-particles span:nth-child(12) { left: 91%; top: 66%; }
.gate-particles span:nth-child(13) { left: 47%; top: 42%; }
.gate-particles span:nth-child(14) { left: 59%; top: 48%; }
.gate-particles span:nth-child(15) { left: 70%; top: 72%; }
.gate-particles span:nth-child(16) { left: 84%; top: 74%; }
.gate-particles span:nth-child(17) { left: 97%; top: 55%; }
.gate-particles span:nth-child(18) { left: 76%; top: 16%; }

.gate-hero-copy {
  position: relative;
  z-index: 2;
  max-width: 620px;
}

.gate-hero-copy h1 {
  margin: 0;
  color: #f4fff1;
  font-size: clamp(70px, 8.6vw, 132px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  text-shadow: 0 14px 44px rgba(0, 0, 0, 0.42), 0 0 36px rgba(216, 255, 204, 0.16);
}

.gate-hero-copy p {
  margin: 28px 0 0;
  color: #d8f7a1;
  font-size: clamp(24px, 2.25vw, 34px);
  font-weight: 560;
  letter-spacing: 0.46em;
  text-shadow: 0 0 24px rgba(198, 255, 109, 0.22);
}

.gate-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 46px;
}

.gate-hero-actions .primary-action,
.gate-hero-actions .secondary-action {
  min-width: 230px;
  min-height: 66px;
  border-radius: 14px;
  font-size: 18px;
}

.gate-hero-actions .primary-action.dark {
  color: #f6fff0;
  border: 1px solid rgba(221, 255, 173, 0.46);
  background: linear-gradient(135deg, rgba(127, 255, 93, 0.74), rgba(28, 83, 45, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 22px 70px rgba(118, 255, 87, 0.26), 0 0 0 1px rgba(129, 255, 95, 0.16);
}

.gate-hero-actions .secondary-action.light {
  color: rgba(246, 255, 243, 0.9);
  border: 1px solid rgba(228, 255, 214, 0.22);
  background: rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(18px);
}

.gate-module-dock {
  position: absolute;
  right: clamp(54px, 8vw, 120px);
  bottom: clamp(34px, 6vh, 72px);
  left: clamp(54px, 8vw, 120px);
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid rgba(215, 255, 198, 0.28);
  border-radius: 14px;
  background: linear-gradient(90deg, rgba(126, 255, 88, 0.16), rgba(7, 32, 20, 0.66));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 22px 90px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(22px);
}

.gate-module-dock button {
  position: relative;
  display: flex;
  min-height: 88px;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border: 0;
  border-right: 1px solid rgba(216, 255, 201, 0.18);
  color: #f3fff0;
  background: transparent;
  font-size: 20px;
  font-weight: 780;
  transition: background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.gate-module-dock button:last-child {
  border-right: 0;
}

.gate-module-dock button:first-child,
.gate-module-dock button:hover {
  background: linear-gradient(135deg, rgba(149, 255, 100, 0.3), rgba(52, 114, 58, 0.22));
  box-shadow: inset 0 0 34px rgba(179, 255, 103, 0.18), 0 0 28px rgba(141, 255, 82, 0.18);
}

.gate-module-dock button:hover {
  transform: translateY(-2px);
}

.gate-module-dock svg {
  width: 34px;
  height: 34px;
  color: #f5fff1;
  filter: drop-shadow(0 0 12px rgba(203, 255, 141, 0.28));
}

@keyframes gatePulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(0.9);
  }

  50% {
    transform: translate(-50%, -50%) scale(1.08);
  }
}

@keyframes gateParticleFloat {
  0%,
  100% {
    opacity: 0.18;
    transform: translate3d(0, 16px, 0) rotate(calc(-24deg + var(--particle) * 7deg));
  }

  50% {
    opacity: 0.72;
    transform: translate3d(-18px, -22px, 0) rotate(calc(10deg + var(--particle) * 5deg));
  }
}

@keyframes gateDoorGlow {
  0%,
  100% {
    opacity: 0.52;
    transform: scaleX(0.86);
  }

  50% {
    opacity: 0.9;
    transform: scaleX(1.04);
  }
}

@media (max-width: 980px) {
  .workshop-shell:has(.workshop-gate-page) .site-header {
    top: 16px;
    right: 18px;
    left: 18px;
    padding: 15px 18px;
  }

  .workshop-shell:has(.workshop-gate-page) .nav-links {
    gap: 12px;
  }

  .workshop-shell:has(.workshop-gate-page) .nav-links button {
    font-size: 14px;
  }

  .workshop-gate-hero {
    min-height: 900px;
    padding: 154px 28px 158px;
  }

  .workshop-gate-hero::after {
    background:
      linear-gradient(180deg, rgba(0, 14, 10, 0.82), rgba(0, 10, 7, 0.38) 44%, rgba(0, 5, 3, 0.94) 100%),
      linear-gradient(90deg, rgba(0, 14, 10, 0.92), rgba(0, 16, 11, 0.3) 72%, rgba(0, 8, 5, 0.62));
  }

  .gate-scenery img {
    right: -20%;
    width: 118%;
    opacity: 0.74;
    object-position: 90% 46%;
    clip-path: inset(0 0 0 44%);
  }

  .gate-hero-copy {
    max-width: 590px;
  }

  .gate-hero-copy h1 {
    font-size: clamp(60px, 14vw, 96px);
  }

  .gate-hero-copy p {
    font-size: 20px;
    letter-spacing: 0.3em;
  }

  .gate-module-dock {
    right: 24px;
    bottom: 28px;
    left: 24px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gate-module-dock button {
    min-height: 76px;
    font-size: 17px;
  }
}

@media (max-width: 620px) {
  .workshop-gate-page.workshop-home-page {
    padding-top: 0;
  }

  .workshop-shell:has(.workshop-gate-page) .site-header {
    right: 12px;
    left: 12px;
    border-radius: 14px;
  }

  .workshop-shell:has(.workshop-gate-page) .brand {
    min-width: 0;
  }

  .workshop-shell:has(.workshop-gate-page) .nav-links {
    display: none;
  }

  .workshop-gate-hero {
    min-height: 880px;
    padding: 136px 20px 208px;
  }

  .gate-scenery img {
    right: -58%;
    width: 166%;
    opacity: 0.66;
    clip-path: inset(0 0 0 42%);
  }

  .gate-light-layer::before {
    right: 8%;
    width: 170px;
  }

  .gate-light-layer::after {
    right: 25%;
  }

  .gate-light-beam {
    left: 22%;
  }

  .gate-light-core {
    width: 108px;
    height: 108px;
  }

  .gate-cursor-flare {
    width: 240px;
    height: 240px;
  }

  .gate-hero-copy h1 {
    font-size: clamp(56px, 22vw, 82px);
  }

  .gate-hero-copy p {
    font-size: 17px;
    line-height: 1.7;
    letter-spacing: 0.22em;
  }

  .gate-hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .gate-hero-actions .primary-action,
  .gate-hero-actions .secondary-action {
    width: 100%;
    min-width: 0;
  }

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

  .gate-module-dock svg {
    width: 28px;
    height: 28px;
  }
}

@keyframes revivalRootFlow {
  from {
    stroke-dashoffset: 1;
  }

  to {
    stroke-dashoffset: 0;
  }
}

@keyframes sproutRise {
  0% {
    opacity: 0;
    transform: translate(-50%, 18px) scaleY(0.12);
  }

  22%,
  72% {
    opacity: 1;
    transform: translate(-50%, 0) scaleY(1);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -7px) scaleY(0.86);
  }
}

.workshop-shell {
  background:
    radial-gradient(circle at 18% 0%, rgba(111, 209, 212, 0.16), transparent 24rem),
    linear-gradient(180deg, #f6f9fb 0%, #edf3f6 48%, #f8fafb 100%);
}

.workshop-shell .inner-page:not(.workshop-home-page) {
  width: min(1220px, calc(100% - 72px));
  padding-top: 122px;
  color: #102331;
}

.workshop-shell .inner-page:not(.workshop-home-page)::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(16, 35, 49, 0.035) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, rgba(16, 35, 49, 0.028) 1px, transparent 1px) 0 0 / 56px 56px;
  content: "";
  pointer-events: none;
}

.workshop-shell .page-title,
.workshop-shell .resource-desk-intro,
.workshop-shell .library-archive-intro,
.workshop-shell .english-hero,
.workshop-shell .profile-hero {
  overflow: hidden;
  border: 1px solid rgba(16, 35, 49, 0.1);
  border-radius: 18px;
  background:
    radial-gradient(circle at 84% 10%, rgba(111, 209, 212, 0.22), transparent 18rem),
    linear-gradient(135deg, #ffffff 0%, #edf6f7 100%);
  box-shadow: 0 24px 70px rgba(16, 35, 49, 0.1);
}

.workshop-shell .page-title {
  max-width: none;
  padding: 34px 38px;
}

.workshop-shell .page-title h1,
.workshop-shell .resource-desk-intro h1,
.workshop-shell .library-archive-intro h1,
.workshop-shell .english-hero h1,
.workshop-shell .profile-hero h1,
.workshop-shell .library-shelf-head h2 {
  color: #102331;
  font-family: Inter, "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  font-weight: 860;
  line-height: 1.08;
}

.workshop-shell .page-title p,
.workshop-shell .resource-desk-intro p,
.workshop-shell .library-archive-intro p,
.workshop-shell .english-hero p,
.workshop-shell .profile-hero p {
  color: #5c7482;
}

.workshop-shell .section-kicker,
.workshop-shell .library-shelf-head span,
.workshop-shell .resource-card span,
.workshop-shell .library-card span,
.workshop-shell .english-material-card .section-kicker {
  color: #087b82;
}

.workshop-shell .resource-desk-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  margin-bottom: 24px;
  padding: 36px 40px;
}

.workshop-shell .resource-desk-intro > div {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  align-items: center;
}

.workshop-shell .resource-desk-intro svg,
.workshop-shell .library-archive-intro svg {
  width: 52px;
  height: 52px;
  color: #087b82;
}

.workshop-shell .resource-desk-intro span,
.workshop-shell .library-archive-intro span {
  color: #087b82;
  font-size: 12px;
  font-weight: 900;
}

.workshop-shell .resource-desk-intro h1,
.workshop-shell .library-archive-intro h1 {
  margin: 4px 0 0;
  font-size: clamp(44px, 5vw, 72px);
}

.workshop-shell .library-archive-intro {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  margin-bottom: 24px;
  padding: 34px 40px;
}

.workshop-shell .library-archive-intro strong {
  display: inline-grid;
  min-width: 72px;
  min-height: 72px;
  place-items: center;
  border-radius: 16px;
  color: #102331;
  background: #dff8f7;
  font-size: 18px;
}

.workshop-shell .resource-command-strip {
  margin: 0 0 24px;
  gap: 14px;
}

.workshop-shell .resource-command-strip article,
.workshop-shell .tool-status,
.workshop-shell .profile-stats button,
.workshop-shell .profile-nav-shell,
.workshop-shell .profile-dashboard article,
.workshop-shell .profile-module,
.workshop-shell .tool-workspace {
  border: 1px solid rgba(16, 35, 49, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 48px rgba(16, 35, 49, 0.08);
}

.workshop-shell .resource-grid,
.workshop-shell .library-grid,
.workshop-shell .english-material-grid {
  gap: 18px;
}

.workshop-shell .resource-card,
.workshop-shell .library-card,
.workshop-shell .english-material-card {
  overflow: hidden;
  border: 1px solid rgba(16, 35, 49, 0.1);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 54px rgba(16, 35, 49, 0.09);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.workshop-shell .resource-card:hover,
.workshop-shell .library-card:hover,
.workshop-shell .english-material-card:hover {
  border-color: rgba(8, 123, 130, 0.22);
  box-shadow: 0 24px 70px rgba(16, 35, 49, 0.13);
  transform: translateY(-3px);
}

.workshop-shell .simple-resources-page .resource-card {
  border-left: 0;
}

.workshop-shell .resource-card > img,
.workshop-shell .simple-resources-page .resource-card > img,
.workshop-shell .library-card > img,
.workshop-shell .library-card > svg,
.workshop-shell .english-cover {
  background:
    linear-gradient(135deg, #eff8f8, #dfecef);
}

.workshop-shell .resource-card h3,
.workshop-shell .library-card h3,
.workshop-shell .english-material-card h3 {
  color: #102331;
  font-size: 22px;
  line-height: 1.22;
}

.workshop-shell .resource-card p,
.workshop-shell .library-card p,
.workshop-shell .library-card small,
.workshop-shell .english-material-card p,
.workshop-shell .english-material-card small {
  color: #607987;
}

.workshop-shell .resource-actions button,
.workshop-shell .resource-card a,
.workshop-shell .resource-card em,
.workshop-shell .library-card a,
.workshop-shell .english-material-card a {
  color: #064f55;
  background: #e8fbfa;
}

.workshop-shell .resource-actions button:hover,
.workshop-shell .resource-card a:hover,
.workshop-shell .library-card a:hover,
.workshop-shell .english-material-card a:hover {
  color: white;
  background: #087b82;
}

.workshop-shell .assignment-panel {
  border-color: rgba(8, 123, 130, 0.12);
  border-radius: 14px;
  background: #f4fafb;
}

.workshop-shell .assignment-panel textarea,
.workshop-shell .assignment-panel input,
.workshop-shell .tool-form input,
.workshop-shell .tool-form textarea,
.workshop-shell .tool-form select,
.workshop-shell .profile-upload-form input,
.workshop-shell .profile-upload-form textarea,
.workshop-shell .profile-upload-form select {
  border-color: rgba(16, 35, 49, 0.12);
  background: #fff;
}

.workshop-shell .library-shelf-head {
  margin-top: 28px;
  padding: 24px 28px;
  border: 1px solid rgba(16, 35, 49, 0.1);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 16px 46px rgba(16, 35, 49, 0.07);
}

.workshop-shell .library-shelf-head h2 {
  margin-top: 6px;
  font-size: 30px;
}

.workshop-shell .category-tabs button {
  border: 1px solid rgba(16, 35, 49, 0.1);
  color: #102331;
  background: #fff;
  box-shadow: none;
}

.workshop-shell .category-tabs button.active {
  border-color: #087b82;
  color: white;
  background: #087b82;
}

.workshop-shell .library-card {
  border-radius: 16px;
  background: #fff;
}

.workshop-shell .english-corner-page,
.workshop-shell .tools-page,
.workshop-shell .profile-page {
  display: grid;
  gap: 24px;
}

.workshop-shell .english-hero {
  padding: 34px;
}

.workshop-shell .english-hero h1 {
  font-size: clamp(48px, 6vw, 78px);
}

.workshop-shell .english-shelf {
  border: 1px solid rgba(16, 35, 49, 0.08);
  background:
    linear-gradient(135deg, rgba(8, 123, 130, 0.08), rgba(255, 255, 255, 0.42));
}

.workshop-shell .english-spine {
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(16, 35, 49, 0.16);
}

.workshop-shell .spine-1 { background: linear-gradient(180deg, #087b82, #143240); }
.workshop-shell .spine-2 { background: linear-gradient(180deg, #5b7d8d, #243b48); }
.workshop-shell .spine-3 { background: linear-gradient(180deg, #5d918a, #1f4d4d); }

.workshop-shell .english-toolbar {
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(16, 35, 49, 0.1);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 16px 46px rgba(16, 35, 49, 0.07);
}

.workshop-shell .tools-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.36fr) minmax(0, 1fr);
  gap: 20px;
}

.workshop-shell .tool-list {
  display: grid;
  gap: 10px;
}

.workshop-shell .tool-list button {
  border: 1px solid rgba(16, 35, 49, 0.1);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(16, 35, 49, 0.06);
}

.workshop-shell .tool-list button.active {
  border-color: rgba(8, 123, 130, 0.28);
  color: #073b40;
  background: #e8fbfa;
}

.workshop-shell .tool-heading {
  border-bottom: 1px solid rgba(16, 35, 49, 0.1);
}

.workshop-shell .profile-hero {
  padding: 32px;
}

.workshop-shell .profile-avatar {
  color: #087b82;
  background: #e8fbfa;
}

.workshop-shell .profile-hero-meta span {
  border: 1px solid rgba(16, 35, 49, 0.08);
  color: #102331;
  background: rgba(255, 255, 255, 0.68);
}

.workshop-shell .profile-hero-meta strong {
  color: #607987;
}

.workshop-shell .profile-stats {
  gap: 14px;
}

.workshop-shell .profile-stats button {
  color: #102331;
}

.workshop-shell .profile-stats button.active,
.workshop-shell .profile-stats button:hover,
.workshop-shell .profile-nav button.active {
  color: white;
  background: #087b82;
}

.workshop-shell .profile-nav-shell {
  padding: 18px;
}

.workshop-shell .profile-dashboard,
.workshop-shell .single-profile-layout {
  gap: 18px;
}

.workshop-shell .auth-page {
  display: grid;
  place-items: center;
}

.workshop-shell .auth-page .login-card {
  border: 1px solid rgba(16, 35, 49, 0.1);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(16, 35, 49, 0.12);
}

.workshop-shell .auth-page .auth-required-card {
  width: min(760px, 100%);
}

.admin-workshop-card.active {
  border-color: rgba(15, 104, 112, 0.32);
  background:
    linear-gradient(180deg, rgba(235, 252, 252, 0.96), rgba(255, 255, 255, 0.9)),
    radial-gradient(circle at 90% 12%, rgba(111, 209, 212, 0.26), transparent 12rem);
}

.workshop-toggle-panel {
  overflow: hidden;
}

.workshop-toggle-panel.active,
.tools-toggle-panel.active {
  border-color: rgba(15, 104, 112, 0.22);
  background:
    linear-gradient(180deg, rgba(238, 250, 250, 0.96), rgba(255, 255, 255, 0.9)),
    radial-gradient(circle at 86% 0%, rgba(111, 209, 212, 0.24), transparent 16rem);
}

.workshop-toggle-preview {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding: 22px;
  border: 1px solid rgba(15, 104, 112, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.66);
}

.workshop-toggle-preview > svg {
  width: 58px;
  height: 58px;
  color: #0f6870;
}

.workshop-toggle-preview strong,
.workshop-toggle-preview p {
  display: block;
}

.workshop-toggle-preview strong {
  margin-bottom: 8px;
  font-size: 22px;
}

.workshop-toggle-preview p {
  max-width: 720px;
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.75;
}

.workshop-toggle-preview button {
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  color: white;
  background: #0f6870;
  font-weight: 820;
}

.tool-disabled-panel {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 32px;
  border: 1px solid rgba(15, 104, 112, 0.16);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(240, 251, 251, 0.9)),
    radial-gradient(circle at 90% 10%, rgba(111, 209, 212, 0.2), transparent 15rem);
  box-shadow: 0 18px 48px rgba(16, 35, 49, 0.08);
}

.tool-disabled-panel > svg {
  width: 72px;
  height: 72px;
  color: #0f6870;
}

.tool-disabled-panel h2 {
  margin: 6px 0 10px;
  font-size: 34px;
}

.tool-disabled-panel p {
  max-width: 760px;
  margin: 0 0 20px;
  color: var(--muted);
  line-height: 1.75;
}

.hero-admin-preview {
  display: grid;
  gap: 7px;
  padding: 22px;
  border: 1px solid rgba(15, 104, 112, 0.16);
  border-radius: 14px;
  color: white;
  background:
    linear-gradient(135deg, rgba(8, 47, 73, 0.82), rgba(14, 128, 131, 0.68)),
    url("/assets/hero-campus-clouds.png") center / cover;
}

.hero-admin-preview span {
  color: #a7f4ef;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.hero-admin-preview strong {
  font-family: Georgia, "Noto Serif SC", serif;
  font-size: 34px;
  line-height: 1.1;
}

.hero-admin-preview small {
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.hero-admin-preview p {
  max-width: 720px;
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.7;
}

@media (max-width: 1180px) {
  .workshop-home-hero {
    padding-inline: 52px;
  }
}

@media (max-width: 980px) {
  .workshop-home-hero {
    min-height: auto;
    padding: 74px 32px 96px;
  }

  .workshop-home-copy {
    width: min(680px, 100%);
  }

  .revival-ground {
    inset: 38% 0 0;
  }
}

@media (max-width: 620px) {
  .workshop-home-page {
    padding-top: 92px;
  }

  .workshop-home-hero {
    padding: 54px 20px 80px;
  }

  .workshop-home-copy h1 {
    font-size: clamp(54px, 18vw, 82px);
  }

  .workshop-home-copy p {
    font-size: 16px;
  }

  .workshop-hero-cta {
    display: grid;
    grid-template-columns: 1fr;
  }

  .workshop-home-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workshop-home-actions button {
    min-width: 0;
    min-height: 68px;
  }

  .workshop-shell .workshop-home-hero .login-card.home-auth-card h1 {
    font-size: 38px;
  }

  .workshop-shell .login-card.workshop-login-card h1 {
    font-size: 42px;
  }

  .auth-required-card {
    padding: 30px;
  }

  .auth-required-card h1 {
    font-size: 40px;
  }

  .auth-required-card p {
    font-size: 16px;
  }

  .workshop-toggle-preview {
    grid-template-columns: 1fr;
  }
}

@media print {
  .site-header,
  .footer,
  .resource-toolbar,
  .story-page button {
    display: none !important;
  }

  .app-shell {
    background: white;
  }

  .inner-page {
    width: 100%;
    padding: 0;
  }

  .story-page {
    min-height: auto;
    margin-bottom: 24px;
  }

  .story-page > div,
  .resource-card {
    box-shadow: none;
  }

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

.empty-state {
  display: grid;
  min-height: 150px;
  place-items: center;
  padding: 28px;
  text-align: center;
}

.empty-state.compact {
  min-height: 94px;
  box-shadow: none;
}

.glass-panel .empty-state {
  min-height: 130px;
  color: rgba(255, 255, 255, 0.86);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.empty-state strong {
  color: inherit;
  font-size: 18px;
}

.empty-state p {
  margin: 8px 0 0;
  color: var(--muted);
}

.glass-panel .empty-state p {
  color: rgba(255, 255, 255, 0.72);
}

.story-page {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 42px;
  align-items: center;
  min-height: 620px;
}

.story-page > div {
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

.story-page > div > svg {
  width: 54px;
  height: 54px;
  color: #14797c;
}

.story-page h1 {
  font-size: 56px;
}

.story-page p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.story-page img {
  width: 100%;
  height: 560px;
  border-radius: 26px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.calendar-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.55fr);
  gap: 28px;
  align-items: start;
  padding-bottom: 70px;
}

.calendar-card,
.calendar-agenda {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 54px rgba(27, 70, 95, 0.08);
}

.calendar-card {
  padding: 28px;
}

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

.calendar-toolbar h2 {
  margin: 0;
  font-family: Georgia, "Noto Serif SC", serif;
  font-size: 30px;
}

.calendar-toolbar button,
.calendar-agenda button {
  border: 0;
  border-radius: 12px;
  font-weight: 800;
}

.calendar-toolbar button {
  min-height: 40px;
  padding: 0 16px;
  color: #0b5a61;
  background: #eefafa;
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-weekdays {
  gap: 8px;
  margin-bottom: 8px;
}

.calendar-weekdays span {
  color: #168083;
  font-size: 13px;
  font-weight: 860;
  text-align: center;
}

.calendar-grid {
  gap: 8px;
}

.calendar-grid button {
  display: grid;
  align-content: start;
  min-height: 112px;
  padding: 12px;
  border: 1px solid #d9e9ee;
  border-radius: 14px;
  color: var(--ink);
  background: #f9fcfd;
  text-align: left;
}

.calendar-grid button.muted {
  color: #9caeb7;
  background: #f2f6f7;
}

.calendar-grid button.today {
  border-color: #0e8083;
  box-shadow: inset 0 0 0 2px rgba(14, 128, 131, 0.18);
}

.calendar-grid button.has-event {
  background: linear-gradient(180deg, #ffffff, #eaf9f8);
}

.calendar-grid strong {
  font-size: 18px;
}

.calendar-grid small {
  overflow: hidden;
  margin-top: 8px;
  padding: 5px 7px;
  border-radius: 8px;
  color: #0b5a61;
  background: rgba(14, 128, 131, 0.12);
  font-size: 12px;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-agenda {
  padding: 24px;
}

.calendar-agenda > button {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 14px;
  color: var(--ink);
  background: #f7fbfc;
  text-align: left;
}

.calendar-agenda > button span,
.calendar-agenda > button strong,
.calendar-agenda > button small {
  display: block;
}

.calendar-agenda > button span {
  color: #168083;
  font-size: 12px;
  font-weight: 860;
}

.calendar-agenda > button strong {
  margin-top: 5px;
}

.calendar-agenda > button small {
  margin-top: 6px;
  color: var(--muted);
}

.footer {
  color: white;
  background: linear-gradient(180deg, #0b4260, #062338);
}

.footer-shortcuts {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  padding: 26px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-shortcuts button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  border: 0;
  color: white;
  background: rgba(255, 255, 255, 0.04);
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.footer-shortcuts button:hover {
  color: #073150;
  background: #f1fbfb;
  transform: translateY(-2px);
}

.footer-shortcuts svg {
  width: 28px;
  height: 28px;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.25fr;
  gap: 36px;
  padding: 44px 0 58px;
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  text-align: left;
}

.footer-brand-column {
  justify-self: start;
  text-align: left;
}

.footer-brand svg {
  width: 56px;
  height: 56px;
}

.footer-school-logo {
  display: block;
  width: min(243px, 100%);
  height: auto;
  margin: 12px 0 12px;
}

.footer h3,
.footer h4 {
  margin: 0 0 12px;
}

.footer p {
  margin: 8px 0;
  color: rgba(255, 255, 255, 0.75);
}

.footer-main button {
  display: block;
  border: 0;
  padding: 5px 0;
  color: rgba(255, 255, 255, 0.78);
  background: transparent;
}

.qr-box {
  text-align: center;
}

.qr-box span {
  display: block;
  width: 118px;
  height: 118px;
  margin: 0 auto 12px;
  border: 10px solid white;
  border-radius: 12px;
  background:
    linear-gradient(90deg, #082f49 8px, transparent 8px) 0 0 / 18px 18px,
    linear-gradient(#082f49 8px, transparent 8px) 0 0 / 18px 18px,
    #e9fbff;
}

.section-heading p {
  max-width: 620px;
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.services-section .section-heading {
  align-items: end;
}

.profile-stats button {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  min-height: 140px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
  text-align: left;
  box-shadow: 0 14px 38px rgba(27, 70, 95, 0.07);
}

.profile-stats button.active,
.profile-stats button:hover {
  border-color: rgba(34, 149, 143, 0.44);
  background: #effffe;
}

.profile-stats button small {
  grid-column: 1 / -1;
  align-self: end;
  color: var(--muted);
  font-weight: 720;
  line-height: 1.45;
}

.profile-stats button strong {
  align-self: end;
  color: #0b6872;
  font-size: 38px;
  line-height: 1;
}

.profile-stats button > span:not(.profile-stat-icon) {
  grid-column: 1 / -1;
  color: var(--ink);
  font-weight: 850;
}

.profile-stat-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  color: #0f5a88;
  background: #edfafa;
}

.profile-stat-icon svg {
  width: 24px;
  height: 24px;
}

.profile-nav-shell {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 32px rgba(27, 70, 95, 0.05);
}

.profile-nav-shell > span {
  padding: 0 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.profile-nav,
.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
}

.profile-nav button,
.category-tabs button {
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
  font-weight: 800;
}

.profile-nav button.active,
.category-tabs button.active {
  color: white;
  border-color: transparent;
  background: #0b5a61;
}

.profile-dashboard {
  display: grid;
  grid-template-columns: minmax(320px, 1.25fr) repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.profile-dashboard article,
.guide-grid article,
.guide-steps article,
.faq-list article,
.watermark-panel,
.math-workbench,
.math-history,
.map-legend {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 54px rgba(27, 70, 95, 0.08);
}

.profile-dashboard article {
  display: grid;
  gap: 12px;
  min-height: 196px;
  padding: 24px;
}

.profile-dashboard svg {
  width: 34px;
  height: 34px;
  color: #0f5a88;
}

.profile-dashboard h2,
.profile-dashboard h3 {
  margin: 0;
}

.profile-dashboard p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.profile-dashboard button,
.favorite-list button,
.message-list button {
  justify-self: start;
  min-height: 38px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  color: #0b5a61;
  background: #e8fbfb;
  font-weight: 820;
}

.profile-account-card {
  align-content: start;
}

.profile-info-list {
  display: grid;
  gap: 8px;
  margin: 4px 0;
}

.profile-info-list span {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 9px 10px;
  border-radius: 10px;
  background: #f6fbfc;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.profile-info-list strong {
  color: var(--muted);
  font-size: 13px;
}

.profile-action-card {
  align-content: space-between;
}

.module-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.activity-edit-list {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.activity-edit-list button {
  display: grid;
  gap: 5px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  text-align: left;
}

.activity-edit-list button.active {
  border-color: rgba(34, 149, 143, 0.44);
  background: #effffe;
}

.admin-edit-chip {
  justify-self: start;
  padding: 4px 9px;
  border-radius: 999px;
  color: #16635f;
  background: rgba(34, 149, 143, 0.12);
  font-size: 0.78rem;
  font-weight: 700;
}

.activity-edit-list small,
.message-list small {
  color: var(--muted);
}

.admin-form .section-heading button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.profile-card-wide {
  grid-row: span 2;
}

.profile-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-chip-row span {
  padding: 7px 10px;
  border-radius: 9px;
  color: #8a5a22;
  background: #fff7ec;
  font-size: 13px;
  font-weight: 780;
}

.single-profile-layout {
  grid-template-columns: 1fr;
  grid-template-areas: none;
}

.single-profile-layout .profile-module {
  grid-area: auto;
  width: 100%;
}

.single-profile-layout .profile-module.account-module {
  position: static;
  top: auto;
}

.favorites-module,
.messages-module {
  grid-area: auto;
}

.favorite-list,
.message-list,
.guide-steps,
.guide-grid,
.faq-list,
.watermark-layout,
.math-layout,
.campus-map-layout {
  display: grid;
  gap: 18px;
}

.favorite-list article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fcfd;
}

.favorite-list h3,
.favorite-list p {
  margin: 8px 0;
}

.message-list article {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fcfd;
}

.message-list article.unread {
  border-color: rgba(34, 149, 143, 0.34);
  background: #effffe;
}

.message-list svg {
  width: 28px;
  height: 28px;
  color: #0f5a88;
}

.card-title-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: start;
}

.favorite-button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #b4485f;
  background: white;
}

.favorite-button svg {
  width: 20px;
  height: 20px;
}

.favorite-button.active {
  border-color: rgba(180, 72, 95, 0.22);
  background: #fff0f3;
}

.photo-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 9px 12px;
  border-radius: 10px;
  color: #0b5a61;
  background: rgba(255, 255, 255, 0.88);
  font-weight: 820;
  text-decoration: none;
}

.guide-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 22px;
  align-items: center;
  padding: 32px;
  border-radius: 22px;
  color: white;
  background:
    linear-gradient(135deg, rgba(8, 47, 73, 0.94), rgba(34, 149, 143, 0.7)),
    url("/assets/hero-campus-clouds.png") center / cover;
  box-shadow: var(--shadow);
}

.guide-hero h2 {
  margin: 8px 0;
  font-family: Georgia, "Noto Serif SC", serif;
  font-size: 38px;
}

.guide-hero p {
  margin: 0;
  max-width: 680px;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.8;
}

.guide-checklist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.guide-checklist span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.16);
  font-weight: 760;
}

.guide-steps {
  grid-template-columns: repeat(4, 1fr);
  margin-top: 24px;
}

.guide-steps article,
.guide-grid article,
.faq-list article {
  padding: 24px;
}

.guide-steps strong {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  color: white;
  background: #0b5a61;
}

.guide-steps h3,
.guide-grid h3,
.faq-list h3 {
  margin: 14px 0 8px;
}

.guide-steps p,
.guide-grid p,
.faq-list p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.guide-grid {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 18px;
}

.faq-list article {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px;
}

.faq-list span {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 13px;
  color: white;
  background: #0b5a61;
  font-weight: 860;
}

.campus-map-layout {
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
}

.campus-map-board {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    linear-gradient(90deg, rgba(8, 47, 73, 0.04) 1px, transparent 1px) 0 0 / 36px 36px,
    linear-gradient(rgba(8, 47, 73, 0.04) 1px, transparent 1px) 0 0 / 36px 36px,
    #eef8f4;
  box-shadow: var(--shadow);
}

.map-zone {
  position: absolute;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 16px;
  border: 2px solid rgba(8, 47, 73, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 36px rgba(27, 70, 95, 0.1);
}

.map-zone strong {
  font-size: 18px;
}

.map-zone small {
  color: var(--muted);
}

.north-gate { top: 5%; left: 38%; width: 24%; height: 11%; }
.teaching { top: 22%; left: 8%; width: 32%; height: 24%; }
.training { top: 20%; right: 8%; width: 34%; height: 22%; }
.library-zone { top: 48%; left: 30%; width: 28%; height: 17%; }
.office { top: 49%; right: 9%; width: 25%; height: 18%; }
.dorm { bottom: 8%; left: 8%; width: 31%; height: 20%; }
.canteen { bottom: 9%; left: 43%; width: 20%; height: 18%; }
.stadium { bottom: 8%; right: 8%; width: 25%; height: 22%; }

.map-road {
  position: absolute;
  display: grid;
  place-items: center;
  color: #0b5a61;
  font-size: 12px;
  font-weight: 860;
}

.main-road {
  top: 16%;
  bottom: 5%;
  left: 48%;
  width: 8%;
  border-radius: 999px;
  background: rgba(212, 170, 99, 0.42);
}

.ring-road {
  inset: 12% 5%;
  border: 18px solid rgba(111, 209, 212, 0.24);
  border-radius: 40px;
  pointer-events: none;
}

.map-legend {
  align-self: start;
  padding: 26px;
}

.map-legend h2 {
  margin: 0 0 12px;
}

.map-legend p {
  color: var(--muted);
  line-height: 1.7;
}

.map-legend div {
  display: grid;
  gap: 10px;
}

.map-legend span {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--ink);
  line-height: 1.5;
}

.math-layout {
  grid-template-columns: minmax(0, 1fr) 340px;
}

.math-workbench,
.math-history,
.watermark-panel {
  padding: 26px;
}

.math-workbench textarea {
  min-height: 180px;
}

.math-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 16px 0;
}

.math-result {
  margin: 18px 0 0;
  padding: 18px;
  overflow: auto;
  border-radius: 14px;
  color: #e8fbfb;
  background: #0b2437;
  white-space: pre-wrap;
  line-height: 1.65;
}

.math-history h2 {
  margin-top: 0;
}

.math-history article {
  display: grid;
  gap: 6px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.math-history small {
  color: var(--muted);
}

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

.watermark-panel {
  display: grid;
  gap: 14px;
}

.watermark-panel label {
  display: grid;
  gap: 8px;
  font-weight: 760;
}

.watermark-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.watermark-actions button,
.watermark-panel > button {
  min-height: 42px;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  color: white;
  background: #0b5a61;
  font-weight: 820;
}

.watermark-preview {
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  border-radius: 14px;
  background: #f1f7f8;
}

.video-watermark-card {
  grid-column: 1 / -1;
  background:
    linear-gradient(135deg, rgba(255, 247, 237, 0.9), rgba(234, 255, 255, 0.86));
}

.compact-drop {
  min-height: 82px;
}

@media (max-width: 1100px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .hero-content,
  .two-columns,
  .home-overview,
  .home-feature-card,
  .calendar-layout,
  .activity-workspace,
  .profile-layout,
  .story-page,
  .tools-layout,
  .english-hero,
  .english-toolbar {
    grid-template-columns: 1fr;
  }

  .quick-links,
  .service-grid,
  .feature-gallery,
  .profile-icons,
  .footer-shortcuts,
  .resource-grid,
  .simple-resources-page .resource-grid,
  .english-material-grid,
  .culture-news-grid,
  .culture-story-layout,
  .library-grid,
  .photo-grid,
  .ranking-layout,
  .podium {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .image-live-preview {
    grid-template-columns: 1fr;
  }

  .personal-preview,
  .home-overview,
  .footer-main,
  .account-security-grid {
    grid-template-columns: 1fr;
  }

  .admin-overview {
    grid-template-columns: repeat(2, 1fr);
  }

  .profile-layout {
    grid-template-areas:
      "activity"
      "account"
      "certificates";
  }

  .profile-module.account-module {
    position: static;
  }

  .certificate-grid {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }
}

@media (max-width: 720px) {
  .site-header {
    grid-template-columns: 1fr auto;
    padding: 14px 18px;
    row-gap: 10px;
  }

  .brand small {
    display: none;
  }

  .brand strong {
    font-size: 16px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .login-button {
    min-width: auto;
    padding: 10px 12px;
  }

  .nav-links {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-start;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

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

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-links button {
    flex: 0 0 auto;
    padding: 8px 10px;
    font-size: 13px;
  }

  .hero-section {
    min-height: auto;
  }

  .hero-content,
  .content-grid,
  .services-section,
  .home-overview,
  .feature-gallery,
  .home-culture-block,
  .personal-preview,
  .calendar-layout,
  .inner-page,
  .footer-main,
  .footer-shortcuts,
  .quick-links {
    width: min(100% - 32px, 1280px);
  }

  .hero-content {
    padding: 184px 0 70px;
  }

  .inner-page {
    padding-top: 252px;
  }

  .hero-copy h1 {
    font-size: 48px;
  }

  .hero-line {
    font-size: 18px;
  }

  .calendar-card,
  .calendar-agenda {
    padding: 18px;
  }

  .calendar-toolbar {
    gap: 10px;
  }

  .calendar-toolbar h2 {
    font-size: 24px;
  }

  .calendar-grid {
    gap: 5px;
  }

  .calendar-grid button {
    min-height: 76px;
    padding: 8px;
    border-radius: 10px;
  }

  .calendar-grid small {
    display: none;
  }

  .quick-links,
  .service-grid,
  .hero-panels,
  .home-stats-grid,
  .home-feature-card,
  .feature-gallery,
  .profile-icons,
  .profile-stats,
  .admin-overview,
  .resource-command-strip,
  .resource-grid,
  .simple-resources-page .resource-grid,
  .english-material-grid,
  .culture-news-grid,
  .culture-story-layout,
  .library-grid,
  .photo-grid,
  .ranking-layout,
  .podium,
  .random-form {
    grid-template-columns: 1fr;
  }

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

  .hero-quick-links button {
    min-height: 68px;
    gap: 10px;
    padding: 12px;
  }

  .hero-quick-links button:last-child {
    grid-column: 1 / -1;
  }

  .hero-quick-links small {
    display: none;
  }

  .culture-journal-intro,
  .resource-desk-intro,
  .library-archive-intro,
  .photo-roll-intro,
  .ranking-season-intro {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .culture-journal-intro {
    padding-top: 10px;
  }

  .culture-journal-intro aside {
    min-height: 104px;
  }

  .resource-desk-intro {
    padding: 18px;
  }

  .resource-desk-intro > div {
    grid-template-columns: 44px 1fr;
  }

  .resource-desk-intro p {
    justify-self: stretch;
    max-width: none;
  }

  .quiz-entry-button {
    width: 100%;
  }

  .quiz-bank-hero,
  .quiz-course-card,
  .quiz-practice-hero,
  .quiz-progress-panel {
    grid-template-columns: 1fr;
  }

  .quiz-bank-hero aside {
    min-height: 110px;
  }

  .quiz-course-stats,
  .quiz-options {
    grid-template-columns: 1fr;
  }

  .quiz-progress-panel {
    position: static;
  }

  .quiz-back-button {
    width: 100%;
  }

  .quiz-submit-actions {
    justify-content: stretch;
  }

  .quiz-submit-actions button {
    width: 100%;
  }

  .library-archive-intro {
    grid-template-columns: 50px 1fr;
  }

  .library-archive-intro strong {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .photo-roll-intro {
    display: grid;
    align-items: start;
  }

  .photo-roll-intro > div {
    grid-template-columns: 44px 1fr;
  }

  .photo-roll-intro p {
    justify-self: start;
  }

  .ranking-season-intro {
    padding: 20px;
  }

  .ranking-season-counters {
    justify-content: flex-start;
  }

  .activity-list button,
  .activity-picker button,
  .notice-compact-list button,
  .notice-list button,
  .table-row,
  .table-row.user-row,
  .table-row.registration-row,
  .table-row.notice-row,
  .table-row.assignment-row {
    grid-template-columns: 1fr;
  }

  .export-controls,
  .user-export-controls {
    justify-content: stretch;
    max-width: none;
  }

  .export-controls select,
  .export-controls input,
  .export-controls button {
    width: 100%;
  }

  .assignment-filter-bar,
  .resource-submission-row {
    grid-template-columns: 1fr;
  }

  .assignment-status-tabs {
    justify-content: stretch;
  }

  .assignment-status-tabs button,
  .resource-submission-row button {
    width: 100%;
  }

  .ranking-controls {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .activity-list img,
  .activity-picker img {
    width: 100%;
    height: 160px;
  }

  .culture-featured-story img {
    height: 260px;
  }

  .culture-story-row {
    grid-template-columns: 42px 1fr;
  }

  .culture-story-row svg {
    display: none;
  }

  .library-shelf-head {
    display: grid;
    align-items: start;
  }

  .photo-grid article,
  .photo-grid article:nth-child(5n + 1),
  .photo-grid article:nth-child(5n + 4) {
    grid-column: auto;
    min-height: 280px;
  }

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

  .auth-actions,
  .tool-form,
  .profile-upload-form,
  .english-toolbar,
  .account-security-grid {
    grid-template-columns: 1fr;
  }

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

  .tool-disabled-panel {
    grid-template-columns: 1fr;
    padding: 24px;
  }

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

  .tool-health-pills {
    justify-content: flex-start;
    max-width: none;
  }

  .english-hero {
    padding: 22px;
  }

  .english-shelf {
    min-height: 260px;
  }

  .english-spine {
    min-height: 230px;
  }

  .english-spine strong {
    font-size: 20px;
  }
}

@media (max-width: 1100px) {
  .profile-dashboard,
  .guide-hero,
  .guide-steps,
  .guide-grid,
  .certificate-upload-panel,
  .campus-map-layout,
  .math-layout,
  .watermark-layout {
    grid-template-columns: 1fr;
  }

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

  .profile-card-wide,
  .video-watermark-card {
    grid-row: auto;
    grid-column: auto;
  }
}

@media (max-width: 720px) {
  .profile-hero {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 22px;
  }

  .profile-identity {
    align-items: flex-start;
  }

  .profile-avatar {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    font-size: 24px;
  }

  .profile-hero-actions {
    justify-items: stretch;
  }

  .profile-hero-actions span,
  .profile-hero-actions button {
    justify-content: center;
    width: 100%;
  }

  .profile-hero-meta {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .profile-nav-shell {
    grid-template-columns: 1fr;
  }

  .profile-info-list span {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .registration-card-head,
  .registration-info-grid,
  .certificate-grid,
  .profile-basic-form {
    grid-template-columns: 1fr;
  }

  .message-list article,
  .faq-list article {
    grid-template-columns: 1fr;
  }

  .guide-checklist,
  .math-controls {
    grid-template-columns: 1fr;
  }

  .campus-map-board {
    min-height: 560px;
  }

  .map-zone {
    padding: 10px;
  }

  .map-zone strong {
    font-size: 14px;
  }

  .map-zone small,
  .map-road {
    font-size: 10px;
  }
}

.workshop-original-page.workshop-home-page {
  padding-top: 84px;
}

.workshop-original-page .workshop-console-hero {
  display: grid;
  grid-template-columns: minmax(300px, 0.95fr) minmax(300px, 0.8fr) minmax(300px, 0.86fr);
  gap: clamp(22px, 3vw, 36px);
  min-height: calc(100vh - 84px);
  padding: clamp(50px, 7vh, 76px) clamp(34px, 5.8vw, 84px) 80px;
}

@media (max-width: 1180px) {
  .workshop-original-page .workshop-console-hero {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.8fr);
    align-items: start;
  }

  .workshop-original-page .workshop-entry-panel {
    grid-column: 1 / -1;
    width: min(620px, 100%);
    justify-self: center;
  }
}

@media (max-width: 760px) {
  .workshop-original-page .workshop-console-hero {
    grid-template-columns: 1fr;
    padding: 42px 20px 64px;
  }

  .workshop-console-frame {
    inset: 28px 14px 28px;
    border-radius: 20px;
  }

  .workshop-console-copy h1 {
    font-size: clamp(58px, 18vw, 86px);
  }

  .workshop-console-copy .workshop-home-actions {
    grid-template-columns: 1fr;
  }

  .study-orbit {
    min-height: 190px;
  }

  .workshop-entry-panel > .login-card,
  .workshop-welcome-card {
    padding: 26px 22px;
  }
}
