/* The studio shares the illustrated panels and responsive layout of the 2D page,
   with elevated frosted-glass cinema viewport controls for the refactored 3D stage. */
#view {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: grab;
}
#view:active { cursor: grabbing; }

.picture {
  background: radial-gradient(ellipse at 50% 42%, #1d302a, #0e1917 85%);
  box-shadow: 0 0 0 3px #2d201fb8, 0 18px 44px #180812b8;
}
.picture::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 50%, transparent 62%, rgba(8, 12, 14, 0.34) 100%);
}
.picture::after { z-index: 2; }
.scene-top, .mode-controls, .scene-bottom, .fs-dock { z-index: 3; }

.glass {
  background: rgba(16, 30, 27, 0.72);
  backdrop-filter: blur(12px) saturate(1.25);
  -webkit-backdrop-filter: blur(12px) saturate(1.25);
  border: 1px solid rgba(244, 215, 151, 0.38);
  box-shadow: 0 8px 24px rgba(7, 12, 12, 0.35), inset 0 1px 0 rgba(255, 245, 215, 0.14);
}
.glass button {
  transition: background-color 160ms ease, color 160ms ease, transform 120ms ease;
}
.glass button:active:not(:disabled) { transform: scale(0.96); }

.mode-controls { position: absolute; top: 14px; right: 14px; padding: 3px; gap: 2px; }
.mode-controls button { font-size: 12px; padding: 0 12px; font-weight: 600; letter-spacing: 0.02em; }
.mode-controls [aria-pressed="true"] {
  color: var(--evergreen);
  background: linear-gradient(180deg, #fff6e0, #efe0be);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
}
.mode-controls [aria-pressed="true"]:hover { background: var(--card); }

.zoom-controls #home { min-width: 50px; font-size: 12px; font-variant-numeric: tabular-nums; }
.remove-item {
  background: linear-gradient(180deg, #6d2633, #511d27);
  color: var(--card);
  border: 1px solid rgba(230, 187, 126, 0.75);
  border-radius: 8px;
  padding: 0 14px;
  min-height: 40px;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(18, 6, 10, 0.35);
}
.remove-item:hover:not(:disabled) { background: #7a2c3a; }

/* Clean balanced masthead layout so action pills never overlap the centered title */
@media (min-width: 781px) {
  .masthead {
    justify-content: space-between;
    align-items: flex-end;
    padding-bottom: 14px;
    gap: 16px;
  }
  .brand-copy {
    text-align: left;
  }
  .masthead-actions {
    position: static;
    gap: 8px;
    flex-wrap: nowrap;
  }
  .masthead-actions .save-state {
    margin-right: 4px;
    white-space: nowrap;
  }
}
@media (min-width: 781px) and (max-width: 1280px) {
  .masthead-actions .save-state { display: none; }
}

/* Masthead compact icon controls (Language & Ambience Audio) */
.world-tree-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid #f4cf86;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(242, 200, 118, 0.28), rgba(168, 114, 42, 0.24));
  color: #fff3d2;
  font-size: 12.5px;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 2px 12px rgba(235, 182, 86, 0.22);
}
.world-tree-pill:hover {
  background: linear-gradient(180deg, rgba(247, 210, 134, 0.42), rgba(190, 132, 52, 0.36));
  border-color: #ffe5a8;
}
.icon-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 44px;
  padding: 0 10px;
  border: 1px solid #e6bb7e99;
  border-radius: 8px;
  background: #35151b80;
  color: var(--card);
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}
.icon-pill:hover:not(:disabled) { background: #6c3039; }
.icon-pill[aria-pressed="true"] {
  background: #f5d89e38;
  border-color: #ffe2a8;
  color: #ffe7b3;
}
.icon-pill .icon-on { display: none; }
.icon-pill[aria-pressed="true"] .icon-on { display: block; }
.icon-pill[aria-pressed="true"] .icon-off { display: none; }

/* Fullscreen floating quick dock (bottom-left, visible only while in fullscreen!) */
.fs-dock {
  display: none;
  position: absolute;
  bottom: calc(14px + env(safe-area-inset-bottom));
  left: calc(14px + env(safe-area-inset-left));
  padding: 2px;
  gap: 2px;
}
body.is-fullscreen .fs-dock { display: flex; }
.fs-dock button[aria-pressed="true"],
.fs-dock button[data-light-state="warm"],
.fs-dock button[data-light-state="colour"] {
  background: rgba(255, 232, 178, 0.22);
  color: #ffe7ab;
}
.fs-dock .icon-on { display: none; }
.fs-dock button[aria-pressed="true"] .icon-on { display: block; }
.fs-dock button[aria-pressed="true"] .icon-off { display: none; }
.fs-dock button.has-material::after {
  content: "";
  position: absolute;
  top: 6px;
  right: 6px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffe08a;
  box-shadow: 0 0 8px #ffcf66;
}
.fs-dock button { position: relative; }

/* Fullscreen floating ornament popover (zoom-in panel on PC & compact sheet on mobile!) */
.fs-close-palette {
  display: none;
  border: 0;
  background: transparent;
  color: var(--evergreen);
  font-size: 22px;
  line-height: 1;
  min-width: 34px;
  min-height: 34px;
  border-radius: 6px;
  margin-left: auto;
}
.fs-close-palette:hover { background: rgba(81, 29, 39, 0.1); }

@keyframes fs-popover-in {
  from { opacity: 0; transform: scale(0.92) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

body.is-fullscreen.fs-palette-open .workshop .materials {
  position: fixed;
  z-index: 120;
  left: calc(14px + env(safe-area-inset-left));
  bottom: calc(66px + env(safe-area-inset-bottom));
  right: auto;
  top: auto;
  width: min(356px, calc(100vw - 28px - env(safe-area-inset-left) - env(safe-area-inset-right)));
  max-height: min(62dvh, 470px);
  display: flex;
  flex-direction: column;
  padding: 12px 13px;
  background: rgba(248, 236, 211, 0.94);
  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  border: 1px solid #e2b872;
  border-radius: 14px;
  box-shadow: 0 22px 54px rgba(8, 6, 10, 0.56), inset 0 0 0 2px rgba(154, 101, 51, 0.14);
  transform-origin: bottom left;
  animation: fs-popover-in 190ms cubic-bezier(0.22, 1, 0.36, 1);
}
body.is-fullscreen.fs-palette-open .materials .tray-toggle { display: none; }
body.is-fullscreen.fs-palette-open .materials .fs-close-palette { display: inline-grid; place-items: center; }
body.is-fullscreen.fs-palette-open .materials .materials-heading {
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
body.is-fullscreen.fs-palette-open .materials .materials-heading h2 { margin: 0; font-size: 17px; }
body.is-fullscreen.fs-palette-open .materials .material-count { margin-left: 0; }
body.is-fullscreen.fs-palette-open .materials .categories {
  display: flex !important;
  flex-shrink: 0;
  margin-bottom: 8px;
}
body.is-fullscreen.fs-palette-open .materials .item-options {
  display: grid !important;
  grid-auto-flow: row !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 6px;
  overflow-y: auto;
  overflow-x: hidden;
  max-height: none;
  flex: 1 1 auto;
  min-height: 0;
  margin: -2px;
  padding: 2px;
}
body.is-fullscreen.fs-palette-open .materials .item-option {
  order: 0 !important;
  min-height: 76px;
}

@media (max-width: 780px) {
  body.is-fullscreen.fs-palette-open .workshop .materials {
    left: calc(10px + env(safe-area-inset-left));
    right: calc(10px + env(safe-area-inset-right));
    bottom: calc(62px + env(safe-area-inset-bottom));
    width: auto;
    max-height: min(48dvh, 360px);
    transform-origin: bottom center;
  }
  body.is-fullscreen.fs-palette-open .materials .item-options {
    grid-template-columns: repeat(auto-fill, minmax(66px, 1fr)) !important;
  }
}
@media (max-height: 480px) {
  body.is-fullscreen.fs-palette-open .workshop .materials {
    width: min(330px, 56vw);
    right: auto;
    max-height: 62dvh;
  }
}
@media (prefers-reduced-motion: reduce) {
  body.is-fullscreen.fs-palette-open .workshop .materials { animation: none; }
}

/* Photo & Holiday Card preview dialog enhancements */
.photo-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
}
.card-options {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.card-greeting-field {
  flex: 1 1 220px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}
.card-greeting-field input {
  flex: 1 1 auto;
  min-width: 0;
  font: inherit;
  color: var(--evergreen);
  background: #fffaf0;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 10px;
}

.categories { overflow-x: auto; }
@media (min-width: 781px) and (max-width: 1050px) {
  .categories { flex-wrap: wrap; justify-content: flex-start; }
}
@media (max-width: 780px) {
  .masthead-actions { flex-wrap: wrap; justify-content: center; gap: 6px; }
  .masthead-actions .help-button,
  .masthead-actions .icon-pill,
  .masthead-actions .world-tree-pill,
  .masthead-actions .primary { min-height: 36px; padding-inline: 9px; font-size: 12px; }
}
@media (max-width: 470px) {
  .scene-top { top: 8px; left: 8px; gap: 4px; }
  .scene-top .glass button { min-width: 32px; min-height: 34px; padding: 0 4px; }
  .mode-controls { top: 8px; right: 8px; }
  .mode-controls button { font-size: 11px; min-height: 34px; padding: 0 7px; }
  .fs-dock {
    bottom: calc(10px + env(safe-area-inset-bottom));
    left: calc(10px + env(safe-area-inset-left));
  }
  .fs-dock button { min-width: 34px; min-height: 36px; }
  .trees { grid-template-columns: 1fr; }
  .starts { grid-column: 1; grid-row: 3; display: flex; align-items: center; gap: 8px; margin: 5px 0; }
  .starts legend { float: left; margin: 0; }
  .trees .backdrops { grid-template-columns: 1fr; }
  .backdrop-option { grid-template-columns: 1fr; }
  .backdrop-option img { width: 100%; height: 36px; object-fit: cover; }
}

/* ============================================================================
 * Social 3D Tree HUD, Viral Modals, Locked Ornaments & 5-Wave Spread UI
 * ============================================================================ */
.gift-pill {
  border-color: #f3c4df;
  background: linear-gradient(180deg, rgba(210, 114, 152, 0.34), rgba(128, 42, 76, 0.34));
  color: #fff2f8;
}
.gift-pill:hover {
  background: linear-gradient(180deg, rgba(226, 128, 166, 0.48), rgba(148, 52, 90, 0.44));
  border-color: #ffe0f0;
}
.invite-pill {
  border-color: #f4cf86 !important;
  background: linear-gradient(180deg, #982d3e, #6e1c2b) !important;
  color: #fff6e2 !important;
  font-weight: 650;
}
.invite-pill:hover:not(:disabled) {
  background: linear-gradient(180deg, #b03649, #7e2233) !important;
}

/* Locked ornament tile indicator */
.item-option.is-locked {
  position: relative;
  opacity: 0.78;
}
.item-option.is-locked::after {
  content: "🔒";
  position: absolute;
  top: 4px;
  right: 5px;
  font-size: 12px;
  line-height: 1;
  background: rgba(45, 16, 22, 0.82);
  border: 1px solid rgba(242, 204, 128, 0.65);
  border-radius: 999px;
  padding: 2px 4px;
}

/* Floating Social Tree HUD over 3D viewport */
.social-hud {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 58px;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  padding: 9px 12px;
  border-radius: 12px;
  color: #fff6e2;
}
.social-hud[hidden] { display: none; }
.social-hud-main { flex: 1 1 200px; min-width: 0; }
.social-hud-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}
.social-hud-title strong { font-size: 13.5px; color: #fff8ea; }
.social-pill-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(242, 204, 128, 0.22);
  border: 1px solid rgba(242, 204, 128, 0.55);
  color: #ffe9b5;
  font-size: 11.5px;
  font-weight: 600;
}
.social-pill-muted { font-size: 11.5px; color: rgba(255, 240, 214, 0.78); }
.social-progress-track {
  margin-top: 5px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}
.social-progress-track span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #e2a84b, #ffe49c);
  transition: width 320ms ease;
}
.social-hud-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

/* Social Dialogs (Vintage parchment + wine-gold aesthetic matching the studio) */
.social-dialog {
  width: min(540px, calc(100vw - 24px));
  max-height: min(88dvh, 760px);
  overflow-y: auto;
  padding: 18px 20px 20px;
  border: 1px solid #d9ab67;
  border-radius: 16px;
  background: linear-gradient(180deg, #fcf4e3, #f3e4c6);
  color: #1d2c25;
  box-shadow: 0 26px 68px rgba(10, 4, 8, 0.65);
}
.social-dialog::backdrop {
  background: rgba(14, 7, 11, 0.68);
  backdrop-filter: blur(5px);
}
.social-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.social-modal-head h2 {
  margin: 0;
  font-size: 18px;
  color: #4b1823;
}
.social-close {
  border: 0;
  background: rgba(75, 24, 35, 0.08);
  color: #4b1823;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  font-size: 20px;
  cursor: pointer;
}
.social-close:hover { background: rgba(75, 24, 35, 0.16); }
.social-sub {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.55;
  color: #4b3d35;
}
.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 9px;
  border: 1px solid rgba(154, 108, 52, 0.45);
  background: #fff9ec;
  color: #36221c;
  font-size: 12.5px;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  transition: transform 120ms ease, background-color 140ms ease;
}
.social-btn:hover:not(:disabled) { background: #fff1d4; }
.social-btn:active:not(:disabled) { transform: scale(0.97); }
.social-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.social-btn.primary {
  background: linear-gradient(180deg, #9b293b, #6e1828);
  border-color: #d9a861;
  color: #fff8ea;
}
.social-btn.primary:hover:not(:disabled) { background: linear-gradient(180deg, #b33347, #7f1e30); }
.social-btn.gold {
  background: linear-gradient(180deg, #f3ce82, #d49d46);
  border-color: #a97324;
  color: #2f180b;
}
.social-btn.gold:hover:not(:disabled) { background: linear-gradient(180deg, #f8da98, #dfaa52); }
.social-btn.ghost { background: transparent; border-color: rgba(75, 24, 35, 0.22); }
.social-btn.small { min-height: 30px; padding: 0 10px; font-size: 12px; }
.social-btn.big { min-height: 42px; padding: 0 16px; font-size: 13.5px; }
.social-btn.huge { width: 100%; min-height: 46px; font-size: 15px; margin-bottom: 10px; }

.social-hud .social-btn {
  min-height: 32px;
  padding: 0 10px;
  font-size: 12px;
  background: rgba(255, 248, 232, 0.14);
  border-color: rgba(242, 204, 128, 0.48);
  color: #fff6e2;
}
.social-hud .social-btn.primary {
  background: linear-gradient(180deg, #b53448, #7e1c2d);
}
.social-hud .social-btn.gold {
  background: linear-gradient(180deg, #f3ce82, #d49d46);
  color: #2c1509;
}

.social-form { display: flex; flex-direction: column; gap: 11px; }
.social-form label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; font-weight: 600; color: #3a2923; }
.social-form label em { font-style: normal; font-weight: 500; color: #7b6659; float: right; }
.social-form input[type="text"],
.social-form textarea,
.social-code-bar input,
.social-copy-box input,
.social-key-box input {
  width: 100%;
  box-sizing: border-box;
  font: inherit;
  padding: 9px 11px;
  border-radius: 9px;
  border: 1px solid #cca873;
  background: #fffdf7;
  color: #1f2e26;
}
.social-check {
  flex-direction: row !important;
  align-items: flex-start;
  gap: 8px !important;
  font-weight: 500 !important;
  cursor: pointer;
}
.social-check input { margin-top: 3px; width: 16px; height: 16px; accent-color: #8b2234; flex-shrink: 0; }
.social-check.viral-check {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(155, 41, 59, 0.08);
  border: 1px solid rgba(155, 41, 59, 0.26);
  color: #5a1824;
}
.social-privacy-row { display: flex; flex-wrap: wrap; gap: 10px 16px; }
.social-check.compact { font-size: 12px !important; color: #5b4b41 !important; }
.social-modal-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
}
.social-existing-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 12px;
  margin-bottom: 12px;
  border-radius: 10px;
  background: rgba(212, 157, 70, 0.16);
  border: 1px solid rgba(182, 128, 45, 0.42);
  font-size: 12.5px;
}
.social-inapp-warn {
  padding: 8px 10px;
  margin-bottom: 10px;
  border-radius: 9px;
  background: #fff3d2;
  border: 1px solid #d49d46;
  font-size: 12px;
  color: #5b3a08;
}
.social-share-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap: 8px;
  margin-bottom: 8px;
}
.social-more-apps {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0;
}
.social-chip {
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(145, 102, 52, 0.35);
  background: #fffaf0;
  color: #473227;
  font-size: 12px;
  cursor: pointer;
}
.social-chip:hover { background: #f8e9c9; }
.social-link-btn {
  display: block;
  margin: 4px auto 8px;
  border: 0;
  background: transparent;
  color: #7c2434;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}
.social-copy-box input { font-size: 12px; color: #5b4a3f; user-select: all; -webkit-user-select: all; }
.social-flash { margin: 8px 0 0; font-size: 12.5px; font-weight: 600; color: #1f5c3a; }
.social-error { margin: 4px 0 0; font-size: 12.5px; font-weight: 600; color: #a11e32; }

.social-reach {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 12px 0 6px;
}
.social-reach div {
  padding: 9px 6px;
  border-radius: 10px;
  background: rgba(255, 250, 238, 0.82);
  border: 1px solid rgba(190, 145, 82, 0.35);
  text-align: center;
}
.social-reach b { display: block; font-size: 18px; color: #4b1823; font-variant-numeric: tabular-nums; }
.social-reach span { font-size: 11px; color: #675548; }
.social-wave-line { margin: 6px 0 0; font-size: 12px; color: #5f4b3e; text-align: center; }

.social-gift-card {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, #4b1924, #1c3a32);
  border: 1px solid #e4bd77;
  color: #fff6e2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.social-gift-card strong { display: block; font-size: 13.5px; color: #ffe5a6; margin-bottom: 3px; }
.social-gift-card p { margin: 0; font-size: 12px; line-height: 1.45; color: rgba(255, 245, 224, 0.86); }

.social-orn-strip {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 4px 2px 10px;
  margin-bottom: 8px;
}
.social-orn-btn {
  flex: 0 0 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 4px;
  border-radius: 10px;
  border: 1px solid rgba(165, 120, 62, 0.35);
  background: #fffaf0;
  color: #3a2a23;
  font-size: 10.5px;
  cursor: pointer;
}
.social-orn-btn img { width: 38px; height: 38px; object-fit: contain; }
.social-orn-btn[aria-pressed="true"] {
  border-color: #9b293b;
  background: #fff0db;
  box-shadow: 0 0 0 2px rgba(155, 41, 59, 0.25);
}
.social-quick-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.social-tip-mini { margin: 0; font-size: 12px; color: #2b5c42; background: rgba(43, 92, 66, 0.1); padding: 7px 10px; border-radius: 8px; }

.social-note-preview {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 12px;
  background: #fffaf0;
  border: 1px solid rgba(188, 142, 78, 0.38);
  margin: 8px 0 12px;
}
.social-note-preview img { width: 64px; height: 64px; object-fit: contain; flex-shrink: 0; }
.social-note-body { margin: 6px 0 0; font-size: 14px; line-height: 1.6; color: #222e28; white-space: pre-wrap; }
.social-note-locked { margin: 6px 0 0; font-size: 13px; color: #7c5220; font-weight: 600; }

.social-key-box {
  padding: 12px;
  border-radius: 11px;
  background: #fffaf0;
  border: 1px solid rgba(186, 138, 74, 0.45);
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.social-key-box label { font-size: 12px; font-weight: 600; color: #5b202b; }

.social-code-bar { display: flex; gap: 8px; margin-bottom: 8px; }
.social-section-title { margin: 14px 0 8px; font-size: 13.5px; color: #4b1823; }
.social-list { display: flex; flex-direction: column; gap: 6px; }
.social-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid rgba(180, 136, 76, 0.35);
  background: #fffaf0;
  color: #24322b;
  font-size: 13px;
  cursor: pointer;
  text-align: left;
}
.social-list-item:hover { background: #fff0d2; border-color: #c89448; }
.social-rank {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #6e1c2b;
  color: #ffe8b0;
  font-size: 11.5px;
  margin-right: 4px;
}
.social-code-tag {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: rgba(110, 28, 43, 0.1);
  color: #6e1c2b;
  padding: 1px 6px;
  border-radius: 5px;
  font-weight: 700;
}
.social-sent-details { margin-top: 12px; font-size: 12.5px; }
.social-sent-details summary { cursor: pointer; font-weight: 650; color: #4b1823; }
.social-sent-list { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.social-sent-row { padding: 7px 10px; border-radius: 8px; background: #fffaf0; border: 1px solid rgba(180, 136, 76, 0.28); display: flex; flex-direction: column; gap: 2px; }
.social-occasions { margin-top: 16px; padding-top: 12px; border-top: 1px solid rgba(155, 112, 60, 0.25); }
.social-occasions-label { display: block; font-size: 12px; font-weight: 700; color: #64493b; margin-bottom: 8px; }
.social-occasions-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.social-occasion-card {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 9px 10px;
  border-radius: 10px;
  background: #fff9ec;
  border: 1px solid rgba(182, 134, 68, 0.4);
  color: #36221c;
  text-decoration: none;
}
.social-occasion-card:hover { background: #ffefd0; border-color: #c89140; }
.social-occasion-card strong { font-size: 12px; color: #541b27; }
.social-occasion-card small { font-size: 11px; color: #6b584b; }

@media (max-width: 640px) {
  .social-hud { bottom: 52px; padding: 8px 10px; }
  .social-reach { grid-template-columns: repeat(2, 1fr); }
  .social-occasions-grid { grid-template-columns: 1fr; }
  .social-gift-card { flex-direction: column; align-items: stretch; }
}

