:root {
  --ink: #182e4f;
  --muted: #65758a;
  --paper: #f8f9fa;
  --white: #fff;
  --line: #dce2e9;
  --accent: #b64927;
  --blue: #e6ecf6;
  --radius: 16px;
  --gap: 65px;
  --pad-y: 62px;
  --lead: 1.7;
  --serif: Georgia, "Noto Serif SC", "Songti SC", SimSun, serif;
  --sans:
    Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 30px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: var(--lead);
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.5;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
a,
input,
select,
textarea {
  outline: 3px solid transparent;
  outline-offset: 4px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline-color: #df7b43;
  transition: outline-color 0.18s ease;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-weight: 500;
  line-height: 1.35;
}
h1,
h2 {
  font-family: var(--serif);
}
h1 {
  font-size: clamp(38px, 4.8vw, 68px);
  letter-spacing: -0.035em;
}
h2 {
  font-size: 30px;
}
h3 {
  font-size: 20px;
}
p {
  overflow-wrap: anywhere;
}
img {
  max-width: 100%;
  display: block;
}
button {
  color: inherit;
}
button,
input,
select {
  min-height: 44px;
}
em {
  font-style: normal;
  color: var(--accent);
}
.skip {
  position: absolute;
  top: -100px;
  left: 20px;
  background: white;
  padding: 12px;
  z-index: 10;
}
.skip:focus {
  top: 10px;
}
.site-header {
  max-width: 1320px;
  padding: 28px 48px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 80px;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  gap: 14px;
  align-items: center;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.08em;
}
.brand-symbol {
  font-family: Georgia, serif;
  font-size: 43px;
  font-weight: bold;
  font-style: italic;
  letter-spacing: -4px;
  line-height: 1;
}
.brand small {
  display: block;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--muted);
  font-weight: 500;
  margin-top: 2px;
}
.site-header nav {
  display: flex;
  gap: 38px;
  font-size: 14px;
}
.site-header nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  gap: 12px;
}
.site-header nav a:hover {
  color: var(--accent);
}
.nav-note {
  margin-left: auto;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 14px;
}
.home-wrap,
.board-wrap {
  max-width: 1224px;
  margin: auto;
  padding: 0 40px;
}
.hero {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 90px;
  align-items: center;
  padding: 76px 0 66px;
}
.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-bottom: 18px;
}
.hero h1 {
  line-height: 1.45;
  margin-bottom: 22px;
}
.hero h1 em {
  position: relative;
}
.hero-bio {
  color: var(--muted);
  font-size: 16px;
  max-width: 450px;
  line-height: 1.9;
  white-space: pre-wrap;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-top: 34px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--ink);
  border-radius: 5px;
  background: var(--ink);
  color: white;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 500;
  transition:
    background 0.2s,
    transform 0.2s;
  min-height: 48px;
}
.button:hover {
  background: #294568;
  transform: translateY(-1px);
}
.button.outline {
  background: transparent;
  color: var(--ink);
  border-color: #b9c5d3;
}
.button.outline:hover {
  background: var(--blue);
}
.button.light {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}
.quiet-link {
  font-size: 14px;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}
.profile-panel {
  padding: 25px 14px 10px 24px;
  position: relative;
}
.profile-panel:before {
  content: "";
  position: absolute;
  inset: 10px 2px 18px 40px;
  background: #dde5ee;
  transform: rotate(6deg);
  border: 1px solid #cbd5df;
}
.profile-paper {
  position: relative;
  padding: 32px 34px 26px;
  background: #fff;
  border: 1px solid #d9e0e7;
  box-shadow: 0 18px 34px #13284508;
  transform: rotate(-3deg);
  text-align: center;
  min-height: 355px;
}
.folio {
  display: block;
  text-align: left;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.16em;
}
.avatar {
  width: 88px;
  height: 88px;
  border-radius: 100%;
  object-fit: cover;
  margin: 28px auto 16px;
}
.avatar-field {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}
.avatar-preview {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  border-radius: 12px;
  object-fit: cover;
  background: #e7ecf1;
  border: 1px solid rgba(0, 0, 0, 0.08);
}
.avatar-preview[hidden] {
  display: none;
}
.file-input {
  font: inherit;
  font-size: 13px;
  min-height: 44px;
  padding: 8px 0;
  max-width: 100%;
}
.file-input::file-selector-button {
  font: inherit;
  font-size: 13px;
  min-height: 36px;
  margin-right: 12px;
  padding: 6px 14px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}
