.panel { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.panel-pad { padding: 22px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--border-button); border-radius: 24px; padding: 11px 20px; min-height: 46.5px; color: #dfe2f7; line-height: 22.5px; }
.button:hover { border-color: var(--accent); background: rgba(174,149,246,.06); }
.button.primary { background: var(--accent); color: #10162d; border-color: transparent; font-weight: 600; }
.button.primary:hover { background: #bda8ff; }
.button.full { width: 100%; }
.button.compact { min-height: 37.5px; padding: 8px 16px; font-size: 13px; line-height: 19.5px; }
.text-link { color: var(--muted); font-size: 13px; }
.text-link:hover { color: var(--text); text-decoration: underline; }
.tag { display: inline-block; border-radius: 20px; padding: 4px 14px; font-size: 13px; line-height: 19.5px; background: #2b2762; color: #cfc2ff; }
.tag.teal { background: #143b45; color: #72dacb; }
.tag.blue { background: #1f2f66; color: #9db6ff; }
.tag.rose { background: #47224a; color: #f1b0d3; }
.tags { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.dream-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.dream-card { position: relative; overflow: clip; min-width: 0; }
.dream-card:hover { border-color: #4a5599; }
.card-image { position: relative; display: block; width: 100%; height: 110px; overflow: hidden; }
.card-image img { width: 100%; height: 100%; object-fit: cover; }
.card-image img[data-art="door"],.card-image img[data-art="forest"] { image-rendering: auto; }
.card-menu { position: absolute; top: 9px; right: 14px; border-radius: 5px; background: #222c43; color: #cfd3ef; height: 24px; width: 24px; display: grid; place-items: center; line-height: 1; font-size: 16px; }
.entry-menu summary,.date-filter summary { list-style: none; cursor: pointer; }
.entry-menu summary::-webkit-details-marker,.date-filter summary::-webkit-details-marker { display: none; }
.entry-options,.filter-options { position: absolute; z-index: 10; border: 1px solid var(--border-button); border-radius: 10px; padding: 6px; background: var(--inset); min-width: 190px; }
.entry-options { top: 38px; right: 14px; }
.entry-options a,.entry-options button,.filter-options button { display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: 6px; font-size: 13px; white-space: nowrap; }
.entry-options a:hover,.entry-options button:hover,.filter-options button:hover { background: var(--active); }
.date-filter { position: relative; }
.filter-control { border: 1px solid var(--border-control); border-radius: 20px; padding: 9px 16px; font-size: 14px; color: #cfd3ef; line-height: 21px; white-space: nowrap; }
.filter-options { top: 48px; right: 0; }
.card-copy { position: relative; height: 157px; padding: 16px 20px; }
.card-copy h3 { font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-meta { position: absolute; top: 39px; left: 20px; font-size: 13px; color: var(--muted); }
.card-excerpt { position: absolute; top: 65.5px; left: 20px; right: 20px; color: var(--body); font-size: 14px; line-height: 21px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-copy .tags { position: absolute; left: 20px; right: 20px; top: 113.5px; }
.source { display: flex; gap: 12px; align-items: center; border: 1px solid #232c5a; border-radius: 8px; padding: 6px; text-align: left; }
.source:hover { border-color: var(--accent); }
.source-thumb { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.source-copy { min-width: 0; font-size: 13px; line-height: 19.5px; }
.source-copy time { display: block; color: var(--muted); }
.source-title { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.motif-image { border: 2px solid var(--border-button); border-radius: 50%; background-repeat: no-repeat; background-position: left top; background-size: auto calc(100% - 4px); }
.motif-image[data-art="house"] { background-image: url('../assets/figma/5c7ec.png'); }
.motif-image[data-art="ocean"] { background-image: url('../assets/figma/93ad7.png'); }
.motif-image[data-art="stranger"] { background-image: url('../assets/figma/99bae.png'); }
.motif-image[data-art="forest"] { background-image: url('../assets/figma/65e27.png'); }
.motif-image[data-art="door"] { background-image: url('../assets/figma/4a7c5.png'); }
.empty-results { padding: 55px 25px; text-align: center; grid-column: 1 / -1; color: var(--body); }
.empty-results h2 { color: var(--text); margin-bottom: 10px; }
dialog { width: min(460px,calc(100% - 32px)); background: var(--surface); border: 1px solid var(--border-button); border-radius: 16px; padding: 30px; color: var(--text); }
dialog::backdrop { background: #050816bb; }
dialog h2 { margin-bottom: 16px; padding-right: 20px; }
dialog p { color: var(--body); margin-bottom: 24px; }
.close-dialog { position: absolute; right: 12px; top: 8px; font-size: 26px; }
.demo-notice { font-size: 13px; color: var(--muted); border: 1px solid var(--border); border-radius: 8px; padding: 12px 16px; }
