:root {
  --bg: #f7f2ed;
  --page-bg: linear-gradient(135deg, #f8f1e5 0%, #fffaf0 100%);
  --accent: #6f2946;
  --accent-soft: #f3e6df;
  --text: #2f2335;
  --muted: #7b6872;
  --border: rgba(113, 73, 88, 0.18);
  --ink: #37273f;
  --rose: #b66578;
  --sage: #6e8073;
  --gold: #b78b43;
  --leather: #402336;
  --paper-edge: #d7c3a7;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; min-height: 100%; }
body.scrapbook-body {
  font-family: var(--font, Montserrat, "Segoe UI", Tahoma, sans-serif);
  color: var(--text);
  background:
    radial-gradient(circle at 12% 10%, rgba(183, 139, 67, 0.18), transparent 24%),
    radial-gradient(circle at 86% 18%, rgba(110, 128, 115, 0.2), transparent 28%),
    linear-gradient(135deg, #2b1a2f 0%, #6f2946 42%, #f2e7d7 42%, #faf6ed 100%);
  background-attachment: fixed;
}

.journal-header {
  padding: 20px 28px 0;
  display: flex;
  justify-content: center;
}
.journal-header .brand {
  width: 100%;
  max-width: 1400px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(48, 31, 54, 0.72);
  box-shadow: 0 18px 60px rgba(42, 24, 46, 0.18);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.journal-header .brand-logo {
  height: 44px;
  opacity: 0.98;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.18));
  padding: 4px;
  border-radius: 14px;
  background: rgba(255, 250, 241, 0.86);
}
.journal-header .mini-nav a {
  margin-left: 18px;
  color: rgba(255, 250, 241, 0.82);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.94rem;
}
.journal-header .mini-nav a.active {
  color: #fff7e8;
  border-bottom: 1px solid rgba(255, 247, 232, 0.72);
}

.journal-header .mini-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
}

/* Keep site chrome brand readable on the journal page */
body.scrapbook-body .site-header .brand {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(253, 235, 241, 0.98) 55%, rgba(237, 229, 255, 0.95) 100%);
  border: 1.5px solid rgba(180, 140, 190, 0.45);
  box-shadow:
    0 4px 14px rgba(65, 43, 71, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  width: auto;
  max-width: none;
  padding: 0.28rem 0.75rem 0.28rem 0.35rem;
}

body.scrapbook-body .site-header .brand-name {
  color: #d63384;
}

body.scrapbook-body .site-header .brand-tag {
  color: #6b5b95;
}

body.scrapbook-body .site-header .brand-symbol {
  filter: none;
  background: transparent;
  padding: 0;
  height: 46px;
}

.scrapbook-shell {
  max-width: 1400px;
  margin: 0 auto;
  padding: 30px 28px 46px;
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(320px, 0.95fr);
  gap: 28px;
}

.canvas-panel, .toolbox-panel {
  background:
    linear-gradient(145deg, rgba(255, 252, 244, 0.96), rgba(247, 239, 227, 0.9));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 30px;
  box-shadow:
    0 32px 90px rgba(45, 27, 50, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.canvas-panel {
  padding: 22px;
  position: relative;
  overflow: hidden;
}

.canvas-panel::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(183, 139, 67, 0.18);
  border-radius: 24px;
  pointer-events: none;
}
.canvas-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.eyebrow {
  margin: 0 0 4px;
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
}
.canvas-toolbar h1, .hero-card h2 {
  margin: 0;
  font-family: 'EB Garamond', serif;
  font-size: clamp(1.55rem, 2vw, 2.25rem);
  color: var(--ink);
  letter-spacing: 0;
  line-height: 1.05;
}
.toolbar-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.page-turn-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 0 16px;
}

.page-turn-btn {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(111, 41, 70, 0.16);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.9), transparent 32%),
    linear-gradient(145deg, #fffaf1, #eadac6);
  color: var(--accent);
  font-size: 1.65rem;
  line-height: 1;
  font-weight: 700;
  box-shadow: 0 14px 28px rgba(64, 35, 54, 0.12);
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, opacity 0.22s ease;
}

.page-turn-btn:hover:not(:disabled) {
  transform: translateY(-2px) rotate(-2deg);
  box-shadow: 0 20px 34px rgba(64, 35, 54, 0.18);
}

