.dreams-main { padding-top: 14px; padding-bottom: 70px; }
.dreams-intro { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; padding-bottom: 14px; }
.dreams-intro h1 { font-size: clamp(2.35rem, 6vw, 5.4rem); white-space: nowrap; }
.dreams-intro h1 em { color: var(--orange); }
.dreams-meta-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 1em; margin-top: 8px; }
.dreams-owner { color: var(--muted); font-size: .68rem; }
.dreams-instructions { max-width: 340px; padding-bottom: 8px; }
.dreams-instructions p { color: var(--muted); font-size: .95rem; line-height: 1.6; margin: 0 0 20px; }
.save-status { display: block; min-height: 1em; margin-top: 8px; font-size: .68rem; }
.save-status.is-saving { color: var(--muted); }
.save-status.is-saved { color: #3f8a50; }
.save-status.is-error { color: #c64e4e; }
.dreams-board { background: var(--card); border: 1px solid var(--line); position: relative; }
.dreams-canvas { min-height: 560px; position: relative; padding: 25px; overflow: visible; }
.dream-connections { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 0; }
.dream-connection { stroke: var(--ink); stroke-width: 2; stroke-linecap: round; opacity: .55; }
.dreams-board.is-connecting .dream-connection { pointer-events: stroke; cursor: pointer; }
.dream-card { position: absolute; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 11px; background: #e5efcf; border: 1px solid rgba(24, 56, 43, .12); box-shadow: 2px 2px 0 rgba(24, 56, 43, .08); cursor: grab; transition: transform .15s ease, opacity .15s ease, box-shadow .15s ease; width: 140px; min-height: 56px; border-radius: 18px; text-align: center; }
.dream-card:nth-child(3n + 2) { background: #f3eed0; }
.dream-card:nth-child(3n) { background: #dcebd8; }
.dream-card:active { cursor: grabbing; }
.dream-card.is-dragging { opacity: .35; transform: scale(.98); box-shadow: 6px 6px 0 rgba(24, 56, 43, .15); z-index: 10; }
.dream-card.is-connect-source { outline: 3px solid var(--orange); outline-offset: 3px; }
.dreams-board.is-connecting .dream-card { cursor: crosshair; }
.dream-card { z-index: 1; }
.dream-card:hover { box-shadow: 4px 4px 0 rgba(24, 56, 43, .12); }
.card-text { display: block; flex: 0 0 auto; align-self: center; box-sizing: border-box; width: 100%; height: auto; min-height: 22px; margin: 0; padding: 0; resize: none; overflow: hidden; border: 0; outline: 0; background: transparent; color: var(--ink); font: 500 .92rem/22px "DM Sans", sans-serif; text-align: center; text-indent: 0; }
.dream-card .card-text { color: #304d28; }
.dream-card:nth-child(3n + 2) .card-text { color: #5c5224; }
.dream-card:nth-child(3n) .card-text { color: #2f5b3b; }
.dreams-board-actions { position: absolute; bottom: 20px; right: 25px; display: flex; gap: 10px; z-index: 2; }
.connect-dream-button, .add-dream-button { padding: 12px 16px; border: 1px solid var(--ink); background: var(--card); color: var(--ink); font-size: .83rem; font-weight: 700; border-radius: 100px; transition: transform .2s ease, background .2s ease; }
.connect-dream-button:hover, .add-dream-button:hover, .connect-dream-button[aria-pressed="true"] { transform: translateY(-3px); background: var(--ink); color: var(--paper); }
.add-dream-button:hover { transform: translateY(-3px); background: var(--ink); color: var(--paper); }

@media (max-width: 800px) { 
  .dreams-main { padding-top: 12px; }
  .dreams-intro { display: block; padding-bottom: 12px; }
  .dreams-instructions { margin-top: 12px; }
  .dreams-canvas { min-height: 400px; padding: 15px; }
  .dream-card { width: 125px; padding: 9px; }
  .dreams-board-actions { bottom: 15px; right: 15px; flex-direction: column; align-items: flex-end; }
}

@media (max-width: 520px) { 
  .dreams-canvas { min-height: 300px; padding: 12px; }
  .dream-card { width: 112px; padding: 8px; }
  .card-text { font-size: .82rem; line-height: 1.15; }
  .dreams-meta-row { gap: 8px; }
  .main-nav { max-width: 220px; flex-wrap: wrap; justify-content: end; gap: 5px 12px; }
  .brand-logo { width: 64px; height: 64px; }
}
