:root {
  color-scheme: light;
  --background: #fbf9f5;
  --surface: #fffdf9;
  --surface-low: #f5f3ef;
  --surface-container: #efeeea;
  --muted-border: #e8e4de;
  --primary: #4e635e;
  --primary-soft: #d1e8e2;
  --secondary: #70585b;
  --secondary-soft: #f8d8db;
  --tertiary-soft: #e1e1f5;
  --sage: #a8c7be;
  --pink: #e8b8bd;
  --lavender: #c5c5e6;
  --ink: #263734;
  --text: #1b1c1a;
  --text-soft: #626a66;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.045);
  --shadow-lg: 0 18px 48px rgba(49, 44, 38, 0.08);
  --radius: 8px;
  --serif: "Libre Caslon Text", "SimSun", "宋体", serif;
  --sans: "Work Sans", "Microsoft YaHei", "PingFang SC", sans-serif;
  --song: "SimSun", "宋体", "Songti SC", serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background-color: var(--background);
  background-image: radial-gradient(#e8e4de 0.5px, transparent 0.5px);
  background-size: 24px 24px;
  color: var(--text);
  font-family: var(--sans);
  letter-spacing: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

.material-symbols-outlined {
  font-family: "Material Symbols Outlined";
  font-weight: normal;
  font-style: normal;
  font-size: 22px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  font-feature-settings: "liga";
  -webkit-font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}

.app-frame {
  min-height: 100vh;
}

.side-rail {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  display: flex;
  width: 264px;
  flex-direction: column;
  padding: 28px 16px 24px;
  border-right: 1px solid var(--muted-border);
  background: rgba(251, 249, 245, 0.92);
  backdrop-filter: blur(14px);
}

.brand {
  padding: 0 16px 34px;
}

.brand h1 {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.1;
}

.brand p {
  margin: 7px 0 0;
  color: var(--text-soft);
  font-size: 15px;
}

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

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  text-align: left;
  transition: 0.18s ease;
}

.nav-link span:last-child {
  font-size: 15px;
  font-weight: 500;
}

.nav-link:hover {
  background: var(--surface-low);
}

.nav-link.active {
  background: var(--secondary-soft);
  color: var(--primary);
  font-weight: 700;
}

.side-footer {
  display: grid;
  gap: 10px;
  margin-top: auto;
  padding: 24px 16px 0;
  border-top: 1px solid var(--muted-border);
}

.memory-button,
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: var(--radius);
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  transition: 0.18s ease;
}

.memory-button:hover,
.primary-button:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.main-shell {
  min-height: 100vh;
  margin-left: 264px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 0 32px;
  border-bottom: 1px solid var(--muted-border);
  background: rgba(251, 249, 245, 0.82);
  backdrop-filter: blur(14px);
}

.days-line {
  color: var(--secondary);
  font-family: var(--serif);
  font-size: 18px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 264px;
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--surface-low);
  color: var(--text-soft);
}

.search-box input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.top-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
}

.lang-switch {
  min-width: 48px;
  height: 32px;
  border-radius: 999px;
  background: var(--surface-low);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
}

.login-lang {
  justify-self: end;
}

.avatar-button {
  padding: 0;
  border-radius: 50%;
  background: transparent;
}

.avatar-mini img,
.avatar-mini b,
.profile-avatar img,
.profile-avatar b,
.profile-line img,
.profile-line b,
.timeline-card footer img,
.timeline-card footer b {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  overflow: hidden;
  border-radius: 50%;
  background: var(--secondary-soft);
  color: var(--secondary);
  object-fit: cover;
  font-weight: 700;
}

.page-canvas {
  width: min(100%, 1200px);
  margin: 0 auto;
  padding: 32px;
}

.dashboard-hero {
  position: relative;
  display: flex;
  align-items: end;
  min-height: 300px;
  margin-bottom: 48px;
  overflow: hidden;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
}

.dashboard-hero > div {
  padding: 40px;
}

.dashboard-hero h2 {
  margin: 0 0 10px;
  max-width: 760px;
  color: #fff;
  font-family: var(--serif);
  font-size: 48px;
  font-weight: 400;
  line-height: 1;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.28);
}

