/* v1.3.23 · H5 visual refinement.
 * Additive, opt-in styles. Keep app.css / entry-pages.css and all scripts intact.
 * Do not restyle music, sealing animation, or share/poster success UI.
 * Preserve v1.3.20 hero / intro dimensions and spacing.
 */
body.polished-h5 {
  --polish-ink: #23483e;
  --polish-green: #214f42;
  --polish-muted: #596d62;
  --polish-gold: #856b40;
  --polish-gold-light: #e4cea0;
  --polish-paper: #fffdf8;
  --polish-line: #dce4d9;
  --polish-shadow: 0 8px 26px rgba(26, 59, 46, .055);
  background-color: #e9eee7;
}

/* Shared chrome: restrained paper / forest palette, unchanged header height. */
.polished-h5 .app-shell {
  background: linear-gradient(180deg, #edf2eb, #f8f5ee 38%, #f4f1e8);
  padding-bottom: calc(82px + env(safe-area-inset-bottom));
}
.polished-h5 .site-header {background: rgba(247, 249, 242, .94);border-bottom-color: var(--polish-line)}
.polished-h5 .brand {min-width: 0;color: var(--polish-ink)}
.polished-h5 .brand-seal.brand-logo {background: #fff;border-color: #dce5d9;box-shadow: 0 2px 8px rgba(26,59,46,.04)}
.polished-h5 .brand small {color: var(--polish-muted);letter-spacing: .09em}
.polished-h5 .header-link {flex-shrink: 0;min-height: 40px;display: inline-flex;align-items: center;font-size: 13px;background: var(--polish-paper);border-color: var(--polish-line)}
.polished-h5 .section-heading h2 {color: var(--polish-ink);font-weight: 600}
.polished-h5 .section-heading .section-en,
.polished-h5 .section-heading .section-years {color: var(--polish-gold)}
.polished-h5 .app-shell > .footer {color: var(--polish-muted);font-size: 13px}
.polished-h5 .app-shell > .footer span {color: var(--polish-muted);font-size: 12px}

/* Compact homepage: only paint changes inside the hero and time-post card. */
.polished-h5 .hero-copy {color: #fffaf0;text-shadow: 0 2px 12px rgba(6,30,22,.2)}
.polished-h5 .hero-copy p {color: #edf1e8}
.polished-h5 .hero-en {color: var(--polish-gold-light)}
.polished-h5 .hero-count {background: rgba(17,44,35,.34);border-color: rgba(240,227,191,.3)}
.polished-h5 .intro-section .promise-card {background: var(--polish-paper);border-color: var(--polish-line);box-shadow: var(--polish-shadow)}
.polished-h5 .intro-section .eyebrow {color: var(--polish-gold)}
.polished-h5 .intro-section .promise-card > p {color: var(--polish-muted)}
.polished-h5 .intro-section .promise-card .promise-guide {background: #eef3e9;border-color: #dfe7d7}
.polished-h5 .intro-section .promise-quote {color: #6e664d;border-left-color: #b69c69}
.polished-h5 .intro-section .timeline b {color: var(--polish-gold);font-variant-numeric: tabular-nums}
.polished-h5 .intro-section .timeline span {color: var(--polish-ink)}
.polished-h5 .intro-section .timeline small {color: var(--polish-muted)}
.polished-h5 #startBtn {background: linear-gradient(115deg, #1d493d, #2c5a49);box-shadow: 0 6px 16px rgba(26,62,46,.15);font-weight: 500}

/* Secondary home cards: clearer content, quiet detail, no stamp/text overlap. */
.polished-h5 .feature-card {border-radius: 24px;box-shadow: var(--polish-shadow)}
.polished-h5 .feature-nameplate {background: linear-gradient(135deg, #193f35, #2b5747);border-color: rgba(198,173,121,.3)}
.polished-h5 .feature-private {background: linear-gradient(135deg, #faf7ef, #f0ecde);border-color: #dedfce}
.polished-h5 .feature-top {gap: 8px;align-items: flex-start}
.polished-h5 .feature-top > span {font-size: 10px;line-height: 1.5;letter-spacing: .1em;color: var(--polish-gold-light)}
.polished-h5 .feature-private .feature-top > span {color: var(--polish-gold)}
.polished-h5 .feature-symbol {color: var(--polish-gold-light)}
.polished-h5 .feature-private .feature-symbol {color: var(--polish-gold)}
.polished-h5 .feature-card h3 {line-height: 1.5;letter-spacing: .02em}
.polished-h5 .feature-card p {max-width: none;font-size: 14px;line-height: 1.8;color: #dde7dc}
.polished-h5 .feature-private p {color: var(--polish-muted)}
.polished-h5 .feature-card .round-stamp {position: relative;right: auto;bottom: auto;margin: 16px 0 0 auto;width: 42px;height: 42px;font-size: 10px;opacity: .85}
.polished-h5 .consultant-card {background: var(--polish-paper);border-color: var(--polish-line);border-radius: 24px;box-shadow: var(--polish-shadow)}
.polished-h5 .consultant-orbit {background: #fff;border-color: #dbe4d7;box-shadow: 0 0 0 5px #f0f4ec}
.polished-h5 .consultant-orbit span {color: var(--polish-ink)}
.polished-h5 .consultant-copy {min-width: 0}
.polished-h5 .consultant-copy .section-en {color: var(--polish-gold);font-size: 10px;line-height: 1.6;letter-spacing: .08em;overflow-wrap: anywhere}
.polished-h5 .consultant-copy h2 {line-height: 1.4;color: var(--polish-ink)}
.polished-h5 .consultant-copy p {font-size: 14px;line-height: 1.8;color: var(--polish-muted)}
.polished-h5 .consultant-btn {background: #edf3e9;border: 1px solid #d8e3d1;border-radius: 13px;color: var(--polish-ink);font-size: 14px;min-height: 44px}
.polished-h5 .benefits {background: var(--polish-paper);border-color: var(--polish-line);border-radius: 24px;box-shadow: var(--polish-shadow)}
.polished-h5 .benefit {grid-template-columns: 100px minmax(0, 1fr);border-color: var(--polish-line)}
.polished-h5 .benefit-rank {font-size: 14px;line-height: 1.8;color: var(--polish-gold);white-space: nowrap;letter-spacing: 0}
.polished-h5 .benefit h3 {font-size: 17px;line-height: 1.6;color: var(--polish-ink)}
.polished-h5 .benefit p {font-size: 14px;line-height: 1.8;color: var(--polish-muted)}
.polished-h5 .ending-card {background: linear-gradient(135deg, #eee7d5, #f9f5e9);border-color: #e1d8bf;border-radius: 24px;box-shadow: none}
.polished-h5 .ending-card .section-en {color: var(--polish-gold)}
.polished-h5 .ending-card h2 {color: var(--polish-ink);font-weight: 500}
.polished-h5 .ending-card p {font-size: 15px;line-height: 1.9;color: #626954}
.polished-h5 .ending-card .text-link {display: inline-flex;align-items: center;min-height: 44px;font-size: 14px;color: var(--polish-ink)}

/* Personal archive: preserve the number / masked ID, make long data wrap. */
.polished-h5 .mine-page .mine-hero-copy h1 {font-size: clamp(24px, 6.3vw, 29px);line-height: 1.4;color: var(--polish-ink)}
.polished-h5 .mine-page .mine-hero-copy p,
.polished-h5 .mine-page .mine-empty p {font-size: 14px;line-height: 1.8;color: var(--polish-muted)}
.polished-h5 .mine-page .mine-hero-copy > .section-en,
.polished-h5 .mine-page .mine-empty > .section-en,
.polished-h5 .mine-page .mine-card .section-en {color: var(--polish-gold);letter-spacing: .12em;line-height: 1.6}
.polished-h5 .mine-page .digital-nameplate,
.polished-h5 .mine-page .empty-nameplate {background: linear-gradient(135deg, #173f35, #2a5849);border: 1px solid rgba(211,184,128,.42);box-shadow: 0 10px 28px rgba(23,59,46,.13)}
.polished-h5 .mine-page .plate-glow {background: rgba(228,206,160,.06)}
.polished-h5 .mine-page .plate-top,
.polished-h5 .mine-page .plate-bottom {flex-wrap: wrap;gap: 8px 14px;line-height: 1.6;color: #d5e2d8;overflow-wrap: anywhere}
.polished-h5 .mine-page .plate-top > span:last-child {white-space: nowrap}
.polished-h5 .mine-page .plate-number {color: var(--polish-gold-light);font-size: clamp(32px, 9vw, 40px);overflow-wrap: anywhere}
.polished-h5 .mine-page .plate-name {font-size: 21px;line-height: 1.6;overflow-wrap: anywhere}
.polished-h5 .mine-page .plate-id-card {border-color: rgba(228,206,160,.25);background: rgba(7,32,23,.2);gap: 6px 10px}
.polished-h5 .mine-page .plate-id-card > span {font-size: 11px;color: #d5e2d8}
.polished-h5 .mine-page .plate-id-card > b {font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;font-size: 14px;letter-spacing: .02em;color: #faf3df;overflow-wrap: anywhere}
.polished-h5 .mine-page .plate-id-card > button {min-height: 36px;font-size: 12px}
.polished-h5 .mine-page .empty-nameplate > b {font-size: clamp(30px, 9vw, 38px);overflow-wrap: anywhere;color: var(--polish-gold-light)}
.polished-h5 .mine-page .empty-nameplate > span {line-height: 1.7;overflow-wrap: anywhere}
.polished-h5 .mine-page .empty-nameplate > em {color: #d5e2d8}
.polished-h5 .mine-page .capsule-number-card {background: linear-gradient(135deg, #31594d, #477362);border-color: rgba(215,230,211,.35)}
.polished-h5 .mine-page .nameplate-welfare-head {flex-wrap: wrap;gap: 6px 10px}
.polished-h5 .mine-page .nameplate-welfare-head span {color: var(--polish-gold-light) !important;line-height: 1.6}
.polished-h5 .mine-page .nameplate-welfare > b {color: #fff5dc !important;line-height: 1.6}
.polished-h5 .mine-page .nameplate-welfare p {color: #dbe6dc !important;font-size: 13px !important;line-height: 1.8 !important}
.polished-h5 .mine-page .mine-card {background: var(--polish-paper);border-color: var(--polish-line);border-radius: 24px;box-shadow: var(--polish-shadow);min-width: 0}
.polished-h5 .mine-page .mine-card-head {gap: 12px}
.polished-h5 .mine-page .mine-card-head h2 {font-size: 21px;line-height: 1.45;color: var(--polish-ink);font-weight: 600}
.polished-h5 .mine-page .card-no {color: var(--polish-gold)}
.polished-h5 .mine-page .profile-list > div,
.polished-h5 .mine-page .promise-meta > div {font-size: 14px;line-height: 1.7;padding: 11px 0;border-color: #e5eadf}
.polished-h5 .mine-page .profile-list span,
.polished-h5 .mine-page .promise-meta span {flex-shrink: 0;color: var(--polish-muted)}
.polished-h5 .mine-page .profile-list b,
.polished-h5 .mine-page .promise-meta b {min-width: 0;overflow-wrap: anywhere;color: var(--polish-ink)}
.polished-h5 .mine-page .countdown {background: #eef3e9;border: 1px solid #e1e9d9}
.polished-h5 .mine-page .countdown-precise > div {min-width: 0;flex: 1;flex-direction: column;align-items: center;gap: 4px}
.polished-h5 .mine-page .countdown-precise b {min-width: 0;font-size: 23px;color: var(--polish-gold);font-variant-numeric: tabular-nums}
.polished-h5 .mine-page .countdown-precise span {font-size: 12px;line-height: 1.4;color: var(--polish-muted)}
.polished-h5 .mine-page .countdown-precise em {font-size: 14px;color: #859481}
.polished-h5 .mine-page .archive-count > div {background: #f0f4ec;border-radius: 16px}
.polished-h5 .mine-page .archive-count b {color: var(--polish-gold)}
.polished-h5 .mine-page .archive-count span {font-size: 12px;line-height: 1.6;color: var(--polish-muted)}
.polished-h5 .mine-page .archive-note p {font-size: 14px;line-height: 1.85;color: var(--polish-muted)}
.polished-h5 .mine-page .message-preview {background: #f5f1e5}
.polished-h5 .mine-page .message-preview span {color: var(--polish-gold)}
.polished-h5 .mine-page .message-preview p {font-size: 15px;line-height: 1.9;overflow-wrap: anywhere;white-space: pre-wrap}
.polished-h5 .mine-page .account-bar {flex-wrap: wrap;gap: 8px;padding: 9px 12px;border-radius: 18px;background: var(--polish-paper);border-color: var(--polish-line);font-size: 13px}
.polished-h5 .mine-page .account-bar > span {flex-wrap: wrap;line-height: 1.6}
.polished-h5 .mine-page .account-actions {gap: 7px;flex-wrap: wrap}
.polished-h5 .mine-page .account-actions button {min-height: 36px;padding: 7px 10px;font-size: 12px;border-radius: 10px;color: var(--polish-ink);background: #edf3e9;border-color: #dae4d4}

/* Fields only: do not select successReceipt, ceremony, music or share controls. */
.polished-h5 #formBody .form-head h2 {color: var(--polish-ink)}
.polished-h5 #formBody .form-head .eyebrow {color: var(--polish-gold)}
.polished-h5 #formBody .form-head p,
.polished-h5 #formBody .upload-sub {font-size: 14px;line-height: 1.8;color: var(--polish-muted)}
.polished-h5 #formBody .form-label,
.polished-h5 #phoneChangeOverlay .form-label,
.polished-h5 #idCardBindOverlay .form-label,
.polished-h5.entry-login-page .form-label {font-size: 14px;color: #405f50;font-weight: 500}
.polished-h5 #formBody .input,
.polished-h5 #formBody .textarea,
.polished-h5 #phoneChangeOverlay .input,
.polished-h5 #idCardBindOverlay .input,
.polished-h5.entry-login-page .login-input {min-width: 0;font-size: 16px;line-height: 1.5;min-height: 52px;border: 1px solid #cddbc9;border-radius: 14px;background: var(--polish-paper);color: var(--polish-ink)}
.polished-h5 #formBody .input:focus,
.polished-h5 #formBody .textarea:focus,
.polished-h5 #phoneChangeOverlay .input:focus,
.polished-h5 #idCardBindOverlay .input:focus,
.polished-h5.entry-login-page .login-input:focus {outline: none;border-color: #537a5f;box-shadow: 0 0 0 3px rgba(83,122,95,.12)}
.polished-h5 #formBody .input::placeholder,
.polished-h5 #formBody .textarea::placeholder,
.polished-h5 #phoneChangeOverlay .input::placeholder,
.polished-h5 #idCardBindOverlay .input::placeholder,
.polished-h5.entry-login-page .login-input::placeholder {color: #66755f;opacity: 1}
.polished-h5 #formBody .choice {background: var(--polish-paper);border-color: var(--polish-line);border-radius: 18px}
.polished-h5 #formBody .choice.active {background: #edf3e8;border-color: #688665;box-shadow: inset 0 0 0 1px #688665}
.polished-h5 #formBody .upload-box {background: var(--polish-paper);border-color: #aebfa5;border-radius: 18px}
.polished-h5 #formBody .upload-btn {font-size: 14px;min-height: 44px;border-color: #d4e0cd}
.polished-h5 #formBody .primary-upload {background: #ecf2e6}
.polished-h5 #formBody .consent,
.polished-h5 #formBody .id-card-field-note,
.polished-h5 #idCardBindOverlay .consent {font-size: 13px;line-height: 1.8;color: var(--polish-muted)}
.polished-h5 #formBody .consent input,
.polished-h5 #idCardBindOverlay .consent input {flex-shrink: 0;width: 16px;height: 16px;accent-color: var(--polish-green)}
.polished-h5 #formBody .form-actions .primary-btn,
.polished-h5 #phoneChangeOverlay .primary-btn,
.polished-h5 #idCardBindOverlay .primary-btn,
.polished-h5.entry-login-page .login-submit {background: linear-gradient(115deg, #1d493d, #2c5a49);border-radius: 14px;box-shadow: 0 6px 16px rgba(26,62,46,.13);font-size: 16px;line-height: 1.5;min-height: 50px;padding-top: 10px;padding-bottom: 10px}
.polished-h5 #formBody .form-actions .secondary-btn {border-radius: 14px;border-color: #d4dfcc;background: var(--polish-paper);font-size: 15px}
.polished-h5 #phoneChangeOverlay .modal,
.polished-h5 #idCardBindOverlay .modal {background: #faf8f1;border-top: 2px solid #c9b37e;border-radius: 24px 24px 0 0;max-height: 92vh;max-height: 92dvh;overscroll-behavior: contain}
.polished-h5 #phoneChangeOverlay .section-en,
.polished-h5 #idCardBindOverlay .section-en {color: var(--polish-gold)}
.polished-h5 #phoneChangeOverlay .code-row {grid-template-columns: minmax(0, 1fr) 112px}
.polished-h5 #phoneChangeOverlay .phone-change-warning,
.polished-h5 #idCardBindOverlay .id-card-bind-warning {background: #f5efdf;color: #6c6045;font-size: 13px;line-height: 1.8}
.polished-h5 #phoneChangeOverlay .phone-change-warning span,
.polished-h5 #idCardBindOverlay .id-card-bind-warning span {font-size: 13px;color: #6c6045}
.polished-h5 #phoneChangeOverlay .modal-close,
.polished-h5 #idCardBindOverlay .modal-close {width: 40px;height: 40px;background: #eaf0e5}

/* Registration + privacy retain v1.3.22 layout, exact rules and upright logo. */
.polished-h5.entry-login-page .h5-login-shell {background: #f7f4ec}
.polished-h5.entry-login-page .login-paper {background: var(--polish-paper);border-color: var(--polish-line);box-shadow: var(--polish-shadow);border-radius: 24px}
.polished-h5.entry-login-page .login-paper-heading h2 {color: var(--polish-ink)}
.polished-h5.entry-login-page .login-rules {background: #eef3e9;border-color: #dbe5d2}
.polished-h5.entry-login-page .login-lead,
.polished-h5.entry-login-page .login-consent,
.polished-h5.entry-login-page .login-note {color: var(--polish-muted)}
.polished-h5.entry-login-page .login-note {font-size: 12px;flex-wrap: wrap}
.polished-h5.entry-login-page .login-back {display: inline-flex;align-items: center;min-height: 44px;color: #e1eadf}
.polished-h5.entry-login-page .login-scene-copy p {color: #e1e9dc}
.polished-h5.entry-login-page .code-btn,
.polished-h5 #phoneChangeOverlay .code-btn {height: 52px;border-radius: 14px;background: #ecf2e6;color: var(--polish-ink);border-color: #d4e0cc;font-size: 13px}
.polished-h5.privacy-page {--privacy-muted: #576d60;--privacy-line: #dfe5d8}
.polished-h5 .privacy-document {box-shadow: var(--polish-shadow)}
.polished-h5 .privacy-highlights small {font-size: 12px;color: var(--polish-muted)}
.polished-h5 .privacy-section-heading small {font-size: 10px;color: #75683f}
.polished-h5 .privacy-section .privacy-muted-note {color: var(--polish-muted)}
.polished-h5 .privacy-actions .primary-btn {background: linear-gradient(115deg, #1d493d, #2c5a49)}

/* Memory opening / retrieval only; media behaviour and links are unchanged. */
.polished-h5 .memory-mobile-shell {background: linear-gradient(180deg, #edf2e9, #f8f5ee)}
.polished-h5 .memory-mobile-brand small {color: var(--polish-muted);font-size: 11px}
.polished-h5 .memory-mobile-shell .retrieve-hero {background: linear-gradient(135deg, #193f35, #2a5849);border: 1px solid rgba(211,184,128,.3);box-shadow: var(--polish-shadow)}
.polished-h5 .memory-mobile-shell .retrieve-hero p {color: #dee8dc;line-height: 1.8}
.polished-h5 .memory-mobile-shell .memory-card {background: var(--polish-paper);border-color: var(--polish-line);border-radius: 24px;box-shadow: var(--polish-shadow)}
.polished-h5 .memory-mobile-shell .memory-card .card-kicker {color: var(--polish-gold)}
.polished-h5 .memory-mobile-shell .memory-message {font-size: 16px;line-height: 1.9;overflow-wrap: anywhere;white-space: pre-wrap;color: var(--polish-ink)}
.polished-h5 .memory-asset-info b {overflow-wrap: anywhere;line-height: 1.6}
.polished-h5 .memory-asset-info small {color: var(--polish-muted);line-height: 1.7;overflow-wrap: anywhere}
.polished-h5 .memory-mobile-shell .download {min-height: 44px;display: inline-flex;align-items: center}

/* Precise line icons and a real iPhone safe-area, not a squeezed 70px bar. */
.polished-h5 .bottom-nav {height: calc(64px + env(safe-area-inset-bottom));background: rgba(255,253,248,.97);border-color: var(--polish-line);box-shadow: 0 -4px 20px rgba(26,59,46,.045)}
.polished-h5 .bottom-nav a {color: var(--polish-muted);gap: 3px;min-height: 64px}
.polished-h5 .bottom-nav a.active {color: var(--polish-green)}
.polished-h5 .bottom-nav .nav-icon {width: 48px;height: 29px;display: grid;place-items: center;border-radius: 11px}
.polished-h5 .bottom-nav a.active .nav-icon {background: #e6efdf}
.polished-h5 .bottom-nav .nav-icon svg {display: block;width: 21px;height: 21px;stroke: currentColor;stroke-width: 1.65;stroke-linecap: round;stroke-linejoin: round}
.polished-h5 .bottom-nav b {font-size: 12px;line-height: 1.4;font-weight: 500}
.polished-h5 .site-header a:focus-visible,
.polished-h5 .bottom-nav a:focus-visible,
.polished-h5 #startBtn:focus-visible,
.polished-h5 .feature-link:focus-visible,
.polished-h5 .consultant-btn:focus-visible,
.polished-h5 .account-actions button:focus-visible,
.polished-h5 .mine-page .plate-id-card > button:focus-visible,
.polished-h5 #formBody .choice:focus-visible,
.polished-h5 #formBody .form-actions button:focus-visible,
.polished-h5 #phoneChangeOverlay button:focus-visible,
.polished-h5 #idCardBindOverlay button:focus-visible,
.polished-h5.entry-login-page button:focus-visible {outline: 3px solid #a68a53;outline-offset: 3px}
.polished-h5 #formBody .upload-btn:focus-within {outline: 3px solid #a68a53;outline-offset: 3px}

@media (max-width: 650px) and (min-width: 561px) {
  .polished-h5 .mine-page .countdown-precise {gap: 3px;padding-left: 5px;padding-right: 5px}
  .polished-h5 .mine-page .countdown-precise b {font-size: 21px}
}
@media (max-width: 380px) {
  .polished-h5 .brand {gap: 7px}
  .polished-h5 .brand small {letter-spacing: .015em}
  .polished-h5 .header-link {padding-left: 10px;padding-right: 10px;font-size: 12px}
  .polished-h5 .consultant-btn {grid-column: 1 / -1}
  .polished-h5 .benefit {grid-template-columns: minmax(0, 1fr);gap: 6px;padding: 17px 18px}
  .polished-h5 .mine-page .plate-id-card > b {font-size: 13px}
  .polished-h5 .mine-page .countdown-precise {gap: 3px}
  .polished-h5 .mine-page .countdown-precise b {font-size: 21px}
  .polished-h5 #phoneChangeOverlay .code-row {grid-template-columns: minmax(0, 1fr) 100px;gap: 8px}
  .polished-h5 #phoneChangeOverlay .code-btn {font-size: 12px;padding-left: 8px;padding-right: 8px}
}
