/* Flower Block Blast shell: progress and discovery, with gameplay left intact. */
#retention-home,
#brain-open,
#intro-emblems,
:is(#weekly-dialog,#growth-dialog,#reminder-dialog,#share-dialog,#emblem-dialog,#emblem-detail,#journal-dialog,#journal-reader,#brain-dialog,#story-dialog,#boss-record,#level-dialog){
  color:var(--shell-ink,#253b56);
  text-shadow:none;
  color-scheme:light;
}

/* Today's challenge and the two smaller discovery cards keep their existing gates. */
#retention-home{margin:10px 0 16px;text-align:left}
#retention-home .today-card{
  grid-template-columns:36px minmax(0,1fr) auto;
  gap:10px;
  padding:14px 12px;
  border:2px solid var(--shell-line,#52637a);
  border-radius:22px;
  background:linear-gradient(165deg,#fffdf2,#fff0c9);
  box-shadow:inset 0 2px #fff, inset 0 0 0 2px var(--shell-cream,#fff6dd),0 4px 0 #b29467,0 7px 14px #263c5c20;
}
#retention-home .today-icon{
  display:grid;
  place-items:center;
  width:36px;
  height:40px;
  border-radius:14px;
  color:#805629;
  background:linear-gradient(#fff7c6,#ffdc84);
  box-shadow:inset 0 2px #fff9,0 2px 0 #c29b54;
  font-size:27px;
}
#retention-home .today-card small{color:#65717b;font-size:11px;line-height:1.5}
#retention-home .today-card b{margin:3px 0 7px;color:var(--shell-ink,#253b56);font-size:14px;line-height:1.45;word-break:keep-all;overflow-wrap:anywhere}
#retention-home .today-card>div{min-width:0}
#retention-home .today-card button{
  min-width:54px;
  min-height:46px;
  padding:10px;
  border:1px solid #567968;
  border-radius:15px;
  color:#244b45;
  background:linear-gradient(#effff3,#b8eed8)!important;
  box-shadow:inset 0 2px #fff,0 3px 0 #6c9a82;
  font-size:12px!important;
  line-height:1.35;
  white-space:normal;
  word-break:keep-all;
  overflow-wrap:anywhere;
}
#retention-home .today-card progress{height:7px;background:#e1d5ba;border:1px solid #a5977b;border-radius:7px}
#retention-home .today-card progress::-webkit-progress-bar{background:#e1d5ba}
#retention-home .today-card progress::-webkit-progress-value{background:linear-gradient(90deg,#6fc8ac,#bbeed4);border-radius:6px}
#retention-home .today-card progress::-moz-progress-bar{background:linear-gradient(90deg,#6fc8ac,#bbeed4);border-radius:6px}
#retention-home .day-boundary{display:block;color:#52695f!important;font-size:10px;line-height:1.6;word-break:keep-all;overflow-wrap:anywhere}
#retention-home>.day-boundary{padding:3px 2px 9px}
#retention-home .retention-links{gap:10px;margin-top:12px}
#retention-home .retention-links>button{
  min-height:76px;
  height:auto;
  margin:0;
  padding:11px 12px;
  gap:6px;
  border:2px solid var(--shell-line,#52637a);
  border-radius:19px;
  background:linear-gradient(155deg,#f0fff1,#c7ebd5)!important;
  color:var(--shell-ink,#253b56);
  box-shadow:inset 0 2px #fff, inset 0 0 0 2px #fff6dd,0 3px 0 #708c80,0 6px 10px #263c5c16;
  font-size:12px!important;
  line-height:1.45;
  word-break:keep-all;
  overflow-wrap:anywhere;
}
#retention-home .retention-links #growth-open{background:linear-gradient(155deg,#fff8e0,#ffe4a1)!important;box-shadow:inset 0 2px #fff,inset 0 0 0 2px #fff6dd,0 3px 0 #ab8a57,0 6px 10px #263c5c16}
#retention-home .retention-links>button>span{min-width:0}
#retention-home .retention-links b{color:#385449;font-size:12px}
#retention-home #growth-open b{color:#73562e}
#retention-home .retention-links em{color:#8ea99a;background:none!important;box-shadow:none!important;text-shadow:none}
#retention-home .retention-links em.filled{color:#ad7a31;background:none!important;box-shadow:none!important}
#retention-home .retention-links em.filled:after{content:none}
#retention-home #growth-open .emblem-art{width:42px;height:42px;flex:0 0 42px}

/* Garden preview: keep the collected flowers, with a calm mint label area. */
#brain-open.brain-home{
  min-height:152px;
  margin:16px 0;
  padding:18px 16px;
  border:2px solid var(--shell-line,#52637a);
  border-radius:23px;
  background:#dcf5e5!important;
  color:var(--shell-ink,#253b56)!important;
  box-shadow:inset 0 2px #fff,0 4px 0 #6f8f81,0 8px 15px #263c5c20;
}
#brain-open:after{background:linear-gradient(90deg,#dcf5e5 33%,#dcf5e5f5 49%,#dcf5e5b3 63%,#dcf5e500 89%)}
#brain-open .garden-home-copy{width:61%;text-shadow:none}
#brain-open .garden-home-copy>small{color:#486c5e;font-size:11px;font-weight:650}
#brain-open .garden-home-copy>b{color:#294d46;font-size:21px;line-height:1.35;word-break:keep-all;overflow-wrap:anywhere}
#brain-open .garden-home-copy>span{color:#3a5c4c}
#brain-open .garden-home-copy em{color:#4e7063;white-space:normal}
#brain-open .garden-home-copy .garden-home-cta{gap:10px;color:#38594d;font-size:12px;font-weight:700}
#brain-open .garden-home-cta i{color:#31594b;background:#f9ffe7;border:1px solid #7c9c8e;box-shadow:0 2px 0 #a8c3b3;width:26px;height:26px}
#brain-open .garden-miniature{box-shadow:inset 0 2px #ffffff55}

#intro-emblems.album-entry{
  height:auto;
  min-height:64px;
  margin:14px 0 8px;
  padding:8px 13px 8px 9px;
  gap:10px;
  border:2px solid var(--shell-line,#52637a);
  border-radius:20px;
  background:linear-gradient(140deg,#fff6fb,#efcfe4)!important;
  color:var(--shell-ink,#253b56);
  box-shadow:inset 0 2px #fff,inset 0 0 0 2px #fff6dd,0 3px 0 #a6849c,0 7px 12px #263c5c1a;
}
#intro-emblems.album-entry>span{min-width:0}
#intro-emblems span b{font-size:13px;line-height:1.4;word-break:keep-all;overflow-wrap:anywhere}
#intro-emblems span small{font-size:11px;line-height:1.45;color:#746477}
#intro-emblems>i{display:grid;place-items:center;flex:none;width:27px;height:27px;border:1px solid #a18b9d;border-radius:50%;background:#fff6fa;color:#6e5267;font-size:24px;line-height:1;font-style:normal}

/* Progress sheets are deliberately scoped: combat sheets and game controls retain their styling. */
dialog:is(#weekly-dialog,#growth-dialog,#reminder-dialog,#share-dialog,#emblem-dialog,#emblem-detail,#journal-dialog,#journal-reader,#brain-dialog,#story-dialog,#boss-record){
  border:2px solid var(--shell-line,#52637a)!important;
  border-radius:28px;
  background:linear-gradient(155deg,#fffdf3,#fff6e8)!important;
  color:var(--shell-ink,#253b56)!important;
  box-shadow:inset 0 0 0 3px var(--shell-cream,#fff6dd),0 6px 0 #637289,0 22px 60px #152e4959!important;
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
  max-height:calc(100dvh - 28px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
}
:is(#weekly-dialog,#growth-dialog,#reminder-dialog,#share-dialog,#emblem-dialog,#emblem-detail,#journal-dialog,#journal-reader,#brain-dialog,#story-dialog,#boss-record) h2{
  color:var(--shell-ink,#253b56);
  font-style:normal;
  text-shadow:0 1px #fff;
  letter-spacing:-.025em;
  line-height:1.35;
  word-break:keep-all;
  overflow-wrap:anywhere;
}
:is(#weekly-dialog,#growth-dialog,#reminder-dialog,#share-dialog,#emblem-dialog,#emblem-detail,#journal-dialog,#journal-reader,#brain-dialog,#story-dialog,#boss-record) :is(button,select,input,textarea,a):focus-visible,
:is(#retention-home,#brain-open,#intro-emblems):focus-visible,
#retention-home button:focus-visible{
  outline:3px solid #2f7281!important;
  outline-offset:3px;
}
:is(#weekly-dialog,#growth-dialog,#reminder-dialog,#share-dialog) .retention-header,
:is(#journal-dialog,#journal-reader,#brain-dialog) .journal-header{
  border-bottom:2px solid #9aab9d;
  background:linear-gradient(160deg,#f4fff0,#d2eddc)!important;
  box-shadow:inset 0 2px #fff;
  padding:15px 16px;
}
dialog.retention-dialog .retention-header h2{color:var(--shell-ink,#253b56);font-size:22px;line-height:1.3}
.retention-dialog .retention-heading-icon{background:linear-gradient(#fffbed,#ffe6a3);border:1px solid #b79a65;border-radius:13px;color:#7d6036;box-shadow:inset 0 2px #fff}
dialog.retention-dialog .retention-header button,
dialog.journal-sheet .journal-dismiss,
:is(#emblem-dialog,#emblem-detail) .album-close,
:is(#story-dialog,#boss-record) .modal-dismiss{
  flex:none;
  width:44px!important;
  height:44px!important;
  min-width:44px;
  min-height:44px!important;
  padding:10px!important;
  margin:0;
  border:1px solid #7a8c81!important;
  border-radius:15px!important;
  background:linear-gradient(#fffef2,#d9eadb)!important;
  color:#3d5a51!important;
  box-shadow:inset 0 2px #fff,0 2px 0 #9bad9d!important;
  text-shadow:none;
}
:is(#emblem-dialog,#emblem-detail) .album-close{padding:0!important;font-size:28px;line-height:1}
:is(#story-dialog,#boss-record) .modal-dismiss{right:12px;top:12px;z-index:4}
:is(#story-dialog,#boss-record) .modal-dismiss svg{display:block;width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:2.5;stroke-linecap:round}
.retention-dialog .retention-body{padding:18px;scrollbar-color:#9bb2a5 #f7f5e9}
.retention-dialog .retention-body :is(p,small){color:var(--shell-muted,#617083);line-height:1.65}
.retention-dialog .retention-body :is(p,b,small,label){word-break:keep-all;overflow-wrap:anywhere}
.retention-dialog .retention-body>button,
#growth-dialog .growth-preview>button:not(#growth-collection),
#emblem-detail :is(.emblem-action,.evolution-play),
#story-dialog #story-play,
#boss-record #boss-record-play{
  min-height:48px;
  padding:12px 16px;
  border:1px solid #a98350;
  border-radius:17px;
  background:linear-gradient(#fff8c9,#ffdc87)!important;
  color:#644b30!important;
  box-shadow:inset 0 2px #fff,0 3px 0 #b08b58!important;
  font-size:14px;
  line-height:1.45;
  white-space:normal;
  word-break:keep-all;
  overflow-wrap:anywhere;
  text-shadow:0 1px #ffffff8c;
}
.retention-dialog button:disabled,#emblem-detail button:disabled{opacity:.55;filter:saturate(.5);cursor:default}
.retention-dialog :is(select,input[type=number],textarea){min-height:46px;border:1px solid #91a59c;border-radius:14px;background:#fffdf3!important;color:var(--shell-ink,#253b56)!important;padding:10px;font:inherit;box-shadow:inset 0 2px 3px #5b6f6b13}
#growth-dialog .growth-label{color:#587060;font-size:13px;line-height:1.5}
#weekly-dialog .weekly-summary{border:1px solid #a5c5ad;border-radius:22px;background:linear-gradient(145deg,#edf9e9,#d5efdc);box-shadow:inset 0 2px #fff}
#weekly-dialog .weekly-summary-top>b{color:#466353;font-size:14px}
#weekly-dialog .weekly-summary-top strong{color:#6c542e;font-size:31px}
#weekly-dialog .weekly-summary-top small{color:#64755e}
#weekly-dialog .day-boundary{color:#52695f!important}
#weekly-dialog .weekly-stamps:before{background:#9fbea6;top:42px}
#weekly-dialog .weekly-stamps>span{border:1px solid #a5b8a8;background:linear-gradient(#f7fff2,#dce8db);color:#92aa94;box-shadow:inset 0 2px #fff}
#weekly-dialog .weekly-stamps>span.earned-stamp{background:linear-gradient(#fff9c8,#ffda84);color:#866032;border-color:#b99b5e;box-shadow:inset 0 2px #fff,0 3px 0 #c0a36b}
#weekly-dialog .retention-section-title h3{color:var(--shell-ink,#253b56);font-size:16px}
#weekly-dialog .retention-section-title>span{color:var(--shell-muted,#617083)}
#weekly-dialog .decoration-grid{gap:9px}
#weekly-dialog .decoration-grid button{min-height:106px;padding:10px 5px;border:1px solid #acbcb3;border-radius:17px;background:linear-gradient(#fffef6,#e7f0e7)!important;color:#61766b;box-shadow:inset 0 2px #fff,0 2px 0 #bdc9bf!important}
#weekly-dialog .decoration-grid button[aria-pressed=true]{border:2px solid #b28c4d;background:linear-gradient(#fff9d9,#ffe6a5)!important;box-shadow:inset 0 0 0 2px #fff6d9,0 2px 0 #bb9e68!important}
#weekly-dialog .decoration-grid small{color:#536958;font-size:11px;line-height:1.45}
#growth-dialog .growth-preview{gap:10px;padding-top:18px}
#growth-dialog .growth-preview h3{color:#435a56;font-size:21px;line-height:1.4}
#growth-dialog .growth-preview>b{color:#526458;font-size:14px}
#growth-dialog .growth-preview .growth-total{color:#77592c;font-size:30px}
#growth-dialog .growth-total small{color:#6e7b69;font-size:15px}
#growth-dialog .growth-preview progress{height:9px;border:1px solid #a8b9a6;background:#dbe4d6}
#growth-dialog .growth-preview progress::-webkit-progress-bar{background:#dbe4d6}
#growth-dialog .growth-preview progress::-webkit-progress-value{background:linear-gradient(90deg,#81cfb4,#ffe49a)}
#growth-dialog .growth-preview progress::-moz-progress-bar{background:linear-gradient(90deg,#81cfb4,#ffe49a)}
#growth-dialog .growth-stages{gap:5px;margin:12px 0}
#growth-dialog .growth-stages li{padding:8px 2px;border:1px solid #bccabc;background:#e8eee3;color:#697d73;border-radius:13px}
#growth-dialog .growth-stages li.target{border-color:#b99558;background:#fff1bf;color:#785d30;box-shadow:inset 0 1px #fff}
#growth-dialog .growth-stages li.reached{color:#3c7860;background:#ddf0e1}
#growth-dialog .growth-preview #growth-collection{min-height:44px;margin:0;padding:10px;color:#4b6659;background:transparent!important;border:0;box-shadow:none!important}
#reminder-dialog .push-optin-art{background:linear-gradient(#f8fff1,#c8ebd6);border:1px solid #8ea995;box-shadow:inset 0 2px #fff,0 4px 0 #b7cbb8}
#reminder-dialog .push-optin-art svg{stroke:#507961}
#reminder-dialog #reminder-status{color:#6f603c}
#reminder-dialog #reminder-later{color:#607265!important;background:transparent!important;border:0;box-shadow:none!important}
#share-dialog .share-card-preview{border:2px solid #b7c4b6;background:#fffdf6;border-radius:21px;margin-bottom:16px}
#share-dialog .share-link-note{color:#63736a}
#share-dialog .share-link-copy{min-height:44px!important;background:#e5f0e6!important;color:#476358!important;border-color:#99afa0;box-shadow:0 2px 0 #bbcbbb!important}

/* Collection pages use the same enamel, cream rim and candy depth as the logo. */
#emblem-dialog{padding:21px 17px 17px;width:min(94vw,460px)}
#emblem-dialog .album-top{gap:12px}
#emblem-dialog .album-top small{color:#7b7160;font-size:9px;letter-spacing:1.7px}
#emblem-dialog .album-top h2{font-size:23px;margin:5px 0 0}
#emblem-dialog #album-hero{gap:12px;margin:18px 0;padding:12px 9px;border:1px solid #b9c8ac;border-radius:22px;background:radial-gradient(ellipse at 20% 50%,#fff4bf,transparent 78%),linear-gradient(140deg,#f7f8de,#e4f1df);box-shadow:inset 0 2px #fff}
#emblem-dialog #album-hero h3{color:#3d594c;font-size:18px;line-height:1.4;word-break:keep-all;overflow-wrap:anywhere}
#emblem-dialog #album-hero :is(p,small){color:#6c7a65;font-size:11px;line-height:1.5}
#emblem-dialog #album-hero p b{color:#5b593b}
#emblem-dialog .album-spotlight,#emblem-dialog .album-spotlight>.emblem-art{width:112px}
#emblem-dialog .album-filters{gap:8px;margin:16px 0 20px}
#emblem-dialog .album-filters button{min-width:0;min-height:46px;padding:10px 5px;border:1px solid #a8b9ae;border-radius:14px;background:linear-gradient(#fffef4,#e6efdf)!important;color:#52695a;font-size:12px;line-height:1.4;word-break:keep-all;overflow-wrap:anywhere;box-shadow:inset 0 2px #fff,0 2px 0 #bac7b8}
#emblem-dialog .album-filters button[aria-pressed=true]{border-color:#b2955b;background:linear-gradient(#fff7ce,#ffe3a1)!important;color:#795c31;box-shadow:inset 0 2px #fff,0 2px 0 #c6ac76}
#emblem-dialog .evolution-grid{gap:13px}
#emblem-dialog .evolution-card{grid-template-columns:88px minmax(0,1fr) 12px;gap:10px;padding:13px 10px;border:1px solid #b7c7ba;border-radius:22px;background:linear-gradient(145deg,#fafff4,#e4efdf)!important;color:#54715f;box-shadow:inset 0 2px #fff,0 3px 0 #b4c2af}
#emblem-dialog .evolution-card.owned{border-color:#b9a474;background:linear-gradient(145deg,#fffceb,#f9ebc9)!important}
#emblem-dialog .evolution-card.equipped{border:2px solid #a58b4e;background:linear-gradient(145deg,#fff8d5,#ffe4a3)!important;box-shadow:inset 0 0 0 2px #fff8df,0 3px 0 #b39b67}
#emblem-dialog .evolution-card>.emblem-art{width:88px}
#emblem-dialog .evolution-info>small{font-size:11px;color:#697d69;line-height:1.4}
#emblem-dialog .evolution-info>b{color:#3b564b;font-size:16px;line-height:1.4;word-break:keep-all;overflow-wrap:anywhere}
#emblem-dialog .evolution-steps{gap:4px;margin:10px 0}
#emblem-dialog .evolution-steps i{width:23px;height:20px;border:1px solid #bdcbbb;border-radius:6px;background:#e2e9dc;color:#7c8d80;font-size:10px}
#emblem-dialog .evolution-steps i.reached{color:#73592d;border-color:#c1a061;background:linear-gradient(#fff4c3,#ffdfa0);box-shadow:inset 0 1px #fff}
#emblem-dialog .evolution-goal{flex-wrap:wrap;color:#6c7866;font-size:10px;line-height:1.5}
#emblem-dialog .evolution-goal strong{color:#746135;white-space:normal}
#emblem-dialog .evolution-arrow{color:#8b805e}
:is(#emblem-dialog,#emblem-detail) .album-track{height:6px;border:1px solid #b1c3b0;background:#d8e4d4;border-radius:8px}
:is(#emblem-dialog,#emblem-detail) .album-track i{background:linear-gradient(90deg,#81ccae,#ffe49a)}
#emblem-dialog .emblem-new{color:#794a57;background:#ffd3df;border:1px solid #c28b9e;border-radius:7px;font-size:8px;box-shadow:inset 0 1px #fff}
#emblem-dialog :is(.album-empty,.album-local){color:#6c7b6a;line-height:1.6}
#emblem-dialog .album-local{font-size:11px;margin-top:17px}
#emblem-detail{width:min(94vw,420px);padding:40px 22px 22px;background:radial-gradient(ellipse at 50% 22%,#fff2bc,transparent 52%),linear-gradient(#fffdf3,#fff6e8)!important}
#emblem-detail .detail-tier{color:#806340;font-size:11px;padding:5px 33px 0;line-height:1.5}
#emblem-detail h2{font-size:23px;margin:7px 0 18px}
#emblem-detail p{color:#657366;font-size:13px;line-height:1.65;word-break:keep-all;overflow-wrap:anywhere}
#emblem-detail .detail-progress{color:#765b32;font-size:27px}
#emblem-detail .detail-progress span{color:#6f7d6d;font-size:13px}
#emblem-detail .evolution-path{gap:6px}
#emblem-detail .evolution-path button{min-height:70px;border:1px solid #b3c3b4;border-radius:13px;background:linear-gradient(#f8fff1,#deead9)!important;color:#647d6e;box-shadow:inset 0 2px #fff}
#emblem-detail .evolution-path button[aria-pressed=true]{border:2px solid #b49153;background:linear-gradient(#fff7c8,#ffe19b)!important;color:#735831;box-shadow:inset 0 1px #fff}
#emblem-detail .evolution-path i{color:#38694c}
#emblem-detail .evolution-caption{color:#9a6d35}
#emblem-detail .evolution-play{margin-top:12px;border-color:#7c9d8b;background:linear-gradient(#f3fff1,#c1ead2)!important;color:#3c6251!important;box-shadow:inset 0 2px #fff,0 3px 0 #8fab97!important}
#emblem-detail .detail-note{color:#74806e;font-size:11px;line-height:1.6}

/* A bright journal remains easy to read, with no decorative motion over its text. */
dialog.journal-sheet{padding:0;border-radius:26px;text-align:left}
dialog.journal-sheet .journal-header h2{font-size:20px;color:var(--shell-ink,#253b56);font-weight:850}
#brain-dialog .journal-header h2{color:var(--shell-ink,#253b56)}
dialog.journal-sheet .journal-body{background:#fff9ed;scrollbar-color:#a6b9a7 #fff9ed}
dialog.journal-sheet :is(.journal-intro,.journal-note,.journal-empty){color:#657366!important;line-height:1.7!important}
dialog.journal-sheet button{min-height:44px;line-height:1.45;white-space:normal;word-break:keep-all;overflow-wrap:anywhere}
dialog.journal-sheet .journal-filters{gap:9px;flex-wrap:wrap}
dialog.journal-sheet .journal-filters button{padding:10px 17px;border:1px solid #a5b5a1!important;border-radius:16px;background:linear-gradient(#fffef4,#e9f0de)!important;color:#526a57!important;box-shadow:inset 0 2px #fff,0 2px 0 #bdc8b4!important;font-weight:650}
dialog.journal-sheet .journal-filters button[aria-pressed=true]{background:linear-gradient(#e8fff0,#bde9d1)!important;color:#345f4b!important;border-color:#7ca58b!important;box-shadow:inset 0 2px #fff,0 2px 0 #9ab9a1!important}
dialog.journal-sheet .journal-card{padding:11px;gap:13px;border:1px solid #c6c8b4!important;border-radius:22px!important;background:linear-gradient(145deg,#fffef8,#fff1d7)!important;box-shadow:inset 0 2px #fff,0 3px 0 #d1c5a8!important}
dialog.journal-sheet .journal-card img{border-radius:15px;border:1px solid #e2d9c4}
dialog.journal-sheet .journal-card b{color:#355348;line-height:1.45}
dialog.journal-sheet .journal-card :is(small,em){color:#6f7b68;line-height:1.5}
dialog.journal-sheet .journal-cover{border-bottom:3px solid #fff0c9}
dialog.journal-sheet .journal-category{color:#69825e;font-size:12px;line-height:1.6;letter-spacing:.03em}
dialog.journal-sheet .journal-prose h1{color:#2c4c45;text-shadow:none;font-size:clamp(23px,6vw,31px);line-height:1.45;word-break:keep-all;overflow-wrap:anywhere}
dialog.journal-sheet .journal-prose p{color:#3e514c;line-height:1.95;word-break:keep-all;overflow-wrap:anywhere}
dialog.journal-sheet .journal-prose .journal-lead{color:#637859;border-bottom-color:#d7debd}
dialog.journal-sheet .journal-sources{background:#e9f0de;border:1px solid #c7d1b7;border-radius:17px;color:#56684f}
dialog.journal-sheet .journal-sources a{color:#376d67;min-height:44px}
dialog.journal-sheet .journal-read{border:1px solid #a6b799!important;border-radius:16px;background:linear-gradient(#f8ffec,#deebcd)!important;color:#4b6d50!important;font-weight:650;box-shadow:inset 0 2px #fff,0 2px 0 #bdcbb0!important}
dialog.journal-sheet .journal-actions{border-top:2px solid #cbd2b9;background:linear-gradient(#fffdf0,#f2f5e5);gap:10px}
dialog.journal-sheet .journal-actions button{min-height:48px;border:1px solid #93af9c!important;border-radius:16px;background:linear-gradient(#f1fff2,#c9ecd4)!important;color:#3e6751!important;box-shadow:inset 0 2px #fff,0 2px 0 #a9c1a9!important;font-weight:650}
dialog.journal-sheet .journal-actions [aria-pressed=true]{color:#8f4e69!important;background:linear-gradient(#fff0f7,#f3cddd)!important;border-color:#be91a4!important;box-shadow:inset 0 2px #fff,0 2px 0 #c9a0b1!important}
dialog.journal-sheet .journal-copy{background:#fffef6;color:#3d564b;border:1px solid #9bb29e;border-radius:13px;line-height:1.7}
dialog.journal-sheet .journal-read-status{color:#4c7755!important}

/* Garden statistics and the player's arranged flower bed retain their own artwork. */
#brain-dialog .journal-body{padding:17px 16px 24px;background:radial-gradient(ellipse at 95% 3%,#f9e5bf,transparent 55%),#fff9ed}
#brain-dialog .garden-hero{padding:20px 16px 15px;border:1px solid #a4bea4;border-radius:24px;background:radial-gradient(ellipse at 50% 30%,#fff8cdaa,transparent 70%),linear-gradient(145deg,#effbe5,#d7ead8);box-shadow:inset 0 2px #fff,0 3px 0 #bbccb3}
#brain-dialog .garden-hero h3{color:#345c4c;font-size:24px;line-height:1.4;letter-spacing:-.025em;word-break:keep-all;overflow-wrap:anywhere}
#brain-dialog .garden-brain-level{background:linear-gradient(#fff8d9,#ffe5a0);border:1px solid #b69a63;color:#6d633f;border-radius:16px;box-shadow:inset 0 1px #fff;font-size:12px}
#brain-dialog .garden-brain-level b{color:#7c5d2d}
#brain-dialog .garden-refresh{color:#4d6955!important;line-height:1.7!important}
#brain-dialog .garden-refresh span{color:#6a8068;font-size:12px}
#brain-dialog .garden-level-label{color:#536e59;font-size:12px;line-height:1.5}
#brain-dialog .garden-gauge{height:10px;background:#cfddc4;border:1px solid #94b08c;border-radius:9px;box-shadow:inset 0 1px 2px #68845c22}
#brain-dialog .garden-times{gap:10px;margin:17px 0 10px}
#brain-dialog .garden-times>div{padding:13px 5px;border:1px solid #b0c3a9;border-radius:17px;background:#f9fce8;box-shadow:inset 0 2px #fff}
#brain-dialog .garden-times small{color:#6b7e61;line-height:1.5}
#brain-dialog .garden-times b{color:#3d6251;font-size:18px;line-height:1.4}
#brain-dialog :is(.garden-next,.garden-tracking){color:#687867!important;line-height:1.7!important}
#brain-dialog .garden-bed{margin:20px 0;padding:17px 12px 16px;border:1px solid #a6bfa4;border-radius:24px;background:linear-gradient(145deg,#f5fae3,#dbeacc);box-shadow:inset 0 2px #fff,0 3px 0 #b0c0a4}
#brain-dialog .garden-bed p{color:#526b4b!important}
#brain-dialog .garden-day-boundary{color:#52695f!important}
#brain-dialog .garden-bed-heading{gap:10px;margin-bottom:15px}
#brain-dialog .garden-bed-heading small{color:#6b7c57;font-size:11px;line-height:1.5}
#brain-dialog .garden-bed-heading h3{color:#3d6045;font-size:22px;line-height:1.4;word-break:keep-all;overflow-wrap:anywhere}
#brain-dialog .garden-count strong{font-size:30px;color:#826331}
#brain-dialog .garden-count span{font-size:12px;color:#6a7e5b}
#brain-dialog .garden-plant-hint{color:#61785a;font-size:12px;line-height:1.7}
#brain-dialog .garden-editor-board{box-shadow:0 0 0 2px #9db18d,0 0 0 5px #f9f5db,0 4px 0 5px #a6b58e}
/* Do not enlarge the eight-column planting cells: they are direct manipulation targets. */
#brain-dialog button.garden-slot{min-height:0;border-color:#e9efc76e!important;background:#27453315!important;box-shadow:none!important}
#brain-dialog button.garden-slot.occupied{border-color:transparent!important;background:transparent!important}
#brain-dialog button.garden-slot[aria-pressed=true],#brain-dialog button.garden-slot.garden-drop-target{border:2px solid #fff5bf!important;background:#fff2ad38!important;outline:1px solid #a28a4f;outline-offset:1px}
#brain-dialog .garden-plot-nav{gap:18px;margin:15px 0 12px}
#brain-dialog .garden-plot-nav button{width:44px;height:44px;min-height:44px;padding:0;border:1px solid #93ae8e!important;border-radius:15px!important;background:linear-gradient(#fbffef,#d9e9c8)!important;color:#4d7051!important;box-shadow:inset 0 2px #fff,0 2px 0 #adbf9e!important}
#brain-dialog .garden-plot-nav>span{color:#566e4e;font-size:12px;line-height:1.5}
#brain-dialog .garden-plot-nav small{color:#718263;line-height:1.5}
#brain-dialog .garden-inventory{margin-top:20px}
#brain-dialog .garden-inventory>b{color:#56754d;font-size:13px;line-height:1.5}
#brain-dialog .garden-inventory button{width:49px;height:61px;min-height:44px;border:1px solid #a1b895!important;border-radius:14px!important;background:linear-gradient(#fbfff0,#dce9cd)!important;box-shadow:inset 0 2px #fff,0 2px 0 #bcc9a9!important}
#brain-dialog .garden-inventory button[aria-pressed=true]{border:2px solid #b69653!important;background:linear-gradient(#fff6c8,#ffe4a4)!important;box-shadow:inset 0 1px #fff,0 2px 0 #bca36b!important}
#brain-dialog .garden-inventory :is(small,p){color:#59704d;line-height:1.6}
#brain-dialog .garden-history{margin:26px 0 14px;padding:0 3px}
#brain-dialog .garden-history h3{color:#3d604a;font-size:16px;line-height:1.5}
#brain-dialog .garden-history>small{color:#71806d;font-size:11px;line-height:1.6}
#brain-dialog .garden-history li{color:#60725c;border-bottom:1px solid #cbd7bc;padding:13px 0 16px;line-height:1.5}
#brain-dialog .garden-history li:first-child{color:#3f634b}
#brain-dialog .garden-history li span{color:#846832}
#brain-dialog .garden-history li i{background:#8bb59a;height:3px;border-radius:4px}
#brain-dialog .brain-moment{margin-top:25px;padding:23px 15px;border:1px solid #c8adc2;border-radius:24px;background:linear-gradient(145deg,#fff4ed,#f0deef);box-shadow:inset 0 2px #fff,0 3px 0 #cfb7c7}
#brain-dialog .brain-moment h3{color:#705773;font-size:25px;line-height:1.4;word-break:keep-all;overflow-wrap:anywhere}
#brain-dialog .brain-moment :is(p,small){color:#7a6a7b;line-height:1.7}
dialog.journal-sheet #brain-share{background:linear-gradient(#fff6c5,#ffdd91)!important;color:#775833!important;border:1px solid #bc9e62!important;border-radius:16px;box-shadow:inset 0 2px #fff,0 3px 0 #c0a473!important;font-weight:750}
dialog.journal-sheet #brain-copy{min-height:44px;background:transparent!important;color:#7b6578!important;border:0!important;box-shadow:none!important}

/* Stage maps keep their painted path, anchors, fog and motion; only navigation and badges change. */
#level-dialog{color:var(--shell-ink,#253b56);background:linear-gradient(#deeedc,#d6e7dc)}
#level-dialog .map-header{gap:5px 14px;padding:calc(13px + env(safe-area-inset-top)) 17px 15px;border-bottom:3px solid #a1b393;background:linear-gradient(150deg,#fffdf0,#e1f1db)!important;box-shadow:inset 0 2px #fff,0 4px 0 #f9f4d7,0 8px 16px #243b4c26}
#level-dialog .map-header h2{color:#315747;font-size:23px;line-height:1.4;font-weight:850;font-family:inherit;text-shadow:0 1px #fff;letter-spacing:-.025em}
#level-dialog #journey-progress{color:#667c62;font-family:inherit;font-size:12px;line-height:1.6;word-break:keep-all;overflow-wrap:anywhere}
#level-dialog #garden-name{max-width:100%;padding:5px 11px;border:1px solid #baa26a;border-radius:13px;background:linear-gradient(#fff9d6,#ffe8af);color:#7b6136;font-size:11px;line-height:1.5;white-space:normal;word-break:keep-all;overflow-wrap:anywhere;box-shadow:inset 0 1px #fff}
#level-dialog #map-close{width:56px;min-width:56px;height:54px;min-height:44px;gap:2px;padding:7px;border:1px solid #7b9b83;border-radius:17px;background:linear-gradient(#f6ffeb,#c4e5c6)!important;color:#385c47!important;box-shadow:inset 0 2px #fff,0 3px 0 #95af91!important}
#level-dialog #map-close svg{display:block;width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
#level-dialog #map-close span{color:#48604a;font-size:10px;line-height:1.2}
#level-dialog #map-close:focus-visible,#level-dialog .journey-node:focus-visible{outline:3px solid #fff5c5!important;outline-offset:4px}
#level-dialog #tile-road-hint{margin:0;padding:10px 16px;color:#5d7759;background:#edf5e0;border-bottom:1px solid #adbf9a;font-size:12px;line-height:1.6;word-break:keep-all;overflow-wrap:anywhere}
#level-dialog #level-grid .journey-node{border:2px solid #fff6d8;box-shadow:0 0 0 2px #425e5d,0 4px 0 #375052,0 7px 10px #17383280}
#level-dialog #level-grid .journey-node:disabled{border-color:#d6dfcd;box-shadow:0 0 0 1px #6c8581,0 4px 0 #536d6a;opacity:.8}
#level-dialog #level-grid .journey-node.next-stop{border-color:#fff9d4;outline-color:#ffeaa5}
#level-dialog #level-grid .journey-node.bloomed b{background:#fff5dc;color:#4f664c;text-shadow:none;border:1px solid #c7b785}
#level-dialog #level-grid .journey-node.next-stop small{background:linear-gradient(#fff8cd,#ffdfa1);border:1px solid #bf9d60;color:#76572e;box-shadow:inset 0 1px #fff,0 3px 0 #a98048,0 5px 9px #203a4659;word-break:keep-all;overflow-wrap:anywhere;white-space:normal;max-width:128px}
#story-dialog,#boss-record{width:min(380px,calc(100vw - 24px));padding:56px 22px 24px;text-align:center}
#story-dialog #story-kicker{padding:0 30px;color:#70836a;font-size:12px;line-height:1.5;font-weight:750;letter-spacing:.07em}
#story-dialog #story-title,#boss-record #boss-record-name{font-size:26px;color:#365748;line-height:1.35;letter-spacing:-.025em;text-shadow:0 1px #fff}
#story-dialog #story-body,#boss-record :is(#boss-record-detail,#boss-record-hint){color:#657660;font-size:14px;line-height:1.75;white-space:pre-line;word-break:keep-all;overflow-wrap:anywhere}
#story-dialog #story-rules{padding:12px 8px;color:#62725e;background:#eef3de;border:1px solid #ccd6b8;border-radius:18px;line-height:1.6}
#story-dialog .story-stars{gap:10px;flex-wrap:wrap;color:#806331;font-size:11px;line-height:1.5}
#story-dialog .guide-chip{max-width:100%;background:#fff9e4;border:1px solid #c9bf9e;color:#62715a;border-radius:13px;white-space:normal;min-height:40px;padding:8px 10px;line-height:1.5}
#story-dialog .guide-chip b{color:#7b602f}
#story-dialog .guide-chip em{color:#506f5a}
#story-dialog :is(.boss-intro-rule,.story-note){color:#63765d}

@media(max-width:350px){
  #retention-home .today-card{grid-template-columns:30px minmax(0,1fr);gap:8px;padding:12px 10px}
  #retention-home .today-icon{width:30px;height:36px;font-size:23px}
  #retention-home .today-card>button{grid-column:1/-1;min-height:44px}
  #retention-home .retention-links{gap:9px}
  #retention-home .retention-links>button{padding:10px 8px;font-size:11px!important;gap:5px;min-height:78px}
  #retention-home #growth-open .emblem-art{width:35px;height:35px;flex-basis:35px}
  #brain-open.brain-home{padding:15px 12px;min-height:150px}
  #brain-open .garden-home-copy{width:66%}
  #brain-open .garden-home-copy>b{font-size:19px;line-height:1.4}
  #brain-open .garden-home-copy em{display:block;margin-top:3px}
  dialog.retention-dialog .retention-header{padding:14px 12px;gap:8px}
  dialog.retention-dialog .retention-header h2{font-size:20px}
  .retention-dialog .retention-body{padding:15px 12px}
  #weekly-dialog .decoration-grid{gap:7px}
  #weekly-dialog .decoration-grid button{min-height:100px;padding:8px 3px}
  #emblem-dialog{padding:18px 12px 15px}
  #emblem-dialog .album-spotlight,#emblem-dialog .album-spotlight>.emblem-art{width:86px}
  #emblem-dialog #album-hero{gap:8px;padding:11px 6px}
  #emblem-dialog #album-hero h3{font-size:16px}
  #emblem-dialog .evolution-card{grid-template-columns:68px minmax(0,1fr) 9px;gap:8px;padding:12px 8px}
  #emblem-dialog .evolution-card>.emblem-art{width:68px}
  #emblem-dialog .evolution-info>b{font-size:14px}
  #emblem-dialog .evolution-steps{gap:3px}
  #emblem-dialog .evolution-steps i{width:19px;font-size:9px}
  #emblem-detail{padding:42px 13px 20px}
  #emblem-detail .evolution-path{gap:4px}
  #emblem-detail .evolution-path button{min-height:62px;padding:5px 0}
  #brain-dialog .journal-body{padding:14px 11px 22px}
  #brain-dialog .garden-hero{padding:18px 12px 14px}
  #brain-dialog .garden-hero h3{font-size:22px}
  #brain-dialog .garden-bed{padding:15px 10px}
  #brain-dialog .garden-bed-heading h3{font-size:19px}
  #brain-dialog .garden-count strong{font-size:27px}
  #brain-dialog .garden-times b{font-size:16px}
  dialog.journal-sheet .journal-card{grid-template-columns:78px minmax(0,1fr);gap:10px;padding:9px}
  dialog.journal-sheet .journal-card img{width:78px}
  #level-dialog .map-header{padding-left:13px;padding-right:13px;gap:5px 10px}
  #level-dialog .map-header h2{font-size:21px}
  #story-dialog,#boss-record{padding:58px 16px 22px}
}
@media(orientation:landscape) and (max-height:600px){
  dialog:is(#weekly-dialog,#growth-dialog,#reminder-dialog,#share-dialog,#emblem-dialog,#emblem-detail,#journal-dialog,#journal-reader,#brain-dialog,#story-dialog,#boss-record){max-height:calc(100dvh - 20px)}
  dialog.retention-dialog .retention-header,:is(#journal-dialog,#journal-reader,#brain-dialog) .journal-header{padding:10px 15px;min-height:65px}
  #level-dialog .map-header{padding-top:calc(7px + env(safe-area-inset-top));padding-bottom:9px}
}
