
    :root {
      --desk-dark: #070403;
      --paper-base: #efeae2;
      --paper-warm: #f5efe6;
      --ink-dark: #2c221e;
      --gold-accent: #d4a359;
    }

    * {
      box-sizing: border-box;
      user-select: none;
    }

    body {
      margin: 0;
      padding: 0;
      background-color: #070403;
      color: #f3ece2;
      font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
      overflow-x: hidden;
      min-height: 100vh;
    }

    /* Deep dark ambient room stage so the concentrated top-left lamp beam pops exactly like 1000055102.jpg */
    .desk-stage {
      position: relative;
      width: 100%;
      min-height: 100vh;
      background:
        radial-gradient(ellipse 46% 42% at 14% 12%, rgba(212, 152, 92, 0.22) 0%, rgba(90, 54, 28, 0.08) 48%, rgba(7, 4, 3, 0) 78%),
        radial-gradient(circle at 48% 50%, #140c08 0%, #090503 58%, #040201 100%);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: 60px 12px 72px;
    }

    /* Hand-drawn / handwritten fonts */
    .font-hand-title {
      font-family: 'Kalam', 'Caveat', cursive;
    }
    .font-hand-script {
      font-family: 'Caveat', 'Zhi Mang Xing', cursive;
    }
    .font-cn-hand {
      font-family: 'Ma Shan Zheng', 'Kalam', cursive;
    }

    /* Scaling wrapper so the 1000x723 reference canvas fits any screen */
    .book-viewport {
      position: relative;
      width: 1000px;
      height: 723px;
      transform-origin: center center;
      box-shadow: 0 30px 90px rgba(0, 0, 0, 0.95);
      border-radius: 4px;
      overflow: hidden;
      background: #080402;
    }

    /* 100% Authentic Photorealistic Desk, Focused Spotlight Cone & Hand-Torn Fibrous Watercolor Spread Plate */
    .photoreal-plate-bg {
      position: absolute;
      inset: 0;
      width: 1000px;
      height: 723px;
      object-fit: cover;
      pointer-events: none;
      z-index: 1;
    }

    /* Focused Top-Left Spotlight & Shadow Contrast Layer (Controllable via 💡 button) */
    .spotlight-cone {
      pointer-events: none;
      position: absolute;
      inset: 0;
      z-index: 32;
      background:
        /* Concentrated warm beam from top-left lamp */
        radial-gradient(ellipse 38% 36% at 12% 14%, rgba(255, 232, 195, 0.24) 0%, rgba(255, 198, 130, 0.08) 46%, transparent 72%),
        /* Deep directional falloff toward bottom-right and outer desk edges */
        linear-gradient(128deg, rgba(255, 230, 190, 0.08) 0%, transparent 38%, rgba(8, 4, 2, 0.22) 72%, rgba(4, 2, 1, 0.56) 100%);
      transition: opacity 0.4s ease;
    }

    /* Main Torn Spread Interactive Area (Matches exact coordinates of the paper in 1000055102.jpg) */
    .torn-spread-shadow {
      position: absolute;
      left: 103px;
      top: 84px;
      width: 836px;
      height: 582px;
      z-index: 10;
      transform-style: preserve-3d;
    }

    .torn-spread-paper {
      position: relative;
      width: 100%;
      height: 100%;
      transform-style: preserve-3d;
    }

    /* =========================================================================
       TRUE 3D PHYSICAL BOOK PAGE-TURN ENGINE (ZERO MID-ANIMATION JUMP)
       - Front of turning leaf = Outgoing page (continuous from 0deg to 180deg)
       - Back of turning leaf  = Incoming page (continuous from 0deg to 180deg)
       - Underneath right half = Revealed page on the right side
       - Underneath left half  = Revealed page on the left side
       - Official state switch happens ONLY at 100% completion!
       ========================================================================= */
    .page-flip-stage {
      pointer-events: none;
      position: absolute;
      inset: 0;
      z-index: 40;
      perspective: 2500px;
      transform-style: preserve-3d;
      overflow: visible;
      opacity: 0;
      visibility: hidden;
    }

    .page-flip-stage.active-flip {
      opacity: 1;
      visibility: visible;
    }

    /* Hide live DOM spread & corner buttons while the 4-layer 3D turn stage is active so nothing peeks around torn edges */
    .torn-spread-paper.is-flipping-book #spreadCanvas,
    .torn-spread-paper.is-flipping-book .spread-header-bar,
    .torn-spread-paper.is-flipping-book .corner-flip-zone {
      opacity: 0 !important;
      pointer-events: none !important;
    }

    /* Static Left & Right Underlay Pages during the turn so revealed halves never jump */
    .flip-underlay-half {
      position: absolute;
      top: 0;
      width: 414px;
      height: 582px;
      overflow: hidden;
      z-index: 41;
      pointer-events: none;
    }

    .flip-underlay-left {
      left: 11px;
      background-size: 414px 582px;
      background-position: center;
      clip-path: url(#left-page-torn-clip);
    }

    .flip-underlay-right {
      left: 425px;
      background-size: 414px 582px;
      background-position: center;
      clip-path: url(#right-page-torn-clip);
    }

    /* Sweeping ambient shadow cast onto the spread by the curling page */
    .flip-gutter-shadow {
      position: absolute;
      top: 6px;
      bottom: 8px;
      left: 11px;
      width: 828px;
      opacity: 0;
      pointer-events: none;
      z-index: 42;
    }

    .page-flip-leaf {
      pointer-events: none;
      position: absolute;
      top: 0;
      left: 425px;
      width: 414px;
      height: 582px;
      transform-origin: left center;
      transform-style: preserve-3d;
      z-index: 44;
      opacity: 0;
    }

    /* NOTE: Do NOT put clip-path or filter on .page-flip-leaf, .flip-leaf-face, or .flip-leaf-back!
       In Chromium/WebKit/Firefox, clip-path or filter on a 3D face forces transform-style: flat
       and breaks backface-visibility: hidden, causing the mirrored back of photos to bleed through!
       Instead, we keep .flip-leaf-face and .flip-leaf-back as pure 3D planes with backface-visibility: hidden
       and a 1px Z-separation, and apply clip-path ONLY on an inner child (.flip-face-clip-inner). */
    .flip-leaf-face {
      position: absolute;
      inset: 0;
      backface-visibility: hidden;
      -webkit-backface-visibility: hidden;
      transform: rotateY(0deg);
    }

    .flip-leaf-back {
      position: absolute;
      inset: 0;
      backface-visibility: hidden;
      -webkit-backface-visibility: hidden;
      transform: rotateY(180deg);
    }

    .flip-face-clip-inner {
      position: absolute;
      inset: 0;
      background-color: #e9e1d4;
      background-size: 414px 582px;
      background-position: center;
      clip-path: url(#right-page-torn-clip);
      overflow: hidden;
    }

    .flip-back-clip-inner {
      position: absolute;
      inset: 0;
      background-color: #efe9df;
      background-size: 414px 582px;
      background-position: center;
      clip-path: url(#left-page-torn-clip);
      overflow: hidden;
    }

    /* Smooth dynamic lighting overlay on the front face (0 opacity at 0deg so 0% has zero lighting jump!) */
    .flip-face-clip-inner::after {
      content: '';
      position: absolute;
      inset: 0;
      z-index: 30;
      background: linear-gradient(96deg,
        rgba(28, 17, 9, 0.34) 0%,
        rgba(255, 250, 240, 0.24) 30%,
        rgba(235, 226, 212, 0.04) 64%,
        rgba(18, 10, 5, 0.28) 100%
      );
      opacity: 0;
      pointer-events: none;
    }

    /* Smooth dynamic lighting overlay on the back face (0 opacity at -180deg so 100% has zero lighting jump!) */
    .flip-back-clip-inner::after {
      content: '';
      position: absolute;
      inset: 0;
      z-index: 30;
      background: linear-gradient(-96deg,
        rgba(32, 20, 10, 0.36) 0%,
        rgba(210, 198, 182, 0.16) 20%,
        rgba(255, 252, 245, 0.32) 48%,
        rgba(240, 232, 220, 0.06) 78%,
        rgba(24, 14, 7, 0.24) 100%
      );
      opacity: 0;
      pointer-events: none;
    }

    .page-flip-leaf.flipping-next {
      opacity: 1;
      animation: softPaperCurlNext 0.96s linear forwards;
    }
    .page-flip-leaf.flipping-next .flip-leaf-face {
      animation: faceVisNext 0.96s linear forwards;
    }
    .page-flip-leaf.flipping-next .flip-leaf-back {
      animation: backVisNext 0.96s linear forwards;
    }
    .page-flip-leaf.flipping-next .flip-face-clip-inner::after {
      animation: faceShadeNext 0.96s linear forwards;
    }
    .page-flip-leaf.flipping-next .flip-back-clip-inner::after {
      animation: backShadeNext 0.96s linear forwards;
    }

    .page-flip-leaf.flipping-prev {
      opacity: 1;
      animation: softPaperCurlPrev 0.96s linear forwards;
    }
    .page-flip-leaf.flipping-prev .flip-leaf-face {
      animation: faceVisPrev 0.96s linear forwards;
    }
    .page-flip-leaf.flipping-prev .flip-leaf-back {
      animation: backVisPrev 0.96s linear forwards;
    }
    .page-flip-leaf.flipping-prev .flip-face-clip-inner::after {
      animation: faceShadePrev 0.96s linear forwards;
    }
    .page-flip-leaf.flipping-prev .flip-back-clip-inner::after {
      animation: backShadePrev 0.96s linear forwards;
    }

    .flip-gutter-shadow.shadow-next {
      animation: sweepShadowNext 0.96s linear forwards;
    }

    .flip-gutter-shadow.shadow-prev {
      animation: sweepShadowPrev 0.96s linear forwards;
    }

    /* Bulletproof visibility lock at exactly 50% (-90deg edge-on) + native 3D backface-visibility */
    @keyframes faceVisNext {
      0%, 49.9% { opacity: 1; visibility: visible; }
      50%, 100% { opacity: 0; visibility: hidden; }
    }
    @keyframes backVisNext {
      0%, 49.9% { opacity: 0; visibility: hidden; }
      50%, 100% { opacity: 1; visibility: visible; }
    }
    @keyframes faceVisPrev {
      0%, 49.9% { opacity: 0; visibility: hidden; }
      50%, 100% { opacity: 1; visibility: visible; }
    }
    @keyframes backVisPrev {
      0%, 49.9% { opacity: 1; visibility: visible; }
      50%, 100% { opacity: 0; visibility: hidden; }
    }

    /* Smooth S-curve 3D Paper Turn Next (0deg -> -180deg, hits -90deg at 50%, settles flat smoothly before 100%) */
    @keyframes softPaperCurlNext {
      0% {
        transform: rotateY(0deg) rotateZ(0deg) skewY(0deg);
      }
      14% {
        transform: rotateY(-14deg) rotateZ(-0.35deg) skewY(-1.0deg);
      }
      30% {
        transform: rotateY(-44deg) rotateZ(-0.75deg) skewY(-2.1deg);
      }
      50% {
        transform: rotateY(-90deg) rotateZ(-0.95deg) skewY(-2.6deg);
      }
      70% {
        transform: rotateY(-136deg) rotateZ(-0.75deg) skewY(-2.1deg);
      }
      84% {
        transform: rotateY(-166deg) rotateZ(-0.3deg) skewY(-0.8deg);
      }
      94% {
        transform: rotateY(-178.5deg) rotateZ(0deg) skewY(0deg);
      }
      100% {
        transform: rotateY(-180deg) rotateZ(0deg) skewY(0deg);
      }
    }

    /* Smooth S-curve 3D Paper Turn Prev (-180deg -> 0deg, hits -90deg at 50%, settles flat smoothly before 100%) */
    @keyframes softPaperCurlPrev {
      0% {
        transform: rotateY(-180deg) rotateZ(0deg) skewY(0deg);
      }
      14% {
        transform: rotateY(-166deg) rotateZ(0.35deg) skewY(1.0deg);
      }
      30% {
        transform: rotateY(-136deg) rotateZ(0.75deg) skewY(2.1deg);
      }
      50% {
        transform: rotateY(-90deg) rotateZ(0.95deg) skewY(2.6deg);
      }
      70% {
        transform: rotateY(-44deg) rotateZ(0.75deg) skewY(2.1deg);
      }
      84% {
        transform: rotateY(-14deg) rotateZ(0.3deg) skewY(0.8deg);
      }
      94% {
        transform: rotateY(-1.5deg) rotateZ(0deg) skewY(0deg);
      }
      100% {
        transform: rotateY(0deg) rotateZ(0deg) skewY(0deg);
      }
    }

    @keyframes faceShadeNext {
      0% { opacity: 0; }
      25% { opacity: 0.45; }
      50% { opacity: 0.95; }
      100% { opacity: 0; }
    }
    @keyframes backShadeNext {
      0% { opacity: 0; }
      50% { opacity: 0.95; }
      75% { opacity: 0.45; }
      100% { opacity: 0; }
    }
    @keyframes faceShadePrev {
      0% { opacity: 0; }
      50% { opacity: 0.95; }
      75% { opacity: 0.45; }
      100% { opacity: 0; }
    }
    @keyframes backShadePrev {
      0% { opacity: 0; }
      25% { opacity: 0.45; }
      50% { opacity: 0.95; }
      100% { opacity: 0; }
    }

    @keyframes sweepShadowNext {
      0% {
        opacity: 0;
        background: linear-gradient(90deg, transparent 48%, rgba(12,6,2,0.36) 54%, transparent 72%);
      }
      45% {
        opacity: 0.85;
        background: linear-gradient(90deg, transparent 22%, rgba(10,5,2,0.44) 48%, rgba(10,5,2,0.22) 58%, transparent 75%);
      }
      85% {
        opacity: 0.45;
        background: linear-gradient(90deg, rgba(10,5,2,0.28) 8%, transparent 46%, transparent 100%);
      }
      100% {
        opacity: 0;
      }
    }

    @keyframes sweepShadowPrev {
      0% {
        opacity: 0;
        background: linear-gradient(90deg, rgba(10,5,2,0.28) 8%, transparent 46%, transparent 100%);
      }
      48% {
        opacity: 0.85;
        background: linear-gradient(90deg, transparent 30%, rgba(10,5,2,0.44) 50%, rgba(10,5,2,0.28) 68%, transparent 85%);
      }
      85% {
        opacity: 0.45;
        background: linear-gradient(90deg, transparent 52%, rgba(10,5,2,0.32) 78%, transparent 96%);
      }
      100% {
        opacity: 0;
      }
    }

    /* Polaroid Frame Component - Strictly NO hover/flip animation per requirement! */
    .scrapbook-item {
      position: absolute;
      z-index: 10;
      cursor: grab;
    }
    .scrapbook-item:active {
      cursor: grabbing;
    }
    .scrapbook-item.selected-item {
      outline: 1.5px dashed rgba(212, 163, 89, 0.85);
      outline-offset: 4px;
      z-index: 25;
    }

    /* Realistic Crisp Directional Cast Shadow (Down-Right from focused top-left spotlight) */
    .polaroid-card {
      position: relative;
      background: linear-gradient(148deg, #fcfaf7 0%, #f1ede5 58%, #e2dbd0 100%);
      padding: 8px 8px 28px 8px;
      border-radius: 1.5px;
      /* Sharp, concentrated directional cast shadow matching 1000055102.jpg */
      box-shadow:
        8px 12px 9px -1px rgba(14, 9, 5, 0.68),
        14px 20px 18px -2px rgba(14, 9, 5, 0.38),
        2px 3px 3px rgba(14, 9, 5, 0.42),
        0 0 1px rgba(0, 0, 0, 0.28);
    }

    /* Curled bottom-right corner effect with deep focused shadow under the lifted corner */
    .polaroid-card.curl-corner {
      box-shadow:
        6px 10px 8px -2px rgba(14, 9, 5, 0.62),
        2px 4px 4px rgba(14, 9, 5, 0.35);
    }
    .polaroid-card.curl-corner::after {
      content: '';
      position: absolute;
      right: 5px;
      bottom: 6px;
      width: 48%;
      height: 24px;
      z-index: -1;
      transform: rotate(9deg) skewX(18deg);
      box-shadow:
        9px 15px 9px rgba(10, 6, 3, 0.82),
        14px 22px 14px rgba(10, 6, 3, 0.45);
      background: transparent;
    }
    .polaroid-card.curl-corner .corner-fold-triangle {
      position: absolute;
      right: 0;
      bottom: 0;
      width: 24px;
      height: 24px;
      background: linear-gradient(135deg, #d5cdc1 0%, #ffffff 46%, rgba(235, 229, 220, 0.92) 54%, rgba(210, 202, 190, 0.4) 100%);
      border-top-left-radius: 7px;
      box-shadow: -2px -2px 5px rgba(0,0,0,0.16);
      pointer-events: none;
    }

    .polaroid-inner-photo {
      position: relative;
      width: 100%;
      background: #100e0c;
      overflow: hidden;
      box-shadow: inset 0 1px 3px rgba(0,0,0,0.65);
    }

    .polaroid-inner-photo img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
      pointer-events: none;
      filter: contrast(1.05) brightness(0.95) sepia(0.05);
    }

    /* Subtle directional sheen on Polaroid emulsion */
    .polaroid-inner-photo::after {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(132deg, rgba(255,236,208,0.14) 0%, transparent 42%, rgba(0,0,0,0.26) 100%);
      pointer-events: none;
    }

    /* Gold Pushpin + Crisp Dark Directional Pin Shadow (cast at ~36deg down-right) */
    .gold-pin-wrap {
      position: absolute;
      top: -6px;
      left: 50%;
      transform: translateX(-50%);
      width: 18px;
      height: 18px;
      z-index: 15;
      pointer-events: none;
    }
    .gold-pin-shadow {
      position: absolute;
      top: 6px;
      left: 6px;
      width: 26px;
      height: 10px;
      background: radial-gradient(ellipse at 25% 50%, rgba(10, 6, 3, 0.92) 0%, rgba(12, 7, 3, 0.68) 52%, transparent 95%);
      transform: rotate(36deg);
      transform-origin: left center;
      filter: blur(0.6px);
    }
    .gold-pin-head {
      position: relative;
      width: 13px;
      height: 13px;
      border-radius: 50%;
      background: radial-gradient(circle at 30% 28%, #fffbe6 0%, #eec668 26%, #b87e1f 64%, #4f3105 100%);
      box-shadow:
        1px 2px 3px rgba(0, 0, 0, 0.85),
        inset -1px -1px 2px rgba(255, 228, 158, 0.5);
    }

    /* Blue Pushpin (seen on top-right torn white note in reference) */
    .blue-pin-head {
      position: relative;
      width: 10px;
      height: 10px;
      border-radius: 50%;
      background: radial-gradient(circle at 32% 30%, #93c5fd 0%, #2563eb 45%, #172554 92%);
      box-shadow: 2px 3px 3px rgba(0, 0, 0, 0.8);
    }

    /* Small Brass Brad Pin (seen on left cream note) */
    .small-gold-pin-head {
      position: relative;
      width: 9px;
      height: 9px;
      border-radius: 50%;
      background: radial-gradient(circle at 30% 30%, #fef08a 0%, #ca8a04 55%, #5c310c 100%);
      box-shadow: 2px 3px 3px rgba(0, 0, 0, 0.75);
    }

    /* Translucent Washi Tape Strip */
    .washi-tape {
      position: absolute;
      top: -12px;
      left: 50%;
      transform: translateX(-50%) rotate(1.5deg);
      width: 58px;
      height: 22px;
      background: linear-gradient(90deg, rgba(224, 214, 194, 0.44) 0%, rgba(236, 228, 210, 0.62) 50%, rgba(215, 205, 185, 0.44) 100%);
      box-shadow: 1px 2px 3px rgba(0,0,0,0.16);
      border-left: 1.5px dotted rgba(255,255,255,0.38);
      border-right: 1.5px dotted rgba(255,255,255,0.38);
      z-index: 14;
      pointer-events: none;
    }

    /* Sticky Note Styles with Crisp Focused Cast Shadows matching reference image */
    .note-yellow {
      background: linear-gradient(142deg, #f4e898 0%, #ebd875 68%, #dcc45c 100%);
      box-shadow:
        6px 9px 7px -1px rgba(14, 9, 4, 0.58),
        10px 15px 12px -2px rgba(14, 9, 4, 0.32),
        1px 2px 2px rgba(14, 9, 4, 0.3);
      color: #32281e;
    }

    .note-cream {
      background: linear-gradient(142deg, #f8f0da 0%, #ede0be 100%);
      box-shadow:
        5px 7px 6px rgba(14, 9, 4, 0.48),
        1px 2px 2px rgba(14, 9, 4, 0.28);
      color: #42362a;
    }

    .note-torn-white {
      background: linear-gradient(142deg, #f7f2ea 0%, #e5ddd1 100%);
      clip-path: url(#torn-note-clip);
      color: #362b23;
    }

    .note-torn-shadow {
      filter:
        drop-shadow(5px 8px 4px rgba(12, 8, 4, 0.58))
        drop-shadow(8px 12px 8px rgba(12, 8, 4, 0.28));
    }

    /* Editable content styling without ugly focus borders */
    [contenteditable="true"]:focus {
      outline: none;
      background: rgba(212, 163, 89, 0.14);
      border-radius: 2px;
    }

    /* Delete item button when selected */
    .item-action-bar {
      display: none;
      position: absolute;
      top: -32px;
      right: -4px;
      gap: 4px;
      z-index: 30;
    }
    .scrapbook-item.selected-item .item-action-bar {
      display: flex;
    }

    /* Interactive Page-Corner Curl Hotzones (Left & Right bottom corners) */
    .corner-flip-zone {
      position: absolute;
      bottom: 8px;
      width: 56px;
      height: 56px;
      z-index: 36;
      cursor: pointer;
      display: flex;
      align-items: flex-end;
      padding: 8px;
      transition: opacity 0.25s ease, transform 0.25s ease;
      opacity: 0.72;
    }
    .corner-flip-zone:hover {
      opacity: 1;
      transform: scale(1.06);
    }
    .corner-flip-zone.disabled-zone {
      opacity: 0;
      pointer-events: none;
    }
    .corner-flip-right {
      right: 12px;
      justify-content: flex-end;
      background: radial-gradient(circle at bottom right, rgba(25, 15, 8, 0.42) 0%, transparent 70%);
      border-top-left-radius: 28px;
    }
    .corner-flip-left {
      left: 12px;
      justify-content: flex-start;
      background: radial-gradient(circle at bottom left, rgba(25, 15, 8, 0.42) 0%, transparent 70%);
      border-top-right-radius: 28px;
    }

    /* Lock live header & cloned header to identical 68px height and place #spreadCanvas & .leaf-items-layer at exact top: 68px */
    .spread-header-bar {
      position: absolute;
      top: 0;
      left: 0;
      width: 836px;
      height: 68px;
      padding-top: 22px;
      padding-left: 38px;
      padding-right: 38px;
      z-index: 20;
    }
    #spreadCanvas {
      position: absolute;
      top: 68px;
      left: 0;
      width: 836px;
      height: 505px;
      z-index: 10;
    }
    .leaf-header-layer {
      position: absolute;
      top: 0;
      left: 0;
      width: 836px;
      height: 68px;
      padding-top: 22px;
      padding-left: 38px;
      padding-right: 38px;
      pointer-events: none;
      z-index: 20;
    }
    .leaf-items-layer {
      position: absolute;
      top: 68px;
      left: 0;
      width: 414px;
      height: 505px;
      pointer-events: none;
      overflow: visible;
      z-index: 10;
    }

    /* Custom Scrollbar for Guestbook Modal */
    ::-webkit-scrollbar {
      width: 6px;
      height: 6px;
    }
    ::-webkit-scrollbar-track {
      background: rgba(255, 255, 255, 0.04);
    }
    ::-webkit-scrollbar-thumb {
      background: rgba(212, 163, 89, 0.35);
      border-radius: 9999px;
    }

    /* Let photo controls above the canvas receive clicks over the header area. */
    #spreadCanvas {
      z-index: 21;
    }

    /* Keep toolbar labels centered without squeezing Chinese text into columns. */
    .scrapbook-toolbar {
      max-width: 1280px;
      flex-wrap: wrap;
      justify-content: center;
      gap: 8px;
    }
    .scrapbook-toolbar > div {
      flex-shrink: 0;
      max-width: 100%;
    }
    .scrapbook-controls {
      overflow-x: auto;
    }
    .scrapbook-toolbar button,
    .item-action-bar button,
    footer button {
      flex-shrink: 0;
      white-space: nowrap;
      text-align: center;
    }
    .scrapbook-controls button {
      align-items: center;
      justify-content: center;
      min-height: 30px;
      padding: 4px 10px;
      font-size: 12px;
      line-height: 20px;
    }
    #openAnniversaryModalBtn,
    #openAnniversaryModalBtn span {
      white-space: nowrap;
    }
    #guestbookBadge {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 18px;
      height: 18px;
      padding: 0 5px;
      line-height: 1;
    }
    .item-action-bar {
      top: -34px;
    }
    .item-action-bar button {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 26px;
      padding: 4px 6px;
      line-height: 16px;
    }
    footer > div {
      max-width: 100%;
      overflow-x: auto;
      flex-shrink: 0;
      white-space: nowrap;
    }
    footer > div > * {
      flex-shrink: 0;
    }
  