﻿:root {
      --bg: #f8f4ec;
      --panel: #ffffff;
      --panel-soft: #fbfaf6;
      --ink: #26302d;
      --muted: #71807a;
      --line: #e7e0d3;
      --accent: #2f9c86;
      --accent-dark: #217865;
      --accent-soft: #dff3ed;
      --warn: #bc7b2c;
      --danger: #bd4b44;
      --shadow: 0 18px 45px rgba(44, 55, 49, 0.09);
      --radius: 18px;
    }

    * {
      box-sizing: border-box;
    }

    body {
      margin: 0;
      min-height: 100vh;
      background: var(--bg);
      color: var(--ink);
      font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      letter-spacing: 0;
    }

    .delivery-screen {
      position: fixed;
      inset: 0;
      z-index: 100;
      display: grid;
      place-items: center;
      padding: 24px;
      background: var(--bg);
      transition: opacity 260ms ease, visibility 260ms ease;
    }

    .delivery-screen.hidden {
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
    }

    .delivery-card {
      width: min(560px, 100%);
      padding: 34px;
      border: 1px solid var(--line);
      border-radius: 28px;
      background: #fffdf8;
      box-shadow: var(--shadow);
      text-align: center;
    }

    .delivery-mailbox {
      position: relative;
      width: 132px;
      height: 94px;
      margin: 0 auto 22px;
      border: 1px solid var(--line);
      border-radius: 26px 26px 14px 14px;
      background: var(--accent-soft);
      overflow: hidden;
    }

    .delivery-envelope {
      position: absolute;
      left: 30px;
      bottom: 18px;
      width: 72px;
      height: 48px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: #fffdf8;
    }

    .delivery-screen.opening .delivery-envelope {
      animation: dailyEnvelope 820ms ease forwards;
    }

    .delivery-screen.opening .delivery-mailbox {
      animation: mailboxOpen 820ms ease forwards;
    }

    .delivery-stack-preview {
      display: grid;
      gap: 8px;
      margin: 18px 0 22px;
      color: var(--muted);
      font-weight: 750;
    }

    button,
    input,
    select,
    textarea {
      font: inherit;
    }

    button {
      border: 0;
      cursor: pointer;
    }

    .mikci-icon {
      display: inline-block;
      width: 32px;
      height: 32px;
      flex-shrink: 0;
      object-fit: contain;
      image-rendering: auto;
      shape-rendering: geometricPrecision;
      vertical-align: middle;
      filter: drop-shadow(0 2px 2px rgba(38, 48, 45, 0.08));
      transition: transform 200ms ease, filter 200ms ease;
    }

    .mikci-logo {
      display: inline-block;
      flex-shrink: 0;
      object-fit: contain;
      vertical-align: middle;
      filter: none;
    }

    .logo-sidebar {
      width: 72px;
      height: 72px;
    }

    .logo-top {
      width: 56px;
      height: 56px;
    }

    .logo-letter {
      width: 60px;
      height: 60px;
    }

    .logo-welcome {
      width: 150px;
      height: 150px;
      margin: 0 auto 18px;
    }

    .logo-loading {
      width: 128px;
      height: 128px;
    }

    .logo-footer {
      width: 24px;
      height: 24px;
    }

    .logo-certificate {
      width: 28px;
      height: 28px;
    }

    .mikci-icon:hover,
    button:hover .mikci-icon,
    .card:hover > .mikci-icon {
      transform: scale(1.05);
    }

    .icon-nav,
    .icon-sm {
      width: 22px;
      height: 22px;
    }

    .icon-card,
    .icon-lg {
      width: 50px;
      height: 50px;
    }

    .icon-insight,
    .icon-md {
      width: 34px;
      height: 34px;
    }

    .icon-goal {
      width: 42px;
      height: 42px;
    }

    .icon-xl {
      width: 64px;
      height: 64px;
    }

    .icon-hero {
      width: 72px;
      height: 72px;
    }

    .inline-title-icon {
      margin-right: 8px;
    }

    .icon-label {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      min-width: 0;
      line-height: 1.2;
    }

    .app-shell {
      display: grid;
      grid-template-columns: 260px minmax(0, 1fr) 320px;
      gap: 22px;
      min-height: 100vh;
      padding: 22px;
    }

    .sidebar,
    .main,
    .insights {
      min-width: 0;
    }

    .sidebar {
      position: sticky;
      top: 22px;
      display: flex;
      flex-direction: column;
      height: calc(100vh - 44px);
      padding: 18px;
      border: 1px solid rgba(231, 224, 211, 0.9);
      border-radius: 24px;
      background: rgba(255, 255, 255, 0.76);
      box-shadow: var(--shadow);
      backdrop-filter: blur(18px);
    }

    .brand {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 24px;
      font-weight: 800;
      font-size: 1.25rem;
    }

    .brand-mark {
      display: grid;
      width: 78px;
      height: 78px;
      place-items: center;
      border-radius: 14px;
      background: transparent;
    }

    .nav {
      display: grid;
      gap: 8px;
    }

    .nav button {
      display: flex;
      align-items: center;
      gap: 11px;
      width: 100%;
      min-height: 44px;
      padding: 10px 12px;
      border: 1px solid transparent;
      border-radius: 14px;
      background: transparent;
      color: var(--muted);
      text-align: left;
      outline: none;
      transition: background 160ms ease, color 160ms ease, transform 160ms ease;
    }

    .nav button:hover,
    .nav button.active {
      background: var(--accent-soft);
      color: var(--accent-dark);
      transform: translateX(2px);
    }

    .nav button.active .mikci-icon {
      transform: translateY(-1px) scale(1.04);
      filter: brightness(1.08) drop-shadow(0 4px 8px rgba(47, 156, 134, 0.18));
    }

    .nav button:focus-visible {
      border-color: rgba(47, 156, 134, 0.32);
      box-shadow: 0 0 0 4px rgba(47, 156, 134, 0.11);
    }

    .nav-icon {
      width: 22px;
      height: 22px;
      flex: 0 0 22px;
    }

    .streak-card {
      margin-top: auto;
      padding: 16px;
      border: 1px solid rgba(47, 156, 134, 0.14);
      border-radius: 18px;
      background: #ffffff;
    }

    .streak-card strong {
      display: block;
      margin-top: 8px;
      font-size: 1.8rem;
    }

    .main {
      display: grid;
      gap: 18px;
      align-content: start;
      grid-auto-rows: max-content;
      position: relative;
    }

    .topbar {
      position: relative;
      display: flex;
      justify-content: space-between;
      gap: 22px;
      align-items: flex-start;
      padding: 8px 2px 0;
      overflow: hidden;
      isolation: isolate;
      transition: min-height 180ms ease, padding 180ms ease;
    }

    .dashboard-view .topbar {
      min-height: 278px;
      padding: 34px 28px 102px;
      border-radius: 22px;
      background:
        linear-gradient(90deg, rgba(248, 244, 236, 0.97) 0%, rgba(248, 244, 236, 0.84) 34%, rgba(248, 244, 236, 0.18) 64%, rgba(248, 244, 236, 0) 100%),
        linear-gradient(180deg, rgba(248, 244, 236, 0.04), rgba(248, 244, 236, 0.2)),
        url("assets/background/dashboard.png") center / cover no-repeat;
      box-shadow: 0 16px 34px rgba(188, 123, 44, 0.08);
    }

    .dashboard-view .topbar::after {
      content: "";
      position: absolute;
      right: 20px;
      bottom: 22px;
      width: 68px;
      height: 44px;
      border: 1px solid rgba(231, 224, 211, 0.92);
      border-radius: 10px;
      background: rgba(255, 253, 248, 0.72);
      box-shadow: 0 12px 28px rgba(44, 55, 49, 0.08);
      transform: rotate(-5deg);
      z-index: -1;
    }

    h1,
    h2,
    h3,
    p {
      margin: 0;
    }

    h1 {
      font-size: clamp(1.8rem, 2.65vw, 2.45rem);
      line-height: 1.08;
      max-width: 760px;
    }

    .dashboard-view h1 {
      max-width: 440px;
      font-size: clamp(2rem, 3.55vw, 3.35rem);
      line-height: 1.02;
      letter-spacing: 0;
    }

    h2 {
      font-size: 1.1rem;
    }

    h2:has(.inline-title-icon) {
      display: inline-flex;
      align-items: center;
      gap: 8px;
    }

    h3 {
      font-size: 1rem;
    }

    .subtitle {
      margin-top: 10px;
      color: var(--muted);
      font-size: 1.05rem;
    }

    .actions {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      justify-content: flex-end;
      padding-top: 58px;
    }

    .dashboard-view .actions {
      align-self: center;
      display: grid;
      min-width: 220px;
      padding-top: 28px;
      justify-items: stretch;
    }

    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      min-height: 42px;
      padding: 0 15px;
      border-radius: 999px;
      background: #edf1ee;
      color: var(--ink);
      font-weight: 700;
      transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
      white-space: nowrap;
    }

    .btn:hover {
      transform: translateY(-1px);
      box-shadow: 0 10px 22px rgba(44, 55, 49, 0.12);
    }

    .btn.primary {
      background: var(--accent);
      color: #fff;
    }

    .btn.primary:hover {
      background: var(--accent-dark);
    }

    .btn.ghost {
      background: #ffffff;
      border: 1px solid var(--line);
    }

    .btn.danger {
      background: #fff0ed;
      color: var(--danger);
    }

    .btn.small {
      min-height: 34px;
      padding: 0 11px;
      font-size: 0.86rem;
    }

    .stats-grid,
    .goals-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 14px;
    }

    #dashboard .stats-grid {
      position: relative;
      z-index: 2;
    }

    .dashboard-view #dashboard .stats-grid {
      margin-top: -82px;
    }

    .goals-grid {
      grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
      padding: 0 20px 20px;
      align-items: stretch;
    }

    .card {
      border: 1px solid rgba(231, 224, 211, 0.95);
      border-radius: var(--radius);
      background: var(--panel);
      box-shadow: var(--shadow);
    }

    .stat-card {
      position: relative;
      grid-template-columns: auto minmax(0, 1fr);
      gap: 14px;
      padding: 18px;
      min-height: 112px;
      display: grid;
      align-items: center;
      text-align: left;
      overflow: hidden;
    }

    .stat-card::after {
      content: "";
      position: absolute;
      right: -22px;
      bottom: -32px;
      width: 104px;
      height: 76px;
      border: 1px solid rgba(231, 224, 211, 0.72);
      border-radius: 12px;
      background: rgba(251, 250, 246, 0.58);
      transform: rotate(-12deg);
    }

    .stat-icon {
      display: grid;
      width: 58px;
      height: 58px;
      place-items: center;
    }

    .stat-card p {
      margin-top: 4px;
      color: var(--muted);
      font-size: 0.82rem;
      line-height: 1.25;
    }

    .goal-card {
      grid-template-columns: 1fr;
      min-height: 170px;
      width: 100%;
      justify-items: center;
      text-align: center;
      align-content: start;
      padding: 22px;
      background: #fffdf8;
    }

    .goal-card .progress-bar {
      width: 100%;
      max-width: 210px;
    }

    .goal-card .journey-album {
      width: 100%;
      margin-top: 18px;
      text-align: left;
    }

    .label {
      color: var(--muted);
      font-size: 0.82rem;
      font-weight: 700;
      text-transform: uppercase;
    }

    .stat-value {
      margin-top: 8px;
      font-size: 1.75rem;
      font-weight: 800;
    }

    .content-section {
      display: none;
      gap: 16px;
      align-content: start;
    }

    .content-section.active {
      display: grid;
    }

    .dashboard-grid {
      display: grid;
      grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
      gap: 14px;
      align-items: stretch;
    }

    .dashboard-grid.lower {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-card {
      padding-bottom: 18px;
      min-height: 0;
    }

    .section-head.compact {
      padding-bottom: 12px;
    }

    .bar-chart {
      display: grid;
      gap: 12px;
      padding: 0 20px;
    }

    .bar-row {
      display: grid;
      grid-template-columns: minmax(150px, 0.8fr) minmax(180px, 1.5fr) minmax(118px, 0.45fr);
      gap: 14px;
      align-items: center;
      color: var(--muted);
      font-size: 0.88rem;
      font-weight: 750;
    }

    .bar-row > span,
    .bar-row > strong {
      min-width: 0;
      line-height: 1.25;
    }

    .bar-row > strong {
      justify-self: end;
      text-align: right;
      max-width: 140px;
    }

    .bar-track {
      height: 12px;
      overflow: hidden;
      border-radius: 999px;
      background: #edf0eb;
    }

    .bar-fill {
      height: 100%;
      border-radius: inherit;
      background: var(--accent);
      transition: width 240ms ease;
    }

    .donut-wrap {
      display: grid;
      grid-template-columns: 126px minmax(0, 1fr);
      gap: 18px;
      align-items: center;
      padding: 0 20px;
    }

    .donut {
      display: grid;
      width: 126px;
      height: 126px;
      place-items: center;
      border-radius: 50%;
      border: 12px solid var(--accent-soft);
      background: #fff;
    }

    .donut span {
      display: grid;
      width: 82px;
      height: 82px;
      place-items: center;
      border-radius: 50%;
      background: #fff;
      font-size: 1rem;
      font-weight: 850;
      line-height: 1.15;
      text-align: center;
    }

    .legend-list,
    .priority-list {
      display: grid;
      gap: 10px;
      padding: 0 20px;
    }

    .legend-list {
      padding: 0;
    }

    .legend-item,
    .priority-item {
      display: flex;
      justify-content: space-between;
      gap: 12px;
      align-items: center;
      padding: 12px;
      border: 1px solid var(--line);
      border-radius: 14px;
      background: var(--panel-soft);
      color: var(--muted);
      font-weight: 750;
    }

    .legend-item .icon-insight {
      width: 34px;
      height: 34px;
    }

    .legend-dot {
      display: inline-block;
      width: 10px;
      height: 10px;
      margin-right: 8px;
      border-radius: 999px;
      background: var(--accent);
    }

    .calendar-list {
      padding: 0 20px;
    }

    .section-head {
      display: flex;
      justify-content: space-between;
      gap: 16px;
      align-items: center;
      padding: 20px;
    }

    .filter-row {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      padding: 0 20px 20px;
    }

    .chip {
      min-height: 34px;
      padding: 0 14px;
      border-radius: 999px;
      background: #f4f1ea;
      color: var(--muted);
      font-weight: 700;
      transition: transform 160ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease;
    }

    .chip.active {
      background: var(--accent-soft);
      color: var(--accent-dark);
      box-shadow: inset 0 0 0 1px rgba(47, 156, 134, 0.18);
      transform: translateY(-1px);
    }

    .bill-list {
      display: grid;
      gap: 14px;
    }

    .mailbox-stack {
      gap: 16px;
      padding-bottom: 18px;
    }

    .mailbox-stack .letter-card {
      margin-bottom: 0;
    }

    .mailbox-stack .letter-card:nth-child(2) {
      transform: none;
    }

    .mailbox-stack .letter-card:nth-child(3) {
      transform: none;
    }

    .mailbox-stack .letter-card:hover {
      z-index: 3;
      transform: translateY(-6px);
    }

    .bill-card {
      padding: 26px;
    }

    .letter-card {
      position: relative;
      overflow: hidden;
      min-height: 260px;
      padding: 26px;
      background: #fffdf8;
      transform: translateY(0);
      transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
    }

    .letter-card::before,
    .letter-card::after {
      content: "";
      position: absolute;
      pointer-events: none;
    }

    .letter-card::before {
      inset: 0;
      border-radius: inherit;
      border: 1px solid rgba(231, 224, 211, 0.75);
    }

    .letter-card::after {
      right: -40px;
      bottom: -56px;
      width: 220px;
      height: 160px;
      border: 1px solid rgba(231, 224, 211, 0.9);
      transform: rotate(-18deg);
      background: rgba(248, 244, 236, 0.48);
    }

    .letter-card .progress-bar::after,
    .stationery::after {
      content: "";
      position: absolute;
      pointer-events: none;
    }

    .letter-card:hover {
      transform: translateY(-4px);
      box-shadow: 0 22px 50px rgba(44, 55, 49, 0.13);
    }

    .letter-card.read {
      opacity: 0.72;
    }

    .letter-stamp {
      position: absolute;
      top: 18px;
      right: 18px;
      display: grid;
      width: 72px;
      height: 72px;
      place-items: center;
      border: 1px dashed rgba(47, 156, 134, 0.55);
      border-radius: 12px;
      background: rgba(255, 253, 248, 0.72);
      color: var(--accent-dark);
      overflow: hidden;
      z-index: 1;
    }

    .letter-stamp::after {
      content: "";
      position: absolute;
      inset: 5px;
      border: 1px solid rgba(47, 156, 134, 0.25);
      border-radius: 8px;
      pointer-events: none;
    }

    .letter-stamp .mikci-icon,
    .wax-seal .mikci-icon {
      position: relative;
      z-index: 1;
    }

    .letter-stamp .icon-goal {
      width: 44px;
      height: 44px;
    }

    .stamp-image {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .unread-badge {
      position: relative;
      z-index: 1;
      display: inline-flex;
      width: fit-content;
      min-height: 24px;
      align-items: center;
      padding: 0 9px;
      border-radius: 999px;
      background: var(--accent-soft);
      color: var(--accent-dark);
      font-size: 0.72rem;
      font-weight: 850;
    }

    .letter-address {
      position: relative;
      z-index: 1;
      display: grid;
      gap: 16px;
      max-width: calc(100% - 92px);
      margin-top: 18px;
    }

    .letter-preview {
      position: relative;
      z-index: 1;
      max-width: min(560px, calc(100% - 92px));
      margin-top: 18px;
      color: var(--ink);
      font-family: "Segoe Print", "Bradley Hand ITC", "Comic Sans MS", cursive;
      line-height: 1.45;
    }

    .letter-label {
      display: block;
      margin-bottom: 4px;
      color: var(--muted);
      font-size: 0.72rem;
      font-weight: 850;
      text-transform: uppercase;
    }

    .letter-meta {
      position: relative;
      z-index: 1;
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      align-items: center;
      margin-top: 18px;
      color: var(--muted);
      font-size: 0.86rem;
      font-weight: 800;
    }

    .letter-meta::after {
      content: "POSTMARK " attr(data-date);
      display: none;
    }

    .letter-amount {
      position: relative;
      z-index: 1;
      display: inline-grid;
      gap: 2px;
      margin-top: 14px;
      color: var(--muted);
      font-size: 1.2rem;
      font-weight: 850;
      line-height: 1.12;
    }

    .letter-amount span {
      color: var(--muted);
      font-size: 0.72rem;
      font-weight: 850;
      text-transform: uppercase;
    }

    .bill-top {
      display: grid;
      grid-template-columns: auto minmax(0, 1fr) auto;
      gap: 14px;
      align-items: start;
    }

    .bill-icon {
      display: grid;
      width: 48px;
      height: 48px;
      place-items: center;
    }

    .bill-desc {
      margin-top: 4px;
      color: var(--muted);
      line-height: 1.45;
    }

    .status-pill {
      padding: 8px 12px;
      border-radius: 999px;
      background: #eff4f1;
      color: var(--muted);
      font-size: 0.82rem;
      font-weight: 800;
      white-space: nowrap;
      transition: background 160ms ease, color 160ms ease, opacity 160ms ease;
    }

    .status-pill.due {
      background: #fff4d7;
      color: #8a5b0f;
    }

    .status-pill.overdue {
      background: #ffe8e2;
      color: var(--danger);
    }

    .status-pill.paid {
      background: var(--accent-soft);
      color: var(--accent-dark);
    }

    .progress-wrap {
      position: relative;
      z-index: 1;
      margin: 16px 0 10px;
    }

    .journey-focus {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
      margin-bottom: 10px;
    }

    .journey-focus div {
      padding: 10px;
      border: 1px solid var(--line);
      border-radius: 12px;
      background: rgba(255, 253, 248, 0.72);
    }

    .journey-focus strong {
      display: block;
      margin-top: 3px;
      color: var(--ink);
    }

    .progress-meta {
      display: flex;
      justify-content: space-between;
      gap: 12px;
      color: var(--muted);
      font-size: 0.9rem;
      font-weight: 700;
    }

    .progress-bar {
      height: 10px;
      margin-top: 8px;
      overflow: hidden;
      border-radius: 999px;
      background: #edf0eb;
    }

    .progress-fill {
      height: 100%;
      border-radius: inherit;
      background: var(--accent);
      transition: width 240ms ease;
    }

    .bill-footer {
      position: relative;
      z-index: 1;
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      align-items: center;
      justify-content: space-between;
    }

    .bill-facts {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      color: var(--muted);
      font-size: 0.9rem;
    }

    .bill-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      justify-content: flex-end;
    }

    .letter-overflow {
      position: relative;
    }

    .letter-overflow summary {
      display: inline-flex;
      min-width: 34px;
      min-height: 34px;
      align-items: center;
      justify-content: center;
      border: 1px solid var(--line);
      border-radius: 999px;
      background: #fff;
      color: var(--muted);
      font-weight: 900;
      list-style: none;
      cursor: pointer;
    }

    .letter-overflow summary::-webkit-details-marker {
      display: none;
    }

    .letter-overflow div {
      position: absolute;
      right: 0;
      bottom: calc(100% + 8px);
      z-index: 5;
      display: grid;
      gap: 4px;
      min-width: 150px;
      padding: 8px;
      border: 1px solid var(--line);
      border-radius: 12px;
      background: #fffdf8;
      box-shadow: 0 14px 28px rgba(44, 55, 49, 0.12);
    }

    .letter-overflow button {
      min-height: 34px;
      padding: 0 10px;
      border-radius: 9px;
      background: transparent;
      color: var(--ink);
      text-align: left;
      font-weight: 750;
    }

    .letter-overflow button:hover {
      background: var(--panel-soft);
    }

    .insights {
      position: sticky;
      top: 22px;
      display: grid;
      align-content: start;
      gap: 16px;
      height: calc(100vh - 44px);
      overflow: auto;
    }

    .insight-card {
      padding: 18px;
    }

    .stash-balance {
      position: relative;
      overflow: hidden;
      padding: 20px;
      background: #ffffff;
    }

    .card-corner-icon {
      position: absolute;
      right: 20px;
      bottom: 18px;
      opacity: 0.72;
    }

    .stash-balance .amount {
      margin-top: 10px;
      font-size: 2.2rem;
      font-weight: 850;
    }

    .quote-card {
      position: relative;
      overflow: hidden;
      padding: 20px;
      background: var(--ink);
      color: #fff;
    }

    .quote-card .card-corner-icon {
      opacity: 0.94;
      filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.16));
    }

    .quote-card h2,
    .quote-card p {
      position: relative;
      z-index: 1;
      max-width: 220px;
    }

    .quote-card p {
      color: #dfe9e5;
      line-height: 1.45;
    }

    .coach-list,
    .calendar-list,
    .history-list {
      display: grid;
      gap: 10px;
    }

    .coach-item,
    .calendar-item,
    .history-item {
      padding: 13px;
      border: 1px solid var(--line);
      border-radius: 14px;
      background: var(--panel-soft);
      color: var(--ink);
      line-height: 1.35;
    }

    .coach-item {
      display: grid;
      grid-template-columns: auto minmax(0, 1fr);
      gap: 10px;
      align-items: center;
    }

    .calendar-grid {
      display: grid;
      grid-template-columns: repeat(7, minmax(0, 1fr));
      gap: 10px;
      padding: 20px;
    }

    .calendar-day {
      min-height: 108px;
      padding: 10px;
      border: 1px solid var(--line);
      border-radius: 14px;
      background: var(--panel);
      color: var(--ink);
      text-align: left;
      transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
    }

    .calendar-day.outside-month {
      opacity: 0.45;
      background: var(--panel-soft);
    }

    .calendar-day.has-mail {
      cursor: pointer;
    }

    .calendar-day.has-mail:hover {
      transform: translateY(-2px);
      border-color: rgba(47, 156, 134, 0.35);
      box-shadow: 0 12px 26px rgba(44, 55, 49, 0.1);
    }

    .calendar-day strong {
      display: block;
      margin-bottom: 8px;
    }

    .calendar-event {
      display: flex;
      align-items: center;
      gap: 6px;
      margin-top: 6px;
      padding: 6px;
      border-radius: 9px;
      background: var(--accent-soft);
      color: var(--accent-dark);
      font-size: 0.78rem;
      font-weight: 800;
    }

    .calendar-event .icon-goal {
      width: 34px;
      height: 34px;
    }

    .empty-state {
      display: grid;
      gap: 12px;
      place-items: center;
      padding: 28px;
      color: var(--muted);
      text-align: center;
    }

    .form-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px;
    }

    .memory-fields {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px;
      margin-top: 12px;
      padding: 14px;
      border: 1px solid var(--line);
      border-radius: 16px;
      background: #fffdf8;
    }

    .field {
      display: grid;
      gap: 6px;
    }

    .field.full {
      grid-column: 1 / -1;
    }

    label {
      color: var(--muted);
      font-size: 0.84rem;
      font-weight: 800;
    }

    input,
    select,
    textarea {
      width: 100%;
      min-height: 42px;
      padding: 10px 12px;
      border: 1px solid var(--line);
      border-radius: 12px;
      background: #fff;
      color: var(--ink);
      outline: 0;
    }

    textarea {
      min-height: 82px;
      resize: vertical;
    }

    input:focus,
    select:focus,
    textarea:focus {
      border-color: rgba(47, 156, 134, 0.7);
      box-shadow: 0 0 0 4px rgba(47, 156, 134, 0.12);
    }

    .modal-backdrop {
      position: fixed;
      inset: 0;
      z-index: 20;
      display: none;
      align-items: center;
      justify-content: center;
      padding: 20px;
      background: rgba(38, 48, 45, 0.28);
      backdrop-filter: blur(6px);
    }

    .modal-backdrop.open {
      display: flex;
      animation: modalFade 160ms ease;
    }

    .modal {
      width: min(680px, 100%);
      max-height: calc(100vh - 40px);
      overflow: auto;
      padding: 20px;
      border-radius: 22px;
      background: #fff;
      box-shadow: 0 26px 70px rgba(38, 48, 45, 0.22);
      animation: paperUnfold 190ms ease;
    }

    .letter-modal {
      background: #fffdf8;
    }

    .open-ritual {
      display: grid;
      place-items: center;
      height: 170px;
      margin-top: 16px;
    }

    .ritual-envelope {
      position: relative;
      width: 210px;
      height: 128px;
      border: 1px solid var(--line);
      border-radius: 14px;
      background: #fffdf8;
      box-shadow: var(--shadow);
      animation: envelopeLift 700ms ease forwards;
      transform-style: preserve-3d;
    }

    .ritual-envelope::before,
    .ritual-envelope::after {
      content: "";
      position: absolute;
      inset: auto 0 0;
      height: 78px;
      background: #fbf6eb;
      clip-path: polygon(0 100%, 50% 28%, 100% 100%);
      border-radius: 0 0 14px 14px;
    }

    .ritual-flap {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 76px;
      background: #f7f0e3;
      clip-path: polygon(0 0, 50% 78%, 100% 0);
      transform-origin: top;
      animation: flapOpen 700ms ease forwards;
      z-index: 3;
    }

    .ritual-paper {
      position: absolute;
      left: 24px;
      bottom: 14px;
      width: 162px;
      height: 92px;
      border: 1px solid var(--line);
      border-radius: 10px;
      background: #fffaf1;
      animation: paperSlide 700ms ease forwards;
      z-index: 2;
    }

    .modal-backdrop:not(.opening-letter) .open-ritual {
      display: none;
    }

    .closing-letter .stationery {
      animation: foldAway 520ms ease forwards;
    }

    .closing-letter .letter-modal {
      animation: envelopeReturn 520ms ease forwards;
    }

    .stationery {
      position: relative;
      margin-top: 16px;
      padding: 28px;
      border: 1px solid var(--line);
      border-radius: 18px;
      background: #fffaf1;
      color: var(--ink);
      line-height: 1.7;
      box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72);
      opacity: 0;
      transform: translateY(10px);
      transition: opacity 180ms ease, transform 180ms ease;
      overflow: hidden;
      font-family: "Segoe Print", "Bradley Hand ITC", "Comic Sans MS", cursive;
      font-size: 1.02rem;
    }

    .stationery.revealed {
      opacity: 1;
      transform: translateY(0);
    }

    .stationery::before {
      content: "";
      position: absolute;
      top: 18px;
      right: 24px;
      width: 58px;
      height: 58px;
      border-radius: 50%;
      background: rgba(188, 123, 44, 0.08);
      filter: blur(0.4px);
    }

    .stationery::after {
      inset: 0;
      background:
        repeating-linear-gradient(0deg, rgba(231, 224, 211, 0.18), rgba(231, 224, 211, 0.18) 1px, transparent 1px, transparent 28px);
      opacity: 0.45;
    }

    .stationery p + p {
      margin-top: 16px;
    }

    .signature {
      font-family: "Segoe Script", "Bradley Hand ITC", cursive;
      font-size: 1.15rem;
    }

    .time-capsule-text {
      white-space: normal;
      padding: 16px;
      border: 1px solid var(--line);
      border-radius: 14px;
      background: #fffdf8;
    }

    .taped-photo {
      position: relative;
      width: min(260px, 100%);
      margin: 0 0 18px auto;
      padding: 8px;
      background: #fffdf8;
      border: 1px solid var(--line);
      transform: rotate(1.5deg);
      box-shadow: 0 12px 26px rgba(44, 55, 49, 0.12);
    }

    .taped-photo::before {
      content: "";
      position: absolute;
      top: -10px;
      left: 50%;
      width: 86px;
      height: 22px;
      transform: translateX(-50%) rotate(-3deg);
      background: rgba(223, 243, 237, 0.72);
      border: 1px solid rgba(47, 156, 134, 0.12);
    }

    .taped-photo img {
      display: block;
      width: 100%;
      aspect-ratio: 4 / 3;
      object-fit: cover;
      border-radius: 10px;
    }

    .future-timeline {
      display: grid;
      grid-template-columns: auto minmax(120px, 1fr) auto;
      gap: 10px;
      align-items: center;
      margin: 18px 0;
      color: var(--muted);
      font-family: Inter, ui-sans-serif, system-ui, sans-serif;
      font-size: 0.82rem;
      font-weight: 800;
    }

    .timeline-track {
      position: relative;
      height: 2px;
      background: var(--line);
    }

    .timeline-track i {
      position: absolute;
      top: 50%;
      left: var(--progress);
      width: 14px;
      height: 14px;
      border-radius: 50%;
      background: var(--accent);
      transform: translate(-50%, -50%);
      box-shadow: 0 0 0 6px var(--accent-soft);
    }

    .memory-notes {
      display: grid;
      gap: 8px;
      margin-top: 18px;
      padding: 14px;
      border: 1px solid var(--line);
      border-radius: 14px;
      background: rgba(255, 253, 248, 0.72);
      font-family: Inter, ui-sans-serif, system-ui, sans-serif;
    }

    .memory-notes p {
      display: grid;
      gap: 2px;
      margin: 0;
    }

    .memory-notes span {
      color: var(--muted);
      font-size: 0.78rem;
      font-weight: 800;
    }

    .journey-album {
      padding: 16px;
      border: 1px solid rgba(231, 224, 211, 0.95);
      border-radius: 18px;
      background: #fffdf8;
      box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72);
    }

    .album-teaser {
      display: flex;
      width: 100%;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin-top: 18px;
      padding: 14px;
      border: 1px solid var(--line);
      border-radius: 16px;
      background: #fffdf8;
      text-align: left;
    }

    .album-teaser strong {
      display: block;
      margin-top: 3px;
    }

    .album-modal {
      width: min(820px, 100%);
    }

    .album-player {
      margin-top: 18px;
    }

    .album-stage {
      display: grid;
      gap: 18px;
      place-items: center;
      min-height: 420px;
      padding: 24px;
      border: 1px solid var(--line);
      border-radius: 22px;
      background: #fffdf8;
      text-align: center;
    }

    .album-step-count {
      color: var(--muted);
      font-size: 0.82rem;
      font-weight: 850;
      text-transform: uppercase;
    }

    .album-stage-art {
      display: grid;
      width: min(420px, 100%);
      min-height: 220px;
      place-items: center;
      padding: 14px;
      border: 1px solid var(--line);
      border-radius: 18px;
      background: #fbfaf6;
      box-shadow: 0 16px 32px rgba(44, 55, 49, 0.1);
    }

    .album-stage-art img {
      display: block;
      max-width: 100%;
      max-height: 320px;
      object-fit: contain;
      border-radius: 14px;
    }

    .album-stage-copy {
      max-width: 560px;
    }

    .album-stage-copy h3 {
      margin-top: 8px;
      font-size: 1.35rem;
    }

    .album-stage-copy p {
      margin-top: 8px;
      color: var(--muted);
      line-height: 1.5;
    }

    .album-filmstrip {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      justify-content: center;
      margin-top: 14px;
    }

    .album-filmstrip button {
      width: 34px;
      height: 34px;
      border: 1px solid var(--line);
      border-radius: 999px;
      background: #fff;
      color: var(--muted);
      font-weight: 850;
    }

    .album-filmstrip button.active {
      background: var(--accent-soft);
      color: var(--accent-dark);
      border-color: rgba(47, 156, 134, 0.28);
    }

    .album-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 14px;
    }

    .album-head h3 {
      margin-top: 3px;
    }

    .album-timeline {
      position: relative;
      display: grid;
      gap: 14px;
      padding-left: 22px;
    }

    .album-timeline::before {
      content: "";
      position: absolute;
      left: 8px;
      top: 8px;
      bottom: 8px;
      width: 2px;
      background: var(--line);
    }

    .album-entry {
      position: relative;
      display: grid;
      grid-template-columns: 54px minmax(0, 1fr);
      gap: 12px;
      align-items: center;
      padding: 12px;
      border: 1px solid rgba(231, 224, 211, 0.9);
      border-radius: 16px;
      background: rgba(255, 255, 255, 0.72);
      box-shadow: 0 10px 24px rgba(44, 55, 49, 0.05);
    }

    .album-entry::before {
      content: "";
      position: absolute;
      left: -20px;
      top: 24px;
      width: 10px;
      height: 10px;
      border: 2px solid #fffdf8;
      border-radius: 999px;
      background: var(--accent);
      box-shadow: 0 0 0 1px rgba(47, 156, 134, 0.2);
    }

    .album-entry > img:first-child {
      width: 54px;
      height: 54px;
      object-fit: contain;
      background: #fbfaf6;
      border: 5px solid #fffdf8;
      border-radius: 12px;
      box-shadow: 0 10px 20px rgba(44, 55, 49, 0.12);
    }

    .album-entry.milestone-entry > img:first-child {
      object-fit: contain;
      border: 0;
      box-shadow: none;
    }

    .album-entry span {
      display: block;
      color: var(--muted);
      font-size: 0.76rem;
      font-weight: 800;
    }

    .album-entry strong {
      display: block;
      margin-top: 3px;
    }

    .album-entry p {
      margin-top: 4px;
      color: var(--muted);
      line-height: 1.35;
    }

    .journey-summary {
      margin-top: 16px;
      padding-top: 16px;
      border-top: 1px dashed var(--line);
    }

    .summary-grid,
    .certificate-stats {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
      gap: 10px;
      margin-top: 12px;
    }

    .summary-grid span,
    .certificate-stats span {
      display: grid;
      gap: 4px;
      padding: 10px;
      border: 1px solid var(--line);
      border-radius: 12px;
      background: rgba(255, 253, 248, 0.72);
      color: var(--muted);
      font-size: 0.78rem;
      font-weight: 800;
    }

    .summary-grid strong,
    .certificate-stats strong {
      color: var(--ink);
      font-size: 0.95rem;
    }

    .memory-collage {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
      gap: 12px;
      margin-top: 14px;
      align-items: start;
    }

    .memory-collage figure {
      margin: 0;
      padding: 8px 8px 24px;
      border: 1px solid var(--line);
      border-radius: 12px;
      background: #fffdf8;
      box-shadow: 0 14px 28px rgba(44, 55, 49, 0.1);
      transform: rotate(var(--tilt));
    }

    .memory-collage img {
      display: block;
      width: 100%;
      aspect-ratio: 4 / 3;
      object-fit: contain;
      background: #fbfaf6;
      border-radius: 8px;
    }

    .memory-collage figcaption {
      margin-top: 8px;
      color: var(--muted);
      font-size: 0.78rem;
      font-weight: 800;
      text-align: center;
    }

    .archive-card {
      margin-top: 8px;
    }

    .archive-list {
      padding: 0 20px 20px;
    }

    .future-shelf {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
      gap: 16px;
      padding: 18px 20px 28px;
      background:
        linear-gradient(#d9b889 0 12px, transparent 12px),
        linear-gradient(90deg, rgba(188, 123, 44, 0.12), transparent);
      border-radius: 0 0 var(--radius) var(--radius);
    }

    .vault-keepsake {
      position: relative;
      display: grid;
      gap: 14px;
      min-height: 310px;
      padding: 20px;
      overflow: hidden;
      cursor: pointer;
      background:
        linear-gradient(135deg, rgba(255, 253, 248, 0.96), rgba(255, 248, 223, 0.88)),
        #fffdf8;
      border-color: rgba(188, 123, 44, 0.24);
      box-shadow: 0 18px 38px rgba(44, 55, 49, 0.1);
      transition: transform 180ms ease, box-shadow 180ms ease;
    }

    .vault-keepsake:hover {
      transform: translateY(-3px);
      box-shadow: 0 22px 48px rgba(44, 55, 49, 0.14);
    }

    .vault-keepsake::before,
    .vault-keepsake::after {
      content: "";
      position: absolute;
      pointer-events: none;
    }

    .vault-keepsake::before {
      inset: 12px;
      border: 1px solid rgba(188, 123, 44, 0.16);
      border-radius: 14px;
    }

    .vault-keepsake::after {
      right: -30px;
      bottom: -30px;
      width: 112px;
      height: 112px;
      border-radius: 999px;
      background: rgba(188, 123, 44, 0.12);
    }

    .vault-ribbon {
      position: absolute;
      top: 0;
      left: 22px;
      padding: 10px 10px 14px;
      background: #8f5c2d;
      color: #fffdf8;
      font-size: 0.7rem;
      font-weight: 850;
      text-transform: uppercase;
      letter-spacing: 0.03em;
      clip-path: polygon(0 0, 100% 0, 100% 86%, 50% 100%, 0 86%);
    }

    .certificate-badge {
      justify-self: end;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 7px 10px;
      border: 1px solid rgba(188, 123, 44, 0.28);
      border-radius: 999px;
      background: rgba(255, 253, 248, 0.82);
      color: var(--muted);
      font-size: 0.76rem;
      font-weight: 850;
    }

    .vault-keepsake-art {
      display: grid;
      place-items: center;
      margin-top: 8px;
    }

    .vault-keepsake-copy {
      text-align: center;
    }

    .vault-keepsake-copy h3 {
      margin-top: 6px;
      font-size: 1.2rem;
    }

    .vault-keepsake-copy p {
      margin-top: 6px;
      color: var(--muted);
      line-height: 1.35;
    }

    .vault-keepsake-stats,
    .vault-stats {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
    }

    .vault-keepsake-stats span,
    .vault-stats span {
      display: grid;
      gap: 4px;
      padding: 10px;
      border: 1px solid rgba(231, 224, 211, 0.92);
      border-radius: 12px;
      background: rgba(255, 253, 248, 0.72);
      color: var(--muted);
      font-size: 0.74rem;
      font-weight: 850;
    }

    .vault-keepsake-stats strong,
    .vault-stats strong {
      color: var(--ink);
      font-size: 0.88rem;
    }

    .vault-keepsake .btn {
      position: relative;
      z-index: 2;
      justify-self: center;
    }

    .memory-vault-page {
      display: grid;
      gap: 18px;
      animation: paperUnfold 420ms ease both;
    }

    .vault-hero {
      display: grid;
      grid-template-columns: auto minmax(0, 1fr) auto;
      gap: 18px;
      align-items: center;
      padding: 20px;
      background:
        linear-gradient(135deg, rgba(255, 253, 248, 0.96), rgba(251, 250, 246, 0.92)),
        var(--panel);
    }

    .vault-hero-copy {
      display: grid;
      gap: 8px;
      justify-items: start;
    }

    .vault-hero-copy h2 {
      font-size: clamp(1.8rem, 3vw, 3rem);
      line-height: 1;
    }

    .vault-hero-copy p {
      max-width: 620px;
      color: var(--muted);
      line-height: 1.5;
    }

    .vault-hero-art {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .vault-final-letter {
      position: relative;
      min-height: 360px;
      padding: clamp(26px, 4vw, 54px);
      overflow: hidden;
      border: 1px solid rgba(188, 123, 44, 0.22);
      border-radius: 18px;
      background:
        repeating-linear-gradient(0deg, rgba(188, 123, 44, 0.045) 0 1px, transparent 1px 31px),
        #fffdf8;
      box-shadow: 0 22px 54px rgba(44, 55, 49, 0.11);
      color: var(--ink);
      font-family: Georgia, "Times New Roman", serif;
      animation: paperUnfold 520ms ease both;
    }

    .vault-final-letter p {
      max-width: 760px;
      margin-top: 18px;
      font-size: 1.12rem;
      line-height: 1.75;
    }

    .vault-final-letter h2 {
      margin-top: 26px;
      font-size: clamp(1.7rem, 3vw, 2.7rem);
      line-height: 1.05;
    }

    .vault-letter-tools {
      position: relative;
      z-index: 2;
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 10px;
    }

    .vault-letter-tools span {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      color: var(--muted);
      font-family: Inter, ui-sans-serif, system-ui, sans-serif;
      font-size: 0.82rem;
      font-weight: 850;
      text-transform: uppercase;
    }

    .vault-final-letter .signature {
      font-family: cursive;
      font-size: 1.55rem;
      line-height: 1.25;
    }

    .vault-postmark {
      position: absolute;
      top: 78px;
      right: 28px;
      color: var(--muted);
      font-size: 0.78rem;
      font-weight: 850;
      text-transform: uppercase;
    }

    .paper-corner {
      position: absolute;
      right: 0;
      bottom: 0;
      width: 72px;
      height: 72px;
      background: linear-gradient(135deg, transparent 50%, rgba(188, 123, 44, 0.12) 50%);
    }

    .vault-section {
      padding-bottom: 20px;
    }

    .vault-timeline {
      position: relative;
      display: grid;
      gap: 14px;
      padding: 0 20px 4px 44px;
    }

    .vault-timeline::before {
      content: "";
      position: absolute;
      left: 26px;
      top: 8px;
      bottom: 16px;
      width: 2px;
      background: linear-gradient(var(--accent), rgba(188, 123, 44, 0.28));
    }

    .vault-timeline-item {
      position: relative;
      display: grid;
      grid-template-columns: 62px minmax(0, 1fr);
      gap: 14px;
      align-items: center;
      padding: 14px;
      border: 1px solid var(--line);
      border-radius: 16px;
      background: rgba(255, 253, 248, 0.82);
      box-shadow: 0 12px 24px rgba(44, 55, 49, 0.06);
      animation: paperUnfold 420ms ease both;
    }

    .vault-timeline-item:nth-child(2) { animation-delay: 40ms; }
    .vault-timeline-item:nth-child(3) { animation-delay: 80ms; }
    .vault-timeline-item:nth-child(4) { animation-delay: 120ms; }
    .vault-timeline-item:nth-child(5) { animation-delay: 160ms; }

    .vault-timeline-item::before {
      content: "";
      position: absolute;
      left: -25px;
      top: 28px;
      width: 12px;
      height: 12px;
      border: 3px solid #fffdf8;
      border-radius: 999px;
      background: var(--accent);
      box-shadow: 0 0 0 1px rgba(47, 156, 134, 0.25);
    }

    .vault-timeline-icon,
    .vault-page-media {
      display: grid;
      place-items: center;
      min-width: 0;
    }

    .vault-timeline-icon img,
    .vault-page-media img {
      width: 100%;
      max-width: 62px;
      aspect-ratio: 1;
      object-fit: contain;
      border-radius: 12px;
    }

    .vault-timeline-item.has-photo .vault-timeline-icon img,
    .vault-page-media img {
      object-fit: cover;
      background: #fffdf8;
      border: 5px solid #fff;
      box-shadow: 0 10px 18px rgba(44, 55, 49, 0.12);
    }

    .vault-timeline-item span,
    .vault-timeline-item small {
      color: var(--muted);
      font-size: 0.78rem;
      font-weight: 850;
    }

    .vault-timeline-item h3 {
      margin-top: 3px;
    }

    .vault-timeline-item p {
      margin: 5px 0;
      color: var(--muted);
      line-height: 1.4;
    }

    .milestone-collage {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
      gap: 12px;
      padding: 0 20px;
    }

    .milestone-collage article {
      display: grid;
      gap: 8px;
      justify-items: center;
      min-height: 154px;
      padding: 16px;
      border: 1px solid var(--line);
      border-radius: 16px;
      background: #fffdf8;
      text-align: center;
      box-shadow: 0 12px 24px rgba(44, 55, 49, 0.06);
    }

    .milestone-collage span {
      color: var(--muted);
      font-size: 0.84rem;
      line-height: 1.35;
    }

    .vault-book {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 14px;
      padding: 0 20px;
    }

    .vault-page-card {
      display: grid;
      grid-template-columns: 94px minmax(0, 1fr);
      gap: 14px;
      padding: 16px;
      border: 1px solid rgba(188, 123, 44, 0.2);
      border-radius: 16px;
      background:
        repeating-linear-gradient(0deg, rgba(188, 123, 44, 0.035) 0 1px, transparent 1px 28px),
        #fffdf8;
      box-shadow: 0 12px 26px rgba(44, 55, 49, 0.07);
    }

    .vault-page-card .vault-page-media img {
      max-width: 94px;
    }

    .vault-page-card p {
      margin-top: 8px;
      color: var(--muted);
      line-height: 1.45;
    }

    .vault-page-meta {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 12px;
      color: var(--muted);
      font-size: 0.76rem;
      font-weight: 800;
    }

    .vault-page-meta span {
      padding: 6px 8px;
      border: 1px solid var(--line);
      border-radius: 999px;
      background: rgba(251, 250, 246, 0.72);
    }

    .vault-stats {
      grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
      padding: 0 20px;
    }

    .memory-box-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
      gap: 12px;
      padding: 0 20px;
    }

    .memory-box-grid article {
      display: grid;
      gap: 8px;
      place-items: center;
      min-height: 136px;
      padding: 16px;
      border: 1px solid var(--line);
      border-radius: 16px;
      background: linear-gradient(145deg, #fffdf8, #fbfaf6);
      text-align: center;
      box-shadow: 0 10px 20px rgba(44, 55, 49, 0.06);
      transition: transform 180ms ease, box-shadow 180ms ease;
    }

    .memory-box-grid article:hover {
      transform: translateY(-2px);
      box-shadow: 0 14px 28px rgba(44, 55, 49, 0.1);
    }

    .memory-box-grid span {
      color: var(--accent-dark);
      font-weight: 900;
    }

    .archive-envelope {
      min-height: 240px;
      background: #fff8df;
      border-color: rgba(188, 123, 44, 0.34);
      border-left: 12px solid #bc7b2c;
      border-radius: 10px 18px 18px 10px;
    }

    .archive-envelope .letter-address {
      margin-top: 4px;
      gap: 10px;
    }

    .archive-envelope .letter-amount {
      max-width: 84%;
      font-size: clamp(1.2rem, 1.7vw, 1.55rem);
    }

    .archive-envelope .bill-actions {
      position: relative;
      right: auto;
      bottom: auto;
      margin-top: 18px;
      z-index: 3;
    }

    .wax-seal {
      position: absolute;
      right: 28px;
      bottom: 76px;
      z-index: 2;
      display: grid;
      width: 48px;
      height: 48px;
      place-items: center;
      filter: drop-shadow(0 8px 12px rgba(38, 48, 45, 0.18));
      animation: waxSet 520ms ease;
    }

    .modal-head,
    .modal-actions {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
    }

    .modal-actions {
      margin-top: 18px;
      justify-content: flex-end;
    }

    .modal-head h2 {
      display: inline-flex;
      align-items: center;
      gap: 8px;
    }

    .completed-letter .letter-payment-action {
      display: none;
    }

    .completed-letter-action {
      display: none;
    }

    .completed-letter .completed-letter-action {
      display: inline-flex;
    }

    .certificate {
      margin-top: 18px;
      padding: 24px;
      border: 2px solid var(--line);
      border-radius: 18px;
      background: #fffdf8;
      text-align: center;
      font-family: Georgia, serif;
    }

    .certificate .icon-card {
      margin: 10px auto;
    }

    .certificate-message {
      max-width: 520px;
      margin: 18px auto;
      color: var(--muted);
      line-height: 1.5;
    }

    .certificate footer {
      display: inline-flex;
      gap: 8px;
      align-items: center;
      justify-content: center;
      margin-top: 18px;
      color: var(--muted);
      font-weight: 800;
    }

    .toast {
      position: fixed;
      right: 22px;
      bottom: 22px;
      z-index: 40;
      max-width: min(440px, calc(100vw - 44px));
      padding: 14px 16px;
      border-radius: 16px;
      background: var(--ink);
      color: #fff;
      box-shadow: 0 18px 44px rgba(38, 48, 45, 0.24);
      opacity: 0;
      transform: translateY(14px);
      pointer-events: none;
      transition: opacity 160ms ease, transform 160ms ease;
    }

    .toast.show {
      opacity: 1;
      transform: translateY(0);
    }

    .toast.error {
      background: var(--danger);
    }

    .mail-note {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto auto;
      gap: 12px;
      align-items: center;
      width: 100%;
      padding: 12px 14px;
      border: 1px solid var(--line);
      border-radius: 14px;
      background: #fffdf8;
      color: var(--ink);
      text-align: left;
      transition: transform 160ms ease, box-shadow 160ms ease;
    }

    .mail-note:hover {
      transform: translateY(-2px);
      box-shadow: 0 12px 26px rgba(44, 55, 49, 0.1);
    }

    .mail-note.read {
      opacity: 0.66;
    }

    .mail-note em {
      color: var(--accent-dark);
      font-style: normal;
      font-weight: 850;
    }

    @keyframes modalFade {
      from { opacity: 0; }
      to { opacity: 1; }
    }

    @keyframes paperUnfold {
      from {
        opacity: 0;
        transform: translateY(10px) scale(0.985);
      }
      to {
        opacity: 1;
        transform: translateY(0) scale(1);
      }
    }

    @keyframes foldAway {
      0% { opacity: 1; transform: translateY(0) scaleY(1); }
      45% { opacity: 1; transform: translateY(10px) scaleY(0.45); }
      100% { opacity: 0; transform: translateY(58px) scale(0.78); }
    }

    @keyframes envelopeReturn {
      0% { transform: translateY(0) scale(1); opacity: 1; }
      100% { transform: translateY(24px) scale(0.96); opacity: 0; }
    }

    @keyframes envelopeLift {
      0% { transform: translateY(0) scale(1); }
      28% { transform: translateY(-8px) scale(1.015); }
      100% { transform: translateY(-4px) scale(1); }
    }

    @keyframes flapOpen {
      0% { transform: rotateX(0deg); }
      42% { transform: rotateX(-132deg); }
      100% { transform: rotateX(-168deg); }
    }

    @keyframes paperSlide {
      0% { transform: translateY(34px) scaleY(0.72); opacity: 0; }
      55% { transform: translateY(-42px) scaleY(0.86); opacity: 1; }
      100% { transform: translateY(-72px) scaleY(1); opacity: 1; }
    }

    @keyframes waxSet {
      from { transform: scale(1.18); opacity: 0; }
      to { transform: scale(1); opacity: 1; }
    }

    .confetti-burst {
      position: fixed;
      inset: 0;
      z-index: 80;
      pointer-events: none;
      overflow: hidden;
    }

    .confetti-burst i {
      position: absolute;
      left: 50%;
      top: 45%;
      width: 9px;
      height: 14px;
      border-radius: 3px;
      background: var(--accent);
      animation: confettiFall 1200ms ease-out forwards;
      animation-delay: var(--d);
      transform: translate(-50%, -50%);
    }

    .confetti-burst i:nth-child(3n) {
      background: #bc7b2c;
    }

    .confetti-burst i:nth-child(4n) {
      background: var(--accent-soft);
    }

    @keyframes confettiFall {
      to {
        opacity: 0;
        transform: translate(calc(var(--x) * 28px), 260px) rotate(280deg);
      }
    }

    .sound-toggle {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      min-height: 42px;
      padding: 0 12px;
      border: 1px solid var(--line);
      border-radius: 999px;
      background: #fff;
      color: var(--muted);
    }

    .sound-toggle input {
      width: 16px;
      height: 16px;
      min-height: 0;
      padding: 0;
      accent-color: var(--accent);
    }

    .volume-control input {
      width: 92px;
      height: auto;
    }

    .voice-select {
      width: auto;
      max-width: 220px;
      min-height: 42px;
      border-radius: 999px;
    }

    .promise-modal {
      text-align: center;
    }

    .promise-envelope {
      position: relative;
      width: 190px;
      height: 118px;
      margin: 0 auto 18px;
      border: 1px solid var(--line);
      border-radius: 16px;
      background: #fffdf8;
      box-shadow: var(--shadow);
      transition: transform 420ms ease, opacity 420ms ease;
    }

    .promise-copy {
      margin-top: 10px;
      color: var(--muted);
      font-size: 1.25rem;
    }

    .promise-sealed .promise-envelope {
      animation: promiseSlide 620ms ease forwards;
    }

    .promise-sealed .promise-seal {
      animation: waxSet 420ms ease, stampPress 620ms ease;
    }

    .stamp-book-card {
      background: #fffdf8;
    }

    .stamp-book {
      display: flex;
      flex-direction: column;
      gap: 18px;
      align-items: stretch;
      width: 100%;
      padding: 0 20px 24px;
    }

    .collectible-stamp {
      display: grid;
      gap: 8px;
      min-height: 160px;
      place-items: center;
      padding: 16px;
      border: 1px dashed rgba(188, 123, 44, 0.52);
      border-radius: 14px;
      background: #f6ecd8;
      text-align: center;
      color: var(--ink);
    }

    .collectible-stamp div {
      display: grid;
      width: 54px;
      height: 54px;
      place-items: center;
    }

    .collector-filter-row {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      padding: 0 20px 16px;
    }

    .stamp-book > * {
      width: 100%;
      min-width: 0;
    }

    .collector-cover {
      position: relative;
      display: grid;
      grid-template-columns: auto minmax(0, 1fr) auto;
      gap: 18px;
      min-height: 168px;
      align-content: center;
      align-items: center;
      justify-items: center;
      padding: 24px 28px;
      overflow: hidden;
      border: 1px solid rgba(143, 92, 45, 0.35);
      border-radius: 18px;
      background:
        linear-gradient(90deg, rgba(38, 48, 45, 0.16) 0 16px, transparent 16px),
        repeating-linear-gradient(45deg, rgba(255,255,255,0.025) 0 3px, transparent 3px 9px),
        #8f5c2d;
      color: #fffdf8;
      text-align: center;
      box-shadow: 0 24px 56px rgba(44, 55, 49, 0.18);
    }

    .collector-cover.opened {
      grid-template-columns: auto minmax(0, 1fr);
      min-height: 132px;
      padding-top: 20px;
      padding-bottom: 20px;
    }

    .collector-cover::before {
      content: "";
      position: absolute;
      inset: 18px;
      border: 1px solid rgba(255, 253, 248, 0.28);
      border-radius: 14px;
      pointer-events: none;
    }

    .collector-foil {
      display: inline-flex;
      flex-direction: column;
      align-items: center;
      gap: 8px;
      color: #ffe8a7;
      font-weight: 900;
      text-transform: uppercase;
    }

    .collector-cover h2 {
      color: #ffe8a7;
      font-family: Georgia, "Times New Roman", serif;
      font-size: clamp(1.75rem, 3vw, 2.8rem);
      line-height: 1;
      text-shadow: 0 2px 0 rgba(38, 48, 45, 0.16);
    }

    .collector-cover.opened h2 {
      font-size: clamp(1.55rem, 2.2vw, 2.25rem);
    }

    .collector-cover.opened .collector-cover-grid {
      grid-column: 1 / -1;
      width: 100%;
      max-width: 460px;
    }

    .collector-cover.opened .btn {
      grid-column: 1 / -1;
    }

    .collector-cover-title {
      display: grid;
      gap: 8px;
      justify-items: start;
      text-align: left;
    }

    .collector-cover p {
      color: rgba(255, 253, 248, 0.86);
      font-weight: 800;
    }

    .collector-cover .btn {
      grid-column: 1 / -1;
      justify-self: center;
    }

    .collector-cover-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 10px;
      width: min(520px, 100%);
    }

    .collector-cover-grid span {
      display: grid;
      gap: 5px;
      padding: 12px;
      border: 1px solid rgba(255, 253, 248, 0.22);
      border-radius: 12px;
      background: rgba(255, 253, 248, 0.08);
      color: rgba(255, 253, 248, 0.76);
      font-size: 0.78rem;
      font-weight: 850;
    }

    .collector-cover-grid strong {
      color: #fffdf8;
      font-size: 1.2rem;
    }

    .collector-ribbon {
      position: absolute;
      top: 0;
      right: 38px;
      width: 28px;
      height: 92px;
      background: #2f9c86;
      box-shadow: 0 8px 18px rgba(38, 48, 45, 0.18);
      clip-path: polygon(0 0, 100% 0, 100% 86%, 50% 100%, 0 86%);
    }

    .collector-progress {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(180px, 0.34fr);
      gap: 18px;
      align-items: center;
      padding: 18px;
      border: 1px solid var(--line);
      border-radius: 16px;
      background: #fffdf8;
      box-shadow: 0 12px 26px rgba(44, 55, 49, 0.06);
    }

    .collector-progress:not(.open),
    .collector-pages.book-closed {
      display: none;
    }

    .collector-progress strong {
      display: block;
      margin-top: 4px;
      font-size: 1.08rem;
    }

    .collector-progress-track {
      height: 12px;
      overflow: hidden;
      border-radius: 999px;
      background: #ece8dd;
    }

    .collector-progress-track span {
      display: block;
      height: 100%;
      border-radius: inherit;
      background: linear-gradient(90deg, var(--accent), #d9b889);
    }

    .collector-pages {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
      gap: 16px;
      width: 100%;
      max-width: 100%;
      padding: 20px;
      border: 1px solid rgba(143, 92, 45, 0.18);
      border-radius: 18px;
      background:
        linear-gradient(90deg, transparent calc(50% - 1px), rgba(143, 92, 45, 0.14) calc(50% - 1px), rgba(143, 92, 45, 0.14) calc(50% + 1px), transparent calc(50% + 1px)),
        #fffaf0;
      box-shadow: inset 0 0 30px rgba(143, 92, 45, 0.06);
      animation: paperUnfold 260ms ease both;
    }

    .collector-stamp {
      position: relative;
      display: grid;
      gap: 10px;
      min-height: 250px;
      align-content: start;
      padding: 18px;
      overflow: hidden;
      border: 1px dashed rgba(143, 92, 45, 0.5);
      border-radius: 12px;
      background:
        radial-gradient(circle at 20% 18%, rgba(188, 123, 44, 0.08), transparent 34px),
        repeating-linear-gradient(0deg, rgba(188, 123, 44, 0.035) 0 1px, transparent 1px 26px),
        #fffdf8;
      color: var(--ink);
      cursor: pointer;
      text-align: center;
      transition: transform 180ms ease, box-shadow 180ms ease;
    }

    .collector-stamp:hover {
      transform: translateY(-3px);
      box-shadow: 0 16px 34px rgba(44, 55, 49, 0.11);
    }

    .collector-stamp.large {
      min-height: 330px;
      cursor: default;
    }

    .collector-stamp.large:hover {
      transform: none;
      box-shadow: none;
    }

    .stamp-perf {
      position: absolute;
      left: 0;
      right: 0;
      height: 8px;
      background: radial-gradient(circle, var(--panel) 0 4px, transparent 4px) 0 0 / 16px 8px repeat-x;
    }

    .stamp-perf.top {
      top: -4px;
    }

    .stamp-perf.bottom {
      bottom: -4px;
    }

    .stamp-cancel {
      position: absolute;
      top: 12px;
      right: 10px;
      width: 82px;
      height: 42px;
      display: grid;
      place-items: center;
      border: 2px solid rgba(38, 48, 45, 0.2);
      border-radius: 50%;
      color: rgba(38, 48, 45, 0.42);
      font-size: 0.56rem;
      font-weight: 900;
      text-transform: uppercase;
      transform: rotate(-12deg);
    }

    .collector-stamp-art {
      display: grid;
      min-height: 74px;
      place-items: center;
      margin-top: 18px;
      color: var(--muted);
      font-size: 1.4rem;
      font-weight: 900;
    }

    .collector-stamp-copy {
      display: grid;
      gap: 4px;
    }

    .collector-stamp-copy strong {
      font-size: 1rem;
    }

    .collector-stamp-copy span,
    .collector-stamp p,
    .collector-stamp em {
      color: var(--muted);
      font-size: 0.78rem;
      line-height: 1.35;
    }

    .collector-stamp p {
      font-family: Georgia, "Times New Roman", serif;
      font-style: italic;
    }

    .collector-stamp em {
      justify-self: center;
      padding: 6px 9px;
      border-radius: 999px;
      background: var(--accent-soft);
      color: var(--accent-dark);
      font-style: normal;
      font-weight: 850;
    }

    .collector-stamp.rare {
      border-color: rgba(188, 123, 44, 0.72);
      background:
        linear-gradient(135deg, rgba(255, 232, 167, 0.28), transparent),
        #fffdf8;
    }

    .collector-stamp.special {
      border-color: rgba(113, 128, 122, 0.42);
      background:
        linear-gradient(135deg, rgba(113, 128, 122, 0.12), transparent),
        #fffdf8;
    }

    .hidden-stamp {
      opacity: 0.72;
      filter: saturate(0.75);
      cursor: default;
    }

    .hidden-stamp:hover {
      transform: none;
      box-shadow: none;
    }

    .stamp-detail-modal {
      width: min(860px, 100%);
    }

    .stamp-story {
      display: grid;
      gap: 18px;
      margin-top: 16px;
    }

    .stamp-story-hero {
      display: grid;
      grid-template-columns: minmax(220px, 0.44fr) minmax(0, 1fr);
      gap: 18px;
      align-items: center;
    }

    .stamp-quote {
      margin: 10px 0 14px;
      color: var(--accent-dark);
      font-family: Georgia, "Times New Roman", serif;
      font-size: 1.2rem;
      line-height: 1.45;
    }

    .memory-of-journey {
      display: grid;
      gap: 10px;
      padding: 16px;
      border: 1px solid var(--line);
      border-radius: 16px;
      background: #fffdf8;
    }

    .memory-of-journey > div {
      display: grid;
      grid-template-columns: 84px minmax(0, 1fr);
      gap: 12px;
      align-items: center;
    }

    .memory-of-journey img {
      width: 84px;
      height: 84px;
      object-fit: cover;
      border: 5px solid #fff;
      border-radius: 12px;
      box-shadow: 0 10px 18px rgba(44, 55, 49, 0.1);
    }

    .memory-of-journey p {
      display: grid;
      gap: 4px;
      color: var(--muted);
      line-height: 1.4;
    }

    .memory-of-journey strong {
      color: var(--ink);
    }

    .stamp-story-actions,
    .share-toggle-grid {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
    }

    .share-toggle-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      margin-top: 16px;
    }

    .share-toggle-grid label {
      display: flex;
      align-items: center;
      gap: 10px;
      min-height: 44px;
      padding: 10px 12px;
      border: 1px solid var(--line);
      border-radius: 14px;
      background: #fffdf8;
      color: var(--ink);
      text-transform: none;
    }

    .share-toggle-grid input {
      width: 18px;
      height: 18px;
    }

    .share-link-box {
      display: grid;
      gap: 10px;
      margin-top: 16px;
      padding: 14px;
      border: 1px solid rgba(47, 156, 134, 0.24);
      border-radius: 14px;
      background: var(--accent-soft);
    }

    .share-link-box input {
      background: #fff;
    }

    .public-share-page {
      position: fixed;
      inset: 0;
      z-index: 90;
      overflow: auto;
      padding: 24px;
      background: var(--bg);
    }

    .public-share-page.hidden {
      display: none;
    }

    .public-share-wrap {
      display: grid;
      gap: 18px;
      max-width: 1060px;
      margin: 0 auto;
    }

    .public-share-header,
    .public-share-card,
    .public-share-section {
      border: 1px solid var(--line);
      border-radius: 18px;
      background: #fffdf8;
      box-shadow: var(--shadow);
    }

    .public-share-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      padding: 16px;
    }

    .public-share-header h1 {
      font-size: clamp(1.4rem, 3vw, 2.2rem);
    }

    .public-share-card {
      display: grid;
      gap: 18px;
      padding: 20px;
    }

    .public-share-hero {
      display: grid;
      grid-template-columns: minmax(180px, 0.34fr) minmax(0, 1fr);
      gap: 20px;
      align-items: center;
    }

    .public-share-hero > img {
      width: 100%;
      aspect-ratio: 4 / 3;
      object-fit: cover;
      border: 8px solid #fff;
      border-radius: 14px;
      box-shadow: 0 14px 28px rgba(44, 55, 49, 0.12);
    }

    .public-share-hero h2 {
      font-size: clamp(2rem, 4vw, 3.6rem);
      line-height: 1;
    }

    .public-share-section {
      padding: 18px;
      box-shadow: none;
    }

    .public-timeline {
      padding: 0 0 0 28px;
    }

    .stamp-press-overlay {
      position: fixed;
      inset: 0;
      z-index: 95;
      display: grid;
      place-items: center;
      pointer-events: none;
      background: rgba(38, 48, 45, 0.08);
    }

    .stamp-press-card {
      display: grid;
      gap: 8px;
      place-items: center;
      min-width: 220px;
      padding: 22px;
      border: 2px dashed rgba(143, 92, 45, 0.62);
      border-radius: 16px;
      background:
        repeating-linear-gradient(0deg, rgba(188, 123, 44, 0.04) 0 1px, transparent 1px 24px),
        #fffdf8;
      color: var(--ink);
      text-align: center;
      box-shadow: 0 22px 46px rgba(44, 55, 49, 0.18);
      animation: stampPressLand 960ms ease both;
    }

    .stamp-press-card::after {
      content: "POSTMARKED";
      color: rgba(47, 156, 134, 0.5);
      font-size: 0.72rem;
      font-weight: 900;
      letter-spacing: 0.12em;
      animation: inkAppear 960ms ease both;
    }

    .stamp-press-card span {
      color: var(--muted);
      font-size: 0.86rem;
      font-weight: 800;
    }

    @keyframes stampPressLand {
      0% { opacity: 0; transform: translateY(-26px) scale(1.08); }
      38% { opacity: 1; transform: translateY(0) scale(0.96); }
      62% { transform: translateY(0) scale(1); }
      100% { opacity: 0; transform: translateY(8px) scale(1); }
    }

    @keyframes inkAppear {
      0%, 36% { opacity: 0; transform: scale(1.12); }
      58%, 100% { opacity: 1; transform: scale(1); }
    }

    @keyframes dailyEnvelope {
      0% { transform: translateY(0); }
      45% { transform: translateY(-72px); }
      100% { transform: translate(0, -22px) scale(1.2); }
    }

    @keyframes mailboxOpen {
      0% { transform: scale(1); }
      40% { transform: scale(1.03); }
      100% { transform: scale(0.98); opacity: 0; }
    }

    @keyframes promiseSlide {
      0% { transform: translateY(0) scale(1); opacity: 1; }
      45% { transform: translateY(-8px) scale(0.98); opacity: 1; }
      100% { transform: translateY(80px) scale(0.82); opacity: 0; }
    }

    @keyframes stampPress {
      0% { transform: scale(1.35); }
      45% { transform: scale(0.92); }
      100% { transform: scale(1); }
    }

    .mobile-nav-toggle {
      display: none;
    }

    @media (max-width: 1180px) {
      .app-shell {
        grid-template-columns: 220px minmax(0, 1fr);
      }

      .insights {
        position: static;
        grid-column: 1 / -1;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        height: auto;
        overflow: visible;
      }
    }

    @media (max-width: 820px) {
      .app-shell {
        display: block;
        padding: 14px;
      }

      .mobile-nav-toggle {
        display: inline-flex;
        margin-bottom: 12px;
      }

      .sidebar {
        position: static;
        display: none;
        height: auto;
        margin-bottom: 14px;
      }

      .sidebar.open {
        display: flex;
      }

      .topbar,
      .section-head,
      .bill-footer {
        align-items: stretch;
        flex-direction: column;
      }

      .actions {
        padding-top: 0;
        justify-content: flex-start;
      }

      .actions,
      .bill-actions {
        justify-content: flex-start;
      }

      .stats-grid,
      .goals-grid,
      .dashboard-grid,
      .dashboard-grid.lower,
      .insights,
      .form-grid,
      .memory-fields,
      .calendar-grid {
        grid-template-columns: 1fr;
      }

      .donut-wrap,
      .bar-row,
      .vault-hero,
      .vault-timeline-item,
      .vault-page-card,
      .collector-progress,
      .stamp-story-hero,
      .public-share-hero {
        grid-template-columns: 1fr;
      }

      .collector-cover-grid,
      .share-toggle-grid {
        grid-template-columns: 1fr;
      }

      .collector-cover {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
      }

      .collector-cover-title {
        justify-items: center;
        text-align: center;
      }

      .public-share-header {
        align-items: stretch;
        flex-direction: column;
      }

      .vault-hero {
        justify-items: start;
      }

      .vault-hero-art {
        justify-self: center;
      }

      .vault-final-letter {
        padding-top: 56px;
      }

      .vault-postmark {
        left: 26px;
        right: auto;
        top: 92px;
      }

      .vault-keepsake-stats {
        grid-template-columns: 1fr;
      }

      .vault-timeline {
        padding-left: 32px;
      }

      .vault-timeline::before {
        left: 16px;
      }

      .vault-timeline-item::before {
        left: -21px;
      }

      .bill-top {
        grid-template-columns: auto minmax(0, 1fr);
      }

      .status-pill {
        grid-column: 1 / -1;
        width: fit-content;
      }
    }
