:root {
  color-scheme: light;
  --bg: #f5f7fa;
  --paper: #ffffff;
  --ink: #17212b;
  --muted: #647184;
  --line: #d9e1ea;
  --soft: #f8fafc;
  --soft-blue: #edf5fa;
  --soft-yellow: #fbf7ed;
  --soft-rose: #fff2ef;
  --teal: #255f85;
  --teal-dark: #235e8a;
  --gold: #9b6a2f;
  --rust: #a3482d;
  --blue: #255f85;
  --shadow: 0 10px 24px rgba(28, 40, 56, .06);
  --font-sans: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

.site-nav {
  width: min(1360px, calc(100% - 36px));
  margin: 0 auto;
  padding: 18px 0 0;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.site-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.site-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #334154;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 12px;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a.active {
  border-color: #bdd1dd;
  background: #eef6fb;
  color: var(--teal-dark);
}

.site-nav .nav-meta {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

body.md-page .site-nav,
body.md-page .app-shell {
  width: min(1360px, calc(100% - 36px));
}

body.md-page .page-head {
  align-items: flex-end;
}

body.md-page .page-head h1 {
  font-size: clamp(30px, 3.2vw, 42px);
  line-height: 1.12;
}

body.md-page .page-head .lede {
  font-size: 15px;
}

.app-shell {
  width: min(1360px, calc(100% - 36px));
  margin: 0 auto;
  padding: 30px 0 48px;
  min-height: auto;
  display: block;
}

.sidebar {
  display: none;
}

.brand {
  display: grid;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #ece4d7;
  color: var(--teal-dark);
  font-size: 18px;
  font-weight: 700;
}

.brand strong {
  display: block;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
}

.brand span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.side-nav {
  display: grid;
  gap: 6px;
}

.side-nav a {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 7px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #36414a;
  padding: 8px 10px;
  text-decoration: none;
  font-weight: 500;
}

.side-nav a:hover,
.side-nav a.active {
  border-color: #d9cdc0;
  background: #f2eadf;
  color: var(--teal-dark);
}

.nav-index {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: #fff8ed;
  border: 1px solid var(--line);
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 600;
}

.side-nav a.active .nav-index {
  border-color: var(--teal-dark);
  background: var(--teal-dark);
  color: #fff;
}

.sidebar-note {
  margin-top: auto;
  color: var(--muted);
  font-size: 12px;
}

.sidebar-note a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  text-underline-offset: 3px;
}

.content {
  min-width: 0;
  padding: 0;
}

.page-head {
  border-bottom: 1px solid var(--line);
  padding-bottom: 22px;
  margin-bottom: 22px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}

.page-head > .button {
  flex: 0 0 auto;
  margin-top: 4px;
}

.page-head > .toolbar {
  width: 168px;
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 8px;
  flex: 0 0 auto;
}

.page-head > .toolbar .button,
.page-head > .toolbar .copy-button {
  width: 100%;
}

.eyebrow {
  margin: 0 0 9px;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .02em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p { margin: 0; }

h1 {
  max-width: 900px;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: 0;
}

h2 {
  font-size: 26px;
  font-weight: 600;
  line-height: 1.24;
}

h3 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
}

.lede {
  max-width: 900px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.78;
}

.button,
.filter,
.copy-button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #fff;
  color: #334154;
  font-size: 14px;
  font-weight: 500;
  padding: 9px 13px;
  text-decoration: none;
  cursor: pointer;
}

.button.primary,
.filter.active {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  color: #fff;
}

.button:hover,
.filter:hover,
.copy-button:hover {
  border-color: rgba(178, 123, 68, .5);
  background: #eef6fb;
}

.button.primary:hover,
.filter.active:hover,
.style-option.active:hover {
  background: #203d39;
  border-color: #203d39;
  color: #fff;
}

.card:hover,
.tool-card:hover {
  border-color: rgba(170, 120, 72, .42);
}

.button:focus-visible,
.filter:focus-visible,
.copy-button:focus-visible,
.side-nav a:focus-visible,
.tool-card:focus-visible,
textarea:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(35, 94, 138, .22);
  outline-offset: 3px;
}

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

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

