/* ---- style.css ---- */
/* ---- fonts.css ---- */
/* Self-hosted fonts (SIL Open Font License 1.1 / Apache 2.0). Downloaded from Google Fonts so the app never contacts Google. See credits.html. */
@font-face{font-family:'DM Sans';font-style:normal;font-weight:400;font-display:swap;src:url(fonts/dm-sans-normal-400-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'DM Sans';font-style:normal;font-weight:400;font-display:swap;src:url(fonts/dm-sans-normal-400-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'DM Sans';font-style:normal;font-weight:500;font-display:swap;src:url(fonts/dm-sans-normal-400-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'DM Sans';font-style:normal;font-weight:500;font-display:swap;src:url(fonts/dm-sans-normal-400-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'DM Sans';font-style:normal;font-weight:600;font-display:swap;src:url(fonts/dm-sans-normal-400-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'DM Sans';font-style:normal;font-weight:600;font-display:swap;src:url(fonts/dm-sans-normal-400-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'DM Sans';font-style:normal;font-weight:700;font-display:swap;src:url(fonts/dm-sans-normal-400-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'DM Sans';font-style:normal;font-weight:700;font-display:swap;src:url(fonts/dm-sans-normal-400-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Libre Baskerville';font-style:italic;font-weight:400;font-display:swap;src:url(fonts/libre-baskerville-italic-400-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Libre Baskerville';font-style:italic;font-weight:400;font-display:swap;src:url(fonts/libre-baskerville-italic-400-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Libre Baskerville';font-style:normal;font-weight:400;font-display:swap;src:url(fonts/libre-baskerville-normal-400-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Libre Baskerville';font-style:normal;font-weight:400;font-display:swap;src:url(fonts/libre-baskerville-normal-400-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Libre Baskerville';font-style:normal;font-weight:700;font-display:swap;src:url(fonts/libre-baskerville-normal-400-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Libre Baskerville';font-style:normal;font-weight:700;font-display:swap;src:url(fonts/libre-baskerville-normal-400-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Pixelify Sans';font-style:normal;font-weight:400;font-display:swap;src:url(fonts/pixelify-sans-normal-400-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Pixelify Sans';font-style:normal;font-weight:400;font-display:swap;src:url(fonts/pixelify-sans-normal-400-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Pixelify Sans';font-style:normal;font-weight:500;font-display:swap;src:url(fonts/pixelify-sans-normal-400-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Pixelify Sans';font-style:normal;font-weight:500;font-display:swap;src:url(fonts/pixelify-sans-normal-400-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Pixelify Sans';font-style:normal;font-weight:600;font-display:swap;src:url(fonts/pixelify-sans-normal-400-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Pixelify Sans';font-style:normal;font-weight:600;font-display:swap;src:url(fonts/pixelify-sans-normal-400-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Pixelify Sans';font-style:normal;font-weight:700;font-display:swap;src:url(fonts/pixelify-sans-normal-400-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Pixelify Sans';font-style:normal;font-weight:700;font-display:swap;src:url(fonts/pixelify-sans-normal-400-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Space Grotesk';font-style:normal;font-weight:400;font-display:swap;src:url(fonts/space-grotesk-normal-400-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Space Grotesk';font-style:normal;font-weight:400;font-display:swap;src:url(fonts/space-grotesk-normal-400-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Space Grotesk';font-style:normal;font-weight:500;font-display:swap;src:url(fonts/space-grotesk-normal-400-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Space Grotesk';font-style:normal;font-weight:500;font-display:swap;src:url(fonts/space-grotesk-normal-400-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Space Grotesk';font-style:normal;font-weight:600;font-display:swap;src:url(fonts/space-grotesk-normal-400-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Space Grotesk';font-style:normal;font-weight:600;font-display:swap;src:url(fonts/space-grotesk-normal-400-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Space Grotesk';font-style:normal;font-weight:700;font-display:swap;src:url(fonts/space-grotesk-normal-400-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Space Grotesk';font-style:normal;font-weight:700;font-display:swap;src:url(fonts/space-grotesk-normal-400-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Silkscreen';font-style:normal;font-weight:400;font-display:swap;src:url(fonts/silkscreen-normal-400-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Silkscreen';font-style:normal;font-weight:400;font-display:swap;src:url(fonts/silkscreen-normal-400-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Silkscreen';font-style:normal;font-weight:700;font-display:swap;src:url(fonts/silkscreen-normal-700-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Silkscreen';font-style:normal;font-weight:700;font-display:swap;src:url(fonts/silkscreen-normal-700-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Chakra Petch';font-style:italic;font-weight:400;font-display:swap;src:url(fonts/chakra-petch-italic-400-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Chakra Petch';font-style:italic;font-weight:400;font-display:swap;src:url(fonts/chakra-petch-italic-400-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Chakra Petch';font-style:normal;font-weight:400;font-display:swap;src:url(fonts/chakra-petch-normal-400-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Chakra Petch';font-style:normal;font-weight:400;font-display:swap;src:url(fonts/chakra-petch-normal-400-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Chakra Petch';font-style:normal;font-weight:600;font-display:swap;src:url(fonts/chakra-petch-normal-600-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Chakra Petch';font-style:normal;font-weight:600;font-display:swap;src:url(fonts/chakra-petch-normal-600-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Chakra Petch';font-style:normal;font-weight:700;font-display:swap;src:url(fonts/chakra-petch-normal-700-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Chakra Petch';font-style:normal;font-weight:700;font-display:swap;src:url(fonts/chakra-petch-normal-700-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-weight:400;font-display:swap;src:url(fonts/jetbrains-mono-normal-400-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-weight:400;font-display:swap;src:url(fonts/jetbrains-mono-normal-400-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-weight:500;font-display:swap;src:url(fonts/jetbrains-mono-normal-400-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-weight:500;font-display:swap;src:url(fonts/jetbrains-mono-normal-400-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-weight:700;font-display:swap;src:url(fonts/jetbrains-mono-normal-400-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-weight:700;font-display:swap;src:url(fonts/jetbrains-mono-normal-400-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Plus Jakarta Sans';font-style:normal;font-weight:400;font-display:swap;src:url(fonts/plus-jakarta-sans-normal-400-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Plus Jakarta Sans';font-style:normal;font-weight:400;font-display:swap;src:url(fonts/plus-jakarta-sans-normal-400-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Plus Jakarta Sans';font-style:normal;font-weight:500;font-display:swap;src:url(fonts/plus-jakarta-sans-normal-400-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Plus Jakarta Sans';font-style:normal;font-weight:500;font-display:swap;src:url(fonts/plus-jakarta-sans-normal-400-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Plus Jakarta Sans';font-style:normal;font-weight:600;font-display:swap;src:url(fonts/plus-jakarta-sans-normal-400-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Plus Jakarta Sans';font-style:normal;font-weight:600;font-display:swap;src:url(fonts/plus-jakarta-sans-normal-400-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Plus Jakarta Sans';font-style:normal;font-weight:700;font-display:swap;src:url(fonts/plus-jakarta-sans-normal-400-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Plus Jakarta Sans';font-style:normal;font-weight:700;font-display:swap;src:url(fonts/plus-jakarta-sans-normal-400-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Plus Jakarta Sans';font-style:normal;font-weight:800;font-display:swap;src:url(fonts/plus-jakarta-sans-normal-400-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Plus Jakarta Sans';font-style:normal;font-weight:800;font-display:swap;src:url(fonts/plus-jakarta-sans-normal-400-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}

:root{--bg:#f6f5ef;--paper:#fffef9;--ink:#273b32;--muted:#7c8276;--line:#e3e5da;--green:#304e3d;--lime:#e5edb7;--orange:#b86a41}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:'DM Sans',sans-serif;font-size:14px}button,input,textarea,select{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}a{color:inherit;text-decoration:none}button{border:0}button:focus-visible,a:focus-visible{outline:3px solid #ae793b;outline-offset:4px}.sidebar{position:fixed;inset:0 auto 0 0;width:222px;background:#eef0e7;border-right:1px solid var(--line);padding:35px 23px;display:flex;flex-direction:column}.brand{font-family:'Libre Baskerville',serif;font-size:37px;font-weight:bold;display:flex;align-items:center;gap:8px;letter-spacing:-2px}.brand-icon{font-family:serif;font-size:39px;color:#6a8456}.brand-dot{color:#c38a4a;margin-left:-8px}.chapter{font-size:9px;letter-spacing:2px;color:#888d7d;margin:46px 10px 17px}nav{display:grid;gap:7px}nav a{padding:13px 15px;display:flex;gap:13px;align-items:center;color:#737b6b;border-radius:7px;font-size:13px}nav a.active{background:#dfe5d3;color:#304b35;font-weight:700}nav a span{font-size:20px;width:23px}.sidebar-bottom{margin-top:auto;padding:20px 10px 0}.sidebar-bottom strong,.sidebar-bottom small{display:block}.sidebar-bottom small{font-size:11px;color:var(--muted);margin:8px 0}.level-icon{background:#e3e8cf;color:#70824a;border:1px solid #cfd8b9;width:38px;height:38px;border-radius:12px;display:grid;place-items:center;margin-bottom:12px;font-size:25px}.bar{height:5px;background:#e4e7d9;border-radius:9px;overflow:hidden}.bar i{display:block;height:100%;background:#81965d;width:0}.sidebar-bottom p{font-size:11px;color:#8c9283;line-height:1.8;margin:22px 0}.text-btn{background:none;padding:0;color:var(--muted);font-size:12px}.shell{margin-left:222px}header{height:82px;padding:0 44px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);font-size:10px;letter-spacing:1.8px;color:#828977}.status-dot{display:inline-block;width:6px;height:6px;background:#8d9e63;border-radius:100%;margin-right:10px}.header-right{display:flex;gap:26px;align-items:center;letter-spacing:.3px;font-size:12px}.avatar{border:1px solid #d7dfc7;background:#e6ebdc;color:#647a55;width:33px;height:33px;border-radius:50%;font-family:serif}main{max-width:1320px;margin:auto;padding:36px 44px 40px}.eyebrow{font-size:10px;letter-spacing:2px;color:#8b947e;font-weight:600;text-transform:uppercase}.page-heading{display:flex;justify-content:space-between;align-items:center;margin:9px 0 27px}h1,h2,h3{font-family:'Libre Baskerville',Georgia,serif;font-weight:400}h1{font-size:33px;letter-spacing:-1.3px;margin:10px 0}h2{font-size:22px;line-height:1.45;margin:12px 0}h3{font-size:17px;line-height:1.5;margin:0 0 8px}p{line-height:1.7}.subtitle{color:var(--muted);font-size:13px;margin:8px 0}.date{font-size:11px;color:#8a8e80;white-space:nowrap}.hero{position:relative;overflow:hidden;border-radius:12px;height:260px;background:#dfe7d0;border:1px solid #d7dfca}.hero canvas{width:100%;height:100%;image-rendering:pixelated}.hero-label{position:absolute;top:21px;left:24px;background:#f5f5e8e6;border:1px solid #cdd4bc;padding:8px 12px;border-radius:5px;font-size:9px;letter-spacing:1.6px}.hero-bottom{position:absolute;bottom:20px;left:24px;right:24px;display:flex;align-items:end;justify-content:space-between}.hero-caption{background:#f9faedec;border:1px solid #d3d9c4;padding:12px 16px;border-radius:7px;font-size:12px}.hero-caption small{display:block;color:#7a8667;font-size:10px;margin-top:5px}.pill{font-size:10px;border-radius:15px;padding:7px 12px;background:#f7f8eddf;color:#546b45}.grid{display:grid;grid-template-columns:1.55fr 1fr;gap:22px;margin-top:25px}.card{background:var(--paper);border:1px solid var(--line);border-radius:10px;padding:24px}.card-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.card-head h3{margin:0}.card-head a,.card-head button{font-size:11px;color:#768965;background:none}.read-card{position:relative;background:#fcfbf3}.tag{display:inline-block;padding:5px 8px;font-size:9px;border-radius:4px;background:#edf0df;color:#7a865f;letter-spacing:.8px}.read-card h2{max-width:340px;margin:17px 0 12px;font-size:25px}.read-card p{max-width:350px;color:#858779;font-size:12px}.read-bottom{display:flex;align-items:center;justify-content:space-between;margin-top:25px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;background:var(--green);color:#fffef5;padding:12px 18px;border-radius:6px;font-size:12px}.btn.secondary{background:#eef0e3;color:#526642;border:1px solid #dce1cd}.btn.light{background:#f9faef;color:#3f573d}.btn.danger{background:#9e5947}.reading-progress{font-size:10px;color:#888e7c;width:130px}.reading-progress .bar{margin-top:8px}.task-row{display:flex;align-items:center;gap:12px;border-bottom:1px solid #eeeee5;padding:13px 0}.task-row:last-child{border:0}.task-row input{appearance:none;width:17px;height:17px;border:1px solid #c9cfbd;border-radius:5px;flex-shrink:0;cursor:pointer}.task-row input:checked{background:#6f8556;border-color:#6f8556}.task-row input:checked:after{content:'✓';color:white;display:block;font-size:13px;text-align:center}.task-row .task-copy{flex:1;font-size:12px;line-height:1.5}.task-row small{display:block;color:#939786;font-size:9px;margin-top:5px}.task-row.done .task-copy{text-decoration:line-through;color:#92998a}.task-row button{background:none;color:#8b947f}.task-add{background:none;color:#84936c;font-size:11px;padding:16px 0 0}.bottom-grid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:22px;margin-top:22px}.mini{padding:20px;min-height:164px}.mini .eyebrow{font-size:9px}.mini h3{font-size:17px;margin:14px 0 8px}.mini p{font-size:11px;color:#888e7c;margin:0}.mini a{display:inline-block;margin-top:15px;font-size:11px;color:#657b4f}.focus-card{background:#edf0e2;position:relative}.focus-card .timer-small{font-family:Georgia,serif;font-size:35px;letter-spacing:1px;margin:12px 0 3px}.quote{text-align:center;margin-top:31px;color:#8e9683;font-family:Georgia,serif;font-style:italic;font-size:12px}footer{max-width:1320px;margin:auto;padding:19px 44px;border-top:1px solid var(--line);display:flex;justify-content:space-between;font-size:9px;color:#9a9d90}footer span:last-child{letter-spacing:1.6px}input,select,textarea{border:1px solid #dce1d0;border-radius:6px;background:#fffef9;color:var(--ink);padding:12px;width:100%;outline-color:#93a576}label{display:block;font-size:12px;color:#738267;margin:15px 0 7px}textarea{resize:vertical;min-height:120px;line-height:1.8}.form-row{display:flex;gap:12px;align-items:center}.form-row>*{flex:1}.stack{display:grid;gap:18px}.note-layout{display:grid;grid-template-columns:240px 1fr;gap:20px}.note-item{display:block;background:none;padding:17px 12px;text-align:left;width:100%;border-bottom:1px solid var(--line);color:var(--ink)}.note-item.active{background:#eaf0de;border-radius:6px}.note-item small{display:block;color:var(--muted);margin-top:7px;font-size:10px}.note-editor{min-height:420px;border:0;font-family:Georgia,serif;font-size:17px;line-height:1.9;padding:18px 0}.note-title{border:0;border-bottom:1px solid var(--line);font-family:Georgia,serif;font-size:26px;padding:8px 0 20px}.muted{color:var(--muted);font-size:12px}.reader-layout{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:25px}.reader{padding:40px 45px}.reader h1{font-size:32px;line-height:1.4}.reading-text{font-family:Georgia,serif;font-size:19px;line-height:1.95;white-space:pre-wrap}.reader-tools{display:flex;gap:10px;align-items:center;margin:20px 0}.reader-tools button{background:#eef0e4;padding:9px;border-radius:5px;color:#52633e}.timer-card{text-align:center;max-width:650px;margin:25px auto;padding:45px}.timer-ring{width:260px;height:260px;border:8px solid #e1e7d2;outline:1px solid #cad6b7;outline-offset:12px;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;margin:38px auto}.timer-ring strong{font-size:60px;font-family:Georgia,serif;font-weight:400;font-variant-numeric:tabular-nums}.timer-ring small{font-size:10px;letter-spacing:2px;color:#879574;margin-top:9px}.timer-actions{display:flex;justify-content:center;gap:12px}.timer-presets{display:flex;justify-content:center;gap:10px}.timer-presets button{padding:9px 18px;border-radius:20px;background:#eaf0de;color:#586b44}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin:25px 0}.stat strong{display:block;font-family:Georgia,serif;font-size:38px;margin:15px 0}.session{padding:14px 0;border-bottom:1px solid var(--line);display:flex;justify-content:space-between}.world-card{padding:0;overflow:hidden}.world-card canvas{display:block;width:100%;image-rendering:pixelated}.world-controls{display:flex;gap:12px;flex-wrap:wrap;padding:18px;background:#f1f3e8}.game-frame{width:100%;height:640px;border:0;border-radius:10px;background:#100b1e}.construction{display:flex;gap:15px;align-items:center}.construction .building-icon{font-size:30px;background:#e7ebd8;padding:18px;border-radius:10px}.construction .btn{margin-left:auto}.empty{padding:30px;text-align:center;color:#8a927c}.ai-empty{max-width:720px;margin:30px auto;text-align:center;padding:45px}.ai-star{font-size:55px;color:#9ca575}.badge{display:inline-block;font-size:10px;padding:7px 12px;border-radius:20px;background:#f4ead7;color:#9a7749}.notice{padding:13px 16px;background:#f0f2e7;border-radius:6px;font-size:12px;color:#7a836d;margin:18px 0}dialog{border:1px solid var(--line);border-radius:12px;padding:30px;width:min(500px,94vw);color:var(--ink);background:var(--paper)}dialog::backdrop{background:#152a2266;backdrop-filter:blur(3px)}dialog h2{margin-top:0}dialog .actions{display:flex;gap:10px;justify-content:flex-end;margin-top:22px}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%) translateY(100px);background:#2e4939;color:#fff;padding:13px 23px;border-radius:8px;z-index:20;transition:transform .2s;max-width:90vw;box-shadow:0 5px 25px #0002}#toast.show{transform:translateX(-50%) translateY(0)}.mobile-pad{display:flex;gap:8px}.mobile-pad button{padding:12px;background:#dce5ce;color:#415633;border-radius:5px}.danger-zone{margin-top:30px}.book-icon{float:right;font-size:62px;color:#b6bf9b;transform:rotate(-12deg);margin:15px}.save-status{font-size:10px;color:#859675;margin-top:10px}.section-title{margin:26px 0 18px}.inline{display:inline}.chart{display:flex;gap:14px;height:150px;align-items:end;padding-top:20px}.chart-col{flex:1;text-align:center;height:100%;display:flex;flex-direction:column;justify-content:end;gap:10px;font-size:10px;color:#8a967c}.chart-col i{display:block;background:#adbf8a;border-radius:5px 5px 0 0;min-height:3px}.hidden{display:none!important}@media(min-width:1500px){.hero{height:320px}main{padding-top:45px}}@media(max-width:1100px){main{padding:28px}.sidebar{width:190px;padding:30px 16px}.shell{margin-left:190px}header{padding:0 28px}.grid{grid-template-columns:1.2fr 1fr}.bottom-grid{gap:12px}.card{padding:20px}.reader-layout{grid-template-columns:1fr}.reader-layout>aside{display:grid;grid-template-columns:1fr 1fr;gap:20px}.date{display:none}}@media(max-width:760px){.sidebar{position:sticky;top:0;width:100%;height:auto;z-index:10;flex-direction:row;padding:10px 15px;align-items:center;justify-content:space-between;box-shadow:0 2px 12px #00000008}.brand{font-size:25px}.brand-icon{font-size:27px}.chapter,.sidebar-bottom{display:none}nav{display:flex;gap:0}nav a{padding:9px;font-size:0}nav a span{font-size:19px;width:auto}.shell{margin:0}header{height:55px;padding:0 20px;font-size:8px;letter-spacing:1px}.header-right{gap:12px;font-size:10px}main{padding:24px 18px}.page-heading{margin-bottom:20px}h1{font-size:28px}.hero{height:230px}.hero-label{left:14px;top:14px}.hero-bottom{left:14px;right:14px}.hero-bottom>.pill{display:none}.hero-caption{font-size:11px;padding:10px}.grid,.bottom-grid{grid-template-columns:1fr}.bottom-grid{gap:14px}.mini{min-height:130px}.read-card h2{font-size:24px}.note-layout{grid-template-columns:1fr}.note-list{display:flex;overflow:auto}.note-item{min-width:160px}.reader{padding:25px}.reader-layout>aside{display:block}.timer-card{padding:25px 15px}.timer-ring{width:215px;height:215px}.timer-ring strong{font-size:50px}.stats{gap:9px}.stat{padding:15px}.stat strong{font-size:29px}.construction{flex-wrap:wrap}.game-frame{height:480px}footer{padding:18px;font-size:8px}footer span:last-child{letter-spacing:.5px}.form-row{flex-wrap:wrap}.ai-empty{padding:25px}.reader h1{font-size:27px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
@media(max-width:480px){.sidebar{flex-wrap:wrap;gap:9px;padding:10px 12px}.brand{margin:auto}nav{width:100%;justify-content:space-between}nav a{padding:7px 10px}.header-right{gap:8px}.page-heading{gap:12px;align-items:flex-start}.page-heading>.btn{padding:10px;font-size:10px}.reader-tools{flex-wrap:wrap}.reader-tools select{flex-basis:100%}.read-bottom{gap:12px}.reading-progress{width:100px}.note-editor{font-size:16px}}

[hidden]{display:none!important}

.family-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:8px 0;border-bottom:1px solid var(--line,#e3e5da)}.family-row .text-btn{margin-left:10px}

/* Cloud backup size note (Settings → Cloud & recovery) */
.cloud-size{font-size:14px;opacity:.85;margin:.4em 0}.cloud-size.warn{opacity:1;border-left:3px solid #d9aa62;padding-left:10px}
/* ---- gamify.css ---- */

:root{--bg:#101d22;--paper:#192b2e;--ink:#eceddb;--muted:#a0b3a9;--line:#34484a;--green:#e2b867;--lime:#b4ce9c;--orange:#d9aa62}body{font-family:'Space Grotesk','DM Sans',sans-serif;background-color:var(--bg);background-image:radial-gradient(#71908018 1px,transparent 1px);background-size:24px 24px;color:var(--ink)}.sidebar{background:#122327;border-right:1px solid #354649;width:230px;padding:28px 21px}.brand{font-family:'Pixelify Sans',monospace;font-size:43px;letter-spacing:-2px;color:#f1e5bc}.brand-icon,.brand-dot{color:#dcbb72}.chapter{color:#91a59b;font-family:monospace;font-size:9px;margin-top:39px;letter-spacing:1.7px}nav a{color:#9eb0a6;border:1px solid transparent;border-radius:3px;font-size:12px;padding:12px;gap:12px}nav a span{color:#859f96}nav a:hover{background:#20363a;color:#f2e4c4}nav a.active{color:#f0d596;background:#31413a;border-color:#6b6547;box-shadow:inset 3px 0 #dbb768}nav a.active span{color:#e3bd6c}.sidebar-bottom{border-top:1px solid #334547;padding-top:20px}.level-icon{background:#283b3d;border:1px solid #53695e;border-radius:3px;width:50px;height:55px;float:left;margin-right:11px}.level-icon img{height:45px;image-rendering:pixelated}.sidebar-bottom strong{padding-top:5px;font-size:11px}.sidebar-bottom small{font-family:monospace;font-size:10px;color:#d9c28d}.sidebar-bottom>.bar{clear:both;margin-top:25px}.sidebar-bottom p{font-family:monospace;font-size:9px;letter-spacing:1px;color:#829c91}.shell{margin-left:230px}header{height:74px;background:#122327d9;border-bottom:1px solid #33484a;font-family:monospace;color:#9cb3a4;letter-spacing:1px}.status-dot{border-radius:0;background:#b9ce9a;box-shadow:0 0 10px #bddda044}.header-right{font-family:'Space Grotesk',sans-serif;color:#eed397;gap:15px}.header-right>span{background:#26352f;border:1px solid #595c43;padding:8px 12px;border-radius:3px}.avatar{border-radius:3px;background:#2b3a3c;border-color:#677063;width:35px;height:38px}.avatar img{height:32px;image-rendering:pixelated}.eyebrow{font-family:monospace;font-size:9px;letter-spacing:1.7px;color:#a8bca9}h1,h2,h3{font-family:'Space Grotesk',sans-serif}h1{font-size:32px;font-weight:600;letter-spacing:-1.2px}.subtitle{color:#9aafa4;font-size:12px}.page-heading{margin-bottom:25px}.date{border:1px solid #4e594c;padding:9px;color:#d2bf91;border-radius:3px;font-family:monospace;font-size:9px}.card{background:linear-gradient(120deg,#1e3234,#182a2e);border:1px solid #40524d;border-radius:5px;box-shadow:0 4px 0 #0b171b55,inset 0 1px #7d907315;padding:23px;position:relative}.card:before{content:'';width:6px;height:6px;position:absolute;top:-1px;left:-1px;background:#9b9b6a}.card-head h3{font-size:18px;font-weight:500}.card-head a,.card-head button{color:#d1bb81}.tag{background:#32473c;border:1px solid #52684a;border-radius:2px;color:#bdd09e;font-family:monospace;font-size:9px}.btn{background:#dfb66b;color:#24302b;border:1px solid #f2ce8c;border-bottom:3px solid #a88649;border-radius:3px;box-shadow:0 3px 0 #0b171b66;font-weight:700;font-size:11px;transition:transform .15s,filter .15s}.btn:hover{filter:brightness(1.09);transform:translateY(-2px)}.btn:active{transform:translateY(1px);box-shadow:none}.btn.secondary{background:#2a4140;color:#d8e1bf;border:1px solid #607364;border-bottom:3px solid #142528}.btn:disabled{opacity:.45;transform:none}.bar{background:#0d1c20;border:1px solid #415848;height:8px;border-radius:1px}.bar i{background:repeating-linear-gradient(90deg,#a8bd79 0,#a8bd79 12px,#879f62 12px,#879f62 14px);box-shadow:0 0 8px #b3c87a33}.adventure-layout{display:grid;grid-template-columns:minmax(0,1fr) 225px;gap:20px}.hero{height:330px;background:#8ea98e;border:2px solid #657c63;border-radius:5px;box-shadow:0 5px #08171c66}.hero canvas{height:100%;filter:saturate(.85) brightness(.8)}.hero-vignette{position:absolute;inset:0;background:linear-gradient(180deg,#182d3422 30%,#102a2c3d 55%,#10272dec 100%);pointer-events:none}.hero-label{top:15px;left:15px;right:15px;background:#173034eb;color:#e0e5bf;border:1px solid #738667;padding:10px;font-family:monospace;font-size:9px;letter-spacing:1px;border-radius:2px}.live-pixel{display:inline-block;width:6px;height:6px;background:#bed183;box-shadow:0 0 9px #c3da8c;margin-right:6px}.region-code{float:right;font-size:8px;color:#9fb6a2}.hero-bottom{bottom:21px;left:22px;right:22px;gap:12px}.hero-bottom h2{font-family:'Pixelify Sans',monospace;font-size:34px;line-height:1.05;font-weight:500;margin:9px 0;color:#fff1cb;letter-spacing:-.7px}.hero-bottom p{font-size:10px;color:#b4c5b0;margin:10px 0 0}.hero-bottom .eyebrow{font-size:8px;color:#cecd97}.hero-bottom .btn{white-space:nowrap;padding:11px}.map-pin{position:absolute;top:36%;font-size:17px;background:#f3df9c;color:#293d34;padding:6px 9px;border:2px solid #516c52;box-shadow:3px 3px #142c2a55}.map-pin:after{content:'';position:absolute;bottom:-7px;left:11px;width:8px;height:8px;background:#f3df9c;transform:rotate(45deg)}.map-pin span{position:absolute;top:-20px;left:50%;transform:translateX(-50%);white-space:nowrap;font-family:monospace;font-size:8px;color:#faf5d6;text-shadow:1px 1px #1d352c}.library-pin{left:37%;top:31%}.camp-pin{left:21%;top:43%}.character-card{border:1px solid #5c6450;background:radial-gradient(ellipse at 50% 25%,#394b3c,#1a2c2e 65%);padding:18px 17px;text-align:center;border-radius:5px;box-shadow:0 5px #08171c66}.character-card>.eyebrow{text-align:left;font-size:8px;color:#b8c2a2}.online-light{float:right;color:#b5cf82}.portrait{height:123px;position:relative;display:flex;align-items:center;justify-content:center}.portrait-halo{position:absolute;width:85px;height:85px;border:1px solid #7b885966;transform:rotate(45deg);background:radial-gradient(#c5b77933,transparent);box-shadow:0 0 0 8px #9b9f5b0c}.portrait img{height:100px;width:80px;image-rendering:pixelated;z-index:1;filter:drop-shadow(0 6px 0 #142723);animation:idle 3s ease-in-out infinite}.level-badge{position:absolute;bottom:0;z-index:2;background:#e3bd73;border:2px solid #1d302b;font-family:monospace;font-size:9px;padding:3px 9px;color:#25382f;box-shadow:0 2px #0003}.character-card h3{margin:12px 0 3px;font-size:18px;font-weight:600}.class-tag{font-family:monospace;font-size:7px;color:#c4c394;letter-spacing:1px}.xp-detail{display:flex;justify-content:space-between;margin:17px 0 7px;font-size:8px;color:#b3bca2}.xp-detail strong{color:#d1dca5;font-family:monospace}.next-level{font-family:monospace;font-size:8px;text-align:right;color:#8d9c8e;margin:5px 0 13px}.inventory{display:grid;grid-template-columns:repeat(3,1fr);padding-top:11px;border-top:1px solid #4a5c49;gap:7px}.inventory>div{display:flex;flex-direction:column;align-items:center;gap:3px}.inventory span{font-size:13px;color:#c6b879}.inventory strong{font-family:monospace;font-size:14px;font-weight:500}.inventory small{font-family:monospace;color:#94a598;font-size:6px;letter-spacing:.3px}.journey-strip{margin:19px 0 4px;display:flex;justify-content:space-between;align-items:center;padding:12px 18px;background:#142529;border:1px solid #344a45;border-radius:3px;gap:8px}.journey-step{display:flex;align-items:center;gap:8px;color:#9db0a2;font-size:10px;white-space:nowrap}.journey-step b{border:1px solid #5c6750;background:#2c3e32;color:#c9cc8e;font-family:monospace;font-size:8px;font-weight:400;padding:4px}.journey-strip i{color:#4b6353;letter-spacing:2px}.grid{margin-top:20px;gap:20px;grid-template-columns:1.3fr 1fr}.read-card{background:linear-gradient(110deg,#293d36,#1b3030);border-color:#687358}.read-card:before{background:#d8c48c}.read-card h2{font-size:24px;font-weight:500;line-height:1.35;max-width:350px;color:#f2e9cf}.read-card p{color:#a8b7a2;font-size:11px}.book-icon{font-size:75px;color:#b9c295;text-shadow:5px 5px #0f2426;opacity:.6;margin:28px 2px 0 10px}.rarity{font-family:monospace;font-size:7px;color:#d5c38b;letter-spacing:1px}.reading-progress{color:#a5b89c}.task-row{border-color:#32494a;padding:14px 0}.task-row .task-copy{font-size:11px;color:#d6ddc9}.task-row small{color:#8ca397;font-size:9px}.task-row input{border-radius:1px;border:1px solid #9a9b6d;background:#12262a;width:18px;height:18px}.task-row input:checked{background:#b6c584;border-color:#d7d6a6}.task-row input:checked:after{color:#253b2a}.task-row.done .task-copy{color:#7c9885}.task-row button{color:#82998d}.task-add{color:#cebd84;font-family:monospace;font-size:10px}.quest-card h3{margin-top:7px}.quest-card .card-head{margin-bottom:5px}.quest-count{font-family:'Pixelify Sans',monospace;color:#e5ce8b;font-size:27px}.quest-count small{font-size:15px;color:#7e9a89}.bottom-grid{gap:20px;margin-top:20px}.mini h3{font-size:17px;font-weight:500;color:#e5e5c9}.mini p{color:#a1b19d;font-size:10px}.mini a,.expedition-link{color:#ddc486;background:none;font-size:10px;margin-top:17px;display:inline-block;padding:0}.focus-card{background:linear-gradient(120deg,#354336,#243730);border-color:#737851;overflow:hidden}.focus-card .timer-small{font-family:'Pixelify Sans',monospace;color:#f4dea6;font-size:41px}.mini-orb{position:absolute;right:22px;top:49px;font-size:58px;color:#d3c48433;text-shadow:0 0 35px #d4c97755}.achievement-shelf{margin-top:30px;border-top:1px solid #3c5149;padding-top:23px}.achievement-shelf h3{font-size:17px;margin-top:8px}.achievement-row{display:grid;grid-template-columns:repeat(6,1fr);gap:12px}.achievement{text-align:center;padding:14px 7px}.achievement-emblem{margin:0 auto 13px;width:52px;height:52px;background:#263b3b;border:1px solid #5c7261;outline:1px solid #374e44;outline-offset:4px;display:grid;place-items:center;transform:rotate(0);position:relative;color:#7f9a88;font-size:25px;box-shadow:3px 3px #0c1b20}.achievement-emblem span{position:absolute;right:-5px;bottom:-5px;background:#1a2d2e;font-size:10px;padding:3px;border:1px solid #61735b}.achievement strong{display:block;font-size:10px;font-weight:500;color:#b0bda9}.achievement small{display:block;margin-top:6px;font-family:monospace;font-size:7px;line-height:1.6;color:#819b8a}.achievement.earned .achievement-emblem{background:#44513a;border-color:#c8b16b;color:#e4c979;box-shadow:0 0 22px #d7bb6520}.achievement.earned strong,.achievement.earned small{color:#ddc587}.achievement-gallery{padding:20px;background:#192c2f;border:1px solid #40574d;border-radius:4px;margin:25px 0}.pill{border:1px solid #796d47;border-radius:3px;background:#303e30;color:#e5cf8c;font-family:monospace}.timer-card{border-color:#667454;background:radial-gradient(ellipse at top,#344635,#182b2f 70%)}.training-avatar{margin:20px auto -20px}.training-avatar img{height:65px;image-rendering:pixelated}.timer-ring{border-radius:50%;background:radial-gradient(#334834,#182e2e);border:5px solid #9ba66b;outline-color:#4a624b;box-shadow:0 0 0 7px #243931,0 0 50px #9bba4a12}.timer-ring strong{font-family:'Pixelify Sans',monospace;color:#f5df9f}.timer-ring small{font-family:monospace;color:#b5c48c;font-size:8px}.timer-presets button{border:1px solid #66785b;background:#304532;color:#d7d5a6;border-radius:3px;font-family:monospace}.timer-presets button:hover{background:#40563b}.muted,label{color:#a3b6a8}input,select,textarea{background:#11262a;color:#dfe5d2;border:1px solid #4a6356;border-radius:3px;outline-color:#c4b474}input::placeholder,textarea::placeholder{color:#869e92}.note-item{color:#cbd6bd;border-color:#384e44}.note-item.active{background:#3b4d38;color:#e9d9ab;border-left:3px solid #dbb974;border-radius:0}.note-item small{color:#9bae92}.note-layout>section,.reader{background:#f1ecd8;color:#354237;border-color:#b7ac7e;box-shadow:inset 0 0 40px #98874c0b,0 5px #07171a55}.note-title,.note-editor,.note-layout>section input{background:transparent;color:#354237;border-color:#cec5a5}.note-layout>section label{color:#6d785e}.reader h1{font-family:'Libre Baskerville',Georgia,serif;font-size:29px}.reader h3{font-family:Georgia,serif;color:#667257;font-size:18px}.reader .tag{background:#dce2c5;color:#5d714b;border-color:#bdc7a1}.reader .reading-text{color:#3d4839}.reader .btn.secondary{background:#dfe2c9;color:#465d3f;border-color:#bcc6a0}.reader-tools button{background:#2b423a;color:#d9d7a6;border:1px solid #5b7155;border-radius:2px}.notice{background:#243a34;border:1px solid #456047;color:#b0c0a2;border-radius:3px}.badge{background:#3e3d2b;border:1px solid #756d43;color:#decc92;border-radius:3px;font-family:monospace;font-size:9px}.ai-star{color:#d4c079}.stat strong{font-family:'Pixelify Sans',monospace;color:#dfca8d}.session{border-color:#384f47}.chart-col{color:#a2b59d}.chart-col i{background:repeating-linear-gradient(0deg,#9daf73 0,#9daf73 8px,#7e9962 8px,#7e9962 10px);border:1px solid #b7c58c;border-radius:2px 2px 0 0}.building-icon{background:#314735!important;border:1px solid #6b8057;color:#d9c783;border-radius:3px!important}.world-controls{background:#1b3032;border-top:1px solid #4f6753}.mobile-pad button{background:#344b3b;color:#d8d8a5;border:1px solid #6c7e59;border-radius:2px}.text-btn{color:#a9ba9e}.empty{color:#9cad9d}.save-status{color:#788958}dialog{background:#1d3233;border:2px solid #a89a65;border-radius:4px;box-shadow:8px 8px #07151bbb}dialog::backdrop{background:#07171bba}.btn.danger{background:#b17459}footer{border-color:#324a43;color:#7e978b}#toast{background:#2e4436;border:1px solid #b2ad70;border-bottom:3px solid #78844f;color:#f3e4b8;border-radius:3px;box-shadow:5px 5px #07171b99;font-family:monospace;font-size:12px}button:focus-visible,a:focus-visible{outline:2px solid #e2c779;outline-offset:4px}@keyframes idle{0%,100%{transform:translateY(0)}50%{transform:translateY(-4px)}}@media(min-width:1500px){.hero{height:350px}.character-card{padding:20px}.portrait{height:135px}}@media(max-width:1150px){.sidebar{width:195px;padding:25px 15px}.shell{margin-left:195px}.adventure-layout{grid-template-columns:minmax(0,1fr) 200px;gap:15px}.hero-bottom{display:block}.hero-bottom h2{font-size:29px}.hero-bottom .btn{margin-top:12px}.hero-bottom p{display:none}.hero-bottom .eyebrow{font-size:7px}.hero{height:330px}.journey-step{font-size:8px;gap:5px}.journey-strip{padding:10px}.journey-strip i{letter-spacing:0}.grid{gap:15px}.rarity{display:none}.bottom-grid{gap:15px}.mini{padding:18px}.read-card h2{font-size:22px}.book-icon{font-size:50px}}@media(max-width:900px){.adventure-layout{grid-template-columns:1fr}.hero{height:300px}.hero-bottom{display:flex}.hero-bottom .btn{margin-top:0}.character-card{display:grid;grid-template-columns:80px 1fr 1fr;text-align:left;gap:0 15px;align-items:center;padding:15px}.character-card>.eyebrow{grid-column:2;grid-row:1}.portrait{grid-column:1;grid-row:1/5;height:100px}.portrait img{height:85px}.portrait-halo{width:60px;height:60px}.character-card h3{grid-column:2;grid-row:2;margin:6px 0}.class-tag{grid-column:2;grid-row:3}.xp-detail{grid-column:2;grid-row:4;margin:6px 0;font-size:7px}.character-card>.bar{grid-column:2;grid-row:5}.next-level{display:none}.inventory{grid-column:3;grid-row:1/6;border:0;border-left:1px solid #4a5c49;padding:10px;gap:10px;display:flex;flex-direction:column}.inventory>div{flex-direction:row;width:100%;gap:10px}.inventory small{margin-left:auto}.achievement-row{grid-template-columns:repeat(3,1fr)}.grid{grid-template-columns:1fr}.bottom-grid{grid-template-columns:repeat(3,1fr)}.journey-strip i{display:none}.mini h3{font-size:14px}.mini-orb{display:none}}@media(max-width:760px){.sidebar{width:100%;padding:12px 16px;background:#14272a;border-bottom:1px solid #4b6050}.brand{font-size:29px}.brand-icon{font-size:28px}.shell{margin-left:0}nav a{font-size:0;padding:8px;border-radius:2px}nav a span{font-size:19px}.chapter{display:none}.sidebar-bottom{display:none}header{height:57px;font-size:8px}main{padding:25px 18px}h1{font-size:28px}.hero-bottom h2{font-size:30px}.hero-bottom .btn{font-size:9px}.hero{height:300px}.card{padding:21px}.mini{padding:16px}.read-card h2{font-size:25px;max-width:370px}.journey-strip{flex-wrap:wrap;gap:12px;justify-content:space-around}.journey-step{font-size:9px}.bottom-grid{grid-template-columns:1fr 1fr}.bottom-grid>.mini:last-child{grid-column:1/-1}.achievement-row{gap:14px}.note-layout>section{padding:23px}.date{display:none}.reader-layout>aside>.card{margin-top:15px}}@media(max-width:480px){.sidebar{justify-content:center;gap:8px}.brand{font-size:28px}nav a{padding:7px 9px}nav a span{font-size:18px}.page-heading{display:block}.page-heading>.btn{margin-top:12px}h1{font-size:27px}.hero{height:320px}.hero-bottom{display:block;left:17px;bottom:17px}.hero-bottom h2{font-size:30px}.hero-bottom .btn{margin-top:12px;font-size:10px}.hero-label{font-size:8px;left:10px;right:10px}.region-code{font-size:7px}.character-card{grid-template-columns:66px 1fr;gap:0 14px}.character-card>.eyebrow{font-size:7px}.inventory{grid-column:1/-1;grid-row:6;flex-direction:row;border:0;border-top:1px solid #4a5c49;margin-top:15px;padding:13px 0 0}.inventory>div{flex-direction:column;gap:3px}.inventory small{margin:0;font-size:7px}.portrait img{height:77px}.journey-strip{display:grid;grid-template-columns:1fr 1fr;padding:12px 17px}.journey-step{font-size:9px}.bottom-grid{grid-template-columns:1fr}.bottom-grid>.mini:last-child{grid-column:auto}.mini{min-height:150px;padding:20px}.mini h3{font-size:19px}.mini p{font-size:11px}.mini-orb{display:block}.achievement-shelf h3{font-size:15px}.achievement{padding:14px 2px}.achievement-emblem{width:44px;height:44px;font-size:22px}.achievement strong{font-size:9px}.achievement small{font-size:7px}.read-card h2{font-size:24px}.book-icon{font-size:50px}.reading-progress{width:100px}.reader{padding:23px}.reader h1{font-size:25px}.card-head{gap:10px}}@media(prefers-reduced-motion:reduce){.portrait img{animation:none}.btn:hover{transform:none}}
/* ---- city.css ---- */

.pixel-city{margin-top:28px}.pixel-city .card-head,.pixel-construction .card-head{display:flex;justify-content:space-between;align-items:center;gap:16px}.pixel-city h2,.pixel-construction h2{margin:8px 0}.city-stage{background:radial-gradient(ellipse at 50% 40%,#354b49,#13272d 75%);border:2px solid #4b6258;margin:20px 0;overflow:hidden}.city-stage canvas{display:block;width:100%;height:510px;image-rendering:pixelated}.city-stage.world-at-night{background:#0c1925}.city-controls{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.city-landmarks{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:20px}.city-landmarks button{white-space:normal;text-align:left}.city-landmarks small{display:block;margin-top:7px;opacity:.7}.city-empty{padding:16px;border:1px dashed #8b9c79;color:#dfd5b2}.focus-build-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,.9fr);gap:22px}.focus-build-layout>.page-heading{grid-column:1/-1}.pixel-construction{align-self:start}.pixel-construction canvas,#landmark-canvas{width:100%;height:auto;display:block;image-rendering:pixelated;border:2px solid #617668;margin:18px 0}.pixel-construction p{font-size:13px;line-height:1.7}.pixel-construction select{width:100%}.focus-build-layout .timer-card{width:100%;max-width:none}.focus-build-layout .training-avatar{display:none}@media(max-width:1000px){.focus-build-layout{display:block}.pixel-construction{margin-top:24px}.city-landmarks{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.city-stage canvas{height:370px}.city-landmarks{grid-template-columns:1fr}.pixel-city .card-head{align-items:flex-start;flex-direction:column}.city-controls .btn{font-size:11px;padding:10px}}
/* ---- village.css ---- */
:root{--ink:#e8ead8;--muted:#b0c0b7}body{background:#10292e;background-image:radial-gradient(ellipse at 80% 0,#25484a55,transparent 65%)}.sidebar{background:#10282d;border-right:1px solid #49605466}.shell>header{background:#10282de8;border-bottom:1px solid #52675655}.card{border-radius:14px;background:linear-gradient(140deg,#254346,#1a343a);border-color:#68827555;box-shadow:0 8px 26px #05171920}.card:before{display:none}h1{font-family:Georgia,serif;font-weight:500;font-size:38px;letter-spacing:-1px}h2{letter-spacing:-.5px}.btn{border-radius:7px;box-shadow:0 3px #8b743e;font-size:13px;padding:13px 19px}.btn.secondary{box-shadow:none;background:#294a4a;color:#e0e9d6;border:1px solid #728c74}.sidebar nav a{border-radius:7px}.eyebrow{letter-spacing:2px;color:#a8c1a5}.village-dashboard{display:grid;grid-template-columns:minmax(0,2.5fr) minmax(230px,1fr);gap:22px;margin:25px 0}.village-hero{position:relative;overflow:hidden;border-radius:16px;background:#14343d;border:1px solid #657b5e;min-height:480px}.village-hero canvas{display:block;width:100%;height:100%;object-fit:cover;image-rendering:pixelated}.village-hero:after{content:'';position:absolute;inset:45% 0 0;background:linear-gradient(transparent,#0d2930e8);pointer-events:none}.village-hero-top{position:absolute;top:20px;left:22px;right:22px;z-index:1;display:flex;justify-content:space-between;font:10px monospace;letter-spacing:2px;color:#e5e5be}.village-hero-copy{position:absolute;bottom:28px;left:28px;z-index:2}.village-hero-copy h2{font:40px/1.1 Georgia,serif;color:#f2e5b9;margin:12px 0 20px}.village-side{padding:27px;display:flex;flex-direction:column;gap:14px}.village-side h2{font:30px/1.15 Georgia,serif;margin:0}.village-side p,.village-steps p{line-height:1.7;color:#b8cbbd;font-size:13px}.village-side small{font-size:10px;color:#9cb4aa;text-align:center}.village-stat{display:flex;gap:18px;align-items:center;padding:12px 0;border-top:1px solid #74917944}.village-stat strong{font:34px Georgia;color:#e6ca89}.village-stat span{font-size:12px;line-height:1.5;color:#b8c7b6}.village-steps{display:grid;grid-template-columns:1.1fr 1.3fr 1fr;gap:20px;margin:24px 0}.village-steps .card{padding:25px}.village-steps h2{font:27px/1.2 Georgia;margin:15px 0}.village-reading .tag{display:table;margin-top:16px}.village-battle{background:radial-gradient(ellipse at 100% 0,#74603f88,transparent 80%),#263b38}.village-intro{display:grid;grid-template-columns:1.7fr 1fr;gap:30px;padding:20px;align-items:center}.village-intro canvas{width:100%;image-rendering:pixelated;border-radius:12px}.village-intro h2{font:36px/1.15 Georgia}.village-intro p{line-height:1.8;color:#bacbbc}.village-frame{height:850px;background:#102830;border-radius:14px;border:1px solid #6c8068}.reader,.note-layout>section{background:#f4edd8;color:#243a36}.reader h1{font-size:34px}.focus-build-layout .card{margin-top:0}@media(max-width:1100px){.village-dashboard{grid-template-columns:1fr}.village-side{display:grid;grid-template-columns:1fr 1fr}.village-hero{height:470px}.village-steps{grid-template-columns:1fr 1fr}.village-battle{grid-column:1/-1}.village-intro{grid-template-columns:1fr}.village-frame{height:800px}}@media(max-width:650px){h1{font-size:30px}.village-hero{min-height:380px;height:380px}.village-hero-copy{left:20px;bottom:20px}.village-hero-copy h2{font-size:31px}.village-hero-top{font-size:8px}.village-side{display:flex}.village-steps{grid-template-columns:1fr}.village-frame{height:690px}.village-hero canvas{object-fit:contain;object-position:center top}.village-dashboard{gap:15px}.page-heading{gap:16px}}

.pixel-city #villagePreview{width:100%;border-radius:12px;margin:18px 0}.pixel-construction canvas{width:100%;height:auto;border-radius:12px}.village-steps #build-demo{width:100%;height:auto;border-radius:9px;margin:12px 0}.village-steps small{display:block;margin-top:10px;color:var(--muted)}

#villagePreview,#build-demo{image-rendering:auto}
/* ---- kingdom.css ---- */
/* Study Hamlet's living kingdom: warm gold, deep indigo, and illuminated knowledge. */
body{background:#101e29;background-image:radial-gradient(ellipse at 85% 0,#27495755,transparent 55%),radial-gradient(ellipse at 5% 80%,#283f4233,transparent 50%)}.sidebar{background:#0d1b25}.shell>header{background:#101e29dc}.kingdom-top{display:flex;justify-content:space-between;gap:24px;align-items:center;margin:8px 0 27px}.kingdom-top h1{font:44px/1.15 Georgia;margin:10px 0}.kingdom-top p{color:#a5b8bd;font-size:13px}.kingdom-wallet{border-left:1px solid #9f9f6955;padding-left:25px;min-width:175px}.kingdom-wallet small{font-size:9px;letter-spacing:2px;color:#aebdb6}.kingdom-wallet strong{display:block;font:32px Georgia;color:#e9cc8b;margin:7px 0}.kingdom-wallet em{font:13px system-ui;color:#c4c9ad}.kingdom-wallet>span{font-size:11px;color:#9db8b7}.kingdom-tabs{display:flex;gap:6px;padding:6px;background:#182b37;border:1px solid #4c6d7355;border-radius:12px;margin-bottom:20px}.kingdom-tabs button,.kingdom-tabs a{flex:1;padding:12px 8px;background:transparent;color:#a7bfc5;border-radius:8px;text-align:center;font-size:12px}.kingdom-tabs .selected{background:#344944;color:#f0dca7;box-shadow:inset 0 0 0 1px #bba16e66}.realm-hero{position:relative;isolation:isolate;height:490px;border:1px solid #84988577;border-radius:20px;overflow:hidden;background:#203d46;box-shadow:0 24px 80px #0004}.realm-hero canvas{width:100%;height:100%;object-fit:cover;display:block}.realm-aura{position:absolute;inset:0;background:linear-gradient(90deg,#0b1a2cf7 0%,#112237c9 25%,#13273812 60%),linear-gradient(0deg,#0b1f2ed9,transparent 35%);pointer-events:none}.realm-hero:after{content:'';position:absolute;inset:0;z-index:-1;background:radial-gradient(ellipse,#81d8cf33,transparent);animation:realm-glow 6s ease-in-out infinite alternate}.realm-heading{position:absolute;top:40px;left:35px;max-width:380px}.live-label{font:9px system-ui;letter-spacing:2px;color:#b8d7c8;display:flex;align-items:center;gap:8px}.live-label i{width:6px;height:6px;border-radius:50%;background:#c8df9d;box-shadow:0 0 14px #d0ee9e}.realm-heading h2{font:42px/1.15 Georgia;color:#f2e8cd;margin:27px 0 18px;letter-spacing:-1.2px}.realm-heading h2 em{color:#d4bd85;font-weight:400}.realm-heading p{font-size:13px;line-height:1.8;color:#b5c7c7}.realm-enter{margin-top:15px;min-width:190px;display:flex;justify-content:space-between;gap:24px;background:#e6c886}.realm-controls{position:absolute;top:22px;right:22px;display:flex;flex-direction:column;align-items:flex-end;gap:10px}.realm-controls button{background:#172d37d9;border:1px solid #96b0a06b;color:#e1d5ac;border-radius:20px;padding:8px 13px;font-size:11px}.realm-controls span{font-size:9px;color:#c1d0bd;letter-spacing:1px}.realm-bottom{position:absolute;left:35px;right:30px;bottom:25px;display:flex;gap:24px;color:#b4c7bd;font-size:10px}.journey-strip{display:flex;align-items:center;gap:22px;border:1px solid #708d7655;background:linear-gradient(120deg,#263d3e,#1b2e3c);border-radius:14px;padding:23px;margin:22px 0 37px}.journey-seal{font-size:42px;color:#a79c70;min-width:54px;text-align:center}.journey-seal.lit{color:#f7d98c;text-shadow:0 0 30px #f9d987aa}.journey-description{flex:1}.journey-description h3{font:21px Georgia;margin:7px 0}.journey-description p{font-size:11px;color:#abc0b9;line-height:1.6;margin-bottom:0}.journey-description .eyebrow{font-size:8px;letter-spacing:1.5px}.journey-checks{display:grid;gap:7px;font-size:10px;color:#8fa6aa;min-width:140px}.journey-checks .done{color:#d6d9a5}.journey-strip>.btn{white-space:nowrap;padding:12px;font-size:11px}.kingdom-section-heading{display:flex;justify-content:space-between;align-items:end;margin:28px 0 18px}.kingdom-section-heading h2{font:28px Georgia;margin:8px 0 0}.kingdom-section-heading>span{font-size:10px;color:#9eb2b5}.mission-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.mission-card{position:relative;overflow:hidden;min-height:280px;border:1px solid #6b8b8266;border-radius:15px;text-align:left;color:#e0e6d6;padding:24px;background:radial-gradient(ellipse at 85% 12%,#678e6930,transparent 60%),#1d333c;transition:transform .2s,border-color .2s,box-shadow .2s}.mission-card:hover{transform:translateY(-5px);border-color:#c8b67a;box-shadow:0 12px 30px #0003}.mission-1{background:radial-gradient(ellipse at 85% 12%,#b39a4e33,transparent 60%),#273a3b}.mission-2{background:radial-gradient(ellipse at 85% 12%,#8084c833,transparent 60%),#22313f}.mission-index{font-size:8px;letter-spacing:2px;color:#b9cbb5}.mission-symbol{position:absolute;right:22px;top:30px;font:70px Georgia;color:#b5cdab33;transform:rotate(-8deg)}.mission-time{font:46px Georgia;color:#e4d2a4;margin:22px 0 12px}.mission-time small{font:9px system-ui;letter-spacing:2px;margin-left:8px;color:#a8bbb8}.mission-card h3{font:20px Georgia;margin:10px 0}.mission-card p{color:#acbfc1;font-size:11px;line-height:1.6;max-width:210px}.mission-card footer{display:flex;justify-content:space-between;padding:15px 0 0;margin-top:18px;border-top:1px solid #8d9c7466;color:#d1c394;font-size:10px}.mission-card footer b{font-size:19px}.kingdom-lower{display:grid;grid-template-columns:1.4fr 1fr;gap:22px;margin:28px 0}.kingdom-lower .card{background:linear-gradient(145deg,#1c313f,#172a36);padding:27px}.kingdom-lower h2{font:27px Georgia;margin:10px 0}.constellation-card>p{font-size:11px;color:#9fb8bf;line-height:1.7}.knowledge-sky{height:330px;position:relative;margin-top:20px;background-image:radial-gradient(circle at 20% 30%,#bec9a566 1px,transparent 1px),radial-gradient(circle at 70% 60%,#bec9a544 1px,transparent 1px);background-size:45px 47px,63px 61px}.knowledge-sky svg{position:absolute;width:100%;height:100%;overflow:visible}.knowledge-sky line{stroke:#91b8ae55;stroke-width:.3;stroke-dasharray:1 1}.knowledge-sky circle{fill:#34616c33;stroke:#8eb9af55;stroke-width:.3}.sky-core{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);text-align:center}.sky-core b{font:54px Georgia;color:#e2c889;text-shadow:0 0 25px #c8dfa066}.sky-core small{display:block;font-size:7px;letter-spacing:2px;color:#a9c0bd}.knowledge-star{position:absolute;left:var(--star-x);top:var(--star-y);transform:translate(-50%,-50%);background:transparent;color:#d9ddc8;padding:8px;max-width:125px}.knowledge-star i{display:block;font-style:normal;font-size:20px;color:#dfc889;text-shadow:0 0 15px #eccd7766}.knowledge-star:hover i{color:white;text-shadow:0 0 25px #ffffba}.knowledge-star span{display:block;font-size:10px;margin-top:4px;overflow-wrap:anywhere}.knowledge-star small{font-size:8px;color:#91b6bf;white-space:nowrap}.knowledge-sky>p{position:absolute;bottom:0;text-align:center;width:100%;font-size:11px;color:#a4b6b5}.forge-card{position:relative;overflow:hidden}.forge-glyph{height:90px;font:90px Georgia;color:#bdc9bc66;margin:18px 0;position:relative;text-shadow:0 0 40px #80c1c266}.forge-glyph span{font-size:25px;color:#dfca89;position:absolute;top:27px;left:35px}.forge-card h2{font-size:27px;line-height:1.3}.forge-card h2 em{font-weight:400;color:#d7c18b}.forge-card p{font-size:12px;line-height:1.8;color:#aec1c2}.forge-stats{display:flex;align-items:center;gap:15px;margin:23px 0}.forge-stats strong{font:37px Georgia;color:#d8c594}.forge-stats span{font-size:10px;color:#a5c0c0;line-height:1.7}.forge-card>small{display:block;font-size:9px;color:#8caaa9;margin-top:17px}.kingdom-bottom{display:grid;grid-template-columns:1fr 1fr;gap:22px}.kingdom-log>div{display:flex;gap:15px;align-items:center;border-bottom:1px solid #7d98863b;padding:10px 0}.kingdom-log>div>span{color:#d2bf86}.kingdom-log p{flex:1;font-size:12px;line-height:1.6;color:#b9c8bb}.kingdom-log small{display:block;color:#8fa8a8;font-size:10px}.kingdom-log b{font-size:10px;color:#d2bf86}.kingdom-log>a{display:block;margin-top:18px;font-size:11px;color:#d0c38f}.mission-dialog h2,.forge-dialog h2{font:29px Georgia;margin:14px 0}.mission-dialog p,.forge-dialog p{color:#aec1c0;line-height:1.8}.dialog-actions{display:flex;gap:12px;flex-wrap:wrap;margin:20px 0}.mission-dialog input,.mission-dialog select,.forge-dialog textarea{width:100%;margin:8px 0 18px}.forge-dialog textarea{resize:vertical;background:#10242d;color:#ece6cd;border:1px solid #64897c;padding:16px;border-radius:8px}.forge-dialog>.text-btn{display:block;margin-top:20px}.recall-comparison{display:grid;grid-template-columns:1fr 1fr;gap:16px}.recall-comparison section{background:#10262d;padding:17px;border:1px solid #5e7e7066;border-radius:10px;max-height:300px;overflow:auto}.recall-comparison small{font-size:9px;letter-spacing:1px;color:#c3c88f}.recall-comparison p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px}#modal{max-width:720px;width:calc(100% - 32px);max-height:90vh;overflow:auto;background:#1b323a;color:#eee7ce;border:1px solid #9d9d70;border-radius:17px;padding:30px}#modal::backdrop{background:#071623c9;backdrop-filter:blur(6px)}@keyframes realm-glow{to{opacity:.5}}@media(max-width:1100px){.journey-strip{flex-wrap:wrap}.journey-description{min-width:210px}.journey-checks{margin-left:75px}.kingdom-lower{grid-template-columns:1fr 1fr}.realm-heading h2{font-size:36px}.mission-card{padding:19px}.kingdom-top h1{font-size:36px}}@media(max-width:700px){.kingdom-top{align-items:start}.kingdom-top h1{font-size:29px}.kingdom-wallet{min-width:100px;padding-left:12px}.kingdom-wallet strong{font-size:24px}.kingdom-wallet>span{font-size:9px}.kingdom-tabs{flex-wrap:wrap}.kingdom-tabs>*{min-width:40%;font-size:11px!important}.realm-hero{height:460px}.realm-heading{left:22px;top:50px;max-width:270px}.realm-heading h2{font-size:35px}.realm-controls{top:15px;right:15px}.realm-controls>span{display:none}.realm-bottom{left:22px;right:20px;gap:12px;flex-wrap:wrap;font-size:9px}.realm-aura{background:linear-gradient(90deg,#102138ee,#12233688 70%),linear-gradient(0deg,#0b1f2ed9,transparent 40%)}.journey-strip{gap:13px;padding:18px}.journey-checks{margin-left:0;flex:1}.journey-description{min-width:calc(100% - 80px)}.kingdom-section-heading{align-items:start;gap:15px}.kingdom-section-heading>span{max-width:95px;line-height:1.7}.mission-grid{grid-template-columns:1fr}.mission-card{min-height:215px}.mission-time{margin-top:15px}.mission-card p{max-width:90%}.kingdom-lower,.kingdom-bottom{grid-template-columns:1fr}.knowledge-sky{height:320px}.recall-comparison{grid-template-columns:1fr}.realm-hero canvas{object-position:65% center}.kingdom-top>div>p{font-size:11px;line-height:1.6}.kingdom-wallet small{font-size:7px}.kingdom-top{gap:12px}#modal{padding:22px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}
/* ---- study.css ---- */
/* A consistent, readable study interface. */
.brand{font-family:Georgia,serif!important;letter-spacing:-1px!important}.study-next{display:grid;grid-template-columns:2fr 1fr;gap:28px;margin:20px 0;background:linear-gradient(120deg,#29494c,#20343e)!important}.study-next h2{font:29px/1.3 Georgia;margin:10px 0}.study-next p,.backup-card p,.reflection-help p{font-size:15px;line-height:1.7;color:#c0d0d0}.study-next aside{border-left:1px solid #688482;padding-left:24px}.study-next aside span{font-size:12px;color:#c1d0c9}.study-actions,.note-format{display:flex;align-items:center;flex-wrap:wrap;gap:12px}.realm-hero{height:300px}.realm-heading{top:23px}.realm-heading h2{font-size:29px;margin:15px 0}.realm-heading p{font-size:14px;margin:8px 0}.realm-bottom{bottom:13px}.realm-enter{margin-top:8px}.realm-controls span,.realm-bottom,.mission-index,.journey-checks,.forge-card>small,.kingdom-wallet>span{font-size:12px}.mission-card p,.mission-card footer,.constellation-card>p,.journey-description p,.kingdom-log p{font-size:14px}.eyebrow{font-size:11px!important;letter-spacing:1.3px!important}.subject-progress{margin-top:20px}.subject-progress button{display:flex;flex-wrap:wrap;justify-content:space-between;gap:14px;width:100%;text-align:left;background:#122c35;border:1px solid #547077;border-radius:10px;margin:12px 0;padding:17px;color:#edf0d8}.subject-progress small{display:block;font-size:12px;color:#b1c8ca;margin-top:5px}.subject-progress progress{width:100%;height:7px;accent-color:#dfc98d}.subject-progress>p{font-size:12px;line-height:1.6;color:#b7c9c9}.note-format{margin:16px 0}.note-format button{padding:9px 12px;background:#294650;color:#e7e9d7;border-radius:6px;border:1px solid #668081}.formatted-note p{white-space:pre-wrap;line-height:1.8}.backup-card,.reflection-help{margin-top:24px}.note-list{margin-top:16px}#noteFilter{width:100%}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #f2d594;outline-offset:4px}.kingdom-top h1{font-size:38px}.portrait,.avatar img,.profile img{image-rendering:auto}@media(max-width:700px){.study-next{grid-template-columns:1fr}.study-next aside{border-left:0;border-top:1px solid #688482;padding:18px 0 0}.study-next h2{font-size:25px}.realm-hero{height:370px}.kingdom-top h1{font-size:28px}.realm-heading{max-width:235px}.realm-bottom{font-size:11px}.study-actions>*{max-width:100%}.mission-grid{gap:12px}.mission-card{min-height:190px}.kingdom-section-heading>span{font-size:12px}}

.sidebar-bottom small,.chapter,.shell>header{font-family:system-ui,sans-serif!important}.sidebar-bottom small{font-size:11px!important}.brand{font-size:37px!important}.brand-icon{font-size:34px!important}@media(max-width:700px){.brand{font-size:25px!important}}
/* A quieter home with one complete learning routine. */
.study-workspace{display:grid;grid-template-columns:1.15fr 1fr;gap:24px;margin:24px 0}.study-workspace h2,.next-quests h2{font:26px Georgia;margin:8px 0}.study-workspace p{font-size:14px;line-height:1.7;color:#b7cacc}.routine-steps{display:flex;gap:10px;margin:22px 0}.routine-steps>a,.routine-steps>button{display:flex;align-items:center;gap:10px;flex:1;padding:15px 12px;text-align:left;background:#152e37;border:1px solid #56747b;border-radius:10px;color:#e9e8d5;min-width:0}.routine-steps b{color:#dbc78d}.routine-steps small{display:block;margin-top:6px;font-size:11px;color:#b6cacc}.routine-steps .complete{border-color:#93b492;background:#27483f}.chapter-medallion{display:block;font:48px Georgia!important;color:#e3c88a!important;margin:8px 0 20px}.study-next aside b{display:block}.mission-list{display:grid;gap:12px;margin-top:22px}.mission-list button{display:flex;align-items:center;gap:16px;text-align:left;border:1px solid #527179;background:#17313a;color:#e9e5d5;border-radius:12px;padding:18px;transition:transform .15s,border-color .15s}.mission-list button:hover{transform:translateY(-2px);border-color:#dcc587}.mission-number{font:25px Georgia;color:#dfc98b}.mission-list button>span:nth-child(2){flex:1}.mission-list b{font-size:16px}.mission-list small{display:block;font-size:12px;color:#b4c7ca;line-height:1.6;margin-top:8px}.mission-list em{font-style:normal;color:#e2cc92;font-size:12px;white-space:nowrap}.next-quests{margin:24px 0}.world-drawer{border:1px solid #597378;border-radius:15px;margin:30px 0;overflow:hidden;background:#1b323c}.world-drawer summary{cursor:pointer;padding:24px;font:24px Georgia;color:#e4d09a;display:list-item;list-style-position:inside}.world-drawer summary span{float:right;font:13px system-ui;color:#b9ceca;padding-top:6px}.world-drawer .realm-hero{border-radius:0;border-width:1px 0}.world-drawer .journey-strip{margin:20px}.cloud-indicator{font:11px/1.4 system-ui;max-width:175px;letter-spacing:0;color:#c6dbcb;background:#203d42;border:1px solid #557475;padding:8px 12px;border-radius:18px}.header-right{flex-wrap:wrap}.autosave-option{display:flex;align-items:center;gap:10px;margin:20px 0;line-height:1.5}.autosave-option input{width:auto}.history-row,.review-row{display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px;width:100%;padding:16px;margin:10px 0;background:#17313a;color:#e8e5d4;border:1px solid #527179;border-radius:9px;text-align:left}.history-row small,.review-row small{display:block;color:#b3c7ca;font-size:12px;margin-top:6px}.history-row small{flex-basis:100%}.preview-check{display:flex;align-items:flex-start;gap:12px;line-height:1.8}.preview-check input{width:18px;height:18px;margin-top:6px}.formatted-note code{background:#0f252e;padding:3px 6px;border-radius:3px}.note-help{font-size:12px;color:#b2c9cc;line-height:1.6}#note-results{display:block;padding:10px 0;color:#b9c9c6}.recall-finish{text-align:center}.recall-finish .text-btn{display:block;margin:20px auto}.subject-progress{max-height:440px;overflow:auto;padding-right:4px}.study-next{margin-top:24px}#cloud-status{border-left:3px solid #d6c68d;padding:10px 15px;background:#17333c}.backup-card .study-actions{margin:20px 0}.note-item[hidden]{display:none!important}.note-layout input,.note-layout textarea{max-width:100%}
@media(max-width:1000px){.study-workspace{grid-template-columns:1fr}.study-next{grid-template-columns:1fr}.study-next aside{display:none}.cloud-indicator{max-width:150px;font-size:10px}.routine-steps{flex-wrap:wrap}.routine-steps>a,.routine-steps>button{min-width:110px}}
@media(max-width:700px){.shell>header{height:auto;min-height:65px;padding:12px 16px}.shell>header>div:first-child{display:none}.header-right{width:100%;justify-content:space-between}.cloud-indicator{max-width:155px}.mission-list button{padding:15px;gap:12px}.mission-list em{font-size:10px}.world-drawer summary span{float:none;display:block;margin:10px 0 0 20px}.routine-steps small{font-size:12px}.routine-steps{gap:8px}.study-next{padding:20px!important}.study-workspace{gap:16px}.chapter-medallion{font-size:34px!important}.history-row,.review-row{font-size:13px}.note-format{gap:8px}.study-next h2{overflow-wrap:anywhere}}
.note-attachments{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;margin:16px 0}.note-attachments figure{margin:0;padding:12px;border:1px solid #506c76;border-radius:8px;background:#17303b;overflow:hidden}.note-attachments img{width:100%;max-height:220px;object-fit:contain}.note-attachments figcaption{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;font-size:12px;overflow-wrap:anywhere}.note-attachments a{text-decoration:underline}
/* ---- library.css ---- */
.library-tools{display:grid;gap:13px;margin:16px 0}.library-tools label{font-size:12px}.library-tools select{width:100%;margin-top:6px}.saved-filter{display:flex;gap:10px;align-items:center}.saved-filter input{width:17px;height:17px}.view-switch{display:flex;gap:8px}.view-switch button,.library-pagination button,.library-meta button,.task-moves button,.utility-button{padding:9px 12px;border:1px solid var(--line);border-radius:8px;background:var(--paper);color:var(--ink)}.view-switch [aria-pressed=true]{background:#d8c48e;color:#203731}.library-cards{display:grid;gap:12px}.library-cards.grid{grid-template-columns:repeat(2,minmax(0,1fr))}.library-card{border:1px solid #496569;border-radius:10px;overflow:hidden;min-width:0;background:#173039}.library-card.selected{border-color:#dfc78d;box-shadow:inset 3px 0 #dfc78d}.library-card .note-item{min-width:0;border:0;margin:0;width:100%;text-align:left;background:transparent;padding:16px;color:var(--ink)}.library-card .note-item b{overflow-wrap:anywhere}.library-card .note-item span{display:block;font-size:12px;font-weight:400;line-height:1.6;color:#a9c0bf;max-height:40px;overflow:hidden;margin-top:10px}.library-meta{display:flex;align-items:center;justify-content:space-between;padding:0 12px 12px;gap:5px;color:#c3d1c9;font-size:11px}.library-meta button{font-size:11px;padding:6px}.library-pagination{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-top:18px;font-size:11px}.note-layout{grid-template-columns:minmax(270px,340px) minmax(0,1fr)}.utility-button{font-size:12px;position:relative;white-space:nowrap}.unread-badge{display:inline-grid;place-items:center;background:#e5bd73;color:#233d38;border-radius:10px;min-width:18px;height:18px;margin-left:6px;font-size:10px}.activity-entry{display:flex;gap:13px;border-bottom:1px solid var(--line);padding:18px 0;line-height:1.6}.activity-entry small{display:block;color:var(--muted);margin-top:5px}.activity-dialog,.share-dialog{padding:8px;max-height:75vh;overflow:auto}.share-dialog textarea{width:100%;height:230px;resize:vertical;margin-bottom:18px}.task-moves{display:grid;gap:4px}.task-moves button{padding:2px 8px}.drag-handle{cursor:grab;font-size:23px;color:var(--muted);padding:8px}.cloud-loading .cloud-indicator:before{content:'';display:inline-block;width:10px;height:10px;border:2px solid currentColor;border-top-color:transparent;border-radius:50%;animation:cloud-spin .8s linear infinite;margin-right:7px}@keyframes cloud-spin{to{transform:rotate(360deg)}}html[data-theme=light]{--bg:#f3f3eb;--paper:#fffef8;--ink:#253e37;--muted:#566e66;--line:#ced8cd;--green:#315b47;--lime:#dce8bc}html[data-theme=light] body:not(.orbital-chapter){background-color:var(--bg);color:var(--ink)}html[data-theme=light] body:not(.orbital-chapter) :is(.sidebar,.shell>header){background:#e7ede3;color:#365246;border-color:#c9d4c6}html[data-theme=light] body:not(.orbital-chapter) :is(.card,.library-card,.world-drawer,.subject-progress button,.mission-list button,.routine-steps>a,.routine-steps>button,.history-row,.review-row,.note-attachments figure){background:#fffef8!important;color:#253e37!important;border-color:#cad8cb}html[data-theme=light] body:not(.orbital-chapter) .study-next{background:linear-gradient(115deg,#e4eddc,#f6efd7)!important}html[data-theme=light] body:not(.orbital-chapter) :is(h1,h2,h3,.brand,.brand-dot,.note-item,.note-title,.chapter-medallion,.mission-number,.mission-list em,.world-drawer summary){color:#294f40!important}html[data-theme=light] body:not(.orbital-chapter) :is(.study-next p,.study-next aside span,.study-workspace p,.mission-list small,.subject-progress small,.subject-progress>p,.routine-steps small,.note-help,.library-card .note-item span,.library-meta,.eyebrow,.chapter,.sidebar-bottom small,.sidebar-bottom p,.world-drawer summary span,.backup-card p,.reflection-help p,#note-results){color:#51685f!important}html[data-theme=light] body:not(.orbital-chapter) :is(input,textarea,select,dialog){background:#fffef8!important;color:#253e37!important;border-color:#b9ccbe!important}html[data-theme=light] body:not(.orbital-chapter) :is(nav a,.text-btn){color:#4d695b}html[data-theme=light] body:not(.orbital-chapter) nav a.active{background:#d7e3ce;color:#294737;border-color:#9fb893}html[data-theme=light] body:not(.orbital-chapter) :is(.note-format button,.cloud-indicator,#cloud-status,.formatted-note code){background:#e5ecdf;color:#294737;border-color:#b7c9b5}html[data-theme=light] body:not(.orbital-chapter) .header-right>span{background:#e8e4cb;color:#51492b}html[data-theme=light] body:not(.orbital-chapter) .btn{background:#315946;color:#fff8dc}html[data-theme=light] body:not(.orbital-chapter) .routine-steps .complete{background:#e0ecd5!important}html[data-theme=light] body:not(.orbital-chapter) footer{color:#53695d}
@media(max-width:1000px){.note-layout{grid-template-columns:1fr}.library-cards.grid{grid-template-columns:repeat(3,minmax(0,1fr))}.shell>header{height:auto;min-height:74px;padding-top:12px;padding-bottom:12px}}@media(max-width:600px){.library-cards.grid{grid-template-columns:repeat(2,minmax(0,1fr))}.header-right{gap:8px}.utility-label{display:none}.utility-button{padding:8px}.drag-handle{display:none}.task-row{gap:8px}.library-meta{flex-wrap:wrap}.cloud-indicator{max-width:135px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}html[data-theme=light] body:not(.orbital-chapter){background-image:radial-gradient(#6582600b 1px,transparent 1px)!important}html[data-theme=light] body:not(.orbital-chapter) #app :is(label,.page-head p,.head p,.save-status){color:#51685f!important}html[data-theme=light] body:not(.orbital-chapter) .library-cards small{color:#51685f}html[data-theme=light] body:not(.orbital-chapter) .page-heading p{color:#51685f!important}
.hearthguard-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:15px 0}.hearthguard-heading h1{font:32px Georgia;margin:8px 0}.hearthguard-heading p{color:var(--muted);font-size:13px}.hearthguard-frame{display:block;width:100%;height:max(820px,calc(100dvh - 170px));border:1px solid #547168;border-radius:14px;background:#0f1d23}.playing-village #app{max-width:none;padding:20px}.hearthguard-card{padding:28px;background:linear-gradient(125deg,#163735,#122936);color:#e6e8d5;display:grid;grid-template-columns:1.2fr 1fr;gap:30px}.hearthguard-card h2{font:32px Georgia;color:#e6cd91}.hearthguard-card p{line-height:1.8;color:#bbcfc7}.hearthguard-card small{grid-column:1/-1;color:#b7c9be}.hearthguard-stats{display:grid;grid-template-columns:1fr 1fr;gap:14px;align-content:center}.hearthguard-stats span{padding:16px;border:1px solid #49645c;border-radius:10px;font-size:12px}.hearthguard-stats b{display:block;font:25px Georgia;color:#e4ca8c;margin-bottom:7px}html[data-theme=light] body:not(.orbital-chapter) .hearthguard-card{background:linear-gradient(125deg,#e6eddc,#ecf2e9);color:#294737}html[data-theme=light] body:not(.orbital-chapter) .hearthguard-card :is(p,small,b,h2){color:#365843!important}@media(max-width:700px){.hearthguard-heading{align-items:flex-start;gap:10px}.hearthguard-heading h1{font-size:25px}.hearthguard-heading .btn{font-size:11px;padding:10px}.playing-village #app{padding:10px}.hearthguard-card{grid-template-columns:1fr;gap:16px;padding:20px}.hearthguard-frame{height:1000px;border-radius:8px}}
.easy-start{border-top:3px solid #dfc78d}.easy-start h2{font-size:clamp(24px,4vw,36px);margin:14px 0}.easy-start p{color:var(--muted);line-height:1.7}.easy-start form{max-width:760px;display:grid;gap:18px}.easy-start label,.ease-quick label{display:grid;gap:8px;font-size:14px}.easy-fields{display:grid;grid-template-columns:1fr 1fr;gap:16px}.easy-start small{color:var(--muted);line-height:1.6}.easy-start .btn{justify-self:start;min-height:44px}.ease-guide,.ease-routine{margin:22px 0}.ease-guide summary,.ease-routine summary{cursor:pointer;padding:14px 0;font-weight:600}.ease-guide li{padding:6px 0;line-height:1.6}.ease-routine>.card{margin-top:12px}.ease-quick{display:flex;align-items:end;gap:12px}.ease-quick label{flex:1}.ease-filters{display:flex;flex-wrap:wrap;gap:8px;margin:24px 0 12px}.ease-filters button,.ease-task-actions button{min-height:44px;border:1px solid var(--line);border-radius:8px;padding:8px 12px;color:var(--ink);background:var(--paper)}.ease-filters button[aria-pressed=true]{background:#d8c48e;color:#203731}.ease-task-actions{display:flex;flex-wrap:wrap;gap:6px}.ease-task .task-copy{min-width:0;overflow-wrap:anywhere}.ease-task input{min-width:22px;min-height:22px}.ease-task.done .ease-task-actions{text-decoration:none}button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #b69444;outline-offset:3px}@media(max-width:620px){.easy-fields{grid-template-columns:1fr}.ease-quick{align-items:stretch;flex-direction:column}.ease-task{flex-wrap:wrap}.ease-task-actions{width:100%;padding-left:32px}.ease-task .task-copy{flex:1}}@media(prefers-reduced-motion:reduce){.easy-start *,.ease-task *{animation:none!important;transition:none!important}}
.orbital-unlock{margin:30px 0;padding:32px;display:grid;grid-template-columns:1fr 180px;gap:24px;background:radial-gradient(ellipse at top right,#183567,#071224 65%);border:1px solid #267287;border-radius:20px;color:#e2f4ff}.orbital-unlock .eyebrow{color:#67e8f9!important}.orbital-unlock h2{color:#e2f4ff!important;font-size:30px;margin:16px 0}.orbital-unlock p,.orbital-unlock small{color:#b4cedd;line-height:1.8}.orbital-unlock small{display:block;margin-top:16px}.orbital-progress{height:8px;border-radius:8px;background:#21354d;overflow:hidden;margin-top:20px}.orbital-progress i{display:block;height:100%;background:linear-gradient(90deg,#22d3ee,#a78bfa)}.orbital-emblem{align-self:center;text-align:center;color:#67e8f9;font-size:34px}.orbital-emblem span{display:block;border:1px solid #387298;border-radius:50%;padding:40px 0;font:60px monospace;box-shadow:0 0 60px #22d3ee22}.ops-frame{width:100%;height:calc(100dvh - 130px);min-height:720px;border:1px solid #164e63;border-radius:16px;background:#050811}@media(max-width:650px){.orbital-unlock{grid-template-columns:1fr;padding:22px}.orbital-emblem{display:none}.ops-frame{min-height:850px}}
.hearthguard-actions{display:flex;gap:10px;flex-wrap:wrap}.hearthguard-frame:fullscreen{width:100vw;height:100vh;border:0;border-radius:0}
/* ---- connection.css ---- */
#journal-tab-notice{position:fixed;inset:0;z-index:2147483647;display:grid;place-items:center;background:#15251fe8;padding:24px;color:#213c30}#journal-tab-notice section{background:#fffaf0;max-width:540px;padding:32px;border-radius:18px;box-shadow:0 20px 80px #0005}#journal-tab-notice p{line-height:1.7}#journal-tab-notice button{margin-top:12px;min-height:44px}.study-connection{margin-block:24px;border:1px solid #a2b6a080;background:linear-gradient(120deg,#f5f5e8,#eef3e9);padding:28px}.connection-heading{display:flex;gap:24px;justify-content:space-between;align-items:center}.connection-heading h2{margin:8px 0}.connection-heading p{max-width:55ch;line-height:1.6}.connection-total{font-size:36px;font-weight:750;text-align:right;flex-shrink:0;color:#426248}.connection-total small{display:block;font-size:12px;font-weight:500}.connection-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:22px}.connection-steps article{display:flex;flex-direction:column;border:1px solid #a2b6a060;border-radius:14px;padding:20px;background:#ffffff91}.connection-steps h3{font-size:18px;margin:10px 0}.connection-steps p{font-size:14px;line-height:1.7;flex:1}.connection-steps .btn{min-height:44px;white-space:normal;justify-content:center;gap:8px}.connection-number{font-size:12px;letter-spacing:2px;color:#6d775a}.connection-steps img,.connection-receipt img{image-rendering:pixelated;width:18px;height:18px;object-fit:contain;vertical-align:middle}.connection-receipt{border-top:1px solid #a2b6a080;padding-top:18px;line-height:1.8;font-size:13px;margin-bottom:0}.connection-receipt img{margin-right:6px}body[data-theme="dark"] .study-connection,[data-theme="dark"] .study-connection{background:linear-gradient(120deg,#23352b,#202e32)}[data-theme="dark"] .connection-steps article{background:#19281fb0}[data-theme="dark"] .connection-total,[data-theme="dark"] .connection-number{color:#c4d7a6}@media(max-width:800px){.connection-steps{grid-template-columns:1fr}.connection-heading{align-items:flex-start}.study-connection{padding:18px}.connection-total{font-size:28px;max-width:100px}.connection-heading h2{font-size:23px}}@media(prefers-reduced-motion:reduce){.study-connection *{animation:none!important;transition:none!important}}html:not([data-theme="light"]) .study-connection{background:linear-gradient(120deg,#23352b,#202e32);color:#e4e8dc}html:not([data-theme="light"]) .connection-steps article{background:#19281fb0}html:not([data-theme="light"]) .connection-total,html:not([data-theme="light"]) .connection-number{color:#c4d7a6}
html.study-only :is(.study-connection,.orbital-unlock,.world-drawer,.hearthguard-card){display:none!important}
/* ---- interactions.css ---- */
/* Tactile feedback shared by study controls; motion remains optional. */
:root{--action-glow:#b9d98f;--dialog-surface:#192f2b;--dialog-ink:#edf1df}html[data-theme=light]{--action-glow:#5e8650;--dialog-surface:#fffef7;--dialog-ink:#273e32}
:is(.btn,.utility-button,.cloud-indicator,.ease-task-actions button,.note-format button,.ease-filters button,.view-switch button){position:relative;min-height:42px;border-radius:10px;transition:transform .16s ease,box-shadow .16s ease,background-color .16s ease,border-color .16s ease}
@media(hover:hover){:is(.btn,.utility-button,.cloud-indicator,.ease-task-actions button,.note-format button):not(:disabled):hover{transform:translateY(-2px);box-shadow:0 5px 16px #0003}.btn:not(.secondary):not(:disabled):hover{filter:brightness(1.08)}}
:is(.btn,.utility-button,.cloud-indicator,.ease-task-actions button,.note-format button):not(:disabled):active{transform:translateY(1px) scale(.98);box-shadow:inset 0 2px 4px #0003}
:is(button,a,input,textarea,select,summary):focus-visible{outline:3px solid var(--action-glow)!important;outline-offset:4px!important}
button:disabled{cursor:not-allowed;box-shadow:none!important;transform:none!important;opacity:.52}
button[aria-busy=true]{cursor:progress;opacity:.85}button[aria-busy=true]::before{content:'';display:inline-block;width:12px;height:12px;margin-right:9px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:lumen-spin .8s linear infinite}
.btn.danger{background:#963c3c!important;color:#fff!important;border:1px solid #be6464!important}
#modal{position:fixed;width:min(570px,calc(100vw - 32px));max-height:85dvh;overflow:auto;padding:32px;border:1px solid #6c927b;border-radius:20px;background:var(--dialog-surface);color:var(--dialog-ink);box-shadow:0 30px 100px #0008}
#modal[open]{animation:lumen-dialog .2s ease-out}#modal::backdrop{background:#091612b8;backdrop-filter:blur(5px)}#modal h2{padding-right:34px;margin-top:0}#modal label{display:block;margin-block:14px 8px}#modal .actions{position:sticky;bottom:-32px;background:var(--dialog-surface);padding-block:20px;margin-top:22px;border-top:1px solid #79958140;display:flex;gap:10px;justify-content:flex-end}#modal .actions .btn{min-width:105px}
#modal .dialog-close{position:absolute;right:16px;top:14px;width:36px;height:36px;border-radius:50%;background:#8dab8a22;color:inherit;font-size:25px;line-height:1}#modal .dialog-close:hover{background:#8dab8a44}#modal .dialog-error{padding:12px;border:1px solid #bc6a56;border-radius:8px;color:var(--dialog-ink);background:#b94c291a}#modal .dialog-error:empty{display:none}
.reward-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-block:22px}.reward-grid div{background:#86a77a16;border:1px solid #79958150;border-radius:12px;padding:16px 8px;text-align:center}.reward-grid strong{font-size:26px;display:block}.reward-grid span{font-size:12px}.reward-detail{line-height:1.8;color:inherit}.reward-summary-button{margin-top:14px}
#toast{max-width:min(520px,calc(100vw - 32px));border-radius:12px;box-shadow:0 12px 32px #0004;line-height:1.6;pointer-events:none;transition:opacity .2s,transform .2s}
@keyframes lumen-spin{to{transform:rotate(360deg)}}@keyframes lumen-dialog{from{opacity:0;transform:translateY(12px) scale(.98)}to{opacity:1;transform:none}}
@media(max-width:550px){#modal{padding:24px 20px}#modal .actions{bottom:-24px;flex-wrap:wrap}.reward-grid strong{font-size:22px}.reward-grid div{padding:12px 5px}.note-format button,.ease-task-actions button{min-height:44px}}
@media(prefers-reduced-motion:reduce){:is(.btn,.utility-button,.cloud-indicator,.ease-task-actions button,.note-format button,.ease-filters button,.view-switch button,#modal,#toast){animation:none!important;transition:none!important;transform:none!important}button[aria-busy=true]::before{animation:none!important}}
/* ---- responsive.css ---- */
/* Final responsive layer: reflow content instead of hiding horizontal overflow. */
html{scroll-padding-top:20px}body{min-width:0}.shell,#app,.card,.page-heading>*,.header-right,.task-copy{min-width:0}#app{width:100%}#app :is(h1,h2,h3,p,small,.task-copy,.note-item,.history-row,.review-row){overflow-wrap:anywhere}input,select,textarea{max-width:100%;min-width:0}img{max-width:100%}.card-head,.page-heading,.form-row,.timer-actions,.timer-presets{flex-wrap:wrap;gap:12px}.stats{grid-template-columns:repeat(3,minmax(0,1fr))}.stat{min-width:0}.study-actions>*,.note-format>*{max-width:100%}.formatted-note pre{max-width:100%;overflow:auto}.formatted-note img,.note-attachments img{max-width:100%;height:auto}#modal{max-height:calc(100dvh - 32px);overscroll-behavior:contain;scroll-padding-bottom:90px}.notes-layout,.reader-layout,.study-workspace{min-width:0}.ops-frame,.hearthguard-frame{display:block;max-width:100%}
@media(min-width:761px){.sidebar{overflow-y:auto;max-height:100dvh}.shell>header{height:auto;min-height:74px;gap:16px;padding-block:14px}.header-right{flex-wrap:wrap;justify-content:flex-end}.header-right>span{white-space:normal}.cloud-indicator{max-width:220px;white-space:normal}#app{padding-inline:clamp(20px,3vw,44px)}}
@media(min-width:761px) and (max-width:1100px){.shell>header{flex-wrap:wrap}.header-right{width:100%;justify-content:flex-start}.notes-layout{grid-template-columns:minmax(180px,.7fr) minmax(0,1fr)}.study-workspace{grid-template-columns:1fr}.connection-steps{grid-template-columns:1fr}.page-heading{align-items:flex-start}}
@media(max-width:760px){
 .sidebar{position:relative;display:block;width:100%;padding:10px 12px;max-height:none}.sidebar .brand{justify-content:center;margin-bottom:8px}.sidebar #nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;width:100%;min-width:0}.sidebar #nav a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:7px 3px;font-size:10px;line-height:1.3;text-align:center;min-height:54px;white-space:normal;overflow-wrap:anywhere}.sidebar #nav a span{font-size:18px;width:auto}.shell{margin-left:0}.shell>header{height:auto;min-height:64px;padding:10px 12px;gap:8px;flex-wrap:wrap}.shell>header>div:first-child{display:none}.header-right{width:100%;display:flex;flex-wrap:wrap;gap:8px;justify-content:space-between}.header-right>span{order:5;width:100%;text-align:center;font-size:11px}.cloud-indicator{max-width:calc(100% - 160px);white-space:normal;font-size:10px}.utility-button{padding:8px;min-width:44px}.avatar{min-width:44px;min-height:44px}.shell #app{padding:24px 16px;width:100%}.page-heading{align-items:flex-start;gap:14px}.page-heading h1{font-size:clamp(25px,6vw,33px)}.stats{gap:8px}.stat{padding:14px 10px}.stat .eyebrow{font-size:9px!important;letter-spacing:.6px!important}.stat strong{font-size:28px}.stat .muted{font-size:11px}.reader-layout,.notes-layout,.study-workspace{grid-template-columns:1fr}.task-row .task-copy{overflow-wrap:anywhere}.task-row>button{min-width:44px;min-height:44px}.timer-card{padding:24px 14px}.timer-ring{width:min(215px,75vw);height:min(215px,75vw)}.timer-presets button{min-height:44px;padding:8px 12px}.timer-actions .btn{min-height:44px}.library-tools{flex-wrap:wrap;min-width:0}.library-tools label{min-width:0;flex:1 1 120px}.note-format{gap:8px}.note-format button{min-height:44px}.connection-heading{flex-wrap:wrap}.connection-total{text-align:left;max-width:none}.connection-total small{display:inline;margin-left:8px}.shell>footer{padding:20px 16px;gap:12px;flex-wrap:wrap}.ops-frame{height:calc(100dvh - 24px);min-height:640px}.hearthguard-frame{height:960px;min-height:0}.playing-village #app{padding:12px 8px}.hearthguard-heading{flex-wrap:wrap}#modal{padding:24px 18px;width:calc(100% - 24px);max-height:calc(100dvh - 24px)}#modal .actions{position:static;padding-bottom:0}#modal :is(input,textarea,select),#app :is(input:not([type=checkbox]),textarea,select){font-size:16px}#toast{bottom:max(16px,env(safe-area-inset-bottom));overflow-wrap:anywhere}.dialog-close{min-width:44px;min-height:44px}#journal-tab-notice{padding:12px}#journal-tab-notice section{max-height:90dvh;overflow:auto;padding:22px}
}
@media(max-width:360px){.stats{grid-template-columns:1fr}.stat{display:grid;grid-template-columns:1fr auto;align-items:center}.stat strong{margin:6px}.stat .muted{grid-column:1/-1}.kingdom-top{flex-wrap:wrap}.kingdom-wallet{border-left:0!important;padding-left:0!important}.reward-grid{gap:6px}.reward-grid strong{font-size:21px}.cloud-indicator{max-width:130px}.connection-steps article{padding:15px}}
@media(hover:none),(pointer:coarse){button,.btn,summary{touch-action:manipulation}.btn,.text-btn,.note-format button,.view-switch button{min-height:44px}button:hover{transform:none}}
@supports(padding:max(0px)){body{padding-left:env(safe-area-inset-left);padding-right:env(safe-area-inset-right)}.shell>footer{padding-bottom:max(20px,env(safe-area-inset-bottom))}}

/* Reminder controls: checkbox targets stay beside their labels. */
#notification-form>label{display:flex;align-items:center;gap:12px;margin:18px 0}#notification-form>label input[type=checkbox]{width:22px;height:22px;flex:0 0 22px;margin:0}#notification-form input[type=time]{min-height:44px;font-size:16px;width:100%;min-width:0}#notification-form .form-row>label{min-width:0;flex:1}

/* Predictable tap feedback without moving layouts. */
button,a.btn{touch-action:manipulation}button:disabled{cursor:not-allowed}button:active:not(:disabled),a.btn:active{filter:brightness(.92)}input,textarea,select{scroll-margin-top:100px}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important}}
/* ---- ai.css ---- */
.ai-helper{max-width:720px;margin:30px auto 0}
.ai-helper h2{margin-top:0}
.ai-helper textarea{min-height:96px}
.ai-points{margin:10px 0 14px;padding-left:20px;font-size:13px;line-height:1.6;color:var(--muted)}
.ai-points li{margin:4px 0}
.ai-helper .study-actions{display:flex;gap:14px;align-items:center;flex-wrap:wrap;margin-top:16px}
.ai-answer{margin-top:18px;padding:18px 20px;background:rgba(127,140,110,.14);border:1px solid rgba(127,140,110,.35);border-left:4px solid #c9a45c;border-radius:8px;color:inherit}
.ai-answer p{margin:.6em 0;font-size:14px}
.ai-answer code{background:rgba(127,127,127,.22);padding:1px 5px;border-radius:4px}
#ai-settings h3{margin:18px 0 6px}
.ai-helper .dialog-error,#ai-card .dialog-error{color:#9e5947;margin:12px 0 0}
@media(max-width:760px){.ai-helper{margin-top:18px}.ai-answer{padding:14px}}
label.ai-consent{display:flex;gap:10px;align-items:flex-start;margin:16px 0 4px;font-size:13px;line-height:1.5;color:inherit;cursor:pointer}label.ai-consent input{width:20px;height:20px;flex:none;margin:1px 0 0;padding:0}
.ai-helper .muted,.ai-helper .ai-points{color:inherit;opacity:.82}

.conn-list{list-style:none;margin:14px 0 8px;padding:0}
.conn-list li{display:flex;gap:10px;align-items:flex-start;padding:8px 0;border-bottom:1px solid rgba(127,140,110,.22);font-size:14px}
.conn-list b{flex:none;width:20px;text-align:center}
.conn-list li.ok b{color:#7fa66a}.conn-list li.bad b{color:#d08a6a}
.conn-list small{display:block;opacity:.8;margin-top:3px;line-height:1.5}

.ai-detail{font-size:12px;word-break:break-word;margin-top:6px}

.ai-pic{margin-top:6px}
.ai-pic .study-actions{margin-top:10px}
.ai-pic-thumb{display:flex;gap:14px;align-items:flex-start;margin:10px 0 0;flex-wrap:wrap}
.ai-pic-thumb img{max-height:150px;max-width:220px;border-radius:8px;border:1px solid rgba(127,140,110,.4);background:#fff}
.ai-pic-thumb figcaption{flex:1;min-width:180px;font-size:12px;line-height:1.5;display:grid;gap:6px;justify-items:start}
/* maths (MathML) inside answers */
.ai-answer math,.au-result math{font-size:1.18em}
.ai-answer math[display=block],.au-result math[display=block]{display:block math;margin:.7em 0;text-align:center}
.ai-answer .mm-boxed,.au-result .mm-boxed{display:block;width:fit-content;margin:.7em auto;padding:6px 16px;border:2px solid #c9a45c;border-radius:6px}
.ai-answer .mm-boxed math,.au-result .mm-boxed math{margin:0}
.ai-answer math .mm-box{padding:2px 6px;border:1px solid currentColor;border-radius:3px}
.ai-answer .mm-fallback{font-family:Georgia,serif}
.ai-answer ul{margin:.5em 0;padding-left:1.3em}.ai-answer li{margin:.25em 0}
/* ---- planner.css ---- */
/* Exam planner. Colours are translucent so the page works in the light, dark and orbital themes. */
.plan-next{border-left:4px solid #c9a45c}
.plan-next h2{margin:6px 0}
.plan-next.compact{margin:0 0 18px}
.plan-next .study-actions,.plan-card .study-actions,.plan-empty .study-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-top:14px}
.plan-card,.plan-empty{margin-top:20px}
.plan-top{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;flex-wrap:wrap}
.plan-top h2{margin:0 0 4px}
.plan-count strong{display:inline-block;padding:7px 14px;border-radius:20px;background:rgba(127,140,110,.18);border:1px solid rgba(127,140,110,.35);font-size:13px;white-space:nowrap}
.plan-progress{margin:16px 0 8px;font-size:13px}
.plan-progress .bar{margin-top:7px}
.plan-badge{display:inline-flex;gap:8px;align-items:center;margin:10px 0 0;padding:6px 12px;border-radius:8px;font-weight:700;font-size:13px;border:1px solid rgba(127,140,110,.4);background:rgba(127,140,110,.14)}
.plan-badge.level-tight{border-color:#c9a45c;background:rgba(201,164,92,.18)}
.plan-badge.level-over{border-color:#c0705a;background:rgba(192,112,90,.2)}
.plan-details{margin:14px 0 4px;border-top:1px solid rgba(127,140,110,.3);padding-top:10px}
.plan-details>summary{cursor:pointer;font-weight:700;font-size:13px;padding:6px 0}
.plan-days{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:12px;margin-top:10px}
.plan-day{padding:12px 14px;border:1px solid rgba(127,140,110,.3);border-radius:8px;background:rgba(127,140,110,.08)}
.plan-day h4{margin:0 0 8px;font-size:13px;font-family:inherit;font-weight:700;display:flex;gap:8px;align-items:center;justify-content:space-between}
.plan-day ul{list-style:none;margin:0;padding:0;font-size:13px;line-height:1.5}
.plan-day li{margin:4px 0}
.plan-day small{opacity:.75}
.chip{display:inline-block;padding:2px 8px;border-radius:10px;font-size:11px;font-weight:600;border:1px solid rgba(127,140,110,.4);background:rgba(127,140,110,.14);font-style:normal}
.plan-topics{list-style:none;margin:8px 0 0;padding:0}
.plan-topic{display:flex;align-items:center;gap:10px;padding:8px 0;border-bottom:1px solid rgba(127,140,110,.2)}
.plan-topic label{display:flex;align-items:center;gap:10px;flex:1;margin:0;color:inherit;font-size:14px;cursor:pointer}
.plan-topic input[type=checkbox]{width:20px;height:20px;flex:none;margin:0;padding:0}
.plan-topic .text-btn{margin-left:auto;opacity:.75}
.plan-hours{border:1px solid rgba(127,140,110,.35);border-radius:8px;margin:16px 0 4px;padding:10px 12px}
.plan-hours legend{font-size:12px;padding:0 6px}
.plan-hours>div{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px}
.plan-hours label{margin:0;font-size:11px;text-align:center;color:inherit}
.plan-hours input{padding:8px 4px;text-align:center;font-size:14px}
.plan-note{margin-top:24px}
@media(max-width:560px){.plan-hours>div{grid-template-columns:repeat(4,minmax(0,1fr))}.plan-days{grid-template-columns:1fr}.plan-top{flex-direction:column}}
/* ---- revise.css ---- */
/* Revision page: translucent colours so it works in the light, dark and orbital themes. */
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.rv-today{border-left:4px solid #c9a45c}
.rv-today h2{margin:6px 0}
#rv-root>.card{margin-top:20px}
#rv-root>.card:first-child{margin-top:0}
#rv-root .study-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-top:14px}
.rv-limit{display:flex;gap:10px;align-items:center;margin-top:14px;font-size:12px;color:inherit}
.rv-limit select{width:auto;padding:6px 10px}
.rv-miss,.rv-acc,.rv-list{list-style:none;margin:10px 0 0;padding:0}
.rv-miss li{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px solid rgba(127,140,110,.22);font-size:14px}
.rv-miss small{opacity:.7;white-space:nowrap}
.rv-decks{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:12px;margin-top:12px}
.rv-deck{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px 14px;border:1px solid rgba(127,140,110,.3);border-radius:8px;background:rgba(127,140,110,.08)}
.rv-deck small{display:block;opacity:.75;margin-top:3px}
.rv-acc li{font-size:13px;padding:3px 0}
.rv-row{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:10px 0;border-bottom:1px solid rgba(127,140,110,.2)}
.rv-row small{display:block;opacity:.7;margin-top:3px}
.rv-row .text-btn{margin-left:10px}
.rv-browse input[type=search]{margin-top:10px}
.rv-session{padding:20px 22px;max-width:760px;margin:0 auto}
.rv-bar{display:flex;gap:12px;align-items:center;justify-content:space-between;font-size:13px;margin-bottom:10px;flex-wrap:wrap}
.rv-face{margin:22px 0 10px;padding:26px 22px;min-height:180px;border:1px solid rgba(127,140,110,.35);border-radius:12px;background:rgba(127,140,110,.1)}
.rv-text{font-size:22px;line-height:1.5;margin:12px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}
.rv-back{font-size:19px}
.rv-face hr{border:0;border-top:1px solid rgba(127,140,110,.4);margin:18px 0 4px}
.rv-ask{text-align:center;margin:12px 0}
.rv-rate{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
.rv-btn{display:flex;flex-direction:column;align-items:center;gap:3px;padding:12px 6px;border-radius:10px;border:1px solid rgba(127,140,110,.5);background:rgba(127,140,110,.14);color:inherit;font-size:15px}
.rv-btn small{font-size:12px;opacity:.8}
.rv-btn kbd,.rv-session kbd{font:inherit;font-size:11px;opacity:.65;border:1px solid rgba(127,140,110,.5);border-radius:4px;padding:0 5px}
.rv-btn.again{border-color:#c0705a}.rv-btn.hard{border-color:#c9a45c}.rv-btn.good{border-color:#7fa66a}.rv-btn.easy{border-color:#6a9fb5}
.rv-btn:focus-visible{outline:3px solid #ae793b;outline-offset:2px}
.rv-leech{font-size:13px;padding:10px 12px;border-radius:8px;border:1px solid #c9a45c;background:rgba(201,164,92,.16)}
.rv-summary h2{margin:6px 0}
.rv-suggest{list-style:none;margin:8px 0 0;padding:0;max-height:260px;overflow:auto}
.rv-suggest li{padding:6px 0;border-bottom:1px solid rgba(127,140,110,.2)}
@media(max-width:560px){.rv-rate{grid-template-columns:repeat(2,1fr)}.rv-text{font-size:19px}.rv-row{flex-direction:column;align-items:flex-start}.rv-session{padding:14px}}

/* Chapter decks: readable long questions and large, named filter controls. */
.sd-filter{display:grid;gap:6px;min-width:150px;font-size:.875rem}
.sd-tools{flex-wrap:wrap;align-items:end}
.sd-tools input[type=search]{min-width:160px;flex:1}
.sd-results{font-size:.875rem;margin:10px 0}
.sd-preview{max-height:280px;overflow:auto;padding:8px 0 8px 20px;line-height:1.65}
.sd-preview li{margin-bottom:18px;white-space:pre-wrap;overflow-wrap:anywhere}
.sd-preview p{margin:8px 0}
.sd-info details li{white-space:pre-wrap;overflow-wrap:anywhere}
.rv-limit{font-size:.875rem}.rv-acc li,.rv-bar,.rv-leech{font-size:.875rem}
@media(max-width:560px){.sd-filter{width:100%}.sd-tools input[type=search]{width:100%}.rv-decks{grid-template-columns:1fr}.rv-deck{align-items:flex-start}.rv-deck b{overflow-wrap:anywhere}.rv-deck .btn{flex-shrink:0}}
.rv-working{margin-top:12px;border-top:1px dashed rgba(127,140,110,.4);padding-top:8px}.rv-working summary{cursor:pointer;font-weight:600;font-size:15px;color:#e2bd6a;padding:6px 0}.rv-working p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:16px;line-height:1.6;margin:8px 0 0;opacity:.92}
#moved-notice{position:sticky;top:0;z-index:999;display:flex;flex-wrap:wrap;gap:10px 16px;align-items:center;justify-content:space-between;padding:12px 16px;background:#e2bd6a;color:#1d2414;font-size:14px;line-height:1.5}#moved-notice p{margin:0;max-width:80ch}#moved-notice .btn{padding:8px 12px}
/* ---- audio.css ---- */
/* Audio to notes. Translucent colours so it works in the light, dark and orbital themes. */
#au-root>.card,#au-root>.dialog-error{margin-top:20px}
#au-root>.card:first-child{margin-top:0}
.au-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-top:12px}
.au-consent{border-left:4px solid #c9a45c}
.au-lang{display:flex;gap:10px;align-items:center;margin:14px 0 4px;font-size:13px;color:inherit}
.au-lang select{width:auto;max-width:240px}
.au-preview{margin-top:14px;padding-top:12px;border-top:1px solid rgba(127,140,110,.3)}
.au-preview audio{width:100%;max-width:560px;display:block}
.au-stop{background:#9e5947!important;color:#fff!important}
.au-result textarea{min-height:200px;margin-top:8px;font-size:15px;line-height:1.6}
.au-seg{margin:14px 0 4px;border-top:1px solid rgba(127,140,110,.3);padding-top:8px}
.au-seg summary{cursor:pointer;font-weight:700;font-size:13px;padding:4px 0}
.au-seg ol{list-style:none;margin:8px 0 0;padding:0;max-height:240px;overflow:auto}
.au-seg li{display:flex;gap:10px;align-items:baseline;padding:5px 8px;border-radius:6px;font-size:14px;line-height:1.5}
.au-seg li.on{background:rgba(201,164,92,.22)}
.au-time{flex:none;padding:2px 9px;border-radius:12px;border:1px solid rgba(127,140,110,.5);background:rgba(127,140,110,.14);color:inherit;font-size:12px;font-variant-numeric:tabular-nums}
.au-result h4{margin:18px 0 0}
#au-tool{margin-top:6px}
#au-tool .ai-answer .rv-suggest{max-height:280px}
@media(max-width:560px){.au-actions .btn{flex:1 1 140px}}
/* ---- insights.css ---- */
/* Study insights. Translucent colours so it works in the light, dark and orbital themes. */
#in-root>.card{margin-top:20px}
#in-root .study-actions,.in-range{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.in-range{margin:0 0 4px}
.in-next{border-left:4px solid #c9a45c}
.in-next ul{list-style:none;margin:10px 0 0;padding:0}
.in-next li{display:flex;justify-content:space-between;gap:16px;align-items:center;padding:10px 0;border-bottom:1px solid rgba(127,140,110,.22);font-size:14px;line-height:1.5}
.in-next li:last-child{border-bottom:0}
.in-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:18px;margin-bottom:18px}
.in-stats strong{display:block;font-size:30px;font-family:Georgia,serif;font-weight:400;margin:6px 0 2px}
.in-stats small{display:block;opacity:.75;font-size:12px}
.in-stats small.up{color:#7fa66a;opacity:1}.in-stats small.down{color:#d08a6a;opacity:1}
.in-chart{position:relative;display:flex;gap:6px;align-items:flex-end;height:170px;padding:18px 0 22px;border-bottom:1px solid rgba(127,140,110,.3)}
.in-col{position:relative;flex:1;height:100%;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;min-width:0}
.in-col i{display:block;width:100%;max-width:38px;min-height:2px;border-radius:5px 5px 0 0;background:#8aa56a}
.in-col small{position:absolute;bottom:-20px;font-size:10px;opacity:.75;white-space:nowrap}
.in-val{font-size:10px;opacity:.8;margin-bottom:2px;min-height:12px}
.in-chart.dense{gap:2px}.in-chart.dense .in-val{display:none}.in-chart.dense .in-col small{font-size:8px}
.in-target{position:absolute;left:0;right:0;border-top:2px dashed #c9a45c;pointer-events:none;opacity:.8}
.in-bars{list-style:none;margin:12px 0 0;padding:0}
.in-bars li{display:grid;grid-template-columns:minmax(80px,160px) 1fr minmax(90px,auto);gap:12px;align-items:center;padding:7px 0;font-size:14px}
.in-bars b{font-weight:600;text-align:right;white-space:nowrap}.in-bars small{opacity:.7}
.in-plans{list-style:none;margin:12px 0 0;padding:0}
.in-plans li{display:grid;grid-template-columns:minmax(150px,1fr) 1fr auto;gap:14px;align-items:center;padding:10px 0;border-bottom:1px solid rgba(127,140,110,.2)}
.in-plans small{display:block;opacity:.75;margin-top:3px;font-size:12px}
.in-backlog{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0 4px}
.in-table th,.in-table td{padding:8px 10px;text-align:left;font-size:13px}
.in-missed{list-style:none;margin:8px 0 0;padding:0;font-size:14px}.in-missed li{padding:6px 0;border-bottom:1px solid rgba(127,140,110,.2)}.in-missed small{opacity:.7;margin-left:6px}
.in-note{margin-top:22px}
@media(max-width:620px){.in-bars li,.in-plans li{grid-template-columns:1fr}.in-bars b{text-align:left}.in-next li{flex-direction:column;align-items:flex-start}.in-chart{height:140px}}

.habit-card{margin-top:20px}
.habit-streak{margin:0 0 10px;font-size:14px;font-weight:600}
.habit-log summary{cursor:pointer;font-size:13px;padding:4px 0}
.habit-chips{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}
.habit-chip{padding:9px 14px;border-radius:20px;border:1px solid rgba(127,140,110,.5);background:rgba(127,140,110,.14);color:inherit;font-size:13px}
.habit-chip:hover,.habit-chip:focus-visible{background:rgba(201,164,92,.25)}
.in-habit-set{display:flex;gap:20px;flex-wrap:wrap;margin:16px 0 6px}
.in-habit-set label{display:flex;gap:10px;align-items:center;font-size:13px;margin:0;color:inherit}
.in-habit-set select{width:auto;padding:6px 10px}
/* ---- navgroups.css ---- */
/* Grouped sidebar. Phones keep the compact icon grid: groups dissolve with display:contents. */
.sidebar #nav .nav-group{display:block}
.sidebar #nav .nav-group+.nav-group{margin-top:8px}
.nav-group-title{display:flex;width:100%;justify-content:space-between;align-items:center;gap:8px;background:none;border:0;padding:8px 10px 5px 12px;color:inherit;opacity:.62;font-size:10px;letter-spacing:1.1px;text-transform:uppercase;font-weight:600;cursor:pointer;text-align:left}
.nav-group-title:hover{opacity:.95}
.nav-group-title:focus-visible{outline:3px solid #ae793b;outline-offset:-2px;opacity:1}
.nav-group-title i{font-style:normal;font-size:11px;transition:transform .18s}
.nav-group-title[aria-expanded=false] i{transform:rotate(-90deg)}
.sidebar #nav .nav-group-list{display:grid;gap:3px}
.sidebar #nav .nav-group-list[hidden]{display:none}
.sidebar #nav .nav-group-list a{padding:9px 10px 9px 12px;font-size:13px;gap:9px;line-height:1.25}
.sidebar #nav .nav-group-list a span{font-size:18px;width:20px;flex:none;text-align:center}
.tour-open{display:block;margin:0 0 10px;color:inherit;opacity:.85;font-size:12px;text-decoration:underline;text-underline-offset:3px;background:none;border:0;padding:0;cursor:pointer}
.tour-open:hover{opacity:1}
@media(max-width:760px){
 /* one scrolling row instead of a tall grid, with a thin divider between groups */
 .sidebar #nav{display:flex!important;flex-wrap:nowrap;overflow-x:auto;gap:6px;padding-bottom:6px;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch}
 .sidebar #nav a{flex:0 0 78px;scroll-snap-align:start}
 .sidebar #nav .nav-group+.nav-group .nav-group-list a:first-child{margin-left:8px;position:relative}
 .sidebar #nav .nav-group+.nav-group .nav-group-list a:first-child::before{content:'';position:absolute;left:-7px;top:12%;bottom:12%;border-left:1px solid rgba(127,140,110,.45)}
 .sidebar #nav .nav-group,.sidebar #nav .nav-group-list,.sidebar #nav .nav-group-list[hidden]{display:contents!important}
 .nav-group-title{display:none!important}
 .sidebar #nav .nav-group+.nav-group{margin-top:0}
}
/* ---- tour.css ---- */
/* First-visit guide: popup with swipeable, animated pages. Colours are explicit so it looks the same in every theme. */
body.tour-open{overflow:hidden}
.tour{position:fixed;inset:0;z-index:100;display:grid;place-items:center;padding:16px;background:rgba(6,14,12,.74);backdrop-filter:blur(5px);opacity:0;transition:opacity .2s}
.tour.in{opacity:1}
.tour-card{position:relative;width:min(560px,100%);max-height:calc(100dvh - 32px);display:flex;flex-direction:column;border-radius:20px;background:linear-gradient(160deg,#17332d,#112521);border:1px solid rgba(216,179,101,.45);box-shadow:0 30px 80px rgba(0,0,0,.55);color:#eeebd6;overflow:hidden;transform:translateY(14px) scale(.98);transition:transform .25s}
.tour.in .tour-card{transform:none}
.tour-card:focus{outline:none}
.tour-skip{position:absolute;top:12px;right:14px;z-index:3;background:rgba(0,0,0,.25);border:1px solid rgba(238,235,214,.25);color:#eeebd6;border-radius:20px;padding:6px 14px;font-size:12px;cursor:pointer}
.tour-skip:hover{background:rgba(0,0,0,.4)}
.tour-viewport{overflow:hidden;touch-action:pan-y;user-select:none;-webkit-user-select:none;cursor:grab;flex:1;min-height:0;overflow-y:hidden}
.tour-viewport:active{cursor:grabbing}
.tour-track{display:flex;transform:translateX(calc(var(--i,0)*-100%));transition:transform .38s cubic-bezier(.2,.8,.2,1);will-change:transform}
.tour-track.dragging{transition:none}
.tour-slide{flex:0 0 100%;min-width:0;padding:0 26px 8px;overflow-y:auto;max-height:calc(100dvh - 170px)}
.tour-art{position:relative;height:190px;margin:0 -26px 14px;overflow:hidden;background:radial-gradient(ellipse at 50% 120%,rgba(216,179,101,.22),transparent 65%),rgba(0,0,0,.18);display:grid;place-items:center}
.tour-title{margin:0 0 4px;font-size:26px;line-height:1.2;color:#f4efd8}
.tour-lead{margin:0 0 12px;color:#d8b365;font-size:15px}
.tour-points{margin:0 0 14px;padding-left:20px;font-size:14px;line-height:1.6;color:#dfe6d6}
.tour-points li{margin:5px 0}
.tour-points b{color:#fff6dc}
.tour-try,.tour-final .btn{margin:4px 8px 10px 0}
.tour-final{display:flex;flex-wrap:wrap}
.tour-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 18px 6px}
.tour-foot .btn{min-width:92px}
.tour-dots{display:flex;gap:7px;flex-wrap:wrap;justify-content:center}
.tour-dot{width:9px;height:9px;padding:0;border-radius:50%;border:0;background:rgba(238,235,214,.3);cursor:pointer;transition:transform .2s,background .2s}
.tour-dot.on{background:#d8b365;transform:scale(1.35)}
.tour-dot:focus-visible{outline:2px solid #fff;outline-offset:3px}
.tour-hint{margin:0;padding:0 18px 12px;text-align:center;font-size:11px;opacity:.6}

/* ---- animations: only the current page animates, so each one starts fresh when you arrive ---- */
.tour-art *{animation-play-state:paused}
.is-current .tour-art *{animation-play-state:running}
.tour-art .word{font-family:Georgia,serif;font-size:54px;font-weight:400;color:#f4efd8;letter-spacing:-2px;animation:rise .8s both}
.tour-art .orb{position:absolute;border-radius:50%;filter:blur(2px);animation:float 5s ease-in-out infinite}
.tour-art .o1{width:90px;height:90px;left:12%;top:20%;background:rgba(216,179,101,.28)}
.tour-art .o2{width:60px;height:60px;right:14%;top:12%;background:rgba(120,170,120,.28);animation-delay:-2s}
.tour-art .o3{width:44px;height:44px;right:30%;bottom:10%;background:rgba(160,200,230,.25);animation-delay:-3.4s}
.tour-art .spark{position:absolute;font-style:normal;color:#d8b365;animation:twinkle 2.4s ease-in-out infinite}
.tour-art .s1{left:26%;top:18%}.tour-art .s2{right:22%;top:44%;animation-delay:-.8s;font-size:22px}.tour-art .s3{left:60%;bottom:14%;animation-delay:-1.6s;font-size:12px}
/* menu */
.art-menu{align-content:end;gap:7px;padding:0 60px 14px;justify-items:stretch}
.art-menu .mg{display:flex;align-items:center;gap:10px;padding:8px 12px;border-radius:9px;background:rgba(238,235,214,.09);border:1px solid rgba(238,235,214,.15);animation:slideIn .55s both;animation-delay:calc(var(--i)*.14s)}
.art-menu .mg b{font-size:12px;letter-spacing:.5px;color:#d8b365;min-width:120px}
.art-menu .mg span{height:7px;border-radius:4px;background:rgba(238,235,214,.25);flex:1}.art-menu .mg span+span{flex:.6}
/* focus */
.art-focus svg{width:150px;height:150px}
.art-focus .ring-bg{fill:none;stroke:rgba(238,235,214,.15);stroke-width:7}
.art-focus .ring{fill:none;stroke:#d8b365;stroke-width:7;stroke-linecap:round;stroke-dasharray:100;stroke-dashoffset:100;transform:rotate(-90deg);transform-origin:60px 60px;animation:ring 4s ease-in-out infinite}
.art-focus .clock{position:absolute;font-size:28px;font-variant-numeric:tabular-nums;color:#f4efd8}
.art-focus .coin-pop{position:absolute;right:26%;top:22%;font-style:normal;font-weight:700;color:#d8b365;animation:pop 4s ease-in-out infinite}
/* plan */
.art-plan{align-content:end;padding-bottom:26px}
.art-plan .bars{display:flex;gap:12px;align-items:flex-end;height:110px}
.bars span{display:block;width:26px;height:var(--h);border-radius:6px 6px 0 0;background:rgba(216,179,101,.55);transform-origin:bottom;animation:grow .7s both;animation-delay:calc(var(--i)*.09s)}
.bars span.today{background:#d8b365;box-shadow:0 0 18px rgba(216,179,101,.6);animation:grow .7s both,pulse 2s ease-in-out .8s infinite}
.art-plan .days{display:flex;gap:12px;margin-top:6px}.art-plan .days small{width:26px;text-align:center;font-size:10px;opacity:.7}
.chip-float{position:absolute;top:14px;left:50%;translate:-50% 0;padding:5px 14px;border-radius:20px;font-style:normal;font-size:12px;background:rgba(127,166,106,.28);border:1px solid rgba(127,166,106,.7);animation:rise .7s .4s both}
/* notes */
.art-notes .paper{width:200px;padding:16px;border-radius:10px;background:rgba(238,235,214,.1);border:1px solid rgba(238,235,214,.2);display:grid;gap:11px}
.art-notes .paper span{display:block;height:8px;border-radius:4px;background:rgba(238,235,214,.5);width:0;animation:type 1s both;animation-delay:calc(var(--i)*.3s)}
.art-notes .recall{top:auto;bottom:16px;left:auto;right:18%;translate:none;animation:pulse 1.8s ease-in-out infinite}
/* audio */
.art-audio{align-content:center;gap:14px}
.art-audio .wave{display:flex;align-items:center;gap:5px;height:64px}
.art-audio .wave span{width:6px;border-radius:3px;background:#d8b365;height:12px;animation:wave 1.1s ease-in-out infinite;animation-delay:calc(var(--i)*-.09s)}
.art-audio .lines{display:grid;gap:8px;width:230px}
.art-audio .lines span{height:8px;border-radius:4px;background:rgba(238,235,214,.5);width:0;animation:type 1.4s 1s both}
.art-audio .lines span:nth-child(2){animation-delay:1.5s}.art-audio .lines span:nth-child(3){animation-delay:2s}
@keyframes wave{0%,100%{height:10px}50%{height:58px}}
/* flashcards */
.art-cards{align-content:center;gap:14px}
.flipper{position:relative;width:200px;height:92px;perspective:700px;animation:flip 5s ease-in-out infinite;transform-style:preserve-3d}
.face{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;border-radius:12px;backface-visibility:hidden;font-size:16px;border:1px solid rgba(216,179,101,.6)}
.face small{font-size:9px;letter-spacing:1.5px;opacity:.7}
.face.front{background:#1d4034}.face.back{background:#2c5642;transform:rotateY(180deg)}
.rates{display:flex;gap:6px}.rates span{padding:4px 9px;border-radius:7px;font-size:11px;border:1px solid rgba(238,235,214,.3);background:rgba(238,235,214,.07)}
.rates .pick{animation:pick 5s ease-in-out infinite}
/* ask */
.art-ask{align-content:center;gap:9px;padding:0 50px;justify-items:start}
.bubble{max-width:78%;padding:9px 14px;border-radius:14px;font-size:13px;line-height:1.4;animation:rise .6s both}
.bubble.me{justify-self:end;background:rgba(216,179,101,.3);border-bottom-right-radius:3px}
.bubble.ai{background:rgba(238,235,214,.12);border-bottom-left-radius:3px;animation-delay:.9s}
.bubble small{display:block;margin-top:4px;font-size:10px;opacity:.65}
/* insights */
.art-insights{align-content:center;gap:10px}
.bars.mini{display:flex;gap:8px;align-items:flex-end;height:80px}.bars.mini span{width:22px}
.streak{display:flex;gap:9px}
.streak i{width:16px;height:16px;border-radius:50%;background:#7fa66a;animation:popIn .4s both;animation-delay:calc(var(--i)*.12s + .5s)}
.streak i.rest{background:transparent;border:2px dashed rgba(238,235,214,.55)}
.art-insights .cap{font-size:11px;opacity:.7}
/* games */
.art-games{align-content:center;gap:12px}
.flow{display:flex;align-items:center;gap:12px}.flow i{font-style:normal;opacity:.7;animation:nudge 1.4s ease-in-out infinite}
.pill{padding:7px 14px;border-radius:20px;background:rgba(238,235,214,.12);border:1px solid rgba(238,235,214,.3);font-size:13px}
.coin{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:#d8b365;color:#3b2c0b;font-size:18px;animation:spin 2.4s linear infinite}
.crate{width:46px;height:34px;border-radius:5px;background:linear-gradient(#8a6334,#6c4a24);border:2px solid #b8894c;position:relative;animation:rise .8s .6s both}
.crate::after{content:'';position:absolute;left:0;right:0;top:50%;height:2px;background:#b8894c}
@keyframes rise{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
@keyframes slideIn{from{opacity:0;transform:translateX(-26px)}to{opacity:1;transform:none}}
@keyframes float{0%,100%{transform:translateY(0)}50%{transform:translateY(-12px)}}
@keyframes twinkle{0%,100%{opacity:.25;transform:scale(.8)}50%{opacity:1;transform:scale(1.2)}}
@keyframes ring{0%{stroke-dashoffset:100}70%,100%{stroke-dashoffset:15}}
@keyframes pop{0%,55%{opacity:0;transform:translateY(8px)}70%{opacity:1;transform:translateY(-6px)}100%{opacity:0;transform:translateY(-22px)}}
@keyframes grow{from{transform:scaleY(0)}to{transform:scaleY(1)}}
@keyframes pulse{0%,100%{filter:brightness(1)}50%{filter:brightness(1.35)}}
@keyframes type{from{width:0}to{width:var(--w)}}
@keyframes flip{0%,35%{transform:rotateY(0)}50%,85%{transform:rotateY(180deg)}100%{transform:rotateY(360deg)}}
@keyframes pick{0%,50%{background:rgba(238,235,214,.07);border-color:rgba(238,235,214,.3)}60%,90%{background:rgba(127,166,106,.45);border-color:#7fa66a}100%{background:rgba(238,235,214,.07)}}
@keyframes popIn{from{transform:scale(0)}to{transform:scale(1)}}
@keyframes nudge{0%,100%{transform:translateX(0)}50%{transform:translateX(5px)}}
@keyframes spin{from{transform:rotateY(0)}to{transform:rotateY(360deg)}}
@media(max-width:520px){.tour{padding:0;align-items:end}.tour-card{border-radius:20px 20px 0 0;max-height:94dvh;width:100%}.tour-slide{padding:0 18px 8px;max-height:calc(94dvh - 160px)}.tour-art{margin:0 -18px 12px;height:160px}.tour-title{font-size:23px}.tour-foot{padding:10px 12px 4px}.tour-foot .btn{min-width:78px;padding:10px 12px}.tour-dots{gap:5px}.art-menu{padding:0 28px}.art-menu .mg b{min-width:100px}}
@media(prefers-reduced-motion:reduce){.tour,.tour-card,.tour-track,.tour-dot{transition:none!important}.tour-art *{animation:none!important}.bars span,.art-notes .paper span{width:auto}.art-audio .lines span{width:var(--w)}.art-audio .wave span{height:30px}.art-notes .paper span{width:var(--w)}.art-focus .ring{stroke-dashoffset:25}.face.back{transform:rotateY(180deg)}}
/* ---- study-tokens.css ---- */
.token-wallet{display:flex;align-items:center;justify-content:space-between;gap:24px;border:1px solid #62b8b080;background:linear-gradient(115deg,var(--card,#173b35),#1c4850);color:#e9fff6}.token-wallet p{color:#c0ded8}.token-offers{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:24px 0}.token-offers article{padding:20px;border:1px solid #7eaaa766;border-radius:12px}.token-offers small{color:var(--muted,#91aaa4)}.token-celebration{position:fixed;z-index:2000;bottom:85px;left:50%;transform:translateX(-50%);width:min(440px,calc(100vw - 28px));display:flex;align-items:center;gap:18px;padding:20px;border:1px solid #8bf0db;border-radius:18px;background:#133d43;color:#effff6;box-shadow:0 10px 70px #061b3266;animation:token-arrive .55s ease-out}.token-seal{font-size:35px;background:#28566b;border:2px solid #8bf0db;padding:8px 15px;clip-path:polygon(25% 0,75% 0,100% 50%,75% 100%,25% 100%,0 50%);animation:token-shine 2s ease-in-out 3}.token-celebration small{font-size:8px;letter-spacing:1.4px;display:block;color:#b5dcd3}.token-celebration strong{font-size:21px;display:block}.token-celebration div>span{font-size:11px}.token-celebration button{background:none;color:inherit;border:0;font-size:25px;padding:10px;cursor:pointer;margin-left:auto}@keyframes token-arrive{from{opacity:0;transform:translate(-50%,25px) scale(.95)}to{opacity:1;transform:translate(-50%,0) scale(1)}}@keyframes token-shine{50%{filter:brightness(1.5);transform:rotate(12deg)}}@media(max-width:600px){.token-wallet{align-items:flex-start;flex-direction:column}.token-offers{grid-template-columns:1fr}}@media(prefers-reduced-motion:reduce){.token-celebration,.token-seal{animation:none}}
/* ---- orbital-theme.css ---- */
/* One Study Hamlet shell, evolved for Chapter II. */
body.orbital-chapter{--bg:#050811;--paper:#0c1425;--ink:#e7f1ff;--muted:#a0b2c9;--line:#263c56;--green:#67e8f9;--lime:#123348;--orange:#a5b4fc;background:radial-gradient(ellipse at 80% 0,#12334d80,transparent 60%),#050811;color:var(--ink);color-scheme:dark}
.orbital-chapter .sidebar{background:#090f1e;border-color:#25374d;overflow-y:auto;padding-top:22px}
.orbital-chapter .brand{color:#f0f9ff;font-family:inherit;letter-spacing:-1px}.orbital-chapter .brand-icon,.orbital-chapter .brand-dot{color:#67e8f9}
.orbital-chapter .chapter{color:#81c9e3;margin-top:24px;letter-spacing:1px}
.orbital-chapter #nav{gap:3px}.orbital-chapter #nav a{color:#b5c6da;padding:10px 12px}.orbital-chapter #nav a:hover{background:#102638}.orbital-chapter #nav a.active{background:#113449;color:#8deaff;box-shadow:inset 3px 0 #67e8f9}
.orbital-chapter .shell>header{background:#0a1120;color:#a8bfd7;border-color:var(--line)}.orbital-chapter .status-dot{background:#67e8f9;box-shadow:0 0 12px #67e8f9}
.orbital-chapter :is(.card,.note-editor,.note-item,.reader,.timer-card,dialog,.library-tools){background:var(--paper);color:var(--ink);border-color:var(--line)}
.orbital-chapter :is(input,textarea,select){background:#080e1b;color:#e7f1ff;border-color:#35506a}.orbital-chapter :is(h1,h2,h3){color:#edf7ff}.orbital-chapter :is(.eyebrow,.muted,.subtitle){color:#a0b2c9}
.orbital-chapter .btn{background:#67e8f9;color:#04202b;border:1px solid #67e8f9}.orbital-chapter .btn.secondary{background:#112337;color:#c1ecff;border-color:#345b76}
.orbital-chapter .sidebar-bottom{padding-top:20px}.orbital-chapter .sidebar-bottom :is(.level-icon,p){display:none}.orbital-chapter .bar{background:#1a2b40}.orbital-chapter .bar i{background:#67e8f9}
.orbital-chapter .shell>footer{border-color:var(--line);color:#a0b2c9}.orbital-chapter.orbital-frame-open #app{max-width:none;padding:0}.orbital-chapter .ops-frame{width:100%;height:calc(100dvh - 86px);min-height:720px;border:0;border-radius:0;background:#050811}
.orbital-chapter :is(button,a):focus-visible{outline:3px solid #a5b4fc;outline-offset:3px}
@media(max-width:760px){.orbital-chapter .sidebar{padding:12px;overflow:visible}.orbital-chapter .chapter{margin:8px;text-align:center}.orbital-chapter .sidebar #nav{display:flex;overflow-x:auto;gap:6px;padding-bottom:8px}.orbital-chapter .sidebar #nav a{flex:0 0 84px;min-height:56px;padding:7px}.orbital-chapter .ops-frame{height:calc(100dvh - 170px);min-height:650px}}
.orbital-chapter :is(.brand,h1,h2,h3,#noteTitle){font-family:'DM Sans',sans-serif!important}.orbital-chapter :is(input,textarea,select){color:#e7f1ff!important}.orbital-chapter :is(input,textarea)::placeholder{color:#91a8c2}.orbital-chapter .btn{box-shadow:0 4px 18px #22d3ee20}.orbital-chapter #resources{background:#112b3d;color:#b9f3ff;border-color:#2e6078}.orbital-chapter #theme-button{display:none}.orbital-chapter .avatar{background:#123348;border-color:#345b76}.orbital-chapter :is(.note-format button,.library-tools button,.note-tools button){background:#14283d;color:#c5eaff;border-color:#35516c}

/* Phones: a mining run or patrol takes the whole screen (the game asks for it; the shell restores itself afterwards). */
body.ops-playing{overflow:hidden;overscroll-behavior:none}
body.ops-playing .ops-frame{position:fixed!important;inset:0;width:100%!important;height:100dvh!important;min-height:0!important;max-height:none!important;border-radius:0!important;z-index:2147483000;background:#030712}
/* Readability: the parchment-era colours in gamify.css were dark-on-dark once the reader and notes moved to the dark theme. */
.orbital-chapter .reader .reading-text,.orbital-chapter .reader h3{color:#e4eefb}
.orbital-chapter .reader .tag{background:#123348;color:#9fe8f5;border-color:#2a5a73}
.orbital-chapter .reader .btn.secondary{background:#102638;color:#cfeaff;border-color:#35506a}
.orbital-chapter .note-layout>section label,.orbital-chapter .note-layout>section label.text-btn{color:#a9bbd0}
.orbital-chapter .note-title,.orbital-chapter .note-editor,.orbital-chapter .note-layout>section input{color:#e7f1ff}
/* ---- a11y.css ---- */
/* Accessibility and comfort layer: skip link, readable minimum sizes, bigger touch targets. */
.skip-link{position:fixed;left:12px;top:-64px;z-index:1000;padding:10px 16px;border-radius:8px;background:#67e8f9;color:#04202b;font-weight:700;text-decoration:none;transition:top .12s}
.skip-link:focus{top:12px}
main[tabindex="-1"]:focus,h1[tabindex="-1"]:focus{outline:none}
/* nothing below 11px; secondary text 12px */
.sidebar .chapter,.sidebar #nav .nav-group span,.shell>header>div:first-child,.shell small,.shell .save-status,.shell .tag,.shell .badge{font-size:12px}
.sidebar .chapter,.shell>header>div:first-child{font-size:11px}
.shell>footer,.shell>footer span,.shell>footer a{font-size:12px}
.shell>footer a{display:inline-block;padding:8px 4px;margin:-8px 0}
.achievement strong{font-size:12px}
.achievement small{line-height:1.35}
.shell .btn,.shell button,.shell select{min-height:36px}
.shell .text-btn{min-height:32px}
@media (pointer:coarse){
  .shell .btn,.shell button,.shell select,.shell input:not([type=checkbox]):not([type=radio]){min-height:44px}
  .shell input[type=checkbox],.shell input[type=radio]{width:24px;height:24px}
  .shell>footer a{padding:12px 6px}
  #nav a,#nav button{min-height:44px}
}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}
}
@media (forced-colors:active){
  .skip-link{border:2px solid ButtonText}
  #nav a.active{outline:2px solid Highlight}
}
/* Light theme (Chapter I): dark-theme text colours that were too pale on the cream background */[data-theme=light] body:not(.orbital-chapter) #app :is(.muted,small,.kingdom-top p,.kingdom-top span,.kingdom-top em){color:#4f665c!important}[data-theme=light] body:not(.orbital-chapter) #app :is(.kingdom-top small,.kingdom-top strong,.routine-steps b,.stats .stat strong){color:#7a5d1c!important}[data-theme=light] body:not(.orbital-chapter) #app :is(.token-wallet p,.chart-col span,.plan-day small){color:#44594f!important}[data-theme=light] body:not(.orbital-chapter) #app .task-row strong,[data-theme=light] body:not(.orbital-chapter) #app .task-copy{color:#253e37}[data-theme=light] body:not(.orbital-chapter) .text-btn,[data-theme=light] body:not(.orbital-chapter) .sidebar .text-btn{color:#3a5447!important}[data-theme=light] body:not(.orbital-chapter) #app :is(.btn.secondary,label.btn.secondary,.reader .btn.secondary){background:#e5ecdf!important;color:#294737!important;border-color:#a9bfac!important}[data-theme=light] body:not(.orbital-chapter) .reader .tag{color:#45593a}[data-theme=light] body:not(.orbital-chapter) #app [data-action="delete-note"],[data-theme=light] body:not(.orbital-chapter) #app .danger-text{color:#8a4b22}

/* Readable text on the parchment-coloured note editor and reading page in the dark theme (contrast at least 4.5:1) */
html:not([data-theme=light]) .note-layout>.card :is(label,.note-help){color:#4a5438}
html:not([data-theme=light]) .note-layout>.card .save-status{color:#3f5a26}
html:not([data-theme=light]) .note-layout>.card .card-head button{color:#8c3a24}
html:not([data-theme=light]) .reader .tag{color:#3e5130}
html:not([data-theme=light]) .reader>h3{color:#4e5a3f}
/* ---- light-theme.css ---- */
/* Light theme, finished for both chapters. Loaded last.
   Chapter I (woodland): warm paper, forest green, amber for tokens.  Chapter II (orbital): cool paper, deep teal, indigo accents.
   Games keep their own artwork. */

/* ---------- Chapter I: the blocks that stayed dark ---------- */
[data-theme=light] body:not(.orbital-chapter) .achievement-gallery{background:#fffdf7;border-color:#d3dccd;box-shadow:0 8px 26px -18px rgba(37,62,55,.35)}
[data-theme=light] body:not(.orbital-chapter) .achievement{color:#22372f;border-color:#dbe3d4}
[data-theme=light] body:not(.orbital-chapter) .achievement strong{color:#22372f!important}
[data-theme=light] body:not(.orbital-chapter) .achievement small{color:#4f665c!important}
[data-theme=light] body:not(.orbital-chapter) .achievement.locked{opacity:1}
[data-theme=light] body:not(.orbital-chapter) .achievement.locked :is(strong,small){color:#56685f!important}
[data-theme=light] body:not(.orbital-chapter) .achievement-emblem{background:#f3ead0;border-color:#cdb46c;color:#7a5d1c;box-shadow:none}
[data-theme=light] body:not(.orbital-chapter) .achievement.locked .achievement-emblem{background:#eef1ea;border-color:#c8d2c4;color:#6b7d73}
[data-theme=light] body:not(.orbital-chapter) .journey-strip{background:linear-gradient(120deg,#f7f0dc,#efe6cb);border-color:#dccb98}
[data-theme=light] body:not(.orbital-chapter) #app .journey-strip :is(h2,h3,p,li,span){color:#22372f}
[data-theme=light] body:not(.orbital-chapter) #app .journey-strip .eyebrow{color:#7a5d1c}
[data-theme=light] body:not(.orbital-chapter) .orbital-unlock{background:linear-gradient(135deg,#eef2ff,#e0e7ff 70%,#e6e3fb);border-color:#c7d2fe;color:#1e1b4b}
[data-theme=light] body:not(.orbital-chapter) #app .orbital-unlock :is(h2,p,small,b){color:#1e1b4b}
[data-theme=light] body:not(.orbital-chapter) #app .orbital-unlock .eyebrow{color:#4338ca}
[data-theme=light] body:not(.orbital-chapter) .orbital-progress{background:#c7d2fe}
[data-theme=light] body:not(.orbital-chapter) .orbital-progress i{background-image:linear-gradient(90deg,#0e7490,#4f46e5)}
[data-theme=light] body:not(.orbital-chapter) .orbital-emblem{color:#4f46e5;border-color:#a5b4fc}
[data-theme=light] body:not(.orbital-chapter) .timer-ring{background:radial-gradient(#fffdf7,#f1eedf);border-color:#9fb48c;box-shadow:0 0 0 7px #e6ecdf,0 10px 30px -16px rgba(37,62,55,.4)}
[data-theme=light] body:not(.orbital-chapter) .timer-ring *{color:#22372f}
[data-theme=light] body:not(.orbital-chapter) .notice{background:#eef3e6;border-color:#cbd8c0;color:#33493f}

[data-theme=light] body:not(.orbital-chapter) .timer-presets button{background:#eef1e7;color:#2f5a46;border-color:#c3d0bb}
[data-theme=light] body:not(.orbital-chapter) .timer-presets button:is(:hover,.active,[aria-pressed="true"]){background:#2f5a46;color:#fbf7e9}
[data-theme=light] body:not(.orbital-chapter) .bar{background:#dfe6d8}
[data-theme=light] body:not(.orbital-chapter) .bar i{background:#2f5a46}

/* ---------- Chapter II shell in light ---------- */
[data-theme=light] body.orbital-chapter{--bg:#f3f6fa;--paper:#ffffff;--ink:#14243a;--muted:#4b5b70;--line:#d5dee9;--green:#0e7490;--lime:#e0f2f7;--orange:#4f46e5;background:radial-gradient(ellipse at 80% 0,#dbeafe99,transparent 60%),#f3f6fa;color:#14243a;color-scheme:light}
[data-theme=light] .orbital-chapter .sidebar{background:#e9eff6;border-color:#d5dee9}
[data-theme=light] .orbital-chapter .brand{color:#0f2a44}
[data-theme=light] .orbital-chapter :is(.brand-icon,.brand-dot){color:#0e7490}
[data-theme=light] .orbital-chapter .chapter{color:#0e7490}
[data-theme=light] .orbital-chapter #nav a{color:#33465e}
[data-theme=light] .orbital-chapter #nav a:hover{background:#dbe7f2}
[data-theme=light] .orbital-chapter #nav a.active{background:#d4ecf6;color:#0b4f63;box-shadow:inset 3px 0 #0e7490;border-color:#a5d3e3}
[data-theme=light] .orbital-chapter #nav :is(.nav-group-title,.nav-group summary,button){color:#4b5b70}
[data-theme=light] .orbital-chapter .shell>header{background:#ffffffd9;color:#4b5b70;border-color:#d5dee9}
[data-theme=light] .orbital-chapter .status-dot{background:#0e7490;box-shadow:none}
[data-theme=light] .orbital-chapter :is(.card,.note-editor,.note-item,.reader,.timer-card,dialog,.library-tools){background:#ffffff;color:#14243a;border-color:#d5dee9;box-shadow:0 1px 2px rgba(15,23,42,.05),0 10px 28px -20px rgba(15,23,42,.25)}
[data-theme=light] .orbital-chapter :is(input,textarea,select){background:#f8fafc!important;color:#14243a!important;border-color:#c9d5e2!important}
[data-theme=light] .orbital-chapter :is(input,textarea)::placeholder{color:#7b8aa0}
[data-theme=light] .orbital-chapter :is(h1,h2,h3){color:#0f2340}
[data-theme=light] .orbital-chapter :is(.eyebrow,.muted,.subtitle){color:#4b5b70}
[data-theme=light] .orbital-chapter .btn{background:#0e7490;color:#ffffff;border-color:#0e7490;box-shadow:0 4px 14px -6px rgba(14,116,144,.5)}
[data-theme=light] .orbital-chapter .btn:hover{background:#0c637b}
[data-theme=light] .orbital-chapter .btn.secondary{background:#eef4fa;color:#0b4f63;border-color:#b9cfe0;box-shadow:none}
[data-theme=light] .orbital-chapter .bar{background:#dbe4ee}
[data-theme=light] .orbital-chapter .bar i{background:#0e7490}
[data-theme=light] .orbital-chapter .shell>footer{color:#4b5b70;border-color:#d5dee9}
[data-theme=light] .orbital-chapter .ops-frame{background:#f3f6fa}
[data-theme=light] .orbital-chapter :is(button,a):focus-visible{outline-color:#4f46e5}
[data-theme=light] .orbital-chapter #resources{background:#e0f2f7;color:#0b4f63;border-color:#a5d3e3}
[data-theme=light] .orbital-chapter .avatar{background:#e0f2f7;border-color:#a5d3e3}
[data-theme=light] .orbital-chapter :is(.note-format button,.library-tools button,.note-tools button){background:#eef4fa;color:#0b4f63;border-color:#c9d5e2}
[data-theme=light] .orbital-chapter .reader :is(.reading-text,h3){color:#1e293b}
[data-theme=light] .orbital-chapter .reader .tag{background:#e0f2f7;color:#0b4f63;border-color:#a5d3e3}
[data-theme=light] .orbital-chapter .reader .btn.secondary{background:#eef4fa;color:#0b4f63;border-color:#b9cfe0}
[data-theme=light] .orbital-chapter .note-layout>section :is(label,label.text-btn){color:#4b5b70}
[data-theme=light] .orbital-chapter :is(.note-title,.note-editor,.note-layout>section input){color:#14243a}
[data-theme=light] .orbital-chapter .text-btn{color:#0b4f63!important}
/* the theme switch is available in both chapters */
body.orbital-chapter #theme-button{display:inline-flex}
/* Chapter II light: components whose only colours were the dark defaults */
[data-theme=light] .orbital-chapter .sidebar-bottom :is(small,strong){color:#4b5b70}
[data-theme=light] .orbital-chapter :is(.cloud-indicator,#cloud-status){background:#e0f2f7;color:#0b4f63;border-color:#a5d3e3}
[data-theme=light] .orbital-chapter #app :is(label,.muted,small,.saved-filter,.autosave-option,.chart-col span,.save-status){color:#4b5b70}
[data-theme=light] .orbital-chapter #app :is(.backup-card p,.card p){color:#33465e}
[data-theme=light] .orbital-chapter .library-card.selected{background:#e6f4fa;border-color:#7cc4dc}
[data-theme=light] .orbital-chapter .notice{background:#eef6fb;border-color:#c9e2ee;color:#24435a}
[data-theme=light] .orbital-chapter .notice :is(a,u){color:#0b4f63}
[data-theme=light] .orbital-chapter .badge{background:#eef2ff;color:#3730a3;border-color:#c7d2fe}
[data-theme=light] .orbital-chapter .achievement-gallery{background:#ffffff;border-color:#d5dee9;box-shadow:0 10px 28px -20px rgba(15,23,42,.25)}
[data-theme=light] .orbital-chapter .achievement strong{color:#14243a!important}
[data-theme=light] .orbital-chapter .achievement small{color:#4b5b70!important}
[data-theme=light] .orbital-chapter .achievement-emblem{background:#e0f2f7;border-color:#7cc4dc;color:#0b4f63;box-shadow:none}
[data-theme=light] .orbital-chapter .achievement.locked .achievement-emblem{background:#eef2f6;border-color:#cbd5e1;color:#64748b}
[data-theme=light] .orbital-chapter .stats .stat strong{color:#0e7490}
[data-theme=light] .orbital-chapter :is(.library-card,.review-row,.history-row){background:#ffffff;border-color:#d5dee9;color:#14243a}
[data-theme=light] .orbital-chapter :is(.library-card,.review-row,.history-row) :is(span,small){color:#4b5b70}
[data-theme=light] .orbital-chapter #app [data-action="delete-note"]{color:#9f1239}

/* Chapter II dark: the cloud pill in the space palette */
html:not([data-theme=light]) .orbital-chapter .cloud-indicator{background:#112b3d;color:#b9f3ff;border-color:#2e6078}
/* ---- phone.css ---- */
/* Phone and Android app layout (loaded last). */
@media (max-width:760px){
  /* brand and menu: smaller logo row, labels wrap between words only */
  .sidebar{padding:8px 10px 4px}
  .sidebar .brand{font-size:24px;margin-bottom:4px}
  .sidebar .chapter{display:none}
  .sidebar #nav a{flex:0 0 auto;min-width:76px;max-width:112px;padding:7px 8px;font-size:12px;overflow-wrap:normal;word-break:normal;hyphens:manual;min-height:54px}
  .sidebar #nav{mask-image:linear-gradient(90deg,#000 88%,transparent);-webkit-mask-image:linear-gradient(90deg,#000 88%,transparent);padding-right:24px}

  /* header: one compact row instead of two tall ones */
  .shell>header{padding:6px 10px;min-height:0}
  .header-right{flex-wrap:nowrap;gap:6px;justify-content:flex-start;align-items:center;min-width:0}
  .header-right>*{flex:0 0 auto}
  .header-right>span{order:0;width:auto;flex:1 1 auto;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px;padding:8px 10px}
  .cloud-indicator{flex:0 1 auto!important;max-width:118px;min-width:0;white-space:nowrap!important;overflow:hidden;text-overflow:ellipsis;font-size:12px!important;padding:8px 10px;min-height:40px}
  .utility-button,.avatar{min-width:40px;min-height:40px;padding:6px}
  .hide-narrow{display:none}

  /* study home: the token treasury sits under the heading instead of in a narrow column */
  .kingdom-top{flex-direction:column;align-items:stretch!important;gap:12px}
  .kingdom-top>*{width:auto!important;max-width:none!important;border-left:0!important;padding-left:0!important}
  .kingdom-top aside,.kingdom-top>div:last-child{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px}

  /* readable sizes on small screens */
  .page-heading .btn,.shell .btn{font-size:14px}
  .stat .eyebrow,.achievement-gallery .eyebrow{font-size:11px!important}
  .in-val,.chart-col span{font-size:11px}
}

/* touch screens: every control at least 44 px, even text-style buttons */
@media (pointer:coarse){
  .shell .text-btn{min-height:44px;padding-left:6px;padding-right:6px}
  .shell a.text-btn,.shell #app p>a{display:inline-flex;align-items:center;min-height:44px}
  .shell input[type=checkbox],.shell input[type=radio]{width:26px;height:26px}
}

/* phones: a game or Chapter II fills the space under the menu like an app screen, with one scroll area instead of two */
@media (max-width:760px){
  body.orbital-frame-open:not(.ops-playing),body.playing-village{height:100dvh;overflow:hidden;display:flex;flex-direction:column}
  :is(body.orbital-frame-open:not(.ops-playing),body.playing-village) .sidebar{flex:none}
  :is(body.orbital-frame-open:not(.ops-playing),body.playing-village) .shell{flex:1 1 auto;min-height:0;display:flex;flex-direction:column}
  :is(body.orbital-frame-open:not(.ops-playing),body.playing-village) .shell>footer{display:none}
  :is(body.orbital-frame-open:not(.ops-playing),body.playing-village) #app{flex:1 1 auto;min-height:0;display:flex;flex-direction:column;padding:0!important}
  body.orbital-frame-open:not(.ops-playing) .ops-frame{flex:1 1 auto;height:auto!important;min-height:0!important}
  body.playing-village .hearthguard-heading{margin:6px 10px;gap:8px;flex-wrap:nowrap;align-items:center}
  body.playing-village .hearthguard-heading h1{font-size:20px;margin:0}
  body.playing-village .hearthguard-heading :is(p,.eyebrow){display:none}
  body.playing-village .hearthguard-actions{flex-wrap:nowrap;gap:6px}
  body.playing-village .hearthguard-actions .btn{padding:8px 10px;min-height:40px;font-size:13px;white-space:nowrap}
  body.playing-village .hearthguard-frame{flex:1 1 auto;height:auto!important;min-height:0!important;border-radius:0;border-left:0;border-right:0}
  body.playing-village #app>.note-help,body.playing-village #app>p{display:none}
}
@media (pointer:coarse){
  /* inline links get a taller touch area without moving the text around them */
  .shell #app a:not(.btn):not(.library-card):not(.related-card){display:inline-block;padding-block:12px;margin-block:-12px}
  .shell #app .task-row>button,.shell #app .text-btn{min-width:44px}
  .kingdom-wallet em{font-size:12px}
}

/* phones: app-style bottom bar (phone-nav.js) instead of the sideways menu strip; "More" opens the full menu as a sheet */
.phone-tabs,.phone-sheet-head,.phone-sheet-extras{display:none}
@media (max-width:760px){
  .sidebar{padding:6px 12px;min-height:0;justify-content:center}
  .sidebar .brand{font-size:21px;margin:0}
  .sidebar .brand .sh-mark{width:28px;height:28px}
  body:not(.phone-menu-open) .sidebar #nav{display:none!important}
  .phone-tabs{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:30;background:#10201f;border-top:1px solid rgba(201,214,180,.18);padding:4px 4px calc(4px + env(safe-area-inset-bottom));box-shadow:0 -6px 20px rgba(0,0,0,.25)}
  .phone-tabs>*{flex:1 1 0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:54px;padding:4px 2px;border-radius:10px;background:none;border:0;color:#b9c7b4;font:inherit;text-decoration:none}
  .phone-tabs span{font-size:20px;line-height:1}
  .phone-tabs b{font-size:11px;font-weight:600;letter-spacing:.2px}
  .phone-tabs .active{color:#f1dfa6;background:rgba(226,189,106,.14)}
  .phone-tabs>*:focus-visible{outline:3px solid #ae793b;outline-offset:-3px}
  .shell{padding-bottom:calc(66px + env(safe-area-inset-bottom))}
  #toast{bottom:calc(78px + env(safe-area-inset-bottom))}
  /* games and Chapter II use the whole screen; their own "Back to study" button returns */
  :is(body.orbital-frame-open,body.playing-village) .phone-tabs{display:none}
  :is(body.orbital-frame-open,body.playing-village) .shell{padding-bottom:0}

  /* the "More" sheet */
  body.phone-menu-open{overflow:hidden}
  body.phone-menu-open .sidebar{position:fixed;inset:0 0 calc(62px + env(safe-area-inset-bottom)) 0;z-index:29;display:block;overflow-y:auto;padding:12px 16px 20px;background:#13252a}
  body.phone-menu-open .sidebar .brand{display:none}
  body.phone-menu-open .phone-sheet-head{display:flex;align-items:center;justify-content:space-between;margin:0 0 6px}
  .phone-sheet-head strong{font-size:18px}
  .phone-sheet-close{min-width:44px;min-height:44px;border-radius:10px;background:rgba(255,255,255,.06);color:inherit;font-size:18px}
  body.phone-menu-open .sidebar #nav{display:block!important;mask-image:none;-webkit-mask-image:none;padding:0;overflow:visible}
  body.phone-menu-open .sidebar #nav .nav-group{display:block!important}
  body.phone-menu-open .sidebar #nav .nav-group+.nav-group{margin-top:10px}
  body.phone-menu-open .sidebar #nav .nav-group-list{display:grid!important;grid-template-columns:1fr 1fr;gap:6px}
  body.phone-menu-open .sidebar #nav .nav-group-list[hidden]{display:none!important}
  body.phone-menu-open .nav-group-title{display:flex!important;font-size:11px;padding:8px 2px 6px}
  body.phone-menu-open .sidebar #nav a{display:flex!important;flex-direction:row!important;justify-content:flex-start!important;align-items:center!important;text-align:left!important;flex:none;min-width:0;max-width:none;min-height:52px;margin:0!important;padding:10px 12px;font-size:14px!important;gap:10px;border-radius:10px;background:rgba(255,255,255,.04)}
  body.phone-menu-open .sidebar #nav a::before{display:none}
  body.phone-menu-open .phone-sheet-extras{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-top:16px;padding-top:14px;border-top:1px solid rgba(201,214,180,.18)}
  .phone-sheet-extras>*{display:flex;align-items:center;gap:10px;min-height:52px;padding:10px 12px;border-radius:10px;background:rgba(255,255,255,.04);color:inherit;font-size:14px;text-align:left;text-decoration:none}
  .phone-sheet-extras span{font-size:18px;width:22px;text-align:center}
}
@media (max-width:760px){
  [data-theme=light] .phone-tabs{background:#fbfaf3;border-top-color:#d9dfcf;box-shadow:0 -6px 20px rgba(37,62,55,.12)}
  [data-theme=light] .phone-tabs>*{color:#4f665c}
  [data-theme=light] .phone-tabs .active{color:#233d32;background:#e3ebd3}
  [data-theme=light] body.phone-menu-open .sidebar{background:#f3f4ec}
  [data-theme=light] body.phone-menu-open .sidebar #nav a,[data-theme=light] .phone-sheet-extras>*,[data-theme=light] .phone-sheet-close{background:#fffef9;border:1px solid #e0e5d6;color:#273b32}
}

/* Reminders dialog (notifications.js) */
.reminder-list{list-style:none;padding:0;margin:0 0 12px;display:grid;gap:6px}
.reminder-list li{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;border:1px solid var(--line);border-radius:10px}
.reminder-list strong{display:block;font-size:14px;overflow-wrap:anywhere}
.reminder-list small{display:block;font-size:12px;opacity:.75;margin-top:2px}
.reminder-form{display:grid;gap:4px;margin:6px 0 10px}
.reminder-form .btn{margin-top:10px;justify-self:start}
#modal .notice+.btn{margin-bottom:8px}
@media (max-width:760px){
  /* focus timer: the start button fits on the first screen above the bottom bar */
  .timer-card .timer-ring{width:184px;height:184px;margin:22px auto}
  .timer-card .timer-ring strong{font-size:44px}
  .timer-card .timer-ring small{font-size:9px;letter-spacing:1px;max-width:150px;text-align:center}
  .timer-card .page-heading,.timer-card{margin-top:12px}
  #app>.page-heading p{margin:4px 0}
}
@media (max-width:760px){
  /* while a game is open, the game gets the whole screen: no logo row or toolbar ("Back to study" returns) */
  body.playing-village .sidebar,body.playing-village .shell>header{display:none!important}
}

/* Study home deck on phones (home-deck.js): tabs with a sliding underline, panels side by side that snap into place */
@media (max-width:760px){
  .home-deck{margin:0 0 18px}
  .deck-tabs{position:relative;display:flex;gap:4px;overflow-x:auto;scrollbar-width:none;padding:4px;margin:0 0 12px;border-radius:16px;background:rgba(0,0,0,.22);border:1px solid rgba(255,255,255,.07)}
  .deck-tabs::-webkit-scrollbar{display:none}
  .deck-tab{position:relative;z-index:1;flex:1 0 auto;display:flex;align-items:center;justify-content:center;gap:6px;min-height:42px;padding:8px 12px;border:0;border-radius:12px;background:none;color:#b9c7b4;font:inherit;font-size:13px;font-weight:600;white-space:nowrap;transition:color .25s}
  .deck-tab span{font-size:15px}
  .deck-tab[aria-selected=true]{color:#14231f}
  .deck-tab:focus-visible{outline:2px solid #e2bd6a;outline-offset:-2px}
  .deck-ink{position:absolute;z-index:0;left:0;top:4px;bottom:4px;border-radius:12px;background:linear-gradient(135deg,#f0d28a,#e2bd6a);box-shadow:0 6px 18px -8px rgba(226,189,106,.7);transition:transform .35s cubic-bezier(.2,.8,.2,1),width .35s cubic-bezier(.2,.8,.2,1)}
  .deck-track{display:flex;align-items:flex-start;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;scrollbar-width:none;transition:height .35s cubic-bezier(.2,.8,.2,1);margin:0 -2px;padding:0 2px}
  .deck-track::-webkit-scrollbar{display:none}
  .deck-panel{flex:0 0 100%;min-width:0;scroll-snap-align:start;scroll-snap-stop:always;display:grid;gap:14px;padding:0 1px 4px}
  .deck-panel>*{margin:0!important}
  .deck-panel[inert]>*{opacity:.5;transition:opacity .3s}
  .deck-panel>*{transition:opacity .3s}
  [data-theme=light] .deck-tabs{background:#ecefe3;border-color:#dfe4d4}
  [data-theme=light] .deck-tab{color:#4f665c}
  [data-theme=light] .deck-tab[aria-selected=true]{color:#fffef5}
  [data-theme=light] .deck-ink{background:linear-gradient(135deg,#3c6149,#304e3d)}
}
@media (max-width:760px) and (prefers-reduced-motion:reduce){.deck-track,.deck-ink{transition:none}}
@keyframes deck-in-right{from{opacity:.2;transform:translateX(36px)}to{opacity:1;transform:none}}
@keyframes deck-in-left{from{opacity:.2;transform:translateX(-36px)}to{opacity:1;transform:none}}
@media (max-width:760px){.deck-panel.deck-in-right{animation:deck-in-right .38s cubic-bezier(.2,.8,.2,1)}.deck-panel.deck-in-left{animation:deck-in-left .38s cubic-bezier(.2,.8,.2,1)}}
@media (max-width:760px){
  /* all five tabs fit on a normal phone; the icons step aside on very narrow ones */
  .deck-tab{flex:1 1 auto;min-width:0;padding:8px 6px;gap:4px;font-size:12.5px}
  .deck-tab span{font-size:13px}
}
@media (max-width:370px){.deck-tab span{display:none}}

/* long labels never squeeze their checkbox; fold-out headings are easy to tap on touch screens */
.autosave-option input[type=checkbox],.check input[type=checkbox],.share-name input,.feedback-details input{flex:0 0 auto}
@media (pointer:coarse){.shell #app details>summary{min-height:44px;padding-block:10px;box-sizing:border-box}}
/* ---- delight.css ---- */
/* Daily quests (quests.js), confetti and focus sounds (focus-sounds.js). */
.quest-card{position:relative;overflow:hidden;margin:0 0 22px;padding:20px 22px;border:1px solid rgba(226,189,106,.35);background:linear-gradient(135deg,rgba(226,189,106,.13),rgba(124,196,240,.07) 55%,rgba(140,207,122,.1))}
.quest-card.all-done{border-color:rgba(140,207,122,.6);background:linear-gradient(135deg,rgba(140,207,122,.2),rgba(226,189,106,.12))}
.quest-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:8px}
.quest-head h2{margin:4px 0 0;font-size:22px}
.quest-ring{--p:0;flex:none;width:62px;height:62px;border-radius:50%;display:grid;place-items:center;background:conic-gradient(#e2bd6a calc(var(--p)*360deg),rgba(255,255,255,.1) 0);transition:background .4s}
.quest-ring b{display:grid;place-items:center;width:48px;height:48px;border-radius:50%;background:#14282c;font-size:15px}
.all-done .quest-ring{background:conic-gradient(#8ccf7a 360deg,transparent 0)}
.quest-list{list-style:none;margin:6px 0 4px;padding:0;display:grid;gap:8px}
.quest-list li{display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:12px;background:rgba(0,0,0,.16);transition:background .3s}
.quest-list li.done{background:rgba(140,207,122,.14)}
.quest-check{flex:none;width:26px;height:26px;border-radius:50%;border:2px solid rgba(226,189,106,.7);display:grid;place-items:center;font-size:14px;font-weight:700;color:#10201f}
li.done .quest-check{background:#8ccf7a;border-color:#8ccf7a;animation:quest-pop .4s ease-out}
@keyframes quest-pop{0%{transform:scale(.6)}70%{transform:scale(1.2)}100%{transform:scale(1)}}
.quest-body{flex:1;min-width:0}
.quest-body strong{display:block;font-size:14px}
li.done .quest-body strong{opacity:.75}
.quest-bar{display:block;height:6px;margin:6px 0 3px;border-radius:6px;background:rgba(255,255,255,.1);overflow:hidden}
.quest-bar i{display:block;height:100%;border-radius:6px;background:linear-gradient(90deg,#e2bd6a,#f0d28a);transition:width .5s}
li.done .quest-bar i{background:#8ccf7a}
.quest-body small{font-size:12px;opacity:.75}
.quest-go{flex:none;padding:8px 14px!important;min-height:38px}
.quest-foot{margin:10px 2px 0;font-size:13px;opacity:.9}
.confetti{position:fixed;inset:0;width:100vw;height:100vh;pointer-events:none;z-index:60}

.focus-sounds{margin:22px auto 0;max-width:520px;text-align:left;padding:14px 16px;border-radius:14px;background:rgba(0,0,0,.16);border:1px solid rgba(255,255,255,.08)}
.focus-sounds-head{display:flex;justify-content:space-between;align-items:baseline;gap:10px;flex-wrap:wrap;margin-bottom:10px}
.focus-sounds-head small{font-size:12px;opacity:.75}
.sound-chips{display:flex;flex-wrap:wrap;gap:8px}
.sound-chips button{padding:9px 14px;min-height:40px;border-radius:999px;border:1px solid rgba(255,255,255,.16);background:rgba(255,255,255,.05);color:inherit;font-size:13px}
.sound-chips button[aria-pressed=true]{background:#e2bd6a;color:#14231f;border-color:#e2bd6a;font-weight:600}
.sound-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 18px;margin-top:12px}
.sound-row label{display:flex;align-items:center;gap:10px;margin:0;font-size:13px;color:inherit}
.sound-vol input{width:140px;padding:0;accent-color:#e2bd6a}
.sound-chime input{width:18px;height:18px;accent-color:#8ccf7a}

[data-theme=light] .quest-card{border-color:#e4cf98;background:linear-gradient(135deg,#fff6dc,#eef6fb 55%,#eef7e7)}
[data-theme=light] .quest-card.all-done{border-color:#a9d39a;background:linear-gradient(135deg,#e7f5df,#fff4d6)}
[data-theme=light] .quest-ring{background:conic-gradient(#c9952f calc(var(--p)*360deg),#e8e6da 0)}
[data-theme=light] .quest-ring b{background:#fffef9;color:#273b32}
[data-theme=light] .quest-list li{background:rgba(255,255,255,.7)}
[data-theme=light] .quest-list li.done{background:#e3f1db}
[data-theme=light] .quest-check{border-color:#c9952f;color:#fff}
[data-theme=light] li.done .quest-check{background:#5f9a4e;border-color:#5f9a4e}
[data-theme=light] .quest-bar{background:#e8e6da}
[data-theme=light] .quest-bar i{background:linear-gradient(90deg,#c9952f,#e2bd6a)}
[data-theme=light] li.done .quest-bar i{background:#5f9a4e}
[data-theme=light] .focus-sounds{background:#f6f5ec;border-color:#e0e5d6}
[data-theme=light] .sound-chips button{border-color:#d6dccb;background:#fffef9}
[data-theme=light] .sound-chips button[aria-pressed=true]{background:#304e3d;color:#fffef5;border-color:#304e3d}
@media (max-width:760px){.quest-card{padding:16px 14px}.quest-head h2{font-size:19px}.quest-ring{width:54px;height:54px}.quest-ring b{width:42px;height:42px;font-size:14px}.sound-vol input{width:120px}}
@media (prefers-reduced-motion:reduce){li.done .quest-check{animation:none}.quest-bar i,.quest-ring{transition:none}}

/* Send feedback (feedback.js) */
.feedback-form{display:grid;gap:6px}
.feedback-kinds{border:0;margin:0 0 6px;padding:0;display:flex;flex-wrap:wrap;gap:8px}
.feedback-kinds legend{font-size:12px;opacity:.8;margin-bottom:8px;padding:0}
.feedback-kinds label{margin:0;display:block;cursor:pointer}
.feedback-kinds input{position:absolute;opacity:0;pointer-events:none}
.feedback-kinds span{display:inline-flex;align-items:center;min-height:40px;padding:8px 14px;border-radius:999px;border:1px solid rgba(255,255,255,.18);font-size:13px}
.feedback-kinds input:checked+span{background:#e2bd6a;border-color:#e2bd6a;color:#14231f;font-weight:600}
.feedback-kinds input:focus-visible+span{outline:2px solid #e2bd6a;outline-offset:2px}
.feedback-count{justify-self:end;font-size:11px;opacity:.7}
.feedback-details{display:flex!important;gap:10px;align-items:flex-start;font-size:12.5px}
.feedback-details input{width:18px;height:18px;flex:none;margin-top:2px}
.feedback-to{margin:4px 0 0;font-size:12px}
.feedback-card .btn{margin-top:4px}
[data-theme=light] .feedback-kinds span{border-color:#d6dccb}
[data-theme=light] .feedback-kinds input:checked+span{background:#304e3d;border-color:#304e3d;color:#fffef5}

/* Share my week (share-week.js) */
.share-week-btn{margin:12px 0 0}
.page-heading .share-week-btn{margin:0}
.share-preview{display:grid;place-items:center;min-height:240px;margin:6px 0 10px;border-radius:16px;background:rgba(0,0,0,.2)}
.share-preview img{display:block;width:100%;max-width:360px;height:auto;border-radius:14px;box-shadow:0 20px 40px -24px rgba(0,0,0,.7)}
.share-name{display:flex!important;gap:10px;align-items:center;font-size:13px;margin:4px 0}
.share-name input{width:18px;height:18px}
#modal .actions{flex-wrap:wrap}

/* Child profiles: consent status (family.js) */
.family-row .consent-line{display:block;font-size:12px;margin-top:3px;opacity:.85}
.consent-line.ok::before{content:'✓ ';color:#8ccf7a}
.consent-line.soon{color:#e2bd6a}
.consent-line.due{color:#f08a6c;font-weight:600}
.consent-renew{font-weight:700}
[data-theme=light] .consent-line.soon{color:#a06d10}
[data-theme=light] .consent-line.due{color:#b3412a}

/* Study with friends (friends.js) */
.fr-empty{text-align:center;padding:34px 22px}
.fr-empty .btn{margin-top:8px}
.fr-big{display:block;font-size:44px;margin-bottom:6px}
.fr-room-list{list-style:none;margin:8px 0 0;padding:0;display:grid;gap:8px}
.fr-room{display:flex;align-items:center;gap:12px;width:100%;min-height:56px;padding:12px 14px;border-radius:14px;border:1px solid rgba(226,189,106,.25);background:rgba(255,255,255,.04);color:inherit;text-align:left;font:inherit}
.fr-room:hover{border-color:rgba(226,189,106,.6)}
.fr-room-name{flex:1;font-weight:700;font-size:15px}
.fr-room small{opacity:.75;font-size:12px}
.fr-forms{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:16px 0}
.fr-form{display:grid;gap:4px;align-content:start}
.fr-form h2{font-size:19px;margin:0 0 4px}
.fr-form .btn{margin-top:10px;justify-self:start}
.fr-code-input{text-transform:uppercase;letter-spacing:4px;font-weight:700}
.fr-note{font-size:12.5px}
.fr-back{margin:0 0 8px;font-weight:600}
.fr-room-head{display:flex;justify-content:space-between;align-items:center;gap:18px;flex-wrap:wrap;background:linear-gradient(135deg,rgba(226,189,106,.12),rgba(124,196,240,.06))}
.fr-room-head h2{margin:4px 0}
.fr-code{display:grid;justify-items:end;gap:4px;text-align:right}
.fr-code small{font-size:11px;letter-spacing:1px;opacity:.75}
.fr-code b{font-size:28px;letter-spacing:6px;font-family:ui-monospace,Menlo,monospace;color:#f0d28a}
.fr-got ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:8px}
.fr-got li{padding:6px 12px;border-radius:999px;background:rgba(226,189,106,.14);font-size:13px}
.fr-board{list-style:none;margin:6px 0 0;padding:0;display:grid;gap:8px;counter-reset:fr}
.fr-member{position:relative;display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:12px;border-radius:14px;background:rgba(0,0,0,.16);counter-increment:fr}
.fr-member::before{content:counter(fr);font-weight:700;opacity:.6;width:16px;text-align:center}
.fr-member.is-me{outline:1px solid rgba(226,189,106,.45)}
.fr-avatar{flex:none;width:40px;height:40px;border-radius:50%;display:grid;place-items:center;font-weight:700;color:#10201f;background:hsl(var(--h) 60% 72%)}
.fr-member.is-studying .fr-avatar{box-shadow:0 0 0 3px #8ccf7a,0 0 18px rgba(140,207,122,.6)}
.fr-who{flex:1;min-width:150px;display:grid;gap:3px}
.fr-who b{font-size:14.5px}
.fr-who small{font-size:12px;opacity:.85}
.fr-tag{font-size:10px;font-weight:600;letter-spacing:.5px;text-transform:uppercase;padding:2px 6px;border-radius:6px;background:rgba(226,189,106,.2);margin-left:4px}
.fr-status{display:flex;align-items:center;gap:6px}
.fr-dot{width:8px;height:8px;border-radius:50%;background:#8ccf7a;box-shadow:0 0 0 0 rgba(140,207,122,.7)}
body.motion .fr-dot{animation:fr-pulse 1.6s infinite}
@keyframes fr-pulse{70%{box-shadow:0 0 0 7px rgba(140,207,122,0)}100%{box-shadow:0 0 0 0 rgba(140,207,122,0)}}
.fr-bar{display:block;height:6px;border-radius:6px;background:rgba(255,255,255,.1);overflow:hidden}
.fr-bar i{display:block;height:100%;border-radius:6px;background:linear-gradient(90deg,#e2bd6a,#f0d28a);transition:width .6s}
.fr-cheers{display:flex;gap:4px}
.fr-cheers button{min-width:40px;min-height:40px;border-radius:12px;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.05);font-size:18px}
.fr-cheers button.fr-sent{background:rgba(140,207,122,.25);transform:scale(1.1)}
.fr-remove{font-size:12px}
.fr-actions{margin:8px 0 20px}
.danger-text{color:#f08a6c!important}
@media (max-width:760px){.fr-forms{grid-template-columns:1fr}.fr-room-head{display:grid}.fr-code{justify-items:start;text-align:left}.fr-cheers{width:100%;justify-content:flex-end}}
[data-theme=light] .fr-room{background:#fffef9;border-color:#e0d5b6}
[data-theme=light] .fr-member{background:#f4f3ea}
[data-theme=light] .fr-code b{color:#8a6414}
[data-theme=light] .fr-got li{background:#f6ecd0}
[data-theme=light] .fr-bar{background:#e8e6da}
[data-theme=light] .fr-cheers button{background:#fffef9;border-color:#ddd8c6}
[data-theme=light] .danger-text{color:#b3412a!important}
@media (prefers-reduced-motion:reduce){.fr-dot{animation:none}.fr-bar i{transition:none}}

/* Starter decks library (revise.js) */
.sd-list{max-height:min(60vh,560px);overflow:auto;margin:8px 0;padding-right:4px}
.sd-list h3{font-size:13px;letter-spacing:1px;text-transform:uppercase;opacity:.75;margin:16px 0 8px}
.sd-deck{display:flex;align-items:flex-start;gap:12px;padding:12px;border-radius:12px;background:rgba(255,255,255,.05);margin-bottom:8px}
.sd-info{flex:1;min-width:0;display:grid;gap:3px}
.sd-info small{font-size:12px;opacity:.8}
.sd-info details{font-size:12.5px}
.sd-info ul{list-style:none;padding:0;margin:6px 0 0;display:grid;gap:6px}
.sd-info li{display:grid;gap:2px;padding:6px 8px;border-radius:8px;background:rgba(0,0,0,.15)}
.sd-info li span{opacity:.85}
.sd-deck .btn{flex:none;padding:8px 14px}
.sd-done{flex:none;font-size:13px;font-weight:600;color:#8ccf7a;padding:8px 4px}
[data-theme=light] .sd-deck{background:#f4f3ea}
[data-theme=light] .sd-info li{background:#fffef9}
[data-theme=light] .sd-done{color:#3f7a2e}
.fr-member .fr-remove{position:absolute;top:6px;right:8px;min-height:32px;padding:4px 8px;opacity:.75}
.fr-member .fr-remove:hover{opacity:1}
.sd-source{opacity:.7;font-style:italic}
.sd-top{display:grid;gap:6px;margin-bottom:6px}
.sd-tools{display:flex;flex-wrap:wrap;gap:8px 14px;align-items:center}
.sd-tools input{flex:1 1 180px;min-width:0}
.sd-profile{display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px 14px;margin:10px 0}
.sd-profile label{display:grid;gap:4px;margin:0;font-size:13px}
.sd-added{display:grid;justify-items:end;gap:2px;flex:none}
.rv-report{margin:10px 0 0;text-align:center}
.rv-report .text-btn{font-size:13px;opacity:.85}
/* ---- motion.css ---- */
/* Motion (motion.js adds body.motion unless the device asks for reduced motion). */
@property --prog{syntax:'<number>';inherits:true;initial-value:0}
@property --p{syntax:'<number>';inherits:false;initial-value:0}

/* screens arrive: cards rise one after another; lower cards rise as they scroll into view; list rows follow */
@keyframes m-rise{from{opacity:0;transform:translateY(18px) scale(.985)}to{opacity:1;transform:none}}
@keyframes m-row{from{opacity:0;transform:translateX(-10px)}to{opacity:1;transform:none}}
body.motion .m-enter{animation:m-rise .55s cubic-bezier(.2,.8,.2,1) both;animation-delay:calc(var(--i,0) * 70ms)}
body.motion .m-row{animation:m-row .45s cubic-bezier(.2,.8,.2,1) both;animation-delay:calc(180ms + var(--r,0) * 40ms)}
body.motion .m-reveal{opacity:0;transform:translateY(26px);transition:opacity .6s ease,transform .6s cubic-bezier(.2,.8,.2,1)}
body.motion .m-reveal.m-in{opacity:1;transform:none}

/* cards lift under the pointer (mouse only); everything presses in when tapped */
@media (hover:hover) and (pointer:fine){
  body.motion #app .card:not(:has(iframe)):not(.timer-card),body.motion #app .related-card,body.motion #app .library-card{transition:transform .25s cubic-bezier(.2,.8,.2,1),box-shadow .25s,border-color .25s}
  body.motion #app .card:not(:has(iframe)):not(.timer-card):hover,body.motion #app .related-card:hover,body.motion #app .library-card:hover{transform:translateY(-3px);box-shadow:0 14px 34px -18px rgba(0,0,0,.55),0 0 0 1px rgba(226,189,106,.22)}
  body.motion .btn{transition:transform .18s,filter .18s,box-shadow .18s}
  body.motion .btn:hover:not(:disabled){transform:translateY(-1px);filter:brightness(1.06)}
}
body.motion .btn:active:not(:disabled),body.motion .phone-tabs>*:active,body.motion .sound-chips button:active{transform:scale(.96)}
.m-ripple-host{position:relative}
.m-ripple-clip{position:absolute;inset:0;border-radius:inherit;overflow:hidden;pointer-events:none}
.m-ripple{position:absolute;border-radius:50%;background:currentColor;opacity:.22;transform:scale(0);pointer-events:none;animation:m-ripple .6s ease-out forwards}
@keyframes m-ripple{to{transform:scale(1);opacity:0}}

/* progress fills from empty when a screen opens */
@keyframes m-bar{from{transform:scaleX(0)}to{transform:none}}
body.motion .m-enter :is(.quest-bar i,.bar i,.progress i,.plan-progress i){transform-origin:left;animation:m-bar 1s .25s cubic-bezier(.2,.8,.2,1) both}
@keyframes m-ring{from{--p:0}}
body.motion .m-enter .quest-ring{animation:m-ring 1.1s .2s cubic-bezier(.2,.8,.2,1) both}

/* focus ring: a gold arc fills as the session runs, and the ring breathes while you focus */
.timer-ring{position:relative}
.timer-ring::after{content:'';position:absolute;inset:-6px;border-radius:50%;pointer-events:none;background:conic-gradient(#f0cf7c calc(var(--prog) * 1turn),transparent 0);-webkit-mask:radial-gradient(farthest-side,transparent calc(100% - 7px),#000 calc(100% - 6px));mask:radial-gradient(farthest-side,transparent calc(100% - 7px),#000 calc(100% - 6px));transition:--prog .5s linear;filter:drop-shadow(0 0 6px rgba(240,207,124,.55))}
@keyframes m-breathe{0%,100%{box-shadow:0 0 0 7px #243931,0 0 30px rgba(155,186,74,.12)}50%{box-shadow:0 0 0 7px #243931,0 0 60px rgba(240,207,124,.35)}}
body.motion .timer-ring.m-running{animation:m-breathe 4s ease-in-out infinite}
body.motion .timer-ring.m-running strong{animation:m-tick 1s steps(1) infinite}
@keyframes m-tick{50%{text-shadow:0 0 14px rgba(245,223,159,.45)}}
.timer-ring.m-paused::after{opacity:.55}

/* header counters pulse when tokens or updates change */
@keyframes m-bump{0%{transform:scale(1)}35%{transform:scale(1.14);filter:brightness(1.35)}100%{transform:scale(1)}}
body.motion .m-bump{animation:m-bump .6s cubic-bezier(.2,1.4,.4,1)}

/* ticking a task off */
@keyframes m-check{0%{transform:scale(.5)}60%{transform:scale(1.25)}100%{transform:scale(1)}}
body.motion .task-row input:checked{animation:m-check .35s cubic-bezier(.2,1.4,.4,1)}
body.motion .task-row .task-copy{transition:color .3s,opacity .3s}

/* bottom bar (phones): the chosen tab pops */
@keyframes m-tab{0%{transform:translateY(0)}40%{transform:translateY(-4px) scale(1.12)}100%{transform:none}}
body.motion .phone-tabs .active span{animation:m-tab .45s cubic-bezier(.2,1.4,.4,1)}
body.motion .phone-tabs>*{transition:background .25s,color .25s}

/* messages spring up */
body.motion #toast{transition:transform .45s cubic-bezier(.2,1.5,.4,1),opacity .25s}

/* the More sheet and dialogs slide in */
@keyframes m-sheet{from{opacity:0;transform:translateY(24px)}to{opacity:1;transform:none}}
body.motion.phone-menu-open .sidebar{animation:m-sheet .32s cubic-bezier(.2,.8,.2,1)}

/* fireflies drifting behind the app (dark theme) */
.m-fireflies{position:fixed;inset:0;z-index:-1;pointer-events:none;overflow:hidden}
.m-fireflies i{position:absolute;width:var(--s);height:var(--s);border-radius:50%;background:#f3dc8f;box-shadow:0 0 10px 3px rgba(243,220,143,.45);opacity:0;animation:m-firefly var(--d) var(--delay) ease-in-out infinite}
@keyframes m-firefly{0%{opacity:0;transform:translate(0,0)}15%{opacity:.7}50%{opacity:.35}85%{opacity:.6}100%{opacity:0;transform:translate(var(--x),var(--y))}}
.m-fireflies.m-paused i{animation-play-state:paused}
body:not(.motion) .m-fireflies,[data-theme=light] .m-fireflies,body.playing-village .m-fireflies{display:none}

[data-theme=light] .timer-ring::after{background:conic-gradient(#c9952f calc(var(--prog) * 1turn),transparent 0);filter:none}
@keyframes m-breathe-light{0%,100%{box-shadow:0 0 0 7px #e6ecdf,0 10px 30px -16px rgba(37,62,55,.4)}50%{box-shadow:0 0 0 7px #e6ecdf,0 0 46px rgba(201,149,47,.35)}}
[data-theme=light] body.motion .timer-ring.m-running{animation-name:m-breathe-light}

@media (prefers-reduced-motion:reduce){
  .m-enter,.m-row,.m-reveal{animation:none!important;opacity:1!important;transform:none!important;transition:none!important}
  .m-fireflies,.m-ripple{display:none}
}
/* ---- brand.css ---- */
/* Study Hamlet wordmark: the logo, "STUDY" in small spaced capitals and "Hamlet" in an italic serif.
   Fonts are the site's own copies (see fonts.css and credits.html). Loaded on every page that shows the logo. */
@font-face{font-family:'SH Serif';font-style:italic;font-weight:400;font-display:swap;src:url(fonts/libre-baskerville-italic-400-latin.woff2) format('woff2')}
@font-face{font-family:'SH Sans';font-style:normal;font-weight:400;font-display:swap;src:url(fonts/plus-jakarta-sans-normal-400-latin.woff2) format('woff2')}
.sh-mark{display:inline-block;width:1.2em;height:1.2em;margin-right:.32em;vertical-align:-.28em;border-radius:24%;flex:none}
.sh-word{display:inline-flex;align-items:baseline;gap:.3em;white-space:nowrap;line-height:1;vertical-align:baseline}
.sh-study{font:400 .4em/1 'SH Sans','Plus Jakarta Sans','DM Sans',system-ui,sans-serif;letter-spacing:.26em;text-transform:uppercase;opacity:.85}
.sh-hamlet{font:italic 400 1em/1 'SH Serif','Libre Baskerville',Georgia,serif;letter-spacing:-.01em;color:#9cc23f}
.sh-card-mark{display:block;width:56px;height:56px;border-radius:14px;margin:0 0 14px}
/* light backgrounds: a deeper gold that stays readable */
[data-theme=light] .sh-hamlet,.sh-on-light .sh-hamlet{color:#4e7414}
/* the app's desktop sidebar is narrow: logo on the left, STUDY above Hamlet */
@media (min-width:761px){
 .sidebar .brand{display:flex!important;align-items:center;font-size:31px!important;letter-spacing:0!important}
 .sidebar .brand .sh-mark{width:46px;height:46px;margin-right:11px;vertical-align:middle}
 .sidebar .brand .sh-word{flex-direction:column;align-items:flex-start;gap:5px}
 .sidebar .brand .sh-study{font-size:11px;letter-spacing:.32em}
}
/* page styles written for the old logo colour every span in a logo link; the wordmark keeps its own colours */
.sh-word.sh-word,.sh-word .sh-study{color:inherit}
.sh-word .sh-hamlet{color:#9cc23f}
[data-theme=light] .sh-word .sh-hamlet,.sh-on-light .sh-word .sh-hamlet{color:#4e7414}
/* ---- usability.css ---- */
/* Shared usability rules. Source for app-bundle.css; see npm run build. */
:root { color-scheme: dark; }
[data-theme="light"] { color-scheme: light; }
body { font-size: 1rem; }
#app label, #modal label { color: #d5e4dc; font-size: .875rem; }
#app .note-editor-panel label { color: #3c4939; }
html:not([data-theme="light"]) .note-browser { background: #183b3d; color: #e3ece4; }
[data-theme="light"] #app label, [data-theme="light"] #modal label { color: #304438; }
#app input, #app textarea, #app select, #modal input, #modal textarea, #modal select { font-size: 1rem; }
#app p, #modal p { line-height: 1.6; }
#app .muted { color: #b8cec7; }
#app .note-editor-panel .muted { color: #4b5c47; }
[data-theme="light"] #app .muted { color: #4c6155; }
#app button, #modal button, .utility-button { min-height: 44px; }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible { outline: 3px solid #f0c96c; outline-offset: 3px; }
[data-theme="light"] :focus-visible { outline-color: #265b43; }
/* Reduced-motion rules elsewhere reset transforms. Opacity must independently hide a toast. */
#toast { opacity: 0; visibility: hidden; pointer-events: none; max-width: min(90vw, 36rem); }
#toast.show:not(:empty) { opacity: 1; visibility: visible; }
#toast:empty { display: none; }
.notes-back { display: none; }
.note-filters { margin-block: 12px; }
.note-filters summary { cursor: pointer; padding-block: 8px; color: inherit; }
.note-filters[open] summary { margin-bottom: 12px; }
.note-editor-panel { min-width: 0; }
.library-meta, .library-pagination, .library-cards .note-item span { font-size: .875rem; }
.plan-budget { margin-block: 20px; }
.plan-topic { flex-wrap: wrap; gap: 8px; }
.plan-topic > label { flex: 1 1 15rem; }
.rv-written { margin-top: 18px; }
.rv-written textarea { min-height: 100px; }
.rv-comparison { padding: 16px; margin-block: 16px; border: 1px solid #6a8b7a; border-radius: 10px; }
.rv-comparison p { white-space: pre-wrap; overflow-wrap: anywhere; }
.rv-feedback { border-left: 3px solid #dcb65f; padding-left: 14px; }
.sd-source a { color: inherit; text-decoration: underline; }
.cloud-last-saved { display: block; margin-block: 8px; font-size: .875rem; }
.local-save-notice { margin: 16px; padding: 16px; border: 2px solid #edba73; border-radius: 10px; background: #392c20; color: #fff3da; }
.local-save-notice[hidden] { display: none; }
@media (min-width: 761px) and (max-width: 1100px) {
  .note-layout { grid-template-columns: minmax(200px,.7fr) minmax(0,1fr); }
}
@media (max-width: 760px) {
  .shell > header { padding: 8px 12px; }
  .header-right { display: flex; flex-wrap: nowrap; gap: 6px; width: 100%; justify-content: space-between; }
  .header-right .utility-button, .header-right #notifications-button { flex: 0 0 44px; width: 44px; padding: 6px; }
  .header-right .utility-label, .header-right .hide-narrow { display: none; }
  .header-right #cloud-indicator { flex: 1 1 auto !important; min-width: 88px; max-width: 130px; font-size: .875rem !important; overflow: visible; text-overflow: clip; white-space: normal !important; }
  #resources { flex: 0 1 auto; white-space: nowrap; font-size: .875rem; max-width: none; overflow: visible; }
  .header-right .avatar { display: none; }
  #app { padding-top: 20px; }
  .kingdom-top { margin-bottom: 18px; }
  .kingdom-top h1 { font-size: 1.55rem; margin-block: 6px; }
  .kingdom-top > div > p { display: none; }
  .kingdom-wallet { display: none; }
  .easy-start { padding: 18px; }
  .easy-start h2 { font-size: 1.4rem; margin-block: 8px; }
  .easy-start > p { margin-block: 8px 14px; }
  .easy-start .easy-fields { gap: 10px; }
  .easy-start label { margin-top: 10px; }
  .easy-start .ease-guide { margin-top: 16px; }
  .note-layout[data-note-pane="list"] .note-editor-panel { display: none; }
  .note-layout[data-note-pane="editor"] .note-browser { display: none; }
  .notes-back { display: inline-flex; margin-bottom: 16px; }
  .note-layout { display: block; }
  .note-browser, .note-editor-panel { width: 100%; padding: 18px; box-sizing: border-box; }
  .note-browser .note-item { min-height: 72px; }
  .note-format { gap: 8px; }
  .note-format button { font-size: .875rem; padding: 8px 10px; }
  .note-editor { min-height: 45vh; }
  .phone-tabs b { font-size: .875rem; }
  .phone-tabs > * { min-height: 52px; }
  .plan-hours > div { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .rv-rate { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .rv-face { padding-inline: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  #toast { transition: none; }
}
/* ---- share.css ---- */
/* Share panel and buttons (share.js). Works on the chapter pages, the question library and in the app. */
.share-btn{display:inline-flex;align-items:center;gap:6px;padding:7px 12px;border-radius:999px;border:1px solid rgba(226,189,106,.5);background:rgba(226,189,106,.12);color:inherit;font:inherit;font-size:.85rem;cursor:pointer}
.share-btn:hover{background:rgba(226,189,106,.24)}
.share-btn:focus-visible{outline:2px solid #e2bd6a;outline-offset:2px}
.share-panel{position:fixed;inset:0;z-index:1000;display:grid;place-items:end center;padding:16px;background:rgba(4,20,14,.55)}
@media(min-width:600px){.share-panel{place-items:center}}
.share-card{width:min(420px,100%);background:#163329;color:#f3efe2;border:1px solid #6b8d79;border-radius:16px;padding:16px;box-shadow:0 20px 60px rgba(0,0,0,.4);animation:share-in .2s ease}
.share-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}
.share-close{background:transparent;border:0;color:inherit;font-size:1.1rem;cursor:pointer;padding:6px 10px;border-radius:8px}
.share-preview{margin:0 0 12px;font-size:.85rem;line-height:1.5;opacity:.85;white-space:pre-line}
.share-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.share-grid a,.share-grid button{display:flex;align-items:center;justify-content:center;min-height:44px;border-radius:10px;border:1px solid rgba(255,255,255,.15);background:rgba(255,255,255,.06);color:inherit;text-decoration:none;font:inherit;font-size:.9rem;cursor:pointer}
.share-whatsapp{background:#1f8f4e!important;border-color:#1f8f4e!important;color:#fff!important}
.share-grid a:hover,.share-grid button:hover{filter:brightness(1.15)}
.share-copy-box{width:100%;margin-top:10px;border-radius:8px;padding:8px;font:inherit;font-size:.8rem}
.share-status{min-height:1.2em;margin:8px 0 0;font-size:.85rem;color:#9fe3bd}
.share-target{outline:2px solid #e2bd6a;outline-offset:4px;border-radius:10px;animation:share-pulse 1.6s ease 2}
@keyframes share-in{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
@keyframes share-pulse{50%{outline-color:transparent}}
@media(prefers-reduced-motion:reduce){.share-card,.share-target{animation:none}}
[data-theme=light] .share-card{background:#fffef9;color:#1d2b24;border-color:#d8d2bd}
[data-theme=light] .share-grid a,[data-theme=light] .share-grid button{background:#f4f1e6;border-color:#e0dac6}
[data-theme=light] .share-status{color:#22693f}
