/* Self-hosted Google Fonts; SIL OFL 1.1. See licenses/ and ui-fonts-sources.json. */
/* Inter: greek-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/assets/fonts/inter-v20-greek-ext.woff2) format('woff2');
  unicode-range: U+1F00-1FFF;
}
/* Inter: greek */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/assets/fonts/inter-v20-greek.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* Inter: latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/assets/fonts/inter-v20-latin-ext.woff2) format('woff2');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}
/* Inter: latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/assets/fonts/inter-v20-latin.woff2) format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/fraunces-v38-brand.woff2) format('woff2');
  unicode-range: U+54, U+69, U+6c, U+6f-70, U+73;
}

:root {
  font-family: Inter, Arial, sans-serif;
  color: #000;
  background: #fff;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  min-width: 320px;
}
a {
  color: inherit;
}
button,
input,
select,
textarea {
  font: inherit;
  color: #000;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
}
input,
select,
textarea {
  background: #fff;
  border: 1px solid #000;
  border-radius: 0;
}
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 2px solid #000;
  outline-offset: 3px;
}
input::placeholder,
textarea::placeholder {
  color: #888;
}
p {
  line-height: 1.6;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
.container {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.site-header {
  border-bottom: 1px solid #000;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 70px;
}
.brand {
  font-family: Fraunces, Georgia, serif;
  font-size: 23px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: -0.05em;
}
.brand-mark {
  font-family: Arial, sans-serif;
  font-size: 19px;
  vertical-align: 2px;
  margin-right: 3px;
}
.brand-count {
  font-family: Inter, Arial, sans-serif;
  display: inline-block;
  border: 1px solid #000;
  border-radius: 999px;
  padding: 2px 7px;
  font-size: 10px;
  letter-spacing: 0;
  vertical-align: 3px;
  margin-left: 6px;
}
.top-nav {
  display: flex;
  gap: 20px;
  font-size: 13px;
  font-weight: 600;
}
.top-nav a {
  text-decoration: none;
}
.top-nav a:hover,
.footer-links a:hover,
.breadcrumb a:hover,
.back-link:hover {
  text-decoration: underline;
}
.home-hero {
  padding: 58px 0 42px;
  border-bottom: 1px solid #000;
}
.home-hero h1 {
  font-size: clamp(35px, 5.5vw, 66px);
  line-height: 1.05;
  letter-spacing: -0.06em;
  margin-bottom: 18px;
  font-weight: 800;
}
.home-hero h1 em {
  font-style: normal;
}
.hero-copy {
  font-size: 15px;
  max-width: 640px;
  margin-bottom: 26px;
}
.search-box {
  height: 56px;
  border: 2px solid #000;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 15px;
  max-width: 650px;
}
.search-icon {
  font-size: 29px;
  line-height: 1;
}
.search-box input {
  border: 0;
  outline: 0;
  width: 100%;
  min-width: 0;
  height: 100%;
  font-size: 15px;
}
.search-box input:focus-visible {
  outline: 0;
}
.search-box kbd {
  font-size: 13px;
  border: 1px solid #000;
  padding: 2px 6px;
}
.search-status {
  min-height: 0;
  margin: 8px 0 0;
  font-size: 13px;
}
.search-status:empty {
  display: none;
}
.featured-section,
.category-section,
.related-section {
  padding: 36px 0 38px;
  border-bottom: 1px solid #000;
  scroll-margin-top: 20px;
}
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 17px;
}
.section-heading .eyebrow {
  margin-bottom: 7px;
}
.section-heading h2 {
  font-size: 28px;
  letter-spacing: -0.04em;
  margin: 0;
}
.section-heading p:not(.eyebrow) {
  font-size: 13px;
  margin: 7px 0 0;
}
.section-rule {
  font-size: 24px;
  line-height: 1;
}
.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid #000;
  border-left: 1px solid #000;
}
.tool-card {
  position: relative;
  min-height: 104px;
  text-decoration: none;
  padding: 17px 34px 17px 17px;
  border-right: 1px solid #000;
  border-bottom: 1px solid #000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tool-card:hover {
  color: #fff;
  background: #000;
}
.tool-card-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}
.tool-card-description {
  font-size: 12px;
  line-height: 1.4;
}
.card-arrow {
  position: absolute;
  right: 14px;
  top: 15px;
  font-size: 17px;
}
.category-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 26px 0 0;
}
.category-links a {
  border: 1px solid #000;
  padding: 9px 13px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
}
.category-links a:hover {
  background: #000;
  color: #fff;
}
.tool-layout {
  padding-bottom: 70px;
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  padding: 24px 0 40px;
}
.breadcrumb a {
  text-decoration: none;
}
.tool-header {
  max-width: 790px;
  margin-bottom: 26px;
}
.tool-header h1,
.simple-page h1 {
  font-size: clamp(35px, 5vw, 57px);
  letter-spacing: -0.06em;
  line-height: 1.08;
  margin-bottom: 13px;
}
.tool-header > p:last-child {
  font-size: 16px;
  margin: 0;
}
.tool-panel {
  border: 1px solid #000;
  max-width: 870px;
}
.panel-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-bottom: 1px solid #000;
  padding: 12px 20px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}
.panel-body {
  padding: 24px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 13px;
  font-weight: 700;
  min-width: 0;
}
.field > input,
.field > select,
.field > textarea,
textarea[readonly] {
  width: 100%;
  padding: 12px 13px;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
}
.field > input,
.field > select {
  min-height: 48px;
}
.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 19px;
}
.field-row .field {
  flex: 1;
}
.segmented {
  display: flex;
  flex-wrap: wrap;
  margin: 0 0 20px;
}
.segmented button {
  background: #fff;
  border: 1px solid #000;
  padding: 11px 17px;
  font-size: 13px;
  font-weight: 700;
  margin-right: -1px;
}
.segmented button.is-active {
  background: #000;
  color: #fff;
}
.tool-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 20px;
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 43px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid #000;
}
.button-black {
  color: #fff;
  background: #000;
}
.button-black:hover {
  color: #000;
  background: #fff;
}
.button-outline {
  color: #000;
  background: #fff;
}
.button-outline:hover {
  color: #fff;
  background: #000;
}
.button:disabled {
  background: #fff;
  color: #000;
  border-style: dashed;
}
.text-button {
  border: 0;
  background: #fff;
  text-decoration: underline;
  font-weight: 700;
  font-size: 12px;
  padding: 4px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-left: 1px solid #000;
  border-top: 1px solid #000;
  margin: 20px 0 0;
}
.stat {
  border-right: 1px solid #000;
  border-bottom: 1px solid #000;
  padding: 14px;
  min-width: 0;
}
.stat-label {
  font-size: 11px;
  font-weight: 700;
  display: block;
  margin-bottom: 8px;
}
.stat-value {
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.04em;
  word-break: break-word;
}
.result-content {
  line-height: 1.6;
}
.result-content h2 {
  font-size: 26px;
  letter-spacing: -0.04em;
  margin: 8px 0;
}
.result-content p {
  margin: 8px 0;
}
.name-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 15px 0;
}
.name-pill {
  border: 1px solid #000;
  padding: 6px 10px;
  font-weight: 600;
  font-size: 13px;
}
.date-display {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.result-row {
  border-bottom: 1px solid #000;
  padding: 13px 0;
}
.result-row:last-child {
  border-bottom: 0;
}
.result-row strong {
  font-size: 14px;
}
.result-row p {
  font-size: 13px;
}
.file-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  border: 2px dashed #000;
  min-height: 170px;
  padding: 20px;
  cursor: pointer;
}
.file-drop input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.file-drop:focus-within {
  outline: 2px solid #000;
  outline-offset: 3px;
}
.file-drop .drop-icon {
  font-size: 29px;
  line-height: 1;
}
.file-drop strong {
  font-size: 17px;
}
.file-drop span:not(.drop-icon) {
  font-size: 12px;
}
.file-list {
  margin-top: 14px;
}
.file-item {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #000;
  padding: 10px 12px;
  margin-top: -1px;
  font-size: 12px;
  min-height: 43px;
}
.file-item:first-child {
  margin-top: 0;
}
.file-item .file-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}
.file-item button {
  background: #fff;
  border: 0;
  font-size: 17px;
  padding: 0 4px;
}
.compact-fields {
  margin-top: 20px;
  align-items: end;
}
.check-field {
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
}
.check-field input {
  accent-color: #000;
}
.status {
  font-size: 12px;
  margin: 12px 0 0;
}
.status:empty {
  display: none;
}
.download-list {
  margin-top: 18px;
  display: grid;
  gap: 8px;
}
.download-list a {
  border: 1px solid #000;
  padding: 10px 12px;
  font-size: 12px;
  text-decoration: none;
  font-weight: 700;
}
.download-list a:hover {
  background: #000;
  color: #fff;
}
.output-header {
  display: flex;
  justify-content: space-between;
  margin: 20px 0 8px;
  font-size: 13px;
}
.small-note,
.source-note {
  font-size: 12px;
  line-height: 1.6;
  margin: 18px 0 0;
}
.info-section {
  padding: 48px 0;
  max-width: 870px;
  border-bottom: 1px solid #000;
}
.info-section h2 {
  font-size: 26px;
  letter-spacing: -0.04em;
  margin-bottom: 11px;
}
.info-section > p:not(.eyebrow) {
  font-size: 14px;
}
.related-section {
  max-width: 1160px;
}
.simple-page {
  min-height: 60vh;
  padding: 35px 0 90px;
  max-width: 820px;
}
.simple-page .back-link {
  display: inline-block;
  margin-bottom: 45px;
  font-size: 12px;
}
.simple-page p:not(.eyebrow) {
  font-size: 15px;
}
.site-footer {
  border-top: 1px solid #000;
  padding: 34px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 30px;
}
.footer-brand {
  font-size: 19px;
}
.footer-inner p {
  font-size: 12px;
  margin: 10px 0 0;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-content: start;
  font-size: 12px;
}
.footer-links a {
  text-decoration: none;
}
@media (max-width: 800px) {
  .top-nav {
    gap: 11px;
    font-size: 11px;
    overflow: auto;
  }
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }
  .tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .home-hero {
    padding: 40px 0 30px;
  }
  .breadcrumb {
    padding: 18px 0 28px;
  }
  .tool-header h1 {
    font-size: 42px;
  }
}
@media (max-width: 560px) {
  .container {
    width: min(100% - 28px, 1160px);
  }
  .top-nav {
    width: 100%;
    padding-bottom: 2px;
  }
  .tool-grid {
    grid-template-columns: 1fr;
  }
  .tool-card {
    min-height: 84px;
  }
  .home-hero h1 {
    font-size: 38px;
  }
  .hero-copy {
    font-size: 13px;
  }
  .section-heading h2 {
    font-size: 24px;
  }
  .field-row {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .panel-body {
    padding: 17px;
  }
  .panel-heading {
    padding: 11px 17px;
  }
  .footer-inner {
    flex-direction: column;
  }
  .breadcrumb {
    font-size: 11px;
  }
  .tool-header h1 {
    font-size: 36px;
  }
}
[hidden] {
  display: none !important;
}
@font-face {
  font-family: PhotoJournalHand;
  src: url('/assets/fonts/handwriting-greek-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0020-024F, U+0300-03FF, U+1F00-1FFF, U+2000-206F, U+20A0-20CF, U+2100-214F;
}
@font-face {
  font-family: PhotoJournalHand;
  src: url('/assets/fonts/handwriting-cjk.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range:
    U+2E80-2FFF, U+3000-303F, U+3400-9FFF, U+F900-FAFF, U+FE10-FE1F, U+FE30-FE6F, U+FF00-FFEF,
    U+20000-2FA1F;
}
body[data-tool='photo-book'] .book-caption-input,
body[data-tool='photo-book'] #photo-style-caption {
  font-family: PhotoJournalHand, cursive;
  font-style: normal;
  font-weight: 400;
  font-synthesis: none;
}
.photo-select-native {
  display: none;
}
.photo-select {
  position: relative;
  min-width: 0;
  font-weight: 400;
}
.photo-select-trigger {
  position: relative;
  width: 100%;
  min-height: 48px;
  padding: 12px 38px 12px 13px;
  text-align: left;
  line-height: 1.5;
  font-size: 15px;
  border: 1px solid #000;
  border-radius: 0;
  background: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.photo-select-trigger::after {
  content: '';
  position: absolute;
  right: 15px;
  top: calc(50% - 5px);
  width: 7px;
  height: 7px;
  border-right: 1.5px solid #000;
  border-bottom: 1.5px solid #000;
  transform: rotate(45deg);
}
.photo-select-trigger[aria-expanded='true']::after {
  top: calc(50% - 1px);
  transform: rotate(225deg);
}
.photo-select-trigger[aria-expanded='true'] {
  box-shadow: 3px 3px 0 #000;
}
.photo-select-trigger:disabled {
  color: #777;
  border-style: dashed;
  cursor: not-allowed;
}
.photo-select-list {
  position: absolute;
  z-index: 20;
  top: calc(100% + 5px);
  left: 0;
  width: 100%;
  max-height: 250px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid #000;
  box-shadow: 3px 3px 0 #000;
  background: #fff;
  padding: 4px;
}
.photo-select-list [role='option'] {
  font-size: 14px;
  padding: 10px 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  cursor: pointer;
  border: 1px solid transparent;
}
.photo-select-list [role='option'][aria-selected='true'] {
  background: #000;
  color: #fff;
}
.photo-select-list [role='option']:hover,
.photo-select-list [role='option'].is-highlighted {
  border-color: #000;
  background: #eee8dc;
  color: #000;
}
.photo-style-fields .photo-select-trigger {
  font-size: 13px;
  padding: 9px 34px 9px 10px;
  min-height: 40px;
}
.search-icon {
  width: 21px;
  height: 21px;
  flex: none;
}
.search-box:focus-within {
  box-shadow: 3px 3px 0 #000;
}
input::placeholder,
textarea::placeholder {
  color: #000;
}
#tool-search::placeholder {
  color: #888;
}
.tool-card,
.category-links a,
.button,
.segmented button,
.text-button,
.download-list a,
.file-drop,
.file-item button,
.top-nav a,
.footer-links a,
.brand,
.back-link {
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background-color 0.15s ease,
    color 0.15s ease;
}
.tool-card:hover,
.category-links a:hover,
.button:not(:disabled):hover,
.segmented button:hover,
.download-list a:hover,
.file-drop:hover {
  transform: translate(-2px, -2px);
  box-shadow: 3px 3px 0 #000;
  z-index: 1;
}
.tool-card:active,
.category-links a:active,
.button:not(:disabled):active,
.segmented button:active,
.download-list a:active,
.file-drop:active {
  transform: translate(1px, 1px);
  box-shadow: none;
}
.text-button:hover,
.file-item button:hover,
.top-nav a:hover,
.footer-links a:hover,
.brand:hover,
.back-link:hover {
  transform: translateY(-2px);
}
.text-button:active,
.file-item button:active,
.top-nav a:active,
.footer-links a:active,
.brand:active,
.back-link:active {
  transform: translateY(1px);
}
.top-nav a,
.footer-links a,
.brand,
.back-link,
.text-button,
.file-item button {
  display: inline-block;
}
@media (prefers-reduced-motion: reduce) {
  .tool-card,
  .category-links a,
  .button,
  .segmented button,
  .text-button,
  .download-list a,
  .file-drop,
  .file-item button,
  .top-nav a,
  .footer-links a,
  .brand,
  .back-link {
    transition: none;
  }
}
.ocr-result-actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.word-render-stage {
  position: fixed;
  left: -10000px;
  top: 0;
  width: max-content;
  pointer-events: none;
}
.book-title-field {
  margin-top: 20px;
}
.book-preview {
  margin-top: 22px;
  max-width: 820px;
  overflow-x: auto;
  padding: 0 7px 9px 0;
}
.book-preview-pages {
  display: flex;
  width: 100%;
  transform-origin: center center;
  box-shadow: 5px 5px 0 #000;
}
.book-preview-pages.is-cover {
  max-width: 410px;
}
.book-preview-pages.is-spread {
  max-width: 800px;
}
.book-sheet {
  position: relative;
  container-type: inline-size;
  width: 50%;
  aspect-ratio: 420/595;
  flex: none;
  overflow: hidden;
  background: #fff;
  border: 1px solid #000;
}
.is-cover .book-sheet {
  width: 100%;
}
.is-spread .book-sheet + .book-sheet {
  border-left: 0;
}
.book-masthead,
.book-title,
.book-issue,
.book-footer {
  position: absolute;
  display: block;
  color: #000;
}
.book-masthead {
  top: 5%;
  left: 7.1%;
  font:
    700 2.58cqw Arial,
    sans-serif;
  letter-spacing: 0.02em;
}
.book-title {
  top: 11.2%;
  left: 7.1%;
  width: 85.8%;
  font:
    700 8.6cqw/1.05 Arial,
    sans-serif;
  overflow-wrap: anywhere;
}
.book-cover-sheet .book-title {
  top: 10.9%;
  font-size: 9.6cqw;
}
.book-issue {
  top: 5.3%;
  left: 73%;
  font:
    700 1.85cqw Arial,
    sans-serif;
}
.book-footer {
  left: 7.1%;
  bottom: 4.7%;
  font:
    700 2cqw Arial,
    sans-serif;
}
.book-slot {
  position: absolute;
  margin: 0;
}
.book-slot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.book-slot figcaption {
  position: absolute;
  left: 0;
  top: -2.4cqw;
  font:
    700 1.75cqw Arial,
    sans-serif;
}
.book-cover-sheet .book-slot figcaption {
  display: none;
}
.book-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 20px;
  max-width: 800px;
}
.book-controls span {
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.book-controls .button {
  min-width: 0;
}
.book-page-enter {
  animation: book-turn 0.28s ease-out;
}
@keyframes book-turn {
  from {
    transform: perspective(900px) rotateY(-8deg);
    opacity: 0.75;
  }
  to {
    transform: perspective(900px) rotateY(0);
    opacity: 1;
  }
}
@media (max-width: 560px) {
  .book-preview-pages.is-spread {
    min-width: 600px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .book-page-enter {
    animation: none;
  }
}
.book-left-sheet.book-variant-3 .book-title {
  top: 31%;
  text-align: center;
}
.book-left-sheet.book-variant-2 .book-footer,
.book-left-sheet.book-variant-4 .book-footer {
  color: #fff;
  text-shadow: 0 1px 2px #000;
}
.book-left-sheet.book-variant-2 .book-slot figcaption,
.book-left-sheet.book-variant-4 .book-slot figcaption {
  display: none;
}
.book-sheet {
  background: #f8fbfb;
}
.book-cover-sheet {
  background: #e2f5ef;
}
.book-sheet:not(.book-full-bleed)::before,
.book-sheet:not(.book-full-bleed)::after {
  content: '';
  position: absolute;
  left: 7.1%;
  width: 85.8%;
  pointer-events: none;
}
.book-sheet:not(.book-full-bleed)::before {
  top: 8.4%;
  height: 0.6cqw;
  background: linear-gradient(90deg, #ef9e8f 0 16%, #dfeae6 16% 100%);
}
.book-sheet:not(.book-full-bleed)::after {
  bottom: 7.8%;
  height: 1px;
  background: #dfeae6;
}
.book-cover-sheet:not(.book-full-bleed)::after {
  bottom: 7%;
}
.book-imprint {
  position: absolute;
  right: 7.1%;
  bottom: 4.7%;
  font:
    700 1.7cqw Arial,
    sans-serif;
  letter-spacing: 0.04em;
  color: #526267;
}
.book-slot img {
  outline: 1px solid #dfeae6;
}
.book-full-bleed .book-slot img {
  outline: none;
}
.book-caption {
  position: absolute;
}
.book-caption svg {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.book-caption path {
  fill: none;
  stroke: #b7d8ce;
  stroke-width: 2;
}
.book-caption-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0 1% 0 0;
  border: 0;
  background: transparent;
  color: #000;
  font-family: Arial, sans-serif;
  font-weight: 400;
  resize: none;
  overflow: hidden;
  outline: none;
}
.book-caption-input::placeholder {
  color: #526267;
}
.book-caption-input:focus-visible {
  outline: 2px solid #1d6a52;
  outline-offset: 3px;
}
.book-caption-input:disabled {
  opacity: 1;
}
.ordered-file-item {
  flex-wrap: wrap;
}
.ordered-file-item .file-name {
  min-width: 145px;
}
.file-order {
  min-width: 22px;
  font-weight: 800;
}
.ordered-file-item button {
  border: 1px solid #000;
  padding: 5px 7px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.ordered-file-item button:disabled {
  border-style: dashed;
}
.image-preview {
  display: block;
  max-width: 100%;
  height: auto;
  margin-top: 20px;
  border: 1px solid #000;
}
.image-preview[hidden] {
  display: none;
}
.book-styled-photo img {
  object-fit: contain;
}
.photo-style-section {
  margin-top: 24px;
  padding: 22px;
  border: 1px solid #cfc7b8;
  background: #faf8f3;
}
.photo-style-section h3 {
  font-size: 18px;
  margin-bottom: 18px;
}
.photo-style-section > .small-note {
  margin: 12px 0 18px;
}
.photo-style-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px;
  margin-top: 20px;
  align-items: start;
}
.photo-style-preview canvas {
  display: block;
  width: 100%;
  height: auto;
  box-shadow: 0 4px 15px #0002;
}
.photo-style-fields {
  display: grid;
  gap: 15px;
  min-width: 0;
}
.photo-style-fields .field {
  font-size: 12px;
}
.photo-style-fields .field > textarea,
.photo-style-fields .field > select {
  padding: 9px;
  font-size: 13px;
}
.photo-style-fields .field > input[type='range'] {
  padding: 0;
  min-height: 26px;
  accent-color: #7b6a50;
}
.photo-style-fields .text-button {
  text-align: left;
}
.photo-style-fields .small-note {
  margin: 0;
  color: #635b4f;
}
.photo-style-section .text-button {
  background: transparent;
}
.photo-style-workspace > div > .text-button {
  margin-top: 15px;
}
.photo-style-fields textarea {
  resize: vertical;
}
.photo-style-fields .status {
  color: #8f3f24;
  margin: 0;
}
.photo-style-section select {
  max-width: 100%;
}
@media (max-width: 650px) {
  .photo-style-section {
    padding: 16px;
  }
  .photo-style-workspace {
    grid-template-columns: 1fr;
  }
  .photo-style-preview {
    max-width: 380px;
    margin-inline: auto;
  }
}
.footer-inner .footer-suggestion {
  max-width: 570px;
  margin-top: 18px;
  font-size: 13px;
  line-height: 1.6;
}
.tool-controls {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.tool-loading {
  margin: 0 0 14px;
}
.daily-output {
  margin-top: 20px;
}
.option-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
}
.table-scroll {
  overflow: auto;
  max-height: 480px;
  margin-top: 24px;
  border: 1px solid #000;
}
.table-scroll:empty {
  display: none;
}
.daily-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.daily-table caption {
  padding: 14px;
  text-align: left;
  font-weight: 700;
}
.daily-table th,
.daily-table td {
  padding: 10px 12px;
  border-top: 1px solid #000;
  text-align: right;
  white-space: nowrap;
}
.daily-table th:first-child {
  text-align: left;
}
.daily-table thead {
  position: sticky;
  top: 0;
  background: #fff;
}
.daily-table tbody th {
  font-weight: 400;
}
.timer-settings {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.timer-display {
  font-size: clamp(30px, 8vw, 76px);
  font-weight: 800;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  text-align: center;
  padding: 30px 0;
  overflow-wrap: anywhere;
}
.timer-laps {
  padding-left: 24px;
  max-height: 300px;
  overflow: auto;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.timer-laps li {
  padding: 8px 0;
  border-bottom: 1px solid #000;
}
.qr-preview {
  margin-top: 24px;
  text-align: center;
  border: 1px solid #000;
  padding: 12px;
}
.qr-preview canvas {
  display: block;
  max-width: 100%;
  height: auto;
  margin: auto;
}
#password-output {
  font-family: monospace;
  font-size: 16px;
  overflow-wrap: anywhere;
}
.shopping-toolbar {
  margin-top: 24px;
}
.shopping-items h2 {
  font-size: 18px;
  margin: 24px 0 10px;
}
.shopping-items ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.shopping-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid #000;
}
.shopping-item-label {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
  overflow-wrap: anywhere;
  cursor: pointer;
}
.shopping-item-label input {
  width: 18px;
  height: 18px;
  flex: none;
  accent-color: #000;
}
.shopping-item-label span {
  font-weight: 600;
}
.shopping-item-label small {
  font-size: 12px;
}
.shopping-row-actions {
  display: flex;
  gap: 16px;
  flex: none;
}
.shopping-done {
  text-decoration: line-through;
  color: #666;
}
.shopping-print {
  display: none;
}
@media (max-width: 560px) {
  .timer-settings {
    grid-template-columns: 1fr;
  }
  .shopping-item {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  .shopping-row-actions {
    padding-left: 28px;
  }
  .timer-display {
    letter-spacing: -0.06em;
  }
}
@media print {
  body[data-tool='shopping-list'] .site-header,
  body[data-tool='shopping-list'] .site-footer,
  body[data-tool='shopping-list'] .breadcrumb,
  body[data-tool='shopping-list'] .tool-header,
  body[data-tool='shopping-list'] .panel-heading,
  body[data-tool='shopping-list'] .shopping-controls,
  body[data-tool='shopping-list'] .shopping-items,
  body[data-tool='shopping-list'] #shopping-count,
  body[data-tool='shopping-list'] #daily-status,
  body[data-tool='shopping-list'] .info-section,
  body[data-tool='shopping-list'] .related-section {
    display: none !important;
  }
  body[data-tool='shopping-list'] .tool-panel {
    border: 0;
    max-width: none;
  }
  body[data-tool='shopping-list'] .panel-body {
    padding: 0;
  }
  body[data-tool='shopping-list'] .shopping-print {
    display: block;
  }
  body[data-tool='shopping-list'] .shopping-print li {
    margin: 10px 0;
    overflow-wrap: anywhere;
  }
  body[data-tool='shopping-list'] .shopping-print ul {
    list-style: none;
    padding: 0;
  }
  body[data-tool='shopping-list'] .tool-layout {
    padding: 0;
  }
}
.single-file-item button {
  border: 1px solid #000;
  padding: 6px 9px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.single-file-item button:disabled {
  border-style: dashed;
  color: #777;
}
.photo-select-list [role='option'][aria-disabled='true'] {
  color: #888;
  cursor: not-allowed;
}
@font-face {
  font-family: PhotoJournalDocument;
  src: url('/assets/fonts/document-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
.photo-select-popup {
  position: absolute;
  z-index: 20;
  top: calc(100% + 5px);
  left: 0;
  width: 100%;
  padding: 6px;
  background: #fff;
  border: 1px solid #000;
  box-shadow: 3px 3px 0 #000;
}
.photo-select-popup .photo-select-list {
  position: static;
  width: auto;
  max-height: 230px;
  margin-top: 6px;
  padding: 0;
  border: 0;
  box-shadow: none;
}
.photo-select-search {
  display: block;
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  font-size: 14px;
}
.photo-select-empty {
  margin: 12px 6px;
  font-size: 13px;
  line-height: 1.5;
}
.cooking-custom {
  margin: 20px 0;
  padding: 18px;
  border: 1px solid #000;
  background: #f7f5f0;
}
.cooking-custom h3 {
  font-size: 17px;
  margin: 0 0 18px;
}
.cooking-custom .field-row {
  margin-top: 18px;
}
.heic-card .file-item .heic-remove {
  font-size: 12px;
  border: 1px solid #000;
  padding: 5px 7px;
}
.document-modern .document-running {
  border-bottom-width: 3pt;
}
.document-modern .document-line.heading::before {
  content: '';
  position: absolute;
  left: -9pt;
  top: 0;
  width: 3pt;
  height: 17pt;
  background: var(--document-accent);
}
.document-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 20px 0;
}
.document-fields .field,
.cv-entry .field {
  min-width: 0;
}
.document-preview {
  max-width: 100%;
  overflow: auto;
  background: #eee;
}
.document-preview:empty {
  display: none;
}
.document-sheet {
  position: relative;
  flex-shrink: 0;
  width: 595.28pt;
  height: 841.89pt;
  margin: 16px auto;
  background: white;
  color: #141414;
  font:
    11pt PhotoJournalDocument,
    sans-serif;
  box-shadow: 0 1px 5px #0002;
  box-sizing: border-box;
}
.document-line {
  position: absolute;
  white-space: pre;
  line-height: 1;
  font-weight: 400;
  letter-spacing: 0;
}
.document-line.heading,
.document-line.title {
  color: var(--document-accent);
}
.document-running {
  position: absolute;
  left: 46pt;
  right: 46pt;
  top: 22pt;
  height: 20pt;
  border-bottom: 1pt solid var(--document-accent);
  font-size: 8pt;
  white-space: nowrap;
}
.document-page-number {
  position: absolute;
  right: 46pt;
  bottom: 23pt;
  font-size: 8pt;
}
.cv-entry {
  padding: 20px;
  border: 1px solid #000;
  margin-bottom: 20px;
}
.cv-entry h4 {
  margin: 0 0 16px;
}
.cv-entry .field {
  margin-bottom: 16px;
}
.heic-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.heic-card {
  border: 1px solid #000;
  padding: 16px;
  min-width: 0;
}
.heic-card img {
  display: block;
  max-width: 100%;
  max-height: 260px;
  object-fit: contain;
  margin: 12px auto;
}
.heic-card .file-item {
  padding: 0;
  border: 0;
}
.heic-card .file-name {
  overflow-wrap: anywhere;
}
.heic-card .small-note {
  overflow-wrap: anywhere;
}
.heic-card .button {
  margin-top: 10px;
}
@media (max-width: 650px) {
  .document-fields,
  .heic-results {
    grid-template-columns: 1fr;
  }
  .cv-entry {
    padding: 14px;
  }
  .document-preview {
    margin-inline: -10px;
  }
}
.third-details {
  margin: 20px 0;
  border: 1px solid #000;
  padding: 14px;
}
.third-details summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
}
.third-details[open] summary {
  margin-bottom: 16px;
}
.third-details p:last-child {
  margin-bottom: 0;
}
.spelling-result {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.9;
  border: 1px solid #000;
  padding: 18px;
  margin-top: 20px;
  min-height: 130px;
}
.spelling-result:empty {
  display: none;
}
.spell-error {
  display: inline;
  border: 0;
  border-bottom: 2px wavy #b32318;
  background: #fff0ed;
  color: #8e2017;
  padding: 0 2px;
  line-height: inherit;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.spell-error:hover,
.spell-error:focus-visible {
  background: #ffe0d9;
}
.spelling-suggestions {
  border: 1px solid #000;
  padding: 18px;
  margin-top: 16px;
}
.spelling-suggestions h3 {
  font-size: 17px;
  overflow-wrap: anywhere;
}
.spelling-suggestions > .button {
  margin: 12px 8px 0 0;
}
.stats-grid:empty,
.table-scroll:empty {
  display: none;
}
#education-detail > p {
  padding: 12px;
  margin: 0;
  border-bottom: 1px solid #000;
  font-size: 14px;
}
#education-results .daily-table td:nth-child(2) {
  min-width: 220px;
}
#education-results .daily-table td:last-child {
  white-space: nowrap;
  font-weight: 700;
}
#education-results .daily-table {
  table-layout: fixed;
  min-width: 620px;
}
#education-results th:first-child,
#education-results td:first-child {
  width: 72px;
  text-align: left;
}
#education-results th:nth-child(3),
#education-results td:nth-child(3) {
  width: 140px;
}
#education-results th:last-child,
#education-results td:last-child {
  width: 90px;
}
#education-results th:nth-child(2),
#education-results td:nth-child(2),
#education-results th:nth-child(3),
#education-results td:nth-child(3) {
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: left;
}
#education-detail .daily-table {
  min-width: 540px;
}
#education-detail td:first-child {
  white-space: normal;
  text-align: left;
}
#salary-form > .field,
#bonus-form > .field {
  margin-bottom: 18px;
}
.personality-question {
  min-width: 0;
  margin: 24px 0;
  padding: 18px;
  border: 1px solid #000;
}
.personality-question legend {
  max-width: 100%;
  padding: 0 6px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.personality-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.personality-options label {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px;
  border: 1px solid #000;
  font-size: 13px;
  line-height: 1.5;
  cursor: pointer;
  min-height: 46px;
}
.personality-options label:last-child {
  grid-column: 1/-1;
}
.personality-options label:has(input:checked) {
  background: #000;
  color: #fff;
}
.personality-options input {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin: 0;
  accent-color: #777;
}
.personality-note-toggle,
.personality-answer-clear {
  background: #fff;
  border: 0;
  text-decoration: underline;
  font-size: 12px;
  padding: 12px 0;
  margin-right: 16px;
}
.personality-note {
  margin-top: 12px;
}
.personality-note[hidden] {
  display: none;
}
.personality-submit {
  margin-top: 24px;
  padding: 20px;
  border: 1px solid #000;
}
.personality-submit h3 {
  font-size: 20px;
}
.personality-submit .check-field {
  align-items: flex-start;
  line-height: 1.6;
}
.personality-submit input[type='checkbox'] {
  flex-shrink: 0;
  margin-top: 4px;
}
.personality-report {
  margin-top: 28px;
}
.personality-report > h2 {
  font-size: 28px;
}
.personality-report p {
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.personality-dimension {
  border: 1px solid #000;
  margin: 18px 0;
  padding: 18px;
}
.personality-dimension h3 {
  font-size: 18px;
}
.personality-dimension ul {
  padding-left: 20px;
  font-size: 13px;
  line-height: 1.7;
}
.personality-dimension li {
  margin: 9px 0;
}
.personality-dimension button {
  background: #fff;
  border: 1px solid #000;
  padding: 2px 6px;
  font-size: 12px;
  text-decoration: underline;
}
.personality-disclaimer {
  border-left: 4px solid #000;
  background: #f5f5f5;
  padding: 16px;
  font-size: 14px;
}
#personality-coverage {
  overflow-wrap: anywhere;
}
#personality-questions {
  scroll-margin-top: 16px;
}
@media (max-width: 650px) {
  .personality-question,
  .personality-dimension,
  .personality-submit {
    padding: 14px;
  }
  .personality-options {
    grid-template-columns: 1fr;
  }
  .personality-options label:last-child {
    grid-column: auto;
  }
}
.personality-card-preview {
  max-width: 580px;
  margin: 24px auto;
}
.personality-share-canvas {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #000;
  box-shadow: 7px 7px 0 #000;
}
.personality-followups {
  border: 2px solid #000;
  background: #f6f4ef;
  padding: 20px;
  margin: 24px 0;
}
.personality-followups .field {
  margin: 20px 0;
}
.personality-followups .field span {
  font-weight: 400;
  line-height: 1.6;
}
.personality-details-title {
  margin-top: 36px;
}
.personality-report > .tool-actions {
  justify-content: center;
}
#photo-legacy-fields,
#photo-collage-fields {
  display: grid;
  gap: 15px;
}
.photo-collage-thumbnails {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0 22px;
}
.photo-collage-tile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 7px;
  align-items: center;
  min-width: 0;
  padding: 9px;
  border: 1px solid #c5bdad;
  background: #fff;
  font-size: 12px;
  line-height: 1.4;
}
.photo-collage-tile canvas {
  width: 100%;
  height: 96px;
  object-fit: contain;
}
.photo-collage-tile[aria-pressed='true'] {
  outline: 2px solid #000;
  outline-offset: 1px;
  background: #eee7d8;
}
.photo-collage-tile span {
  overflow-wrap: anywhere;
}
.photo-style-fields > .tool-actions {
  gap: 12px;
}
.photo-style-fields .tool-actions .text-button {
  min-height: 38px;
}
@media (max-width: 550px) {
  .photo-collage-thumbnails {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .photo-collage-tile canvas {
    height: 110px;
  }
}

/* CV templates and local portrait editor. */
.cv-template-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 20px 0 28px;
}
.cv-template-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  min-width: 0;
  text-align: left;
  border: 1px solid #bbb;
  background: #fff;
  padding: 15px;
}
.cv-template-card svg {
  display: block;
  height: 156px;
  max-width: 100%;
}
.cv-template-card strong,
.cv-template-card span {
  width: 100%;
}
.cv-template-card strong {
  font-size: 14px;
}
.cv-template-card span {
  font-size: 12px;
  line-height: 1.5;
  color: #555;
}
.cv-template-card[aria-pressed='true'] {
  outline: 2px solid #000;
  outline-offset: 2px;
  background: #f8f7f4;
}
.cv-photo-section {
  border: 1px solid #ccc;
  padding: 22px;
  margin: 20px 0;
}
.cv-photo-editor {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.cv-photo-editor[hidden] {
  display: none;
}
.cv-photo-editor canvas {
  width: 180px;
  height: 240px;
  background: #eee;
  border: 1px solid #ccc;
}
.cv-photo-controls .field {
  margin-bottom: 14px;
}
.cv-photo-controls input[type='range'] {
  width: 100%;
  accent-color: #234d64;
}
.cv-photo-controls .tool-actions {
  margin: 10px 0;
  gap: 10px;
}
.cv-photo-controls .button {
  font-size: 12px;
  padding: 10px 12px;
}
.cv-extra-fields {
  margin-top: 28px;
}
.cv-shape,
.cv-portrait {
  position: absolute;
  display: block;
}
.cv-document-preview {
  padding: 8px;
  overflow: hidden;
}
.cv-document-preview:empty {
  padding: 0;
}
.cv-preview-page {
  position: relative;
  width: min(100%, 793.71px);
  height: var(--cv-preview-height, 1122.52px);
  margin: 12px auto;
}
.document-sheet.cv-sheet {
  margin: 0;
  transform: scale(var(--cv-preview-scale, 1));
  transform-origin: top left;
  font-family: PhotoJournalDocument, sans-serif;
}
.cv-sheet .document-line {
  font-weight: 400;
}
.cv-sheet .document-page-number {
  bottom: 16pt;
  right: 42pt;
  color: #56616b;
}
@media (max-width: 700px) {
  .cv-template-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cv-photo-section {
    padding: 14px;
  }
  .cv-photo-editor {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .cv-photo-editor canvas {
    margin: auto;
  }
  .cv-template-card {
    padding: 12px;
  }
  .cv-template-card svg {
    height: 130px;
  }
}
@media print {
  .cv-preview-page {
    width: 595.28pt;
    height: 841.89pt;
    margin: 0;
    break-after: page;
  }
  .cv-preview-page:last-child {
    break-after: auto;
  }
  .document-sheet.cv-sheet {
    transform: none !important;
    box-shadow: none;
  }
}

/* Social games, greeting cards and shared expenses. */
.leisure-inline {
  display: flex;
  gap: 16px;
  align-items: end;
  margin-bottom: 20px;
}
.leisure-inline .field {
  flex: 1;
  margin: 0;
}
.leisure-inline .button {
  flex-shrink: 0;
}
.leisure-question {
  min-width: 0;
  border: 1px solid #bbb;
  margin: 24px 0;
  padding: 20px;
}
.leisure-question legend {
  max-width: 100%;
  padding: 0 8px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.leisure-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.leisure-options label {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #bdbdbd;
  padding: 15px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.6;
  min-width: 0;
}
.leisure-options label:has(input:checked) {
  border-color: #234d64;
  background: #eef3f6;
}
.leisure-options input {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  margin: 0;
  accent-color: #234d64;
}
.leisure-report {
  margin: 30px 0;
  padding: 26px;
  border: 1px solid #bbb;
  border-top: 5px solid var(--leisure-accent, #6a4d91);
  overflow-wrap: anywhere;
  scroll-margin-top: 20px;
}
.leisure-report h2 {
  font-size: 34px;
  line-height: 1.3;
  margin-bottom: 14px;
}
.leisure-tagline {
  font-size: 19px;
  color: #475764;
}
.leisure-report h3 {
  font-size: 17px;
  margin-top: 24px;
}
.leisure-report-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.leisure-card-preview {
  min-width: 0;
}
.leisure-card-preview canvas {
  display: block;
  width: 100%;
  height: auto;
  max-width: 540px;
  margin: auto;
  box-shadow: 0 3px 14px #0001;
}
.friend-card {
  max-width: 400px;
  margin: 24px auto;
}
.friend-feedback {
  padding-left: 24px;
  font-size: 14px;
  line-height: 1.6;
}
.friend-feedback li {
  padding: 14px 0;
  border-bottom: 1px solid #ddd;
}
.greeting-editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.greeting-editor .tool-actions {
  gap: 10px;
}
.greeting-editor .tool-actions .button {
  font-size: 12px;
  padding: 12px 14px;
}
.greeting-editor .field-row {
  gap: 14px;
}
.greeting-editor .field {
  min-width: 0;
}
.leisure-list {
  margin: 16px 0 24px;
}
.split-person-row {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px;
  border: 1px solid #ddd;
  margin-bottom: 10px;
}
.split-person-row .field {
  flex: 1;
  margin: 0;
  min-width: 0;
}
.split-expense-row {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
  border: 1px solid #ddd;
  padding: 16px;
  margin: 12px 0;
  overflow-wrap: anywhere;
}
.split-expense-row p {
  font-size: 12px;
  color: #555;
  margin: 8px 0 0;
}
.split-expense-row .tool-actions {
  margin: 0;
  flex-shrink: 0;
}
.split-beneficiaries {
  min-width: 0;
  border: 1px solid #ccc;
  padding: 15px;
}
.split-beneficiaries legend {
  padding: 0 6px;
  font-size: 14px;
}
.split-beneficiaries > div {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.split-total {
  font-size: 20px;
}
.split-transfers {
  list-style: none;
  padding: 0;
}
.split-transfers li {
  padding: 14px;
  background: #f2f5f7;
  margin: 10px 0;
  overflow-wrap: anywhere;
}
.leisure-table-wrap {
  overflow-x: auto;
  max-width: 100%;
}
.leisure-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
  text-align: left;
}
.leisure-table th,
.leisure-table td {
  padding: 12px 10px;
  border-bottom: 1px solid #ddd;
  overflow-wrap: anywhere;
}
.leisure-table th:first-child {
  max-width: 180px;
}
.leisure-free {
  padding: 14px;
  background: #f1f4f0;
}
#friend-name,
#split-title {
  max-width: 100%;
}
@media (max-width: 760px) {
  .greeting-editor,
  .leisure-report-grid {
    grid-template-columns: 1fr;
  }
  .leisure-report {
    padding: 18px;
  }
  .leisure-report h2 {
    font-size: 27px;
  }
  .leisure-options {
    grid-template-columns: 1fr;
  }
  .leisure-question {
    padding: 14px;
  }
  .leisure-inline {
    align-items: stretch;
    flex-direction: column;
  }
  .split-expense-row {
    flex-direction: column;
  }
  .split-expense-row .tool-actions {
    width: 100%;
  }
  .leisure-table th,
  .leisure-table td {
    padding: 10px 7px;
    font-size: 11px;
  }
  .greeting-editor .leisure-card-preview {
    max-width: 460px;
    width: 100%;
    margin: auto;
  }
}

/* Small quiz pages and explicitly declared travel preferences. */
#quiz-progress {
  scroll-margin-top: 20px;
}
.quiz-navigation {
  justify-content: space-between;
}
.travel-preferences-panel {
  border: 1px solid #c7d1d7;
  background: #f7f9fa;
  padding: 22px;
  margin: 26px 0;
}
.travel-preferences-panel h3 {
  font-size: 21px;
}
.travel-preference-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 20px;
}
.travel-summary {
  margin-top: 26px;
  padding-top: 5px;
  border-top: 1px solid #d5dde2;
}
.travel-summary dl {
  margin: 16px 0;
}
.travel-summary dl > div {
  padding: 12px 0;
  border-bottom: 1px solid #e1e5e8;
}
.travel-summary dt {
  font-size: 12px;
  color: #596873;
  margin-bottom: 4px;
}
.travel-summary dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}
.travel-summary .travel-unspecified {
  color: #6d767c;
}
.travel-summary-note {
  font-size: 14px;
  white-space: pre-wrap;
}
@media (max-width: 650px) {
  .travel-preference-fields {
    grid-template-columns: 1fr;
  }
  .travel-preferences-panel {
    padding: 15px;
  }
  .quiz-navigation .button {
    font-size: 12px;
    padding: 12px;
  }
}
/* Friend challenge editor */
.friend-builder-controls {
  padding: 1.25rem;
  border: 1px solid var(--line, #bdb4a7);
  margin: 1.5rem 0;
  background: #f7f4ed;
}
.friend-count-row {
  display: flex;
  align-items: end;
  gap: 1rem;
  flex-wrap: wrap;
}
.friend-count-row .field {
  flex: 1;
  min-width: 160px;
  margin: 0;
}
.friend-editor {
  min-width: 0;
}
.friend-editor .field textarea {
  width: 100%;
  box-sizing: border-box;
}
.friend-editor-options {
  display: grid;
  gap: 0.65rem;
}
.friend-option-row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 0.5rem;
}
.friend-option-row > input {
  width: 100%;
  min-width: 0;
  padding: 0.75rem;
  border: 1px solid currentColor;
  background: white;
  font: inherit;
  box-sizing: border-box;
}
.friend-option-row .button {
  padding: 0.5rem;
  min-width: 0;
}
.friend-answer-pick {
  display: flex;
  align-items: center;
  justify-content: center;
}
.friend-answer-pick input {
  width: 20px;
  height: 20px;
  accent-color: #6a4d91;
}
.friend-editor .tool-actions {
  flex-wrap: wrap;
}
.friend-editor legend {
  overflow-wrap: anywhere;
}
.friend-feedback {
  overflow-wrap: anywhere;
}
@media (max-width: 600px) {
  .friend-builder-controls {
    padding: 0.8rem;
  }
  .friend-editor {
    padding: 0.8rem;
  }
  .friend-option-row {
    grid-template-columns: 24px minmax(0, 1fr) 36px;
    gap: 0.35rem;
  }
  .friend-editor .tool-actions .button {
    padding: 0.65rem;
    font-size: 0.85rem;
  }
}
.greeting-template-picker {
  border: 0;
  padding: 0;
  margin: 0 0 28px;
  min-width: 0;
}
.greeting-template-picker legend {
  font-weight: 700;
  margin-bottom: 12px;
  font-size: 14px;
}
.greeting-templates {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.greeting-template {
  padding: 6px;
  border: 1px solid #c9c2b7;
  background: #fff;
  cursor: pointer;
  text-align: left;
  min-width: 0;
  color: inherit;
  font: inherit;
}
.greeting-template canvas {
  display: block;
  width: 100%;
  height: auto;
}
.greeting-template strong {
  display: block;
  font-size: 12px;
  line-height: 1.45;
  margin: 8px 3px 4px;
  overflow-wrap: anywhere;
}
.greeting-template span {
  display: block;
  font-size: 10px;
  line-height: 1.4;
  margin: 3px;
  color: #645e56;
}
.greeting-template[aria-pressed='true'] {
  outline: 2px solid #71543b;
  outline-offset: 1px;
  background: #f6f0e5;
}
.greeting-template:focus-visible {
  outline: 3px solid #315f7e;
  outline-offset: 2px;
}
@media (min-width: 761px) {
  #greeting-preview {
    position: sticky;
    top: 22px;
  }
}
@media (max-width: 420px) {
  .greeting-templates {
    gap: 7px;
  }
  .greeting-template {
    padding: 4px;
  }
  .greeting-template strong {
    font-size: 11px;
  }
}

