:root {
  --cream: #fffaf5;
  --paper: #fffdfa;
  --ink: #51473f;
  --muted: #998d82;
  --pink: #e3929e;
  --rose: #ce7385;
  --line: #eee5db;
  --green: #899c83;
  --sage: #eef2e8;
  --shadow: 0 8px 28px #6c4d3510;
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  color: var(--ink);
  font-synthesis: none;
  background: var(--cream);
  font-size: 14px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  cursor: pointer;
  color: inherit;
  border: 0;
  background: none;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
button,
a {
  touch-action: manipulation;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #d997a4;
  outline-offset: 4px;
}
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #e2a7b0;
  outline-offset: 2px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-weight: 650;
}
p {
  line-height: 1.85;
}
img {
  max-width: 100%;
  display: block;
}
.muted {
  color: var(--muted);
}
.eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2.5px;
  color: #a59586;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border-radius: 30px;
  background: #fce9e9;
  color: #ad7380;
  font-size: 11px;
}
.pill.sage {
  background: var(--sage);
  color: #859077;
}
.primary,
.secondary,
.soft {
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
}
.primary {
  background: var(--pink);
  color: white;
  box-shadow: 0 5px 12px #ce738520;
}
.primary:hover {
  background: var(--rose);
}
.secondary {
  border: 1px solid #e4d7cb;
  background: #fffdfa;
}
.secondary:hover {
  background: #f7f0e8;
}
.soft {
  background: #f9eeee;
  color: #b27480;
}
.wide {
  width: 100%;
}
.text-button {
  font-size: 12px;
  color: #a78377;
  padding: 8px;
}
.icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  font-size: 22px;
}
.icon:hover {
  background: #f4ece5;
}
.danger {
  color: #c57878;
}
.danger-bg {
  background: #c57878;
}
.spaced {
  margin-top: 16px;
}
.loading {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}
.loading img {
  width: 240px;
}
.layout {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: 224px;
  position: fixed;
  inset: 0 auto 0 0;
  background: #fffdf9;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 31px 19px 14px;
  z-index: 10;
}
.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 0 38px;
}
.brand-mark {
  font-family: Georgia, serif;
  font-size: 43px;
  letter-spacing: 3px;
  font-weight: 700;
  color: #715a48;
}
.brand-mark span {
  font-size: 27px;
  color: #d59a9e;
  font-style: italic;
  padding: 0 6px;
}
.brand strong {
  font-size: 15px;
  letter-spacing: 5px;
  margin-top: 7px;
}
.brand small {
  font-size: 8px;
  letter-spacing: 3px;
  color: #b1a092;
  margin-top: 7px;
}
.sidebar nav {
  display: grid;
  gap: 9px;
}
.sidebar nav a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 15px;
  border-radius: 12px;
  font-size: 13px;
  color: #998b7e;
  font-weight: 550;
  position: relative;
}
.sidebar nav a > span {
  font-size: 22px;
  line-height: 1;
  width: 23px;
  text-align: center;
  font-family: Georgia, serif;
}
.sidebar nav a.active {
  background: #fbeaea;
  color: #bc7b86;
}
.sidebar nav a.active:before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  height: 14px;
  width: 3px;
  border-radius: 3px;
  background: #d4929d;
}
.sidebar nav a:hover {
  background: #f8f1e9;
}
.badge {
  margin-left: auto;
  background: #dc8e9b;
  color: white;
  font-size: 10px;
  padding: 2px 5px;
  border-radius: 8px;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 24px;
}
.tiny-dogs {
  text-align: center;
  margin-bottom: 25px;
}
.tiny-dogs img {
  width: 145px;
  margin: auto;
  opacity: 0.82;
}
.tiny-dogs p {
  font-size: 11px;
  color: #ad9d8e;
}
.settings-link {
  display: block;
  padding: 12px 15px;
  color: #a29385;
  font-size: 12px;
}
.settings-link.active {
  color: #bd7985;
}
.profile {
  border-top: 1px solid var(--line);
  padding-top: 17px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.avatar,
.author-dot {
  display: inline-grid;
  place-items: center;
  background: #f5e6d8;
  color: #ae8871;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  font-size: 12px;
}
.profile div {
  flex: 1;
}
.profile strong {
  font-size: 12px;
  display: block;
}
.profile small {
  font-size: 9px;
  display: block;
  color: #b09f90;
  margin-top: 4px;
}
.profile .icon {
  font-size: 19px;
  width: 30px;
}
.main-wrap {
  margin-left: 224px;
  flex: 1;
  min-width: 0;
}
.topbar {
  height: 70px;
  border-bottom: 1px solid var(--line);
  padding: 0 45px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #a49586;
  background: #fffdf966;
}
.topbar > div {
  display: flex;
  gap: 22px;
  align-items: center;
}
.mail-button {
  position: relative;
  font-size: 20px;
}
.mail-button b {
  position: absolute;
  background: #d48896;
  color: white;
  font: 8px system-ui;
  border-radius: 50%;
  top: -3px;
  right: -8px;
  min-width: 12px;
  text-align: center;
}
#content {
  max-width: 1250px;
  margin: 0 auto;
  padding: 36px 45px 15px;
}
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 28px;
}
.page-head h1 {
  font-size: 27px;
  letter-spacing: 1px;
  margin: 10px 0 8px;
}
.head-heart {
  font-size: 23px;
  color: #d4939c;
  font-family: Georgia, serif;
  padding-left: 13px;
}
.page-head p {
  color: #a39588;
  font-size: 12px;
}
.hero {
  background: #f8ede2;
  border: 1px solid #f0e1d2;
  border-radius: 22px;
  min-height: 304px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 29px 38px;
  position: relative;
  overflow: hidden;
}
.hero:before {
  content: "";
  position: absolute;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  right: -70px;
  top: -130px;
  background: #fff9f05c;
}
.hero .pill {
  background: #fffbf2;
  color: #927c69;
  border: 1px solid #eadac9;
  font-size: 11px;
}
.hero .pill span {
  color: #d78f9a;
}
.hero-copy {
  position: relative;
  z-index: 1;
}
.hero-copy h2 {
  font-size: 30px;
  line-height: 1.65;
  letter-spacing: 2px;
  margin: 15px 0 12px;
  color: #695242;
}
.hero-copy h2 > span {
  position: relative;
}
.hero-copy h2 > span:after {
  content: "";
  height: 8px;
  left: 0;
  right: 0;
  bottom: 2px;
  position: absolute;
  background: #f1c7c3;
  border-radius: 50%;
  z-index: -1;
}
.hero-copy p {
  color: #a18d79;
  font-size: 11px;
}
.hero-copy p strong {
  font-size: 16px;
  color: #bd8290;
  margin: 0 5px;
}
.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  margin-top: 17px;
  font-size: 11px;
  color: #a97679;
}
.hero-art {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.hero-art img {
  width: 320px;
  margin-top: 30px;
}
.doodle {
  position: absolute;
  right: 20px;
  top: 0;
  font:
    italic 16px/1.4 Georgia,
    serif;
  transform: rotate(8deg);
  color: #bc8a89;
  text-align: center;
}
.art-tag {
  position: absolute;
  bottom: 0;
  font:
    9px Georgia,
    serif;
  letter-spacing: 3px;
  color: #b99d80;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 22px 0 33px;
}
.stats > a {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 20px 18px;
  display: flex;
  align-items: center;
  gap: 13px;
}
.stat-icon {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border-radius: 13px;
  font-size: 24px;
  flex-shrink: 0;
  font-family: Georgia, serif;
}
.green {
  background: #edf1e6;
  color: #96a38b;
}
.pink {
  background: #fbeaea;
  color: #d798a2;
}
.peach {
  background: #f8eedd;
  color: #c5a16e;
}
.stats a > div {
  flex: 1;
}
.stats a > div > span {
  font-size: 10px;
  color: #a5988b;
  display: block;
  margin-bottom: 8px;
}
.stats strong {
  font-family: Georgia, serif;
  font-size: 26px;
  color: #766455;
  line-height: 1;
}
.stats small {
  font:
    9px "Microsoft YaHei",
    sans-serif;
  color: #aa9b8d;
}
.stats a > span:last-child {
  color: #c5b6a6;
}
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin: 0 0 19px;
}
.section-title h2 {
  font-size: 17px;
  letter-spacing: 0.5px;
}
.section-title p {
  font-size: 10px;
  color: #a69a8f;
  margin-top: 5px;
}
.handwritten {
  font:
    italic 16px Georgia,
    serif;
  color: #c19b95;
  transform: rotate(-4deg);
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}
.feature {
  border: 1px solid var(--line);
  border-radius: 16px;
  position: relative;
  padding: 22px 20px 17px;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  overflow: hidden;
}
.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.feature.goal {
  background: #f0f2e8;
  border-color: #e5e8da;
}
.feature.need {
  background: #fceeee;
  border-color: #f2e0e0;
}
.feature.complaint {
  background: #f4f0f7;
  border-color: #e9e2ed;
}
.feature.memory {
  background: #fcf1de;
  border-color: #f0e6d2;
}
.feature-number {
  position: absolute;
  top: 17px;
  right: 17px;
  color: #c3b8ab;
  font:
    11px Georgia,
    serif;
}
.feature-icon {
  font:
    33px Georgia,
    serif;
  color: #929f80;
  display: block;
  height: 47px;
}
.feature.need .feature-icon {
  color: #d08e98;
}
.feature.complaint .feature-icon {
  color: #afa0be;
}
.feature.memory .feature-icon {
  color: #c1a377;
}
.feature h3 {
  font-size: 15px;
  margin: 8px 0;
}
.feature p {
  font-size: 10px;
  line-height: 1.85;
  min-height: 37px;
  color: #a29587;
}
.feature-link {
  border-top: 1px solid #dacdc54f;
  margin-top: 16px;
  padding-top: 14px;
  font-size: 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #a09380;
}
.feature-link b {
  font-size: 17px;
  font-weight: 400;
}
.recent-section {
  margin-top: 32px;
}
.section-title > a {
  font-size: 10px;
  color: #ac8c7d;
}
.recent-list {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.recent-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 20px;
  text-align: left;
  border-bottom: 1px solid #f1eae2;
}
.recent-item:last-child {
  border: 0;
}
.recent-item > div {
  flex: 1;
}
.recent-item strong {
  font-size: 12px;
  display: block;
  margin-top: 6px;
}
.recent-item small {
  font-size: 9px;
  color: #aa9a8c;
}
.recent-item time,
.recent-item > span:last-child {
  font-size: 10px;
  color: #b3a391;
}
.recent-item:hover {
  background: #fbf5ef;
}
footer {
  text-align: center;
  padding: 26px;
  font:
    10px Georgia,
    serif;
  color: #baa798;
  letter-spacing: 0.7px;
}
footer span {
  color: #d5a2a6;
  padding-left: 5px;
}
.filters {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}
.tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.tabs button {
  padding: 10px 15px;
  font-size: 11px;
  color: #a19282;
  border-radius: 10px;
}
.tabs button.selected {
  background: #f5e6e3;
  color: #b57b80;
}
.search {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fffdf9;
  padding: 0 12px;
  color: #b3a493;
  max-width: 230px;
}
.search input {
  border: 0;
  margin: 0;
  background: none;
  padding: 11px 0;
  width: 160px;
  font-size: 11px;
}
.entry-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.entry-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 17px;
  overflow: hidden;
  box-shadow: 0 4px 14px #75604904;
}
.entry-inner {
  padding: 24px;
}
.entry-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.status {
  font-size: 9px;
  color: #a6a58e;
}
.status.unread {
  color: #d5909a;
}
.little-star {
  font:
    25px Georgia,
    serif;
  color: #c6b08c;
}
.card-title {
  display: block;
  padding: 0;
  text-align: left;
  margin: 17px 0 10px;
}
.card-title h3 {
  font-size: 17px;
  overflow-wrap: anywhere;
}
.card-body {
  font-size: 12px;
  color: #a39586;
  white-space: pre-wrap;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 44px;
}
.due {
  font-size: 10px;
  color: #b09d8d;
  margin-top: 18px;
}
.card-bottom {
  display: flex;
  gap: 8px;
  align-items: center;
  border-top: 1px dashed #eadfd3;
  padding-top: 14px;
  margin-top: 20px;
}
.author-dot {
  width: 24px;
  height: 24px;
  font-size: 9px;
}
.card-bottom small {
  font-size: 9px;
  color: #a69686;
  flex: 1;
}
.like {
  color: #c78d99;
  font-size: 16px;
  padding: 5px;
}
.completed {
  background: #f8faf3;
}
.cover {
  position: relative;
  padding: 0;
  width: 100%;
  display: block;
  height: 230px;
  background: #f6ece2;
}
.cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cover span {
  position: absolute;
  bottom: 13px;
  left: 15px;
  background: #fffdf9df;
  border-radius: 9px;
  padding: 7px 10px;
  font-size: 10px;
}
.empty {
  min-height: 240px;
  text-align: center;
  border: 1px dashed #e9dbcc;
  border-radius: 18px;
  background: #fffdf866;
  padding: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.empty img {
  width: 150px;
  margin-bottom: 8px;
  opacity: 0.85;
}
.empty h3 {
  font-size: 13px;
  font-weight: 500;
  color: #9e8c7d;
}
.empty p {
  font-size: 10px;
  color: #b5a494;
  margin: 8px 0 18px;
}
.empty .primary {
  padding: 10px 15px;
  min-height: 36px;
  font-size: 11px;
}
dialog {
  border: 1px solid #ebdfd4;
  border-radius: 22px;
  padding: 28px;
  max-width: 640px;
  width: calc(100% - 32px);
  max-height: 90vh;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 20px 100px #4c382c33;
}
dialog::backdrop {
  background: #443d3659;
  backdrop-filter: blur(4px);
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 23px;
}
.dialog-head h2 {
  font-size: 22px;
  margin-top: 9px;
  overflow-wrap: anywhere;
}
.dialog-head p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 9px;
}
.close {
  flex-shrink: 0;
  margin-top: -9px;
  margin-right: -9px;
  font-size: 26px;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
}
label {
  display: block;
  font-size: 12px;
  color: #918173;
  margin: 14px 0;
}
input,
textarea,
select {
  display: block;
  width: 100%;
  border: 1px solid #e9dfd4;
  border-radius: 10px;
  padding: 12px 14px;
  margin-top: 8px;
  background: #fff;
  color: #645449;
  font-size: 13px;
  min-width: 0;
}
input::placeholder,
textarea::placeholder {
  color: #c3b4a7;
}
textarea {
  resize: vertical;
  line-height: 1.8;
}
.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.upload-label {
  position: relative;
}
.upload-label input {
  padding: 13px;
  background: #fbf6ef;
  border-style: dashed;
  font-size: 11px;
}
.upload-label span {
  display: block;
  font-size: 9px;
  color: #b3a293;
  margin-top: 6px;
}
.photo-preview,
.photos {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.photo-preview img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 9px;
}
.photos {
  margin: 20px 0;
}
.photos button {
  padding: 0;
  flex: 1 0 100px;
  max-width: 180px;
}
.photos img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
}
.full-photo {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
}
.full-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 1.9;
}
.detail-body > .muted {
  font-size: 10px;
  margin-top: 12px;
}
.replies {
  margin-top: 24px;
  border-top: 1px dashed var(--line);
  padding-top: 18px;
}
.replies h3,
.complete-form h3 {
  font-size: 15px;
  margin-bottom: 16px;
}
.reply {
  background: #f8f1e9;
  padding: 13px 16px;
  border-radius: 12px;
  margin: 10px 0;
}
.reply strong {
  font-size: 11px;
  color: #a08773;
}
.reply small {
  font-size: 9px;
  color: #b4a392;
  margin-left: 10px;
  font-weight: 400;
}
.reply p {
  margin-top: 6px;
  font-size: 12px;
}
.message-status {
  margin-top: 17px;
  padding: 10px 14px;
  background: #f4f3e9;
  border-radius: 10px;
  font-size: 10px;
  color: #9c9d7e;
}
.detail-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 25px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.detail-actions .danger {
  margin-left: auto;
}
.complete-form,
.completion-note {
  margin-top: 23px;
  background: #f3f5eb;
  padding: 18px;
  border-radius: 13px;
}
.completion-note strong {
  font-size: 12px;
  color: #95a081;
}
.completion-note p {
  margin-top: 10px;
}
.ai-box {
  background: #f8f2f4;
  border: 1px solid #f0e1e7;
  border-radius: 13px;
  padding: 17px;
  margin-top: 17px;
}
.ai-box strong {
  font-size: 12px;
  color: #b08092;
}
.ai-box p {
  font-size: 10px;
  color: #ad95a1;
  margin-top: 5px;
}
.ai-box label {
  margin: 12px 0;
  font-size: 10px;
}
.ai-box input {
  font-size: 11px;
  margin-top: 5px;
  padding: 9px;
}
.ai-box button {
  font-size: 11px;
  padding: 9px 12px;
  min-height: 35px;
}
#ai-result p {
  margin: 15px 0;
  font-size: 12px;
  color: #87717b;
}
.form-error {
  font-size: 11px;
  color: #c27474;
  margin-top: 10px;
  min-height: 15px;
}
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 28px;
}
.panel h2 {
  font-size: 17px;
  margin-bottom: 20px;
}
.panel > .muted {
  font-size: 11px;
  margin-bottom: 14px;
}
.export-panel {
  grid-column: 1/-1;
  display: flex;
  align-items: center;
  gap: 20px;
}
.export-panel > div {
  flex: 1;
}
.export-panel h2 {
  margin-bottom: 7px;
  font-size: 15px;
}
.export-panel p {
  font-size: 11px;
}
.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-art {
  background: #f7eddf;
  padding: 65px 10%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}