.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
  padding: 18px;
  min-width: 0;
}

.soft { background: var(--soft); }
.soft-blue { background: var(--soft-blue); }
.soft-yellow { background: var(--soft-yellow); }
.soft-rose { background: var(--soft-rose); }

.identity {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.surname {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #eef4f8;
  color: var(--teal);
  font-size: 34px;
  font-weight: 650;
}

.bio {
  margin-top: 20px;
  color: #435463;
  font-size: 17px;
  line-height: 1.9;
}

.metric {
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  padding: 14px;
  text-decoration: none;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.metric:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--teal) 40%, var(--line));
  box-shadow: 0 12px 24px rgba(31, 111, 100, 0.1);
}

.metric strong {
  display: block;
  color: var(--teal-dark);
  font-size: 26px;
  font-weight: 650;
  line-height: 1.1;
}

.metric span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}

.list {
  display: grid;
  gap: 0;
}

.list-row {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding: 15px 0;
}

.list-row:first-child {
  padding-top: 0;
}

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

.list-row strong {
  color: #314357;
  font-size: 14px;
  font-weight: 600;
}

.list-row span {
  color: #536473;
  font-size: 14px;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.directory-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 16px;
  align-items: end;
  margin-bottom: 18px;
}

.search {
  display: grid;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf3;
  padding: 16px;
}

.search label {
  color: #344256;
  font-size: 13px;
  font-weight: 500;
}

.search input,
.field,
.md-input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  padding: 10px 12px;
}

.search input { min-height: 48px; }

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

.tool-lane {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.lane-head {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
  background: #f8fafc;
}

.lane-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.lane-count {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #eef6fb;
  border: 1px solid #c8dce8;
  color: var(--teal-dark);
  font-size: 18px;
  font-weight: 650;
}

.tool-stack { display: grid; }

.tool-card {
  min-height: 96px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-left: 3px solid transparent;
  background: #fff;
  padding: 15px 16px 14px;
  text-decoration: none;
}

.tool-card[data-tone="rust"] { border-left-color: var(--rust); }
.tool-card[data-tone="olive"] { border-left-color: #718452; }
.tool-card[data-tone="blue"] { border-left-color: var(--blue); }
.tool-card.hidden { display: none; }
.tool-stack .tool-card:last-child { border-bottom: 0; }

.tool-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.tool-name {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.mark {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #eef4f8;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 600;
}

.tag {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  padding: 4px 8px;
  white-space: nowrap;
}

.tool-card p {
  color: #526176;
  font-size: 13px;
  line-height: 1.58;
}

.open {
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 600;
}

.calendar-layout {
  display: grid;
  grid-template-columns: minmax(320px, .75fr) minmax(520px, 1.25fr);
  gap: 18px;
  align-items: start;
}

.calendar-layout.calendar-only {
  grid-template-columns: minmax(0, 1fr);
}

.calendar-layout.calendar-only .card {
  min-height: 560px;
  padding: 32px;
}

.perpetual-calendar {
  min-height: 680px;
}

.calendar-split {
  display: grid;
  grid-template-columns: minmax(280px, 0.46fr) minmax(620px, 1fr);
  gap: 24px;
  align-items: start;
}

.calendar-side,
.calendar-board {
  min-width: 0;
}

.calendar-split .calendar-top {
  display: grid;
  gap: 18px;
  margin-bottom: 0;
}

.calendar-split .calendar-controls {
  justify-content: flex-start;
  max-width: none;
}

.calendar-board .mini-weekdays {
  margin: 0 0 10px;
}

.tech-calendar-page .calendar-layout {
  margin-top: 0;
}

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

.calendar-caption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.calendar-stats {
  margin-top: 14px;
  padding: 14px 14px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.calendar-stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  align-items: center;
  justify-content: space-between;
}

.calendar-stat {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #344256;
  font-size: 13px;
  font-weight: 600;
}

.calendar-progress {
  margin-top: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #f4f7fb;
  overflow: hidden;
}

.calendar-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, rgba(35, 94, 138, .95), rgba(37, 95, 133, .55));
}

.calendar-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  max-width: 520px;
}