/* Keep every category visible on small screens without horizontal discovery. */
@media (max-width: 800px) {
  .top-nav {
    width: 100%;
    flex-wrap: wrap;
    overflow: visible;
    gap: 10px 16px;
  }
  .top-nav a {
    white-space: nowrap;
    line-height: 1.6;
  }
}
.pdf-selection-guide {
  padding: 26px 0;
  max-width: none;
}
.info-section li {
  font-size: 14px;
  line-height: 1.7;
  margin: 10px 0;
}
.info-section ul {
  padding-left: 22px;
}

.iban-modes {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.iban-modes button {
  flex: 1;
  min-width: 150px;
  white-space: normal;
}
.iban-mode[hidden],
#iban-simple-fields[hidden] {
  display: none;
}
.iban-mode h2 {
  font-size: 23px;
  line-height: 1.3;
  letter-spacing: -0.03em;
}
.iban-mode > p,
.iban-mode li {
  font-size: 14px;
  line-height: 1.7;
}
.iban-mode .tool-actions {
  flex-wrap: wrap;
}
.iban-result p {
  overflow-wrap: anywhere;
}
.iban-result p:first-child {
  font-weight: 700;
  font-size: 18px;
}
.iban-result:empty {
  display: none;
}
.iban-official-link {
  display: inline-block;
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 20px;
}
.iban-advanced {
  border-top: 1px solid #bbb;
  margin-top: 12px;
  padding-top: 18px;
}
.iban-advanced summary,
.iban-guide summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.6;
}
.iban-advanced[open] summary {
  margin-bottom: 18px;
}
.iban-advanced > p {
  font-size: 14px;
}
.iban-guide {
  margin-top: 32px;
  scroll-margin-top: 20px;
}
.iban-guide h2 {
  font-size: 24px;
  margin: 28px 0 18px;
}
.iban-bank-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.iban-bank-card {
  border: 1px solid #bbb;
  padding: 18px;
  min-width: 0;
}
.iban-bank-card h3 {
  font-size: 16px;
  margin-bottom: 10px;
}
.iban-bank-card p,
.iban-bank-card a {
  font-size: 14px;
  line-height: 1.7;
}
.iban-guide > details {
  border-top: 1px solid #ccc;
  padding: 16px 0;
}
.iban-guide > details p {
  margin: 12px 0 0;
}
@media (max-width: 550px) {
  .iban-bank-grid {
    grid-template-columns: 1fr;
  }
  .iban-modes button {
    min-width: 100%;
    text-align: left;
  }
  .iban-result p:first-child {
    font-size: 16px;
  }
}

