:root {
  --front-canvas: #f2f3f1;
  --front-paper: #fdfdfb;
  --front-paper-soft: #e7e9e6;
  --front-ink: #191b1a;
  --front-muted: #666b68;
  --front-red: #8c0000;
  --front-red-deep: #620000;
  --front-cinnabar: #a33a32;
  --front-cloud: #aeb2ae;
  --front-green: #3f5550;
  --front-shadow: 0 12px 34px rgba(25, 27, 26, 0.07);
  --front-shell-max: 1600px;
  --front-shell: min(var(--front-shell-max), calc(100% - 40px));
}

/* Browser 100% should match the old 125% look. No CSS zoom — it clips left/right. */
html:has(body[data-page="home"]),
html:has(body[data-page="module"]),
html:has(body[data-page="article"]),
html:has(body[data-page="submission"]) {
  font-size: 20px;
}

html:has(body[data-page="home"]),
body[data-page="home"] {
  overflow-x: clip;
}

body[data-auth-required="true"]:not([data-auth-state="ready"]) > * {
  visibility: hidden;
}

body[data-auth-required="true"]:not([data-auth-state="ready"]) .topbar,
body[data-auth-required="true"]:not([data-auth-state="ready"]) .reader-header {
  visibility: visible;
}

body[data-page="home"][data-auth-required="true"]:not([data-auth-state="ready"]) > * {
  visibility: visible;
}

body[data-page="home"] {
  --module-accent: var(--front-red);
  background: #f6f6f4;
  color: var(--front-ink);
}

body[data-page="module"],
body[data-page="submission"] {
  --module-accent: var(--front-red);
  background:
    linear-gradient(90deg, rgba(25, 27, 26, 0.025) 1px, transparent 1px) 0 0 / 86px 100%,
    var(--front-canvas);
  color: var(--front-ink);
}

body[data-page="module"][data-module="note"] {
  --module-accent: var(--front-cinnabar);
}

body[data-page="module"][data-module="qa"] {
  --module-accent: var(--front-red);
}

body[data-page="home"]::before,
body[data-page="module"]::before,
body[data-page="submission"]::before {
  display: none;
}

body[data-page="home"] .site-shell,
body[data-page="module"] .site-shell,
body[data-page="submission"] .site-shell {
  width: var(--front-shell);
}

body[data-page="home"] .topbar,
body[data-page="module"] .topbar,
body[data-page="submission"] .topbar {
  min-height: 84px;
  padding: 12px 0 10px;
  background: rgba(253, 253, 251, 0.94);
  box-shadow:
    0 1px 0 rgba(25, 27, 26, 0.07),
    0 0 0 100vmax rgba(253, 253, 251, 0.94);
  clip-path: inset(0 -100vmax);
  backdrop-filter: blur(18px);
  align-items: center;
}

body[data-page="home"] .topbar::before,
body[data-page="module"] .topbar::before,
body[data-page="submission"] .topbar::before {
  content: "";
  position: absolute;
  top: 0;
  left: calc(50% - 50vw);
  width: 100vw;
  height: 3px;
  background: linear-gradient(90deg, var(--front-red) 0 34%, var(--front-ink) 34% 42%, #c8cbc8 42% 100%);
}

body[data-page="home"] .brand,
body[data-page="module"] .brand,
body[data-page="submission"] .brand {
  gap: 0;
}

body[data-page="home"] .logo-plate,
body[data-page="module"] .logo-plate {
  width: 238px;
  height: 58px;
  padding: 0;
  border: 0;
  background: transparent;
}

body[data-page="home"] .brand-copy,
body[data-page="module"] .brand-copy {
  display: none;
}

body[data-page="home"] .topnav,
body[data-page="module"] .topnav {
  gap: 22px;
  padding: 0;
  background: transparent;
}

.site-title {
  position: static;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: auto;
  max-width: none;
  height: 78px;
  flex: 0 0 auto;
  margin: 0;
  padding-left: 0;
  border-left: 0;
  overflow: visible;
  transform: none;
  color: var(--front-ink);
  text-decoration: none;
  white-space: nowrap;
}

.versabase-copy {
  width: auto;
  max-width: none;
  display: grid;
  flex: 0 0 auto;
  justify-items: start;
  align-content: center;
  gap: 1px;
}

.site-title .versabase-cn {
  display: block;
  width: auto;
  height: 42px;
  max-width: none;
  object-fit: contain;
  object-position: left center;
  transform: none;
}

.site-title .versabase-en {
  display: block;
  width: auto;
  height: 14px;
  max-width: none;
  margin-top: 0;
  object-fit: contain;
  object-position: left center;
}

.versabase-copy small {
  display: none;
  padding-left: 1px;
  margin-top: 0;
  color: #8c0000;
  font-family: "Times New Roman", Times, Georgia, serif;
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.04em;
  transform: none;
}

.site-title .versabase-mark {
  display: block !important;
  width: auto;
  height: 50px;
  max-width: 78px;
  flex: 0 0 auto;
  margin-left: 0;
  margin: 0;
  align-self: center;
  object-fit: contain;
  object-position: center;
}

body[data-page="home"] .topnav a,
body[data-page="module"] .topnav a,
body[data-page="submission"] .topnav a {
  position: relative;
  min-height: 42px;
  padding: 0 2px;
  border-radius: 0;
  color: #4d524f;
  font-weight: 700;
}

body[data-page="home"] .topnav a::after,
body[data-page="module"] .topnav a::after,
body[data-page="submission"] .topnav a::after {
  content: "";
  position: absolute;
  right: 50%;
  bottom: 4px;
  left: 50%;
  height: 2px;
  background: var(--front-red);
  transition: right 160ms ease, left 160ms ease;
}

body[data-page="home"] .topnav a:hover,
body[data-page="home"] .topnav a.active,
body[data-page="module"] .topnav a:hover,
body[data-page="module"] .topnav a.active,
body[data-page="submission"] .topnav a:hover,
body[data-page="submission"] .topnav a.active {
  background: transparent;
  color: var(--front-red-deep);
}

body[data-page="home"] .topnav a:hover::after,
body[data-page="home"] .topnav a.active::after,
body[data-page="module"] .topnav a:hover::after,
body[data-page="module"] .topnav a.active::after,
body[data-page="submission"] .topnav a:hover::after,
body[data-page="submission"] .topnav a.active::after {
  right: 0;
  left: 0;
}

body[data-page="home"] .front-hero {
  min-height: 0;
  align-items: stretch;
  margin-top: 0;
  padding-top: 20px;
  padding-bottom: 28px;
  background: none;
}

body[data-page="module"] .module-page-hero {
  min-height: 244px;
  align-items: center;
  margin-top: 0;
  padding-top: 38px;
  padding-bottom: 34px;
  background:
    radial-gradient(ellipse at 92% 0%, rgba(174, 178, 174, 0.18), transparent 34%),
    linear-gradient(108deg, #fdfdfb 0%, #f8f9f7 66%, #eceeec 100%);
}

body[data-page="home"] .front-hero::before,
body[data-page="module"] .module-page-hero::before,
body[data-page="module"][data-module="note"] .module-page-hero::before,
body[data-page="module"][data-module="qa"] .module-page-hero::before,
body[data-page="module"][data-module="talk"] .module-page-hero::before {
  display: none;
}

body[data-page="home"] .cloud-motif-one,
body[data-page="module"] .cloud-motif-one {
  display: none;
}

body[data-page="home"] .front-hero::after {
  display: none;
}

body[data-page="module"] .module-page-hero::after {
  z-index: 0;
  right: max(-96px, calc((100vw - 1440px) / 2 - 28px));
  top: -78px;
  width: 440px;
  height: 270px;
  background: url("./assets/cloud-gray-top.png") right center / contain no-repeat;
  filter: grayscale(1) contrast(0.86);
  opacity: 0.13;
}

body[data-page="home"] .front-hero-copy,
body[data-page="module"] .module-page-hero > div {
  width: min(760px, 64vw);
}

body[data-page="module"][data-module="announcement"] .module-page-hero > .announcement-hero-copy {
  width: auto;
  max-width: 560px;
}

#increment-compose {
  display: inline-flex;
  margin-top: 16px;
}

body[data-page="home"] .notice-strip {
  gap: 0;
  margin-bottom: 19px;
  color: var(--front-muted);
}

body[data-page="home"] .notice-strip span {
  min-height: auto;
  padding: 0 13px;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  color: var(--front-muted) !important;
  font-size: 0.84rem;
  font-weight: 700;
}

body[data-page="home"] .notice-strip span:first-child {
  padding-left: 0;
  color: var(--front-red) !important;
}

body[data-page="home"] .notice-strip span + span {
  border-left: 1px solid #c9ccca;
}

body[data-page="home"] .front-hero h1,
body[data-page="module"] .module-page-hero h1 {
  max-width: 710px;
  margin-bottom: 14px;
  color: var(--front-ink);
  font-family: "Noto Serif SC", "Songti SC", STSong, Georgia, serif;
  font-weight: 800;
  text-wrap: balance;
}

body[data-page="home"] .front-hero h1 {
  font-size: 2.7rem;
  line-height: 1.28;
}

body[data-page="module"] .module-page-hero h1 {
  margin-top: 6px;
  font-size: 2.65rem;
}

body[data-page="home"] .front-hero p,
body[data-page="module"] .module-page-hero p {
  color: #555b58;
  font-size: 1.05rem;
  line-height: 1.72;
}

body[data-page="home"] .eyebrow,
body[data-page="module"] .eyebrow {
  color: var(--module-accent);
  font-size: 0.72rem;
  font-weight: 800;
}

body[data-page="home"] .module-entry-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0 28px;
}