.monogram {
  display: grid;
  place-items: center;
  background: #e7ecf1;
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 48px;
  color: #415a76;
}
.profile-paper h2 {
  font-size: 25px;
}
.profile-paper p {
  font-size: 13px;
  color: var(--muted);
  margin: 8px 0 22px;
}
.paper-rule {
  border-bottom: 1px solid var(--line);
  margin-bottom: 19px;
}
.handnote {
  font-family: var(--serif);
  font-size: 15px;
}
.profile-paper small {
  display: block;
  font-size: 9px;
  letter-spacing: 0.13em;
  margin-top: 8px;
  color: var(--muted);
}
.quick-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 12px;
  color: var(--muted);
}
.quick-strip span:first-child {
  color: var(--ink);
}
.section {
  padding: var(--pad-y) 0 12px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 22px;
  margin-bottom: 26px;
}
.section-head .eyebrow {
  margin-bottom: 10px;
}
.filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 25px;
}
.filter {
  border: 0;
  background: transparent;
  border-radius: 30px;
  padding: 6px 19px;
  font-size: 13px;
  color: var(--muted);
  min-height: 44px;
}
.filter[aria-pressed="true"] {
  background: var(--ink);
  color: white;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.entry-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.entry-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px #182e4f0a;
}
.entry-card > img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.card-art {
  height: 180px;
  background: #e8edf4;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.card-art:before {
  content: "";
  width: 170px;
  height: 170px;
  border: 1px solid #aabbd2;
  border-radius: 50%;
  position: absolute;
  transform: translate(60px, 40px);
}
.card-art:after {
  content: "";
  position: absolute;
  width: 210px;
  height: 210px;
  border: 1px solid #bcc8db;
  transform: rotate(35deg) translate(-55px, -15px);
}
.card-art > span {
  font-family: var(--serif);
  font-size: 66px;
  color: #466087;
  z-index: 1;
}
.card-art small {
  position: absolute;
  left: 22px;
  bottom: 16px;
  font-size: 11px;
  letter-spacing: 0.2em;
}
.kind-note .card-art {
  background: #efe6d8;
}
.kind-note .card-art > span {
  color: #8b7658;
}
.kind-wish .card-art,
.kind-photo .card-art {
  background: #e7e1e7;
}
.kind-media .card-art {
  background: #dce6e3;
}
.card-body {
  padding: 22px;
}
.meta {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 12px;
}
.text-button {
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  font: inherit;
  line-height: 1.5;
  overflow-wrap: anywhere;
  min-height: 44px;
}
.text-button:hover {
  color: var(--accent);
}
.excerpt {
  font-size: 14px;
  color: var(--muted);
  margin-top: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 18px;
}
.tags span {
  font-size: 10px;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 2px 8px;
}
.goals-section {
  margin-top: 24px;
}
.goals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  border: 1px solid var(--line);
  background: #eef2f6;
}
.goal-card {
  padding: 28px;
  border-right: 1px solid var(--line);
}
.goal-card:last-child {
  border: 0;
}
.goal-number {
  font-family: Georgia, serif;
  font-size: 16px;
  color: #8a9bb3;
  display: block;
  margin-bottom: 18px;
}
.goal-card p {
  font-size: 14px;
  color: var(--muted);
  margin: 12px 0 22px;
}
.progress-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
  font-size: 12px;
}
.progress-wrap progress {
  appearance: none;
  height: 4px;
  width: 100%;
  border: 0;
  background: #d6dee8;
  border-radius: 5px;
}
.progress-wrap progress::-webkit-progress-bar {
  background: #d6dee8;
  border-radius: 5px;
}
.progress-wrap progress::-webkit-progress-value {
  background: #516b8e;
  border-radius: 5px;
}
.progress-wrap progress::-moz-progress-bar {
  background: #516b8e;
}
.journal-columns {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: var(--gap);
}
.timeline-item {
  display: grid;
  grid-template-columns: 86px 10px 1fr;
  gap: 18px;
  padding: 0 0 30px;
  position: relative;
}
.timeline-item time {
  font-size: 11px;
  color: var(--muted);
  padding-top: 3px;
}
.timeline-dot {
  border: 2px solid #8799b0;
  border-radius: 50%;
  width: 7px;
  height: 7px;
  margin-top: 8px;
  z-index: 1;
  background: var(--paper);
}
.timeline-item:before {
  content: "";
  position: absolute;
  left: 107px;
  top: 12px;
  bottom: 0;
  width: 1px;
  background: var(--line);
}
.timeline-item:last-child:before {
  display: none;
}
.timeline-item .meta {
  margin: 0;
}
.timeline-item h3 {
  font-size: 19px;
}
.timeline-item .excerpt {
  margin-top: 3px;
}
.shelf-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.shelf-icon {
  display: grid;
  place-items: center;
  background: #e9edf2;
  width: 45px;
  height: 54px;
  font-size: 24px;
}
.shelf-item small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}
.shelf-item .text-button {
  font-size: 15px;
}
.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 18px;
}
.profile-links a {
  font-size: 14px;
  padding: 12px 0;
}
.board-cta {
  background: var(--ink);
  color: #fff;
  padding: 38px 44px;
  margin: 70px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.board-cta .eyebrow {
  color: #a8b8cb;
  margin-bottom: 14px;
}
.board-cta h2 {
  font-size: 32px;
  margin-bottom: 12px;
}
.board-cta p:not(.eyebrow) {
  font-size: 14px;
  color: #c0cbda;
}
.site-footer {
  border-top: 1px solid var(--line);
  max-width: 1224px;
  margin: auto;
  padding: 28px 40px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.site-footer .brand {
  font-family: Georgia, serif;
  font-size: 26px;
}
.site-footer .brand span {
  font-family: var(--sans);
  font-size: 13px;
}
.site-footer p,
.site-footer > span {
  font-size: 11px;
  color: var(--muted);
}
.empty {
  padding: 38px 22px;
  text-align: center;
  border: 1px dashed #cdd6e1;
  grid-column: 1/-1;
  width: 100%;
  background: #f7f9fb;
}
.empty-mark {
  font-size: 30px;
  color: #8fa1b8;
}
.empty h3 {
  font-family: var(--serif);
  font-size: 21px;
  margin: 7px 0;
}
.empty p {
  font-size: 13px;
  color: var(--muted);
  margin: auto;
  max-width: 340px;
}
.loading,
.error-page {
  padding: 100px 30px;
  max-width: 900px;
  margin: auto;
  text-align: center;
}
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  background: #172b49;
  color: #fff;
  padding: 13px 22px;
  border-radius: 8px;
  box-shadow: 0 10px 40px #172b4933;
  transition:
    opacity 0.2s,
    transform 0.2s;
  z-index: 100;
  max-width: 90vw;
  font-size: 14px;
}
.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
dialog {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 40px;
  max-width: 760px;
  width: calc(100% - 32px);
  max-height: 90dvh;
  color: var(--ink);
  box-shadow: 0 30px 80px #152f4933;
  opacity: 0;
  transform: translateY(14px) scale(0.985);
  transition:
    opacity 0.22s ease,
    transform 0.22s ease,
    display 0.22s allow-discrete,
    overlay 0.22s allow-discrete;
}
dialog[open] {
  opacity: 1;
  transform: none;
}
dialog::backdrop {
  background: rgb(16 37 61 / 0);
  backdrop-filter: blur(0);
  transition:
    background 0.22s ease,
    backdrop-filter 0.22s ease,
    display 0.22s allow-discrete,
    overlay 0.22s allow-discrete;
}
dialog[open]::backdrop {
  background: #10253d77;
  backdrop-filter: blur(4px);
}
@starting-style {
  dialog[open] {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }
  dialog[open]::backdrop {
    background: rgb(16 37 61 / 0);
    backdrop-filter: blur(0);
  }
}
.dialog-close {
  position: absolute;
  right: 10px;
  top: 8px;
  width: 44px;
  height: 44px;
  font-size: 28px;
  border: 0;
  background: transparent;
}
.entry-detail h2 {
  font-size: 34px;
  margin: 12px 0 24px;
}
.entry-detail img {
  max-height: 70vh;
  margin: 20px auto;
}
.long-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.entry-detail > .long-text {
  line-height: 1.95;
  margin-bottom: 25px;
}
.milestone-list {
  padding-left: 20px;
  margin: 20px 0;
}
.page-title {
  padding: 64px 0 52px;
}
.page-title h1 {
  font-size: 64px;
  margin: 16px 0;
}
.page-title > p:last-child {
  color: var(--muted);
}
.board-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 64px;
}
.message-card {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.message-top {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  margin-bottom: 18px;
}
.visitor-avatar {
  display: grid;
  place-items: center;
  background: #e2e8ef;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-family: var(--serif);
}
.message-top time {
  margin-left: auto;
  color: var(--muted);
  font-size: 11px;
}
.badge {
  font-size: 11px;
  background: #e7edf4;
  color: #49617e;
  padding: 2px 8px;
  border-radius: 3px;
}
.message-card > .long-text {
  font-size: 15px;
}
.reply {
  background: #edf1f6;
  border-left: 2px solid #8ea2bb;
  padding: 14px 20px;
  margin-top: 20px;
  font-size: 14px;
}
.reply small {
  font-size: 11px;
  color: var(--muted);
}
.like-button {
  background: transparent;
  border: 0;
  font-size: 13px;
  margin-top: 12px;
  min-width: 60px;
}
.compose {
  padding: 26px 28px;
  background: #fff;
  border: 1px solid var(--line);
  align-self: start;
  position: sticky;
  top: 24px;
}
.tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  gap: 16px;
  margin-bottom: 28px;
}
.tab {
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  font-size: 14px;
  padding: 9px 2px;
}
.tab[aria-selected="true"] {
  border-color: var(--ink);
  font-weight: 600;
}
.form-panel h3 {
  font-family: var(--serif);
  font-size: 24px;
  margin-bottom: 22px;
}
.field {
  display: block;
  margin-bottom: 18px;
  min-width: 0;
}
.field > span {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 8px;
}
.field input,
.field textarea,
.field select,
.record-search input,
.month-picker input {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid #ccd6e2;
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  min-width: 0;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    outline-color 0.18s ease;
}
.field input:focus:not(:focus-visible),
.record-search input:focus:not(:focus-visible),
.month-picker input:focus:not(:focus-visible) {
  border-color: color-mix(in srgb, var(--accent) 55%, #ccd6e2);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}
/* 原生日历图标：给可点击暗示 + 悬停淡入（弹出的日历框本身是浏览器原生 UI，网站无法加动画）。 */
.field input[type="date"]::-webkit-calendar-picker-indicator,
.field input[type="month"]::-webkit-calendar-picker-indicator,
.field input[type="datetime-local"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.18s ease;
}
.field input[type="date"]:hover::-webkit-calendar-picker-indicator,
.field input[type="month"]:hover::-webkit-calendar-picker-indicator,
.field input[type="datetime-local"]:hover::-webkit-calendar-picker-indicator {
  opacity: 1;
}
.field textarea {
  resize: vertical;
  line-height: 1.7;
}
.field input::placeholder,
.field textarea::placeholder {
  color: #8b98a8;
}
.privacy-note,
.password-meter {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
  margin-top: 18px;
}
.form-status {
  font-size: 13px;
  min-height: 24px;
  margin: 9px 0;
  color: #3d6a61;
}
.form-status.error {
  color: #ab342b;
}
.question-card {
  padding: 28px;
  background: white;
  border: 1px solid var(--line);
  margin-bottom: 18px;
}
.question-card h3 {
  margin-bottom: 16px;
}
.question-card p {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 14px;
}
.question-card small {
  font-size: 12px;
  color: var(--muted);
}
.capsule-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 70px;
}
.capsule-card {
  border: 1px solid #cfd9e4;
  background: #eaf0f6;
  padding: 30px;
  text-align: center;
}
.capsule-seal {
  font-size: 36px;
  color: #637c9b;
}
.capsule-card .eyebrow {
  margin-top: 12px;
}
.capsule-card p:not(.eyebrow) {
  font-size: 14px;
  color: var(--muted);
  margin: 16px 0;
  white-space: pre-wrap;
}
.capsule-card small {
  font-size: 12px;
}
.login-layout {
  max-width: 1080px;
  padding: 95px 40px 115px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
}
.login-intro h1 {
  line-height: 1.6;
  margin: 25px 0;
}
.login-intro > p:last-child {
  color: var(--muted);
}
.login-card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 38px;
  box-shadow: 0 18px 40px #182e4f06;
}
.login-card h2 {
  margin: 24px 0;
}
.login-card .button {
  width: 100%;
}
.desk-root {
  display: flex;
  min-height: 100dvh;
}
.desk-sidebar {
  width: 240px;
  background: #142945;
  color: #dde5ef;
  padding: 30px 22px;
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0 auto 0 0;
  overflow: auto;
}
.desk-brand {
  font-family: var(--serif);
  font-size: 24px;
  padding: 0 8px;
  margin-bottom: 36px;
}
.desk-sidebar > .eyebrow {
  font-size: 9px;
  padding: 0 8px;
  color: #8396b0;
}
.desk-sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.desk-nav-button {
  background: transparent;
  border: 0;
  text-align: left;
  color: #b9c8d9;
  padding: 10px 16px;
  font-size: 14px;
  border-radius: 5px;
}
.desk-nav-button[aria-current="page"] {
  background: #2b4363;
  color: white;
  box-shadow: inset 3px 0 #b6cce8;
}
.desk-nav-button:hover {
  background: #233a58;
}
.desk-side-bottom {
  margin-top: auto;
  padding-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.desk-side-bottom a,
.desk-side-bottom button {
  font-size: 12px;
  padding: 12px 8px;
  color: #a5b7cd;
  text-align: left;
}
.quiet-button {
  border: 0;
  background: transparent;
  padding: 10px 5px;
  font-size: 13px;
}
.desk-content {
  margin-left: 240px;
  width: calc(100% - 240px);
}
.desk-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 44px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
  background: #fff;
}
.private-label {
  color: #536b88;
}
.desk-body {
  padding: 40px 44px 70px;
  max-width: 1600px;
  margin: auto;
}
.desk-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 34px;
}
.desk-heading h1 {
  font-size: 36px;
  margin: 8px 0 12px;
}
.desk-heading p:not(.eyebrow) {
  font-size: 13px;
  color: var(--muted);
}
.desk-heading .eyebrow {
  font-size: 10px;
  margin: 0;
}
.desk-heading > .button {
  flex-shrink: 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 30px;
}
.stat-card {
  border: 1px solid var(--line);
  background: #fff;
  padding: 22px;
}
.stat-card span {
  font-size: 13px;
}
.stat-card strong {
  display: block;
  font-size: 44px;
  font-family: Georgia, serif;
  font-weight: 400;
  line-height: 1.4;
  margin: 10px 0;
}
.stat-card small {
  color: var(--muted);
  font-size: 11px;
}
.overview-grid {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: 24px;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  padding: 26px;
}
.panel .section-head h2 {
  font-size: 24px;
}
.record-row {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 14px 0;
  border-bottom: 1px solid #edf0f4;
  min-width: 0;
}
.record-icon {
  width: 38px;
  height: 42px;
  display: grid;
  place-items: center;
  background: #eff3f7;
  font-size: 24px;
  flex-shrink: 0;
}
.record-title {
  flex: 1;
  min-width: 0;
}
.record-title .text-button {
  font-size: 14px;
  display: block;
}
.record-title small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}
.record-row time {
  font-size: 11px;
  color: var(--muted);
  flex-shrink: 0;
}
.next-panel {
  background: var(--ink);
  color: white;
  padding: 34px;
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: center;
}
.next-panel .eyebrow {
  color: #a4b7cf;
  font-size: 10px;
}
.next-panel h2 {
  font-size: 30px;
  line-height: 1.6;
}
.next-panel p:not(.eyebrow) {
  font-size: 14px;
  color: #b9c7d8;
  margin: 24px 0 30px;
}
.record-search {
  margin-bottom: 20px;
}
.record-search input {
  max-width: 520px;
}
.filter-fields {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
.bulk-bar {
  display: flex;
  gap: 12px;
  align-items: center;
  border-block: 1px solid var(--line);
  padding: 8px 0;
  margin: 5px 0 10px;
  flex-wrap: wrap;
}
.bulk-bar > span {
  font-size: 12px;
  color: var(--muted);
  margin-right: auto;
}
.small-button {
  background: white;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 12px;
  padding: 8px 14px;
  min-height: 44px;
}
.small-button:hover {
  background: var(--blue);
}
.selectable-row {
  display: flex;
  align-items: center;
  gap: 16px;
}
.selectable-row > input {
  width: 20px;
  min-width: 20px;
  height: 44px;
  accent-color: var(--ink);
}
.selectable-row .record-row {
  flex: 1;
}
.editor h2 {
  margin-bottom: 28px;
}
.editor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}
.check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  min-height: 44px;
}
.check input {
  width: 18px;
  height: 18px;
  accent-color: var(--ink);
}
.editor-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.danger-text {
  color: #a13d35;
}
.button.danger {
  background: #983c37;
  border-color: #983c37;
}
.confirm h2 {
  margin: 10px 0 16px;
}
.confirm p {
  color: var(--muted);
}
.desk-goals,
.habit-grid,
.security-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.desk-goals h2 {
  font-size: 25px;
  margin-bottom: 16px;
}
.desk-goals p:not(.eyebrow) {
  font-size: 14px;
  color: var(--muted);
}
.milestone-row {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.milestone-row .check {
  flex: 1;
}
.month-picker {
  margin-bottom: 24px;
  display: flex;
  gap: 16px;
  align-items: center;
  font-size: 14px;
}
.month-picker input {
  width: auto;
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  margin-top: 20px;
}
.calendar-day {
  border: 0;
  background: #f1f4f8;
  border-radius: 5px;
  font-size: 13px;
  min-width: 0;
}
.calendar-day.checked {
  background: var(--ink);
  color: white;
}
.weekday {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  padding: 8px 0;
}
.habit-grid h2 {
  font-size: 24px;
}
.habit-grid p {
  font-size: 13px;
  color: var(--muted);
}
.inbox-list {
  max-width: 850px;
}
.inbox-list .message-card {
  background: white;
  border: 1px solid var(--line);
  padding: 26px;
  margin-bottom: 18px;
}
.settings-panel {
  max-width: 850px;
}
.security-grid h2 {
  font-size: 26px;
  margin-bottom: 20px;
}
.security-grid p:not(.eyebrow) {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 24px;
}
.security-grid hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 32px 0;
}
blockquote {
  border-left: 2px solid var(--line);
  padding-left: 18px;
  color: var(--muted);
  margin: 24px 0;
}
/* Private celebration: served only by authenticated Worker HTML. */
.wish-page {
  background: #fff1f4;
  color: #762944;
  min-height: 100vh;
  overflow-x: clip;
  background-image: radial-gradient(
    ellipse at 50% 36%,
    #ffd4e488,
    transparent 56%
  );
}
.wish-back {
  position: absolute;
  left: 40px;
  top: 30px;
  z-index: 2;
  font-size: 13px;
  padding: 12px 0;
}
.wish-edition {
  display: block;
  text-align: center;
  padding: 47px 20px 0;
  font-size: 10px;
  letter-spacing: 0.23em;
  color: #a3647c;
}
.celebration {
  max-width: 1100px;
  margin: auto;
  text-align: center;
  position: relative;
  padding: 56px 30px 80px;
}
.wish-kicker {
  font-size: 14px;
  letter-spacing: 0.22em;
  color: #b46080;
  margin-bottom: 22px;
}
.celebration h1 {
  font-family: var(--serif);
  font-size: clamp(70px, 11vw, 134px);
  line-height: 1.15;
  letter-spacing: 0.02em;
  color: #b12b60;
  text-shadow: 0 3px 0 #fff;
}
.celebration h1 > span {
  display: block;
  font-size: clamp(23px, 3.5vw, 39px);
  font-weight: 400;
  letter-spacing: 0.04em;
  margin-top: 20px;
  color: #82384f;
}
.celebration h1 em {
  color: #c54b78;
}
.wish-stage {
  height: 380px;
  position: relative;
  max-width: 750px;
  margin: 20px auto 0;
  isolation: isolate;
}
.wish-stage:before {
  content: "";
  position: absolute;
  left: 17%;
  right: 17%;
  height: 70px;
  bottom: 39px;
  background: #d8769840;
  border-radius: 50%;
  filter: blur(17px);
  z-index: -1;
}
.cake {
  position: absolute;
  left: 50%;
  top: 44%;
  transform: translate(-50%, -50%);
  font-size: 180px;
  background: transparent;
  border: 0;
  line-height: 1.2;
  filter: drop-shadow(0 20px 18px #bc426c25);
  padding: 18px;
  min-width: 230px;
  min-height: 260px;
  transition:
    transform 0.2s,
    filter 0.2s;
}
.cake:hover {
  transform: translate(-50%, -52%) rotate(-3deg);
}
#candle-glow {
  position: absolute;
  font-size: 35px;
  color: #ffaf44;
  text-shadow: 0 0 16px #ffa049;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  transition: opacity 0.2s;
}
.cake.blown #candle-glow {
  opacity: 0;
}
.cake.blown {
  filter: drop-shadow(0 20px 24px #ee619944);
}
.balloon {
  position: absolute;
  font-size: 108px;
  line-height: 1.2;
  filter: drop-shadow(0 12px 8px #b948711a);
}
.balloon-left {
  left: 9%;
  top: 8%;
  transform: rotate(-17deg);
}
.balloon-right {
  right: 8%;
  top: 0;
  transform: rotate(16deg);
  font-size: 125px;
}
.bear {
  position: absolute;
  left: 17%;
  bottom: 43px;
  font-size: 105px;
  transform: rotate(-8deg);
  z-index: 2;
  line-height: 1.2;
  filter: drop-shadow(0 12px 12px #b36e4422);
}
.ribbon {
  position: absolute;
  right: 17%;
  bottom: 52px;
  font-size: 88px;
  transform: rotate(13deg);
  line-height: 1.2;
  z-index: 2;
}
.wish-star {
  position: absolute;
  color: #b86485;
  font-size: 48px;
}
.s1 {
  left: 0;
  top: 40%;
}
.s2 {
  right: 0;
  top: 49%;
  font-size: 34px;
}
.stage-caption {
  position: absolute;
  bottom: 8px;
  width: 100%;
  font-size: 10px;
  letter-spacing: 0.22em;
  color: #b2768c;
}
.wish-state {
  margin: 20px auto;
  font-family: var(--serif);
  font-size: 19px;
  max-width: 520px;
}
.wish-button {
  padding: 15px 30px;
  min-height: 52px;
  border: 1px solid #ac315c;
  background: #b33161;
  color: white;
  border-radius: 30px;
  font-size: 15px;
  box-shadow: 0 6px 0 #e8b1c3;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.wish-button:hover {
  transform: translateY(2px);
  box-shadow: 0 3px 0 #e8b1c3;
}
.music-button {
  display: block;
  margin: 20px auto 0;
  background: none;
  border: 0;
  color: #a76a80;
  font-size: 12px;
  padding: 12px;
  min-height: 44px;
}
.wish-letter {
  max-width: 640px;
  background: #fffafc;
  border: 1px solid #edc9d6;
  padding: 45px 48px;
  margin: 64px auto 30px;
  box-shadow: 14px 14px 0 #f5dce6;
  position: relative;
  text-align: left;
  transform: rotate(-1deg);
}
.wish-letter:before {
  content: "♡";
  position: absolute;
  right: 32px;
  top: 25px;
  font-family: Georgia, serif;
  font-size: 65px;
  color: #d899b1;
  transform: rotate(15deg);
}
.wish-letter .eyebrow {
  font-size: 10px;
  color: #ab7287;
}
.wish-letter h2 {
  font-size: 34px;
  line-height: 1.65;
  margin-bottom: 25px;
}
.wish-letter > p:not(.eyebrow) {
  color: #956073;
  font-family: var(--serif);
  font-size: 16px;
  line-height: 2.2;
  margin-bottom: 20px;
}
.letter-sign {
  border-top: 1px solid #edd4df;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 24px;
  font-size: 12px;
  color: #9c6078;
  margin-top: 32px;
}
.letter-sign time {
  font-family: Georgia, serif;
  letter-spacing: 0.15em;
}
.wish-return {
  display: inline-block;
  font-size: 13px;
  color: #a5667f;
  padding: 24px 5px;
}
.confetti {
  position: absolute;
  inset: 80px 0 auto;
  height: 450px;
  pointer-events: none;
  overflow: hidden;
}
.confetti i {
  position: absolute;
  color: #d893ae;
  font-style: normal;
  font-size: 28px;
}
.confetti i:nth-child(1) {
  left: 4%;
  top: 15%;
  transform: rotate(30deg);
}
.confetti i:nth-child(2) {
  left: 18%;
  top: 3%;
  color: #dfab51;
}
.confetti i:nth-child(3) {
  right: 10%;
  top: 17%;
}
.confetti i:nth-child(4) {
  right: 2%;
  top: 53%;
  color: #e4b053;
}
.confetti i:nth-child(5) {
  left: 7%;
  top: 76%;
}
.confetti i:nth-child(6) {
  right: 18%;
  top: 78%;
}
.confetti i:nth-child(7) {
  left: 22%;
  top: 43%;
  font-size: 17px;
}
.confetti i:nth-child(8) {
  right: 28%;
  top: 9%;
  color: #bcadc9;
}
.celebration.celebrated .confetti i {
  animation: pop 0.2s ease-out both;
}
.celebration.celebrated .wish-letter {
  border-color: #d484a6;
}
.wish-easter {
  font-size: 15px;
  color: #aa5279;
  padding: 20px;
}
@keyframes pop {
  from {
    transform: translateY(-18px) scale(0.7);
    opacity: 0.3;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}
@media (min-width: 1500px) {
  .desk-body {
    padding-top: 55px;
  }
  .hero {
    padding-block: 100px;
  }
}
@media (max-width: 1100px) {
  .site-header {
    padding-inline: 30px;
    gap: 50px;
  }
  .home-wrap,
  .board-wrap {
    padding-inline: 30px;
  }
  .hero {
    gap: 45px;
  }
  .hero h1 {
    font-size: 48px;
  }
  .profile-paper {
    padding: 28px 24px;
  }
  .journal-columns {
    gap: 35px;
  }
  .board-layout {
    gap: 35px;
  }
  .desk-sidebar {
    width: 200px;
    padding-inline: 16px;
  }
  .desk-content {
    margin-left: 200px;
    width: calc(100% - 200px);
  }
  .desk-body {
    padding: 30px 25px;
  }
  .desk-top {
    padding-inline: 25px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .overview-grid {
    grid-template-columns: 1fr;
  }
  .filter-fields {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .desk-heading h1 {
    font-size: 29px;
  }
  .calendar-grid {
    gap: 3px;
  }
  .habit-grid {
    grid-template-columns: 1fr;
  }
  .login-layout {
    gap: 60px;
  }
}
@media (max-width: 760px) {
  .site-header {
    padding: 18px 22px;
    gap: 24px;
  }
  .brand {
    font-size: 15px;
    gap: 11px;
  }
  .brand small {
    font-size: 8px;
  }
  .brand-symbol {
    font-size: 35px;
  }
  .site-header nav {
    gap: 22px;
    margin-left: auto;
  }
  .nav-note {
    display: none;
  }
  .home-wrap,
  .board-wrap {
    padding: 0 22px;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 42px 0;
  }
  .hero h1 {
    font-size: clamp(37px, 7vw, 52px);
  }
  .hero-copy .eyebrow {
    font-size: 10px;
  }
  .hero-bio {
    font-size: 15px;
  }
  .hero-actions {
    margin-top: 25px;
    gap: 25px;
  }
  .profile-panel {
    max-width: 380px;
    width: 100%;
    margin: 20px auto 0;
  }
  .profile-paper {
    min-height: 310px;
  }
  .avatar {
    margin: 18px auto 12px;
    width: 74px;
    height: 74px;
  }
  .quick-strip {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    font-size: 11px;
  }
  .quick-strip span:last-child {
    text-align: right;
  }
  .section {
    padding-top: 42px;
  }
  .section-head h2 {
    font-size: 26px;
  }
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
  .card-body {
    padding: 17px;
  }
  .card-art {
    height: 150px;
  }
  .entry-card > img {
    height: 150px;
  }
  .card-body .meta {
    font-size: 10px;
    gap: 4px;
  }
  .card-body h3 {
    font-size: 18px;
  }
  .card-body .excerpt {
    font-size: 13px;
  }
  .goals-grid {
    grid-template-columns: 1fr;
  }
  .goal-card {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .goal-number {
    float: right;
  }
  .journal-columns {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .timeline-item {
    grid-template-columns: 74px 8px 1fr;
    gap: 13px;
  }
  .timeline-item:before {
    left: 90px;
  }
  .board-cta {
    padding: 28px;
    flex-direction: column;
    align-items: start;
    margin-block: 45px;
  }
  .board-cta h2 {
    font-size: 29px;
  }
  .site-footer {
    padding: 25px 22px;
    flex-wrap: wrap;
    gap: 14px;
  }
  .site-footer p {
    margin-left: auto;
  }
  .site-footer > span {
    width: 100%;
  }
  .page-title {
    padding: 40px 0;
  }
  .page-title h1 {
    font-size: 50px;
  }
  .board-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .compose {
    grid-row: 1;
    position: static;
    padding: 22px;
  }
  .capsule-grid {
    grid-template-columns: 1fr 1fr;
  }
  .login-layout {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 45px 24px;
  }
  .login-intro h1 {
    font-size: 36px;
    margin-block: 10px;
  }
  .login-intro h1 br {
    display: none;
  }
  .login-intro .eyebrow {
    font-size: 10px;
  }
  .login-card {
    padding: 28px;
  }
  .desk-root {
    display: block;
  }
  .desk-sidebar {
    position: static;
    width: 100%;
    padding: 18px 20px;
  }
  .desk-brand {
    margin: 0 0 14px;
    font-size: 21px;
  }
  .desk-sidebar > .eyebrow {
    display: none;
  }
  .desk-sidebar nav {
    flex-direction: row;
    overflow: auto;
    gap: 5px;
  }
  .desk-nav-button {
    white-space: nowrap;
    padding: 8px 13px;
    font-size: 12px;
  }
  .desk-nav-button[aria-current="page"] {
    box-shadow: inset 0 -2px #b6cce8;
  }
  .desk-side-bottom {
    padding-top: 10px;
    margin: 0;
    flex-direction: row;
    gap: 16px;
    flex-wrap: wrap;
  }
  .desk-side-bottom a,
  .desk-side-bottom button {
    padding: 5px 0;
    font-size: 11px;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  .desk-content {
    margin: 0;
    width: 100%;
  }
  .desk-top {
    padding: 14px 22px;
    font-size: 11px;
  }
  .desk-body {
    padding: 25px 20px 45px;
  }
  .desk-heading {
    align-items: start;
    flex-wrap: wrap;
    margin-bottom: 25px;
  }
  .desk-heading h1 {
    font-size: 29px;
  }
  .desk-heading p:not(.eyebrow) {
    font-size: 12px;
  }
  .desk-heading > .button {
    padding: 9px 16px;
  }
  .stats-grid {
    gap: 12px;
  }
  .stat-card {
    padding: 18px;
  }
  .stat-card strong {
    font-size: 36px;
  }
  .stat-card small {
    font-size: 10px;
  }
  .panel {
    padding: 20px;
  }
  .record-row {
    gap: 10px;
  }
  .record-row time {
    display: none;
  }
  .filter-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .selectable-row {
    gap: 10px;
  }
  .selectable-row > .small-button {
    padding-inline: 8px;
  }
  .desk-goals,
  .security-grid {
    grid-template-columns: 1fr;
  }
  .editor-grid {
    grid-template-columns: 1fr;
  }
  .editor-toggles {
    gap: 14px;
  }
  .calendar-grid {
    gap: 6px;
  }
  .calendar-day {
    min-height: 44px;
  }
  .record-title .text-button {
    font-size: 13px;
  }
  dialog {
    padding: 32px 22px;
  }
  .entry-detail h2 {
    font-size: 28px;
  }
  .milestone-row {
    gap: 5px;
    flex-wrap: wrap;
  }
  .milestone-row .small-button {
    padding: 6px 10px;
  }
  .wish-back {
    left: 20px;
    top: 14px;
    font-size: 12px;
  }
  .wish-edition {
    padding-top: 76px;
    font-size: 9px;
  }
  .celebration {
    padding: 34px 20px 50px;
  }
  .wish-kicker {
    font-size: 12px;
    letter-spacing: 0.12em;
  }
  .celebration h1 {
    font-size: clamp(62px, 13vw, 92px);
  }
  .celebration h1 > span {
    font-size: 24px;
    line-height: 1.6;
    margin-top: 15px;
  }
  .wish-stage {
    height: 310px;
    margin-top: 20px;
    max-width: 550px;
  }
  .cake {
    font-size: 145px;
    min-width: 190px;
    min-height: 220px;
  }
  .balloon-left {
    font-size: 77px;
    left: 1%;
    top: 6%;
  }
  .balloon-right {
    font-size: 85px;
    right: 1%;
    top: 1%;
  }
  .bear {
    font-size: 80px;
    left: 7%;
    bottom: 48px;
  }
  .ribbon {
    font-size: 65px;
    right: 8%;
    bottom: 50px;
  }
  .wish-star {
    font-size: 35px;
  }
  .s1 {
    left: 0;
    top: 43%;
  }
  .s2 {
    right: 0;
    font-size: 24px;
    top: 47%;
  }
  .wish-state {
    font-size: 16px;
    max-width: 310px;
  }
  .wish-letter {
    padding: 32px 26px;
    margin-top: 50px;
    box-shadow: 8px 8px 0 #f5dce6;
  }
  .wish-letter h2 {
    font-size: 29px;
  }
  .wish-letter > p:not(.eyebrow) {
    font-size: 14px;
  }
  .wish-letter:before {
    right: 20px;
    top: 40px;
    font-size: 50px;
  }
  .letter-sign {
    font-size: 10px;
    gap: 12px;
  }
  .stage-caption {
    font-size: 9px;
  }
  .celebration .eyebrow {
    font-size: 9px;
  }
}
@media (max-width: 390px) {
  .site-header {
    padding-inline: 16px;
  }
  .site-header nav {
    gap: 14px;
    font-size: 13px;
  }
  .home-wrap,
  .board-wrap {
    padding-inline: 18px;
  }
  .card-grid {
    grid-template-columns: 1fr;
  }
  .capsule-grid {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 35px;
  }
  .filter {
    padding-inline: 14px;
  }
  .desk-body {
    padding-inline: 14px;
  }
  .panel {
    padding: 16px;
  }
  .calendar-grid {
    gap: 2px;
  }
  .stat-card {
    padding: 14px;
  }
  .birthday h1 {
    font-size: 60px;
  }
  .letter-sign {
    flex-wrap: wrap;
  }
  .site-footer p {
    margin: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
/* Component display rules must not override the native hidden attribute. */
[hidden] { display: none !important; }

/* ---------- 主题化滚动条 ---------- */
* {
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--ink) 32%, transparent)
    color-mix(in srgb, var(--ink) 8%, transparent);
}
::-webkit-scrollbar {
  width: 11px;
  height: 11px;
}
::-webkit-scrollbar-track {
  background: color-mix(in srgb, var(--ink) 6%, transparent);
  border-radius: 99px;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--accent) 62%, transparent),
    color-mix(in srgb, var(--ink) 34%, transparent)
  );
  border: 3px solid transparent;
  background-clip: content-box;
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(
    180deg,
    var(--accent),
    color-mix(in srgb, var(--ink) 52%, transparent)
  );
  background-clip: content-box;
}
::-webkit-scrollbar-corner {
  background: transparent;
}

/* ---------- 自定义下拉：圆角 + 淡入淡出 ---------- */
.select-wrap {
  position: relative;
  display: block;
}
.select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) * 0.7);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease,
    background 0.18s ease;
}
.select-trigger:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
}
.select-trigger:focus-visible,
.select-wrap.is-open .select-trigger {
  outline: 2px solid color-mix(in srgb, var(--accent) 55%, transparent);
  outline-offset: 1px;
}
.select-value {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.select-caret {
  flex: none;
  color: var(--muted);
  font-size: 0.85em;
  transition: transform 0.2s ease;
}
.select-wrap.is-open .select-caret {
  transform: rotate(180deg);
}
.select-list {
  position: absolute;
  z-index: 40;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  margin: 0;
  padding: 6px;
  list-style: none;
  max-height: 264px;
  overflow-y: auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) * 0.8);
  box-shadow: 0 18px 40px -22px rgba(24, 46, 79, 0.55);
  opacity: 0;
  transform: translateY(-6px) scale(0.985);
  transform-origin: top center;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.select-list.is-open {
  opacity: 1;
  transform: none;
}
.select-option {
  padding: 9px 11px;
  border-radius: calc(var(--radius) * 0.5);
  cursor: pointer;
  font-size: 0.95em;
  transition: background 0.14s ease, color 0.14s ease;
}
.select-option:hover,
.select-option.is-active {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}
.select-option[aria-selected="true"] {
  color: var(--accent);
  font-weight: 600;
}

/* ---------- 主页 DIY ---------- */
.diy-panel {
  margin-top: 26px;
}
.diy-list {
  display: grid;
  gap: 10px;
  margin: 6px 0 4px;
}
.diy-row {
  display: grid;
  grid-template-columns: 20px 132px minmax(0, 1fr) minmax(0, 1.2fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) * 0.7);
  background: var(--white);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.diy-row:focus-within {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  box-shadow: 0 10px 26px -20px rgba(24, 46, 79, 0.6);
}
.diy-handle {
  color: var(--muted);
  letter-spacing: -1px;
}
.diy-toggle {
  font-size: 0.95em;
}
.diy-kicker,
.diy-title {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) * 0.55);
  background: var(--paper);
  font: inherit;
  font-size: 0.92em;
  color: var(--ink);
  min-width: 0;
}
.diy-move {
  display: flex;
  gap: 6px;
}
.home-footer-note {
  margin: 8px 0 64px;
  text-align: center;
  color: var(--muted);
  font-size: 0.92em;
  letter-spacing: 0.04em;
}