/* UI palette copied from 网站迁移/src/app/globals.css (ASAGIRI).
   Screen-only skin: preserve layouts, document previews and printed output. */
@media screen {
  :root {
    --ui-page: #f9fbfa;
    --ui-surface: #fff;
    --ui-ink: #18252a;
    --ui-heading: #182e29;
    --ui-muted: #526267;
    --ui-green: #1d6a52;
    --ui-mint: #e2f5ef;
    --ui-line: #dfeae6;
    --ui-control-line: #b7d8ce;
    --ui-input-line: #dbe8e1;
    --ui-shadow: 0 5px 14px #254d3b08;
    --ui-card-surface: rgba(255, 255, 255, 0.24);
    --ui-hover-surface: rgba(226, 245, 239, 0.5);
    color: var(--ui-ink);
    background: var(--ui-page);
  }
  /* Use the reference site's body background across the complete page. */
  body {
    --brand-page-background:
      linear-gradient(90deg, rgba(85, 191, 165, 0.16), transparent 50%, rgba(239, 158, 143, 0.18)),
      linear-gradient(180deg, #f8fbfb 0%, #f5f8f8 48%, #eef5f4 100%);
    background: var(--brand-page-background);
    /* Keep both color accents visible at every scroll position. */
    background-attachment: fixed;
  }
  .site-header {
    background: transparent;
    border-color: var(--ui-line);
  }
  .brand {
    color: var(--ui-heading);
  }
  .top-nav a,
  .footer-links a,
  .breadcrumb a,
  .back-link {
    color: var(--ui-muted);
  }
  .top-nav a:hover,
  .footer-links a:hover,
  .breadcrumb a:hover,
  .back-link:hover {
    color: var(--ui-green);
  }
  .brand-count {
    border-color: var(--ui-control-line);
    background: var(--ui-hover-surface);
    color: var(--ui-green);
  }
  .home-hero {
    border-color: #e2ebe7;
    background: transparent;
  }
  .home-hero h1,
  .tool-header h1,
  .simple-page h1,
  .section-heading h2,
  .info-section h2 {
    color: var(--ui-heading);
  }
  .home-hero h1 em,
  .eyebrow,
  .section-rule,
  .card-arrow {
    color: var(--ui-green);
  }
  .hero-copy,
  .tool-header > p:last-child,
  .section-heading p:not(.eyebrow),
  .footer-inner p,
  .small-note,
  .source-note {
    color: var(--ui-muted);
  }
  .featured-section,
  .category-section,
  .related-section,
  .info-section {
    border-color: var(--ui-line);
  }
  .search-box {
    background: var(--ui-surface);
    border-color: var(--ui-input-line);
    border-radius: 12px;
    box-shadow: var(--ui-shadow);
    color: var(--ui-green);
  }
  .search-box input {
    background: transparent;
    color: var(--ui-ink);
  }
  .search-box kbd {
    color: var(--ui-muted);
    border-color: var(--ui-line);
    border-radius: 4px;
  }
  .search-box:focus-within {
    border-color: var(--ui-green);
    box-shadow: 0 0 0 3px #1d6a5212;
  }
  .tool-grid {
    gap: 14px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  .tool-card {
    padding: 17px;
    border: 1px solid var(--ui-line);
    border-radius: 12px;
    background: var(--ui-card-surface);
    box-shadow:
      -4px -4px 10px rgba(255, 255, 255, 0.7),
      5px 6px 12px rgba(49, 82, 82, 0.09);
  }
  .tool-card-description {
    color: var(--ui-muted);
  }
  .tool-card:hover {
    color: var(--ui-green);
    background: var(--ui-hover-surface);
  }
  .category-links a {
    border-color: var(--ui-line);
    border-radius: 8px;
    background: var(--ui-card-surface);
    color: var(--ui-muted);
  }
  .category-links a:hover {
    border-color: var(--ui-control-line);
    color: var(--ui-green);
    background: var(--ui-hover-surface);
  }
  .tool-panel {
    border-color: var(--ui-line);
    border-radius: 16px;
    background: transparent;
    box-shadow: var(--ui-shadow);
  }
  .panel-heading {
    border-color: var(--ui-line);
    border-radius: 16px 16px 0 0;
    background: transparent;
    color: var(--ui-muted);
  }
  .field > input,
  .field > select,
  .field > textarea,
  textarea[readonly],
  .photo-select-trigger,
  .photo-select-search,
  .friend-option-row > input {
    color: var(--ui-ink);
    background: var(--ui-surface);
    border-color: var(--ui-input-line);
    border-radius: 8px;
  }
  .field input::placeholder,
  .field textarea::placeholder,
  .search-box input::placeholder,
  .photo-select-search::placeholder {
    color: var(--ui-muted);
  }
  .product-page input,
  .product-page select,
  .product-page textarea,
  .product-page select option {
    color: var(--ui-ink);
  }
  .product-page select option {
    background: var(--ui-surface);
  }
  input:focus-visible,
  select:focus-visible,
  textarea:focus-visible,
  button:focus-visible,
  a:focus-visible {
    outline-color: var(--ui-green);
  }
  input[type='checkbox'],
  input[type='radio'],
  input[type='range'],
  .photo-style-fields .field > input[type='range'],
  .cv-photo-controls input[type='range'],
  .leisure-options input,
  .friend-answer-pick input,
  .shopping-item-label input {
    accent-color: var(--ui-green);
  }
  .button {
    border-radius: 8px;
    border-color: var(--ui-line);
  }
  .button-black {
    color: var(--ui-ink);
    background: var(--ui-card-surface);
    border-color: var(--ui-line);
    box-shadow:
      -4px -4px 10px rgba(255, 255, 255, 0.7),
      5px 6px 12px rgba(49, 82, 82, 0.09);
  }
  .button-black:hover {
    color: var(--ui-ink);
    background: var(--ui-hover-surface);
    border-color: var(--ui-control-line);
  }
  .button-outline {
    color: var(--ui-ink);
    background: var(--ui-card-surface);
  }
  .button-outline:hover {
    color: var(--ui-ink);
    background: var(--ui-hover-surface);
    border-color: var(--ui-control-line);
  }
  .button:disabled {
    color: var(--ui-muted);
    background: var(--ui-card-surface);
    border-color: var(--ui-line);
    box-shadow: none;
  }
  .text-button {
    color: var(--ui-ink);
    background: transparent;
  }
  .segmented button {
    border-color: var(--ui-line);
    background: var(--ui-card-surface);
    color: var(--ui-ink);
  }
  .segmented button:first-child {
    border-radius: 8px 0 0 8px;
  }
  .segmented button:last-child {
    border-radius: 0 8px 8px 0;
  }
  .segmented button:only-child {
    border-radius: 8px;
  }
  .segmented button:hover {
    background: var(--ui-hover-surface);
  }
  .segmented button.is-active {
    background: var(--ui-hover-surface);
    color: var(--ui-ink);
    border-color: var(--ui-control-line);
  }
  .stats-grid,
  .stat,
  .result-row,
  .timer-laps li,
  .shopping-item,
  .daily-table th,
  .daily-table td {
    border-color: var(--ui-line);
  }
  .stats-grid {
    border-radius: 10px;
    background: transparent;
  }
  .stat-label {
    color: var(--ui-muted);
  }
  .stat-value,
  .date-display {
    color: var(--ui-heading);
  }
  .name-pill {
    border-color: var(--ui-line);
    border-radius: 8px;
    background: var(--ui-card-surface);
    color: var(--ui-ink);
  }
  .file-drop {
    border-color: var(--ui-line);
    border-radius: 12px;
    background: var(--ui-card-surface);
    color: var(--ui-ink);
  }
  .file-drop span:not(.drop-icon) {
    color: var(--ui-muted);
  }
  .file-drop:hover {
    border-color: var(--ui-control-line);
    background: var(--ui-hover-surface);
  }
  .file-drop:focus-within {
    outline-color: var(--ui-green);
  }
  .file-item,
  .ordered-file-item button,
  .single-file-item button,
  .heic-card .file-item .heic-remove {
    border-color: var(--ui-line);
    background: var(--ui-card-surface);
  }
  .file-item button {
    color: var(--ui-muted);
    border-radius: 4px;
  }
  .download-list a {
    border-color: var(--ui-line);
    border-radius: 8px;
    background: var(--ui-card-surface);
    color: var(--ui-ink);
  }
  .download-list a:hover {
    background: var(--ui-hover-surface);
    color: var(--ui-ink);
  }
  .table-scroll,
  .qr-preview {
    border-color: var(--ui-line);
    border-radius: 10px;
    background: var(--ui-surface);
  }
  .table-scroll {
    background: var(--ui-card-surface);
  }
  .daily-table thead {
    background: var(--ui-hover-surface);
  }
  .photo-select-list,
  .photo-select-popup {
    border-color: var(--ui-control-line);
    border-radius: 10px;
    background: var(--ui-surface);
    box-shadow: 0 18px 35px rgba(49, 82, 82, 0.16);
  }
  .photo-select-trigger::after {
    border-color: var(--ui-green);
  }
  .photo-select-trigger[aria-expanded='true'] {
    box-shadow: 0 0 0 3px #1d6a5212;
  }
  .photo-select-list [role='option'] {
    border-radius: 6px;
    color: var(--ui-ink);
  }
  .photo-select-list [role='option'][aria-disabled='true'] {
    color: var(--ui-muted);
  }
  .photo-select-list [role='option'][aria-selected='true'] {
    color: var(--ui-ink);
    background: var(--ui-hover-surface);
  }
  .photo-select-list [role='option']:hover,
  .photo-select-list [role='option'].is-highlighted {
    border-color: var(--ui-control-line);
    background: var(--ui-hover-surface);
    color: var(--ui-ink);
  }
  .photo-style-section,
  .cooking-custom,
  .cv-photo-section,
  .travel-preferences-panel,
  .friend-builder-controls,
  .personality-followups {
    border-color: var(--ui-line);
    border-radius: 12px;
    background: var(--ui-card-surface);
  }
  .photo-style-fields .small-note,
  .cv-template-card span,
  .greeting-template span,
  .travel-summary dt,
  .travel-summary .travel-unspecified,
  .leisure-tagline,
  .split-expense-row p {
    color: var(--ui-muted);
  }
  .iban-bank-card,
  .cv-template-card,
  .photo-collage-tile,
  .greeting-template,
  .leisure-question,
  .leisure-options label,
  .split-person-row,
  .split-expense-row,
  .split-beneficiaries,
  .personality-question,
  .personality-dimension {
    border-color: var(--ui-line);
    border-radius: 10px;
    background: var(--ui-card-surface);
  }
  .cv-template-card[aria-pressed='true'],
  .photo-collage-tile[aria-pressed='true'],
  .greeting-template[aria-pressed='true'] {
    outline: none;
    border-color: var(--ui-control-line);
    box-shadow: inset 0 0 0 1px var(--ui-control-line);
    background: var(--ui-hover-surface);
  }
  .leisure-options label:has(input:checked) {
    border-color: var(--ui-control-line);
    background: var(--ui-hover-surface);
  }
  .iban-advanced,
  .iban-guide > details,
  .travel-summary,
  .travel-summary dl > div,
  .friend-feedback li,
  .leisure-table th,
  .leisure-table td {
    border-color: var(--ui-line);
  }
  .iban-official-link,
  .info-section a,
  .source-note a {
    color: var(--ui-ink);
  }
  .split-transfers li,
  .leisure-free,
  .personality-disclaimer {
    background: var(--ui-card-surface);
    border-color: var(--ui-line);
    border-radius: 8px;
  }
  .personality-share-canvas {
    border-color: var(--ui-line);
    box-shadow: var(--ui-shadow);
  }
  .personality-options label {
    background: var(--ui-card-surface);
    color: var(--ui-ink);
  }
  .personality-options label,
  .personality-submit,
  .cv-entry,
  .heic-card {
    border-color: var(--ui-line);
    border-radius: 10px;
  }
  .personality-options label:has(input:checked) {
    border-color: var(--ui-control-line);
    background: var(--ui-hover-surface);
    color: var(--ui-ink);
  }
  .personality-options input {
    accent-color: var(--ui-green);
  }
  .greeting-template:focus-visible,
  .cv-template-card:focus-visible,
  .photo-collage-tile:focus-visible {
    outline: 2px solid var(--ui-green);
    outline-offset: 3px;
  }
  .leisure-options label:has(input:focus-visible),
  .personality-options label:has(input:focus-visible) {
    outline: 2px solid var(--ui-green);
    outline-offset: 3px;
  }
  .cv-template-card,
  .photo-collage-tile {
    color: var(--ui-ink);
  }
  .photo-style-fields .status,
  .shopping-done,
  .single-file-item button:disabled {
    color: var(--ui-muted);
  }
  .personality-note-toggle,
  .personality-answer-clear,
  .personality-dimension button {
    color: var(--ui-ink);
    background: transparent;
    border-color: var(--ui-control-line);
  }
  .site-footer {
    border-color: var(--ui-line);
    background: transparent;
  }
  /* Soft raised surfaces; keep the page's translucent color treatment. */
  .button-outline,
  .category-links a,
  .download-list a {
    box-shadow:
      -4px -4px 10px rgba(255, 255, 255, 0.7),
      5px 6px 12px rgba(49, 82, 82, 0.09);
  }
  .field
    > input:not([type='checkbox']):not([type='radio']):not([type='range']):not([type='color']):not(
      [type='file']
    ),
  .field > select,
  .field > textarea,
  .photo-select-trigger,
  .photo-select-search {
    box-shadow: inset 2px 2px 5px rgba(49, 82, 82, 0.05);
  }
  .tool-card,
  .category-links a,
  .button,
  .segmented button,
  .download-list a,
  .file-drop,
  .name-pill {
    transition:
      transform 180ms ease,
      box-shadow 180ms ease,
      background-color 180ms ease,
      border-color 180ms ease,
      color 180ms ease;
  }
  .card-arrow {
    transition: transform 180ms ease;
  }
  /* Reset the old hard offset, including on touch devices. */
  .tool-card:hover,
  .category-links a:hover,
  .button:not(:disabled):hover,
  .segmented button:hover,
  .download-list a:hover,
  .file-drop:hover {
    transform: none;
  }
  .tool-card:hover,
  .category-links a:hover,
  .button:not(:disabled):hover,
  .download-list a:hover {
    box-shadow:
      -4px -4px 10px rgba(255, 255, 255, 0.7),
      5px 6px 12px rgba(49, 82, 82, 0.09);
  }
  .segmented button:hover,
  .file-drop:hover {
    box-shadow: none;
  }
  .text-button:hover,
  .file-item button:hover,
  .top-nav a:hover,
  .footer-links a:hover,
  .brand:hover,
  .back-link:hover,
  .text-button:active,
  .file-item button:active,
  .top-nav a:active,
  .footer-links a:active,
  .brand:active,
  .back-link:active {
    transform: none;
  }
  .tool-card:focus-visible,
  .category-links a:focus-visible,
  .download-list a:focus-visible,
  .button:not(:disabled):focus-visible {
    outline: 2px solid var(--ui-green);
    outline-offset: 4px;
    box-shadow: 0 7px 16px rgba(49, 82, 82, 0.12);
  }
  .file-drop:focus-within {
    border-color: var(--ui-green);
    background: var(--ui-hover-surface);
  }
  .search-box {
    transition:
      border-color 180ms ease,
      box-shadow 180ms ease,
      background-color 180ms ease;
  }
  :is(.top-nav a, .footer-links a, .footer-suggestion a, .brand, .back-link, .breadcrumb a) {
    border-radius: 4px;
    transition:
      transform 180ms ease,
      box-shadow 180ms ease,
      background-color 180ms ease,
      color 180ms ease;
    text-underline-offset: 4px;
  }
  .footer-suggestion a {
    display: inline-block;
  }
  :is(
    .top-nav a,
    .footer-links a,
    .footer-suggestion a,
    .brand,
    .back-link,
    .breadcrumb a
  ):focus-visible {
    color: var(--ui-green);
    background: var(--ui-hover-surface);
    outline: 2px solid var(--ui-green);
    outline-offset: 4px;
  }
}
@media screen and (hover: hover) and (pointer: fine) {
  .search-box:hover {
    border-color: var(--ui-control-line);
    box-shadow: 0 7px 16px rgba(49, 82, 82, 0.12);
  }
  :is(.top-nav a, .footer-links a, .footer-suggestion a, .brand, .back-link, .breadcrumb a):hover {
    color: var(--ui-green);
    background: transparent;
    box-shadow: none;
    text-decoration: underline;
    transform: translateY(-2px);
  }
  .tool-card:hover {
    transform: translateY(-3px);
    border-color: var(--ui-control-line);
    background: var(--ui-hover-surface);
    box-shadow:
      -8px -8px 18px rgba(255, 255, 255, 0.9),
      14px 16px 26px rgba(49, 82, 82, 0.13);
  }
  .tool-card:hover .card-arrow {
    transform: translate(2px, -2px);
  }
  .category-links a:hover,
  .button:not(:disabled):hover,
  .download-list a:hover,
  .file-drop:hover,
  .product-calendar .name-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 16px rgba(49, 82, 82, 0.12);
  }
  .segmented button:not(:disabled):hover {
    box-shadow: inset 2px 2px 5px rgba(49, 82, 82, 0.05);
  }
  .product-page
    :is(
      .button:not(:disabled),
      .segmented button:not(:disabled),
      .download-list a,
      .file-drop,
      .name-pill,
      .leisure-options label,
      .personality-options label,
      .cv-template-card,
      .greeting-template,
      .photo-collage-tile
    ):hover {
    color: var(--ui-ink);
    border-color: var(--ui-control-line);
    background: var(--ui-hover-surface);
  }
  .product-page
    :is(
      .leisure-options label,
      .personality-options label,
      .cv-template-card,
      .greeting-template,
      .photo-collage-tile
    ) {
    transition:
      background-color 180ms ease,
      border-color 180ms ease,
      box-shadow 180ms ease;
  }
}
@media screen {
  .search-box:active {
    box-shadow: inset 3px 3px 8px rgba(49, 82, 82, 0.12);
  }
  .search-box:focus-within {
    border-color: var(--ui-green);
    box-shadow:
      0 0 0 3px #1d6a5212,
      inset 2px 2px 5px rgba(49, 82, 82, 0.05);
  }
  :is(.top-nav a, .footer-links a, .footer-suggestion a, .brand, .back-link, .breadcrumb a):active {
    color: var(--ui-green);
    background: transparent;
    box-shadow: none;
    transform: translateY(1px);
  }
  .tool-card:active,
  .category-links a:active,
  .button:not(:disabled):active,
  .segmented button:not(:disabled):active,
  .download-list a:active,
  .file-drop:active,
  .name-pill:active {
    transform: translateY(1px);
    box-shadow: inset 3px 3px 8px rgba(49, 82, 82, 0.12);
  }
  .tool-card:active .card-arrow {
    transform: none;
  }
  .button:disabled,
  .segmented button:disabled {
    transform: none;
    box-shadow: none;
  }
}
@media screen and (prefers-reduced-motion: reduce) {
  .search-box,
  :is(.top-nav a, .footer-links a, .footer-suggestion a, .brand, .back-link, .breadcrumb a) {
    transition: none;
  }
  :is(.top-nav a, .footer-links a, .footer-suggestion a, .brand, .back-link, .breadcrumb a):hover,
  :is(.top-nav a, .footer-links a, .footer-suggestion a, .brand, .back-link, .breadcrumb a):active {
    transform: none;
  }
  .tool-card,
  .category-links a,
  .button,
  .segmented button,
  .download-list a,
  .file-drop,
  .card-arrow {
    transition: none;
  }
  .tool-card:hover,
  .category-links a:hover,
  .button:not(:disabled):hover,
  .segmented button:hover,
  .download-list a:hover,
  .file-drop:hover,
  .tool-card:active,
  .category-links a:active,
  .button:not(:disabled):active,
  .segmented button:active,
  .download-list a:active,
  .file-drop:active,
  .tool-card:hover .card-arrow {
    transform: none;
  }
}

.metadata-results {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}
.metadata-result {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--ui-line);
  border-radius: 12px;
  background: var(--ui-card-surface);
  overflow-wrap: anywhere;
}
.metadata-result h3 {
  color: var(--ui-heading);
  font-size: 16px;
  margin: 0 0 10px;
}
.metadata-result p,
.metadata-explanation p {
  font-size: 14px;
  line-height: 1.75;
}
.metadata-result p {
  margin: 8px 0;
}
.metadata-explanation {
  border-top: 1px solid var(--ui-line);
  margin-top: 28px;
  padding-top: 24px;
}
.metadata-explanation h3 {
  color: var(--ui-heading);
  font-size: 19px;
}
.metadata-explanation a {
  color: var(--ui-ink);
  text-underline-offset: 3px;
}
.metadata-explanation a:hover {
  color: var(--ui-green);
}
.metadata-explanation a:focus-visible {
  outline: 2px solid var(--ui-green);
  outline-offset: 3px;
}
.file-drop.metadata-drag {
  background: var(--ui-hover-surface);
  border-color: var(--ui-control-line);
}
.metadata-result a[aria-disabled='true'] {
  pointer-events: none;
  opacity: 0.5;
}
.metadata-error {
  font-weight: 600;
}
/* Product pages use the home palette. Screen-only: exported paper stays independent. */
@media screen {
  .product-page
    :is(
      .third-details,
      .table-scroll,
      .spelling-result,
      .spelling-suggestions,
      .iban-bank-card,
      .iban-advanced,
      .iban-guide > details,
      .split-beneficiaries,
      .travel-preferences-panel,
      .friend-builder-controls,
      .qr-preview
    ) {
    border-color: var(--ui-line);
    border-radius: 12px;
  }
  .product-page
    :is(
      .third-details,
      .spelling-suggestions,
      .iban-bank-card,
      .travel-preferences-panel,
      .friend-builder-controls
    ) {
    background: var(--ui-card-surface);
  }
  .product-page .daily-table thead {
    background: var(--ui-hover-surface);
    color: var(--ui-heading);
  }
  .product-page .table-scroll {
    border-color: var(--ui-line);
  }
  .product-page .friend-option-row > input {
    border-color: var(--ui-input-line);
    border-radius: 8px;
    color: var(--ui-ink);
  }
  .product-page .shopping-item {
    padding: 16px 12px;
    margin: 8px 0;
    border: 1px solid var(--ui-line);
    border-radius: 10px;
    background: var(--ui-card-surface);
  }
  .product-page #education-detail > p {
    border-color: var(--ui-line);
  }
  .product-example-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 20px;
    margin: 0 0 16px;
  }
  .product-example-bar span {
    font-size: 11px;
    color: var(--ui-muted);
  }
  .product-example-bar .text-button {
    min-height: 36px;
  }
  .product-example-bar button:disabled {
    opacity: 0.5;
    text-decoration: none;
  }
  .product-area-title {
    font-size: 19px;
    margin-bottom: 18px;
    color: var(--ui-heading);
  }
  .product-document-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 32px;
    align-items: start;
  }
  .product-document-grid > * {
    min-width: 0;
  }
  .product-document-preview {
    position: sticky;
    top: 20px;
  }
  .product-document-preview > .small-note {
    margin: 0 0 16px;
  }
  .product-document-preview .document-preview {
    max-height: 75vh;
    overflow: auto;
  }
  .product-document-preview .document-preview:empty {
    min-height: 320px;
    display: grid;
    place-items: center;
    padding: 30px;
    border: 1px dashed var(--ui-control-line);
    border-radius: 12px;
    background: var(--ui-card-surface);
  }
  .product-document-preview .document-preview:empty::before {
    content: '填写内容后，点击“生成预览”。';
    color: var(--ui-muted);
    text-align: center;
    font-size: 14px;
    line-height: 1.7;
  }
  .product-document-grid .cv-template-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .product-calculation-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 32px;
  }
  .product-calculation-grid > section {
    min-width: 0;
  }
  .product-calculation-grid > section + section {
    padding: 24px;
    border-radius: 16px;
    background: var(--ui-card-surface);
    border: 1px solid var(--ui-line);
    align-self: start;
  }
  .product-calculation-grid .stats-grid {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 0;
  }
  .product-calculation-grid .stats-grid .stat {
    background: transparent;
    border: 0;
    padding: 12px 0;
    border-radius: 0;
  }
  .product-calculation-grid .stats-grid .stat:first-child .stat-value {
    font-size: clamp(32px, 4vw, 48px);
  }
  .product-calculation-grid .stats-grid .stat + .stat {
    border-top: 1px solid var(--ui-control-line);
  }
  .product-breakdown,
  .product-timer-settings {
    padding: 18px 0;
    border-top: 1px solid var(--ui-line);
    margin-top: 22px;
  }
  .product-breakdown summary,
  .product-timer-settings summary {
    font-weight: 700;
    color: var(--ui-heading);
    cursor: pointer;
    line-height: 1.6;
  }
  .product-timer-settings[open] summary {
    margin-bottom: 20px;
  }
  .product-primary-result {
    margin-top: 24px;
    border-radius: 16px;
    padding: 24px;
    background: var(--ui-card-surface);
    border: 1px solid var(--ui-control-line);
    color: var(--ui-heading);
  }
  .product-primary-result > span {
    font-size: 13px;
  }
  .product-primary-result > strong {
    display: block;
    font-size: 52px;
    line-height: 1.2;
    color: var(--ui-heading);
    margin: 12px 0;
  }
  .product-primary-result p {
    font-size: 13px;
  }
  .product-page {
    padding-bottom: 64px;
  }
  .product-header {
    max-width: 950px;
    margin-bottom: 28px;
  }
  .product-header h1 {
    font-size: clamp(30px, 3.6vw, 48px);
    letter-spacing: -0.045em;
  }
  .product-header > p:last-child {
    max-width: 760px;
    font-size: 17px;
    line-height: 1.65;
  }
  .product-page .breadcrumb {
    padding-bottom: 28px;
  }
  .product-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 30px;
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    color: var(--ui-muted);
    font-size: 13px;
  }
  .product-steps li {
    display: flex;
    align-items: center;
    gap: 9px;
  }
  .product-steps li > span {
    display: grid;
    place-items: center;
    width: 27px;
    height: 27px;
    border: 1px solid var(--ui-control-line);
    border-radius: 50%;
    color: var(--ui-ink);
    font-weight: 700;
    background: var(--ui-card-surface);
  }
  .product-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 24px;
    align-items: start;
  }
  .product-workspace-single,
  .product-editor .product-workspace {
    grid-template-columns: minmax(0, 1fr);
  }
  .product-page .tool-panel {
    width: 100%;
    max-width: none;
    background: transparent;
    min-width: 0;
  }
  .product-page .panel-heading {
    letter-spacing: 0.04em;
    text-transform: none;
    padding: 16px 24px;
  }
  .product-page .panel-body {
    padding: 28px;
  }
  .product-page .file-drop {
    background: var(--ui-card-surface);
    min-height: 200px;
  }
  .product-guide {
    padding: 24px;
    border: 1px solid var(--ui-line);
    border-radius: 16px;
    background: var(--ui-card-surface);
    min-width: 0;
  }
  .product-guide h2 {
    font-size: 20px;
    line-height: 1.35;
    letter-spacing: -0.025em;
    color: var(--ui-heading);
  }
  .product-guide p {
    font-size: 13px;
    line-height: 1.7;
    color: var(--ui-muted);
  }
  .product-guide .eyebrow {
    font-size: 10px;
    color: var(--ui-green);
  }
  .product-check {
    border-top: 1px solid var(--ui-line);
    margin-top: 20px;
    padding-top: 18px;
  }
  .product-check h3 {
    font-size: 13px;
    margin-bottom: 8px;
    color: var(--ui-heading);
  }
  .product-guide .product-local {
    color: var(--ui-muted);
    font-size: 12px;
  }
  .product-help-link {
    color: var(--ui-ink);
    font-size: 13px;
    text-underline-offset: 4px;
  }
  .product-inline-guide {
    margin-top: 20px;
  }
  .product-inline-guide .product-guide,
  .product-editor .product-guide {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 32px;
  }
  .product-inline-guide .product-guide > .eyebrow,
  .product-editor .product-guide > .eyebrow {
    grid-column: 1 / -1;
    margin-bottom: 0;
  }
  .product-inline-guide .product-guide h2,
  .product-editor .product-guide h2 {
    margin: 0;
  }
  .product-inline-guide .product-check,
  .product-editor .product-check {
    grid-column: 2;
    grid-row: 2 / span 3;
    border-top: 0;
    border-left: 1px solid var(--ui-line);
    padding: 0 0 0 24px;
    margin: 0;
  }
  .product-inline-guide .product-guide > p,
  .product-editor .product-guide > p {
    margin: 0;
  }
  .product-method {
    max-width: none;
    padding: 26px 0;
    scroll-margin-top: 24px;
  }
  .product-method summary {
    cursor: pointer;
    color: var(--ui-heading);
    padding: 12px 0;
  }
  .product-method summary .eyebrow {
    display: block;
    margin: 0 0 8px;
  }
  .product-method summary h2 {
    display: inline;
    font-size: 22px;
  }
  .product-method-body {
    max-width: 880px;
    padding-top: 20px;
    line-height: 1.75;
    color: var(--ui-muted);
  }
  .product-method-body p {
    font-size: 14px;
  }
  .product-page .stats-grid {
    gap: 12px;
    border: 0;
  }
  .product-page .stat {
    border: 1px solid var(--ui-line);
    background: var(--ui-card-surface);
    border-radius: 12px;
  }
  .product-calculate .stats-grid .stat:first-child {
    background: var(--ui-card-surface);
    border-color: var(--ui-line);
  }
  .product-calculate .stats-grid .stat:first-child .stat-value {
    font-size: 30px;
  }
  .product-page .table-scroll {
    max-width: 100%;
  }
  .product-text .panel-body {
    padding: 24px;
  }
  .product-text textarea {
    min-height: 220px;
    resize: vertical;
  }
  .product-text .stats-grid {
    margin-bottom: 12px;
  }
  .product-text .field-row:has(textarea) {
    gap: 24px;
  }
  .product-text .panel-body > .tool-controls > .field-row:has(textarea),
  .product-text .panel-body > .field-row:has(textarea) {
    margin-bottom: 8px;
  }
  .product-game .tool-header {
    max-width: 850px;
  }
  .product-game .tool-panel {
    max-width: 1000px;
    margin-inline: auto;
  }
  .product-game .panel-heading {
    border-bottom: 0;
    padding-bottom: 0;
  }
  .product-game .leisure-question {
    border: 1px solid var(--ui-line);
    border-radius: 16px;
    padding: 22px;
    margin-bottom: 20px;
    background: var(--ui-card-surface);
  }
  .product-game .leisure-options label {
    border-radius: 10px;
    min-height: 48px;
    padding: 13px;
  }
  .product-game #quiz-progress {
    padding: 12px 0;
    background: transparent;
  }
  .product-quiz-meter {
    display: block;
    width: 100%;
    height: 8px;
    accent-color: var(--ui-green);
    margin: 0 0 24px;
    border: 0;
    border-radius: 8px;
  }
  .product-quiz-meter::-webkit-progress-bar {
    border-radius: 8px;
    background: var(--ui-hover-surface);
  }
  .product-quiz-meter::-webkit-progress-value {
    border-radius: 8px;
    background: var(--ui-green);
  }
  .product-game .leisure-report {
    border-radius: 16px;
    border-color: var(--ui-control-line);
  }
  .product-daily .timer-display {
    font-variant-numeric: tabular-nums;
    font-size: clamp(42px, 7vw, 84px);
    letter-spacing: -0.04em;
    text-align: center;
    color: var(--ui-heading);
    padding: 28px 0;
  }
  .product-daily .panel-body:has(#timer-display) {
    max-width: 800px;
    margin-inline: auto;
  }
  .product-daily .panel-body:has(#timer-display) .tool-actions {
    justify-content: center;
  }
  .product-calendar .date-display {
    font-size: 18px;
    padding-bottom: 12px;
  }
  .nameday-upcoming,
  .nameday-wishes {
    border-top: 1px solid var(--ui-line);
    margin-top: 28px;
    padding-top: 26px;
  }
  .nameday-upcoming h2,
  .nameday-wishes h2 {
    font-size: 22px;
    color: var(--ui-heading);
  }
  .nameday-days {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
  .nameday-days article {
    min-width: 0;
    padding: 18px;
    border: 1px solid var(--ui-line);
    border-radius: 12px;
    background: var(--ui-card-surface);
  }
  .nameday-days h3 {
    font-size: 14px;
    line-height: 1.5;
    color: var(--ui-heading);
  }
  .nameday-days .name-pill {
    padding: 5px 8px;
    font-size: 12px;
  }
  .nameday-days p {
    font-size: 12px;
  }
  .nameday-quick-dates {
    margin: 0 0 20px;
  }
  .product-calendar .name-pill {
    padding: 10px 14px;
    font-size: 15px;
    border-radius: 12px;
  }
  .product-calendar a.name-pill {
    text-decoration: none;
  }
  .product-calendar a.name-pill:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
  }
  .product-calendar a.name-pill:focus-visible {
    outline: 2px solid var(--ui-green);
    outline-offset: 3px;
  }
  .product-calendar #today-content h2 {
    font-size: clamp(26px, 4vw, 38px);
    margin-bottom: 20px;
  }
  .product-calendar .result-row {
    padding: 20px 0;
  }
  .product-file .image-preview {
    max-height: 460px;
    object-fit: contain;
  }
  .crop-editor {
    margin-bottom: 24px;
  }
  #crop-source {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 460px;
    margin: 18px auto;
    cursor: crosshair;
    touch-action: none;
    border-radius: 8px;
  }
  .crop-editor .tool-actions {
    gap: 8px;
  }
  .product-downloads {
    margin-top: 24px;
    padding: 20px;
    border: 1px solid var(--ui-line);
    border-radius: 12px;
    background: var(--ui-card-surface);
  }
  .product-downloads h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--ui-heading);
  }
  .product-downloads p {
    font-size: 12px;
    color: var(--ui-muted);
  }
  .product-downloads ul {
    padding: 0;
    margin: 12px 0;
    list-style: none;
    display: grid;
    gap: 10px;
  }
  .product-downloads li {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    align-items: center;
    justify-content: space-between;
  }
  .product-downloads li > span {
    overflow-wrap: anywhere;
    font-size: 13px;
  }
  .product-downloads [data-output-stale] {
    font-weight: 700;
  }
  .product-page summary:focus-visible,
  .product-help-link:focus-visible {
    outline: 2px solid var(--ui-green);
    outline-offset: 4px;
  }
}
@media screen and (max-width: 1000px) {
  .product-document-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .product-document-preview {
    position: static;
  }
  .product-workspace {
    grid-template-columns: minmax(0, 1fr);
  }
  .product-workspace > .product-guide {
    display: block;
  }
  .product-workspace > .product-guide .product-check {
    grid-area: auto;
    border-left: 0;
    border-top: 1px solid var(--ui-line);
    padding: 16px 0 0;
    margin-top: 16px;
  }
}
@media screen and (max-width: 600px) {
  .nameday-days {
    grid-template-columns: minmax(0, 1fr);
  }
  .product-calculation-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
  .product-calculation-grid > section + section {
    padding: 18px;
  }
  .product-page .panel-body {
    padding: 18px;
  }
  .product-page .panel-heading {
    padding: 14px 18px;
    font-size: 10px;
  }
  .product-header > p:last-child {
    font-size: 15px;
  }
  .product-steps {
    gap: 8px;
    font-size: 11px;
  }
  .product-steps li {
    flex: 1;
    align-items: flex-start;
    line-height: 1.5;
    gap: 6px;
  }
  .product-steps li > span {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
  }
  .product-inline-guide .product-guide,
  .product-editor .product-guide {
    display: block;
    padding: 20px;
  }
  .product-inline-guide .product-guide h2,
  .product-editor .product-guide h2 {
    margin: 10px 0;
  }
  .product-inline-guide .product-check,
  .product-editor .product-check {
    border-left: 0;
    border-top: 1px solid var(--ui-line);
    margin-top: 16px;
    padding: 16px 0 0;
  }
  .product-page .stats-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .product-page .stat {
    padding: 16px;
  }
  .product-page .tool-actions > .button {
    flex-grow: 1;
  }
  .product-game .leisure-question {
    padding: 16px;
  }
  .product-page .field-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .product-downloads {
    padding: 16px;
  }
}
@media print {
  .product-steps,
  .product-guide,
  .product-method,
  .product-downloads {
    display: none !important;
  }
}
@media screen and (prefers-reduced-motion: reduce) {
  html,
  .product-page * {
    scroll-behavior: auto;
  }
  .name-pill {
    transition: none;
  }
  .product-calendar .name-pill:hover,
  .name-pill:active {
    transform: none;
  }
  .product-page
    :is(
      .leisure-options label,
      .personality-options label,
      .cv-template-card,
      .greeting-template,
      .photo-collage-tile
    ) {
    transition: none;
  }
}