body[data-page="home"] .module-entry {
  --entry-accent: var(--front-red);
  position: relative;
  min-height: 166px;
  justify-content: flex-start;
  gap: 7px;
  padding: 23px 24px 21px;
  border: 0;
  border-radius: 6px;
  background: var(--front-paper);
  box-shadow: var(--front-shadow);
  isolation: isolate;
}

body[data-page="home"] .module-entry::before {
  display: none;
}

body[data-page="home"] .module-entry::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -38px;
  bottom: -64px;
  width: 230px;
  height: 140px;
  background: url("./assets/cloud-gray-top.png") center / contain no-repeat;
  filter: grayscale(1);
  opacity: 0.08;
}

body[data-page="home"] .module-entry:hover {
  box-shadow: 0 18px 38px rgba(25, 27, 26, 0.11);
  transform: translateY(-3px);
}

body[data-page="home"] .module-entry span {
  color: var(--entry-accent);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}

body[data-page="home"] .module-entry strong {
  margin-top: 14px;
  color: var(--front-ink);
  font-family: "Noto Serif SC", "Songti SC", STSong, Georgia, serif;
  font-size: 1.65rem;
}

body[data-page="home"] .module-entry p {
  max-width: 82%;
  margin-top: 4px;
  color: var(--front-muted);
  font-size: 0.9rem;
}

body[data-page="home"] .module-entry svg {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 18px;
  height: 18px;
  color: #8c918e;
  transition: color 160ms ease, transform 160ms ease;
}

body[data-page="home"] .module-entry:hover svg {
  color: var(--entry-accent);
  transform: translate(2px, -2px);
}

body[data-page="home"] .home-latest,
body[data-page="module"] .module-board {
  margin-bottom: 32px;
  padding: 24px 0 0;
  background: transparent;
  box-shadow: none;
}

body[data-page="home"] .section-heading,
body[data-page="module"] .content-tools {
  padding: 0 2px;
}

body[data-page="home"] .section-heading h2,
body[data-page="module"] .section-heading h2 {
  color: var(--front-ink);
  font-family: "Noto Serif SC", "Songti SC", STSong, Georgia, serif;
}

body[data-page="home"] .section-heading a,
body[data-page="module"] .source-link,
body[data-page="module"] .read-more {
  color: var(--module-accent);
}

body[data-page="home"] .list-item {
  min-height: 112px;
  padding: 19px 22px;
  border: 0;
  border-radius: 6px;
  background: var(--front-paper);
  box-shadow: 0 7px 24px rgba(25, 27, 26, 0.05);
}

body[data-page="home"] .list-item h3,
body[data-page="module"] .content-card h3 {
  color: var(--front-ink);
}

body[data-page="home"] .list-item p,
body[data-page="module"] .content-card p {
  color: var(--front-muted);
}

body[data-page="home"] .date-badge,
body[data-page="module"] .date-badge {
  min-width: 64px;
  align-self: center;
  padding: 8px 0;
  background: transparent;
  color: var(--front-red);
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
}

body[data-page="home"] .chip,
body[data-page="module"] .chip {
  min-height: 25px;
  padding: 3px 8px;
  border: 0;
  border-radius: 4px;
  background: #f0e4e5;
  color: var(--front-red-deep);
  font-size: 0.72rem;
  font-weight: 750;
}

body[data-page="home"] .chip.teal,
body[data-page="module"] .chip.teal {
  background: #e2e9e6;
  color: var(--front-green);
}

body[data-page="home"] .chip.gold,
body[data-page="module"] .chip.gold {
  background: #eee3dc;
  color: #754435;
}

body[data-page="home"] .chip.blue,
body[data-page="module"] .chip.blue {
  background: #e3e7ea;
  color: #46545d;
}

body[data-page="home"] .chip.muted,
body[data-page="module"] .chip.muted {
  background: #e7e9e6;
  color: #5e6461;
}

body[data-page="module"] .module-board {
  margin-top: 0;
}

body[data-page="module"] .control-panel {
  align-items: end;
  margin: 0 0 14px;
  padding: 17px 18px;
  border-radius: 6px;
  background: var(--front-paper-soft);
}

body[data-page="module"] .control-panel-single {
  grid-template-columns: minmax(0, 1fr);
}

body[data-page="module"] .announcement-tabs {
  min-width: 292px;
}

body[data-page="module"] .search-line label,
body[data-page="module"] .course-filters label {
  color: #535956;
}

body[data-page="module"] input,
body[data-page="module"] select {
  border: 0;
  border-radius: 5px;
  background: var(--front-paper);
  box-shadow: none;
}

body[data-page="module"] input:focus,
body[data-page="module"] select:focus {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--module-accent) 15%, transparent);
}

body[data-page="module"] .segmented {
  border: 0;
  border-radius: 5px;
  background: #daddda;
}

body[data-page="module"] .segmented button {
  border-radius: 4px;
}

body[data-page="module"] .segmented button.active {
  background: var(--front-paper);
  color: var(--module-accent);
  box-shadow: 0 3px 10px rgba(25, 27, 26, 0.08);
}

body[data-page="module"] .course-filters {
  margin: 0 0 15px;
  padding: 14px 18px;
  border-radius: 6px;
  background: rgba(231, 233, 230, 0.68);
}

body[data-page="module"] .course-filters select {
  background: var(--front-paper);
}

body[data-page="module"] .content-tools {
  margin: 18px 0 12px;
}

.collection-filter-bar {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 17px;
  margin: 2px 0 18px;
  padding: 0 0 12px;
  overflow-x: auto;
  border-bottom: 1px solid rgba(25, 27, 26, 0.09);
  scrollbar-width: thin;
}

.collection-filter-label {
  flex: 0 0 auto;
  color: #929792;
  font-size: 0.72rem;
  font-weight: 700;
}

.collection-filter-bar button,
.collection-filter-bar a {
  position: relative;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 4px 0 7px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #666d68;
  font-size: 0.78rem;
  text-decoration: none;
  white-space: nowrap;
}

.collection-filter-bar button::after,
.collection-filter-bar a::after {
  content: "";
  position: absolute;
  right: 50%;
  bottom: 0;
  left: 50%;
  height: 2px;
  background: var(--module-accent);
  transition: left 150ms ease, right 150ms ease;
}

.collection-filter-bar button:hover,
.collection-filter-bar button.active,
.collection-filter-bar a:hover,
.collection-filter-bar a.active {
  color: var(--module-accent);
}

.collection-filter-bar button.active::after,
.collection-filter-bar a.active::after {
  right: 0;
  left: 0;
}

.collection-filter-bar button small,
.collection-filter-bar a small {
  color: #a0a5a0;
  font-size: 0.62rem;
}

body[data-page="module"] .content-tools p,
body[data-page="module"] .content-tools select {
  color: var(--front-muted);
}

.meta-line {
  align-items: center;
  gap: 6px;
}

.topic-chip,
.verification-chip,
.reader-detail {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border: 0;
  border-radius: 3px;
  background: #eceeeb;
  color: #5e6661;
  font-size: 0.72rem;
  font-weight: 650;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
}

.reader-detail::before {
  content: "·";
  margin: 0 7px;
  color: #b0b4b0;
  font-weight: 400;
}

.topic-chip:hover,
.topic-chip:focus-visible {
  color: var(--module-accent, var(--front-red));
  background: #f1e4e4;
  text-decoration: none;
}