.page-turn-btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.page-indicator {
  min-width: 128px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(183, 139, 67, 0.24);
  background: linear-gradient(180deg, rgba(255, 250, 241, 0.94), rgba(246, 234, 216, 0.92));
  color: #6d4453;
  font-family: 'EB Garamond', serif;
  font-size: 1.08rem;
  font-weight: 700;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 12px 24px rgba(64, 35, 54, 0.08);
}
.tool-btn, .chip-btn, .theme-pill, .prompt-pill, .upload-pill, .item-control {
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.tool-btn {
  min-height: 42px;
  padding: 10px 16px;
  background: linear-gradient(180deg, #fffaf1, #f4eadb);
  color: var(--accent);
  border: 1px solid rgba(111, 41, 70, 0.16);
  box-shadow: 0 12px 24px rgba(64, 35, 54, 0.08);
  font-weight: 700;
}
.tool-btn:hover, .chip-btn:hover, .theme-pill:hover, .prompt-pill:hover, .upload-pill:hover, .item-control:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 18px 32px rgba(95, 71, 112, 0.14);
}
.tool-btn:active, .chip-btn:active, .theme-pill:active, .prompt-pill:active, .upload-pill:active, .item-control:active {
  transform: translateY(0) scale(0.98);
}
.toolbox-card, .canvas-paper, .tool-btn, .chip-btn, .theme-pill, .prompt-pill, .upload-pill {
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}
.toolbox-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 42px rgba(95, 71, 112, 0.14);
}
.image-card {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 20px 42px rgba(45, 28, 90, 0.18);
}
.sticker-badge.bounce {
  animation: stickerBounce 0.8s ease;
}
.canvas-paper.save-closing {
  transform-origin: top center;
  animation: pageClose 0.65s cubic-bezier(0.4, 0.0, 0.2, 1) forwards;
  box-shadow: 0 28px 54px rgba(95,71,112,0.16);
}
.sparkle, .petal {
  position: absolute;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  pointer-events: none;
  opacity: 0;
  will-change: transform, opacity;
}
.sparkle {
  color: #ffe8a2;
  font-size: 1.2rem;
  filter: drop-shadow(0 0 10px rgba(255,222,150,0.85));
  animation: sparkleBurst 1s ease-out forwards;
}
.petal {
  font-size: 1.1rem;
  animation: petalFall 1.4s ease-in forwards;
}
.fly-book {
  position: fixed;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 16px;
  background: linear-gradient(135deg, #fff5f7, #f8efff);
  border: 1px solid rgba(155,130,175,0.25);
  box-shadow: 0 18px 40px rgba(95,71,112,0.15);
  font-size: 1.2rem;
  z-index: 9999;
  pointer-events: none;
  animation: flyToShelf 1s ease forwards;
}
@keyframes stickerBounce {
  0% { transform: translateY(0) scale(1); }
  35% { transform: translateY(-14px) scale(1.06); }
  70% { transform: translateY(0) scale(1); }
  100% { transform: translateY(0) scale(1); }
}
@keyframes pageClose {
  0% { transform: scale(1) rotateX(0deg); opacity: 1; }
  40% { transform: scale(0.98) rotateX(6deg); opacity: 0.9; }
  100% { transform: scale(1) rotateX(0deg); opacity: 1; }
}
@keyframes sparkleBurst {
  0% { opacity: 0; transform: translateY(0) scale(0.5); }
  30% { opacity: 1; transform: translateY(-12px) scale(1.1); }
  100% { opacity: 0; transform: translateY(-26px) scale(0.8); }
}
@keyframes petalFall {
  0% { opacity: 0; transform: translateY(0) rotate(0deg); }
  20% { opacity: 1; }
  100% { opacity: 1; transform: translateY(140px) rotate(62deg); }
}
@keyframes flyToShelf {
  0% { opacity: 1; transform: translate(0,0) scale(1); }
  100% { opacity: 0; transform: translate(var(--fly-x), var(--fly-y)) scale(0.4); }
}

.canvas-surface.turning-forward .canvas-paper {
  animation: turnPageForward 0.62s cubic-bezier(0.45, 0, 0.2, 1);
}

.canvas-surface.turning-back .canvas-paper {
  animation: turnPageBack 0.62s cubic-bezier(0.45, 0, 0.2, 1);
}

.canvas-surface.turning-forward .canvas-paper::before,
.canvas-surface.turning-back .canvas-paper::before {
  animation: pageShadowSweep 0.62s ease;
}

@keyframes turnPageForward {
  0% { transform: rotateY(0deg) translateX(0); filter: brightness(1); }
  44% { transform: rotateY(-16deg) translateX(-5px); filter: brightness(0.95); box-shadow: 20px 16px 34px rgba(64, 35, 54, 0.22); }
  100% { transform: rotateY(0deg) translateX(0); filter: brightness(1); }
}

@keyframes turnPageBack {
  0% { transform: rotateY(0deg) translateX(0); filter: brightness(1); }
  44% { transform: rotateY(13deg) translateX(4px); filter: brightness(0.97); box-shadow: -14px 16px 34px rgba(64, 35, 54, 0.18); }
  100% { transform: rotateY(0deg) translateX(0); filter: brightness(1); }
}

@keyframes pageShadowSweep {
  0%, 100% { opacity: 1; }
  48% { opacity: 0.62; }
}
.tool-btn.primary {
  background: linear-gradient(135deg, #6f2946 0%, #b66578 55%, #b78b43 130%);
  color: white;
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 16px 32px rgba(111, 41, 70, 0.24);
}
.tool-btn.danger {
  color: #9d3851;
}
.tool-btn:disabled { opacity: 0.55; cursor: not-allowed; box-shadow: none; }

.canvas-surface {
  position: relative;
  padding: 24px 28px 30px 42px;
  border-radius: 28px;
  background:
    linear-gradient(90deg, rgba(64, 35, 54, 0.95) 0 32px, rgba(92, 54, 70, 0.92) 32px 54px, rgba(244, 233, 216, 0.88) 54px),
    linear-gradient(135deg, rgba(64, 35, 54, 0.18), rgba(255, 255, 255, 0.22));
  box-shadow:
    inset 8px 0 18px rgba(255, 255, 255, 0.08),
    inset -1px 0 0 rgba(255, 255, 255, 0.62),
    0 28px 70px rgba(42, 24, 46, 0.24);
  perspective: 1200px;
}

.canvas-surface::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 34px;
  bottom: 34px;
  width: 12px;
  border-radius: 999px;
  background:
    repeating-linear-gradient(180deg, rgba(240, 202, 129, 0.9) 0 18px, rgba(96, 56, 72, 0.8) 18px 30px);
  box-shadow: 0 0 0 1px rgba(255, 247, 232, 0.12);
}

.canvas-surface::after {
  content: "";
  position: absolute;
  top: 20px;
  right: 48px;
  width: 34px;
  height: 118px;
  border-radius: 0 0 16px 16px;
  background: linear-gradient(180deg, #9d3851, #6f2946);
  box-shadow: 0 12px 20px rgba(64, 35, 54, 0.18);
  z-index: 1;
}

.canvas-paper {
  position: relative;
  min-height: 700px;
  border-radius: 18px 26px 26px 18px;
  overflow: hidden;
  border: 1px solid rgba(183, 139, 67, 0.28);
  background: var(--page-bg);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    inset 18px 0 28px rgba(132, 94, 62, 0.08),
    0 18px 34px rgba(64, 35, 54, 0.18),
    12px 12px 0 rgba(222, 202, 171, 0.64);
  z-index: 2;
  transform-origin: left center;
  backface-visibility: hidden;
}
.canvas-paper::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(111, 41, 70, 0.1) 0 1px, transparent 1px),
    radial-gradient(rgba(126, 91, 60, 0.12) 0.6px, transparent 0.9px),
    repeating-linear-gradient(0deg, rgba(0,0,0,0) 0, rgba(0,0,0,0) 30px, rgba(126, 91, 60, 0.08) 31px);
  background-position: 78px 0, 0 0, 0 0;
  background-size: 1px 100%, 24px 24px, 100% 32px;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.canvas-paper::after {
  content: "Ameera Wellness";
  position: absolute;
  right: 30px;
  bottom: 22px;
  z-index: 2;
  font-family: 'Mr Dafoe', cursive;
  color: rgba(111, 41, 70, 0.22);
  font-size: 1.9rem;
  pointer-events: none;
}
.weather-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.78;
  transition: background 0.4s ease, opacity 0.4s ease;
}
.weather-overlay.weather-sunny {
  background: radial-gradient(circle at 12% 12%, rgba(255, 240, 190, 0.26), transparent 30%), radial-gradient(circle at 82% 18%, rgba(255, 245, 210, 0.18), transparent 28%);
}
.weather-overlay.weather-sunny::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.72) 1.4px, transparent 1.9px), radial-gradient(circle, rgba(255,255,255,0.58) 1px, transparent 1.4px);
  background-size: 76px 76px, 112px 112px;
  opacity: 0.28;
  animation: sparkle 14s linear infinite;
}
.weather-overlay.weather-rainy {
  background: radial-gradient(circle at 50% 0%, rgba(255,255,255,0.14), transparent 26%), linear-gradient(to bottom, rgba(255,255,255,0.05), rgba(255,255,255,0.08));
}
.weather-overlay.weather-rainy::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(0deg, transparent 0 20px, rgba(255,255,255,0.17) 20px 22px);
  opacity: 0.32;
  animation: rain 2s linear infinite;
}
.weather-overlay.weather-stormy {
  background: radial-gradient(circle at 28% 16%, rgba(255,255,255,0.08), transparent 22%), linear-gradient(to bottom, rgba(255,255,255,0.04), rgba(18,22,44,0.18));
}
.weather-overlay.weather-stormy::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(24, 35, 54, 0.08);
  animation: lightning 11s ease-in-out infinite;
}
.weather-overlay.weather-rainbow {
  background: linear-gradient(120deg, rgba(255, 223, 238, 0.16), rgba(209, 236, 255, 0.16), rgba(255, 244, 205, 0.14), rgba(210, 247, 231, 0.14));
}
.weather-overlay.weather-cloudy {
  background: radial-gradient(circle at 22% 24%, rgba(255,255,255,0.62), transparent 22%), radial-gradient(circle at 72% 16%, rgba(255,255,255,0.62), transparent 26%), linear-gradient(to bottom, rgba(255,255,255,0.08), transparent 52%);
  opacity: 0.88;
}
.weather-overlay.weather-cloudy::before,
.weather-overlay.weather-cloudy::after {
  content: '';
  position: absolute;
  width: 180px;
  height: 70px;
  background: rgba(255,255,255,0.72);
  border-radius: 100px;
  top: 12%;
  left: 10%;
  filter: blur(2px);
  animation: floatClouds 20s ease-in-out infinite;
}
.weather-overlay.weather-cloudy::after {
  width: 220px;
  height: 86px;
  top: 34%;
  left: 54%;
  animation-duration: 24s;
}
.weather-overlay.weather-night {
  background: radial-gradient(circle at 22% 20%, rgba(255,255,255,0.08), transparent 15%), radial-gradient(circle at 78% 16%, rgba(255,255,255,0.1), transparent 13%), linear-gradient(to bottom, rgba(20,30,55,0.12), rgba(14,20,40,0.28));
}
.weather-overlay.weather-night::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.55) 1px, transparent 1.3px), radial-gradient(circle, rgba(255,255,255,0.42) 0.8px, transparent 1.2px);
  background-size: 62px 62px, 88px 88px;
  opacity: 0.26;
  animation: twinkle 12s ease-in-out infinite;
}
.weather-overlay.weather-night::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 18%, rgba(255,255,255,0.06), transparent 14%);
}
@keyframes sparkle {
  0%, 100% { transform: translateY(0); opacity: 0.24; }
  50% { transform: translateY(1px); opacity: 0.34; }
}
@keyframes rain {
  0% { background-position: 0 0; }
  100% { background-position: 0 42px; }
}
@keyframes lightning {
  0%, 96%, 100% { opacity: 0.02; }
  97%, 98% { opacity: 0.18; }
}
@keyframes floatClouds {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-5px); }
}
@keyframes twinkle {
  0%, 100% { opacity: 0.28; }
  50% { opacity: 0.5; }
}
.canvas-note {
  position: absolute;
  top: 18px;
  left: 94px;
  z-index: 4;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255, 250, 241, 0.82);
  color: #7a5160;
  font-size: 0.8rem;
  border: 1px solid rgba(183, 139, 67, 0.18);
  box-shadow: 0 10px 22px rgba(64, 35, 54, 0.08);
  pointer-events: none;
}
.canvas-items {
  position: absolute;
  inset: 0;
  z-index: 3;
}
.mood-companion {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 4;
  pointer-events: none;
}
.mood-companion.hidden { display: none; }
.companion-card {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 24px;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(155, 130, 175, 0.16);
  box-shadow: 0 10px 24px rgba(95, 71, 112, 0.12);
}
.companion-figure {
  width: 80px;
  height: 80px;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  border-radius: 50%;
}
.companion-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.companion-text {
  font-size: 0.9rem;
  color: #5f516d;
  line-height: 1.4;
  max-width: 180px;
}
.companion-figure.blink { animation: blink 1s ease-in-out both; }
.companion-figure.wave { animation: wave 1.2s ease-in-out both; }
.companion-figure.bounce { animation: bounce 1.2s ease-in-out both; }
@keyframes blink {
  0%, 30%, 100% { transform: scaleY(1); }
  40%, 45% { transform: scaleY(0.24); }
}
@keyframes wave {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(4px) rotate(6deg); }
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.scrap-item {
  position: absolute;
  min-width: 72px;
  min-height: 72px;
  cursor: grab;
  user-select: none;
  border-radius: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.scrap-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(95,71,112,0.08);
}
.scrap-item .text-editor,
.scrap-item .polaroid-caption {
  user-select: text;
  cursor: text;
}
.scrap-item.selected {
  outline: 2px dashed rgba(107, 91, 149, 0.65);
  outline-offset: 6px;
}
.scrap-item.dragging { cursor: grabbing; }
.polaroid {
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.polaroid:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 18px 38px rgba(95,71,112,0.12);
}
.text-editor {
  width: 100%;
  height: 100%;
  border: none;
  outline: none;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 250, 241, 0.58);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.8),
    0 14px 28px rgba(64, 35, 54, 0.08);
  line-height: 1.35;
  white-space: pre-wrap;
}
.text-editor:focus {
  background: rgba(255, 253, 247, 0.94);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.95),
    0 0 0 1px rgba(183, 139, 67, 0.28),
    0 16px 32px rgba(64, 35, 54, 0.1);
}
.image-card {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(79, 66, 96, 0.16);
}
.sticker-badge {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  border-radius: 20px;
  background: rgba(255, 250, 241, 0.82);
  box-shadow: 0 12px 28px rgba(64, 35, 54, 0.12);
}
.item-controls {
  position: absolute;
  top: -36px;
  left: 0;
  display: flex;
  gap: 6px;
}
.item-control {
  width: 28px;
  height: 28px;
  padding: 0;
  background: #fff;
  color: #6b5b95;
  box-shadow: 0 8px 16px rgba(95, 71, 112, 0.14);
}
.item-handle {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid #fff;
  box-shadow: 0 6px 16px rgba(95, 71, 112, 0.2);
}
.item-handle.resize { right: -7px; bottom: -7px; cursor: nwse-resize; }
.item-handle.rotate { right: -7px; top: -7px; cursor: grab; }

