.awf-app [hidden] {
  display: none !important;
}

.awf-app {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.awf-sr-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  font-size: 14px;
}

/* Top Utility Pills Row */
.awf-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.awf-topbar-left,
.awf-topbar-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.awf-util-btn,
.awf-snow-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 6px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-pill);
  background-color: var(--surface);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 150ms ease, border-color 150ms ease, background-color 150ms ease;
}

.awf-util-btn:hover,
.awf-snow-pill:hover {
  transform: translateY(-2px);
  background-color: var(--bg-soft);
  border-color: var(--berry);
  color: var(--berry);
}

.awf-count-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background-color: var(--berry);
  color: var(--surface);
  font-size: 12px;
  font-weight: 700;
}

.awf-sync-pill {
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background-color: var(--accent);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
}

/* Drawer & Banner */
.awf-drawer {
  padding: 24px;
  border: 2.5px solid var(--border);
  border-radius: 24px;
  background-color: var(--surface);
  box-shadow: var(--shadow-md);
}

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

.awf-drawer-head h2 {
  margin: 0;
  font-size: 22px;
}

.awf-my-cal-list {
  display: grid;
  gap: 12px;
}

.awf-my-cal-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: 16px;
  background-color: var(--bg);
}

.awf-my-cal-meta strong {
  display: block;
  font-family: var(--font-display);
  font-size: 16px;
}

.awf-my-cal-meta span {
  font-size: 14px;
  color: var(--muted);
}

.awf-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  border: 2px dashed var(--berry);
  border-radius: 18px;
  background-color: #fff0d1;
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
}

.awf-banner-dismiss,
.awf-close-btn {
  min-height: 44px;
  padding: 8px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-pill);
  background-color: var(--surface);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.awf-banner-dismiss:hover,
.awf-close-btn:hover {
  background-color: var(--bg-soft);
}

/* Chalet-First Make Mode & Eaves Signboard */
.awf-make-stack {
  display: grid;
  gap: 14px;
}

.awf-missing-card,
.awf-deck {
  padding: 20px 22px;
  border: 3px solid var(--border);
  border-radius: 24px;
  background-color: var(--surface);
  box-shadow: var(--shadow-md);
}