/* Search entry pages: useful examples reuse the site's existing surfaces. */
.search-guide {
  margin: 28px 0;
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid var(--ui-line);
  border-radius: 18px;
  background: var(--ui-card-surface);
  color: var(--ui-ink);
}
.search-guide h2 {
  color: var(--ui-heading);
  font-size: clamp(20px, 3vw, 26px);
  margin: 0 0 14px;
}
.search-guide h3 {
  color: var(--ui-heading);
  font-size: 17px;
}
.search-guide p,
.search-guide li {
  line-height: 1.75;
}
.search-guide .small-note,
.tool-examples > p {
  color: var(--ui-muted);
  font-size: 13px;
}
.search-questions {
  margin: 20px 0;
}
.search-questions details {
  padding: 14px 0;
  border-top: 1px solid var(--ui-line);
}
.search-questions summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ui-ink);
}
.search-questions summary:focus-visible {
  outline: 2px solid var(--ui-green);
  outline-offset: 4px;
}
.tool-examples {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--ui-line);
}
.tool-examples .tool-actions {
  gap: 10px;
}
.tool-examples .button {
  white-space: normal;
  text-align: left;
}
.search-task-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin: 20px 0;
  font-size: 14px;
}
.search-task-links a {
  color: var(--ui-ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.search-task-links a:hover {
  color: var(--ui-green);
}
.search-task-links a:focus-visible {
  outline: 2px solid var(--ui-green);
  outline-offset: 4px;
}
.nameday-samples {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.nameday-samples article {
  min-width: 0;
}
.nameday-samples figure {
  margin: 0;
}
.nameday-samples figcaption p {
  font-size: 13px;
}
.nameday-sample-art {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  border-radius: 12px;
}
.creative-gallery figure {
  margin: 0;
  min-width: 0;
}
.creative-gallery img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}
.creative-gallery figcaption {
  padding: 12px 0;
}
.creative-gallery figcaption p {
  font-size: 13px;
}
.book-example-gallery {
  display: grid;
  grid-template-columns: minmax(0, 0.5fr) minmax(0, 1fr);
  align-items: start;
  gap: 24px;
}
.book-example-gallery figure:not(:first-child) {
  grid-column: 2;
}
.book-example-gallery figure:first-child {
  grid-row: 1 / 4;
}
.cv-example-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}
.cv-example-gallery article {
  min-width: 0;
}
@media (max-width: 600px) {
  .book-example-gallery,
  .cv-example-gallery {
    grid-template-columns: minmax(0, 1fr);
  }
  .book-example-gallery figure:not(:first-child),
  .book-example-gallery figure:first-child {
    grid-column: auto;
    grid-row: auto;
  }
  .book-example-gallery figure:first-child img {
    max-width: 280px;
    margin-inline: auto;
  }
  .nameday-samples {
    grid-template-columns: minmax(0, 1fr);
  }
  .nameday-sample-art {
    max-width: 300px;
    margin-inline: auto;
  }
  .nameday-samples article {
    padding-bottom: 18px;
    border-bottom: 1px solid var(--ui-line);
  }
}

/* Keep scrollbar geometry stable; reveal only the scroller that is moving. */
@media screen {
  html.scrollbars-auto-hide,
  html.scrollbars-auto-hide * {
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
  }
  html.scrollbars-auto-hide.is-scrolling,
  html.scrollbars-auto-hide .is-scrolling {
    scrollbar-color: var(--ui-muted) transparent;
  }
  html.scrollbars-auto-hide::-webkit-scrollbar,
  html.scrollbars-auto-hide *::-webkit-scrollbar {
    width: 8px;
    height: 8px;
    background: transparent;
  }
  html.scrollbars-auto-hide::-webkit-scrollbar-thumb,
  html.scrollbars-auto-hide *::-webkit-scrollbar-thumb {
    background-color: transparent;
    border-radius: 999px;
  }
  html.scrollbars-auto-hide.is-scrolling::-webkit-scrollbar-thumb,
  html.scrollbars-auto-hide .is-scrolling::-webkit-scrollbar-thumb {
    background-color: var(--ui-muted);
  }
  html.scrollbars-auto-hide::-webkit-scrollbar-track,
  html.scrollbars-auto-hide *::-webkit-scrollbar-track,
  html.scrollbars-auto-hide::-webkit-scrollbar-corner,
  html.scrollbars-auto-hide *::-webkit-scrollbar-corner {
    background: transparent;
  }
}

/* Keep each wish and its actions together, with room before the next example. */
#nameday-wishes article + article {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--ui-line);
}

