:root{--dream-line:#c89a61;--dream-violet:#351c4d;--dream-ink:#fff5e4}html{scroll-behavior:smooth}body{font-size:17px}.brand-home{text-decoration:none;color:#ffe0a0}.skip-link{position:absolute;left:-9999px;top:0;background:#fff;color:#161026;padding:12px;z-index:30}.skip-link:focus{left:10px}header{position:relative;z-index:2}header nav a{font-size:14px}main{max-width:1080px;padding-top:24px}h1 em{font-style:italic;color:#f4c882!important}.dream-hero{text-align:center;padding:26px 4% 46px;border-bottom:1px solid #bd96504d}.dream-hero h1{font-size:clamp(37px,6.2vw,68px);max-width:860px;line-height:1.13}.dream-hero .lead{max-width:740px;margin:16px auto 18px;color:#edddf1}.lunar-art{height:140px;position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden}.orb{display:inline-flex;width:126px;height:126px;align-items:center;justify-content:center;font:116px/1 Georgia,serif;color:#f5d38b;text-shadow:0 0 20px #ffe6ab80,0 0 70px #d4a0f8;filter:drop-shadow(0 0 12px #cfa0dd88)}.tiny-star{position:absolute;color:#f2cf8b;text-shadow:0 0 16px #f2d69b}.st-a{left:30%;top:23%;font-size:23px}.st-b{right:29%;top:40%;font-size:34px}.st-c{right:37%;top:5%;font-size:15px}.hero-details{display:flex;flex-wrap:wrap;justify-content:center;gap:8px 15px;margin:18px 0}.hero-details span{border:1px solid #b18b655c;border-radius:30px;padding:7px 13px;color:#fce7be;background:#251239}.dream-workspace{padding:clamp(20px,4vw,38px);margin:26px auto}.headsplit{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}.headsplit h2{margin:0 0 18px}.mode-switch{display:flex;flex-wrap:wrap;gap:10px;margin:12px 0 24px}.mode-switch button{background:#190c2b;color:#fbe0aa;border:1px solid #8b6a7a;border-radius:14px;padding:13px 18px;font-weight:700;min-height:48px}.mode-switch button[aria-selected=true]{background:#653c78;color:#fff8dd;border-color:#eac783;box-shadow:0 0 15px #c39d6e45}.dream-workspace .field{font-size:16px}.dream-workspace textarea{min-height:130px;resize:vertical;font-size:17px}.micro-actions{display:flex;flex-wrap:wrap;gap:10px;margin:10px 0 25px}.micro-actions .btn{font-size:14px;padding:9px 14px}.primary-actions{margin:18px 0}.primary-actions .btn{font-size:17px}.consent-panel{border:1px solid #b68d58;border-radius:16px;padding:18px;background:#1a102c;margin:24px 0}.consent-panel p{margin:7px 0}.consent-top{display:flex;justify-content:space-between;gap:14px;align-items:center;flex-wrap:wrap}.consent-check{display:flex;align-items:flex-start;gap:12px;margin:15px 0;color:#f5e7d5;font-size:15px;line-height:1.5}.consent-check input{margin-top:5px;min-width:21px;min-height:21px}.result-panel,.chat-panel{border:1px solid #c59b64;border-radius:18px;background:#221037;padding:20px;margin:24px 0}.result-panel[hidden],.chat-panel[hidden],[role=tabpanel][hidden]{display:none!important}.result-head{display:flex;align-items:center;gap:12px;justify-content:space-between;flex-wrap:wrap}.result-head h2{font-size:27px}.reading-output{white-space:pre-wrap;font-size:17px;line-height:1.8;overflow-wrap:anywhere}.reading-output strong{color:#ffe2a3}.reading-output p{margin:0 0 14px}.chat-log{display:flex;flex-direction:column;gap:11px;max-height:360px;overflow-y:auto;padding:15px 6px}.chat-bubble{max-width:90%;padding:12px 15px;border:1px solid #786386;border-radius:16px;background:#2d1b3d;white-space:pre-wrap;overflow-wrap:anywhere}.chat-bubble.user{align-self:flex-end;background:#453057;border-color:#cead68}.chat-bubble.ai{align-self:flex-start}.chat-role{font-size:12px;color:#f1ce88;letter-spacing:.04em;text-transform:uppercase;font-weight:bold}.follow-form{display:flex;gap:10px;align-items:stretch}.follow-form input{flex:1;min-width:0;padding:12px;border-radius:12px;border:1px solid #b89267;background:#170a25;color:#fff5df}.journal-section,.reflection-guide{padding:32px 5%;margin:35px auto;border-radius:22px;border:1px solid #a27a4c;background:linear-gradient(125deg,#2a1641,#1b0e2d)}.journal-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;margin-top:20px}.journal-entry{padding:17px;border-radius:14px;border:1px solid #996f65;background:#221535}.journal-entry h3{font-size:18px}.journal-entry p{font-size:14px}.journal-entry button{margin-top:10px;background:transparent;border:1px solid #c69f66;border-radius:10px;color:#ffe4ba;padding:8px 12px}.journal-empty{font-size:15px;color:#d8c2e4}.reflection-guide{text-align:center}.reflection-guide p{max-width:760px;margin:12px auto}#app-feedback:not(:empty){background:#1b1131;border-left:3px solid #dab17c;padding:12px 14px;border-radius:5px}.btn.alt{background:#241034!important;color:#ffe4ae!important;border:1px solid #c7a169!important}.btn{white-space:normal}.small{font-size:13px}.pill{font-size:12px}textarea:focus-visible,button:focus-visible{outline:3px solid #ffdf92}a:hover{text-decoration:underline}@media(max-width:650px){.dream-hero{padding-top:10px}.lunar-art{height:110px}.orb{font-size:90px;width:105px;height:105px}.dream-workspace{padding:18px}.follow-form{flex-direction:column}.mode-switch button{width:100%}.hero-details{font-size:13px}.journal-section,.reflection-guide{padding:25px 20px}}

/* Dream Pattern Tracker – counts only locally saved dream entries */
.pattern-tracker{margin:24px 0 26px;padding:clamp(18px,3vw,27px);border:1px solid #c5a075;border-radius:20px;background:#180d2b}
.pattern-tracker h3{margin:0 0 12px;font-size:clamp(22px,3vw,29px);color:#ffe0a5}
.pattern-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;margin:18px 0}
.pattern-card{min-width:0;background:#281738;border:1px solid #856c84;border-radius:16px;padding:16px}
.pattern-card h4{font-size:16px;color:#f5d49f;margin:0 0 16px}
.pattern-summary{padding:12px 14px;border-left:3px solid #e9c688;background:#291939;border-radius:7px;font-weight:650}
.pattern-row{margin:0 0 14px}
.pattern-row-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;font-size:13px;line-height:1.4;margin-bottom:5px}
.pattern-row-heading span{overflow-wrap:anywhere}
.pattern-row-heading strong{flex:0 0 auto;font-size:12px;color:#ffe3a9}
.pattern-bar{height:7px;background:#463750;border-radius:99px;overflow:hidden}
.pattern-bar span{display:block;height:100%;border-radius:99px;background:linear-gradient(90deg,#b89cf1,#efd392)}
#dream-tags{width:100%;min-height:44px;padding:12px;border-radius:12px;border:1px solid #b89267;background:#170a25;color:#fff5df;font:inherit}
@media(max-width:650px){.pattern-grid{grid-template-columns:1fr}.pattern-tracker{padding:17px}}
