body.paper-theme {
  background: #ffffff;
  color: #4b4335;
  font-family: 'Noto Sans TC', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
}

.paper-theme ::selection { background: #e9e1d3; color: #4b4335; }
.paper-theme :is(h1,h2,h3,p) { text-wrap: pretty; }
.paper-theme :is(a,button,input,textarea,select,summary):focus-visible {
  outline: 2px solid #817052;
  outline-offset: 4px;
}

body.paper-theme .opening-header,
body.paper-theme .opening-header.header-plain {
  background: #ffffffed;
  border-bottom: 1px solid #e8e3da;
}

body.paper-theme :is(.painted-scene,.opening,.wedding-gather,.community-home,.site-menu,.account-panel,.rsvp-panel) {
  background-color: #ffffff;
}

body.paper-theme :is(.song-card,.community-flight,.community-day-card,.admin-panel) {
  border: 1px solid #e8e3da;
  border-radius: 10px;
  box-shadow: none;
  background-color: #ffffff;
}

body.paper-theme :is(.section-kicker,.community-eyebrow,.admin-eyebrow) {
  color: #817052;
  letter-spacing: .1em;
}

body.paper-theme :is(.community-primary,.rsvp-dock,button[type=submit],.song-card .song-search-line [data-search]),
body.paper-theme.admin-page button:not(.secondary):not(#logout):not([data-language-toggle]) {
  min-height: 46px;
  padding: 11px 22px;
  border: 1px solid #817052;
  border-radius: 6px;
  background: #817052;
  color: #ffffff;
  box-shadow: none;
  font: 500 13px/1.6 'Noto Sans TC',sans-serif;
  letter-spacing: .025em;
  text-decoration: none;
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

body.paper-theme :is(.community-primary,.rsvp-dock,button[type=submit],.song-card .song-search-line [data-search]):hover:not(:disabled),
body.paper-theme.admin-page button:not(.secondary):not(#logout):not([data-language-toggle]):hover:not(:disabled) {
  background: #6d5d42;
  border-color: #6d5d42;
  box-shadow: none;
  transform: none;
}

body.paper-theme :is(.secondary,.community-outline,.avatar-crop-actions button,.song-pagination button) {
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid #c9beac;
  border-radius: 6px;
  color: #6d5d42;
  background: #ffffff;
  box-shadow: none;
  font-weight: 500;
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

body.paper-theme :is(.secondary,.community-outline,.avatar-crop-actions button,.song-pagination button):hover:not(:disabled) {
  background: #f5f1e9;
  border-color: #a39171;
  box-shadow: none;
  transform: none;
}

body.paper-theme :is(.community-primary,.community-outline,.rsvp-dock,.secondary,button[type=submit]):active:not(:disabled),
body.paper-theme.admin-page button:active:not(:disabled) {
  transform: translateY(1px);
  box-shadow: none;
}

body.paper-theme :is(button,.button-link):disabled {
  opacity: .5;
  cursor: default;
  transform: none;
  box-shadow: none;
}

body.paper-theme :is(.opening-link,.community-home-links a,.album-upload,.prep-edf .button-link) {
  color: #6d5d42;
  border-bottom-color: #b2a184;
  text-underline-offset: 5px;
}

body.paper-theme :is(.community-tabs,.song-categories) button {
  color: #766a59;
}

body.paper-theme :is(.community-tabs,.song-categories) button[aria-selected=true] {
  color: #4b4335;
  border-bottom-color: #817052;
}

body.paper-theme .dress-code-photo picture {
  overflow: hidden;
  border-radius: 6px;
  background: #f5f1e9;
}

body.paper-theme .dress-code-photo figcaption { margin-top: 12px; color: #766a59; }
body.paper-theme .dress-code-colors li > span { border-radius: 5px; border-color: #d6cebf; }
body.paper-theme .dress-color-khaki { background: #b2a184; }
body.paper-theme .dress-color-white { background: #ffffff; }

body.paper-theme.gate-body { background: #ffffff; }
body.paper-theme .gate-main .gate-card { background: transparent; box-shadow: none; }
body.paper-theme .gate-main .gate-card button { min-height: 52px; padding: 11px 18px; letter-spacing: .08em; }
body.paper-theme .gate-main .gate-card .gate-button-icon { border: 0; border-radius: 0; background: none; }
body.paper-theme .gate-main .gate-card input:not([type=radio]) { border-bottom-color: #c9beac; }
body.paper-theme .gate-main .gate-card input:focus { border-bottom-color: #817052; }

body.paper-theme.admin-page .admin-editor { background: #fbfaf7; border-color: #e8e3da; border-radius: 6px; }
body.paper-theme.admin-page .admin-details { border: 0; border-top: 1px solid #e8e3da; border-radius: 0; }
body.paper-theme.admin-page .admin-details summary { padding: 20px 0; }
body.paper-theme.admin-page .admin-details > :not(summary) { margin-left: 0; margin-right: 0; }
body.paper-theme.admin-page :is(input,select,textarea) { border-color: #d6cebf; border-radius: 6px; }
body.paper-theme.admin-page .guest-table button { min-height: 36px; padding: 7px 10px; font-size: 11px; }
body.paper-theme.admin-page .admin-nav button#logout { background: transparent; color: #6d5d42; }

body.paper-theme .song-card .song-search-line [data-search] { min-width: 76px; min-height: 48px; border-radius: 6px; }
body.paper-theme.travel-page .travel-place-search { padding: 56px 0 48px; margin: 0 0 32px; }
body.paper-theme.travel-page .place-search-content { width: 100%; max-width: 720px; margin: 0 auto; }
body.paper-theme.travel-page .assistant-heading { max-width: none; margin-bottom: 10px; }
body.paper-theme.travel-page #search-title { margin-bottom: 28px; font-size: clamp(28px,3vw,36px); }
body.paper-theme.travel-page #place-search-form { width: 100%; padding: 20px 20px 12px; border: 1px solid #d6cebf; border-radius: 10px; box-shadow: none; background: #fff; }
body.paper-theme.travel-page #place-search-form:focus-within { border-color: #817052; box-shadow: 0 0 0 2px #8170520d; }
body.paper-theme.travel-page #place-search-input { display: block; min-height: 76px; padding: 0; font-size: 16px; line-height: 1.8; outline: none; }
body.paper-theme.travel-page #place-search-input::placeholder { color: #8a8174; }
body.paper-theme .assistant-composer-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; }
body.paper-theme .assistant-key-hint { color: #8a8174; font-size: 11px; }
body.paper-theme .assistant-key-hint kbd { padding: 0; border: 0; background: none; font: inherit; }
body.paper-theme.travel-page .assistant-send { display: grid; place-items: center; width: 44px; height: 44px; min-height: 44px; padding: 0; border-radius: 6px; }
body.paper-theme .assistant-send svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
body.paper-theme .assistant-send rect { fill: currentColor; stroke: none; }
body.paper-theme.travel-page .assistant-prompts { gap: 6px 18px; margin-top: 14px; }
body.paper-theme.travel-page .assistant-prompts button { min-height: 44px; padding: 8px 0; color: #766a59; font-size: 12px; }
body.paper-theme.travel-page .assistant-prompts[hidden] { display: none; }
body.paper-theme.travel-page .place-search-status { position: static; width: auto; height: auto; clip-path: none; white-space: normal; margin: 12px 0 0; color: #766a59; font-size: 12px; line-height: 1.8; }
body.paper-theme.travel-page .assistant-message.user { border-radius: 6px; background: #f5f1e9; }
body.paper-theme.travel-page .assistant-answer-footer { margin-top: 14px; }
body.paper-theme.travel-page .assistant-sources a { min-height: 36px; display: inline-flex; align-items: center; font-size: 12px; }
body.paper-theme.travel-page .assistant-heading button { min-height: 44px; }
body.paper-theme .community-board { min-width: 0; }
body.paper-theme .board-composer { margin-top: 36px; padding-top: 28px; border-top: 1px solid #e8e3da; scroll-margin-top: 100px; }
body.paper-theme .board-composer-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
body.paper-theme .board-composer-heading h2 { margin: 0; font: 400 25px/1.5 Iansui,'Noto Serif TC',serif; }
body.paper-theme .board-composer textarea { width: 100%; min-height: 108px; resize: vertical; border: 1px solid #d6cebf; border-radius: 8px; padding: 16px; background: #fff; color: #4b4335; font: 400 16px/1.8 'Noto Sans TC',sans-serif; }
body.paper-theme .board-composer .board-attachment-tools { margin-top: 8px; }
body.paper-theme .board-composer-footer { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 12px 20px; }
body.paper-theme .board-composer-footer .community-status { flex: 1; margin: 0; }
body.paper-theme .board-composer [hidden] { display: none; }

@media (max-width: 600px) {
  body.paper-theme .dress-code { gap: 32px; }
  body.paper-theme .dress-code-photo figcaption { font-size: 11px; }
  body.paper-theme.admin-page .admin-editor { padding: 18px; }
  body.paper-theme.travel-page .travel-place-search { padding-top: 32px; }
  body.paper-theme.travel-page #place-search-form { padding: 16px 16px 12px; }
  body.paper-theme .assistant-key-hint { visibility: hidden; }
  body.paper-theme.travel-page .assistant-prompts { gap: 2px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  body.paper-theme :is(button,a,input,textarea,select) { transition: none; }
}

body.paper-theme .language-toggle,
body.paper-theme.admin-page .language-toggle { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 44px; width: 44px; height: 44px; min-height: 44px; margin: 0 0 0 16px; padding: 0; border: 1px solid #e8e3da; border-radius: 6px; background: #fff; color: #6d5d42; box-shadow: none; font: 500 12px/1 'Helvetica Neue',sans-serif; letter-spacing: .04em; text-decoration: none; cursor: pointer; }
body.paper-theme .language-toggle:hover,
body.paper-theme.admin-page .language-toggle:hover { background: #f5f1e9; color: #4b4335; border-color: #c9beac; transform: none; }
body.paper-theme > .language-toggle { position: fixed; top: 20px; right: 24px; z-index: 10; }
body.paper-theme .site-menu > .language-toggle { position: absolute; top: 18px; right: 24px; }
body.paper-theme .admin-topbar .admin-back { margin-left: auto; }
body.paper-theme .trip-collaboration { padding: 36px 0 12px; border-top: 1px solid #e8e3da; margin-top: 32px; }
body.paper-theme .trip-collaboration h3 { margin: 6px 0 14px; font: 400 27px/1.5 Iansui,'Noto Serif TC',serif; }
body.paper-theme .trip-collaboration-intro { max-width: 680px; margin: 0 0 24px; color: #7b7263; font-size: 13px; line-height: 1.8; }
body.paper-theme .trip-entry { padding: 22px 0; border-bottom: 1px solid #e8e3da; }
body.paper-theme .trip-entry-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 20px; }
body.paper-theme .trip-entry-head h4 { flex: 1; min-width: 100px; margin: 0; font-size: 17px; font-weight: 500; overflow-wrap: anywhere; }
body.paper-theme .trip-entry-time { color: #817052; font-size: 12px; font-variant-numeric: tabular-nums; }
body.paper-theme .trip-entry-kind { padding: 3px 8px; border-radius: 4px; color: #817052; background: #f5f1e9; font-size: 11px; }
body.paper-theme .trip-entry-location { font-size: 13px; margin: 10px 0 4px; }
body.paper-theme .trip-entry-note { white-space: pre-wrap; font-size: 13px; line-height: 1.9; margin: 8px 0; }
body.paper-theme .trip-entry-meta { font-size: 11px; margin: 10px 0 2px; color: #8a8174; }
body.paper-theme .trip-entry-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 24px; }
body.paper-theme .trip-entry-actions button[aria-pressed=true] { color: #4b4335; text-decoration: underline; text-underline-offset: 5px; }
body.paper-theme .trip-empty { color: #8a8174; padding: 8px 0 20px; font-size: 13px; }
body.paper-theme .trip-entry-form { margin-top: 30px; padding: 26px; border: 1px solid #e8e3da; border-radius: 8px; background: #fff; }
body.paper-theme .trip-entry-form h4 { margin: 0 0 22px; font: 500 16px/1.5 'Noto Sans TC',sans-serif; }
body.paper-theme .trip-entry-fields { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
body.paper-theme .trip-entry-fields label { display: grid; gap: 8px; min-width: 0; color: #766a59; font-size: 12px; }
body.paper-theme .trip-field-wide { grid-column: 1 / -1; }
body.paper-theme .trip-entry-fields :is(input,select,textarea) { width: 100%; min-width: 0; margin: 0; border: 1px solid #d6cebf; border-radius: 6px; padding: 11px 12px; background: #fff; color: #4b4335; font: 400 16px/1.5 'Noto Sans TC',sans-serif; min-height: 46px; }
body.paper-theme .trip-entry-fields textarea { resize: vertical; }
body.paper-theme .trip-form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 24px; }
body.paper-theme .trip-form-actions [hidden] { display: none; }
body.paper-theme .trip-history { padding: 20px; margin-top: 12px; border-left: 2px solid #d6cebf; background: #fbfaf7; }
body.paper-theme .trip-history > div + div { margin-top: 20px; padding-top: 16px; border-top: 1px solid #e8e3da; }
body.paper-theme .trip-history strong { display: inline; font-size: 12px; font-weight: 500; }
body.paper-theme .trip-history time { margin-left: 12px; color: #8a8174; font-size: 11px; }
body.paper-theme .trip-history p { white-space: pre-wrap; font-size: 12px; line-height: 1.8; margin: 8px 0 0; }
body.paper-theme .trip-weather { padding: 18px 20px; margin: 0 0 24px; border: 1px solid #e8e3da; border-radius: 6px; background: #fff; }
body.paper-theme .trip-weather-heading { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; color: #817052; font-size: 11px; }
body.paper-theme .trip-weather p { margin: 12px 0 0; font-size: 13px; line-height: 1.8; }
body.paper-theme .trip-weather .trip-weather-note { margin-top: 4px; color: #8a8174; font-size: 11px; }
body.paper-theme .trip-weather-values { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 18px; margin-top: 14px; font-size: 12px; }
body.paper-theme .trip-weather-values strong { font: 400 28px/1.4 'Instrument Serif',Georgia,serif; }
body.paper-theme .trip-weather-source { display: inline-flex; align-items: center; min-height: 32px; color: #817052; font-size: 10px; text-underline-offset: 3px; }
html[lang=en] .paper-theme :is(h1,h2,h3,.letter-signoff) { font-family: 'Instrument Serif',Georgia,serif; letter-spacing: 0; }
html[lang=en] .paper-theme .letter-names { font-size: 44px; gap: 10px; }
html[lang=en] .paper-theme .letter-copy p { letter-spacing: 0; }
html[lang=en] .paper-theme .desktop-nav :is(a,button) { font-family: 'Helvetica Neue',sans-serif; font-size: 13px; letter-spacing: 0; }
html[lang=en] .paper-theme .desktop-nav { gap: 24px; }
html[lang=en] .paper-theme .community-tabs button { font-family: 'Helvetica Neue',sans-serif; letter-spacing: 0; }
@media (max-width: 760px) {
  body.paper-theme .trip-entry-fields { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 16px; }
  body.paper-theme .trip-entry-fields label:nth-child(3) { grid-column: 1 / -1; }
  body.paper-theme .trip-entry-form { padding: 20px 16px; }
  body.paper-theme .trip-collaboration h3 { font-size: 25px; }
  body.paper-theme .trip-weather { padding: 16px; }
  body.paper-theme .language-toggle { margin-left: 10px; }
  body.paper-theme .admin-brand span { display: none; }
  html[lang=en] .paper-theme .letter-names { font-size: clamp(30px,8vw,40px); }
}
@media print {
  body.paper-theme .language-toggle { display: none; }
  .letter-enhanced [data-letter-reveal] { opacity: 1; transform: none; }
}