.verification-chip {
  color: #879087;
  font-weight: 500;
}

body[data-page="module"] .card-grid {
  gap: 16px;
}

body[data-page="module"] .content-card {
  position: relative;
  min-height: 218px;
  padding: 21px 22px;
  border: 0;
  border-radius: 6px;
  background: var(--front-paper);
  box-shadow: var(--front-shadow);
  overflow: hidden;
}

body[data-page="module"] .content-card::before {
  width: 46px;
  height: 4px;
  margin-bottom: 15px;
  border-radius: 0;
  background: var(--module-accent);
}

body[data-page="module"] .content-card::after {
  content: "";
  position: absolute;
  top: -38px;
  right: -72px;
  width: 240px;
  height: 145px;
  background: url("./assets/cloud-gray-top.png") center / contain no-repeat;
  filter: grayscale(1);
  opacity: 0.055;
  pointer-events: none;
}

body[data-page="module"] .qa-card::before {
  display: none;
}

body[data-page="module"] .qa-card {
  min-height: 204px;
}

.qa-card-heading {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.qa-heading-copy {
  min-width: 0;
}

.qa-program {
  width: auto;
  min-width: 50px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  padding: 0 9px;
  border-radius: 3px;
  color: #fff;
  font-family: "Noto Serif SC", "Songti SC", STSong, Georgia, serif;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 3px 8px rgba(98, 0, 0, 0.1);
}

.qa-program-external {
  background: #8c0000;
}

.qa-program-internal {
  background: #620000;
}

.qa-program-both {
  background: var(--front-ink);
}

.qa-keywords {
  margin: 9px 0 0;
}

body[data-page="module"] .qa-keywords .chip.gold {
  background: #f2e5e3;
  color: #7c2020;
}

.qa-card > .card-top > .card-excerpt {
  margin-top: 3px;
}

body[data-page="module"] .content-card .card-footer {
  margin-top: auto;
  padding-top: 18px;
  border: 0;
}

body[data-page="module"] .content-card .card-footer small {
  color: #777d79;
}

body[data-page="module"] .submission-entry {
  border-radius: 5px;
  background: var(--front-red);
  box-shadow: 0 7px 18px rgba(101, 0, 14, 0.18);
}

body[data-page="module"] .submission-entry:hover {
  background: var(--front-red-deep);
}

body[data-page="home"] .empty-state,
body[data-page="module"] .empty-state {
  border: 0;
  border-radius: 6px;
  background: var(--front-paper);
  box-shadow: inset 0 0 0 1px rgba(25, 27, 26, 0.04);
}

.reader-body {
  color: var(--front-ink);
  background:
    linear-gradient(90deg, rgba(25, 27, 26, 0.025) 1px, transparent 1px) 0 0 / 86px 100%,
    var(--front-canvas);
}

.reader-header {
  position: relative;
  z-index: 2000;
  overflow: visible;
  max-width: none;
  min-height: 84px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px max(24px, calc((100vw - var(--front-shell-max, 1600px)) / 2));
  background: rgba(253, 253, 251, 0.94);
  box-shadow: 0 1px 0 rgba(25, 27, 26, 0.07);
}

.reader-title-row {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 22px;
}

.reader-title-row .reader-title {
  margin: 0;
}

.reader-title-row .qa-program {
  min-width: 58px;
  height: 32px;
  padding: 0 11px;
  font-size: 0.82rem;
}

.reader-brand {
  width: 238px;
  height: 58px;
  flex: 0 0 238px;
  display: inline-flex;
  align-items: center;
}

.reader-brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
}

.reader-header nav {
  overflow: visible;
  color: #4d524f;
  font-size: 0.9rem;
  font-weight: 700;
}

.reader-header nav a:hover,
.reader-back,
.reader-source a,
.reader-attachment a {
  color: var(--front-red);
}

.reader-main {
  width: min(1025px, calc(100% - 48px));
  margin-top: 44px;
}

.reader-main.qa-reader-main {
  width: min(1400px, calc(100% - 48px));
}

.qa-reader-main .reader-content {
  padding-top: 20px;
  font-size: max(17px, var(--article-size));
}

.qa-reader-main .reader-title {
  font-size: 34px;
}

.reader-meta {
  color: #737a76;
}

.reader-meta .topic-chip,
.reader-meta .verification-chip,
.reader-meta .reader-detail {
  min-height: 26px;
  padding: 3px 8px;
  border-radius: 3px;
}

.reader-meta .reader-detail {
  padding-right: 0;
  padding-left: 0;
  background: transparent;
}

.reader-title {
  color: var(--front-red-deep);
  font-family: "Noto Serif SC", "Songti SC", STSong, Georgia, serif;
  font-weight: 800;
}

@media (max-width: 920px) {
  body[data-page="home"] .module-entry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-page="home"] .brand,
  body[data-page="module"] .brand,
  body[data-page="submission"] .brand,
  .reader-brand {
    display: none;
  }

  .site-title {
    display: inline-flex;
    width: auto;
    max-width: calc(100vw - 28px);
    height: auto;
    min-height: 52px;
    flex: 0 0 auto;
    flex-basis: auto;
    margin: 0;
    padding-left: 0;
    gap: 8px;
    order: -1;
    overflow: visible;
    align-items: center;
  }

  .versabase-copy {
    width: auto;
    max-width: min(220px, calc(100vw - 100px));
    flex: 0 1 auto;
    flex-basis: auto;
    gap: 1px;
  }

  .site-title .versabase-cn {
    width: auto;
    max-width: min(220px, calc(100vw - 100px));
    height: 36px;
    transform: none;
    object-fit: contain;
    object-position: left center;
  }

  .site-title .versabase-en {
    width: auto;
    max-width: min(168px, calc(100vw - 140px));
    height: 12px;
  }

  .versabase-copy small {
    display: none;
    font-size: 0.6rem;
    transform: none;
    margin-top: 1px;
  }

  .site-title .versabase-mark {
    display: block !important;
    width: auto;
    height: 42px;
    max-width: 66px;
    flex: 0 0 auto;
    margin: 0;
    align-self: center;
  }

  body[data-page="home"] .front-hero-copy,
  body[data-page="module"] .module-page-hero > div {
    width: min(650px, 70vw);
  }
  body[data-page="module"][data-module="announcement"] .module-page-hero > .announcement-hero-copy {
    width: 100%;
    max-width: none;
  }

  body[data-page="home"] .front-hero::before,
  body[data-page="module"] .module-page-hero::before {
    display: none;
  }

  body[data-page="home"] .front-hero::after {
    display: none;
  }
  body[data-page="module"] .module-page-hero::after {
    right: -100px;
    top: -70px;
    width: 390px;
    opacity: 0.11;
  }
}

