/* Account views and shared consent controls. Load after styles.css. */
/* The dashboard uses a restrained monochrome palette and fine borders. */
[hidden] { display: none !important; }
.dashboard-wrap { max-width: 1200px; }
.dash-shell { color: #303030; font-family: 'DM Sans', sans-serif; }
.dash-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding: 18px 0 30px; }
.dash-heading h1 { font-family: Manrope, sans-serif; font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.08; letter-spacing: -.05em; margin: 5px 0 10px; }
.dash-heading p { margin: 0; color: #637469; }
.dash-heading .dash-eyebrow { color: #56705c; font-weight: 700; font-size: .85rem; }
.dash-heading-actions { display: flex; gap: 15px; align-items: center; }
.plan-label, .date-pill { display: inline-block; background: #e2edda; border-radius: 50px; padding: 7px 13px; color: #3f6145; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.dash-logout, .dash-text-button { color: #315d44; background: none; border: 0; padding: 0; font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
.dash-tabs { display: flex; gap: 6px; overflow-x: auto; border-bottom: 1px solid #cdd9ce; margin-bottom: 27px; }
.dash-tabs button { border: 0; border-bottom: 3px solid transparent; color: #65736a; padding: 14px 21px; background: transparent; font: inherit; font-weight: 700; cursor: pointer; }
.dash-tabs button[aria-current] { color: #28563c; border-color: #315f42; }
.overview-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(230px, .8fr); gap: 22px; align-items: start; }
.dash-card { background: #fff; border: 1px solid #dfe9df; border-radius: 18px; padding: 26px; margin-bottom: 20px; }
.dash-card h2, .premium-panel h2 { font-family: Manrope, sans-serif; font-size: 1.35rem; letter-spacing: -.03em; margin: 0 0 8px; }
.dash-card h3 { font-size: 1rem; margin: 28px 0 14px; }
.dash-card p { color: #66766a; margin: 0 0 18px; line-height: 1.6; }
.card-heading { display: flex; justify-content: space-between; gap: 15px; align-items: start; }
.daily-card { background: #f1f1f1; border-color: #f1f1f1; }
.daily-totals { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding-top: 16px; }
.daily-totals div { display: flex; flex-direction: column; gap: 8px; border-left: 1px solid #c4d6bf; padding-left: 15px; }
.daily-totals div:first-child { border: 0; padding-left: 0; }
.daily-totals span { color: #596e5c; font-size: .82rem; }
.daily-totals strong { font-family: Manrope, sans-serif; font-size: clamp(1.15rem, 2vw, 1.75rem); letter-spacing: -.04em; }
.daily-totals small { font: 500 .75rem 'DM Sans', sans-serif; letter-spacing: 0; }
.dash-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0 16px; }
.dash-form-grid .form-field { min-width: 0; }
.dash-form-grid select, .dash-form-grid textarea { width: 100%; padding: 12px; border: 1px solid #d8ded6; border-radius: 8px; background: white; font: inherit; color: inherit; }
.dash-form-grid textarea { display:block; margin-top:6px; resize:vertical; }
.form-actions { display: flex; align-items: center; gap: 16px; margin-top: 12px; }
.journal-entry { display: flex; justify-content: space-between; align-items: center; gap: 15px; border-top: 1px solid #e6ebe6; padding: 16px 0; }
.journal-entry small { display: block; color: #66766a; margin-top: 5px; line-height: 1.5; }
.entry-actions { display: flex; white-space: nowrap; gap: 12px; }
.empty-state { padding: 15px 0 0; }
.note-card { background: #f4f4f4; border: 0; }
.note-symbol { font-size: 2.2rem; color: #637e56; display: block; margin-bottom: 16px; }
.profile-card { max-width: 830px; }
.premium-panel { background: #f2f2f2; border-radius: 24px; min-height: 380px; padding: clamp(30px, 6vw, 70px); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.premium-panel .premium-mark { color: #638563; font-size: 4rem; line-height: 1; margin-bottom: 25px; }
.premium-panel h2 { font-size: clamp(2rem, 4vw, 3rem); max-width: 600px; margin: 20px 0 10px; }
.premium-panel p { max-width: 490px; line-height: 1.6; color: #566a5c; }
.premium-panel small { color: #566a5c; margin-top: 16px; }
.creator-page .google-area { border-top: 1px solid #dfe9df; margin-top: 25px; padding-top: 25px; }
.creator-page .ref-code { overflow-wrap: anywhere; margin: 12px 0; }
.header-user { font-size: .85rem; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cookie-notice { position: fixed; z-index: 100; bottom: 20px; left: 20px; right: 20px; max-width: 850px; margin: auto; display: flex; gap: 25px; align-items: center; justify-content: space-between; padding: 20px 24px; background: white; color: #303030; border: 1px solid #cbd8cc; border-radius: 16px; box-shadow: 0 12px 45px #30303029; }
.cookie-notice p { font-size: .85rem; line-height: 1.5; margin: 6px 0 0; }
.cookie-actions { display: flex; gap: 8px; flex-shrink: 0; }
.cookie-actions button { border: 1px solid #315d44; border-radius: 30px; background: #fff; color: #315d44; padding: 10px 14px; cursor: pointer; font: inherit; font-size: .82rem; font-weight: 700; }
.cookie-actions button:last-child { background: #315d44; color: #fff; }
.cookie-settings-link { background: transparent; border: 0; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }
.dash-shell :focus-visible, .cookie-notice :focus-visible, .cookie-settings-link:focus-visible { outline: 3px solid #b97a36; outline-offset: 3px; }
/* Refined account surfaces */
.dash-heading{border-bottom:1px solid #e4e7e5;margin-bottom:24px}.dash-heading .dash-eyebrow{color:#838d88}.dash-heading p,.dash-card p{color:#747e79}.plan-label,.date-pill{background:#edf1ec;color:#5d7063}.dash-tabs{border:0;gap:6px;background:#eff1ef;border-radius:12px;padding:5px;width:max-content;max-width:100%}.dash-tabs button{border:0;border-radius:8px;color:#747e79;padding:10px 18px}.dash-tabs button[aria-current]{background:#fff;color:#222b27;box-shadow:0 2px 8px #1d292410}.dash-card{border-color:#e3e8e4;box-shadow:0 8px 28px #24382c08}.daily-card{background:#e7ede5;border:1px solid #dae4d9}.daily-totals div{border-color:#cbd8ca}.daily-totals span{color:#708174}.note-card{background:#27312d;color:#fff;position:relative;overflow:hidden}.note-card h2{color:#fff}.note-card p{color:#c3d1c7}.note-card .dash-text-button{color:#fff}.note-card:after{content:'◎';position:absolute;right:-8px;bottom:-60px;font-size:150px;color:#ffffff0a}.premium-panel{background:linear-gradient(135deg,#eff2ee,#e1e9e0);border:1px solid #dce4dd}.premium-panel .premium-mark{color:#869e89}.premium-panel p,.premium-panel small{color:#637569}
@media (max-width: 760px) { .overview-layout { grid-template-columns: 1fr; } .dash-heading { align-items: flex-start; } .dash-heading-actions { flex-direction: column; align-items: flex-end; } .dash-tabs button { padding: 12px; } .cookie-notice { flex-direction: column; align-items: stretch; gap: 14px; } .cookie-actions { flex-wrap: wrap; } }
@media (max-width: 460px) { .daily-totals { grid-template-columns: repeat(2,1fr); row-gap: 20px; } .daily-totals div:nth-child(3) { border: 0; padding-left: 0; } .dash-form-grid { grid-template-columns: 1fr; } .journal-entry { align-items: flex-start; flex-direction: column; } .header-user { display: none; } }