/* ---------- 开发者模式 ---------- */
.dev-gate,
.dev-panel {
  margin-top: 22px;
}
.dev-panel .eyebrow {
  margin-top: 20px;
}
.dev-box:empty {
  display: none;
}
.dev-line {
  margin: 4px 0;
  padding: 8px 10px;
  border-left: 3px solid color-mix(in srgb, var(--accent) 55%, transparent);
  background: color-mix(in srgb, var(--ink) 4%, transparent);
  font-size: 0.9em;
  overflow-wrap: anywhere;
}
.dev-table-block {
  margin: 14px 0 20px;
}
.dev-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) * 0.7);
}
.dev-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88em;
}
.dev-table th,
.dev-table td {
  padding: 9px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.dev-table th {
  background: color-mix(in srgb, var(--ink) 5%, transparent);
  font-weight: 600;
}
.dev-table tr:last-child td {
  border-bottom: 0;
}
.muted {
  color: var(--muted);
}
@media (max-width: 760px) {
  .diy-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .diy-move {
    justify-content: flex-end;
  }
}

/* ---------- 出错占位里的重试按钮 ---------- */
.empty-actions {
  margin-top: 16px;
}

/* ---------- 条目配图预览 ---------- */
.entry-image-preview {
  display: block;
  max-width: 100%;
  max-height: 220px;
  margin-bottom: 10px;
  border-radius: calc(var(--radius) * 0.6);
  object-fit: cover;
  background: #e7ecf1;
  border: 1px solid rgba(0, 0, 0, 0.08);
}
.entry-image-preview[hidden] {
  display: none;
}
