
/* =====================================================================
   DESIGN SETTINGS — edit this section first, then run: python3 build.py
   These defaults preserve the current Grimoire. Shared by BOTH outputs.
   Design tokens are scoped to #mmg-app. The page rim reset only applies to pages containing this application.
   ===================================================================== */
#mmg-app {

  /* COLOURS — base palette and preserved subtle tints */
  --mm-bg: #f2e8d5;
  --mm-card: #f7efdd;
  --mm-card2: #ece0c7;
  --mm-fg: #000000;
  --mm-fg-soft: #000000;
  --mm-muted: #5d4f42;
  --mm-primary: #6b4a33;
  --mm-border: #8c755d;
  --mm-outline-soft: #b19a7c;
  --mm-badge: #e4d5b8;
  --mm-shade-rgba-214-183-140-55: rgba(214,183,140,.55);
  --mm-shade-rgba-206-170-128-5: #bdab92;
  --mm-shade-rgba-255-250-240-6: rgba(255,250,240,.6);
  --mm-shade-rgba-107-74-51-14: var(--mm-tint-hover);
  --mm-shade-rgba-107-74-51-32: rgba(107,74,51,.32);
  --mm-card-gradient-top: #f9f2e3;
  --mm-card-gradient-bottom: #eee1c8;
  --mm-shade-rgba-107-74-51-45: rgba(107,74,51,.45);
  --mm-shade-rgba-74-52-34-16: rgba(74,52,34,.16);
  --mm-shade-rgba-150-110-70-4: rgba(150,110,70,.4);
  --mm-shade-rgba-74-52-34-12: rgba(74,52,34,.12);
  --mm-shade-rgba-90-66-44-45: rgba(90,66,44,.45);
  --mm-shade-rgba-107-74-51-7: rgba(107,74,51,.7);
  --mm-shade-rgba-90-66-44-4: rgba(90,66,44,.4);
  --mm-shade-rgba-249-242-227-7: rgba(249,242,227,.7);
  --mm-shade-rgba-199-178-148-6: #bdab92;
  --mm-wash-top: #dac29c88;
  --mm-wash-bottom: #cbb28966;
  --mm-divider-color: #bdab92;
  --mm-shade-806448: #806448;
  --mm-shade-8b663f: #8b663f;
  --mm-title-accent: #000000;
  --mm-subtitle-color: #000000;
  --mm-shade-745d45: #000000;
  --mm-shade-876d50: #876d50;
  --mm-input-bg: #fbf5e9;
  --mm-shade-60432506: #60432506;
  --mm-shade-99856f: #5d4f42;
  --mm-focus-color: #8d704c;
  --mm-shade-88725b: #5d4f42;
  --mm-shade-c7b294aa: var(--mm-outline-soft);
  --mm-shade-65472b05: #65472b05;
  --mm-footer-bg: var(--mm-page-bottom);
  --mm-shade-806b54: #5d4f42;
  --mm-shade-b6a184: #bdab92;
  --mm-skeleton-edge: #e5d7bd;
  --mm-skeleton-center: #f8efdf;
  --mm-shade-82623f: #82623f;
  --mm-shade-6b4a3314: #6b4a3314;
  --mm-shade-6b4a3338: #958068;
  --mm-shade-503923: #000000;
  --mm-shade-826e57: #5d4f42;
  --mm-shade-47331d26: #47331d26;
  --mm-shade-c7b29477: #bdab92;
  --mm-shade-80694f: #5d4f42;
  --mm-shade-745438: #745438;
  --mm-shade-eee1cb: #eee1cb;
  --mm-shade-b8a181: #958068;
  --mm-chip-bg: #e9dac0;
  --mm-shade-59412c: #000000;
  --mm-shade-8c7359: #5d4f42;
  --mm-shade-c3ab89: #958068;
  --mm-shade-795e41: #000000;
  --mm-saved-bg: #e7d6b7;
  --mm-shade-573b22: #000000;
  --mm-shade-9e8057: #958068;
  --mm-action-text-size: 17px;
  --mm-action-height: 48px;
  --mm-save-hover: var(--mm-tint-press);
  --mm-button-bg: #725236;
  --mm-button-text: #fff8eb;
  --mm-error-bg: #ead9bb;
  --mm-shade-bba080: #958068;
  --mm-white: #fff;

  --mm-paper-veil: rgba(249,242,227,.84);
  --mm-page-bottom: #e9dcc4;
  --mm-selected-border: #6b4a33;
  --mm-selected-fill: #ece0c7;
  --mm-filter-ink: #5d4f42;
  --mm-paper-texture: url("images/22d5ec871e88d028.webp");
  --mm-header-ink: #000000;
  --mm-title-secondary: #5d4f42;
  --mm-text-intro: clamp(17px,1.8vw,20px);
  --mm-font-hand: "MMG Caveat",cursive;
  --mm-font-display: "MMG IM Fell DW Pica",Georgia,serif;

  /* FONTS — change these families and the optional font imports */
  --mm-font-body: "MMG Lora",Georgia,serif;
  --mm-font-heading: "MMG Cardo","MMG Cormorant Garamond",Georgia,serif;
  --mm-font-gate: Georgia,serif;

  /* TEXT SIZES — brand, cards, detail and interface labels */
  --mm-text-2rem: 2rem;
  --mm-text-875rem: 1rem;
  --mm-text-1-5rem: 1.5rem;
  --mm-text-1-05rem: 1.05rem;
  --mm-text-7rem: .875rem;
  --mm-text-4-5rem: 4.5rem;
  --mm-text-clamp-2-2rem-5vw-3-4rem: clamp(2.2rem,5vw,3.4rem);
  --mm-text-1-1rem: 1.1rem;
  --mm-text-1-7rem: 1.7rem;
  --mm-text-9rem: .9rem;
  --mm-text-1-75rem: 1.75rem;
  --mm-text-1rem: 1rem;
  --mm-text-78rem: .9375rem;
  --mm-text-11px: 14px;
  --mm-text-25px: 25px;
  --mm-text-brand: clamp(38px,7vw,68px);
  --mm-text-body-small: 17px;
  --mm-text-10px: 13px;
  --mm-text-20px: 20px;
  --mm-text-small: 15px;
  --mm-text-card: 26px;
  --mm-text-32px: 32px;
  --mm-text-entry-title: 38px;
  --mm-text-23px: 23px;
  --mm-text-mobile-input: 16px;
  --mm-text-13px: 16px;
  --mm-text-9px: 13px;
  --mm-text-28px: 28px;
  --mm-text-brand-compact: 26px;
  --mm-text-75rem: .875rem;

  /* SPACING — reusable pixel steps */
  --mm-space-3: 3px;
  --mm-space-4: 4px;
  --mm-space-5: 5px;
  --mm-space-6: 6px;
  --mm-space-7: 7px;
  --mm-space-8: 8px;
  --mm-space-9: 9px;
  --mm-space-10: 10px;
  --mm-space-11: 11px;
  --mm-space-12: 12px;
  --mm-space-13: 13px;
  --mm-space-14: 14px;
  --mm-space-15: 15px;
  --mm-space-16: 16px;
  --mm-space-18: 18px;
  --mm-space-19: 19px;
  --mm-space-20: 20px;
  --mm-space-22: 22px;
  --mm-space-24: 24px;
  --mm-space-25: 25px;
  --mm-space-26: 26px;
  --mm-space-28: 28px;
  --mm-filter-section-gap: 28px;
  --mm-space-30: 30px;
  --mm-space-32: 32px;
  --mm-space-35: 35px;
  --mm-space-36: 36px;
  --mm-space-40: 40px;
  --mm-space-44: 44px;
  --mm-space-45: 45px;
  --mm-space-49: 49px;
  --mm-space-50: 50px;
  --mm-space-55: 55px;
  --mm-space-56: 56px;
  --mm-space-65: 65px;

  /* CORNER RADII */
  --mm-radius-hero: 10px;
  --mm-radius-pill: 999px;
  --mm-radius-card: 8px;
  --mm-radius-badge: 6px;
  --mm-radius-input: 9px;
  --mm-radius-panel: 12px;
  --mm-radius-chip: 20px;
  --mm-radius-gate: 18px;
  --mm-radius-button: 8px;

  /* DIMENSIONS, GRID AND BORDERS */
  --mm-content-width: 1200px;
  --mm-detail-width: var(--mm-content-width);
  --mm-reading-width: 680px;
  --mm-detail-image: 144px;
  --mm-thumbnail: 56px;
  --mm-related-image: 64px;
  --mm-border-width: 1px;
  --mm-card-min-height: 0px;
  --mm-columns-desktop: 3;
  --mm-columns-tablet: 2;
  --mm-page-gutter: clamp(18px,4vw,56px);
  --mm-text-base: 18px;
  --mm-line-height:1.65;
}
/* END DESIGN SETTINGS */

/* Copyright (c) 2010, Igino Marini (mail@iginomarini.com)

This Font Software is licensed under the SIL Open Font License, Version 1.1.
This license is copied below, and is also available with a FAQ at:
http://scripts.sil.org/OFL


-----------------------------------------------------------
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
-----------------------------------------------------------

PREAMBLE
The goals of the Open Font License (OFL) are to stimulate worldwide
development of collaborative font projects, to support the font creation
efforts of academic and linguistic communities, and to provide a free and
open framework in which fonts may be shared and improved in partnership
with others.

The OFL allows the licensed fonts to be used, studied, modified and
redistributed freely as long as they are not sold by themselves. The
fonts, including any derivative works, can be bundled, embedded, 
redistributed and/or sold with any software provided that any reserved
names are not used by derivative works. The fonts and derivatives,
however, cannot be released under any other type of license. The
requirement for fonts to remain under this license does not apply
to any document created using the fonts or their derivatives.

DEFINITIONS
"Font Software" refers to the set of files released by the Copyright
Holder(s) under this license and clearly marked as such. This may
include source files, build scripts and documentation.

"Reserved Font Name" refers to any names specified as such after the
copyright statement(s).

"Original Version" refers to the collection of Font Software components as
distributed by the Copyright Holder(s).

"Modified Version" refers to any derivative made by adding to, deleting,
or substituting -- in part or in whole -- any of the components of the
Original Version, by changing formats or by porting the Font Software to a
new environment.

"Author" refers to any designer, engineer, programmer, technical
writer or other person who contributed to the Font Software.

PERMISSION & CONDITIONS
Permission is hereby granted, free of charge, to any person obtaining
a copy of the Font Software, to use, study, copy, merge, embed, modify,
redistribute, and sell modified and unmodified copies of the Font
Software, subject to the following conditions:

1) Neither the Font Software nor any of its individual components,
in Original or Modified Versions, may be sold by itself.

2) Original or Modified Versions of the Font Software may be bundled,
redistributed and/or sold with any software, provided that each copy
contains the above copyright notice and this license. These can be
included either as stand-alone text files, human-readable headers or
in the appropriate machine-readable metadata fields within text or
binary files as long as those fields can be easily viewed by the user.

3) No Modified Version of the Font Software may use the Reserved Font
Name(s) unless explicit written permission is granted by the corresponding
Copyright Holder. This restriction only applies to the primary font name as
presented to the users.

4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
Software shall not be used to promote, endorse or advertise any
Modified Version, except to acknowledge the contribution(s) of the
Copyright Holder(s) and the Author(s) or with their explicit written
permission.

5) The Font Software, modified or unmodified, in part or in whole,
must be distributed entirely under this license, and must not be
distributed under any other license. The requirement for fonts to
remain under this license does not apply to any document created
using the Font Software.

TERMINATION
This license becomes null and void if any of the above conditions are
not met.

DISCLAIMER
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
OTHER DEALINGS IN THE FONT SOFTWARE.
 */
@font-face{font-family:"MMG IM Fell DW Pica";font-style:normal;font-weight:400;font-display:swap;src:url(fonts/f65e54016dfab422.ttf) format("truetype");}
/* Copyright 2014 The Caveat Project Authors (https://github.com/googlefonts/caveat)

This Font Software is licensed under the SIL Open Font License, Version 1.1.
This license is copied below, and is also available with a FAQ at:
http://scripts.sil.org/OFL


-----------------------------------------------------------
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
-----------------------------------------------------------

PREAMBLE
The goals of the Open Font License (OFL) are to stimulate worldwide
development of collaborative font projects, to support the font creation
efforts of academic and linguistic communities, and to provide a free and
open framework in which fonts may be shared and improved in partnership
with others.

The OFL allows the licensed fonts to be used, studied, modified and
redistributed freely as long as they are not sold by themselves. The
fonts, including any derivative works, can be bundled, embedded, 
redistributed and/or sold with any software provided that any reserved
names are not used by derivative works. The fonts and derivatives,
however, cannot be released under any other type of license. The
requirement for fonts to remain under this license does not apply
to any document created using the fonts or their derivatives.

DEFINITIONS
"Font Software" refers to the set of files released by the Copyright
Holder(s) under this license and clearly marked as such. This may
include source files, build scripts and documentation.

"Reserved Font Name" refers to any names specified as such after the
copyright statement(s).

"Original Version" refers to the collection of Font Software components as
distributed by the Copyright Holder(s).

"Modified Version" refers to any derivative made by adding to, deleting,
or substituting -- in part or in whole -- any of the components of the
Original Version, by changing formats or by porting the Font Software to a
new environment.

"Author" refers to any designer, engineer, programmer, technical
writer or other person who contributed to the Font Software.

PERMISSION & CONDITIONS
Permission is hereby granted, free of charge, to any person obtaining
a copy of the Font Software, to use, study, copy, merge, embed, modify,
redistribute, and sell modified and unmodified copies of the Font
Software, subject to the following conditions:

1) Neither the Font Software nor any of its individual components,
in Original or Modified Versions, may be sold by itself.

2) Original or Modified Versions of the Font Software may be bundled,
redistributed and/or sold with any software, provided that each copy
contains the above copyright notice and this license. These can be
included either as stand-alone text files, human-readable headers or
in the appropriate machine-readable metadata fields within text or
binary files as long as those fields can be easily viewed by the user.

3) No Modified Version of the Font Software may use the Reserved Font
Name(s) unless explicit written permission is granted by the corresponding
Copyright Holder. This restriction only applies to the primary font name as
presented to the users.

4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
Software shall not be used to promote, endorse or advertise any
Modified Version, except to acknowledge the contribution(s) of the
Copyright Holder(s) and the Author(s) or with their explicit written
permission.

5) The Font Software, modified or unmodified, in part or in whole,
must be distributed entirely under this license, and must not be
distributed under any other license. The requirement for fonts to
remain under this license does not apply to any document created
using the Font Software.

TERMINATION
This license becomes null and void if any of the above conditions are
not met.

DISCLAIMER
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
OTHER DEALINGS IN THE FONT SOFTWARE.
 */
@font-face{font-family:"MMG Caveat";font-style:normal;font-weight:400 700;font-display:swap;src:url(fonts/0bdb6b660482d315.ttf) format("truetype");}

/* Embedded font licenses and copyright notices:
Copyright 2015 the Cormorant Project Authors (github.com/CatharsisFonts/Cormorant)

This Font Software is licensed under the SIL Open Font License, Version 1.1.
This license is copied below, and is also available with a FAQ at:
https://scripts.sil.org/OFL


-----------------------------------------------------------
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
-----------------------------------------------------------

PREAMBLE
The goals of the Open Font License (OFL) are to stimulate worldwide
development of collaborative font projects, to support the font creation
efforts of academic and linguistic communities, and to provide a free and
open framework in which fonts may be shared and improved in partnership
with others.

The OFL allows the licensed fonts to be used, studied, modified and
redistributed freely as long as they are not sold by themselves. The
fonts, including any derivative works, can be bundled, embedded, 
redistributed and/or sold with any software provided that any reserved
names are not used by derivative works. The fonts and derivatives,
however, cannot be released under any other type of license. The
requirement for fonts to remain under this license does not apply
to any document created using the fonts or their derivatives.

DEFINITIONS
"Font Software" refers to the set of files released by the Copyright
Holder(s) under this license and clearly marked as such. This may
include source files, build scripts and documentation.

"Reserved Font Name" refers to any names specified as such after the
copyright statement(s).

"Original Version" refers to the collection of Font Software components as
distributed by the Copyright Holder(s).

"Modified Version" refers to any derivative made by adding to, deleting,
or substituting -- in part or in whole -- any of the components of the
Original Version, by changing formats or by porting the Font Software to a
new environment.

"Author" refers to any designer, engineer, programmer, technical
writer or other person who contributed to the Font Software.

PERMISSION & CONDITIONS
Permission is hereby granted, free of charge, to any person obtaining
a copy of the Font Software, to use, study, copy, merge, embed, modify,
redistribute, and sell modified and unmodified copies of the Font
Software, subject to the following conditions:

1) Neither the Font Software nor any of its individual components,
in Original or Modified Versions, may be sold by itself.

2) Original or Modified Versions of the Font Software may be bundled,
redistributed and/or sold with any software, provided that each copy
contains the above copyright notice and this license. These can be
included either as stand-alone text files, human-readable headers or
in the appropriate machine-readable metadata fields within text or
binary files as long as those fields can be easily viewed by the user.

3) No Modified Version of the Font Software may use the Reserved Font
Name(s) unless explicit written permission is granted by the corresponding
Copyright Holder. This restriction only applies to the primary font name as
presented to the users.

4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
Software shall not be used to promote, endorse or advertise any
Modified Version, except to acknowledge the contribution(s) of the
Copyright Holder(s) and the Author(s) or with their explicit written
permission.

5) The Font Software, modified or unmodified, in part or in whole,
must be distributed entirely under this license, and must not be
distributed under any other license. The requirement for fonts to
remain under this license does not apply to any document created
using the Font Software.

TERMINATION
This license becomes null and void if any of the above conditions are
not met.

DISCLAIMER
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
OTHER DEALINGS IN THE FONT SOFTWARE.

Copyright 2011 The Lora Project Authors (https://github.com/cyrealtype/Lora-Cyrillic), with Reserved Font Name "Lora".

This Font Software is licensed under the SIL Open Font License, Version 1.1.
This license is copied below, and is also available with a FAQ at:
https://scripts.sil.org/OFL


-----------------------------------------------------------
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
-----------------------------------------------------------

PREAMBLE
The goals of the Open Font License (OFL) are to stimulate worldwide
development of collaborative font projects, to support the font creation
efforts of academic and linguistic communities, and to provide a free and
open framework in which fonts may be shared and improved in partnership
with others.

The OFL allows the licensed fonts to be used, studied, modified and
redistributed freely as long as they are not sold by themselves. The
fonts, including any derivative works, can be bundled, embedded, 
redistributed and/or sold with any software provided that any reserved
names are not used by derivative works. The fonts and derivatives,
however, cannot be released under any other type of license. The
requirement for fonts to remain under this license does not apply
to any document created using the fonts or their derivatives.

DEFINITIONS
"Font Software" refers to the set of files released by the Copyright
Holder(s) under this license and clearly marked as such. This may
include source files, build scripts and documentation.

"Reserved Font Name" refers to any names specified as such after the
copyright statement(s).

"Original Version" refers to the collection of Font Software components as
distributed by the Copyright Holder(s).

"Modified Version" refers to any derivative made by adding to, deleting,
or substituting -- in part or in whole -- any of the components of the
Original Version, by changing formats or by porting the Font Software to a
new environment.

"Author" refers to any designer, engineer, programmer, technical
writer or other person who contributed to the Font Software.

PERMISSION & CONDITIONS
Permission is hereby granted, free of charge, to any person obtaining
a copy of the Font Software, to use, study, copy, merge, embed, modify,
redistribute, and sell modified and unmodified copies of the Font
Software, subject to the following conditions:

1) Neither the Font Software nor any of its individual components,
in Original or Modified Versions, may be sold by itself.

2) Original or Modified Versions of the Font Software may be bundled,
redistributed and/or sold with any software, provided that each copy
contains the above copyright notice and this license. These can be
included either as stand-alone text files, human-readable headers or
in the appropriate machine-readable metadata fields within text or
binary files as long as those fields can be easily viewed by the user.

3) No Modified Version of the Font Software may use the Reserved Font
Name(s) unless explicit written permission is granted by the corresponding
Copyright Holder. This restriction only applies to the primary font name as
presented to the users.

4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
Software shall not be used to promote, endorse or advertise any
Modified Version, except to acknowledge the contribution(s) of the
Copyright Holder(s) and the Author(s) or with their explicit written
permission.

5) The Font Software, modified or unmodified, in part or in whole,
must be distributed entirely under this license, and must not be
distributed under any other license. The requirement for fonts to
remain under this license does not apply to any document created
using the Font Software.

TERMINATION
This license becomes null and void if any of the above conditions are
not met.

DISCLAIMER
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
OTHER DEALINGS IN THE FONT SOFTWARE.

*/
/* 1.6.17: Cardo replaces Cormorant Garamond for headings — the same old-book feel with sturdier, readable strokes.
   Copyright (c) 2002-2011, David J. Perry (hospes02@scholarsfonts.net). SIL Open Font License 1.1, see fonts/CARDO-OFL.txt.
   Subset to Latin (incl. Central European letters) and common symbols. size-adjust keeps headings the same width as before. */
@font-face{font-family:'MMG Cardo';font-style:normal;font-weight:400;font-display:swap;size-adjust:92%;src:url(fonts/cardo-regular-1617.woff) format('woff');}
@font-face{font-family:'MMG Cardo';font-style:italic;font-weight:400;font-display:swap;size-adjust:92%;src:url(fonts/cardo-italic-1617.woff) format('woff');}
/* 1.6.18: headings are never bold — any heavier weight uses the regular letters (no fake bolding). */
@font-face{font-family:'MMG Cardo';font-style:normal;font-weight:500 900;font-display:swap;size-adjust:92%;src:url(fonts/cardo-regular-1617.woff) format('woff');}
/* OFL-licensed Lora and Cormorant Garamond. See FONT-LICENSES. */
@font-face {
  font-family: 'MMG Cormorant Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/328b3adeb9483128.woff2) format('woff2');
}
@font-face {
  font-family: 'MMG Cormorant Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/96cc92f4656b9a8f.woff2) format('woff2');
}
@font-face {
  font-family: 'MMG Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/77bb9ad5284f803d.woff2) format('woff2');
}
@font-face {
  font-family: 'MMG Lora';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/fdc27d7ad8e0d518.woff2) format('woff2');
}
@font-face {
  font-family: 'MMG Lora';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/b5d67a2346c1c4ee.woff2) format('woff2');
}
@font-face {
  font-family: 'MMG Lora';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/c01b1974a8c9c972.woff2) format('woff2');
}

/* Shared layout and component rules. Edit design.css for routine styling. */
#mmg-app{display:flow-root;font:var(--mm-text-base)/var(--mm-line-height) var(--mm-font-body);color:var(--mm-fg);background-color:var(--mm-page-bottom);background-image:linear-gradient(to bottom,var(--mm-paper-veil),var(--mm-page-bottom)),var(--mm-paper-texture);background-repeat:no-repeat,repeat-x;background-size:100% 900px,900px 600px;background-position:left top;min-height:100vh;min-height:100dvh;width:100%;box-sizing:border-box;isolation:isolate;}
#mmg-app *,#mmg-app *::before,#mmg-app *::after{box-sizing:border-box;}
#mmg-app button,#mmg-app input,#mmg-app select{font-family:inherit;}
#mmg-app .mm-grimoire{
  font-family:var(--mm-font-body);
  color:var(--mm-fg);
  background-color:var(--mm-bg);
  background-image:
    radial-gradient(at 10% 12%, var(--mm-shade-rgba-214-183-140-55), transparent 45%),
    radial-gradient(at 90% 88%, var(--mm-shade-rgba-206-170-128-5), transparent 55%);
  padding:var(--mm-space-28) var(--mm-space-20) var(--mm-space-44);
  border-radius:var(--mm-radius-hero);
  line-height:1.65;
  box-sizing:border-box;
}
#mmg-app .mm-grimoire *,#mmg-app .mm-grimoire *::before,#mmg-app .mm-grimoire *::after{box-sizing:border-box;}
#mmg-app .mm-grimoire h1,#mmg-app .mm-grimoire h2,#mmg-app .mm-grimoire h3{
  font-family:var(--mm-font-heading);
  letter-spacing:.01em;margin:0;font-weight:600;color:var(--mm-fg);
}
#mmg-app .mm-grimoire p{margin:0 0 1em;}
#mmg-app .mm-grimoire p:last-child{margin-bottom:0;}
#mmg-app .mm-wrap{max-width:1080px;margin:0 auto;}
#mmg-app .mm-detail-wrap{max-width:var(--mm-detail-width);margin:0 auto;}
#mmg-app .mm-head h1{font-size:var(--mm-text-2rem);text-shadow:0 1px 0 var(--mm-shade-rgba-255-250-240-6);}
#mmg-app .mm-head p{color:var(--mm-muted);margin:.35rem 0 0;}
#mmg-app .mm-cats{display:flex;flex-wrap:wrap;gap:var(--mm-space-8);margin:var(--mm-space-22) 0 var(--mm-space-24);}
#mmg-app .mm-cat{
  display:inline-flex;align-items:center;gap:var(--mm-space-8);cursor:pointer;
  font-family:inherit;font-size:var(--mm-text-875rem);padding:var(--mm-space-8) var(--mm-space-16);border-radius:var(--mm-radius-pill);
  background:var(--mm-card);color:var(--mm-filter-ink);
  border:var(--mm-border-width) solid var(--mm-outline-soft);transition:background .15s,color .15s,border-color .15s;
}
#mmg-app .mm-cat:hover{background:var(--mm-card2);}
#mmg-app .mm-cat[aria-pressed="true"]{
  background:var(--mm-selected-fill);color:var(--mm-filter-ink);
  border-color:var(--mm-selected-border);
}
#mmg-app .mm-cat svg{width:16px;height:16px;flex:none;}
#mmg-app #mm-grimoire .mm-cat svg{color:var(--mm-filter-ink)!important;}
#mmg-app .mm-grid{display:grid;grid-auto-rows:1fr;gap:var(--mm-space-16);grid-template-columns:1fr;}
@media(min-width:640px){#mmg-app .mm-grid{grid-template-columns:repeat(2,1fr);}
}
@media(min-width:1024px){#mmg-app .mm-grid{grid-template-columns:repeat(3,1fr);}
}
#mmg-app .mm-card{
  display:block;text-decoration:none;color:inherit;height:100%;
  background:linear-gradient(180deg,var(--mm-card-gradient-top),var(--mm-card-gradient-bottom));
  border:var(--mm-border-width) solid var(--mm-border);border-radius:var(--mm-radius-card);padding:var(--mm-space-18);
  transition:border-color .15s,box-shadow .15s,transform .15s;
}
#mmg-app #mm-grimoire .mm-card:hover{
  border-color:var(--mm-border);
}
#mmg-app .mm-card-row{display:flex;align-items:flex-start;gap:var(--mm-space-12);}
#mmg-app .mm-thumb{width:var(--mm-thumbnail);height:var(--mm-thumbnail);object-fit:cover;flex:none;}
#mmg-app .mm-thumb-fallback{font-size:var(--mm-text-1-5rem);line-height:1;flex:none;}
#mmg-app .mm-card-body{min-width:0;flex:1;}
#mmg-app .mm-card-title-row{display:flex;align-items:center;justify-content:space-between;gap:var(--mm-space-8);}
#mmg-app .mm-card h3{font-size:var(--mm-text-1-05rem);}
#mmg-app .mm-card:hover h3{color:var(--mm-fg);}
#mmg-app .mm-card-sum{
  color:var(--mm-muted);font-size:var(--mm-text-875rem);margin:.3rem 0 0;
  display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;line-height:1.65;min-height:4.95em;
}
#mmg-app .mm-arrow{width:15px;height:15px;color:var(--mm-muted);flex:none;transition:transform .15s;}
#mmg-app .mm-card:hover .mm-arrow{transform:translateX(3px);color:var(--mm-primary);}
#mmg-app .mm-back{
  display:inline-flex;align-items:center;gap:var(--mm-space-8);font-size:var(--mm-text-875rem);font-style:italic;
  color:var(--mm-muted);text-decoration:none;background:none;border:0;cursor:pointer;
  font-family:inherit;padding:0;margin-bottom:var(--mm-space-24);
}
#mmg-app .mm-back:hover{color:var(--mm-fg);}
#mmg-app .mm-back svg{width:16px;height:16px;}
#mmg-app .mm-hero{
  background:transparent;
  border:var(--mm-border-width) solid var(--mm-shade-rgba-150-110-70-4);border-radius:var(--mm-radius-hero);
  padding:var(--mm-space-40) var(--mm-space-28);text-align:center;box-shadow:0 2px 10px var(--mm-shade-rgba-74-52-34-12);
}
#mmg-app .mm-eyebrow{
  display:flex;align-items:center;justify-content:center;gap:var(--mm-space-12);
  color:var(--mm-muted);font-size:var(--mm-text-7rem);text-transform:uppercase;letter-spacing:.3em;
}
#mmg-app .mm-eyebrow svg{width:16px;height:16px;}
#mmg-app .mm-rule{display:inline-block;width:var(--mm-related-image);height:1px;background:linear-gradient(90deg,transparent,var(--mm-shade-rgba-90-66-44-45),transparent);}
#mmg-app .mm-hero-img{margin:var(--mm-space-18) auto 0;display:block;max-width:260px;width:100%;height:auto;object-fit:cover;}
#mmg-app .mm-hero-glyph{font-size:var(--mm-text-4-5rem);line-height:1;margin-top:var(--mm-space-12);}
#mmg-app .mm-hero h1{font-size:var(--mm-text-clamp-2-2rem-5vw-3-4rem);margin-top:var(--mm-space-14);}
#mmg-app .mm-stars{display:flex;justify-content:center;gap:var(--mm-space-8);color:var(--mm-shade-rgba-107-74-51-7);margin-top:var(--mm-space-10);}
#mmg-app .mm-stars svg{width:13px;height:13px;}
#mmg-app .mm-hero-sum{
  max-width:38rem;margin:var(--mm-space-16) auto 0;font-style:italic;font-size:var(--mm-text-1-1rem);color:var(--mm-fg-soft);
}
#mmg-app .mm-section{margin-top:var(--mm-space-40);}
#mmg-app .mm-section h2{font-size:var(--mm-text-1-7rem);display:flex;align-items:center;gap:var(--mm-space-10);}
#mmg-app .mm-section h2 svg{width:20px;height:20px;color:var(--mm-primary);}
#mmg-app .mm-divider{height:1px;margin:var(--mm-space-12) 0 var(--mm-space-18);background:linear-gradient(90deg,transparent,var(--mm-shade-rgba-90-66-44-4),transparent);}
#mmg-app .mm-body{color:var(--mm-fg-soft);}
#mmg-app .mm-body img{max-width:100%;height:auto;}
#mmg-app .mm-body a{color:var(--mm-primary);text-decoration:underline;}
#mmg-app .mm-body h2,#mmg-app .mm-body h3{font-family:var(--mm-font-heading);margin:1.2em 0 .5em;}
#mmg-app .mm-body figure{margin:1.2em 0;}
#mmg-app .mm-body .wp-block-spacer{height:2em;}
#mmg-app .mm-body ul,#mmg-app .mm-body ol{padding-left:1.4em;}
#mmg-app .mm-rituals{list-style:none;margin:0;padding:0;}
#mmg-app .mm-rituals li{
  display:flex;gap:var(--mm-space-16);padding:var(--mm-space-16);margin-bottom:var(--mm-space-12);
  background:var(--mm-shade-rgba-249-242-227-7);border:var(--mm-border-width) solid var(--mm-shade-rgba-199-178-148-6);border-radius:var(--mm-radius-badge);
}
#mmg-app .mm-rituals .mm-num{
  font-family:var(--mm-font-heading);font-size:var(--mm-text-1-5rem);
  color:var(--mm-primary);line-height:1;
}
#mmg-app .mm-badges{display:flex;flex-wrap:wrap;justify-content:center;gap:var(--mm-space-8);text-align:center;}
#mmg-app .mm-badge{
  font-family:var(--mm-font-heading);font-size:var(--mm-text-9rem);text-transform:capitalize;
  background:var(--mm-badge);color:var(--mm-fg);padding:var(--mm-space-5) var(--mm-space-12);border-radius:var(--mm-radius-badge);
}
#mmg-app .mm-kin{display:grid;gap:var(--mm-space-12);grid-template-columns:repeat(2,1fr);}
@media(min-width:900px){#mmg-app .mm-kin{grid-template-columns:repeat(4,1fr);}
}
#mmg-app .mm-kin a{
  display:block;text-decoration:none;color:inherit;text-align:center;height:100%;
  background:linear-gradient(180deg,var(--mm-card-gradient-top),var(--mm-card-gradient-bottom));border:var(--mm-border-width) solid var(--mm-outline-soft);border-radius:var(--mm-radius-card);padding:var(--mm-space-16);
  transition:border-color .15s;
}
#mmg-app .mm-kin a:hover{border-color:var(--mm-border);}
#mmg-app .mm-kin img{width:var(--mm-related-image);height:var(--mm-related-image);object-fit:cover;margin:0 auto var(--mm-space-8);display:block;}
#mmg-app .mm-kin .mm-kin-glyph{font-size:var(--mm-text-1-75rem);margin-bottom:var(--mm-space-8);}
#mmg-app .mm-kin p{font-family:var(--mm-font-heading);font-size:var(--mm-text-1rem);margin:0;}
#mmg-app .mm-kin a:hover p{color:var(--mm-fg);}
#mmg-app .mm-foot{text-align:center;margin-top:var(--mm-space-40);}
#mmg-app .mm-foot span{
  font-family:var(--mm-font-heading);font-style:italic;font-size:var(--mm-text-78rem);
  background:var(--mm-badge);padding:var(--mm-space-5) var(--mm-space-12);border-radius:var(--mm-radius-badge);color:var(--mm-fg-soft);
}
#mmg-app .mm-note{color:var(--mm-muted);font-style:italic;}
#mmg-app #mm-grimoire{width:100%;min-height:100vh;min-height:100dvh;border-radius:0;padding:0;display:flex;flex-direction:column;background-color:transparent;background-image:none;}
#mmg-app #mm-grimoire .mm-shell{width:100%;max-width:var(--mm-content-width);margin:auto;padding:0 var(--mm-page-gutter);flex:1;}
#mmg-app #mm-grimoire .mm-brand{container-type:inline-size;padding:var(--mm-space-65) 0 var(--mm-space-44);text-align:center;border-bottom:var(--mm-border-width) solid transparent;border-image:linear-gradient(90deg,transparent,var(--mm-divider-color),transparent) 1;}
#mmg-app #mm-grimoire .mm-brand-kicker{display:none;font-size:var(--mm-text-11px);letter-spacing:.3em;text-transform:uppercase;color:var(--mm-shade-806448);}
#mmg-app #mm-grimoire .mm-brand-mark{display:none;font-size:var(--mm-text-25px);margin:var(--mm-space-8) 0;color:var(--mm-shade-8b663f);}
#mmg-app #mm-grimoire .mm-brand h1{font-size:min(68px,18vw);font-size:min(68px,19cqi);line-height:1.2;font-weight:600;color:var(--mm-title-secondary);}
#mmg-app #mm-grimoire .mm-brand h1 .mm-title-prefix{display:block;font-family:var(--mm-font-hand);font-weight:400;font-size:.7em;line-height:1.1;margin-bottom:0;white-space:nowrap;position:relative;}
#mmg-app #mm-grimoire .mm-brand h1 em{display:block;white-space:nowrap;font-family:var(--mm-font-display);font-style:normal;font-weight:400;color:var(--mm-title-accent);}
#mmg-app #mm-grimoire .mm-brand p{font-size:var(--mm-text-intro);font-weight:500;color:var(--mm-subtitle-color);margin:var(--mm-space-14) auto 0;max-width:520px;}
#mmg-app #mm-grimoire .mm-controls{display:grid;grid-template-columns:minmax(0,1fr) 230px;gap:var(--mm-space-14);margin:var(--mm-space-28) 0 0;}
#mmg-app #mm-grimoire .mm-field{display:flex;flex-direction:column;gap:var(--mm-space-7);min-width:0;}
#mmg-app #mm-grimoire .mm-field label{font-size:var(--mm-text-10px);letter-spacing:.16em;text-transform:uppercase;color:var(--mm-shade-745d45);}
#mmg-app #mm-grimoire .mm-search-wrap{position:relative;}
#mmg-app #mm-grimoire .mm-search-symbol{position:absolute;left:16px;top:12px;color:var(--mm-shade-876d50);font-size:var(--mm-text-20px);pointer-events:none;}
#mmg-app #mm-grimoire input,#mmg-app #mm-grimoire select{width:100%;height:49px;border:var(--mm-border-width) solid var(--mm-border);border-radius:var(--mm-radius-input);background:var(--mm-input-bg);color:var(--mm-fg);font:inherit;font-size:var(--mm-text-body-small);padding:0 var(--mm-space-14);box-shadow:0 3px 9px var(--mm-shade-60432506);}
#mmg-app #mm-grimoire input{padding-left:var(--mm-space-45);}
#mmg-app #mm-grimoire input::placeholder{color:var(--mm-shade-99856f);}
#mmg-app #mm-grimoire input:focus-visible,#mmg-app #mm-grimoire select:focus-visible{outline:2px solid var(--mm-focus-color);outline-offset:3px;}
#mmg-app #mm-grimoire .mm-cats{margin:var(--mm-filter-section-gap) 0;gap:var(--mm-space-7);}
#mmg-app #mm-grimoire .mm-cat{font-size:var(--mm-text-small);padding:var(--mm-space-8) var(--mm-space-12);min-height:40px;}
#mmg-app #mm-grimoire .mm-results-label{font-size:var(--mm-text-small);color:var(--mm-shade-88725b);margin:0 0 var(--mm-space-15);}
#mmg-app #mm-grimoire .mm-wrap{max-width:none;}
#mmg-app #mm-grimoire .mm-card{padding:var(--mm-space-20);border-color:var(--mm-shade-c7b294aa);box-shadow:0 3px 8px var(--mm-shade-65472b05);}
#mmg-app #mm-grimoire .mm-card h3{font-family:var(--mm-font-display);font-weight:400;font-size:var(--mm-text-card);}
#mmg-app #mm-grimoire .mm-hero h1{font-family:var(--mm-font-display);font-weight:400;}
#mmg-app #mm-grimoire .mm-grid{grid-template-columns:repeat(var(--mm-columns-desktop),minmax(0,1fr));padding-bottom:var(--mm-space-32);}
#mmg-app #mm-grimoire .mm-detail-wrap{position:relative;width:100%;margin:var(--mm-space-30) 0 var(--mm-space-50);padding:clamp(20px,4vw,40px);background:var(--mm-card);border:var(--mm-border-width) solid var(--mm-outline-soft);border-radius:var(--mm-radius-card);}
#mmg-app #mm-grimoire .mm-hero{padding:var(--mm-space-25) 0;border:0;border-radius:0;box-shadow:none;}
#mmg-app #mm-grimoire .mm-hero-img{width:var(--mm-detail-image);max-width:var(--mm-detail-image);height:var(--mm-detail-image);object-fit:contain;margin:var(--mm-space-16) auto 0;}
#mmg-app #mm-grimoire .mm-hero-glyph{font-size:var(--mm-text-32px);}
#mmg-app #mm-grimoire .mm-hero h1{font-size:var(--mm-text-entry-title);}
#mmg-app #mm-grimoire .mm-footer{margin-top:auto;padding:var(--mm-space-24) var(--mm-page-gutter);border-top:var(--mm-border-width) solid var(--mm-divider-color);background:var(--mm-footer-bg);display:flex;justify-content:space-between;align-items:center;gap:var(--mm-space-20);flex-wrap:wrap;}
#mmg-app #mm-grimoire .mm-footer-brand{font-family:var(--mm-font-heading);font-size:var(--mm-text-23px);}
#mmg-app #mm-grimoire .mm-footer p{font-size:var(--mm-text-11px);color:var(--mm-shade-806b54);margin:var(--mm-space-3) 0 0;}
#mmg-app #mm-grimoire .mm-footer a{font-size:var(--mm-text-small);color:var(--mm-primary);text-decoration:none;border-bottom:var(--mm-border-width) solid var(--mm-shade-b6a184);}
#mmg-app #mm-grimoire .mm-empty{padding:var(--mm-space-35) 0 var(--mm-space-65);color:var(--mm-fg);}
#mmg-app #mm-grimoire .mm-loading{display:grid;grid-template-columns:repeat(var(--mm-columns-desktop),minmax(0,1fr));gap:var(--mm-space-16);padding-bottom:var(--mm-space-30);}
#mmg-app #mm-grimoire .mm-skeleton{height:105px;border-radius:var(--mm-radius-card);background:linear-gradient(110deg,var(--mm-skeleton-edge),var(--mm-skeleton-center),var(--mm-skeleton-edge));background-size:200% 100%;animation:mmg-shimmer 1.8s ease-in-out infinite;}
@keyframes mmg-shimmer{to{background-position:-200% 0;}}
@media(prefers-reduced-motion:reduce){#mmg-app #mm-grimoire .mm-skeleton{animation:none;}
}
@media(max-width:850px){#mmg-app #mm-grimoire .mm-grid,#mmg-app #mm-grimoire .mm-loading{grid-template-columns:repeat(var(--mm-columns-tablet),minmax(0,1fr));}
}
@media(max-width:560px){
#mmg-app #mm-grimoire .mm-controls{grid-template-columns:1fr;}
#mmg-app #mm-grimoire .mm-grid,#mmg-app #mm-grimoire .mm-loading{grid-template-columns:minmax(0,1fr);}
#mmg-app #mm-grimoire .mm-brand{padding-top:var(--mm-space-50);}
#mmg-app #mm-grimoire .mm-cat{min-height:44px;}
#mmg-app #mm-grimoire input,#mmg-app #mm-grimoire select{font-size:var(--mm-text-mobile-input);}
}
#mmg-app #mm-grimoire button,#mmg-app #mm-grimoire summary{font-family:inherit;cursor:pointer;}
#mmg-app #mm-grimoire button:focus-visible,#mmg-app #mm-grimoire summary:focus-visible,#mmg-app #mm-grimoire a:focus-visible{outline:2px solid var(--mm-shade-82623f);outline-offset:4px;}
#mmg-app #mm-grimoire .mm-toolbar{display:flex;align-items:center;justify-content:space-between;gap:var(--mm-space-12);flex-wrap:wrap;margin:var(--mm-space-40) 0 0;}
#mmg-app #mm-grimoire .mm-view-tabs{display:flex;gap:var(--mm-space-6);}
#mmg-app #mm-grimoire .mm-view-tabs button{display:inline-flex;align-items:center;gap:var(--mm-space-7);min-height:44px;border:0;border-bottom:2px solid transparent;border-radius:0;background:transparent;color:var(--mm-subtitle-color);padding:var(--mm-space-8) var(--mm-space-13);font-size:var(--mm-text-13px);}
#mmg-app #mm-grimoire .mm-view-tabs button[aria-pressed=true]{background:transparent;border-bottom-color:var(--mm-selected-border);color:var(--mm-shade-503923);}
#mmg-app #mm-grimoire .mm-view-tabs button:hover{background:transparent;color:var(--mm-primary);}
#mmg-app #mm-grimoire .mm-view-tabs svg,#mmg-app #mm-grimoire .mm-save svg{width:17px;height:17px;flex:none;}
#mmg-app #mm-grimoire .mm-browser-note{font-size:var(--mm-text-11px);color:var(--mm-shade-826e57);}
#mmg-app #mm-grimoire .mm-count{font-size:var(--mm-text-10px);opacity:.75;}
#mmg-app #mm-grimoire .mm-controls{margin-top:var(--mm-filter-section-gap);grid-template-columns:minmax(0,1fr) minmax(220px,280px);align-items:end;}
#mmg-app #mm-grimoire .mm-search-symbol{top:15px;line-height:1;}
#mmg-app #mm-grimoire .mm-search-symbol svg{width:19px;height:19px;}
#mmg-app #mm-grimoire .mm-filter-label{font-size:var(--mm-text-10px);letter-spacing:.16em;text-transform:uppercase;color:var(--mm-shade-745d45);}
#mmg-app #mm-grimoire .mm-intention-menu{position:relative;z-index:5;}
#mmg-app #mm-grimoire .mm-intention-menu summary{list-style:none;display:flex;justify-content:space-between;gap:var(--mm-space-12);align-items:center;min-height:49px;border:var(--mm-border-width) solid var(--mm-border);border-radius:var(--mm-radius-input);background:var(--mm-input-bg);padding:var(--mm-space-8) var(--mm-space-14);font-size:var(--mm-text-body-small);}
#mmg-app #mm-grimoire .mm-intention-menu summary::-webkit-details-marker{display:none;}
#mmg-app #mm-grimoire .mm-intention-panel{position:absolute;top:calc(100% + 8px);left:0;right:0;padding:var(--mm-space-14);background:var(--mm-input-bg);border:var(--mm-border-width) solid var(--mm-border);border-radius:var(--mm-radius-panel);box-shadow:0 12px 30px var(--mm-shade-47331d26);}
#mmg-app #mm-grimoire .mm-match{border:0;padding:0 0 var(--mm-space-12);margin:0 0 var(--mm-space-8);border-bottom:var(--mm-border-width) solid var(--mm-shade-c7b29477);display:flex;gap:var(--mm-space-20);}
#mmg-app #mm-grimoire .mm-match legend{font-size:var(--mm-text-11px);color:var(--mm-shade-80694f);padding:0 0 var(--mm-space-7);}
#mmg-app #mm-grimoire .mm-match label{font-size:var(--mm-text-small);letter-spacing:0;text-transform:none;display:flex;align-items:center;gap:var(--mm-space-7);}
#mmg-app #mm-grimoire input[type=checkbox],#mmg-app #mm-grimoire input[type=radio]{width:16px;height:16px;min-width:16px;appearance:auto;accent-color:var(--mm-shade-745438);padding:0;margin:0;box-shadow:none;}
#mmg-app #mm-grimoire .mm-tag-option input[type=checkbox]{appearance:none;border:1px solid var(--mm-border);border-radius:3px;background:var(--mm-input-bg);flex-shrink:0;cursor:pointer;}
#mmg-app #mm-grimoire .mm-tag-option input[type=checkbox]:checked{background-color:var(--mm-primary);border-color:var(--mm-primary);background-image:url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 16 16%27%3E%3Cpath d=%27M3 8l3 3 7-7%27 fill=%27none%27 stroke=%27white%27 stroke-width=%272%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27/%3E%3C/svg%3E");background-size:14px 14px;background-position:center;background-repeat:no-repeat;}
#mmg-app #mm-grimoire .mm-tag-option input[type=checkbox]:focus-visible,#mmg-app #mm-grimoire .mm-cat:focus-visible{outline:2px solid var(--mm-primary);outline-offset:3px;}
@media(forced-colors:active){#mmg-app #mm-grimoire .mm-tag-option input[type=checkbox]{appearance:auto;}}
#mmg-app #mm-grimoire .mm-tag-options{max-height:260px;overflow:auto;overscroll-behavior:contain;}
#mmg-app #mm-grimoire .mm-tag-option{display:flex;gap:var(--mm-space-10);align-items:center;min-height:38px;padding:var(--mm-space-6) var(--mm-space-3);font-size:var(--mm-text-13px);letter-spacing:0;text-transform:none;cursor:pointer;overflow-wrap:anywhere;}
#mmg-app #mm-grimoire .mm-tag-option:hover{background:var(--mm-shade-eee1cb);}
#mmg-app #mm-grimoire .mm-active-filters{display:flex;flex-wrap:wrap;align-items:center;gap:var(--mm-space-8);margin:0 0 var(--mm-space-19);}
#mmg-app #mm-grimoire .mm-chip{display:inline-flex;align-items:center;gap:var(--mm-space-12);max-width:100%;overflow-wrap:anywhere;padding:var(--mm-space-5) var(--mm-space-11);border:var(--mm-border-width) solid var(--mm-shade-b8a181);border-radius:var(--mm-radius-chip);background:var(--mm-chip-bg);color:var(--mm-shade-59412c);font-size:var(--mm-text-small);}
#mmg-app #mm-grimoire .mm-clear{border:0;background:transparent;color:var(--mm-primary);font-size:var(--mm-text-small);padding:var(--mm-space-7);text-decoration:underline;text-underline-offset:.2em;}
#mmg-app #mm-grimoire .mm-results-row{display:flex;flex-direction:column;align-items:flex-start;gap:var(--mm-space-4);margin-bottom:var(--mm-space-15);}
#mmg-app #mm-grimoire .mm-results-label{margin:0;}
#mmg-app #mm-grimoire .mm-card{position:relative;padding:0;overflow-wrap:anywhere;}
#mmg-app #mm-grimoire .mm-card-link{display:block;padding:var(--mm-space-20) var(--mm-space-49) var(--mm-space-20) var(--mm-space-18);height:100%;text-decoration:none;color:inherit;}
#mmg-app #mm-grimoire .mm-card-category{font-size:var(--mm-text-9px);letter-spacing:.12em;text-transform:uppercase;color:var(--mm-shade-8c7359);}
#mmg-app #mm-grimoire .mm-card-sum{font-size:var(--mm-text-small);}
#mmg-app #mm-grimoire .mm-thumb{object-fit:contain;}
#mmg-app #mm-grimoire .mm-save{display:inline-flex;align-items:center;justify-content:center;gap:var(--mm-space-7);border:var(--mm-border-width) solid transparent;border-radius:var(--mm-radius-card);background:transparent;color:var(--mm-shade-795e41);min-height:40px;padding:var(--mm-space-8) var(--mm-space-13);font-size:var(--mm-text-small);}
#mmg-app #mm-grimoire .mm-save[aria-pressed=true]{background:transparent;color:var(--mm-shade-573b22);border-color:transparent;}
#mmg-app #mm-grimoire .mm-save:hover{background:var(--mm-save-hover);}
#mmg-app #mm-grimoire :is(.mm-save,.mm-view-tabs button,.mm-card-link):focus-visible{outline:2px solid var(--mm-selected-border);outline-offset:3px;}
#mmg-app #mm-grimoire .mm-save[aria-pressed=true] svg{fill:currentColor;}
#mmg-app #mm-grimoire .mm-save-small svg{display:block;transform:none;margin:0;justify-self:center;align-self:center;}
#mmg-app #mm-grimoire .mm-save-small{position:absolute;right:4px;top:4px;display:grid;place-items:center;gap:0;width:44px;height:44px;min-height:44px;padding:0;border-radius:var(--mm-radius-card);border-color:transparent;background:transparent;}
#mmg-app #mm-grimoire .mm-empty{padding:var(--mm-space-28) 0 var(--mm-space-55);text-align:center;}
#mmg-app #mm-grimoire .mm-empty h2{font-size:var(--mm-text-28px);margin-bottom:var(--mm-space-9);}
#mmg-app #mm-grimoire .mm-empty p{font-size:var(--mm-text-base);margin-bottom:var(--mm-space-18);}
#mmg-app #mm-grimoire .mm-action{background:var(--mm-button-bg);color:var(--mm-button-text);border:var(--mm-border-width) solid var(--mm-button-bg);border-radius:var(--mm-radius-card);padding:var(--mm-space-10) var(--mm-space-16);font-size:var(--mm-text-small);min-height:42px;}
#mmg-app #mm-grimoire .mm-action:disabled{opacity:.6;cursor:wait;}
#mmg-app #mm-grimoire .mm-load-error{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:var(--mm-space-15);margin-top:var(--mm-space-20);padding:var(--mm-space-16);background:var(--mm-error-bg);border:var(--mm-border-width) solid var(--mm-shade-bba080);border-radius:var(--mm-radius-card);font-size:var(--mm-text-13px);}
#mmg-app #mm-grimoire.mm-detail-view .mm-brand{padding:var(--mm-space-36) 0 var(--mm-space-10);display:flex;align-items:center;justify-content:space-between;gap:var(--mm-space-16);}
#mmg-app #mm-grimoire.mm-detail-view .mm-brand h1{display:flex;align-items:baseline;gap:.45em;white-space:nowrap;font-size:min(40px,9cqi);margin-inline:auto;}
#mmg-app #mm-grimoire.mm-detail-view .mm-brand h1 .mm-title-prefix{display:inline;font-size:.85em;line-height:1.1;}
#mmg-app #mm-grimoire.mm-detail-view .mm-brand h1 em{display:inline;}
#mmg-app #mm-grimoire.mm-detail-view .mm-brand-mark,#mmg-app #mm-grimoire.mm-detail-view .mm-brand p{display:none;}
#mmg-app #mm-grimoire.mm-detail-view .mm-brand-kicker{font-size:var(--mm-text-9px);letter-spacing:.18em;}
#mmg-app #mm-grimoire .mm-detail-nav{display:flex;justify-content:space-between;align-items:center;gap:var(--mm-space-14);margin-bottom:var(--mm-space-20);color:var(--mm-shade-806b54);font-size:var(--mm-text-small);}
#mmg-app #mm-grimoire .mm-detail-nav .mm-back{margin:0;min-height:44px;display:inline-flex;align-items:center;}
#mmg-app #mm-grimoire .mm-detail-nav{padding-right:0;min-height:44px;}
#mmg-app #mm-grimoire .mm-detail-nav .mm-save{position:relative;top:auto;right:auto;}
#mmg-app #mm-grimoire .mm-hero-tags{margin-top:var(--mm-space-15);}
#mmg-app #mm-grimoire .mm-hero-sum{font-size:var(--mm-text-body-small);}
#mmg-app #mm-grimoire .mm-hero-actions{margin-top:var(--mm-space-20);}
#mmg-app #mm-grimoire .mm-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}
@media(max-width:720px){#mmg-app #mm-grimoire .mm-controls{grid-template-columns:minmax(0,1fr);row-gap:var(--mm-space-24);}}
@media(max-width:560px){#mmg-app #mm-grimoire .mm-controls{grid-template-columns:minmax(0,1fr);}
#mmg-app #mm-grimoire .mm-intention-panel{position:static;margin-top:var(--mm-space-8);box-shadow:none;}
#mmg-app #mm-grimoire .mm-tag-options{max-height:230px;}
#mmg-app #mm-grimoire.mm-detail-view .mm-brand{flex-direction:column;align-items:flex-start;gap:var(--mm-space-5);}
#mmg-app #mm-grimoire .mm-chip{min-height:40px;}
#mmg-app #mm-grimoire .mm-tag-option{min-height:44px;}
#mmg-app #mm-grimoire .mm-match label{min-height:40px;}
#mmg-app #mm-grimoire .mm-save-small{width:44px;min-height:44px;right:4px;top:4px;}
#mmg-app #mm-grimoire .mm-detail-nav{align-items:center;}
}
#mmg-app [hidden]{display:none!important}
#mmg-app .mmg-account-nav{display:flex;justify-content:flex-end;gap:var(--mm-space-20);padding:var(--mm-space-12) var(--mm-space-24);background:var(--mm-bg)}
#mmg-app .mmg-account-nav a{color:var(--mm-primary)}
/* One gate system for every auth, access, welcome and error state. */
#mmg-app .mmg-gate{box-sizing:border-box;width:calc(100% - 24px);max-width:560px;margin:24px auto 40px;padding:clamp(24px,4vw,36px);background:var(--mm-card);color:var(--mm-fg);border:var(--mm-border-width) solid var(--mm-border);border-radius:var(--mm-radius-gate);font-family:var(--mm-font-gate);font-size:var(--mm-text-base);line-height:var(--mm-line-height);overflow-wrap:anywhere;}
#mmg-app .mmg-gate h1{font-family:var(--mm-font-gate);font-size:clamp(26px,5vw,32px);font-weight:700;line-height:1.2;color:var(--mm-fg);margin:0 0 16px;}
#mmg-app .mmg-gate p{margin:0 0 16px;}
#mmg-app .mmg-gate p:empty{display:none;}
#mmg-app .mmg-gate > :last-child{margin-bottom:0;}
#mmg-app .mmg-gate form{margin:24px 0 0;}
#mmg-app .mmg-gate label{display:block;margin:12px 0;}
#mmg-app .mmg-gate input[type=email],#mmg-app .mmg-gate input[type=text],#mmg-app .mmg-gate input[type=password]{display:block;width:100%;min-width:0;min-height:48px;margin-top:8px;box-sizing:border-box;padding:12px;border:var(--mm-border-width) solid var(--mm-border);border-radius:var(--mm-radius-card);background:var(--mm-input-bg);color:var(--mm-fg);font:inherit;font-size:16px;}
#mmg-app .mmg-gate input[type=checkbox]{accent-color:var(--mm-primary);}
#mmg-app .mmg-gate button,#mmg-app .mmg-button,#mmg-app .mmg-gate input[type=submit]{display:inline-block;max-width:100%;min-height:44px;margin:12px 0;padding:12px 20px;background:var(--mm-button-bg);color:var(--mm-button-text);border:1px solid var(--mm-button-bg);border-radius:var(--mm-radius-button);font:inherit;line-height:1.4;text-align:center;text-decoration:none;white-space:normal;cursor:pointer;}
#mmg-app .mmg-gate a:not(.mmg-button){color:var(--mm-primary);font-weight:600;text-decoration:underline;text-underline-offset:.2em;text-decoration-thickness:1px;}
#mmg-app .mmg-gate a:not(.mmg-button):hover{color:var(--mm-fg);text-decoration-thickness:2px;}
#mmg-app .mmg-gate :is(a,button,input,summary):focus-visible,#mmg-app .mmg-account-nav a:focus-visible{outline:2px solid var(--mm-focus-color);outline-offset:4px;}
#mmg-app .mmg-gate details{margin-top:24px;}
#mmg-app .mmg-gate summary{padding:10px 0;min-height:44px;color:var(--mm-primary);font-weight:600;cursor:pointer;}
#mmg-app .mmg-gate .mmg-password-help{margin-top:24px;color:var(--mm-muted);}
#mmg-app .mmg-gate .mmg-text-link{display:inline-block;padding:10px 0;min-height:44px;}
#mmg-app .mmg-gate .mmg-gate-footer{margin-top:32px;padding-top:24px;border-top:1px solid var(--mm-border);}
#mmg-app .mmg-kicker{letter-spacing:.2em;font-size:var(--mm-text-75rem);color:var(--mm-muted);}
#mmg-app #mmg-import{padding:var(--mm-space-14) var(--mm-space-24);background:var(--mm-badge);color:var(--mm-fg)}
#mmg-app #mmg-import button{margin:var(--mm-space-4) var(--mm-space-8);padding:var(--mm-space-8) var(--mm-space-12)}


#mmg-app .mm-card{min-height:var(--mm-card-min-height);}
#mmg-app .mmg-gate{overflow-wrap:anywhere;}

/* Session connectivity notice and login-request controls: same shared design. */
#mmg-app .mmg-session-notice{margin:var(--mm-space-12) var(--mm-space-24);padding:var(--mm-space-12);border:var(--mm-border-width) solid var(--mm-border);border-radius:var(--mm-radius-card);background:var(--mm-badge);color:var(--mm-fg);}
#mmg-app .mmg-session-notice button{margin-left:var(--mm-space-12);padding:var(--mm-space-8);cursor:pointer;}
#mmg-app .mmg-gate button:disabled,#mmg-app .mmg-session-notice button:disabled{opacity:.65;cursor:wait;}
#mmg-app .mmg-gate .mmg-secondary{background:transparent;color:var(--mm-primary);border:var(--mm-border-width) solid var(--mm-border);}

#mmg-app .mmg-small{font-size:var(--mm-text-small);color:var(--mm-muted);}

/* 1.2.6 authorized header: equal outer tracks keep the logo mathematically centered. */
#mmg-app .mmg-app-header{position:relative;background:transparent;display:grid;grid-template-columns:minmax(44px,1fr) minmax(0,180px) minmax(44px,1fr);align-items:center;gap:12px;min-height:76px;padding:16px max(16px,env(safe-area-inset-right),env(safe-area-inset-left)) 10px;border-bottom:1px solid var(--mm-divider-color);}
#mmg-app .mmg-logo{display:block;justify-self:center;width:100%;height:58px;object-fit:contain;}
#mmg-app .mmg-icon-button{display:inline-flex;justify-content:center;align-items:center;width:44px;height:44px;min-width:44px;padding:10px;border:1px solid transparent;border-radius:50%;background:transparent;color:var(--mm-primary);cursor:pointer;text-decoration:none;font:28px/1 var(--mm-font-body);}
#mmg-app .mmg-profile{justify-self:end;color:var(--mm-header-ink);}
#mmg-app svg.mm-fa-icon{fill:currentColor;stroke:none;}
#mmg-app svg,#mmg-app .mmg-icon-button,#mmg-app .mm-search-symbol,#mmg-app .mm-hero-glyph,#mmg-app .mm-chip button,#mmg-app .mmg-help-choices button span{color:#000000!important;}
#mmg-app .mmg-app-header :is(.mmg-help-trigger,.mmg-profile) svg{display:block;width:24px;height:24px;fill:currentColor;stroke:none;}
#mmg-app .mmg-icon-button svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;}
#mmg-app .mmg-icon-button:hover{background:var(--mm-card);border-color:var(--mm-border);}
#mmg-app :is(.mmg-app-header,.mmg-support) :is(a,button,input,textarea):focus-visible{outline:2px solid var(--mm-focus-color);outline-offset:3px;}
#mmg-app .mmg-support{position:fixed;inset:0;margin:auto;width:calc(100% - 32px);max-width:480px;max-height:calc(100svh - 32px);overflow:auto;overscroll-behavior:contain;padding:28px;background:var(--mm-card);color:var(--mm-fg);border:1px solid var(--mm-border);border-radius:16px;box-shadow:0 18px 70px #3a2f2633;font:16px/1.5 var(--mm-font-body);}
#mmg-app .mmg-support::backdrop{background:#3a2f264d;}
#mmg-app .mmg-support h2{font-family:var(--mm-font-heading);font-size:27px;line-height:1.2;margin:8px 32px 18px 0;color:var(--mm-fg);}
#mmg-app .mmg-support p{margin:0 0 18px;overflow-wrap:anywhere;}
#mmg-app .mmg-support-close{position:absolute;top:12px;right:12px;}
#mmg-app .mmg-support-menu{inset:var(--mmg-help-top,80px) auto auto var(--mmg-help-left,16px);margin:0;max-width:320px;}
#mmg-app .mmg-support-menu::backdrop{background:#3a2f2614;}
#mmg-app .mmg-help-choices{display:grid;gap:8px;}
#mmg-app .mmg-help-choices button{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 8px;border:0;border-bottom:1px solid var(--mm-border);background:transparent;color:var(--mm-primary);font:inherit;text-align:left;min-height:48px;cursor:pointer;}
#mmg-app .mmg-support label{display:block;font-weight:600;margin:18px 0 8px;}
#mmg-app .mmg-support label span{font-weight:400;font-size:13px;}
#mmg-app .mmg-support input,#mmg-app .mmg-support textarea{display:block;width:100%;min-height:48px;padding:12px;background:var(--mm-input-bg);color:var(--mm-fg);border:1px solid var(--mm-border);border-radius:8px;font:16px/1.5 var(--mm-font-body);resize:vertical;}
#mmg-app .mmg-support .mmg-support-note{font-size:var(--mm-text-small);color:var(--mm-muted);margin:12px 0;}
#mmg-app .mmg-support [data-support-status]:empty{display:none;}
#mmg-app .mmg-support-send{min-height:48px;border:1px solid var(--mm-button-bg);border-radius:var(--mm-radius-button);padding:12px 20px;background:var(--mm-button-bg);color:var(--mm-button-text);font:inherit;cursor:pointer;}
#mmg-app .mmg-support-send:disabled{opacity:.65;cursor:wait;}
#mmg-app #mm-grimoire .mm-card-tags{font-size:var(--mm-text-small);color:var(--mm-muted);line-height:1.6;margin-top:5px;overflow-wrap:anywhere;}
#mmg-app #mm-grimoire .mm-intention-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:44px;font-size:var(--mm-text-11px);color:var(--mm-muted);}
#mmg-app #mm-grimoire .mm-intention-heading .mm-clear{min-height:44px;flex-shrink:0;}
@media(max-width:560px){
 #mmg-app .mmg-app-header{grid-template-columns:minmax(44px,1fr) minmax(0,150px) minmax(44px,1fr);min-height:68px;padding-top:12px;padding-bottom:6px;}
 #mmg-app .mmg-logo{height:54px;}
 #mmg-app .mmg-support{inset:auto 0 0;margin:0 auto;width:100%;max-width:100%;max-height:calc(100svh - 16px);border-radius:18px 18px 0 0;padding:24px 20px max(24px,env(safe-area-inset-bottom));}
 #mmg-app .mmg-support-menu::backdrop{background:#3a2f264d;}
 #mmg-app .mmg-support-send{width:100%;}
}

#mmg-app .mmg-logo-wrap{display:grid;place-items:center;width:100%;height:58px;}
#mmg-app .mmg-logo-fallback{font:26px/1 var(--mm-font-heading);color:var(--mm-primary);}

#mmg-app .mm-hero-tags .mm-badge{text-transform:none;}

/* 1.2.6 utility Help and uncluttered details. Header scrolls in normal document flow. */
#mmg-app .mmg-help-trigger{display:inline-flex;align-items:center;justify-content:center;justify-self:start;min-height:44px;min-width:44px;padding:10px;border:0;background:transparent;color:var(--mm-header-ink);font:14px/1.4 var(--mm-font-body);cursor:pointer;}
#mmg-app .mmg-support-menu{width:300px;max-width:calc(100% - 32px);padding:18px;font-size:14px;}
#mmg-app .mmg-support-menu h2{font:600 16px/1.4 var(--mm-font-body);margin:4px 30px 12px 0;}
#mmg-app .mmg-help-choices{gap:0;}
#mmg-app .mmg-help-choices button{font-size:14px;min-height:44px;padding:10px 2px;}
#mmg-app #mm-grimoire .mm-detail-nav .mm-save{display:grid;place-items:center;gap:0;flex:none;width:44px;height:44px;min-height:44px;padding:0;}
#mmg-app #mm-grimoire .mm-detail-nav .mm-save svg{display:block;transform:none;margin:0;justify-self:center;align-self:center;}
#mmg-app .mmg-legal-footer{background:var(--mm-page-bottom);border-top:1px solid var(--mm-divider-color);display:flex;justify-content:center;flex-wrap:wrap;gap:8px;padding:18px;font-size:var(--mm-text-small);color:var(--mm-muted);}
#mmg-app .mmg-legal-footer a{color:inherit;text-underline-offset:.2em;}
#mmg-app #mm-search{transition:none;}
@media(max-width:560px){#mmg-app .mmg-support-menu{width:100%;max-width:100%;padding:20px;}}

/* Shared action-button and reading styles across collection, entry, account and help screens. */
#mmg-app #mm-grimoire .mm-action,
#mmg-app .mmg-gate button:not(.mmg-secondary),
#mmg-app .mmg-button,
#mmg-app .mmg-gate input[type=submit],
#mmg-app .mmg-support-send{
  min-height:var(--mm-action-height);padding:12px 20px;
  font-family:var(--mm-font-body);font-size:var(--mm-action-text-size);font-weight:500;line-height:1.4;
  color:var(--mm-button-text);background:var(--mm-button-bg);
  border:1px solid var(--mm-button-bg);border-radius:var(--mm-radius-button);
  text-align:center;white-space:normal;max-width:100%;cursor:pointer;
}
#mmg-app .mmg-gate,#mmg-app .mmg-support{font-family:var(--mm-font-body);font-size:var(--mm-text-base);color:var(--mm-fg);}
#mmg-app #mm-grimoire .mm-body{font-size:var(--mm-text-base);line-height:var(--mm-line-height);color:var(--mm-fg);}
#mmg-app #mm-grimoire .mm-body p{font-size:inherit;color:inherit;}
#mmg-app #mm-grimoire .mm-detail-wrap .mm-section h2{font-size:var(--mm-text-28px);color:var(--mm-fg);}
#mmg-app .mmg-help-choices button{font-size:var(--mm-text-body-small);color:var(--mm-filter-ink);}
#mmg-app .mmg-support label span,#mmg-app .mmg-support .mmg-support-note{font-size:var(--mm-text-small);color:var(--mm-muted);}

/* Detail alignment: panel edges define the common grid. */
#mmg-app #mm-grimoire .mm-empty .mm-action{margin-top:16px;margin-bottom:40px;}
#mmg-app #mm-grimoire .mm-save{position:relative;}
#mmg-app #mm-grimoire .mm-save-small{position:absolute;}
#mmg-app #mm-grimoire .mm-save svg,#mmg-app #mm-grimoire .mm-save-small svg,#mmg-app #mm-grimoire .mm-detail-nav .mm-save svg{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);margin:0;width:18px;height:18px;}
#mmg-app #mm-grimoire .mm-hero{display:flex;flex-direction:column;align-items:center;text-align:center;padding:16px 0 0;}
#mmg-app #mm-grimoire .mm-hero .mm-eyebrow{justify-content:center;font-size:var(--mm-text-small);letter-spacing:.12em;}
#mmg-app #mm-grimoire .mm-hero-img{margin:16px auto 0;image-rendering:auto;}
#mmg-app #mm-grimoire .mm-kin p{font-family:var(--mm-font-heading);font-size:var(--mm-text-card);color:var(--mm-fg);}
#mmg-app #mm-grimoire .mm-kin img{object-fit:contain;}

/* Feedback states share the same reading hierarchy and action treatment. */
#mmg-app #mm-grimoire .mm-load-error,
#mmg-app .mmg-session-notice{
  font:400 var(--mm-text-base)/var(--mm-line-height) var(--mm-font-body);
  color:var(--mm-fg);background:var(--mm-card);
  border:var(--mm-border-width) solid var(--mm-outline-soft);
  border-radius:var(--mm-radius-card);padding:20px;
}
#mmg-app .mmg-session-notice{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:16px;}
#mmg-app .mmg-session-notice[hidden]{display:none;}
#mmg-app .mmg-session-notice button{
  margin:0;min-height:var(--mm-action-height);padding:12px 20px;
  font:500 var(--mm-action-text-size)/1.4 var(--mm-font-body);
  color:var(--mm-button-text);background:var(--mm-button-bg);
  border:1px solid var(--mm-button-bg);border-radius:var(--mm-radius-button);cursor:pointer;
}
#mmg-app #mm-grimoire .mm-load-error .mm-action{flex-shrink:0;}
#mmg-app #mm-grimoire .mm-note{font-size:var(--mm-text-base);font-style:normal;color:var(--mm-fg);line-height:var(--mm-line-height);}
#mmg-app .mmg-gate h1{font-family:var(--mm-font-heading);font-weight:400;color:var(--mm-fg);}
#mmg-app .mmg-gate :is([role=alert],[data-mmg-welcome-error]):not(:empty),
#mmg-app .mmg-support [data-support-status]:not(:empty){
  font:400 var(--mm-text-base)/var(--mm-line-height) var(--mm-font-body);
  color:var(--mm-fg);margin:20px 0;padding:16px;
  background:var(--mm-card2);border-left:3px solid var(--mm-primary);border-radius:var(--mm-radius-badge);
}
#mmg-app .mmg-gate :is([data-mmg-wait],[data-mmg-form-wait]):not(:empty){font-size:var(--mm-text-small);line-height:1.6;color:var(--mm-muted);}
#mmg-app .mmg-gate [data-mmg-welcome-error]:empty{margin:0;padding:0;}
/* Keep the existing conditional related-entry section and homepage card fade. */
#mmg-app #mm-grimoire .mm-kin{gap:var(--mm-space-16);align-items:stretch;}
#mmg-app #mm-grimoire .mm-kin a{
  background:linear-gradient(180deg,var(--mm-card-gradient-top),var(--mm-card-gradient-bottom));
  border:var(--mm-border-width) solid var(--mm-outline-soft);border-radius:var(--mm-radius-card);
  padding:20px 16px;color:var(--mm-fg);
}
#mmg-app #mm-grimoire .mm-kin a:hover{border-color:var(--mm-border);}
#mmg-app #mm-grimoire .mm-kin a:focus-visible{outline:2px solid var(--mm-selected-border);outline-offset:3px;}
@media(max-width:400px){#mmg-app #mm-grimoire .mm-kin{grid-template-columns:1fr;}}

/* Readability refinements: preserve full-width panels, constrain long reading lines. */
#mmg-app #mm-grimoire .mm-body{overflow-wrap:anywhere;}
#mmg-app #mm-grimoire .mm-body :is(p,ul,ol,blockquote){max-width:70ch;}
#mmg-app #mm-grimoire .mm-body p{margin:0 0 1.25em;}
#mmg-app #mm-grimoire .mm-body :is(ul,ol){margin-top:0;margin-bottom:1.25em;}
#mmg-app #mm-grimoire .mm-body li+li{margin-top:.4em;}
#mmg-app #mm-grimoire .mm-body :is(h2,h3){line-height:1.25;}
#mmg-app #mm-grimoire .mm-view-tabs{flex-wrap:wrap;max-width:100%;}
#mmg-app #mm-grimoire .mm-match{flex-wrap:wrap;row-gap:8px;}
#mmg-app #mm-grimoire .mm-intention-heading{flex-wrap:wrap;column-gap:16px;}
#mmg-app #mm-grimoire .mm-intention-menu summary>span:first-child{min-width:0;overflow-wrap:anywhere;}
#mmg-app #mm-grimoire .mm-intention-menu summary>span:last-child{flex-shrink:0;}
#mmg-app #mm-grimoire .mm-kin a{min-width:0;overflow-wrap:anywhere;}
#mmg-app #mm-grimoire .mm-detail-nav .mm-back{min-width:0;}
#mmg-app #mm-grimoire .mm-detail-nav .mm-back svg{flex-shrink:0;}
#mmg-app .mmg-session-notice button:focus-visible{outline:2px solid var(--mm-selected-border);outline-offset:3px;}

/* Restrained, consistent feedback for brown action buttons. */
#mmg-app #mm-grimoire .mm-action,
#mmg-app .mmg-gate button:not(.mmg-secondary),
#mmg-app .mmg-button,
#mmg-app .mmg-gate input[type=submit],
#mmg-app .mmg-support-send,
#mmg-app .mmg-session-notice button{transition:background-color 100ms ease,border-color 100ms ease;}
@media(hover:hover){
#mmg-app #mm-grimoire .mm-action:not(:disabled):not([aria-disabled="true"]):hover,
#mmg-app .mmg-gate button:not(.mmg-secondary):not(:disabled):not([aria-disabled="true"]):hover,
#mmg-app .mmg-button:not(:disabled):not([aria-disabled="true"]):hover,
#mmg-app .mmg-gate input[type=submit]:not(:disabled):not([aria-disabled="true"]):hover,
#mmg-app .mmg-support-send:not(:disabled):not([aria-disabled="true"]):hover,
#mmg-app .mmg-session-notice button:not(:disabled):not([aria-disabled="true"]):hover{background:#60442e;border-color:#60442e;}
}
#mmg-app #mm-grimoire .mm-action:not(:disabled):not([aria-disabled="true"]):active,
#mmg-app .mmg-gate button:not(.mmg-secondary):not(:disabled):not([aria-disabled="true"]):active,
#mmg-app .mmg-button:not(:disabled):not([aria-disabled="true"]):active,
#mmg-app .mmg-gate input[type=submit]:not(:disabled):not([aria-disabled="true"]):active,
#mmg-app .mmg-support-send:not(:disabled):not([aria-disabled="true"]):active,
#mmg-app .mmg-session-notice button:not(:disabled):not([aria-disabled="true"]):active{background:#513923;border-color:#513923;}
@media(prefers-reduced-motion:reduce){
#mmg-app #mm-grimoire .mm-action,
#mmg-app .mmg-gate button:not(.mmg-secondary),
#mmg-app .mmg-button,
#mmg-app .mmg-gate input[type=submit],
#mmg-app .mmg-support-send,
#mmg-app .mmg-session-notice button{transition:none;}
}
#mmg-app #mm-grimoire .mm-kin a{padding-top:24px;padding-bottom:16px;}
#mmg-app #mm-grimoire .mm-kin img{margin-bottom:4px;}
/* 1.2.6: native full-area disclosure and accessible header navigation. */
#mmg-app .mmg-logo-wrap{text-decoration:none;min-height:44px;}
#mmg-app .mmg-app-header .mmg-help-trigger .mmg-question{fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;}
#mmg-app .mmg-help-choices button{border:0;border-radius:0;box-shadow:none;background:transparent;text-decoration:none;}
@media(hover:hover){#mmg-app .mmg-help-choices button:hover{text-decoration:underline;text-underline-offset:.2em;}}
#mmg-app #mm-grimoire .mm-intention-menu{padding:0;border:0;background:transparent;}
#mmg-app #mm-grimoire .mm-intention-menu>summary{width:100%;min-height:49px;margin:0;position:relative;touch-action:manipulation;}
#mmg-app #mm-grimoire .mm-intention-menu>summary>*{pointer-events:none;}
#mmg-app #mm-grimoire .mm-chevron{width:18px;height:18px;flex:none;align-self:center;transition:transform .15s;}
#mmg-app #mm-grimoire .mm-intention-menu[open]>summary .mm-chevron{transform:rotate(180deg);}
/* 1.2.6: content-sized cards have identical geometry regardless of the active filter. */
#mmg-app #mm-grimoire .mm-grid{grid-auto-rows:auto;align-items:start;}
#mmg-app #mm-grimoire .mm-card,#mmg-app #mm-grimoire .mm-card-link{height:auto;}
#mmg-app #mm-grimoire .mm-card-category{display:block;line-height:1.3;}
#mmg-app #mm-grimoire .mm-card h3{margin-top:6px;line-height:1.25;}
@media(max-width:560px){
 #mmg-app #mm-grimoire .mm-card-link{padding:16px 48px 16px 16px;}
 #mmg-app #mm-grimoire .mm-card-row{gap:10px;}
 #mmg-app #mm-grimoire .mm-card-sum{min-height:0;line-height:1.5;margin-top:6px;}
}
/* One reading column for every detail section; navigation remains at the panel edge. */
#mmg-app #mm-grimoire .mm-detail-wrap>.mm-hero,
#mmg-app #mm-grimoire .mm-detail-wrap>.mm-section{width:100%;max-width:var(--mm-reading-width);margin-left:auto;margin-right:auto;}
#mmg-app #mm-grimoire .mm-detail-wrap .mm-body :is(p,ul,ol,blockquote){max-width:none;}
#mmg-app #mm-grimoire .mm-detail-wrap .mm-section h2{font-family:var(--mm-font-heading);}
#mmg-app #mm-grimoire .mm-detail-wrap .mm-category-subtitle,
#mmg-app #mm-grimoire .mm-detail-wrap .mm-section h2.mm-category-subtitle{display:block;font:400 var(--mm-text-small)/1.5 var(--mm-font-body);letter-spacing:.12em;text-transform:uppercase;color:var(--mm-muted);text-align:center;}
#mmg-app #mm-grimoire .mm-category-divider{width:160px;max-width:100%;height:1px;margin:8px auto 0;background:linear-gradient(90deg,transparent,var(--mm-divider-color),transparent);flex:none;}
#mmg-app #mm-grimoire .mm-hero h1{margin-top:32px;}
/* No forced word splitting: narrow reading columns use one/two balanced columns. */
#mmg-app #mm-grimoire .mm-meanings{container-type:inline-size;container-name:mmg-meanings;}
#mmg-app #mm-grimoire .mm-detail-wrap .mm-meanings h2{font:600 15px/1.5 var(--mm-font-body);letter-spacing:.04em;color:var(--mm-filter-ink);display:block;text-align:center;}
#mmg-app #mm-grimoire .mm-meanings ul{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));list-style:none;margin:12px 0 0;padding:0;border-top:1px solid var(--mm-divider-color);border-bottom:1px solid var(--mm-divider-color);}
#mmg-app #mm-grimoire .mm-meanings li{padding:16px 6px;font:400 15px/1.45 var(--mm-font-body);overflow-wrap:normal;word-break:normal;hyphens:none;white-space:normal;text-align:center;}
#mmg-app #mm-grimoire .mm-meanings li+li{border-left:1px solid var(--mm-divider-color);}
@container mmg-meanings (max-width:599px){
 #mmg-app #mm-grimoire .mm-meanings ul{grid-template-columns:repeat(2,minmax(0,1fr));}
 #mmg-app #mm-grimoire .mm-meanings li:nth-child(3){border-left:0;}
 #mmg-app #mm-grimoire .mm-meanings li:nth-child(n+3){border-top:1px solid var(--mm-divider-color);}
}
@container mmg-meanings (max-width:279px){
 #mmg-app #mm-grimoire .mm-meanings ul{grid-template-columns:minmax(0,1fr);}
 #mmg-app #mm-grimoire .mm-meanings li{padding:12px 6px;}
 #mmg-app #mm-grimoire .mm-meanings li+li{border-left:0;border-top:1px solid var(--mm-divider-color);}
}
/* Exact authored tips, each in a quiet parchment container. */
#mmg-app #mm-grimoire .mm-tips ul{display:grid;gap:12px;list-style:none;margin:16px 0 0;padding:0;max-width:none;border:0;}
#mmg-app #mm-grimoire .mm-tips li{margin:0;padding:14px 18px;border:1px solid var(--mm-outline-soft);border-radius:var(--mm-radius-card);background:linear-gradient(180deg,var(--mm-card-gradient-top),var(--mm-card-gradient-bottom));font:400 24px/1.4 var(--mm-font-hand);color:var(--mm-title-secondary);text-align:center;list-style:none;}
#mmg-app #mm-grimoire .mm-tips li::marker{content:"";}
#mmg-app #mm-grimoire .mm-tips li+li{margin-top:0;}
#mmg-app #mm-grimoire .mm-tips li>*{max-width:none;}
#mmg-app #mm-grimoire .mm-spell-options{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px;}
#mmg-app #mm-grimoire .mm-spell-tag{font:inherit;font-size:16px;min-height:44px;max-width:100%;overflow-wrap:anywhere;padding:8px 16px;border:1px solid var(--mm-selected-border);border-radius:var(--mm-radius-pill);background:var(--mm-chip-bg);color:var(--mm-fg);text-decoration:none;}
#mmg-app #mm-grimoire .mm-spell-tag:hover{background:var(--mm-card2);border-color:var(--mm-border);text-decoration:none;}
@media(max-width:560px){
 #mmg-app #mm-grimoire .mm-spell-options{gap:8px;}
 #mmg-app #mm-grimoire .mm-spell-tag{font-size:14px;padding:6px 12px;min-height:40px;}
}
#mmg-app #mm-grimoire .mm-about-category{padding-top:0;border-top:0;}
#mmg-app #mm-grimoire .mm-about-icon{display:flex;justify-content:center;margin:0 auto 10px;}
#mmg-app #mm-grimoire .mm-about-icon svg{width:24px;height:24px;}
#mmg-app #mm-grimoire .mm-about-category .mm-body{margin-top:24px;}
#mmg-app #mm-grimoire .mm-explore .mm-kin{margin-top:18px;}
@media(prefers-reduced-motion:reduce){#mmg-app #mm-grimoire .mm-chevron{transition:none;}}

/* Daily Tracker 1.4.3 — shared post-container, keyword and popup styling. */
#mmg-app #mm-grimoire:not(.mm-detail-view) .mm-brand{border-bottom:0;border-image:none;padding-bottom:var(--mm-space-16);}
#mmg-app #mm-grimoire .mm-daily-tracker{--mm-daily-padding:clamp(18px,4vw,40px);width:100%;max-width:none;margin:var(--mm-space-28) 0;position:relative;overflow:hidden;padding:var(--mm-daily-padding);text-align:center;background:var(--mm-card);border:var(--mm-border-width) solid var(--mm-outline-soft);border-radius:var(--mm-radius-card);}
#mmg-app #mm-grimoire.mm-detail-view .mm-daily-tracker{display:none;}
#mmg-app #mm-grimoire .mm-daily-heading h2{font:400 var(--mm-text-small)/1.5 var(--mm-font-body);letter-spacing:.12em;text-transform:uppercase;color:var(--mm-primary);margin:0 30px 12px;}
#mmg-app #mm-grimoire .mm-daily-heading time{display:block;padding-top:8px;font:400 var(--mm-text-entry-title)/1.2 var(--mm-font-display);color:var(--mm-title-accent);}
#mmg-app #mm-grimoire .mm-daily-help{position:absolute;top:10px;right:10px;}
#mmg-app #mm-grimoire .mm-daily-themes{margin:18px 0 0;}
#mmg-app #mm-grimoire .mm-daily-tags{display:flex;justify-content:center;flex-wrap:wrap;gap:8px;}
#mmg-app #mm-grimoire .mm-daily-tag{font:inherit;font-size:16px;line-height:1.5;background:var(--mm-chip-bg);color:var(--mm-fg);border:1px solid var(--mm-selected-border);border-radius:var(--mm-radius-pill);padding:6px 14px;}
#mmg-app #mm-grimoire .mm-daily-earth{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));margin:36px 0;}
#mmg-app #mm-grimoire .mm-daily-lunar{display:flex;justify-content:center;flex-wrap:wrap;margin:20px 0 0;}
#mmg-app #mm-grimoire .mm-daily-link{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:4px;min-width:0;min-height:64px;padding:8px 12px;text-decoration:none;color:var(--mm-fg);line-height:1.25;border:0;border-left:1px solid var(--mm-divider-color);background:none;border-radius:0;}
#mmg-app #mm-grimoire .mm-daily-link:first-child{border-left:0;}
#mmg-app #mm-grimoire .mm-daily-lunar .mm-daily-link{flex:1 1 140px;}
#mmg-app #mm-grimoire .mm-daily-label{font:400 var(--mm-text-small)/1.3 var(--mm-font-body);color:var(--mm-muted);}
#mmg-app #mm-grimoire .mm-daily-link-value{font:400 var(--mm-text-base)/1.25 var(--mm-font-heading);overflow-wrap:anywhere;}
#mmg-app #mm-grimoire a.mm-daily-link:hover .mm-daily-link-value{text-decoration:underline;text-underline-offset:.2em;}
#mmg-app #mm-grimoire .mm-daily-sky{position:relative;isolation:isolate;overflow:hidden;margin:0 calc(-1 * var(--mm-daily-padding));border:0;border-radius:0;background:radial-gradient(ellipse at 50% 130%,#344c50 0,transparent 64%),linear-gradient(115deg,#111b20,#203237 50%,#111b20);box-shadow:inset 0 0 40px #0005;}
#mmg-app #mm-grimoire .mm-daily-sky::before{content:"";position:absolute;inset:0;z-index:-1;opacity:.6;background-image:radial-gradient(circle at 12% 23%,#f7efdd 0 1px,transparent 1.7px),radial-gradient(circle at 31% 68%,#c1d7db 0 .6px,transparent 1.3px),radial-gradient(circle at 63% 19%,#f7efdd 0 .8px,transparent 1.5px),radial-gradient(circle at 87% 57%,#c1d7db 0 .7px,transparent 1.4px);background-size:173px 137px,227px 191px,293px 157px,137px 223px;}
#mmg-app #mm-grimoire .mm-daily-moons{max-width:900px;margin:0 auto;display:grid;grid-template-columns:1fr 1fr minmax(230px,1.65fr) 1fr 1fr;align-items:center;gap:14px;min-height:234px;padding:16px 30px;}
#mmg-app #mm-grimoire .mm-daily-moon{display:flex;align-items:center;justify-content:center;flex-direction:column;min-width:0;text-decoration:none;color:#f7efdd;}
#mmg-app #mm-grimoire .mm-daily-orb{display:block;object-fit:contain;width:100%;max-width:130px;height:130px;margin:0;filter:drop-shadow(0 0 17px #d5e5e922);}
#mmg-app #mm-grimoire .mm-daily-moon-near{opacity:.4;transform:translateY(-8px);}
#mmg-app #mm-grimoire .mm-daily-moon-near .mm-daily-orb{max-width:78px;height:78px;}
#mmg-app #mm-grimoire .mm-daily-moon-far{opacity:.16;transform:translateY(-8px);}
#mmg-app #mm-grimoire .mm-daily-moon-far .mm-daily-orb{max-width:52px;height:52px;}
#mmg-app #mm-grimoire .mm-daily-moon-current{padding:10px;border:1px solid transparent;border-radius:var(--mm-radius-card);transition:background-color .15s,border-color .15s;}
#mmg-app #mm-grimoire .mm-daily-moon-current:hover,#mmg-app #mm-grimoire .mm-daily-moon-current:focus-visible{background:rgba(189,216,220,.07);border-color:rgba(189,216,220,.12);text-decoration:none;}
#mmg-app #mm-grimoire .mm-daily-moon-name{font-family:var(--mm-font-heading);font-size:var(--mm-text-card);line-height:1.25;margin-top:6px;text-decoration:none;}
#mmg-app #mm-grimoire .mm-daily-placeholder{font-family:serif;font-size:65px;line-height:1.7;color:#d6e2e5;}
#mmg-app #mm-grimoire .mm-daily-actions{display:flex;justify-content:center;gap:clamp(20px,6vw,80px);margin:22px auto 0;}
#mmg-app #mm-grimoire .mm-daily-object{appearance:none;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;flex:0 1 220px;min-width:0;min-height:44px;padding:8px 4px;background:transparent;border:0;border-radius:var(--mm-radius-card);color:var(--mm-fg);font:400 var(--mm-text-small)/1.5 var(--mm-font-body);letter-spacing:.04em;color:var(--mm-primary);cursor:pointer;}
#mmg-app #mm-grimoire .mm-daily-object img{display:block;width:140px;max-width:100%;height:140px;object-fit:contain;transform:translateY(0) scale(1);filter:drop-shadow(0 0 0 transparent);transition:transform .24s ease,filter .24s ease;}
@media(hover:hover){#mmg-app #mm-grimoire .mm-daily-object:hover img{transform:translateY(-3px) scale(1.03);filter:drop-shadow(0 5px 10px rgba(153,105,48,.23));}}
#mmg-app #mm-grimoire .mm-daily-object:active img{transform:scale(.98);filter:drop-shadow(0 2px 6px rgba(153,105,48,.18));}
#mmg-app #mm-grimoire .mm-daily-tracker a:focus-visible,#mmg-app #mm-grimoire .mm-daily-tracker button:focus-visible{outline:2px solid var(--mm-focus-color);outline-offset:3px;}
#mmg-app #mm-grimoire .mm-daily-moon-current:focus-visible{outline-color:#f7efdd;}
#mmg-app #mm-grimoire .mm-daily-loading{display:flex;flex-direction:column;align-items:center;gap:12px;margin:0;padding:38px 12px;font-size:var(--mm-text-base);color:var(--mm-muted);opacity:1;transition:opacity .18s ease;}
#mmg-app #mm-grimoire .mm-daily-loading i{font-size:32px;line-height:1;color:var(--mm-primary);animation:mmg-daily-hat 1.8s ease-in-out infinite;}
#mmg-app #mm-grimoire .mm-daily-loading p{margin:0;animation:mmg-daily-pulse 1.8s ease-in-out infinite;}
#mmg-app #mm-grimoire .mm-daily-loading-out{opacity:0;}
#mmg-app #mm-grimoire .mm-daily-arrived{animation:mmg-daily-arrive .3s ease-out;}
@keyframes mmg-daily-hat{0%,100%{opacity:.5;}50%{opacity:1;}}
@keyframes mmg-daily-pulse{0%,100%{opacity:.78;}50%{opacity:1;}}
@keyframes mmg-daily-arrive{from{opacity:.35;}to{opacity:1;}}
#mmg-app #mm-grimoire .mm-daily-dialog{text-align:left;inset:0;margin:auto;width:calc(100% - 32px);max-width:640px;max-height:min(80svh,740px);border-radius:16px;padding:28px;}
#mmg-app #mm-grimoire .mm-daily-dialog p{font-size:var(--mm-text-base);line-height:var(--mm-line-height);}
#mmg-app #mm-grimoire .mm-daily-dialog h3{font:600 var(--mm-text-28px)/1.25 var(--mm-font-heading);margin:24px 0 16px;padding-top:24px;border-top:1px solid var(--mm-divider-color);}
/* Tip popup inherits the exact existing .mm-tips list style. */
@media(max-width:900px){
#mmg-app #mm-grimoire .mm-daily-earth{grid-template-columns:repeat(3,minmax(0,1fr));}
#mmg-app #mm-grimoire .mm-daily-earth .mm-daily-link:nth-child(4){border-left:0;}
#mmg-app #mm-grimoire .mm-daily-earth .mm-daily-link:nth-child(n+4){border-top:1px solid var(--mm-divider-color);}
}
@media(max-width:560px){
#mmg-app #mm-grimoire .mm-daily-tracker{--mm-daily-padding:18px;}
#mmg-app #mm-grimoire .mm-daily-heading time{font-size:var(--mm-text-32px);}
#mmg-app #mm-grimoire .mm-daily-help{top:8px;right:6px;}
#mmg-app #mm-grimoire .mm-daily-tag{font-size:14px;padding:6px 10px;}
#mmg-app #mm-grimoire .mm-daily-moons{min-height:206px;padding:14px 12px;gap:8px;grid-template-columns:1fr 2.1fr 1fr;}
#mmg-app #mm-grimoire .mm-daily-moon-far{display:none;}
#mmg-app #mm-grimoire .mm-daily-orb{height:104px;max-width:104px;}
#mmg-app #mm-grimoire .mm-daily-moon-near .mm-daily-orb{height:55px;}
#mmg-app #mm-grimoire .mm-daily-moon-current{padding:8px 4px;}
#mmg-app #mm-grimoire .mm-daily-link{padding:10px 6px;}
#mmg-app #mm-grimoire .mm-daily-label{font-size:13px;}
#mmg-app #mm-grimoire .mm-daily-lunar .mm-daily-link{flex-basis:110px;}
#mmg-app #mm-grimoire .mm-daily-actions{gap:16px;}
#mmg-app #mm-grimoire .mm-daily-object{font-size:var(--mm-text-small);}
#mmg-app #mm-grimoire .mm-daily-object img{width:110px;height:110px;}
}
@media(max-width:300px){#mmg-app #mm-grimoire .mm-daily-actions{flex-direction:column;align-items:center;}#mmg-app #mm-grimoire .mm-daily-object{flex:auto;}}
@media(prefers-reduced-motion:reduce){
#mmg-app #mm-grimoire .mm-daily-moon-current,#mmg-app #mm-grimoire .mm-daily-object img,#mmg-app #mm-grimoire .mm-daily-loading{transition:none;}
#mmg-app #mm-grimoire .mm-daily-loading i,#mmg-app #mm-grimoire .mm-daily-loading p,#mmg-app #mm-grimoire .mm-daily-arrived{animation:none;opacity:1;}
#mmg-app #mm-grimoire .mm-daily-object:hover img,#mmg-app #mm-grimoire .mm-daily-object:active img{transform:none;}
}
/* Images stay compact in the keyword rows; lunar entries share the sky. */
#mmg-app #mm-grimoire .mm-daily-entry-image{display:block;width:60px;height:60px;object-fit:contain;margin:4px auto;}
#mmg-app #mm-grimoire .mm-daily-sky .mm-daily-lunar{margin:0;padding:4px var(--mm-daily-padding) 24px;}
#mmg-app #mm-grimoire .mm-daily-sky .mm-daily-link{color:#f7efdd;border-color:rgba(210,224,226,.22);}
#mmg-app #mm-grimoire .mm-daily-sky .mm-daily-label{color:#ccd8d8;}
#mmg-app #mm-grimoire .mm-daily-dialog[open]{animation:mmg-daily-dialog-in .22s ease-out;}
#mmg-app #mm-grimoire .mm-daily-dialog::backdrop{animation:mmg-daily-dialog-in .22s ease-out;}
#mmg-app #mm-grimoire .mm-daily-dialog .mmg-support-close{border:0;box-shadow:none;border-radius:var(--mm-radius-button);}
#mmg-app #mm-grimoire .mm-daily-dialog .mmg-support-close:hover{border:0;box-shadow:none;background:transparent;}
@keyframes mmg-daily-dialog-in{from{opacity:0;}to{opacity:1;}}
/* Actual buttons are repacked in DOM order after measurement; no CSS order/tab-order mismatch. */
#mmg-app #mm-grimoire .mm-cats,#mmg-app #mm-grimoire .mm-spell-options{justify-content:flex-start;align-items:flex-start;}
#mmg-app #mm-grimoire .mm-cats>button,#mmg-app #mm-grimoire .mm-spell-options>button{flex:0 0 auto;max-width:100%;}
@media(max-width:560px){
#mmg-app #mm-grimoire .mm-daily-moons{max-width:320px;}
#mmg-app #mm-grimoire .mm-daily-dialog{inset:0;margin:auto;width:calc(100% - 32px);max-width:640px;max-height:80svh;border-radius:16px;padding:24px 20px;}
}
@media(prefers-reduced-motion:reduce){#mmg-app #mm-grimoire .mm-daily-dialog[open],#mmg-app #mm-grimoire .mm-daily-dialog::backdrop{animation:none;}}
#mmg-app #mm-grimoire .mm-daily-unavailable{padding:24px 12px;}
#mmg-app #mm-grimoire .mm-daily-unavailable .mm-action{margin-top:12px;}
/* End Daily Tracker styles. */
/* 1.4.4: airy spacing, lunar outlook and quiet motion. */
#mmg-app #mm-grimoire .mm-daily-heading time{padding-top:20px;}
#mmg-app #mm-grimoire .mm-daily-themes{padding-bottom:16px;}
#mmg-app #mm-grimoire .mm-daily-object{background:var(--mm-tint);border:1px solid var(--mm-tint-press);padding:16px 10px;transition:background .25s,box-shadow .25s,transform .25s;}
@media(hover:hover){#mmg-app #mm-grimoire .mm-daily-object:hover{background:var(--mm-tint-hover);box-shadow:0 5px 16px #66451b12;transform:translateY(-2px);}#mmg-app #mm-grimoire .mm-daily-object:hover img{transform:translateY(-1px) scale(1.02);}}
#mmg-app #mm-grimoire .mm-daily-object:active{transform:scale(.985);}
#mmg-app #mm-grimoire .mm-daily-moon-current:hover{background:none;border-color:transparent;}
#mmg-app #mm-grimoire .mm-daily-sky::before{pointer-events:none;animation:mmg-starlight 9s ease-in-out infinite alternate;}
@keyframes mmg-starlight{from{opacity:.38;transform:translateY(0);}to{opacity:.67;transform:translateY(-3px);}}
#mmg-app #mm-grimoire .mm-daily-next{display:flex;align-items:center;justify-content:center;gap:16px;width:fit-content;max-width:calc(100% - 36px);margin:4px auto 24px;padding:12px 24px;border-radius:40px;background:#d2e4e40a;color:#f7efdd;text-align:left;}
#mmg-app #mm-grimoire .mm-daily-next-image{width:48px;height:48px;object-fit:contain;flex:none;}
#mmg-app #mm-grimoire .mm-daily-next-label{display:block;font:400 12px/1.5 var(--mm-font-body);letter-spacing:.08em;text-transform:uppercase;color:#c1d1d2;}
#mmg-app #mm-grimoire .mm-daily-next time{display:block;font:400 18px/1.4 var(--mm-font-heading);}
#mmg-app #mm-grimoire .mm-daily-next-special{display:block;font-size:14px;color:#c1d1d2;}
#mmg-app #mm-grimoire .mm-daily-dialog[data-kind="about"] p{font-size:15px;line-height:1.65;}
#mmg-app #mm-grimoire .mm-daily-dialog[data-kind="about"] h3{font-size:20px;}
#mmg-app #mm-grimoire .mm-daily-dialog[open]{animation:mmg-magic-in .32s ease-out both;}
#mmg-app #mm-grimoire .mm-daily-dialog.mm-daily-closing{animation:mmg-magic-out .22s ease-in both;}
#mmg-app #mm-grimoire .mm-daily-dialog.mm-daily-closing::backdrop{animation:mmg-daily-dialog-in .22s ease-in reverse both;}
@keyframes mmg-magic-in{from{opacity:0;transform:translateY(7px) scale(.98);filter:blur(2px);}to{opacity:1;transform:none;filter:blur(0);}}
@keyframes mmg-magic-out{from{opacity:1;transform:none;}to{opacity:0;transform:translateY(-5px) scale(.985);}}
#mmg-app #mm-grimoire.mm-detail-view .mm-brand{border-bottom:0;border-image:none;}
#mmg-app #mm-grimoire .mm-detail-nav{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;gap:12px;align-items:center;}
#mmg-app #mm-grimoire .mm-detail-nav .mm-back{width:44px;height:44px;justify-content:center;padding:0;}
#mmg-app #mm-grimoire .mm-back svg{width:30px;height:30px;}
#mmg-app #mm-grimoire .mm-detail-category{min-width:0;}
#mmg-app #mm-grimoire .mm-category-divider{width:360px;max-width:100%;}
#mmg-app #mm-grimoire .mm-detail-category .mm-category-divider{width:420px;}
@media(min-width:901px){#mmg-app #mm-grimoire .mm-detail-wrap{padding:28px;}#mmg-app #mm-grimoire .mm-detail-wrap>.mm-hero,#mmg-app #mm-grimoire .mm-detail-wrap>.mm-section{max-width:none;}}
@media(prefers-reduced-motion:reduce){#mmg-app #mm-grimoire .mm-daily-sky::before,#mmg-app #mm-grimoire .mm-daily-dialog[open],#mmg-app #mm-grimoire .mm-daily-dialog::backdrop{animation:none;}#mmg-app #mm-grimoire .mm-daily-object{transition:none;}#mmg-app #mm-grimoire .mm-daily-object:hover,#mmg-app #mm-grimoire .mm-daily-object:active{transform:none;}}
#mmg-app #mm-grimoire .mm-detail-category{position:relative;}
#mmg-app #mm-grimoire .mm-detail-category .mm-category-divider{position:absolute;top:100%;left:50%;transform:translateX(-50%);}
/* 1.4.5: filled tag rows, shared category labels and both lunar outlooks. */
@media(min-width:901px){#mmg-app #mm-grimoire .mm-detail-wrap{padding:32px clamp(44px,5vw,72px);}}
#mmg-app #mm-grimoire .mm-daily-help,#mmg-app #mm-grimoire .mm-daily-help:hover{background:transparent;border-color:transparent;box-shadow:none;transform:none;transition:none;}
#mmg-app #mm-grimoire .mm-daily-object,#mmg-app #mm-grimoire .mm-daily-object span,#mmg-app #mm-grimoire #mm-daily-dialog-title{text-transform:none;}
#mmg-app #mm-grimoire .mm-daily-upcoming{display:flex;align-items:stretch;justify-content:center;gap:16px;padding:4px var(--mm-daily-padding) 24px;}
#mmg-app #mm-grimoire .mm-daily-next{border-radius:var(--mm-radius-card);margin:0;width:auto;max-width:none;flex:0 1 300px;min-width:0;padding:14px 18px;}
#mmg-app #mm-grimoire .mm-daily-sky{background:radial-gradient(ellipse at 50% 130%,#293e60 0,transparent 65%),linear-gradient(115deg,#0b1528,#182d46 50%,#0b1528);}
#mmg-app #mm-grimoire .mm-daily-sky::before{animation:mmg-starlight 9s ease-in-out infinite alternate;}
#mmg-app #mm-grimoire .mm-card h3{margin-top:16px;}
#mmg-app #mm-grimoire .mm-detail-wrap .mm-category-subtitle,#mmg-app #mm-grimoire .mm-detail-wrap .mm-section h2.mm-category-subtitle{display:flex;align-items:center;justify-content:center;gap:9px;color:var(--mm-primary);}
#mmg-app #mm-grimoire .mm-category-inline-icon{display:inline-flex;align-items:center;flex:none;color:inherit;}
#mmg-app #mm-grimoire .mm-category-inline-icon svg{width:20px;height:20px;}
#mmg-app #mm-grimoire .mm-spell-tag,#mmg-app #mm-grimoire .mm-daily-tag,#mmg-app #mm-grimoire .mm-tag-option,#mmg-app #mm-grimoire .mm-tag-option span,#mmg-app #mm-grimoire .mm-card-tags,#mmg-app #mm-grimoire .mm-meanings li,#mmg-app #mm-grimoire .mm-chip{text-transform:none;}
#mmg-app #mm-grimoire .mm-cats>button,#mmg-app #mm-grimoire .mm-spell-options>button{box-sizing:border-box;justify-content:center;text-align:center;}
@media(max-width:560px){#mmg-app #mm-grimoire .mm-daily-upcoming{gap:10px;}#mmg-app #mm-grimoire .mm-daily-next{flex:1 1 0;flex-direction:column;text-align:center;padding:14px 8px;gap:8px;}#mmg-app #mm-grimoire .mm-daily-next time{font-size:16px;}#mmg-app #mm-grimoire .mm-daily-next-label{font-size:11px;}}
@media(prefers-reduced-motion:reduce){#mmg-app #mm-grimoire .mm-daily-sky::before{animation:none;}}
#mmg-app #mm-grimoire .mm-detail-wrap .mm-category-subtitle,#mmg-app #mm-grimoire .mm-detail-wrap .mm-section h2.mm-category-subtitle{color:var(--mm-filter-ink);}
/* 1.4.6 — compact cards, intrinsic pills, darker sky and scroll cues. */
#mmg-app .mmg-opening{position:fixed;inset:0;z-index:10000;display:grid;place-items:center;background:#392b23;color:#f4e9d5;padding:28px;text-align:center;}
#mmg-app .mmg-opening>div{width:min(300px,100%);}
#mmg-app .mmg-opening p{font:400 20px/1.5 var(--mm-font-display);margin:0 0 22px;}
#mmg-app .mmg-opening-track{height:4px;border-radius:4px;background:#ead5b326;overflow:hidden;}
#mmg-app .mmg-opening-track span{display:block;height:100%;width:40%;border-radius:inherit;background:#d4b485;animation:mmg-opening-bar 1.8s ease-in-out infinite;}
@keyframes mmg-opening-bar{from{transform:translateX(-110%);}to{transform:translateX(360%);}}
#mmg-app #mm-grimoire .mm-daily-sky{background:radial-gradient(ellipse at 50% 130%,#25313b 0,transparent 65%),linear-gradient(115deg,#090e14,#17212a 50%,#090e14);}
#mmg-app #mm-grimoire .mm-daily-sky::before{z-index:0;opacity:.6;animation:mmg-starlight 6s ease-in-out infinite alternate;}
#mmg-app #mm-grimoire .mm-daily-sky::after{content:"";position:absolute;inset:0;pointer-events:none;z-index:0;background:radial-gradient(circle at 22% 30%,#fff5de 0 1px,transparent 2px),radial-gradient(circle at 73% 52%,#d5e5ed 0 1px,transparent 2px),radial-gradient(circle at 44% 84%,#fff5de 0 .8px,transparent 1.8px);background-size:269px 217px;animation:mmg-starlight 4.5s ease-in-out -2s infinite alternate-reverse;}
#mmg-app #mm-grimoire .mm-daily-sky>div{position:relative;z-index:1;}
@keyframes mmg-starlight{from{opacity:.25;transform:translateY(0);}to{opacity:.85;transform:translateY(-4px);}}
#mmg-app #mm-grimoire .mm-daily-object{padding-top:26px;}
#mmg-app #mm-grimoire .mm-daily-next{border:1px solid #d8e5eb26;}
#mmg-app #mm-grimoire .mm-card h3{margin-top:10px;}
#mmg-app #mm-grimoire .mm-detail-nav{margin-left:calc(18px - clamp(44px,5vw,72px));margin-right:calc(18px - clamp(44px,5vw,72px));margin-bottom:12px;}
#mmg-app #mm-grimoire .mm-hero{padding-top:8px;}
#mmg-app #mm-grimoire .mm-hero h1{margin-top:8px;}
#mmg-app #mm-grimoire.mm-detail-view .mm-brand{padding-bottom:2px;}
#mmg-app #mm-grimoire.mm-detail-view .mm-detail-wrap{margin-top:20px;}
#mmg-app #mm-grimoire .mm-about-category{padding-top:26px;}
#mmg-app #mm-grimoire .mm-category-inline-icon svg{color:var(--mm-filter-ink)!important;}
#mmg-app #mm-grimoire .mm-detail-wrap .mm-category-subtitle,#mmg-app #mm-grimoire .mm-detail-wrap .mm-section h2.mm-category-subtitle{width:fit-content;max-width:100%;margin-left:auto;margin-right:auto;text-align:left;justify-content:flex-start;line-height:1.4;}
#mmg-app #mm-grimoire .mm-tips li{font-family:var(--mm-font-display);font-size:21px;line-height:1.5;}
#mmg-app #mm-grimoire .mm-daily-message-scroll{max-height:calc(70svh - 100px);overflow:auto;overscroll-behavior:contain;padding-right:6px;}
#mmg-app #mm-grimoire .mm-daily-message-scroll p{margin-top:0;margin-bottom:0;}
#mmg-app #mm-grimoire .mm-daily-message-scroll.mm-has-more{mask-image:linear-gradient(to bottom,#000 calc(100% - 36px),transparent);-webkit-mask-image:linear-gradient(to bottom,#000 calc(100% - 36px),transparent);}
@media(min-width:901px){#mmg-app #mm-grimoire .mm-explore{padding-bottom:26px;}}
@media(max-width:900px){#mmg-app #mm-grimoire .mm-detail-wrap{padding:20px;}#mmg-app #mm-grimoire .mm-detail-nav{margin-left:-8px;margin-right:-8px;}}
@media(max-width:560px){
#mmg-app #mm-grimoire .mm-card-link{padding-top:14px;padding-bottom:14px;}
#mmg-app #mm-grimoire .mm-card h3{margin-top:8px;}
#mmg-app #mm-grimoire .mm-daily-object{padding:22px 8px 14px;gap:5px;}
#mmg-app #mm-grimoire .mm-daily-object img{width:86px;height:86px;}
#mmg-app #mm-grimoire .mm-daily-next{padding:10px 7px;gap:5px;}
#mmg-app #mm-grimoire .mm-daily-link{padding-top:7px;padding-bottom:7px;}
#mmg-app #mm-grimoire .mm-tips li{padding:12px 14px;font-size:19px;}
#mmg-app #mm-grimoire .mm-kin>a{padding:12px;}
}
@media(prefers-reduced-motion:reduce){#mmg-app .mmg-opening-track span{animation:none;transform:translateX(75%);}#mmg-app #mm-grimoire .mm-daily-sky::before,#mmg-app #mm-grimoire .mm-daily-sky::after{animation:none;opacity:.6;}}
/* 1.4.7 — visible individual stars, deliberate reveals and real opening progress. */
#mmg-app #mm-grimoire .mm-daily-sky::before,#mmg-app #mm-grimoire .mm-daily-sky::after{animation:none;opacity:.22;}
#mmg-app #mm-grimoire .mm-daily-sky>.mm-daily-stars{position:absolute;inset:0;z-index:0;pointer-events:none;overflow:hidden;}
#mmg-app #mm-grimoire .mm-daily-stars i{position:absolute;display:block;width:3px;height:3px;border-radius:50%;background:#f8efd8;box-shadow:0 0 5px #fff0cf99;animation:mmg-star-spark var(--star-duration) ease-in-out var(--star-delay) infinite!important;}
@keyframes mmg-star-spark{0%,100%{opacity:.12;transform:scale(.6);}50%{opacity:.95;transform:scale(1.2);}}
#mmg-app #mm-grimoire .mm-daily-arrived{animation:mmg-energy-reveal 1.3s cubic-bezier(.2,.7,.3,1) both;}
@keyframes mmg-energy-reveal{from{opacity:0;filter:blur(5px);transform:translateY(12px);}to{opacity:1;filter:blur(0);transform:translateY(0);}}
#mmg-app #mm-grimoire .mm-daily-loading{transition:opacity .35s ease;}
#mmg-app #mm-grimoire .mm-daily-actions{margin-top:38px;gap:20px;}
#mmg-app #mm-grimoire .mm-daily-lunar .mm-daily-link{flex:0 1 170px;}
#mmg-app #mm-grimoire .mm-tips li{padding:20px 30px;}
#mmg-app #mm-grimoire .mm-detail-nav{margin-left:calc(28px - clamp(44px,5vw,72px));margin-right:calc(28px - clamp(44px,5vw,72px));}
#mmg-app #mm-grimoire .mm-save{cursor:pointer;pointer-events:auto;z-index:2;}
#mmg-app #mm-grimoire .mm-save svg,#mmg-app #mm-grimoire .mm-save svg *{pointer-events:none;}
#mmg-app .mmg-opening-track span{width:0;animation:none;transform:none;transition:width .35s ease;}
#mmg-app .mmg-opening{opacity:1;transition:opacity .65s ease;}
#mmg-app .mmg-opening.mmg-opening-out{opacity:0;pointer-events:none;}
@media(max-width:900px){#mmg-app #mm-grimoire .mm-detail-nav{margin-left:0;margin-right:0;}}
@media(max-width:560px){#mmg-app #mm-grimoire .mm-daily-actions{gap:12px;margin-top:32px;}#mmg-app #mm-grimoire .mm-tips li{padding:18px 24px;}}
@media(prefers-reduced-motion:reduce){#mmg-app #mm-grimoire .mm-daily-stars i{animation:none!important;opacity:.65;}#mmg-app #mm-grimoire .mm-daily-arrived{animation:none;filter:none;transform:none;}#mmg-app .mmg-opening,#mmg-app .mmg-opening-track span{transition:none;}}
/* Final 1.4.7 refinements. */
#mmg-app #mm-grimoire .mm-daily-sky-heading{position:relative;z-index:1;margin:0;padding:24px 16px 0;font:400 var(--mm-text-small)/1.5 var(--mm-font-body);letter-spacing:.12em;text-transform:uppercase;color:#c6d0d5;}
#mmg-app #mm-grimoire .mm-detail-category{display:flex;flex-direction:column;align-items:center;justify-self:center;width:100%;min-width:0;}
#mmg-app #mm-grimoire .mm-detail-wrap .mm-category-subtitle,#mmg-app #mm-grimoire .mm-detail-wrap .mm-section h2.mm-category-subtitle{display:inline-grid;grid-template-columns:20px minmax(0,auto);width:max-content;max-width:100%;justify-content:center;align-items:center;gap:9px;text-align:left;}
#mmg-app #mm-grimoire .mm-category-name{min-width:0;text-wrap:balance;overflow-wrap:normal;}
#mmg-app #mm-grimoire .mm-detail-wrap{--mm-post-section-gap:56px;}
#mmg-app #mm-grimoire .mm-detail-wrap>.mm-section{margin-top:var(--mm-post-section-gap);margin-bottom:0;}
#mmg-app #mm-grimoire .mm-detail-wrap>.mm-hero{padding-top:0;margin-top:var(--mm-post-section-gap);margin-bottom:0;}
#mmg-app #mm-grimoire .mm-detail-wrap>.mm-hero h1{margin-top:0;}
#mmg-app #mm-grimoire .mm-detail-nav{margin-bottom:0;}
#mmg-app #mm-grimoire .mm-detail-wrap>.mm-meanings{margin-top:24px;}
#mmg-app #mm-grimoire .mm-detail-wrap>.mm-about-category{padding-top:0;}
#mmg-app #mm-grimoire .mm-detail-wrap>.mm-section>:first-child{margin-top:0;}
#mmg-app #mm-grimoire .mm-detail-wrap>.mm-section>:last-child,#mmg-app #mm-grimoire .mm-detail-wrap>.mm-section>.mm-body>:last-child{margin-bottom:0;}
@media(max-width:560px){
#mmg-app #mm-grimoire .mm-daily-action-label>span{display:block;white-space:nowrap;}
#mmg-app #mm-grimoire .mm-daily-object{padding-bottom:18px;}
#mmg-app #mm-grimoire .mm-detail-wrap{--mm-post-section-gap:48px;}
}
#mmg-app #mm-grimoire .mm-detail-wrap .mm-category-subtitle,#mmg-app #mm-grimoire .mm-detail-wrap .mm-section h2.mm-category-subtitle{display:grid;}
@media(max-width:560px){#mmg-app #mm-grimoire .mm-daily-lunar .mm-daily-link{flex:0 1 50%;max-width:170px;}}
/* 1.4.8: bounded opening, quieter heading and balanced mobile spacing. */
#mmg-app .mmg-opening-track span{transition:width 2.05s ease;}
#mmg-app .mmg-opening{transition:opacity .5s ease;}
#mmg-app .mmg-opening-icon{display:block;font-size:32px;line-height:1;color:#d4b485;margin:0 auto 16px;animation:mmg-daily-hat 1.8s ease-in-out infinite;}
#mmg-app .mmg-connecting{padding:32px;text-align:center;color:var(--mm-primary);}
#mmg-app #mm-grimoire .mm-daily-sky-heading{color:#919da5;}
#mmg-app #mm-grimoire .mm-daily-stars i{width:4px;height:4px;box-shadow:0 0 8px #fff0cfbb;}
@keyframes mmg-star-spark{0%,100%{opacity:.08;transform:scale(.55);}50%{opacity:1;transform:scale(1.35);}}
#mmg-app #mm-grimoire .mm-detail-category{grid-column:2;justify-self:center;}
#mmg-app #mm-grimoire .mm-detail-nav .mm-category-subtitle{position:relative;left:0;right:0;}
@media(max-width:560px){#mmg-app #mm-grimoire .mm-daily-actions{margin-top:18px;}#mmg-app #mm-grimoire .mm-category-name{text-align:center;}#mmg-app #mm-grimoire .mm-detail-nav{grid-template-columns:44px minmax(0,1fr) 44px;gap:8px;}}
@media(prefers-reduced-motion:reduce){#mmg-app .mmg-opening-icon{animation:none;}#mmg-app .mmg-opening-track span{transition:none;}}
/* 1.4.9: ready-driven opening and calmer visual hierarchy. */
#mmg-app .mmg-opening{background:var(--mm-card);color:var(--mm-primary);transition:opacity .2s ease;}
#mmg-app .mmg-opening p{font:400 var(--mm-text-small)/1.5 var(--mm-font-body);}
#mmg-app .mmg-opening-icon{color:var(--mm-primary);}
#mmg-app .mmg-opening-track{background:var(--mm-divider-color);}
#mmg-app .mmg-opening-track span{background:var(--mm-primary);}
#mmg-app #mm-grimoire .mm-detail-wrap .mm-category-subtitle,#mmg-app #mm-grimoire .mm-detail-wrap .mm-section h2.mm-category-subtitle{grid-template-columns:20px minmax(0,1fr);column-gap:8px;justify-content:start;}
#mmg-app #mm-grimoire .mm-category-name{text-align:left;justify-self:start;text-wrap:wrap;}
#mmg-app #mm-grimoire .mm-daily-stars i{width:2.5px;height:2.5px;box-shadow:0 0 5px #fff0cf77;}
#mmg-app #mm-grimoire .mm-daily-sky::before,#mmg-app #mm-grimoire .mm-daily-sky::after{opacity:.12;}
#mmg-app .mmg-profile,#mmg-app .mmg-profile:hover,#mmg-app .mmg-profile:active{background:transparent!important;border-color:transparent!important;box-shadow:none!important;transform:none!important;filter:none!important;transition:none;}
#mmg-app .mmg-profile::before,#mmg-app .mmg-profile::after{display:none;}
#mmg-app #mm-grimoire .mm-daily-dialog,#mmg-app #mm-grimoire .mm-daily-message-scroll,#mmg-app .mmg-support{scrollbar-color:var(--mm-primary) transparent;scrollbar-width:thin;}
#mmg-app #mm-grimoire .mm-daily-dialog::-webkit-scrollbar,#mmg-app #mm-grimoire .mm-daily-message-scroll::-webkit-scrollbar,#mmg-app .mmg-support::-webkit-scrollbar{width:6px;}
#mmg-app #mm-grimoire .mm-daily-dialog::-webkit-scrollbar-thumb,#mmg-app #mm-grimoire .mm-daily-message-scroll::-webkit-scrollbar-thumb,#mmg-app .mmg-support::-webkit-scrollbar-thumb{background:var(--mm-primary);border-radius:6px;}
#mmg-app #mm-grimoire .mm-daily-message-scroll{margin-right:-18px;padding-right:18px;}
@media(min-width:901px){
#mmg-app #mm-grimoire .mm-daily-tracker{padding-top:20px;}
#mmg-app #mm-grimoire .mm-daily-heading h2{line-height:24px;}
#mmg-app #mm-grimoire .mm-daily-help{top:10px;}
#mmg-app #mm-grimoire .mm-daily-sky-heading{padding-top:20px;line-height:24px;}
}
@media(max-width:560px){
#mmg-app #mm-grimoire .mm-brand{padding-top:42px;}
#mmg-app #mm-grimoire.mm-detail-view .mm-brand{padding-top:28px;}
#mmg-app #mm-grimoire .mm-category-name{text-align:left;}
#mmg-app #mm-grimoire .mm-daily-message-scroll{margin-right:-12px;padding-right:12px;}
}
/* 1.4.10: shared visual tokens, quieter stars and complete gate layouts. */
#mmg-app .mmg-opening p{font-size:var(--mm-text-base);}
#mmg-app #mm-grimoire .mm-daily-object{border-color:var(--mm-shade-c7b294aa);box-shadow:none;transition:background .25s,border-color .15s,transform .25s;}
#mmg-app #mm-grimoire .mm-daily-object:hover{border-color:var(--mm-border);box-shadow:none;}
#mmg-app #mm-grimoire .mm-daily-object img,#mmg-app #mm-grimoire .mm-daily-object:hover img,#mmg-app #mm-grimoire .mm-daily-object:active img{filter:none;}
#mmg-app #mm-grimoire .mm-detail-wrap>.mm-meanings{margin-top:var(--mm-post-section-gap);}
#mmg-app #mm-grimoire .mm-daily-dialog[data-kind=about] h3,#mmg-app #mm-grimoire .mm-daily-dialog[data-kind=about] h2{font:400 27px/1.25 var(--mm-font-heading);}
#mmg-app #mm-grimoire .mm-daily-tag{text-transform:none;cursor:pointer;font-family:var(--mm-font-body);}
#mmg-app #mm-grimoire .mm-daily-tag:hover{border-color:var(--mm-border);}
@media(min-width:901px){#mmg-app #mm-grimoire .mm-detail-wrap>.mm-about-category{margin-top:calc(var(--mm-post-section-gap) + 12px);}}
@media(max-width:560px){#mmg-app #mm-grimoire .mm-daily-stars .mm-star-lower{display:none;}#mmg-app #mm-grimoire .mm-daily-stars{mask-image:linear-gradient(#000 45%,transparent 72%);-webkit-mask-image:linear-gradient(#000 45%,transparent 72%);}}
/* Remove the browser's default page rim and paint behind the application. */
html:has(#mmg-app),body:has(#mmg-app){margin:0;background:#f7efdd;}
#mmg-app.mmg-gate-screen,#mmg-app .mmg-welcome-mode{box-sizing:border-box;display:grid;grid-template-rows:auto minmax(min-content,1fr) auto;min-height:100vh;min-height:100dvh;gap:0;}
#mmg-app.mmg-gate-screen>.mmg-gate,#mmg-app.mmg-gate-screen>.mmg-connecting,#mmg-app .mmg-welcome-mode>#mmg-welcome{grid-row:2;align-self:center;justify-self:center;margin:24px auto;}
#mmg-app .mmg-gate-header,#mmg-app .mmg-welcome-mode>.mmg-app-header{grid-row:1;align-self:start;}
#mmg-app .mmg-gate-header .mmg-logo-wrap{grid-column:2;}
#mmg-app.mmg-gate-screen>.mmg-legal-footer,#mmg-app .mmg-welcome-mode>.mmg-legal-footer{grid-row:3;align-self:end;margin:0;}
#mmg-app .mmg-welcome-mode .mmg-help-trigger,#mmg-app .mmg-welcome-mode .mmg-profile,#mmg-app .mmg-kicker{display:none;}
#mmg-app .mmg-welcome-mode .mmg-logo-wrap{grid-column:2;cursor:default;}
#mmg-app .mmg-gate h1{font-family:var(--mm-font-heading)!important;}
#mmg-app .mmg-gate p[role=alert]{border:var(--mm-border-width) solid var(--mm-shade-c7b294aa);border-radius:var(--mm-radius-card);background:transparent;color:var(--mm-primary);padding:16px;}
/* A visible brown scroll indicator also works where mobile native thumbs ignore CSS. */
#mmg-app #mm-grimoire .mm-daily-dialog{overflow:hidden;}
#mmg-app #mm-grimoire .mm-popup-scroll{overflow-y:auto;max-height:calc(min(80svh,740px) - 58px);padding-right:12px;margin-right:-12px;scrollbar-width:none;}
#mmg-app #mm-grimoire .mm-popup-scroll::-webkit-scrollbar{display:none;}
#mmg-app #mm-grimoire .mm-popup-scroll .mm-daily-message-scroll{overflow:visible;max-height:none;margin:0;padding:0;mask-image:none;-webkit-mask-image:none;}
#mmg-app #mm-grimoire .mm-popup-scroll.mm-has-more{mask-image:linear-gradient(#000 calc(100% - 30px),transparent);-webkit-mask-image:linear-gradient(#000 calc(100% - 30px),transparent);}
#mmg-app #mm-grimoire .mm-popup-rail{position:absolute;right:5px;top:28px;bottom:28px;width:4px;pointer-events:none;}
#mmg-app #mm-grimoire .mm-popup-rail span{position:absolute;left:0;right:0;background:var(--mm-primary);border-radius:4px;}
#mmg-app #mm-grimoire .mm-popup-rail[hidden]{display:none;}
#mmg-app.mmg-gate-screen,#mmg-app .mmg-welcome-mode{grid-template-rows:minmax(min-content,1fr) auto minmax(min-content,1fr);}
#mmg-app #mmg-support{overflow:hidden;}
#mmg-app #mmg-support .mm-popup-scroll{overflow-y:auto;max-height:calc(80svh - 64px);padding-right:10px;margin-right:-10px;scrollbar-width:none;}
#mmg-app #mmg-support .mm-popup-scroll::-webkit-scrollbar{display:none;}
#mmg-app #mmg-support .mm-popup-rail{position:absolute;right:5px;top:28px;bottom:28px;width:4px;pointer-events:none;}
#mmg-app #mmg-support .mm-popup-rail span{position:absolute;left:0;right:0;background:var(--mm-primary);border-radius:4px;}
#mmg-app #mmg-support .mm-popup-rail[hidden]{display:none;}

/* 1.4.12: fluid torn paper from the supplied reference, shared by all tips. */
#mmg-app #mm-grimoire .mm-tips li{
  position:relative;width:100%;height:auto;min-height:0;
  padding:28px clamp(64px,8vw,120px);
  border:0;border-radius:0;background:#fff9ed;background-image:none;
  box-shadow:none;filter:none;
  font:500 26px/1.5 var(--mm-font-hand);color:var(--mm-primary);
  text-align:center;overflow-wrap:anywhere;
  clip-path:polygon(
      
      0 0,

      
      7% 0,
      9% 2px,
      12% 1px,
      16% 4px,
      19% 2px,
      25% 2px,
      28% 5px,
      33% 1px,
      39% 3px,
      46% 1px,
      52% 4px,
      58% 2px,
      64% 5px,
      70% 1px,
      77% 3px,
      83% 1px,
      88% 4px,
      93% 1px,
      97% 2px,

      
      100% 0,

      
      100% 8%,
      calc(100% - 2px) 13%,
      calc(100% - 5px) 17%,
      calc(100% - 2px) 23%,
      calc(100% - 4px) 29%,
      100% 36%,
      calc(100% - 3px) 43%,
      calc(100% - 6px) 48%,
      calc(100% - 2px) 54%,
      100% 61%,
      calc(100% - 4px) 68%,
      calc(100% - 2px) 75%,
      calc(100% - 5px) 82%,
      calc(100% - 1px) 89%,
      100% 95%,

      
      100% 100%,

      
      94% 100%,
      91% calc(100% - 2px),
      87% calc(100% - 1px),
      83% calc(100% - 4px),
      78% calc(100% - 2px),
      72% calc(100% - 5px),
      67% calc(100% - 1px),
      61% calc(100% - 3px),
      55% calc(100% - 1px),
      49% calc(100% - 5px),
      44% calc(100% - 2px),
      38% calc(100% - 4px),
      31% calc(100% - 1px),
      25% calc(100% - 3px),
      19% calc(100% - 1px),
      14% calc(100% - 5px),
      9% calc(100% - 2px),
      5% calc(100% - 1px),

      
      0 100%,

      
      0 94%,
      2px 89%,
      5px 83%,
      2px 77%,
      4px 71%,
      0 65%,
      3px 59%,
      6px 53%,
      2px 46%,
      0 39%,
      4px 33%,
      2px 27%,
      5px 21%,
      1px 15%,
      0 8%,

      
      0 0
    );
}
#mmg-app #mm-grimoire .mm-tips li::before,#mmg-app #mm-grimoire .mm-tips li::after{content:none;display:none;}
#mmg-app #mm-grimoire .mm-tips li p{font:inherit;color:inherit;}
@media(max-width:600px){#mmg-app #mm-grimoire .mm-tips li{padding:20px 24px;font-size:24px;}}

/* 1.5.0: remove the actual page-specific Elementor wrapper spacing. */
.elementor.elementor-11514:has(#mmg-app),
.elementor.elementor-11514 .elementor-element-f408c7c.e-con:has(#mmg-app),
.elementor.elementor-11514 .elementor-element-93d57dd.elementor-widget-shortcode:has(#mmg-app),
.elementor.elementor-11514 .elementor-element-93d57dd>.elementor-widget-container:has(#mmg-app),
.elementor.elementor-11514 .elementor-element-93d57dd .elementor-shortcode:has(#mmg-app){
 --padding-top:0px;--padding-bottom:0px;--padding-block-start:0px;--padding-block-end:0px;
 --margin-top:0px;--margin-bottom:0px;
 padding-block:0!important;margin-block:0!important;min-height:0;gap:0;
}
#mmg-app .mmg-gate{border-radius:var(--mm-radius-card);}
#mmg-app .mmg-gate>h1:first-child,#mmg-app .mmg-gate>.mmg-kicker+h1{margin-top:8px;}
#mmg-app{--mm-torn-shape:polygon(
      
      0 0,

      
      7% 0,
      9% 2px,
      12% 1px,
      16% 4px,
      19% 2px,
      25% 2px,
      28% 5px,
      33% 1px,
      39% 3px,
      46% 1px,
      52% 4px,
      58% 2px,
      64% 5px,
      70% 1px,
      77% 3px,
      83% 1px,
      88% 4px,
      93% 1px,
      97% 2px,

      
      100% 0,

      
      100% 8%,
      calc(100% - 2px) 13%,
      calc(100% - 5px) 17%,
      calc(100% - 2px) 23%,
      calc(100% - 4px) 29%,
      100% 36%,
      calc(100% - 3px) 43%,
      calc(100% - 6px) 48%,
      calc(100% - 2px) 54%,
      100% 61%,
      calc(100% - 4px) 68%,
      calc(100% - 2px) 75%,
      calc(100% - 5px) 82%,
      calc(100% - 1px) 89%,
      100% 95%,

      
      100% 100%,

      
      94% 100%,
      91% calc(100% - 2px),
      87% calc(100% - 1px),
      83% calc(100% - 4px),
      78% calc(100% - 2px),
      72% calc(100% - 5px),
      67% calc(100% - 1px),
      61% calc(100% - 3px),
      55% calc(100% - 1px),
      49% calc(100% - 5px),
      44% calc(100% - 2px),
      38% calc(100% - 4px),
      31% calc(100% - 1px),
      25% calc(100% - 3px),
      19% calc(100% - 1px),
      14% calc(100% - 5px),
      9% calc(100% - 2px),
      5% calc(100% - 1px),

      
      0 100%,

      
      0 94%,
      2px 89%,
      5px 83%,
      2px 77%,
      4px 71%,
      0 65%,
      3px 59%,
      6px 53%,
      2px 46%,
      0 39%,
      4px 33%,
      2px 27%,
      5px 21%,
      1px 15%,
      0 8%,

      
      0 0
    );}
#mmg-app #mm-grimoire .mm-daily-dialog:is([data-kind=tip],[data-kind=message]){border:0;border-radius:0;background:transparent;background-image:none;box-shadow:none;isolation:isolate;padding-top:48px;}
#mmg-app #mm-grimoire .mm-daily-dialog:is([data-kind=tip],[data-kind=message])::before{content:'';position:absolute;inset:0;z-index:0;background:#fff9ed;clip-path:var(--mm-torn-shape);pointer-events:none;}
#mmg-app #mm-grimoire .mm-daily-dialog .mm-popup-scroll{position:relative;z-index:1;max-height:calc(min(80svh,740px) - 90px);}
#mmg-app #mm-grimoire .mm-daily-dialog[data-kind=tip] .mm-tips li{background:transparent;clip-path:none;border:0;}
#mmg-app #mm-grimoire .mm-daily-dialog[data-kind=message] :is(h2,p){text-align:center;}
#mmg-app #mm-grimoire .mm-daily-dialog [data-daily-close]{position:absolute;top:6px;right:8px;z-index:10;display:grid;place-items:center;width:44px;height:44px;min-width:44px;min-height:44px;padding:0;font-size:25px;line-height:1;pointer-events:auto;touch-action:manipulation;border:0;background:transparent;}
#mmg-app #mm-grimoire .mm-daily-dialog .mm-popup-rail{z-index:2;pointer-events:none;top:48px;}
#mmg-app #mm-grimoire .mm-daily-help{left:10px;right:auto;}
#mmg-app #mm-grimoire .mm-daily-refresh{position:absolute;right:10px;top:10px;width:44px;height:44px;display:grid;place-items:center;z-index:2;background:transparent;border:0;box-shadow:none;}
#mmg-app #mm-grimoire .mm-daily-help{width:44px;height:44px;top:10px;border:0;}
#mmg-app #mm-grimoire .mm-daily-refresh svg{width:20px;height:20px;fill:none!important;stroke:var(--mm-primary)!important;stroke-width:1.5;}
#mmg-app #mm-grimoire .mm-daily-refresh[data-state=checking] svg{animation:mmg-check-spin 1.4s linear infinite;}
@keyframes mmg-check-spin{to{transform:rotate(360deg);}}
#mmg-app #mm-grimoire .mm-refresh-feedback{position:absolute;right:14px;top:54px;font:400 12px/1.4 var(--mm-font-body);color:var(--mm-primary);max-width:180px;text-align:right;z-index:2;}
#mmg-app #mm-grimoire .mm-daily-heading h2{padding-inline:48px;}
#mmg-app #mm-grimoire .mm-clear{font:400 14px/1.4 var(--mm-font-body);letter-spacing:normal;text-transform:none;border:0;background:transparent;box-shadow:none;padding:7px;text-decoration:underline;}
#mmg-app #mm-grimoire .mm-intention-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;}
#mmg-app #mm-grimoire .mm-intention-heading .mm-clear{margin-left:auto;}
#mmg-app #mm-grimoire .mm-daily-sky{--mm-lunar-line:var(--mm-sky-line);--mm-lunar-text:#f7efdd;}
#mmg-app #mm-grimoire .mm-daily-next{border-color:var(--mm-lunar-line);}
#mmg-app #mm-grimoire .mm-daily-lunar .mm-daily-link{border-color:var(--mm-lunar-line);}
#mmg-app #mm-grimoire :is(.mm-daily-moon-name,.mm-daily-next,.mm-daily-next-label,.mm-daily-next-special,.mm-daily-next time){color:var(--mm-lunar-text);}
@media(min-width:721px){#mmg-app #mm-grimoire .mm-controls{grid-template-columns:minmax(0,1.6fr) minmax(280px,1fr);}}
@media(min-width:901px){
 #mmg-app #mm-grimoire .mm-grid{grid-auto-rows:1fr;align-items:stretch;}
 #mmg-app #mm-grimoire .mm-card{height:100%;}
 #mmg-app #mm-grimoire .mm-card-link{height:100%;display:flex;align-items:center;padding-top:18px;padding-bottom:18px;}
 #mmg-app #mm-grimoire .mm-card-sum{min-height:0;margin-bottom:0;display:block;overflow:visible;-webkit-line-clamp:unset;}
}
@media(max-width:600px){
 #mmg-app #mm-grimoire .mm-body:not(.mm-tips .mm-body),#mmg-app #mm-grimoire .mm-description p,#mmg-app #mm-grimoire .mm-about-category p,#mmg-app #mm-grimoire .mm-daily-dialog:not([data-kind=tip]) p,#mmg-app .mmg-gate>p{font-size:16px;line-height:1.65;}
 #mmg-app #mm-grimoire .mm-daily-lunar{display:flex;flex-wrap:wrap;justify-content:center;}
 #mmg-app #mm-grimoire .mm-daily-lunar .mm-daily-link{flex:0 0 50%;max-width:none;line-height:1.3;}
 #mmg-app #mm-grimoire .mm-daily-lunar[data-count="3"].mm-lunar-three-fit .mm-daily-link{flex-basis:33.333%;}
 #mmg-app #mm-grimoire .mm-daily-lunar[data-count="3"]:not(.mm-lunar-three-fit) .mm-daily-link:last-child{border:0;}
 #mmg-app #mm-grimoire .mm-daily-lunar[data-count="4"] .mm-daily-link:nth-child(3){border-left:0;}
 #mmg-app #mm-grimoire .mm-daily-lunar[data-count="4"] .mm-daily-link:nth-child(n+3){border-top:1px solid var(--mm-lunar-line);}
 #mmg-app #mm-grimoire .mm-daily-lunar .mm-daily-link-value{line-height:1.3;}
}
@media(prefers-reduced-motion:reduce){#mmg-app #mm-grimoire .mm-daily-refresh[data-state=checking] svg{animation:none;}}

/* 1.5.1: scoped visual adjustments only. */
#mmg-app #mm-grimoire .mm-daily-dialog:is([data-kind=tip],[data-kind=message]) #mm-daily-dialog-title{text-align:center;margin-inline:0;width:100%;}
#mmg-app #mm-grimoire .mm-daily-refresh svg{fill:#000!important;stroke:none!important;}
#mmg-app #mm-grimoire .mm-detail-wrap .mm-tips li{background:var(--mm-chip-bg);background-image:none;border:0;}
#mmg-app #mm-grimoire .mm-daily-heading h2{margin-inline:0;padding-inline:54px;white-space:nowrap;}
@media(max-width:600px){
 #mmg-app #mm-grimoire .mm-daily-refresh[data-state=checking] + .mm-refresh-feedback{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);clip-path:inset(50%);white-space:nowrap;border:0;}
}

/* 1.5.2: smaller brown corner icons and date breathing room. */
#mmg-app #mm-grimoire :is(.mm-daily-help,.mm-daily-refresh){display:grid;place-items:center;padding:0;color:var(--mm-primary);}
#mmg-app #mm-grimoire .mm-daily-help svg{display:block;width:18px;height:18px;fill:none!important;stroke:var(--mm-primary)!important;}
#mmg-app #mm-grimoire .mm-daily-refresh svg{display:block;width:13px;height:13px;fill:var(--mm-primary)!important;stroke:none!important;}
#mmg-app #mm-grimoire .mm-daily-heading time{padding-top:36px;}

/* 1.5.4: align corner controls to the label and balance message paper. */
#mmg-app #mm-grimoire .mm-daily-heading{--mm-label-line:calc(var(--mm-text-small) * 1.5);}
#mmg-app #mm-grimoire :is(.mm-daily-help,.mm-daily-refresh){top:calc(var(--mm-daily-padding) + (var(--mm-label-line) - 44px) / 2);}
#mmg-app #mm-grimoire .mm-daily-help{left:10px;}
#mmg-app #mm-grimoire .mm-daily-refresh{right:10px;}
@media(min-width:901px){#mmg-app #mm-grimoire :is(.mm-daily-help,.mm-daily-refresh){top:10px;}}
#mmg-app #mm-grimoire .mm-daily-dialog[data-kind=message]{padding-top:40px;padding-bottom:40px;}
#mmg-app #mm-grimoire .mm-daily-dialog[data-kind=message] #mm-daily-dialog-title{margin-top:0;}
#mmg-app #mm-grimoire .mm-daily-dialog[data-kind=message] .mm-daily-message-scroll p:last-child{margin-bottom:0;}
#mmg-app #mm-grimoire .mm-daily-dialog[data-kind=message] .mm-popup-scroll{max-height:calc(min(80svh,740px) - 80px);}
#mmg-app #mm-grimoire .mm-daily-dialog[data-kind=message] .mm-popup-rail{top:40px;bottom:40px;}

/* 1.5.5: header help stays a popover; forms share daily-dialog sizing. */
#mmg-app #mmg-support{inset:0;margin:auto;width:calc(100% - 32px);max-width:640px;max-height:min(80svh,740px);border-radius:16px;padding:28px;}
#mmg-app #mmg-support .mm-popup-scroll{max-height:calc(min(80svh,740px) - 56px);}
#mmg-app #mmg-support.mmg-support-menu{inset:var(--mmg-help-top,80px) auto auto clamp(16px,var(--mmg-help-left,16px),calc(100vw - min(300px,100vw - 32px) - 16px));margin:0;width:300px;max-width:calc(100% - 32px);padding:18px;}
#mmg-app #mmg-support.mmg-support-menu .mm-popup-scroll{max-height:calc(min(80svh,740px) - 36px);}
#mmg-app #mmg-support.mmg-support-menu h2,#mmg-app #mmg-support .mmg-help-choices button{border:0!important;box-shadow:none!important;background:transparent;}
#mmg-app #mmg-support .mmg-help-choices button{outline:none;border-radius:0;}
#mmg-app #mmg-support .mmg-help-choices button:focus-visible{text-decoration:underline;text-underline-offset:.2em;}
#mmg-app #mmg-support .mmg-help-choices button::before,#mmg-app #mmg-support .mmg-help-choices button::after{content:none;}
#mmg-app #mmg-support [data-support-close]{top:6px;right:8px;width:44px;height:44px;padding:0;display:grid;place-items:center;border:0!important;box-shadow:none!important;background:transparent;}
#mmg-app #mmg-support[open]{animation:mmg-magic-in .32s ease-out both;}
#mmg-app #mmg-support::backdrop{animation:mmg-daily-dialog-in .22s ease-out;}
@media(max-width:600px){#mmg-app #mmg-support:not(.mmg-support-menu){padding:24px 20px;}#mmg-app #mmg-support:not(.mmg-support-menu) .mm-popup-scroll{max-height:calc(80svh - 48px);}}
@media(prefers-reduced-motion:reduce){#mmg-app #mmg-support[open],#mmg-app #mmg-support::backdrop{animation:none;}}

/* 1.5.6: keep the completed refresh message close to its icon. */
#mmg-app #mm-grimoire .mm-daily-refresh[data-state=unchanged] + .mm-refresh-feedback{top:calc(var(--mm-daily-padding) + var(--mm-text-small) * .75 + 12px);}
@media(min-width:901px){#mmg-app #mm-grimoire .mm-daily-refresh[data-state=unchanged] + .mm-refresh-feedback{top:44px;}}

/* 1.5.7: mobile keyboard does not compress an already-open feedback form. */
#mmg-app #mmg-support.mmg-support-form[data-fixed-form]{inset:var(--mm-support-top) 0 auto;margin:0 auto;height:var(--mm-support-height);max-height:none;}
#mmg-app #mmg-support.mmg-support-form[data-fixed-form] .mm-popup-scroll{box-sizing:border-box;height:100%;max-height:none;padding-bottom:var(--mm-support-occluded,0px);scroll-padding-block:8px;}

/* 1.5.8: keep form focus visible within the scroll area's clipping bounds. */
#mmg-app #mmg-support :is(input,textarea):is(:focus,:focus-visible){outline:0;outline-offset:0;border-color:var(--mm-focus-color);box-shadow:inset 0 0 0 1px var(--mm-focus-color);}

/* 1.6.0: requested focus, alignment, spacing and tip-source details. */
#mmg-app #mm-grimoire #mm-search:is(:focus,:focus-visible){outline:0;outline-offset:0;border-color:var(--mm-focus-color);box-shadow:inset 0 0 0 1px var(--mm-focus-color);}
#mmg-app .mm-brand-home{color:inherit;text-decoration:none;}
#mmg-app .mm-brand-home:hover{color:inherit;text-decoration:none;}
#mmg-app #mm-grimoire .mm-daily-tip-image{display:block;width:88px;height:88px;object-fit:contain;margin:0 auto 18px;}
#mmg-app #mm-grimoire .mm-card-link{align-items:flex-start;}
#mmg-app #mm-grimoire .mm-daily-tracker{margin-bottom:calc(var(--mm-space-28) + var(--mm-space-16));}
#mmg-app #mm-grimoire .mm-daily-tracker + #mm-content .mm-toolbar{margin-top:0;}
#mmg-app #mm-grimoire.mm-detail-view .mm-brand-home{display:flex;align-items:baseline;gap:.45em;}

/* 1.6.1: only remove stacked spacing beneath the tip source image. */
#mmg-app #mm-grimoire .mm-daily-dialog[data-kind=tip] .mm-tips ul{margin-top:0;}
#mmg-app #mm-grimoire .mm-daily-dialog[data-kind=tip] .mm-tips li{padding-top:0;}
#mmg-app #mm-grimoire .mm-daily-dialog[data-kind=tip] .mm-tips li>:first-child{margin-top:0;}


/* 1.6.9: bottom navigation — Collection · Today (today's moon) · Grimoire. */
#mmg-app #mm-grimoire .mm-nav-spacer{height:calc(96px + env(safe-area-inset-bottom,0px));}
#mmg-app #mm-grimoire .mm-bottom-nav{--mm-nav-ease:cubic-bezier(.2,.7,.3,1);position:fixed;left:0;right:0;bottom:0;z-index:900;display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:end;padding:6px max(12px,env(safe-area-inset-right,0px)) calc(6px + env(safe-area-inset-bottom,0px)) max(12px,env(safe-area-inset-left,0px));background:var(--mm-card);border-top:var(--mm-border-width) solid var(--mm-outline-soft);transform:translateY(calc(100% + 40px));transition:transform .55s var(--mm-nav-ease);}
#mmg-app #mm-grimoire .mm-bottom-nav.mm-nav-ready{transform:none;}
#mmg-app #mm-grimoire .mm-bottom-nav.mm-nav-typing{transform:translateY(calc(100% + 40px));transition-duration:.3s;}
#mmg-app #mm-grimoire .mm-nav-item{appearance:none;-webkit-appearance:none;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:5px;min-width:0;min-height:56px;margin:0;padding:6px 4px 4px;background:transparent;border:0;border-radius:var(--mm-radius-card);box-shadow:none;color:var(--mm-muted);font:400 13px/1.2 var(--mm-font-body);letter-spacing:.03em;text-transform:none;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:color .25s ease;}
#mmg-app #mm-grimoire .mm-nav-item:hover,#mmg-app #mm-grimoire .mm-nav-item:focus{background:transparent;box-shadow:none;}
#mmg-app #mm-grimoire .mm-nav-item:focus-visible{outline:2px solid var(--mm-focus-color);outline-offset:2px;}
#mmg-app #mm-grimoire .mm-nav-icon{display:grid;place-items:center;width:24px;height:24px;transition:transform .2s var(--mm-nav-ease);}
#mmg-app #mm-grimoire .mm-nav-icon svg{width:24px;height:24px;stroke-width:1.5;}
#mmg-app #mm-grimoire .mm-nav-label{position:relative;padding-bottom:5px;white-space:nowrap;text-transform:none;}
/* the active page: a hairline grows out from the centre under its label */
#mmg-app #mm-grimoire .mm-nav-label::after{content:"";position:absolute;left:15%;right:15%;bottom:0;height:1px;background:currentColor;transform:scaleX(0);transition:transform .35s var(--mm-nav-ease);}
#mmg-app #mm-grimoire .mm-nav-item[aria-current="page"]{color:var(--mm-primary);}
#mmg-app #mm-grimoire .mm-nav-item[aria-current="page"] .mm-nav-label::after{transform:scaleX(1);}
@media(hover:hover){#mmg-app #mm-grimoire .mm-nav-item:hover{color:var(--mm-primary);}}
#mmg-app #mm-grimoire .mm-nav-item:active .mm-nav-icon{transform:scale(.9);}
/* Today: a larger circle holding today's moon, rising out of the bar */
#mmg-app #mm-grimoire .mm-nav-today{padding-inline:14px;}
#mmg-app #mm-grimoire .mm-nav-moon{position:relative;display:grid;place-items:center;width:68px;height:68px;margin-top:-34px;border-radius:50%;background:var(--mm-card);border:var(--mm-border-width) solid var(--mm-outline-soft);outline:1px solid transparent;outline-offset:4px;overflow:hidden;transition:transform .25s var(--mm-nav-ease),border-color .25s ease,outline-color .35s ease,outline-offset .35s var(--mm-nav-ease);}
#mmg-app #mm-grimoire .mm-nav-today[aria-current="page"] .mm-nav-moon{border-color:var(--mm-border);outline-color:var(--mm-outline-soft);outline-offset:3px;}
#mmg-app #mm-grimoire .mm-nav-today:active .mm-nav-moon{transform:scale(.95);}
#mmg-app #mm-grimoire .mm-nav-moon>*{grid-area:1/1;}
#mmg-app #mm-grimoire .mm-nav-moon-img{display:block;width:54px;height:54px;object-fit:contain;opacity:0;transform:scale(.92) rotate(-8deg);transition:opacity .45s ease,transform .6s var(--mm-nav-ease);}
#mmg-app #mm-grimoire .mm-nav-moon-img.mm-nav-moon-in{opacity:1;transform:none;}
#mmg-app #mm-grimoire .mm-nav-moon-placeholder{width:26px;height:26px;fill:none;stroke:var(--mm-primary);stroke-width:1.5;stroke-linejoin:round;transition:opacity .3s ease;}
#mmg-app #mm-grimoire .mm-nav-moon .mm-nav-moon-out{opacity:0;}
/* wider screens: the same bar, floating as a card */
@media(min-width:721px){
  #mmg-app #mm-grimoire .mm-bottom-nav{left:0;right:0;bottom:calc(18px + env(safe-area-inset-bottom,0px));width:min(440px,calc(100% - 32px));margin-inline:auto;padding:6px 20px 6px;border:var(--mm-border-width) solid var(--mm-outline-soft);border-radius:var(--mm-radius-card);}
  #mmg-app #mm-grimoire .mm-nav-spacer{height:120px;}
}
#mmg-app.mmg-welcome-mode #mm-grimoire .mm-bottom-nav,#mmg-app .mmg-welcome-mode #mm-grimoire .mm-bottom-nav{display:none;}
@media(prefers-reduced-motion:reduce){
  #mmg-app #mm-grimoire .mm-bottom-nav,#mmg-app #mm-grimoire .mm-nav-moon,#mmg-app #mm-grimoire .mm-nav-moon-img,#mmg-app #mm-grimoire .mm-nav-icon,#mmg-app #mm-grimoire .mm-nav-label::after{transition:none;}
}

/* 1.6.10: Today is selected with a small night sky instead of a ring — the sky fades in behind the moon, a few stars
   twinkle and the star field turns very slowly (the moon itself never rotates, so its phase always reads correctly). */
#mmg-app #mm-grimoire .mm-nav-moon,#mmg-app #mm-grimoire .mm-nav-today[aria-current="page"] .mm-nav-moon{outline:0;outline-offset:0;border-color:var(--mm-outline-soft);isolation:isolate;}
#mmg-app #mm-grimoire .mm-nav-sky{position:absolute;inset:0;z-index:0;border-radius:50%;overflow:hidden;background:radial-gradient(ellipse at 50% 130%,#25313b 0,transparent 65%),linear-gradient(115deg,#090e14,#17212a 50%,#090e14);opacity:0;transform:scale(.55);transition:opacity .5s ease,transform .7s var(--mm-nav-ease);}
#mmg-app #mm-grimoire .mm-nav-stars{position:absolute;inset:0;animation:mm-nav-turn 140s linear infinite;animation-play-state:paused;}
#mmg-app #mm-grimoire .mm-nav-stars i{position:absolute;display:block;width:2px;height:2px;margin:-1px 0 0 -1px;border-radius:50%;background:#f8efd8;box-shadow:0 0 3px #fff0cf88;opacity:.2;animation:mm-nav-twinkle var(--tw-dur) ease-in-out var(--tw-delay) infinite;animation-play-state:paused;}
#mmg-app #mm-grimoire .mm-nav-moon-img,#mmg-app #mm-grimoire .mm-nav-moon-placeholder{position:relative;z-index:1;}
#mmg-app #mm-grimoire .mm-nav-today[aria-current="page"] .mm-nav-sky{opacity:1;transform:none;}
#mmg-app #mm-grimoire .mm-nav-today[aria-current="page"] :is(.mm-nav-stars,.mm-nav-stars i){animation-play-state:running;}
#mmg-app #mm-grimoire .mm-nav-today[aria-current="page"] .mm-nav-moon-placeholder{stroke:#f7efdd;}
#mmg-app #mm-grimoire .mm-nav-today[aria-current="page"] .mm-nav-moon-img.mm-nav-moon-in{animation:mm-nav-settle .8s var(--mm-nav-ease);}
@keyframes mm-nav-turn{to{transform:rotate(360deg);}}
@keyframes mm-nav-twinkle{0%,100%{opacity:.15;transform:scale(.7);}50%{opacity:1;transform:scale(1.15);}}
@keyframes mm-nav-settle{from{transform:scale(.88);}to{transform:none;}}
/* hover hint on devices with a pointer: the sky glimmers through */
@media(hover:hover){
  #mmg-app #mm-grimoire .mm-nav-today:not([aria-current="page"]):hover .mm-nav-sky{opacity:.18;transform:scale(.85);}
  #mmg-app #mm-grimoire .mm-nav-today:hover .mm-nav-moon{transform:translateY(-2px);}
  #mmg-app #mm-grimoire .mm-nav-item:not(.mm-nav-today):hover .mm-nav-icon{transform:translateY(-2px);}
}
/* desktop: a roomier floating dock that tucks away while you scroll down and returns when you scroll up, pause, or move the pointer near it */
@media(min-width:721px){
  #mmg-app #mm-grimoire .mm-bottom-nav{width:min(480px,calc(100% - 48px));bottom:calc(20px + env(safe-area-inset-bottom,0px));padding:8px 28px;transition:transform .5s var(--mm-nav-ease),opacity .35s ease;}
  #mmg-app #mm-grimoire .mm-bottom-nav.mm-nav-tucked{transform:translateY(calc(100% + 64px));opacity:0;pointer-events:none;}
  #mmg-app #mm-grimoire .mm-nav-item{min-height:60px;font-size:14px;gap:6px;}
  #mmg-app #mm-grimoire .mm-nav-moon{width:76px;height:76px;margin-top:-40px;}
  #mmg-app #mm-grimoire .mm-nav-moon-img{width:60px;height:60px;}
  #mmg-app #mm-grimoire .mm-nav-spacer{height:130px;}
}
@media(prefers-reduced-motion:reduce){
  #mmg-app #mm-grimoire .mm-nav-stars,#mmg-app #mm-grimoire .mm-nav-stars i,#mmg-app #mm-grimoire .mm-nav-today[aria-current="page"] .mm-nav-moon-img.mm-nav-moon-in{animation:none!important;}
  #mmg-app #mm-grimoire .mm-nav-stars i{opacity:.7;}
  #mmg-app #mm-grimoire .mm-nav-sky{transition:none;}
}

/* 1.6.11 */
/* Buttons keep their own capitalisation (Title Case) instead of the theme's all caps. */
#mmg-app :is(button,summary,.mmg-button,input[type="submit"]){text-transform:none!important;}
#mmg-app :is(button,.mmg-button,input[type="submit"]){letter-spacing:normal;}
/* Today's sky: fewer, irregular stars that twinkle twice when Today is chosen, then rest softly. No rotation. */
#mmg-app #mm-grimoire .mm-nav-stars{animation:none!important;}
#mmg-app #mm-grimoire .mm-nav-stars i{width:var(--tw-size);height:var(--tw-size);margin:calc(var(--tw-size) / -2) 0 0 calc(var(--tw-size) / -2);opacity:var(--tw-rest);animation:none!important;}
#mmg-app #mm-grimoire .mm-nav-today[aria-current="page"] .mm-nav-stars i{animation:mm-nav-twinkle-once 1.3s ease-in-out var(--tw-delay) 2 both!important;}
@keyframes mm-nav-twinkle-once{0%,100%{opacity:var(--tw-rest);transform:scale(1);}50%{opacity:1;transform:scale(1.5);}}
/* "Added!" above Grimoire when an entry is saved */
#mmg-app #mm-grimoire .mm-nav-item{position:relative;}
#mmg-app #mm-grimoire .mm-nav-added{position:absolute;left:50%;bottom:calc(100% + 2px);display:flex;align-items:center;gap:2px;white-space:nowrap;pointer-events:none;font:400 22px/1 var(--mm-font-hand);letter-spacing:0;color:var(--mm-primary);transform:translateX(-50%);animation:mm-nav-added 1.9s var(--mm-nav-ease) both;}
#mmg-app #mm-grimoire .mm-nav-spark{width:9px;height:9px;fill:var(--mm-primary);opacity:0;animation:mm-nav-spark .9s ease-out both;}
#mmg-app #mm-grimoire .mm-nav-spark-a{margin-right:3px;transform-origin:center;animation-delay:.12s;}
#mmg-app #mm-grimoire .mm-nav-spark-b{width:7px;height:7px;margin:-14px 0 0 3px;animation-delay:.26s;}
#mmg-app #mm-grimoire .mm-nav-spark-c{width:6px;height:6px;margin:12px 0 0 -4px;animation-delay:.4s;}
#mmg-app #mm-grimoire .mm-nav-bump .mm-nav-icon{animation:mm-nav-bump .5s var(--mm-nav-ease);}
@keyframes mm-nav-added{0%{opacity:0;transform:translate(-50%,8px) rotate(-4deg);}16%{opacity:1;transform:translate(-50%,0) rotate(-4deg);}78%{opacity:1;transform:translate(-50%,-2px) rotate(-4deg);}100%{opacity:0;transform:translate(-50%,-10px) rotate(-4deg);}}
@keyframes mm-nav-spark{0%{opacity:0;transform:scale(.2) rotate(0);}50%{opacity:1;transform:scale(1.15) rotate(45deg);}100%{opacity:.85;transform:scale(1) rotate(90deg);}}
@keyframes mm-nav-bump{0%,100%{transform:none;}40%{transform:translateY(-4px) scale(1.08);}}
@media(prefers-reduced-motion:reduce){
  #mmg-app #mm-grimoire .mm-nav-today[aria-current="page"] .mm-nav-stars i,#mmg-app #mm-grimoire .mm-nav-bump .mm-nav-icon,#mmg-app #mm-grimoire .mm-nav-spark{animation:none!important;}
  #mmg-app #mm-grimoire .mm-nav-spark{opacity:.85;}
  #mmg-app #mm-grimoire .mm-nav-added{animation:mm-nav-added-fade 1.9s linear both;}
  @keyframes mm-nav-added-fade{0%,100%{opacity:0;}10%,85%{opacity:1;}}
}

/* 1.6.12: filled black icons (the owner's Grimoire icon), a darker-beige hover for Today, black label for the current section. */
#mmg-app #mm-grimoire .mm-nav-icon{color:var(--mm-title-accent);}
#mmg-app #mm-grimoire .mm-nav-icon svg{fill:currentColor;stroke:none;}
#mmg-app #mm-grimoire [data-nav="grimoire"] .mm-nav-icon svg{width:27px;height:27px;}
#mmg-app #mm-grimoire .mm-nav-item[aria-current="page"]{color:var(--mm-title-accent);}
#mmg-app #mm-grimoire .mm-nav-item[aria-current="page"] .mm-nav-label::after{background:var(--mm-primary);}
#mmg-app #mm-grimoire .mm-nav-moon{transition:transform .25s var(--mm-nav-ease),background-color .3s ease;}
@media(hover:hover){
  #mmg-app #mm-grimoire .mm-nav-today:not([aria-current="page"]):hover .mm-nav-sky{opacity:0;transform:scale(.55);}
  #mmg-app #mm-grimoire .mm-nav-today:not([aria-current="page"]):hover .mm-nav-moon{background-color:#ecdfc8;}
  #mmg-app #mm-grimoire .mm-nav-item:not([aria-current="page"]):hover{color:var(--mm-primary);}
}

/* 1.6.13: the stand-in moon shown before today's moon image loads is a light blue from the moon phases card, not white. */
#mmg-app #mm-grimoire .mm-nav-today[aria-current="page"] .mm-nav-moon-placeholder{stroke:#5f6b74;}
/* the sky glows from the card's lightest blue in the middle to its darkest blue at the edge */
#mmg-app #mm-grimoire .mm-nav-sky{background:radial-gradient(circle at 50% 50%,#25313b 0,#17212a 55%,#090e14 100%);}

/* 1.6.14: name onboarding (merged with the one-time welcome) and the personal greeting. */
/* ink reveal: a soft-edged wipe from left to right, like a pen writing across the line */
#mmg-app .mmg-ink,#mmg-app #mm-grimoire .mm-greeting-fresh .mm-greeting-ink,#mmg-app #mm-grimoire .mm-greeting-rewrite{-webkit-mask-image:linear-gradient(90deg,#000 45%,transparent 55%);mask-image:linear-gradient(90deg,#000 45%,transparent 55%);-webkit-mask-size:220% 100%;mask-size:220% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-position:100% 0;mask-position:100% 0;-webkit-box-decoration-break:slice;box-decoration-break:slice;animation:mmg-ink 1.3s cubic-bezier(.45,.05,.35,1) .15s forwards;}
@keyframes mmg-ink{to{-webkit-mask-position:0 0;mask-position:0 0;}}
#mmg-app .mmg-onboard{text-align:center;}
#mmg-app .mmg-onboard-heading{margin-bottom:12px;}
#mmg-app .mmg-onboard-form{margin:0;}
#mmg-app .mmg-onboard .mmg-onboard-question{display:block;margin:0 0 4px;color:var(--mm-fg);}
#mmg-app .mmg-onboard input[type=text]{text-align:center;margin-top:12px;}
#mmg-app .mmg-onboard-actions{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:4px 20px;margin-top:8px;}
#mmg-app .mmg-gate button.mmg-onboard-skip,#mmg-app .mmg-gate button.mmg-onboard-skip:disabled{background:transparent;border-color:transparent;color:var(--mm-primary);padding-inline:4px;text-decoration:underline;text-underline-offset:.2em;text-decoration-thickness:1px;}
#mmg-app .mmg-gate button.mmg-onboard-skip:hover{background:transparent;color:var(--mm-fg);}
#mmg-app .mmg-gate button[data-mmg-begin]:disabled{opacity:.45;cursor:not-allowed;}
#mmg-app .mmg-gate .mmg-onboard-note{margin:4px 0 0;font-size:var(--mm-text-small);color:var(--mm-muted);}
#mmg-app .mmg-onboard-step{opacity:0;transform:translateY(6px);animation:mmg-step .7s cubic-bezier(.2,.7,.3,1) forwards;}
#mmg-app .mmg-onboard-step:nth-child(1){animation-delay:.95s;}
#mmg-app .mmg-onboard-step:nth-child(2){animation-delay:1.1s;}
#mmg-app .mmg-onboard-step:nth-child(3){animation-delay:1.25s;}
#mmg-app .mmg-onboard-step:nth-child(4){animation-delay:1.4s;}
@keyframes mmg-step{to{opacity:1;transform:none;}}
/* after "Let's Begin!": the form fades, the greeting is written with their name, then the Cheat Sheet fades in */
#mmg-app .mmg-onboard-done .mmg-onboard-form{opacity:0;transition:opacity .35s ease;pointer-events:none;}
#mmg-app .mmg-onboard-done .mmg-onboard-step{animation:none;opacity:1;transform:none;}
#mmg-app .mmg-onboard .mmg-ink-quick{animation-duration:.55s;animation-delay:.1s;}
#mmg-app .mmg-onboard .mmg-ink-name{animation-duration:.9s;animation-delay:.55s;}
#mmg-app .mmg-onboard .mmg-ink-late{animation-duration:.25s;animation-delay:1.4s;}
#mmg-app .mmg-onboard{transition:opacity .45s ease;}
#mmg-app .mmg-onboard.mmg-onboard-leaving{opacity:0;}
#mmg-app #mmg-collection.mmg-fade-in{animation:mmg-fade-in .6s ease both;}
@keyframes mmg-fade-in{from{opacity:0;}to{opacity:1;}}
/* the greeting under the title */
#mmg-app #mm-grimoire .mm-greeting[hidden]{display:none;}
#mmg-app #mm-grimoire .mm-greeting{margin:14px auto 0;max-width:520px;text-align:center;}
#mmg-app #mm-grimoire .mm-brand .mm-greeting-line{display:flex;justify-content:center;align-items:center;gap:4px;margin:0;font:400 clamp(26px,7vw,34px)/1.2 var(--mm-font-hand);color:var(--mm-title-secondary);}
#mmg-app #mm-grimoire .mm-greeting-ink{overflow-wrap:anywhere;}
#mmg-app #mm-grimoire .mm-greeting-name{display:inline-block;}
#mmg-app #mm-grimoire .mm-brand .mm-greeting-sub{margin:4px 0 0;font:400 var(--mm-text-small)/1.5 var(--mm-font-body);color:var(--mm-muted);}
#mmg-app #mm-grimoire .mm-greeting-edit{appearance:none;-webkit-appearance:none;flex:none;display:grid;place-items:center;width:34px;height:34px;margin:0;padding:0;background:transparent;border:0;border-radius:50%;box-shadow:none;cursor:pointer;opacity:.55;transition:opacity .2s ease,transform .2s ease;}
#mmg-app #mm-grimoire .mm-greeting-edit svg{width:17px;height:17px;}
#mmg-app #mm-grimoire .mm-greeting-edit:hover,#mmg-app #mm-grimoire .mm-greeting-edit[aria-expanded="true"]{opacity:1;background:transparent;}
#mmg-app #mm-grimoire .mm-greeting-edit:focus-visible{outline:2px solid var(--mm-focus-color);outline-offset:2px;opacity:1;}
#mmg-app #mm-grimoire .mm-greeting-form:not([hidden]){display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:8px 12px;margin:14px auto 0;animation:mmg-step .35s cubic-bezier(.2,.7,.3,1) both;opacity:0;transform:translateY(4px);}
#mmg-app #mm-grimoire .mm-greeting-form input{flex:1 1 220px;max-width:300px;height:44px;text-align:center;}
#mmg-app #mm-grimoire .mm-greeting-form .mm-action:disabled{opacity:.45;cursor:not-allowed;}
#mmg-app #mm-grimoire .mm-greeting-cancel{appearance:none;background:transparent;border:0;box-shadow:none;min-height:42px;padding:0 4px;color:var(--mm-primary);font:inherit;font-size:var(--mm-text-small);text-decoration:underline;text-underline-offset:.2em;cursor:pointer;}
#mmg-app #mm-grimoire .mm-brand .mm-greeting-error:empty{display:none;}
#mmg-app #mm-grimoire .mm-brand .mm-greeting-error{flex-basis:100%;margin:0;font-size:var(--mm-text-small);color:var(--mm-primary);}
#mmg-app #mm-grimoire .mm-brand .mm-greeting-fresh .mm-greeting-sub{opacity:0;animation:mmg-step .6s ease 1.1s forwards;}
#mmg-app #mm-grimoire .mm-greeting-fresh .mm-greeting-edit{opacity:0;animation:mmg-edit-in .4s ease 1.3s forwards;}
@keyframes mmg-edit-in{to{opacity:.55;}}
#mmg-app #mm-grimoire .mm-greeting-calm{animation:mmg-fade-in .5s ease both;}
#mmg-app #mm-grimoire .mm-greeting-rewrite{animation-duration:.9s;animation-delay:0s;}
#mmg-app #mm-grimoire.mm-detail-view .mm-greeting{display:none;}
@media(prefers-reduced-motion:reduce){
  #mmg-app .mmg-ink,#mmg-app #mm-grimoire .mm-greeting-fresh .mm-greeting-ink,#mmg-app #mm-grimoire .mm-greeting-rewrite{animation:none;-webkit-mask:none;mask:none;}
  #mmg-app .mmg-onboard-step,#mmg-app #mm-grimoire .mm-greeting-fresh .mm-greeting-sub,#mmg-app #mm-grimoire .mm-greeting-form:not([hidden]){animation:none;opacity:1;transform:none;}
  #mmg-app #mm-grimoire .mm-greeting-fresh .mm-greeting-edit{animation:none;opacity:.55;}
  #mmg-app #mm-grimoire .mm-greeting-calm,#mmg-app #mmg-collection.mmg-fade-in{animation:none;}
}

/* 1.6.15: onboarding polish.
   Name fields use exactly the same design as the ingredient search field (size, border, radius, fill, shadow, placeholder and focus). */
#mmg-app .mmg-gate input#mmg-witch-name,#mmg-app #mm-grimoire input#mm-greeting-input{display:block;width:100%;height:49px;min-height:0;margin:0;box-sizing:border-box;border:var(--mm-border-width) solid var(--mm-border);border-radius:var(--mm-radius-input);background:var(--mm-input-bg);color:var(--mm-fg);font:inherit;font-size:var(--mm-text-mobile-input);padding:0 var(--mm-space-14);box-shadow:0 3px 9px var(--mm-shade-60432506);text-align:center;transition:none;}
#mmg-app .mmg-gate input#mmg-witch-name::placeholder,#mmg-app #mm-grimoire input#mm-greeting-input::placeholder{color:var(--mm-shade-99856f);opacity:1;}
#mmg-app .mmg-gate input#mmg-witch-name:is(:focus,:focus-visible),#mmg-app #mm-grimoire input#mm-greeting-input:is(:focus,:focus-visible){outline:0;outline-offset:0;border-color:var(--mm-focus-color);box-shadow:inset 0 0 0 1px var(--mm-focus-color);}
#mmg-app #mm-grimoire .mm-greeting-form input#mm-greeting-input{flex:1 1 220px;width:auto;max-width:300px;}
/* spacing: question → field 14px, field → button 28px, button → skip 6px, then the reassurance note */
#mmg-app .mmg-onboard .mmg-onboard-question{margin:0 0 14px;}
#mmg-app .mmg-onboard-actions{flex-direction:column;gap:6px;margin-top:28px;}
#mmg-app .mmg-gate .mmg-onboard-actions button{margin:0;}
#mmg-app .mmg-gate .mmg-onboard-note{margin:14px 0 0;}
/* "Skip and call me Witch" is a quiet text button: no fill or border in any state (also overriding the theme's button hover).
   Hover darkens the text and thickens the underline; pressing dims it slightly; keyboard focus gets the usual focus ring. */
#mmg-app .mmg-gate button.mmg-onboard-skip,#mmg-app .mmg-gate button.mmg-onboard-skip:is(:hover,:focus,:active,:disabled){min-height:44px;padding:8px 6px;background:transparent!important;background-image:none!important;border-color:transparent!important;box-shadow:none!important;color:var(--mm-primary)!important;font-size:var(--mm-text-small);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.2em;text-decoration-color:color-mix(in srgb,currentColor 45%,transparent);transform:none;transition:color .2s ease,text-decoration-color .2s ease;}
@media(hover:hover){#mmg-app .mmg-gate button.mmg-onboard-skip:hover{color:var(--mm-fg)!important;text-decoration-color:currentColor;}}
#mmg-app .mmg-gate button.mmg-onboard-skip:active{opacity:.7;}
#mmg-app .mmg-gate button.mmg-onboard-skip:focus-visible{outline:2px solid var(--mm-focus-color);outline-offset:2px;border-radius:4px;}
/* the greeting's Cancel follows the same quiet text-button pattern */
#mmg-app #mm-grimoire .mm-greeting-cancel,#mmg-app #mm-grimoire .mm-greeting-cancel:is(:hover,:focus,:active){background:transparent!important;border-color:transparent!important;box-shadow:none!important;color:var(--mm-primary)!important;text-decoration-color:color-mix(in srgb,currentColor 45%,transparent);transition:color .2s ease,text-decoration-color .2s ease;}
@media(hover:hover){#mmg-app #mm-grimoire .mm-greeting-cancel:hover{color:var(--mm-fg)!important;text-decoration-color:currentColor;}}

/* 1.6.15: calmer, cleaner motion for the welcome and greeting.
   One easing curve, short durations, small distances, gentle stagger — no ink wipes. The hat is the one whimsical moment. */
#mmg-app{--mmg-ease:cubic-bezier(.22,.61,.36,1);}
#mmg-app .mmg-ink,#mmg-app #mm-grimoire .mm-greeting-fresh .mm-greeting-ink,#mmg-app #mm-grimoire .mm-greeting-rewrite{-webkit-mask:none;mask:none;animation:none;}
@keyframes mmg-rise{from{opacity:0;transform:translateY(8px);}to{opacity:1;transform:none;}}
/* the hat floats down, tips its brim and settles; three sparkles twinkle once */
#mmg-app .mmg-onboard-hat{position:relative;width:104px;height:104px;margin:0 auto 10px;}
#mmg-app .mmg-onboard-hat img{display:block;width:104px;height:104px;object-fit:contain;transform-origin:50% 85%;animation:mmg-hat-in 1.1s var(--mmg-ease) .05s both;}
@keyframes mmg-hat-in{0%{opacity:0;transform:translateY(-26px) rotate(-14deg) scale(.86);}55%{opacity:1;transform:translateY(3px) rotate(5deg) scale(1.02);}75%{transform:translateY(-1px) rotate(-2deg);}100%{opacity:1;transform:none;}}
#mmg-app .mmg-hat-spark{position:absolute;width:10px;height:10px;opacity:0;animation:mmg-hat-spark .9s ease-out both;}
#mmg-app .mmg-hat-spark svg{display:block;width:100%;height:100%;fill:var(--mm-primary);}
#mmg-app .mmg-hat-spark-a{top:4px;right:6px;animation-delay:.75s;}
#mmg-app .mmg-hat-spark-b{top:26px;left:2px;width:7px;height:7px;animation-delay:.9s;}
#mmg-app .mmg-hat-spark-c{top:-4px;left:38px;width:6px;height:6px;animation-delay:1.05s;}
@keyframes mmg-hat-spark{0%{opacity:0;transform:scale(.2) rotate(0);}45%{opacity:1;transform:scale(1.1) rotate(45deg);}100%{opacity:0;transform:scale(.6) rotate(90deg);}}
/* heading, then question, field, buttons and note rise in one after another */
#mmg-app .mmg-onboard-heading{animation:mmg-rise .55s var(--mmg-ease) .35s both;}
#mmg-app .mmg-onboard-step{opacity:0;transform:translateY(8px);animation:mmg-rise .5s var(--mmg-ease) both;}
#mmg-app .mmg-onboard-step:nth-child(1){animation-delay:.5s;}
#mmg-app .mmg-onboard-step:nth-child(2){animation-delay:.58s;}
#mmg-app .mmg-onboard-step:nth-child(3){animation-delay:.66s;}
#mmg-app .mmg-onboard-step:nth-child(4){animation-delay:.74s;}
/* after "Let's Begin!": the form fades, the hat gives a happy hop, "Welcome, Name!" rises in, then the Cheat Sheet fades in */
#mmg-app .mmg-onboard-done .mmg-onboard-heading{animation:none;}
#mmg-app .mmg-onboard-done .mmg-onboard-heading>span{display:inline;animation:mmg-rise .5s var(--mmg-ease) .15s both;}
#mmg-app .mmg-onboard-done .mmg-onboard-hat img{animation:mmg-hat-hop .7s var(--mmg-ease) both;}
#mmg-app .mmg-onboard-done .mmg-hat-spark{animation-name:mmg-hat-spark;}
#mmg-app .mmg-onboard-done .mmg-hat-spark-a{animation-delay:.2s;}
#mmg-app .mmg-onboard-done .mmg-hat-spark-b{animation-delay:.3s;}
#mmg-app .mmg-onboard-done .mmg-hat-spark-c{animation-delay:.4s;}
@keyframes mmg-hat-hop{0%{transform:none;}35%{transform:translateY(-10px) rotate(-6deg);}70%{transform:translateY(1px) rotate(2deg);}100%{transform:none;}}
#mmg-app .mmg-onboard{transition:opacity .4s var(--mmg-ease);}
/* greeting: rises in the first time, a soft fade on later visits; a changed name rises in */
#mmg-app #mm-grimoire .mm-greeting-fresh .mm-greeting-line{animation:mmg-rise .55s var(--mmg-ease) .2s both;}
#mmg-app #mm-grimoire .mm-brand .mm-greeting-fresh .mm-greeting-sub{opacity:0;animation:mmg-rise .55s var(--mmg-ease) .32s both;}
#mmg-app #mm-grimoire .mm-greeting-fresh .mm-greeting-edit{animation:mmg-edit-in .4s ease .5s forwards;}
#mmg-app #mm-grimoire .mm-greeting-calm{animation:mmg-fade-in .4s ease both;}
#mmg-app #mm-grimoire .mm-greeting-rewrite{animation:mmg-rise .4s var(--mmg-ease) both;}
@media(prefers-reduced-motion:reduce){
  #mmg-app .mmg-onboard-hat img,#mmg-app .mmg-onboard-heading,#mmg-app .mmg-onboard-done .mmg-onboard-heading>span,#mmg-app #mm-grimoire .mm-greeting-fresh .mm-greeting-line,#mmg-app #mm-grimoire .mm-greeting-rewrite{animation:none;opacity:1;transform:none;}
  #mmg-app #mm-grimoire .mm-brand .mm-greeting-fresh .mm-greeting-sub{animation:none;opacity:1;transform:none;}
  #mmg-app .mmg-hat-spark{display:none;}
}
/* The name field fades in (opacity only, on a wrapper): moving the input itself makes some browsers, notably Safari,
   draw the placeholder at its final spot and jump it, instead of moving it with the field. */
#mmg-app .mmg-onboard-step.mmg-onboard-field{transform:none;animation-name:mmg-fade-in;}

/* 1.6.17: page edges. The theme or page builder wraps the app in containers that add their own top/bottom padding,
   margins and gaps; with the light page colour behind them this showed as a beige strip above the header and below the
   footer (and pushed both inwards). Neutralise that spacing on every wrapper that contains the app — not only the one
   Elementor element the earlier fix named — and hide the empty paragraphs/line breaks WordPress can add around it. */
body:has(#mmg-app){padding-block:0!important;}
body :has(#mmg-app):not(#mmg-app *){padding-block:0!important;margin-block:0!important;row-gap:0!important;min-height:0;
  --padding-top:0px;--padding-bottom:0px;--padding-block-start:0px;--padding-block-end:0px;--margin-top:0px;--margin-bottom:0px;--row-gap:0px;--widgets-spacing:0px;}
body :has(> #mmg-app) > :is(p:empty,br),body :has(> p > #mmg-app) > :is(p:empty,br){display:none!important;}

/* 1.6.18: the heading font always stays regular weight. */
#mmg-app{font-synthesis-weight:none;}

/* 1.6.18: welcome celebration after the name is chosen — the card shrinks around the hat, which hops in a burst of
   sparkles, and "Welcome, Name" appears in the greeting's style before the Cheat Sheet fades in. */
#mmg-app .mmg-onboard-done .mmg-onboard-heading,#mmg-app .mmg-onboard-done .mmg-onboard-form{opacity:0;transition:opacity .25s ease;}
#mmg-app .mmg-onboard.mmg-onboard-shrinking{overflow:hidden;transition:height .55s var(--mmg-ease),opacity .4s var(--mmg-ease);}
#mmg-app .mmg-onboard-welcome p{margin:0;}
#mmg-app .mmg-onboard-welcome .mmg-onboard-kicker{font:400 13px/1.4 var(--mm-font-body);letter-spacing:.16em;text-transform:uppercase;color:var(--mm-primary);animation:mmg-rise .5s var(--mmg-ease) .1s both;}
#mmg-app .mmg-onboard-welcome .mmg-onboard-name{margin-top:2px;font:italic 400 clamp(34px,9vw,44px)/1.15 var(--mm-font-heading);color:var(--mm-title-accent);overflow-wrap:anywhere;animation:mmg-rise .55s var(--mmg-ease) .2s both;}
#mmg-app .mmg-onboard-welcome .mmg-onboard-ready{margin-top:8px;font:italic 400 var(--mm-text-base)/1.5 var(--mm-font-body);color:var(--mm-muted);animation:mmg-rise .5s var(--mmg-ease) .35s both;}
#mmg-app .mmg-hat-burst{position:absolute;left:50%;top:42%;width:9px;height:9px;margin:-4.5px 0 0 -4.5px;opacity:0;pointer-events:none;animation:mmg-burst .95s var(--mmg-ease) var(--bd) both;}
#mmg-app .mmg-hat-burst svg{display:block;width:100%;height:100%;fill:var(--mm-primary);}
#mmg-app .mmg-hat-burst:nth-child(odd){width:7px;height:7px;}
@keyframes mmg-burst{0%{opacity:0;transform:translate(0,0) scale(.3) rotate(0);}25%{opacity:1;}100%{opacity:0;transform:translate(var(--bx),var(--by)) scale(1) rotate(90deg);}}

/* 1.6.18: the greeting — distinct from the title: a small spaced-out "Welcome back," label, the name large in
   Cardo italic between two little sparkles, and a quiet italic question. */
#mmg-app #mm-grimoire .mm-brand .mm-greeting{margin:24px auto 0;max-width:560px;text-align:center;}
#mmg-app #mm-grimoire .mm-brand .mm-greeting-kicker{margin:0;font:400 13px/1.4 var(--mm-font-body);letter-spacing:.16em;text-transform:uppercase;color:var(--mm-primary);}
#mmg-app #mm-grimoire .mm-greeting-row{display:flex;justify-content:center;align-items:center;min-height:54px;margin-top:2px;}
#mmg-app #mm-grimoire .mm-greeting-center{position:relative;display:inline-flex;align-items:center;gap:12px;max-width:calc(100% - 80px);}
#mmg-app #mm-grimoire .mm-greeting-slot{min-width:0;}
#mmg-app #mm-grimoire .mm-greeting-name{display:inline-block;font:italic 400 clamp(32px,8.5vw,42px)/1.15 var(--mm-font-heading);color:var(--mm-title-accent);overflow-wrap:anywhere;letter-spacing:0;}
#mmg-app #mm-grimoire .mm-greeting-spark{flex:none;display:block;width:11px;height:11px;}
#mmg-app #mm-grimoire .mm-greeting-spark svg{display:block;width:100%;height:100%;fill:var(--mm-primary);}
#mmg-app #mm-grimoire .mm-greeting-spark-l{width:9px;height:9px;transform:translateY(-10px);}
#mmg-app #mm-grimoire .mm-greeting-spark-r{transform:translateY(8px);}
#mmg-app #mm-grimoire .mm-greeting-tools{position:absolute;left:100%;top:50%;display:flex;gap:2px;margin-left:6px;transform:translateY(-50%);}
#mmg-app #mm-grimoire .mm-greeting-tool{appearance:none;-webkit-appearance:none;display:grid;place-items:center;width:32px;height:32px;min-height:0;margin:0;padding:0;background:transparent;border:0;border-radius:50%;box-shadow:none;cursor:pointer;opacity:.45;transition:opacity .2s ease,background-color .2s ease;}
#mmg-app #mm-grimoire .mm-greeting-tool svg{width:16px;height:16px;}
@media(hover:hover){#mmg-app #mm-grimoire .mm-greeting-tool:hover{opacity:1;background-color:var(--mm-tint-hover);}}
#mmg-app #mm-grimoire .mm-greeting-tool:focus-visible{opacity:1;outline:2px solid var(--mm-focus-color);outline-offset:1px;}
#mmg-app #mm-grimoire .mm-greeting-editing .mm-greeting-tool{opacity:.75;}
#mmg-app #mm-grimoire .mm-greeting-editing .mm-greeting-save{opacity:1;}
/* inline name field: the name itself becomes editable — same font and size, a hairline underneath, no box */
#mmg-app #mm-grimoire input#mm-greeting-input{width:auto;max-width:min(78vw,520px);height:auto;margin:0;padding:0 2px 2px;border:0;border-bottom:1px solid var(--mm-focus-color);border-radius:0;background:transparent;box-shadow:none;outline:0;text-align:center;font:italic 400 clamp(32px,8.5vw,42px)/1.15 var(--mm-font-heading);color:var(--mm-title-accent);caret-color:var(--mm-primary);}
#mmg-app #mm-grimoire input#mm-greeting-input:is(:focus,:focus-visible){outline:0;box-shadow:none;border-bottom-color:var(--mm-primary);}
#mmg-app #mm-grimoire input#mm-greeting-input::placeholder{color:var(--mm-shade-99856f);opacity:.6;}
#mmg-app #mm-grimoire .mm-greeting-probe{position:absolute;left:-9999px;top:0;visibility:hidden;white-space:pre;}
#mmg-app #mm-grimoire .mm-brand .mm-greeting-sub{margin:6px 0 0;font:italic 400 var(--mm-text-base)/1.5 var(--mm-font-body);color:var(--mm-muted);}
#mmg-app #mm-grimoire .mm-brand .mm-greeting-error{margin:6px 0 0;font-size:var(--mm-text-small);color:var(--mm-primary);}
#mmg-app #mm-grimoire .mm-brand .mm-greeting-error:empty{display:none;}
/* motion: first time — label, name and question rise in one after another and the sparkles twinkle in;
   later visits — a soft fade; after renaming — the new name rises in and the sparkles twinkle once */
#mmg-app #mm-grimoire .mm-greeting-fresh .mm-greeting-kicker{animation:mmg-rise .5s var(--mmg-ease) .15s both;}
#mmg-app #mm-grimoire .mm-greeting-fresh .mm-greeting-slot{display:inline-block;animation:mmg-rise .55s var(--mmg-ease) .25s both;}
#mmg-app #mm-grimoire .mm-brand .mm-greeting-fresh .mm-greeting-sub{opacity:0;animation:mmg-rise .5s var(--mmg-ease) .4s both;}
#mmg-app #mm-grimoire :is(.mm-greeting-fresh,.mm-greeting-cheer) .mm-greeting-spark{animation:mmg-greet-spark .8s var(--mmg-ease) .55s both;}
#mmg-app #mm-grimoire :is(.mm-greeting-fresh,.mm-greeting-cheer) .mm-greeting-spark-r{animation-delay:.68s;}
#mmg-app #mm-grimoire .mm-greeting-cheer .mm-greeting-spark{animation-delay:.1s;}
#mmg-app #mm-grimoire .mm-greeting-cheer .mm-greeting-spark-r{animation-delay:.22s;}
@keyframes mmg-greet-spark{0%{opacity:0;scale:.2;rotate:0deg;}60%{opacity:1;scale:1.3;rotate:60deg;}100%{opacity:1;scale:1;rotate:90deg;}}
#mmg-app #mm-grimoire .mm-greeting-fresh .mm-greeting-edit{opacity:0;animation:mmg-edit-in .4s ease .7s forwards;}
@keyframes mmg-edit-in{to{opacity:.45;}}
#mmg-app #mm-grimoire .mm-greeting-calm{animation:mmg-fade-in .45s ease both;}
#mmg-app #mm-grimoire .mm-greeting-rewrite{animation:mmg-rise .45s var(--mmg-ease) both;}
@media(max-width:560px){#mmg-app #mm-grimoire .mm-greeting-center{gap:9px;}#mmg-app #mm-grimoire .mm-brand .mm-greeting{margin-top:18px;}}
@media(prefers-reduced-motion:reduce){
  #mmg-app .mmg-onboard-welcome :is(.mmg-onboard-kicker,.mmg-onboard-name,.mmg-onboard-ready),#mmg-app #mm-grimoire :is(.mm-greeting-fresh,.mm-greeting-cheer) :is(.mm-greeting-kicker,.mm-greeting-slot,.mm-greeting-spark,.mm-greeting-rewrite),#mmg-app #mm-grimoire .mm-brand .mm-greeting-fresh .mm-greeting-sub,#mmg-app #mm-grimoire .mm-greeting-calm{animation:none;opacity:1;transform:none;}
  #mmg-app #mm-grimoire .mm-greeting-fresh .mm-greeting-edit{animation:none;opacity:.45;}
  #mmg-app .mmg-hat-burst{display:none;}
}
/* keep the sparkles' little vertical offsets independent of their twinkle rotation */
#mmg-app #mm-grimoire .mm-greeting-spark-l{transform:none;translate:0 -10px;}
#mmg-app #mm-grimoire .mm-greeting-spark-r{transform:none;translate:0 8px;}

/* ===== 1.6.19 ===== */
/* Greeting: the name is written on a small torn-paper sticker (the same torn shape as the Witch Tips), placed with a
   gentle "stick" — it settles from slightly larger and more tilted to its resting tilt. No sparkles. */
#mmg-app #mm-grimoire .mm-greeting-spark{display:none;}
#mmg-app #mm-grimoire .mm-brand .mm-greeting-kicker{padding-left:.16em;}
#mmg-app #mm-grimoire .mm-greeting-row{display:flex;justify-content:center;min-height:0;margin-top:10px;filter:drop-shadow(0 2px 3px rgba(96,67,37,.16));}
#mmg-app #mm-grimoire .mm-greeting-sticker{display:inline-block;max-width:calc(100% - 24px);padding:12px clamp(28px,7vw,44px) 14px;background:#fff9ed;clip-path:var(--mm-torn-shape);box-shadow:inset 0 0 18px 1px rgba(122,82,44,.2);transform:rotate(-2deg);transform-origin:50% 60%;}
#mmg-app #mm-grimoire .mm-greeting-sticker .mm-greeting-name{font:italic 400 clamp(30px,8vw,40px)/1.15 var(--mm-font-heading);color:var(--mm-title-accent);}
#mmg-app #mm-grimoire .mm-greeting-fresh .mm-greeting-slot,#mmg-app #mm-grimoire .mm-greeting-rewrite{animation:none;}
#mmg-app #mm-grimoire .mm-brand .mm-greeting-sub{margin:14px 0 0;font:400 var(--mm-text-base)/1.5 var(--mm-font-body);color:var(--mm-muted);}
@keyframes mm-sticker-on{0%{opacity:0;transform:translateY(-8px) scale(1.12) rotate(-7deg);}55%{opacity:1;transform:translateY(1px) scale(.985) rotate(-1.4deg);}100%{opacity:1;transform:rotate(-2deg);}}
#mmg-app #mm-grimoire .mm-greeting-fresh .mm-greeting-sticker{animation:mm-sticker-on .7s var(--mmg-ease) .25s both;}
#mmg-app #mm-grimoire .mm-greeting-cheer .mm-greeting-sticker{animation:mm-sticker-on .55s var(--mmg-ease) both;}
#mmg-app #mm-grimoire .mm-greeting-fresh .mm-greeting-kicker{animation:mmg-rise .5s var(--mmg-ease) .1s both;}
#mmg-app #mm-grimoire .mm-brand .mm-greeting-fresh .mm-greeting-sub{animation:mmg-rise .5s var(--mmg-ease) .55s both;}
@media(prefers-reduced-motion:reduce){#mmg-app #mm-grimoire :is(.mm-greeting-fresh,.mm-greeting-cheer) .mm-greeting-sticker{animation:none;opacity:1;transform:rotate(-2deg);}}

/* Daily tracker: four separate containers — Today's Energy, the moon phases, Today's Report and Today's Witch Tip. */
#mmg-app #mm-grimoire .mm-daily-tracker{display:flex;flex-direction:column;gap:var(--mm-space-16);padding:0;background:none;border:0;border-radius:0;overflow:visible;}
#mmg-app #mm-grimoire .mm-daily-card{position:relative;overflow:hidden;padding:20px var(--mm-daily-padding) var(--mm-daily-padding);background:var(--mm-card);border:var(--mm-border-width) solid var(--mm-outline-soft);border-radius:var(--mm-radius-card);}
#mmg-app #mm-grimoire .mm-daily-card-energy .mm-daily-earth{margin-bottom:max(0px,calc(36px - var(--mm-daily-padding)));}
#mmg-app #mm-grimoire .mm-daily-sky{margin:0;border:var(--mm-border-width) solid var(--mm-outline-soft);border-radius:var(--mm-radius-card);}
#mmg-app #mm-grimoire .mm-daily-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--mm-space-16);margin:0;}
#mmg-app #mm-grimoire .mm-daily-object{width:100%;padding:28px 12px 22px;background:var(--mm-card);border:var(--mm-border-width) solid var(--mm-outline-soft);border-radius:var(--mm-radius-card);}
@media(hover:hover){#mmg-app #mm-grimoire .mm-daily-object:hover{background:var(--mm-card);border-color:var(--mm-border);}}
@media(max-width:560px){#mmg-app #mm-grimoire .mm-daily-object{padding:22px 8px 16px;}}
@media(max-width:300px){#mmg-app #mm-grimoire .mm-daily-actions{grid-template-columns:minmax(0,1fr);}}

/* Witch Tip papers: a soft, darker, well-blurred edge so the torn paper looks aged and its edges stand out. */
#mmg-app #mm-grimoire .mm-tips li{box-shadow:inset 0 0 26px 3px rgba(122,82,44,.26),inset 0 0 6px rgba(122,82,44,.18);}
#mmg-app #mm-grimoire .mm-daily-dialog[data-kind=tip] .mm-tips li{box-shadow:none;}
/* centred greeting lines and equal spacing: title → greeting = greeting → Today's Energy (44px, the larger gap) */
#mmg-app #mm-grimoire .mm-brand .mm-greeting{margin-top:44px;}
#mmg-app #mm-grimoire .mm-brand .mm-greeting-kicker,#mmg-app #mm-grimoire .mm-brand .mm-greeting-sub,#mmg-app #mm-grimoire .mm-brand .mm-greeting-error{margin-left:auto;margin-right:auto;}
@media(max-width:560px){#mmg-app #mm-grimoire .mm-brand .mm-greeting{margin-top:44px;}}

/* Notes: a torn sheet of white notebook paper with faint ruled lines and a soft margin line, written on in the
   handwriting font. Grows as you write; saves automatically. */
#mmg-app #mm-grimoire .mm-notes-paper{--mm-note-line:32px;position:relative;filter:drop-shadow(0 2px 3px rgba(96,67,37,.14));}
#mmg-app #mm-grimoire .mm-notes-paper textarea#mm-notes-text{display:block;width:100%;min-height:calc(var(--mm-note-line) * 3 + 36px);height:auto;margin:0;padding:18px 26px 18px 56px;box-sizing:border-box;resize:none;overflow:hidden;
  border:0;border-radius:0;outline:0;box-shadow:inset 0 0 22px 2px rgba(122,82,44,.12);clip-path:var(--mm-torn-shape);
  background-color:#fffdf8;
  background-image:linear-gradient(90deg,transparent 39px,rgba(196,110,96,.28) 39px,rgba(196,110,96,.28) 40px,transparent 40px),
    repeating-linear-gradient(180deg,transparent 0,transparent calc(var(--mm-note-line) - 1px),rgba(120,146,176,.24) calc(var(--mm-note-line) - 1px),rgba(120,146,176,.24) var(--mm-note-line));
  background-position:0 0,0 18px;background-attachment:local;
  font:400 23px/var(--mm-note-line) var(--mm-font-hand);color:var(--mm-title-secondary);caret-color:var(--mm-primary);transition:box-shadow .25s ease;}
#mmg-app #mm-grimoire .mm-notes-paper textarea#mm-notes-text::placeholder{color:var(--mm-shade-99856f);opacity:.55;}
#mmg-app #mm-grimoire .mm-notes-paper textarea#mm-notes-text:is(:focus,:focus-visible){outline:0;box-shadow:inset 0 0 22px 2px rgba(122,82,44,.12),inset 0 0 0 1px rgba(141,112,76,.35);}
#mmg-app #mm-grimoire .mm-notes-paper textarea#mm-notes-text[data-notes-waiting]{opacity:.6;}
#mmg-app #mm-grimoire .mm-notes-status{margin:10px 0 0;min-height:1.5em;font:400 var(--mm-text-small)/1.5 var(--mm-font-body);color:var(--mm-muted);text-align:center;}
@media(max-width:560px){#mmg-app #mm-grimoire .mm-notes-paper textarea#mm-notes-text{padding:16px 18px 16px 46px;font-size:22px;background-image:linear-gradient(90deg,transparent 31px,rgba(196,110,96,.28) 31px,rgba(196,110,96,.28) 32px,transparent 32px),repeating-linear-gradient(180deg,transparent 0,transparent calc(var(--mm-note-line) - 1px),rgba(120,146,176,.24) calc(var(--mm-note-line) - 1px),rgba(120,146,176,.24) var(--mm-note-line));background-position:0 0,0 16px;}}

/* Full-screen screens (login, purchase, sign-in confirmation, welcome) now cover the whole window themselves, so no
   theme or page-builder strip above or below can show through, whatever wrappers the page uses. */
#mmg-app.mmg-gate-screen,#mmg-app:has(#mmg-authorized.mmg-welcome-mode){position:fixed;inset:0;z-index:99990;margin:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;}

/* Change your name (help menu): calm spacing, the same field design as the search box, the button shows its own
   "Saving…" state, errors are plain soft text (no borders/lines from the theme), and success is a small magical moment:
   a checkmark draws itself inside a circle, four tiny stars pop, and the new name appears on a torn-paper sticker. */
#mmg-app .mmg-support .mmg-rename-intro{margin:0 0 4px;color:var(--mm-muted);}
#mmg-app .mmg-support .mmg-rename label{margin:20px 0 8px;}
#mmg-app .mmg-support .mmg-rename input#mmg-support-name{height:49px;min-height:0;padding:0 var(--mm-space-14);border:var(--mm-border-width) solid var(--mm-border);border-radius:var(--mm-radius-input);background:var(--mm-input-bg);box-shadow:0 3px 9px var(--mm-shade-60432506);font:inherit;font-size:16px;color:var(--mm-fg);outline:0;resize:none;}
#mmg-app .mmg-support .mmg-rename input#mmg-support-name::placeholder{color:var(--mm-shade-99856f);opacity:1;}
#mmg-app .mmg-support .mmg-rename input#mmg-support-name:is(:focus,:focus-visible){outline:0;border-color:var(--mm-focus-color);box-shadow:inset 0 0 0 1px var(--mm-focus-color);}
#mmg-app .mmg-support p.mmg-rename-error{margin:10px 0 0!important;padding:0!important;border:0!important;background:none!important;box-shadow:none!important;font-size:var(--mm-text-small);color:var(--mm-primary);}
#mmg-app .mmg-support p.mmg-rename-error::before,#mmg-app .mmg-support p.mmg-rename-error::after{content:none!important;}
#mmg-app .mmg-support .mmg-rename-save{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;margin-top:22px;transition:opacity .2s ease;}
#mmg-app .mmg-support .mmg-rename-save:disabled{cursor:default;opacity:.85;}
#mmg-app .mmg-rename-spinner{display:none;width:14px;height:14px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:mmg-spin .8s linear infinite;}
#mmg-app .mmg-rename-busy .mmg-rename-spinner{display:block;}
@keyframes mmg-spin{to{transform:rotate(360deg);}}
#mmg-app .mmg-support .mmg-rename{animation:mmg-rise .35s var(--mmg-ease) both;}
/* success */
#mmg-app .mmg-support .mmg-renamed{text-align:center;padding-top:6px;}
#mmg-app .mmg-support .mmg-renamed>*{animation:mmg-rise .45s var(--mmg-ease) both;}
#mmg-app .mmg-support .mmg-renamed>h2{animation-delay:.35s;}
#mmg-app .mmg-support .mmg-renamed>p[role=status]{margin:0 0 6px;color:var(--mm-muted);animation-delay:.45s;}
#mmg-app .mmg-support .mmg-renamed-name{margin:4px 0 24px;animation-delay:.55s;filter:drop-shadow(0 2px 3px rgba(96,67,37,.16));}
#mmg-app .mmg-support .mmg-renamed-name span{display:inline-block;padding:8px 26px 10px;background:#fff9ed;clip-path:var(--mm-torn-shape);box-shadow:inset 0 0 16px 1px rgba(122,82,44,.2);transform:rotate(-2deg);font:italic 400 28px/1.2 var(--mm-font-heading);color:var(--mm-title-accent);overflow-wrap:anywhere;}
#mmg-app .mmg-support .mmg-renamed-mark{position:relative;width:64px;height:64px;margin:0 auto 12px;animation:none;}
#mmg-app .mmg-magic-check{display:block;width:64px;height:64px;fill:none;stroke:var(--mm-primary)!important;color:var(--mm-primary)!important;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;}
#mmg-app .mmg-magic-check circle{stroke-dasharray:145;stroke-dashoffset:145;animation:mmg-draw .6s var(--mmg-ease) .05s forwards;}
#mmg-app .mmg-magic-check path{stroke-dasharray:36;stroke-dashoffset:36;animation:mmg-draw .35s var(--mmg-ease) .5s forwards;}
@keyframes mmg-draw{to{stroke-dashoffset:0;}}
#mmg-app .mmg-renamed-star{position:absolute;width:10px;height:10px;opacity:0;animation:mmg-hat-spark .8s ease-out both;}
#mmg-app .mmg-renamed-star svg{display:block;width:100%;height:100%;fill:var(--mm-primary);color:var(--mm-primary)!important;}
#mmg-app .mmg-renamed-star.s1{top:-4px;right:-10px;animation-delay:.7s;}
#mmg-app .mmg-renamed-star.s2{bottom:4px;left:-14px;width:7px;height:7px;animation-delay:.8s;}
#mmg-app .mmg-renamed-star.s3{top:10px;left:-8px;width:6px;height:6px;animation-delay:.9s;}
#mmg-app .mmg-renamed-star.s4{bottom:-4px;right:-6px;width:7px;height:7px;animation-delay:1s;}
/* Done: always a clearly visible filled button, whatever the theme does to focused buttons */
#mmg-app .mmg-support .mmg-renamed-done{display:block;width:100%;min-height:48px;margin:0;background:var(--mm-button-bg)!important;color:var(--mm-button-text)!important;border:1px solid var(--mm-button-bg)!important;border-radius:var(--mm-radius-button);box-shadow:none!important;text-transform:none!important;animation-delay:.65s;}
#mmg-app .mmg-support .mmg-renamed-done:focus-visible{outline:2px solid var(--mm-focus-color);outline-offset:3px;}
@media(prefers-reduced-motion:reduce){#mmg-app .mmg-support :is(.mmg-rename,.mmg-renamed>*),#mmg-app .mmg-magic-check :is(circle,path){animation:none!important;stroke-dashoffset:0;}#mmg-app .mmg-renamed-star{display:none;}}
/* rename dialog: fade (no movement) so the popup never thinks it needs a scrollbar; no theme lines on status text */
#mmg-app .mmg-support .mmg-rename,#mmg-app .mmg-support .mmg-renamed>*{animation-name:mmg-fade-in;}
#mmg-app .mmg-support [role=status]{border:0!important;padding-left:0!important;padding-right:0!important;background:none!important;box-shadow:none!important;}
#mmg-app .mmg-support [role=status]::before,#mmg-app .mmg-support [role=status]::after{content:none!important;}
#mmg-app .mmg-support .mmg-renamed-done{width:100%!important;max-width:none!important;padding:12px 20px!important;font:inherit!important;line-height:1.4!important;}
#mmg-app .mmg-support .mmg-renamed-done:focus-visible{outline:2px solid var(--mm-outline-soft);outline-offset:2px;}
#mmg-app .mmg-renamed-star{width:12px;height:12px;}
#mmg-app .mmg-renamed-star.s2{width:9px;height:9px;}#mmg-app .mmg-renamed-star.s3{width:8px;height:8px;}#mmg-app .mmg-renamed-star.s4{width:9px;height:9px;}

/* Next new / full moon: real buttons, a little lighter, that open a popup. */
#mmg-app #mm-grimoire button.mm-daily-next{appearance:none;-webkit-appearance:none;position:relative;font:inherit;color:var(--mm-lunar-text);background:var(--mm-sky-fill);border:1px solid var(--mm-sky-line);box-shadow:none;cursor:pointer;text-transform:none;letter-spacing:normal;transition:background-color .25s ease,border-color .25s ease,transform .25s var(--mmg-ease,ease);}
#mmg-app #mm-grimoire .mm-daily-next-text{display:block;min-width:0;}
@media(hover:hover){#mmg-app #mm-grimoire button.mm-daily-next:hover{background:var(--mm-sky-fill-hover);border-color:var(--mm-sky-line-strong);transform:translateY(-2px);}}
#mmg-app #mm-grimoire button.mm-daily-next:active{transform:scale(.98);}
#mmg-app #mm-grimoire button.mm-daily-next:focus-visible{outline:2px solid #c1d1d2;outline-offset:3px;}
#mmg-app #mm-grimoire .mm-daily-next-bell{position:absolute;top:8px;right:8px;width:15px;height:15px;opacity:.8;}
#mmg-app #mm-grimoire .mm-daily-next-bell svg{display:block;width:100%;height:100%;color:#c1d1d2!important;stroke:#c1d1d2;}
/* the popup */
#mmg-app #mm-grimoire .mm-moon-pop-kicker{margin:0 0 2px;font:400 12px/1.5 var(--mm-font-body);letter-spacing:.14em;text-transform:uppercase;color:var(--mm-primary);}
#mmg-app #mm-grimoire .mm-daily-dialog[data-kind^=moon] h2{margin-top:0;}
#mmg-app #mm-grimoire .mm-moon-pop-hero{display:grid;place-items:center;height:132px;margin:14px 0 6px;border-radius:var(--mm-radius-card);background:radial-gradient(circle at 50% 50%,#25313b 0,#17212a 55%,#090e14 100%);}
#mmg-app #mm-grimoire .mm-moon-pop-image{width:96px;height:96px;object-fit:contain;filter:drop-shadow(0 0 16px #d5e5e933);}
#mmg-app #mm-grimoire .mm-moon-pop-when{margin:10px 0 4px;text-align:center;}
#mmg-app #mm-grimoire .mm-moon-pop-when span{display:inline-block;padding:3px 12px;border:1px solid var(--mm-outline-soft);border-radius:999px;font:400 13px/1.5 var(--mm-font-body);color:var(--mm-primary);}
#mmg-app #mm-grimoire .mm-moon-pop-facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:0;margin:12px 0 0;border-top:1px solid var(--mm-divider-color);}
#mmg-app #mm-grimoire .mm-moon-pop-facts>div{padding:10px 4px;border-bottom:1px solid var(--mm-divider-color);text-align:center;}
#mmg-app #mm-grimoire .mm-moon-pop-facts dt{font:400 11px/1.4 var(--mm-font-body);letter-spacing:.12em;text-transform:uppercase;color:var(--mm-muted);}
#mmg-app #mm-grimoire .mm-moon-pop-facts dd{margin:2px 0 0;font:400 18px/1.35 var(--mm-font-heading);color:var(--mm-title-accent);}
#mmg-app #mm-grimoire .mm-moon-pop-meanings{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;margin:14px 0 0;}
#mmg-app #mm-grimoire .mm-moon-pop-meanings span{padding:3px 12px;border:var(--mm-border-width) solid var(--mm-outline-soft);border-radius:999px;background:var(--mm-chip-bg);font-size:14px;color:var(--mm-fg);}
#mmg-app #mm-grimoire .mm-moon-pop-link{margin:14px 0 0;text-align:center;font-size:var(--mm-text-small);}
#mmg-app #mm-grimoire .mm-moon-pop-link a{color:var(--mm-primary);text-underline-offset:.2em;text-decoration-thickness:1px;}
/* reminder */
#mmg-app #mm-grimoire .mm-moon-remind{margin:18px 0 0;padding:16px;border:1px dashed var(--mm-outline-soft);border-radius:var(--mm-radius-card);text-align:center;transition:background-color .3s ease,border-color .3s ease;}
#mmg-app #mm-grimoire .mm-moon-remind-text{margin:0 0 12px!important;font-size:var(--mm-text-small)!important;color:var(--mm-muted);}
#mmg-app #mm-grimoire .mm-moon-remind-button{text-transform:none!important;}
#mmg-app #mm-grimoire .mm-moon-remind-button svg{width:17px;height:17px;color:var(--mm-button-text)!important;stroke:var(--mm-button-text);}
#mmg-app #mm-grimoire .mm-moon-remind-set{border-style:solid;background:var(--mm-tint);}
#mmg-app #mm-grimoire .mm-moon-remind-done{display:flex;align-items:center;justify-content:center;gap:10px;margin:0!important;font-size:var(--mm-text-small)!important;color:var(--mm-fg);text-align:left;}
#mmg-app #mm-grimoire .mm-moon-remind-check{flex:none;display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--mm-button-bg);}
#mmg-app #mm-grimoire .mm-moon-remind-check svg{width:16px;height:16px;fill:none;stroke:var(--mm-button-text);stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;color:var(--mm-button-text)!important;}
#mmg-app #mm-grimoire .mm-moon-remind-just .mm-moon-remind-check{animation:mm-pop-in .45s var(--mmg-ease) both;}
#mmg-app #mm-grimoire .mm-moon-remind-just .mm-moon-remind-check path{stroke-dasharray:20;stroke-dashoffset:20;animation:mmg-draw .35s var(--mmg-ease) .25s forwards;}
#mmg-app #mm-grimoire .mm-moon-remind-just .mm-moon-remind-done>span:last-child{animation:mmg-fade-in .4s ease .15s both;}
@keyframes mm-pop-in{0%{transform:scale(.4);opacity:0;}70%{transform:scale(1.12);opacity:1;}100%{transform:none;}}
@media(prefers-reduced-motion:reduce){#mmg-app #mm-grimoire .mm-moon-remind-just :is(.mm-moon-remind-check,.mm-moon-remind-check path,.mm-moon-remind-done>span){animation:none!important;stroke-dashoffset:0;}#mmg-app #mm-grimoire button.mm-daily-next{transition:none;}}
/* facts as tidy rows: label left, value right */
#mmg-app #mm-grimoire .mm-moon-pop-facts{display:block;margin:12px 0 0;}
#mmg-app #mm-grimoire .mm-moon-pop-facts>div{display:flex;justify-content:space-between;align-items:baseline;gap:16px;padding:9px 2px;text-align:left;}
#mmg-app #mm-grimoire .mm-moon-pop-facts dd{margin:0;text-align:right;font-size:17px;}
#mmg-app #mm-grimoire .mm-moon-pop-hero{height:112px;}
#mmg-app #mm-grimoire .mm-moon-pop-image{width:84px;height:84px;}

/* ===== 1.6.20 ===== */
/* Name saved: everything centred, a smaller checkmark, one plain line. */
#mmg-app .mmg-support .mmg-renamed,#mmg-app .mmg-support .mmg-renamed>*{text-align:center!important;margin-left:auto;margin-right:auto;}
#mmg-app .mmg-support .mmg-renamed>h2{padding-left:0!important;padding-right:0!important;}
#mmg-app .mmg-support .mmg-renamed-mark{width:40px;height:40px;margin:2px auto 10px;}
#mmg-app .mmg-magic-check{width:40px;height:40px;stroke-width:2.4;}
#mmg-app .mmg-renamed-star{width:8px;height:8px;}
#mmg-app .mmg-renamed-star.s2,#mmg-app .mmg-renamed-star.s3,#mmg-app .mmg-renamed-star.s4{width:6px;height:6px;}
#mmg-app .mmg-support p.mmg-renamed-line{margin:0 0 22px!important;color:var(--mm-fg);}
#mmg-app .mmg-support p.mmg-renamed-line em{font:italic 400 1.15em/1.2 var(--mm-font-heading);color:var(--mm-title-accent);}

/* Witch Tip papers: the edge gradient is now very soft — barely there. */
#mmg-app #mm-grimoire .mm-tips li{box-shadow:inset 0 0 44px 4px rgba(122,82,44,.11);}

/* Notes paper and the greeting's name paper: no shadows. The name paper now uses the exact Witch Tip paper style. */
#mmg-app #mm-grimoire .mm-notes-paper{filter:none;}
#mmg-app #mm-grimoire .mm-notes-paper textarea#mm-notes-text,#mmg-app #mm-grimoire .mm-notes-paper textarea#mm-notes-text:is(:focus,:focus-visible){box-shadow:none;}
#mmg-app #mm-grimoire .mm-greeting-row{filter:none;}
#mmg-app #mm-grimoire .mm-greeting-sticker{background:var(--mm-chip-bg);box-shadow:inset 0 0 44px 4px rgba(122,82,44,.11);}

/* Next moon popup: a larger night sky holding "In x days", the moon, its date and exact time, the other moon entries
   of that day and the day's most common themes; then the entry link and the reminder. */
#mmg-app #mm-grimoire .mm-moon-sky{margin:14px 0 0;padding:20px 16px 22px;border-radius:var(--mm-radius-card);background:radial-gradient(ellipse at 50% 35%,#25313b 0,#17212a 55%,#090e14 100%);color:#f7efdd;text-align:center;}
#mmg-app #mm-grimoire .mm-moon-sky p{margin:0;}
#mmg-app #mm-grimoire .mm-moon-sky-when{font:400 12px/1.5 var(--mm-font-body)!important;letter-spacing:.14em;text-transform:uppercase;color:#c1d1d2;}
#mmg-app #mm-grimoire .mm-moon-sky .mm-moon-pop-image{display:block;width:104px;height:104px;margin:10px auto 8px;object-fit:contain;filter:drop-shadow(0 0 16px #d5e5e933);}
#mmg-app #mm-grimoire .mm-moon-sky-date{font:400 18px/1.4 var(--mm-font-heading)!important;color:#f7efdd;}
#mmg-app #mm-grimoire .mm-moon-sky-date span:last-child{color:#c1d1d2;}
#mmg-app #mm-grimoire .mm-moon-sky-links{display:flex;flex-wrap:wrap;justify-content:center;gap:8px 18px;margin:16px 0 0;padding-top:14px;border-top:1px solid var(--mm-sky-line);}
#mmg-app #mm-grimoire .mm-moon-sky-link{display:flex;flex-direction:column;align-items:center;gap:4px;min-width:84px;color:#f7efdd!important;text-decoration:none;font:400 15px/1.3 var(--mm-font-heading);border-radius:var(--mm-radius-card);padding:4px 6px;transition:background-color .2s ease;}
#mmg-app #mm-grimoire .mm-moon-sky-link:hover{background:var(--mm-sky-fill);}
#mmg-app #mm-grimoire .mm-moon-sky-link:focus-visible{outline:2px solid #c1d1d2;outline-offset:2px;}
#mmg-app #mm-grimoire .mm-moon-sky-link-image{width:40px;height:40px;object-fit:contain;}
#mmg-app #mm-grimoire .mm-moon-sky-tags{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;margin:14px 0 0;}
#mmg-app #mm-grimoire .mm-moon-sky-tag{padding:3px 12px;border:1px solid var(--mm-sky-line-strong);border-radius:999px;background:var(--mm-sky-fill);font:400 14px/1.5 var(--mm-font-body);color:#dfe8ea;text-transform:none!important;letter-spacing:normal;}
#mmg-app #mm-grimoire .mm-moon-pop-link{margin:16px 0 0;}

/* ===== 1.6.21 ===== */
/* Moon popup: the sky runs from edge to edge of the popup. */
#mmg-app #mm-grimoire .mm-daily-dialog[data-kind^=moon]{--moon-pad:clamp(20px,5vw,28px);padding-left:0;padding-right:0;}
#mmg-app #mm-grimoire .mm-daily-dialog[data-kind^=moon] .mm-popup-scroll{padding-left:var(--moon-pad);padding-right:var(--moon-pad);margin-right:0;}
#mmg-app #mm-grimoire .mm-daily-dialog[data-kind^=moon] .mm-moon-sky{margin-left:calc(-1 * var(--moon-pad));margin-right:calc(-1 * var(--moon-pad));border-radius:0;padding-left:var(--moon-pad);padding-right:var(--moon-pad);}
#mmg-app #mm-grimoire .mm-daily-dialog[data-kind^=moon] .mm-popup-rail{right:4px;}
/* the × stays readable over beige and over the night sky */
#mmg-app #mm-grimoire .mm-daily-dialog[data-kind^=moon] .mmg-support-close{z-index:3;color:#fff!important;mix-blend-mode:difference;background:transparent!important;}
/* moon in its sign and any super/micro moon or eclipse: an even, clean table like the moon card's supporting phases */
#mmg-app #mm-grimoire .mm-moon-sky-links{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;margin:16px auto 0;padding-top:12px;max-width:440px;}
#mmg-app #mm-grimoire .mm-moon-sky-links[data-count="1"]{grid-template-columns:minmax(0,1fr);max-width:220px;}
#mmg-app #mm-grimoire .mm-moon-sky-links:is([data-count="2"],[data-count="4"]){grid-template-columns:repeat(2,minmax(0,1fr));max-width:340px;}
#mmg-app #mm-grimoire .mm-moon-sky-link{min-width:0;padding:6px 8px 8px;border-radius:0;border-left:1px solid var(--mm-sky-line);background:none!important;}
#mmg-app #mm-grimoire .mm-moon-sky-links[data-count="1"] .mm-moon-sky-link,#mmg-app #mm-grimoire .mm-moon-sky-links:is([data-count="2"],[data-count="4"]) .mm-moon-sky-link:nth-child(2n+1),#mmg-app #mm-grimoire .mm-moon-sky-links:not([data-count="1"],[data-count="2"],[data-count="4"]) .mm-moon-sky-link:nth-child(3n+1){border-left:0;}
#mmg-app #mm-grimoire .mm-moon-sky-links:is([data-count="2"],[data-count="4"]) .mm-moon-sky-link:nth-child(n+3),#mmg-app #mm-grimoire .mm-moon-sky-links:not([data-count="1"],[data-count="2"],[data-count="4"]) .mm-moon-sky-link:nth-child(n+4){border-top:1px solid var(--mm-sky-line);}
#mmg-app #mm-grimoire .mm-moon-sky-link-value{display:block;font:400 var(--mm-text-base)/1.3 var(--mm-font-heading);color:#f7efdd;overflow-wrap:anywhere;}
#mmg-app #mm-grimoire a.mm-moon-sky-link:hover .mm-moon-sky-link-value{text-decoration:underline;text-underline-offset:.2em;}
#mmg-app #mm-grimoire .mm-moon-sky-static .mm-moon-sky-link-image{display:block;width:40px;height:40px;}
/* themes: clickable, packed into rows like "Use in spells for" on entry pages */
#mmg-app #mm-grimoire .mm-moon-sky-tags{display:flex;flex-wrap:wrap;justify-content:flex-start;gap:8px;margin:16px auto 0;max-width:460px;}
#mmg-app #mm-grimoire button.mm-moon-sky-tag{appearance:none;margin:0;padding:4px 13px;min-height:34px;border:1px solid var(--mm-sky-line-strong);border-radius:999px;background:var(--mm-sky-fill);box-shadow:none;font:400 15px/1.4 var(--mm-font-body);color:#dfe8ea;text-transform:none!important;letter-spacing:normal;cursor:pointer;transition:background-color .2s ease,border-color .2s ease;}
@media(hover:hover){#mmg-app #mm-grimoire button.mm-moon-sky-tag:hover{background:var(--mm-sky-fill-hover);border-color:var(--mm-sky-line-strong);color:#fff;}}
#mmg-app #mm-grimoire button.mm-moon-sky-tag:focus-visible{outline:2px solid #c1d1d2;outline-offset:2px;}
#mmg-app #mm-grimoire .mm-moon-remind-soon{border-style:solid;}
#mmg-app #mm-grimoire .mm-moon-remind-soon .mm-moon-remind-text{margin:0!important;}

/* The customer's name is written in the handwriting font, the same as the Witch Tips. */
#mmg-app #mm-grimoire .mm-greeting-sticker .mm-greeting-name,#mmg-app #mm-grimoire input#mm-greeting-input{font:500 clamp(30px,8vw,36px)/1.2 var(--mm-font-hand);color:var(--mm-primary);}
#mmg-app .mmg-onboard-welcome .mmg-onboard-name{font:500 clamp(34px,9vw,42px)/1.15 var(--mm-font-hand);color:var(--mm-primary);}
#mmg-app .mmg-support p.mmg-renamed-line em{font:500 1.35em/1 var(--mm-font-hand);color:var(--mm-primary);}

/* Notes: a small checkmark next to "Saved". */
#mmg-app #mm-grimoire .mm-notes-status{display:flex;align-items:center;justify-content:center;gap:6px;}
#mmg-app #mm-grimoire .mm-notes-check{display:grid;place-items:center;width:18px;height:18px;border-radius:50%;background:var(--mm-button-bg);animation:mm-pop-in .4s var(--mmg-ease) both;}
#mmg-app #mm-grimoire .mm-notes-check svg{width:12px;height:12px;fill:none;stroke:var(--mm-button-text);stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round;color:var(--mm-button-text)!important;}
#mmg-app #mm-grimoire .mm-moon-sky-tags{max-width:none;margin-left:0;margin-right:0;}
#mmg-app #mm-grimoire a.mm-moon-sky-link,#mmg-app #mm-grimoire a.mm-moon-sky-link .mm-moon-sky-link-value{text-decoration:none;}
#mmg-app #mm-grimoire a.mm-moon-sky-link:is(:hover,:focus-visible) .mm-moon-sky-link-value{text-decoration:underline;text-underline-offset:.2em;}
/* the moon's date and exact time in one colour */
#mmg-app #mm-grimoire .mm-moon-sky-date span:last-child{color:#f7efdd;}
#mmg-app #mm-grimoire .mm-moon-sky-tag-static{display:inline-block;padding:4px 13px;min-height:34px;box-sizing:border-box;border:1px solid var(--mm-sky-line-strong);border-radius:999px;background:var(--mm-sky-fill);font:400 15px/1.4 var(--mm-font-body);color:#dfe8ea;}
/* Notes: a small check after "Saved" */
#mmg-app #mm-grimoire .mm-notes-status{gap:5px;}
#mmg-app #mm-grimoire .mm-notes-check{width:12px;height:12px;}
#mmg-app #mm-grimoire .mm-notes-check svg{width:9px;height:9px;stroke-width:3;}
/* Notes: the same handwriting size, weight and colour as the Witch Tips; ruled lines follow the line height. */
#mmg-app #mm-grimoire .mm-notes-paper{--mm-note-line:39px;}
#mmg-app #mm-grimoire .mm-notes-paper textarea#mm-notes-text{font:500 26px/var(--mm-note-line) var(--mm-font-hand);color:var(--mm-primary);}
@media(max-width:600px){#mmg-app #mm-grimoire .mm-notes-paper{--mm-note-line:36px;}#mmg-app #mm-grimoire .mm-notes-paper textarea#mm-notes-text{font-size:24px;}}
/* Notes title: same spacing as the Witch Tips title (48/56px above, 16px below). */
#mmg-app #mm-grimoire .mm-notes .mm-notes-paper{margin-top:16px;}

/* 1.6.24: popup × buttons — no border, fill or tap flash on phones (iPhone keeps "hover" after a tap), and no focus
   ring when the popup was opened by touch or mouse. Keyboard users still get the usual focus ring. */
#mmg-app .mmg-support-close,#mmg-app .mmg-support-close:is(:hover,:focus,:active){-webkit-appearance:none;appearance:none;border:0!important;background:transparent!important;box-shadow:none!important;-webkit-tap-highlight-color:transparent;}
#mmg-app[data-mmg-input=pointer] .mmg-support-close:is(:focus,:focus-visible){outline:none!important;}
@media(hover:hover) and (pointer:fine){#mmg-app .mmg-support-close:hover{background:var(--mm-tint-hover)!important;}}
#mmg-app[data-mmg-input=keyboard] .mmg-support-close:focus-visible{outline:2px solid var(--mm-focus-color)!important;outline-offset:2px;}

/* ===== 1.6.25 ===== */
/* Bottom fade: only in Today's Report, exactly two text lines tall so it fades whole lines (26.4px lines on phones,
   29.7px on desktop). No fade in any other popup. */
#mmg-app #mm-grimoire .mm-daily-dialog:not([data-kind=message]) .mm-popup-scroll.mm-has-more{-webkit-mask-image:none;mask-image:none;}
#mmg-app #mm-grimoire .mm-daily-dialog[data-kind=message] .mm-popup-scroll.mm-has-more{-webkit-mask-image:linear-gradient(#000 calc(100% - 53px),transparent);mask-image:linear-gradient(#000 calc(100% - 53px),transparent);}
@media(min-width:601px){#mmg-app #mm-grimoire .mm-daily-dialog[data-kind=message] .mm-popup-scroll.mm-has-more{-webkit-mask-image:linear-gradient(#000 calc(100% - 60px),transparent);mask-image:linear-gradient(#000 calc(100% - 60px),transparent);}}
/* Moon popups: no beige band at the top. The content scrolls right up to the popup's top edge and the × floats over it
   (it switches light/dark automatically), so it never sits on an awkward seam. */
#mmg-app #mm-grimoire .mm-daily-dialog[data-kind^=moon]{padding-top:0;}
#mmg-app #mm-grimoire .mm-daily-dialog[data-kind^=moon] .mm-popup-scroll{padding-top:clamp(22px,5vw,28px);max-height:calc(min(80svh,740px) - 28px);}
#mmg-app #mm-grimoire .mm-daily-dialog[data-kind^=moon] .mm-popup-rail{top:28px;}
/* Moon popups: no beige band at the bottom either — the content scrolls to both edges; the breathing room lives inside. */
#mmg-app #mm-grimoire .mm-daily-dialog[data-kind^=moon]{padding-bottom:0;}
#mmg-app #mm-grimoire .mm-daily-dialog[data-kind^=moon] .mm-popup-scroll{padding-bottom:clamp(22px,5vw,28px);max-height:min(80svh,740px);box-sizing:border-box;}
#mmg-app #mm-grimoire .mm-daily-dialog[data-kind^=moon] .mm-popup-rail{bottom:28px;}
/* One corner radius for every rounded container — cards, the daily tracker boxes, the moon sky, the welcome and login
   cards, the filter panel and all popups: 12px (between the old 8px cards and 16–18px popups). Buttons, fields and
   pill tags keep their own shapes. */
#mmg-app{--mm-radius-card:12px;--mm-radius-hero:12px;--mm-radius-panel:12px;--mm-radius-gate:12px;}
#mmg-app #mm-grimoire .mm-daily-dialog,#mmg-app #mmg-support,#mmg-app .mmg-support{border-radius:12px;}
/* Moon popups: keep the edge-to-edge sky inside the rounded corners while scrolling (Safari doesn't always clip
   scrolling content to a rounded parent, so clip the popup and its scroll area explicitly). */
#mmg-app #mm-grimoire .mm-daily-dialog[data-kind^=moon]{clip-path:inset(0 round 12px);}
#mmg-app #mm-grimoire .mm-daily-dialog[data-kind^=moon] .mm-popup-scroll{border-radius:11px;overflow-x:hidden;-webkit-mask-image:-webkit-radial-gradient(white,black);}
/* Today's Report: more room on both sides of the text, and the scroll indicator moved in from the torn paper edge. */
#mmg-app #mm-grimoire .mm-daily-dialog[data-kind=message] .mm-daily-message-scroll{padding-left:clamp(10px,3vw,18px);padding-right:clamp(10px,3vw,18px);}
#mmg-app #mm-grimoire .mm-daily-dialog[data-kind=message] .mm-popup-rail{right:clamp(14px,3.5vw,18px);}
#mmg-app #mm-grimoire .mm-daily-dialog[data-kind=message] .mm-daily-message-scroll{padding-left:clamp(16px,4.5vw,24px);padding-right:clamp(16px,4.5vw,24px);}
/* Popup scroll indicators: a soft see-through taupe that reads gently on beige paper and on the night sky. */
#mmg-app #mm-grimoire .mm-popup-rail span,#mmg-app #mmg-support .mm-popup-rail span{background:rgba(140,120,100,.42);}
/* Today's Report: the text scrolls all the way down to the torn bottom edge and fades out into it (about 1½ lines),
   so it reads as "the page continues"; the fade disappears once you reach the end. */
#mmg-app #mm-grimoire .mm-daily-dialog[data-kind=message]{padding-bottom:0;}
#mmg-app #mm-grimoire .mm-daily-dialog[data-kind=message] .mm-popup-scroll{max-height:calc(min(80svh,740px) - 40px);padding-bottom:40px;box-sizing:border-box;}
#mmg-app #mm-grimoire .mm-daily-dialog[data-kind=message] .mm-popup-rail{bottom:24px;}
#mmg-app #mm-grimoire .mm-daily-dialog[data-kind=message] .mm-popup-scroll.mm-has-more{-webkit-mask-image:linear-gradient(#000 calc(100% - 46px),transparent calc(100% - 4px));mask-image:linear-gradient(#000 calc(100% - 46px),transparent calc(100% - 4px));}
@media(min-width:601px){#mmg-app #mm-grimoire .mm-daily-dialog[data-kind=message] .mm-popup-scroll.mm-has-more{-webkit-mask-image:linear-gradient(#000 calc(100% - 50px),transparent calc(100% - 4px));mask-image:linear-gradient(#000 calc(100% - 50px),transparent calc(100% - 4px));}}

/* ===== 1.6.31 ===== */
/* Every daily popup (Today's Report, Today's Witch Tip, About Today and the moons) now shares one design:
   the regular beige popup with a small kicker above a title, content scrolling edge to edge, rounded corners. */
#mmg-app #mm-grimoire .mm-daily-dialog{--moon-pad:clamp(20px,5vw,28px);padding:0;clip-path:inset(0 round 12px);}
#mmg-app #mm-grimoire .mm-daily-dialog:is([data-kind=tip],[data-kind=message]){border:1px solid var(--mm-border);border-radius:12px;background:var(--mm-card);box-shadow:0 18px 70px rgba(58,47,38,.2);isolation:auto;padding:0;}
#mmg-app #mm-grimoire .mm-daily-dialog:is([data-kind=tip],[data-kind=message])::before{content:none;}
#mmg-app #mm-grimoire .mm-daily-dialog .mm-popup-scroll{padding:clamp(22px,5vw,28px) var(--moon-pad);max-height:min(80svh,740px);margin-right:0;box-sizing:border-box;border-radius:11px;overflow-x:hidden;}
#mmg-app #mm-grimoire .mm-daily-dialog .mm-popup-rail{right:4px;top:28px;bottom:28px;}
#mmg-app #mm-grimoire .mm-daily-dialog #mm-daily-dialog-title,#mmg-app #mm-grimoire .mm-daily-dialog:is([data-kind=tip],[data-kind=message]) #mm-daily-dialog-title{margin:0 32px 18px 0;width:auto;text-align:left;}
#mmg-app #mm-grimoire .mm-daily-dialog .mm-moon-pop-kicker{margin:0 40px 2px 0;}
#mmg-app #mm-grimoire .mm-daily-dialog[data-kind=message] :is(h2,p){text-align:left;}
#mmg-app #mm-grimoire .mm-daily-dialog[data-kind=message] .mm-daily-message-scroll{padding:0;}
#mmg-app #mm-grimoire .mm-daily-dialog[data-kind=message] .mm-daily-message-text{margin:0 0 14px;}
#mmg-app #mm-grimoire .mm-daily-dialog[data-kind=message] .mm-popup-scroll{max-height:min(80svh,740px);padding-bottom:clamp(22px,5vw,28px);}
/* Witch Tip paper (popup and Grimoire): the brown torn paper of the Witch Tips with its featured image. */
#mmg-app .mm-tip-paper{margin:4px 0 0;padding:22px clamp(20px,5vw,30px) 26px;background:var(--mm-chip-bg);clip-path:var(--mm-torn-shape);box-shadow:inset 0 0 44px 4px rgba(122,82,44,.11);text-align:center;}
#mmg-app .mm-tip-paper-image{display:block;}
#mmg-app .mm-tip-paper-image :is(img,span){display:block;width:72px;height:72px;margin:2px auto 10px;object-fit:contain;}
#mmg-app .mm-tip-paper-text{font:500 26px/1.5 var(--mm-font-hand);color:var(--mm-primary);overflow-wrap:anywhere;}
#mmg-app .mm-tip-paper-text p{margin:0;font:inherit;color:inherit;}
@media(max-width:600px){#mmg-app .mm-tip-paper-text{font-size:24px;}}
#mmg-app #mm-grimoire .mm-daily-dialog[data-kind=tip] .mm-moon-pop-link{margin-top:18px;text-align:center;}
/* "Save to Grimoire" */
#mmg-app .mm-tip-keep-row{margin:14px 0 0;text-align:center;}
#mmg-app .mm-keep-tip,#mmg-app .mm-keep-tip:is(:hover,:focus,:active){display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;margin:0;padding:10px 20px;border:1px solid var(--mm-outline-soft)!important;border-radius:var(--mm-radius-button);background:transparent!important;color:var(--mm-primary)!important;box-shadow:none!important;font:inherit;font-size:var(--mm-text-small);text-transform:none!important;letter-spacing:normal;cursor:pointer;transition:background-color .2s ease,border-color .2s ease;}
@media(hover:hover){#mmg-app .mm-keep-tip:hover{background:var(--mm-tint)!important;border-color:var(--mm-border)!important;}}
#mmg-app .mm-keep-tip svg{width:17px;height:17px;color:var(--mm-primary)!important;}
#mmg-app .mm-keep-tip.mm-keep-tip-saved,#mmg-app .mm-keep-tip.mm-keep-tip-saved:is(:hover,:focus,:active){background:var(--mm-button-bg)!important;border-color:var(--mm-button-bg)!important;color:var(--mm-button-text)!important;}
#mmg-app .mm-keep-tip.mm-keep-tip-saved svg{color:var(--mm-button-text)!important;fill:var(--mm-button-text);}
#mmg-app .mm-keep-tip:focus-visible{outline:2px solid var(--mm-focus-color);outline-offset:3px;}
#mmg-app .mm-keep-tip.mm-keep-tip-pop svg{animation:mm-pop-in .4s var(--mmg-ease) both;}

/* Quick fixes: the greeting question in the normal black text colour; bigger Collection and Grimoire icons. */
#mmg-app #mm-grimoire .mm-brand .mm-greeting-sub{color:var(--mm-fg);}
#mmg-app #mm-grimoire .mm-nav-icon{width:30px;height:30px;}
#mmg-app #mm-grimoire .mm-nav-icon svg{width:29px;height:29px;}
#mmg-app #mm-grimoire [data-nav="grimoire"] .mm-nav-icon svg{width:33px;height:33px;}

/* Pages: Today shows the greeting and the daily tracker; the Collection shows search, filters and cards; your
   Grimoire shows the scrapbook. (The collection's old "Saved" tab now lives in the Grimoire.) */
#mmg-app #mm-grimoire:not(.mm-page-home) .mm-daily-tracker,#mmg-app #mm-grimoire:not(.mm-page-home) .mm-greeting{display:none!important;}
#mmg-app #mm-grimoire:is(.mm-page-home,.mm-page-board,.mm-page-profile):not(.mm-detail-view) #mm-content{display:none;}
#mmg-app #mm-grimoire.mm-detail-view #mm-board{display:none;}
#mmg-app #mm-grimoire .mm-view-tabs{display:none;}
#mmg-app #mm-grimoire.mm-page-collection .mm-toolbar{margin-top:8px;}

/* ---------- the Grimoire scrapbook ---------- */
#mmg-app #mm-grimoire .mm-board-page{padding:4px 0 24px;}
#mmg-app #mm-grimoire .mm-board-top{display:flex;flex-direction:column;align-items:center;gap:10px;margin:8px 0 26px;text-align:center;}
#mmg-app #mm-grimoire .mm-board-filters{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;}
#mmg-app #mm-grimoire .mm-board-filter{appearance:none;display:inline-flex;align-items:center;gap:6px;min-height:38px;margin:0;padding:6px 14px;border:var(--mm-border-width) solid var(--mm-outline-soft)!important;border-radius:999px;background:transparent!important;box-shadow:none!important;color:var(--mm-fg)!important;font:400 15px/1.3 var(--mm-font-body);text-transform:none!important;letter-spacing:normal;cursor:pointer;}
#mmg-app #mm-grimoire .mm-board-filter span{color:var(--mm-muted);font-size:13px;}
#mmg-app #mm-grimoire .mm-board-filter[aria-pressed="true"]{background:var(--mm-chip-bg)!important;border-color:var(--mm-border)!important;}
#mmg-app #mm-grimoire .mm-board-filter:disabled{opacity:.45;cursor:default;}
#mmg-app #mm-grimoire .mm-board-filter:focus-visible{outline:2px solid var(--mm-focus-color);outline-offset:2px;}
#mmg-app #mm-grimoire .mm-board-hint{margin:0;font:italic 400 var(--mm-text-small)/1.5 var(--mm-font-body);color:var(--mm-muted);}
/* masonry: every keepsake keeps its place in your order, columns fill like a scrapbook page */
#mmg-app #mm-grimoire .mm-board-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:16px;grid-auto-rows:6px;align-items:start;padding:12px 2px 0;}
@media(min-width:700px){#mmg-app #mm-grimoire .mm-board-grid{grid-template-columns:repeat(auto-fill,minmax(200px,1fr));column-gap:26px;}}
#mmg-app #mm-grimoire .mm-piece{position:relative;min-width:0;transform:rotate(var(--tilt));transform-origin:50% 40%;transition:transform .3s cubic-bezier(.2,.7,.3,1),opacity .22s ease;cursor:grab;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;touch-action:manipulation;animation:mm-piece-in .45s cubic-bezier(.2,.7,.3,1) both;}
#mmg-app #mm-grimoire .mm-piece img{-webkit-user-drag:none;pointer-events:none;}
@keyframes mm-piece-in{from{opacity:0;transform:translateY(10px) rotate(var(--tilt)) scale(.97);}to{opacity:1;transform:rotate(var(--tilt));}}
@media(hover:hover){#mmg-app #mm-grimoire .mm-piece:hover{transform:rotate(0deg) translateY(-3px);}}
#mmg-app #mm-grimoire .mm-piece:focus-visible{outline:2px dashed var(--mm-focus-color);outline-offset:6px;}
#mmg-app #mm-grimoire .mm-piece.mm-piece-dragging{z-index:30;cursor:grabbing;transition:transform .2s ease;transform:rotate(0deg) scale(1.04);}
#mmg-app #mm-grimoire .mm-piece.mm-piece-lifted{transform:rotate(0deg) scale(1.06);}
#mmg-app #mm-grimoire .mm-piece.mm-piece-leaving{opacity:0;transform:rotate(var(--tilt)) scale(.9);}
/* tape */
#mmg-app #mm-grimoire .mm-tape{position:absolute;z-index:2;top:-10px;left:50%;width:78px;height:22px;transform:translateX(-50%) rotate(var(--tape-tilt));background:rgba(214,196,160,.62);clip-path:polygon(3% 0,97% 0,100% 18%,96% 36%,100% 55%,97% 76%,100% 100%,3% 100%,0 80%,4% 60%,0 40%,4% 22%);pointer-events:none;}
#mmg-app #mm-grimoire .mm-tape-1{left:10px;top:-8px;width:60px;transform:rotate(calc(var(--tape-tilt) - 30deg));}
#mmg-app #mm-grimoire .mm-tape-2{left:auto;right:6px;top:-8px;width:60px;transform:rotate(calc(var(--tape-tilt) + 32deg));}
/* saved entry: a little polaroid */
#mmg-app #mm-grimoire .mm-polaroid{display:block;padding:10px 10px 12px;background:#fffdf8;border:1px solid rgba(140,117,93,.22);color:var(--mm-fg);text-align:center;text-decoration:none;}
#mmg-app #mm-grimoire .mm-polaroid-photo{display:grid;place-items:center;aspect-ratio:1/1;background:var(--mm-chip-bg);}
#mmg-app #mm-grimoire .mm-polaroid-photo img,#mmg-app #mm-grimoire .mm-polaroid-photo .mm-piece-noimage{width:62%;height:62%;object-fit:contain;display:grid;place-items:center;font-size:28px;color:var(--mm-primary);}
#mmg-app #mm-grimoire .mm-polaroid-cat{display:block;margin-top:10px;font:400 10px/1.4 var(--mm-font-body);letter-spacing:.14em;text-transform:uppercase;color:var(--mm-muted);}
#mmg-app #mm-grimoire .mm-polaroid-name{display:block;margin-top:1px;font:500 25px/1.15 var(--mm-font-hand);color:var(--mm-primary);overflow-wrap:anywhere;}
/* saved Witch Tip: the brown torn paper with its featured image */
#mmg-app #mm-grimoire .mm-piece-t .mm-tip-paper{margin:0;padding:16px 14px 18px;}
#mmg-app #mm-grimoire .mm-piece-t .mm-tip-paper-image :is(img,span){width:46px;height:46px;margin:0 auto 6px;}
#mmg-app #mm-grimoire .mm-piece-t .mm-tip-paper-text{font-size:22px;line-height:1.35;}
#mmg-app #mm-grimoire .mm-piece-from{display:block;margin-top:6px;text-align:center;font:italic 400 13px/1.4 var(--mm-font-body);color:var(--mm-muted);text-decoration:none;}
#mmg-app #mm-grimoire a.mm-piece-from:hover{text-decoration:underline;text-underline-offset:.2em;}
/* note: a torn scrap of notebook paper */
#mmg-app #mm-grimoire .mm-note-scrap{--line:30px;padding:16px 14px 16px 30px;background-color:#fffdf8;background-image:linear-gradient(90deg,transparent 21px,rgba(196,110,96,.28) 21px,rgba(196,110,96,.28) 22px,transparent 22px),repeating-linear-gradient(180deg,transparent 0,transparent calc(var(--line) - 1px),rgba(120,146,176,.22) calc(var(--line) - 1px),rgba(120,146,176,.22) var(--line));background-position:0 0,0 12px;clip-path:var(--mm-torn-shape);}
#mmg-app #mm-grimoire .mm-note-scrap-title{margin:0 0 2px;font:400 11px/18px var(--mm-font-body);letter-spacing:.12em;text-transform:uppercase;color:var(--mm-muted);}
#mmg-app #mm-grimoire .mm-note-scrap-title a{color:var(--mm-primary);text-decoration:none;}
#mmg-app #mm-grimoire .mm-note-scrap-title a:hover{text-decoration:underline;text-underline-offset:.2em;}
#mmg-app #mm-grimoire .mm-note-scrap-text{margin:0;font:500 21px/var(--line) var(--mm-font-hand);color:var(--mm-primary);overflow-wrap:anywhere;}
/* remove */
#mmg-app #mm-grimoire .mm-piece-remove,#mmg-app #mm-grimoire .mm-piece-remove:is(:hover,:focus,:active){position:absolute;z-index:3;top:-8px;right:-8px;display:grid;place-items:center;width:30px;height:30px;min-height:0;margin:0;padding:0;border:1px solid var(--mm-outline-soft)!important;border-radius:50%;background:var(--mm-card)!important;box-shadow:none!important;color:var(--mm-primary)!important;font:400 18px/1 var(--mm-font-body);cursor:pointer;opacity:0;transition:opacity .2s ease;}
#mmg-app #mm-grimoire .mm-piece:is(:hover,:focus-within) .mm-piece-remove{opacity:1;}
@media(hover:none){#mmg-app #mm-grimoire .mm-piece-remove{opacity:.85;}}
#mmg-app #mm-grimoire .mm-piece-remove:focus-visible{opacity:1;outline:2px solid var(--mm-focus-color);outline-offset:2px;}
/* undo toast */
#mmg-app #mm-grimoire .mm-board-toast{position:fixed;left:50%;bottom:calc(112px + env(safe-area-inset-bottom,0px));z-index:950;display:flex;align-items:center;gap:14px;margin:0;padding:10px 18px;border-radius:999px;background:var(--mm-button-bg);color:var(--mm-button-text);font:400 var(--mm-text-small)/1.4 var(--mm-font-body);transform:translate(-50%,12px);opacity:0;pointer-events:none;transition:opacity .25s ease,transform .3s cubic-bezier(.2,.7,.3,1);}
#mmg-app #mm-grimoire .mm-board-toast.mm-board-toast-on{opacity:1;transform:translate(-50%,0);pointer-events:auto;}
#mmg-app #mm-grimoire .mm-board-toast button{appearance:none;margin:0;padding:4px 2px;min-height:0;border:0;background:none;box-shadow:none;color:var(--mm-button-text);font:inherit;text-decoration:underline;text-underline-offset:.2em;text-transform:none;cursor:pointer;}
/* empty */
#mmg-app #mm-grimoire .mm-board-empty{display:flex;flex-direction:column;align-items:center;gap:22px;max-width:420px;margin:10px auto 30px;text-align:left;}
#mmg-app #mm-grimoire .mm-board-empty .mm-note-scrap{transform:rotate(-1.5deg);width:100%;box-sizing:border-box;}
#mmg-app #mm-grimoire .mm-board-empty .mm-note-scrap-text{font-size:23px;}
/* saving a Witch Tip right on an entry page */
#mmg-app #mm-grimoire .mm-tips li{position:relative;}
#mmg-app #mm-grimoire .mm-tip-save,#mmg-app #mm-grimoire .mm-tip-save:is(:hover,:focus,:active){position:absolute;top:10px;right:12px;display:grid;place-items:center;width:34px;height:34px;min-height:0;margin:0;padding:0;border:0!important;border-radius:50%;background:transparent!important;box-shadow:none!important;cursor:pointer;opacity:.55;transition:opacity .2s ease;}
#mmg-app #mm-grimoire .mm-tip-save svg{width:17px;height:17px;}
@media(hover:hover){#mmg-app #mm-grimoire .mm-tip-save:hover{opacity:1;}}
#mmg-app #mm-grimoire .mm-tip-save.mm-keep-tip-saved{opacity:1;}
#mmg-app #mm-grimoire .mm-tip-save.mm-keep-tip-saved svg{fill:currentColor;}
#mmg-app #mm-grimoire .mm-tip-save:focus-visible{opacity:1;outline:2px solid var(--mm-focus-color);outline-offset:1px;}
#mmg-app #mm-grimoire .mm-tip-save.mm-keep-tip-pop svg{animation:mm-pop-in .4s var(--mmg-ease) both;}
@media(prefers-reduced-motion:reduce){#mmg-app #mm-grimoire .mm-piece{animation:none;transition:none;}#mmg-app #mm-grimoire .mm-board-toast{transition:none;}}
#mmg-app #mm-grimoire .mm-piece.mm-piece-dragging{pointer-events:none;}
#mmg-app #mm-grimoire .mm-piece a{-webkit-user-drag:none;}
#mmg-app #mm-grimoire .mm-note-scrap-title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;height:18px;}
#mmg-app #mm-grimoire .mm-note-scrap{background-position:0 0,0 36px;}
#mmg-app #mm-grimoire .mm-board-empty .mm-note-scrap{background-position:0 0,0 36px;}
#mmg-app #mm-grimoire .mm-board-empty .mm-action{text-decoration:none;}

/* ===== 1.6.32 ===== */
/* Today's Witch Tip popup: back to the torn paper popup, now in the brown Witch Tip paper colour, with a simple
   save button under the tip. */
#mmg-app #mm-grimoire .mm-daily-dialog[data-kind=tip]{border:0;border-radius:0;background:transparent;box-shadow:none;clip-path:none;isolation:isolate;padding:48px clamp(20px,5vw,30px) 30px;}
#mmg-app #mm-grimoire .mm-daily-dialog[data-kind=tip]::before{content:'';position:absolute;inset:0;z-index:0;background:var(--mm-chip-bg);clip-path:var(--mm-torn-shape);box-shadow:inset 0 0 44px 4px rgba(122,82,44,.11);pointer-events:none;}
#mmg-app #mm-grimoire .mm-daily-dialog[data-kind=tip] .mm-popup-scroll{padding:0;max-height:calc(min(80svh,740px) - 78px);border-radius:0;}
#mmg-app #mm-grimoire .mm-daily-dialog[data-kind=tip] #mm-daily-dialog-title{margin:0 0 12px;text-align:center;width:100%;}
#mmg-app #mm-grimoire .mm-daily-dialog[data-kind=tip] .mm-popup-rail{top:48px;bottom:30px;right:14px;}
#mmg-app #mm-grimoire .mm-daily-dialog[data-kind=tip] .mm-tips li{background:transparent;box-shadow:none;clip-path:none;}
#mmg-app #mm-grimoire .mm-daily-dialog[data-kind=tip] .mm-tip-keep-row{margin:6px 0 2px;}
#mmg-app #mm-grimoire .mm-daily-dialog[data-kind=tip] .mm-keep-tip:not(.mm-keep-tip-saved){background:rgba(255,253,248,.45)!important;}

/* Grimoire: saved entries as die-cut stickers — a white sticker edge, the entry's image, its name in handwriting and
   a short excerpt, with one corner gently peeling up. */
#mmg-app #mm-grimoire .mm-sticker{position:relative;display:flex;flex-direction:column;align-items:center;padding:18px 14px 20px;border:6px solid #fffdf8;border-radius:20px;outline:1px solid rgba(140,117,93,.22);background:#f3e7d0;color:var(--mm-fg);text-align:center;text-decoration:none;clip-path:polygon(0 0,100% 0,100% calc(100% - 26px),calc(100% - 26px) 100%,0 100%);}
#mmg-app #mm-grimoire .mm-sticker::after{content:'';position:absolute;right:-6px;bottom:-6px;width:32px;height:32px;background:linear-gradient(315deg,transparent 50%,#e9dcc3 50%,#fffdf8 78%);border-top-left-radius:6px;pointer-events:none;}
#mmg-app #mm-grimoire .mm-sticker-image{display:grid;place-items:center;width:64px;height:64px;}
#mmg-app #mm-grimoire .mm-sticker-image :is(img,.mm-piece-noimage){width:64px;height:64px;object-fit:contain;display:grid;place-items:center;font-size:26px;color:var(--mm-primary);}
#mmg-app #mm-grimoire .mm-sticker-cat{display:block;margin-top:10px;font:400 10px/1.4 var(--mm-font-body);letter-spacing:.14em;text-transform:uppercase;color:var(--mm-muted);}
#mmg-app #mm-grimoire .mm-sticker-name{display:block;margin-top:1px;font:500 26px/1.15 var(--mm-font-hand);color:var(--mm-primary);overflow-wrap:anywhere;}
#mmg-app #mm-grimoire .mm-sticker-excerpt{display:-webkit-box;margin-top:6px;font:400 13.5px/1.45 var(--mm-font-body);color:var(--mm-muted);-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden;}
#mmg-app #mm-grimoire .mm-piece-p .mm-piece-remove{top:-6px;right:-6px;}

/* 1.6.33: board entries styled like Collection posts, bigger board text, hold + bin, note confirm, compact page titles */
#mmg-app #mm-grimoire .mm-sticker{position:relative;display:flex;flex-direction:column;align-items:center;padding:20px 16px 22px;border:var(--mm-border-width) solid var(--mm-border);border-radius:12px;outline:0;background:linear-gradient(180deg,var(--mm-card-gradient-top),var(--mm-card-gradient-bottom));color:var(--mm-fg);text-align:center;text-decoration:none;clip-path:none;}
#mmg-app #mm-grimoire .mm-sticker::after{content:none;}
#mmg-app #mm-grimoire .mm-sticker-image,#mmg-app #mm-grimoire .mm-sticker-image :is(img,.mm-piece-noimage){width:84px;height:84px;}
#mmg-app #mm-grimoire .mm-sticker-name{margin-top:10px;font:400 var(--mm-text-card)/1.2 var(--mm-font-display);color:var(--mm-title-accent);}
#mmg-app #mm-grimoire .mm-sticker-excerpt{margin-top:8px;font:400 var(--mm-text-small)/1.5 var(--mm-font-body);color:var(--mm-muted);-webkit-line-clamp:5;}
#mmg-app #mm-grimoire .mm-piece-p .mm-piece-remove{top:-8px;right:-8px;}
#mmg-app #mm-grimoire .mm-piece-t .mm-tip-paper-text{font-size:24px;}
#mmg-app #mm-grimoire .mm-piece-t .mm-tip-paper-image :is(img,span){width:56px;height:56px;}
#mmg-app #mm-grimoire .mm-piece-from{font-size:var(--mm-text-small);}
#mmg-app #mm-grimoire .mm-note-scrap{--line:34px;}
#mmg-app #mm-grimoire .mm-note-scrap-title{height:auto;margin:0 0 4px;font:400 var(--mm-text-small)/1.5 var(--mm-font-body);letter-spacing:0;text-transform:none;}
#mmg-app #mm-grimoire .mm-note-scrap-text{font-size:24px;}
@media(max-width:600px){#mmg-app #mm-grimoire .mm-sticker-name{font-size:24px;}#mmg-app #mm-grimoire .mm-sticker{padding:18px 12px 20px;}#mmg-app #mm-grimoire .mm-sticker-image,#mmg-app #mm-grimoire .mm-sticker-image :is(img,.mm-piece-noimage){width:76px;height:76px;}#mmg-app #mm-grimoire :is(.mm-piece-t .mm-tip-paper-text,.mm-note-scrap-text){font-size:22px;}#mmg-app #mm-grimoire .mm-note-scrap{--line:32px;}}
/* holding a piece */
#mmg-app #mm-grimoire .mm-board-grid .mm-piece{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;}
#mmg-app #mm-grimoire .mm-piece.mm-piece-pressing{transform:rotate(var(--tilt)) scale(.96);transition:transform .32s ease-out;}
@keyframes mm-hold-wiggle{0%,100%{rotate:-1.2deg;}50%{rotate:1.2deg;}}
#mmg-app #mm-grimoire .mm-piece.mm-piece-dragging{transform:scale(1.06);outline:2px dashed var(--mm-border);outline-offset:6px;border-radius:12px;}
#mmg-app #mm-grimoire .mm-piece.mm-piece-lifted{transform:scale(1.08);animation:mm-hold-wiggle .5s ease-in-out .2s infinite;}
#mmg-app #mm-grimoire .mm-board-dragging .mm-piece:not(.mm-piece-dragging){opacity:.5;}
#mmg-app #mm-grimoire .mm-piece.mm-piece-trashing{transform:scale(.7);opacity:.75;outline-color:#a0463a;animation:none;}
@media(hover:none){#mmg-app #mm-grimoire .mm-piece-remove{display:none;}}
/* the bin */
#mmg-app #mm-grimoire .mm-board-trash{position:fixed;left:0;right:0;bottom:0;z-index:960;display:flex;align-items:center;justify-content:center;gap:10px;height:calc(96px + env(safe-area-inset-bottom,0px));padding-bottom:env(safe-area-inset-bottom,0px);background:var(--mm-card);border-top:var(--mm-border-width) solid var(--mm-outline-soft);color:var(--mm-fg);font:400 var(--mm-text-base)/1.3 var(--mm-font-body);transform:translateY(105%);transition:transform .3s cubic-bezier(.2,.7,.3,1),background-color .2s ease,color .2s ease;pointer-events:none;}
#mmg-app #mm-grimoire .mm-board-trash svg{width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;transition:transform .2s ease;}
#mmg-app #mm-grimoire .mm-board-dragging .mm-board-trash{transform:none;}
#mmg-app #mm-grimoire .mm-board-trash-over .mm-board-trash{background:#f3dcd3;color:#8a3226;}
#mmg-app #mm-grimoire .mm-board-trash-over .mm-board-trash svg{transform:scale(1.18) rotate(-6deg);}
/* delete-note confirmation */
#mmg-app #mm-grimoire .mm-confirm{inset:0;margin:auto;width:calc(100% - 32px);max-width:420px;padding:28px 24px 22px;border:1px solid var(--mm-border);border-radius:12px;background:var(--mm-card);color:var(--mm-fg);box-shadow:none;text-align:center;}
#mmg-app #mm-grimoire .mm-confirm::backdrop{background:rgba(40,30,22,.45);}
#mmg-app #mm-grimoire .mm-confirm h2{margin:0 0 10px;font:400 var(--mm-text-card)/1.2 var(--mm-font-heading);color:var(--mm-title-accent);}
#mmg-app #mm-grimoire .mm-confirm p{margin:0;font:400 var(--mm-text-base)/1.5 var(--mm-font-body);color:var(--mm-fg);}
#mmg-app #mm-grimoire .mm-confirm-skip{display:inline-flex;align-items:center;gap:8px;margin:16px 0 0;font:400 var(--mm-text-small)/1.4 var(--mm-font-body);color:var(--mm-muted);cursor:pointer;}
#mmg-app #mm-grimoire .mm-confirm-skip input{width:18px;height:18px;margin:0;accent-color:var(--mm-button-bg);}
#mmg-app #mm-grimoire .mm-confirm-actions{display:flex;gap:10px;justify-content:center;margin-top:20px;}
#mmg-app #mm-grimoire .mm-confirm-actions button{flex:1;min-height:44px;margin:0;padding:10px 16px;border-radius:12px;box-shadow:none;font:400 var(--mm-text-base)/1.2 var(--mm-font-body);text-transform:none;letter-spacing:0;cursor:pointer;}
#mmg-app #mm-grimoire .mm-confirm-cancel{border:1px solid var(--mm-border);background:transparent;color:var(--mm-fg);}
#mmg-app #mm-grimoire .mm-confirm-cancel:hover{background:var(--mm-chip-bg);}
#mmg-app #mm-grimoire .mm-confirm-delete{border:1px solid #8a3226;background:#8a3226;color:#fff;}
#mmg-app #mm-grimoire .mm-confirm-delete:hover{background:#74291f;}
/* reminder cancel */
#mmg-app #mm-grimoire .mm-moon-remind-cancel,#mmg-app #mm-grimoire .mm-moon-remind-cancel:is(:hover,:focus){display:inline-block;margin:8px 0 0;padding:4px 6px;min-height:0;border:0;background:none;box-shadow:none;color:var(--mm-muted);font:400 var(--mm-text-small)/1.4 var(--mm-font-body);text-decoration:underline;text-underline-offset:.2em;text-transform:none;letter-spacing:0;cursor:pointer;}
#mmg-app #mm-grimoire .mm-moon-remind-cancel:hover{color:var(--mm-fg);}
/* compact page titles on Collection and Grimoire */
#mmg-app #mm-grimoire:is(.mm-page-collection,.mm-page-board,.mm-page-profile):not(.mm-detail-view) .mm-brand h1{display:flex;align-items:baseline;justify-content:center;gap:.35em;white-space:nowrap;font-size:min(32px,8cqi);margin-inline:auto;}
#mmg-app #mm-grimoire:is(.mm-page-collection,.mm-page-board,.mm-page-profile):not(.mm-detail-view) .mm-brand h1 .mm-title-prefix{display:inline;font-size:.9em;line-height:1.1;}
#mmg-app #mm-grimoire:is(.mm-page-collection,.mm-page-board,.mm-page-profile):not(.mm-detail-view) .mm-brand h1 em{display:inline;}
@media(prefers-reduced-motion:reduce){#mmg-app #mm-grimoire .mm-piece.mm-piece-lifted{animation:none;}#mmg-app #mm-grimoire .mm-board-trash{transition:none;}}
#mmg-app #mm-grimoire .mm-board-trash{visibility:hidden;}
#mmg-app #mm-grimoire .mm-board-dragging .mm-board-trash{visibility:visible;}
#mmg-app #mm-grimoire .mm-board-dragging .mm-piece:not(.mm-piece-dragging){opacity:1;filter:opacity(.5);transition:filter .25s ease;}
#mmg-app #mm-grimoire .mm-piece.mm-piece-dragging{z-index:1000;}

/* 1.6.34: minimal save + share icons under Today's Witch Tip */
#mmg-app #mm-grimoire .mm-daily-dialog[data-kind=tip] .mm-tip-actions{position:relative;z-index:1;display:flex;justify-content:center;gap:6px;margin:14px 0 0;}
#mmg-app #mm-grimoire .mm-tip-icon,#mmg-app #mm-grimoire .mm-tip-icon:is(:hover,:focus,:active){position:relative;display:grid;place-items:center;width:44px;height:44px;min-height:44px;margin:0;padding:0;border:0!important;border-radius:12px;background:transparent!important;box-shadow:none!important;color:#000!important;cursor:pointer;transition:background-color .2s ease;}
@media(hover:hover){#mmg-app #mm-grimoire .mm-tip-icon:hover{background:rgba(255,253,248,.5)!important;}}
#mmg-app #mm-grimoire .mm-tip-icon svg{width:22px;height:22px;position:static;transform:none;margin:0;pointer-events:none;}
#mmg-app #mm-grimoire .mm-tip-icon.mm-keep-tip-saved svg{fill:currentColor;}
#mmg-app #mm-grimoire .mm-tip-icon.mm-keep-tip-pop svg{animation:mm-pop-in .4s var(--mmg-ease) both;}
#mmg-app #mm-grimoire .mm-tip-icon:focus-visible{outline:2px solid var(--mm-focus-color);outline-offset:1px;}
#mmg-app #mm-grimoire .mm-tip-share-status{position:relative;z-index:1;min-height:0;margin:0;text-align:center;font:400 var(--mm-text-small)/1.4 var(--mm-font-body);color:var(--mm-fg);opacity:0;transition:opacity .25s ease;}
#mmg-app #mm-grimoire .mm-tip-share-status.mm-tip-share-on{opacity:1;margin-top:6px;}

/* 1.6.35: one calm, on-brand removal flow — notification, bin, confirmation. */
/* Notification (not a button): paper card, check, short past-tense line, quiet Undo. */
#mmg-app #mm-grimoire .mm-board-toast{left:50%;width:min(420px,calc(100% - 32px));box-sizing:border-box;gap:12px;padding:12px 8px 12px 14px;border:1px solid var(--mm-border);border-radius:12px;background:var(--mm-card);color:var(--mm-fg);font:400 var(--mm-text-small)/1.4 var(--mm-font-body);transform:translate(-50%,16px);}
#mmg-app #mm-grimoire .mm-board-toast.mm-board-toast-on{transform:translate(-50%,0);}
#mmg-app #mm-grimoire .mm-toast-icon{display:grid;place-items:center;flex:none;width:26px;height:26px;border-radius:50%;background:var(--mm-button-bg);}
#mmg-app #mm-grimoire .mm-toast-icon svg{width:16px;height:16px;fill:none;stroke:var(--mm-button-text);stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;}
#mmg-app #mm-grimoire .mm-board-toast-on .mm-toast-icon{animation:mm-pop-in .4s var(--mmg-ease) .05s both;}
#mmg-app #mm-grimoire .mm-toast-text{flex:1;min-width:0;}
#mmg-app #mm-grimoire .mm-board-toast .mm-toast-undo,#mmg-app #mm-grimoire .mm-board-toast .mm-toast-undo:is(:hover,:focus,:active){flex:none;min-height:36px;margin:0;padding:6px 12px;border:0;border-radius:var(--mm-radius-button);background:transparent;box-shadow:none;color:var(--mm-primary);font:400 var(--mm-text-small)/1.2 var(--mm-font-body);text-decoration:underline;text-underline-offset:.2em;text-transform:none;letter-spacing:0;cursor:pointer;}
@media(hover:hover){#mmg-app #mm-grimoire .mm-board-toast .mm-toast-undo:hover{background:var(--mm-tint);}}
#mmg-app #mm-grimoire .mm-board-toast .mm-toast-undo:focus-visible{outline:2px solid var(--mm-focus-color);outline-offset:1px;}
@media(min-width:900px){#mmg-app #mm-grimoire .mm-board-toast{bottom:calc(124px + env(safe-area-inset-bottom,0px));}}

/* Bin: sits where the menu is, same paper and line as the menu. */
#mmg-app #mm-grimoire .mm-board-trash{display:flex;align-items:center;justify-content:center;height:auto;padding:12px 16px calc(14px + env(safe-area-inset-bottom,0px));background:var(--mm-card);border-top:var(--mm-border-width) solid var(--mm-outline-soft);color:var(--mm-fg);font:400 var(--mm-text-small)/1.3 var(--mm-font-body);}
#mmg-app #mm-grimoire .mm-bin{display:flex;align-items:center;justify-content:center;gap:10px;width:min(420px,100%);min-height:64px;border:1.5px dashed var(--mm-border);border-radius:12px;transition:background-color .2s ease,border-color .2s ease,color .2s ease,transform .25s var(--mmg-ease);}
#mmg-app #mm-grimoire .mm-board-trash svg{width:24px;height:24px;overflow:visible;transform:none;}
#mmg-app #mm-grimoire .mm-board-trash-over .mm-board-trash{background:var(--mm-card);color:var(--mm-fg);}
#mmg-app #mm-grimoire .mm-board-trash-over .mm-board-trash svg{transform:none;}
#mmg-app #mm-grimoire .mm-bin-lid{transform-box:fill-box;transform-origin:0% 100%;transition:transform .25s var(--mmg-ease);}
#mmg-app #mm-grimoire .mm-board-trash-over .mm-bin{border-style:solid;border-color:var(--mm-button-bg);background:var(--mm-button-bg);color:var(--mm-button-text);transform:scale(1.03);}
#mmg-app #mm-grimoire .mm-board-trash-over .mm-bin-lid{transform:translateY(-2px) rotate(-14deg);}
@media(min-width:900px){#mmg-app #mm-grimoire .mm-board-trash{left:50%;right:auto;bottom:16px;width:480px;padding:10px;border:var(--mm-border-width) solid var(--mm-outline-soft);border-radius:12px;transform:translate(-50%,calc(100% + 40px));}#mmg-app #mm-grimoire .mm-board-dragging .mm-board-trash{transform:translate(-50%,0);}}
/* While held over the bin the piece shrinks a little; on drop it falls in. */
#mmg-app #mm-grimoire .mm-piece.mm-piece-trashing{transform:scale(.75);opacity:.85;outline-color:var(--mm-button-bg);}
#mmg-app #mm-grimoire .mm-piece.mm-piece-binned{transform:scale(.2);opacity:0;transition:transform .25s ease-in,opacity .22s ease-in;animation:none;}

/* Confirmation: same paper, line, radius, type and buttons as the rest of the app. */
#mmg-app #mm-grimoire .mm-confirm{max-width:420px;padding:28px 24px 24px;border:1px solid var(--mm-border);border-radius:12px;background:var(--mm-card);text-align:left;animation:mm-confirm-in .22s var(--mmg-ease) both;}
#mmg-app #mm-grimoire .mm-confirm.mm-confirm-closing{animation:mm-confirm-out .18s ease-in both;}
#mmg-app #mm-grimoire .mm-confirm::backdrop{background:rgba(40,30,22,.4);animation:mmg-fade-in .22s ease both;}
@keyframes mm-confirm-in{from{opacity:0;transform:translateY(10px) scale(.98);}to{opacity:1;transform:none;}}
@keyframes mm-confirm-out{to{opacity:0;transform:translateY(6px) scale(.98);}}
#mmg-app #mm-grimoire .mm-confirm h2{margin:0 0 10px;font:400 27px/1.2 var(--mm-font-heading);color:var(--mm-fg);}
#mmg-app #mm-grimoire .mm-confirm p{font:400 var(--mm-text-base)/1.5 var(--mm-font-body);color:var(--mm-fg);}
#mmg-app #mm-grimoire .mm-confirm-skip{position:relative;display:flex;align-items:center;gap:10px;margin:18px 0 0;font:400 var(--mm-text-small)/1.4 var(--mm-font-body);color:var(--mm-muted);cursor:pointer;}
#mmg-app #mm-grimoire .mm-confirm-skip input{position:absolute;opacity:0;width:20px;height:20px;margin:0;}
#mmg-app #mm-grimoire .mm-confirm-box{display:grid;place-items:center;flex:none;width:20px;height:20px;border:1.5px solid var(--mm-border);border-radius:5px;background:transparent;transition:background-color .15s ease,border-color .15s ease;}
#mmg-app #mm-grimoire .mm-confirm-box svg{width:14px;height:14px;fill:none;stroke:var(--mm-button-text);stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round;opacity:0;}
#mmg-app #mm-grimoire .mm-confirm-skip input:checked+.mm-confirm-box{background:var(--mm-button-bg);border-color:var(--mm-button-bg);}
#mmg-app #mm-grimoire .mm-confirm-skip input:checked+.mm-confirm-box svg{opacity:1;}
#mmg-app #mm-grimoire .mm-confirm-skip input:focus-visible+.mm-confirm-box{outline:2px solid var(--mm-focus-color);outline-offset:2px;}
#mmg-app #mm-grimoire .mm-confirm-actions{gap:12px;margin-top:24px;}
#mmg-app #mm-grimoire .mm-confirm-actions button{min-height:48px;border-radius:var(--mm-radius-button);font:400 16px/1.2 var(--mm-font-body);transition:background-color 100ms ease,border-color 100ms ease;}
#mmg-app #mm-grimoire .mm-confirm-cancel{border:var(--mm-border-width) solid var(--mm-border);background:transparent;color:var(--mm-primary);}
#mmg-app #mm-grimoire .mm-confirm-delete{border:1px solid var(--mm-button-bg);background:var(--mm-button-bg);color:var(--mm-button-text);}
@media(hover:hover){#mmg-app #mm-grimoire .mm-confirm-cancel:hover{background:var(--mm-tint);}#mmg-app #mm-grimoire .mm-confirm-delete:hover{background:#60442e;border-color:#60442e;}}
#mmg-app #mm-grimoire .mm-confirm-delete:active{background:#513923;border-color:#513923;}
#mmg-app #mm-grimoire .mm-confirm-actions button:focus-visible{outline:2px solid var(--mm-focus-color);outline-offset:2px;}

/* Save + share icons: darker tint on hover/press (8% / 14% of the brown), like standard icon buttons. */
@media(hover:hover){#mmg-app #mm-grimoire .mm-tip-icon:hover{background:var(--mm-tint)!important;}}
#mmg-app #mm-grimoire .mm-tip-icon:active{background:var(--mm-tint-hover)!important;}
#mmg-app #mm-grimoire .mm-tip-icon svg[viewBox="0 0 512 512"]{width:20px;height:20px;}
@media(prefers-reduced-motion:reduce){#mmg-app #mm-grimoire :is(.mm-confirm,.mm-confirm::backdrop,.mm-toast-icon){animation:none!important;}#mmg-app #mm-grimoire .mm-bin,#mmg-app #mm-grimoire .mm-bin-lid{transition:none;}}
@media(min-width:900px){#mmg-app #mm-grimoire .mm-board-trash{bottom:20px;width:480px;height:92px;box-sizing:border-box;}#mmg-app #mm-grimoire .mm-bin{height:100%;min-height:0;}#mmg-app #mm-grimoire .mm-board-toast{bottom:calc(162px + env(safe-area-inset-bottom,0px));}}

/* 1.6.36: bin is one container (the menu bar itself); hovering tints it lightly, icon stays black. */
#mmg-app #mm-grimoire .mm-bin,#mmg-app #mm-grimoire .mm-board-trash-over .mm-bin{border:0;background:transparent;color:var(--mm-fg);transform:none;min-height:56px;}
#mmg-app #mm-grimoire .mm-board-trash{transition:transform .3s cubic-bezier(.2,.7,.3,1),background-color .2s ease;}
#mmg-app #mm-grimoire .mm-board-trash-over .mm-board-trash{background:var(--mm-chip-bg);color:var(--mm-fg);}
#mmg-app #mm-grimoire .mm-board-trash svg{stroke:#000;}
#mmg-app #mm-grimoire .mm-board-trash-over .mm-bin svg{transform:scale(1.12);}
#mmg-app #mm-grimoire .mm-board-trash svg{transition:transform .25s var(--mmg-ease);}
/* Affirmation popup + board piece */
#mmg-app #mm-grimoire .mm-daily-dialog[data-kind=affirmation]{border:0;border-radius:0;background:transparent;box-shadow:none;clip-path:none;isolation:isolate;padding:48px clamp(20px,5vw,30px) 30px;}
#mmg-app #mm-grimoire .mm-daily-dialog[data-kind=affirmation]::before{content:'';position:absolute;inset:0;z-index:0;background:var(--mm-chip-bg);clip-path:var(--mm-torn-shape);box-shadow:inset 0 0 44px 4px rgba(122,82,44,.11);pointer-events:none;}
#mmg-app #mm-grimoire .mm-daily-dialog[data-kind=affirmation] .mm-popup-scroll{position:relative;z-index:1;padding:0;max-height:calc(min(80svh,740px) - 78px);border-radius:0;}
#mmg-app #mm-grimoire .mm-daily-dialog[data-kind=affirmation] #mm-daily-dialog-title{margin:0 0 14px;text-align:center;width:100%;}
#mmg-app #mm-grimoire .mm-daily-dialog[data-kind=affirmation] .mm-tips li{background:transparent;border:0;padding:6px 8px;font-size:30px;line-height:1.35;}
#mmg-app #mm-grimoire .mm-daily-affirmation-tag{margin:6px 0 0;text-align:center;font:400 var(--mm-text-small)/1.4 var(--mm-font-body);color:var(--mm-muted);}
#mmg-app #mm-grimoire .mm-daily-dialog[data-kind=affirmation] .mm-tip-actions{position:relative;z-index:1;display:flex;justify-content:center;gap:6px;margin:14px 0 0;}
#mmg-app #mm-grimoire .mm-daily-dialog[data-kind=affirmation] .mmg-support-close{z-index:2;}
@media(max-width:600px){#mmg-app #mm-grimoire .mm-daily-dialog[data-kind=affirmation] .mm-tips li{font-size:27px;}}
#mmg-app #mm-grimoire .mm-piece-a .mm-tip-paper{margin:0;padding:22px 16px 24px;}
#mmg-app #mm-grimoire .mm-piece-a .mm-tip-paper-text{font-size:24px;line-height:1.35;}
@media(max-width:600px){#mmg-app #mm-grimoire .mm-piece-a .mm-tip-paper-text{font-size:22px;}}
/* Tapped (not keyboard): no focus ring on the popup's first button, so Cancel never shows a double border. */
#mmg-app[data-mmg-input=pointer] #mm-grimoire .mm-confirm :is(button,input):focus,#mmg-app[data-mmg-input=pointer] #mm-grimoire .mm-confirm :is(button,input):focus-visible,#mmg-app[data-mmg-input=pointer] #mm-grimoire .mm-confirm-skip input:focus-visible+.mm-confirm-box{outline:none!important;box-shadow:none!important;}
#mmg-app #mm-grimoire .mm-daily-dialog[data-kind=affirmation] .mm-popup-rail{top:48px;bottom:30px;right:14px;}
#mmg-app #mm-grimoire .mm-daily-soon{cursor:default;}
#mmg-app #mm-grimoire .mm-daily-dialog[data-kind=affirmation] .mm-tips li{background:transparent!important;box-shadow:none!important;clip-path:none!important;border:0!important;}
/* 1.6.37: four Today buttons in one row on desktop; moth above the affirmation. */
@media(min-width:900px){#mmg-app #mm-grimoire .mm-daily-actions{grid-template-columns:repeat(4,minmax(0,1fr));}}
#mmg-app #mm-grimoire .mm-piece-a .mm-tip-paper-image :is(img,span){width:56px;height:56px;margin:0 auto 6px;}
@media(max-width:899px){#mmg-app #mm-grimoire .mm-daily-actions{gap:10px;}}
/* 1.6.37: no title animation between pages; bigger Collection / Grimoire titles. */
#mmg-app #mm-grimoire .mm-brand h1,#mmg-app #mm-grimoire .mm-brand h1 *{transition:none!important;animation:none!important;}
#mmg-app #mm-grimoire:is(.mm-page-collection,.mm-page-board,.mm-page-profile):not(.mm-detail-view) .mm-brand h1{font-size:min(46px,11cqi);}
#mmg-app #mm-grimoire .mm-board-empty-line{margin:8px auto 0;max-width:420px;text-align:center;font:italic 400 var(--mm-text-small)/1.5 var(--mm-font-body);color:var(--mm-muted);}
@media(max-width:600px){#mmg-app #mm-grimoire:is(.mm-page-collection,.mm-page-board,.mm-page-profile):not(.mm-detail-view) .mm-brand h1{font-size:40px;flex-wrap:wrap;row-gap:0;white-space:normal;}#mmg-app #mm-grimoire:is(.mm-page-collection,.mm-page-board,.mm-page-profile):not(.mm-detail-view) .mm-brand h1 :is(.mm-title-prefix,em){white-space:nowrap;}}

/* 1.6.38: paper texture over every Witch Tip (and affirmation) paper — tiled, multiply, low opacity. */
#mmg-app{--mm-tip-texture:url("https://portal.mistmagia.com/wp-content/uploads/2026/10/TILINGBG_TEST3_small.png");--mm-tip-texture-opacity:.75;}
#mmg-app .mm-tip-paper{position:relative;}
#mmg-app .mm-tip-paper::after,
#mmg-app #mm-grimoire .mm-daily-dialog:is([data-kind=tip],[data-kind=affirmation])::after,
#mmg-app #mm-grimoire .mm-detail .mm-tips li::after,#mmg-app #mm-grimoire.mm-detail-view .mm-tips li::after{content:'';display:block;position:absolute;inset:0;z-index:0;background:var(--mm-tip-texture) repeat 0 0/auto;mix-blend-mode:multiply;opacity:var(--mm-tip-texture-opacity);clip-path:inherit;border-radius:inherit;pointer-events:none;z-index:5;}
#mmg-app #mm-grimoire .mm-daily-dialog:is([data-kind=tip],[data-kind=affirmation])::after{clip-path:var(--mm-torn-shape);}
/* Texture on the torn name papers too. */
#mmg-app #mm-grimoire .mm-greeting-sticker,#mmg-app .mmg-support .mmg-renamed-name span{position:relative;}
#mmg-app #mm-grimoire .mm-greeting-sticker::after,#mmg-app .mmg-support .mmg-renamed-name span::after{content:'';position:absolute;inset:0;background:var(--mm-tip-texture) repeat 0 0/auto;mix-blend-mode:multiply;opacity:var(--mm-tip-texture-opacity);pointer-events:none;}
/* Affirmation: same space above and below the moth. */
#mmg-app #mm-grimoire .mm-daily-dialog[data-kind=affirmation] #mm-daily-dialog-title{margin-bottom:20px;}
#mmg-app #mm-grimoire .mm-daily-dialog[data-kind=affirmation] .mm-daily-tip-image{margin:0 auto 13px;}
#mmg-app #mm-grimoire .mm-daily-dialog[data-kind=affirmation] :is(.mm-daily-tip-source,.mm-tips,.mm-tips ul){margin-top:0;margin-bottom:0;padding-top:0;}
#mmg-app #mm-grimoire .mm-daily-dialog[data-kind=affirmation] .mm-tips li{padding-top:0;}
#mmg-app #mm-grimoire .mm-daily-dialog[data-kind=affirmation] .mm-daily-tip-image{margin-bottom:11px;}
/* Witch Tip and Affirmation popups: one shared text size (middle ground). */
#mmg-app #mm-grimoire .mm-daily-dialog:is([data-kind=tip],[data-kind=affirmation]) .mm-tips li.mm-daily-tip-text{font-size:28px!important;line-height:1.4!important;}
@media(max-width:600px){#mmg-app #mm-grimoire .mm-daily-dialog:is([data-kind=tip],[data-kind=affirmation]) .mm-tips li.mm-daily-tip-text{font-size:26px!important;}}
/* 1.6.40: stronger darkened edges on all papers. */
#mmg-app{--mm-paper-edge:inset 0 0 34px 2px rgba(110,72,36,.26),inset 0 0 70px 10px rgba(110,72,36,.12);}
#mmg-app .mm-tip-paper,
#mmg-app #mm-grimoire .mm-daily-dialog:is([data-kind=tip],[data-kind=affirmation])::before,
#mmg-app #mm-grimoire.mm-detail-view .mm-tips li,
#mmg-app #mm-grimoire .mm-greeting-sticker,
#mmg-app .mmg-support .mmg-renamed-name span{box-shadow:var(--mm-paper-edge)!important;}
/* 1.6.41: Today's Report scrollbar in the same place as the moon popups; no bottom fade (like the moon popups). */
#mmg-app #mm-grimoire .mm-daily-dialog[data-kind=message] .mm-popup-rail{top:28px;bottom:28px;right:4px;}
#mmg-app #mm-grimoire .mm-daily-dialog[data-kind=message] .mm-popup-scroll,#mmg-app #mm-grimoire .mm-daily-dialog[data-kind=message] .mm-popup-scroll.mm-has-more{-webkit-mask-image:none;mask-image:none;}
/* 1.6.43: softer paper edges; fine grain on top of the paper texture so it stays crisp on sharp phone screens. */
#mmg-app{--mm-paper-edge:inset 0 0 30px 1px rgba(110,72,36,.17),inset 0 0 60px 8px rgba(110,72,36,.06);}
#mmg-app .mm-tip-paper::after,
#mmg-app #mm-grimoire .mm-daily-dialog:is([data-kind=tip],[data-kind=affirmation])::after,
#mmg-app #mm-grimoire.mm-detail-view .mm-tips li::after,
#mmg-app #mm-grimoire .mm-greeting-sticker::after,#mmg-app .mmg-support .mmg-renamed-name span::after{background:url("images/mm-grain.png") repeat 0 0/128px 128px,var(--mm-tip-texture) repeat 0 0/auto;background-blend-mode:multiply;}
/* Entry-page Witch Tips: the save bookmark sits under the tip, same as in Today's Witch Tip. */
#mmg-app #mm-grimoire.mm-detail-view .mm-tips li{padding-bottom:8px;}
#mmg-app #mm-grimoire.mm-detail-view .mm-tips li .mm-tip-actions{position:relative;z-index:1;display:flex;justify-content:center;margin:6px 0 0;}
#mmg-app #mm-grimoire.mm-detail-view .mm-tips li .mm-tip-body{position:relative;z-index:1;}
/* Long Witch Tips / affirmations take the full width on phones (two columns), so they read horizontally. */
@media(max-width:699px){#mmg-app #mm-grimoire .mm-board-grid .mm-piece-wide{grid-column:1/-1;}}
@media(max-width:699px){#mmg-app #mm-grimoire .mm-board-grid{grid-auto-flow:row dense;}}
/* 1.6.44: texture and grain only on the shared pictures, not on the papers in the app. */
#mmg-app .mm-tip-paper::after,
#mmg-app #mm-grimoire .mm-daily-dialog:is([data-kind=tip],[data-kind=affirmation])::after,
#mmg-app #mm-grimoire.mm-detail-view .mm-tips li::after,
#mmg-app #mm-grimoire .mm-greeting-sticker::after,#mmg-app .mmg-support .mmg-renamed-name span::after{content:none!important;display:none!important;background:none!important;}
/* Board Witch Tips / affirmations: more room on the left and right. */
#mmg-app #mm-grimoire .mm-piece-t .mm-tip-paper{padding:18px 26px 20px;}
#mmg-app #mm-grimoire .mm-piece-a .mm-tip-paper{padding:22px 26px 24px;}
@media(max-width:600px){#mmg-app #mm-grimoire .mm-piece-t .mm-tip-paper{padding:16px 22px 18px;}#mmg-app #mm-grimoire .mm-piece-a .mm-tip-paper{padding:20px 22px 22px;}}
#mmg-app #mm-grimoire.mm-detail-view .mm-tips li{padding-bottom:18px;}
/* 1.6.46: more room above and below on Grimoire tips, affirmations and notes. */
#mmg-app #mm-grimoire .mm-piece-t .mm-tip-paper{padding:28px 26px 30px;}
#mmg-app #mm-grimoire .mm-piece-a .mm-tip-paper{padding:30px 26px 32px;}
@media(max-width:600px){#mmg-app #mm-grimoire .mm-piece-t .mm-tip-paper{padding:26px 22px 28px;}#mmg-app #mm-grimoire .mm-piece-a .mm-tip-paper{padding:28px 22px 30px;}}
#mmg-app #mm-grimoire .mm-board-grid .mm-note-scrap{padding-top:24px;padding-bottom:26px;background-position:0 0,0 44px;}
/* 1.6.47: Font Awesome bookmark, same weight and size as the paper plane. */
#mmg-app #mm-grimoire .mm-tip-icon svg.mm-fa-bookmark{width:20px;height:20px;fill:currentColor!important;stroke:none!important;}
#mmg-app .mm-fa-bookmark .mm-bm-solid{display:none;}
#mmg-app .mm-keep-tip-saved .mm-fa-bookmark .mm-bm-solid{display:inline;}
#mmg-app .mm-keep-tip-saved .mm-fa-bookmark .mm-bm-outline{display:none;}
/* 1.6.49: the night sky behind the menu moon is pinned to the circle itself (not to the grid cell the moon image
   sits in), so the stars never shift when the moon image arrives — Safari sized that cell differently before. */
#mmg-app #mm-grimoire .mm-nav-moon>.mm-nav-sky{grid-area:auto;position:absolute;top:0;right:0;bottom:0;left:0;width:auto;height:auto;margin:0;}
#mmg-app #mm-grimoire .mm-nav-stars{top:0;right:0;bottom:0;left:0;}
/* 1.6.49: calmer dragging on the Grimoire. */
@media(max-width:699px){#mmg-app #mm-grimoire .mm-board-grid{grid-auto-flow:row;}}
#mmg-app #mm-grimoire .mm-piece-placeholder{box-sizing:border-box;align-self:start;border:1.5px dashed var(--mm-border);border-radius:12px;background:var(--mm-tint);}
#mmg-app #mm-grimoire .mm-piece.mm-piece-dragging{outline:0;transform:scale(1.05) rotate(-1.5deg);transition:transform .2s ease;cursor:grabbing;}
#mmg-app #mm-grimoire .mm-piece.mm-piece-lifted{transform:scale(1.06);}
#mmg-app #mm-grimoire .mm-piece.mm-piece-landing{transform:none;animation:none;}
#mmg-app #mm-grimoire .mm-piece.mm-piece-trashing{transform:scale(.7);}
@media(prefers-reduced-motion:reduce){#mmg-app #mm-grimoire .mm-piece.mm-piece-dragging{transform:none;}}
/* Small black × in the corner (no circle) on Grimoire pieces. */
#mmg-app #mm-grimoire .mm-piece-remove,#mmg-app #mm-grimoire .mm-piece-remove:is(:hover,:focus,:active),#mmg-app #mm-grimoire .mm-piece-p .mm-piece-remove{top:4px;right:4px;width:28px;height:28px;border:0!important;border-radius:6px;background:transparent!important;color:#000!important;font:400 20px/1 var(--mm-font-body);}
#mmg-app #mm-grimoire .mm-piece-remove:focus-visible{outline:2px solid var(--mm-focus-color);outline-offset:0;}
/* 1.6.50: Today's Witch Tip uses exactly the same spacing as Today's Affirmation. */
#mmg-app #mm-grimoire .mm-daily-dialog[data-kind=tip] #mm-daily-dialog-title{margin-bottom:20px;}
#mmg-app #mm-grimoire .mm-daily-dialog[data-kind=tip] :is(.mm-daily-tip-source,.mm-tips,.mm-tips ul){margin-top:0;margin-bottom:0;padding-top:0;}
#mmg-app #mm-grimoire .mm-daily-dialog[data-kind=tip] .mm-daily-tip-image{margin:0 auto 11px;}
#mmg-app #mm-grimoire .mm-daily-dialog[data-kind=tip] .mm-tips li{padding:0 8px 6px!important;}

/* ===== 1.6.51: moons you can keep and share, dark-sky cards, Grimoire close-ups ===== */
/* Light save/share icons on the night sky. */
#mmg-app #mm-grimoire .mm-tip-icon.mm-tip-icon-light,#mmg-app #mm-grimoire .mm-tip-icon.mm-tip-icon-light:is(:hover,:focus,:active){color:#f7efdd!important;}
@media(hover:hover){#mmg-app #mm-grimoire .mm-tip-icon.mm-tip-icon-light:hover{background:rgba(247,239,221,.12)!important;}}
#mmg-app #mm-grimoire .mm-tip-icon.mm-tip-icon-light:active{background:rgba(247,239,221,.18)!important;}
#mmg-app #mm-grimoire .mm-moon-sky-actions{display:flex;justify-content:center;gap:6px;margin:16px 0 0;}
#mmg-app #mm-grimoire .mm-moon-share-status{color:#f7efdd;}
/* Dark-sky containers get a near-black edge instead of brown. */
#mmg-app #mm-grimoire .mm-daily-sky{border-color:#05080c;}
#mmg-app #mm-grimoire .mm-nav-today[aria-current="page"] .mm-nav-moon{border-color:#05080c;}

/* Saved moon card on the Grimoire: always full width, animated stars. */
#mmg-app #mm-grimoire .mm-piece-m{grid-column:1/-1;}
#mmg-app #mm-grimoire .mm-moon-card{position:relative;overflow:hidden;isolation:isolate;display:flex;align-items:center;gap:24px;padding:24px 30px;border:1px solid #05080c;border-radius:12px;background:radial-gradient(ellipse at 50% 130%,#25313b 0,transparent 65%),linear-gradient(115deg,#090e14,#17212a 50%,#090e14);color:#f7efdd;text-align:left;}
#mmg-app #mm-grimoire .mm-moon-card-stars{position:absolute;inset:0;z-index:-1;pointer-events:none;}
#mmg-app #mm-grimoire .mm-moon-card-stars i{position:absolute;width:var(--s);height:var(--s);margin:calc(var(--s) / -2) 0 0 calc(var(--s) / -2);border-radius:50%;background:#f8efd8;opacity:var(--o);animation:mm-moon-twinkle var(--d) ease-in-out var(--w) infinite;}
@keyframes mm-moon-twinkle{0%,100%{opacity:var(--o);transform:scale(1);}50%{opacity:1;transform:scale(1.6);}}
#mmg-app #mm-grimoire .mm-moon-card-image{flex:none;display:grid;place-items:center;width:110px;height:110px;}
#mmg-app #mm-grimoire .mm-moon-card-image img{width:110px;height:110px;object-fit:contain;}
#mmg-app #mm-grimoire .mm-moon-card-disc{width:84px;height:84px;border-radius:50%;background:#1c2731;box-shadow:inset 0 0 0 2px rgba(230,236,240,.4);}
#mmg-app #mm-grimoire .mm-moon-card-disc-full{background:#f3ead6;box-shadow:0 0 40px rgba(255,244,214,.25);}
#mmg-app #mm-grimoire .mm-moon-card-text{display:flex;flex-direction:column;align-items:flex-start;min-width:0;}
#mmg-app #mm-grimoire .mm-moon-card-title{font:400 30px/1.15 var(--mm-font-heading);color:#f7efdd;}
#mmg-app #mm-grimoire .mm-moon-card-phase{margin-top:2px;font:400 var(--mm-text-small)/1.4 var(--mm-font-body);color:rgba(247,239,221,.7);}
#mmg-app #mm-grimoire .mm-moon-card-date{margin-top:10px;font:400 17px/1.4 var(--mm-font-body);}
#mmg-app #mm-grimoire .mm-moon-card-time{font:400 var(--mm-text-small)/1.4 var(--mm-font-body);color:rgba(247,239,221,.8);}
#mmg-app #mm-grimoire .mm-moon-card-when{margin-top:12px;padding:4px 14px;border:1px solid rgba(247,239,221,.45);border-radius:999px;font:400 14px/1.4 var(--mm-font-body);}
@media(max-width:600px){#mmg-app #mm-grimoire .mm-moon-card{gap:16px;padding:20px 20px;}#mmg-app #mm-grimoire .mm-moon-card-image,#mmg-app #mm-grimoire .mm-moon-card-image img{width:84px;height:84px;}#mmg-app #mm-grimoire .mm-moon-card-title{font-size:26px;}#mmg-app #mm-grimoire .mm-moon-card-date{font-size:16px;}}
#mmg-app #mm-grimoire .mm-piece-remove.mm-piece-remove-light,#mmg-app #mm-grimoire .mm-piece-remove.mm-piece-remove-light:is(:hover,:focus,:active){color:#f7efdd!important;}
@media(prefers-reduced-motion:reduce){#mmg-app #mm-grimoire .mm-moon-card-stars i{animation:none;}}

/* Affirmation: date it was collected, as a small pill inside the paper. */
#mmg-app .mm-paper-pill{display:table;margin:12px auto 0;padding:3px 11px;border:1px solid rgba(107,74,51,.35);border-radius:999px;font:400 12.5px/1.4 var(--mm-font-body);letter-spacing:.02em;color:var(--mm-muted);white-space:nowrap;}

/* Grimoire close-up (zoom) popups. */
#mmg-app #mm-grimoire .mm-board-grid .mm-piece:not(.mm-piece-p){cursor:pointer;}
#mmg-app #mm-grimoire .mm-zoom{position:fixed;inset:0;margin:auto;width:min(560px,calc(100% - 32px));max-height:min(86svh,760px);overflow:auto;overscroll-behavior:contain;padding:52px clamp(20px,5vw,32px) 30px;border:1px solid var(--mm-border);border-radius:12px;background:var(--mm-card);color:var(--mm-fg);box-shadow:none;text-align:center;will-change:transform,opacity;}
#mmg-app #mm-grimoire .mm-zoom::backdrop{background:rgba(40,30,22,.45);animation:mmg-fade-in .25s ease both;}
#mmg-app #mm-grimoire .mm-zoom.mm-zoom-closing::backdrop{animation:mm-zoom-backdrop-out .24s ease both;}
@keyframes mm-zoom-backdrop-out{to{opacity:0;}}
#mmg-app #mm-grimoire .mm-zoom .mm-zoom-close{position:absolute;top:12px;right:12px;z-index:3;color:#000!important;}
#mmg-app #mm-grimoire .mm-zoom-body{position:relative;z-index:1;}
#mmg-app #mm-grimoire .mm-zoom-links{margin:18px 0 0;}
#mmg-app #mm-grimoire .mm-zoom-visit{font:400 var(--mm-text-small)/1.4 var(--mm-font-body);color:var(--mm-primary);text-decoration:underline;text-underline-offset:.2em;}
#mmg-app #mm-grimoire .mm-zoom-actions{display:flex;justify-content:center;gap:6px;margin:16px 0 0;}
/* Witch Tip / affirmation close-up: the popup is the torn brown paper itself. */
#mmg-app #mm-grimoire .mm-zoom:is(.mm-zoom-t,.mm-zoom-a){border:0;border-radius:0;background:transparent;}
#mmg-app #mm-grimoire .mm-zoom:is(.mm-zoom-t,.mm-zoom-a)::before{content:'';position:absolute;inset:0;z-index:0;background:var(--mm-chip-bg);clip-path:var(--mm-torn-shape);box-shadow:var(--mm-paper-edge);}
#mmg-app #mm-grimoire .mm-zoom-paper{margin:0;padding:0;background:transparent;clip-path:none;box-shadow:none!important;}
#mmg-app #mm-grimoire .mm-zoom-paper .mm-tip-paper-image :is(img,span){width:96px;height:96px;margin:0 auto 14px;}
#mmg-app #mm-grimoire .mm-zoom-paper .mm-tip-paper-text{font-size:28px;line-height:1.4;}
@media(max-width:600px){#mmg-app #mm-grimoire .mm-zoom-paper .mm-tip-paper-text{font-size:26px;}}
/* Note close-up: edit on lined paper. */
#mmg-app #mm-grimoire .mm-zoom-title{margin:0 28px 16px;font:400 27px/1.2 var(--mm-font-heading);color:var(--mm-fg);}
#mmg-app #mm-grimoire .mm-zoom-note{--line:38px;}
#mmg-app #mm-grimoire .mm-zoom-note textarea{display:block;box-sizing:border-box;width:100%;min-height:180px;margin:0;padding:12px 20px 14px 50px;resize:none;overflow:hidden;border:0;border-radius:0;outline:0;clip-path:var(--mm-torn-shape);background-color:#fffdf8;background-image:linear-gradient(90deg,transparent 33px,rgba(196,110,96,.28) 33px,rgba(196,110,96,.28) 34px,transparent 34px),repeating-linear-gradient(180deg,transparent 0,transparent calc(var(--line) - 1px),rgba(120,146,176,.22) calc(var(--line) - 1px),rgba(120,146,176,.22) var(--line));background-position:0 0,0 12px;background-attachment:local;font:500 26px/var(--line) var(--mm-font-hand);color:var(--mm-primary);text-align:left;box-shadow:none;}
#mmg-app #mm-grimoire .mm-zoom-note textarea:focus{outline:0;box-shadow:none;}
#mmg-app #mm-grimoire .mm-zoom-note-status{margin:12px 0 0;font:400 var(--mm-text-small)/1.4 var(--mm-font-body);color:var(--mm-muted);}
@media(max-width:600px){#mmg-app #mm-grimoire .mm-zoom-note{--line:36px;}#mmg-app #mm-grimoire .mm-zoom-note textarea{font-size:24px;}}
/* Moon close-up: the whole popup is night sky. */
#mmg-app #mm-grimoire .mm-zoom.mm-zoom-m{padding:0;border:1px solid #05080c;background:#0b1118;}
#mmg-app #mm-grimoire .mm-zoom-m .mm-zoom-close{color:#f7efdd!important;}
#mmg-app #mm-grimoire .mm-moon-card.mm-moon-card-big{flex-direction:column;justify-content:center;gap:10px;padding:56px 24px 34px;border:0;border-radius:0;text-align:center;}
#mmg-app #mm-grimoire .mm-moon-card-big .mm-moon-card-image,#mmg-app #mm-grimoire .mm-moon-card-big .mm-moon-card-image img{width:170px;height:170px;}
#mmg-app #mm-grimoire .mm-moon-card-big .mm-moon-card-disc{width:130px;height:130px;}
#mmg-app #mm-grimoire .mm-moon-card-big .mm-moon-card-text{align-items:center;}
#mmg-app #mm-grimoire .mm-moon-card-big .mm-moon-card-title{font-size:34px;}
#mmg-app #mm-grimoire .mm-zoom-m .mm-zoom-links{margin:0;padding:0 0 26px;background:transparent;}
#mmg-app #mm-grimoire .mm-zoom-m .mm-zoom-body{background:radial-gradient(ellipse at 50% 130%,#25313b 0,transparent 65%),linear-gradient(115deg,#090e14,#17212a 50%,#090e14);}
#mmg-app #mm-grimoire .mm-zoom-m .mm-zoom-visit{color:#f7efdd;}
@media(prefers-reduced-motion:reduce){#mmg-app #mm-grimoire .mm-zoom::backdrop{animation:none;}}
#mmg-app #mm-grimoire :is(.mm-daily-dialog,.mm-zoom,.mm-board) .mm-tip-icon.mm-tip-icon-light,#mmg-app #mm-grimoire :is(.mm-daily-dialog,.mm-zoom,.mm-board) .mm-tip-icon.mm-tip-icon-light:is(:hover,:focus,:active){color:#f7efdd!important;}
#mmg-app #mm-grimoire .mm-tip-icon.mm-tip-icon-light svg{color:#f7efdd!important;fill:#f7efdd!important;}
#mmg-app #mm-grimoire .mm-piece.mm-piece-m{--tilt:0deg;}
#mmg-app #mm-grimoire .mm-moon-card:not(.mm-moon-card-big){justify-content:center;gap:32px;padding:28px 34px;}
@media(min-width:601px){#mmg-app #mm-grimoire .mm-moon-card:not(.mm-moon-card-big) .mm-moon-card-image,#mmg-app #mm-grimoire .mm-moon-card:not(.mm-moon-card-big) .mm-moon-card-image img{width:140px;height:140px;}#mmg-app #mm-grimoire .mm-moon-card:not(.mm-moon-card-big) .mm-moon-card-title{font-size:34px;}}
@media(max-width:600px){#mmg-app #mm-grimoire .mm-moon-card:not(.mm-moon-card-big){gap:16px;padding:20px;}#mmg-app #mm-grimoire .mm-moon-card-title{font-size:24px;}}
/* Moon card on desktop: two columns wide, not the whole row. */
@media(min-width:700px){#mmg-app #mm-grimoire .mm-piece-m{grid-column:span 2;}
  #mmg-app #mm-grimoire .mm-moon-card:not(.mm-moon-card-big){gap:22px;padding:24px 26px;}
  #mmg-app #mm-grimoire .mm-moon-card:not(.mm-moon-card-big) .mm-moon-card-image,#mmg-app #mm-grimoire .mm-moon-card:not(.mm-moon-card-big) .mm-moon-card-image img{width:110px;height:110px;}
  #mmg-app #mm-grimoire .mm-moon-card:not(.mm-moon-card-big) .mm-moon-card-title{font-size:28px;}}
/* One pill style on the night sky: the countdown matches the moon tags. */
#mmg-app #mm-grimoire .mm-moon-card-when{display:inline-flex;align-items:center;min-height:34px;box-sizing:border-box;padding:4px 13px;border:1px solid var(--mm-sky-line-strong);border-radius:999px;background:var(--mm-sky-fill);color:#dfe8ea;font:400 15px/21px var(--mm-font-body);}
/* 1.6.52: same space above and below the save / share icons in every popup (≈30px above, 40px below). */
#mmg-app #mm-grimoire .mm-daily-dialog:is([data-kind=tip],[data-kind=affirmation]) .mm-tip-actions{margin-top:18px;}
#mmg-app #mm-grimoire .mm-daily-dialog:is([data-kind=tip],[data-kind=affirmation]){padding-bottom:28px;}
#mmg-app #mm-grimoire .mm-daily-dialog[data-kind^=moon] .mm-moon-sky-actions{margin-top:18px;}
#mmg-app #mm-grimoire .mm-daily-dialog[data-kind^=moon] .mm-moon-sky{padding-bottom:28px;}
#mmg-app #mm-grimoire .mm-zoom .mm-zoom-actions{margin-top:18px;}
#mmg-app #mm-grimoire .mm-zoom-t .mm-zoom-links{margin-top:28px;}
#mmg-app #mm-grimoire .mm-zoom:is(.mm-zoom-t,.mm-zoom-a){padding-bottom:28px;}
#mmg-app #mm-grimoire .mm-moon-card-big .mm-zoom-actions{margin-top:8px;}
#mmg-app #mm-grimoire .mm-moon-card.mm-moon-card-big{padding-bottom:18px;}
/* Moon date, hour and countdown: a little more air. */
#mmg-app #mm-grimoire .mm-moon-card-time{margin-top:4px;}
#mmg-app #mm-grimoire .mm-moon-card-when{margin-top:16px;}

/* ===== 1.6.53: one night-sky design ===== */
/* Layout: moon on the left, text left-aligned next to it — Grimoire card and its close-up alike. */
#mmg-app #mm-grimoire .mm-moon-card,#mmg-app #mm-grimoire .mm-moon-card:not(.mm-moon-card-big),#mmg-app #mm-grimoire .mm-moon-card.mm-moon-card-big{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:0;padding:24px 28px;text-align:left;}
#mmg-app #mm-grimoire .mm-moon-card-row{display:flex;align-items:center;justify-content:flex-start;gap:24px;min-width:0;}
#mmg-app #mm-grimoire .mm-moon-card-text,#mmg-app #mm-grimoire .mm-moon-card-big .mm-moon-card-text{align-items:flex-start;text-align:left;}
#mmg-app #mm-grimoire .mm-moon-card .mm-moon-card-image,#mmg-app #mm-grimoire .mm-moon-card .mm-moon-card-image img{width:120px;height:120px;}
#mmg-app #mm-grimoire .mm-moon-card.mm-moon-card-big{padding:60px 28px 0;}
/* Type: one light colour for every line; the countdown uses the shared night-sky pill. */
#mmg-app #mm-grimoire .mm-moon-card :is(.mm-moon-card-title,.mm-moon-card-phase,.mm-moon-card-date,.mm-moon-card-time){color:#f7efdd;}
#mmg-app #mm-grimoire .mm-moon-card .mm-moon-card-title,#mmg-app #mm-grimoire .mm-moon-card-big .mm-moon-card-title{font:400 28px/1.2 var(--mm-font-heading);}
#mmg-app #mm-grimoire .mm-moon-card .mm-moon-card-phase{margin-top:4px;font:400 16px/1.4 var(--mm-font-body);}
#mmg-app #mm-grimoire .mm-moon-card .mm-moon-card-date{margin-top:10px;font:400 16px/1.4 var(--mm-font-body);}
#mmg-app #mm-grimoire .mm-moon-card .mm-moon-card-time{margin-top:2px;font:400 16px/1.4 var(--mm-font-body);}
#mmg-app #mm-grimoire .mm-moon-card .mm-moon-card-when{margin-top:14px;}
@media(max-width:600px){
  #mmg-app #mm-grimoire .mm-moon-card,#mmg-app #mm-grimoire .mm-moon-card:not(.mm-moon-card-big){padding:20px;}
  #mmg-app #mm-grimoire .mm-moon-card.mm-moon-card-big{padding:56px 20px 0;}
  #mmg-app #mm-grimoire .mm-moon-card-row{gap:18px;}
  #mmg-app #mm-grimoire .mm-moon-card .mm-moon-card-image,#mmg-app #mm-grimoire .mm-moon-card .mm-moon-card-image img{width:96px;height:96px;}
  #mmg-app #mm-grimoire .mm-moon-card .mm-moon-card-title,#mmg-app #mm-grimoire .mm-moon-card-big .mm-moon-card-title{font-size:24px;}
}
/* Stars: corners only, faint (generated that way); same layer in the Today moon popups. */
#mmg-app #mm-grimoire .mm-moon-sky{position:relative;isolation:isolate;overflow:hidden;}
#mmg-app #mm-grimoire .mm-moon-sky>.mm-moon-card-stars{position:absolute;inset:0;z-index:-1;pointer-events:none;}
#mmg-app #mm-grimoire .mm-moon-sky>.mm-moon-card-stars i{position:absolute;width:var(--s);height:var(--s);margin:calc(var(--s) / -2) 0 0 calc(var(--s) / -2);border-radius:50%;background:#f8efd8;opacity:var(--o);animation:mm-moon-twinkle var(--d) ease-in-out var(--w) infinite;}
@media(prefers-reduced-motion:reduce){#mmg-app #mm-grimoire .mm-moon-sky>.mm-moon-card-stars i{animation:none;}}
/* 1.6.53: equal visible space above and below the save / share icons (36px) in every popup. Tuned by measuring drawn pixels. */
#mmg-app #mm-grimoire .mm-daily-dialog:is([data-kind=tip],[data-kind=affirmation]) .mm-tip-actions{margin-top:13px;}
#mmg-app #mm-grimoire .mm-daily-dialog:is([data-kind=tip],[data-kind=affirmation]){padding-bottom:29px;}
#mmg-app #mm-grimoire .mm-zoom-t .mm-zoom-actions{margin-top:20px;}
#mmg-app #mm-grimoire .mm-zoom-t .mm-zoom-links{margin-top:14px;}
#mmg-app #mm-grimoire .mm-zoom-a .mm-zoom-actions{margin-top:24px;}
#mmg-app #mm-grimoire .mm-zoom:is(.mm-zoom-t,.mm-zoom-a){padding-bottom:29px;}
#mmg-app #mm-grimoire .mm-moon-card-big .mm-zoom-actions{margin-top:24px;}
#mmg-app #mm-grimoire .mm-zoom-m .mm-zoom-links{margin:0;padding:14px 0 30px;}
/* Retuned to 38px above = 38px below (measured from the text baseline / pill edge to the icons, and icons to the next thing). */
#mmg-app #mm-grimoire .mm-daily-dialog:is([data-kind=tip],[data-kind=affirmation]) .mm-tip-actions{margin-top:10px;}
#mmg-app #mm-grimoire .mm-daily-dialog:is([data-kind=tip],[data-kind=affirmation]){padding-bottom:31px!important;}
#mmg-app #mm-grimoire .mm-daily-dialog[data-kind^=moon] .mm-moon-sky-actions{margin-top:26px;}
#mmg-app #mm-grimoire .mm-daily-dialog[data-kind^=moon] .mm-moon-sky{padding-bottom:26px;}
#mmg-app #mm-grimoire .mm-zoom-t .mm-zoom-actions{margin-top:17px;}
#mmg-app #mm-grimoire .mm-zoom-t .mm-zoom-links{margin-top:16px;}
#mmg-app #mm-grimoire .mm-zoom-a .mm-zoom-actions{margin-top:26px;}
#mmg-app #mm-grimoire .mm-zoom:is(.mm-zoom-t,.mm-zoom-a){padding-bottom:31px;}
#mmg-app #mm-grimoire .mm-moon-card-big .mm-zoom-actions{margin-top:26px;}
#mmg-app #mm-grimoire .mm-zoom-m .mm-zoom-links{padding-top:16px;}
/* Witch Tip / affirmation close-ups: more room left and right inside the paper. */
#mmg-app #mm-grimoire .mm-zoom:is(.mm-zoom-t,.mm-zoom-a){padding-left:48px;padding-right:48px;}
@media(max-width:600px){#mmg-app #mm-grimoire .mm-zoom:is(.mm-zoom-t,.mm-zoom-a){padding-left:36px;padding-right:36px;}}
/* Moons on the Grimoire glow exactly like the moon in the Today sky. */
#mmg-app #mm-grimoire .mm-moon-card-image img{filter:drop-shadow(0 0 16px #d5e5e933);}
#mmg-app #mm-grimoire .mm-moon-card-disc-full{box-shadow:0 0 16px #d5e5e933;}
/* A moon that has passed: the countdown pill keeps its shape but loses its fill. */
#mmg-app #mm-grimoire .mm-moon-card .mm-moon-card-when.mm-moon-card-when-passed{background:transparent;}
#mmg-app #mm-grimoire .mm-daily-dialog:is([data-kind=tip],[data-kind=affirmation]) .mm-tip-actions{margin-top:calc(10px + var(--mm-desc,0px));}
#mmg-app #mm-grimoire .mm-zoom-t .mm-zoom-actions{margin-top:calc(17px + var(--mm-desc,0px));}

/* ===== 1.6.54 ===== */
/* Moon cards use the Today sky's own stars: faint dust layers + the same twinkling dots. */
#mmg-app #mm-grimoire .mm-moon-card>.mm-daily-stars{position:absolute;inset:0;z-index:-1;pointer-events:none;overflow:hidden;-webkit-mask-image:none;mask-image:none;}
#mmg-app #mm-grimoire .mm-moon-card>.mm-daily-stars i{display:block;}
#mmg-app #mm-grimoire .mm-moon-card::before,#mmg-app #mm-grimoire .mm-moon-card::after{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;opacity:.12;}
#mmg-app #mm-grimoire .mm-moon-card::before{background-image:radial-gradient(circle at 12% 23%,#f7efdd 0 1px,transparent 1.7px),radial-gradient(circle at 31% 68%,#c1d7db 0 .6px,transparent 1.3px),radial-gradient(circle at 63% 19%,#f7efdd 0 .8px,transparent 1.5px),radial-gradient(circle at 87% 57%,#c1d7db 0 .7px,transparent 1.4px);background-size:173px 137px,227px 191px,293px 157px,137px 223px;}
#mmg-app #mm-grimoire .mm-moon-card::after{background:radial-gradient(circle at 22% 30%,#fff5de 0 1px,transparent 2px),radial-gradient(circle at 73% 52%,#d5e5ed 0 1px,transparent 2px),radial-gradient(circle at 44% 84%,#fff5de 0 .8px,transparent 1.8px);background-size:269px 217px;}
/* Moon close-up: back to the centred composition, one continuous sky (no seam). */
#mmg-app #mm-grimoire .mm-zoom.mm-zoom-m{background:radial-gradient(ellipse at 50% 130%,#25313b 0,transparent 65%),linear-gradient(115deg,#090e14,#17212a 50%,#090e14);}
#mmg-app #mm-grimoire .mm-zoom-m .mm-zoom-body{background:none;}
#mmg-app #mm-grimoire .mm-moon-card.mm-moon-card-big{background:none;border:0;align-items:center;text-align:center;padding:60px 28px 0;}
#mmg-app #mm-grimoire .mm-moon-card-big .mm-moon-card-row{flex-direction:column;justify-content:center;gap:16px;}
#mmg-app #mm-grimoire .mm-moon-card-big .mm-moon-card-text{align-items:center;text-align:center;}
#mmg-app #mm-grimoire .mm-moon-card-big .mm-moon-card-image,#mmg-app #mm-grimoire .mm-moon-card-big .mm-moon-card-image img{width:150px;height:150px;}
#mmg-app #mm-grimoire .mm-moon-card-big .mm-moon-card-title{font-size:30px;}
@media(min-width:601px){#mmg-app #mm-grimoire .mm-daily-dialog:is([data-kind=tip],[data-kind=affirmation]) .mm-tip-actions{margin-top:calc(8px + var(--mm-desc,0px));}#mmg-app #mm-grimoire .mm-daily-dialog:is([data-kind=tip],[data-kind=affirmation]){padding-bottom:30px!important;}#mmg-app #mm-grimoire .mm-zoom-t .mm-zoom-actions{margin-top:calc(15px + var(--mm-desc,0px));}}
/* Moon card pieces: side column (moon + pill on phones), the night-sky divider strip, star sets per screen size. */
#mmg-app #mm-grimoire .mm-moon-card-side{display:flex;flex-direction:column;align-items:center;flex:none;}
#mmg-app #mm-grimoire .mm-moon-card-divider{display:none;}
#mmg-app #mm-grimoire .mm-moon-card-when-side{display:none;}
#mmg-app #mm-grimoire .mm-moon-card>.mm-stars-narrow{display:none;}
@media(max-width:600px){
  #mmg-app #mm-grimoire .mm-moon-card:not(.mm-moon-card-big) .mm-moon-card-row{align-items:stretch;gap:0;}
  #mmg-app #mm-grimoire .mm-moon-card:not(.mm-moon-card-big) .mm-moon-card-side{justify-content:center;padding-right:18px;}
  #mmg-app #mm-grimoire .mm-moon-card:not(.mm-moon-card-big) .mm-moon-card-image,#mmg-app #mm-grimoire .mm-moon-card:not(.mm-moon-card-big) .mm-moon-card-image img{width:84px;height:84px;}
  #mmg-app #mm-grimoire .mm-moon-card:not(.mm-moon-card-big) .mm-moon-card-when-side{display:inline-flex;margin-top:10px;white-space:nowrap;}
  #mmg-app #mm-grimoire .mm-moon-card:not(.mm-moon-card-big) .mm-moon-card-when-main{display:none;}
  /* The same thin line the Today sky uses between its cells. */
  #mmg-app #mm-grimoire .mm-moon-card:not(.mm-moon-card-big) .mm-moon-card-divider{display:block;flex:none;width:1px;align-self:stretch;background:var(--mm-sky-line);}
  #mmg-app #mm-grimoire .mm-moon-card:not(.mm-moon-card-big) .mm-moon-card-text{justify-content:center;padding-left:18px;}
  #mmg-app #mm-grimoire .mm-moon-card:not(.mm-moon-card-big) .mm-moon-card-date{margin-top:8px;}
  #mmg-app #mm-grimoire .mm-moon-card:not(.mm-moon-card-big){padding:18px 20px;}
  #mmg-app #mm-grimoire .mm-moon-card>.mm-stars-wide{display:none;}
  #mmg-app #mm-grimoire .mm-moon-card>.mm-stars-narrow{display:block;}
}

/* ===== 1.6.55 ===== */
/* One close button everywhere: 44px, 25px ×, rounded square (8px) on hover. */
#mmg-app .mmg-support-close,#mmg-app #mm-grimoire .mm-daily-dialog .mmg-support-close,#mmg-app #mm-grimoire .mm-daily-dialog[data-kind^=moon] .mmg-support-close,#mmg-app #mm-grimoire .mm-zoom .mm-zoom-close{width:44px;height:44px;min-height:44px;padding:0;border:0!important;border-radius:var(--mm-radius-button)!important;background:transparent!important;box-shadow:none!important;color:#000!important;mix-blend-mode:normal!important;font-size:25px!important;line-height:1;transition:background-color .15s ease,color .2s ease;}
@media(hover:hover){#mmg-app .mmg-support-close:hover,#mmg-app #mm-grimoire .mm-daily-dialog .mmg-support-close:hover,#mmg-app #mm-grimoire .mm-zoom .mm-zoom-close:hover{background:var(--mm-tint-hover)!important;}}
#mmg-app .mmg-support-close:active,#mmg-app #mm-grimoire .mm-daily-dialog .mmg-support-close:active,#mmg-app #mm-grimoire .mm-zoom .mm-zoom-close:active{background:var(--mm-tint-press)!important;}
/* On the night sky the × is light, and so is its square. */
#mmg-app #mm-grimoire .mmg-support-close.mm-close-on-dark,#mmg-app #mm-grimoire .mm-zoom .mm-zoom-close.mm-close-on-dark{color:#f7efdd!important;}
@media(hover:hover){#mmg-app #mm-grimoire .mmg-support-close.mm-close-on-dark:hover,#mmg-app #mm-grimoire .mm-zoom .mm-zoom-close.mm-close-on-dark:hover{background:rgba(247,239,221,.14)!important;}}
#mmg-app #mm-grimoire .mmg-support-close.mm-close-on-dark:active,#mmg-app #mm-grimoire .mm-zoom .mm-zoom-close.mm-close-on-dark:active{background:rgba(247,239,221,.2)!important;}
/* Font Awesome bells (filled icons). */
#mmg-app svg.mm-fa-bell{fill:currentColor!important;stroke:none!important;}
#mmg-app #mm-grimoire .mm-tip-icon svg.mm-fa-bell{width:20px;height:20px;}
#mmg-app #mm-grimoire .mm-daily-next-bell svg.mm-fa-bell{color:#c1d1d2!important;fill:#c1d1d2!important;}
#mmg-app #mm-grimoire .mm-moon-remind-button svg.mm-fa-bell{fill:var(--mm-button-text)!important;}
/* Bell on the saved moon sticker: bottom-right corner, light on the sky. */
#mmg-app #mm-grimoire .mm-moon-card{position:relative;}
#mmg-app #mm-grimoire .mm-moon-bell.mm-moon-bell-corner{position:absolute;right:8px;bottom:8px;z-index:2;}
#mmg-app #mm-grimoire .mm-moon-bell{overflow:visible;}
#mmg-app #mm-grimoire .mm-moon-bell.mm-keep-tip-pop svg{animation:mm-pop-in .4s var(--mmg-ease) both;}
/* "Reminder set!" note rising above the bell, like "Added!" in the menu, in light ink on the sky. */
#mmg-app #mm-grimoire .mm-bell-note{color:#f7efdd;font-size:20px;}
#mmg-app #mm-grimoire .mm-bell-note .mm-nav-spark{fill:#f7efdd;}
#mmg-app #mm-grimoire .mm-moon-bell-corner .mm-bell-note{left:auto;right:0;transform:none;animation-name:mm-bell-note;}
@keyframes mm-bell-note{0%{opacity:0;transform:translateY(8px) rotate(-4deg);}16%{opacity:1;transform:translateY(0) rotate(-4deg);}78%{opacity:1;transform:translateY(-2px) rotate(-4deg);}100%{opacity:0;transform:translateY(-10px) rotate(-4deg);}}
@media(prefers-reduced-motion:reduce){#mmg-app #mm-grimoire .mm-moon-bell-on svg{animation:none;}}
#mmg-app #mm-grimoire .mm-moon-card>.mm-daily-stars.mm-stars-faint{opacity:.35;}
/* The bell's note sits to the left of the bell, so it never covers the moon's text. */
#mmg-app #mm-grimoire .mm-moon-bell-corner .mm-bell-note{left:auto;right:calc(100% + 2px);bottom:auto;top:50%;margin-top:-11px;transform:none;animation-name:mm-bell-note-side;}
@keyframes mm-bell-note-side{0%{opacity:0;transform:translateX(6px) rotate(-4deg);}16%{opacity:1;transform:translateX(0) rotate(-4deg);}80%{opacity:1;transform:translateX(0) rotate(-4deg);}100%{opacity:0;transform:translateX(-4px) rotate(-4deg);}}
/* Bell turned on: just a little burst of sparkles above it (no words over the moon's text). */
#mmg-app #mm-grimoire .mm-moon-bell .mm-bell-note,#mmg-app #mm-grimoire .mm-moon-bell-corner .mm-bell-note{left:50%;right:auto;top:auto;bottom:calc(100% - 6px);margin:0;gap:4px;transform:translateX(-50%);animation:mm-nav-added 1.6s var(--mmg-ease) both;}
/* Close-up: the faint star dust also stays out of the centre. */
#mmg-app #mm-grimoire .mm-moon-card-big::before,#mmg-app #mm-grimoire .mm-moon-card-big::after{-webkit-mask-image:radial-gradient(ellipse 70% 60% at 50% 55%,transparent 55%,#000 100%);mask-image:radial-gradient(ellipse 70% 60% at 50% 55%,transparent 55%,#000 100%);}
/* Bell sparkle burst: each star its own size, spot and timing. */
#mmg-app #mm-grimoire .mm-bell-burst{position:absolute;left:50%;top:30%;width:0;height:0;pointer-events:none;z-index:4;}
#mmg-app #mm-grimoire .mm-tip-icon .mm-bell-burst svg{position:absolute;left:var(--x);top:var(--y);width:var(--s);height:var(--s);fill:#f7efdd!important;color:#f7efdd!important;opacity:0;animation:mm-bell-burst 1.05s cubic-bezier(.2,.7,.3,1) var(--d) both;}
@keyframes mm-bell-burst{0%{opacity:0;transform:scale(.2) rotate(0);}35%{opacity:1;transform:scale(1.15) rotate(var(--r));}100%{opacity:0;transform:translateY(-8px) scale(.7) rotate(calc(var(--r) + 60deg));}}
@media(prefers-reduced-motion:reduce){#mmg-app #mm-grimoire .mm-bell-burst{display:none;}}

/* ===== 1.6.56: Coming Up + Moon Calendar ===== */
#mmg-app #mm-grimoire .mm-daily-cals{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;margin-top:16px;}
@media(min-width:900px){#mmg-app #mm-grimoire .mm-daily-cals{grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;}}
#mmg-app #mm-grimoire .mm-cal-kicker{margin:0;font:400 var(--mm-text-small)/1.5 var(--mm-font-body);letter-spacing:.12em;text-transform:uppercase;color:var(--mm-primary);text-align:center;}
#mmg-app #mm-grimoire .mm-cal-title{margin:6px 0 0;font:400 32px/1.2 var(--mm-font-display);color:var(--mm-title-accent);text-align:center;text-transform:none;letter-spacing:0;}
@media(max-width:600px){#mmg-app #mm-grimoire .mm-cal-title{font-size:28px;}}
/* Coming Up: one row of event cards, scrolls sideways. */
#mmg-app #mm-grimoire .mm-cal-coming{display:flex;flex-direction:column;min-width:0;}
#mmg-app #mm-grimoire .mm-ev-strip{display:flex;gap:10px;margin:18px calc(-1 * var(--mm-daily-padding)) 0;padding:2px var(--mm-daily-padding) 8px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;scroll-padding-inline:var(--mm-daily-padding);scrollbar-width:thin;scrollbar-color:rgba(140,120,100,.42) transparent;}
#mmg-app #mm-grimoire .mm-ev,#mmg-app #mm-grimoire .mm-ev:is(:hover,:focus,:active){appearance:none;flex:none;display:flex;flex-direction:column;align-items:center;gap:2px;width:148px;min-height:0;margin:0;padding:16px 12px 14px;scroll-snap-align:start;border:var(--mm-border-width) solid var(--mm-outline-soft)!important;border-radius:12px;background:transparent!important;box-shadow:none!important;color:var(--mm-fg)!important;font:inherit;text-transform:none;letter-spacing:0;text-align:center;cursor:pointer;transition:background-color .15s ease,border-color .15s ease;}
@media(hover:hover){#mmg-app #mm-grimoire .mm-ev:hover{background:var(--mm-tint)!important;border-color:var(--mm-border)!important;}}
#mmg-app #mm-grimoire .mm-ev:focus-visible{outline:2px solid var(--mm-focus-color);outline-offset:2px;}
#mmg-app #mm-grimoire .mm-ev-image,#mmg-app #mm-grimoire .mm-ev-img{display:block;width:64px;height:64px;object-fit:contain;}
#mmg-app #mm-grimoire .mm-ev-image{margin-bottom:8px;}
#mmg-app #mm-grimoire .mm-ev-title{font:400 20px/1.2 var(--mm-font-display);color:var(--mm-title-accent);}
#mmg-app #mm-grimoire .mm-ev-sub{font:400 13px/1.35 var(--mm-font-body);color:var(--mm-muted);}
#mmg-app #mm-grimoire .mm-ev-date{margin-top:8px;font:400 var(--mm-text-small)/1.4 var(--mm-font-body);color:var(--mm-fg);}
#mmg-app #mm-grimoire .mm-ev-when{margin-top:8px;padding:2px 10px;border:1px solid var(--mm-outline-soft);border-radius:999px;font:400 13px/1.5 var(--mm-font-body);color:var(--mm-fg);}
#mmg-app #mm-grimoire .mm-cal-empty{margin:18px 0 0;text-align:center;font:italic 400 var(--mm-text-small)/1.5 var(--mm-font-body);color:var(--mm-muted);}
/* Moon Calendar: the Today night sky, a square for every day. */
#mmg-app #mm-grimoire .mm-moon-cal{position:relative;isolation:isolate;overflow:hidden;padding:20px var(--mm-daily-padding) var(--mm-daily-padding);border:1px solid #05080c;border-radius:12px;background:radial-gradient(ellipse at 50% 130%,#25313b 0,transparent 65%),linear-gradient(115deg,#090e14,#17212a 50%,#090e14);color:#f7efdd;}
#mmg-app #mm-grimoire .mm-moon-cal::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;opacity:.12;background-image:radial-gradient(circle at 12% 23%,#f7efdd 0 1px,transparent 1.7px),radial-gradient(circle at 31% 68%,#c1d7db 0 .6px,transparent 1.3px),radial-gradient(circle at 63% 19%,#f7efdd 0 .8px,transparent 1.5px),radial-gradient(circle at 87% 57%,#c1d7db 0 .7px,transparent 1.4px);background-size:173px 137px,227px 191px,293px 157px,137px 223px;}
#mmg-app #mm-grimoire .mm-moon-cal .mm-cal-kicker{color:#c6d0d5;}
#mmg-app #mm-grimoire .mm-moon-cal .mm-cal-title{color:#f7efdd;}
#mmg-app #mm-grimoire .mm-mc-week,#mmg-app #mm-grimoire .mm-mc-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;}
#mmg-app #mm-grimoire .mm-mc-week{margin-top:18px;margin-bottom:6px;}
#mmg-app #mm-grimoire .mm-mc-week span{font:400 12px/1.5 var(--mm-font-body);letter-spacing:.12em;text-transform:uppercase;color:#919da5;text-align:center;}
#mmg-app #mm-grimoire .mm-mc-day,#mmg-app #mm-grimoire .mm-mc-day:is(:hover,:focus,:active){appearance:none;position:relative;display:grid;grid-template-rows:auto 1fr;place-items:center;aspect-ratio:4/5;min-width:0;min-height:0;margin:0;padding:4px 2px 6px;border:1px solid transparent!important;border-radius:8px;background:transparent!important;box-shadow:none!important;color:#f7efdd!important;font:inherit;cursor:pointer;transition:background-color .15s ease;}
@media(hover:hover){#mmg-app #mm-grimoire .mm-mc-day:hover{background:rgba(247,239,221,.08)!important;}}
#mmg-app #mm-grimoire .mm-mc-day:focus-visible{outline:2px solid #f7efdd;outline-offset:1px;}
/* Main moon events: the night-sky pill look (soft fill, light edge). Today: a cream outline. */
#mmg-app #mm-grimoire .mm-mc-day.mm-mc-event{background:var(--mm-sky-fill)!important;border-color:var(--mm-sky-line-strong)!important;}
#mmg-app #mm-grimoire .mm-mc-day.mm-mc-today{border-color:#f7efdd!important;}
#mmg-app #mm-grimoire .mm-mc-num{justify-self:start;padding-left:3px;font:400 12px/1.2 var(--mm-font-body);color:#c6d0d5;}
#mmg-app #mm-grimoire .mm-mc-today .mm-mc-num{color:#f7efdd;}
#mmg-app #mm-grimoire .mm-mc-phase{display:grid;place-items:center;width:100%;}
#mmg-app #mm-grimoire .mm-mc-phase-img{display:block;width:62%;max-width:44px;aspect-ratio:1;height:auto;object-fit:contain;filter:drop-shadow(0 0 8px #d5e5e922);}
#mmg-app #mm-grimoire .mm-mc-sign{position:absolute;right:4px;bottom:4px;display:block;}
#mmg-app #mm-grimoire .mm-mc-sign-img{display:block;width:18px;height:18px;object-fit:contain;opacity:.9;}
#mmg-app #mm-grimoire .mm-mc-blank{display:block;}
@media(max-width:600px){#mmg-app #mm-grimoire .mm-mc-week,#mmg-app #mm-grimoire .mm-mc-grid{gap:3px;}#mmg-app #mm-grimoire .mm-mc-sign-img{width:12px;height:12px;}#mmg-app #mm-grimoire .mm-mc-sign{right:2px;bottom:2px;}#mmg-app #mm-grimoire .mm-mc-num{font-size:11px;padding-left:2px;}}
/* Day popup (moon popup look). */
#mmg-app #mm-grimoire .mm-moon-sky-change{margin:12px 0 0;font:400 var(--mm-text-small)/1.4 var(--mm-font-body);color:#c1d1d2;}
#mmg-app #mm-grimoire .mm-day-events{list-style:none;margin:20px 0 0;padding:0;display:flex;flex-direction:column;gap:12px;}
#mmg-app #mm-grimoire .mm-day-event{display:flex;align-items:center;gap:14px;margin:0;padding:14px 16px;border:1px solid var(--mm-outline-soft);border-radius:12px;list-style:none;}
#mmg-app #mm-grimoire .mm-day-event-image,#mmg-app #mm-grimoire .mm-day-event-img{flex:none;display:block;width:52px;height:52px;object-fit:contain;}
#mmg-app #mm-grimoire .mm-day-event-text{display:flex;flex-direction:column;align-items:flex-start;min-width:0;text-align:left;}
#mmg-app #mm-grimoire .mm-day-event-title{font:400 20px/1.2 var(--mm-font-display);color:var(--mm-title-accent);}
#mmg-app #mm-grimoire .mm-day-event-sub{font:400 var(--mm-text-small)/1.4 var(--mm-font-body);color:var(--mm-muted);}
#mmg-app #mm-grimoire .mm-day-event-link{margin-top:4px;font:400 var(--mm-text-small)/1.4 var(--mm-font-body);color:var(--mm-primary);text-decoration:underline;text-underline-offset:.2em;}
/* Desktop: two rows of event cards, still scrolling sideways, so the card fills its half. */
@media(min-width:900px){#mmg-app #mm-grimoire .mm-ev-strip{display:grid;grid-template-rows:repeat(2,auto);grid-auto-flow:column;grid-auto-columns:148px;align-content:start;}#mmg-app #mm-grimoire .mm-ev,#mmg-app #mm-grimoire .mm-ev:is(:hover,:focus,:active){width:auto;}}

/* ===== 1.6.57 ===== */
/* Coming Up as an agenda list: picture on the left, date / name / detail beside it, countdown on the right, thin lines between rows. */
#mmg-app #mm-grimoire .mm-agenda{list-style:none;margin:18px 0 0;padding:0;border-top:1px solid var(--mm-outline-soft);}
#mmg-app #mm-grimoire .mm-ag-item{margin:0;padding:0;list-style:none;border-bottom:1px solid var(--mm-outline-soft);}
#mmg-app #mm-grimoire .mm-ag-row,#mmg-app #mm-grimoire .mm-ag-row:is(:hover,:focus,:active){appearance:none;display:flex;align-items:center;gap:14px;width:100%;min-height:0;margin:0;padding:12px 8px;border:0!important;border-radius:0;background:transparent!important;box-shadow:none!important;color:var(--mm-fg)!important;font:inherit;text-align:left;text-transform:none;letter-spacing:0;cursor:pointer;transition:background-color .15s ease;}
@media(hover:hover){#mmg-app #mm-grimoire .mm-ag-row:hover{background:var(--mm-tint)!important;}}
#mmg-app #mm-grimoire .mm-ag-row:focus-visible{outline:2px solid var(--mm-focus-color);outline-offset:-2px;}
#mmg-app #mm-grimoire .mm-ag-image,#mmg-app #mm-grimoire .mm-ag-img{flex:none;display:block;width:52px;height:52px;object-fit:contain;}
#mmg-app #mm-grimoire .mm-ag-text{display:flex;flex-direction:column;align-items:flex-start;flex:1;min-width:0;}
#mmg-app #mm-grimoire .mm-ag-date{font:400 13px/1.4 var(--mm-font-body);letter-spacing:.12em;text-transform:uppercase;color:var(--mm-primary);}
#mmg-app #mm-grimoire .mm-ag-title{margin-top:1px;font:400 20px/1.25 var(--mm-font-display);color:var(--mm-title-accent);}
#mmg-app #mm-grimoire .mm-ag-sub{font:400 var(--mm-text-small)/1.4 var(--mm-font-body);color:var(--mm-muted);}
#mmg-app #mm-grimoire .mm-ag-when{flex:none;padding:2px 10px;border:1px solid var(--mm-outline-soft);border-radius:999px;font:400 13px/1.5 var(--mm-font-body);color:var(--mm-fg);white-space:nowrap;}
/* Moon Calendar as a table, with the same thin lines as the Today moon sky. */
#mmg-app #mm-grimoire .mm-mc-week,#mmg-app #mm-grimoire .mm-mc-grid{gap:0;}
#mmg-app #mm-grimoire .mm-mc-week{margin:18px 0 0;padding-bottom:6px;border-bottom:1px solid var(--mm-sky-line);}
#mmg-app #mm-grimoire .mm-mc-grid{border-left:1px solid var(--mm-sky-line);}
#mmg-app #mm-grimoire .mm-mc-grid>*{border-right:1px solid var(--mm-sky-line);border-bottom:1px solid var(--mm-sky-line);}
#mmg-app #mm-grimoire .mm-mc-day,#mmg-app #mm-grimoire .mm-mc-day:is(:hover,:focus,:active){border:0!important;border-right:1px solid var(--mm-sky-line)!important;border-bottom:1px solid var(--mm-sky-line)!important;border-radius:0;aspect-ratio:1/1;}
#mmg-app #mm-grimoire .mm-mc-day.mm-mc-event{background:var(--mm-sky-fill)!important;border-color:var(--mm-sky-line)!important;}
#mmg-app #mm-grimoire .mm-mc-day.mm-mc-today{box-shadow:inset 0 0 0 1px #f7efdd!important;}
#mmg-app #mm-grimoire .mm-mc-day:focus-visible{outline:2px solid #f7efdd;outline-offset:-2px;}
/* Desktop: the calendar table stretches to the height of the Coming Up list beside it. */
@media(min-width:900px){
  #mmg-app #mm-grimoire .mm-moon-cal{display:flex;flex-direction:column;}
  #mmg-app #mm-grimoire .mm-mc-grid{flex:1;grid-auto-rows:1fr;}
  #mmg-app #mm-grimoire .mm-mc-day,#mmg-app #mm-grimoire .mm-mc-day:is(:hover,:focus,:active){aspect-ratio:auto;min-height:64px;}
  #mmg-app #mm-grimoire .mm-ag-row,#mmg-app #mm-grimoire .mm-ag-row:is(:hover,:focus,:active){padding:10px 8px;}
  #mmg-app #mm-grimoire .mm-ag-image,#mmg-app #mm-grimoire .mm-ag-img{width:46px;height:46px;}
}

/* ===== 1.6.58: compact Coming Up (scrolls inside), normal calendar squares ===== */
#mmg-app #mm-grimoire .mm-mc-day,#mmg-app #mm-grimoire .mm-mc-day:is(:hover,:focus,:active){aspect-ratio:1/1!important;min-height:0!important;}
@media(min-width:900px){#mmg-app #mm-grimoire .mm-mc-grid{flex:none;grid-auto-rows:auto;}}
#mmg-app #mm-grimoire .mm-agenda-wrap{position:relative;margin-top:18px;}
#mmg-app #mm-grimoire .mm-agenda{margin:0;max-height:360px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:rgba(140,120,100,.42) transparent;}
#mmg-app #mm-grimoire .mm-agenda:focus-visible{outline:2px solid var(--mm-focus-color);outline-offset:2px;}
/* Desktop: Coming Up takes exactly the calendar's height; its list scrolls inside. */
@media(min-width:900px){
  #mmg-app #mm-grimoire .mm-agenda-wrap{flex:1;min-height:240px;}
  #mmg-app #mm-grimoire .mm-agenda{position:absolute;inset:0;max-height:none;}
}
/* Titles in these sections use the standard heading font (Cardo). */
#mmg-app #mm-grimoire :is(.mm-cal-title,.mm-ag-title,.mm-day-event-title,.mm-ev-title){font-family:var(--mm-font-heading);font-weight:400;}

/* ===== 1.6.59: balanced heights + a clear scroll cue on Coming Up ===== */
#mmg-app #mm-grimoire .mm-mc-day,#mmg-app #mm-grimoire .mm-mc-day:is(:hover,:focus,:active){aspect-ratio:5/6!important;}
#mmg-app #mm-grimoire .mm-mc-phase-img{width:66%;max-width:46px;}
#mmg-app #mm-grimoire .mm-agenda{max-height:440px;scrollbar-width:none;padding-right:14px;}
#mmg-app #mm-grimoire .mm-agenda::-webkit-scrollbar{display:none;}
@media(min-width:900px){#mmg-app #mm-grimoire .mm-agenda{max-height:none;}}
/* The popups' slim rail, always visible while there is more to see. */
#mmg-app #mm-grimoire .mm-agenda-rail{top:6px;bottom:6px;right:0;width:4px;border-radius:4px;background:rgba(140,120,100,.14);}
#mmg-app #mm-grimoire .mm-agenda-rail span{background:rgba(140,120,100,.55);transition:top .08s linear;}
/* …and the last visible row fades softly while more rows wait below. */
#mmg-app #mm-grimoire .mm-agenda-wrap.mm-agenda-more .mm-agenda{-webkit-mask-image:linear-gradient(#000 calc(100% - 44px),rgba(0,0,0,.25));mask-image:linear-gradient(#000 calc(100% - 44px),rgba(0,0,0,.25));}

/* ===== 1.6.60 ===== */
/* Calendar day: number top-left, zodiac symbol top-right (same size and colour), moon centred below with equal space. */
#mmg-app #mm-grimoire .mm-mc-day,#mmg-app #mm-grimoire .mm-mc-day:is(:hover,:focus,:active){display:flex!important;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:6px;aspect-ratio:5/6!important;padding:6px!important;}
#mmg-app #mm-grimoire .mm-mc-top{display:flex;align-items:center;justify-content:space-between;line-height:1;}
#mmg-app #mm-grimoire .mm-mc-num,#mmg-app #mm-grimoire .mm-mc-sign{position:static;padding:0;font:400 12px/1 var(--mm-font-body);color:#c6d0d5;}
#mmg-app #mm-grimoire .mm-mc-sign{font-family:"Segoe UI Symbol","Apple Symbols","Noto Sans Symbols","Noto Sans Symbols 2","DejaVu Sans",sans-serif;font-variant-emoji:text;}
#mmg-app #mm-grimoire .mm-mc-today :is(.mm-mc-num,.mm-mc-sign){color:#f7efdd;}
#mmg-app #mm-grimoire .mm-mc-phase{flex:1;display:grid;place-items:center;min-height:0;}
#mmg-app #mm-grimoire .mm-mc-phase-img{width:auto;height:100%;max-height:44px;max-width:100%;aspect-ratio:1;}
@media(max-width:600px){#mmg-app #mm-grimoire .mm-mc-day,#mmg-app #mm-grimoire .mm-mc-day:is(:hover,:focus,:active){padding:4px!important;gap:3px;}#mmg-app #mm-grimoire :is(.mm-mc-num,.mm-mc-sign){font-size:11px;}}
/* Coming Up lines: every line the same length; the top line stays put while rows scroll under it. */
#mmg-app #mm-grimoire .mm-agenda{border-top:0;}
#mmg-app #mm-grimoire .mm-agenda-wrap::before{content:"";position:absolute;left:0;right:14px;top:0;height:1px;background:var(--mm-outline-soft);z-index:1;}
#mmg-app #mm-grimoire .mm-agenda-wrap .mm-agenda{padding-top:1px;}
/* 1.6.61: today stands out — Calendar: the date sits in a filled cream circle (the convention in Google / Apple calendars) on a slightly lighter square.
   Coming Up: today's rows get a soft tint and a filled "Today" pill. Shape + fill, not colour alone. */
#mmg-app #mm-grimoire .mm-mc-day.mm-mc-today{box-shadow:none!important;background:rgba(247,239,221,.08)!important;}
#mmg-app #mm-grimoire .mm-mc-day.mm-mc-today.mm-mc-event{background:var(--mm-sky-fill-hover)!important;}
#mmg-app #mm-grimoire .mm-mc-today .mm-mc-num{display:inline-grid;place-items:center;min-width:20px;height:20px;margin:-4px 0 0 -4px;padding:0 4px;border-radius:999px;background:#f7efdd;color:#0b1118!important;font-size:12px;}
@media(max-width:600px){#mmg-app #mm-grimoire .mm-mc-today .mm-mc-num{min-width:18px;height:18px;margin:-3px 0 0 -3px;font-size:11px;}}
#mmg-app #mm-grimoire .mm-ag-today .mm-ag-row{background:var(--mm-tint)!important;}
@media(hover:hover){#mmg-app #mm-grimoire .mm-ag-today .mm-ag-row:hover{background:var(--mm-tint-hover)!important;}}
#mmg-app #mm-grimoire .mm-ag-today .mm-ag-when{background:var(--mm-button-bg);border-color:var(--mm-button-bg);color:var(--mm-button-text);}
/* 1.6.62 — calendar moons always fit inside their square; Coming Up scroll bar sits near the card edge */
#mmg-app #mm-grimoire .mm-mc-top{height:12px;flex:none;}
#mmg-app #mm-grimoire .mm-mc-today .mm-mc-num{margin:-4px 0 -4px -4px;}
#mmg-app #mm-grimoire .mm-mc-phase{position:relative;flex:1 1 0;min-height:0;}
#mmg-app #mm-grimoire .mm-mc-phase-img{position:absolute;inset:0;margin:auto;width:auto;height:100%;max-height:44px;max-width:100%;aspect-ratio:1;object-fit:contain;}
@media(max-width:600px){#mmg-app #mm-grimoire .mm-mc-top{height:11px;}#mmg-app #mm-grimoire .mm-mc-today .mm-mc-num{margin:-3.5px 0 -3.5px -3px;}}
#mmg-app #mm-grimoire .mm-agenda,#mmg-app #mm-grimoire .mm-agenda-wrap .mm-agenda{padding-right:0;}
#mmg-app #mm-grimoire .mm-agenda-wrap::before{right:0;}
#mmg-app #mm-grimoire .mm-agenda-rail{right:calc(10px - var(--mm-daily-padding));}
/* Saved moon stickers: the thin night-sky line between moon and text on every screen size (was phones only). */
#mmg-app #mm-grimoire .mm-moon-card:not(.mm-moon-card-big) .mm-moon-card-row{align-items:stretch;gap:0;}
#mmg-app #mm-grimoire .mm-moon-card:not(.mm-moon-card-big) .mm-moon-card-side{justify-content:center;padding-right:24px;}
#mmg-app #mm-grimoire .mm-moon-card:not(.mm-moon-card-big) .mm-moon-card-divider{display:block;flex:none;width:1px;align-self:stretch;background:var(--mm-sky-line);}
#mmg-app #mm-grimoire .mm-moon-card:not(.mm-moon-card-big) .mm-moon-card-text{justify-content:center;padding-left:24px;}
@media(max-width:600px){#mmg-app #mm-grimoire .mm-moon-card:not(.mm-moon-card-big) .mm-moon-card-side{padding-right:18px;}#mmg-app #mm-grimoire .mm-moon-card:not(.mm-moon-card-big) .mm-moon-card-text{padding-left:18px;}}
/* 1.6.64 — Today in the Moon Calendar: no white circle. A soft moonlit glow in the square, the number in full cream with a short line under it. */
#mmg-app #mm-grimoire .mm-mc-today .mm-mc-num,#mmg-app #mm-grimoire .mm-mc-today .mm-mc-num{display:inline-block;position:relative;min-width:0;height:auto;margin:0;padding:0;border-radius:0;background:none;color:#f7efdd!important;font-size:12px;}
#mmg-app #mm-grimoire .mm-mc-today .mm-mc-num::after{content:"";position:absolute;left:0;right:0;bottom:-4px;height:2px;border-radius:2px;background:#f7efdd;}
#mmg-app #mm-grimoire .mm-mc-day.mm-mc-today,#mmg-app #mm-grimoire .mm-mc-day.mm-mc-today.mm-mc-event{background:radial-gradient(circle at 50% 62%,rgba(247,239,221,.16),rgba(247,239,221,.05) 70%)!important;}
@media(max-width:600px){#mmg-app #mm-grimoire .mm-mc-today .mm-mc-num{margin:0;font-size:11px;}#mmg-app #mm-grimoire .mm-mc-today .mm-mc-num::after{bottom:-3px;height:1.5px;}}
/* ===== 1.6.65 ===== */
/* Today's Mini Ritual: the Today's Report frame (beige popup, kicker + Cardo title, body text) with friendlier instructions —
   each sentence is a numbered step with a soft round number, and a short handwritten send-off at the end. */
#mmg-app #mm-grimoire .mm-daily-dialog[data-kind=ritual] .mm-ritual-steps{list-style:none;margin:0;padding:0;display:grid;gap:14px;counter-reset:none;}
#mmg-app #mm-grimoire .mm-daily-dialog[data-kind=ritual] .mm-ritual-step{display:grid;grid-template-columns:32px minmax(0,1fr);gap:14px;align-items:start;margin:0;padding:0;}
#mmg-app #mm-grimoire .mm-daily-dialog[data-kind=ritual] .mm-ritual-step::before{content:none;}
#mmg-app #mm-grimoire .mm-daily-dialog[data-kind=ritual] .mm-ritual-num{display:grid;place-items:center;width:32px;height:32px;border-radius:999px;background:var(--mm-chip-bg);color:var(--mm-primary);font:400 17px/1 var(--mm-font-heading);}
#mmg-app #mm-grimoire .mm-daily-dialog[data-kind=ritual] .mm-ritual-step p{margin:4px 0 0;text-align:left;}
#mmg-app #mm-grimoire .mm-daily-dialog[data-kind=ritual] .mm-ritual-close{margin:18px 0 0;padding-top:14px;border-top:1px solid var(--mm-outline-soft);font:500 24px/1.3 var(--mm-font-hand);color:var(--mm-primary);text-align:center;}
/* Saved rituals (Grimoire paper and its close-up): the affirmation paper, with the theme in handwriting and the steps in the reading font. */
#mmg-app .mm-ritual-paper .mm-tip-paper-text{font:400 16px/1.6 var(--mm-font-body);color:var(--mm-text);text-align:left;}
#mmg-app .mm-ritual-paper .mm-tip-paper-text .mm-ritual-paper-title{margin:0 0 10px;font:500 26px/1.25 var(--mm-font-hand);color:var(--mm-primary);text-align:center;}
#mmg-app .mm-ritual-paper .mm-ritual-paper-steps{margin:0;padding:0 0 0 22px;display:grid;gap:8px;}
#mmg-app .mm-ritual-paper .mm-ritual-paper-steps li{margin:0;padding-left:4px;}
#mmg-app .mm-ritual-paper .mm-ritual-paper-steps li::marker{font-family:var(--mm-font-heading);color:var(--mm-primary);}
#mmg-app .mm-ritual-paper .mm-paper-pill{display:table;margin:14px auto 0;}
@media(max-width:600px){#mmg-app .mm-ritual-paper .mm-tip-paper-text{font-size:15px;}#mmg-app .mm-ritual-paper .mm-tip-paper-text .mm-ritual-paper-title{font-size:24px;}}
/* Popup: Save and Share sit under "Take your time", spaced like the affirmation popup. */
#mmg-app #mm-grimoire .mm-daily-dialog[data-kind=ritual] .mm-tip-actions{position:relative;z-index:1;display:flex;justify-content:center;gap:6px;margin:calc(10px + var(--mm-desc,0px)) 0 0;}
#mmg-app #mm-grimoire .mm-daily-dialog[data-kind=ritual] .mm-tip-share-status:empty{display:none;}
#mmg-app #mm-grimoire .mm-daily-dialog[data-kind=ritual] .mm-tip-actions{margin-top:calc(19px + var(--mm-desc,0px));}
#mmg-app #mm-grimoire .mm-daily-dialog[data-kind=ritual] .mm-popup-scroll{padding-bottom:26px;}
#mmg-app #mm-grimoire .mm-ritual-paper .mm-ritual-paper-steps,#mmg-app #mm-grimoire .mm-ritual-paper .mm-ritual-paper-steps li{font:400 15px/1.55 var(--mm-font-body);color:var(--mm-text);text-align:left;}
#mmg-app #mm-grimoire .mm-zoom .mm-ritual-paper .mm-ritual-paper-steps,#mmg-app #mm-grimoire .mm-zoom .mm-ritual-paper .mm-ritual-paper-steps li{font-size:17px;line-height:1.6;}
#mmg-app #mm-grimoire .mm-ritual-paper .mm-tip-paper-text .mm-ritual-paper-title{font:500 24px/1.25 var(--mm-font-hand);color:var(--mm-primary);}
#mmg-app #mm-grimoire .mm-zoom .mm-ritual-paper .mm-tip-paper-text .mm-ritual-paper-title{font-size:28px;margin-bottom:12px;}
@media(max-width:600px){#mmg-app #mm-grimoire .mm-ritual-paper .mm-ritual-paper-steps,#mmg-app #mm-grimoire .mm-ritual-paper .mm-ritual-paper-steps li{font-size:14.5px;}#mmg-app #mm-grimoire .mm-zoom .mm-ritual-paper .mm-ritual-paper-steps,#mmg-app #mm-grimoire .mm-zoom .mm-ritual-paper .mm-ritual-paper-steps li{font-size:16px;}}
/* 1.6.66 — Moon Calendar on phones: smaller moon with even room above and below it, so squares don't look crowded.
   Today keeps the same grid lines as every other day (no cream border on its right and bottom edges). */
#mmg-app #mm-grimoire .mm-mc-day.mm-mc-today,#mmg-app #mm-grimoire .mm-mc-day.mm-mc-today:is(:hover,:focus,:active){border-color:var(--mm-sky-line)!important;}
@media(max-width:600px){
  #mmg-app #mm-grimoire .mm-mc-day,#mmg-app #mm-grimoire .mm-mc-day:is(:hover,:focus,:active){padding:5px!important;gap:4px;aspect-ratio:4/5!important;}
  #mmg-app #mm-grimoire .mm-mc-phase-img{max-height:28px;}
  #mmg-app #mm-grimoire :is(.mm-mc-num,.mm-mc-sign){font-size:10.5px;}
}
@media(max-width:600px){#mmg-app #mm-grimoire :is(.mm-mc-week,.mm-mc-grid){margin-left:-10px;margin-right:-10px;}}
#mmg-app #mm-grimoire .mm-daily-dialog[data-kind=ritual] .mm-tip-actions{margin-top:calc(18px + var(--mm-desc,0px));}
/* Ritual popup: no send-off line; step numbers in handwriting, bigger. */
#mmg-app #mm-grimoire .mm-daily-dialog[data-kind=ritual] .mm-ritual-num{width:36px;height:36px;font:500 26px/1 var(--mm-font-hand);padding-top:1px;box-sizing:border-box;}
#mmg-app #mm-grimoire .mm-daily-dialog[data-kind=ritual] .mm-ritual-step{grid-template-columns:36px minmax(0,1fr);}
#mmg-app #mm-grimoire .mm-daily-dialog[data-kind=ritual] .mm-ritual-step p{margin-top:6px;}
@media(max-width:600px){#mmg-app #mm-grimoire .mm-daily-dialog[data-kind=ritual] .mm-tip-actions{margin-top:calc(18.5px + var(--mm-desc,0px));}}
/* Ritual popup: thin line between the last step and Save/Share (same line as the old send-off divider). */
#mmg-app #mm-grimoire .mm-daily-dialog[data-kind=ritual] .mm-ritual-rule{display:block;height:0;margin:20px 0 0;border:0;border-top:1px solid var(--mm-outline-soft);background:none;}
#mmg-app #mm-grimoire .mm-daily-dialog[data-kind=ritual] .mm-tip-actions{margin-top:30px;}
@media(max-width:600px){#mmg-app #mm-grimoire .mm-daily-dialog[data-kind=ritual] .mm-tip-actions{margin-top:30px;}}
/* Caveat digits sit right of centre and a touch low: nudge them so each number is in the middle of its circle. */
#mmg-app #mm-grimoire .mm-daily-dialog[data-kind=ritual] .mm-ritual-num{padding:0 6px 1px 0;}
#mmg-app #mm-grimoire .mm-daily-dialog[data-kind=ritual] .mm-tip-actions,#mmg-app #mm-grimoire .mm-daily-dialog[data-kind=ritual] .mm-tip-actions{margin-top:25px;}
@media(max-width:600px){#mmg-app #mm-grimoire .mm-daily-dialog[data-kind=ritual] .mm-tip-actions{margin-top:25px;}}
/* Coming Up with only a little more than fits (desktop): no scroll, both cards grow; the calendar squares get a little taller to match. */
@media(min-width:900px){
  #mmg-app #mm-grimoire .mm-cals-fit .mm-agenda{position:static;inset:auto;overflow:visible;max-height:none;}
  #mmg-app #mm-grimoire .mm-cals-fit .mm-agenda-wrap.mm-agenda-more .mm-agenda{-webkit-mask-image:none;mask-image:none;}
  #mmg-app #mm-grimoire .mm-cals-fit .mm-agenda-rail{display:none;}
  #mmg-app #mm-grimoire .mm-cals-fit .mm-mc-grid{flex:1;grid-auto-rows:1fr;}
  #mmg-app #mm-grimoire .mm-cals-fit .mm-mc-day,#mmg-app #mm-grimoire .mm-cals-fit .mm-mc-day:is(:hover,:focus,:active){aspect-ratio:auto!important;}
}
/* Saved ritual paper: step numbers in handwriting too. */
#mmg-app #mm-grimoire .mm-ritual-paper .mm-ritual-paper-steps{padding-left:26px;}
#mmg-app #mm-grimoire .mm-ritual-paper .mm-ritual-paper-steps li::marker{font:500 22px/1 var(--mm-font-hand);color:var(--mm-primary);}
#mmg-app #mm-grimoire .mm-zoom .mm-ritual-paper .mm-ritual-paper-steps li::marker{font-size:24px;}
/* More room under the titles in the Grimoire close-ups: saved ritual and note. */
#mmg-app #mm-grimoire .mm-zoom .mm-ritual-paper .mm-tip-paper-text .mm-ritual-paper-title{margin-bottom:28px;}
#mmg-app #mm-grimoire .mm-zoom-n .mm-zoom-title{margin-bottom:32px!important;}

/* ===== 1.6.68 ===== */
/* Coming Up rows are information, not buttons: no pointer, no hover. */
#mmg-app #mm-grimoire .mm-ag-row,#mmg-app #mm-grimoire .mm-ag-row:hover{cursor:default;background:transparent!important;}
#mmg-app #mm-grimoire .mm-ag-today .mm-ag-row,#mmg-app #mm-grimoire .mm-ag-today .mm-ag-row:hover{background:var(--mm-tint)!important;}
/* One button system (1.6.68). Researched against Material 3, PatternFly and current button-state guidance:
   - one filled Primary for the main action, a soft tonal Secondary for the alternative (Cancel, Use Another Email),
     and a plain Text button for the quiet escape (Undo, small Cancel);
   - same height (48px, 40px for the small text button), same 8px radius, same type, no shadows;
   - every state is visible: hover a shade darker, press darker and a touch smaller, keyboard focus a clear ring, disabled faded. */
#mmg-app{--mmb-primary:#725236;--mmb-primary-hover:#644730;--mmb-primary-press:#563c28;--mmb-on-primary:#fff8eb;
  --mmb-tonal:var(--mm-tint-hover);--mmb-tonal-hover:var(--mm-tint-press);--mmb-tonal-press:var(--mm-tint-press);--mmb-ink:#5b3f28;}
/* Shared shape */
#mmg-app #mm-grimoire :is(.mm-action,.mm-moon-remind-button,.mm-confirm-delete,.mm-confirm-cancel),
#mmg-app :is(.mmg-button,.mmg-support-send,.mmg-renamed-done,.mmg-session-notice button,.mmg-gate button,.mmg-gate input[type=submit]){
  display:inline-flex!important;align-items:center;justify-content:center;gap:8px;box-sizing:border-box;
  min-height:48px!important;padding:12px 24px!important;border:0!important;border-radius:var(--mm-radius-button)!important;box-shadow:none!important;
  font:500 16px/1.25 var(--mm-font-body)!important;letter-spacing:.01em;text-align:center;text-decoration:none!important;cursor:pointer;
  transition:background-color .15s ease,color .15s ease,transform .1s ease!important;-webkit-tap-highlight-color:transparent;}
/* Primary: filled brown */
#mmg-app #mm-grimoire :is(.mm-action,.mm-moon-remind-button,.mm-confirm-delete),
#mmg-app :is(.mmg-button,.mmg-support-send,.mmg-renamed-done,.mmg-session-notice button,.mmg-gate button:not(.mmg-secondary),.mmg-gate input[type=submit]){
  background:var(--mmb-primary)!important;color:var(--mmb-on-primary)!important;}
/* Secondary: soft tonal fill, same size, so it reads as "the other choice" */
#mmg-app #mm-grimoire .mm-confirm-cancel,#mmg-app .mmg-gate .mmg-secondary{background:var(--mmb-tonal)!important;color:var(--mmb-ink)!important;}
@media(hover:hover){#mmg-app #mm-grimoire .mm-confirm-cancel:hover,#mmg-app .mmg-gate .mmg-secondary:not(:disabled):hover{background:var(--mmb-tonal-hover)!important;}}
#mmg-app #mm-grimoire .mm-confirm-cancel:active,#mmg-app .mmg-gate .mmg-secondary:not(:disabled):active{background:var(--mmb-tonal-press)!important;transform:scale(.98);}
/* Text button: no fill until you point at it */
#mmg-app #mm-grimoire :is(.mm-toast-undo,.mm-moon-remind-cancel),#mmg-app #mm-grimoire .mm-board-toast .mm-toast-undo{
  display:inline-flex!important;align-items:center;justify-content:center;min-height:40px!important;margin:0;padding:8px 14px!important;border:0!important;border-radius:var(--mm-radius-button)!important;box-shadow:none!important;
  background:transparent!important;color:var(--mmb-ink)!important;font:500 15px/1.25 var(--mm-font-body)!important;letter-spacing:.01em;text-decoration:none!important;cursor:pointer;transition:background-color .15s ease,transform .1s ease!important;}
@media(hover:hover){#mmg-app #mm-grimoire :is(.mm-toast-undo,.mm-moon-remind-cancel):hover{background:var(--mmb-tonal)!important;}}
#mmg-app #mm-grimoire :is(.mm-toast-undo,.mm-moon-remind-cancel):active{background:var(--mmb-tonal-hover)!important;transform:scale(.98);}
#mmg-app #mm-grimoire .mm-moon-remind-cancel{margin-top:8px;}
/* Keyboard focus: a clear ring with a little gap, never removed */
#mmg-app #mm-grimoire :is(.mm-action,.mm-moon-remind-button,.mm-confirm-delete,.mm-confirm-cancel,.mm-toast-undo,.mm-moon-remind-cancel):focus-visible,
#mmg-app :is(.mmg-button,.mmg-support-send,.mmg-renamed-done,.mmg-session-notice button,.mmg-gate button,.mmg-gate input[type=submit]):focus-visible{outline:2px solid var(--mmb-primary)!important;outline-offset:3px!important;}
/* Disabled: faded, not clickable */
#mmg-app #mm-grimoire :is(.mm-action,.mm-moon-remind-button,.mm-confirm-delete,.mm-confirm-cancel):disabled,
#mmg-app :is(.mmg-button,.mmg-support-send,.mmg-gate button,.mmg-gate input[type=submit]):is(:disabled,[aria-disabled="true"]){opacity:.45;cursor:not-allowed;transform:none!important;}
/* Icons inside buttons */
#mmg-app #mm-grimoire .mm-moon-remind-button svg{width:18px;height:18px;flex:none;}
@media(prefers-reduced-motion:reduce){#mmg-app :is(.mm-action,.mm-moon-remind-button,.mm-confirm-delete,.mm-confirm-cancel,.mm-toast-undo,.mm-moon-remind-cancel,.mmg-button,.mmg-support-send,.mmg-gate button){transition:none!important;transform:none!important;}}

/* ===== 1.6.69: one colour and component logic ===== */
/* Colour tokens. Every tint, line and fill below comes from these, on both surfaces.
   Light (paper) surface: brown tints of the button colour. Night-sky surface: pale blue-white tints. */
#mmg-app{
  --mm-tint:rgba(114,82,54,.08);        /* light fill: labels, hover of quiet things, selected rows */
  --mm-tint-hover:rgba(114,82,54,.13);  /* hover */
  --mm-tint-press:rgba(114,82,54,.2);   /* pressed */
  --mm-line:var(--mm-outline-soft);     /* every container border and divider on paper */
  --mm-line-strong:var(--mm-border);    /* outline of anything you can tap on paper */
  --mm-sky-fill:rgba(216,229,235,.08);
  --mm-sky-fill-hover:rgba(216,229,235,.14);
  --mm-sky-fill-press:rgba(216,229,235,.2);
  --mm-sky-line:rgba(216,229,235,.14);         /* every container border and divider on the night sky */
  --mm-sky-line-strong:rgba(216,229,235,.4);   /* outline of anything you can tap on the night sky */
  --mm-sky-ink:#e6edef;
  --mmb-tonal:var(--mm-tint-hover);--mmb-tonal-hover:var(--mm-tint-press);--mmb-tonal-press:rgba(114,82,54,.26);
  --mmb-grad:linear-gradient(180deg,#81613f 0%,#6a4b31 100%);
  --mmb-grad-hover:linear-gradient(180deg,#745538 0%,#5d422b 100%);
  --mmb-grad-press:linear-gradient(180deg,#5e432c 0%,#523a26 100%);
}
/* Primary buttons: a soft top-to-bottom gradient of the same brown. */

/* Pills. Two kinds, on two surfaces:
   - Tappable pill (tags, filters): outlined, 40px tall, darker outline + fill on hover; selected = filled brown like a primary button.
   - Label pill (countdowns, dates, "Today"): no outline, smaller (28px), a quiet tint; never changes on hover. */
#mmg-app #mm-grimoire :is(.mm-daily-tag,.mm-spell-tag,.mm-board-filter),#mmg-app .mm-cat{
  display:inline-flex!important;align-items:center;justify-content:center;gap:6px;box-sizing:border-box;min-height:40px!important;padding:7px 16px!important;
  border:1px solid var(--mm-line-strong)!important;border-radius:999px!important;background:var(--mm-tint)!important;box-shadow:none!important;
  color:var(--mmb-ink)!important;font:400 15px/1.3 var(--mm-font-body)!important;text-decoration:none!important;cursor:pointer;transition:background-color .15s ease,border-color .15s ease,transform .1s ease;}
@media(hover:hover){#mmg-app #mm-grimoire :is(.mm-daily-tag,.mm-spell-tag,.mm-board-filter):not(:disabled):not([aria-pressed="true"]):hover,#mmg-app .mm-cat:not([aria-pressed="true"]):hover{background:var(--mm-tint-hover)!important;border-color:var(--mm-primary)!important;}}
#mmg-app #mm-grimoire :is(.mm-daily-tag,.mm-spell-tag,.mm-board-filter):not(:disabled):active,#mmg-app .mm-cat:active{transform:scale(.97);}
#mmg-app #mm-grimoire .mm-board-filter[aria-pressed="true"],#mmg-app .mm-cat[aria-pressed="true"]{background:var(--mmb-grad)!important;border-color:transparent!important;color:var(--mmb-on-primary)!important;}
#mmg-app #mm-grimoire .mm-board-filter:disabled{opacity:.45;cursor:not-allowed;}
#mmg-app #mm-grimoire .mm-board-filter span,#mmg-app .mm-cat span{color:inherit!important;opacity:.7;}
/* Label pills on paper */
#mmg-app #mm-grimoire :is(.mm-ag-when,.mm-paper-pill),#mmg-app .mm-paper-pill{
  display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-height:28px;padding:3px 12px;border:0!important;border-radius:999px;
  background:var(--mm-tint-hover)!important;color:var(--mm-primary)!important;font:400 13px/1.4 var(--mm-font-body);white-space:nowrap;}
#mmg-app #mm-grimoire .mm-ag-today .mm-ag-when{background:var(--mm-tint-hover)!important;color:var(--mm-primary)!important;}
/* Tappable pills on the night sky */
#mmg-app #mm-grimoire button.mm-moon-sky-tag,#mmg-app #mm-grimoire button.mm-moon-sky-tag:is(:hover,:focus,:active){
  display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-height:40px;padding:7px 16px;margin:0;
  border:1px solid var(--mm-sky-line-strong)!important;border-radius:999px;background:var(--mm-sky-fill)!important;box-shadow:none;
  color:var(--mm-sky-ink)!important;font:400 15px/1.3 var(--mm-font-body);cursor:pointer;transition:background-color .15s ease,border-color .15s ease,transform .1s ease;}
@media(hover:hover){#mmg-app #mm-grimoire button.mm-moon-sky-tag:hover{background:var(--mm-sky-fill-hover)!important;border-color:rgba(216,229,235,.6)!important;}}
#mmg-app #mm-grimoire button.mm-moon-sky-tag:active{background:var(--mm-sky-fill-press)!important;transform:scale(.97);}
/* Label pills on the night sky */
#mmg-app #mm-grimoire :is(.mm-moon-sky-tag-static,.mm-moon-card-when),#mmg-app #mm-grimoire .mm-moon-sky-tag.mm-moon-sky-tag-static{
  display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-height:28px;padding:3px 12px;border:0!important;border-radius:999px;
  background:var(--mm-sky-fill-hover)!important;color:var(--mm-sky-ink)!important;font:400 13px/1.4 var(--mm-font-body);white-space:nowrap;}
#mmg-app #mm-grimoire .mm-moon-card-big .mm-moon-card-when{min-height:30px;font-size:14px;}
#mmg-app #mm-grimoire .mm-moon-card-when.mm-moon-card-when-passed{opacity:.7;}

/* Keyboard focus: a ring that sits right on the edge, like the search field. */
#mmg-app #mm-grimoire :is(.mm-action,.mm-moon-remind-button,.mm-confirm-delete,.mm-confirm-cancel,.mm-toast-undo,.mm-moon-remind-cancel,.mm-daily-tag,.mm-spell-tag,.mm-board-filter):focus-visible,
#mmg-app :is(.mm-cat,.mmg-button,.mmg-support-send,.mmg-renamed-done,.mmg-session-notice button,.mmg-gate button,.mmg-gate input[type=submit]):focus-visible{outline:2px solid var(--mm-focus-color)!important;outline-offset:0!important;}
#mmg-app #mm-grimoire button.mm-moon-sky-tag:focus-visible{outline:2px solid #f7efdd!important;outline-offset:0!important;}

/* Coming Up on phones: no inner scroll; the card is as tall as its list. */
@media(max-width:899px){
  #mmg-app #mm-grimoire .mm-agenda,#mmg-app #mm-grimoire .mm-agenda-wrap .mm-agenda{position:static;max-height:none!important;overflow:visible!important;}
  #mmg-app #mm-grimoire .mm-agenda-wrap.mm-agenda-more .mm-agenda{-webkit-mask-image:none!important;mask-image:none!important;}
  #mmg-app #mm-grimoire .mm-agenda-rail{display:none!important;}
}
/* Two tappable pill families on paper (kept different on purpose):
   - Tags (an intention you can open): the darker pill — beige fill, dark brown outline.
   - Choices (category and Grimoire filters): the lighter pill — paper fill, soft outline; the chosen one is filled brown. */
#mmg-app{--mm-chip-bg-hover:#e0cdac;}
#mmg-app #mm-grimoire :is(.mm-daily-tag,.mm-spell-tag){background:var(--mm-chip-bg)!important;border-color:var(--mm-primary)!important;color:var(--mmb-ink)!important;}
@media(hover:hover){#mmg-app #mm-grimoire :is(.mm-daily-tag,.mm-spell-tag):hover{background:var(--mm-chip-bg-hover)!important;border-color:var(--mm-primary)!important;}}
#mmg-app #mm-grimoire .mm-board-filter:not([aria-pressed="true"]),#mmg-app .mm-cat:not([aria-pressed="true"]){background:var(--mm-card)!important;border-color:var(--mm-line)!important;}
@media(hover:hover){#mmg-app #mm-grimoire .mm-board-filter:not([aria-pressed="true"]):not(:disabled):hover,#mmg-app .mm-cat:not([aria-pressed="true"]):hover{background:var(--mm-tint-hover)!important;border-color:var(--mm-line-strong)!important;}}
#mmg-app .mm-cat[aria-pressed="true"] svg,#mmg-app .mm-cat[aria-pressed="true"] svg *{color:var(--mmb-on-primary)!important;fill:var(--mmb-on-primary)!important;}
/* One pill size everywhere (36px); tappable pills are told apart by their outline, labels have none. */
#mmg-app #mm-grimoire :is(.mm-daily-tag,.mm-spell-tag,.mm-board-filter),#mmg-app .mm-cat,#mmg-app #mm-grimoire button.mm-moon-sky-tag,#mmg-app #mm-grimoire button.mm-moon-sky-tag:is(:hover,:focus,:active){min-height:36px!important;padding:5px 15px!important;font-size:15px!important;}
#mmg-app #mm-grimoire :is(.mm-ag-when,.mm-paper-pill,.mm-moon-sky-tag-static,.mm-moon-card-when),#mmg-app .mm-paper-pill,#mmg-app #mm-grimoire .mm-moon-sky-tag.mm-moon-sky-tag-static,#mmg-app #mm-grimoire .mm-moon-card-big .mm-moon-card-when{min-height:36px!important;padding:5px 15px!important;font-size:15px!important;}
/* The moon sticker shows its countdown once: beside the moon on phones, under the text on larger screens. */
#mmg-app #mm-grimoire .mm-moon-card .mm-moon-card-when-side{display:none!important;}
@media(max-width:600px){#mmg-app #mm-grimoire .mm-moon-card:not(.mm-moon-card-big) .mm-moon-card-when-side{display:inline-flex!important;}#mmg-app #mm-grimoire .mm-moon-card:not(.mm-moon-card-big) .mm-moon-card-when-main{display:none!important;}}

/* ===== 1.6.70 ===== */
/* Brown, refined to sit with the rest of the palette (text #6b4a33, lines #8c755d, paper #f7efdd):
   a softer, less orange cocoa. Used for every brown button and brown accent. */
#mmg-app{--mm-button-bg:#6e5441;--mmb-primary:#6e5441;--mmb-on-primary:#fff8eb;
  --mmb-sheen:linear-gradient(180deg,rgba(255,246,230,.16) 0%,rgba(255,246,230,.04) 55%,rgba(0,0,0,.06) 100%);}
/* Primary button: solid cocoa with a soft sheen that is always visible. Hover darkens the whole button smoothly;
   press darkens a little more. Size, border and outline never change. */
#mmg-app #mm-grimoire :is(.mm-action,.mm-moon-remind-button,.mm-confirm-delete),
#mmg-app #mm-grimoire :is(.mm-action,.mm-moon-remind-button,.mm-confirm-delete):is(:hover,:focus,:active),
#mmg-app :is(.mmg-button,.mmg-support-send,.mmg-renamed-done,.mmg-session-notice button,.mmg-gate button:not(.mmg-secondary):not(.mmg-onboard-skip),.mmg-gate input[type=submit]),
#mmg-app :is(.mmg-button,.mmg-support-send,.mmg-renamed-done,.mmg-session-notice button,.mmg-gate button:not(.mmg-secondary):not(.mmg-onboard-skip),.mmg-gate input[type=submit]):is(:hover,:focus,:active){
  background-color:var(--mmb-primary)!important;background-image:var(--mmb-sheen)!important;color:var(--mmb-on-primary)!important;
  border:0!important;outline:0;box-shadow:none!important;transform:none!important;filter:none;transition:filter .2s ease!important;}
@media(hover:hover){
#mmg-app #mm-grimoire :is(.mm-action,.mm-moon-remind-button,.mm-confirm-delete):not(:disabled):hover,
#mmg-app :is(.mmg-button,.mmg-support-send,.mmg-renamed-done,.mmg-session-notice button,.mmg-gate button:not(.mmg-secondary):not(.mmg-onboard-skip),.mmg-gate input[type=submit]):not(:disabled):hover{filter:brightness(.88);}}
#mmg-app #mm-grimoire :is(.mm-action,.mm-moon-remind-button,.mm-confirm-delete):not(:disabled):active,
#mmg-app :is(.mmg-button,.mmg-support-send,.mmg-renamed-done,.mmg-session-notice button,.mmg-gate button:not(.mmg-secondary):not(.mmg-onboard-skip),.mmg-gate input[type=submit]):not(:disabled):active{filter:brightness(.8);}
/* Secondary and text buttons: same rule — no size change, the tint deepens on hover. */
#mmg-app #mm-grimoire :is(.mm-confirm-cancel,.mm-toast-undo,.mm-moon-remind-cancel),#mmg-app .mmg-gate .mmg-secondary{transform:none!important;border:0!important;transition:background-color .2s ease!important;}
/* Keyboard focus stays (only for keyboard users), right on the edge. */
#mmg-app #mm-grimoire :is(.mm-action,.mm-moon-remind-button,.mm-confirm-delete,.mm-confirm-cancel,.mm-toast-undo,.mm-moon-remind-cancel):focus-visible,
#mmg-app :is(.mmg-button,.mmg-support-send,.mmg-renamed-done,.mmg-session-notice button,.mmg-gate button,.mmg-gate input[type=submit]):focus-visible{outline:2px solid var(--mm-focus-color)!important;outline-offset:0!important;}
#mmg-app :is(.mm-action,.mm-moon-remind-button,.mm-confirm-delete,.mmg-button,.mmg-support-send,.mmg-gate button):focus:not(:focus-visible){outline:0!important;}

/* Chosen category / Grimoire filter: just a step darker than the others, not a brown fill. */
#mmg-app #mm-grimoire .mm-board-filter[aria-pressed="true"],#mmg-app .mm-cat[aria-pressed="true"]{
  background:var(--mm-chip-bg)!important;background-image:none!important;border-color:var(--mm-line-strong)!important;color:var(--mmb-ink)!important;}
#mmg-app .mm-cat[aria-pressed="true"] svg,#mmg-app .mm-cat[aria-pressed="true"] svg *{color:currentColor!important;fill:currentColor!important;}
#mmg-app .mm-cat[aria-pressed="true"] svg{color:#000!important;fill:#000!important;}
/* All pills: no size change on press either. */
#mmg-app #mm-grimoire :is(.mm-daily-tag,.mm-spell-tag,.mm-board-filter,button.mm-moon-sky-tag),#mmg-app .mm-cat{transform:none!important;}

/* Coming Up: more room under the title. */
#mmg-app #mm-grimoire .mm-agenda-wrap{margin-top:26px;}

/* ===== 1.6.71 ===== */
/* Hover only ever changes the FILL, never the text. Every hover colour is a solid, warmer, darker step of its own colour
   (no see-through tints that turn greyish). */
#mmg-app{--mm-paper-hover:#efe1c6;--mm-chip-bg-hover:#dfc8a1;--mmb-primary-hover:#5e4636;--mmb-primary-press:#523d2f;}
/* Primary buttons: the fill steps darker, the cream text stays exactly the same. */
#mmg-app #mm-grimoire :is(.mm-action,.mm-moon-remind-button,.mm-confirm-delete),
#mmg-app :is(.mmg-button,.mmg-support-send,.mmg-renamed-done,.mmg-session-notice button,.mmg-gate button:not(.mmg-secondary):not(.mmg-onboard-skip),.mmg-gate input[type=submit]){filter:none!important;transition:background-color .2s ease!important;}
@media(hover:hover){
#mmg-app #mm-grimoire :is(.mm-action,.mm-moon-remind-button,.mm-confirm-delete):not(:disabled):hover,
#mmg-app :is(.mmg-button,.mmg-support-send,.mmg-renamed-done,.mmg-session-notice button,.mmg-gate button:not(.mmg-secondary):not(.mmg-onboard-skip),.mmg-gate input[type=submit]):not(:disabled):hover{background-color:var(--mmb-primary-hover)!important;color:var(--mmb-on-primary)!important;filter:none!important;}}
#mmg-app #mm-grimoire :is(.mm-action,.mm-moon-remind-button,.mm-confirm-delete):not(:disabled):active,
#mmg-app :is(.mmg-button,.mmg-support-send,.mmg-renamed-done,.mmg-session-notice button,.mmg-gate button:not(.mmg-secondary):not(.mmg-onboard-skip),.mmg-gate input[type=submit]):not(:disabled):active{background-color:var(--mmb-primary-press)!important;color:var(--mmb-on-primary)!important;filter:none!important;}
/* Tags: beige → a darker, warmer beige on hover. */
@media(hover:hover){#mmg-app #mm-grimoire :is(.mm-daily-tag,.mm-spell-tag):not(:disabled):not([aria-pressed="true"]):hover{background:var(--mm-chip-bg-hover)!important;border-color:var(--mm-primary)!important;color:var(--mmb-ink)!important;}}
/* Choices (categories, Grimoire filters): paper → a darker, warmer paper on hover; the chosen one stays beige. */
@media(hover:hover){#mmg-app #mm-grimoire .mm-board-filter:not([aria-pressed="true"]):not(:disabled):hover,#mmg-app .mm-cat:not([aria-pressed="true"]):hover{background:var(--mm-paper-hover)!important;border-color:var(--mm-line-strong)!important;color:var(--mmb-ink)!important;}
  #mmg-app #mm-grimoire .mm-board-filter[aria-pressed="true"]:hover,#mmg-app .mm-cat[aria-pressed="true"]:hover{background:var(--mm-chip-bg)!important;color:var(--mmb-ink)!important;}}
/* Focus: no outline on buttons or pills, ever. Keyboard focus shows the same darker fill as hover instead. */
#mmg-app #mm-grimoire :is(.mm-action,.mm-moon-remind-button,.mm-confirm-delete,.mm-confirm-cancel,.mm-toast-undo,.mm-moon-remind-cancel,.mm-daily-tag,.mm-spell-tag,.mm-board-filter,button.mm-moon-sky-tag):is(:focus,:focus-visible),
#mmg-app :is(.mm-cat,.mmg-button,.mmg-support-send,.mmg-renamed-done,.mmg-session-notice button,.mmg-gate button,.mmg-gate input[type=submit]):is(:focus,:focus-visible){outline:0!important;box-shadow:none!important;}
#mmg-app #mm-grimoire :is(.mm-action,.mm-moon-remind-button,.mm-confirm-delete):focus-visible,
#mmg-app :is(.mmg-button,.mmg-support-send,.mmg-renamed-done,.mmg-session-notice button,.mmg-gate button:not(.mmg-secondary):not(.mmg-onboard-skip),.mmg-gate input[type=submit]):focus-visible{background-color:var(--mmb-primary-hover)!important;}
#mmg-app #mm-grimoire .mm-confirm-cancel:focus-visible,#mmg-app .mmg-gate .mmg-secondary:focus-visible{background:var(--mmb-tonal-hover)!important;}
#mmg-app #mm-grimoire :is(.mm-toast-undo,.mm-moon-remind-cancel):focus-visible{background:var(--mmb-tonal)!important;}
#mmg-app #mm-grimoire :is(.mm-daily-tag,.mm-spell-tag):focus-visible{background:var(--mm-chip-bg-hover)!important;}
#mmg-app #mm-grimoire .mm-board-filter:not([aria-pressed="true"]):focus-visible,#mmg-app .mm-cat:not([aria-pressed="true"]):focus-visible{background:var(--mm-paper-hover)!important;}
#mmg-app #mm-grimoire button.mm-moon-sky-tag:focus-visible{background:var(--mm-sky-fill-hover)!important;}
/* Rich warm brown (hand-picked shades, no filters, no white sheen):
   rest   #845c3a → #6b4729 (soft top-to-bottom gradient)
   hover  #744f30 → #5d3d22
   press  #664428 → #52351d          text always #fff8eb. */
#mmg-app{--mm-button-bg:#774f30;--mmb-primary:#774f30;
  --mmb-rest:linear-gradient(180deg,#845c3a 0%,#6b4729 100%);
  --mmb-hover:linear-gradient(180deg,#744f30 0%,#5d3d22 100%);
  --mmb-press:linear-gradient(180deg,#664428 0%,#52351d 100%);}
#mmg-app #mm-grimoire :is(.mm-action,.mm-moon-remind-button,.mm-confirm-delete),
#mmg-app #mm-grimoire :is(.mm-action,.mm-moon-remind-button,.mm-confirm-delete):is(:hover,:focus,:active),
#mmg-app :is(.mmg-button,.mmg-support-send,.mmg-renamed-done,.mmg-session-notice button,.mmg-gate button:not(.mmg-secondary):not(.mmg-onboard-skip),.mmg-gate input[type=submit]),
#mmg-app :is(.mmg-button,.mmg-support-send,.mmg-renamed-done,.mmg-session-notice button,.mmg-gate button:not(.mmg-secondary):not(.mmg-onboard-skip),.mmg-gate input[type=submit]):is(:hover,:focus,:active){
  background-color:#774f30!important;background-image:var(--mmb-rest)!important;color:#fff8eb!important;filter:none!important;}
@media(hover:hover){
#mmg-app #mm-grimoire :is(.mm-action,.mm-moon-remind-button,.mm-confirm-delete):not(:disabled):hover,
#mmg-app :is(.mmg-button,.mmg-support-send,.mmg-renamed-done,.mmg-session-notice button,.mmg-gate button:not(.mmg-secondary):not(.mmg-onboard-skip),.mmg-gate input[type=submit]):not(:disabled):hover{background-color:#684429!important;background-image:var(--mmb-hover)!important;}}
#mmg-app #mm-grimoire :is(.mm-action,.mm-moon-remind-button,.mm-confirm-delete):focus-visible,
#mmg-app :is(.mmg-button,.mmg-support-send,.mmg-renamed-done,.mmg-session-notice button,.mmg-gate button:not(.mmg-secondary):not(.mmg-onboard-skip),.mmg-gate input[type=submit]):focus-visible{background-color:#684429!important;background-image:var(--mmb-hover)!important;}
#mmg-app #mm-grimoire :is(.mm-action,.mm-moon-remind-button,.mm-confirm-delete):not(:disabled):active,
#mmg-app :is(.mmg-button,.mmg-support-send,.mmg-renamed-done,.mmg-session-notice button,.mmg-gate button:not(.mmg-secondary):not(.mmg-onboard-skip),.mmg-gate input[type=submit]):not(:disabled):active{background-color:#5c3d23!important;background-image:var(--mmb-press)!important;}
/* Secondary and text buttons: warm solid beiges (no see-through tints). */
#mmg-app #mm-grimoire .mm-confirm-cancel,#mmg-app .mmg-gate .mmg-secondary{background:var(--mm-chip-bg)!important;color:var(--mmb-ink)!important;}
@media(hover:hover){#mmg-app #mm-grimoire .mm-confirm-cancel:hover,#mmg-app .mmg-gate .mmg-secondary:not(:disabled):hover{background:var(--mm-chip-bg-hover)!important;color:var(--mmb-ink)!important;}}
#mmg-app #mm-grimoire .mm-confirm-cancel:is(:active,:focus-visible),#mmg-app .mmg-gate .mmg-secondary:is(:active,:focus-visible){background:var(--mm-chip-bg-hover)!important;}
@media(hover:hover){#mmg-app #mm-grimoire :is(.mm-toast-undo,.mm-moon-remind-cancel):hover{background:var(--mm-paper-hover)!important;color:var(--mmb-ink)!important;}}
#mmg-app #mm-grimoire :is(.mm-toast-undo,.mm-moon-remind-cancel):is(:active,:focus-visible){background:var(--mm-paper-hover)!important;}
/* A calmer warm brown — between the dull and the rich versions. */
#mmg-app{--mm-button-bg:#715239;--mmb-primary:#715239;
  --mmb-rest:linear-gradient(180deg,#7c5c41 0%,#664a33 100%);
  --mmb-hover:linear-gradient(180deg,#6d503a 0%,#58402d 100%);
  --mmb-press:linear-gradient(180deg,#614733 0%,#4e3928 100%);}
#mmg-app #mm-grimoire :is(.mm-action,.mm-moon-remind-button,.mm-confirm-delete),
#mmg-app #mm-grimoire :is(.mm-action,.mm-moon-remind-button,.mm-confirm-delete):is(:hover,:focus,:active),
#mmg-app :is(.mmg-button,.mmg-support-send,.mmg-renamed-done,.mmg-session-notice button,.mmg-gate button:not(.mmg-secondary):not(.mmg-onboard-skip),.mmg-gate input[type=submit]),
#mmg-app :is(.mmg-button,.mmg-support-send,.mmg-renamed-done,.mmg-session-notice button,.mmg-gate button:not(.mmg-secondary):not(.mmg-onboard-skip),.mmg-gate input[type=submit]):is(:hover,:focus,:active){background-color:#715239!important;}
/* Moon close-up: the "Open …" link now lives inside the starry card. */
#mmg-app #mm-grimoire .mm-zoom-m .mm-moon-card .mm-moon-card-links{display:block;position:relative;z-index:1;margin:16px 0 0;padding:0;text-align:center;background:transparent;}
#mmg-app #mm-grimoire .mm-zoom-m .mm-moon-card .mm-moon-card-links{margin-bottom:16px;}
/* Moon Calendar: no glow behind the moons, and slightly smaller moons. */
#mmg-app #mm-grimoire .mm-mc-phase-img{filter:none!important;max-height:36px!important;}
@media(max-width:600px){#mmg-app #mm-grimoire .mm-mc-phase-img{max-height:24px!important;}}

/* ===== 1.6.73: Today's four daily buttons, made to feel like game tiles =====
   Research (game daily-reward screens, badge guidelines): a raised tile with a solid "ledge" reads as pressable;
   a corner dot means "new, not seen yet" and clears once viewed; a check means "done today".
   - Tile: paper card with a thicker bottom edge (a ledge, not a shadow). Hover: the picture lifts a little and the card warms.
     Press: the tile sinks onto its ledge (it moves down, its size stays the same).
   - New today: a small warm-red dot in the top-right corner, with a slow, soft pulse.
   - Opened today: the dot becomes a small brown check, and the tile settles flat onto its ledge, like a finished task. */
#mmg-app #mm-grimoire .mm-daily-object{position:relative;overflow:visible;
  border:1px solid var(--mm-line)!important;border-bottom-width:4px!important;border-bottom-color:var(--mm-line-strong)!important;
  background:var(--mm-card)!important;box-shadow:none!important;transform:none;transition:background-color .2s ease,transform .12s ease,border-bottom-width .12s ease,margin-top .12s ease!important;}
@media(hover:hover){#mmg-app #mm-grimoire .mm-daily-object:hover{background:var(--mm-paper-hover)!important;border-color:var(--mm-line-strong)!important;transform:none;}
  #mmg-app #mm-grimoire .mm-daily-object:hover img{transform:translateY(-4px) scale(1.04)!important;filter:none!important;}}
#mmg-app #mm-grimoire .mm-daily-object img{transition:transform .25s cubic-bezier(.2,.8,.25,1)!important;}
#mmg-app #mm-grimoire .mm-daily-object:active{transform:translateY(3px)!important;border-bottom-width:1px!important;margin-bottom:3px;}
#mmg-app #mm-grimoire .mm-daily-object:focus-visible{outline:0!important;background:var(--mm-paper-hover)!important;border-color:var(--mm-line-strong)!important;}
/* Corner badge */
#mmg-app #mm-grimoire .mm-daily-badge{position:absolute;top:10px;right:10px;z-index:2;display:grid;place-items:center;width:14px;height:14px;border-radius:50%;
  background:#c2553a;box-shadow:0 0 0 2px var(--mm-card);pointer-events:none;transition:transform .25s ease,background-color .25s ease,width .25s ease,height .25s ease;}
#mmg-app #mm-grimoire .mm-daily-badge svg{width:13px;height:13px;fill:none!important;stroke:var(--mmb-on-primary)!important;color:var(--mmb-on-primary)!important;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round;opacity:0;transition:opacity .2s ease;}
#mmg-app #mm-grimoire .mm-daily-new .mm-daily-badge::after{content:"";position:absolute;inset:0;border-radius:50%;background:#c2553a;animation:mmg-badge-pulse 2.4s ease-out infinite;}
@keyframes mmg-badge-pulse{0%{transform:scale(1);opacity:.55;}70%,100%{transform:scale(2.4);opacity:0;}}
#mmg-app #mm-grimoire .mm-daily-seen .mm-daily-badge{width:22px;height:22px;top:8px;right:8px;background:var(--mmb-primary);}
#mmg-app #mm-grimoire .mm-daily-seen .mm-daily-badge svg{opacity:1;}
#mmg-app #mm-grimoire .mm-daily-object:not(.mm-daily-new):not(.mm-daily-seen) .mm-daily-badge{display:none;}
/* Opened today: the tile rests flat (ledge pressed in), the label quieter. */
#mmg-app #mm-grimoire .mm-daily-object.mm-daily-seen{border-bottom-width:1px!important;border-bottom-color:var(--mm-line)!important;margin-top:3px;}
#mmg-app #mm-grimoire .mm-daily-object.mm-daily-seen .mm-daily-action-label{color:var(--mm-muted);}
@media(hover:hover){#mmg-app #mm-grimoire .mm-daily-object.mm-daily-seen:hover{border-bottom-color:var(--mm-line-strong)!important;}}
@media(max-width:600px){#mmg-app #mm-grimoire .mm-daily-badge{top:8px;right:8px;width:12px;height:12px;}#mmg-app #mm-grimoire .mm-daily-seen .mm-daily-badge{width:20px;height:20px;top:7px;right:7px;}}
@media(prefers-reduced-motion:reduce){#mmg-app #mm-grimoire .mm-daily-new .mm-daily-badge::after{animation:none;opacity:0;}}
/* 1.6.74: no ledge, no check. The tile keeps its normal border; only a red pulsing "!" shows until it's opened today. */
#mmg-app #mm-grimoire .mm-daily-object,#mmg-app #mm-grimoire .mm-daily-object.mm-daily-seen,#mmg-app #mm-grimoire .mm-daily-object:active{
  border:1px solid var(--mm-line)!important;margin:0!important;transform:none!important;transition:background-color .2s ease,border-color .2s ease!important;}
@media(hover:hover){#mmg-app #mm-grimoire .mm-daily-object:hover,#mmg-app #mm-grimoire .mm-daily-object.mm-daily-seen:hover{border-color:var(--mm-line-strong)!important;}}
#mmg-app #mm-grimoire .mm-daily-object:active{background:var(--mm-paper-hover)!important;}
#mmg-app #mm-grimoire .mm-daily-object.mm-daily-seen .mm-daily-action-label{color:inherit;}
#mmg-app #mm-grimoire .mm-daily-seen .mm-daily-badge{display:none!important;}
#mmg-app #mm-grimoire .mm-daily-badge,#mmg-app #mm-grimoire .mm-daily-new .mm-daily-badge{top:10px;right:10px;width:22px;height:22px;background:#c2553a;color:#fff8eb;
  font:700 14px/1 var(--mm-font-body);text-align:center;box-shadow:0 0 0 2px var(--mm-card);}
#mmg-app #mm-grimoire .mm-daily-new .mm-daily-badge::after{z-index:-1;}
#mmg-app #mm-grimoire .mm-daily-badge{isolation:isolate;}
@media(max-width:600px){#mmg-app #mm-grimoire .mm-daily-badge,#mmg-app #mm-grimoire .mm-daily-new .mm-daily-badge{top:8px;right:8px;width:20px;height:20px;font-size:13px;}}
#mmg-app #mm-grimoire .mm-board-grid{position:relative;}
/* Badge: Font Awesome exclamation, on a deeper brick red that sits with the browns. */
#mmg-app #mm-grimoire .mm-daily-badge,#mmg-app #mm-grimoire .mm-daily-new .mm-daily-badge{background:#a8443a;font-size:0;}
#mmg-app #mm-grimoire .mm-daily-new .mm-daily-badge::after{background:#a8443a;}
#mmg-app #mm-grimoire .mm-daily-badge svg.mm-fa-excl{display:block;width:auto;height:11px;opacity:1!important;fill:#fff8eb!important;stroke:none!important;color:#fff8eb!important;}
@media(max-width:600px){#mmg-app #mm-grimoire .mm-daily-badge svg.mm-fa-excl{height:10px;}}
/* 1.6.76 badge: a bolder "!" and a little wiggle (left-right) every few seconds instead of the pulse. */
#mmg-app #mm-grimoire .mm-daily-new .mm-daily-badge::after{content:none!important;animation:none!important;}
#mmg-app #mm-grimoire .mm-daily-badge,#mmg-app #mm-grimoire .mm-daily-new .mm-daily-badge{width:24px;height:24px;}
#mmg-app #mm-grimoire .mm-daily-badge svg.mm-fa-excl{height:13px;overflow:visible;stroke:#fff8eb!important;stroke-width:22px;stroke-linejoin:round;stroke-linecap:round;paint-order:stroke;}
#mmg-app #mm-grimoire .mm-daily-new .mm-daily-badge{animation:mmg-badge-wiggle 3.2s ease-in-out infinite;transform-origin:50% 50%;}
@keyframes mmg-badge-wiggle{0%,72%,100%{transform:rotate(0) translateX(0);}76%{transform:rotate(-14deg) translateX(-1px);}80%{transform:rotate(12deg) translateX(1px);}84%{transform:rotate(-9deg) translateX(-1px);}88%{transform:rotate(6deg);}92%{transform:rotate(-3deg);}96%{transform:rotate(0);}}
@media(max-width:600px){#mmg-app #mm-grimoire .mm-daily-badge,#mmg-app #mm-grimoire .mm-daily-new .mm-daily-badge{width:22px;height:22px;}#mmg-app #mm-grimoire .mm-daily-badge svg.mm-fa-excl{height:12px;}}
@media(prefers-reduced-motion:reduce){#mmg-app #mm-grimoire .mm-daily-new .mm-daily-badge{animation:none;}}

/* ===== 1.6.77: closing card at the end of Today ===== */
#mmg-app #mm-grimoire .mm-daily-end{display:flex;flex-direction:column;align-items:center;text-align:center;gap:0;padding:32px var(--mm-daily-padding) 36px;}
#mmg-app #mm-grimoire .mm-end-img{display:block;width:120px;height:120px;object-fit:contain;margin:0 auto 14px;}
#mmg-app #mm-grimoire .mm-end-title{margin:0;font:500 30px/1.25 var(--mm-font-hand);color:var(--mm-primary);max-width:30ch;}
#mmg-app #mm-grimoire .mm-end-sub{margin:6px 0 0;font:400 16px/1.5 var(--mm-font-body);color:var(--mm-muted);}
#mmg-app #mm-grimoire .mm-end-show,#mmg-app #mm-grimoire .mm-end-show:is(:hover,:focus,:active){appearance:none;margin:0;padding:6px 12px;min-height:36px;border:0;border-radius:var(--mm-radius-button);background:transparent;box-shadow:none;color:var(--mmb-ink);font:500 15px/1.3 var(--mm-font-body);cursor:pointer;transition:background-color .2s ease;}
@media(hover:hover){#mmg-app #mm-grimoire .mm-end-show:hover{background:var(--mm-paper-hover);}}
#mmg-app #mm-grimoire .mm-end-show:focus-visible{outline:0;background:var(--mm-paper-hover);}
#mmg-app #mm-grimoire .mm-end-discover{margin-top:22px!important;}
#mmg-app #mm-grimoire .mm-end-link{display:inline-block;margin-top:12px;padding:6px 10px;border-radius:var(--mm-radius-button);font:400 15px/1.4 var(--mm-font-body);color:var(--mm-primary);text-decoration:underline;text-underline-offset:.2em;text-decoration-thickness:1px;}
@media(hover:hover){#mmg-app #mm-grimoire .mm-end-link:hover{text-decoration-thickness:2px;}}
@media(max-width:600px){#mmg-app #mm-grimoire .mm-end-title{font-size:27px;}#mmg-app #mm-grimoire .mm-end-img{width:100px;height:100px;}}

/* ===== 1.6.78: saved rituals as sticker cards (no picture), title with a hand-drawn underline ===== */
#mmg-app #mm-grimoire .mm-ritual-card{align-items:stretch!important;text-align:left;cursor:grab;}
#mmg-app #mm-grimoire .mm-ritual-card .mm-ritual-paper-title{margin:2px 0 14px;text-align:center;font:500 26px/1.25 var(--mm-font-hand);color:var(--mm-primary);}
#mmg-app #mm-grimoire .mm-ritual-ul{position:relative;display:inline-block;padding-bottom:7px;}
#mmg-app #mm-grimoire .mm-ritual-ul svg{position:absolute;left:-4%;right:-4%;bottom:-2px;width:108%;height:11px;overflow:visible;}
#mmg-app #mm-grimoire .mm-ritual-ul svg path{fill:none!important;stroke:var(--mm-primary)!important;stroke-width:2.2;stroke-linecap:round;vector-effect:non-scaling-stroke;}
#mmg-app #mm-grimoire .mm-ritual-card .mm-ritual-paper-steps{margin:0;padding:0 0 0 26px;display:grid;gap:8px;text-align:left;}
#mmg-app #mm-grimoire .mm-ritual-card .mm-ritual-paper-steps,#mmg-app #mm-grimoire .mm-ritual-card .mm-ritual-paper-steps li{font:400 15px/1.55 var(--mm-font-body);color:var(--mm-text);}
#mmg-app #mm-grimoire .mm-ritual-card .mm-ritual-paper-steps li{margin:0;padding-left:4px;}
#mmg-app #mm-grimoire .mm-ritual-card .mm-ritual-paper-steps li::marker{font:500 22px/1 var(--mm-font-hand);color:var(--mm-primary);}
@media(max-width:600px){#mmg-app #mm-grimoire .mm-ritual-card .mm-ritual-paper-steps,#mmg-app #mm-grimoire .mm-ritual-card .mm-ritual-paper-steps li{font-size:14.5px;}#mmg-app #mm-grimoire .mm-ritual-card .mm-ritual-paper-title{font-size:24px;}}
/* Close-up: a normal popup card; the steps, date, Save and Share all sit inside it. */
#mmg-app #mm-grimoire .mm-zoom-r .mm-ritual-card-big{padding:0;border:0;background:none;text-align:left;}
#mmg-app #mm-grimoire .mm-zoom-r .mm-ritual-card-big .mm-ritual-paper-title{margin:0 0 26px;text-align:center;font-size:30px;}
#mmg-app #mm-grimoire .mm-zoom-r .mm-ritual-card-big .mm-ritual-paper-steps,#mmg-app #mm-grimoire .mm-zoom-r .mm-ritual-card-big .mm-ritual-paper-steps li{font-size:17px;line-height:1.6;}
#mmg-app #mm-grimoire .mm-zoom-r .mm-ritual-card-big .mm-ritual-paper-steps{gap:10px;padding-left:28px;}
#mmg-app #mm-grimoire .mm-zoom-r .mm-ritual-card-big .mm-ritual-paper-steps li::marker{font:500 24px/1 var(--mm-font-hand);color:var(--mm-primary);}
#mmg-app #mm-grimoire .mm-zoom-r .mm-ritual-card-big .mm-paper-pill{display:table;margin:22px auto 0;}
#mmg-app #mm-grimoire .mm-zoom-r .mm-zoom-actions{margin-top:22px;}
@media(max-width:600px){#mmg-app #mm-grimoire .mm-zoom-r .mm-ritual-card-big .mm-ritual-paper-steps,#mmg-app #mm-grimoire .mm-zoom-r .mm-ritual-card-big .mm-ritual-paper-steps li{font-size:16px;}#mmg-app #mm-grimoire .mm-zoom-r .mm-ritual-card-big .mm-ritual-paper-title{font-size:27px;}}

/* ===== 1.6.79: end of Today — no container ===== */
#mmg-app #mm-grimoire .mm-daily-end{display:flex;flex-direction:column;align-items:center;text-align:center;margin-top:36px;padding:0 0 12px;border:0!important;background:none!important;}
/* The random-post card: exactly the Collection card, a question mark where the picture would be. */
#mmg-app #mm-grimoire .mm-end-random{width:min(100%,380px);margin:24px auto 0;text-align:left;}
#mmg-app #mm-grimoire .mm-end-random .mm-card{margin:0;}
#mmg-app #mm-grimoire .mm-thumb-question{display:grid;place-items:center;}
#mmg-app #mm-grimoire .mm-thumb-question svg{width:auto;height:70%;fill:#000!important;color:#000!important;}
/* One link style for both small links ("Show me ↑" and "explore the whole Collection →"), the same as the other "…→" links. */
#mmg-app #mm-grimoire .mm-end-link{display:inline-block;margin-top:14px;padding:4px 2px;border:0;background:none!important;font:400 16px/1.4 var(--mm-font-body);color:var(--mm-primary);text-decoration:underline;text-underline-offset:.2em;text-decoration-thickness:1px;cursor:pointer;}
#mmg-app #mm-grimoire .mm-end-sub .mm-end-link{margin-top:0;}
@media(hover:hover){#mmg-app #mm-grimoire .mm-end-link:hover{text-decoration-thickness:2px;}}
#mmg-app #mm-grimoire .mm-end-link:focus-visible{outline:0;text-decoration-thickness:2px;}

/* ===== 1.6.80 ===== */
/* Grimoire drag: the drop line (sits over the grid, never takes a spot). It glides between places. */
#mmg-app #mm-grimoire .mm-board-grid{position:relative;}
#mmg-app #mm-grimoire .mm-drop-line{position:absolute;left:0;top:0;z-index:5;width:4px;height:40px;border-radius:4px;background:var(--mmb-primary);opacity:0;pointer-events:none;
  transition:transform .16s cubic-bezier(.25,.8,.3,1),width .16s ease,height .16s ease,opacity .12s ease;}
#mmg-app #mm-grimoire .mm-drop-line.mm-drop-line-on{opacity:1;}
#mmg-app #mm-grimoire .mm-drop-line::before,#mmg-app #mm-grimoire .mm-drop-line::after{content:"";position:absolute;width:10px;height:10px;border-radius:50%;background:var(--mmb-primary);}
#mmg-app #mm-grimoire .mm-drop-line::before{left:50%;top:0;transform:translate(-50%,-50%);}
#mmg-app #mm-grimoire .mm-drop-line::after{left:50%;bottom:0;transform:translate(-50%,50%);}
/* (a horizontal line puts its dots at the two ends) */
#mmg-app #mm-grimoire .mm-drop-line.mm-drop-line-h::before{left:0;top:50%;transform:translate(-50%,-50%);}
#mmg-app #mm-grimoire .mm-drop-line.mm-drop-line-h::after{left:auto;right:0;bottom:auto;top:50%;transform:translate(50%,-50%);}
@media(prefers-reduced-motion:reduce){#mmg-app #mm-grimoire .mm-drop-line{transition:none;}}

/* End of Today: "Discover Something New" resembles a Collection card but is centred; "Explore the Collection" is a normal button. */
#mmg-app #mm-grimoire .mm-end-random .mm-card-row{flex-direction:column!important;align-items:center!important;text-align:center;gap:10px;}
#mmg-app #mm-grimoire .mm-end-random .mm-card-body{display:flex;flex-direction:column;align-items:center;text-align:center;}
#mmg-app #mm-grimoire .mm-end-random .mm-thumb-question{width:48px;height:48px;margin:0 auto;}
#mmg-app #mm-grimoire .mm-end-random .mm-card-link{padding:24px 22px 26px!important;}
#mmg-app #mm-grimoire .mm-end-explore{margin-top:22px!important;}

/* ===== 1.6.81: end of Today ===== */
/* The kitty "says" today's line in a speech bubble: cat on the left, bubble on the right with its tail at the cat's mouth. */
#mmg-app #mm-grimoire .mm-end-scene{display:flex;align-items:center;justify-content:center;gap:14px;width:min(100%,620px);margin:0 auto;}
#mmg-app #mm-grimoire .mm-end-img{flex:none;width:200px;height:200px;margin:0;object-fit:contain;}
#mmg-app #mm-grimoire .mm-end-bubble{position:relative;flex:0 1 340px;margin-bottom:56px;padding:18px 22px 16px;border:1px solid var(--mm-line);border-radius:18px;background:var(--mm-card);text-align:center;}
#mmg-app #mm-grimoire .mm-end-bubble::before,#mmg-app #mm-grimoire .mm-end-bubble::after{content:"";position:absolute;top:58%;width:0;height:0;border-style:solid;}
#mmg-app #mm-grimoire .mm-end-bubble::before{left:-15px;border-width:9px 15px 9px 0;border-color:transparent var(--mm-line) transparent transparent;}
#mmg-app #mm-grimoire .mm-end-bubble::after{left:-13px;margin-top:1px;border-width:8px 14px 8px 0;border-color:transparent var(--mm-card) transparent transparent;}
#mmg-app #mm-grimoire .mm-end-bubble .mm-end-title{margin:0;font-size:26px;}
#mmg-app #mm-grimoire .mm-end-bubble .mm-end-sub{margin:6px 0 0;}
@media(max-width:520px){
  #mmg-app #mm-grimoire .mm-end-scene{flex-direction:column-reverse;gap:10px;}
  #mmg-app #mm-grimoire .mm-end-img{width:170px;height:170px;}
  #mmg-app #mm-grimoire .mm-end-bubble{flex:none;width:min(100%,320px);margin:0;}
  #mmg-app #mm-grimoire .mm-end-bubble::before,#mmg-app #mm-grimoire .mm-end-bubble::after{top:auto;left:50%;}
  #mmg-app #mm-grimoire .mm-end-bubble::before{bottom:-15px;margin-left:-9px;border-width:15px 9px 0 9px;border-color:var(--mm-line) transparent transparent transparent;}
  #mmg-app #mm-grimoire .mm-end-bubble::after{bottom:-13px;margin:0 0 0 -8px;border-width:14px 8px 0 8px;border-color:var(--mm-card) transparent transparent transparent;}
  #mmg-app #mm-grimoire .mm-end-bubble .mm-end-title{font-size:24px;}
}
/* "Discover Something New": an empty-looking slot (dashed outline, a slightly darker paper), wider, everything centred. */
#mmg-app #mm-grimoire .mm-end-random{width:min(100%,560px);margin-top:28px;}
#mmg-app #mm-grimoire .mm-end-random .mm-card{border:1.5px dashed var(--mm-line-strong)!important;background:var(--mm-paper-hover)!important;background-image:none!important;box-shadow:none!important;}
@media(hover:hover){#mmg-app #mm-grimoire .mm-end-random .mm-card:hover{background:var(--mm-chip-bg)!important;border-color:var(--mm-primary)!important;}}
#mmg-app #mm-grimoire .mm-end-random .mm-card-link{padding:26px 24px 28px!important;}
#mmg-app #mm-grimoire .mm-end-random .mm-card-row{display:flex;flex-direction:column!important;align-items:center!important;justify-content:center;width:100%;margin:0 auto;text-align:center;}
#mmg-app #mm-grimoire .mm-end-random .mm-card-body{width:100%;margin:0;padding:0;align-items:center;text-align:center;}
#mmg-app #mm-grimoire .mm-end-random :is(.mm-card-category,h3,.mm-card-sum){margin-left:auto;margin-right:auto;text-align:center;}
#mmg-app #mm-grimoire .mm-end-link{margin-top:18px;}
/* Desktop: kitty + bubble on the left, the random card and the Collection link on the right. Phones: stacked. */
#mmg-app #mm-grimoire .mm-end-next{display:flex;flex-direction:column;align-items:center;width:100%;}
@media(min-width:900px){
  #mmg-app #mm-grimoire .mm-daily-end{display:grid;grid-template-columns:1fr 1fr;align-items:center;column-gap:16px;}
  #mmg-app #mm-grimoire .mm-end-scene{width:100%;justify-content:center;}
  #mmg-app #mm-grimoire .mm-end-img{width:180px;height:180px;}
  #mmg-app #mm-grimoire .mm-end-bubble{flex:0 1 300px;}
  #mmg-app #mm-grimoire .mm-end-random{width:100%;margin-top:0;}
}

/* ===== 1.6.82: Grimoire in tidy rows ===== */
/* Pieces sit in neat rows in reading order (like a phone home screen). Dropping a piece between two others puts it exactly there,
   and the pieces after it each step one place along. Moons take two places (the full width on phones). */
/* 1.6.83 */
/* Desktop: the speech bubble and the "Discover" slot line up at the top. */
@media(min-width:900px){
  #mmg-app #mm-grimoire .mm-daily-end{align-items:start!important;}
  #mmg-app #mm-grimoire .mm-end-scene{align-items:flex-start;}
  #mmg-app #mm-grimoire .mm-end-bubble{margin:0;}
  #mmg-app #mm-grimoire .mm-end-bubble::before,#mmg-app #mm-grimoire .mm-end-bubble::after{top:62%;}
}
/* "Discover Something New" reads as an empty slot: a darker, sunken beige and big, well-spaced dashes. */
#mmg-app #mm-grimoire .mm-end-random .mm-card{border:0!important;border-radius:12px;background-color:#e2d1b3!important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='100%25' height='100%25' rx='12' ry='12' fill='none' stroke='%238c755d' stroke-width='3.6' stroke-dasharray='7 6'/%3E%3C/svg%3E")!important;}
@media(hover:hover){#mmg-app #mm-grimoire .mm-end-random .mm-card:hover{background-color:#dac6a4!important;}}
/* Today's four tiles: a lighter hover. */
@media(hover:hover){#mmg-app #mm-grimoire .mm-daily-object:hover,#mmg-app #mm-grimoire .mm-daily-object.mm-daily-seen:hover{background:#f3e9d6!important;}}
#mmg-app #mm-grimoire .mm-daily-object:is(:active,:focus-visible){background:#f3e9d6!important;}
/* Today's tiles: the same visible space above the picture and below the label. */
#mmg-app #mm-grimoire .mm-daily-object .mm-daily-action-label{line-height:1.3!important;}
#mmg-app #mm-grimoire .mm-daily-object{padding-top:24px!important;padding-bottom:20px!important;}
@media(max-width:560px){#mmg-app #mm-grimoire .mm-daily-object{padding-top:20px!important;padding-bottom:16px!important;}}
@media(min-width:561px){#mmg-app #mm-grimoire .mm-daily-object{padding-bottom:24px!important;}}

/* ===== 1.6.84 ===== */
/* "Show me ↑" and "or explore the whole Collection →" follow the existing "… →" link rule (as "Read about the Full Moon →"). */
#mmg-app #mm-grimoire .mm-end-link,#mmg-app #mm-grimoire .mm-end-link:hover,#mmg-app #mm-grimoire .mm-end-link:focus-visible{display:inline;margin:0;padding:0;border:0;background:none!important;
  font:400 var(--mm-text-small)/1.4 var(--mm-font-body);color:var(--mm-primary);text-decoration:underline;text-underline-offset:.2em;text-decoration-thickness:1px;}
#mmg-app #mm-grimoire .mm-end-next>.mm-end-link{display:inline-block;margin-top:16px;}
#mmg-app #mm-grimoire .mm-end-sub .mm-end-link{display:inline-block;margin-top:2px;}
/* Empty slot: finer dashes; on hover the same slot, everything one step darker (fill and dashes). */
#mmg-app #mm-grimoire .mm-end-random .mm-card,#mmg-app #mm-grimoire .mm-end-random .mm-card:hover{
  background-color:#e2d1b3!important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='100%25' height='100%25' rx='12' ry='12' fill='none' stroke='%238c755d' stroke-width='2.5' stroke-dasharray='7 6'/%3E%3C/svg%3E")!important;
  border:0!important;transition:background-color .2s ease!important;}
@media(hover:hover){#mmg-app #mm-grimoire .mm-end-random .mm-card:hover{background-color:#d8c5a3!important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='100%25' height='100%25' rx='12' ry='12' fill='none' stroke='%236b4a33' stroke-width='2.5' stroke-dasharray='7 6'/%3E%3C/svg%3E")!important;}}
/* Bigger kitty. */
#mmg-app #mm-grimoire .mm-end-img{width:230px!important;height:230px!important;}
@media(min-width:900px){#mmg-app #mm-grimoire .mm-end-img{width:220px!important;height:220px!important;}}
@media(max-width:520px){#mmg-app #mm-grimoire .mm-end-img{width:200px!important;height:200px!important;}}
/* Today: the same 16px between every container (the tiles and the calendars no longer have a bigger gap). */
#mmg-app #mm-grimoire .mm-daily-actions+.mm-daily-cals{margin-top:0!important;}
/* Pills: the count sits on the same baseline as the word; icons stay centred. */
/* The random-entry line is black like the title. */

/* ===== 1.6.85: your own notes in the Grimoire ===== */
/* "Add a Note" sits under the filters (alone when the Grimoire is empty). */
#mmg-app #mm-grimoire .mm-board-top .mm-add-note{margin:14px auto 0!important;}
#mmg-app #mm-grimoire .mm-board-top-empty{display:flex;justify-content:center;padding:8px 0 24px;}
#mmg-app #mm-grimoire .mm-board-top-empty .mm-add-note{margin:0!important;}
/* The note paper takes the colour you picked (same lined note design as the entry notes). */
#mmg-app #mm-grimoire .mm-own-note{background-color:var(--note-bg,#fffdf8)!important;}
#mmg-app #mm-grimoire .mm-zoom-note textarea{background-color:var(--note-bg,#fffdf8)!important;}
#mmg-app #mm-grimoire .mm-own-note-icon{display:block;width:56px;height:56px;margin:0 auto 6px;}
#mmg-app #mm-grimoire .mm-own-note-icon img{display:block;width:100%;height:100%;object-fit:contain;}
#mmg-app #mm-grimoire .mm-own-note .mm-paper-pill{display:table;margin:12px 0 0;}
/* Editor: paper colours, the picture slot and the picture picker. */
#mmg-app #mm-grimoire .mm-own-tools{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0 0 16px;}
#mmg-app #mm-grimoire .mm-swatches{display:flex;flex-wrap:wrap;gap:8px;}
#mmg-app #mm-grimoire .mm-swatch,#mmg-app #mm-grimoire .mm-swatch:is(:hover,:focus,:active){appearance:none;width:30px;height:30px;min-height:0;margin:0;padding:0;border-radius:50%!important;border:1px solid var(--mm-line)!important;background:var(--sw)!important;box-shadow:none!important;cursor:pointer;transition:transform .15s ease;}
#mmg-app #mm-grimoire .mm-swatch[aria-pressed="true"]{border:2px solid var(--mm-primary)!important;}
@media(hover:hover){#mmg-app #mm-grimoire .mm-swatch:hover{border-color:var(--mm-line-strong)!important;}}
#mmg-app #mm-grimoire .mm-swatch:focus-visible{outline:0;border:2px solid var(--mm-primary)!important;}
/* The picture slot: an empty dashed square (something can be added); shows the picture once chosen. */
#mmg-app #mm-grimoire .mm-icon-slot,#mmg-app #mm-grimoire .mm-icon-slot:is(:hover,:focus,:active){appearance:none;flex:none;display:grid;place-items:center;width:64px;height:64px;min-height:0;margin:0;padding:6px;border:0!important;border-radius:12px;box-shadow:none!important;cursor:pointer;
  background-color:#e2d1b3!important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='100%25' height='100%25' rx='12' ry='12' fill='none' stroke='%238c755d' stroke-width='2.2' stroke-dasharray='7 6'/%3E%3C/svg%3E")!important;transition:background-color .2s ease;}
@media(hover:hover){#mmg-app #mm-grimoire .mm-icon-slot:hover{background-color:#d8c5a3!important;}}
#mmg-app #mm-grimoire .mm-icon-slot img{display:block;width:100%;height:100%;object-fit:contain;}
#mmg-app #mm-grimoire .mm-icon-slot-plus{font:400 30px/1 var(--mm-font-body);color:var(--mm-primary);}
#mmg-app #mm-grimoire .mm-icon-picker{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px;margin:0 0 16px;}
#mmg-app #mm-grimoire .mm-icon-picker[hidden]{display:none;}
#mmg-app #mm-grimoire .mm-icon-choice,#mmg-app #mm-grimoire .mm-icon-choice:is(:hover,:focus,:active){appearance:none;display:grid;place-items:center;aspect-ratio:1;min-height:0;margin:0;padding:6px;border:1px solid var(--mm-line)!important;border-radius:12px;background:var(--mm-card)!important;box-shadow:none!important;cursor:pointer;}
#mmg-app #mm-grimoire .mm-icon-choice[aria-pressed="true"]{border:2px solid var(--mm-primary)!important;background:var(--mm-chip-bg)!important;}
@media(hover:hover){#mmg-app #mm-grimoire .mm-icon-choice:hover{background:var(--mm-paper-hover)!important;}}
#mmg-app #mm-grimoire .mm-icon-choice img{display:block;width:100%;height:100%;object-fit:contain;}
#mmg-app #mm-grimoire .mm-icon-choice span{font:400 12px/1.2 var(--mm-font-body);color:var(--mm-muted);}
#mmg-app #mm-grimoire .mm-zoom-o .mm-paper-pill{display:table;margin:14px auto 0;}
#mmg-app #mm-grimoire .mm-zoom-o textarea::placeholder{color:rgba(107,74,51,.45);}
@media(max-width:600px){#mmg-app #mm-grimoire .mm-own-tools{flex-direction:column-reverse;align-items:center;}#mmg-app #mm-grimoire .mm-swatches{justify-content:center;}#mmg-app #mm-grimoire .mm-icon-picker{grid-template-columns:repeat(5,minmax(0,1fr));}}
#mmg-app #mm-grimoire .mm-icon-slot.mm-icon-slot-filled,#mmg-app #mm-grimoire .mm-icon-slot.mm-icon-slot-filled:is(:hover,:focus,:active){background-image:none!important;background-color:var(--mm-card)!important;border:1px solid var(--mm-line)!important;}
@media(hover:hover){#mmg-app #mm-grimoire .mm-icon-slot.mm-icon-slot-filled:hover{background-color:var(--mm-paper-hover)!important;}}
/* 1.6.85 pills: word, icon and count all centred in the pill; the count gets the same line height as the word,
   so it also sits on the word's baseline. */
#mmg-app #mm-grimoire :is(.mm-board-filter,.mm-daily-tag,.mm-spell-tag),#mmg-app .mm-cat{align-items:center!important;line-height:20px!important;}
#mmg-app #mm-grimoire .mm-board-filter span,#mmg-app .mm-cat span{font-size:13px;line-height:20px!important;}
#mmg-app #mm-grimoire :is(.mm-board-filter,.mm-daily-tag,.mm-spell-tag),#mmg-app .mm-cat{padding-top:5.5px!important;padding-bottom:4.5px!important;}
/* Notes: the date is a little white sticker (die-cut paper label, slightly tilted) instead of a pill. */
#mmg-app #mm-grimoire :is(.mm-own-note,.mm-zoom-o) .mm-paper-pill{display:table;min-height:0;padding:5px 11px 5px!important;border:1px solid rgba(140,117,93,.28)!important;border-radius:5px!important;
  background:#fffefb!important;color:var(--mm-primary)!important;font:400 13px/16px var(--mm-font-body)!important;letter-spacing:.02em;transform:rotate(-2.5deg);}
#mmg-app #mm-grimoire .mm-own-note .mm-paper-pill{margin:14px 0 2px 2px;}
#mmg-app #mm-grimoire .mm-zoom-o .mm-paper-pill{margin:16px auto 0;}
#mmg-app #mm-grimoire :is(.mm-own-note,.mm-zoom-o) .mm-paper-pill{min-height:0!important;height:auto!important;display:table!important;}
#mmg-app #mm-grimoire .mm-icon-picker{grid-template-columns:repeat(9,minmax(0,1fr));}@media(max-width:600px){#mmg-app #mm-grimoire .mm-icon-picker{grid-template-columns:repeat(5,minmax(0,1fr));}}
/* Note dates: a round label pill, exactly like the other date pills, in a slightly darker shade of the note's own colour
   (as the beige pill on the beige Witch Tip paper). */
#mmg-app #mm-grimoire :is(.mm-own-note,.mm-zoom-o) .mm-paper-pill{display:table!important;min-height:36px!important;height:auto!important;padding:5px 15px!important;border:0!important;border-radius:999px!important;
  background:var(--note-pill,#ece2cf)!important;color:var(--mm-primary)!important;font:400 15px/26px var(--mm-font-body)!important;letter-spacing:0;transform:none!important;box-sizing:border-box;}

/* ===== 1.6.87: note editor = the note itself; round "new note" button ===== */
/* Round button with a pen, at the top-right edge of the Grimoire. */
#mmg-app #mm-grimoire #mm-board{position:relative;}
#mmg-app #mm-grimoire .mm-add-note,#mmg-app #mm-grimoire .mm-add-note:is(:hover,:focus,:active){position:absolute;top:0;right:0;z-index:3;display:grid;place-items:center;width:48px;height:48px;min-height:0;margin:0!important;padding:0;border:0!important;border-radius:50%!important;
  background-color:var(--mmb-primary)!important;background-image:var(--mmb-rest)!important;box-shadow:none!important;cursor:pointer;transition:background-color .2s ease!important;}
@media(hover:hover){#mmg-app #mm-grimoire .mm-add-note:hover{background-image:var(--mmb-hover)!important;}}
#mmg-app #mm-grimoire .mm-add-note:active,#mmg-app #mm-grimoire .mm-add-note:focus-visible{outline:0;background-image:var(--mmb-press)!important;}
#mmg-app #mm-grimoire .mm-add-note svg{width:19px;height:19px;fill:var(--mmb-on-primary)!important;color:var(--mmb-on-primary)!important;}
#mmg-app #mm-grimoire .mm-board-top{position:relative;}
#mmg-app #mm-grimoire .mm-board-top-empty{min-height:48px;}
@media(max-width:600px){#mmg-app #mm-grimoire .mm-add-note,#mmg-app #mm-grimoire .mm-add-note:is(:hover,:focus,:active){width:44px;height:44px;}}
/* The editor's note paper: same torn, lined note; picture slot at the top, date at the bottom, all on the note colour. */
#mmg-app #mm-grimoire .mm-own-paper{--line:38px;position:relative;margin:0;clip-path:var(--mm-torn-shape);background-color:var(--note-bg,#fffdf8);
  background-image:linear-gradient(90deg,transparent 33px,rgba(196,110,96,.28) 33px,rgba(196,110,96,.28) 34px,transparent 34px);}
#mmg-app #mm-grimoire .mm-own-paper-top{display:flex;justify-content:center;padding:22px 20px 4px 50px;}
#mmg-app #mm-grimoire .mm-own-paper textarea,#mmg-app #mm-grimoire .mm-own-paper textarea:focus{display:block;box-sizing:border-box;width:100%;min-height:150px;margin:0;padding:6px 20px 8px 50px;resize:none;overflow:hidden;border:0;border-radius:0;outline:0;clip-path:none;box-shadow:none;
  background-color:transparent!important;background-image:repeating-linear-gradient(180deg,transparent 0,transparent calc(var(--line) - 1px),rgba(120,146,176,.22) calc(var(--line) - 1px),rgba(120,146,176,.22) var(--line));background-position:0 6px;background-attachment:local;
  font:500 26px/var(--line) var(--mm-font-hand);color:var(--mm-primary);text-align:left;}
#mmg-app #mm-grimoire .mm-own-paper textarea::placeholder{color:rgba(107,74,51,.45);}
#mmg-app #mm-grimoire .mm-own-paper-foot{padding:6px 20px 24px 50px;}
#mmg-app #mm-grimoire .mm-own-paper-foot .mm-paper-pill{margin:0!important;}
#mmg-app #mm-grimoire .mm-own-paper .mm-icon-picker{margin:8px 20px 6px 50px;}
@media(max-width:600px){#mmg-app #mm-grimoire .mm-own-paper{--line:36px;}#mmg-app #mm-grimoire .mm-own-paper textarea{font-size:24px;}#mmg-app #mm-grimoire .mm-own-paper .mm-icon-picker{margin-left:40px;margin-right:14px;}}
/* Picture slot on the paper: empty = a dashed square in the note's own darker shade; filled = just the picture. */
#mmg-app #mm-grimoire .mm-own-paper .mm-icon-slot,#mmg-app #mm-grimoire .mm-own-paper .mm-icon-slot:is(:hover,:focus,:active){width:64px;height:64px;background-color:var(--note-pill)!important;}
@media(hover:hover){#mmg-app #mm-grimoire .mm-own-paper .mm-icon-slot:hover{filter:none;background-color:var(--note-pill)!important;}}
#mmg-app #mm-grimoire .mm-own-paper .mm-icon-slot.mm-icon-slot-filled,#mmg-app #mm-grimoire .mm-own-paper .mm-icon-slot.mm-icon-slot-filled:is(:hover,:focus,:active){background-color:transparent!important;background-image:none!important;border:0!important;}
@media(hover:hover){#mmg-app #mm-grimoire .mm-own-paper .mm-icon-slot.mm-icon-slot-filled:hover{background-color:var(--note-pill)!important;}}
#mmg-app #mm-grimoire .mm-own-paper .mm-icon-choice,#mmg-app #mm-grimoire .mm-own-paper .mm-icon-choice:is(:hover,:focus,:active){background:var(--note-pill)!important;border-color:transparent!important;}
#mmg-app #mm-grimoire .mm-own-paper .mm-icon-choice[aria-pressed="true"]{border:2px solid var(--mm-primary)!important;}
/* Below the note: colours, then Save / Cancel. */
#mmg-app #mm-grimoire .mm-zoom-o .mm-swatches{justify-content:center;margin:18px 0 0;}
#mmg-app #mm-grimoire .mm-own-actions{display:flex;flex-direction:column;align-items:center;gap:6px;margin-top:20px;}
#mmg-app #mm-grimoire .mm-own-actions .mm-action:disabled{opacity:.45;cursor:not-allowed;}
#mmg-app #mm-grimoire .mm-zoom-o .mm-own-tools{display:none;}

/* ===== 1.6.88 ===== */
/* Note editor: colours on top, the note, then Cancel (left) and Save (right). */
#mmg-app #mm-grimoire .mm-zoom-o .mm-swatches{justify-content:center;margin:0 0 16px;}
#mmg-app #mm-grimoire .mm-own-actions{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:12px;margin-top:20px;}
#mmg-app #mm-grimoire .mm-btn-icon{width:15px;height:15px;flex:none;fill:currentColor!important;color:inherit!important;}
#mmg-app #mm-grimoire .mm-own-actions .mm-action svg{fill:var(--mmb-on-primary)!important;color:var(--mmb-on-primary)!important;}
/* Picture on the note: bigger, and always inside a dashed outline (empty or filled). */
#mmg-app #mm-grimoire .mm-own-paper .mm-icon-slot,#mmg-app #mm-grimoire .mm-own-paper .mm-icon-slot:is(:hover,:focus,:active),
#mmg-app #mm-grimoire .mm-own-paper .mm-icon-slot.mm-icon-slot-filled,#mmg-app #mm-grimoire .mm-own-paper .mm-icon-slot.mm-icon-slot-filled:is(:hover,:focus,:active){
  width:104px;height:104px;padding:10px;border:0!important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='100%25' height='100%25' rx='12' ry='12' fill='none' stroke='%238c755d' stroke-width='2.2' stroke-dasharray='7 6'/%3E%3C/svg%3E")!important;}
#mmg-app #mm-grimoire .mm-own-paper .mm-icon-slot.mm-icon-slot-filled{background-color:transparent!important;}
@media(hover:hover){#mmg-app #mm-grimoire .mm-own-paper .mm-icon-slot:hover,#mmg-app #mm-grimoire .mm-own-paper .mm-icon-slot.mm-icon-slot-filled:hover{background-color:var(--note-pill)!important;}}
#mmg-app #mm-grimoire .mm-own-paper .mm-icon-slot-plus{font-size:36px;}
#mmg-app #mm-grimoire .mm-own-note-icon{width:76px;height:76px;}
/* Opening and closing the note popup: a soft fade and scale. */
#mmg-app #mm-grimoire .mm-zoom-o[open]{animation:mm-own-in .28s cubic-bezier(.22,.8,.3,1) both;}
#mmg-app #mm-grimoire .mm-zoom-o.mm-own-closing{animation:mm-own-out .2s ease both;}
@keyframes mm-own-in{from{opacity:0;transform:translateY(10px) scale(.97);}to{opacity:1;transform:none;}}
@keyframes mm-own-out{to{opacity:0;transform:translateY(6px) scale(.98);}}
/* A newly added note appears softly in its spot. */
#mmg-app #mm-grimoire .mm-piece.mm-piece-appear{animation:mm-piece-appear .45s cubic-bezier(.22,.8,.3,1) both;}
@keyframes mm-piece-appear{from{opacity:0;transform:rotate(var(--tilt,0deg)) scale(.9);}to{opacity:1;transform:rotate(var(--tilt,0deg)) scale(1);}}
@media(prefers-reduced-motion:reduce){#mmg-app #mm-grimoire .mm-zoom-o[open],#mmg-app #mm-grimoire .mm-zoom-o.mm-own-closing,#mmg-app #mm-grimoire .mm-piece.mm-piece-appear{animation:none;}}
/* The round pen button lines up with the filter row (same centre line) and with the right edge of the grid. */
#mmg-app #mm-grimoire .mm-board-top .mm-add-note,#mmg-app #mm-grimoire .mm-board-top .mm-add-note:is(:hover,:focus,:active){top:-6px;right:2px;}
#mmg-app #mm-grimoire .mm-board-top-empty .mm-add-note,#mmg-app #mm-grimoire .mm-board-top-empty .mm-add-note:is(:hover,:focus,:active){position:static;}
@media(max-width:600px){#mmg-app #mm-grimoire .mm-board-top .mm-add-note,#mmg-app #mm-grimoire .mm-board-top .mm-add-note:is(:hover,:focus,:active){top:-4px;}}
#mmg-app #mm-grimoire .mm-board-top .mm-add-note,#mmg-app #mm-grimoire .mm-board-top .mm-add-note:is(:hover,:focus,:active){top:-20px;}
@media(max-width:600px){#mmg-app #mm-grimoire .mm-board-top .mm-add-note,#mmg-app #mm-grimoire .mm-board-top .mm-add-note:is(:hover,:focus,:active){top:-18px;}}
/* Phones: the filters and the round pen button share one row (the button gets its own space at the right), the hint goes underneath. */
@media(max-width:700px){
  #mmg-app #mm-grimoire .mm-board-top:not(.mm-board-top-empty){display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:10px;}
  #mmg-app #mm-grimoire .mm-board-top:not(.mm-board-top-empty) .mm-board-filters{grid-column:1;justify-content:flex-start;margin:0;}
  #mmg-app #mm-grimoire .mm-board-top .mm-add-note,#mmg-app #mm-grimoire .mm-board-top .mm-add-note:is(:hover,:focus,:active){position:static;grid-column:2;grid-row:1;}
  #mmg-app #mm-grimoire .mm-board-top:not(.mm-board-top-empty) .mm-board-hint{grid-column:1 / -1;}
}
@media(max-width:700px){
  #mmg-app #mm-grimoire .mm-board-top:not(.mm-board-top-empty){align-items:start;}
  #mmg-app #mm-grimoire .mm-board-top .mm-add-note,#mmg-app #mm-grimoire .mm-board-top .mm-add-note:is(:hover,:focus,:active){margin:-4px 2px 0 0!important;}
}

/* ===== 1.6.89: one "go somewhere" link style =====
   Research (GOV.UK, Red Hat, Smart Interface Design Patterns): the words carry a thin underline with a little space under the letters;
   the arrow is a separate, short icon beside them and is not underlined; on hover/keyboard focus the underline gets thicker,
   the colour deepens and the arrow nudges in its direction. */
#mmg-app #mm-grimoire :is(.mm-go,.mm-zoom-visit){display:inline-flex;align-items:baseline;gap:.4em;text-decoration:none!important;color:var(--mm-primary);background:none!important;transition:color .2s ease;}
#mmg-app #mm-grimoire :is(.mm-go,.mm-zoom-visit) .mm-go-text{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.2em;text-decoration-color:currentColor;transition:text-decoration-thickness .15s ease;}
#mmg-app #mm-grimoire .mm-go-arrow{flex:none;align-self:center;width:.72em;height:.72em;fill:currentColor!important;color:currentColor!important;transition:transform .2s cubic-bezier(.2,.8,.3,1);}
@media(hover:hover){
  #mmg-app #mm-grimoire :is(.mm-go,.mm-zoom-visit):hover{color:#4f3624;}
  #mmg-app #mm-grimoire :is(.mm-go,.mm-zoom-visit):hover .mm-go-text{text-decoration-thickness:2px;}
  #mmg-app #mm-grimoire :is(.mm-go,.mm-zoom-visit):hover .mm-go-arrow{transform:translateX(3px);}
  #mmg-app #mm-grimoire :is(.mm-go,.mm-zoom-visit):hover .mm-go-arrow-up{transform:translateY(-3px);}
}
#mmg-app #mm-grimoire :is(.mm-go,.mm-zoom-visit):focus-visible{outline:0;color:#4f3624;}
#mmg-app #mm-grimoire :is(.mm-go,.mm-zoom-visit):focus-visible .mm-go-text{text-decoration-thickness:2px;}
#mmg-app #mm-grimoire :is(.mm-go,.mm-zoom-visit):focus-visible .mm-go-arrow{transform:translateX(3px);}
/* On the night sky the link is cream and brightens to white. */
#mmg-app #mm-grimoire .mm-zoom-m .mm-zoom-visit{color:#f7efdd;}
@media(hover:hover){#mmg-app #mm-grimoire .mm-zoom-m .mm-zoom-visit:hover{color:#fff;}}
@media(prefers-reduced-motion:reduce){#mmg-app #mm-grimoire .mm-go-arrow{transition:none;}}
/* The two end-of-Today links use the same rule (stronger than their older link style). */
#mmg-app #mm-grimoire .mm-daily-end a.mm-end-link.mm-go,#mmg-app #mm-grimoire .mm-daily-end a.mm-end-link.mm-go:is(:hover,:focus-visible){display:inline-flex!important;align-items:baseline;gap:.4em;text-decoration:none!important;}
#mmg-app #mm-grimoire .mm-daily-end a.mm-end-link.mm-go .mm-go-text{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.2em;}
@media(hover:hover){#mmg-app #mm-grimoire .mm-daily-end a.mm-end-link.mm-go:hover .mm-go-text{text-decoration-thickness:2px;}}
#mmg-app #mm-grimoire .mm-daily-end a.mm-end-link.mm-go:focus-visible .mm-go-text{text-decoration-thickness:2px;}

/* ===== 1.6.90: smooth hovers ===== */
/* Brown buttons: a fixed soft sheen on top of a brown that fades smoothly between rest / hover / press
   (a gradient can't fade into another gradient, which is why the hover used to snap). */
#mmg-app{--mmb-sheen2:linear-gradient(180deg,rgba(255,240,220,.10) 0%,rgba(255,240,220,0) 50%,rgba(40,25,12,.10) 100%);--mmb-c-rest:#715239;--mmb-c-hover:#5f4431;--mmb-c-press:#523a2a;}
#mmg-app #mm-grimoire :is(.mm-action,.mm-moon-remind-button,.mm-confirm-delete),
#mmg-app #mm-grimoire :is(.mm-action,.mm-moon-remind-button,.mm-confirm-delete):is(:hover,:focus,:active),
#mmg-app :is(.mmg-button,.mmg-support-send,.mmg-renamed-done,.mmg-session-notice button,.mmg-gate button:not(.mmg-secondary):not(.mmg-onboard-skip),.mmg-gate input[type=submit]),
#mmg-app :is(.mmg-button,.mmg-support-send,.mmg-renamed-done,.mmg-session-notice button,.mmg-gate button:not(.mmg-secondary):not(.mmg-onboard-skip),.mmg-gate input[type=submit]):is(:hover,:focus,:active){
  background-image:var(--mmb-sheen2)!important;background-color:var(--mmb-c-rest)!important;transition:background-color .22s ease!important;}
@media(hover:hover){
#mmg-app #mm-grimoire :is(.mm-action,.mm-moon-remind-button,.mm-confirm-delete):not(:disabled):hover,
#mmg-app :is(.mmg-button,.mmg-support-send,.mmg-renamed-done,.mmg-session-notice button,.mmg-gate button:not(.mmg-secondary):not(.mmg-onboard-skip),.mmg-gate input[type=submit]):not(:disabled):hover{background-image:var(--mmb-sheen2)!important;background-color:var(--mmb-c-hover)!important;}}
#mmg-app #mm-grimoire :is(.mm-action,.mm-moon-remind-button,.mm-confirm-delete):focus-visible,
#mmg-app :is(.mmg-button,.mmg-support-send,.mmg-renamed-done,.mmg-session-notice button,.mmg-gate button:not(.mmg-secondary):not(.mmg-onboard-skip),.mmg-gate input[type=submit]):focus-visible{background-image:var(--mmb-sheen2)!important;background-color:var(--mmb-c-hover)!important;}
#mmg-app #mm-grimoire :is(.mm-action,.mm-moon-remind-button,.mm-confirm-delete):not(:disabled):active,
#mmg-app :is(.mmg-button,.mmg-support-send,.mmg-renamed-done,.mmg-session-notice button,.mmg-gate button:not(.mmg-secondary):not(.mmg-onboard-skip),.mmg-gate input[type=submit]):not(:disabled):active{background-image:var(--mmb-sheen2)!important;background-color:var(--mmb-c-press)!important;}

/* Round pen button: one fixed place (no rule moves it on hover), the same smooth colour fade, and the pen tilts slightly
   on hover as a small, friendly "write" cue. */
#mmg-app #mm-grimoire #mm-board .mm-board-top .mm-add-note,
#mmg-app #mm-grimoire #mm-board .mm-board-top .mm-add-note:is(:hover,:focus,:focus-visible,:active){
  position:absolute!important;top:-6px!important;right:2px!important;left:auto!important;bottom:auto!important;margin:0!important;width:48px!important;height:48px!important;padding:0!important;
  transform:none!important;border:0!important;border-radius:50%!important;box-shadow:none!important;outline:0!important;
  background-image:var(--mmb-sheen2)!important;background-color:var(--mmb-c-rest)!important;transition:background-color .22s ease!important;}
@media(hover:hover){#mmg-app #mm-grimoire #mm-board .mm-board-top .mm-add-note:hover{background-color:var(--mmb-c-hover)!important;}}
#mmg-app #mm-grimoire #mm-board .mm-board-top .mm-add-note:focus-visible{background-color:var(--mmb-c-hover)!important;}
#mmg-app #mm-grimoire #mm-board .mm-board-top .mm-add-note:active{background-color:var(--mmb-c-press)!important;}
#mmg-app #mm-grimoire .mm-add-note svg{transition:transform .25s cubic-bezier(.2,.8,.3,1);transform-origin:40% 60%;}
@media(hover:hover){#mmg-app #mm-grimoire .mm-add-note:hover svg{transform:rotate(-8deg);}}
@media(max-width:700px){
  #mmg-app #mm-grimoire #mm-board .mm-board-top:not(.mm-board-top-empty) .mm-add-note,
  #mmg-app #mm-grimoire #mm-board .mm-board-top:not(.mm-board-top-empty) .mm-add-note:is(:hover,:focus,:focus-visible,:active){position:static!important;top:auto!important;right:auto!important;margin:-4px 2px 0 0!important;width:44px!important;height:44px!important;}
}
#mmg-app #mm-grimoire #mm-board .mm-board-top-empty .mm-add-note,#mmg-app #mm-grimoire #mm-board .mm-board-top-empty .mm-add-note:is(:hover,:focus,:focus-visible,:active){position:static!important;margin:0!important;}
@media(prefers-reduced-motion:reduce){#mmg-app #mm-grimoire .mm-add-note svg{transition:none;}}
#mmg-app #mm-grimoire .mm-icon-picker{grid-template-columns:repeat(9,minmax(0,1fr));}@media(max-width:600px){#mmg-app #mm-grimoire .mm-icon-picker{grid-template-columns:repeat(5,minmax(0,1fr));}}

/* ===== 1.6.91: ONE rule for the text inside every pill =====
   Fixed height (36px), no vertical padding, flex-centred line of a fixed height — so the words always sit in the middle,
   whatever context the pill is in (Today, popups, Grimoire, close-ups, notes, night sky). */
#mmg-app #mm-grimoire :is(.mm-daily-tag,.mm-spell-tag,.mm-board-filter,button.mm-moon-sky-tag,.mm-moon-sky-tag-static,.mm-ag-when,.mm-paper-pill,.mm-moon-card-when),
#mmg-app :is(.mm-cat,.mm-paper-pill),
#mmg-app #mm-grimoire .mm-zoom :is(.mm-paper-pill,.mm-moon-card-when),#mmg-app #mm-grimoire :is(.mm-own-note,.mm-zoom-o,.mm-ritual-card,.mm-ritual-card-big,.mm-tip-paper) .mm-paper-pill{
  display:inline-flex!important;align-items:center!important;justify-content:center;box-sizing:border-box!important;height:36px!important;min-height:36px!important;
  padding-top:0!important;padding-bottom:0!important;line-height:20px!important;vertical-align:middle;}
#mmg-app #mm-grimoire :is(.mm-zoom,.mm-own-note,.mm-zoom-o,.mm-ritual-card,.mm-ritual-card-big,.mm-tip-paper) .mm-paper-pill{display:flex!important;width:max-content;}
#mmg-app #mm-grimoire :is(.mm-board-filter,.mm-moon-card-when),#mmg-app #mm-grimoire :is(.mm-zoom,.mm-zoom-o,.mm-ritual-card,.mm-ritual-card-big,.mm-tip-paper) .mm-paper-pill{padding-top:2px!important;}
#mmg-app #mm-grimoire #mm-board .mm-board-filter.mm-board-filter,#mmg-app #mm-grimoire .mm-moon-card .mm-moon-card-when.mm-moon-card-when{padding-top:2px!important;padding-bottom:0!important;}
#mmg-app #mm-grimoire .mm-moon-card.mm-moon-card-big .mm-moon-card-when.mm-moon-card-when{padding-top:0!important;}

/* ===== 1.6.91 · search chip, end card, board hint, mobile popups and footer ===== */
/* Active-filter chip: same 36px pill as the tags, more room before the word, the × keeps a tighter right edge. */
#mmg-app #mm-grimoire .mm-chip.mm-chip{display:inline-flex!important;align-items:center!important;box-sizing:border-box;height:36px;min-height:36px!important;padding:0 12px 0 18px!important;gap:10px;line-height:20px;}
/* "Discover Something New" in the standard title font (Cardo). */
#mmg-app #mm-grimoire .mm-end-random h3{font-family:var(--mm-font-heading)!important;}
/* Grimoire: "Press and hold to move" lines up with the left-aligned pills. */
@media(max-width:700px){#mmg-app #mm-grimoire .mm-board-hint{text-align:left!important;justify-self:start!important;margin-left:0!important;margin-right:auto!important;}}
@media(max-width:520px){
  /* the bubble sits higher above the cat */
  #mmg-app #mm-grimoire .mm-end-scene{gap:26px!important;}
  /* less empty space under "or explore the whole Collection" */
  #mmg-app #mm-grimoire .mm-daily-end{padding-bottom:0!important;}
  #mmg-app #mm-grimoire .mm-daily-tracker:has(.mm-daily-end){margin-bottom:0!important;}
}
/* Mobile footer: the fixed bottom menu used to sit on top of the "© Mistmagia · Privacy Policy" footer.
   The footer now ends with room for the menu, so it scrolls fully into view above it; the spacer above it shrinks so there's no double gap. */
@media(max-width:720px){
  #mmg-app:has(.mm-bottom-nav.mm-nav-ready):not(.mmg-welcome-mode):not(:has(.mmg-welcome-mode)) .mmg-legal-footer{padding-bottom:calc(18px + 96px + env(safe-area-inset-bottom,0px))!important;}
  #mmg-app:has(.mm-bottom-nav.mm-nav-ready) #mm-grimoire .mm-nav-spacer{height:24px!important;}
}
/* 1.6.92 · Today: the last section (cat + Surprise Me) uses the same 16px gap as every other section. */
#mmg-app #mm-grimoire .mm-daily-tracker>.mm-daily-end{margin-top:0!important;}
/* 1.6.93 · Note editor: an empty note is two ruled lines tall and grows as you write. */
#mmg-app #mm-grimoire .mm-own-paper textarea,#mmg-app #mm-grimoire .mm-own-paper textarea:focus{min-height:calc(var(--line) * 2 + 14px)!important;}
/* Save = round brown button with a check (same family as the round pen button); Cancel = the Link style without its arrow. */
#mmg-app #mm-grimoire .mm-own-actions{justify-content:space-between!important;align-items:center!important;}
#mmg-app #mm-grimoire .mm-own-actions .mm-own-save{display:inline-grid!important;place-items:center;flex:none;box-sizing:border-box;width:52px!important;height:52px!important;min-width:0!important;min-height:0!important;padding:0!important;border-radius:50%!important;gap:0!important;}
#mmg-app #mm-grimoire .mm-own-actions .mm-own-save svg{width:22px!important;height:22px!important;margin:0!important;}
#mmg-app #mm-grimoire .mm-own-actions .mm-own-cancel,#mmg-app #mm-grimoire .mm-own-actions .mm-own-cancel:is(:hover,:focus,:focus-visible,:active){appearance:none;-webkit-appearance:none;min-width:0!important;min-height:44px!important;width:auto!important;height:auto!important;margin:0!important;padding:0 4px!important;border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important;outline:0!important;font:inherit;font-size:var(--mm-text-base,17px);letter-spacing:0;text-transform:none;cursor:pointer;}
/* "None" in the picture picker: black, in the handwriting font. */
#mmg-app #mm-grimoire .mm-icon-choice .mm-icon-none{font:500 22px/1 var(--mm-font-hand)!important;color:#000!important;letter-spacing:0;text-transform:none;}

/* 1.6.94 · Board: "Drag to rearrange" stays centred on desktop (left-aligned only on mobile, under the left-aligned pills).
   While a piece is being dragged it sways gently, like a paper held between two fingers (rotation only, no shadow). */
@keyframes mm-drag-sway{0%,100%{rotate:-1.5deg;}50%{rotate:.8deg;}}
#mmg-app #mm-grimoire .mm-piece.mm-piece-dragging{transform:scale(1.05)!important;rotate:-1.5deg;animation:mm-drag-sway 1.6s ease-in-out .15s infinite!important;}
#mmg-app #mm-grimoire .mm-piece.mm-piece-dragging.mm-piece-landing{animation:none!important;rotate:0deg;transform:scale(1)!important;transition:translate .26s cubic-bezier(.2,.8,.25,1),transform .26s cubic-bezier(.2,.8,.25,1),rotate .26s ease!important;}
@media(prefers-reduced-motion:reduce){#mmg-app #mm-grimoire .mm-piece.mm-piece-dragging{animation:none!important;rotate:0deg;}}
/* 1.6.94 · Night-sky lines a bit lighter: calendar table, dividers, Today's Moon and the moon stickers in the Grimoire. */
#mmg-app{--mm-sky-line:rgba(216,229,235,.22);--mm-sky-line-strong:rgba(216,229,235,.5);}
#mmg-app #mm-grimoire .mm-daily-sky .mm-daily-link{border-color:rgba(216,229,235,.3);}
/* 1.6.95 · Note popup: a deeper parchment gradient behind the note (like the Grimoire page), so the light paper's torn edges stay visible. */
#mmg-app #mm-grimoire .mm-zoom.mm-zoom-o{--own-pad:clamp(20px,5vw,32px);background:var(--mm-popup-bg)!important;padding-bottom:var(--own-pad)!important;}
/* The round check sits the same distance from the note above it, the right edge and the bottom edge. */
#mmg-app #mm-grimoire .mm-zoom-o .mm-own-actions{margin-top:var(--own-pad)!important;}
#mmg-app #mm-grimoire .mm-zoom-o .mm-swatch:not([aria-pressed="true"]){border-color:rgba(114,82,54,.35);}
/* 1.6.96 · The cat's speech bubble is drawn by hand: a slightly wobbly ink outline with an organic tail
   (pointing at the cat on the left on wider screens, pointing down at the cat on phones). */
#mmg-app #mm-grimoire .mm-end-bubble{border:0!important;background:none!important;isolation:isolate;}
#mmg-app #mm-grimoire .mm-end-bubble::before,#mmg-app #mm-grimoire .mm-end-bubble::after{content:none!important;display:none!important;}
#mmg-app #mm-grimoire .mm-end-bubble>p{position:relative;z-index:1;}
#mmg-app #mm-grimoire .mm-end-bubble-shape{position:absolute;inset:0;z-index:0;width:100%;height:100%;overflow:visible;pointer-events:none;}
#mmg-app #mm-grimoire .mm-end-bubble-shape path{fill:var(--mm-card);stroke:var(--mm-line-strong);stroke-width:1.6px;stroke-linejoin:round;stroke-linecap:round;vector-effect:non-scaling-stroke;}
/* a second, fainter pass of the pen, nudged a hair, like a line drawn twice */
#mmg-app #mm-grimoire .mm-end-bubble-shape path.mm-end-bubble-pass{fill:none;stroke-width:1px;opacity:.45;transform:translate(.6px,.5px) rotate(.25deg);transform-origin:50% 50%;}
#mmg-app #mm-grimoire .mm-end-bubble-down{display:none;}
@media(max-width:520px){
  #mmg-app #mm-grimoire .mm-end-bubble-side{display:none;}
  #mmg-app #mm-grimoire .mm-end-bubble-down{display:block;}
}
/* 1.6.96 · One background for every popup container: the same parchment gradient as the note popup.
   (Popups that are themselves a sheet of torn paper — Witch Tip, Affirmation — and the night-sky moon popups keep their own look.) */
#mmg-app{--mm-popup-bg:linear-gradient(to bottom,#f6eedd,#e5d5b8);}
#mmg-app .mmg-support:not(.mm-daily-dialog),
#mmg-app #mm-grimoire .mm-confirm,
#mmg-app #mm-grimoire .mm-zoom:not(.mm-zoom-t):not(.mm-zoom-a):not(.mm-zoom-m),
#mmg-app #mm-grimoire .mm-daily-dialog:not([data-kind=tip]):not([data-kind=affirmation]):not([data-kind^=moon]){background:var(--mm-popup-bg)!important;background-color:#eee2cb!important;}
#mmg-app #mm-grimoire .mm-zoom.mm-zoom-o{background:var(--mm-popup-bg)!important;}
/* 1.6.96 · Same space between the last thing on every page (Today, Collection, an entry, the Grimoire) and the footer.
   Pages no longer add their own bottom padding/margins; one spacer sets the gap, and the footer itself keeps room for the menu below it. */
#mmg-app{--mm-page-end:56px;}
@media(max-width:720px){#mmg-app{--mm-page-end:40px;}}
#mmg-app #mm-grimoire .mm-daily-tracker{margin-bottom:0!important;}
#mmg-app #mm-grimoire .mm-daily-end{padding-bottom:0!important;}
#mmg-app #mm-grimoire .mm-grid{padding-bottom:0!important;}
#mmg-app #mm-grimoire .mm-detail-wrap{margin-bottom:0!important;}
#mmg-app #mm-grimoire .mm-detail-wrap>:last-child{margin-bottom:0!important;}
#mmg-app #mm-grimoire .mm-board-page{padding-bottom:0!important;}
#mmg-app #mm-grimoire .mm-board-grid{margin-bottom:-22px!important;}
#mmg-app #mm-grimoire .mm-nav-spacer,#mmg-app:has(.mm-bottom-nav.mm-nav-ready) #mm-grimoire .mm-nav-spacer{height:var(--mm-page-end)!important;}
@media(min-width:721px){
  #mmg-app:has(.mm-bottom-nav.mm-nav-ready):not(.mmg-welcome-mode):not(:has(.mmg-welcome-mode)) .mmg-legal-footer{padding-bottom:calc(18px + 120px + env(safe-area-inset-bottom,0px))!important;}
}
/* Grimoire ritual popup on mobile: more room on both sides so the steps don't run to the edges. */
@media(max-width:600px){#mmg-app #mm-grimoire .mm-zoom.mm-zoom-r{padding-left:32px!important;padding-right:32px!important;}}
#mmg-app #mm-grimoire .mm-confirm:focus,#mmg-app #mm-grimoire .mm-confirm:focus-visible{outline:0!important;}
/* Empty Grimoire: an invitation card in the "Discover Something New" style, under the pen button. */
#mmg-app #mm-grimoire .mm-board-invite{width:min(100%,560px)!important;margin:24px auto 0!important;}
/* 1.6.97 · Rounder, softer bubble: a little more room inside for the bigger corners. */
#mmg-app #mm-grimoire .mm-end-bubble{padding:20px 30px 18px!important;}
/* Empty Grimoire card: smaller bookmark (the solid shape reads bigger than the "?"). */
#mmg-app #mm-grimoire .mm-board-invite .mm-thumb svg{width:auto!important;height:24px!important;}
/* 1.6.98 · Tag hover: a gentler step from the tag fill (was too dark). */
#mmg-app{--mm-chip-bg-hover:#e4d3b4;}
/* Today's Mini Ritual: number circles are a see-through brown wash, so they stay visible on any background,
   and each one is a slightly lopsided, hand-drawn-looking blob. */
#mmg-app #mm-grimoire .mm-daily-dialog[data-kind=ritual] .mm-ritual-num{background:rgba(114,82,54,.13)!important;border-radius:52% 48% 55% 45% / 46% 55% 45% 54%!important;}
#mmg-app #mm-grimoire .mm-daily-dialog[data-kind=ritual] .mm-ritual-step:nth-child(2) .mm-ritual-num{border-radius:46% 54% 44% 56% / 55% 45% 56% 44%!important;transform:rotate(-6deg);}
#mmg-app #mm-grimoire .mm-daily-dialog[data-kind=ritual] .mm-ritual-step:nth-child(3) .mm-ritual-num{border-radius:55% 45% 50% 50% / 50% 56% 44% 50%!important;transform:rotate(8deg);}
#mmg-app #mm-grimoire .mm-daily-dialog[data-kind=ritual] .mm-ritual-step:nth-child(1) .mm-ritual-num{transform:rotate(4deg);}
#mmg-app #mm-grimoire .mm-icon-choice .mm-icon-none{font-size:19px!important;}
/* 1.7.0 · Popup gradient: starts with the page's own top colour, ends a touch lighter than before. */
/* Dashed cards (empty Grimoire invitation, Surprise Me): more room on the left and right of the text. */
#mmg-app #mm-grimoire .mm-end-random .mm-card .mm-card-link{padding-left:30px!important;padding-right:30px!important;}
@media(max-width:600px){#mmg-app #mm-grimoire .mm-end-random .mm-card .mm-card-link{padding-left:26px!important;padding-right:26px!important;}}
#mmg-app #mm-grimoire .mm-end-random :is(h3,.mm-card-sum){text-wrap:balance;}
/* 1.7.2 · Moon popups: where the night sky meets the popup's left and right edge, the edge line is the sky's own near-black,
   and beige above/below it. The popup's side borders are drawn as an inset line underneath the content, so the sky
   (which runs edge to edge) paints over them and shows its own dark edge instead. */
#mmg-app #mm-grimoire .mm-daily-dialog[data-kind^=moon]{border-left-width:0!important;border-right-width:0!important;
  box-shadow:inset 1px 0 0 var(--mm-border),inset -1px 0 0 var(--mm-border)!important;}
#mmg-app #mm-grimoire .mm-daily-dialog[data-kind^=moon] .mm-moon-sky{box-shadow:inset 1px 0 0 #05080c,inset -1px 0 0 #05080c;}
/* Dashed cards: the icon (? / bookmark) gives a small playful twist on hover or keyboard focus. */
#mmg-app #mm-grimoire .mm-end-random .mm-thumb svg{transition:transform .35s cubic-bezier(.34,1.56,.64,1);transform-origin:50% 60%;}
@media(hover:hover){#mmg-app #mm-grimoire .mm-end-random .mm-card:hover .mm-thumb svg{transform:rotate(-12deg);}}
#mmg-app #mm-grimoire .mm-end-random .mm-card-link:focus-visible .mm-thumb svg{transform:rotate(-12deg);}
@media(prefers-reduced-motion:reduce){#mmg-app #mm-grimoire .mm-end-random .mm-thumb svg{transition:none;}}
/* "You're all caught up": three small brown sparkles float softly around the bubble — only once everything is opened. */
#mmg-app #mm-grimoire .mm-end-sparkles{position:absolute;inset:0;z-index:2;pointer-events:none;display:none;}
#mmg-app #mm-grimoire .mm-daily-end.mm-end-done .mm-end-sparkles{display:block;}
#mmg-app #mm-grimoire .mm-end-sparkle{position:absolute;display:block;line-height:0;opacity:0;animation:mm-sparkle-in .6s ease-out both,mm-sparkle-float 4.2s ease-in-out infinite;}
#mmg-app #mm-grimoire .mm-end-sparkle svg{width:100%;height:100%;fill:var(--mm-primary)!important;}
/* sparkles hug the "You're all caught up" line itself */
#mmg-app #mm-grimoire .mm-end-title-box{position:relative;display:table;margin:0 auto;}
#mmg-app #mm-grimoire .mm-end-sparkle-1{width:16px;height:16px;top:-6px;left:-22px;animation-delay:.1s,.7s;}
#mmg-app #mm-grimoire .mm-end-sparkle-2{width:10px;height:10px;top:-10px;right:-14px;animation-delay:.3s,1.6s;animation-duration:.6s,3.6s;}
#mmg-app #mm-grimoire .mm-end-sparkle-3{width:12px;height:12px;bottom:-2px;right:-24px;animation-delay:.5s,2.4s;animation-duration:.6s,4.8s;}
@keyframes mm-sparkle-in{from{opacity:0;transform:scale(.3) rotate(-30deg);}to{opacity:.85;transform:none;}}
@keyframes mm-sparkle-float{0%,100%{translate:0 0;rotate:0deg;opacity:.85;}50%{translate:0 -5px;rotate:12deg;opacity:.55;}}
@media(prefers-reduced-motion:reduce){#mmg-app #mm-grimoire .mm-end-sparkle{animation:none;opacity:.85;}}
/* Empty Grimoire card only: a lighter fill (it sits lower on the page gradient, so it read darker) and a lighter hover. */
#mmg-app #mm-grimoire .mm-board-invite .mm-card,#mmg-app #mm-grimoire .mm-board-invite .mm-card:hover{background-color:#e9dcc2!important;}
@media(hover:hover){#mmg-app #mm-grimoire .mm-board-invite .mm-card:hover{background-color:#e3d4b8!important;}}
/* Moon calendar: today's day cell gets a clear, bolder light frame so it's easy to spot from a distance. */
#mmg-app #mm-grimoire .mm-mc-day.mm-mc-today,#mmg-app #mm-grimoire .mm-mc-day.mm-mc-today:is(:hover,:focus,:active){box-shadow:inset 0 0 0 2px rgba(247,239,221,.85)!important;border-radius:3px;position:relative;z-index:1;}
/* "None" tile: the word is centred on the tile (it is wider than the tile's inner box, so it overflows evenly on both sides). */
#mmg-app #mm-grimoire .mm-icon-choice[data-note-icon=""]{place-items:center!important;justify-content:center;padding-left:0!important;padding-right:0!important;}
#mmg-app #mm-grimoire .mm-icon-choice .mm-icon-none{width:max-content!important;margin:0 auto!important;text-align:center!important;font-size:18px!important;}
/* 1.7.4 · Sparkles closer to the title line vertically; the right-hand one a little further out. */
#mmg-app #mm-grimoire .mm-end-sparkle-1{top:4px!important;left:-24px!important;}
#mmg-app #mm-grimoire .mm-end-sparkle-2{top:-2px!important;right:-16px!important;}
#mmg-app #mm-grimoire .mm-end-sparkle-3{bottom:6px!important;right:-34px!important;}
/* 1.7.5 · Note picture picker: bigger tiles in two rows (5 + 4) on every screen size. */
#mmg-app #mm-grimoire .mm-icon-picker,#mmg-app #mm-grimoire .mm-own-paper .mm-icon-picker{grid-template-columns:repeat(5,minmax(0,1fr))!important;max-width:380px;}
@media(max-width:600px){#mmg-app #mm-grimoire .mm-icon-picker,#mmg-app #mm-grimoire .mm-own-paper .mm-icon-picker{grid-template-columns:repeat(5,minmax(0,1fr))!important;}}
#mmg-app #mm-grimoire .mm-icon-choice .mm-icon-none{font-size:20px!important;}
#mmg-app #mm-grimoire .mm-icon-choice:not([data-note-icon=""]){padding:4px!important;}
#mmg-app #mm-grimoire .mm-own-paper .mm-icon-picker{margin-left:auto!important;margin-right:auto!important;width:calc(100% - 70px);}@media(max-width:600px){#mmg-app #mm-grimoire .mm-own-paper .mm-icon-picker{width:calc(100% - 54px);margin-left:40px!important;margin-right:14px!important;}}
/* 1.7.6 · Start Your Collection card: slimmer side padding, and lines run full width again (balancing made them look narrow). */
#mmg-app #mm-grimoire .mm-board-invite .mm-card .mm-card-link{padding-left:26px!important;padding-right:26px!important;}
@media(max-width:600px){#mmg-app #mm-grimoire .mm-board-invite .mm-card .mm-card-link{padding-left:22px!important;padding-right:22px!important;}}
#mmg-app #mm-grimoire .mm-board-invite :is(h3,.mm-card-sum){text-wrap:pretty;}

/* ===== 1.7.7 · Phones: editors open as a full-screen sheet with a pinned top bar ===== */
@media(max-width:600px){
  #mmg-app .mm-sheet,#mmg-app #mm-grimoire .mm-sheet,#mmg-app #mmg-support.mm-sheet{position:fixed!important;inset:0 0 auto 0!important;margin:0!important;width:100%!important;max-width:none!important;max-height:none!important;
    height:100svh;box-sizing:border-box!important;border:0!important;border-radius:0!important;box-shadow:none!important;padding:0 16px 28px!important;overflow-y:auto!important;overscroll-behavior:contain;
    animation:mm-sheet-in .28s cubic-bezier(.22,.8,.3,1) both!important;}
  #mmg-app .mm-sheet .mm-sheet-bar{position:sticky;top:0;z-index:5;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:8px;margin:0 -16px 12px;padding:10px 16px;
    background:#f6eedd;border-bottom:1px solid var(--mm-line);}
  #mmg-app .mm-sheet .mm-sheet-title{grid-column:2;margin:0;font:400 20px/1.2 var(--mm-font-heading);color:#000;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:56vw;}
  #mmg-app .mm-sheet .mm-sheet-cancel,#mmg-app .mm-sheet .mm-sheet-cancel:is(:hover,:focus,:focus-visible,:active){grid-column:1;justify-self:start;appearance:none;-webkit-appearance:none;min-height:44px;margin:0;padding:0 4px;border:0;border-radius:0;background:none!important;box-shadow:none;outline:0;font:inherit;font-size:17px;color:var(--mm-primary);cursor:pointer;}
  #mmg-app .mm-sheet .mm-sheet-spacer{grid-column:1;}
  #mmg-app .mm-sheet .mm-sheet-done{grid-column:3;justify-self:end;display:inline-grid!important;place-items:center;box-sizing:border-box;width:44px!important;height:44px!important;min-width:0!important;min-height:0!important;padding:0!important;border-radius:50%!important;gap:0!important;}
  #mmg-app .mm-sheet .mm-sheet-done svg{width:20px!important;height:20px!important;margin:0!important;fill:var(--mmb-on-primary)!important;color:var(--mmb-on-primary)!important;}
  #mmg-app .mm-sheet .mm-sheet-done:disabled{opacity:.45;cursor:not-allowed;}
  /* the bar replaces the corner ×, the in-content title and the bottom buttons */
  #mmg-app .mm-sheet>.mmg-support-close,#mmg-app .mm-sheet>.mm-zoom-close{display:none!important;}
  #mmg-app .mm-sheet :is(.mm-zoom-title,#mmg-support-title){position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;margin:0;padding:0;}
  #mmg-app .mm-sheet .mm-own-actions{display:none!important;}
  #mmg-app .mm-sheet form [type=submit]{display:none!important;}
  #mmg-app .mm-sheet .mm-popup-rail{display:none!important;}
  #mmg-app .mm-sheet .mm-popup-scroll{max-height:none!important;overflow:visible!important;padding-right:0!important;margin-right:0!important;}
}
@keyframes mm-sheet-in{from{opacity:0;transform:translateY(24px);}to{opacity:1;transform:none;}}
@media(prefers-reduced-motion:reduce){#mmg-app .mm-sheet{animation:none!important;}}
/* sheet check button: the same round brown primary everywhere (Grimoire and the help/rename sheets) */
@media(max-width:600px){
  #mmg-app #mm-grimoire .mm-sheet .mm-sheet-done.mm-sheet-done,#mmg-app #mmg-support.mm-sheet .mm-sheet-done.mm-sheet-done{appearance:none;-webkit-appearance:none;display:inline-grid!important;place-items:center;width:44px!important;height:44px!important;min-width:0!important;min-height:0!important;padding:0!important;margin:0!important;
    border:0!important;border-radius:50%!important;box-shadow:none!important;background-color:var(--mmb-c-rest)!important;background-image:var(--mmb-sheen2)!important;color:var(--mmb-on-primary)!important;cursor:pointer;transition:background-color .22s ease!important;}
  #mmg-app #mm-grimoire .mm-sheet .mm-sheet-done.mm-sheet-done:not(:disabled):active,#mmg-app #mmg-support.mm-sheet .mm-sheet-done.mm-sheet-done:not(:disabled):active{background-color:var(--mmb-c-press)!important;}
  #mmg-app #mm-grimoire .mm-sheet .mm-sheet-done.mm-sheet-done:disabled{opacity:.45!important;}
  #mmg-app #mmg-support.mm-sheet .mm-sheet-cancel{color:var(--mm-primary)!important;font-family:var(--mm-font-body)!important;text-transform:none!important;letter-spacing:0!important;}
  #mmg-app #mmg-support.mm-sheet .mm-sheet-cancel .mm-go-text{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.2em;}
}
@media(max-width:600px){#mmg-app .mm-sheet .mm-sheet-cancel.mm-sheet-cancel{display:inline-flex!important;align-items:center!important;align-self:center;line-height:1.2!important;}}
/* 1.7.7 · Grimoire board: one picture size for your notes, Witch Tips and Affirmations (66px — between the old 56 and 76). */
#mmg-app #mm-grimoire #mm-board .mm-own-note-icon{width:66px!important;height:66px!important;}
#mmg-app #mm-grimoire #mm-board .mm-piece :is(.mm-tip-paper-image) img{width:66px!important;height:66px!important;max-width:none!important;max-height:none!important;object-fit:contain;}
/* 1.7.7 · Cards (Collection results and "Explore more"): a clearer, smoother hover.
   Common pattern (Material "state layer", Airbnb/Pinterest cards): the whole card gets a soft fill and the picture
   gently grows, instead of only the border changing. The border stays put; no shadow, no movement of the card itself.
   Keyboard focus shows the same state. */
#mmg-app #mm-grimoire :not(.mm-end-random)>.mm-card,#mmg-app #mm-grimoire .mm-kin a{position:relative;isolation:isolate;}
#mmg-app #mm-grimoire :not(.mm-end-random)>.mm-card::after,#mmg-app #mm-grimoire .mm-kin a::after{content:"";position:absolute;inset:0;z-index:-1;border-radius:inherit;background:rgba(114,82,54,.07);opacity:0;transition:opacity .25s ease;pointer-events:none;}
#mmg-app #mm-grimoire :not(.mm-end-random)>.mm-card :is(.mm-thumb img,.mm-thumb svg,.mm-card-image img),#mmg-app #mm-grimoire .mm-kin a img{transition:transform .35s cubic-bezier(.2,.8,.3,1);}
@media(hover:hover){
  #mmg-app #mm-grimoire :not(.mm-end-random)>.mm-card:hover,#mmg-app #mm-grimoire .mm-kin a:hover{border-color:var(--mm-shade-c7b294aa,#c7b294)!important;}
  #mmg-app #mm-grimoire :not(.mm-end-random)>.mm-card:hover::after,#mmg-app #mm-grimoire .mm-kin a:hover::after{opacity:1;}
  #mmg-app #mm-grimoire :not(.mm-end-random)>.mm-card:hover :is(.mm-thumb img,.mm-thumb svg,.mm-card-image img),#mmg-app #mm-grimoire .mm-kin a:hover img{transform:scale(1.07);}
}
#mmg-app #mm-grimoire :not(.mm-end-random)>.mm-card:has(.mm-card-link:focus-visible)::after,#mmg-app #mm-grimoire .mm-kin a:focus-visible::after{opacity:1;}
#mmg-app #mm-grimoire .mm-kin a:focus-visible{outline:0!important;}
#mmg-app #mm-grimoire .mm-card-link:focus-visible{outline:0!important;}
@media(prefers-reduced-motion:reduce){#mmg-app #mm-grimoire :not(.mm-end-random)>.mm-card :is(img,svg),#mmg-app #mm-grimoire .mm-kin a img{transition:none!important;transform:none!important;}}
/* 1.9.1 · Card hover: a warm, richer parchment (not a grey wash) that fades in over the card. */
#mmg-app #mm-grimoire :not(.mm-end-random)>.mm-card::after,#mmg-app #mm-grimoire .mm-kin a::after{background:linear-gradient(180deg,#f3e5c9,#e8d4ae)!important;}
/* Phone sheets: a bit more room between the top bar and the colour circles; send icon sits optically centred. */
@media(max-width:600px){#mmg-app .mm-sheet.mm-zoom-o .mm-swatches{margin-top:24px!important;}
  #mmg-app .mm-sheet .mm-sheet-done svg.mm-send-icon{width:19px!important;height:19px!important;transform:translate(-1px,1px);}}
/* 1.9.2 · Phone note sheet: the note paper is taller (about 7 ruled lines) so it fills more of the screen. */
@media(max-width:600px){#mmg-app #mm-grimoire .mm-sheet.mm-zoom-o .mm-own-paper textarea,#mmg-app #mm-grimoire .mm-sheet.mm-zoom-o .mm-own-paper textarea:focus{min-height:calc(var(--line) * 7 + 14px)!important;}}
/* Check / send buttons: a rounded square (12px corners, like the save/share hover shape and every container), not a circle. */
#mmg-app #mm-grimoire .mm-own-actions .mm-own-save.mm-own-save{border-radius:12px!important;width:48px!important;height:48px!important;}
@media(max-width:600px){#mmg-app #mm-grimoire .mm-sheet .mm-sheet-done.mm-sheet-done,#mmg-app #mmg-support.mm-sheet .mm-sheet-done.mm-sheet-done{border-radius:12px!important;}}
/* 1.9.3 · Cat bubble: one single hand-drawn line (the second, fainter pass is gone). */
#mmg-app #mm-grimoire .mm-end-bubble-shape path.mm-end-bubble-pass{display:none!important;}
#mmg-app #mm-grimoire .mm-end-bubble-shape path{stroke-width:1.8px!important;}
/* Phone sheet bar: the round-cornered check / send button has the same 12px space above, to the right and below. */
@media(max-width:600px){#mmg-app .mm-sheet .mm-sheet-bar{padding:12px 12px 12px 16px!important;}}
/* 1.9.4 · While a phone sheet is open: no page scrolling behind it and no pull-to-refresh. */
html.mmg-sheet-open,html.mmg-sheet-open body{overflow:hidden!important;overscroll-behavior:none!important;}
@media(max-width:600px){#mmg-app .mm-sheet{overscroll-behavior:none!important;-webkit-overflow-scrolling:touch;}}
/* Cat bubble outline: a soft, light brown — like gentle shading around the bubble rather than an ink line. */
#mmg-app #mm-grimoire .mm-end-bubble-shape path{stroke:#c8b293!important;}
/* 1.9.5 · Own notes on the board: the date sticker sits a little lower so a ruled line runs across its lower part,
   like a sticker placed over the lines instead of fitted neatly between two of them. */
#mmg-app #mm-grimoire .mm-own-note .mm-paper-pill.mm-paper-pill{margin-top:24px!important;}

/* ===== 1.9.8 · Sign-in screens follow the app's style ===== */
/* Text fields everywhere (sign-in, password, confirm, purchase): the app's focus — the border just thickens, no second outline. */
#mmg-app :is(input[type=email],input[type=text],input[type=password],input[type=search],input[type=tel],input[type=url],textarea):is(:focus,:focus-visible){outline:0!important;outline-offset:0!important;border-color:#8d704c!important;box-shadow:inset 0 0 0 1px #8d704c!important;}
/* "Use a Different Email": the plain underlined text link (like Cancel), no container. */
#mmg-app#mmg-app .mmg-gate button.mmg-text-link.mmg-text-link,#mmg-app#mmg-app .mmg-gate button.mmg-text-link.mmg-text-link:is(:hover,:focus,:focus-visible,:active,:disabled){appearance:none;-webkit-appearance:none;display:inline-flex;align-items:center;min-height:44px;margin:12px 0 12px 14px;padding:0 4px;border:0!important;border-radius:0!important;background:none!important;background-image:none!important;box-shadow:none!important;outline:0!important;color:var(--mm-primary)!important;font:inherit;font-size:16px;cursor:pointer;}
#mmg-app#mmg-app .mmg-gate button.mmg-text-link.mmg-text-link span{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.2em;}
@media(hover:hover){#mmg-app#mmg-app .mmg-gate button.mmg-text-link.mmg-text-link:hover{color:#4f3624!important;}#mmg-app#mmg-app .mmg-gate button.mmg-text-link.mmg-text-link:hover span{text-decoration-thickness:2px;}}
#mmg-app#mmg-app .mmg-gate button.mmg-text-link.mmg-text-link:focus-visible span{text-decoration-thickness:2px;}
/* Clear hierarchy: heading › text (17px) › field labels (16px) › checkbox line and small print (15px, muted). */

#mmg-app .mmg-gate label,#mmg-app .mmg-gate form p:not([data-mmg-form-wait]):not(.mmg-password-help) > label{font-size:16px!important;}
#mmg-app .mmg-gate label:has(> input[type=checkbox]){display:flex;width:max-content;align-items:center;gap:8px;font-size:15px!important;color:var(--mm-muted)!important;}
#mmg-app .mmg-gate .mmg-password-help{font-size:15px!important;color:var(--mm-muted);}
#mmg-app .mmg-gate summary{font-size:16px!important;}

/* ===== 1.10.0 · Notifications (inside the "?" popup) ===== */
#mmg-app .mmg-help-choices .mmg-notify-item{display:inline-flex;align-items:center;gap:10px;}
#mmg-app .mmg-help-choices .mmg-notify-item svg{width:16px;height:16px;flex:none;fill:currentColor;}
#mmg-app #mmg-support .mmg-notify-back,#mmg-app #mmg-support .mmg-notify-back:is(:hover,:focus,:focus-visible,:active){appearance:none;-webkit-appearance:none;display:inline-flex;align-items:center;gap:8px;min-height:44px;margin:-6px 0 6px -4px;padding:0 4px;border:0;border-radius:0;background:none!important;box-shadow:none!important;outline:0;color:var(--mm-primary);font:inherit;font-size:15px;cursor:pointer;}
#mmg-app #mmg-support .mmg-notify-back svg{width:13px;height:13px;fill:currentColor;color:currentColor!important;transition:transform .2s cubic-bezier(.2,.8,.3,1);}
#mmg-app #mmg-support .mmg-notify-back span{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.2em;}
@media(hover:hover){#mmg-app #mmg-support .mmg-notify-back:hover span{text-decoration-thickness:2px;}#mmg-app #mmg-support .mmg-notify-back:hover svg{transform:translateX(-3px);}}
#mmg-app #mmg-support .mmg-notify-back:focus-visible span{text-decoration-thickness:2px;}
#mmg-app #mmg-support .mmg-notify-intro{margin:0 0 14px;}
#mmg-app #mmg-support .mmg-notify-options{margin:0 0 14px;padding:0;border:0;display:grid;gap:2px;}
#mmg-app #mmg-support .mmg-radio{position:relative;display:flex;align-items:center;gap:12px;min-height:46px;padding:0 12px;border-radius:12px;cursor:pointer;transition:background-color .2s ease;}
@media(hover:hover){#mmg-app #mmg-support .mmg-radio:hover{background:var(--mm-tint);}}
#mmg-app #mmg-support .mmg-radio input{position:absolute;opacity:0;width:1px;height:1px;margin:0;pointer-events:none;}
#mmg-app #mmg-support .mmg-radio-dot{flex:none;display:grid;place-items:center;width:20px;height:20px;box-sizing:border-box;border:1.5px solid var(--mm-border);border-radius:50%;background:#fbf5e9;transition:border-color .2s ease;}
#mmg-app #mmg-support .mmg-radio-dot::after{content:"";width:10px;height:10px;border-radius:50%;background:var(--mmb-c-rest,#715239);transform:scale(0);transition:transform .2s cubic-bezier(.34,1.56,.64,1);}
#mmg-app #mmg-support .mmg-radio input:checked + .mmg-radio-dot{border-color:var(--mmb-c-rest,#715239);}
#mmg-app #mmg-support .mmg-radio input:checked + .mmg-radio-dot::after{transform:scale(1);}
#mmg-app #mmg-support .mmg-radio input:focus-visible + .mmg-radio-dot{box-shadow:inset 0 0 0 1px #8d704c;}
#mmg-app #mmg-support .mmg-radio:has(input:focus-visible){background:var(--mm-tint);}
#mmg-app #mmg-support .mmg-radio:has(input:disabled){opacity:.55;cursor:default;}
#mmg-app #mmg-support .mmg-notify-note,#mmg-app #mmg-support .mmg-notify-tz{margin:0 0 10px;font-size:15px;color:var(--mm-muted);}
#mmg-app #mmg-support .mmg-notify-tz-use,#mmg-app #mmg-support .mmg-notify-tz-use:is(:hover,:focus,:active){appearance:none;display:inline;margin:0;padding:0;border:0;background:none!important;box-shadow:none!important;color:var(--mm-primary);font:inherit;text-decoration:underline;text-underline-offset:.2em;cursor:pointer;min-height:0;}
#mmg-app #mmg-support .mmg-notify-status{min-height:1.4em;margin:0 0 10px;font-size:15px;color:var(--mm-muted);}
@media(prefers-reduced-motion:reduce){#mmg-app #mmg-support .mmg-radio-dot::after,#mmg-app #mmg-support .mmg-notify-back svg{transition:none;}}
#mmg-app #mmg-support .mmg-help-choices .mmg-notify-item span{color:inherit!important;}
#mmg-app #mmg-support .mmg-radio.mmg-radio{margin:0!important;padding-top:0!important;padding-bottom:0!important;font-size:16px;color:var(--mm-fg,#000);}
#mmg-app #mmg-support .mmg-notify-options .mmg-radio + .mmg-radio{margin-top:0!important;}
#mmg-app #mmg-support .mmg-help-choices span.mmg-notify-item{color:inherit!important;}#mmg-app #mmg-support .mmg-help-choices span.mmg-notify-item svg{color:#000!important;fill:#000!important;}

/* ===== 1.10.0 · polish ===== */
/* "Use a Different Email" sits beside the button (or neatly under it on phones), aligned to the left edge. */
#mmg-app .mmg-gate [data-mmg-resend]:not([hidden]){display:flex;flex-wrap:wrap;align-items:center;column-gap:20px;row-gap:4px;}
#mmg-app .mmg-gate [data-mmg-resend] > p{flex-basis:100%;}
#mmg-app#mmg-app .mmg-gate [data-mmg-resend] button.mmg-text-link.mmg-text-link{margin:0!important;padding:0!important;}
/* Moon popup "Cancel Reminder": the plain underlined text link (same as Cancel / Use a Different Email). */
#mmg-app #mm-grimoire .mm-moon-remind-cancel.mm-moon-remind-cancel,#mmg-app #mm-grimoire .mm-moon-remind-cancel.mm-moon-remind-cancel:is(:hover,:focus,:focus-visible,:active){appearance:none;-webkit-appearance:none;display:inline-flex;align-items:center;min-height:44px;margin:4px auto 0;padding:0 4px!important;border:0!important;border-radius:0!important;background:none!important;background-image:none!important;box-shadow:none!important;outline:0!important;color:var(--mm-primary)!important;font:inherit!important;font-size:16px!important;text-decoration:underline!important;text-decoration-thickness:1px!important;text-underline-offset:.2em!important;cursor:pointer;}
@media(hover:hover){#mmg-app #mm-grimoire .mm-moon-remind-cancel.mm-moon-remind-cancel:hover{color:#4f3624!important;text-decoration-thickness:2px!important;}}
#mmg-app #mm-grimoire .mm-moon-remind-cancel.mm-moon-remind-cancel:focus-visible{text-decoration-thickness:2px!important;}
/* Today's moon circle in the menu: no light hairline between the night sky and its border. */
#mmg-app #mm-grimoire .mm-nav-today[aria-current="page"] .mm-nav-moon{background-color:#090e14!important;}
#mmg-app #mm-grimoire .mm-nav-today[aria-current="page"] .mm-nav-sky{inset:-1px;}
/* Mini Ritual: a two-line accent title stays tight, so it still reads as one title. */
#mmg-app #mm-grimoire .mm-daily-dialog[data-kind=ritual] .mm-moon-pop-kicker{line-height:1.25!important;}
/* Notifications view: reading text in black (like every popup); only the small note is muted brown. */
#mmg-app #mmg-support.mmg-support-notify .mmg-notify-intro,#mmg-app #mmg-support.mmg-support-notify .mmg-radio.mmg-radio,#mmg-app #mmg-support.mmg-support-notify .mmg-radio span{color:#000!important;}
#mmg-app #mmg-support.mmg-support-notify .mmg-notify-note,#mmg-app #mmg-support.mmg-support-notify .mmg-notify-status{color:var(--mm-muted)!important;}

/* 1.10.4 — note paper: no focus frame (the global input focus line drew a line above and below the text) */
#mmg-app #mm-grimoire :is(.mm-own-paper,.mm-zoom-note,.mm-notes-paper) textarea:is(:focus,:focus-visible){outline:0!important;box-shadow:none!important;border-color:transparent!important;}
/* Notifications: open already settled, no fade or dot jump */
#mmg-app #mmg-support .mmg-notify-still .mmg-radio-dot,#mmg-app #mmg-support .mmg-notify-still .mmg-radio-dot::after,#mmg-app #mmg-support .mmg-notify-still .mmg-radio{transition:none!important;}
#mmg-app #mmg-support .mmg-notify-status{display:flex;align-items:center;gap:8px;}
#mmg-app #mmg-support .mmg-notify-check{flex:none;width:18px;height:18px;fill:none;stroke:#000;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;}
/* Save Preferences stretches across the popup, like Save Name */
#mmg-app #mmg-support.mmg-support-notify [data-notify-form] .mmg-support-send{display:flex;align-items:center;justify-content:center;width:100%;margin-top:6px;}
/* 1.10.6 — no empty gap above Save Preferences; brown tick */
#mmg-app #mmg-support.mmg-support-notify .mmg-notify-status:empty{min-height:0!important;margin:0!important;}
#mmg-app #mmg-support.mmg-support-notify .mmg-notify-note{margin-bottom:16px!important;}
#mmg-app #mmg-support.mmg-support-notify .mmg-notify-status:not(:empty){margin:-4px 0 16px!important;}
#mmg-app #mmg-support.mmg-support-notify [data-notify-form] .mmg-support-send{margin-top:0!important;}
#mmg-app #mmg-support .mmg-notify-check{stroke:var(--mmb-c-rest,#715239)!important;}
/* 1.10.7 — Collection icon a little larger */
#mmg-app #mm-grimoire [data-nav="collection"] .mm-nav-icon svg{width:33px;height:33px;transform:translate3d(0,-3.5px,0);}
/* Phones: keep the bar on its own layer so the icons don't shimmer while the page scrolls
   (the browser bar sliding in/out made the icons redraw at half-pixel positions). */
#mmg-app #mm-grimoire .mm-bottom-nav.mm-nav-ready:not(.mm-nav-typing):not(.mm-nav-tucked){transform:translate3d(0,0,0);}
#mmg-app #mm-grimoire .mm-bottom-nav{backface-visibility:hidden;-webkit-backface-visibility:hidden;}
#mmg-app #mm-grimoire .mm-nav-icon svg{backface-visibility:hidden;-webkit-backface-visibility:hidden;transform:translateZ(0);shape-rendering:geometricPrecision;}
/* Moon calendar: today's frame drawn on a layer inside the cell, so the cell keeps square corners
   and the table lines around it stay unbroken (the rounded corners cut the lines when zoomed in). */
#mmg-app #mm-grimoire .mm-mc-day.mm-mc-today,#mmg-app #mm-grimoire .mm-mc-day.mm-mc-today:is(:hover,:focus,:active){box-shadow:none!important;border-radius:0!important;}
#mmg-app #mm-grimoire .mm-mc-day.mm-mc-today::before{content:"";position:absolute;inset:0;border-radius:3px;box-shadow:inset 0 0 0 2px rgba(247,239,221,.85);pointer-events:none;}
/* 1.10.8 — popup headers follow one rule: small caps line → title (tight, 1.25 line height),
   then the same visible gap to the first content in every popup (report text no longer adds its own extra line spacing). */
#mmg-app #mm-grimoire .mm-daily-dialog .mm-moon-pop-kicker{line-height:1.25!important;}
#mmg-app #mm-grimoire .mm-daily-dialog[data-kind="message"] .mm-daily-message-scroll{margin-top:-5px!important;}

/* 1.10.9 — Notifications: the saved line ends the popup; no extra gap under it */
#mmg-app #mmg-support.mmg-support-notify .mmg-notify-status:not(:empty){margin:-2px 0 0!important;}
#mmg-app #mmg-support.mmg-support-notify [data-notify-form] > :last-child:not(.mmg-notify-status){margin-bottom:0!important;}
#mmg-app #mmg-support.mmg-support-notify .mmg-notify-status:empty{display:block;}
#mmg-app #mmg-support.mmg-support-notify{padding-bottom:12px!important;}
#mmg-app #mmg-support.mmg-support-notify .mmg-notify-status:not(:empty){line-height:1.35!important;min-height:0!important;}
#mmg-app #mmg-support.mmg-support-notify .mm-popup-scroll{padding-bottom:0!important;margin-bottom:0!important;}
/* Daily popups: the small caps line (date / "A ritual for…") gets the same gap below it as the title has above the content */
#mmg-app #mm-grimoire .mm-daily-dialog .mm-moon-pop-kicker{margin-bottom:14px!important;}
/* Page titles: the same 32px from the title to the first content on Your Grimoire and Explore the Collection */
#mmg-app #mm-grimoire .mm-board-page .mm-board-top{margin-top:12px!important;}
#mmg-app #mm-grimoire .mm-wrap > .mm-controls:first-child,#mmg-app #mm-grimoire .mm-wrap .mm-controls{margin-top:16px!important;}

/* Moon popups: the X turns light while it sits over the night sky (beats the general black-X rule) */
#mmg-app #mm-grimoire .mm-daily-dialog[data-kind^=moon] .mmg-support-close.mm-close-on-dark,#mmg-app #mm-grimoire .mm-daily-dialog .mmg-support-close.mm-close-on-dark{color:#f7efdd!important;}
#mmg-app #mm-grimoire .mm-daily-dialog .mmg-support-close.mm-close-on-dark svg{color:#f7efdd!important;fill:currentColor;}
/* ...and the top / bottom edge turns dark when the sky is scrolled under it, matching the dark side edges */
#mmg-app #mm-grimoire .mm-daily-dialog.mm-sky-edge-top{border-top-color:#05080c!important;}
#mmg-app #mm-grimoire .mm-daily-dialog.mm-sky-edge-bottom{border-bottom-color:#05080c!important;}
/* 1.10.17 — card hover (Collection results, Explore more): same warm parchment, about 30% less saturated */
#mmg-app #mm-grimoire :not(.mm-end-random)>.mm-card::after,#mmg-app #mm-grimoire .mm-kin a::after{background:linear-gradient(180deg,#ede3cf,#dfd1b7)!important;}
/* Today: on new / full moon and eclipse days, the exact time of the peak sits under the moon's name */
#mmg-app #mm-grimoire .mm-daily-moon-peak{display:block;margin-top:2px;font-family:var(--mm-font-body);font-size:13px;line-height:1.4;color:rgba(247,239,221,.72);letter-spacing:.01em;}
/* Hemisphere & Location popup */
#mmg-app #mmg-support .mmg-loc-label{margin:0 0 8px;font-size:12px;line-height:1.25;letter-spacing:.14em;text-transform:uppercase;color:var(--mm-primary)!important;}
#mmg-app #mmg-support .mmg-loc-label label{font:inherit;color:inherit;letter-spacing:inherit;text-transform:inherit;margin:0;}
#mmg-app #mmg-support fieldset + .mmg-notify-note{margin-top:4px;}
#mmg-app #mmg-support .mmg-notify-note + .mmg-loc-label{margin-top:22px;}
#mmg-app #mmg-support .mmg-loc-select{position:relative;margin:0 0 10px;}
#mmg-app #mmg-support .mmg-loc-select select{appearance:none;-webkit-appearance:none;display:block;width:100%;min-height:48px;margin:0;padding:0 44px 0 16px;box-sizing:border-box;border:1px solid var(--mm-border);border-radius:12px;background:#fbf5e9;color:#000;font:inherit;font-size:16px;cursor:pointer;box-shadow:none;outline:0;}
#mmg-app #mmg-support .mmg-loc-select::after{content:"";position:absolute;right:18px;top:50%;width:8px;height:8px;margin-top:-6px;border-right:1.5px solid #000;border-bottom:1.5px solid #000;transform:rotate(45deg);pointer-events:none;}
@media(hover:hover){#mmg-app #mmg-support .mmg-loc-select select:hover{background:#f6eedd;}}
#mmg-app #mmg-support .mmg-loc-select select:focus-visible{border-color:#8d704c;box-shadow:inset 0 0 0 1px #8d704c;}

/* Loading ("Gathering today's energy…"): the hat and text sit a little lower in their box */
#mmg-app #mm-grimoire .mm-daily-loading{padding-top:46px;padding-bottom:30px;}
/* Moon popups: the night sky reaches 1px past each side edge (hidden by the popup's rounded clip), so no beige
   hairline can peek through on phones where the side padding lands on half pixels; its dark edge is 2px to match. */
#mmg-app #mm-grimoire .mm-daily-dialog[data-kind^=moon] .mm-moon-sky{margin-left:calc(-1 * var(--moon-pad) - 1px)!important;margin-right:calc(-1 * var(--moon-pad) - 1px)!important;padding-left:calc(var(--moon-pad) + 1px)!important;padding-right:calc(var(--moon-pad) + 1px)!important;box-shadow:inset 2px 0 0 #05080c,inset -2px 0 0 #05080c!important;}
@supports (overflow:clip){#mmg-app #mm-grimoire .mm-daily-dialog[data-kind^=moon] .mm-popup-scroll{overflow-x:clip;}}


/* ---------- Profile page (#profile) ---------- */
#mmg-app #mm-grimoire .mm-profile-page{max-width:760px;margin:0 auto;padding:16px 0 var(--mm-page-end,56px);}
#mmg-app #mm-grimoire .mm-pf-card{position:relative;margin:0 0 24px;padding:28px var(--mm-daily-padding) var(--mm-daily-padding);background:var(--mm-card);border:var(--mm-border-width) solid var(--mm-outline-soft);border-radius:var(--mm-radius-card);text-align:center;}
#mmg-app #mm-grimoire .mm-pf-kicker{margin:0 0 14px;font:400 12px/1.25 var(--mm-font-body);letter-spacing:.14em;text-transform:uppercase;color:var(--mm-primary);}
#mmg-app #mm-grimoire .mm-pf-card h2:not(.mm-pf-kicker){margin:0 0 18px;font:400 27px/1.2 var(--mm-font-heading);color:#000;}
#mmg-app #mm-grimoire .mm-pf-intro{max-width:46ch;margin:0 auto 24px;color:#000;}
#mmg-app #mm-grimoire .mm-pf-loading p{margin:0;color:var(--mm-muted);}
#mmg-app #mm-grimoire .mm-pf-primary{appearance:none;display:inline-flex;align-items:center;justify-content:center;min-height:48px;margin:0;padding:12px 24px;border:0;border-radius:8px;background-color:#715239;background-image:linear-gradient(rgba(255,240,220,.1) 0%,rgba(255,240,220,0) 50%,rgba(40,25,12,.1) 100%);color:#fff8eb;font:500 16px/1.25 var(--mm-font-body);letter-spacing:.01em;cursor:pointer;box-shadow:none;transition:background-color .2s ease;}
@media(hover:hover){#mmg-app #mm-grimoire .mm-pf-primary:hover{background-color:#5f4431;}}
#mmg-app #mm-grimoire .mm-pf-primary:focus{outline:0;}
/* birth energy */
#mmg-app #mm-grimoire .mm-pf-table{margin:0 0 24px;}
#mmg-app #mm-grimoire .mm-pf-moon{position:relative;isolation:isolate;overflow:hidden;margin:0 calc(-1 * var(--mm-daily-padding));padding:26px var(--mm-daily-padding) 24px;background:radial-gradient(ellipse at 50% 130%,#25313b 0,transparent 65%),linear-gradient(115deg,#090e14,#17212a 50%,#090e14);color:#f7efdd;}
#mmg-app #mm-grimoire .mm-pf-moon::before{content:"";position:absolute;inset:0;z-index:-1;opacity:.6;pointer-events:none;background-image:radial-gradient(circle at 12% 23%,#f7efdd 0 1px,transparent 1.7px),radial-gradient(circle at 31% 68%,#c1d7db 0 .6px,transparent 1.3px),radial-gradient(circle at 63% 19%,#f7efdd 0 .8px,transparent 1.5px),radial-gradient(circle at 87% 57%,#c1d7db 0 .7px,transparent 1.4px);background-size:173px 137px,227px 191px,293px 157px,137px 223px;}
#mmg-app #mm-grimoire .mm-pf-moon-kicker{margin:0 0 14px;font:400 12px/1.25 var(--mm-font-body);letter-spacing:.14em;text-transform:uppercase;color:rgba(247,239,221,.78);}
#mmg-app #mm-grimoire .mm-pf-moon-main{display:inline-flex;flex-direction:column;align-items:center;gap:8px;color:#f7efdd;text-decoration:none;}
#mmg-app #mm-grimoire .mm-pf-moon-img{display:block;width:120px;height:120px;object-fit:contain;transition:transform .35s cubic-bezier(.2,.8,.3,1);}
@media(hover:hover){#mmg-app #mm-grimoire a.mm-pf-moon-main:hover .mm-pf-moon-img{transform:scale(1.05);}}
#mmg-app #mm-grimoire .mm-pf-moon-name{font:400 22px/1.25 var(--mm-font-heading);color:#f7efdd;}
#mmg-app #mm-grimoire .mm-pf-moon-links{display:flex;flex-wrap:wrap;justify-content:center;gap:4px 18px;margin:16px 0 0;}
#mmg-app #mm-grimoire .mm-pf-moon .mm-daily-link,#mmg-app #mm-grimoire .mm-pf-moon .mm-daily-link-value{color:#f7efdd!important;}
#mmg-app #mm-grimoire .mm-pf-note{margin:14px auto 0;max-width:44ch;font-size:15px;line-height:1.5;color:rgba(247,239,221,.78);}
#mmg-app #mm-grimoire .mm-pf-edit{margin:20px 0 0;}
#mmg-app #mm-grimoire .mm-pf-energy:not(.mm-pf-empty){padding-bottom:20px;}
/* text links: underlined text, no container */
#mmg-app #mm-grimoire .mm-pf-textlink,#mmg-app #mm-grimoire .mm-pf-textlink:is(:hover,:focus,:active),#mmg-app #mm-grimoire .mm-pf-logout{appearance:none;display:inline-block;min-height:44px;margin:0;padding:10px 4px;border:0;background:none!important;box-shadow:none!important;color:#000;font:inherit;font-size:16px;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.2em;cursor:pointer;outline:0;}
@media(hover:hover){#mmg-app #mm-grimoire :is(.mm-pf-textlink,.mm-pf-logout):hover{text-decoration-thickness:2px;}}
/* settings list */
#mmg-app #mm-grimoire .mm-pf-settings{padding-top:24px;padding-bottom:12px;text-align:left;}
#mmg-app #mm-grimoire .mm-pf-settings .mm-pf-kicker{text-align:center;margin-bottom:8px;}
#mmg-app #mm-grimoire .mm-pf-list{list-style:none;margin:0;padding:0;}
#mmg-app #mm-grimoire .mm-pf-list li{margin:0;padding:0;}
#mmg-app #mm-grimoire .mm-pf-list li+li{border-top:1px solid var(--mm-divider-color,#d8c7ab);}
#mmg-app #mm-grimoire .mm-pf-row,#mmg-app #mm-grimoire .mm-pf-row:is(:hover,:focus,:active){appearance:none;display:flex;align-items:center;gap:12px;width:100%;min-height:60px;margin:0;padding:10px 8px;border:0;border-radius:8px;background:none;box-shadow:none;color:#000;font:inherit;text-align:left;cursor:pointer;outline:0;transition:background-color .2s ease;}
@media(hover:hover){#mmg-app #mm-grimoire .mm-pf-row:hover{background:var(--mm-tint,rgba(114,82,54,.07));}}
#mmg-app #mm-grimoire .mm-pf-row:focus-visible{background:var(--mm-tint,rgba(114,82,54,.07));}
#mmg-app #mm-grimoire .mm-pf-row-label{flex:none;font-size:17px;color:#000;}
#mmg-app #mm-grimoire .mm-pf-row-value{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:right;font-size:15px;color:var(--mm-muted);}
#mmg-app #mm-grimoire .mm-pf-chev{flex:none;width:18px;height:18px;fill:none;stroke:#000;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
/* end of page */
#mmg-app #mm-grimoire .mm-pf-banner{margin:0 0 24px;padding:14px 18px;border:var(--mm-border-width) solid var(--mm-outline-soft);border-radius:12px;background:var(--mm-card);text-align:center;color:#000;font-size:16px;}
#mmg-app #mm-grimoire .mm-pf-end{display:flex;flex-direction:column;align-items:center;gap:4px;margin:8px 0 0;}
@media(max-width:600px){#mmg-app #mm-grimoire .mm-profile-page{padding-top:16px;}#mmg-app #mm-grimoire .mm-pf-card h2:not(.mm-pf-kicker){font-size:24px;}#mmg-app #mm-grimoire .mm-pf-row-label{font-size:16px;}}
/* profile popups */
#mmg-app #mmg-support .mmg-text-link,#mmg-app #mmg-support .mmg-text-link:is(:hover,:focus,:active,:disabled){appearance:none;display:inline-block;min-height:44px;margin:0;padding:10px 4px;border:0;background:none!important;box-shadow:none!important;color:#000!important;font:inherit;font-size:16px;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.2em;cursor:pointer;outline:0;}
@media(hover:hover){#mmg-app #mmg-support .mmg-text-link:hover{text-decoration-thickness:2px;}}
#mmg-app #mmg-support .mmg-acc-password{margin:8px 0 0;text-align:center;}
#mmg-app #mmg-support .mmg-acc-hint{margin:-4px 0 16px!important;font-size:14px!important;}
#mmg-app #mmg-support .mmg-optional{color:var(--mm-muted);font-weight:400;}
#mmg-app #mmg-support [data-account-form] .mmg-pf-save,#mmg-app #mmg-support [data-birth-form] .mmg-pf-save{width:100%;margin-top:6px;}
#mmg-app #mm-grimoire .mm-profile-page{--mm-pf-pad:clamp(18px,4vw,40px);}
#mmg-app #mm-grimoire .mm-pf-card{padding:28px var(--mm-pf-pad) var(--mm-pf-pad);}
#mmg-app #mm-grimoire .mm-pf-settings{padding:24px var(--mm-pf-pad) 12px;}
#mmg-app #mm-grimoire .mm-pf-energy:not(.mm-pf-empty){padding-bottom:20px;}
#mmg-app #mm-grimoire .mm-pf-moon{margin:0 calc(-1 * var(--mm-pf-pad));padding:26px var(--mm-pf-pad) 24px;}
@media(max-width:600px){#mmg-app #mm-grimoire .mm-profile-page{--mm-pf-pad:18px;}}
/* Phones: the current value sits under the label, so nothing gets cut off */
@media(max-width:600px){
  #mmg-app #mm-grimoire .mm-pf-row,#mmg-app #mm-grimoire .mm-pf-row:is(:hover,:focus,:active){display:grid;grid-template-columns:1fr auto;grid-template-areas:"l c" "v c";column-gap:12px;row-gap:2px;align-items:center;}
  #mmg-app #mm-grimoire .mm-pf-row-label{grid-area:l;}
  #mmg-app #mm-grimoire .mm-pf-row-value{grid-area:v;text-align:left;font-size:14px;}
  #mmg-app #mm-grimoire .mm-pf-chev{grid-area:c;}
}
/* 1.10.31 — Profile refinements */
/* accent text = the same size as Today's "Current Moon Phase" heading (15px, .12em) */
#mmg-app #mm-grimoire .mm-pf-kicker{font-size:15px;letter-spacing:.12em;line-height:1.5;}
/* Change Birthday: the app's pen icon in the top right corner (like Your Grimoire's pen) */
#mmg-app #mm-grimoire .mm-pf-energy{padding-top:28px;}
#mmg-app #mm-grimoire .mm-pf-edit-icon,#mmg-app #mm-grimoire .mm-pf-edit-icon:is(:hover,:focus,:active){appearance:none;position:absolute;top:10px;right:10px;display:grid;place-items:center;width:44px;height:44px;margin:0;padding:0;border:0;border-radius:8px;background:none;box-shadow:none;color:#000;cursor:pointer;outline:0;transition:background-color .2s ease;}
#mmg-app #mm-grimoire .mm-pf-edit-icon svg{width:19px;height:19px;fill:currentColor;transition:transform .35s cubic-bezier(.34,1.56,.64,1);transform-origin:50% 60%;}
@media(hover:hover){#mmg-app #mm-grimoire .mm-pf-edit-icon:hover{background:var(--mm-tint,rgba(114,82,54,.08));}#mmg-app #mm-grimoire .mm-pf-edit-icon:hover svg{transform:rotate(-12deg);}}
#mmg-app #mm-grimoire .mm-pf-edit-icon:focus-visible{background:var(--mm-tint,rgba(114,82,54,.08));}
#mmg-app #mm-grimoire .mm-pf-energy .mm-pf-table{margin-bottom:0;}
/* the moon card: same as Today's (own dark card, dark border, twinkling stars) */
#mmg-app #mm-grimoire .mm-profile-page{--mm-daily-padding:var(--mm-pf-pad);}
#mmg-app #mm-grimoire .mm-pf-sky{margin:0 0 24px!important;}
#mmg-app #mm-grimoire .mm-pf-sky .mm-pf-note-wrap{position:relative;z-index:1;}
#mmg-app #mm-grimoire .mm-pf-sky .mm-pf-note{margin:6px auto 0;max-width:44ch;font-size:15px;line-height:1.5;color:rgba(247,239,221,.78);text-align:center;}
/* empty state: the dashed "Start Your Collection" card */
#mmg-app #mm-grimoire .mm-pf-invite{width:100%!important;margin:0 0 24px!important;}
#mmg-app #mm-grimoire .mm-pf-invite .mm-thumb-question svg{width:30px;height:30px;fill:currentColor;}
/* settings rows: hover fills edge to edge, no rounded corners */
#mmg-app #mm-grimoire .mm-pf-row,#mmg-app #mm-grimoire .mm-pf-row:is(:hover,:focus,:active){border-radius:0;}
#mmg-app #mm-grimoire .mm-pf-settings{padding-left:0;padding-right:0;padding-bottom:0;overflow:hidden;}
#mmg-app #mm-grimoire .mm-pf-row{padding-left:var(--mm-pf-pad)!important;padding-right:var(--mm-pf-pad)!important;}
#mmg-app #mm-grimoire .mm-pf-list li+li{border-top:0;}
#mmg-app #mm-grimoire .mm-pf-list li+li .mm-pf-row{box-shadow:inset 0 1px 0 var(--mm-divider-color,#d8c7ab);}
/* account popup: hint under the email field has room above it */
#mmg-app #mmg-support .mmg-acc-hint{margin:8px 0 18px!important;}
/* birthday popup: our own beige pickers */
/* checkbox: "I don't know my birth time" */
#mmg-app #mmg-support .mmg-check{position:relative;display:flex;align-items:center;gap:12px;min-height:44px;margin:-6px 0 12px;cursor:pointer;color:#000;font-weight:400;}
#mmg-app #mmg-support .mmg-check input{position:absolute;opacity:0;width:1px;height:1px;margin:0;pointer-events:none;}
#mmg-app #mmg-support .mmg-check-box{flex:none;display:grid;place-items:center;width:22px;height:22px;box-sizing:border-box;border:1.5px solid var(--mm-border,#a88f73);border-radius:6px;background:#fbf5e9;transition:background-color .15s ease,border-color .15s ease;}
#mmg-app #mmg-support .mmg-check-box svg{width:16px;height:16px;fill:none;stroke:#fff8eb;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round;opacity:0;}
#mmg-app #mmg-support .mmg-check input:checked+.mmg-check-box{background:#715239;border-color:#715239;}
#mmg-app #mmg-support .mmg-check input:checked+.mmg-check-box svg{opacity:1;}
#mmg-app #mmg-support .mmg-check input:focus-visible+.mmg-check-box{box-shadow:0 0 0 2px #fbf5e9,0 0 0 3px #8d704c;}
#mmg-app #mm-grimoire .mm-pf-invite .mm-thumb-question svg{width:34px;height:34px;}
#mmg-app #mm-grimoire .mm-pf-sky{text-align:center;}
/* Profile: only the app's own text sizes (--mm-text-base 18, --mm-text-small 15, --mm-text-card 26) */
#mmg-app #mm-grimoire .mm-pf-kicker{font-size:var(--mm-text-small);}
#mmg-app #mm-grimoire .mm-pf-card h2:not(.mm-pf-kicker){font-size:var(--mm-text-card);}
#mmg-app #mm-grimoire .mm-pf-row-label{font-size:var(--mm-text-base)!important;}
#mmg-app #mm-grimoire .mm-pf-row-value{font-size:var(--mm-text-small)!important;}
#mmg-app #mm-grimoire :is(.mm-pf-textlink,.mm-pf-logout),#mmg-app #mm-grimoire :is(.mm-pf-textlink,.mm-pf-logout):is(:hover,:focus,:active){font-size:16px!important;}
#mmg-app #mm-grimoire .mm-pf-sky .mm-pf-note,#mmg-app #mm-grimoire .mm-pf-banner{font-size:var(--mm-text-small);}
#mmg-app #mm-grimoire .mm-pf-settings{padding-bottom:12px;}
@media(max-width:600px){#mmg-app #mm-grimoire .mm-pf-card h2:not(.mm-pf-kicker){font-size:var(--mm-text-card);}}
#mmg-app #mmg-support .mmg-text-link{font-size:16px!important;}
/* Today's four tiles: a clearer hover (was nearly the same as the tile) */
@media(hover:hover){#mmg-app #mm-grimoire .mm-daily-object:hover,#mmg-app #mm-grimoire .mm-daily-object.mm-daily-seen:hover{background:#ece0c7!important;}}
#mmg-app #mm-grimoire .mm-daily-object:is(:active,:focus-visible){background:#ece0c7!important;}
/* Collection cards: warmer hover again, between the original and the softened one */
#mmg-app #mm-grimoire :not(.mm-end-random)>.mm-card::after,#mmg-app #mm-grimoire .mm-kin a::after{background:linear-gradient(180deg,#eee0c4,#e1ceab)!important;}
/* Birthday card icon: the same size as the bookmark on "Start Your Collection" */
#mmg-app #mm-grimoire .mm-pf-invite .mm-thumb-question svg{width:auto!important;height:24px!important;}
/* typed birthday fields: the checkbox sits right under the time field */
#mmg-app #mmg-support [data-birth-form] .mmg-check{margin:4px 0 12px;}
#mmg-app #mmg-support [data-birth-form] input:disabled{opacity:.5;}
/* Profile greeting: "Blessed be," + name on the torn paper, like Today's */
#mmg-app #mm-grimoire .mm-pf-greeting{display:none!important;}
#mmg-app #mm-grimoire.mm-page-profile:not(.mm-detail-view) .mm-pf-greeting{display:block!important;}
#mmg-app #mm-grimoire .mm-pf-greeting .mm-greeting-sub{max-width:none;}

/* 1.10.43: underlined text links match the brown buttons and inputs (16px, the app's control size) */
/* Profile icon: a small red dot until a birthday is added */
#mmg-app .mmg-app-header .mmg-profile{position:relative;}
#mmg-app .mmg-profile-badge{display:none;}
#mmg-app .mmg-profile.mmg-profile-todo .mmg-profile-badge{position:absolute;top:7px;right:6px;display:block;width:10px;height:10px;border-radius:50%;background:#a8443a;box-shadow:0 0 0 2px #f9f2e2;pointer-events:none;}
/* Empty birthday card: Today's wiggling "!" in its corner until it's opened once */
#mmg-app #mm-grimoire .mm-pf-invite .mm-card{position:relative;}
#mmg-app #mm-grimoire .mm-pf-badge{position:absolute;top:10px;right:10px;z-index:2;display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#a8443a;box-shadow:none;pointer-events:none;animation:mmg-badge-wiggle 3.2s ease-in-out infinite;transform-origin:50% 50%;}
#mmg-app #mm-grimoire .mm-pf-badge svg.mm-fa-excl{display:block;width:auto;height:13px;overflow:visible;fill:#fff8eb!important;color:#fff8eb!important;stroke:#fff8eb!important;stroke-width:22px;stroke-linejoin:round;stroke-linecap:round;paint-order:stroke;}
@media(max-width:600px){#mmg-app #mm-grimoire .mm-pf-badge{top:8px;right:8px;width:22px;height:22px;}#mmg-app #mm-grimoire .mm-pf-badge svg.mm-fa-excl{height:12px;}}
@media(prefers-reduced-motion:reduce){#mmg-app #mm-grimoire .mm-pf-badge{animation:none;}}
/* Birth date and time: one line on wide screens, two lines (no dot) on phones */
@media(max-width:600px){#mmg-app #mm-grimoire .mm-pf-when-sep{display:none;}#mmg-app #mm-grimoire .mm-pf-when-time{display:block;}}
/* Grimoire: one-time "you can move these" demo on the first piece */
#mmg-app #mm-grimoire .mm-piece.mm-drag-demo{z-index:5;animation:mm-drag-demo 3.2s cubic-bezier(.3,.7,.3,1) both;}
@keyframes mm-drag-demo{0%,14%{scale:1;translate:0 0;rotate:0deg;}24%{scale:1.06;translate:0 0;rotate:-1.2deg;}32%{rotate:1.2deg;}40%{rotate:-1deg;translate:0 0;}62%{scale:1.06;translate:28px -6px;rotate:1deg;}80%{scale:1.06;translate:0 0;rotate:0deg;}92%,100%{scale:1;translate:0 0;rotate:0deg;}}
#mmg-app #mm-grimoire .mm-drag-demo-dot{position:absolute;left:50%;top:45%;z-index:3;width:30px;height:30px;margin:-15px 0 0 -15px;border:2px solid rgba(255,250,240,.95);border-radius:50%;background:rgba(0,0,0,.28);pointer-events:none;animation:mm-drag-demo-dot 3.2s cubic-bezier(.3,.7,.3,1) both;}
@keyframes mm-drag-demo-dot{0%{opacity:0;scale:1.5;}12%{opacity:1;scale:1;}20%{scale:.82;}80%{opacity:1;scale:.82;}92%,100%{opacity:0;scale:1.3;}}
html.mmg-tour-open,html.mmg-tour-open body{overflow:hidden!important;overscroll-behavior:none!important;}
/* Profile: the same shimmering skeleton the entries use while loading */
#mmg-app #mm-grimoire .mm-pf-skeleton{display:grid;grid-template-columns:minmax(0,1fr);gap:24px;}
#mmg-app #mm-grimoire .mm-pf-skeleton .mm-skeleton{border-radius:12px;}
#mmg-app #mm-grimoire .mm-pf-skeleton .mm-pf-skel-invite{height:196px;}
#mmg-app #mm-grimoire .mm-pf-skeleton .mm-pf-skel-energy{height:350px;}
#mmg-app #mm-grimoire .mm-pf-skeleton .mm-pf-skel-sky{height:419px;}
#mmg-app #mm-grimoire .mm-pf-skeleton .mm-pf-skel-settings{height:310px;}
@media(max-width:600px){#mmg-app #mm-grimoire .mm-pf-skeleton .mm-pf-skel-invite{height:220px;}#mmg-app #mm-grimoire .mm-pf-skeleton .mm-pf-skel-energy{height:509px;}#mmg-app #mm-grimoire .mm-pf-skeleton .mm-pf-skel-sky{height:407px;}#mmg-app #mm-grimoire .mm-pf-skeleton .mm-pf-skel-settings{height:374px;}}
#mmg-app #mm-grimoire .mm-pf-skel-line{display:grid;justify-items:center;align-items:center;grid-auto-rows:1.5em;}
#mmg-app #mm-grimoire .mm-pf-skel-line .mm-skeleton{display:block;width:min(420px,86%);height:16px;border-radius:8px;}
#mmg-app #mm-grimoire .mm-pf-skel-line .mm-skeleton+.mm-skeleton{width:min(300px,62%);}
/* Profile: same container width as the Collection and the Grimoire, and the greeting starts at the same distance below the title */
#mmg-app #mm-grimoire .mm-profile-page{max-width:none;}
#mmg-app #mm-grimoire.mm-page-profile:not(.mm-detail-view) .mm-pf-greeting{margin-top:32px!important;}
/* iPhone: Safari gives date and time fields their own minimum width, so they ignored the popup's padding and ran to the
   right edge of the screen. Drop Safari's built-in look so they size like every other field. */
#mmg-app #mmg-support input:is([type=date],[type=time]){-webkit-appearance:none;appearance:none;box-sizing:border-box;display:block;width:100%;min-width:0;max-width:100%;min-height:48px;text-align:left;}
#mmg-app #mmg-support input:is([type=date],[type=time])::-webkit-date-and-time-value{min-height:1.5em;margin:0;text-align:left;}
@media(min-width:601px) and (max-width:900px){#mmg-app #mm-grimoire .mm-pf-skeleton .mm-pf-skel-invite{height:246px;}#mmg-app #mm-grimoire .mm-pf-skeleton .mm-pf-skel-energy{height:453px;}}

/* ===== Welcome tour with Luna (1.10.51) ===== */
#mmg-app .mmg-tour{position:fixed;inset:0;z-index:99980;touch-action:none;overscroll-behavior:none;--tour-ease:cubic-bezier(.22,.8,.24,1);}
#mmg-app .mmg-tour-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0;}
/* The dim: one soft shade with a bright, glowing window over the part being explained. */
#mmg-app .mmg-tour-spot{position:fixed;border-radius:14px;pointer-events:none;opacity:0;
  box-shadow:0 0 0 2px rgba(247,239,221,.95),0 0 0 8px rgba(247,239,221,.18),0 0 0 200vmax rgba(31,23,17,.62);
  transition:left .55s var(--tour-ease),top .55s var(--tour-ease),width .55s var(--tour-ease),height .55s var(--tour-ease),border-radius .55s ease,box-shadow .4s ease,opacity .6s ease;}
#mmg-app .mmg-tour.mmg-tour-in .mmg-tour-spot{opacity:1;}
#mmg-app .mmg-tour-spot.mmg-tour-spot-none{box-shadow:0 0 0 0 rgba(247,239,221,0),0 0 0 0 rgba(247,239,221,0),0 0 0 200vmax rgba(31,23,17,.62);}
#mmg-app .mmg-tour-spot:not(.mmg-tour-spot-none){animation:mmg-tour-glow 2.8s ease-in-out 1s infinite;}
@keyframes mmg-tour-glow{0%,100%{box-shadow:0 0 0 2px rgba(247,239,221,.95),0 0 0 8px rgba(247,239,221,.18),0 0 0 200vmax rgba(31,23,17,.62);}50%{box-shadow:0 0 0 2px rgba(247,239,221,.95),0 0 0 12px rgba(247,239,221,.1),0 0 0 200vmax rgba(31,23,17,.62);}}
#mmg-app .mmg-tour-arrow{position:fixed;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none;}
#mmg-app .mmg-tour-arrow path{fill:none!important;stroke:#f7efdd!important;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round;}
/* Luna and her bubble: one fixed place for the whole tour. Phones: bubble above, Luna below. Wider: Luna left, bubble right. */
#mmg-app .mmg-tour-luna{position:fixed;left:50%;display:flex;flex-direction:column;align-items:center;width:min(calc(100% - 32px),360px);transform:translateX(-50%);}
#mmg-app .mmg-tour-scene{display:flex;flex-direction:column-reverse;align-items:center;gap:6px;}
#mmg-app .mmg-tour-cat{display:block;width:clamp(130px,27vh,190px);height:clamp(130px,27vh,190px);object-fit:contain;opacity:0;transform:translateY(14px) scale(.94);}
#mmg-app .mmg-tour.mmg-tour-in .mmg-tour-cat{animation:mmg-tour-cat-in .7s var(--tour-ease) .35s both,mmg-tour-float 4.2s ease-in-out 1.2s infinite;}
@keyframes mmg-tour-cat-in{from{opacity:0;transform:translateY(14px) scale(.94);}to{opacity:1;transform:none;}}
@keyframes mmg-tour-float{0%,100%{transform:translateY(0);}50%{transform:translateY(-3px);}}
#mmg-app .mmg-tour-bubble{position:relative;isolation:isolate;box-sizing:border-box;width:fit-content;max-width:100%;padding:18px 24px 22px;text-align:center;opacity:0;transform:scale(.9);transform-origin:64% 108%;}
#mmg-app .mmg-tour.mmg-tour-in .mmg-tour-bubble{animation:mmg-tour-pop .55s var(--tour-ease) .65s both;}
@keyframes mmg-tour-pop{from{opacity:0;transform:scale(.9);}to{opacity:1;transform:none;}}
#mmg-app .mmg-tour-shape{position:absolute;inset:0;z-index:-1;width:100%;height:100%;overflow:visible;pointer-events:none;}
#mmg-app .mmg-tour-shape path{fill:var(--mm-card,#f7efdd)!important;stroke:#c8b293!important;stroke-width:1.8px;stroke-linejoin:round;stroke-linecap:round;vector-effect:non-scaling-stroke;}
#mmg-app .mmg-tour-shape-side{display:none;}
#mmg-app .mmg-tour-words{display:flex;flex-direction:column;justify-content:center;transition:opacity .17s ease,transform .17s ease;}
#mmg-app .mmg-tour-words.mmg-tour-words-out{opacity:0;transform:translateY(-4px);}
#mmg-app .mmg-tour-title-box{position:relative;display:table;margin:0 auto;}
#mmg-app .mmg-tour-title{margin:0;font:500 26px/1.25 var(--mm-font-hand);color:var(--mm-primary);}
#mmg-app .mmg-tour-text{margin:6px 0 0;font:400 16px/1.6 var(--mm-font-body);color:#000;}
#mmg-app .mmg-tour-sparkles{position:absolute;inset:0;pointer-events:none;}
#mmg-app .mmg-tour-sparkles[hidden]{display:none;}
#mmg-app .mmg-tour-sparkle{position:absolute;display:block;line-height:0;opacity:0;animation:mmg-tour-spark-in .6s ease-out both,mmg-tour-spark-float 4.2s ease-in-out infinite;}
#mmg-app .mmg-tour-sparkle svg{width:100%;height:100%;fill:var(--mm-primary)!important;}
#mmg-app .mmg-tour-sparkle-1{width:15px;height:15px;top:4px;left:-24px;animation-delay:1.1s,1.7s;}
#mmg-app .mmg-tour-sparkle-2{width:10px;height:10px;top:-4px;right:-16px;animation-delay:1.3s,2.4s;}
#mmg-app .mmg-tour-sparkle-3{width:12px;height:12px;bottom:4px;right:-32px;animation-delay:1.5s,3s;}
@keyframes mmg-tour-spark-in{from{opacity:0;transform:scale(.3) rotate(-30deg);}to{opacity:.9;transform:none;}}
@keyframes mmg-tour-spark-float{0%,100%{translate:0 0;}50%{translate:0 -3px;}}
/* Bottom row of the bubble: Skip on the left, subtle arrows and step dots on the right. */
#mmg-app .mmg-tour-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:8px;}
#mmg-app .mmg-tour-foot .mmg-tour-skip,#mmg-app .mmg-tour-foot .mmg-tour-skip:is(:hover,:focus,:active){appearance:none;display:inline-block;min-height:44px;margin:0 0 0 -4px;padding:10px 4px;border:0;border-radius:0;background:none!important;box-shadow:none!important;color:#000!important;font:400 16px/1.5 var(--mm-font-body);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.2em;cursor:pointer;}
#mmg-app .mmg-tour-steps{display:flex;align-items:center;gap:2px;margin-left:auto;}
#mmg-app .mmg-tour-dots{display:flex;align-items:center;gap:5px;padding:0 4px;}
#mmg-app .mmg-tour-dot{display:block;width:6px;height:6px;border-radius:999px;background:#c8b293;transition:width .3s var(--tour-ease),background-color .3s ease;}
#mmg-app .mmg-tour-dot.mmg-tour-dot-on{width:16px;background:var(--mm-primary);}
#mmg-app .mmg-tour-foot .mmg-tour-arrowbtn,#mmg-app .mmg-tour-foot .mmg-tour-arrowbtn:is(:hover,:focus,:active){appearance:none;display:grid;place-items:center;width:40px;height:40px;min-width:40px;margin:0;padding:0;border:0;border-radius:50%;background:transparent;box-shadow:none!important;color:#000!important;cursor:pointer;transition:background-color .2s ease,opacity .25s ease;}
@media(hover:hover){#mmg-app .mmg-tour-foot .mmg-tour-arrowbtn:hover{background-color:#ece0c7;}}
#mmg-app .mmg-tour-foot .mmg-tour-arrowbtn:active{background-color:#e1ceab;}
#mmg-app .mmg-tour-foot .mmg-tour-arrowbtn svg{width:13px;height:13px;fill:#000!important;stroke:none!important;}
#mmg-app .mmg-tour-foot .mmg-tour-arrowbtn[hidden]{display:none;}
#mmg-app .mmg-tour-foot .mmg-tour-hide{opacity:0;pointer-events:none;visibility:hidden;}
#mmg-app .mmg-tour-foot .mmg-tour-done[hidden]{display:none;}
#mmg-app .mmg-tour button:focus-visible{outline:2px solid var(--mm-focus-color,#8d704c);outline-offset:2px;}
#mmg-app .mmg-tour.mmg-tour-out{opacity:0;transition:opacity .4s ease;}
@media(min-width:601px){
  #mmg-app .mmg-tour-luna{width:min(calc(100% - 48px),660px);transform:translate(-50%,-50%);}
  #mmg-app .mmg-tour-scene{flex-direction:row;align-items:center;gap:18px;}
  #mmg-app .mmg-tour-cat{flex:none;width:240px;height:240px;}
  #mmg-app .mmg-tour-bubble{flex:0 1 auto;max-width:400px;padding:22px 28px 24px;transform-origin:-4% 52%;}
  #mmg-app .mmg-tour-shape-side{display:block;}
  #mmg-app .mmg-tour-shape-down{display:none;}
  #mmg-app .mmg-tour-title{font-size:28px;}
}
@media(max-height:620px) and (max-width:600px){#mmg-app .mmg-tour-bubble{padding:14px 18px 18px;}#mmg-app .mmg-tour-title{font-size:24px;}#mmg-app .mmg-tour-text{font-size:15px;line-height:1.5;}}
@media(prefers-reduced-motion:reduce){#mmg-app .mmg-tour-spot,#mmg-app .mmg-tour-words,#mmg-app .mmg-tour-dot{transition:none;animation:none!important;}#mmg-app .mmg-tour .mmg-tour-cat,#mmg-app .mmg-tour .mmg-tour-bubble{animation:none!important;opacity:1;transform:none;}#mmg-app .mmg-tour-sparkle{animation:none;opacity:.85;}}
#mmg-app .mmg-tour:focus{outline:none;}
#mmg-app .mmg-tour-foot{min-height:44px;}
#mmg-app .mmg-tour-foot .mmg-tour-skip[hidden]{display:none;}
/* Skip and the step arrows sit under Luna, outside the bubble, in cream so they read on the dimmed page. */
#mmg-app .mmg-tour-foot{position:fixed;left:50%;width:min(calc(100% - 32px),360px);margin:0;padding:0;opacity:0;transform:translateX(-50%);}
#mmg-app .mmg-tour.mmg-tour-in .mmg-tour-foot{animation:mmg-tour-fade .5s ease 1s both;}
@keyframes mmg-tour-fade{from{opacity:0;}to{opacity:1;}}
#mmg-app .mmg-tour-foot .mmg-tour-skip,#mmg-app .mmg-tour-foot .mmg-tour-skip:is(:hover,:focus,:active){color:#f7efdd!important;}
#mmg-app .mmg-tour-foot .mmg-tour-arrowbtn svg{fill:#f7efdd!important;}
@media(hover:hover){#mmg-app .mmg-tour-foot .mmg-tour-arrowbtn:hover{background-color:rgba(247,239,221,.16);}}
#mmg-app .mmg-tour-foot .mmg-tour-arrowbtn:active{background-color:rgba(247,239,221,.26);}
#mmg-app .mmg-tour-dot{background:rgba(247,239,221,.45);}
#mmg-app .mmg-tour-dot.mmg-tour-dot-on{background:#f7efdd;}
#mmg-app .mmg-tour button:focus-visible{outline-color:#f7efdd;}

@media(prefers-reduced-motion:reduce){#mmg-app .mmg-tour .mmg-tour-foot{animation:none!important;opacity:1;}}
/* ===== Your Personality (profile): one container per trait, each with the same "… Traits" accent title ===== */
#mmg-app #mm-grimoire .mm-pf-themes{margin:0 0 22px;padding:0;text-align:center;}
#mmg-app #mm-grimoire .mm-pf-themes-label{margin:0 0 10px;font:italic 400 16px/1.5 var(--mm-font-body);color:var(--mm-muted);}
#mmg-app #mm-grimoire .mm-pf-themes .mm-daily-tags{justify-content:center;}
#mmg-app #mm-grimoire .mm-pf-trait .mm-pf-kicker,#mmg-app #mm-grimoire .mm-pf-sigs-card .mm-pf-kicker{text-align:center;margin:0 0 18px;}
#mmg-app #mm-grimoire .mm-pf-trait-row{display:grid;grid-template-columns:minmax(140px,190px) 1fr;align-items:center;gap:24px;}
#mmg-app #mm-grimoire .mm-pf-trait-head{display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center;color:#000;text-decoration:none;}
#mmg-app #mm-grimoire .mm-pf-trait-img{display:block;width:72px;height:72px;object-fit:contain;}
#mmg-app #mm-grimoire .mm-pf-trait-kind{display:block;font:400 13px/1.3 var(--mm-font-body);letter-spacing:.12em;text-transform:uppercase;color:var(--mm-primary);}
#mmg-app #mm-grimoire .mm-pf-trait-title{font:400 var(--mm-text-base)/1.25 var(--mm-font-heading);color:#000;}
@media(hover:hover){#mmg-app #mm-grimoire .mm-pf-trait-head:hover .mm-pf-trait-title,#mmg-app #mm-grimoire .mm-pf-sig:hover .mm-pf-sig-name{text-decoration:underline;text-underline-offset:.2em;}}
#mmg-app #mm-grimoire .mm-pf-trait-text{margin:0;font:400 16px/1.65 var(--mm-font-body);color:#000;text-align:left;}
#mmg-app #mm-grimoire .mm-pf-sigs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;margin:0 0 24px;}
#mmg-app #mm-grimoire .mm-pf-sigs:has(> :nth-child(2):last-child){grid-template-columns:repeat(2,minmax(0,1fr));}
#mmg-app #mm-grimoire .mm-pf-sigs:has(> :only-child){grid-template-columns:1fr;}
#mmg-app #mm-grimoire .mm-pf-card.mm-pf-sig{display:flex;flex-direction:column;align-items:center;gap:8px;margin:0;color:#000;text-decoration:none;text-align:center;}
#mmg-app #mm-grimoire .mm-pf-sig .mm-pf-kicker{margin:0 0 4px;}
#mmg-app #mm-grimoire .mm-pf-sig .mm-pf-trait-img{width:60px;height:60px;}
#mmg-app #mm-grimoire .mm-pf-sig-words{display:flex;flex-direction:column;align-items:center;gap:4px;min-width:0;}
#mmg-app #mm-grimoire .mm-pf-sig-name{font:400 var(--mm-text-base)/1.25 var(--mm-font-heading);color:#000;}
@media(hover:hover){#mmg-app #mm-grimoire .mm-pf-sig:hover .mm-pf-sig-name{text-decoration:underline;text-underline-offset:.2em;}}
#mmg-app #mm-grimoire .mm-pf-sig-excerpt{font:400 var(--mm-text-small)/1.5 var(--mm-font-body);color:var(--mm-muted);}
@media(max-width:600px){
  #mmg-app #mm-grimoire .mm-pf-trait-row{grid-template-columns:1fr;gap:14px;}
  #mmg-app #mm-grimoire .mm-pf-trait-head{flex-direction:row;justify-content:center;gap:12px;}
  #mmg-app #mm-grimoire .mm-pf-trait-img{width:56px;height:56px;}
  #mmg-app #mm-grimoire .mm-pf-sigs,#mmg-app #mm-grimoire .mm-pf-sigs:has(> :nth-child(2):last-child){grid-template-columns:1fr;}
}
/* 1.10.52: bubble fits its words; finish = a cream circle with a check, in the arrow's place */
#mmg-app .mmg-tour-text{text-wrap:balance;}
#mmg-app .mmg-tour-bubble.mmg-tour-reshape{animation:mmg-tour-reshape .32s var(--tour-ease) both;}
@keyframes mmg-tour-reshape{from{transform:scale(.97);}to{transform:none;}}
#mmg-app .mmg-tour-foot .mmg-tour-done,#mmg-app .mmg-tour-foot .mmg-tour-done:is(:hover,:focus,:active){width:44px;height:44px;min-width:44px;margin-left:4px;background-color:#f7efdd;}
@media(hover:hover){#mmg-app .mmg-tour-foot .mmg-tour-done:hover{background-color:#fffaf0;}}
#mmg-app .mmg-tour-foot .mmg-tour-done:active{background-color:#e9dcc4;}
#mmg-app .mmg-tour-foot .mmg-tour-done svg{width:17px;height:17px;fill:#000!important;}
#mmg-app .mmg-tour-foot .mmg-tour-done[hidden]{display:none;}
@media(min-width:601px){#mmg-app .mmg-tour-foot{width:min(calc(100% - 48px),420px);}}
/* Profile spacing = Today's: 16px between every container, the same inner padding as Today's cards, and the accent
   title at Today's height, level with the pen icon. */
#mmg-app #mm-grimoire .mm-profile-page .mm-pf-card{margin-bottom:16px;padding:20px var(--mm-pf-pad) var(--mm-pf-pad);}
#mmg-app #mm-grimoire .mm-profile-page .mm-pf-energy{padding-top:20px;}
#mmg-app #mm-grimoire .mm-profile-page .mm-pf-settings{padding-bottom:12px;}
#mmg-app #mm-grimoire .mm-profile-page .mm-pf-card .mm-pf-kicker{margin-top:0;margin-bottom:12px;line-height:1.5;}
#mmg-app #mm-grimoire .mm-profile-page .mm-pf-sky{margin:0 0 16px!important;}
#mmg-app #mm-grimoire .mm-profile-page .mm-pf-invite{margin:0 0 16px!important;}
#mmg-app #mm-grimoire .mm-profile-page .mm-pf-sigs{gap:16px;margin:0 0 16px;}
#mmg-app #mm-grimoire .mm-profile-page .mm-pf-sigs .mm-pf-card{margin:0;}
#mmg-app #mm-grimoire .mm-profile-page .mm-pf-end{margin-top:0;}
#mmg-app #mm-grimoire .mm-pf-skeleton{gap:16px;}
#mmg-app #mm-grimoire .mm-profile-page .mm-pf-edit-icon{top:9px;}
@media(min-width:601px){#mmg-app #mm-grimoire .mm-profile-page .mm-pf-card .mm-pf-kicker{line-height:24px;}#mmg-app #mm-grimoire .mm-profile-page .mm-pf-edit-icon{top:10px;}}
/* Header (? and profile) and Today's info / refresh buttons: pressed and hovered states are a rounded square
   (8px, like the pen and the popup X), never a circle. iPhone's own tap flash follows the same shape, so it's turned off. */
#mmg-app#mmg-app :is(.mmg-help-trigger,.mmg-profile,.mm-daily-help,.mm-daily-refresh){border-radius:8px!important;-webkit-tap-highlight-color:transparent;}
#mmg-app#mmg-app :is(.mmg-help-trigger,.mmg-profile,.mm-daily-help,.mm-daily-refresh):active{background:var(--mm-tint,rgba(114,82,54,.08))!important;}
@media(hover:hover){#mmg-app#mmg-app :is(.mmg-help-trigger,.mmg-profile,.mm-daily-help,.mm-daily-refresh):hover{background:var(--mm-tint,rgba(114,82,54,.08))!important;}}
#mmg-app#mmg-app :is(.mmg-help-trigger,.mmg-profile,.mm-daily-help,.mm-daily-refresh):focus-visible{background:var(--mm-tint,rgba(114,82,54,.08))!important;}
/* Tour controls: only Skip (left) and Next (right), plain cream text just above the bottom bar. */
#mmg-app .mmg-tour-foot{display:flex;align-items:center;justify-content:space-between;width:calc(100% - 24px)!important;max-width:none;}
#mmg-app .mmg-tour-foot .mmg-tour-skip,#mmg-app .mmg-tour-foot .mmg-tour-skip:is(:hover,:focus,:active){margin:0;padding:10px 8px;text-decoration:none;}
#mmg-app .mmg-tour-foot .mmg-tour-next,#mmg-app .mmg-tour-foot .mmg-tour-next:is(:hover,:focus,:active){appearance:none;display:inline-flex;align-items:center;gap:8px;min-height:44px;margin:0 0 0 auto;padding:10px 8px;border:0;border-radius:8px;background:transparent;box-shadow:none!important;color:#f7efdd!important;font:500 16px/1.5 var(--mm-font-body);cursor:pointer;}
#mmg-app .mmg-tour-foot .mmg-tour-next svg{width:11px;height:11px;fill:#f7efdd!important;}
#mmg-app .mmg-tour-foot .mmg-tour-next[hidden]{display:none;}
@media(hover:hover){#mmg-app .mmg-tour-foot :is(.mmg-tour-next,.mmg-tour-skip):hover{background:rgba(247,239,221,.14)!important;border-radius:8px;}}
@media(min-width:601px){#mmg-app .mmg-tour-foot{width:min(calc(100% - 48px),760px)!important;}}
/* Every square icon button uses the save button's corner (12px): popup X, pen, ?, profile, info, refresh, sheet check. */
#mmg-app#mmg-app :is(.mmg-support-close,.mm-pf-edit-icon,.mmg-help-trigger,.mmg-profile,.mm-daily-help,.mm-daily-refresh,.mm-sheet-done,.mm-save,.mm-tip-icon,.mm-keep-tip.mm-tip-icon),
#mmg-app#mmg-app :is(.mmg-support-close,.mm-pf-edit-icon,.mmg-help-trigger,.mmg-profile,.mm-daily-help,.mm-daily-refresh,.mm-sheet-done):is(:hover,:focus,:active,:focus-visible){border-radius:12px!important;}
#mmg-app .mmg-tour-foot :is(.mmg-tour-next,.mmg-tour-skip),#mmg-app .mmg-tour-foot :is(.mmg-tour-next,.mmg-tour-skip):hover{border-radius:12px!important;}
#mmg-app .mmg-tour-foot .mmg-tour-done,#mmg-app .mmg-tour-foot .mmg-tour-done:is(:hover,:focus,:active){margin-left:auto!important;border-radius:12px!important;}
#mmg-app#mmg-app #mm-grimoire .mm-add-note,#mmg-app#mmg-app #mm-grimoire .mm-add-note:is(:hover,:focus,:active,:focus-visible){border-radius:12px!important;}
#mmg-app#mmg-app #mm-grimoire #mm-board .mm-add-note,#mmg-app#mmg-app #mm-grimoire #mm-board .mm-add-note:is(:hover,:focus,:active,:focus-visible){border-radius:12px!important;}
#mmg-app #mm-grimoire .mm-profile-page{padding-bottom:0!important;}
#mmg-app #mmg-support.mmg-support-success .mmg-support-send{display:flex;align-items:center;justify-content:center;width:100%;}
/* ===== 1.10.53 profile: themes container, openable traits, sticker signatures ===== */
/* The themes you'll explore in your lifetime: three in a row (like Today's table), stacked on phones. */
#mmg-app #mm-grimoire .mm-pf-themes-card .mm-pf-kicker{text-align:center;}
#mmg-app #mm-grimoire .mm-pf-theme-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));}
#mmg-app #mm-grimoire .mm-pf-theme,#mmg-app #mm-grimoire .mm-pf-theme:is(:hover,:focus,:active){appearance:none;display:flex;flex-direction:column;align-items:center;gap:6px;min-width:0;margin:0;padding:8px 14px;border:0;border-radius:0;background:transparent!important;box-shadow:none!important;color:#000;font:inherit;text-align:center;text-transform:none;letter-spacing:0;cursor:pointer;}
#mmg-app #mm-grimoire .mm-pf-theme+.mm-pf-theme{border-left:1px solid var(--mm-divider-color,#bdab92)!important;}
#mmg-app #mm-grimoire .mm-pf-theme-num{font:500 30px/1 var(--mm-font-hand);color:var(--mm-primary);}
#mmg-app #mm-grimoire .mm-pf-theme-name{font:400 var(--mm-text-card)/1.2 var(--mm-font-heading);color:#000;overflow-wrap:anywhere;}
#mmg-app #mm-grimoire .mm-pf-theme-from{font:400 var(--mm-text-small)/1.5 var(--mm-font-body);color:var(--mm-muted);}
@media(hover:hover){#mmg-app #mm-grimoire .mm-pf-theme:hover .mm-pf-theme-name{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.2em;}}
#mmg-app #mm-grimoire .mm-pf-theme:focus-visible .mm-pf-theme-name{text-decoration:underline;}
@media(max-width:600px){
  #mmg-app #mm-grimoire .mm-pf-theme-list{grid-template-columns:1fr;}
  #mmg-app #mm-grimoire .mm-pf-theme{padding:14px 4px;}
  #mmg-app #mm-grimoire .mm-pf-theme+.mm-pf-theme{border-left:0!important;border-top:1px solid var(--mm-divider-color,#bdab92)!important;}
}
/* Traits: closed boxes (accent title, picture and name); tap to open the words. */
#mmg-app #mm-grimoire details.mm-pf-trait{padding:0!important;}
#mmg-app #mm-grimoire .mm-pf-trait-sum{position:relative;display:flex;flex-direction:column;align-items:center;gap:12px;padding:20px var(--mm-pf-pad) 20px;list-style:none;cursor:pointer;border-radius:12px;-webkit-tap-highlight-color:transparent;}
#mmg-app #mm-grimoire .mm-pf-trait-sum::-webkit-details-marker{display:none;}
#mmg-app #mm-grimoire .mm-pf-trait-sum .mm-pf-kicker{margin:0!important;}
#mmg-app #mm-grimoire .mm-pf-trait .mm-pf-trait-head{display:flex;flex-direction:column;align-items:center;gap:8px;}
#mmg-app #mm-grimoire .mm-pf-trait .mm-pf-trait-img{width:80px;height:80px;}
#mmg-app #mm-grimoire .mm-pf-trait .mm-pf-trait-title{font:400 var(--mm-text-card)/1.2 var(--mm-font-heading);}
@media(hover:hover){#mmg-app #mm-grimoire .mm-pf-trait-sum:hover .mm-pf-trait-title{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.2em;}}
#mmg-app #mm-grimoire .mm-pf-trait-sum:focus-visible{outline:2px solid var(--mm-focus-color,#8d704c);outline-offset:-2px;}
#mmg-app #mm-grimoire .mm-pf-trait-toggle{position:absolute;top:10px;right:10px;display:grid;place-items:center;width:44px;height:44px;border-radius:12px;}
#mmg-app #mm-grimoire .mm-pf-trait-toggle svg{width:15px;height:15px;fill:#000;transition:transform .3s cubic-bezier(.22,.8,.24,1);}
@media(hover:hover){#mmg-app #mm-grimoire .mm-pf-trait-sum:hover .mm-pf-trait-toggle{background:var(--mm-tint,rgba(114,82,54,.08));}}
#mmg-app #mm-grimoire details.mm-pf-trait[open] .mm-pf-trait-toggle svg{transform:rotate(180deg);}
#mmg-app #mm-grimoire .mm-pf-trait-body{padding:0 var(--mm-pf-pad) var(--mm-pf-pad);text-align:center;}
#mmg-app #mm-grimoire details.mm-pf-trait[open] .mm-pf-trait-body{animation:mm-pf-open .35s cubic-bezier(.22,.8,.24,1) both;}
@keyframes mm-pf-open{from{opacity:0;transform:translateY(-6px);}to{opacity:1;transform:none;}}
#mmg-app #mm-grimoire .mm-pf-trait-body .mm-pf-trait-text{max-width:62ch;margin:0 auto;font-size:var(--mm-text-base);line-height:1.65;text-align:center;}
#mmg-app #mm-grimoire .mm-pf-trait-more{margin-top:14px;}
@media(max-width:600px){#mmg-app #mm-grimoire .mm-pf-trait-body .mm-pf-trait-text{font-size:16px;text-align:left;}#mmg-app #mm-grimoire .mm-pf-trait-toggle{top:9px;right:6px;}}
@media(prefers-reduced-motion:reduce){#mmg-app #mm-grimoire details.mm-pf-trait[open] .mm-pf-trait-body{animation:none;}}
/* Power color, signature crystal, lucky herb: stickers like saved entries on the Grimoire, with big pictures. */
#mmg-app #mm-grimoire .mm-profile-page .mm-pf-sigs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;margin:8px 0 24px;padding:0 6px;}
#mmg-app #mm-grimoire .mm-pf-sticker{transform:rotate(var(--tilt,0deg));transition:transform .3s cubic-bezier(.22,.8,.24,1);text-decoration:none;text-align:center;}
#mmg-app #mm-grimoire .mm-pf-sticker .mm-sticker-cat{margin:0 0 10px;font:400 13px/1.3 var(--mm-font-body);letter-spacing:.12em;color:var(--mm-primary);}
#mmg-app #mm-grimoire .mm-pf-sticker .mm-sticker-image,#mmg-app #mm-grimoire .mm-pf-sticker .mm-sticker-image :is(img,.mm-piece-noimage){width:130px;height:130px;}
#mmg-app #mm-grimoire .mm-pf-sticker .mm-sticker-excerpt{-webkit-line-clamp:3;}
@media(hover:hover){#mmg-app #mm-grimoire .mm-pf-sticker:hover{transform:rotate(0deg) translateY(-3px);}#mmg-app #mm-grimoire .mm-pf-sticker:hover .mm-sticker-name{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.2em;}}
@media(max-width:600px){
  #mmg-app #mm-grimoire .mm-profile-page .mm-pf-sigs{grid-template-columns:1fr;gap:20px;padding:0 28px;}
  #mmg-app #mm-grimoire .mm-pf-sticker .mm-sticker-image,#mmg-app #mm-grimoire .mm-pf-sticker .mm-sticker-image :is(img,.mm-piece-noimage){width:120px;height:120px;}
}
/* Traits as a compact accordion: picture, small title, name and the first sentence as a teaser; open for the rest. */
#mmg-app #mm-grimoire .mm-pf-trait-sum{flex-direction:row;align-items:center;gap:18px;padding:16px 64px 16px var(--mm-pf-pad);text-align:left;}
#mmg-app #mm-grimoire .mm-pf-trait-sum .mm-pf-trait-img{flex:none;width:72px;height:72px;}
#mmg-app #mm-grimoire .mm-pf-trait-words{display:flex;flex-direction:column;gap:2px;min-width:0;}
#mmg-app #mm-grimoire .mm-pf-trait .mm-pf-trait-title{font:400 var(--mm-text-card)/1.2 var(--mm-font-heading);color:#000;}
#mmg-app #mm-grimoire .mm-pf-trait-lead{margin-top:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:400 var(--mm-text-small)/1.5 var(--mm-font-body);color:var(--mm-muted);}
#mmg-app #mm-grimoire details.mm-pf-trait[open] .mm-pf-trait-lead{display:none;}
#mmg-app #mm-grimoire .mm-pf-trait-toggle{top:50%;right:12px;margin-top:-22px;}
#mmg-app #mm-grimoire .mm-pf-trait-body{padding:0 var(--mm-pf-pad) var(--mm-pf-pad) calc(var(--mm-pf-pad) + 90px);text-align:left;}
#mmg-app #mm-grimoire .mm-pf-trait-body .mm-pf-trait-text{max-width:66ch;margin:0;text-align:left;}
@media(max-width:600px){
  #mmg-app #mm-grimoire .mm-pf-trait-sum{gap:14px;padding:14px 56px 14px 16px;}
  #mmg-app #mm-grimoire .mm-pf-trait-sum .mm-pf-trait-img{width:60px;height:60px;}
  #mmg-app #mm-grimoire .mm-pf-trait .mm-pf-trait-title{font-size:24px;}
  #mmg-app #mm-grimoire .mm-pf-trait-lead{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;}
  #mmg-app #mm-grimoire .mm-pf-trait-body{padding:0 16px 18px;}
  #mmg-app #mm-grimoire .mm-pf-trait-toggle{right:6px;}
}
@media(max-width:600px){
  #mmg-app #mm-grimoire .mm-profile-page .mm-pf-sigs{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 14px;padding:0 4px;}
  #mmg-app #mm-grimoire .mm-profile-page .mm-pf-sigs>.mm-pf-sticker:nth-child(3):last-child{grid-column:1/-1;justify-self:center;width:calc(50% - 7px);}
  #mmg-app #mm-grimoire .mm-profile-page .mm-pf-sigs>.mm-pf-sticker:only-child{grid-column:1/-1;justify-self:center;width:calc(50% - 7px);}
  #mmg-app #mm-grimoire .mm-pf-sticker .mm-sticker-image,#mmg-app #mm-grimoire .mm-pf-sticker .mm-sticker-image :is(img,.mm-piece-noimage){width:96px;height:96px;}
  #mmg-app #mm-grimoire .mm-pf-sticker .mm-sticker-cat{letter-spacing:.08em;}
}
/* ===== Tour 1.10.53: one layout everywhere (bubble well above Luna), Luna breathes, simple Skip / Next ===== */
#mmg-app .mmg-tour-scene,#mmg-app .mmg-tour.mmg-tour-in .mmg-tour-scene{flex-direction:column-reverse!important;align-items:center!important;row-gap:28px;gap:28px;}
#mmg-app .mmg-tour-luna{width:min(calc(100% - 32px),440px)!important;transform:translateX(-50%)!important;}
#mmg-app .mmg-tour-bubble{max-width:100%!important;transform-origin:64% 112%!important;padding:18px 24px 22px!important;}
#mmg-app .mmg-tour-shape-side{display:none!important;}
#mmg-app .mmg-tour-shape-down{display:block!important;}
#mmg-app .mmg-tour-cat{flex:none;width:200px;height:200px;transform-origin:50% 100%;}
#mmg-app .mmg-tour.mmg-tour-in .mmg-tour-cat{animation:mmg-tour-cat-in .7s var(--tour-ease) .35s both,mmg-tour-breathe 4.6s ease-in-out 1.2s infinite!important;}
@keyframes mmg-tour-breathe{0%,100%{transform:scale(1);}50%{transform:scale(1.025);}}
@media(min-width:601px){#mmg-app .mmg-tour-title{font-size:28px;}}
/* Skip: underlined text on hover, like every text link. Next and the final check: the same cream square. */
#mmg-app .mmg-tour-foot .mmg-tour-skip,#mmg-app .mmg-tour-foot .mmg-tour-skip:is(:hover,:focus,:active){background:none!important;text-decoration:none;}
@media(hover:hover){#mmg-app .mmg-tour-foot .mmg-tour-skip:hover{background:none!important;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.2em;}}
#mmg-app .mmg-tour-foot .mmg-tour-arrowbtn,#mmg-app .mmg-tour-foot .mmg-tour-arrowbtn:is(:hover,:focus,:active){width:44px;height:44px;min-width:44px;margin:0 0 0 auto!important;padding:0;border-radius:12px!important;background-color:#f7efdd!important;color:#000!important;}
@media(hover:hover){#mmg-app .mmg-tour-foot .mmg-tour-arrowbtn:hover{background-color:#fffaf0!important;}}
#mmg-app .mmg-tour-foot .mmg-tour-arrowbtn:active{background-color:#e9dcc4!important;}
#mmg-app .mmg-tour-foot .mmg-tour-arrowbtn svg{width:15px;height:15px;fill:#000!important;}
#mmg-app .mmg-tour-foot .mmg-tour-done svg{width:17px;height:17px;}
#mmg-app .mmg-tour-foot .mmg-tour-arrowbtn[hidden]{display:none!important;}
@media(prefers-reduced-motion:reduce){#mmg-app .mmg-tour .mmg-tour-cat{animation:none!important;}}
#mmg-app .mmg-tour-scene,#mmg-app .mmg-tour.mmg-tour-in .mmg-tour-scene{row-gap:42px!important;gap:42px!important;}
@media(max-height:620px){#mmg-app .mmg-tour-scene,#mmg-app .mmg-tour.mmg-tour-in .mmg-tour-scene{row-gap:26px!important;gap:26px!important;}}
/* Pressed / tapped save, share and reminder icons: the same rounded square everywhere, in the right tone for the background. */
#mmg-app#mmg-app #mm-grimoire .mm-tip-icon.mm-tapped{background:var(--mm-tint-hover,rgba(114,82,54,.13))!important;}
#mmg-app#mmg-app #mm-grimoire .mm-tip-icon.mm-tip-icon-light.mm-tapped,#mmg-app#mmg-app #mm-grimoire .mm-tip-icon.mm-tip-icon-light:active{background:rgba(247,239,221,.18)!important;}
/* Fully dark moon popups: the popup itself is dark too, so no light shows through at the rounded corners. */
#mmg-app #mm-grimoire .mm-zoom.mm-zoom-m{background:#0b1016!important;overflow:hidden;clip-path:inset(0 round 12px);}
@media(max-width:600px){#mmg-app#mmg-app #mm-grimoire .mm-profile-page .mm-pf-sigs{grid-template-columns:repeat(2,minmax(0,1fr));}#mmg-app#mmg-app #mm-grimoire .mm-profile-page .mm-pf-sigs:has(> :only-child){grid-template-columns:1fr;}}
/* ===== 1.10.54 profile polish ===== */
/* Themes: numbers in the ritual popup's hand-drawn circles, with room below them. */
#mmg-app #mm-grimoire .mm-pf-theme-num{display:grid;place-items:center;width:40px;height:40px;margin:0 0 12px;padding:0 4px 1px 0;box-sizing:border-box;background:rgba(114,82,54,.13);border-radius:52% 48% 55% 45% / 46% 55% 45% 54%;transform:rotate(4deg);font:500 26px/1 var(--mm-font-hand);color:var(--mm-primary);}
#mmg-app #mm-grimoire .mm-pf-theme:nth-child(2) .mm-pf-theme-num{border-radius:46% 54% 44% 56% / 55% 45% 56% 44%;transform:rotate(-6deg);}
#mmg-app #mm-grimoire .mm-pf-theme:nth-child(3) .mm-pf-theme-num{border-radius:55% 45% 50% 50% / 50% 56% 44% 50%;transform:rotate(8deg);}
#mmg-app #mm-grimoire .mm-pf-theme-from{max-width:30ch;margin-top:4px;color:#000;font-size:16px;line-height:1.55;}
/* Traits: the picture, accent title and name never move; the two-line preview (ending in …) grows into the full text. */
#mmg-app #mm-grimoire .mm-pf-trait-sum{align-items:flex-start!important;}
#mmg-app #mm-grimoire .mm-pf-trait-toggle{top:12px!important;margin-top:0!important;}
#mmg-app #mm-grimoire .mm-pf-trait-lead,#mmg-app #mm-grimoire details.mm-pf-trait[open] .mm-pf-trait-lead{display:-webkit-box!important;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;white-space:normal!important;text-overflow:ellipsis;margin-top:4px;font:400 16px/1.6 var(--mm-font-body)!important;color:#000!important;}
#mmg-app #mm-grimoire .mm-pf-trait-lead.mm-pf-lead-full,#mmg-app #mm-grimoire details.mm-pf-trait[open] .mm-pf-trait-lead.mm-pf-lead-full{display:block!important;-webkit-line-clamp:unset;}
#mmg-app #mm-grimoire details.mm-pf-trait[open] .mm-pf-trait-body{animation:none!important;padding:0 var(--mm-pf-pad) var(--mm-pf-pad) calc(var(--mm-pf-pad) + 90px);}
#mmg-app #mm-grimoire .mm-pf-trait-more{margin-top:0!important;}
@media(max-width:600px){#mmg-app #mm-grimoire details.mm-pf-trait[open] .mm-pf-trait-body{padding:0 16px 18px 90px;}}
/* Power color, crystal, herb: straight, with the posts' hover (soft fill and the picture gently grows). */
#mmg-app #mm-grimoire .mm-pf-sticker,#mmg-app #mm-grimoire .mm-pf-sticker:hover{transform:none!important;position:relative;isolation:isolate;}
#mmg-app #mm-grimoire .mm-pf-sticker::after{content:""!important;position:absolute;inset:0;z-index:-1;border-radius:inherit;background:linear-gradient(180deg,#eee0c4,#e1ceab);opacity:0;transition:opacity .25s ease;pointer-events:none;}
#mmg-app #mm-grimoire .mm-pf-sticker .mm-sticker-image img{transition:transform .35s cubic-bezier(.2,.8,.3,1);}
@media(hover:hover){
  #mmg-app #mm-grimoire .mm-pf-sticker:hover{border-color:var(--mm-shade-c7b294aa,#c7b294)!important;}
  #mmg-app #mm-grimoire .mm-pf-sticker:hover::after{opacity:1;}
  #mmg-app #mm-grimoire .mm-pf-sticker:hover .mm-sticker-image img{transform:scale(1.07);}
  #mmg-app #mm-grimoire .mm-pf-sticker:hover .mm-sticker-name{text-decoration:none!important;}
}
#mmg-app #mm-grimoire .mm-pf-sticker:focus-visible::after{opacity:1;}
/* Tour controls (1.10.54): Skip | 2 of 5 | Next — the app's own brown button, labelled, with a fine cream edge so it
   reads on the dimmed page. The last step says Start Exploring. */
#mmg-app .mmg-tour-arrow{display:none!important;}
#mmg-app .mmg-tour-foot{display:grid!important;grid-template-columns:1fr auto 1fr;align-items:center;}
#mmg-app .mmg-tour-foot .mmg-tour-skip{justify-self:start;}
#mmg-app .mmg-tour-count{justify-self:center;font:400 15px/1.4 var(--mm-font-body);letter-spacing:.04em;color:rgba(247,239,221,.85);}
#mmg-app .mmg-tour-foot .mmg-tour-btn,#mmg-app .mmg-tour-foot .mmg-tour-btn:is(:hover,:focus,:active){justify-self:end;grid-column:3;grid-row:1;appearance:none;display:inline-flex;align-items:center;justify-content:center;min-width:112px;min-height:44px;margin:0;padding:10px 22px;border:1px solid rgba(247,239,221,.4);border-radius:8px;background-color:#715239;background-image:var(--mmb-sheen2);color:#fff8eb;font:500 16px/1.25 var(--mm-font-body);letter-spacing:.01em;white-space:nowrap;cursor:pointer;box-shadow:none;transition:background-color .2s ease;}
@media(hover:hover){#mmg-app .mmg-tour-foot .mmg-tour-btn:hover{background-color:#5f4431;}}
#mmg-app .mmg-tour-foot .mmg-tour-btn:active{background-color:#523a2a;}
#mmg-app .mmg-tour-foot .mmg-tour-btn[hidden]{display:none!important;}
#mmg-app .mmg-tour-foot .mmg-tour-btn:focus-visible{outline:2px solid #f7efdd;outline-offset:2px;}
#mmg-app .mmg-tour-count{grid-column:2;grid-row:1;}#mmg-app .mmg-tour-foot .mmg-tour-skip{grid-column:1;grid-row:1;}
@media(max-width:600px){#mmg-app #mm-grimoire .mm-pf-sticker .mm-sticker-cat{min-height:2.6em;display:flex;align-items:center;justify-content:center;}}
/* Tour Next / Start Exploring: exactly the app's brown button (as Save Changes), nothing new. */
#mmg-app .mmg-tour-foot .mmg-tour-btn,#mmg-app .mmg-tour-foot .mmg-tour-btn:is(:hover,:focus,:active){min-width:0;min-height:48px;padding:12px 24px;border:0!important;}
/* Phones: power color, crystal and herb each on their own row, picture beside the words. */
@media(max-width:600px){
  #mmg-app#mmg-app #mm-grimoire .mm-profile-page .mm-pf-sigs{grid-template-columns:1fr!important;gap:12px;padding:0;}
  #mmg-app#mmg-app #mm-grimoire .mm-profile-page .mm-pf-sigs>.mm-pf-sticker{grid-column:auto;justify-self:stretch;width:auto;}
  #mmg-app #mm-grimoire .mm-pf-sticker{display:grid!important;grid-template-columns:84px minmax(0,1fr);grid-template-areas:"i c" "i n" "i e";column-gap:16px;align-items:center;align-content:center;padding:16px!important;text-align:left!important;}
  #mmg-app #mm-grimoire .mm-pf-sticker .mm-sticker-image{grid-area:i;}
  #mmg-app #mm-grimoire .mm-pf-sticker .mm-sticker-image,#mmg-app #mm-grimoire .mm-pf-sticker .mm-sticker-image :is(img,.mm-piece-noimage){width:84px!important;height:84px!important;}
  #mmg-app #mm-grimoire .mm-pf-sticker .mm-sticker-cat{grid-area:c;min-height:0!important;display:block!important;margin:0!important;text-align:left;}
  #mmg-app #mm-grimoire .mm-pf-sticker .mm-sticker-name{grid-area:n;margin-top:2px!important;text-align:left;}
  #mmg-app #mm-grimoire .mm-pf-sticker .mm-sticker-excerpt{grid-area:e;margin-top:4px;text-align:left;-webkit-line-clamp:2;}
}
#mmg-app #mm-grimoire .mm-profile-page .mm-pf-end{margin-top:24px!important;}@media(min-width:601px){#mmg-app #mm-grimoire .mm-profile-page .mm-pf-end{margin-top:40px!important;}}
#mmg-app #mm-grimoire .mm-profile-page .mm-pf-end{margin-top:40px!important;}@media(min-width:601px){#mmg-app #mm-grimoire .mm-profile-page .mm-pf-end{margin-top:56px!important;}}
#mmg-app #mm-grimoire details.mm-pf-trait:not([open]) .mm-pf-trait-sum{align-items:center!important;}
#mmg-app #mm-grimoire details.mm-pf-trait:not([open]) .mm-pf-trait-toggle{top:50%!important;margin-top:-22px!important;}
#mmg-app #mm-grimoire .mm-pf-sticker::after{width:auto!important;height:auto!important;inset:0!important;right:0!important;bottom:0!important;border-top-left-radius:inherit!important;}
@media(hover:hover){#mmg-app #mm-grimoire .mm-pf-sticker:hover .mm-sticker-image img{transform:none!important;}}
#mmg-app #mm-grimoire .mm-profile-page .mm-pf-themes-card .mm-pf-kicker{margin-bottom:28px!important;}
/* One space under every accent title on the profile's own sections (themes, traits, color/crystal/herb, settings): 20px.
   Your Birth Energy keeps Today's 12px so it matches Today's Energy exactly. */
#mmg-app #mm-grimoire .mm-profile-page .mm-pf-themes-card .mm-pf-kicker,#mmg-app #mm-grimoire .mm-profile-page .mm-pf-settings .mm-pf-kicker{margin-bottom:20px!important;}
#mmg-app #mm-grimoire .mm-profile-page .mm-pf-trait-kind{margin-bottom:20px!important;}
#mmg-app #mm-grimoire .mm-profile-page .mm-pf-sticker .mm-sticker-cat{margin-bottom:20px!important;}
/* Color / crystal / herb: same width as every other container, equal space top and bottom, hover = name underline only. */
#mmg-app#mmg-app #mm-grimoire .mm-profile-page .mm-pf-sigs{padding:0!important;margin-left:0;margin-right:0;}
#mmg-app#mmg-app #mm-grimoire .mm-pf-sticker{padding:20px var(--mm-pf-pad)!important;}
#mmg-app#mmg-app #mm-grimoire .mm-pf-sticker .mm-sticker-excerpt{margin-bottom:0;}
#mmg-app#mmg-app #mm-grimoire .mm-pf-sticker::after{display:none!important;}
@media(hover:hover){
  #mmg-app#mmg-app #mm-grimoire .mm-pf-sticker:hover{border-color:var(--mm-border)!important;}
  #mmg-app#mmg-app #mm-grimoire .mm-pf-sticker:hover .mm-sticker-name{text-decoration:underline!important;text-decoration-thickness:1px!important;text-underline-offset:.2em!important;}
}
@media(max-width:600px){#mmg-app#mmg-app #mm-grimoire .mm-pf-sticker{padding:16px!important;}}
#mmg-app#mmg-app #mm-grimoire .mm-pf-sticker{justify-content:center!important;}
#mmg-app#mmg-app #mm-grimoire .mm-profile-page .mm-pf-trait-kind{margin-bottom:6px!important;}
#mmg-app#mmg-app #mm-grimoire details.mm-pf-trait[open] .mm-pf-trait-body{padding-bottom:16px!important;}#mmg-app#mmg-app #mm-grimoire .mm-pf-trait-more{margin-top:4px!important;}
#mmg-app#mmg-app #mm-grimoire details.mm-pf-trait[open] .mm-pf-trait-body{padding-bottom:10px!important;}
#mmg-app#mmg-app #mm-grimoire .mm-pf-sticker,#mmg-app#mmg-app #mm-grimoire .mm-pf-sticker:hover{border:var(--mm-border-width,1px) solid var(--mm-outline-soft)!important;border-radius:12px!important;background:var(--mm-card)!important;outline:0!important;}
#mmg-app#mmg-app #mm-grimoire details.mm-pf-trait[open] .mm-pf-trait-body{padding-bottom:18px!important;}
/* Theme sentences: a fixed width in pixels (not "ch", which changes the moment the font finishes loading and made
   lines jump between one and two), and more room around the dividers on phones. */
#mmg-app#mmg-app #mm-grimoire .mm-pf-theme-from{max-width:300px;width:100%;}
@media(max-width:600px){#mmg-app#mmg-app #mm-grimoire .mm-pf-theme{padding:22px 4px;}#mmg-app#mmg-app #mm-grimoire .mm-pf-theme:first-child{padding-top:4px;}#mmg-app#mmg-app #mm-grimoire .mm-pf-theme:last-child{padding-bottom:4px;}}
/* Phones: closed boxes just say "Read more…"; opened, the whole text sits under the picture across the full width. */
#mmg-app #mm-grimoire .mm-pf-trait-hint,#mmg-app #mm-grimoire .mm-pf-trait-full{display:none;}
@media(max-width:600px){
  #mmg-app#mmg-app #mm-grimoire .mm-pf-trait-lead{display:none!important;}
  #mmg-app #mm-grimoire .mm-pf-trait-hint{display:block;margin-top:4px;font:400 16px/1.5 var(--mm-font-body);color:var(--mm-primary);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.2em;}
  #mmg-app #mm-grimoire details.mm-pf-trait[open] .mm-pf-trait-hint{visibility:hidden;}
  #mmg-app #mm-grimoire .mm-pf-trait-full{display:block;margin:0 0 12px;font:400 16px/1.65 var(--mm-font-body);color:#000;text-align:left;}
  #mmg-app#mmg-app #mm-grimoire details.mm-pf-trait[open] .mm-pf-trait-body{padding:4px 16px 18px!important;}
  #mmg-app#mmg-app #mm-grimoire details.mm-pf-trait .mm-pf-trait-sum{align-items:center!important;}
  #mmg-app#mmg-app #mm-grimoire details.mm-pf-trait .mm-pf-trait-toggle{top:50%!important;margin-top:-22px!important;}
}
#mmg-app#mmg-app #mm-grimoire .mm-profile-page .mm-pf-sigs{margin:0 0 16px!important;gap:16px!important;}
/* Traits: separate boxes on wider screens; on phones one box that grows, the five entries split by divider lines
   (like the Settings list). */
#mmg-app #mm-grimoire .mm-pf-traits{display:contents;}
@media(max-width:600px){
  #mmg-app#mmg-app #mm-grimoire .mm-profile-page .mm-pf-traits{display:block;margin:0 0 16px;background:var(--mm-card);border:var(--mm-border-width,1px) solid var(--mm-outline-soft);border-radius:12px;overflow:hidden;}
  #mmg-app#mmg-app #mm-grimoire .mm-profile-page .mm-pf-traits>details.mm-pf-trait{margin:0!important;border:0!important;border-radius:0!important;background:transparent!important;}
  #mmg-app#mmg-app #mm-grimoire .mm-profile-page .mm-pf-traits>details.mm-pf-trait+details.mm-pf-trait{border-top:1px solid var(--mm-divider-color,#bdab92)!important;}
  #mmg-app#mmg-app #mm-grimoire .mm-profile-page .mm-pf-traits .mm-pf-trait-sum{border-radius:0;}
}
@media(max-width:600px){#mmg-app#mmg-app #mm-grimoire details.mm-pf-trait[open] .mm-pf-trait-body{margin-top:-26px;}}
@media(max-width:600px){#mmg-app#mmg-app #mm-grimoire details.mm-pf-trait[open] .mm-pf-trait-body{margin-top:-15px;}}
#mmg-app#mmg-app #mm-grimoire.mm-page-profile:not(.mm-detail-view) .mm-pf-greeting{margin-top:16px!important;}
/* Traits on every screen: one container, entries split by divider lines. */
#mmg-app#mmg-app #mm-grimoire .mm-profile-page .mm-pf-traits{display:block;margin:0 0 16px;background:var(--mm-card);border:var(--mm-border-width,1px) solid var(--mm-outline-soft);border-radius:12px;overflow:hidden;}
#mmg-app#mmg-app #mm-grimoire .mm-profile-page .mm-pf-traits>details.mm-pf-trait{margin:0!important;border:0!important;border-radius:0!important;background:transparent!important;}
#mmg-app#mmg-app #mm-grimoire .mm-profile-page .mm-pf-traits>details.mm-pf-trait+details.mm-pf-trait{border-top:1px solid var(--mm-divider-color,#bdab92)!important;}
#mmg-app#mmg-app #mm-grimoire .mm-profile-page .mm-pf-traits .mm-pf-trait-sum{border-radius:0;}
/* Profile greeting spacing. */
#mmg-app#mmg-app #mm-grimoire.mm-page-profile:not(.mm-detail-view) .mm-pf-greeting{margin-top:32px!important;}
/* Trait rows: the picture and arrow have fixed places (centred on the closed row), so opening, closing or a redraw
   never moves them. Hovering a row only tints the arrow; the name isn't underlined. */
#mmg-app#mmg-app #mm-grimoire details.mm-pf-trait .mm-pf-trait-sum,#mmg-app#mmg-app #mm-grimoire details.mm-pf-trait:not([open]) .mm-pf-trait-sum{align-items:flex-start!important;}
#mmg-app#mmg-app #mm-grimoire details.mm-pf-trait .mm-pf-trait-sum .mm-pf-trait-img{margin-top:21px;}
#mmg-app#mmg-app #mm-grimoire details.mm-pf-trait .mm-pf-trait-toggle,#mmg-app#mmg-app #mm-grimoire details.mm-pf-trait:not([open]) .mm-pf-trait-toggle{top:51px!important;margin-top:0!important;}
@media(max-width:600px){
  #mmg-app#mmg-app #mm-grimoire details.mm-pf-trait .mm-pf-trait-sum .mm-pf-trait-img{margin-top:12px;}
  #mmg-app#mmg-app #mm-grimoire details.mm-pf-trait .mm-pf-trait-toggle,#mmg-app#mmg-app #mm-grimoire details.mm-pf-trait:not([open]) .mm-pf-trait-toggle{top:34px!important;}
}
@media(hover:hover){#mmg-app#mmg-app #mm-grimoire .mm-pf-trait-sum:hover .mm-pf-trait-title{text-decoration:none!important;}}
/* The whole row is the button, so the whole row reacts on hover (the same soft tint as the Settings rows);
   the arrow itself has no separate box. */
@media(hover:hover){
  #mmg-app#mmg-app #mm-grimoire .mm-pf-trait-sum:hover .mm-pf-trait-toggle{background:none!important;}
  #mmg-app#mmg-app #mm-grimoire .mm-pf-trait-sum{transition:background-color .15s ease;}
  #mmg-app#mmg-app #mm-grimoire .mm-pf-trait-sum:hover{background:var(--mm-tint,rgba(114,82,54,.07));}
}
#mmg-app#mmg-app #mm-grimoire .mm-pf-trait-sum:focus-visible{background:var(--mm-tint,rgba(114,82,54,.07));}
#mmg-app#mmg-app#mmg-app :is(.mmg-help-trigger,.mmg-app-header .mmg-profile),#mmg-app#mmg-app#mmg-app :is(.mmg-help-trigger,.mmg-app-header .mmg-profile):is(:hover,:focus,:active,:focus-visible){border-radius:50%!important;}
/* Hovering a trait row tints its whole box, including the "Read more about…" line of an open one. */
@media(hover:hover){
  #mmg-app#mmg-app #mm-grimoire .mm-pf-trait-sum:hover{background:none!important;}
  #mmg-app#mmg-app #mm-grimoire details.mm-pf-trait:has(> .mm-pf-trait-sum:hover){background:var(--mm-tint,rgba(114,82,54,.07))!important;}
}
#mmg-app#mmg-app #mm-grimoire details.mm-pf-trait{transition:background-color .15s ease;}
/* Color / crystal / herb: the same space above and below the picture. */
@media(min-width:601px){
  #mmg-app#mmg-app #mm-grimoire .mm-profile-page .mm-pf-sticker{gap:0!important;}
  #mmg-app#mmg-app #mm-grimoire .mm-profile-page .mm-pf-sticker .mm-sticker-cat{margin:0 0 20px!important;}
  #mmg-app#mmg-app #mm-grimoire .mm-profile-page .mm-pf-sticker .mm-sticker-name{margin-top:20px!important;}
}
@media(min-width:601px){#mmg-app#mmg-app #mm-grimoire .mm-profile-page .mm-pf-sticker .mm-sticker-name{margin-top:22px!important;}}
/* ===== Tour 1.10.78 ===== */
/* Nothing on the page animates while the tour opens: the dimming is the only movement. */
html.mmg-tour-open #mm-grimoire *,html.mmg-tour-open #mm-grimoire *::before,html.mmg-tour-open #mm-grimoire *::after{animation-delay:0s!important;animation-duration:.001s!important;transition-duration:0s!important;transition-delay:0s!important;}
/* The highlight: no hard light outline, just the soft glow. */
#mmg-app .mmg-tour-spot{box-shadow:0 0 0 8px rgba(247,239,221,.16),0 0 0 200vmax rgba(31,23,17,.62)!important;}
#mmg-app .mmg-tour-spot.mmg-tour-spot-none{box-shadow:0 0 0 0 rgba(247,239,221,0),0 0 0 200vmax rgba(31,23,17,.62)!important;}
#mmg-app .mmg-tour-spot:not(.mmg-tour-spot-none){animation:mmg-tour-glow2 2.8s ease-in-out 1s infinite!important;}
@keyframes mmg-tour-glow2{0%,100%{box-shadow:0 0 0 8px rgba(247,239,221,.16),0 0 0 200vmax rgba(31,23,17,.62);}50%{box-shadow:0 0 0 13px rgba(247,239,221,.08),0 0 0 200vmax rgba(31,23,17,.62);}}
/* Luna: no breathing, just her soft arrival. */
#mmg-app .mmg-tour.mmg-tour-in .mmg-tour-cat{animation:mmg-tour-cat-in .7s var(--tour-ease) .35s both!important;}
/* A soft extra shade behind the controls so they always read, fading in from nothing. */
#mmg-app .mmg-tour-shade{position:fixed;left:0;right:0;pointer-events:none;background:linear-gradient(180deg,rgba(18,12,8,0) 0%,rgba(18,12,8,.42) 70%,rgba(18,12,8,.5) 100%);opacity:0;transition:opacity .6s ease;}
#mmg-app .mmg-tour.mmg-tour-in .mmg-tour-shade{opacity:1;}
/* Controls: light text and light icons only. */
#mmg-app .mmg-tour-foot .mmg-tour-icon,#mmg-app .mmg-tour-foot .mmg-tour-icon:is(:hover,:focus,:active){grid-column:3;grid-row:1;justify-self:end;appearance:none;display:grid;place-items:center;width:44px;height:44px;margin:0;padding:0;border:0;border-radius:50%;background:transparent;box-shadow:none!important;cursor:pointer;transition:background-color .2s ease;}
#mmg-app .mmg-tour-foot .mmg-tour-icon svg{width:18px;height:18px;fill:#f7efdd!important;}
#mmg-app .mmg-tour-foot .mmg-tour-icon[data-tour-done] svg{width:20px;height:20px;}
@media(hover:hover){#mmg-app .mmg-tour-foot .mmg-tour-icon:hover{background:rgba(247,239,221,.14);}}
#mmg-app .mmg-tour-foot .mmg-tour-icon:active{background:rgba(247,239,221,.22);}
#mmg-app .mmg-tour-foot .mmg-tour-icon[hidden]{display:none!important;}
#mmg-app .mmg-tour-foot .mmg-tour-icon:focus-visible{outline:2px solid #f7efdd;outline-offset:2px;}
#mmg-app .mmg-tour-count{color:#f7efdd!important;}
/* Text links in popups (Remove My Birthday, Set a New Password, Cancel): never a container, also not when tapped. */
#mmg-app#mmg-app #mmg-support .mmg-text-link,#mmg-app#mmg-app #mmg-support .mmg-text-link:is(:hover,:focus,:active,:focus-visible,:disabled){border-radius:0!important;background:none!important;box-shadow:none!important;outline:0!important;-webkit-tap-highlight-color:transparent;}
#mmg-app#mmg-app #mmg-support .mmg-text-link:focus-visible{text-decoration-thickness:2px;}
/* Your life's key themes: more room on both sides of each sentence. */
#mmg-app#mmg-app #mm-grimoire .mm-pf-theme,#mmg-app#mmg-app #mm-grimoire .mm-pf-theme:is(:hover,:focus,:active){padding-left:24px;padding-right:24px;}
@media(max-width:600px){#mmg-app#mmg-app #mm-grimoire .mm-pf-theme,#mmg-app#mmg-app #mm-grimoire .mm-pf-theme:is(:hover,:focus,:active){padding-left:16px;padding-right:16px;}}
/* Every small accent title on the profile has the same space under it as Today's Energy: 12px. */
#mmg-app#mmg-app #mm-grimoire .mm-profile-page :is(.mm-pf-themes-card,.mm-pf-settings) .mm-pf-kicker{margin-bottom:12px!important;}
@media(min-width:601px){
  #mmg-app#mmg-app #mm-grimoire .mm-profile-page .mm-pf-sticker .mm-sticker-cat{margin:0 0 12px!important;}
  #mmg-app#mmg-app #mm-grimoire .mm-profile-page .mm-pf-sticker .mm-sticker-name{margin-top:14px!important;}
}
/* Color / crystal / herb with the posts' save button in the top right corner. */
#mmg-app #mm-grimoire .mm-pf-sig-wrap{position:relative;display:flex;min-width:0;}
#mmg-app #mm-grimoire .mm-pf-sig-wrap>.mm-pf-sticker{flex:1 1 auto;width:100%;}
#mmg-app #mm-grimoire .mm-pf-sig-wrap>.mm-save{z-index:2;}
#mmg-app#mmg-app #mm-grimoire .mm-profile-page .mm-pf-sigs:has(> :nth-child(2):last-child){grid-template-columns:repeat(2,minmax(0,1fr));}
#mmg-app#mmg-app #mm-grimoire .mm-profile-page .mm-pf-sigs:has(> :only-child){grid-template-columns:1fr;}
@media(max-width:600px){#mmg-app#mmg-app #mm-grimoire .mm-profile-page .mm-pf-sigs,#mmg-app#mmg-app #mm-grimoire .mm-profile-page .mm-pf-sigs:has(> :nth-child(2):last-child){grid-template-columns:1fr!important;}#mmg-app #mm-grimoire .mm-pf-sticker{padding-right:52px!important;}}

/* 1.10.78 — "A Gift for You": the normal popup (title, intro, note, full-width button). Above the title, the gift at the
   usual icon size; confetti and little sparkles burst from it and drift down, three sparkles keep twinkling. */
#mmg-app #mmg-support.mmg-support-gift .mmg-gift-hero{position:relative;height:28px;margin:8px 0 12px;pointer-events:none;}
#mmg-app #mmg-support.mmg-support-gift .mmg-gift-icon{position:relative;display:block;width:28px;height:28px;line-height:0;animation:mmg-gift-pop .7s cubic-bezier(.3,1.5,.5,1) both;}
#mmg-app #mmg-support.mmg-support-gift .mmg-gift-icon>svg{width:100%;height:100%;fill:#000;}
#mmg-app #mmg-support.mmg-support-gift .mmg-gift-burst{position:absolute;left:50%;top:50%;width:0;height:0;}
#mmg-app #mmg-support.mmg-support-gift .mmg-gift-bit,#mmg-app #mmg-support.mmg-support-gift .mmg-gift-spark{position:absolute;left:0;top:0;display:block;opacity:0;animation:mmg-gift-fly 1.9s cubic-bezier(.2,.75,.35,1) both;animation-delay:calc(.28s + var(--d));}
#mmg-app #mmg-support.mmg-support-gift .mmg-gift-bit{width:6px;height:3px;margin:-1px 0 0 -3px;border-radius:1px;background:var(--c);}
#mmg-app #mmg-support.mmg-support-gift .mmg-gift-spark{width:9px;height:9px;margin:-4px 0 0 -4px;line-height:0;}
#mmg-app #mmg-support.mmg-support-gift :is(.mmg-gift-spark,.mmg-gift-twinkle) svg{width:100%;height:100%;fill:var(--mm-primary);}
#mmg-app #mmg-support.mmg-support-gift .mmg-gift-twinkle{position:absolute;line-height:0;opacity:0;animation:mm-sparkle-in .6s ease-out both,mm-sparkle-float 4.2s ease-in-out infinite;}
#mmg-app #mmg-support.mmg-support-gift .mmg-gift-twinkle-1{width:10px;height:10px;top:-8px;right:-14px;animation-delay:.9s,1.5s;}
#mmg-app #mmg-support.mmg-support-gift .mmg-gift-twinkle-2{width:7px;height:7px;bottom:-2px;right:-12px;animation-delay:1.1s,2.2s;animation-duration:.6s,3.6s;}
#mmg-app #mmg-support.mmg-support-gift .mmg-gift-twinkle-3{width:8px;height:8px;top:2px;left:-12px;animation-delay:1.3s,2.8s;animation-duration:.6s,4.8s;}
#mmg-app #mmg-support.mmg-support-gift .mmg-gift-note.mmg-gift-note.mmg-gift-note{margin:0 0 24px!important;}
#mmg-app #mmg-support.mmg-support-gift .mmg-gift-claim{display:flex;align-items:center;justify-content:center;width:100%;}
@keyframes mmg-gift-pop{0%{opacity:0;transform:translateY(10px) scale(.4) rotate(-10deg);}60%{opacity:1;transform:translateY(-3px) scale(1.1) rotate(4deg);}80%{transform:scale(.97) rotate(-2deg);}100%{opacity:1;transform:none;}}
@keyframes mmg-gift-fly{0%{opacity:0;transform:translate(0,0) scale(.3) rotate(0);}12%{opacity:1;}55%{opacity:1;transform:translate(var(--x),var(--y)) scale(1) rotate(var(--r));}100%{opacity:0;transform:translate(var(--x),calc(var(--y) + var(--fall))) scale(.85) rotate(calc(var(--r) + 140deg));}}
@media (prefers-reduced-motion:reduce){#mmg-app #mmg-support.mmg-support-gift :is(.mmg-gift-icon,.mmg-gift-bit,.mmg-gift-spark,.mmg-gift-twinkle){animation:none!important;}#mmg-app #mmg-support.mmg-support-gift :is(.mmg-gift-bit,.mmg-gift-spark){display:none;}#mmg-app #mmg-support.mmg-support-gift .mmg-gift-twinkle{opacity:.85;}}
/* 1.10.78 — the three dashed cards (birth energy, start collection, random entry): one fill, one hover, one icon height. */
#mmg-app#mmg-app #mm-grimoire .mm-end-random .mm-card,#mmg-app#mmg-app #mm-grimoire .mm-end-random .mm-card:hover{background-color:#e6d6bb!important;}
@media(hover:hover){#mmg-app#mmg-app #mm-grimoire .mm-end-random .mm-card:hover{background-color:#ddcbad!important;}}
#mmg-app#mmg-app #mm-grimoire .mm-end-random .mm-thumb-question svg{width:auto!important;height:28px!important;}

/* 1.10.78b — Skip / 1 of 5 / Next: a big soft shadow under each (drawn in tourShade), cut out where the highlight is. */
#mmg-app .mmg-tour-shade{left:0;right:0;width:100%;background-image:none;opacity:0;transition:opacity .6s ease;}
#mmg-app .mmg-tour.mmg-tour-in .mmg-tour-shade{opacity:1;}
/* 1.10.78 — four "next" buttons (new moon, full moon, lunar eclipse, solar eclipse): one row on desktop, two rows on phones. */
#mmg-app #mm-grimoire .mm-daily-upcoming{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));justify-content:stretch;}
#mmg-app #mm-grimoire .mm-daily-upcoming>.mm-daily-next{width:auto;max-width:none;min-width:0;}
@media(min-width:900px){#mmg-app #mm-grimoire .mm-daily-upcoming{grid-template-columns:repeat(4,minmax(0,1fr));}
  /* four across: picture above the words, centred (as on phones), so dates stay on one line */
  #mmg-app #mm-grimoire .mm-daily-upcoming>.mm-daily-next{flex-direction:column;text-align:center;gap:8px;padding:16px 10px;}
  #mmg-app #mm-grimoire .mm-daily-upcoming .mm-daily-next-text{align-items:center;}}

/* 1.10.82 — the speech bubble container (.mmg-speech), used by the tour. One line around it, like the bubble on
   Today (1.6px, --mm-line-strong). Soft and round: every corner is almost a circle (its across and down radii are
   close), and the corners differ only a little from each other, so the shape feels drawn by hand but never pinched.
   The tail is a small rounded triangle in the same line and fill. */
#mmg-app .mmg-speech{position:relative;isolation:isolate;box-sizing:border-box;background:var(--mm-card,#f7efdd);border:1.6px solid var(--mm-line-strong,#a68a6d);border-radius:var(--speech-r,42px 38px 44px 40px / 40px 42px 38px 44px);rotate:var(--speech-tilt,0deg);transition:border-radius .32s ease;}
#mmg-app .mmg-speech::before{content:none!important;}
#mmg-app .mmg-speech::after{content:"";position:absolute;left:var(--speech-tail,58%);bottom:-10px;width:18px;height:18px;margin-left:-9px;box-sizing:border-box;background:var(--mm-card,#f7efdd);
  border-right:1.6px solid var(--mm-line-strong,#a68a6d);border-bottom:1.6px solid var(--mm-line-strong,#a68a6d);border-bottom-right-radius:6px;transform:rotate(45deg) skew(var(--speech-skew,4deg),var(--speech-skew,4deg));pointer-events:none;}
#mmg-app .mmg-tour-bubble.mmg-speech .mmg-tour-shape{display:none!important;}
#mmg-app .mmg-tour-bubble.mmg-speech{padding:20px 28px 22px!important;}
@media(max-width:600px){#mmg-app .mmg-tour-bubble.mmg-speech{padding:18px 22px 20px!important;}}
/* 1.10.80 — no shadow under Skip / Next; the whole dimmed background is a little darker instead.
   The highlighted area has no hard ring: a soft, warm glow around it gently breathes in and out. */
#mmg-app .mmg-tour .mmg-tour-shade{display:none!important;}
#mmg-app .mmg-tour-spot,#mmg-app .mmg-tour-spot.mmg-tour-spot-none{box-shadow:0 0 0 200vmax rgba(24,17,12,.74)!important;animation:none!important;}
#mmg-app .mmg-tour-spot::after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;opacity:0;
  box-shadow:0 0 8px 2px rgba(255,240,205,.55),0 0 26px 8px rgba(250,224,170,.3),0 0 60px 20px rgba(240,205,140,.14);transition:opacity .4s ease;}
#mmg-app .mmg-tour-spot:not(.mmg-tour-spot-none)::after{animation:mmg-tour-aura 3s ease-in-out .8s infinite both;}
@keyframes mmg-tour-aura{0%,100%{opacity:.5;}50%{opacity:1;}}
@media(prefers-reduced-motion:reduce){#mmg-app .mmg-tour-spot:not(.mmg-tour-spot-none)::after{animation:none;opacity:.7;}}

/* 1.10.81 — phones: a moon correspondence left alone on its row (3 or 5 in two columns) has no divider line beside it. */
@media(max-width:600px){#mmg-app #mm-grimoire .mm-daily-lunar:not(.mm-lunar-three-fit) .mm-daily-link:last-child:nth-child(odd){border-left:0!important;}}

/* 1.10.82 — "A Gift for You": everything centred; the gift (usual icon size) gives a little shake now and then while
   four sparkles twinkle around it; no confetti. Space under the button matches the space at the top. */
#mmg-app #mmg-support.mmg-support-gift{padding-bottom:28px!important;text-align:center;}
@media(max-width:600px){#mmg-app #mmg-support.mmg-support-gift{padding-bottom:max(24px,env(safe-area-inset-bottom))!important;}}
#mmg-app #mmg-support.mmg-support-gift .mmg-gift-hero{display:flex;justify-content:center;height:auto;margin:12px 0 16px;}
#mmg-app #mmg-support.mmg-support-gift .mmg-gift-icon{width:32px;height:32px;}
#mmg-app #mmg-support.mmg-support-gift .mmg-gift-shake{display:block;width:100%;height:100%;line-height:0;transform-origin:50% 90%;animation:mmg-gift-shake 2.6s ease-in-out .8s infinite;}
#mmg-app #mmg-support.mmg-support-gift .mmg-gift-shake svg{width:100%;height:100%;fill:#000;}
#mmg-app #mmg-support.mmg-support-gift .mmg-gift-burst{display:none;}
#mmg-app #mmg-support.mmg-support-gift .mmg-gift-twinkle-1{top:-10px;right:-16px;left:auto;}
#mmg-app #mmg-support.mmg-support-gift .mmg-gift-twinkle-2{bottom:0;right:-15px;}
#mmg-app #mmg-support.mmg-support-gift .mmg-gift-twinkle-3{top:-2px;left:-16px;}
#mmg-app #mmg-support.mmg-support-gift .mmg-gift-twinkle-4{width:7px;height:7px;bottom:-4px;left:-12px;animation-delay:1.5s,3.2s;animation-duration:.6s,4s;}
#mmg-app #mmg-support.mmg-support-gift h2{margin:0 0 16px!important;text-align:center;}
#mmg-app #mmg-support.mmg-support-gift .mmg-notify-intro{text-align:center;}
#mmg-app #mmg-support.mmg-support-gift .mmg-gift-note.mmg-gift-note.mmg-gift-note{justify-content:center;margin:0 0 24px!important;}
@keyframes mmg-gift-shake{0%,62%,100%{transform:rotate(0);}66%{transform:rotate(-10deg) translateY(-2px);}70%{transform:rotate(9deg) translateY(-2px);}74%{transform:rotate(-7deg) translateY(-1px);}78%{transform:rotate(5deg);}82%{transform:rotate(-3deg);}86%{transform:rotate(0);}}
@media (prefers-reduced-motion:reduce){#mmg-app #mmg-support.mmg-support-gift .mmg-gift-shake{animation:none;}}

/* 1.10.84 — the speech bubble is drawn in SVG at its real size (see mmgSpeechPath): Today's ink line (1.6px,
   --mm-line-strong) with its faint second pass, round corners and a sharp tail. No CSS border, corners or tail. */
#mmg-app .mmg-speech{border:0!important;border-radius:0!important;background:none!important;rotate:none!important;}
#mmg-app .mmg-speech::before,#mmg-app .mmg-speech::after{content:none!important;display:none!important;}
#mmg-app .mmg-speech>*:not(.mmg-speech-shape){position:relative;z-index:1;}
#mmg-app .mmg-speech-shape{position:absolute;left:0;top:0;z-index:0;overflow:visible;pointer-events:none;}
#mmg-app .mmg-speech-shape path{fill:var(--mm-card,#f7efdd);stroke:var(--mm-line-strong);stroke-width:1.6px;stroke-linejoin:round;stroke-linecap:round;}
#mmg-app .mmg-speech-shape path.mmg-speech-pass{fill:none;stroke-width:1px;opacity:.45;transform:translate(.6px,.5px) rotate(.25deg);transform-origin:50% 50%;}
/* 1.10.84 — "Want a little nudge?" (moon reminder) uses the same dashed container as the other dashed cards:
   the same fill, dashes and corners. Once set, it keeps its solid tinted look. */
#mmg-app #mm-grimoire .mm-moon-remind:not(.mm-moon-remind-set):not(.mm-moon-remind-soon){border:0!important;border-radius:12px;background-color:#e6d6bb!important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='100%25' height='100%25' rx='12' ry='12' fill='none' stroke='%238c755d' stroke-width='2.5' stroke-dasharray='7 6'/%3E%3C/svg%3E")!important;}
#mmg-app #mm-grimoire .mm-moon-remind:is(.mm-moon-remind-set,.mm-moon-remind-soon){border-radius:12px;}

/* 1.10.84 — Profile: a divider between your reading and Settings: two fading lines with the logo's moon phases between. */
#mmg-app #mm-grimoire .mm-pf-split{display:flex;align-items:center;justify-content:center;gap:16px;margin:40px auto 40px!important;max-width:560px;}
#mmg-app #mm-grimoire .mm-pf-split-line{flex:1 1 0;height:1px;background:linear-gradient(90deg,transparent,var(--mm-divider-color,#d8c7ab));}
#mmg-app #mm-grimoire .mm-pf-split-line:last-child{background:linear-gradient(90deg,var(--mm-divider-color,#d8c7ab),transparent);}
#mmg-app #mm-grimoire .mm-pf-split-moons{flex:none;width:74px;height:13px;fill:var(--mm-primary);}
@media(max-width:600px){#mmg-app #mm-grimoire .mm-pf-split{margin:32px auto!important;}}
/* 1.10.84 — every dashed container (birth energy, start collection, random entry, moon reminder, the Grimoire's
   drop spot while moving a piece) shares one look: the same dashes and corners, and a see-through warm fill so the
   page's gradient behind doesn't make some of them look lighter or darker than others. */
#mmg-app#mmg-app #mm-grimoire :is(.mm-end-random .mm-card,.mm-end-random .mm-card:hover,.mm-moon-remind:not(.mm-moon-remind-set):not(.mm-moon-remind-soon),.mm-piece-placeholder){
  border:0!important;border-radius:12px;background-color:rgba(160,110,50,.09)!important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='100%25' height='100%25' rx='12' ry='12' fill='none' stroke='%238c755d' stroke-width='2.5' stroke-dasharray='7 6'/%3E%3C/svg%3E")!important;}
@media(hover:hover){#mmg-app#mmg-app #mm-grimoire .mm-end-random .mm-card:hover{background-color:rgba(160,110,50,.16)!important;}}

/* 1.10.84 — while dragging in the Grimoire: the menu (and its moon) fades out; the remove area sits exactly where the
   menu was, in its size and shape, and fades in (no sliding, nothing peeking out). */
#mmg-app #mm-grimoire .mm-bottom-nav{transition:opacity .2s ease,transform .5s var(--mm-nav-ease,ease);}
#mmg-app #mm-grimoire.mm-nav-dropzone .mm-bottom-nav{opacity:0!important;pointer-events:none;}
#mmg-app #mm-grimoire .mm-board-trash.mm-trash-fit{position:fixed!important;right:auto!important;bottom:auto!important;transform:none!important;box-sizing:border-box;margin:0!important;padding:8px!important;
  border:var(--mm-border-width) solid var(--mm-outline-soft)!important;background:var(--mm-card)!important;opacity:0;visibility:visible;transition:opacity .2s ease,background-color .2s ease!important;}
#mmg-app #mm-grimoire .mm-board-dragging .mm-board-trash.mm-trash-fit{opacity:1;}
#mmg-app #mm-grimoire .mm-board-trash.mm-trash-fit .mm-bin{width:100%;height:100%;min-height:0;}
#mmg-app #mm-grimoire .mm-board-trash-over .mm-board-trash.mm-trash-fit{background:var(--mm-chip-bg)!important;}

/* 1.10.89 — footer legal links (every page, same place): plain text, underlined only on hover/focus. */
#mmg-app .mmg-legal-footer a{text-decoration:none;}
#mmg-app .mmg-legal-footer a:is(:hover,:focus-visible){text-decoration:underline;text-underline-offset:.2em;}
/* 1.10.89 — the birth-moon note ("The moon changed signs that day…") keeps clear of the container's edges. */
#mmg-app #mm-grimoire .mm-pf-sky .mm-pf-note-wrap{box-sizing:border-box;padding:0 24px;}
@media(max-width:600px){#mmg-app #mm-grimoire .mm-pf-sky .mm-pf-note-wrap{padding:0 20px;}}

/* 1.10.91 — the birth-moon note also keeps clear of the container's bottom edge. */
#mmg-app #mm-grimoire .mm-pf-sky .mm-pf-note-wrap{padding-bottom:24px;}
@media(max-width:600px){#mmg-app #mm-grimoire .mm-pf-sky .mm-pf-note-wrap{padding-bottom:20px;}}
/* 1.10.92 — Power color / crystal / herb on desktop: tighter, even spacing (card edge → label → picture → name → card edge). */
@media(min-width:601px){
  #mmg-app#mmg-app #mm-grimoire .mm-profile-page .mm-pf-sticker{padding-top:16px!important;padding-bottom:16px!important;}
  #mmg-app#mmg-app #mm-grimoire .mm-profile-page .mm-pf-sticker .mm-sticker-cat{margin:0 0 8px!important;}
  #mmg-app#mmg-app #mm-grimoire .mm-profile-page .mm-pf-sticker .mm-sticker-name{margin-top:8px!important;}
}
/* 1.10.93 — phones: "© Mistmagia" on its own line, the three legal links together on the line below. */
@media(max-width:600px){
  #mmg-app .mmg-legal-footer{column-gap:8px;row-gap:4px;padding-left:12px;padding-right:12px;}
  #mmg-app .mmg-legal-footer>span:first-child{flex-basis:100%;text-align:center;}
  #mmg-app .mmg-legal-footer>span:first-child+span{display:none;}
}
@media(max-width:360px){#mmg-app .mmg-legal-footer{column-gap:6px;padding-left:8px;padding-right:8px;font-size:13px;}}

/* 1.10.94 — life themes: every column starts at the top (a button stretched to the row's height centres its content
   in some browsers, e.g. Safari, which pushed a theme with more text higher than the others). The dividers are drawn
   by the list itself, so they still run the full height. With two themes, they sit side by side in the middle. */
@media(min-width:601px){
  #mmg-app#mmg-app #mm-grimoire .mm-pf-theme-list{align-items:start;background-repeat:no-repeat;background-size:1px 100%;
    background-image:linear-gradient(var(--mm-divider-color,#bdab92),var(--mm-divider-color,#bdab92)),linear-gradient(var(--mm-divider-color,#bdab92),var(--mm-divider-color,#bdab92));
    background-position:33.333% 0,66.666% 0;}
  #mmg-app#mmg-app #mm-grimoire .mm-pf-theme-list[data-count="2"]{grid-template-columns:repeat(2,minmax(0,1fr));max-width:66.666%;margin:0 auto;background-image:linear-gradient(var(--mm-divider-color,#bdab92),var(--mm-divider-color,#bdab92));background-position:50% 0;}
  #mmg-app#mmg-app #mm-grimoire .mm-pf-theme-list[data-count="1"]{grid-template-columns:minmax(0,1fr);background-image:none;}
  #mmg-app#mmg-app #mm-grimoire .mm-pf-theme+.mm-pf-theme{border-left:0!important;}
  #mmg-app#mmg-app #mm-grimoire .mm-pf-theme{align-self:start;justify-content:flex-start;}
}

/* 1.10.95 — the tour's dimmed background is an SVG with a hole (see tourDimDraw), not a giant shadow, so it never
   flickers lighter on phones. The highlight itself only carries the soft breathing glow. */
#mmg-app .mmg-tour-dim{position:fixed;inset:0;width:100%;height:100%;pointer-events:none;opacity:0;transition:opacity .45s ease;}
#mmg-app .mmg-tour-dim path{fill:rgba(24,17,12,.74);}
#mmg-app .mmg-tour.mmg-tour-in .mmg-tour-dim{opacity:1;}
#mmg-app .mmg-tour-spot,#mmg-app .mmg-tour-spot.mmg-tour-spot-none{box-shadow:none!important;}
/* phones: a smaller, gentler glow (a wide glow pulsing over a small screen read as the whole background brightening) */
@media(max-width:600px){
  #mmg-app .mmg-tour-spot::after{box-shadow:0 0 8px 2px rgba(255,240,205,.45),0 0 22px 6px rgba(250,224,170,.2)!important;}
  #mmg-app .mmg-tour-spot:not(.mmg-tour-spot-none)::after{animation-name:mmg-tour-aura-soft!important;}
}
@keyframes mmg-tour-aura-soft{0%,100%{opacity:.65;}50%{opacity:1;}}

/* 1.10.96 — theme numbers: only the soft blob behind the number is tilted; the numbers themselves stand straight,
   so all three sit at exactly the same height. */
#mmg-app#mmg-app #mm-grimoire .mm-pf-theme .mm-pf-theme-num{position:relative;isolation:isolate;background:none!important;transform:none!important;--blob-r:4deg;}
#mmg-app#mmg-app #mm-grimoire .mm-pf-theme:nth-child(2) .mm-pf-theme-num{--blob-r:-6deg;}
#mmg-app#mmg-app #mm-grimoire .mm-pf-theme:nth-child(3) .mm-pf-theme-num{--blob-r:8deg;}
#mmg-app#mmg-app #mm-grimoire .mm-pf-theme .mm-pf-theme-num::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:inherit;background:rgba(114,82,54,.13);transform:rotate(var(--blob-r));}

/* 1.10.97 — phones and tablets: the glow stays still (no pulsing). Safari on iPhone re-draws an animated glow over
   the darkened page and the whole background visibly changed brightness. */
@media(hover:none),(max-width:600px){
  #mmg-app .mmg-tour-spot::after,#mmg-app .mmg-tour-spot:not(.mmg-tour-spot-none)::after{animation:none!important;transition:none!important;}
  #mmg-app .mmg-tour-spot:not(.mmg-tour-spot-none)::after{opacity:1!important;}
}

/* ===== 2.0 — sign-in and locked screens: centred like the rest of the Cheat Sheet. The handwritten
   "The Witch’s Cheat Sheet" above a Cardo title (like the page titles), centred text, full-width brown button,
   quiet links below a divider. Same 32px inner space and 16px rhythm as the popups. ===== */
#mmg-app .mmg-gate{width:calc(100% - 32px)!important;max-width:440px!important;padding:32px!important;text-align:center;}
#mmg-app .mmg-gate .mmg-gate-accent{margin:0 0 4px!important;font:400 24px/1.2 var(--mm-font-hand);color:var(--mm-title-accent,var(--mm-primary));}
#mmg-app .mmg-gate h1{margin:0 0 16px!important;font-size:32px!important;line-height:1.2!important;text-align:center;}
#mmg-app .mmg-gate>p{margin:0 0 16px;}
#mmg-app .mmg-gate .mmg-small,#mmg-app .mmg-gate>p.mmg-small{font-size:var(--mm-text-small);line-height:1.6;color:var(--mm-muted);}
#mmg-app .mmg-gate form{margin:24px 0 0;text-align:left;}
#mmg-app .mmg-gate form label{margin:0 0 16px;}
#mmg-app .mmg-gate :is(form button,form input[type=submit],>.mmg-button,[data-mmg-resend]>button:not(.mmg-text-link)){display:flex!important;align-items:center;justify-content:center;width:100%!important;min-height:48px;margin:0 0 16px!important;}
#mmg-app .mmg-gate>.mmg-button{box-sizing:border-box;text-decoration:none;}
#mmg-app .mmg-gate [data-mmg-resend]{text-align:center;}
#mmg-app .mmg-gate [data-mmg-resend] .mmg-text-link{margin:0 auto!important;}
#mmg-app .mmg-gate details{margin-top:8px;text-align:center;}
#mmg-app .mmg-gate details[open]{text-align:left;}
#mmg-app .mmg-gate details[open] summary{text-align:center;}
#mmg-app .mmg-gate summary{display:inline-flex;align-items:center;justify-content:center;gap:6px;list-style-position:inside;}
#mmg-app .mmg-gate details[open] summary{display:flex;}
#mmg-app .mmg-gate .mmg-password-help{text-align:center;}
#mmg-app .mmg-gate .mmg-gate-footer{margin:24px 0 0!important;padding-top:24px!important;border-top:1px solid var(--mm-divider-color,#d8c7ab)!important;text-align:center;color:var(--mm-muted);}
#mmg-app .mmg-gate .mmg-gate-footer a{font-weight:400;}
#mmg-app .mmg-gate p[role=alert]{text-align:center;}
#mmg-app .mmg-gate>:last-child{margin-bottom:0!important;}
@media(max-width:600px){#mmg-app .mmg-gate{padding:24px 20px!important;}#mmg-app .mmg-gate h1{font-size:28px!important;}}
/* 2.0 — the tour has no repeating animations at all (they made Safari redraw the dimmed page and its brightness
   jumped): the glow is still, Luna doesn't move, and her sparkles only appear once. */
#mmg-app .mmg-tour .mmg-tour-spot::after,#mmg-app .mmg-tour .mmg-tour-spot:not(.mmg-tour-spot-none)::after{animation:none!important;transition:none!important;}
#mmg-app .mmg-tour .mmg-tour-spot:not(.mmg-tour-spot-none)::after{opacity:1!important;}
#mmg-app .mmg-tour.mmg-tour-in .mmg-tour-cat{animation:mmg-tour-cat-in .7s var(--tour-ease) .35s both!important;}
#mmg-app .mmg-tour .mmg-tour-sparkle{animation:mmg-tour-spark-in .6s ease-out both!important;}
#mmg-app .mmg-tour .mmg-tour-sparkle-1{animation-delay:1.1s!important;}
#mmg-app .mmg-tour .mmg-tour-sparkle-2{animation-delay:1.3s!important;}
#mmg-app .mmg-tour .mmg-tour-sparkle-3{animation-delay:1.5s!important;}
/* the old pulsing highlight (it animated a page-wide dark shadow, so the background brightness pulsed) is off for good */
#mmg-app#mmg-app .mmg-tour .mmg-tour-spot,#mmg-app#mmg-app .mmg-tour .mmg-tour-spot:not(.mmg-tour-spot-none),#mmg-app#mmg-app .mmg-tour .mmg-tour-spot.mmg-tour-spot-none{animation:none!important;box-shadow:none!important;}
/* 2.0.1 — notices ("We emailed you a link…", "Saved", "Request a new sign-in link below…"): plain text, no container. */
#mmg-app#mmg-app .mmg-gate :is([role=alert],[data-mmg-welcome-error]):not(:empty),
#mmg-app#mmg-app .mmg-support [data-support-status]:not(:empty){border:0!important;border-radius:0!important;background:none!important;padding:0!important;box-shadow:none!important;}
/* 2.0 gates: a larger handwritten line; the locked screen's button is full width like the others; the resend
   screen's "Use a Different Email" sits centred under its button. */
#mmg-app .mmg-gate .mmg-gate-accent{font-size:28px!important;}
#mmg-app .mmg-gate>.mmg-button{display:flex!important;align-items:center;justify-content:center;width:100%!important;min-height:48px;margin:0 0 16px!important;}
#mmg-app .mmg-gate [data-mmg-resend]>button:not(.mmg-text-link){display:flex!important;align-items:center;justify-content:center;width:100%!important;min-height:48px;margin:0 0 8px!important;}
#mmg-app .mmg-gate [data-mmg-resend]>.mmg-text-link{display:flex!important;justify-content:center;margin:0 auto!important;}
#mmg-app#mmg-app .mmg-gate>p.mmg-gate-accent{font-size:28px!important;line-height:1.2!important;}
#mmg-app#mmg-app .mmg-gate [data-mmg-resend]>.mmg-text-link{margin-left:auto!important;margin-right:auto!important;}
#mmg-app#mmg-app .mmg-gate [data-mmg-resend]:not([hidden]){justify-content:center;}
/* ===== 2.0 — one feel for every brown button (Send, Save, Claim, Remind Me, Delete, Get Your Cheat Sheet, the
   round pen…): the same colour, a soft darkening on hover, a small press-in when tapped, the same timing. ===== */
#mmg-app#mmg-app #mm-grimoire :is(.mm-action,.mm-moon-remind-button,.mm-confirm-delete,.mm-add-note,.mm-pf-primary),
#mmg-app#mmg-app :is(.mmg-button,.mmg-support-send,.mmg-renamed-done,.mmg-session-notice button,.mmg-gate button:not(.mmg-secondary):not(.mmg-onboard-skip):not(.mmg-text-link),.mmg-gate input[type=submit]){
  background-color:var(--mmb-c-rest,#715239)!important;background-image:var(--mmb-sheen2)!important;
  transition:background-color .2s ease,transform .12s ease,opacity .2s ease!important;transform:none;}
@media(hover:hover){
#mmg-app#mmg-app #mm-grimoire :is(.mm-action,.mm-moon-remind-button,.mm-confirm-delete,.mm-add-note,.mm-pf-primary):not(:disabled):hover,
#mmg-app#mmg-app :is(.mmg-button,.mmg-support-send,.mmg-renamed-done,.mmg-session-notice button,.mmg-gate button:not(.mmg-secondary):not(.mmg-onboard-skip):not(.mmg-text-link),.mmg-gate input[type=submit]):not(:disabled):hover{background-color:var(--mmb-c-hover,#5f4431)!important;}}
#mmg-app#mmg-app #mm-grimoire :is(.mm-action,.mm-moon-remind-button,.mm-confirm-delete,.mm-add-note,.mm-pf-primary):not(:disabled):active,
#mmg-app#mmg-app :is(.mmg-button,.mmg-support-send,.mmg-renamed-done,.mmg-session-notice button,.mmg-gate button:not(.mmg-secondary):not(.mmg-onboard-skip):not(.mmg-text-link),.mmg-gate input[type=submit]):not(:disabled):active{background-color:var(--mmb-c-press,#523a2a)!important;transform:scale(.97);}
#mmg-app#mmg-app :is(.mmg-button,.mmg-support-send,.mmg-renamed-done,.mmg-gate button:not(.mmg-secondary):not(.mmg-onboard-skip):not(.mmg-text-link)):disabled{opacity:.45;}
@media(prefers-reduced-motion:reduce){#mmg-app#mmg-app :is(.mmg-button,.mmg-support-send,.mmg-renamed-done,.mmg-gate button,.mm-action,.mm-moon-remind-button,.mm-confirm-delete,.mm-add-note,.mm-pf-primary):active{transform:none;}}
/* 2.0 — gates: the line above the title is the app's small kicker (12px, spaced capitals, brown), like
   "WELCOME BACK," and "YOUR LIFE’S KEY THEMES". */
#mmg-app#mmg-app .mmg-gate>p.mmg-gate-accent{margin:0 0 8px!important;font:400 12px/1.5 var(--mm-font-body)!important;letter-spacing:.14em!important;text-transform:uppercase;color:var(--mm-primary)!important;}
/* 2.0 — gates: "Sign In with a Password" / "Use a Password Instead" look like every other text link (underlined, regular weight). */
#mmg-app#mmg-app .mmg-gate summary{font-weight:400!important;color:var(--mm-primary)!important;text-decoration:underline;text-underline-offset:.2em;text-decoration-thickness:1px;list-style:none;}
#mmg-app#mmg-app .mmg-gate summary::-webkit-details-marker{display:none;}
@media(hover:hover){#mmg-app#mmg-app .mmg-gate summary:hover{color:var(--mm-fg)!important;}}
/* the line above the title: handwritten (Caveat), small, in the app's brown */
#mmg-app#mmg-app#mmg-app .mmg-gate>p.mmg-gate-accent{margin:0 0 4px!important;font:400 21px/1.2 var(--mm-font-hand)!important;letter-spacing:0!important;text-transform:none!important;color:var(--mm-primary)!important;}
#mmg-app#mmg-app#mmg-app .mmg-gate>p.mmg-gate-accent{margin-bottom:20px!important;}
/* 2.0.1 — tapping a text link (Log Out…) shows nothing around it: no grey tap bubble on phones
   and no outline after a click; keyboard users still get the focus underline/outline. */
#mmg-app,#mmg-app *{-webkit-tap-highlight-color:transparent;}
#mmg-app #mm-grimoire :is(.mm-pf-textlink,.mm-pf-logout):focus:not(:focus-visible){outline:none!important;box-shadow:none!important;}
#mmg-app #mm-grimoire :is(.mm-pf-textlink,.mm-pf-logout):focus-visible{outline:none!important;box-shadow:none!important;text-decoration-thickness:2px;}
/* 2.0.1 — phones: "Drop here to remove" sits in the menu's visible part, above the home-bar area at the bottom. */
@media(max-width:600px){#mmg-app #mm-grimoire .mm-board-trash.mm-trash-fit{padding-bottom:calc(8px + env(safe-area-inset-bottom,0px))!important;align-items:center;}}
/* 2.0.1 — "Check Your Inbox": more room under the button, less between "Use a Different Email" and "Use a Password Instead". */
#mmg-app#mmg-app .mmg-gate [data-mmg-resend]>button:not(.mmg-text-link){margin-bottom:20px!important;}
#mmg-app#mmg-app .mmg-gate [data-mmg-resend] button.mmg-text-link.mmg-text-link{min-height:0!important;padding:2px 0!important;}
#mmg-app#mmg-app .mmg-gate [data-mmg-resend]:not([hidden])+form[hidden]+details{margin-top:14px!important;}
#mmg-app#mmg-app .mmg-gate [data-mmg-resend]:not([hidden])+form[hidden]+details>summary{min-height:0!important;padding:2px 0!important;}

/* 2.0.1 — every text field (sign-in, popups, search, dropdowns, notes fields) has the same 8px corners as the brown buttons. */
#mmg-app#mmg-app :is(.mmg-gate,.mmg-support,#mm-grimoire) :is(input[type=email],input[type=text],input[type=password],input[type=date],input[type=time],input[type=search],select,textarea):not(.mm-own-paper textarea):not(.mm-zoom-note textarea):not(.mm-notes-paper textarea){border-radius:8px!important;}

/* 2.0.1 — on phones a tapped option in Help doesn't stay underlined (that was a "sticky" hover) */
@media(hover:none){#mmg-app#mmg-app .mmg-help-choices button:hover{text-decoration:none!important;}}

#mmg-app#mmg-app .mmg-support.mmg-just-opened .mmg-help-choices button:hover{text-decoration:none!important;}
/* 2.0.2 — status lines in popups ("Check your email and open the link to confirm.") have room below them before the button */
#mmg-app#mmg-app .mmg-support [data-support-status]:not(:empty){margin-bottom:20px!important;}

/* 2.0.6 — Help: the title and the options start at exactly the same left edge. */
#mmg-app#mmg-app #mmg-support.mmg-support-menu .mmg-help-choices button{padding-left:0!important;}

/* ===== 2.1 — the birth "certificate": birth energy and birth moon in one light paper card with a double frame,
   so it can't be mistaken for Today. The date is introduced in handwriting; the birth moon stays dark and starry. ===== */
#mmg-app#mmg-app #mm-grimoire .mm-pf-cert{position:relative;padding:40px clamp(18px,4vw,40px) clamp(18px,4vw,40px)!important;background:var(--mm-card)!important;
  border:1px solid var(--mm-line-strong,#8c755d)!important;box-shadow:inset 0 0 0 5px var(--mm-card),inset 0 0 0 6px rgba(140,117,93,.55)!important;border-radius:12px!important;text-align:center;}
#mmg-app #mm-grimoire .mm-pf-cert .mm-pf-edit-icon{top:16px!important;right:16px!important;}
#mmg-app #mm-grimoire .mm-pf-cert-head{margin:0 0 24px;}
#mmg-app #mm-grimoire .mm-pf-cert-accent{margin:0 0 4px;font:400 26px/1.2 var(--mm-font-hand);color:var(--mm-primary);}
#mmg-app#mmg-app #mm-grimoire .mm-pf-cert h2{margin:0!important;}
#mmg-app #mm-grimoire .mm-pf-cert-moons{display:flex;align-items:center;justify-content:center;gap:16px;max-width:420px;margin:20px auto 0;}
#mmg-app #mm-grimoire .mm-pf-cert-moons .mm-pf-split-moons{flex:none;width:74px;height:13px;fill:var(--mm-primary);}
#mmg-app#mmg-app #mm-grimoire .mm-pf-cert-kicker{margin:0 0 12px!important;text-align:center;}
#mmg-app#mmg-app #mm-grimoire .mm-pf-cert .mm-pf-cert-sky{margin:32px 0 0!important;border-radius:12px!important;}
@media(max-width:600px){#mmg-app#mmg-app #mm-grimoire .mm-pf-cert{padding-top:36px!important;}#mmg-app #mm-grimoire .mm-pf-cert-accent{font-size:24px;}#mmg-app#mmg-app #mm-grimoire .mm-pf-cert .mm-pf-cert-sky{margin-top:24px!important;}}

/* 2.1.1 — the moon dividers are a little wider (more room around the full moon); the certificate's handwritten line
   sits level with the pen icon, with more space before the date. */
#mmg-app#mmg-app #mm-grimoire :is(.mm-pf-split,.mm-pf-cert-moons) .mm-pf-split-moons{width:82px;height:13px;}
#mmg-app#mmg-app #mm-grimoire .mm-pf-cert{padding-top:22px!important;}
#mmg-app#mmg-app #mm-grimoire .mm-pf-cert-accent{display:flex;align-items:center;justify-content:center;min-height:44px;margin:0 56px 12px;}

/* 2.1.1 — power color, signature crystal and lucky herb share one container: three columns with the same thin
   dividers as the life themes, and each picture framed as an arched window. The brown label sits 12px above the
   picture and the name 12px below it (on phones: picture on the left, label and name 4px apart). */
#mmg-app#mmg-app#mmg-app #mm-grimoire .mm-profile-page .mm-pf-sigcard{padding:0!important;margin:0 0 16px!important;overflow:hidden;}
#mmg-app#mmg-app#mmg-app #mm-grimoire .mm-profile-page .mm-pf-sigcard .mm-pf-sigs{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:0!important;margin:0!important;padding:0!important;}
#mmg-app#mmg-app#mmg-app #mm-grimoire .mm-profile-page .mm-pf-sigcard .mm-pf-sigs[data-count="2"]{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
#mmg-app#mmg-app#mmg-app #mm-grimoire .mm-profile-page .mm-pf-sigcard .mm-pf-sigs[data-count="1"]{grid-template-columns:1fr!important;}
#mmg-app#mmg-app#mmg-app #mm-grimoire .mm-profile-page .mm-pf-sigcard .mm-pf-sig-wrap+.mm-pf-sig-wrap{box-shadow:inset 1px 0 0 var(--mm-divider-color,#bdab92);}
#mmg-app#mmg-app#mmg-app #mm-grimoire .mm-profile-page .mm-pf-sigcard .mm-pf-sticker,
#mmg-app#mmg-app#mmg-app #mm-grimoire .mm-profile-page .mm-pf-sigcard .mm-pf-sticker:hover{border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;padding:28px 24px 32px!important;gap:0!important;justify-content:flex-start!important;}
#mmg-app#mmg-app#mmg-app #mm-grimoire .mm-profile-page .mm-pf-sigcard .mm-sticker-cat{margin:0 0 12px!important;}
#mmg-app#mmg-app#mmg-app #mm-grimoire .mm-profile-page .mm-pf-sigcard .mm-sticker-name{margin-top:12px!important;}
#mmg-app#mmg-app#mmg-app #mm-grimoire .mm-profile-page .mm-pf-sigcard .mm-sticker-image,
#mmg-app#mmg-app#mmg-app #mm-grimoire .mm-profile-page .mm-pf-sigcard .mm-sticker-image img{border-radius:999px 999px 8px 8px!important;overflow:hidden;}
@media(max-width:600px){
  #mmg-app#mmg-app#mmg-app #mm-grimoire .mm-profile-page .mm-pf-sigcard .mm-pf-sigs,
  #mmg-app#mmg-app#mmg-app #mm-grimoire .mm-profile-page .mm-pf-sigcard .mm-pf-sigs[data-count]{grid-template-columns:1fr!important;}
  #mmg-app#mmg-app#mmg-app #mm-grimoire .mm-profile-page .mm-pf-sigcard .mm-pf-sig-wrap+.mm-pf-sig-wrap{box-shadow:inset 0 1px 0 var(--mm-divider-color,#bdab92);}
  #mmg-app#mmg-app#mmg-app #mm-grimoire .mm-profile-page .mm-pf-sigcard .mm-pf-sticker,
  #mmg-app#mmg-app#mmg-app #mm-grimoire .mm-profile-page .mm-pf-sigcard .mm-pf-sticker:hover{padding:16px 52px 16px 16px!important;}
  #mmg-app#mmg-app#mmg-app #mm-grimoire .mm-profile-page .mm-pf-sigcard .mm-sticker-cat{margin:0 0 4px!important;}
  #mmg-app#mmg-app#mmg-app #mm-grimoire .mm-profile-page .mm-pf-sigcard .mm-sticker-name{margin-top:0!important;}
  #mmg-app#mmg-app#mmg-app #mm-grimoire .mm-profile-page .mm-pf-sigcard .mm-pf-sticker{grid-template-areas:"i ." "i c" "i n" "i e" "i ."!important;grid-template-rows:1fr auto auto auto 1fr!important;min-height:0!important;row-gap:0!important;column-gap:16px!important;}
  #mmg-app#mmg-app#mmg-app #mm-grimoire .mm-profile-page .mm-pf-sigcard .mm-sticker-excerpt{margin-top:4px!important;}
}

/* 2.1.1 — even space: the edge to the brown label equals the last line to the edge. On phones the picture is
   placed beside the text (taken out of the flow), so the text block is centred and never stretched. */
#mmg-app#mmg-app#mmg-app #mm-grimoire .mm-profile-page .mm-pf-sigcard .mm-pf-sticker,#mmg-app#mmg-app#mmg-app #mm-grimoire .mm-profile-page .mm-pf-sigcard .mm-pf-sticker:hover{padding-bottom:24px!important;}
@media(max-width:600px){
  #mmg-app#mmg-app#mmg-app #mm-grimoire .mm-profile-page .mm-pf-sigcard .mm-pf-sticker,#mmg-app#mmg-app#mmg-app #mm-grimoire .mm-profile-page .mm-pf-sigcard .mm-pf-sticker:hover{display:flex!important;flex-direction:column!important;justify-content:center!important;align-items:flex-start!important;position:relative!important;min-height:116px!important;padding:20px 52px 20px 116px!important;}
  #mmg-app#mmg-app#mmg-app #mm-grimoire .mm-profile-page .mm-pf-sigcard .mm-pf-sticker .mm-sticker-image{position:absolute!important;left:16px!important;top:50%!important;transform:translateY(-50%)!important;width:84px!important;height:84px!important;margin:0!important;}
}

/* 2.1.1 — the tour circles what Luna shows with a hand-drawn loop instead of a glow. */
#mmg-app .mmg-tour-ring{position:fixed;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none;}
#mmg-app .mmg-tour-ring path{fill:none!important;stroke:#f7efdd!important;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round;}
#mmg-app#mmg-app .mmg-tour .mmg-tour-spot::after,#mmg-app#mmg-app .mmg-tour .mmg-tour-spot:not(.mmg-tour-spot-none)::after{display:none!important;content:none!important;}
/* Cake icon: a fixed width so Safari never clips its right side; the empty-Grimoire bookmark a little smaller. */
#mmg-app#mmg-app #mm-grimoire .mm-pf-invite .mm-thumb-question svg{width:21px!important;height:24px!important;overflow:visible;}
#mmg-app#mmg-app #mm-grimoire .mm-board-invite:not(.mm-pf-invite) .mm-thumb-question svg{width:17px!important;height:22px!important;}
/* 2.1.1 — more breathing room in the color / crystal / herb container. */
#mmg-app#mmg-app#mmg-app #mm-grimoire .mm-profile-page .mm-pf-sigcard .mm-sticker-cat{margin:0 0 16px!important;}
#mmg-app#mmg-app#mmg-app #mm-grimoire .mm-profile-page .mm-pf-sigcard .mm-sticker-name{margin-top:16px!important;}
#mmg-app#mmg-app#mmg-app #mm-grimoire .mm-profile-page .mm-pf-sigcard .mm-sticker-excerpt{margin-top:8px!important;}
@media(max-width:600px){
  #mmg-app#mmg-app#mmg-app #mm-grimoire .mm-profile-page .mm-pf-sigcard .mm-pf-sticker,#mmg-app#mmg-app#mmg-app #mm-grimoire .mm-profile-page .mm-pf-sigcard .mm-pf-sticker:is(:hover,:active,:focus){padding:24px 52px 24px 124px!important;min-height:132px!important;}
  #mmg-app#mmg-app#mmg-app #mm-grimoire .mm-profile-page .mm-pf-sigcard .mm-sticker-cat{margin:0 0 8px!important;}
  #mmg-app#mmg-app#mmg-app #mm-grimoire .mm-profile-page .mm-pf-sigcard .mm-sticker-name{margin-top:0!important;}
  #mmg-app#mmg-app#mmg-app #mm-grimoire .mm-profile-page .mm-pf-sigcard .mm-sticker-image{left:20px!important;}
}
/* 2.1.1 — the "!" badge: a plain filled mark with no stroke, so no lighter edge shows around it on hover. */
#mmg-app#mmg-app #mm-grimoire .mm-pf-badge svg.mm-fa-excl,#mmg-app#mmg-app #mm-grimoire .mm-card:hover .mm-pf-badge svg.mm-fa-excl,#mmg-app#mmg-app #mm-grimoire .mm-pf-invite:hover .mm-pf-badge svg.mm-fa-excl{stroke:none!important;stroke-width:0!important;fill:#fff8eb!important;height:14px!important;width:auto!important;}
#mmg-app#mmg-app #mm-grimoire .mm-pf-badge svg.mm-fa-excl path{stroke:none!important;fill:#fff8eb!important;}
@media(max-width:600px){#mmg-app#mmg-app #mm-grimoire .mm-pf-badge svg.mm-fa-excl{height:13px!important;}}
/* The lit area now fills the loop, so the loop is drawn in the brown ink of the hand-drawn underlines. */
#mmg-app#mmg-app .mmg-tour-ring path{stroke:var(--mm-primary,#6b4a33)!important;stroke-width:2.6;}

/* 2.1.3 — the lit blob has no outline; only its soft shape shows. */
#mmg-app#mmg-app#mmg-app .mmg-tour-ring{display:none!important;}

/* 2.1.3 — Luna's bubbles are soft blobs: no outline, no tail. A little more room inside so the text clears the curve. */
#mmg-app#mmg-app .mmg-speech-blob .mmg-speech-shape path{stroke:none!important;}
#mmg-app#mmg-app .mmg-speech-blob .mmg-speech-shape path.mmg-speech-pass{display:block!important;fill:var(--mm-card,#f7efdd)!important;opacity:1!important;transform:none!important;stroke:none!important;}
#mmg-app#mmg-app .mmg-tour-bubble.mmg-speech-blob{padding:26px 40px 28px!important;}
@media(max-width:600px){#mmg-app#mmg-app .mmg-tour-bubble.mmg-speech-blob{padding:20px 24px 22px!important;}}

/* 2.1.6 — the Today closing bubble uses the blob: its old outlined shapes stay in the markup only to tell which way
   the tail points (side on wide screens, down on phones). */
#mmg-app#mmg-app #mm-grimoire .mm-end-bubble.mmg-speech-blob .mm-end-bubble-shape{visibility:hidden!important;}
#mmg-app#mmg-app #mm-grimoire .mm-end-bubble.mmg-speech-blob .mmg-speech-shape{z-index:0;}
#mmg-app#mmg-app #mm-grimoire .mm-end-bubble.mmg-speech-blob .mmg-speech-shape path{fill:var(--mm-card,#f7efdd)!important;stroke:none!important;}
#mmg-app#mmg-app #mm-grimoire .mm-end-bubble.mmg-speech-blob{padding:26px 34px 16px!important;}
@media(max-width:600px){#mmg-app#mmg-app #mm-grimoire .mm-end-bubble.mmg-speech-blob{margin-top:8px!important;margin-bottom:22px!important;}}

/* 2.1.9 — space around Today's cat speech, without changing the other bubbles. */
@media(min-width:601px){
  #mmg-app#mmg-app #mm-grimoire .mm-end-bubble.mmg-speech-blob{margin-top:20px!important;}
}
@media(max-width:600px){
  #mmg-app#mmg-app #mm-grimoire .mm-end-bubble.mmg-speech-blob{padding-top:32px!important;padding-bottom:22px!important;--mm-blob-extra-y:6px;}
}

/* 2.1.10: connection and status messages sit directly on the existing page background. */
#mmg-app.mmg-gate-screen>.mmg-status{background:transparent;border:0;box-shadow:none;text-align:center;}
#mmg-app.mmg-gate-screen>.mmg-status p[role=alert]{border:0;background:transparent;padding:0;}
#mmg-app.mmg-gate-screen>.mmg-status::before,#mmg-app.mmg-gate-screen>.mmg-status::after{content:none;}

/* 2.1.13: intention rows fill the panel interior, with the original text inset. */
#mmg-app #mm-grimoire .mm-tag-options{margin-inline:calc(-1 * var(--mm-space-14));}
#mmg-app #mm-grimoire .mm-tag-option{box-sizing:border-box;width:100%;padding-inline:calc(var(--mm-space-14) + var(--mm-space-3));}

/* 2.1.14: profile name uses the saved ritual underline instead of torn paper. */
#mmg-app #mm-grimoire .mm-pf-greeting .mm-greeting-sticker{background:none!important;clip-path:none!important;box-shadow:none!important;transform:none!important;}

/* Match password recovery link to the other login links. */
#mmg-app .mmg-gate .mmg-password-help a.mmg-text-link{font-size:16px;font-weight:400;}

/* Keep native image menus from interrupting Grimoire rearranging. */
#mmg-app #mm-grimoire .mm-board-grid .mm-piece,
#mmg-app #mm-grimoire .mm-board-grid .mm-piece *{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;}
#mmg-app #mm-grimoire .mm-board-grid .mm-piece img{-webkit-user-drag:none;pointer-events:none;}
@media(max-width:600px){
 #mmg-app#mmg-app #mm-grimoire .mm-end-bubble.mmg-speech-blob{--mm-blob-extra-y:2px;}
}

/* 2.1.18 — sign-in link confirmation: compact, readable hierarchy with no orphaned accent sentences. */
#mmg-app .mmg-gate.mmg-gate-sent{max-width:480px!important;text-align:center;overflow-wrap:normal;word-break:normal;}
#mmg-app .mmg-gate-sent .mmg-sent-icon{display:flex;align-items:center;justify-content:center;width:64px;height:64px;margin:0 auto 14px;border-radius:50%;background:#e8ddcf;color:#775a46;}
#mmg-app .mmg-gate-sent h1{margin:0 0 12px!important;}
#mmg-app#mmg-app .mmg-gate-sent>p[role=status]{max-width:390px;margin:0 auto 8px!important;font:400 16px/1.55 var(--mm-font-gate)!important;color:var(--mm-fg)!important;letter-spacing:normal!important;text-transform:none!important;text-wrap:pretty;}
#mmg-app#mmg-app .mmg-gate-sent>p.mmg-small{max-width:390px;margin:0 auto 18px!important;font-size:14px!important;line-height:1.5!important;color:var(--mm-muted)!important;text-wrap:pretty;}
#mmg-app .mmg-gate-sent [data-mmg-resend]>p[data-mmg-wait]{margin:0 0 10px!important;font-size:14px;line-height:1.45;color:var(--mm-muted);text-wrap:pretty;}
#mmg-app .mmg-gate-sent [data-mmg-resend]>button:not(.mmg-text-link){margin:0 0 8px!important;}
#mmg-app .mmg-gate-sent [data-mmg-resend] button.mmg-text-link.mmg-text-link{margin:0 auto!important;}
@media(max-width:600px){#mmg-app .mmg-gate.mmg-gate-sent{width:calc(100% - 24px)!important;padding:24px 20px!important;}#mmg-app .mmg-gate-sent .mmg-sent-icon{width:56px;height:56px;}}

/* Email-link confirmation: reuse the Daily Ritual ink-wash circle and the existing gate hierarchy. */
#mmg-app .mmg-gate-sent .mmg-sent-icon{
  width:64px;height:64px;margin:0 auto 14px;display:flex;align-items:center;justify-content:center;
  background:rgba(114,82,54,.13)!important;color:var(--mm-primary)!important;
  border:0!important;border-radius:52% 48% 55% 45% / 46% 55% 45% 54%!important;
  box-shadow:none!important;transform:rotate(4deg);
}
#mmg-app .mmg-gate-sent .mmg-sent-icon i{font-size:25px;line-height:1;transform:rotate(-4deg);}
/* Keep the app's normal gate copy size and heading style instead of a one-off confirmation typography. */
#mmg-app#mmg-app .mmg-gate-sent>p[role=status]{
  max-width:none!important;margin:0 0 10px!important;
  font:inherit!important;font-family:var(--mm-font-body)!important;
  line-height:var(--mm-line-height)!important;
  color:var(--mm-fg)!important;letter-spacing:normal!important;text-transform:none!important;
}
/* Expires and resend countdown are two separate, closely spaced lines. */
#mmg-app#mmg-app .mmg-gate-sent>p.mmg-small{
  max-width:none!important;margin:0 0 3px!important;
  font-size:var(--mm-text-small)!important;line-height:1.45!important;color:var(--mm-muted)!important;
}
#mmg-app#mmg-app .mmg-gate-sent [data-mmg-resend]>p[data-mmg-wait]{
  margin:0 0 12px!important;font-size:var(--mm-text-small)!important;
  line-height:1.45!important;color:var(--mm-muted)!important;
}
@media(max-width:600px){#mmg-app .mmg-gate-sent .mmg-sent-icon{width:56px;height:56px;}}

/* 2.1.18: detail header controls use equal edge insets and align on one row. */
#mmg-app #mm-grimoire .mm-detail-nav{grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;}
#mmg-app #mm-grimoire .mm-detail-nav .mm-back,
#mmg-app #mm-grimoire .mm-detail-nav .mm-save{width:44px;height:44px;min-height:44px;display:grid;place-items:center;justify-self:center;}
#mmg-app #mm-grimoire .mm-detail-nav .mm-detail-category{align-self:center;justify-self:center;}
@media(max-width:900px){#mmg-app #mm-grimoire .mm-detail-nav{margin-left:-12px;margin-right:-12px;}}
/* iOS/Safari: stop the native Save Image callout and pointer cancellation on a held board piece.
   A gesture started on a card belongs to the grimoire drag; scroll from gaps/background. */
@media (pointer:coarse){
 #mmg-app #mm-grimoire .mm-board-grid .mm-piece{touch-action:pan-y!important;-webkit-touch-callout:none!important;-webkit-user-select:none!important;user-select:none!important;}
 #mmg-app #mm-grimoire .mm-board-grid .mm-piece :is(img,picture,svg,span,div){-webkit-touch-callout:none!important;-webkit-user-select:none!important;user-select:none!important;}
 #mmg-app #mm-grimoire .mm-board-grid .mm-piece img{pointer-events:none!important;-webkit-user-drag:none!important;}
}

/* Grimoire mobile scrolling: cards must remain vertically scrollable before long-press drag. */
@media (pointer:coarse){
 #mmg-app #mm-grimoire .mm-board-grid .mm-piece{touch-action:pan-y!important;}
}
/* Detail navigation: 8px from top and both side edges on mobile, matched controls. */
@media(max-width:900px){
 #mmg-app #mm-grimoire .mm-detail-wrap>.mm-detail-nav{margin-top:-12px;margin-left:-12px;margin-right:-12px;min-height:44px;display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;}
 #mmg-app #mm-grimoire .mm-detail-nav .mm-detail-category{align-self:center;justify-self:center;}
}
@media(min-width:901px){
 #mmg-app #mm-grimoire .mm-detail-wrap>.mm-detail-nav{margin-top:-14px;}
}

/* Today's Energy: matching top and side insets for both 44px corner controls. */
#mmg-app #mm-grimoire .mm-daily-heading :is(.mm-daily-help,.mm-daily-refresh){top:6px;}
#mmg-app #mm-grimoire .mm-daily-heading .mm-daily-help{left:6px;right:auto;}
#mmg-app #mm-grimoire .mm-daily-heading .mm-daily-refresh{right:6px;left:auto;}

/* 2.1.18 — Notifications: when a different email timezone is shown,
   give the save confirmation breathing room above it without adding
   unnecessary space on accounts using the device timezone. */
#mmg-app #mmg-support.mmg-support-notify [data-notify-form] .mmg-notify-tz:not([hidden]) + .mmg-notify-status:not(:empty){
  margin:14px 0 0!important;
}

/* 2.1.18 desktop post header: equal 12px insets from the detail card's top and sides.
   Keep Back, centered category, and Save on a single 44px grid row. */
@media (min-width:901px){
 #mmg-app #mm-grimoire .mm-detail-wrap>.mm-detail-nav{
  margin-top:-20px;
  margin-left:calc(12px - clamp(44px,5vw,72px));
  margin-right:calc(12px - clamp(44px,5vw,72px));
  grid-template-columns:44px minmax(0,1fr) 44px;
  align-items:center;
  min-height:44px;
 }
 #mmg-app #mm-grimoire .mm-detail-nav .mm-back{justify-self:start;}
 #mmg-app #mm-grimoire .mm-detail-nav .mm-save{justify-self:end;}
 #mmg-app #mm-grimoire .mm-detail-nav .mm-detail-category{justify-self:center;align-self:center;}
}

/* Board imagery and links must never open the native long-press callout. */
#mmg-app #mm-grimoire .mm-board-grid .mm-piece,
#mmg-app #mm-grimoire .mm-board-grid .mm-piece *{-webkit-touch-callout:none!important;-webkit-user-select:none!important;user-select:none!important;}
#mmg-app #mm-grimoire .mm-board-grid .mm-piece img{pointer-events:none!important;-webkit-user-drag:none!important;}

/* Profile signature cards: identical top/right insets and a centered 44px control. */
#mmg-app #mm-grimoire .mm-profile-page .mm-pf-sig-wrap>.mm-save-small{
  position:absolute;inset:8px 8px auto auto;width:44px;height:44px;min-width:44px;min-height:44px;
  margin:0;padding:0;display:grid;place-items:center;box-sizing:border-box;
}
#mmg-app #mm-grimoire .mm-profile-page .mm-pf-sig-wrap>.mm-save-small svg{
  position:static;display:block;transform:none;margin:0;width:18px;height:18px;
}

/* Touch the card itself, not its image or link: native swipes stay available
   without giving the browser an image/link target for the long-press menu. */
@media (any-pointer:coarse){
 #mmg-app #mm-grimoire .mm-board-grid .mm-piece{touch-action:pan-y pinch-zoom!important;}
 #mmg-app #mm-grimoire .mm-board-grid .mm-piece *{pointer-events:none!important;}
 #mmg-app #mm-grimoire .mm-board-grid .mm-piece button{pointer-events:auto!important;}
}

/* Preserve the authored palette in browsers that honour auto-dark opt-outs.
   This also covers an app embedded outside the configured Cheat Sheet page. */
#mmg-app{color-scheme:light!important;color-scheme:only light!important;}

/* Tablet layouts, including larger touch tablets in landscape. */
@media (min-width:601px) and (max-width:1199px), (min-width:601px) and (pointer:coarse){
  /* A separate save row leaves the full card width available for its label. */
  #mmg-app #mm-grimoire .mm-profile-page .mm-pf-sig-wrap{flex-direction:column;align-self:stretch;}
  #mmg-app#mmg-app#mmg-app #mm-grimoire .mm-profile-page .mm-pf-sigcard .mm-pf-sticker,
  #mmg-app#mmg-app#mmg-app #mm-grimoire .mm-profile-page .mm-pf-sigcard .mm-pf-sticker:is(:hover,:active,:focus){
    flex:1 1 auto;height:auto;min-width:0;padding-bottom:12px!important;
  }
  #mmg-app #mm-grimoire .mm-profile-page .mm-pf-sig-wrap>.mm-save-small{
    position:relative;inset:auto;flex:0 0 44px;align-self:flex-end;margin:0 8px 8px 0;
  }
  #mmg-app#mmg-app#mmg-app #mm-grimoire .mm-profile-page .mm-pf-sigcard .mm-sticker-cat{
    min-height:2.6em;line-height:1.3;display:flex;align-items:center;justify-content:center;
  }
  /* Keep the cat and Discover card on separate, full-width rows. */
  #mmg-app #mm-grimoire .mm-daily-end{display:flex;flex-direction:column;width:100%;gap:0;}
  #mmg-app #mm-grimoire .mm-end-scene{margin:24px auto 28px;}
  #mmg-app #mm-grimoire .mm-end-next,
  #mmg-app #mm-grimoire .mm-end-random{width:100%;max-width:none;min-width:0;}
  #mmg-app #mm-grimoire .mm-end-random{margin:0;}
  #mmg-app #mm-grimoire .mm-end-random .mm-card{width:100%;height:auto;min-height:0;box-sizing:border-box;}
  #mmg-app #mm-grimoire .mm-end-random .mm-card .mm-card-link{
    display:block;height:auto;min-height:0;padding:24px!important;box-sizing:border-box;
  }
  #mmg-app #mm-grimoire .mm-end-random .mm-card-row,
  #mmg-app #mm-grimoire .mm-end-random .mm-card-body{height:auto;min-height:0;}
  #mmg-app #mm-grimoire .mm-end-random .mm-card-sum{min-height:0;margin-bottom:0;}
}

/* Onboarding uses the shared underlined text control for Skip. */
#mmg-app#mmg-app .mmg-gate .mmg-onboard-actions{gap:6px;margin-top:20px;}
#mmg-app#mmg-app .mmg-gate .mmg-onboard-actions button{margin:0!important;}
#mmg-app#mmg-app .mmg-gate button.mmg-onboard-skip.mmg-text-link{justify-content:center;text-decoration:none;}
#mmg-app#mmg-app .mmg-gate .mmg-onboard-note{text-align:center!important;width:100%;margin-left:auto;margin-right:auto;}
/* Gift copy follows the existing body and small-note text sizes. */
#mmg-app #mmg-support.mmg-support-gift .mmg-notify-intro{font-size:var(--mm-text-base);}
#mmg-app #mmg-support.mmg-support-gift .mmg-gift-note{font-size:var(--mm-text-small);}

/* 2.1.29: centered loader copy with the opening screen's icon spacing. */
#mmg-app #mm-grimoire .mm-daily-loading{gap:20px;justify-content:center;text-align:center;padding:40px 16px;}
#mmg-app #mm-grimoire .mm-daily-loading>i{display:block;flex:none;margin:0;}
#mmg-app #mm-grimoire .mm-daily-loading>p{width:100%;max-width:32ch;margin:0!important;padding:0;text-align:center!important;line-height:1.5;}
/* Resend feedback follows its button in reading and visual order. */
#mmg-app#mmg-app .mmg-gate-sent [data-mmg-resend]>p[data-mmg-wait]{margin:10px 0 12px!important;text-align:center;}
#mmg-app#mmg-app .mmg-gate-sent>p.mmg-small{margin-bottom:16px!important;}
@media(max-width:600px){
  #mmg-app #mm-grimoire .mm-ag-row,#mmg-app #mm-grimoire .mm-ag-row:is(:hover,:focus,:active){display:grid;grid-template-columns:48px minmax(0,1fr) auto;column-gap:12px;row-gap:4px;align-items:center;}
  #mmg-app #mm-grimoire .mm-ag-image{grid-column:1;grid-row:1 / 4;}
  #mmg-app #mm-grimoire .mm-ag-text{display:contents;}
  #mmg-app #mm-grimoire .mm-ag-date{grid-column:2 / 4;grid-row:1;min-width:0;}
  #mmg-app #mm-grimoire .mm-ag-title{grid-column:2 / 4;grid-row:2;min-width:0;}
  #mmg-app #mm-grimoire .mm-ag-sub{grid-column:2;grid-row:3;min-width:0;}
  #mmg-app #mm-grimoire .mm-ag-when{grid-column:3;grid-row:3;justify-self:end;}
}

/* 2.1.30: a little more room for mobile correspondence names. */
@media(max-width:600px){
  #mmg-app #mm-grimoire .mm-daily-card-energy .mm-daily-earth{margin-left:-6px;margin-right:-6px;}
  #mmg-app #mm-grimoire .mm-daily-card-energy .mm-daily-earth .mm-daily-link{padding-left:4px;padding-right:4px;}
  #mmg-app{--mm-mobile-correspondence-name:17px;}
  #mmg-app #mm-grimoire .mm-daily-link-value,
  #mmg-app #mm-grimoire .mm-moon-sky-link-value{font-size:var(--mm-mobile-correspondence-name);}
}

/* 2.1.32: center the entry loader within its loading card. */
#mmg-app #mm-grimoire .mm-detail-wrap.mm-entry-loading-wrap{display:flex;align-items:center;justify-content:center;min-height:clamp(240px,45vh,360px);}
#mmg-app #mm-grimoire .mm-entry-loading-wrap .mm-entry-loading{width:100%;flex:none;}
/* One concise body paragraph, followed by the resend action and balanced feedback. */
#mmg-app#mmg-app .mmg-gate-sent>p[role=status]{margin:0 0 22px!important;color:var(--mm-fg)!important;}
#mmg-app#mmg-app .mmg-gate-sent [data-mmg-resend]>button[data-mmg-resend-open]{margin:0!important;}
#mmg-app#mmg-app .mmg-gate-sent [data-mmg-resend]>p[data-mmg-wait]{margin:8px 0!important;color:var(--mm-primary)!important;}
#mmg-app .mmg-gate [data-mmg-form-wait]:empty{display:none;}

/* 2.1.34: shared main-copy typography for sign-in, confirmation, access and error gates. */
#mmg-app{--mm-auth-body-size:var(--mm-text-base);--mm-auth-copy-gap:24px;}
#mmg-app#mmg-app .mmg-gate:not(.mmg-onboard)>p:not(.mmg-gate-accent):not(.mmg-small):not(.mmg-gate-footer):not(.mmg-kicker){
  font-family:var(--mm-font-body)!important;font-size:var(--mm-auth-body-size)!important;font-weight:400!important;
  line-height:var(--mm-line-height)!important;color:var(--mm-fg)!important;
  margin:0 0 var(--mm-auth-copy-gap)!important;padding:0!important;
}
#mmg-app#mmg-app .mmg-gate:not(.mmg-onboard)>p:not(.mmg-gate-accent):not(.mmg-small):not(.mmg-gate-footer)+form{margin-top:0!important;}
#mmg-app#mmg-app .mmg-gate:not(.mmg-onboard)>p:not(.mmg-gate-accent):not(.mmg-small):not(.mmg-gate-footer):last-child{margin-bottom:0!important;}

/* Account main copy follows post paragraphs: 18px desktop, 16px phone. */
@media(max-width:600px){#mmg-app{--mm-auth-body-size:16px;}}

/* 2.1.36: hidden resend controls must not add an extra form gap on sign-in. */
#mmg-app#mmg-app .mmg-gate-login>[data-mmg-resend][hidden]+form[data-mmg-email-form]{margin-top:0!important;}
/* Fixed-length minutes/seconds with tabular digits: no per-second rewrapping. */
#mmg-app#mmg-app .mmg-gate [data-mmg-wait],
#mmg-app#mmg-app .mmg-gate [data-mmg-form-wait]{font-variant-numeric:tabular-nums;text-wrap:wrap;white-space:nowrap;}

/* 2.1.37: one spacing owner for each gap on the email confirmation screen. */
#mmg-app#mmg-app .mmg-gate-sent [data-mmg-resend]:not([hidden]){row-gap:0;}
/* The countdown contributes 8px; the footer contributes 16px: 24px above the line. */
#mmg-app#mmg-app .mmg-gate-sent [data-mmg-resend]>.mmg-gate-footer{display:flex;justify-content:center;margin:16px 0 0!important;padding-top:24px!important;}
#mmg-app#mmg-app .mmg-gate-sent [data-mmg-resend]>.mmg-gate-footer button.mmg-text-link.mmg-text-link{padding:0!important;}

/* Welcome screen: optical centring. "WELCOME," gets the same space on its left as the letter-spacing adds after
   its last letter; the handwritten name is nudged by its font's built-in right-hand lean. */
#mmg-app .mmg-onboard-welcome .mmg-onboard-kicker{padding-left:.16em;}
#mmg-app .mmg-onboard-welcome .mmg-onboard-name{position:relative;left:-.065em;}

/* Collection cards on tablets (two-column range): no reserved 3-line block under the name, and a slightly smaller
   excerpt (14px: still above the 13px category label, well below the 26px name) so short excerpts fit comfortably. */
@media (min-width:561px) and (max-width:904px){
  #mmg-app #mm-grimoire .mm-card-sum{min-height:0;font-size:14px;line-height:1.5;}
}

/* Lighter hover for Collection cards and related-entry links (same rule for both): halfway between the card's own
   colour and the previous hover, so it still clearly responds but no longer reads dark. */
#mmg-app #mm-grimoire :not(.mm-end-random)>.mm-card::after,#mmg-app #mm-grimoire .mm-kin a::after{background:linear-gradient(180deg,#f2e7d0,#e8d8b9)!important;}

/* Coming Up on phones: the "in X days" pill gets its own column, centred against the whole event, so the text rows size to
   their content (no empty row reserved next to the pill when the description is short or missing). */
@media(max-width:600px){
  #mmg-app #mm-grimoire .mm-ag-image{grid-row:1 / span 3;align-self:center;}
  #mmg-app #mm-grimoire .mm-ag-date{grid-column:2;grid-row:1;}
  #mmg-app #mm-grimoire .mm-ag-title{grid-column:2;grid-row:2;}
  #mmg-app #mm-grimoire .mm-ag-sub{grid-column:2;grid-row:3;}
  #mmg-app #mm-grimoire .mm-ag-when{grid-column:3;grid-row:1 / span 3;align-self:center;justify-self:end;}
}
/* Underlines: 0.2 x the text size below the text, everywhere (MDN / GOV.UK guidance) */
#mmg-app{text-underline-offset:.2em}

/* 2.1.102: "Don't have it?" replacements (replaces the old Explore More cards). Full-width rows, so long names never
   break mid-word, with the intentions each stand-in shares right under its name. Two columns on wide screens. */
#mmg-app #mm-grimoire .mm-detail-wrap .mm-swaps h2{display:block;margin-bottom:8px;line-height:1.2;overflow-wrap:break-word;}
#mmg-app #mm-grimoire .mm-swaps-intro{margin:0 0 16px;font:400 16px/1.55 var(--mm-font-body);color:var(--mm-muted);max-width:60ch;}
#mmg-app #mm-grimoire .mm-swap-list{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;margin:0;padding:0;list-style:none;}
#mmg-app #mm-grimoire .mm-swap-list>li{margin:0;padding:0;min-width:0;}
#mmg-app #mm-grimoire .mm-swap{position:relative;isolation:isolate;display:flex;align-items:center;gap:14px;box-sizing:border-box;height:100%;min-height:84px;padding:12px 12px 12px 14px;
  background:linear-gradient(180deg,var(--mm-card-gradient-top),var(--mm-card-gradient-bottom));border:var(--mm-border-width) solid var(--mm-outline-soft);border-radius:12px;color:var(--mm-fg);text-decoration:none;text-align:left;}
#mmg-app #mm-grimoire .mm-swap::after{content:"";position:absolute;inset:0;z-index:-1;border-radius:inherit;background:linear-gradient(180deg,#f2e7d0,#e8d8b9);opacity:0;transition:opacity .25s ease;pointer-events:none;}
#mmg-app #mm-grimoire .mm-swap-img{flex:0 0 56px;width:56px;height:56px;display:flex;align-items:center;justify-content:center;}
#mmg-app #mm-grimoire .mm-swap-img img{display:block;width:56px;height:56px;object-fit:contain;transition:transform .35s cubic-bezier(.2,.8,.3,1);}
#mmg-app #mm-grimoire .mm-swap-noimg{font-size:24px;color:var(--mm-muted);}
#mmg-app #mm-grimoire .mm-swap-text{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:2px;}
#mmg-app #mm-grimoire .mm-swap-cat{font:400 12px/1.3 var(--mm-font-body);letter-spacing:.1em;text-transform:uppercase;color:var(--mm-muted);}
#mmg-app #mm-grimoire .mm-swap-name{font:400 24px/1.15 var(--mm-font-heading);color:var(--mm-fg);overflow-wrap:break-word;word-break:normal;hyphens:manual;}
#mmg-app #mm-grimoire .mm-swap-shared{font:400 14px/1.4 var(--mm-font-body);color:var(--mm-fg-soft,var(--mm-muted));overflow-wrap:break-word;}
#mmg-app #mm-grimoire .mm-swap-go{flex:0 0 20px;width:20px;height:20px;color:var(--mm-muted);}
#mmg-app #mm-grimoire .mm-swap-go svg{display:block;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;}
#mmg-app #mm-grimoire .mm-swap:focus-visible{outline:2px solid var(--mm-selected-border);outline-offset:3px;}
#mmg-app #mm-grimoire .mm-swap:focus-visible::after{opacity:1;}
@media(hover:hover){#mmg-app #mm-grimoire .mm-swap:hover{border-color:#c7b294;}#mmg-app #mm-grimoire .mm-swap:hover::after{opacity:1;}#mmg-app #mm-grimoire .mm-swap:hover .mm-swap-img img{transform:scale(1.07);}}
@media(prefers-reduced-motion:reduce){#mmg-app #mm-grimoire .mm-swap-img img,#mmg-app #mm-grimoire .mm-swap::after{transition:none;transform:none!important;}}
#mmg-app #mm-grimoire .mm-swap-universal{display:flex;align-items:flex-start;gap:10px;margin:16px 0 0;padding:12px 16px;border:1px dashed var(--mm-outline-soft);border-radius:12px;font:400 16px/1.5 var(--mm-font-body);color:var(--mm-fg);}
#mmg-app #mm-grimoire .mm-swap-universal-mark{flex:none;color:var(--mm-muted);line-height:1.5;}
#mmg-app #mm-grimoire .mm-swap-universal a{color:var(--mm-fg);text-decoration:underline;}
@media(max-width:360px){#mmg-app #mm-grimoire .mm-swap{gap:10px;padding:10px;}#mmg-app #mm-grimoire .mm-swap-img,#mmg-app #mm-grimoire .mm-swap-img img{flex-basis:44px;width:44px;height:44px;}#mmg-app #mm-grimoire .mm-swap-name{font-size:21px;}}

/* 2.1.102: the date pill on your own notes always fits inside the paper. On narrow phones the board shows two notes
   side by side and the pill (15px text) was wider than the note, so the torn paper edge cut it off. The pill now
   shrinks with the note it sits on, and only wraps as a last resort on extremely narrow notes. */
#mmg-app #mm-grimoire #mm-board .mm-own-note{container-type:inline-size;container-name:mmnote;}
#mmg-app #mm-grimoire #mm-board .mm-own-note .mm-paper-pill{max-width:100%!important;box-sizing:border-box!important;}
@container mmnote (max-width:123px){
  #mmg-app #mm-grimoire #mm-board .mm-own-note .mm-paper-pill{font-size:13px!important;letter-spacing:0!important;padding:4px 10px!important;min-height:30px!important;}
}
@container mmnote (max-width:104px){
  #mmg-app #mm-grimoire #mm-board .mm-own-note{padding-right:10px!important;}
  #mmg-app #mm-grimoire #mm-board .mm-own-note .mm-paper-pill{font-size:12px!important;padding:3px 8px!important;min-height:28px!important;}
}
@container mmnote (max-width:86px){
  #mmg-app #mm-grimoire #mm-board .mm-own-note .mm-paper-pill{white-space:normal!important;text-align:center;line-height:1.3!important;}
}
#mmg-app #mm-grimoire .mm-swap-more{color:var(--mm-primary);white-space:nowrap;}
/* Rows follow Material Design's three-line list item: the picture and the arrow sit at the top (next to the name)
   instead of floating in the middle when the text runs to several lines. Shared intentions are supporting text. */
#mmg-app #mm-grimoire .mm-swap{align-items:flex-start;padding:14px 12px 14px 14px;}
#mmg-app #mm-grimoire .mm-swap-img{margin-top:2px;}
#mmg-app #mm-grimoire .mm-swap-go{align-self:flex-start;margin-top:22px;}
#mmg-app #mm-grimoire .mm-swap-shared{display:block;margin-top:4px;font:400 15px/1.45 var(--mm-font-body);color:var(--mm-fg);text-wrap:pretty;}
#mmg-app #mm-grimoire .mm-swap-label{color:var(--mm-muted);}
#mmg-app #mm-grimoire .mm-swap-more{color:var(--mm-primary);white-space:nowrap;}
#mmg-app #mm-grimoire .mm-swap-name{text-wrap:balance;}

/* 2.1.102: desktop reading width. Typography research recommends 16–20px body text on desktop with 50–75 characters
   per line; at full card width an entry's text ran to about 110 characters per line, which is what made it feel small
   and hard to follow. On wide screens the entry's content sits in a centred reading column instead (about 75
   characters per line at the existing 18px), and every interface text (chips, labels, menu) keeps one size everywhere. */
@media(min-width:1024px){
  #mmg-app #mm-grimoire .mm-detail-wrap>:is(.mm-hero,.mm-section){max-width:640px;margin-left:auto;margin-right:auto;box-sizing:border-box;}
}

/* 2.1.102: long entry names (e.g. Titanium Aura Quartz, Rhodochrosite) in the six "Today's Energy" tiles: names wrap
   in balanced lines and every picture in a row stays on the same line even when one name takes two lines. A name
   whose longest word wouldn't fit is made just small enough to fit (mmgFitWords in app.js), so no word is ever split. */
#mmg-app #mm-grimoire .mm-daily-earth .mm-daily-link{justify-content:flex-start;}
#mmg-app #mm-grimoire :is(.mm-daily-link-value,.mm-grid .mm-card h3,.mm-hero h1,.mm-pf-sig-name,.mm-sticker-name,.mm-moon-sky-link-value){text-wrap:balance;}
/* Collection cards: the name scales down only when its column is too narrow for the longest single word. */
#mmg-app #mm-grimoire .mm-grid .mm-card .mm-card-body{flex:1 1 0;min-width:0;container-type:inline-size;}
#mmg-app#mmg-app #mm-grimoire .mm-grid .mm-card h3{font-size:clamp(19px,16.5cqi,26px)!important;}
#mmg-app #mm-grimoire .mm-grid .mm-card .mm-card-row{flex:1 1 auto;min-width:0;width:100%;}

/* Another day is shown: no "new today" badges. */
#mmg-app #mm-grimoire .mm-daily-past .mm-daily-badge{display:none!important;}
#mmg-app #mm-grimoire .mm-daily-datenav{display:block;}
/* Long names over two lines: tight, even line spacing for big titles (was 1.65, the body-text spacing). */
#mmg-app#mmg-app #mm-grimoire .mm-hero h1{line-height:1.15!important;}
#mmg-app#mmg-app #mm-grimoire .mm-detail-wrap .mm-section>h2:not(.mm-category-subtitle){line-height:1.2;}
/* Card excerpts: short text in a card reads as one block when its lines sit closer together than the gap to the
   title above (proximity principle), so the line spacing is 1.45 instead of the long-text 1.65. */
#mmg-app#mmg-app #mm-grimoire .mm-grid .mm-card-sum,#mmg-app#mmg-app #mm-grimoire .mm-board-grid .mm-sticker-excerpt{line-height:1.45!important;}
/* "Back to today": the app's underlined text button, with the arrow pointing back in front of the words. */
/* Under the date: "See another day" (and "Back to today" while another day is shown), in the app's underlined
   text-button style, right next to the date they change. */
#mmg-app #mm-grimoire .mm-daily-daylinks{display:flex;flex-wrap:wrap;justify-content:center;gap:4px 20px;margin-top:4px;}
#mmg-app#mmg-app #mm-grimoire .mm-daily-heading .mm-daily-daylinks .mm-go{display:inline-flex;margin:0;min-height:40px;padding:0 6px;border:0;border-radius:8px;background:transparent;box-shadow:none;font:400 16px/1.3 var(--mm-font-body);align-items:center;cursor:pointer;}
#mmg-app#mmg-app #mm-grimoire .mm-go-cal,#mmg-app#mmg-app #mm-grimoire .mm-go-cal *{fill:none!important;}
#mmg-app #mm-grimoire .mm-go-cal{width:15px;height:15px;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;transform:none!important;}
#mmg-app #mm-grimoire .mm-go-arrow.mm-go-back{transform:scaleX(-1);}
@media(hover:hover){#mmg-app #mm-grimoire .mm-go:hover .mm-go-arrow.mm-go-back{transform:scaleX(-1) translateX(3px);}}
#mmg-app #mm-grimoire .mm-go:focus-visible .mm-go-arrow.mm-go-back{transform:scaleX(-1) translateX(3px);}
/* Replacement filters (same pills as the Grimoire's filters), "Show N more matches", and the universal stand-in, which
   uses the app's shared dashed container (the same dashes, corners and warm fill as "Discover Something New"). */
#mmg-app #mm-grimoire .mm-swap-filters{justify-content:flex-start;margin:0 0 16px;}
#mmg-app #mm-grimoire .mm-swap-list>li[hidden]{display:none;}
#mmg-app#mmg-app #mm-grimoire .mm-swap-more-btn{display:flex;width:max-content;min-height:44px;margin:8px auto 0;padding:0 8px;border:0;border-radius:8px;box-shadow:none;font:400 16px/1.3 var(--mm-font-body);align-items:center;cursor:pointer;}
#mmg-app #mm-grimoire .mm-go-arrow.mm-go-down{transform:rotate(180deg);}
@media(hover:hover){#mmg-app #mm-grimoire .mm-go:hover .mm-go-arrow.mm-go-down{transform:rotate(180deg) translateY(-3px);}}
#mmg-app #mm-grimoire .mm-swap.mm-swap-uni{margin-top:16px;height:auto;border:0;
  background:rgba(160,110,50,.09) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='100%25' height='100%25' rx='12' ry='12' fill='none' stroke='%238c755d' stroke-width='2.5' stroke-dasharray='7 6'/%3E%3C/svg%3E");}
#mmg-app #mm-grimoire .mm-swap.mm-swap-uni::after{background:rgba(160,110,50,.07);}
#mmg-app #mm-grimoire .mm-swap-uni .mm-swap-shared{color:var(--mm-fg);}
/* Room under the entry's last section ("about this category"), now that nothing follows it. */
#mmg-app #mm-grimoire .mm-detail-wrap>.mm-section:last-child{padding-bottom:12px;}
@media(min-width:901px){#mmg-app #mm-grimoire .mm-detail-wrap>.mm-section:last-child{padding-bottom:24px;}}
/* The zodiac category icon is a line drawing: it must never be filled (a selected Zodiac Signs pill turned it into a
   solid blob). This was already the case in 2.1.101. */
#mmg-app #mm-grimoire .mm-zodiac-icon,#mmg-app #mm-grimoire .mm-zodiac-icon *,#mmg-app .mm-cat .mm-zodiac-icon,#mmg-app .mm-cat .mm-zodiac-icon *{fill:none!important;}
/* One spacing rule for every "label / name / description" stack (Collection cards and replacements):
   6px between the small category label and the name, 8px between the name and the text under it (letter to letter). */
#mmg-app#mmg-app #mm-grimoire .mm-swap-text{gap:0;}
#mmg-app#mmg-app #mm-grimoire .mm-swap-name{margin:1px 0 0;line-height:1.25;}
#mmg-app#mmg-app #mm-grimoire .mm-swap-shared{margin-top:1.5px;}
#mmg-app#mmg-app #mm-grimoire .mm-grid .mm-card-body>h3{margin-top:1px;margin-bottom:0;}
#mmg-app#mmg-app #mm-grimoire .mm-grid .mm-card-sum{margin-top:1.5px;}
/* Counts in the category / filter pills: Lora's default "old-style" figures drop some digits (7, 9…) below the line,
   so counts looked misaligned next to their label. Lining figures sit exactly on the label's baseline. */
#mmg-app :is(.mm-cat,.mm-board-filter) :is(.mm-count,span){font-variant-numeric:lining-nums;font-feature-settings:"lnum" 1;}
/* The smaller count is centred in the pill, which left it 1px above the label's baseline: move it onto the baseline. */
#mmg-app :is(.mm-cat .mm-count,.mm-board-filter>span){position:relative;top:1px;}
/* Collection cards: names in the standard title font (Cardo), the same as section titles and replacement names. */
#mmg-app #mm-grimoire .mm-grid .mm-card h3{font-family:var(--mm-font-heading);}
@media(max-width:340px){#mmg-app#mmg-app #mm-grimoire .mm-pf-table .mm-daily-link{padding-left:2px!important;padding-right:2px!important;}}
/* Every icon button (save/bookmark on cards, entries and your Profile, Witch Tip save, share, (i), refresh…) uses the
   same soft hover square. */
@media(hover:hover){#mmg-app#mmg-app #mm-grimoire .mm-save:hover{background:var(--mm-tint,rgba(114,82,54,.08))!important;}}
/* "See another day": the note under the date field has the same 10px gap as the Birthday form's note. */
#mmg-app #mmg-support [data-day-form] input[type=date]{margin-bottom:10px;}
/* Collection grid: each row is as tall as its own tallest card (not the tallest card in the whole list, which gave
   every card the empty space of the longest one). Cards in a row still line up, content starts at the top.
   Two-line names use tight heading line spacing (1.1); the label / name / text gaps stay 6px and 8px. */
#mmg-app#mmg-app #mm-grimoire .mm-grid{grid-auto-rows:auto;}
@media(min-width:901px){#mmg-app#mmg-app #mm-grimoire .mm-grid .mm-card-link{align-items:flex-start;}}
#mmg-app#mmg-app #mm-grimoire .mm-grid .mm-card h3{line-height:1.1;}
#mmg-app#mmg-app #mm-grimoire .mm-grid .mm-card-body>h3{margin-top:2.75px;}
#mmg-app#mmg-app #mm-grimoire .mm-grid .mm-card-sum{margin-top:3.3px;}
#mmg-app#mmg-app #mm-grimoire .mm-swap-name{line-height:1.15;margin-top:2.4px;}
#mmg-app#mmg-app #mm-grimoire .mm-swap-shared{margin-top:2.8px;}
/* 2.1.106: profile Power Color / Signature Crystal / Lucky Herb names use the standard title font (Cardo), like the collection cards */
#mmg-app#mmg-app #mm-grimoire .mm-pf-sticker .mm-sticker-name{font-family:var(--mm-font-heading);}
/* 2.1.107: one shared card height in the Collection grid when cards sit side by side (set by the app from the content) */
#mmg-app#mmg-app #mm-grimoire .mm-grid>.mm-card{min-height:var(--mm-card-even,0px);}
