/* AstroCEO - AstroJournal (journal.js), 28 Nov 2026. Uses the view accent variables from modes.js (--mo-a, --mo-a2,
   --mo-rgb, --mo-ink, --mo-deep) so the design palette applies by itself. Logical properties only (Arabic RTL). */
.jr-page { --ja: var(--mo-a, #E0B15A); --ja2: var(--mo-a2, #F4D58A); --jrgb: var(--mo-rgb, 224, 177, 90); --jink: var(--mo-ink, #1A1405);
  --jb: #E0B15A; --jc: #3FB8CC; --jp: #F27AAE;
  display: block !important; max-width: 1180px; margin: 0 auto; padding: 6px 2px 40px; box-sizing: border-box; min-width: 0 }
.jr-page * { box-sizing: border-box }
.jr-head { display: flex; align-items: center; gap: 14px; margin: 6px 0 10px }
.jr-ic { flex: none; width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; color: var(--jink);
  background: radial-gradient(circle at 30% 25%, #fff, var(--ja2) 40%, var(--ja)); box-shadow: 0 0 24px rgba(var(--jrgb), .45) }
.jr-ic svg { width: 26px; height: 26px }
.jr-ey { margin: 0; font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ja2) }
.jr-head h1 { margin: 2px 0 0; font-family: var(--display); font-weight: 400; font-size: 1.7rem; line-height: 1.15 }
.jr-priv { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 14px; padding: 10px 14px; border-radius: 14px; font-size: .86rem; line-height: 1.5;
  color: var(--muted, #B9B4CC); background: rgba(var(--jrgb), .08); border: 1px solid rgba(var(--jrgb), .22) }
.jr-lock { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--ja2) } .jr-lock svg { width: 18px; height: 18px }
.jr-flash { margin: 0 0 12px; padding: 9px 14px; border-radius: 12px; background: rgba(110, 207, 151, .12); color: #9BE3B8; font-size: .9rem }
.jr-grid { display: grid; gap: 16px; min-width: 0 }
.jr-main, .jr-side { display: grid; gap: 14px; align-content: start; min-width: 0 }
.jr-card { background: var(--surface, #15132B); border: 1px solid var(--line, rgba(255, 255, 255, .1)); border-radius: 22px; padding: 16px; min-width: 0 }
.jr-card h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 1.15rem; line-height: 1.25 }
.jr-ptop { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-bottom: 10px }
.jr-sky { font-size: .72rem; font-weight: 700; color: var(--ja2); border: 1px solid rgba(var(--jrgb), .45); border-radius: 999px; padding: 3px 10px }
.jr-prompt { background: radial-gradient(120% 100% at 0% 0%, rgba(var(--jrgb), .18), transparent 60%), var(--surface, #15132B); border-color: rgba(var(--jrgb), .35) }
.jr-pq { margin: 0 0 14px; font-size: 1.05rem; line-height: 1.55; overflow-wrap: anywhere }
.jr-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px }
.jr-page .btn { min-height: 40px; border-radius: 12px }
.jr-page .btn.primary { background: linear-gradient(135deg, var(--ja2), var(--ja)); border-color: transparent; color: var(--jink) }
.jr-page .btn.link { min-height: 36px; color: var(--ja2) }
.jr-seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 14px; background: rgba(255, 255, 255, .05); margin-bottom: 10px }
.jr-m { font: inherit; font-size: .86rem; font-weight: 600; border: 0; border-radius: 10px; padding: 8px 14px; min-height: 36px; background: none; color: var(--muted, #B9B4CC); cursor: pointer }
.jr-m.on { color: #12101F } .jr-m-business.on { background: var(--jb) } .jr-m-career.on { background: var(--jc) } .jr-m-personal.on { background: var(--jp) }
.jr-chips, .jr-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px }
.jr-chip, .jr-tag { font: inherit; font-size: .84rem; border-radius: 999px; padding: 7px 13px; min-height: 36px; cursor: pointer; color: var(--fg, #EDEAF5);
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line, rgba(255, 255, 255, .14)) }
.jr-chip.on, .jr-tag.on { background: rgba(var(--jrgb), .2); border-color: rgba(var(--jrgb), .7); color: var(--ja2); font-weight: 600 }
.jr-pnote { margin: 0 0 10px; padding: 8px 12px; border-inline-start: 3px solid var(--ja); background: rgba(var(--jrgb), .07); border-radius: 8px; font-size: .92rem; line-height: 1.5 }
.jr-lbl { display: block; font-size: .78rem; font-weight: 600; color: var(--muted, #B9B4CC); margin-bottom: 6px; padding: 0 }
.jr-date { display: flex; align-items: center; gap: 8px } .jr-date .jr-lbl { margin: 0 }
.jr-date input { font: inherit; font-size: .88rem; color: var(--fg, #EDEAF5); background: var(--surface-2, rgba(255, 255, 255, .06)); border: 1px solid var(--line, rgba(255, 255, 255, .14)); border-radius: 10px; padding: 6px 10px; min-height: 36px; color-scheme: dark }
.jr-tawrap { position: relative }
.jr-ta { display: block; width: 100%; min-height: 150px; resize: vertical; font: inherit; font-size: 1rem; line-height: 1.6; color: var(--fg, #EDEAF5);
  background: var(--surface-2, rgba(255, 255, 255, .05)); border: 1px solid var(--line, rgba(255, 255, 255, .14)); border-radius: 16px; padding: 12px 14px; padding-inline-end: 56px }
.jr-ta:focus { outline: 2px solid rgba(var(--jrgb), .6); outline-offset: 1px }
.jr-mic { position: absolute; inset-inline-end: 8px; bottom: 8px; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  color: var(--ja2); background: rgba(var(--jrgb), .12); border: 1px solid rgba(var(--jrgb), .45) }
.jr-mic svg { width: 20px; height: 20px } .jr-mic.off { opacity: .55 }
.jr-mic.on { background: #E5484D; border-color: #E5484D; color: #fff; animation: jrPulse 1.4s ease-in-out infinite }
@keyframes jrPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(229, 72, 77, .5) } 50% { box-shadow: 0 0 0 8px rgba(229, 72, 77, 0) } }
.jr-under { display: flex; justify-content: space-between; gap: 10px; min-height: 6px; margin: 4px 2px 8px }
.jr-say { margin: 0; font-size: .82rem; color: var(--ja2) } .jr-say.bad { color: #FF9A9A }
.jr-count { font-size: .76rem; color: var(--muted, #9AA0B8); margin-inline-start: auto }
.jr-mood { border: 0; margin: 0 0 12px; padding: 0; min-width: 0 }
.jr-moods { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-bottom: 10px }
.jr-md { --mc: #8C93B8 } .jr-md1 { --mc: #7C8CD9 } .jr-md2 { --mc: #9AA6E8 } .jr-md3 { --mc: #C9C3A8 } .jr-md4 { --mc: #9BD9A8 } .jr-md5 { --mc: #F4D58A }
button.jr-md { font: inherit; font-size: .74rem; line-height: 1.2; display: grid; justify-items: center; gap: 6px; padding: 9px 4px; min-height: 64px; border-radius: 14px; cursor: pointer;
  color: var(--fg, #EDEAF5); background: rgba(255, 255, 255, .04); border: 1px solid var(--line, rgba(255, 255, 255, .12)); overflow-wrap: anywhere; text-align: center }
.jr-dot { display: block; width: 18px; height: 18px; border-radius: 50%; background: var(--mc); opacity: .45 }
button.jr-md.on { border-color: var(--mc); background: color-mix(in srgb, var(--mc) 18%, transparent) } button.jr-md.on .jr-dot { opacity: 1; box-shadow: 0 0 12px var(--mc) }
.jr-msg { margin: 8px 0 0; font-size: .88rem; min-height: 1px } .jr-msg.bad { color: #FF9A9A }
.jr-tools { display: grid; gap: 10px; min-width: 0 }
.jr-search input { width: 100%; font: inherit; font-size: .95rem; color: var(--fg, #EDEAF5); background: var(--surface, rgba(255, 255, 255, .05)); border: 1px solid var(--line, rgba(255, 255, 255, .14)); border-radius: 14px; padding: 10px 14px; min-height: 44px }
.jr-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px }
.jr-filters select, .jr-filters .btn { width: 100%; min-width: 0; min-height: 42px; border-radius: 12px; font-size: .86rem }
.jr-calbtn.on { border-color: var(--ja) }
.jr-caltop { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px }
.jr-calt { display: inline-block; font-weight: 600 }
.jr-wt { text-align: center; display: grid; gap: 2px; min-width: 0 }
.jr-arr { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: var(--fg, #EDEAF5); background: rgba(255, 255, 255, .05); border: 1px solid var(--line, rgba(255, 255, 255, .12)) }
.jr-arr svg { width: 18px; height: 18px } .jr-arr[disabled] { opacity: .3; cursor: default }
[dir="rtl"] .jr-arr svg { transform: scaleX(-1) }
.jr-calg { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px }
.jr-wd { text-align: center; font-size: .72rem; color: var(--muted, #9AA0B8); padding: 4px 0 }
.jr-cd { position: relative; font: inherit; font-size: .86rem; aspect-ratio: 1 / 1; min-height: 38px; border-radius: 12px; border: 1px solid transparent; background: rgba(255, 255, 255, .03); color: var(--fg, #EDEAF5); cursor: pointer; padding: 0 }
.jr-cd.empty { background: none; cursor: default }
.jr-cd.has { background: rgba(var(--jrgb), .12); font-weight: 600 }
.jr-cd.today { border-color: rgba(var(--jrgb), .6) }
.jr-cd.on { background: linear-gradient(135deg, var(--ja2), var(--ja)); color: var(--jink) }
.jr-cdot { position: absolute; left: 50%; bottom: 5px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--ja) }
.jr-cd.on .jr-cdot { background: var(--jink) }
.jr-list { display: grid; gap: 10px; min-width: 0 }
.jr-dayf { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; font-size: .9rem }
.jr-found { margin: 0; font-size: .86rem }
.jr-empty { margin: 4px 0; padding: 18px; border-radius: 18px; border: 1px dashed var(--line, rgba(255, 255, 255, .18)); color: var(--muted, #B9B4CC); line-height: 1.55 }
.jr-dayh { margin: 10px 2px 0; font-size: .82rem; font-weight: 700; letter-spacing: .02em; color: var(--muted, #B9B4CC) }
.jr-dayh::first-letter, .jr-calt::first-letter { text-transform: uppercase }
.jr-day { display: grid; gap: 10px }
.jr-entry { --ec: var(--jb); position: relative; padding: 14px 16px 10px; border-radius: 18px; background: var(--surface, #15132B); border: 1px solid var(--line, rgba(255, 255, 255, .1)); border-inline-start: 4px solid var(--ec); min-width: 0 }
.jr-e-career { --ec: var(--jc) } .jr-e-personal { --ec: var(--jp) }
.jr-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: .78rem; color: var(--muted, #B9B4CC); margin-bottom: 8px }
.jr-kind { font-weight: 700; color: var(--ec) }
.jr-mo { display: inline-flex; align-items: center; gap: 5px } .jr-mo .jr-dot { width: 10px; height: 10px; opacity: 1 }
.jr-shared { border: 1px solid var(--line, rgba(255, 255, 255, .2)); border-radius: 999px; padding: 1px 8px }
.jr-body { font-size: .98rem; line-height: 1.6; overflow-wrap: anywhere; white-space: normal }
.jr-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 14px; margin-top: 8px }
.jr-acts .btn.link { font-size: .84rem; text-decoration: none; padding: 4px 0 }
.jr-acts .jr-del { color: var(--muted, #B9B4CC) }
.jr-acts .jr-astra { margin-inline-start: auto; font-size: .82rem; min-height: 36px; border-color: rgba(var(--jrgb), .45); color: var(--ja2); background: rgba(var(--jrgb), .08) }
.jr-confirm { margin-top: 10px; padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line, rgba(255, 255, 255, .14)) }
.jr-confirm p { margin: 0 0 10px; font-size: .9rem; line-height: 1.5 }
.jr-delyes { border-color: #E5484D; color: #FF9A9A }
.jr-week .jr-wbig { margin: 2px 0 12px; font-size: 1.15rem; font-weight: 600; text-align: center }
.jr-wnone { text-align: center; margin: 6px 0 12px }
.jr-wmood { margin-bottom: 12px }
.jr-bars { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; height: 76px; align-items: end }
.jr-bar { height: 100%; display: grid; grid-template-rows: 1fr auto; justify-items: center; gap: 4px }
.jr-bar i { display: block; align-self: end; width: 100%; max-width: 30px; min-height: 3px; border-radius: 6px 6px 2px 2px; background: var(--mc) }
.jr-bar small { font-size: .7rem; color: var(--muted, #9AA0B8) }
.jr-wl { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 6px }
.jr-wl li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 12px; border-radius: 12px; background: rgba(255, 255, 255, .04); font-size: .88rem }
.jr-wl b { color: var(--ja2) }
.jr-wviews { margin: 0 0 8px; font-size: .82rem }
.jr-wnote { margin: 0; font-size: .74rem; color: var(--muted, #9AA0B8); opacity: .85 }
.jr-export p { margin: 8px 0 12px; font-size: .86rem; line-height: 1.5 }
.jr-fail p { margin: 0 0 12px }
@media (min-width: 700px) {
  .jr-filters { grid-template-columns: repeat(4, minmax(0, 1fr)) }
  .jr-card { padding: 20px }
}
@media (min-width: 1100px) {
  .jr-grid { grid-template-columns: minmax(0, 1fr) 340px; align-items: start }
  .jr-side { position: sticky; top: 16px }
  .jr-head h1 { font-size: 2rem }
}
@media (max-width: 380px) { button.jr-md { font-size: .68rem; padding: 8px 2px } .jr-m { padding: 8px 10px } }
@media (prefers-reduced-motion: reduce) { .jr-mic.on { animation: none } }
[dir="rtl"] .jr-page { font-family: 'Noto Kufi Arabic', var(--body, sans-serif) }
[dir="rtl"] .jr-ey { letter-spacing: 0 }
[dir="rtl"] .jr-body, [dir="rtl"] .jr-pq { line-height: 1.85 }
[dir="rtl"] .jr-cdot { left: auto; right: 50%; margin-left: 0; margin-right: -2.5px }
/* day (white) theme */
html.day .jr-card, html.day .jr-entry { background: #fff; border-color: rgba(23, 27, 43, .1) }
html.day .jr-entry { border-inline-start-color: var(--ec) }
html.day .jr-prompt { background: radial-gradient(120% 100% at 0% 0%, rgba(var(--jrgb), .16), transparent 60%), #fff }
html.day .jr-ey, html.day .jr-sky, html.day .jr-chip.on, html.day .jr-tag.on, html.day .jr-wl b, html.day .jr-page .btn.link, html.day .jr-say, html.day .jr-acts .jr-astra, html.day .jr-lock { color: var(--mo-deep, #8A621A) }
html.day .jr-sky { border-color: rgba(var(--jrgb), .6) }
html.day .jr-ta, html.day .jr-search input, html.day .jr-date input { background: #fff; color: #171B2B; color-scheme: light }
html.day .jr-chip, html.day .jr-tag, html.day button.jr-md, html.day .jr-arr, html.day .jr-cd, html.day .jr-wl li, html.day .jr-confirm, html.day .jr-seg { background: rgba(23, 27, 43, .04); color: #2A2E40 }
html.day .jr-cd.empty { background: none }
html.day .jr-cd.on { color: var(--jink) }
html.day .jr-flash { color: #1E7A47 }
html.day .jr-say.bad, html.day .jr-msg.bad, html.day .jr-delyes { color: #B3261E }
html.day .jr-page .btn.link { background: none !important; border: 0 !important; box-shadow: none !important }
html.day .jr-kind { color: color-mix(in srgb, var(--ec) 62%, #000) }
html.day .jr-cdot { background: var(--mo-deep, #8A621A) }