.calendar-select {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: #334154;
  font: inherit;
  font-size: 14px;
  padding: 8px 34px 8px 12px;
}

.holiday-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 0 4px;
  color: var(--muted);
  font-size: 13px;
}

.holiday-legend span {
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
}

.legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  display: inline-block;
}

.legend-dot.holiday { background: #d92d20; }
.legend-dot.briefing { background: var(--teal-dark); }
.legend-dot.briefing.tech { background: var(--teal-dark); }
.legend-dot.briefing.book { background: #8a5a1f; }
.legend-dot.today { background: var(--gold); }

.calendar-layout.calendar-only .mini-weekdays,
.calendar-layout.calendar-only .mini-calendar {
  gap: 10px;
}

.calendar-layout.calendar-only .mini-weekdays {
  margin: 24px 0 10px;
}

.calendar-layout.calendar-only .mini-weekdays span {
  min-height: 34px;
  border: 1px solid transparent;
  display: grid;
  place-items: center;
}

.calendar-layout.calendar-only .mini-day {
  min-height: clamp(82px, 7vw, 112px);
  padding: 12px;
  font-size: 18px;
}

.calendar-layout.calendar-only .mini-day.empty {
  border-color: #e4ebf2;
  background: #f8fafc;
}

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

.tech-calendar-page .mini-weekdays,
.tech-calendar-page .mini-calendar {
  grid-template-columns: 0.7fr repeat(7, minmax(0, 1fr));
}

.tech-calendar-page .mini-weekdays .week-col {
  color: #235e8a;
  font-weight: 700;
}

.mini-week-number {
  min-height: 58px;
  border: 1px solid rgba(35, 94, 138, .28);
  border-radius: 8px;
  background: #eaf4f9;
  color: #235e8a;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 650;
}

.calendar-layout.calendar-only .mini-week-number {
  min-height: clamp(82px, 7vw, 112px);
  font-size: 13px;
}

.mini-weekdays {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  margin-bottom: 8px;
}

.mini-day {
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #344256;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 8px;
  font-weight: 500;
  text-decoration: none;
}

.mini-day.empty {
  border-color: transparent;
  background: transparent;
}

.mini-day.disabled {
  color: #a3a9af;
  background: #f8fafc;
}

.mini-day.has-entry {
  border-color: rgba(35, 94, 138, .42);
  background: #eef6fb;
  color: var(--teal-dark);
  position: relative;
}

.mini-day.has-entry,
.mini-day.has-entry:hover {
  border-color: rgba(35, 94, 138, .58);
}

.mini-day.has-holiday {
  border-color: rgba(217, 45, 32, .35);
  background: #fffafa;
}

.mini-day.is-today {
  box-shadow: inset 0 0 0 2px rgba(155, 106, 47, .55);
}

.mini-day:hover {
  border-color: rgba(35, 94, 138, .5);
  background: #f8fbff;
}

.day-number {
  color: #243247;
  font-size: 20px;
  font-weight: 650;
  line-height: 1;
}

.day-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: flex-end;
}

.day-chip {
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  color: #536473;
  background: #f4f7fb;
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  padding: 4px 6px;
}

.day-chip.holiday {
  color: #b42318;
  background: #fee4e2;
}

.day-chip.briefing {
  color: var(--teal-dark);
  background: #e7f3f9;
}

.day-chip.daily {
  color: #294257;
  background: #edf2f7;
}

.day-chip.briefing.book {
  color: #7a4d16;
  background: #fff3d7;
}

.day-chip.briefing.tech {
  color: var(--teal-dark);
  background: #e7f3f9;
}

.month-briefings {
  min-height: 680px;
}

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

.month-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 14px;
  display: grid;
  gap: 10px;
}

.month-item-head {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  align-items: flex-start;
}

.month-item h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
}

.month-item .month-date {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}

.month-item .month-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.month-pill {
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 650;
  border: 1px solid var(--line);
  background: #f8fbff;
  color: var(--teal-dark);
}

