:root {
  --bg: #fbf5f7;
  --card: #fffefe;
  --card-soft: #f6ecef;
  --line: #eadfe2;
  --text: #3b232b;
  --muted: #9b828b;
  --soft-muted: #bba9af;
  --primary: #893851;
  --primary-strong: #7b2f48;
  --shadow: 0 18px 36px rgba(77, 45, 58, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #eef1f5;
  color: var(--text);
  font-family: ui-serif, "Songti SC", "Noto Serif CJK SC", Georgia, serif;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.phone-shell {
  width: min(100vw, 760px);
  min-height: 100vh;
  margin: 0 auto;
  background: var(--bg);
  border: 1px solid #d9dde5;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
}

.screen {
  min-height: 100vh;
}

.hidden {
  display: none !important;
}

body.app-view #auth-screen {
  display: none !important;
}

body.app-view #app-screen {
  display: block !important;
}

body.auth-view #auth-screen {
  display: grid !important;
}

body.auth-view #app-screen {
  display: none !important;
}

.auth-screen {
  display: grid;
  place-items: center;
  padding: 28px;
}

.auth-card {
  width: min(100%, 430px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 34px;
}

.eyebrow {
  color: var(--primary);
  font-weight: 700;
  margin: 0 0 10px;
}

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

.auth-card h1,
.page-header h1 {
  font-size: 48px;
  line-height: 1.1;
  margin-bottom: 12px;
}

.auth-subtitle,
.page-header p {
  color: var(--muted);
  font-size: 24px;
}

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: var(--card-soft);
  padding: 6px;
  border-radius: 18px;
  margin: 28px 0;
}

.segment {
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--muted);
  padding: 12px;
}

.segment.active {
  background: var(--card);
  color: var(--text);
  box-shadow: 0 4px 12px rgba(77, 45, 58, 0.08);
}

.form,
.entry-dialog form {
  display: grid;
  gap: 18px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 18px;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: var(--text);
  padding: 14px 16px;
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(137, 56, 81, 0.12);
}

.primary-button {
  border: 0;
  border-radius: 18px;
  background: var(--primary);
  color: white;
  padding: 15px 18px;
  font-weight: 700;
}

.message {
  min-height: 24px;
  color: var(--primary);
  margin: 18px 0 0;
}

.app-screen {
  position: relative;
  padding-bottom: 132px;
}

.content {
  height: calc(100vh - 1px);
  overflow-y: auto;
  padding: 44px 36px 150px;
}

.page {
  display: none;
}

.page.active {
  display: block;
}

.page-header {
  border-bottom: 1px solid var(--line);
  padding: 0 0 34px;
  margin-bottom: 38px;
}

.page-header.compact {
  display: flex;
  justify-content: space-between;
  border-bottom: 0;
  margin-bottom: 26px;
  padding-bottom: 0;
}

.page-header.compact p {
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 26px;
  margin-top: 16px;
}

.timeline {
  display: grid;
  gap: 28px;
}

.month-group h2,
.year-toggle {
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 38px;
  color: #151515;
  margin: 0 0 20px;
}

.month-toggle {
  font-family: ui-sans-serif, system-ui, sans-serif;
  color: #5c5357;
  font-size: 24px;
  margin: 24px 0 18px;
}

.year-toggle,
.month-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
}

.year-toggle small,
.month-toggle small {
  color: #a7a1a3;
  font-size: 0.62em;
  font-weight: 400;
  margin-left: 8px;
}

.year-entries.collapsed,
.month-entries.collapsed {
  display: none;
}

.entry-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  margin-bottom: 16px;
}

.entry-date {
  display: grid;
  place-items: center;
  gap: 2px;
  border-right: 1px solid var(--line);
  background: #fff;
  padding: 26px 10px;
  font-family: ui-sans-serif, system-ui, sans-serif;
}

.entry-date strong {
  font-size: 48px;
  color: #0d0d0e;
}

.entry-date span {
  color: #a8a3a5;
  font-size: 18px;
}

.entry-body {
  padding: 26px 30px;
  min-width: 0;
}

.author {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-weight: 700;
  margin-bottom: 16px;
}

.dot {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: var(--primary);
}

.entry-body h4 {
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 24px;
  margin: 0 0 12px;
  color: #171717;
}

.mood-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  background: var(--card-soft);
  color: var(--primary);
  padding: 4px 12px;
  margin: 0 0 12px;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 15px;
  font-weight: 700;
}

.entry-body p {
  color: #6f686b;
  font-size: 23px;
  line-height: 1.75;
  margin-bottom: 14px;
  white-space: pre-wrap;
}

.meta {
  color: var(--soft-muted);
  font-size: 18px;
}

.entry-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--soft-muted);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 13px;
  margin-top: 8px;
}