.dashboard-hero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) 300px;
  gap: 32px;
  align-items: start;
}

.main-column,
.right-column {
  display: grid;
  gap: 28px;
}

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

.profile-card,
.paper-card,
.overview-card,
.timeline-card,
.gallery-card,
.goal-category,
.master-goal,
.stats-card,
.settings-grid > article {
  border: 1px solid var(--muted-border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

.profile-card {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 160px;
  padding: 24px;
}

.profile-avatar img,
.profile-avatar b {
  width: 78px;
  height: 78px;
  border: 1px solid var(--sage);
}

.profile-card h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
}

.profile-card p {
  margin: 4px 0 10px;
  font-family: var(--song);
  font-style: italic;
  line-height: 1.45;
}

.profile-card span {
  display: inline-flex;
  padding: 3px 7px;
  border-radius: 4px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.section-title,
.timeline-title,
.photo-head,
.page-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.section-title h3,
.timeline-title h2,
.photo-head h2,
.page-head h2,
.paper-card h2,
.settings-grid h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
}

.section-title button,
.gallery-card button,
.card-actions button,
.ann-list button {
  border: 1px dashed #8ab8ff;
  border-radius: 4px;
  background: transparent;
  color: var(--primary);
  padding: 4px 8px;
}

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

.paper-card {
  padding: 24px;
}

.caps {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.diary-preview h4,
.timeline-card h3,
.goal-category h3,
.master-goal h3,
.stats-card h3,
.overview-card h3 {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
}

.diary-preview p,
.timeline-card p,
.master-goal p,
.photo-head p,
.page-head > p,
.timeline-title p {
  color: var(--text-soft);
  line-height: 1.65;
}

.diary-preview footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--muted-border);
  color: var(--text-soft);
  font-size: 12px;
}

.photo-feature {
  position: relative;
  min-height: 300px;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.photo-feature img,
.photo-placeholder {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
}

.photo-placeholder {
  display: grid;
  place-items: center;
  gap: 10px;
  border: 0;
  background: linear-gradient(135deg, #ead5d8, #d0e7e1);
  color: var(--primary);
}

.photo-feature figcaption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(10px);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.quick-panel {
  display: grid;
  gap: 12px;
}

.quick-panel h3 {
  margin: 0 0 4px;
  font-family: var(--serif);
  font-weight: 400;
}

.quick-panel button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  border: 1px solid var(--sage);
  border-radius: var(--radius);
  background: transparent;
  color: var(--primary);
}

.overview-card {
  overflow: hidden;
}

.overview-card header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 22px;
  border-bottom: 1px solid var(--muted-border);
  background: var(--surface-container);
}

.overview-card header h3 {
  margin: 0;
}

.mini-calendar {
  padding: 22px;
}

.mini-calendar > div:first-child,
.goal-mini-head,
.goal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.week-row,
.date-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-top: 14px;
  text-align: center;
}

.week-row b {
  font-size: 10px;
}

.date-row span {
  padding: 4px 0;
  border-radius: 999px;
}

.date-row .today {
  background: var(--primary);
  color: #fff;
}

.note-list {
  display: grid;
  gap: 14px;
  padding: 0 22px 22px;
}

.note-list p {
  display: grid;
  grid-template-columns: 8px 1fr;
  gap: 12px;
  margin: 0;
  color: var(--text-soft);
  line-height: 1.5;
}

.note-list i {
  width: 5px;
  height: 5px;
  margin-top: 9px;
  border-radius: 50%;
  background: var(--pink);
}

.progress {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-container);
}

.progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
}

.page-head {
  display: grid;
  align-items: start;
  margin-bottom: 44px;
}

.page-head h2 {
  font-size: 34px;
}

.compact-form,
.upload-inline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
}

.compact-form textarea {
  grid-column: 1 / -1;
  min-height: 80px;
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--muted-border);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
  outline: 0;
  padding: 10px 12px;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(168, 199, 190, 0.2);
}

.diary-timeline {
  position: relative;
  display: grid;
  gap: 64px;
  padding-left: 88px;
}