.wordmark {
  font:
    bold 39px Georgia,
    serif;
  position: absolute;
  top: 42px;
  left: 12%;
  letter-spacing: 4px;
  color: #705744;
}
.wordmark i {
  font-weight: 400;
  color: #cb9199;
  margin-left: 10px;
}
.auth-art h1 {
  font-size: 38px;
  letter-spacing: 3px;
  line-height: 1.7;
  margin: 20px 0;
}
.auth-art > p {
  font-size: 13px;
  color: #a48d76;
}
.auth-art img {
  width: 360px;
  margin: 10px auto 0;
}
.auth-caption {
  font-size: 11px;
  text-align: center;
  letter-spacing: 2px;
  color: #b49980;
  margin-top: 10px;
}
.auth-panel {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 45px;
  background: var(--cream);
}
.auth-card {
  width: 100%;
  max-width: 460px;
}
.auth-card h2 {
  font-size: 24px;
  margin: 23px 0 10px;
}
.auth-card > .muted {
  font-size: 12px;
  margin-bottom: 26px;
}
.auth-card label {
  margin: 17px 0;
}
.auth-foot {
  font-size: 10px;
  text-align: center;
  color: #b5a491;
  margin-top: 22px;
}
fieldset {
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 10px 15px;
  margin: 8px 0;
}
legend {
  font-size: 12px;
  color: #bc8690;
  padding: 0 7px;
}
.auth fieldset label {
  font-size: 10px;
  margin: 12px 0;
}
.auth fieldset input {
  font-size: 12px;
  padding: 10px;
}
.auth .two {
  gap: 13px;
}
#toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s,
    transform 0.2s;
  background: #67574bea;
  color: #fff8f0;
  border-radius: 13px;
  padding: 13px 23px;
  font-size: 12px;
  z-index: 100;
  max-width: calc(100% - 30px);
  text-align: center;
  box-shadow: var(--shadow);
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
@media (min-width: 1500px) {
  .hero {
    min-height: 340px;
  }
  .hero-copy h2 {
    font-size: 35px;
  }
  .hero-art img {
    width: 350px;
  }
}
@media (max-width: 1100px) {
  .sidebar {
    width: 190px;
    padding-left: 13px;
    padding-right: 13px;
  }
  .main-wrap {
    margin-left: 190px;
  }
  #content {
    padding: 30px 28px;
  }
  .topbar {
    padding: 0 28px;
  }
  .hero {
    padding: 26px;
  }
  .hero-copy h2 {
    font-size: 26px;
  }
  .stats > a {
    padding: 17px 13px;
    gap: 9px;
  }
  .stats small {
    display: block;
    font-size: 9px;
    margin-top: 5px;
  }
  .stats a > span:last-child {
    display: none;
  }
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .feature {
    padding: 20px;
  }
  .feature p {
    min-height: 0;
  }
  .feature-icon {
    height: 35px;
  }
  .auth-art {
    padding-left: 9%;
    padding-right: 9%;
  }
  .auth-art h1 {
    font-size: 31px;
  }
  .auth-panel {
    padding: 35px;
  }
}
@media (max-width: 760px) {
  .sidebar {
    position: fixed;
    inset: auto 0 0;
    height: 69px;
    width: 100%;
    padding: 5px 8px;
    background: #fffdfbf2;
    border: 0;
    border-top: 1px solid var(--line);
    backdrop-filter: blur(10px);
  }
  .brand,
  .sidebar-bottom {
    display: none;
  }
  .sidebar nav {
    display: flex;
    justify-content: space-around;
    gap: 0;
    height: 100%;
    align-items: center;
  }
  .sidebar nav a {
    font-size: 9px;
    padding: 7px 8px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 48px;
    font-weight: 400;
    border-radius: 10px;
  }
  .sidebar nav a > span {
    font-size: 20px;
  }
  .sidebar nav a.active:before {
    display: none;
  }
  .badge {
    position: absolute;
    right: 1px;
    top: 1px;
    font-size: 8px;
    margin: 0;
  }
  .main-wrap {
    margin: 0;
    padding-bottom: 69px;
  }
  .topbar {
    height: 56px;
    padding: 0 20px;
    font-size: 10px;
  }
  .today {
    display: none;
  }
  #content {
    padding: 25px 20px 10px;
  }
  .page-head {
    gap: 12px;
    margin-bottom: 23px;
  }
  .page-head h1 {
    font-size: 24px;
  }
  .page-head .primary {
    font-size: 10px;
    min-height: 38px;
    padding: 10px 12px;
  }
  .page-head p {
    font-size: 10px;
    max-width: 245px;
  }
  .eyebrow {
    font-size: 8px;
    letter-spacing: 2px;
  }
  .hero {
    grid-template-columns: 1fr 1fr;
    min-height: 248px;
    padding: 24px 21px;
    border-radius: 18px;
  }
  .hero-copy h2 {
    font-size: 21px;
    letter-spacing: 1px;
    line-height: 1.65;
    margin: 16px 0 10px;
  }
  .hero .pill {
    font-size: 9px;
    padding: 5px 9px;
    max-width: 100%;
    white-space: nowrap;
  }
  .hero-copy p {
    font-size: 9px;
  }
  .hero-copy p strong {
    font-size: 15px;
  }
  .hero-art img {
    width: 210px;
    max-width: 140%;
    margin-top: 34px;
    margin-left: -5px;
  }
  .doodle {
    font-size: 12px;
    right: 5px;
    top: 13px;
  }
  .art-tag {
    font-size: 6px;
    letter-spacing: 1px;
    bottom: 6px;
  }
  .hero-link {
    font-size: 9px;
    gap: 5px;
    white-space: nowrap;
    margin-top: 17px;
  }
  .stats {
    gap: 8px;
    margin: 15px 0 26px;
  }
  .stats > a {
    display: block;
    padding: 14px 10px;
    border-radius: 13px;
  }
  .stat-icon {
    width: 31px;
    height: 31px;
    font-size: 20px;
    border-radius: 10px;
  }
  .stats a > div > span {
    font-size: 8px;
    margin: 10px 0 8px;
    white-space: nowrap;
  }
  .stats strong {
    font-size: 23px;
  }
  .stats small {
    font-size: 8px;
    white-space: nowrap;
    margin-top: 7px;
  }
  .section-title {
    margin-bottom: 15px;
  }
  .section-title h2 {
    font-size: 16px;
  }
  .section-title p {
    font-size: 9px;
  }
  .handwritten {
    font-size: 12px;
  }
  .feature-grid {
    gap: 11px;
  }
  .feature {
    padding: 18px 15px 14px;
    border-radius: 14px;
  }
  .feature h3 {
    font-size: 14px;
  }
  .feature p {
    font-size: 9px;
    min-height: 33px;
  }
  .feature-icon {
    font-size: 30px;
    height: 36px;
  }
  .feature-link {
    font-size: 8px;
    margin-top: 13px;
    padding-top: 11px;
  }
  .feature-number {
    font-size: 9px;
    top: 15px;
    right: 15px;
  }
  .recent-section {
    margin-top: 26px;
  }
  .recent-item {
    gap: 10px;
    padding: 14px;
  }
  .recent-item time {
    font-size: 8px;
    white-space: nowrap;
  }
  .recent-item strong {
    font-size: 11px;
  }
  .recent-item small {
    font-size: 8px;
  }
  .empty {
    min-height: 230px;
  }
  .empty img {
    width: 130px;
  }
  .empty h3 {
    font-size: 12px;
  }
  .filters {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 19px;
  }
  .tabs button {
    font-size: 10px;
    padding: 9px 13px;
  }
  .search {
    max-width: none;
  }
  .search input {
    width: 100%;
  }
  .entry-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .entry-inner {
    padding: 20px;
  }
  .cover {
    height: 230px;
  }
  .settings-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .panel {
    padding: 22px;
  }
  .export-panel {
    grid-column: auto;
    flex-wrap: wrap;
  }
  .export-panel > div {
    min-width: 200px;
  }
  .export-panel .secondary {
    width: 100%;
  }
  .auth {
    display: block;
  }
  .auth-art {
    padding: 75px 28px 24px;
  }
  .wordmark {
    top: 24px;
    left: 28px;
    font-size: 27px;
  }
  .auth-art > .eyebrow {
    display: none;
  }
  .auth-art h1 {
    font-size: 24px;
    margin: 12px 0;
    line-height: 1.5;
  }
  .auth-art > p {
    font-size: 10px;
  }
  .auth-art img {
    width: 175px;
    position: absolute;
    right: 12px;
    bottom: 10px;
  }
  .auth-caption {
    font-size: 8px;
    text-align: left;
    margin-top: 19px;
    letter-spacing: 1px;
  }
  .auth-panel {
    padding: 30px 25px 45px;
  }
  .auth-card h2 {
    font-size: 21px;
    margin: 15px 0 10px;
  }
  .auth-card > .muted {
    margin-bottom: 17px;
    font-size: 11px;
  }
  .auth .two {
    gap: 9px;
  }
  fieldset {
    padding: 8px 10px;
  }
  .auth fieldset input {
    padding: 9px 8px;
    font-size: 11px;
  }
  .auth-card label {
    font-size: 11px;
  }
  dialog {
    padding: 22px;
    width: calc(100% - 24px);
    border-radius: 17px;
    max-height: 92vh;
  }
  .dialog-head h2 {
    font-size: 20px;
  }
  .dialog-head p {
    font-size: 10px;
  }
  .dialog-actions {
    gap: 8px;
  }
  .dialog-actions button {
    font-size: 11px;
    padding: 11px 13px;
  }
  .two {
    gap: 12px;
  }
  .full-text {
    font-size: 12px;
  }
  footer {
    font-size: 8px;
    padding: 23px 15px;
  }
  #toast {
    bottom: 83px;
    font-size: 11px;
    padding: 12px 17px;
  }
  .head-heart {
    font-size: 19px;
    padding-left: 9px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