.entry-photos,
.photo-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0;
}

.entry-photos button {
  width: 72px;
  height: 72px;
  border: 0;
  background: transparent;
  padding: 0;
  border-radius: 12px;
}

.entry-photos img,
.photo-preview img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.expand-button {
  border: 0;
  background: transparent;
  color: var(--primary);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
  font-weight: 700;
  padding: 0 0 8px;
}

.photo-preview span {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  color: var(--muted);
  background: var(--card);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 14px;
}

.entry-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 12px;
}

.entry-actions button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  border-radius: 999px;
  padding: 7px 14px;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 15px;
}

.entry-actions button:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 0 18px;
  margin-bottom: 36px;
}

.anniversary-box {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
  margin-bottom: 36px;
}

.search-box span {
  color: var(--muted);
  font-size: 32px;
}

.search-box input {
  border: 0;
  box-shadow: none;
  font-size: 24px;
}

.memory-list {
  display: grid;
  gap: 28px;
}

.memory-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
}

.memory-card .ago {
  background: var(--card-soft);
  color: #806b73;
  font-weight: 700;
  padding: 16px 26px;
  font-size: 20px;
}

.memory-card .body {
  padding: 24px 26px 28px;
}

.memory-card time {
  color: var(--muted);
  font-size: 18px;
}

.memory-card h3 {
  font-size: 28px;
  margin: 22px 0 12px;
}

.memory-card p {
  color: #75666c;
  font-size: 22px;
  line-height: 1.75;
}

.calendar-card {
  padding: 28px 16px 48px;
}

.calendar-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 46px;
}

.calendar-title h2 {
  font-size: 38px;
  margin: 0;
}

.icon-button {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--text);
  font-size: 42px;
}

.weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
}

.weekdays {
  color: var(--muted);
  font-size: 22px;
  margin-bottom: 24px;
}

.calendar-day {
  position: relative;
  min-height: 82px;
  border: 0;
  background: transparent;
  background-size: cover;
  background-position: center;
  color: var(--text);
  font-size: 26px;
  border-radius: 20px;
  overflow: hidden;
}

.calendar-day span {
  position: relative;
  z-index: 1;
}

.calendar-day.out {
  color: #c9bdc2;
}

.calendar-day.photo-day {
  color: #fff;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.55);
}

.calendar-day.photo-day::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(59, 35, 43, 0.18);
}

.calendar-day.has-entry::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 18px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  transform: translateX(-50%);
}

.calendar-day.today {
  border: 3px solid var(--primary);
  background-color: #ead1d9;
  color: var(--primary);
  font-weight: 700;
}

.calendar-day.today.photo-day {
  border-color: var(--primary);
  background-color: transparent;
}

.settings-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
  margin-bottom: 28px;
}

.profile-card {
  display: flex;
  align-items: center;
  gap: 26px;
}

.avatar {
  width: 94px;
  height: 94px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #ead1d9;
  color: var(--muted);
  font-size: 42px;
}

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

.profile-name-row h2 {
  font-size: 30px;
  margin-bottom: 4px;
}

.text-icon {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 26px;
}

.profile-card p {
  color: var(--muted);
  font-size: 20px;
  margin: 0;
}

.settings-card h3 {
  font-size: 26px;
  margin-bottom: 22px;
}

.color-picker {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.color-dot {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 4px solid transparent;
}

.color-dot.active {
  border-color: var(--text);
  outline: 4px solid #ec4899;
}

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 34px;
  gap: 28px;
}

.stats strong {
  display: block;
  font-size: 42px;
  font-weight: 400;
}

.stats span {
  color: var(--muted);
  font-size: 20px;
}

.members-list {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.member-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
}

.invite-box {
  margin-top: 14px;
}

.join-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.join-row button {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 16px;
  color: var(--primary);
  padding: 0 20px;
  font-weight: 700;
}

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

.theme-chip {
  border: 2px solid transparent;
  border-radius: 18px;
  background: transparent;
  color: var(--muted);
  padding: 12px 6px;
}

.theme-chip.active {
  border-color: var(--primary);
}