.month-item .button {
  justify-self: start;
}

.editor-card,
.preview-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: auto;
}

.md-workspace {
  display: grid;
  grid-template-columns: minmax(390px, .92fr) minmax(520px, 1.08fr);
  gap: 16px;
  align-items: start;
}

.md-left-stack {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.md-flow {
  margin-bottom: 0;
}

.md-workspace h2,
.preview-panel h2 {
  font-size: 22px;
}

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

.style-card {
  width: 100%;
  margin-bottom: 0;
  padding: 14px 16px;
}

.style-card .style-grid {
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 8px;
}

.style-option {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #fff;
  color: #314357;
  font-weight: 500;
  cursor: pointer;
}

.style-option::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #255f85;
  box-shadow: 0 0 0 3px rgba(37, 95, 133, .1);
}

.style-option[data-style="warm"]::before { background: #24746f; box-shadow: 0 0 0 3px rgba(36, 116, 111, .12); }
.style-option[data-style="business"]::before { background: #1f4e79; box-shadow: 0 0 0 3px rgba(31, 78, 121, .12); }
.style-option[data-style="magazine"]::before { background: #9a5c20; box-shadow: 0 0 0 3px rgba(154, 92, 32, .12); }
.style-option[data-style="reading"]::before { background: #718452; box-shadow: 0 0 0 3px rgba(113, 132, 82, .12); }
.style-option[data-style="tech"]::before { background: #2563eb; box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }
.style-option[data-style="radio"]::before { background: #b88732; box-shadow: 0 0 0 3px rgba(184, 135, 50, .12); }
.style-option[data-style="mono"]::before { background: #111; box-shadow: 0 0 0 3px rgba(17, 17, 17, .1); }
.style-option[data-style="social"]::before { background: #d92d20; box-shadow: 0 0 0 3px rgba(217, 45, 32, .12); }

.style-option.active {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  color: #fff;
}

.style-option.active::before {
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .22);
}

.md-input {
  flex: 1;
  min-height: 660px;
  resize: vertical;
  line-height: 1.76;
}

.preview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.preview-copy {
  flex: 0 0 auto;
  min-width: 132px;
}

.wechat-preview-shell {
  flex: 1;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f5f7fa;
  padding: 18px;
  max-height: 760px;
}

.wechat-preview {
  width: min(100%, 680px);
  margin: 0 auto;
  background: #fff;
  padding: 24px;
  color: #2d3748;
  font-family: var(--font-sans);
  line-height: 1.86;
}

.preview-panel {
  margin-top: 0;
}

.is-hidden {
  display: none !important;
}

.copy-status {
  color: var(--muted);
  font-size: 13px;
}

.copy-button:disabled {
  cursor: not-allowed;
  opacity: .52;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(320px, .78fr) minmax(520px, 1.22fr);
  gap: 18px;
}

.qr-box {
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f5f7fa;
  display: grid;
  place-items: center;
  padding: 18px;
}

.qr-image {
  width: min(330px, 100%);
  aspect-ratio: 1;
  border: 10px solid #fff;
  border-radius: 8px;
  background: #fff;
  object-fit: contain;
  display: block;
  box-shadow: 0 12px 30px rgba(55, 69, 82, .12);
}

.copy-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.site-footer {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.site-footer a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  text-underline-offset: 3px;
}

.day-placeholder {
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

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

  .sidebar {
    position: static;
    height: auto;
  }

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

  .content {
    padding: 24px 18px 40px;
  }

  .page-head,
  .directory-hero,
  .directory-board,
  .calendar-layout,
  .future-panel,
  .contact-layout,
  .md-app,
  .md-workspace,
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .calendar-top,
  .preview-head {
    flex-direction: column;
  }

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

  .calendar-controls {
    justify-content: flex-start;
    max-width: none;
  }

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

  .calendar-layout.calendar-only .card {
    padding: 18px;
  }

  .calendar-layout.calendar-only .mini-day {
    min-height: 72px;
    padding: 8px;
  }

  .day-number {
    font-size: 18px;
  }
}