.toolbox-panel {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background:
    linear-gradient(145deg, rgba(55, 39, 63, 0.94), rgba(111, 41, 70, 0.88)),
    linear-gradient(180deg, rgba(255,255,255,0.1), transparent);
  border-color: rgba(255, 247, 232, 0.22);
}
.toolbox-card {
  padding: 16px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 250, 241, 0.96), rgba(246, 238, 226, 0.94));
  border: 1px solid rgba(255, 255, 255, 0.62);
  box-shadow:
    0 18px 34px rgba(42, 24, 46, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}
.spaced-block {
  margin-top: 30px;
}
.progress-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.canvas-growth-card {
  margin-top: 22px;
}
.jar-card,
.garden-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 253, 247, 0.9);
  border: 1px solid rgba(183, 139, 67, 0.16);
}
.jar-shell {
  position: relative;
  width: 86px;
  height: 122px;
  border: 2px solid rgba(183, 139, 67, 0.34);
  border-bottom-left-radius: 24px;
  border-bottom-right-radius: 24px;
  background: linear-gradient(180deg, #fffaf1 0%, #f2e7d7 100%);
  overflow: hidden;
}
.jar-fill {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 10%;
  background: radial-gradient(circle at top, rgba(255,249,219,0.98), rgba(183,139,67,0.78));
  box-shadow: inset 0 8px 18px rgba(255,255,255,0.75);
  transition: height 0.4s ease;
}
.jar-fill::before {
  content: '✨';
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.74;
  animation: floatStar 3.2s ease-in-out infinite;
}
.jar-stars {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.9rem;
  color: #7b5f9f;
  font-weight: 700;
}
.jar-base {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 18px;
  background: linear-gradient(180deg, rgba(184,140,219,0.35), rgba(120,80,160,0.22));
  border-top: 1px solid rgba(255,255,255,0.7);
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 18px;
}
.garden-emoji {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #eef5ef 0%, #fff3ed 100%);
  border-radius: 18px;
  box-shadow: 0 14px 30px rgba(95,71,112,0.1);
  font-size: 1.6rem;
}
.jar-burst {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) scale(0.8);
  color: #ffe7a5;
  font-size: 1.15rem;
  pointer-events: none;
  animation: jarBurst 0.8s ease-out forwards;
}
@keyframes floatStar {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.74; }
  50% { transform: translateX(-50%) translateY(4px); opacity: 0.9; }
}
@keyframes jarBurst {
  0% { opacity: 1; transform: translateX(-50%) translateY(0) scale(0.8); }
  100% { opacity: 0; transform: translateX(-50%) translateY(-28px) scale(1.1); }
}
.hero-card {
  background:
    linear-gradient(145deg, rgba(255, 250, 241, 0.98), rgba(239, 224, 210, 0.96));
  position: relative;
  overflow: hidden;
}
.hero-card::after {
  content: "";
  position: absolute;
  right: -34px;
  top: -42px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  border: 1px solid rgba(183, 139, 67, 0.28);
  box-shadow: inset 0 0 0 18px rgba(110, 128, 115, 0.08);
}
.hero-card p { margin: 8px 0 0; color: var(--muted); line-height: 1.6; }
.toolbox-card h3 {
  margin: 0 0 10px;
  font-family: 'EB Garamond', serif;
  font-size: 1.2rem;
  color: var(--ink);
}
.chip-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-grid.small { gap: 6px; }
.chip-btn, .theme-pill, .prompt-pill {
  padding: 8px 12px;
  background: rgba(255, 252, 246, 0.9);
  color: #59414d;
  border: 1px solid rgba(111, 41, 70, 0.14);
  font-size: 0.92rem;
}
.sticker-drawer {
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,250,241,0.98), rgba(247,239,227,0.98));
  border: 1px solid rgba(183,139,67,0.12);
}
.drawer-header {
  display:flex;justify-content:space-between;align-items:center;padding:10px 12px;border-bottom:1px solid rgba(183,139,67,0.12);
}
.drawer-body { max-height: 240px; overflow:auto; padding:10px; }
.drawer-category { margin-bottom:8px; }
.drawer-toggle { background:transparent;border:none;color:var(--accent); font-weight:600; cursor:pointer }
.sticker-btn { width:44px;height:44px;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;font-size:1.2rem;background:#fffaf1;border:1px solid rgba(111,41,70,0.1);cursor:pointer }
.sticker-ghost { position:fixed;pointer-events:none; z-index:99999; transform: translate(-50%,-50%); opacity:0.95; }

/* Polaroid frame */
.polaroid { background: #fffdf8; border-radius:10px; padding:9px; box-shadow: 0 14px 28px rgba(64,35,54,0.16); display:flex;flex-direction:column; align-items:center; border:1px solid rgba(183,139,67,0.12); }
.polaroid .image-card { border-radius:6px; box-shadow:none; }
.polaroid .polaroid-caption { margin-top:8px; font-size:0.9rem; color:var(--muted); min-height:20px; outline:none }
.washi-tape { position:absolute; width:48px;height:20px; background:linear-gradient(90deg, rgba(255,255,255,0.55), rgba(255,255,255,0.15)); transform:rotate(-8deg); border-radius:3px; box-shadow:0 4px 8px rgba(0,0,0,0.08); }
.washi-tl { left:6px; top:6px; }
.washi-tr { right:6px; top:6px; transform:rotate(8deg); }

.canvas-paper.paper-notebook { background: linear-gradient(180deg, #fffaf0 0%, #f6ead8 100%); background-image: linear-gradient(180deg, rgba(126,91,60,0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(111,41,70,0.1) 1px, transparent 1px), linear-gradient(135deg, #fffaf0 0%, #f6ead8 100%); background-position: 0 0, 78px 0, 0 0; background-size: 100% 32px, 1px 100%, 100% 100%; }
.canvas-paper.paper-grid { background: linear-gradient(180deg, #fbfaf8 0%, #f0ebe2 100%); background-image: linear-gradient(0deg, rgba(71, 84, 75, 0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(71, 84, 75, 0.08) 1px, transparent 1px); background-size: 32px 32px; }
.canvas-paper.paper-dots { background: linear-gradient(180deg, #fffaf2 0%, #f2eadf 100%); background-image: radial-gradient(circle, rgba(111, 41, 70, 0.14) 1px, transparent 1px); background-size: 24px 24px; }
.canvas-paper.paper-kraft { background: linear-gradient(135deg, #d3b08d 0%, #b58a5f 100%); color: #3b2a1d; }
.canvas-paper.paper-linen { background: linear-gradient(135deg, #fbf3e7 0%, #eee0cf 100%); background-image: linear-gradient(135deg, rgba(255,255,255,0.28) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.28) 50%, rgba(255,255,255,0.28) 75%, transparent 75%, transparent 100%); background-size: 48px 48px; }
.canvas-paper.paper-floral { background: linear-gradient(180deg, #fff7f1 0%, #f3e7dc 100%); background-image: radial-gradient(circle at 20% 20%, rgba(182, 101, 120, 0.16) 12px, transparent 13px), radial-gradient(circle at 80% 40%, rgba(110, 128, 115, 0.14) 10px, transparent 11px); }
.canvas-paper.paper-watercolor { background: radial-gradient(circle at 20% 15%, rgba(182,101,120,0.32) 0%, transparent 28%), radial-gradient(circle at 80% 30%, rgba(110,128,115,0.26) 0%, transparent 24%), linear-gradient(180deg, #fffdf8 0%, #f4ebe1 100%); }
.canvas-paper.paper-vintage { background: linear-gradient(180deg, #f6ead8 0%, #e5d4bc 100%); background-image: linear-gradient(90deg, rgba(255,255,255,0.16) 1px, transparent 1px), radial-gradient(circle, rgba(111,41,70,0.08) 1px, transparent 1px); background-size: 32px 32px, 100% 100%; }
.canvas-paper.paper-pastel { background: linear-gradient(135deg, #fff0f3 0%, #eff4ee 100%); }
.canvas-paper.paper-clouds { background: linear-gradient(180deg, #eef6f0 0%, #fbfaf4 100%); background-image: radial-gradient(circle at 25% 20%, rgba(255,255,255,0.85) 22px, transparent 24px), radial-gradient(circle at 60% 35%, rgba(255,255,255,0.9) 26px, transparent 28px); }

.text-editor.bold { font-weight: 700; }
.text-editor.italic { font-style: italic; }
.text-editor.highlight { background: rgba(255, 246, 143, 0.35); }

/* small tape patterns (visual only) */
.tape-floral { background-image: linear-gradient(90deg,#ffefef,#fff4f6); }
.tape-cloud { background-image: linear-gradient(90deg,#eef7ff,#f7fbff); }
.tape-stars { background-image: linear-gradient(90deg,#fff8f0,#fffef8); }
.tape-grid { background-image: linear-gradient(90deg,#f8fff8,#f6fff6); }
.tape-hearts { background-image: linear-gradient(90deg,#fff0f4,#ffe9f0); background-size: 8px 8px; background-image: radial-gradient(circle at 20% 20%, rgba(230, 111, 160, 0.52) 5%, transparent 5%), radial-gradient(circle at 80% 20%, rgba(235, 123, 168, 0.52) 5%, transparent 5%), linear-gradient(90deg,#fff0f4,#ffe9f0); }
.tape-vintage { background-image: linear-gradient(90deg,#f7e9d4,#f3d7b6); }
.tape-gingham { background-image: linear-gradient(90deg,#f9f2ec,#f7f0ea); background-size: 12px 12px; background-image: linear-gradient(90deg,#f7f0e8 50%, rgba(255,255,255,0.7) 50%), linear-gradient(0deg,#f7f0e8 50%, rgba(255,255,255,0.7) 50%); }
.tape-pastel { background-image: linear-gradient(90deg,#ffecf2,#f8f5ff); }

.theme-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
}
.theme-swatch {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.04);
}
.theme-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.text-style-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}
.text-style-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}
.text-style-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #5f516d;
  font-size: 0.92rem;
  width: 100%;
}
.text-style-label input[type='color'],
.text-style-label input[type='range'] {
  flex: 1 1 auto;
  border: none;
  background: #fff;
  padding: 6px 8px;
  border-radius: 12px;
}
#textSizeValue {
  min-width: 54px;
  color: #5f516d;
  font-size: 0.92rem;
}
.text-style-note {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}
.tape-pill {
  background: linear-gradient(135deg, #fff7f5, #f5f8ff);
  border-color: rgba(135, 110, 170, 0.18);
}
.tape-pill:hover {
  background: linear-gradient(135deg, #fdf2ff, #eef4ff);
}
.upload-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  background: linear-gradient(135deg, #fffaf1 0%, #eadac6 100%);
  color: var(--accent);
  font-weight: 600;
  border: 1px solid rgba(111, 41, 70, 0.12);
}
.upload-pill input { display: none; }
.prompt-list { display: flex; flex-direction: column; gap: 8px; }
.prompt-pill { width: 100%; text-align: left; }
.bookshelf {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 14px 0 10px;
}
.bookshelf-empty {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}
.notebook-card {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 8px;
  padding: 12px 10px;
  background:
    linear-gradient(90deg, rgba(111, 41, 70, 0.9) 0 9px, transparent 9px),
    linear-gradient(180deg, #fff9ef 0%, #efe2d0 100%);
  border: 1px solid rgba(183,139,67,0.18);
  border-radius: 18px;
  box-shadow: 0 12px 26px rgba(42,24,46,0.12);
  cursor: pointer;
  text-align: left;
  min-height: 120px;
  color: #4f4260;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}
.notebook-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 38px rgba(42,24,46,0.18);
}
.entry-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  position: relative;
  z-index: 2;
}
.entry-btn {
  flex: 1 1 calc(33.333% - 8px);
  min-width: 80px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: #fffaf1;
  color: #6f2946;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}
button.entry-btn:hover,
button.entry-btn:focus-visible,
.notebook-card button.entry-btn:hover,
.notebook-card button.entry-btn:focus-visible {
  transform: translateY(-1px) !important;
  box-shadow: 0 12px 24px rgba(95,71,112,0.14) !important;
  border-color: rgba(142, 113, 199, 0.35) !important;
  background: #f7f1ff !important;
  color: #4e3e7e !important;
}
.entry-btn.export {
  background: linear-gradient(135deg, #eef5ef 0%, #f8eadc 100%);
  color: #4c6b59;
}
.entry-btn.export:hover {
  background: linear-gradient(135deg, #f2e6ff 0%, #e8d9ff 100%);
}
.entry-btn.delete {
  color: #a73d59;
  background: #fff3f6;
  border-color: rgba(167, 61, 89, 0.16);
}
.entry-btn.delete:hover {
  background: #ffe6ee;
  border-color: rgba(167, 61, 89, 0.28);
}
.calendar-cell {
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.calendar-cell:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(95,71,112,0.08);
}
.notebook-spine {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, #b78b43, #d8bd7b);
}
.notebook-cover {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.86rem;
}
.notebook-cover strong {
  font-size: 0.95rem;
  line-height: 1.3;
}
.notebook-cover small {
  color: var(--muted);
  font-size: 0.8rem;
}
.notebook-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: rgba(183,139,67,0.16);
  font-size: 1.2rem;
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  padding: 8px 0;
}
.calendar-label {
  text-align: center;
  font-size: 0.73rem;
  font-weight: 700;
  color: #8a759d;
}
.calendar-cell {
  min-height: 82px;
  border-radius: 16px;
  background: rgba(255,250,241,0.96);
  border: 1px solid rgba(183,139,67,0.12);
  padding: 10px;
  text-align: left;
  color: #4f4260;
  display: grid;
  gap: 4px;
  cursor: pointer;
}
.calendar-cell:disabled {
  cursor: default;
  opacity: 0.65;
}
.calendar-cell.empty {
  background: transparent;
  border: none;
}
.calendar-cell.calendar-active {
  background: linear-gradient(180deg, #fff6ee 0%, #edf4ee 100%);
  border-color: rgba(183,139,67,0.22);
}
.cell-day {
  font-size: 0.85rem;
  font-weight: 700;
}
.cell-day.muted {
  color: rgba(79,66,96,0.35);
}
.calendar-icon {
  font-size: 1.25rem;
}
.calendar-note {
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body.dragging { cursor: grabbing; }

@media (max-width: 1100px) {
  .scrapbook-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .journal-header { padding: 16px 16px 0; }
  .scrapbook-shell { padding: 16px 16px 28px; }
  .journal-header .brand {
    border-radius: 24px;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
  }
  .journal-header .mini-nav {
    display: flex;
    flex-direction: row !important;
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 12px;
  }
  .journal-header   .journal-header .mini-nav a {
    margin-left: 0;
    font-size: 0.9rem;
  }
  .canvas-panel, .toolbox-panel { border-radius: 20px; }
  .canvas-panel { padding: 12px; }
  .canvas-surface {
    padding: 18px 14px 20px 30px;
    border-radius: 22px;
  }
  .canvas-surface::before {
    left: 12px;
    top: 26px;
    bottom: 26px;
    width: 9px;
  }
  .canvas-surface::after {
    top: 16px;
    right: 24px;
    width: 24px;
    height: 84px;
  }
  .canvas-paper {
    min-height: 560px;
    border-radius: 14px 20px 20px 14px;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.96),
      inset 12px 0 22px rgba(132, 94, 62, 0.08),
      0 14px 24px rgba(64, 35, 54, 0.16),
      6px 8px 0 rgba(222, 202, 171, 0.56);
  }
  .canvas-note {
    left: 22px;
    right: 18px;
    white-space: normal;
    line-height: 1.35;
    border-radius: 16px;
  }
  .toolbar-actions { width: 100%; }
  .tool-btn { flex: 1 1 auto; }
  .text-style-grid { grid-template-columns: 1fr; }
}

/* —— Phone polish: Journal page —— */
@media (max-width: 699px) {
  body.scrapbook-body {
    overflow-x: clip;
    background-attachment: scroll;
    background:
      radial-gradient(circle at 12% 8%, rgba(183, 139, 67, 0.16), transparent 28%),
      radial-gradient(circle at 88% 14%, rgba(110, 128, 115, 0.16), transparent 30%),
      linear-gradient(165deg, #2b1a2f 0%, #6f2946 28%, #f2e7d7 28%, #faf6ed 100%);
  }

  .legacy-content:has(.scrapbook-shell) {
    width: 100%;
    max-width: 100%;
    margin: 0.5rem 0 1.25rem;
    padding: 0;
  }

  .scrapbook-shell {
    width: 100%;
    max-width: 100%;
    padding: 10px 10px calc(20px + env(safe-area-inset-bottom, 0px));
    gap: 14px;
    grid-template-columns: 1fr;
  }

  .canvas-panel,
  .toolbox-panel {
    border-radius: 18px;
    max-width: 100%;
  }

  .canvas-panel {
    padding: 12px 10px 14px;
  }

  .toolbox-panel {
    padding: 12px;
    gap: 12px;
  }

  .canvas-toolbar {
    gap: 10px;
    margin-bottom: 12px;
  }

  .canvas-toolbar h1 {
    font-size: clamp(1.25rem, 5.5vw, 1.55rem);
    line-height: 1.15;
  }

  .toolbar-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }

  .toolbar-actions .tool-btn {
    flex: unset;
    width: 100%;
    min-height: 40px;
    padding: 8px 6px;
    font-size: 0.82rem;
  }

  .page-turn-bar {
    gap: 10px;
    margin-bottom: 12px;
  }

  .page-turn-btn {
    width: 42px;
    height: 42px;
  }

  .page-indicator {
    min-width: 0;
    flex: 1;
    padding: 8px 12px;
    font-size: 0.95rem;
  }

  .canvas-surface {
    padding: 14px 10px 16px 22px;
    border-radius: 18px;
  }

  .canvas-surface::before {
    left: 8px;
    top: 18px;
    bottom: 18px;
    width: 7px;
  }

  .canvas-surface::after {
    display: none; /* bookmark ribbon crowds small screens */
  }

  .canvas-paper {
    min-height: min(62vh, 480px);
    border-radius: 12px 16px 16px 12px;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.96),
      inset 10px 0 18px rgba(132, 94, 62, 0.08),
      0 12px 22px rgba(64, 35, 54, 0.14),
      4px 6px 0 rgba(222, 202, 171, 0.5);
  }

  .canvas-paper::after {
    right: 14px;
    bottom: 12px;
    font-size: 1.25rem;
  }

  .canvas-note {
    top: 10px;
    left: 12px;
    right: 12px;
    padding: 8px 10px;
    font-size: 0.72rem;
    border-radius: 12px;
  }

  .mood-companion {
    right: 8px;
    bottom: 8px;
    left: 8px;
  }

  .companion-card {
    width: 100%;
    max-width: 100%;
    padding: 8px 10px;
    gap: 8px;
  }

  .companion-figure {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    font-size: 1.2rem;
  }

  .companion-text {
    max-width: none;
    font-size: 0.82rem;
  }

  .toolbox-card {
    padding: 14px;
    border-radius: 16px;
  }

  .hero-card h2 {
    font-size: 1.25rem;
  }

  .bookshelf {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .notebook-card {
    min-height: 100px;
    padding: 10px 8px;
  }

  .entry-btn {
    flex: 1 1 100%;
    min-width: 0;
  }

  .calendar-grid {
    gap: 4px;
  }

  .calendar-label {
    font-size: 0.62rem;
  }

  .calendar-cell {
    min-height: 54px;
    padding: 5px 4px;
    border-radius: 10px;
    gap: 2px;
  }

  .cell-day {
    font-size: 0.72rem;
  }

  .calendar-icon {
    font-size: 0.95rem;
  }

  .calendar-note {
    display: none; /* too cramped in 7-col phone grid */
  }

  .jar-card,
  .garden-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .drawer-body {
    max-height: 200px;
  }

  .chip-grid {
    gap: 6px;
  }

  .chip-btn,
  .theme-pill,
  .prompt-pill,
  .upload-pill {
    font-size: 0.86rem;
    padding: 8px 10px;
  }

  .item-controls {
    top: -32px;
    flex-wrap: wrap;
    max-width: 100%;
  }
}