.theme-chip span {
  display: block;
  width: 66px;
  height: 34px;
  border-radius: 16px;
  margin: 0 auto 8px;
  background: linear-gradient(90deg, #fff1f5 33%, #893851 34% 66%, #ead1d9 67%);
}

.theme-chip[data-theme="paper"] span {
  background: linear-gradient(90deg, #f8eddf 33%, #4b2d1e 34% 66%, #ecdcc4 67%);
}

.theme-chip[data-theme="pink"] span {
  background: linear-gradient(90deg, #fff7fb 33%, #db2777 34% 66%, #ffe8f3 67%);
}

.theme-chip[data-theme="sakura"] span {
  background: linear-gradient(90deg, #fff8f8 33%, #f47288 34% 66%, #ffecec 67%);
}

.theme-chip[data-theme="ink"] span {
  background: linear-gradient(90deg, #f4f6f8 33%, #1f2937 34% 66%, #d7dee9 67%);
}

.theme-chip[data-theme="sea"] span {
  background: linear-gradient(90deg, #e7f8ff 33%, #15536d 34% 66%, #bfe7f5 67%);
}

.export-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.export-card p {
  color: var(--muted);
  font-size: 19px;
  margin: 0;
}

.outline-button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  border-radius: 16px;
  padding: 12px 20px;
  font-weight: 700;
  white-space: nowrap;
}

.logout-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 26px;
  display: block;
  margin: 42px auto;
}

.footer-note {
  color: #c1adb4;
  text-align: center;
  font-size: 22px;
}

.floating-button {
  position: fixed;
  left: min(calc(50% + 270px), calc(100vw - 132px));
  top: 36px;
  width: 82px;
  height: 82px;
  border: 0;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  font-size: 42px;
  box-shadow: 0 16px 32px rgba(77, 45, 58, 0.18);
  z-index: 5;
}

.tabbar {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(100vw, 760px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  background: rgba(255, 255, 255, 0.94);
  border-top: 1px solid var(--line);
  padding: 16px 44px 18px;
  z-index: 4;
}

.tab {
  border: 0;
  background: transparent;
  border-radius: 20px;
  color: #999;
  display: grid;
  place-items: center;
  gap: 4px;
  font-size: 30px;
  padding: 12px 4px;
  min-height: 100px;
}

.tab svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tab span {
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 20px;
}

.tab.active {
  background: #f0eeee;
  color: #111;
}

.entry-dialog {
  width: min(92vw, 560px);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 0;
  background: #fff;
  color: var(--text);
}

.entry-dialog::backdrop {
  background: rgba(55, 36, 44, 0.26);
}

.entry-dialog form {
  padding: 24px;
  gap: 16px;
}

.entry-dialog header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 4px;
}

.entry-dialog h2 {
  font-size: 24px;
  margin: 0;
}

.image-viewer {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  background: rgba(32, 20, 25, 0.86);
  padding: 24px;
}

.image-viewer.hidden {
  display: none !important;
}

.image-viewer img {
  max-width: min(96vw, 980px);
  max-height: 88vh;
  border-radius: 16px;
  object-fit: contain;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.image-close {
  position: fixed;
  top: 20px;
  right: 24px;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  font-size: 36px;
  line-height: 1;
}

.image-nav {
  position: fixed;
  top: 50%;
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  font-size: 42px;
  line-height: 1;
  transform: translateY(-50%);
}

.image-nav.prev {
  left: 24px;
}

.image-nav.next {
  right: 24px;
}

.image-counter {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  min-height: 30px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  padding: 6px 14px;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 700;
}

.empty {
  color: var(--muted);
  font-size: 22px;
  text-align: center;
  padding: 70px 20px;
}

@media (max-width: 560px) {
  .phone-shell {
    border-radius: 0;
    border: 0;
  }

  .content {
    padding: 34px 22px 140px;
  }

  .auth-card h1,
  .page-header h1 {
    font-size: 40px;
  }

  .entry-card {
    grid-template-columns: 94px 1fr;
  }

  .entry-body {
    padding: 22px 20px;
  }

  .entry-body p {
    font-size: 20px;
  }

  .floating-button {
    left: auto;
    right: 24px;
  }

  .tabbar {
    padding-left: 18px;
    padding-right: 18px;
  }

  .export-card {
    align-items: stretch;
    flex-direction: column;
  }

  .anniversary-box {
    grid-template-columns: 1fr;
  }
}

/* Day One inspired direction: clean timeline + photo-forward calendar */
:root {
  --bg: #f7f9fc;
  --card: #ffffff;
  --card-soft: #eef6ff;
  --line: #e4e9f0;
  --text: #18202a;
  --muted: #657080;
  --soft-muted: #9aa3ae;
  --primary: #0a84ff;
  --primary-strong: #0069d9;
  --shadow: 0 18px 40px rgba(20, 31, 45, 0.08);
}

body {
  background: #eef2f7;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

.phone-shell {
  border-color: #dce2e8;
  border-radius: 28px;
}

.auth-card h1,
.page-header h1 {
  font-size: 34px;
  line-height: 1.12;
  margin-bottom: 8px;
  letter-spacing: 0;
}

.auth-subtitle,
.page-header p {
  font-size: 16px;
}

.content {
  padding: 34px 30px 132px;
}

.page-header {
  padding-bottom: 24px;
  margin-bottom: 28px;
}

.page-header.compact p {
  font-size: 15px;
  margin-top: 8px;
}

.timeline {
  gap: 18px;
}

.year-toggle {
  font-size: 30px;
  color: var(--text);
  margin-bottom: 8px;
}

.month-toggle {
  color: var(--muted);
  font-size: 17px;
  margin: 18px 0 4px;
}

.year-toggle small,
.month-toggle small {
  color: var(--soft-muted);
}

.entry-card {
  grid-template-columns: 66px 1fr;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  margin-bottom: 0;
  padding: 18px 0;
}

.entry-date {
  align-content: start;
  justify-items: center;
  place-items: initial;
  border-right: 0;
  background: transparent;
  padding: 0 8px 0 0;
}

.entry-date strong {
  font-size: 30px;
  line-height: 1;
  color: var(--text);
}

.entry-date span {
  color: var(--soft-muted);
  font-size: 13px;
}

.entry-body {
  padding: 0 0 0 14px;
}

.author {
  margin-bottom: 9px;
  font-size: 14px;
}

.dot {
  width: 10px;
  height: 10px;
}

.entry-body h4 {
  color: var(--text);
  font-size: 18px;
  margin-bottom: 8px;
}

.entry-body p,
.memory-card p {
  color: #4f5a67;
  font-size: 15px;
  line-height: 1.65;
}

.meta {
  font-size: 13px;
}

.mood-pill {
  min-height: 28px;
  background: #eef6ff;
  font-size: 13px;
}

.entry-photos button,
.entry-photos img,
.photo-preview img {
  width: 84px;
  height: 84px;
  border-radius: 14px;
}

.entry-actions button {
  font-size: 13px;
}

.entry-meta-row {
  font-size: 13px;
}

label {
  font-size: 14px;
  font-weight: 700;
}

input,
textarea,
select {
  font-size: 15px;
}

.settings-card p,
.invite-box {
  font-size: 14px;
}

.anniversary-box,
.memory-card,
.settings-card,
.auth-card {
  box-shadow: 0 12px 26px rgba(20, 31, 45, 0.05);
}

.memory-card {
  border-radius: 20px;
}

.memory-card .ago {
  color: var(--primary);
  font-size: 15px;
}

.memory-card time {
  font-size: 14px;
}

.memory-card h3 {
  font-size: 20px;
}

.calendar-card {
  padding: 12px 4px 40px;
}

.calendar-title {
  margin-bottom: 28px;
}

.calendar-title h2 {
  font-size: 30px;
}

.weekdays {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
}

.calendar-grid {
  gap: 7px;
}

.calendar-day {
  min-height: 78px;
  border-radius: 16px;
  background-color: #f1f4f8;
  font-size: 14px;
  font-weight: 700;
}

.calendar-day.has-entry::after {
  bottom: 12px;
  width: 6px;
  height: 6px;
}

.calendar-day.today {
  border: 2px solid var(--primary);
  background-color: #eaf3ff;
}

.calendar-day.photo-day {
  color: #fff;
}

.calendar-day.photo-day::before {
  background: rgba(20, 31, 45, 0.24);
}

.settings-card {
  border-radius: 20px;
  padding: 22px;
  margin-bottom: 18px;
}

.settings-card h3 {
  font-size: 18px;
  margin-bottom: 18px;
}

.avatar {
  background: var(--card-soft);
}

.floating-button {
  width: 62px;
  height: 62px;
  font-size: 32px;
  box-shadow: 0 16px 32px rgba(10, 132, 255, 0.24);
}

.tabbar {
  padding: 12px 36px 14px;
}

.tab {
  min-height: 78px;
  border-radius: 16px;
  font-size: 24px;
  padding: 8px 4px;
}

.tab svg {
  width: 26px;
  height: 26px;
}

.tab span {
  font-size: 13px;
}

.tab.active {
  background: #eef6ff;
  color: var(--primary);
}

.diary-search {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  padding: 0 14px;
  margin: 0 0 18px;
  box-shadow: 0 10px 22px rgba(20, 31, 45, 0.04);
}

.diary-search svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--soft-muted);
  stroke-width: 2;
  stroke-linecap: round;
}

.diary-search input {
  border: 0;
  box-shadow: none;
  padding-left: 0;
}

.theme-chip span {
  background: linear-gradient(90deg, #f7f9fc 33%, #0a84ff 34% 66%, #eef6ff 67%);
}

@media (max-width: 560px) {
  .content {
    padding: 30px 20px 124px;
  }

  .auth-card h1,
  .page-header h1 {
    font-size: 32px;
  }

  .entry-card {
    grid-template-columns: 58px 1fr;
  }

  .entry-body {
    padding: 0 0 0 10px;
  }
}
