/* Reader Dreams - the dream journal. Uses the theme's colour tokens where present. */
.rdj{max-width:760px;margin:1.5rem 0}
.rdj [hidden]{display:none!important}
.rdj-form{display:grid;gap:.9rem}
.rdj-field{margin:0;display:grid;gap:.35rem}
.rdj-field label{font-weight:600}
.rdj-field small{font-weight:400;color:var(--text-muted,#777)}
.rdj-form textarea,.rdj-form input[type=text],.rdj-form input[type=date],.rdj-form select{width:100%;box-sizing:border-box;padding:.7rem .8rem;border:1px solid var(--field-border,var(--border,#ccc));border-radius:10px;background:var(--bg,#fff);color:var(--text,#222);font:inherit}
.rdj-form textarea{min-height:160px;resize:vertical}
.rdj-row{display:grid;gap:.9rem;grid-template-columns:1fr 1fr}
@media(max-width:640px){.rdj-row{grid-template-columns:1fr}}
.rdj-actions{margin:0}
.rdj-result:empty{display:none}
.rdj-result{padding:1rem 1.2rem;border-radius:12px;border-left:4px solid var(--accent,#2d6a4f);background:var(--bg-alt,#f6f7f6)}
.rdj-result--error{border-left-color:var(--danger,#c0392b)}
.rdj-result h3{margin:.8rem 0 .4rem;font-size:1.05rem}
.rdj-meanings{margin:.4rem 0;padding-left:1.1rem}
.rdj-meanings li{margin:.35rem 0}
.rdj-note{font-size:.85rem;color:var(--text-muted,#777)}
.rdj h2{margin-top:2rem}
.rdj-list{list-style:none;margin:1rem 0;padding:0;display:grid;gap:1rem}
.rdj-entry{padding:1rem 1.1rem;border:1px solid var(--border,#e3e3e3);border-radius:12px}
.rdj-meta{margin:0 0 .4rem;font-size:.85rem;color:var(--text-muted,#777)}
.rdj-badge{display:inline-block;margin-left:.5rem;padding:.05rem .5rem;border-radius:999px;border:1px solid var(--accent,#2d6a4f);font-size:.75rem}
.rdj-entry summary{cursor:pointer;font-weight:700}
.rdj-text{white-space:pre-line;margin:.6rem 0 0}
.rdj-symbols{list-style:none;margin:.6rem 0 0;padding:0;display:flex;flex-wrap:wrap;gap:.4rem}
.rdj-symbols a{display:inline-block;padding:.15rem .6rem;border-radius:999px;border:1px solid var(--border,#ddd);font-size:.85rem;text-decoration:none}
.rdj-entry-actions{margin:.7rem 0 0;display:flex;flex-wrap:wrap;gap:1rem}
/* Text-style actions: the theme draws every <button> as a pill. */
.rdj .rdj-link{appearance:none;background:none;border:0;border-radius:0;box-shadow:none;height:auto;line-height:inherit;padding:0;font:inherit;font-size:.9rem;font-weight:400;white-space:normal;color:var(--accent-text,var(--accent,#2d6a4f))!important;text-decoration:underline;cursor:pointer}
.rdj .rdj-link:hover{box-shadow:none;text-decoration:none}
.rdj .rdj-danger,.rdj .rdj-link.rdj-danger{color:var(--danger,#c0392b)!important}
.rdj-tools .button{margin:0 .5rem .5rem 0}
.rdj-import{cursor:pointer}
.rdj-patterns{display:block}
.rdj-pattern h3{margin:1rem 0 .3rem;font-size:1.05rem}
.rdj-pattern ul{margin:0;padding-left:1.1rem}
.rdj-empty{color:var(--text-muted,#777)}
/* 1.7.0 – monthly report. */
.rdj-report-pick{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem}
.rdj-report-pick select{padding:.45rem .6rem;border:1px solid var(--field-border,var(--border,#ccc));border-radius:10px;background:var(--bg,#fff);color:var(--text,#222);font:inherit}
.rdj-figures{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:.6rem;margin:1rem 0;padding:0;list-style:none}
.rdj-figures li{margin:0;padding:.7rem .8rem;border:1px solid var(--border,#e3e3e3);border-radius:12px}
.rdj-figures li::before{content:none}
.rdj-figures strong{display:block;font-size:1.5rem;line-height:1.1}
.rdj-figures span{font-size:.85rem;color:var(--text-muted,#777)}
.rdj-report-actions{display:flex;flex-wrap:wrap;gap:.5rem;margin:1rem 0 .3rem}
.rdj-card-preview{display:block;max-width:min(100%,360px);height:auto;margin:.8rem 0;border-radius:12px;border:1px solid var(--border,#e3e3e3)}