.chalet-eaves-card {
  padding: 14px 16px;
  margin-bottom: 16px;
  border: 2.5px solid #e6cdb0;
  border-radius: 20px;
  background-color: #fffaf2;
  color: var(--text);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.awf-make-form {
  display: grid;
  gap: 10px;
}

.awf-compose-form {
  display: grid;
  gap: 16px;
}

.awf-eaves-form-row {
  display: grid;
  grid-template-columns: minmax(190px, 1.15fr) auto auto;
  gap: 10px;
  align-items: center;
}

.awf-eaves-name input {
  width: 100%;
  min-height: 46px;
  padding: 8px 14px;
  border: 2.5px solid var(--border);
  border-radius: 14px;
  background-color: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 16px;
  font-weight: 800;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.awf-eaves-name input.is-pulse-focus {
  border-color: var(--berry);
  box-shadow: 0 0 0 4px rgba(200, 30, 55, 0.2);
}

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

.awf-field label,
.awf-fieldset legend {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.awf-fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.awf-field input,
.awf-field textarea,
.awf-claim-row input,
.awf-share-url-input,
.awf-pin-inline input {
  width: 100%;
  min-height: 46px;
  padding: 8px 14px;
  border: 2.5px solid var(--border);
  border-radius: 14px;
  background-color: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 16px;
  font-weight: 800;
}

.awf-field-hint {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.awf-theme-picker {
  display: flex;
  gap: 6px;
}

.awf-theme-opt {
  min-height: 46px;
  padding: 8px 12px;
  border: 2.5px solid var(--border);
  border-radius: 14px;
  background-color: var(--surface);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all 150ms ease;
}

.awf-theme-opt:hover {
  border-color: var(--primary);
}

.awf-theme-opt.is-active {
  border-color: var(--primary);
  background-color: var(--primary);
  color: var(--surface);
  box-shadow: 0 3px 0 var(--primary-dark);
}

.awf-eaves-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
  padding-top: 8px;
  border-top: 1.5px dashed var(--border);
  font-size: 13px;
}

.awf-eaves-plaque-text {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.awf-pin-details {
  position: relative;
}

.awf-pin-details summary {
  list-style: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  user-select: none;
}

.awf-pin-details summary::-webkit-details-marker {
  display: none;
}

.awf-pin-details summary code {
  padding: 2px 6px;
  border-radius: 6px;
  background-color: var(--bg-soft);
  color: var(--text);
  font-size: 12px;
}

.awf-pin-popover {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 8px 12px;
  border: 2px solid var(--border);
  border-radius: 14px;
  background-color: var(--surface);
}

.awf-pin-popover label {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.awf-pin-inline {
  display: flex;
  align-items: center;
  gap: 6px;
}

.awf-pin-inline input {
  width: 124px;
  min-height: 38px;
  padding: 4px 10px;
  text-align: center;
  letter-spacing: 0.06em;
  font-size: 14px;
}

.awf-pin-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.awf-text-btn {
  min-height: 38px;
  padding: 4px 10px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

.awf-text-btn:hover {
  background-color: var(--bg-soft);
}

.awf-submit-btn {
  min-height: 46px;
  padding: 8px 18px;
  white-space: nowrap;
}

.awf-btn-sm {
  min-height: 40px;
  padding: 6px 14px;
  font-size: 14px;
}

/* ================= SNOWY PITCHED-ROOF CHRISTMAS CHALET ================= */
.chalet-wrap {
  --wall-top: #7e4929;
  --wall-bot: #63361c;
  --wall-border: #4a2611;
  --door-bg: #1e4b35;
  --door-border: #b87e4b;
  --door-fg: #fff7ea;
  --plaque-bg: #f4b63f;
  --plaque-fg: #361f14;
  width: 100%;
}

.chalet-wrap[data-box-theme="snow"] {
  --wall-top: #3b5978;
  --wall-bot: #284059;
  --wall-border: #1b2d40;
  --door-bg: #192b40;
  --door-border: #7da0c4;
  --door-fg: #f2f8ff;
  --plaque-bg: #dceeff;
  --plaque-fg: #182b40;
}

.chalet-wrap[data-box-theme="berry"] {
  --wall-top: #8c2638;
  --wall-bot: #6b1928;
  --wall-border: #4a0f1a;
  --door-bg: #fff5e6;
  --door-border: #d99b66;
  --door-fg: #3b1f16;
  --plaque-bg: #1a4d33;
  --plaque-fg: #ffffff;
}

.chalet-roof-svg {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: -6px;
  position: relative;
  z-index: 2;
}

.chalet-wrap[data-box-theme="snow"] .chalet-roof-poly {
  fill: #284059;
  stroke: #1b2d40;
}

.chalet-wrap[data-box-theme="berry"] .chalet-roof-poly {
  fill: #6b1928;
  stroke: #4a0f1a;
}

.postbox-frame {
  padding: 16px 18px 22px;
  border: 5px solid var(--wall-border);
  border-radius: 0 0 28px 28px;
  background: linear-gradient(180deg, var(--wall-top) 0%, var(--wall-bot) 100%);
  box-shadow: 0 20px 44px rgba(64, 32, 14, 0.24);
}

.cubby-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.cubby-cell {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  min-height: 108px;
  padding: 8px 6px;
  border: 2.5px solid var(--door-border);
  border-radius: 18px 18px 12px 12px;
  background-color: var(--door-bg);
  color: var(--door-fg);
  font-family: inherit;
  cursor: pointer;
  box-shadow: inset 0 4px 10px rgba(0, 0, 0, 0.22), 0 4px 0 rgba(0, 0, 0, 0.18);
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}

.cubby-cell:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}

.cubby-cell.is-ready {
  background: radial-gradient(circle at 50% 56%, #fff5d6 0%, #f7cb69 74%, #df9b35 100%);
  border-color: #ffe082;
  color: #361f14;
  box-shadow: 0 0 20px rgba(244, 182, 63, 0.62);
}

.cubby-cell.is-shaking {
  animation: awfShake 380ms ease;
}

@keyframes awfShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px) rotate(-1.5deg); }
  50% { transform: translateX(5px) rotate(1.5deg); }
  75% { transform: translateX(-3px); }
}

.cubby-plaque {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  background-color: var(--plaque-bg);
  color: var(--plaque-fg);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

.cubby-cell.is-ready .cubby-plaque {
  background-color: var(--berry);
  color: var(--surface);
}

.cubby-slot-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 40px;
  font-size: 22px;
}

.cubby-env-wrap {
  position: relative;
  width: 100%;
  max-width: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cubby-multi-badge {
  position: absolute;
  top: -8px;
  right: -4px;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  border: 2px solid #fff6ea;
  background-color: var(--berry);
  color: var(--surface);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.1;
}

.cubby-sender {
  display: block;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
}

/* Active Board View (Chalet-First + Live Eaves Signboard) */
.awf-board-view {
  display: grid;
  gap: 16px;
}

.chalet-eaves-live {
  display: grid;
  gap: 10px;
}

.awf-live-head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
}

.awf-season-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 4px;
}

.awf-role-pill,
.awf-date-pill {
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background-color: var(--bg-soft);
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
}

.awf-cal-title {
  margin: 0;
  font-size: clamp(20px, 2.6vw, 25px);
}

.awf-eaves-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
  padding-top: 8px;
  border-top: 1.5px dashed var(--border);
}

.awf-eaves-quick-btns {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.awf-cal-sub {
  margin: 0;
  flex: 1 1 240px;
  font-size: 13px;
  color: var(--muted);
}

.awf-progress-box {
  min-width: 220px;
  flex: 1 1 240px;
  max-width: 320px;
}

.awf-progress-labels {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 5px;
  font-family: var(--font-display);
  font-size: 13px;
}

.awf-progress-labels span {
  color: var(--muted);
}

.awf-progress-track {
  height: 14px;
  border-radius: var(--radius-pill);
  background-color: var(--bg-soft);
  border: 2px solid var(--border);
  overflow: hidden;
}

.awf-progress-fill {
  display: block;
  height: 100%;
  border-radius: var(--radius-pill);
  background-color: var(--berry);
  transition: width 250ms ease;
}

/* Owner & Friend Decks */
.awf-deck {
  display: grid;
  gap: 16px;
}

.awf-share-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
}

.awf-deck-label {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
}

.awf-link-copy-row,
.awf-claim-row,
.awf-action-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.awf-link-copy-row .awf-share-url-input {
  flex: 1 1 200px;
}

.awf-quick-channels {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.awf-chan-btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-pill);
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.awf-chan-btn:hover {
  background-color: var(--bg-soft);
  border-color: var(--berry);
}

.awf-code-callout {
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.awf-owner-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 2px dashed var(--border);
  font-size: 14px;
}

.awf-pin-display,
.awf-owner-danger {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.awf-danger-link {
  min-height: 44px;
  padding: 6px 14px;
  border: 2px solid var(--berry);
  border-radius: var(--radius-pill);
  background-color: var(--surface);
  color: var(--berry);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.awf-danger-link:hover {
  background-color: var(--berry);
  color: var(--surface);
}

.awf-danger-btn {
  min-height: 44px;
  padding: 10px 18px;
  border: 0;
  border-radius: var(--radius);
  background-color: var(--berry);
  color: var(--surface);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 4px 0 var(--berry-dark);
  cursor: pointer;
}

.awf-confirm-bar,
.awf-claimed-notice,
.awf-claim-box {
  padding: 16px;
  border: 2px dashed var(--border);
  border-radius: 18px;
  background-color: var(--bg);
}

.awf-confirm-bar p,
.awf-claimed-notice p {
  margin: 0 0 8px;
  font-size: 14px;
}

.awf-friend-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.awf-friend-headline {
  margin: 0;
  flex: 1 1 220px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
}

.awf-friend-sub {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.awf-claim-box {
  display: grid;
  gap: 12px;
}

.awf-claim-box label {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
}

.awf-claim-row input {
  flex: 1 1 160px;
}

.awf-claim-msg,
.awf-form-err {
  margin: 0;
  padding: 10px 14px;
  border-radius: 14px;
  background-color: var(--berry);
  color: var(--surface);
  font-size: 14px;
  font-weight: 700;
}

/* Post-Fill Viral Loop */
.awf-viral-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 2.5px solid var(--berry);
  border-radius: 16px;
  background-color: #fff0d1;
}

.awf-viral-badge {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background-color: var(--berry);
  color: var(--surface);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
}

.awf-viral-copy h3 {
  margin-bottom: 4px;
}

.awf-viral-copy p {
  margin: 0;
  color: var(--text);
  font-size: 14px;
}

.awf-viral-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Modals */
.awf-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background-color: rgba(24, 15, 10, 0.65);
  overflow-y: auto;
}

.awf-modal-backdrop[hidden] {
  display: none !important;
}

.awf-modal {
  width: 100%;
  max-width: 580px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 24px;
  border: 3px solid var(--border);
  border-radius: 26px;
  background-color: var(--surface);
  box-shadow: var(--shadow-md);
}

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

.awf-modal-head h2 {
  margin: 0;
  font-size: 22px;
}

.awf-stack-hint {
  margin: 0;
  padding: 10px 14px;
  border-radius: 14px;
  background-color: #fff0d1;
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
}

/* Stamps & Wraps Pickers */
.awf-stamp-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.awf-stamp-btn,
.awf-wrap-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 64px;
  padding: 8px;
  border: 2.5px solid var(--border);
  border-radius: 14px;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.awf-stamp-btn.is-active,
.awf-wrap-btn.is-active {
  border-color: var(--berry);
  background-color: #fff0d1;
}

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

.awf-wrap-tag {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.awf-sender-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
}

.awf-sender-field {
  flex: 1 1 200px;
}

.awf-anon-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 8px 14px;
  border: 2.5px solid var(--border);
  border-radius: 14px;
  background-color: var(--bg);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.awf-idea-btn {
  min-height: 44px;
  padding: 6px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-pill);
  background-color: #fff0d1;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.awf-note-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}

/* Own Note Box & Opened Letters Stack */
.awf-own-notes-box {
  padding: 16px;
  margin-bottom: 16px;
  border: 2px dashed var(--border);
  border-radius: 18px;
  background-color: var(--bg);
}

.awf-own-notes-label {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
}

.awf-letters-stack {
  display: grid;
  gap: 16px;
}

.awf-letter-card {
  padding: 24px;
  border: 2.5px solid var(--border);
  border-radius: 20px;
  background-color: #fffaf0;
  color: #361f14;
  animation: awfUnseal 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.awf-letter-card[data-wrap="gold"] {
  background: linear-gradient(180deg, #fffdf5 0%, #f9ebc8 100%);
  border-color: #e4a93c;
}

.awf-letter-card[data-wrap="frost"] {
  background: linear-gradient(180deg, #f7fbff 0%, #e4f0fa 100%);
  border-color: #7da0c4;
}

.awf-letter-card[data-wrap="aurora"] {
  background: linear-gradient(180deg, #f4fbf7 0%, #dff2e8 100%);
  border-color: #2f7d4f;
}

@keyframes awfUnseal {
  from {
    transform: translateY(10px) scale(0.98);
  }
  to {
    transform: translateY(0) scale(1);
  }
}

.awf-letter-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.awf-letter-sender {
  display: flex;
  align-items: center;
  gap: 10px;
}

.awf-letter-sender strong {
  font-family: var(--font-display);
  font-size: 18px;
}

.awf-letter-badge {
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background-color: var(--bg-soft);
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
}

.awf-letter-body {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

.awf-letter-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-top: 12px;
  border-top: 2px dashed rgba(54, 31, 20, 0.14);
}

.awf-poster-preview-box {
  display: flex;
  justify-content: center;
  padding: 16px;
  margin: 12px 0 16px;
  border-radius: 18px;
  background-color: var(--bg);
}

.awf-poster-preview-box img {
  max-height: 360px;
  width: auto;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
}

/* Mobile & Tablet Responsive Grid (4 cols x 6 rows at <= 640px) */
@media (max-width: 900px) {
  .awf-eaves-form-row,
  .awf-share-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .awf-theme-opt {
    flex: 1;
  }
  .awf-submit-btn {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .awf-topbar {
    gap: 4px;
  }
  .awf-topbar-left,
  .awf-topbar-right {
    gap: 4px;
  }
  .awf-util-btn,
  .awf-snow-pill {
    min-height: 36px;
    padding: 4px 9px;
    font-size: 12px;
    gap: 4px;
  }
  .chalet-roof-svg {
    margin-bottom: -3px;
  }
  .postbox-frame {
    padding: 12px 10px 16px;
  }
  .chalet-eaves-card {
    padding: 12px;
    margin-bottom: 12px;
    border-radius: 16px;
  }
  .cubby-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }
  .cubby-cell {
    min-height: 94px;
    padding: 7px 4px;
  }
  .awf-deck,
  .awf-modal {
    padding: 16px;
  }
  .awf-stamp-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .awf-wrap-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