.diary-timeline::before {
  content: "";
  position: absolute;
  left: 30px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: repeating-linear-gradient(to bottom, #e8e4de, #e8e4de 4px, transparent 4px, transparent 8px);
}

.timeline-item {
  position: relative;
}

.timeline-dot {
  position: absolute;
  left: -70px;
  top: 24px;
  width: 24px;
  height: 24px;
  border: 8px solid var(--primary-soft);
  border-radius: 50%;
  background: var(--primary);
}

.timeline-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 28px;
  padding: 32px;
}

.timeline-item.reverse .timeline-card {
  grid-template-columns: 260px minmax(0, 1fr);
}

.timeline-item.reverse .timeline-card img {
  order: -1;
}

.timeline-card img {
  width: 100%;
  height: 190px;
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: var(--shadow);
}

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

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

.entry-head > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--secondary-soft);
  color: var(--secondary);
  font-size: 13px;
}

.timeline-card footer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  color: var(--text-soft);
}

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

.photo-head {
  display: grid;
  align-items: start;
  margin-bottom: 28px;
}

.album-strip {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  margin-bottom: 60px;
  padding-bottom: 8px;
}

.album-card,
.new-album {
  position: relative;
  flex: 0 0 160px;
  height: 205px;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.album-card img,
.album-card div {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, var(--pink), var(--primary-soft));
}

.album-card span {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.58), transparent);
}

.album-card h3,
.album-card p {
  position: absolute;
  left: 16px;
  margin: 0;
  color: #fff;
}

.album-card h3 {
  bottom: 34px;
  font-family: var(--serif);
  font-size: 20px;
}

.album-card p {
  bottom: 16px;
  font-size: 12px;
  font-weight: 700;
}

.new-album {
  display: grid;
  place-items: center;
  gap: 8px;
  border: 2px dashed var(--muted-border);
  background: transparent;
  color: var(--ink);
}

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

.gallery-card {
  margin: 0;
  overflow: hidden;
}

.gallery-card img {
  width: 100%;
  aspect-ratio: 4 / 3.1;
  object-fit: cover;
}

.gallery-card figcaption {
  padding: 16px;
}

.gallery-card h3 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 400;
}

.gallery-card p {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: var(--text-soft);
  font-size: 12px;
}

.gallery-card p span {
  margin-left: auto;
  opacity: 0.7;
}

.goals-head h2 span {
  border-bottom: 4px solid var(--sage);
}

.goal-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) 300px;
  gap: 24px;
  margin-bottom: 64px;
}

.master-goal,
.stats-card,
.goal-category {
  padding: 32px;
}

.master-goal {
  background: rgba(255, 253, 249, 0.68);
  backdrop-filter: blur(8px);
}

.stats-card {
  background: rgba(248, 216, 219, 0.38);
  border-color: rgba(232, 184, 189, 0.55);
}

.stats-card p {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 18px 0;
  border-bottom: 1px solid rgba(232, 184, 189, 0.32);
}

.stats-card p:last-child {
  border-bottom: 0;
}

.goal-row {
  margin: 28px 0 12px;
  color: var(--text-soft);
  font-weight: 700;
}

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

.category-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 20px;
  border-radius: 8px;
  background: var(--primary-soft);
  color: var(--primary);
}

.goal-category > p {
  color: var(--text-soft);
  font-size: 12px;
}

.goal-stack {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.goal-mini {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: var(--radius);
  background: var(--surface-low);
}

.goal-mini div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
}

.goal-mini input {
  min-height: 34px;
}

.goal-mini button {
  justify-self: start;
  color: var(--primary);
  background: transparent;
}

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

.calendar-grid > b {
  padding: 8px;
  color: var(--text-soft);
  text-align: center;
  font-size: 12px;
}

.calendar-cell {
  display: grid;
  align-content: start;
  gap: 6px;
  min-height: 112px;
  padding: 10px;
  border: 1px solid var(--muted-border);
  border-radius: var(--radius);
  background: #fff;
  text-align: left;
}

.calendar-cell span,
.calendar-cell em {
  overflow: hidden;
  padding: 4px 6px;
  border-radius: 6px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 11px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-cell em {
  background: var(--secondary-soft);
  color: var(--secondary);
}

.empty-cell {
  border: 0;
  background: transparent;
}

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

.month-actions button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  border-radius: var(--radius);
  background: var(--surface-low);
}

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

