.result-tools { margin: 18px 0; padding: 18px; border: 1px solid #e4d9f3; border-radius: 16px; background: #fff; color: #51465f; }
.result-tools h3 { margin: 0 0 12px; color: #673acb; font-size: 17px; }
.result-core-summary { white-space: pre-wrap; font-size: 14px; line-height: 1.9; }
.result-tool-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 0; }
.result-tool-button { display: inline-block; padding: 10px 15px; border: 1px solid #ded2f1; border-radius: 22px; background: #f1ebfb; color: #673acb; text-decoration: none; font-size: 14px; text-align: center; }
.result-tool-status,.result-local-note { color: #78658d; font-size: 12px; line-height: 1.8; }
.result-tool-status:empty { display: none; }
.result-long-report,.result-numeric { margin: 18px 0; border-top: 1px solid #e4d9f3; }
.result-long-report > summary,.result-numeric > summary { padding: 16px 0; color: #673acb; cursor: pointer; font-size: 14px; }
.result-share-dialog { box-sizing: border-box; width: min(94vw,650px); max-height: 90svh; padding: 20px; border: 1px solid #e4d9f3; border-radius: 20px; background: #f8f5fd; color: #51465f; }
.result-share-dialog::backdrop { background: #24183366; }
.result-dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.result-dialog-heading h2,.result-dialog-heading h3 { margin: 0; color: #673acb; font-size: 20px; }
.result-dialog-heading button { padding: 9px 12px; border: 0; border-radius: 16px; background: #eee7f7; color: #673acb; }
.result-share-dialog label,.favorite-card label { display: block; font-size: 14px; line-height: 1.8; }
.result-share-dialog textarea,.favorite-card textarea { box-sizing: border-box; width: 100%; margin-top: 8px; padding: 12px; border: 1px solid #ded2f1; border-radius: 12px; background: #fff; color: #51465f; font: inherit; }
.result-share-dialog .share-input-option { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.share-canvas { display: block; width: 100%; height: auto; margin: 16px 0; border-radius: 12px; background: #f5f2fc; }
.favorites-page { padding: 22px 16px; }
.favorites-page > select { width: 100%; padding: 12px; border: 1px solid #ded2f1; border-radius: 12px; background: #fff; color: #51465f; }
.favorite-card { margin: 16px 0; padding: 18px; border: 1px solid #e4d9f3; border-radius: 16px; background: #fff; }
.favorite-card > summary { color: #673acb; font-weight: 600; cursor: pointer; }
.favorite-inputs { margin: 14px 0; padding: 12px 0; border-top: 1px solid #eee7f7; font-size: 13px; line-height: 1.8; }
.favorite-inputs summary { color: #673acb; cursor: pointer; }
.favorite-inputs p { white-space: pre-wrap; overflow-wrap: anywhere; }
.favorites-entry { display: block; box-sizing: border-box; width: calc(100% - 40px); margin: 18px 20px; text-align: left; }
.birthday-calendar-control { margin-bottom: 12px; }
.profile-form-row.birthday-calendar-row { flex-wrap: wrap; }
.birthday-calendar-row > .birthday-calendar-control { flex: 0 0 100%; width: 100%; }
.birthday-calendar-control select,.birthday-calendar-control input { max-width: 100%; padding: 10px 12px; border: 1px solid #ded2f1; border-radius: 10px; background: #fff; color: #51465f; font: inherit; }
.birthday-calendar-control input { display: block; margin-top: 12px; }
.birthday-calendar-hint { margin: 8px 0; color: #78658d; font-size: 12px; line-height: 1.7; }
.element-legend { display: flex; justify-content: flex-end; gap: 7px; margin: 12px 4px 0; }
.element-legend span { display: inline-flex; align-items: center; gap: 4px; padding: 2px 6px; border-radius: 8px; background: var(--element-soft); color: var(--element-ink); font-size: 11px; }
.element-legend span::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--element-ink); }
.chat-cancel,.dream-cancel,.advice-cancel { margin: 8px 0; padding: 10px 16px; border: 1px solid #ded2f1; border-radius: 20px; background: #f1ebfb; color: #673acb; }
.result-tool-button:focus-visible,.favorite-card summary:focus-visible { outline: 2px solid #673acb; outline-offset: 3px; }