@media (max-width: 760px) {
  body[data-page="home"] .site-shell,
  body[data-page="module"] .site-shell {
    width: min(100% - 24px, var(--front-shell-max));
  }

  body[data-page="home"] .topbar,
  body[data-page="module"] .topbar,
  body[data-page="submission"] .topbar {
    min-height: 0;
    height: auto;
    gap: 4px;
    padding: 8px 0 4px;
    justify-content: flex-start;
    align-items: center;
  }

  body[data-page="home"] .brand,
  body[data-page="module"] .brand {
    display: none;
  }

  .site-title {
    width: auto;
    max-width: 100%;
    height: auto;
    min-height: 52px;
    align-self: center;
    align-items: center;
    gap: 6px;
  }

  .versabase-copy {
    width: auto;
    max-width: min(200px, calc(100vw - 96px));
    gap: 1px;
    align-content: center;
  }

  .site-title .versabase-cn {
    width: auto;
    max-width: min(200px, calc(100vw - 96px));
    height: 32px;
    margin: 0;
    object-fit: contain;
    object-position: left center;
  }

  .site-title .versabase-en {
    width: auto;
    max-width: min(150px, calc(100vw - 120px));
    height: 11px;
  }

  .versabase-copy small {
    display: none;
    font-size: 0.6rem;
    line-height: 1;
    margin-top: 1px;
  }

  .site-title .versabase-mark {
    display: block !important;
    width: auto;
    height: 40px;
    max-width: 62px;
    flex: 0 0 auto;
    margin: 0;
    align-self: center;
  }

  body[data-page="home"] .topnav,
  body[data-page="module"] .topnav {
    width: 100%;
    justify-content: flex-start;
    gap: 18px;
    overflow: visible;
    min-height: 0;
    padding: 0;
  }

  body[data-page="home"] .topnav a,
  body[data-page="module"] .topnav a {
    min-height: 28px;
  }

  body[data-page="home"] .front-hero,
  body[data-page="module"] .module-page-hero {
    min-height: 236px;
    padding: 28px 18px 25px;
    background: linear-gradient(135deg, rgba(253, 253, 251, 0.98), rgba(231, 233, 230, 0.94));
  }

  body[data-page="home"] .front-hero-copy,
  body[data-page="module"] .module-page-hero > div {
    width: 100%;
  }

  body[data-page="home"] .front-hero::before,
  body[data-page="module"] .module-page-hero::before {
    display: block;
    top: auto;
    bottom: 0;
    width: 38%;
    height: 5px;
    background: var(--module-accent);
  }

  body[data-page="home"] .front-hero::after {
    display: none;
  }
  body[data-page="module"] .module-page-hero::after {
    right: -68px;
    top: -18px;
    width: 220px;
    height: 132px;
    background-image: url("./assets/cloud-gray-top.png");
    opacity: 0.1;
  }

  body[data-page="home"] .front-hero h1 {
    font-size: 2.05rem;
  }

  body[data-page="module"] .module-page-hero h1 {
    font-size: 2.2rem;
  }

  body[data-page="home"] .notice-strip {
    row-gap: 8px;
  }

  body[data-page="home"] .notice-strip span {
    padding: 0 9px;
    font-size: 0.7rem;
  }

  body[data-page="home"] .notice-strip span:first-child {
    padding-left: 0;
  }

  body[data-page="home"] .module-entry-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 14px 0 24px;
  }

  body[data-page="home"] .module-entry {
    min-height: 126px;
    padding: 18px 20px;
  }

  body[data-page="home"] .module-entry strong {
    margin-top: 6px;
    font-size: 1.4rem;
  }

  body[data-page="home"] .module-entry p {
    margin-bottom: 0;
  }

  body[data-page="home"] .section-heading {
    flex-direction: row;
    align-items: flex-end;
  }

  body[data-page="home"] .list-item {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    min-height: 0;
    padding: 17px 18px;
  }

  body[data-page="home"] .list-item > div {
    min-width: 0;
  }

  body[data-page="home"] .list-item .excerpt-summary {
    -webkit-line-clamp: 2;
  }

  body[data-page="home"] .list-item .date-badge {
    align-self: start;
    min-width: 48px;
    padding: 2px 0 0 8px;
  }

  body[data-page="home"] .home-latest,
  body[data-page="module"] .module-board {
    padding-top: 18px;
  }

  body[data-page="module"] .control-panel,
  body[data-page="module"] .course-filters {
    padding: 14px;
  }

  body[data-page="module"] .search-line {
    text-align: left;
  }

  body[data-page="module"] .content-card {
    padding: 19px;
  }
  body[data-page="module"] .content-card.note-tile {
    padding: 0;
    background: transparent;
    box-shadow: none;
  }

  .notes-title-row {
    gap: 14px;
  }

  .submission-entry {
    padding: 9px 11px;
  }

  .reader-header {
    min-height: 0;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 6px;
    padding: 8px 16px 4px;
  }

  .reader-brand img {
    width: 100%;
  }

  .reader-brand { display: none; }

  .reader-header nav {
    width: 100%;
    justify-content: center;
  }

  .reader-main {
    margin-top: 26px;
  }
}

/* Single-screen student workspace */
body[data-page="home"] .site-shell {
  width: var(--front-shell);
}

body[data-page="home"] main#top {
  min-height: 0;
}

body[data-page="home"] .front-hero {
  grid-template-columns: minmax(360px, 0.68fr) minmax(0, 1.32fr);
  gap: 12px;
  min-height: 0;
  align-items: start;
  padding: 24px 0 18px;
}

body[data-page="home"] .front-hero-copy {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

body[data-page="home"] .front-hero h1 {
  max-width: 18em;
  font-size: 2.7rem;
  line-height: 1.28;
}

body[data-page="home"] .hero-live-time {
  margin: 10px 0 6px;
  padding: 32px 0 30px;
}

body[data-page="home"] .hero-live-time strong {
  font-size: 3.35rem;
}

body[data-page="home"] .front-hero-copy .module-entry-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
  margin: 22px 0 0;
}

body[data-page="home"] .home-schedule {
  max-height: none;
}

@media (max-width: 1360px) {
  body[data-page="home"] .front-hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  body[data-page="home"] .home-schedule { width: 100%; max-height: none; }
}

@media (max-width: 620px) {
  body[data-page="home"] .front-hero-copy .module-entry-grid { grid-template-columns: 1fr; }
}

/* Home schedule workspace */
body[data-page="home"] .topbar,
body[data-page="module"] .topbar {
  z-index: 2000;
  overflow: visible;
}

body[data-page="home"] .topnav,
body[data-page="module"] .topnav {
  overflow: visible;
}

.reader-header {
  gap: 14px;
}

@media (min-width: 761px) {
  body[data-page="home"] .topbar,
  body[data-page="module"] .topbar {
    gap: 14px;
    align-items: center;
  }

  body[data-page="home"] .logo-plate,
  body[data-page="module"] .logo-plate {
    width: 200px;
    height: 58px;
    padding: 0;
  }

  .reader-brand {
    width: 200px;
    height: 58px;
    flex-basis: 200px;
  }

  .site-title {
    width: auto;
    max-width: none;
    height: 78px;
    flex: 0 0 auto;
    gap: 8px;
    margin-left: 0;
    padding-left: 10px;
    overflow: visible;
    align-items: center;
  }

  .versabase-copy {
    width: auto;
    flex-basis: auto;
    gap: 1px;
  }

  .site-title .versabase-cn {
    width: auto;
    height: 42px;
    transform: none;
    object-fit: contain;
    object-position: left center;
  }

  .site-title .versabase-en {
    width: auto;
    height: 14px;
  }

  .versabase-copy small {
    display: none;
    color: #8c0000;
    font-size: 0.7rem;
    margin-top: 0;
    transform: none;
  }

  .site-title .versabase-mark {
    display: block !important;
    width: auto;
    height: 50px;
    max-width: 78px;
    flex: 0 0 auto;
    margin: 0;
    align-self: center;
  }
}

body[data-page="home"] .front-hero {
  display: grid;
  grid-template-columns: minmax(360px, 0.68fr) minmax(0, 1.32fr);
  gap: 12px;
  min-height: 0;
  align-items: start;
  padding-top: 24px;
  padding-bottom: 18px;
}

body[data-page="home"] .front-hero-copy {
  width: auto;
  align-self: stretch;
}

.home-schedule {
  position: relative;
  z-index: 2;
  min-width: 0;
  align-self: stretch;
  display: grid;
  grid-template-rows: auto auto auto minmax(120px, 1fr) auto;
  height: auto;
  overflow: visible;
  padding: 20px 22px 18px;
  border: 1px solid #e1e4e0;
  border-radius: 6px;
  background: rgba(255, 255, 253, 0.96);
  box-shadow: 0 16px 42px rgba(28, 32, 29, 0.1);
}

.hero-live-time {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 18px;
  margin: 8px 0 4px;
  padding: 28px 0 26px;
  border-top: 1px solid #dfe2de;
}

.hero-live-time strong {
  color: var(--front-red-deep);
  font: 700 3.25rem/1 "Noto Serif SC", "Source Serif 4", "Songti SC", "Times New Roman", Georgia, serif;
  font-variant-numeric: tabular-nums lining-nums;
  letter-spacing: 0.04em;
}