.message-card {
  max-width: 760px;
  padding: 22px;
  border: 1px solid var(--muted-border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.message-card.mine {
  margin-left: auto;
  background: var(--primary-soft);
}

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

.stack-form {
  display: grid;
  gap: 14px;
}

.stack-form label {
  display: grid;
  gap: 6px;
  color: var(--text-soft);
  font-size: 13px;
}

.profile-form {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--muted-border);
}

.profile-line {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ann-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.ann-list article {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--muted-border);
  border-radius: var(--radius);
  background: #fff;
}

.empty-state,
.loading {
  padding: 32px;
  border: 1px dashed var(--muted-border);
  border-radius: var(--radius);
  color: var(--text-soft);
  text-align: center;
}

.login-page {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  gap: 32px;
  min-height: 100vh;
  padding: 32px;
}

.login-hero {
  display: flex;
  align-items: end;
  min-height: calc(100vh - 64px);
  padding: 48px;
  border-radius: 14px;
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0)),
    linear-gradient(135deg, #f8d8db, #fbf9f5 48%, #d0e7e1);
  box-shadow: var(--shadow-lg);
}

.login-hero h1 {
  margin: 0;
  color: #fff;
  font-family: var(--serif);
  font-size: 58px;
  font-weight: 400;
}

.login-hero p {
  max-width: 520px;
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--song);
  line-height: 1.8;
}

.login-card {
  align-self: center;
  display: grid;
  gap: 16px;
  padding: 30px;
  border: 1px solid var(--muted-border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-lg);
}

.login-card h2 {
  margin: 0;
  font-family: var(--song);
  font-size: 34px;
  font-weight: 400;
}

.login-card label {
  display: grid;
  gap: 6px;
  color: var(--text-soft);
}

.login-card small {
  color: var(--text-soft);
  line-height: 1.6;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(10px);
  transition: 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.mobile-nav {
  display: none;
}

@media (max-width: 1100px) {
  .dashboard-grid,
  .goal-hero-grid,
  .settings-grid {
    grid-template-columns: 1fr;
  }

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

  .goal-categories,
  .photo-wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .side-rail {
    display: none;
  }

  .main-shell {
    margin-left: 0;
    padding-bottom: 78px;
  }

  .topbar {
    min-height: auto;
    padding: 14px 16px;
  }

  .days-line {
    font-size: 15px;
  }

  .search-box {
    display: none;
  }

  .page-canvas {
    padding: 18px;
  }

  .dashboard-hero {
    min-height: 360px;
    margin-bottom: 28px;
  }

  .dashboard-hero > div {
    padding: 24px;
  }

  .dashboard-hero h2 {
    font-size: 38px;
  }

  .profile-grid,
  .memory-bento,
  .right-column,
  .timeline-card,
  .timeline-item.reverse .timeline-card,
  .compact-form,
  .upload-inline,
  .goal-categories,
  .photo-wall {
    grid-template-columns: 1fr;
  }

  .diary-timeline {
    padding-left: 34px;
  }

  .diary-timeline::before {
    left: 10px;
  }

  .timeline-dot {
    left: -32px;
  }

  .timeline-card img,
  .timeline-item.reverse .timeline-card img {
    order: 0;
  }

  .album-card,
  .new-album {
    flex-basis: 144px;
    height: 186px;
  }

  .calendar-grid {
    gap: 4px;
  }

  .calendar-cell {
    min-height: 76px;
    padding: 7px;
  }

  .calendar-grid > b {
    font-size: 10px;
  }

  .mobile-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 40;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    min-height: 66px;
    border-top: 1px solid var(--muted-border);
    background: rgba(251, 249, 245, 0.92);
    backdrop-filter: blur(14px);
  }

  .mobile-nav .nav-link {
    display: grid;
    justify-items: center;
    gap: 3px;
    min-height: 66px;
    padding: 6px 2px;
    border-radius: 0;
  }

  .mobile-nav .nav-link span:last-child {
    font-size: 10px;
  }

  .login-page {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .login-hero {
    min-height: 280px;
  }
}