/* VAT reference table shares the site's transparent surfaces and text roles. */
.vat-modes {
  margin-top: 24px;
}
#vat-custom-field {
  margin-bottom: 18px;
}
#vat-custom-field[hidden] {
  display: none;
}
#vat-rate-help {
  margin-bottom: 12px;
}
.vat-table-wrap {
  max-height: 440px;
  overflow: auto;
  border: 1px solid var(--ui-line);
  border-radius: 12px;
  margin: 20px 0;
}
.vat-table-wrap:focus-visible {
  outline: 2px solid var(--ui-green);
  outline-offset: 4px;
}
.vat-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
  color: var(--ui-ink);
}
.vat-table caption {
  text-align: left;
  padding: 14px;
  color: var(--ui-muted);
  font-size: 12px;
}
.vat-table th,
.vat-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--ui-line);
}
.vat-table thead th {
  color: var(--ui-heading);
}
.vat-table tbody th {
  font-weight: 500;
}
.vat-table td {
  font-variant-numeric: tabular-nums;
}
#vat-results .stat-value {
  color: var(--ui-ink);
  font-variant-numeric: tabular-nums;
}

/* Shared brand signature. Chinese uses the bundled wordmark glyphs, with
   English centered underneath; English pages use a single Latin wordmark. */
@font-face {
  font-family: FleetingBrand;
  src: url('/assets/fonts/cover-brand-serif.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
.home-brand .brand-emblem,
.workspace-heading .brand-emblem {
  display: block;
  width: 28px;
  height: 38px;
  flex: none;
  color: #365c4c;
}
.brand-copy {
  display: grid;
  justify-items: center;
  row-gap: 7px;
  text-align: center;
  color: #203d37;
  white-space: nowrap;
}
.brand-copy .brand-wordmark {
  display: block;
  font:
    400 31px/1.05 FleetingBrand,
    'Songti SC',
    serif;
  letter-spacing: 0.16em;
  padding-left: 0.16em;
}
.brand-copy .brand-english {
  display: block;
  font:
    400 9px/1.1 Georgia,
    serif;
  letter-spacing: 0.2em;
  padding-left: 0.2em;
}
.brand-copy .brand-english[hidden] {
  display: none;
}
html[lang='en'] .brand-copy .brand-wordmark {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 0.12em;
  padding-left: 0.12em;
}
@media (max-width: 760px) {
  .brand-copy {
    row-gap: 5px;
  }
  .brand-copy .brand-wordmark {
    font-size: 26px;
  }
  html[lang='en'] .brand-copy .brand-wordmark {
    font-size: 15px;
    letter-spacing: 0.08em;
    padding-left: 0.08em;
  }
  .brand-copy .brand-english {
    font-size: 7.5px;
    letter-spacing: 0.17em;
  }
  .home-brand .brand-emblem,
  .workspace-heading .brand-emblem {
    width: 24px;
    height: 34px;
  }
}

/* Custom select controls. Native selects are retained only for form values. */
.select-control {
  position: relative;
  display: inline-block;
  width: 100%;
  min-width: 0;
  vertical-align: middle;
}
select.select-native {
  position: absolute !important;
  inset: 0 auto auto 0 !important;
  width: 1px !important;
  height: 1px !important;
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.select-control .select-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 10px 13px;
  margin: 0;
  text-align: left;
  color: #29463e;
  border: 1px solid #a2b8ac90;
  border-radius: 9px;
  background: #ffffff85;
  box-shadow: none;
  font:
    400 13px/1.45 Inter,
    'PingFang SC',
    'Microsoft YaHei',
    sans-serif;
  letter-spacing: 0;
  cursor: pointer;
  transform: none;
  transition:
    border-color 150ms,
    background 150ms;
}
.select-control .select-trigger:hover,
.select-control.is-open .select-trigger {
  border-color: #618777;
  background: #ffffffc9;
}
.select-trigger:focus-visible {
  outline: 2px solid #3c7965;
  outline-offset: 3px;
}
.select-control .select-trigger:disabled {
  opacity: 0.5;
  cursor: default;
}
.select-value {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.select-chevron {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  transition: transform 150ms;
}
.select-chevron svg {
  display: block;
  width: 16px;
  height: 16px;
}
.is-open .select-chevron {
  transform: rotate(180deg);
}
.select-menu {
  position: fixed;
  z-index: 1000;
  box-sizing: border-box;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 6px;
  border: 1px solid #b8cbbdaa;
  border-radius: 12px;
  background: #fcfdf9;
  box-shadow:
    0 10px 36px #263e3317,
    0 2px 6px #263e3309;
  color: #29463e;
  font:
    400 13px/1.5 Inter,
    'PingFang SC',
    'Microsoft YaHei',
    sans-serif;
  scrollbar-width: thin;
  scrollbar-color: #bacbc0 transparent;
}
.select-option {
  position: relative;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  min-height: 42px;
  padding: 10px 30px 10px 12px;
  border-radius: 7px;
  cursor: pointer;
}
.select-option.is-highlighted {
  background: #edf3ec;
}
.select-option[aria-selected='true'] {
  color: #23664d;
  font-weight: 500;
}
.select-option[aria-selected='true']::after {
  content: '';
  position: absolute;
  right: 13px;
  top: calc(50% - 5px);
  width: 5px;
  height: 9px;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}
.select-option[aria-disabled='true'] {
  opacity: 0.4;
  cursor: default;
}
.select-control--language {
  width: 133px;
}
.select-control--language .select-trigger {
  min-height: 40px;
  padding: 6px 2px;
  gap: 9px;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 12px;
}
.select-control--language .select-trigger:hover,
.select-control--language.is-open .select-trigger {
  background: transparent;
  color: #247052;
}
.select-globe {
  display: flex;
  flex: none;
}
.select-globe svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  stroke-width: 1.2;
}