.hero-live-time span {
  color: #5f6662;
  font-family: "Noto Serif SC", "Songti SC", STSong, Georgia, serif;
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.schedule-head,
.schedule-day-heading,
.schedule-diary,
.schedule-entry,
.schedule-date-nav,
.schedule-form-grid {
  display: flex;
  align-items: center;
}

.schedule-head {
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 13px;
  border-bottom: 1px solid #e7e9e6;
}

.schedule-head > div:first-child {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.schedule-panel-title {
  display: grid !important;
  gap: 3px !important;
}

.schedule-panel-title strong {
  color: #252b27;
  font: 800 1.2rem/1.2 "Noto Serif SC", "Songti SC", serif;
}

.schedule-head span {
  color: #646b67;
  font-size: 0.82rem;
  font-weight: 700;
}

.schedule-head strong {
  color: #1e2420;
  font: 700 1.34rem/1 Arial, sans-serif;
  font-variant-numeric: tabular-nums;
}

.schedule-actions {
  display: flex;
  gap: 6px;
}

.schedule-actions button,
.schedule-date-nav > button,
.schedule-entry-actions button,
.schedule-dialog header button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid #e0e3df;
  border-radius: 5px;
  background: #f8f9f7;
  color: #555d58;
  cursor: pointer;
}

.schedule-actions button:last-child {
  border-color: var(--front-red);
  background: var(--front-red);
  color: #fff;
}

.schedule-actions .schedule-history,
.schedule-actions .schedule-notes {
  width: auto;
  padding: 0 8px;
  gap: 6px;
  grid-auto-flow: column;
  color: #616965;
  font-size: 0.66rem;
  font-weight: 700;
}

.schedule-actions .schedule-notes {
  border-color: #ddcfcc;
  background: #fbf6f5;
  color: #7f1d16;
}

.schedule-actions svg,
.schedule-date-nav > button svg,
.schedule-entry-actions svg,
.schedule-dialog header button svg {
  width: 16px;
  height: 16px;
}

.schedule-date-nav {
  align-items: stretch;
  gap: 6px;
  padding: 12px 0 10px;
}

.schedule-date-nav > button {
  position: relative;
  z-index: 2;
  flex: 0 0 36px;
  width: 36px;
  min-width: 36px;
  height: auto;
  min-height: 4.35rem;
  border: 1px solid #e4e7e3;
  background: #f8f9f7;
}

.schedule-days {
  min-width: 0;
  flex: 1;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.schedule-days button {
  position: relative;
  min-width: 0;
  min-height: 4.35rem;
  height: auto;
  display: grid;
  justify-items: center;
  align-content: center;
  grid-template-rows: auto auto 1.2em;
  gap: 4px;
  padding: 8px 4px 9px;
  border: 0;
  border-radius: 7px;
  background: #f3f4f1;
  color: #5f6662;
  cursor: pointer;
}

.schedule-days button:hover {
  background: #f1f3f0;
}

.schedule-days button.holiday:not(.active) {
  background: #f7f1e6;
  color: #6a5340;
}

.schedule-days button.makeup:not(.active) {
  background: #eef5f0;
  color: #3f5550;
}

.schedule-days button.active {
  background: #8c0000;
  color: #fff;
}

.schedule-days button[aria-current="date"]:not(.active) {
  box-shadow: inset 0 -2px 0 #8c0000;
}

.schedule-days span {
  color: inherit;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  opacity: 0.72;
}

.schedule-days strong {
  font: 750 1.2rem/1 Arial, sans-serif;
  font-variant-numeric: tabular-nums;
}

.schedule-days em {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  color: transparent;
  font: 650 0.64rem/1.2 "Noto Serif SC", "Songti SC", serif;
  font-style: normal;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.schedule-days button.has-term em,
.schedule-days button.holiday em,
.schedule-days button.makeup em {
  color: #7a6550;
}

.schedule-days button.active span {
  opacity: 0.84;
}

.schedule-days button.active em {
  color: #f3d2c4;
}

.schedule-days small {
  position: absolute;
  top: 5px;
  right: 5px;
  min-width: 14px;
  height: 14px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #d9dfda;
  color: #555c57;
  font-size: 0.5rem;
  font-weight: 700;
}

.schedule-days button.active small {
  background: #fff;
  color: #8c0000;
}

.schedule-days button.has-class::after {
  content: "";
  position: absolute;
  bottom: 5px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #8c0000;
}

.schedule-days button.active.has-class::after {
  background: #fff;
}

.schedule-day-heading {
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-top: 2px;
  padding: 10px 0 8px;
  border-top: 1px solid #eceeea;
}

.schedule-day-heading > div {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
}

.schedule-day-heading > div > span:first-child {
  width: 100%;
  color: #8c0000;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.schedule-day-heading strong {
  color: #1f2522;
  font: 800 1.14rem/1.3 "Noto Serif SC", "Songti SC", serif;
}

.schedule-day-heading [data-schedule-cal-toggle] {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  flex: 0 0 30px;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #555d58;
  cursor: pointer;
}

.schedule-day-heading [data-schedule-cal-toggle][aria-expanded="true"] {
  background: #f7f0e6;
  color: #8c0000;
}

.schedule-day-heading [data-schedule-cal-toggle] svg {
  width: 18px;
  height: 18px;
}

.schedule-life-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  align-content: flex-start;
  gap: 8px;
  margin: 0;
  min-height: 0;
  flex: 0 0 auto;
}
.schedule-life-chips[hidden] { display: none; }
.life-chip {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  align-self: flex-start;
  gap: 6px;
  width: 5.1em;
  min-width: 78px;
  max-width: 5.6em;
  height: auto;
  min-height: 0;
  padding: 11px 8px 10px;
  border: 1px solid #ead9d4;
  border-radius: 8px;
  background: #fffaf8;
  color: #5c4036;
  font: inherit;
  text-align: center;
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease, transform 140ms ease;
}
.life-chip:hover {
  border-color: #d7b4ac;
  background: #fff4ef;
  transform: translateY(-1px);
}
.life-chip.is-pinned {
  box-shadow: inset 0 3px 0 #8c0000;
}
.life-chip svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  color: #8c0000;
}
.life-chip-days {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 1px;
  color: #8a6558;
  font-style: normal;
  line-height: 1;
}
.life-chip-num {
  color: #6a3d32;
  font-family: "Noto Serif SC", "Source Serif 4", "Songti SC", "Times New Roman", Georgia, serif;
  font-size: 1.55rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums lining-nums;
  letter-spacing: -0.02em;
  line-height: 0.95;
}
.life-chip-prefix,
.life-chip-unit {
  color: #9a6f60;
  font-family: "Noto Serif SC", "Songti SC", STSong, Georgia, serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
}
.life-chip-prefix {
  margin-right: 1px;
  font-size: 0.68rem;
}
.life-chip-label {
  color: #2f2723;
  font-family: "Noto Serif SC", "Songti SC", STSong, Georgia, serif;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.02em;
  word-break: break-all;
}
.life-chip.tone-today,
.life-chip.tone-soon {
  border-color: #e2b6ae;
  background: linear-gradient(180deg, #fff7f4, #ffefea);
}
.life-chip.tone-overdue {
  border-color: #d8c3bf;
  background: #f4eeec;
  color: #7a5550;
}
.life-chip.tone-countup {
  border-color: #e6d3c0;
  background: linear-gradient(180deg, #fffaf3, #fff4e8);
}
.life-chip.tone-countup svg { color: #b06b45; }
.life-chip.tone-countup .life-chip-num { color: #a45d38; }
.life-chip.tone-countup .life-chip-prefix,
.life-chip.tone-countup .life-chip-unit { color: #b07a55; }
.life-chip.tone-memo {
  border-color: #e4d7c4;
  background: #fbf7f0;
}
.life-chip.tone-memo svg { color: #9a7340; }
.life-chip.tone-memo .life-chip-num { color: #8a6436; }
.life-chip.tone-memo .life-chip-prefix,
.life-chip.tone-memo .life-chip-unit { color: #9a7340; }

.life-mark-kinds {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 0 0 14px;
}
.life-mark-kinds button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 8px;
  border: 1px solid #e4ddd6;
  border-radius: 6px;
  background: #faf8f5;
  color: #5c5852;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.life-mark-kinds button svg { width: 15px; height: 15px; }
.life-mark-kinds button[aria-pressed="true"] {
  border-color: #ead4d1;
  background: #f7eeec;
  color: #8c0000;
}
.life-mark-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.life-mark-icons button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid #e6e2db;
  border-radius: 6px;
  background: #fff;
  color: #6d6760;
  cursor: pointer;
}
.life-mark-icons button svg { width: 16px; height: 16px; }
.life-mark-icons button[aria-pressed="true"] {
  border-color: #ead4d1;
  background: #f7eeec;
  color: #8c0000;
}
.life-mark-pin {
  display: block !important;
  position: relative;
  cursor: pointer;
  user-select: none;
}
.life-mark-pin > input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  border: 0;
  pointer-events: none;
}
.life-mark-pin-ui {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid #e6e2db;
  border-radius: 6px;
  background: #faf8f5;
  color: #5c5852;
  transition: border-color 140ms ease, background 140ms ease, color 140ms ease;
}
.life-mark-pin-ui > svg,
.life-mark-pin-ui > i {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: #9a7340;
}
.life-mark-pin-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.life-mark-pin-copy strong {
  color: inherit;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.2;
}
.life-mark-pin-copy small {
  color: #8a8378;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.25;
}
.life-mark-pin:hover .life-mark-pin-ui {
  border-color: #d7b4ac;
  background: #fff4ef;
}
.life-mark-pin > input:focus-visible + .life-mark-pin-ui {
  outline: 2px solid #a54b4344;
  outline-offset: 2px;
}
.life-mark-pin > input:checked + .life-mark-pin-ui {
  border-color: #ead4d1;
  background: #f7eeec;
  color: #8c0000;
}
.life-mark-pin > input:checked + .life-mark-pin-ui > svg,
.life-mark-pin > input:checked + .life-mark-pin-ui > i {
  color: #8c0000;
}
.life-mark-pin > input:checked + .life-mark-pin-ui .life-mark-pin-copy small {
  color: #a56a62;
}
.life-mark-dialog footer .danger {
  margin-right: auto;
  border: 0;
  background: transparent;
  color: #8c0000;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.schedule-month-grid button.has-memo span {
  color: #9a7340;
  font-weight: 700;
}

.schedule-day-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  padding-right: 2px;
}
.schedule-agenda {
  display: grid;
  align-content: start;
  gap: 6px;
  min-height: 0;
  max-height: none;
  flex: 0 0 auto;
  padding: 0 0 2px;
  overflow: visible;
}

.schedule-entry {
  position: relative;
  align-items: center;
  gap: 12px;
  min-height: 0;
  padding: 8px 10px 8px 12px;
  border: 1px solid #e6e9e4;
  border-radius: 6px;
  background: #fbfcf9;
}

.schedule-entry > time {
  width: 52px;
  flex: 0 0 52px;
  padding-right: 10px;
  border-right: 2px solid #ead9d6;
  color: #8c0000;
  font: 750 0.78rem/1.15 Arial, sans-serif;
  font-variant-numeric: tabular-nums;
}

.schedule-entry > time span {
  display: block;
  margin-top: 2px;
  color: #8a918c;
  font-size: 0.68rem;
  font-weight: 650;
}

.schedule-entry > div:nth-child(2) {
  min-width: 0;
  flex: 1;
  padding-top: 0;
}

.schedule-entry strong,
.schedule-entry small,
.schedule-entry p {
  display: block;
}

.schedule-entry strong {
  color: #232824;
  font-size: 0.88rem;
  font-weight: 750;
  line-height: 1.25;
}

.schedule-entry small {
  margin-top: 2px;
  color: #5f6862;
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.3;
}

.schedule-entry small svg {
  width: 13px;
  height: 13px;
  margin-right: 5px;
  vertical-align: -2px;
}

.schedule-entry p {
  margin: 2px 0 0;
  color: #7d847f;
  font-size: 0.68rem;
  line-height: 1.4;
}

.schedule-entry-actions {
  display: flex;
  align-items: center;
  gap: 3px;
}

.schedule-entry-actions .schedule-entry-tool {
  opacity: 0;
  transition: opacity 140ms ease;
}

.schedule-entry:hover .schedule-entry-tool,
.schedule-entry:focus-within .schedule-entry-tool {
  opacity: 1;
}

.schedule-entry-actions button {
  width: 26px;
  height: 26px;
  border: 0;
  background: transparent;
}

.schedule-entry-actions .schedule-note-start {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid #dfc5c1;
  border-radius: 4px;
  background: #fbf4f3;
  color: #8c0000;
  text-decoration: none;
}

.schedule-entry-actions .schedule-note-start:hover {
  border-color: #8c0000;
  background: #8c0000;
  color: #fff;
}

.schedule-entry-actions .schedule-note-start svg {
  width: 16px;
  height: 16px;
}

.schedule-empty {
  min-height: 88px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  padding: 22px 16px;
  border: 1px dashed #d7dcd7;
  border-radius: 7px;
  background: #f7f8f5;
  color: #6d746f;
  text-align: center;
}

.schedule-empty svg {
  width: 22px;
  height: 22px;
  margin-bottom: 2px;
  color: #8c0000;
}

.schedule-empty strong {
  color: #2a302c;
  font-size: 0.95rem;
  font-weight: 750;
}

.schedule-empty span {
  max-width: 16em;
  color: #7a817c;
  font-size: 0.78rem;
  line-height: 1.55;
}

.schedule-empty button {
  margin-top: 6px;
  padding: 6px 12px;
  border: 1px solid #ddc4c0;
  border-radius: 4px;
  background: #fff;
  color: #8c0000;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 750;
  cursor: pointer;
}

.schedule-empty button:hover {
  border-color: #8c0000;
  background: #8c0000;
  color: #fff;
}

.schedule-diary {
  display: grid;
  align-items: stretch;
  gap: 6px;
  margin-top: 2px;
  padding-top: 10px;
  border-top: 1px solid #e7e9e6;
}

.schedule-diary-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.schedule-diary label {
  flex: 0 0 auto;
  color: #3f4541;
  font-size: 0.78rem;
  font-weight: 800;
}

.schedule-diary-head small,
.schedule-diary-hint {
  color: #8a908b;
  font-size: 0.66rem;
  font-weight: 600;
}

.schedule-diary textarea {
  min-width: 0;
  min-height: 56px;
  width: 100%;
  resize: vertical;
  padding: 10px 11px;
  border: 1px solid #e2e5e1;
  border-radius: 4px;
  background: #f8f9f7;
  color: #383e3a;
  font: inherit;
  font-size: 0.8rem;
  line-height: 1.55;
}

.schedule-diary textarea:focus {
  outline: 2px solid rgba(140, 0, 0, 0.16);
  border-color: #c9a3a0;
  background: #fff;
}

.schedule-diary-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.schedule-diary-status {
  color: #7a817c;
  font-size: 0.66rem;
}

.schedule-diary button {
  width: auto;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  border: 0;
  border-radius: 4px;
  background: #8c0000;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 750;
  cursor: pointer;
}

.schedule-diary button:disabled {
  opacity: 0.55;
  cursor: wait;
}

.schedule-diary button svg {
  width: 14px;
  height: 14px;
}

.schedule-diary button span {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
}

.schedule-dialog {
  width: min(560px, calc(100% - 28px));
  max-width: none;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: #fff;
  color: #292e2b;
  box-shadow: 0 28px 80px rgba(17, 20, 18, 0.24);
}

.schedule-dialog::backdrop {
  background: rgba(27, 31, 28, 0.54);
  backdrop-filter: blur(3px);
}

.schedule-dialog form {
  padding: 24px 26px 22px;
}

.schedule-history-shell {
  padding: 24px 26px 22px;
}

.schedule-history-dialog,
.schedule-notes-dialog {
  width: min(720px, calc(100% - 28px));
}

.schedule-dialog header,
.schedule-dialog footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.schedule-dialog header {
  padding-bottom: 17px;
  border-bottom: 1px solid #e8eae7;
}

.schedule-dialog header span {
  color: #8c0000;
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
}

.schedule-dialog h2 {
  margin: 4px 0 0;
  font: 800 1.5rem/1.25 "Noto Serif SC", "Songti SC", serif;
}

.schedule-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
  margin-top: 20px;
}

.schedule-dialog label {
  display: grid;
  gap: 6px;
  color: #656d68;
  font-size: 0.72rem;
  font-weight: 700;
}

.schedule-dialog label.wide {
  grid-column: 1 / -1;
}

.schedule-dialog input,
.schedule-dialog textarea {
  width: 100%;
  padding: 10px 11px;
  border: 1px solid #dfe3de;
  border-radius: 4px;
  background: #fafbf9;
  color: #252b27;
  font: inherit;
  font-size: 0.82rem;
}

.schedule-dialog textarea {
  resize: vertical;
  line-height: 1.65;
}

.schedule-dialog-status {
  min-height: 20px;
  margin: 13px 0 0;
  color: #68716b;
  font-size: 0.72rem;
}

.schedule-dialog-status[data-state="error"],
.schedule-import-preview[data-state="error"] {
  color: #9b1c12;
}

.schedule-dialog footer {
  justify-content: flex-end;
  padding-top: 16px;
  border-top: 1px solid #eceeeb;
}
.life-mark-dialog footer .danger {
  margin-right: auto;
  border-color: transparent;
  background: transparent;
  color: #8c0000;
}

.schedule-dialog footer button {
  min-height: 38px;
  padding: 8px 15px;
  border: 1px solid #dfe2de;
  border-radius: 4px;
  background: #f7f8f6;
  color: #505753;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.schedule-dialog footer .primary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-color: #8c0000;
  background: #8c0000;
  color: #fff;
}

.schedule-dialog footer svg {
  width: 15px;
  height: 15px;
}

.import-guide {
  margin: 18px 0 9px;
  color: #69716c;
  font-size: 0.78rem;
  line-height: 1.7;
}

.import-dialog code {
  display: block;
  margin-bottom: 16px;
  padding: 10px 12px;
  border-left: 3px solid #8c0000;
  background: #f4f5f2;
  color: #4f5752;
  font-size: 0.68rem;
  line-height: 1.75;
  white-space: normal;
}

.schedule-import-preview {
  margin-top: 10px;
  color: #7d847f;
  font-size: 0.7rem;
}

.schedule-import-preview[data-state="ready"] {
  color: #25623f;
}

.history-guide {
  margin: 16px 0 10px;
  color: #737b76;
  font-size: 0.75rem;
  line-height: 1.7;
}

.schedule-rule-heading,
.schedule-record-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.schedule-rule-heading {
  margin-top: 17px;
}

.schedule-rule-heading > div,
.schedule-record-heading {
  color: #717974;
  font-size: 0.7rem;
}

.schedule-rule-heading strong,
.schedule-record-heading strong {
  display: block;
  color: #303632;
  font-size: 0.82rem;
}

.schedule-rule-heading span,
.schedule-record-heading span {
  margin-top: 3px;
}

.schedule-rule-heading > button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border: 1px solid #e2c9c5;
  border-radius: 4px;
  background: #fbf4f3;
  color: #8c2119;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 750;
  cursor: pointer;
}

.schedule-rule-heading > button svg {
  width: 15px;
}

.schedule-rule-list {
  max-height: min(25vh, 220px);
  margin-top: 10px;
  overflow: auto;
  border-top: 1px solid #e8eae7;
}

.schedule-rule-item {
  min-height: 62px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 10px 2px;
  border-bottom: 1px solid #eceeeb;
}

.schedule-rule-item > div {
  min-width: 0;
}

.schedule-rule-item strong,
.schedule-rule-item span {
  display: block;
}

.schedule-rule-item strong {
  overflow: hidden;
  color: #2b312d;
  font-size: 0.8rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.schedule-rule-item > div span {
  margin-top: 4px;
  color: #8c948f;
  font-size: 0.66rem;
}

.schedule-rule-item > button {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border: 0;
  background: transparent;
  color: #8c2119;
  font: inherit;
  font-size: 0.68rem;
  cursor: pointer;
}

.schedule-rule-item > button svg {
  width: 14px;
}

.schedule-record-heading {
  margin: 20px 0 8px;
  padding-top: 16px;
  border-top: 1px solid #e8eae7;
}

.schedule-history-list {
  max-height: min(56vh, 480px);
  overflow: auto;
  border-top: 1px solid #e8eae7;
}

.schedule-history-item {
  display: grid;
  grid-template-columns: 122px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 14px;
  min-height: 68px;
  padding: 10px 2px;
  border-bottom: 1px solid #eceeeb;
}

.schedule-history-item time,
.schedule-history-item > div {
  min-width: 0;
}

.schedule-history-item time strong,
.schedule-history-item time span,
.schedule-history-item > div strong,
.schedule-history-item > div small {
  display: block;
}

.schedule-history-item time strong {
  color: #525a55;
  font: 700 0.72rem/1.4 Arial, sans-serif;
}

.schedule-history-item time span,
.schedule-history-item > div small {
  margin-top: 3px;
  color: #969c98;
  font-size: 0.65rem;
}

.schedule-history-item > div strong {
  overflow: hidden;
  color: #292f2b;
  font-size: 0.8rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.schedule-history-item > button {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid #eadedc;
  border-radius: 4px;
  background: #faf5f4;
  color: #8c2119;
  cursor: pointer;
}

.schedule-history-item > button svg {
  width: 15px;
  height: 15px;
}

.schedule-history-empty {
  min-height: 150px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  color: #8c938e;
  font-size: 0.75rem;
}

.schedule-history-empty.compact {
  min-height: 76px;
}

.schedule-notes-list {
  max-height: min(60vh, 520px);
  overflow: auto;
  border-top: 1px solid #e8eae7;
}

.schedule-note-item {
  min-height: 88px;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px 2px;
  border-bottom: 1px solid #eceeeb;
}

.schedule-note-state {
  display: grid;
  justify-items: start;
  gap: 4px;
  color: #7b827d;
  font-size: 0.66rem;
  font-weight: 700;
}

.schedule-note-state svg {
  width: 16px;
  color: #8c0000;
}

.schedule-note-item > div:nth-child(2) {
  min-width: 0;
}

.schedule-note-item > div:nth-child(2) strong {
  color: #29302b;
  font-size: 0.82rem;
}

.schedule-note-item p {
  overflow: hidden;
  margin: 5px 0 4px;
  color: #6e7671;
  font-size: 0.7rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.schedule-note-item small {
  color: #9a9f9b;
  font-size: 0.64rem;
}

.schedule-note-actions {
  display: flex;
  gap: 3px;
}

.schedule-note-actions a,
.schedule-note-actions button {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #69716c;
  cursor: pointer;
}

.schedule-note-actions a:hover,
.schedule-note-actions button:hover {
  background: #f2f3f0;
  color: #8c0000;
}

.schedule-note-actions svg {
  width: 15px;
}

.schedule-cal {
  position: relative;
  z-index: 6;
}

.schedule-month {
  position: absolute;
  left: -6px;
  right: -6px;
  top: calc(100% - 2px);
  z-index: 24;
  padding: 14px 14px 12px;
  border: 1px solid #e6e9e4;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(25, 27, 26, 0.1);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 140ms cubic-bezier(0.22, 1, 0.36, 1), transform 140ms cubic-bezier(0.22, 1, 0.36, 1), visibility 140ms;
}

.schedule-cal.is-open .schedule-month {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}

.schedule-month-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  padding: 0 2px;
}

.schedule-month-head strong {
  color: #1f2522;
  font: 700 0.92rem/1.2 "Noto Serif SC", "Songti SC", serif;
  letter-spacing: 0.02em;
}

.schedule-month-head button {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #6a716c;
  cursor: pointer;
}

.schedule-month-head button:hover {
  background: #f3f4f2;
  color: #1f2522;
}

.schedule-month-head button svg {
  width: 18px;
  height: 18px;
}

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

.schedule-month-weekdays {
  margin-bottom: 4px;
}

.schedule-month-weekdays span {
  color: #8a908b;
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  line-height: 1.8;
  text-align: center;
}

.schedule-month-grid button {
  position: relative;
  min-height: 46px;
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 3px;
  padding: 6px 1px 5px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #252b27;
}

.schedule-month-grid button b {
  font: 650 0.86rem/1 Arial, sans-serif;
  font-variant-numeric: tabular-nums;
}

.schedule-month-grid button span {
  display: block;
  min-height: 13px;
  max-width: 100%;
  padding: 0 1px;
  color: transparent;
  font: 650 0.66rem/1.2 "Noto Serif SC", "Songti SC", serif;
  text-align: center;
  word-break: keep-all;
}

.schedule-month-grid button.has-term span {
  color: #6a5340;
}

.schedule-month-grid button.has-class::after {
  content: "";
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #8c0000;
}

.schedule-month-grid button small {
  position: absolute;
  top: 3px;
  right: 3px;
  min-width: 12px;
  height: 12px;
  display: grid;
  place-items: center;
  border-radius: 3px;
  background: rgba(140, 0, 0, 0.08);
  color: #8c0000;
  font-size: 0.54rem;
  font-weight: 800;
}

.schedule-month-grid button.muted {
  color: #c0c4bf;
  background: transparent;
}

.schedule-month-grid button.muted span {
  color: transparent;
}

.schedule-month-grid button.muted.has-term span {
  color: #b8b1a8;
}

.schedule-month-grid button.holiday {
  background: #f3eee6;
}

.schedule-month-grid button.makeup {
  background: #e7efe9;
}

.schedule-month-grid button:hover:not(.active):not(.holiday):not(.makeup) {
  background: #f3f4f2;
}

.schedule-month-grid button.holiday:hover:not(.active) {
  background: #eee6d8;
}

.schedule-month-grid button.makeup:hover:not(.active) {
  background: #dce8df;
}

.schedule-month-grid button[aria-current="date"]:not(.active) {
  box-shadow: inset 0 0 0 1px #8c0000;
}

.schedule-month-grid button.active {
  background: #8c0000;
  color: #fff;
  box-shadow: none;
}

.schedule-month-grid button.active span,
.schedule-month-grid button.active.has-term span {
  color: #f3d2c8;
}

.schedule-month-grid button.active small {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.schedule-month-grid button.active.has-class::after {
  background: #fff;
}

.schedule-month-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #eceeea;
  color: #6b726d;
  font-size: 0.64rem;
}

.schedule-month-legend i {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 5px;
  border-radius: 2px;
  vertical-align: 0;
}

.schedule-month-legend .dot-holiday { background: #cbb896; }
.schedule-month-legend .dot-makeup { background: #7ea58a; }

.schedule-term-note,
.schedule-day-note,
.schedule-adjust {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
  padding: 2px 7px;
  border-radius: 3px;
  font-size: 0.72rem;
  font-weight: 700;
}

#schedule-day-flag,
.schedule-term-note {
  font-style: normal;
}

.schedule-term-note {
  background: transparent;
  padding: 0;
  color: #6a5340;
  font-size: 0.8rem;
}

.schedule-day-note {
  background: #f3eee6;
  color: #7a5a28;
}

.schedule-adjust {
  background: #e7efe9;
  color: #2f5c3f;
}

.schedule-day-heading .schedule-term-note,
.schedule-day-heading .schedule-day-note,
.schedule-day-heading .schedule-adjust {
  margin-left: 0;
}

@media (max-width: 1100px) {
  body[data-page="home"] .front-hero {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  body[data-page="home"] .front-hero-copy {
    width: min(760px, 100%);
  }

  .home-schedule {
    width: min(680px, 100%);
  }
}

@media (max-width: 760px) {
  body[data-page="home"] .front-hero {
    display: grid;
    min-height: 0;
    padding-right: 0;
    padding-left: 0;
  }

  .home-schedule {
    width: 100%;
    padding: 16px 12px 14px;
  }

  .schedule-head > div:first-child {
    display: grid;
    gap: 3px;
  }

  .hero-live-time {
    margin: 8px 0 4px;
    padding: 22px 0 20px;
  }

  .hero-live-time strong {
    font-size: 2.7rem;
  }

  .schedule-head strong {
    font-size: 1.12rem;
  }

  .schedule-actions .schedule-history span,
  .schedule-actions .schedule-notes span {
    display: none;
  }

  .schedule-actions .schedule-history,
  .schedule-actions .schedule-notes {
    width: 34px;
    padding: 0;
  }

  .schedule-date-nav {
    gap: 3px;
  }

  .schedule-date-nav > button {
    flex-basis: 30px;
    width: 30px;
    min-width: 30px;
    min-height: 4.1rem;
  }

  .schedule-days {
    gap: 4px;
  }

  .schedule-days button {
    min-height: 4.1rem;
    padding: 7px 2px 8px;
  }

  .schedule-diary {
    display: grid;
    grid-template-columns: 1fr auto;
  }

  .schedule-diary label {
    grid-column: 1 / -1;
  }

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

  .schedule-dialog label.wide {
    grid-column: auto;
  }

  .schedule-rule-heading,
  .schedule-record-heading {
    align-items: flex-start;
  }

  .schedule-rule-heading > div span,
  .schedule-record-heading span {
    display: none;
  }

  .schedule-rule-heading > button {
    font-size: 0;
  }

  .schedule-rule-heading > button svg {
    width: 16px;
  }

  .schedule-note-item {
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-page="home"] .topnav a::after,
  body[data-page="module"] .topnav a::after,
  body[data-page="home"] .module-entry svg {
    transition: none;
  }
}

/* Home workspace: clean canvas, 24px edge, compact schedule rows, paper cards */
body[data-page="home"] .site-shell {
  width: auto;
  max-width: none;
  min-height: 100svh;
  margin: 0 24px;
  display: flex;
  flex-direction: column;
}
body[data-page="home"] main#top { flex: 1 1 auto; display: flex; min-height: 0; }
body[data-page="home"] .front-hero {
  flex: 1 1 auto;
  width: 100%;
  max-width: none;
  margin: 0;
  grid-template-columns: minmax(320px, .7fr) minmax(0, 1.3fr);
  gap: 24px;
  min-height: 0;
  align-items: stretch;
  padding: 20px 0 28px;
  background: none;
}
body[data-page="home"] .front-hero-copy {
  width: auto;
  align-self: stretch;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
body[data-page="home"] .front-hero h1 {
  max-width: 16em;
  margin-bottom: 8px;
  font-size: 2.35rem;
  line-height: 1.22;
}
body[data-page="home"] .front-hero p { font-size: 0.92rem; line-height: 1.55; }
body[data-page="home"] .notice-strip { margin-bottom: 14px; }
body[data-page="home"] .hero-live-time { margin: 6px 0 2px; padding: 18px 0 16px; }
body[data-page="home"] .hero-live-time strong { font-size: 2.7rem; }
body[data-page="home"] .front-hero-copy .module-entry-grid {
  display: grid;
  flex: 1 1 auto;
  min-height: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: 1fr 1fr;
  gap: 14px;
  width: 100%;
  margin: 16px 0 0;
}
body[data-page="home"] .front-hero-copy .module-entry {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  height: auto;
  min-height: 0;
  padding: 18px 20px 16px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid #e4e6e2;
  border-radius: 8px;
  background: #fffcf9;
  box-shadow: 0 10px 28px rgba(28, 32, 29, 0.06);
}
body[data-page="home"] .front-hero-copy .module-entry::after {
  display: block;
  right: -28px;
  bottom: -52px;
  width: 220px;
  height: 132px;
  opacity: 0.12;
}
body[data-page="home"] .front-hero-copy .module-entry > span { position: static; padding-top: 0; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.04em; }
body[data-page="home"] .front-hero-copy .module-entry > svg { position: absolute; top: 18px; right: 18px; width: 16px; height: 16px; }
body[data-page="home"] .front-hero-copy .module-entry strong { margin: 10px 0 0; font-size: 1.28rem; line-height: 1.2; font-family: "Noto Serif SC", "Songti SC", STSong, Georgia, serif; }
body[data-page="home"] .front-hero-copy .module-entry p { max-width: 92%; margin: 6px 0 0; font-size: 0.78rem; line-height: 1.5; }
body[data-page="home"] .home-utility-links { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding-top: 0; }
body[data-page="home"] .home-utility-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 6px 12px;
  border: 1px solid #e4e6e2;
  border-radius: 6px;
  background: #fffcf9;
  box-shadow: 0 6px 16px rgba(28, 32, 29, 0.04);
  color: #69706c;
  font-size: .72rem;
  font-weight: 700;
  text-decoration: none;
}
body[data-page="home"] .home-utility-links a:hover { border-color: rgba(139, 25, 17, .34); color: var(--front-red); }
body[data-page="home"] .home-utility-links svg { width: 16px; height: 16px; }
body[data-page="home"] .home-schedule {
  align-self: stretch;
  min-height: 0;
  max-height: none;
  display: grid;
  grid-template-rows: auto auto auto minmax(120px, 1fr) auto;
  padding: 18px 20px 16px;
  border: 1px solid #e4e6e2;
  border-radius: 8px;
  background: #fffcf9;
  box-shadow: 0 14px 36px rgba(28, 32, 29, 0.08);
}
body[data-page="home"] .schedule-day-body {
  min-height: 0;
}
body[data-page="home"] .schedule-agenda { max-height: none; align-content: start; }
@media (max-width: 1360px) {
  body[data-page="home"] .site-shell { min-height: 0; }
  body[data-page="home"] main#top { flex: none; display: block; }
  body[data-page="home"] .front-hero { flex: none; grid-template-columns: 1fr; min-height: 0; align-items: start; padding-bottom: 28px; }
  body[data-page="home"] .front-hero-copy { align-self: start; }
  body[data-page="home"] .front-hero-copy .module-entry-grid { flex: none; grid-template-rows: auto; }
  body[data-page="home"] .front-hero-copy .module-entry { min-height: 118px; }
  body[data-page="home"] .home-utility-links { margin-top: 16px; padding-top: 0; }
  body[data-page="home"] .home-schedule { width: 100%; max-height: none; grid-template-rows: auto; }
}
@media (max-width: 620px) {
  body[data-page="home"] .site-shell { margin: 0 16px; }
  body[data-page="home"] .front-hero-copy .module-entry-grid { grid-template-columns: 1fr; }
}
