/* AM Journal: composition and identity, on top of the base components. */
:root { --bg:#131216; --card-bg:#1d1b22; --input-bg:#18171c; --pink:#c4b2ed; --text-primary:#eee9df; --text-muted:#aaa4b1; --text-faint:#89818f; --card-border:#ffffff12; }
html { background:var(--bg); color-scheme:dark; }
body { color:var(--text-primary); }
button,input,select,textarea { font-family:inherit; }
button,a { touch-action:manipulation; }
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible { outline:2px solid var(--pink); outline-offset:4px; }
.mt-bg { background:radial-gradient(ellipse 650px 500px at 100% 0%,#75608c15,transparent 80%),var(--bg); }
.mt-shell { max-width:600px; }
.mt-header { padding:24px 22px 0; }
.mt-title-row { align-items:center; }
.mt-brand { display:flex; align-items:center; gap:10px; }
.mt-brand-mark { width:38px; height:38px; border-radius:11px; }
.mt-brand .mt-title { font-size:12px; letter-spacing:1.5px; }
.mt-brand-caption { margin-top:5px; color:var(--text-muted); font-size:10px; }
.mt-icon-round { width:42px; height:42px; border-radius:50%; background:transparent; border-color:#ffffff17; box-shadow:none; }
.mt-notify-dot { background:var(--pink); width:6px; height:6px; box-shadow:none; }
.mt-library-intro { padding:33px 0 23px; }
.mt-section-eyebrow { color:var(--text-muted); font-size:9px; letter-spacing:1.8px; font-weight:600; }
.mt-library-intro h1 { font-family:Georgia,'Times New Roman',serif; font-weight:400; font-size:clamp(29px,8.5vw,43px); line-height:1.12; letter-spacing:-1.3px; margin:12px 0 22px; }
.mt-library-intro h1 em { color:var(--pink); font-weight:400; }
.mt-library-stats { display:flex; align-items:center; gap:17px; color:var(--text-muted); font-size:10px; }
.mt-library-stats span { display:flex; gap:5px; align-items:baseline; }
.mt-library-stats strong { color:var(--text-primary); font-size:15px; font-weight:600; font-variant-numeric:tabular-nums; }
.mt-library-stats span + span { border-left:1px solid #ffffff19; padding-left:17px; }
.mt-featured-slot { padding:0 22px; }
.mt-featured-slot:has(.mt-continue) { margin-bottom:24px; }
.mt-continue-strip { gap:12px; scrollbar-width:none; padding:0 0 3px; }
.mt-continue-strip::-webkit-scrollbar { display:none; }
.mt-continue-card { position:relative; flex:0 0 94%; min-height:184px; gap:17px; padding:18px; border-radius:8px 24px 24px 8px; border:1px solid #c4b2ed26; background:radial-gradient(ellipse at 90% 10%,#54436650,transparent 80%),#232029; overflow:hidden; }
.mt-continue-card:only-child { flex-basis:100%; }
.mt-continue-card img,.mt-continue-placeholder { width:88px; height:132px; flex:0 0 88px; border-radius:4px 10px 10px 4px; object-fit:cover; box-shadow:6px 8px 18px #0006; }
.mt-continue-placeholder { background:linear-gradient(130deg,#817197,#332b43); color:#e6d7ff; font-family:Georgia,serif; font-size:29px; }
.mt-continue-copy { display:flex; flex:1; min-width:0; flex-direction:column; align-items:flex-start; }
.mt-continue-copy .mt-section-eyebrow { color:#c7badc; font-size:8px; letter-spacing:1.1px; margin-bottom:12px; }
.mt-continue-card strong { font-size:15px; line-height:1.4; font-weight:700; -webkit-line-clamp:2; }
.mt-continue-card small { font-size:9px; margin:7px 0 14px; }
.mt-continue-link { display:flex; gap:12px; align-items:center; color:#e4d6fb; font-size:10px; font-weight:600; border-bottom:1px solid #bba4d855; padding-bottom:5px; }
.mt-continue-link > span { font-size:16px; }
.mt-library-controls { padding:0 22px 12px; }
.mt-library-controls .mt-subrow { margin:0; }
.mt-subrow-actions { margin:0; gap:8px; }
.mt-sort-group { display:flex; gap:0; border-bottom:1px solid #ffffff12; }
.mt-sort-btn { padding:10px 10px 12px; border:0; border-radius:0; background:none; font-size:10px; font-weight:500; position:relative; }
.mt-sort-btn.active { color:var(--text-primary); background:none; }
.mt-sort-btn.active::after { content:''; position:absolute; bottom:-1px; left:10px; right:10px; height:2px; background:var(--pink); }
.mt-filter-row { gap:7px; flex-wrap:nowrap; overflow-x:auto; padding-bottom:5px; scrollbar-width:none; margin-top:14px; }
.mt-filter-chip,.mt-genre-toggle-chip { flex:0 0 auto; white-space:nowrap; border-width:1px; padding:7px 12px; font-size:10px; min-height:34px; font-weight:600; }
.mt-filter-chip:not(.active) { border-color:#ffffff14 !important; background:#ffffff03; }
.mt-list { padding:10px 22px calc(112px + env(safe-area-inset-bottom)); gap:20px; }
.mt-collection-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:6px 0 0; }
.mt-collection-heading h2 { font-size:20px; font-weight:700; margin:0; letter-spacing:-.6px; }
.mt-collection-heading h2 span { font-size:11px; color:var(--text-muted); font-weight:500; vertical-align:middle; margin-left:7px; }
.mt-collection-heading p { font-size:10px; color:var(--text-muted); margin:5px 0 0; }
.mt-add-btn { width:auto; flex-shrink:0; min-height:40px; padding:10px 13px; gap:6px; font-size:11px; font-weight:700; border:1px solid #c4b2ed50; border-radius:11px; background:#c4b2ed; box-shadow:none; color:#20172d; }
.mt-add-btn span { font-size:17px; line-height:1; }
.mt-add-btn::after { display:none; }
.mt-add-btn:active { box-shadow:none; }
.mt-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:22px 10px; }
.mt-grid-card { gap:4px; }
.mt-cover { display:block; width:100%; padding:0; border:1px solid #ffffff12; border-radius:5px 15px 15px 5px; box-shadow:5px 8px 20px #0004; text-align:left; }
.mt-cover::after { content:''; position:absolute; inset:0; pointer-events:none; background:linear-gradient(90deg,#0005,transparent 5%,#ffffff12 7%,transparent 9%),linear-gradient(0deg,#0006,transparent 40%); }
.mt-cover-empty { display:flex; background:radial-gradient(ellipse at 80% 0%,#6c597e,transparent 85%),#2b2437; }
.mt-grid-card:nth-child(3n+2) .mt-cover-empty { background:radial-gradient(ellipse at 80% 0%,#566b7b,transparent 85%),#212c36; }
.mt-grid-card:nth-child(3n) .mt-cover-empty { background:radial-gradient(ellipse at 80% 0%,#876953,transparent 85%),#37291f; }
.mt-cover-fallback { font:italic 72px Georgia,serif; color:#ffffff55; }
.mt-cover-top-row { top:10px; left:10px; right:10px; z-index:1; }
.mt-cover-status { font-size:8px; font-weight:700; padding:4px 7px; border-radius:5px; box-shadow:none; }
.mt-cover-score { z-index:1; bottom:10px; right:10px; font-family:'Manrope',sans-serif; font-size:19px; padding:5px 9px; border-radius:8px; border:0; background:#141217ec; box-shadow:none; }
.mt-cover-title { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; white-space:normal; font-size:12px; line-height:1.5; font-weight:600; margin-top:7px; }
.mt-cover-type-line { font-size:9px; color:var(--text-faint); }
.mt-cover-trophy { z-index:2; }
.mt-paper { padding:20px; background:#1d1b22; border:1px solid #ffffff10; border-radius:18px; box-shadow:none; }
.mt-panel-title { font-size:12px; letter-spacing:.6px; font-weight:700; }
.mt-primary-btn { background:var(--pink); color:#21172f; border-radius:12px; box-shadow:none; min-height:46px; font-size:13px; }
.mt-ghost-btn { background:#ffffff04; border-color:#ffffff19; border-radius:12px; font-size:12px; min-height:44px; }
.mt-input { background:#151319; border-color:#ffffff1c; border-radius:12px; font-size:16px; }
.mt-input:focus { border-color:var(--pink); box-shadow:0 0 0 3px #c4b2ed12; }
.mt-empty { background:transparent; border:1px dashed #ffffff20; padding:35px 24px; }
.mt-empty-art { display:grid; place-items:center; width:70px; height:80px; border:1px solid #c4b2ed40; border-radius:5px 18px 18px 5px; margin:0 auto 23px; color:var(--pink); background:#2e2539; transform:rotate(-9deg); box-shadow:7px 6px 0 #c4b2ed0c; }
.mt-empty-art svg { width:32px; height:32px; }
.mt-empty-title { font:26px/1.2 Georgia,serif; }
.mt-empty-text { font-size:12px; line-height:1.8; margin-top:12px; }
.mt-tabbar { z-index:25; pointer-events:none; padding:0 14px calc(10px + env(safe-area-inset-bottom)); }
.mt-tabbar-inner { max-width:550px; padding:6px; gap:3px; border-radius:19px; background:#242029f5; border-color:#ffffff1c; box-shadow:0 10px 40px #0008; pointer-events:auto; }
.mt-tab-v2 { min-width:0; padding:8px 2px; gap:4px; border-radius:13px; }
.mt-tab-icon-wrap { width:30px; height:27px; border-radius:8px; color:#a69aaf; }
.mt-tab-icon-wrap svg { width:21px; height:21px; }
.mt-tab-v2.active { background:#c4b2ed15; }
.mt-tab-v2.active .mt-tab-icon-wrap { background:none; color:var(--pink); box-shadow:none; transform:none; }
.mt-tab-label { font-size:9px; font-weight:600; color:#afa4b6; }
.mt-tab-v2.active .mt-tab-label { color:#ddcff3; }
.mt-nav-brand,.mt-nav-note { display:none; }
.mt-detail-head { padding:24px 22px 12px; }
.mt-detail-title { font:24px/1.2 Georgia,serif; white-space:normal; overflow-wrap:anywhere; }
.mt-detail-status { padding:0 22px; }
.mt-detail-body { padding:20px 22px 44px; gap:20px; }
.mt-hero-wrap { border-radius:8px 22px 22px 8px; height:270px; }
.mt-hero-fg { filter:drop-shadow(8px 10px 14px #0008); }
.mt-hero-bg { opacity:.35; }
.mt-radar-panel { display:grid; grid-template-columns:1fr; text-align:center; gap:0; padding:26px 20px 20px; background:radial-gradient(ellipse at 50% 0%,#c4b2ed0d,transparent 70%),#1d1b22; }
.mt-radar-panel > svg { justify-self:center; max-width:100%; }
.mt-rating-summary { padding-bottom:8px; }
.mt-editorial-score { color:var(--text-primary); font:76px/1.15 Georgia,serif; letter-spacing:-5px; margin:10px 0 5px; }
.mt-editorial-score small { font:12px 'Manrope',sans-serif; color:var(--text-muted); letter-spacing:0; margin-left:8px; }
.mt-rating-summary-caption { color:var(--text-muted); font-size:10px; }
.mt-emotion-recap { border-top:1px solid #ffffff12; padding-top:15px; margin-top:6px; }
.mt-comparison { border-top:2px solid #c4b2ed55; }
.mt-comparison-score { font-family:Georgia,serif; font-size:42px; }
.mt-comparison-score strong { color:var(--pink); }
.mt-feature-dialog { border-color:#c4b2ed30; border-radius:24px; }
.mt-hero { box-shadow:none; border-radius:22px; background:#211d29; }
.mt-hero-acct { background:#13101855; }
.mt-hero-nick { font-family:Georgia,serif; font-size:28px; font-weight:400; }
.mt-achv-row { padding:15px 12px; border-radius:14px; }
.mt-header > .mt-title-row > .mt-title { font:34px Georgia,serif; letter-spacing:-1px; }
.mt-page-title { font:34px/1.15 Georgia,serif; letter-spacing:-1px; margin:12px 0 10px; }
.mt-header:has(.mt-page-title) { padding-bottom:16px; }
@media (hover:hover) { .mt-cover:hover { transform:translateY(-4px) rotate(-1deg); border-color:#c4b2ed70; } .mt-primary-btn:hover,.mt-add-btn:hover { background:#d7c7f5; } .mt-ghost-btn:hover,.mt-icon-round:hover { background:#ffffff0b; } .mt-continue-card:hover { border-color:#c4b2ed70; } }
@media (max-width:359px) {
 .mt-header { padding:20px 16px 0; } .mt-featured-slot,.mt-library-controls { padding-left:16px; padding-right:16px; } .mt-list { padding-left:16px; padding-right:16px; }
 .mt-library-intro h1 { font-size:29px; } .mt-library-stats { gap:10px; font-size:9px; } .mt-library-stats span + span { padding-left:10px; }
 .mt-continue-card { padding:14px; gap:12px; min-height:170px; } .mt-continue-card img,.mt-continue-placeholder { width:70px; height:112px; flex-basis:70px; }
 .mt-continue-card strong { font-size:13px; } .mt-continue-copy .mt-section-eyebrow { font-size:7px; } .mt-collection-heading p { font-size:9px; }
 .mt-sort-btn { padding-left:8px; padding-right:8px; font-size:9px; } .mt-grid { gap:22px 12px; }
}
@media (min-width:850px) {
 .mt-shell-tabs { max-width:1100px; margin-left:210px; width:calc(100% - 210px); padding:0 32px; } .mt-shell-detail { max-width:760px; }
 .mt-header { padding-top:40px; } .mt-library-intro { padding-top:38px; } .mt-library-intro h1 { font-size:52px; } .mt-library-stats { font-size:12px; } .mt-library-stats strong { font-size:20px; }
 .mt-continue-card { flex-basis:65%; min-height:210px; } .mt-continue-card:only-child { flex-basis:100%; } .mt-continue-card img,.mt-continue-placeholder { width:110px; height:165px; flex-basis:110px; }
 .mt-continue-card strong { font-size:22px; } .mt-continue-copy { margin-left:10px; } .mt-continue-link { font-size:12px; }
 .mt-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:28px 22px; }
 .mt-library-controls { display:flex; align-items:center; gap:24px; flex-wrap:wrap; } .mt-library-controls .mt-filter-row { margin:0; } .mt-library-controls .mt-search-wrap { flex-basis:100%; }
 .mt-tabbar { position:fixed; inset:0 auto 0 0; width:210px; padding:40px 16px 24px; display:flex; flex-direction:column; justify-content:flex-start; border-right:1px solid #ffffff0d; background:#19171e; pointer-events:auto; }
 .mt-tabbar-inner { display:flex; flex-direction:column; gap:8px; width:100%; background:none; box-shadow:none; border:0; padding:0; backdrop-filter:none; }
 .mt-tab-v2 { flex:none; flex-direction:row; padding:13px 12px; gap:10px; } .mt-tab-label { font-size:11px; } .mt-tab-icon-wrap { flex:0 0 27px; }
 .mt-nav-brand { display:flex; flex-direction:column; align-items:flex-start; padding:0 12px; margin-bottom:44px; } .mt-nav-brand img { width:48px; height:48px; margin-bottom:17px; }
 .mt-nav-brand strong { font-size:12px; letter-spacing:1.2px; } .mt-nav-brand span { font-size:9px; color:var(--text-muted); margin-top:7px; }
 .mt-nav-note { display:block; margin:auto 12px 0; color:var(--text-faint); font:italic 19px/1.5 Georgia,serif; }
 .mt-radar-panel:has(.mt-rating-summary) { grid-template-columns:1fr 1fr; align-items:center; } .mt-emotion-recap { grid-column:1/-1; }
}
.mt-award-months { display:grid; grid-template-columns:repeat(auto-fit,minmax(130px,1fr)); gap:9px; }
.mt-award-month { display:flex; flex-direction:column; align-items:flex-start; gap:5px; padding:13px; border:1px solid #ffffff20; border-radius:13px; background:#ffffff03; color:var(--text-muted); text-align:left; cursor:pointer; }
.mt-award-month strong { font-size:12px; font-weight:600; }
.mt-award-month span { font-size:10px; }
.mt-award-month.active { border-color:var(--pink); background:#c4b2ed15; color:var(--text-primary); }
.mt-award-month.active span { color:var(--pink); }
@media (max-width:599px) {
 .mt-cover-top-row { top:6px; left:5px; right:5px; }
 .mt-cover-status { font-size:7px; padding:3px 4px; }
 .mt-cover-score { right:6px; bottom:6px; font-size:15px; padding:4px 6px; }
 .mt-cover-title { font-size:11px; }
 .mt-cover-fallback { font-size:48px; }
 .mt-cover-score.mt-cover-unrated { font-size:7px; padding:3px 4px; }
}
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { animation:none !important; transition:none !important; scroll-behavior:auto !important; } .mt-cover:hover { transform:none; } }

/* Reader profile: labels and tracks occupy separate rows at every width. */
.mt-genre-chip-static { display:inline-block; max-width:100%; white-space:normal; overflow-wrap:anywhere; }
.mt-profile-page { min-width:0; }
.mt-profile-page .mt-list { gap:18px; }
.mt-profile-page .mt-list > .mt-shop-entry { margin:0; box-sizing:border-box; }
.mt-theme-freefall{background:linear-gradient(90deg,#052a50d9,#06375b99 65%,#14364d33),url('assets/shop/theme-freefall.webp') center/cover!important;}
.mt-frame-freefall .mt-shop-avatar,.mt-frame-freefall .mt-hero-avatar-ring{position:relative;background:#c7efff!important;overflow:visible!important;outline:0!important;box-shadow:none;}
.mt-frame-freefall .mt-shop-avatar:after,.mt-frame-freefall .mt-hero-avatar-ring:after{content:'';position:absolute;inset:-19%;background:url('assets/shop/frame-freefall.webp') center/contain no-repeat;pointer-events:none;z-index:2;}
.mt-badge-owner .mt-shop-badge{color:#e4faff;border:1px solid #b4eaff99;background:linear-gradient(125deg,#123c5de8,#235574d9);box-shadow:0 0 16px #91ddff22;font-weight:800;letter-spacing:1.4px;}
.mt-shop-item[data-rarity=exclusive]{--rarity:#9de4ff;}
.mt-settings-entry{display:flex;align-items:center;gap:14px;text-align:left;color:var(--text-primary);width:100%;box-sizing:border-box;cursor:pointer;}
.mt-settings-entry>span:nth-child(2){flex:1;min-width:0;}
.mt-settings-entry strong{font-size:15px;display:block;}
.mt-settings-entry small{display:block;color:var(--text-muted);font-size:12px;line-height:1.6;margin-top:6px;}
.mt-settings-page.mt-account-settings{padding:24px 22px calc(112px + env(safe-area-inset-bottom));box-sizing:border-box;}
.mt-settings-card,.mt-settings-page .mt-profile-backup{padding:22px;border:1px solid #ffffff18;border-radius:22px;background:#211c28;margin:0 0 18px;}
.mt-settings-card h2{font-size:17px;margin:0 0 12px;}
.mt-settings-card p{font-size:12px;color:#b6a9c2;line-height:1.7;margin:0 0 18px;}
.mt-setting-toggle{display:flex;align-items:center;gap:16px;padding:16px 0;border-top:1px solid #ffffff10;cursor:pointer;}
.mt-setting-toggle>span{flex:1;min-width:0;}
.mt-setting-toggle strong{display:block;font-size:13px;}
.mt-setting-toggle small{display:block;font-size:12px;color:#b6a9c2;line-height:1.6;margin-top:6px;}
.mt-setting-toggle input{width:22px;height:22px;accent-color:#c4b2ed;flex-shrink:0;}
.mt-settings-page .mt-settings-account .mt-hero-acct{padding:0;border:0;background:none;border-radius:0;}
.mt-settings-page .mt-editor{margin-bottom:18px;border-radius:22px;}
.mt-settings-page .mt-profile-backup .mt-form-row{flex-wrap:wrap;}
.mt-reduce-motion *,.mt-reduce-motion *:before,.mt-reduce-motion *:after{animation:none!important;transition:none!important;scroll-behavior:auto!important;}
.mt-large-text .mt-shell p,.mt-large-text .mt-input,.mt-large-text .mt-backup-text{font-size:15px!important;line-height:1.65;}
.mt-large-text .mt-setting-toggle strong,.mt-large-text .mt-shop-item-body h2{font-size:16px;}
.mt-large-text .mt-setting-toggle small,.mt-large-text .mt-settings-entry small,.mt-large-text .mt-chip-label{font-size:14px;}
@media(max-width:359px){.mt-settings-page.mt-account-settings{padding-left:16px;padding-right:16px;}.mt-settings-card,.mt-settings-page .mt-profile-backup{padding:18px;}}
.mt-owned-styles{border-top:1px solid #ffffff18;margin-top:24px;padding-top:12px;min-width:0;}
.mt-owned-styles .mt-shop-preview{padding:20px;margin:16px 0 22px;}
.mt-owned-styles .mt-shop-preview-person{margin-top:0;gap:20px;}
.mt-owned-styles .mt-shop-preview-person strong{font-size:18px;}
.mt-owned-field{display:block;margin-top:16px;color:#c6bbd2;font-size:12px;}
.mt-owned-field .mt-input{display:block;width:100%;min-width:0;box-sizing:border-box;margin-top:8px;text-overflow:ellipsis;}
.mt-profile-page .mt-paper { padding:22px; background:linear-gradient(145deg,#25202c,#1c1a21 70%); border-color:#c4b2ed14; border-radius:22px; }
.mt-profile-page .mt-panel-title { font-size:16px; font-weight:700; letter-spacing:-.3px; line-height:1.45; margin-bottom:0; }
.mt-profile-caption { color:var(--text-muted); font-size:11px; line-height:1.6; margin:6px 0 22px; }
.mt-profile-page .mt-bar-row { display:grid; grid-template-columns:minmax(0,1fr) auto; grid-template-areas:'name value' 'track track'; align-items:start; gap:9px 12px; }
.mt-profile-page .mt-bar-row + .mt-bar-row { margin-top:20px; }
.mt-profile-page .mt-bar-name { grid-area:name; width:auto; min-width:0; font-size:12px; font-weight:600; line-height:1.5; overflow-wrap:anywhere; }
.mt-profile-page .mt-bar-value { grid-area:value; width:auto; white-space:nowrap; font:600 12px/1.5 'Manrope',sans-serif; font-variant-numeric:tabular-nums; }
.mt-profile-page .mt-bar-value small { font-size:10px; color:var(--text-muted); font-weight:400; }
.mt-profile-page .mt-bar-track { grid-area:track; width:100%; height:8px; background:#ffffff09; border-radius:12px; box-shadow:inset 0 1px 3px #0003; }
.mt-profile-page .mt-bar-fill { border-radius:12px; background-image:linear-gradient(90deg,#ffffff00,#ffffff30) !important; }
.mt-profile-criteria .mt-bar-fill { background-color:var(--pink) !important; }
.mt-profile-criteria .mt-bar-value { color:var(--pink) !important; }
.mt-profile-genres .mt-bar-row:first-of-type .mt-bar-name { color:var(--text-primary); }
.mt-profile-page .mt-chip-row { gap:12px; }
.mt-profile-page .mt-chip { position:relative; background:linear-gradient(135deg,#33293f,#201b28); border:1px solid #c4b2ed29; border-radius:18px; padding:22px 18px; min-width:0; }
.mt-profile-page .mt-chip-value { font:42px/1.1 Georgia,serif; color:#dfd1f2 !important; letter-spacing:-1px; }
.mt-profile-page .mt-chip-label { margin-top:10px; color:#b9afc4; font-size:11px; }
.mt-profile-page .mt-status-track { height:12px; gap:3px; background:#ffffff06; border-radius:6px; margin-top:18px; }
.mt-profile-page .mt-status-track > div { border-radius:4px; }
.mt-profile-page .mt-status-legend { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin-top:18px; }
.mt-profile-page .mt-legend-item { display:flex; align-items:center; gap:7px; padding:11px 9px; background:#ffffff04; border-radius:10px; min-width:0; }
.mt-profile-page .mt-legend-dot { flex-shrink:0; width:6px; height:6px; }
.mt-profile-page .mt-legend-label { font-size:10px; min-width:0; overflow-wrap:anywhere; }
.mt-profile-page .mt-legend-item strong { margin-left:auto; font-size:12px; font-weight:600; }
.mt-profile-page .mt-mini-row { width:100%; display:flex; gap:12px; padding:13px 0; border:0; border-bottom:1px solid #ffffff0c; background:none; color:var(--text-primary); text-align:left; cursor:pointer; }
.mt-profile-page .mt-mini-row:last-child { border-bottom:0; padding-bottom:0; }
.mt-profile-book { flex:0 0 38px; width:38px; height:54px; object-fit:cover; border-radius:3px 7px 7px 3px; box-shadow:3px 4px 10px #0004; }
.mt-profile-book-empty { display:grid; place-items:center; background:linear-gradient(135deg,#615171,#32283c); color:#decff0; font:italic 24px Georgia,serif; }
.mt-profile-page .mt-mini-title { flex:1; min-width:0; white-space:normal; overflow-wrap:anywhere; font-size:12px; line-height:1.5; font-weight:500; }
.mt-profile-page .mt-mini-score { flex-shrink:0; font:24px Georgia,serif; color:#d6c5eb !important; }
.mt-profile-page .mt-rank-progress-track { height:8px; margin-top:18px; background:#ffffff0a; }
.mt-profile-page .mt-rank-progress-fill { background-image:linear-gradient(90deg,#ffffff00,#ffffff40); }
.mt-profile-page .mt-rank-progress-label { font-size:11px; line-height:1.6; margin:10px 0 16px; }
.mt-profile-page .mt-hero { margin:0 22px; border:1px solid #c4b2ed25; background:linear-gradient(125deg,#302538,#201b28); }
.mt-profile-page .mt-hero-main { padding-top:28px; padding-bottom:28px; }
.mt-profile-page .mt-hero-bio { line-height:1.6; }
.mt-profile-page .mt-profile-backup { border-style:dashed; background:transparent; }
.mt-profile-page .mt-backup-text { margin-top:12px; font-size:12px; line-height:1.7; }
@media (max-width:359px) {
 .mt-profile-page .mt-paper { padding:17px; }
 .mt-profile-page .mt-hero { margin-left:16px; margin-right:16px; }
 .mt-profile-page .mt-legend-item { padding:10px 7px; gap:5px; }
 .mt-profile-page .mt-form-row { flex-wrap:wrap; }
 .mt-profile-page .mt-form-row > button { min-width:110px; }
}

/* Annual awards: a gold-accented hall of fame built from monthly snapshots. */
.mt-annual { --gold:#e0c48c; display:flex; flex-direction:column; gap:20px; min-width:0; }
.mt-annual-years { display:flex; flex-wrap:wrap; gap:8px; }
.mt-annual-year { padding:10px 17px; border:1px solid #e0c48c30; border-radius:10px; background:transparent; color:var(--text-muted); font:600 12px 'Manrope',sans-serif; cursor:pointer; }
.mt-annual-year.active { color:#211c13; background:var(--gold); }
.mt-annual-intro { text-align:center; padding:25px 0 5px; }
.mt-annual-intro .mt-section-eyebrow { color:var(--gold); letter-spacing:3px; }
.mt-annual-intro h2 { font:38px/1.08 Georgia,serif; letter-spacing:-1.3px; margin:17px 0 20px; }
.mt-annual-intro em { color:var(--gold); }
.mt-annual-season { display:inline-block; padding:7px 10px; border:1px solid #e0c48c22; border-radius:20px; font-size:9px; color:#c5bda9; }
.mt-annual-crown { text-align:center; color:var(--gold); font-size:38px; line-height:1; margin:6px 0 -10px; }
.mt-annual-heading { text-align:left; margin-top:18px; }
.mt-annual-crown + .mt-annual-heading { text-align:center; margin-top:0; }
.mt-annual-heading h3 { font:27px/1.2 Georgia,serif; letter-spacing:-.5px; margin:9px 0 7px; }
.mt-annual-heading p,.mt-annual-footnote { color:var(--text-muted); font-size:11px; line-height:1.7; margin:0; }
.mt-annual-winners { display:grid; gap:16px; }
.mt-annual-winner { position:relative; isolation:isolate; width:100%; display:flex; flex-direction:column; align-items:center; gap:22px; padding:32px 22px; overflow:hidden; border:1px solid #e0c48c66; border-radius:24px; background:radial-gradient(ellipse at 50% 0%,#72583466,transparent 70%),#211e21; color:var(--text-primary); cursor:pointer; }
.mt-annual-winner::after { content:''; position:absolute; inset:8px; border:1px solid #e0c48c18; border-radius:17px; pointer-events:none; }
.mt-annual-winner-year { position:absolute; top:25px; left:0; right:0; z-index:-1; font:110px Georgia,serif; color:#e0c48c09; letter-spacing:-8px; }
.mt-annual-main-cover { width:132px; height:190px; object-fit:cover; border-radius:5px 12px 12px 5px; box-shadow:8px 16px 30px #0008; border:1px solid #e0c48c44; }
.mt-annual-cover-empty { display:grid; place-items:center; background:linear-gradient(130deg,#6b5846,#292028); color:#e0c48c; font:italic 62px Georgia,serif; }
.mt-annual-winner-copy { display:flex; flex-direction:column; align-items:center; gap:12px; max-width:100%; }
.mt-annual-winner-copy .mt-section-eyebrow { color:var(--gold); font-size:8px; letter-spacing:2px; }
.mt-annual-winner-copy > strong { font:27px/1.15 Georgia,serif; overflow-wrap:anywhere; }
.mt-annual-wins { border:1px solid #e0c48c55; padding:7px 15px; border-radius:20px; color:var(--gold); font-size:12px; }
.mt-annual-winner-copy > small { color:#b5a998; font-size:10px; line-height:1.6; }
.mt-annual-open { color:#e6d3b0; font-size:10px; border-bottom:1px solid #e0c48c30; padding-bottom:4px; }
.mt-annual-numbers { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); border:1px solid #e0c48c20; border-radius:15px; padding:19px 0; background:#e0c48c05; }
.mt-annual-numbers > div { display:flex; flex-direction:column; text-align:center; gap:9px; padding:0 6px; }
.mt-annual-numbers > div + div { border-left:1px solid #e0c48c20; }
.mt-annual-numbers strong { color:var(--gold); font:29px Georgia,serif; }
.mt-annual-numbers small { color:var(--text-muted); font:10px 'Manrope',sans-serif; }
.mt-annual-numbers span { color:var(--text-muted); font-size:9px; line-height:1.5; }
.mt-annual-footnote { font-size:10px; margin-top:-8px; }
.mt-annual-discovery { padding:22px; border:1px solid #e0c48c20; border-radius:16px; background:#e0c48c06; }
.mt-annual-discovery strong { display:block; margin:12px 0; color:var(--gold); font:25px/1.3 Georgia,serif; overflow-wrap:anywhere; }
.mt-annual-discovery p { margin:0; color:var(--text-muted); font-size:11px; line-height:1.7; }
.mt-annual-podium { display:flex; flex-direction:column; gap:8px; }
.mt-annual-runner { display:flex; align-items:center; width:100%; gap:14px; text-align:left; padding:14px; color:var(--text-primary); background:#ffffff03; border:1px solid #ffffff0c; border-radius:14px; cursor:pointer; }
.mt-annual-place { color:var(--gold); font:26px Georgia,serif; min-width:30px; }
.mt-annual-small-cover { width:40px; height:58px; flex:0 0 40px; object-fit:cover; border-radius:3px 7px 7px 3px; font-size:23px; }
.mt-annual-runner-title { flex:1; min-width:0; font-size:12px; line-height:1.5; overflow-wrap:anywhere; }
.mt-annual-runner-title small,.mt-annual-category small { display:block; font-size:10px; color:#baa987; margin-top:6px; }
.mt-annual-rest summary,.mt-annual-rules summary { cursor:pointer; padding:14px 0; color:#c4b79d; font-size:12px; }
.mt-annual-categories { display:grid; gap:12px; }
.mt-annual-category { background:linear-gradient(120deg,#30281f66,#1e1b22); border:1px solid #e0c48c20; padding:18px; border-radius:17px; min-width:0; }
.mt-annual-category h4 { color:var(--gold); font-size:12px; margin:0 0 14px; font-weight:600; }
.mt-annual-category button { display:flex; align-items:center; gap:12px; text-align:left; color:var(--text-primary); background:none; border:0; width:100%; padding:7px 0; cursor:pointer; }
.mt-annual-category button > span:last-child { min-width:0; font-size:12px; line-height:1.5; overflow-wrap:anywhere; }
.mt-annual-calendar { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.mt-annual-month { min-width:0; min-height:100px; padding:12px 9px; display:flex; flex-direction:column; gap:9px; text-align:left; background:#ffffff03; border:1px solid #ffffff12; border-radius:12px; color:var(--text-muted); cursor:pointer; }
.mt-annual-month > span { font-size:11px; color:var(--text-primary); }
.mt-annual-month strong { font-size:9px; font-weight:400; }
.mt-annual-month small { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; overflow-wrap:anywhere; font-size:9px; line-height:1.5; }
.mt-annual-month.awarded { border-color:#e0c48c55; background:#e0c48c0c; color:var(--gold); }
.mt-annual-month:disabled { opacity:.4; cursor:default; }
.mt-annual-rules { border-top:1px solid #ffffff14; padding-top:5px; }
.mt-annual-rules p { color:var(--text-muted); font-size:11px; line-height:1.8; }
.mt-annual-await { text-align:center; padding:30px 20px; border:1px dashed #e0c48c35; border-radius:20px; }
.mt-annual-await > span { font-size:42px; color:var(--gold); }
.mt-annual-await h3 { font:26px Georgia,serif; }
.mt-annual-await p { color:var(--text-muted); font-size:12px; line-height:1.7; }
@media (min-width:850px) {
 .mt-annual-intro h2 { font-size:56px; }
 .mt-annual-winner { flex-direction:row; justify-content:center; gap:40px; padding:42px; }
 .mt-annual-main-cover { width:160px; height:230px; }
 .mt-annual-winner-copy { align-items:flex-start; text-align:left; max-width:55%; }
 .mt-annual-winner-year { font-size:180px; top:0; }
 .mt-annual-categories { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .mt-annual-calendar { grid-template-columns:repeat(6,minmax(0,1fr)); }
 .mt-annual-numbers strong { font-size:38px; }
}
@media (max-width:359px) { .mt-annual-intro h2 { font-size:33px; } .mt-annual-winner { padding:26px 17px; } .mt-annual-numbers span { font-size:8px; } }

/* Achievement collection: permanent medals, measurable goals and focused browsing. */
.mt-achievement-page { min-width:0; }
.mt-achievement-page .mt-list { gap:16px; }
.mt-achievement-passport { display:flex; align-items:center; gap:16px; padding:25px 20px; border:1px solid #c4b2ed30; border-radius:23px; background:radial-gradient(ellipse at 100% 0%,#73559444,transparent 80%),#241e2d; }
.mt-achievement-passport > div:first-child { flex:1; min-width:0; }
.mt-achievement-passport h2 { margin:12px 0; font:26px/1.16 Georgia,serif; letter-spacing:-.6px; }
.mt-achievement-passport em { color:var(--pink); }
.mt-achievement-passport p { color:var(--text-muted); font-size:10px; line-height:1.7; margin:0; }
.mt-achievement-ring { flex:0 0 88px; width:88px; height:88px; position:relative; display:flex; flex-direction:column; align-items:center; justify-content:center; border-radius:50%; background:conic-gradient(var(--pink) var(--progress),#ffffff0c 0); isolation:isolate; }
.mt-achievement-ring::before { content:''; position:absolute; inset:5px; border-radius:50%; background:#282131; z-index:-1; }
.mt-achievement-ring strong { color:#e5d7f8; font:29px Georgia,serif; }
.mt-achievement-ring small { font:11px 'Manrope',sans-serif; margin-left:2px; }
.mt-achievement-ring > span { color:var(--text-muted); font-size:8px; margin-top:4px; }
.mt-achievement-heading { display:flex; align-items:baseline; justify-content:space-between; gap:10px; margin-top:13px; }
.mt-achievement-heading h2 { margin:0; font-size:18px; font-weight:600; letter-spacing:-.4px; }
.mt-achievement-heading > span { font-size:9px; color:var(--text-muted); text-align:right; }
.mt-achievement-showcase { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; padding:20px 12px; background:linear-gradient(130deg,#3b30222e,#211b29); border:1px solid #dfc28d22; border-radius:20px; }
.mt-achievement-showcase > div { display:flex; flex-direction:column; align-items:center; text-align:center; gap:10px; min-width:0; }
.mt-achievement-showcase strong { font-size:10px; line-height:1.5; overflow-wrap:anywhere; }
.mt-achievement-showcase small { font-size:8px; color:#c8b48f; }
.mt-achievement-medal { display:grid; place-items:center; width:52px; height:58px; flex:0 0 52px; font-size:25px; background:linear-gradient(145deg,#43354f,#26202f); border:1px solid #c4b2ed33; border-radius:17px 17px 23px 23px; box-shadow:inset 0 0 0 4px #ffffff03,0 5px 15px #0002; }
.mt-achievement-showcase .mt-achievement-medal,.mt-achievement-card.earned .mt-achievement-medal { background:linear-gradient(145deg,#715a38,#322837); border-color:#dec38c88; box-shadow:inset 0 0 0 4px #e0c48c10,0 5px 18px #0003; }
.mt-achievement-next { display:flex; overflow-x:auto; gap:12px; scroll-snap-type:x proximity; padding-bottom:8px; scrollbar-width:thin; scrollbar-color:#5e486e transparent; }
.mt-achievement-next .mt-achievement-card { flex:0 0 85%; scroll-snap-align:start; }
.mt-achievement-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.mt-achievement-card { min-width:0; display:flex; flex-direction:column; padding:17px 14px; border:1px solid #ffffff12; border-radius:18px; background:linear-gradient(140deg,#292230,#1e1a24); }
.mt-achievement-card.earned { border-color:#d8bd8240; background:linear-gradient(145deg,#33291f77,#231e29); }
.mt-achievement-top { display:flex; align-items:flex-start; justify-content:space-between; gap:6px; margin-bottom:17px; flex-wrap:wrap; }
.mt-achievement-xp { padding:4px 5px; border-radius:6px; color:#c4b2ed; background:#c4b2ed0c; font-size:8px; white-space:nowrap; }
.mt-achievement-category { color:var(--text-faint); font-size:8px; text-transform:uppercase; letter-spacing:.7px; line-height:1.5; }
.mt-achievement-card h3 { font-size:14px; font-weight:700; line-height:1.35; margin:7px 0 9px; overflow-wrap:anywhere; }
.mt-achievement-card p { font-size:10px; color:var(--text-muted); line-height:1.65; margin:0 0 18px; overflow-wrap:anywhere; }
.mt-achievement-bottom { margin-top:auto; }
.mt-achievement-state { display:flex; align-items:baseline; justify-content:space-between; gap:6px; flex-wrap:wrap; font-size:9px; color:#c8bfd2; line-height:1.5; }
.mt-achievement-state strong { color:var(--pink); font-size:9px; }
.mt-achievement-card.earned .mt-achievement-state { color:#dbc28f; }
.mt-achievement-track { height:5px; background:#ffffff09; border-radius:10px; overflow:hidden; margin-top:9px; }
.mt-achievement-track > span { display:block; height:100%; background:linear-gradient(90deg,#9079b4,#c4b2ed); border-radius:10px; }
.mt-achievement-card.earned .mt-achievement-track > span { background:linear-gradient(90deg,#b29a6d,#e0c48c); }
.mt-achievement-filters { display:flex; gap:5px; padding:4px; border:1px solid #ffffff14; border-radius:12px; }
.mt-achievement-filters button { flex:1; padding:10px 7px; border:0; border-radius:8px; background:transparent; color:var(--text-muted); font-size:11px; cursor:pointer; }
.mt-achievement-filters button[aria-pressed=true] { background:#c4b2ed20; color:#e2d3f4; }
.mt-achievement-categories { display:flex; gap:7px; overflow-x:auto; padding-bottom:7px; scrollbar-width:thin; scrollbar-color:#5e486e transparent; }
.mt-achievement-categories button { flex:0 0 auto; white-space:nowrap; padding:9px 12px; border:1px solid #ffffff16; border-radius:20px; background:transparent; color:var(--text-muted); font-size:10px; cursor:pointer; }
.mt-achievement-categories button[aria-pressed=true] { color:var(--pink); border-color:#c4b2ed80; background:#c4b2ed0b; }
.mt-achievement-result-count { font-size:10px; color:var(--text-muted); }
.mt-achievement-note { color:var(--text-muted); font-size:10px; line-height:1.8; }
.mt-achievement-page .mt-rank-progress-track { height:7px; }
.mt-achievement-page .mt-rank-panel { border-radius:20px; }
@media (min-width:850px) {
 .mt-achievement-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
 .mt-achievement-next .mt-achievement-card { flex:1; }
 .mt-achievement-passport { padding:32px; }
 .mt-achievement-passport h2 { font-size:36px; }
 .mt-achievement-ring { flex-basis:110px; width:110px; height:110px; }
 .mt-achievement-showcase { padding:26px; }
}
@media (max-width:359px) {
 .mt-achievement-passport { padding:20px 15px; gap:10px; }
 .mt-achievement-passport h2 { font-size:23px; }
 .mt-achievement-ring { flex-basis:70px; width:70px; height:70px; }
 .mt-achievement-ring strong { font-size:24px; }
 .mt-achievement-card { padding:15px 11px; }
 .mt-achievement-grid { gap:9px; }
 .mt-achievement-card h3 { font-size:13px; }
}
/* Reading studio */
.mt-journey-page {max-width:960px;margin:auto;padding:28px 0 40px;}
.mt-journey-heading {padding:12px 4px 32px;}
.mt-journey-heading h1 {font:500 clamp(38px,7vw,68px)/1.05 Georgia,serif;margin:16px 0;letter-spacing:-2px;}
.mt-journey-heading h1 span {display:block;font:400 14px/1.6 Manrope,sans-serif;letter-spacing:0;color:#aaa2b7;margin-top:16px;}
.mt-journey-panel {padding:clamp(18px,4vw,32px);margin:0 0 22px;border:1px solid #c5b4e824;border-radius:26px;background:linear-gradient(145deg,#292331,#1b1920);min-width:0;}
.mt-journey-panel h2 {font:500 clamp(25px,5vw,36px)/1.15 Georgia,serif;margin:14px 0;overflow-wrap:anywhere;}
.mt-journey-panel p {color:#b4adbf;font-size:13px;line-height:1.7;}
.mt-journey-panel label {display:block;font-size:12px;color:#cdc5d9;}
.mt-journey-panel .mt-input {display:block;width:100%;box-sizing:border-box;margin:8px 0 16px;}
.mt-journey-fields,.mt-goal-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;}
.mt-journey-pick {display:flex;gap:20px;width:100%;text-align:left;border:0;background:#d4c4ed;color:#251d32;border-radius:18px;padding:20px;margin:8px 0 12px;align-items:center;}
.mt-journey-pick>img,.mt-journey-pick>.mt-journey-placeholder {width:95px;aspect-ratio:2/3;object-fit:cover;flex-shrink:0;border-radius:9px;box-shadow:0 12px 25px #21143133;}
.mt-journey-pick>span:last-child {min-width:0;display:grid;gap:12px;font-size:12px;}
.mt-journey-pick strong {font:500 24px/1.15 Georgia,serif;overflow-wrap:anywhere;}
.mt-journey-pick small {font-size:9px;letter-spacing:1px;}
.mt-journey-placeholder {display:grid;place-items:center;background:linear-gradient(145deg,#67567e,#292032);color:#e5d5ff;font:32px Georgia,serif;}
.mt-duel-pair {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:20px 0 8px;}
.mt-duel-card {display:flex;flex-direction:column;gap:12px;min-width:0;border:1px solid #ffffff19;border-radius:16px;background:#ffffff06;padding:10px;color:#eee8f6;text-align:left;transition:transform .2s,border-color .2s;}
.mt-duel-card:hover {transform:translateY(-3px);border-color:#c6a9f2;}
.mt-duel-card img,.mt-duel-card>.mt-journey-placeholder {width:100%;aspect-ratio:3/4;object-fit:cover;border-radius:10px;}
.mt-duel-card strong {font-size:14px;overflow-wrap:anywhere;flex:1;}
.mt-duel-card>span:last-child {font-size:11px;color:#cdb5f0;padding-bottom:5px;}
.mt-duel-ranking {padding-left:22px;}
.mt-duel-ranking li {padding:12px 0;border-bottom:1px solid #ffffff12;font-size:13px;}
.mt-duel-ranking li span {overflow-wrap:anywhere;}
.mt-duel-ranking b {display:block;font-size:11px;color:#baa6d8;margin-top:5px;}
.mt-goal-card {border:1px solid #ffffff18;border-radius:18px;padding:20px;display:flex;flex-direction:column;min-width:0;}
.mt-goal-card.selected {background:#c5a4f40b;border-color:#b592e755;}
.mt-goal-card h3 {font:500 23px/1.2 Georgia,serif;margin:14px 0 0;}
.mt-goal-card p {flex:1;}
.mt-goal-count {font-size:32px;font-weight:800;}.mt-goal-count span {font-size:15px;color:#aaa0b9;}
.mt-goal-card progress {width:100%;height:7px;accent-color:#c4a5ef;border:0;border-radius:9px;margin:14px 0;background:#ffffff14;}
.mt-goal-card progress::-webkit-progress-bar {background:#ffffff14;border-radius:9px;}.mt-goal-card progress::-webkit-progress-value {background:#c4a5ef;border-radius:9px;}
.mt-journey-empty {padding:28px 18px;border:1px dashed #bfa7e03d;border-radius:16px;color:#b6acbf;font-size:13px;line-height:1.7;margin:18px 0;}
.mt-chapter-journal textarea {min-height:110px;resize:vertical;}
.mt-chapter-journal .mt-spoiler-check {display:flex;align-items:center;gap:10px;margin:10px 0 20px;}
.mt-journal-list article {border-top:1px solid #ffffff16;margin-top:24px;padding-top:20px;}
.mt-journal-list header {display:flex;justify-content:space-between;gap:12px;font-size:12px;}
.mt-journal-list time {color:#a69bb3;font-size:11px;}
.mt-journal-list p {white-space:pre-wrap;overflow-wrap:anywhere;color:#e0d7e9;}
.mt-journal-list details {margin-top:14px;background:#ffffff05;padding:14px;border-radius:12px;font-size:12px;}
.mt-journal-list summary {cursor:pointer;color:#c7b1e5;}
@media(max-width:599px){.mt-tab-label{font-size:9px;}.mt-tab-v2{min-width:0;padding-left:2px;padding-right:2px;}.mt-goal-grid{grid-template-columns:1fr;}.mt-journey-pick{gap:12px;padding:14px;}.mt-journey-pick>img,.mt-journey-pick>.mt-journey-placeholder{width:70px;}.mt-journey-pick strong{font-size:20px;}}
@media(prefers-reduced-motion:reduce){.mt-duel-card{transition:none;}}
/* First impression: compact reading keepsake */
.mt-reveal-backdrop {padding:16px;background:#0c0911b8;backdrop-filter:blur(16px);}
.mt-reveal-card {display:flex;align-items:stretch;text-align:left;padding:0;width:100%;max-width:430px;max-height:calc(100dvh - 32px);overflow:hidden;border-radius:28px;border:1px solid #dbc4ff30;background:radial-gradient(ellipse at 100% 0,#47315188,transparent 60%),#211b29;box-shadow:0 28px 100px #0009;}
.mt-reveal-content {padding:24px 24px 0;overflow:auto;min-height:0;}
.mt-reveal-edition {display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:26px;font-size:8px;letter-spacing:1.5px;color:#a697b7;}
.mt-reveal-saved {padding:7px 10px;background:#dbbdff0c;border:1px solid #dbbdff21;border-radius:30px;font-size:10px;letter-spacing:0;color:#dbc8ef;}
.mt-reveal-hero {display:grid;grid-template-columns:106px minmax(0,1fr);gap:24px;align-items:center;}
.mt-reveal-cover {width:106px;height:152px;margin:0;border-radius:10px;transform:rotate(-4deg);animation:none;background:linear-gradient(135deg,#745a8b,#2b2038);border:1px solid #ffffff26;box-shadow:7px 12px 24px #0005;}
.mt-reveal-cover-img {width:100%;height:100%;object-fit:cover;}
.mt-reveal-cover-fallback {width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;color:#dac9e8;font-size:9px;font-weight:500;letter-spacing:2px;text-align:center;}
.mt-reveal-cover-fallback img {width:46px;height:46px;opacity:.8;}
.mt-reveal-kicker {font-size:8px;letter-spacing:1.3px;color:#c0a9d2;}
.mt-reveal-stamp {display:flex;align-items:baseline;gap:6px;width:auto;height:auto;margin:8px 0 0;padding:0;border:0;border-radius:0;background:none;box-shadow:none;animation:none;transform:none;color:#ead9fa;font:500 76px/.95 Georgia,serif;letter-spacing:-5px;justify-content:flex-start;}
.mt-reveal-stamp span {font:400 11px/1 Manrope,sans-serif;letter-spacing:0;color:#a18bac;white-space:nowrap;}
.mt-reveal-verdict {font-size:12px;line-height:1.5;color:#c8b4d6;margin:12px 0 0;}
.mt-reveal-title {font:500 27px/1.16 Georgia,serif;letter-spacing:-.6px;overflow-wrap:anywhere;margin:25px 0 22px;animation:none;color:#f2eaf7;}
.mt-reveal-criteria {display:grid;gap:12px;padding:18px 0;border-block:1px solid #ffffff12;}
.mt-reveal-criteria>div {display:grid;grid-template-columns:minmax(0,1fr) 30px;gap:5px 10px;align-items:center;font-size:11px;}
.mt-reveal-criteria>div>span {overflow-wrap:anywhere;color:#c5b9ce;}
.mt-reveal-criteria b {font:400 11px 'Space Mono',monospace;color:#e0c8f5;text-align:right;}
.mt-reveal-criteria i {grid-column:1/-1;height:3px;background:#ffffff0c;border-radius:3px;overflow:hidden;}
.mt-reveal-criteria em {display:block;height:100%;border-radius:3px;background:linear-gradient(90deg,#7f639b,#dbb7ef);}
.mt-reveal-notes {width:100%;box-sizing:border-box;padding:14px 0;margin:0;border:0;border-radius:0;background:none;animation:none;color:#b6a7c3;}
.mt-reveal-notes summary {font-size:11px;cursor:pointer;display:flex;justify-content:space-between;gap:12px;list-style:none;}
.mt-reveal-notes summary::-webkit-details-marker {display:none;}
.mt-reveal-notes summary span {font-size:9px;color:#cbb3de;}
.mt-reveal-notes p {white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;line-height:1.7;color:#d4c6de;}
.mt-reveal-footer {padding:16px 24px 18px;flex-shrink:0;}
.mt-reveal-footer button {width:100%;display:flex;justify-content:space-between;align-items:center;border-radius:14px;background:#dbc5f0;color:#2b1d38;font-size:12px;min-height:46px;}
.mt-reveal-footer small {display:block;text-align:center;font-size:9px;color:#96869f;margin-top:10px;}
@media(max-width:359px){.mt-reveal-content{padding:18px 18px 0;}.mt-reveal-hero{grid-template-columns:86px minmax(0,1fr);gap:18px;}.mt-reveal-cover{width:86px;height:124px;}.mt-reveal-stamp{font-size:63px;}.mt-reveal-title{font-size:23px;}.mt-reveal-footer{padding:14px 18px;}}
@media(prefers-reduced-motion:reduce){.mt-reveal-backdrop,.mt-reveal-card{animation:none;}}
/* For you — discovery studio */
.mt-journey-page {width:100%;min-width:0;max-width:1000px;padding:10px 0 40px;}
.mt-journey-heading {position:relative;overflow:hidden;padding:28px 12px 32px;isolation:isolate;}
.mt-journey-heading:before {content:'';position:absolute;width:280px;height:280px;right:-80px;top:-80px;border-radius:50%;background:radial-gradient(circle,#9873c82e,transparent 68%);z-index:-1;}
.mt-journey-heading h1 {font-size:clamp(44px,8vw,80px);line-height:.98;margin:20px 0;letter-spacing:-2px;}
.mt-journey-heading h1 em,.mt-journey-panel h2 em {font-weight:400;color:#c6a4e2;}
.mt-journey-heading p {font-size:12px;line-height:1.8;color:#aaa0b8;}
.mt-journey-orbit {position:absolute;right:20px;top:45px;font:100px Georgia,serif;color:#ba95df35;animation:journeyOrbit 14s ease-in-out infinite;pointer-events:none;}
.mt-journey-nav {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;padding:6px;background:#ffffff05;border:1px solid #ffffff0c;border-radius:20px;margin:0 0 20px;}
.mt-journey-nav button {display:flex;align-items:center;justify-content:center;gap:8px;background:transparent;border:0;border-radius:14px;color:#9c90aa;padding:16px 6px;font:700 12px Manrope,sans-serif;cursor:pointer;transition:background .25s,color .25s,transform .2s;}
.mt-journey-nav button small {font-size:8px;font-weight:400;opacity:.6;}
.mt-journey-nav button[aria-pressed=true] {background:#d9c3ef;color:#291b38;box-shadow:0 3px 15px #0002;}
.mt-journey-nav button:active {transform:scale(.96);}
.mt-journey-stage {animation:journeyEnter .38s ease both;}
.mt-journey-page .mt-journey-panel {border-radius:26px;padding:clamp(20px,4vw,36px);background:linear-gradient(145deg,#27202f,#18151d);border-color:#cfb1ee20;overflow:hidden;}
.mt-discovery-intro h2,.mt-duel-panel h2 {font-size:clamp(32px,5vw,48px);letter-spacing:-1px;margin:16px 0;}
.mt-reading-seeds {margin:24px 0;padding-left:12px;border-left:2px solid #b394cf60;}
.mt-reading-seeds>span {font-size:9px;color:#a89ab7;}
.mt-reading-seeds>div {display:flex;gap:7px;flex-wrap:wrap;margin-top:8px;}
.mt-reading-seeds>div>span {font-size:10px;max-width:100%;overflow-wrap:anywhere;background:#cdb0eb0b;border:1px solid #cdb0eb12;border-radius:8px;padding:6px 8px;color:#d0bedf;}
.mt-journey-page .mt-input {background:#151219;border-color:#ffffff12;border-radius:12px;min-height:44px;}
.mt-discovery-card {display:grid;grid-template-columns:150px minmax(0,1fr);gap:26px;align-items:center;margin:12px 0 18px;padding:20px;border-radius:20px;background:linear-gradient(135deg,#403049,#282033);border:1px solid #d4a9ed25;animation:journeyEnter .45s ease both;}
.mt-discovery-art {position:relative;min-width:0;}
.mt-discovery-art>img,.mt-discovery-art>.mt-journey-placeholder {display:block;width:100%;aspect-ratio:2/3;object-fit:cover;border-radius:10px;box-shadow:8px 12px 28px #0005;}
.mt-discovery-art>.mt-journey-placeholder {display:grid;}
.mt-discovery-art>span:last-child {position:absolute;bottom:9px;left:6px;right:6px;text-align:center;padding:6px 2px;background:#1c142ddd;backdrop-filter:blur(8px);border-radius:5px;color:#eadbf7;font-size:7px;letter-spacing:1px;}
.mt-discovery-copy {min-width:0;}
.mt-discovery-copy h3 {font:500 clamp(24px,4vw,34px)/1.1 Georgia,serif;overflow-wrap:anywhere;margin:14px 0;letter-spacing:-.5px;color:#f4eafc;}
.mt-discovery-copy p {font-size:12px;overflow-wrap:anywhere;}
.mt-discovery-actions {display:flex;gap:8px;flex-wrap:wrap;margin-top:20px;}
.mt-discovery-actions a {text-decoration:none;text-align:center;}
.mt-discovery-actions>* {font-size:11px;}
.mt-discovery-bottom {display:flex;align-items:center;justify-content:space-between;gap:14px;}
.mt-discovery-bottom>span {font:10px 'Space Mono',monospace;color:#aa96ba;}
.mt-journey-page .mt-discovery-credit {font-size:9px;color:#887b94;margin-top:18px;}
.mt-discovery-skeleton {min-height:240px;background:linear-gradient(105deg,#b69acf04 30%,#b69acf16 50%,#b69acf04 70%);background-size:250% 100%;border-radius:20px;display:grid;place-content:center;text-align:center;animation:journeyShimmer 1.8s ease infinite;}
.mt-discovery-skeleton span {display:block;width:34px;height:34px;margin:auto;border:1px solid #d2a9f233;border-top-color:#d2a9f2;border-radius:50%;animation:journeySpin 1s linear infinite;}
.mt-journey-empty button {display:block;margin-top:16px;}
.mt-duel-genre {display:flex;flex-wrap:wrap;gap:6px;margin:14px 0;}
.mt-duel-genre span {font-size:9px;letter-spacing:.3px;color:#c4acd8;padding:5px 9px;border-radius:30px;border:1px solid #d1b1ed25;}
.mt-duel-pair {position:relative;gap:20px;}
.mt-duel-card {position:relative;padding:0;border-radius:18px;overflow:hidden;background:#211b2a;box-shadow:0 15px 30px #0002;animation:journeyLeft .45s cubic-bezier(.2,.8,.2,1) both;}
.mt-duel-card:nth-child(2) {animation-name:journeyRight;}
.mt-duel-card>img,.mt-duel-card>.mt-journey-placeholder {border-radius:0;aspect-ratio:3/4;transition:transform .4s;}
.mt-duel-card:hover>img {transform:scale(1.04);}
.mt-duel-card:hover {border-color:#b18bd8;box-shadow:0 16px 35px #aa6be218;}
.mt-duel-card:active {transform:scale(.97);}
.mt-duel-card strong {padding:4px 12px 0;}
.mt-duel-card>span:last-child {padding:0 12px 14px;font-size:10px;}
.mt-duel-choice {position:absolute;top:10px;left:10px;border:1px solid #ffffff30;border-radius:50%;padding:7px;background:#1b1229a6;font:9px 'Space Mono',monospace;color:#efddfc;}
.mt-duel-vs {position:absolute;left:50%;top:40%;transform:translate(-50%,-50%) rotate(-9deg);background:#d8c0ed;border:4px solid #211b29;border-radius:50%;width:43px;height:43px;display:grid;place-items:center;font:italic 12px Georgia,serif;color:#34203e;pointer-events:none;}
.mt-duel-summary {display:flex;align-items:center;justify-content:space-between;gap:8px;border-top:1px solid #ffffff10;margin-top:22px;padding-top:14px;}
.mt-duel-summary>span {font-size:10px;color:#b7a7c5;}.mt-duel-summary button{font-size:10px;}
.mt-duel-history {padding-top:18px;margin-top:14px;border-top:1px solid #ffffff10;color:#bba9cc;font-size:12px;}
.mt-duel-history summary {cursor:pointer;display:flex;justify-content:space-between;gap:12px;}.mt-duel-history summary span{font-size:10px;color:#8d7d9e;}
.mt-duel-history ol {padding:0;list-style:none;max-height:300px;overflow:auto;}
.mt-duel-history li {padding:12px 0;border-bottom:1px solid #ffffff0a;overflow-wrap:anywhere;}.mt-duel-history li span {display:block;font-size:10px;color:#9d8cac;margin-top:6px;}
.mt-journey-page .mt-goal-card {background:linear-gradient(135deg,#ffffff04,transparent);transition:border-color .25s,transform .25s;animation:journeyEnter .4s both;}
.mt-journey-page .mt-goal-card:nth-child(2){animation-delay:.05s;}.mt-journey-page .mt-goal-card:nth-child(3){animation-delay:.1s;}.mt-journey-page .mt-goal-card:nth-child(4){animation-delay:.15s;}.mt-journey-page .mt-goal-card:nth-child(5){animation-delay:.2s;}
.mt-journey-page .mt-goal-card.selected {background:linear-gradient(140deg,#a577d51c,#33253d0a);}
.mt-journey-page .mt-goal-card progress {animation:journeyProgress .6s ease both;transform-origin:left;}
@keyframes journeyEnter {from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
@keyframes journeyLeft {from{opacity:0;transform:translateX(-14px) rotate(-3deg)}to{opacity:1;transform:none}}
@keyframes journeyRight {from{opacity:0;transform:translateX(14px) rotate(3deg)}to{opacity:1;transform:none}}
@keyframes journeyProgress {from{transform:scaleX(.1)}to{transform:scaleX(1)}}
@keyframes journeyOrbit {0%,100%{transform:rotate(-15deg) translateY(0)}50%{transform:rotate(15deg) translateY(12px)}}
@keyframes journeyShimmer {to{background-position:-150% 0}}
@keyframes journeySpin {to{transform:rotate(360deg)}}
@media(max-width:599px){.mt-discovery-card{grid-template-columns:90px minmax(0,1fr);gap:16px;padding:14px;align-items:start;}.mt-discovery-copy h3{font-size:23px;margin:10px 0;}.mt-discovery-copy .mt-section-eyebrow{font-size:8px;}.mt-discovery-copy p{font-size:10px;}.mt-discovery-actions{grid-column:1/-1;}.mt-discovery-actions>*{padding:10px;font-size:10px;}.mt-duel-pair{gap:12px;}.mt-duel-card strong{font-size:12px;}.mt-journey-nav button{font-size:11px;gap:5px;}.mt-journey-orbit{font-size:80px;right:4px;top:60px;}}
@media(prefers-reduced-motion:reduce){.mt-journey-page *,.mt-journey-page *:before{animation:none!important;transition:none!important;}}
/* Discovery: consistent reading scale and full-width actions. */
.mt-discovery-panel {font-family:Manrope,sans-serif;}
.mt-discovery-panel .mt-discovery-intro h2 {font:700 28px/1.22 Manrope,sans-serif;letter-spacing:-.8px;}
.mt-discovery-panel .mt-discovery-intro h2 em {font-style:normal;}
.mt-discovery-panel .mt-section-eyebrow {font-size:11px;line-height:1.5;letter-spacing:1px;}
.mt-discovery-panel p,.mt-discovery-panel label,.mt-discovery-types legend {font-size:13px;line-height:1.65;}
.mt-discovery-panel .mt-reading-seeds>span,.mt-discovery-panel .mt-reading-seeds>div>span {font-size:12px;line-height:1.5;}
.mt-discovery-types {padding:0;margin:24px 0 20px;border:0;min-width:0;}
.mt-discovery-types legend {color:#cbbfd6;margin-bottom:10px;}
.mt-discovery-types>div {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;padding:5px;background:#151219;border:1px solid #ffffff12;border-radius:14px;}
.mt-discovery-types button {min-height:42px;min-width:0;border:0;border-radius:10px;background:transparent;color:#afa0bc;font:600 12px Manrope,sans-serif;cursor:pointer;padding:7px 2px;transition:background .2s,color .2s;}
.mt-discovery-types button[aria-pressed=true] {background:#d9c3ee;color:#2c1d3a;box-shadow:0 2px 8px #0003;}
.mt-discovery-panel .mt-journey-fields {gap:12px;}
.mt-discovery-panel .mt-input {font:500 13px/1.5 Manrope,sans-serif;min-height:46px;padding:12px 9px;}
.mt-discovery-panel .mt-discovery-card {grid-template-columns:110px minmax(0,1fr);gap:18px;padding:18px;align-items:start;}
.mt-discovery-panel .mt-discovery-copy h3 {font:700 21px/1.35 Manrope,sans-serif;letter-spacing:-.4px;margin:10px 0 12px;}
.mt-discovery-panel .mt-discovery-copy p {font-size:13px;line-height:1.65;margin:0;color:#c3b6ce;}
.mt-discovery-panel .mt-discovery-copy .mt-section-eyebrow {font-size:11px;letter-spacing:.4px;text-transform:none;}
.mt-discovery-panel .mt-discovery-art>span:last-child {font:600 9px/1.4 Manrope,sans-serif;letter-spacing:0;bottom:8px;padding:6px 2px;}
.mt-discovery-panel .mt-discovery-actions {grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:10px;border-top:1px solid #ffffff12;padding-top:16px;margin:0;}
.mt-discovery-panel .mt-discovery-actions>* {display:flex;align-items:center;justify-content:center;min-height:46px;box-sizing:border-box;margin:0;padding:12px 8px;font:700 13px/1.4 Manrope,sans-serif;border-radius:12px;}
.mt-discovery-panel .mt-discovery-bottom {padding-top:2px;}
.mt-discovery-panel .mt-discovery-bottom button {min-height:44px;font:600 13px/1.4 Manrope,sans-serif;border-radius:12px;}
.mt-discovery-panel .mt-discovery-bottom>span {font:500 12px Manrope,sans-serif;}
.mt-discovery-panel .mt-discovery-credit {font-size:11px;line-height:1.7;color:#a393ae;}
@media(max-width:399px){.mt-discovery-panel .mt-discovery-card{grid-template-columns:82px minmax(0,1fr);gap:14px;padding:14px;}.mt-discovery-panel .mt-discovery-copy h3{font-size:19px;}.mt-discovery-panel .mt-discovery-intro h2{font-size:26px;}.mt-discovery-types button{font-size:11px;}}
@media(prefers-reduced-motion:reduce){.mt-discovery-types button{transition:none;}}
/* Profile atelier */
.mt-shop-entry {display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;padding:20px;margin:18px 0 0;background:linear-gradient(120deg,#35283f,#211b2b);border:1px solid #d8b5ef30;border-radius:20px;color:#f0e6f7;text-align:left;cursor:pointer;}
.mt-shop-entry small {display:block;font-size:9px;letter-spacing:1.5px;color:#bfa4d1;margin-bottom:8px;}.mt-shop-entry strong{font-size:15px;}.mt-shop-entry>b{font:600 18px Manrope,sans-serif;color:#e9cd93;white-space:nowrap;}
.mt-shop-page {width:100%;max-width:960px;box-sizing:border-box;margin:auto;padding:24px 22px 40px;}
@media(max-width:359px){.mt-shop-page{padding-left:16px;padding-right:16px;}}
.mt-shop-heading {display:flex;justify-content:space-between;align-items:center;gap:20px;margin:24px 0 12px;}
.mt-shop-heading h1 {font:500 clamp(26px,4vw,42px)/1.15 Georgia,serif;margin:12px 0;letter-spacing:-.6px;}.mt-shop-heading h1 em{color:#c5a3e3;font-weight:400;}
.mt-shop-wallet {padding:18px;border:1px solid #ddbc7833;border-radius:20px;background:#dfbf7a0b;flex-shrink:0;text-align:center;}.mt-shop-wallet small{display:block;font-size:8px;letter-spacing:1px;color:#bfae8a;}.mt-shop-wallet b{display:block;font-size:26px;margin-top:8px;color:#e7cc94;}
.mt-shop-explain,.mt-shop-notice {font-size:12px;line-height:1.7;color:#b9a9c6;}.mt-shop-notice{min-height:21px;color:#d6bcf0;}
.mt-shop-preview {position:relative;border-radius:24px;border:1px solid #ffffff20;padding:26px;background:radial-gradient(at top right,#66508088,transparent),#251e2f;margin-top:24px;scroll-margin-top:20px;overflow:hidden;}
.mt-shop-preview-person {display:flex;align-items:center;gap:24px;margin-top:24px;}.mt-shop-preview-person>div:last-child{min-width:0;}.mt-shop-preview-person strong{display:block;font-size:22px;overflow-wrap:anywhere;}.mt-shop-preview-person p{font-size:12px;color:#d3c6de;line-height:1.6;}
.mt-shop-avatar {width:78px;height:78px;padding:4px;border-radius:50%;flex-shrink:0;background:#b6a0cd;box-sizing:border-box;}.mt-shop-avatar>.mt-avatar{width:100%;height:100%;font-size:30px;}
.mt-shop-preview-actions {display:flex;gap:10px;flex-wrap:wrap;margin-top:14px;}.mt-shop-preview-actions button{font-size:12px;min-height:44px;}
.mt-shop-badge {display:inline-flex;padding:5px 9px;margin-top:9px;border:1px solid #ddbeff40;border-radius:20px;font-size:11px;color:#ecdbfc;background:#140e1c55;line-height:1.4;}
.mt-shop-filters {display:flex;gap:8px;margin:24px 0 18px;flex-wrap:wrap;}.mt-shop-filters button{padding:11px 18px;border-radius:30px;border:1px solid #ffffff19;background:#ffffff04;color:#ae9dbf;font:600 12px Manrope,sans-serif;cursor:pointer;}.mt-shop-filters button[aria-pressed=true]{background:#d4bae9;color:#2d1d3b;}
.mt-shop-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;}
.mt-shop-item {border:1px solid #ffffff16;background:#211b28;border-radius:20px;overflow:hidden;display:flex;flex-direction:column;transition:border-color .2s,transform .2s;}.mt-shop-item.previewing{border-color:#c1a0e3;}.mt-shop-item:hover{transform:translateY(-3px);}
.mt-shop-swatch {height:115px;display:grid;place-items:center;background:radial-gradient(circle,#66457f88,transparent),#282032;color:#e5d3f4;}.mt-shop-swatch>span{font:46px Georgia,serif;}
.mt-shop-item-body {padding:16px;display:flex;flex-direction:column;gap:10px;flex:1;}.mt-shop-item-body small{font-size:8px;letter-spacing:1px;color:#ad96bd;}.mt-shop-item-body h2{font:700 16px/1.3 Manrope,sans-serif;margin:0;overflow-wrap:anywhere;}.mt-shop-item-body p{font-size:12px;line-height:1.6;color:#ad9bbd;margin:0;flex:1;}.mt-shop-item-body>b{font-size:12px;color:#e3cc9e;}.mt-shop-item-body button{width:100%;font-size:12px;margin-top:4px;}
.mt-theme-dusk {background:radial-gradient(ellipse at 90% 0,#b782d366,transparent 65%),linear-gradient(135deg,#392546,#1c1829)!important;}
.mt-theme-ocean {background:radial-gradient(ellipse at 0 0,#478ca777,transparent 65%),linear-gradient(135deg,#183545,#161d31)!important;}
.mt-theme-rose {background:radial-gradient(ellipse at 100% 0,#bc6d8c77,transparent 65%),linear-gradient(135deg,#402638,#251924)!important;}
.mt-theme-gold {background:radial-gradient(ellipse at 0 0,#c3974e66,transparent 65%),linear-gradient(135deg,#3e3020,#231d24)!important;}
.mt-hero[class*="mt-theme-"]>.mt-hero-glow{display:none;}
.mt-frame-orbit .mt-shop-avatar,.mt-frame-orbit .mt-hero-avatar-ring {outline:2px solid #cdb4ea;outline-offset:5px;background:#9a79b8!important;box-shadow:0 0 0 9px #c9aff015;}
.mt-frame-frost .mt-shop-avatar,.mt-frame-frost .mt-hero-avatar-ring {background:linear-gradient(120deg,#e0f7ff,#73abc6,#fff)!important;box-shadow:0 0 24px #96d4f044;}
.mt-frame-prism .mt-shop-avatar,.mt-frame-prism .mt-hero-avatar-ring {background:conic-gradient(#b98ee2,#efb8d2,#90bdd7,#b98ee2)!important;box-shadow:0 0 18px #bc9aeb55;}
.mt-frame-crown .mt-shop-avatar,.mt-frame-crown .mt-hero-avatar-ring {background:linear-gradient(135deg,#fff0b9,#b78431,#f2d689)!important;outline:1px solid #d7b76b;outline-offset:4px;box-shadow:0 0 22px #e0bf6744;}
.mt-shop-swatch[class*="mt-frame-"]>span {display:grid;place-items:center;width:65px;height:65px;border-radius:50%;border:3px double #b6a0d6;}
.mt-shop-swatch.mt-frame-frost>span{border-color:#a4e4ff;color:#bceaff;}.mt-shop-swatch.mt-frame-prism>span{border-color:#e6a1dc;color:#e6b7ef;}.mt-shop-swatch.mt-frame-crown>span{border-color:#ddba71;color:#e9cc91;}
@media(max-width:700px){.mt-shop-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}.mt-shop-heading{align-items:flex-start;}.mt-shop-wallet{padding:12px;}.mt-shop-wallet b{font-size:20px;}.mt-shop-heading h1{font-size:26px;}.mt-shop-preview{padding:20px;}.mt-shop-preview-person{gap:18px;}.mt-shop-item-body{padding:13px;}.mt-shop-filters button{padding:10px 13px;}}
@media(prefers-reduced-motion:reduce){.mt-shop-item{transition:none;}}
/* Clean profile and account settings */
.mt-profile-page .mt-hero{border-radius:26px;overflow:hidden;}
.mt-profile-page .mt-hero-main{padding:28px 24px;gap:22px;}
.mt-profile-page .mt-hero-nick{font:700 26px/1.2 Manrope,sans-serif;letter-spacing:-.7px;}
.mt-profile-page .mt-hero-bio{font-size:13px;line-height:1.6;color:#c6bbd2;}
.mt-profile-page .mt-hero-since{font-size:11px;color:#b3a5bf;}
.mt-account-entry{display:flex;align-items:center;gap:10px;width:100%;padding:16px 22px;border:0;border-top:1px solid #ffffff12;background:#100b1860;color:#bca9cc;font:500 12px Manrope,sans-serif;text-align:left;cursor:pointer;position:relative;z-index:1;}
.mt-account-entry>span:last-child{margin-left:auto;}
.mt-account-settings{max-width:600px;margin:auto;padding:24px 0;}
.mt-account-settings header{padding:26px 6px 18px;}.mt-account-settings h1{font:700 28px/1.2 Manrope,sans-serif;margin:12px 0;}.mt-account-settings header p{color:#ae9cbe;font-size:13px;line-height:1.6;}
.mt-account-settings .mt-hero-acct{margin:0;padding:24px;border:1px solid #ffffff15;border-radius:24px;background:#231c2c;}
.mt-account-settings .mt-acct-email{font-size:14px;overflow-wrap:anywhere;margin:20px 0;}
.mt-account-settings .mt-form-row{gap:10px;flex-wrap:wrap;margin-top:20px;}
.mt-account-settings .mt-form-row button{min-height:46px;border-radius:12px;font-size:13px;}
.mt-account-settings #acct-delete{display:block;margin-top:24px;border-top:1px solid #ffffff13;padding-top:18px;width:100%;text-align:left;color:#c8849b;}
/* Collections and rarity */
.mt-shop-item{--rarity:#afa6bc;border-color:color-mix(in srgb,var(--rarity) 25%,transparent);}
.mt-shop-item[data-rarity=rare]{--rarity:#8bbfeb;}.mt-shop-item[data-rarity=epic]{--rarity:#c59aee;}.mt-shop-item[data-rarity=legendary]{--rarity:#e1bc75;}
.mt-shop-swatch{height:150px;position:relative;overflow:hidden;}
.mt-shop-swatch .mt-shop-art{width:100%;height:100%;object-fit:cover;display:block;}
.mt-shop-swatch.mt-frame-celestial .mt-shop-art{object-fit:contain;padding:12px;box-sizing:border-box;}
.mt-shop-swatch>.mt-rarity-tag{position:absolute;bottom:10px;left:10px;width:auto!important;height:auto!important;border:1px solid color-mix(in srgb,var(--rarity) 35%,transparent)!important;border-radius:20px!important;padding:5px 8px;background:#110d1de0;color:var(--rarity)!important;font:600 9px/1.2 Manrope,sans-serif!important;letter-spacing:.3px;}
.mt-shop-item-body>small{color:var(--rarity);}.mt-shop-item.previewing{border-color:var(--rarity);box-shadow:0 0 24px color-mix(in srgb,var(--rarity) 10%,transparent);}
.mt-shop-rarity-filter{display:flex;align-items:center;gap:14px;color:#bba8cb;font-size:12px;margin:0 0 22px;}.mt-shop-rarity-filter .mt-input{width:auto;min-width:170px;margin:0;font-size:12px;}
.mt-theme-celestial{background:linear-gradient(90deg,#14101ccc,#14101c26),url('assets/shop/celestial-library.webp') center/cover!important;}
.mt-theme-garden{background:linear-gradient(90deg,#17101dcc,#17101c22),url('assets/shop/lantern-garden.webp') center/cover!important;}
.mt-theme-aurora{background:repeating-linear-gradient(115deg,transparent 0 20%,#64d9c123 30%,#b095ed22 40%,transparent 60%),linear-gradient(135deg,#102b32,#241a38)!important;}
.mt-theme-ink{background:repeating-linear-gradient(135deg,#b7b4c508 0 1px,transparent 1px 13px),linear-gradient(135deg,#292b35,#16151d)!important;}
.mt-frame-celestial .mt-shop-avatar,.mt-frame-celestial .mt-hero-avatar-ring{position:relative;background:#b49bcb!important;overflow:visible!important;outline:0!important;box-shadow:none;}
.mt-frame-celestial .mt-shop-avatar:after,.mt-frame-celestial .mt-hero-avatar-ring:after{content:'';position:absolute;inset:-19%;background:url('assets/shop/celestial-frame.webp') center/contain no-repeat;pointer-events:none;z-index:2;}
.mt-frame-petals .mt-shop-avatar,.mt-frame-petals .mt-hero-avatar-ring{background:conic-gradient(#ffd1e2,#af6c98,#f0b4d6,#c37ea9,#ffd1e2)!important;outline:2px dotted #f2bad4;outline-offset:4px;box-shadow:0 0 22px #f2bad433;}
.mt-frame-eclipse .mt-shop-avatar,.mt-frame-eclipse .mt-hero-avatar-ring{background:#29202c!important;outline:2px solid #ebb97c;outline-offset:3px;box-shadow:4px 0 18px #ffb37b99,-5px 0 15px #8d75d255;}
.mt-frame-silver .mt-shop-avatar,.mt-frame-silver .mt-hero-avatar-ring{background:linear-gradient(135deg,#e1e4ec,#798094,#e1e4ec)!important;outline:1px solid #c5cad7;outline-offset:3px;}
.mt-shop-swatch.mt-frame-petals>span:first-child{border-color:#df9ebd;color:#f6cce1;}.mt-shop-swatch.mt-frame-eclipse>span:first-child{border-color:#e5a26e;box-shadow:0 0 22px #e59e6944;color:#e5b07a;}.mt-shop-swatch.mt-frame-silver>span:first-child{border-color:#bac4d5;color:#d5dce9;}
.mt-badge-sakura .mt-shop-badge{color:#f4c5dc;border-color:#dd9cbd55;}.mt-badge-moon .mt-shop-badge{color:#d7c7fb;}.mt-badge-phoenix .mt-shop-badge{color:#efc48f;border-color:#e8b87c55;}.mt-badge-quill .mt-shop-badge{color:#c4d8df;}
.mt-shop-preview-person{padding:7px 0;gap:28px;}
@media(max-width:359px){.mt-profile-page .mt-hero-main{padding:26px 18px;gap:18px;}.mt-profile-page .mt-hero-nick{font-size:23px;}.mt-shop-swatch{height:130px;}}
.mt-account-settings{margin:0 auto;width:100%;box-sizing:border-box;}
.mt-hero.mt-theme-celestial,.mt-shop-preview.mt-theme-celestial{background:linear-gradient(90deg,#14101ca8,#14101c99 65%,#14101c44),url('assets/shop/celestial-library.webp') center/cover!important;}
.mt-hero.mt-theme-garden,.mt-shop-preview.mt-theme-garden{background:linear-gradient(90deg,#17101ca8,#17101c99 65%,#17101c44),url('assets/shop/lantern-garden.webp') center/cover!important;}
.mt-hero[class*="mt-theme-"] .mt-hero-nick,.mt-shop-preview-person strong{text-shadow:0 2px 8px #0008;}
/* Reading companions collection */
.mt-theme-rain{background:linear-gradient(90deg,#0c1723d9,#101a23a0 65%,#101a2355),url('assets/shop/theme-rain.webp') center/cover!important;}
.mt-theme-forest{background:linear-gradient(90deg,#0b1820d9,#0b1820a0 65%,#0b182055),url('assets/shop/theme-forest.webp') center/cover!important;}
.mt-theme-slate{background:repeating-linear-gradient(135deg,#ffffff05 0 1px,transparent 1px 12px),linear-gradient(125deg,#343842,#1b1d25)!important;}
.mt-theme-coffee{background:radial-gradient(at top right,#b48b6155,transparent 70%),linear-gradient(130deg,#413029,#211b20)!important;}
.mt-theme-lavender{background:radial-gradient(ellipse at top right,#bca5df44,transparent 70%),linear-gradient(140deg,#42334f,#221e32)!important;}
.mt-theme-seafoam{background:radial-gradient(at top right,#8ab8b944,transparent 70%),linear-gradient(135deg,#233e44,#17272f)!important;}
.mt-frame-tide .mt-shop-avatar,.mt-frame-tide .mt-hero-avatar-ring,.mt-frame-vine .mt-shop-avatar,.mt-frame-vine .mt-hero-avatar-ring{position:relative;overflow:visible!important;background:#738e92!important;outline:0!important;box-shadow:none;}
.mt-frame-tide .mt-shop-avatar:after,.mt-frame-tide .mt-hero-avatar-ring:after,.mt-frame-vine .mt-shop-avatar:after,.mt-frame-vine .mt-hero-avatar-ring:after{content:'';position:absolute;inset:-18%;background:url('assets/shop/frame-tide.webp') center/contain no-repeat;pointer-events:none;z-index:2;}
.mt-frame-vine .mt-shop-avatar:after,.mt-frame-vine .mt-hero-avatar-ring:after{background-image:url('assets/shop/frame-vine.webp');}
.mt-shop-swatch[class*="mt-frame-"] .mt-shop-art,.mt-shop-swatch[class*="mt-badge-"] .mt-shop-art{object-fit:contain;padding:10px 12px 30px;box-sizing:border-box;}
.mt-shop-badge{align-items:center;gap:6px;max-width:100%;box-sizing:border-box;}
.mt-shop-badge>img{width:30px;height:30px;object-fit:contain;flex-shrink:0;}
.mt-shop-badge>span{min-width:0;overflow-wrap:anywhere;}
.mt-hero-id > .mt-shop-badge{margin-right:10px;margin-bottom:4px;vertical-align:middle;}
.mt-goal-reward{margin:14px 0;padding:10px 12px;border-radius:12px;background:#d6b47112;border:1px solid #d6b47130;color:#ead09b;font-size:12px;line-height:1.6;}
.mt-chapter-slider{margin:16px 0;padding:14px;border:1px solid #c4b2ed24;border-radius:16px;background:#c4b2ed08;}
.mt-chapter-slider-heading,.mt-chapter-slider-scale{display:flex;align-items:center;justify-content:space-between;gap:10px;}
.mt-chapter-slider-heading{color:#c9b9dc;font-size:12px;}
.mt-chapter-slider output{color:#ead09b;font-size:15px;font-weight:700;font-variant-numeric:tabular-nums;}
.mt-chapter-slider input[type=range]{display:block;width:100%;height:36px;margin:8px 0;accent-color:#c4b2ed;cursor:pointer;}
.mt-chapter-slider-scale{color:#a99bb8;font-size:10px;}
.mt-frame-chalk{--frame-color:#d1d8df;}
.mt-frame-copper{--frame-color:#c28b6c;}
.mt-frame-denim{--frame-color:#6e94bc;}
.mt-frame-lilac{--frame-color:#bc9ed6;}
.mt-frame-chalk .mt-shop-avatar,.mt-frame-chalk .mt-hero-avatar-ring,
.mt-frame-copper .mt-shop-avatar,.mt-frame-copper .mt-hero-avatar-ring,
.mt-frame-denim .mt-shop-avatar,.mt-frame-denim .mt-hero-avatar-ring,
.mt-frame-lilac .mt-shop-avatar,.mt-frame-lilac .mt-hero-avatar-ring{background:var(--frame-color)!important;outline:1px solid var(--frame-color);outline-offset:3px;}
.mt-shop-swatch.mt-frame-chalk>span:first-child,.mt-shop-swatch.mt-frame-copper>span:first-child,.mt-shop-swatch.mt-frame-denim>span:first-child,.mt-shop-swatch.mt-frame-lilac>span:first-child{border-color:var(--frame-color);color:var(--frame-color);}
.mt-badge-fox .mt-shop-badge{border-color:#b5a2e166;color:#e3d4ff;}
.mt-badge-dragon .mt-shop-badge{border-color:#85baa266;color:#c5ead7;}
/* Monthly memories, saved looks and coordinated collections */
.mt-month-recap{background:radial-gradient(at top right,#74558c40,transparent 65%),#211c29!important;}
.mt-month-recap h2{font:30px/1.2 Georgia,serif;margin:14px 0 20px;}
.mt-recap-month{display:flex;align-items:center;gap:16px;font-size:12px;color:#c7b8d7;}
.mt-recap-month .mt-input{min-width:0;max-width:220px;margin:0;}
.mt-recap-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:20px 0;}
.mt-recap-stats>div{padding:16px;border-radius:16px;background:#ffffff05;border:1px solid #ffffff0c;}
.mt-recap-stats strong{display:block;font:30px Georgia,serif;color:#ead09b;}
.mt-recap-stats span{display:block;margin-top:8px;font-size:11px;line-height:1.5;color:#c7b8d7;}
.mt-recap-highlight{padding:16px 0;border-top:1px solid #ffffff12;}
.mt-recap-highlight small{display:block;font-size:9px;letter-spacing:1px;color:#b8a0cf;margin-bottom:9px;}
.mt-recap-highlight strong{display:block;font-size:15px;line-height:1.5;overflow-wrap:anywhere;}
.mt-recap-highlight>span{display:block;font-size:12px;color:#ead09b;margin-top:8px;}
.mt-month-recap>.mt-primary-btn{width:100%;font-size:13px;}
.mt-outfits{margin-top:24px;padding-top:12px;border-top:1px solid #ffffff18;}
.mt-outfit-save{display:flex;gap:10px;flex-wrap:wrap;}
.mt-outfit-save .mt-input{flex:1;min-width:140px;width:auto;margin:0;}
.mt-outfit-save button{font-size:12px;}
.mt-outfit-list{display:grid;gap:8px;margin-top:14px;}
.mt-outfit-list>div{display:flex;gap:8px;align-items:center;}
.mt-outfit-list .mt-ghost-btn{flex:1;min-width:0;text-align:left;overflow-wrap:anywhere;}
.mt-shop-collections{margin:24px 0;padding:18px;border:1px solid #c4b2ed26;border-radius:20px;background:#241d2d;}
.mt-shop-collections>summary{cursor:pointer;font-size:15px;font-weight:700;}
.mt-shop-collections>summary span{font-size:11px;font-weight:400;color:#b6a2c9;margin-left:8px;}
.mt-collection-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:18px;}
.mt-collection-card{border:1px solid #ffffff14;border-radius:18px;overflow:hidden;background:#18151e;}
.mt-collection-art{height:100px;}
.mt-collection-card>div:last-child{padding:16px;}
.mt-collection-card h3{font-size:16px;margin:0 0 10px;}
.mt-collection-card p{font-size:12px;line-height:1.6;color:#b7a7c6;}
.mt-collection-card small{font-size:11px;color:#ead09b;}
.mt-collection-card button{width:100%;font-size:12px;}
@media(max-width:600px){.mt-collection-grid{grid-template-columns:1fr;}.mt-recap-stats>div{padding:13px;}}

@media(max-width:599px){.mt-journey-nav{grid-template-columns:repeat(2,minmax(0,1fr));}}
.mt-journey-stage .mt-achievement-page>.mt-header{padding-left:0;padding-right:0;}
.mt-journey-stage .mt-achievement-page>.mt-list{padding-left:0;padding-right:0;}
.mt-journey-nav [data-journey-section=halloween]{grid-column:1/-1;background:linear-gradient(100deg,#4e2d30,#30233c);color:#efc18b;border:1px solid #c98b5844;}
.mt-journey-nav [data-journey-section=halloween][aria-pressed=true]{background:linear-gradient(100deg,#e5ae74,#d3b1df);color:#2e1b29;}
/* Event archive */
.mt-archive-back,.mt-archive-link{width:100%;margin:0 0 16px;}
.mt-archive-link{margin:18px 0 0;}
.mt-event-list{display:grid;gap:14px;margin-top:20px;}
.mt-event-card{display:grid;gap:14px;padding:20px;border-radius:20px;border:1px solid #c98b5844;background:linear-gradient(135deg,#3a2530,#241d33);}
.mt-event-card-top{display:flex;align-items:center;gap:14px;min-width:0;}
.mt-event-card-top>div{min-width:0;}
.mt-event-icon{flex:none;display:grid;place-items:center;width:48px;height:48px;border-radius:14px;font-size:22px;color:#efc18b;background:#ffffff12;}
.mt-event-card small{display:block;font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#efc18b;opacity:.9;}
.mt-event-card h3{margin:2px 0 0;font-size:20px;line-height:1.2;overflow-wrap:anywhere;}
.mt-event-dates{margin:0;font-size:13.5px;color:var(--text-muted);}
.mt-event-stats{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 10px;}
.mt-event-stats strong{font-size:26px;line-height:1;}
.mt-event-stats span{font-size:13.5px;color:var(--text-muted);}
.mt-event-card progress{width:100%;height:8px;accent-color:#e5ae74;}
.mt-event-card .mt-primary-btn{width:100%;min-height:46px;}
.mt-event-empty{margin-top:20px;padding:26px 18px;text-align:center;border:1px dashed #ffffff2e;border-radius:18px;}
.mt-event-empty strong{display:block;margin-bottom:6px;font-size:16px;}
.mt-event-empty p{margin:0;font-size:13.5px;line-height:1.45;color:var(--text-muted);}
/* Goals: slots, picker and finished list */
.mt-goal-slots{display:flex;align-items:center;flex-wrap:wrap;gap:6px 12px;margin:18px 0 6px;font-size:13.5px;color:var(--text-muted);}
.mt-goal-slots strong{color:var(--text,#f3eef8);font-size:14px;}
.mt-goal-pips{display:inline-flex;gap:6px;}
.mt-goal-pip{width:22px;height:8px;border-radius:6px;background:#ffffff1f;}
.mt-goal-pip.on{background:#c4a5ef;}
.mt-goal-grid{margin-top:14px;}
.mt-goal-free{display:grid;gap:2px;margin-top:14px;padding:14px 16px;border-radius:16px;border:1px dashed #c4a5ef66;background:#c4a5ef0f;font-size:13.5px;}
.mt-goal-free strong{font-size:14.5px;}
.mt-goal-free span{color:var(--text-muted);}
.mt-goal-library{margin-top:18px;}
.mt-goal-groups{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0 4px;}
.mt-goal-groups button{display:inline-flex;align-items:center;gap:6px;min-height:38px;padding:0 14px;border-radius:999px;border:1px solid #ffffff22;background:transparent;color:inherit;font:600 13.5px/1 inherit;cursor:pointer;}
.mt-goal-groups button small{font-size:11px;opacity:.65;}
.mt-goal-groups button[aria-pressed=true]{background:#d9c3ef;color:#291b38;border-color:transparent;}
.mt-goal-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:14px;}
.mt-goal-card.compact{padding:16px;gap:0;}
.mt-goal-compact-top{display:flex;align-items:baseline;justify-content:space-between;gap:8px;flex-wrap:wrap;}
.mt-goal-compact-reward{font-size:12px;font-weight:700;color:#ead09b;white-space:nowrap;}
.mt-goal-card.compact h3{font-size:19px;margin:8px 0 0;}
.mt-goal-card.compact p{margin:6px 0 14px;font-size:13.5px;line-height:1.45;}
.mt-goal-card.compact button{width:100%;min-height:44px;}
.mt-goal-card.compact button[disabled]{opacity:.55;cursor:not-allowed;}
.mt-goal-done{margin-top:18px;}
.mt-goal-done summary{cursor:pointer;font-weight:700;font-size:15px;list-style-position:inside;}
.mt-goal-done ul{list-style:none;margin:14px 0 0;padding:0;display:grid;gap:10px;}
.mt-goal-done li{display:flex;gap:12px;align-items:flex-start;padding:12px 14px;border-radius:14px;background:#ffffff08;}
.mt-goal-done li>span{flex:none;color:#7fbf9b;font-weight:800;}
.mt-goal-done li strong{display:block;font-size:14.5px;}
.mt-goal-done li small{display:block;margin-top:2px;color:var(--text-muted);font-size:12.5px;line-height:1.4;}
@media(max-width:599px){.mt-goal-list{grid-template-columns:1fr;}}
.mt-goal-more{width:100%;margin-top:12px;min-height:46px;}
.mt-halloween{--h-gold:#edbd82;--h-mist:#b2cadb;min-width:0;padding:0 22px;}
.mt-halloween-hero{position:relative;overflow:hidden;isolation:isolate;border:1px solid #ce9b6440;border-radius:26px;padding:30px 24px;background:linear-gradient(90deg,#19131ce8,#19131c55),url('assets/shop/halloween-harvest.svg') center/cover;}
.mt-halloween-hero h2{font:clamp(46px,8vw,76px)/.96 Georgia,serif;margin:36px 0 20px;letter-spacing:-2px;}
.mt-halloween-hero em{color:var(--h-gold);}
.mt-halloween-hero p{font-size:12px;line-height:1.8;color:#d4c3bf;}
.mt-halloween-date{display:inline-block;border:1px solid #d9a36d40;border-radius:20px;padding:9px 12px;background:#1a1520bd;font-size:10px;color:#f0cba4;margin-top:15px;}
.mt-halloween-moon{position:absolute;right:32px;top:72px;font:56px Georgia,serif;color:#efd1a8;opacity:.6;animation:halloweenFloat 6s ease-in-out infinite;z-index:-1;}
@keyframes halloweenFloat{50%{transform:translateY(-9px) rotate(-8deg);}}
.mt-halloween-progress{padding:24px 20px;background:#251f2d;border:1px solid #b994c927;border-radius:20px;margin:16px 0 28px;}
.mt-halloween-progress>div{display:flex;gap:15px;align-items:center;}
.mt-halloween-progress strong{font:32px Georgia,serif;color:var(--h-gold);}
.mt-halloween-progress span,.mt-halloween-progress p{font-size:11px;color:#b9a9c5;line-height:1.6;}
.mt-halloween progress{appearance:none;width:100%;height:6px;border:0;border-radius:10px;overflow:hidden;background:#ffffff10;margin:16px 0 5px;}
.mt-halloween progress::-webkit-progress-bar{background:#ffffff10;border-radius:10px;}
.mt-halloween progress::-webkit-progress-value{background:linear-gradient(90deg,#bc8055,#edbe87);border-radius:10px;}
.mt-halloween progress::-moz-progress-bar{background:#edbe87;}
.mt-halloween-intro h3{font:28px Georgia,serif;margin-bottom:12px;}
.mt-halloween-intro p,.mt-halloween-rules p{font-size:12px;line-height:1.85;color:#bdafc6;}
.mt-halloween-preview-tabs{display:flex;gap:8px;margin:20px 0 12px;}
.mt-halloween-preview-tabs button{flex:1;min-width:0;padding:12px 7px;font-size:11px;}
.mt-halloween-preview-tabs [aria-pressed=true]{border-color:#e6b47b;color:#edbd82;background:#b9895220;}
.mt-halloween .mt-shop-preview{margin-bottom:12px;}
#halloween-wardrobe{width:100%;font-size:12px;margin-bottom:24px;}
.mt-halloween-quests{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;}
.mt-halloween-quest{border:1px solid #cead8625;border-radius:21px;background:linear-gradient(135deg,#302533,#201b26);padding:22px;min-width:0;}
.mt-halloween-quest-top{display:flex;align-items:center;gap:10px;flex-wrap:wrap;}
.mt-halloween-quest-top>span{font-size:25px;}.mt-halloween-quest-top small{font-size:9px;letter-spacing:1px;color:#bda5c4;}
.mt-halloween-quest-top b{margin-left:auto;font-size:10px;color:var(--h-gold);}
.mt-halloween-quest h3{font:24px/1.15 Georgia,serif;margin:20px 0 12px;}
.mt-halloween-quest p{font-size:12px;color:#bcafc7;line-height:1.8;min-height:44px;}
.mt-halloween-reward{display:flex;flex-direction:column;gap:8px;margin:15px 0;font-size:11px;line-height:1.5;}
.mt-halloween-reward span{color:#d3bee6;}.mt-halloween-reward strong{color:var(--h-gold);font-weight:500;}
.mt-halloween-quest button{width:100%;font-size:11px;}
.mt-halloween-quest.earned{border-color:#8bc3aa40;background:linear-gradient(135deg,#28322e,#211c29);}
.mt-halloween-quest.earned .mt-halloween-quest-top b{color:#a9d4bd;}
.mt-halloween-quest.finale{grid-column:1/-1;background:radial-gradient(ellipse at top right,#a2784730,transparent),#282030;border-color:#d9ad6d66;}
.mt-halloween-rules{margin:24px 0;padding:18px;border:1px solid #ffffff16;border-radius:16px;}.mt-halloween-rules summary{font-size:13px;cursor:pointer;color:#d8c6df;}
.mt-theme-h26-harvest{background:linear-gradient(90deg,#211722e8,#21172260),url('assets/shop/halloween-harvest.svg') center/cover!important;}
.mt-theme-h26-manor{background:linear-gradient(90deg,#131925e8,#13192560),url('assets/shop/halloween-manor.svg') center/cover!important;}
.mt-frame-h26-thorns .mt-shop-avatar,.mt-frame-h26-thorns .mt-hero-avatar-ring{background:conic-gradient(#edc184,#9e562f,#f8d59c,#98552e,#edc184)!important;outline:2px dashed #d5a069;outline-offset:5px;box-shadow:0 0 25px #e2944b44;}
.mt-frame-h26-spectral .mt-shop-avatar,.mt-frame-h26-spectral .mt-hero-avatar-ring{background:conic-gradient(#c6e5ec,#8990b8,#e9edff,#9cc9d9,#c6e5ec)!important;outline:2px solid #b4d9e5;outline-offset:5px;box-shadow:0 0 24px #b5dcec66,0 0 5px #e9e6ff;}
.mt-badge-h26-pumpkin .mt-shop-badge,.mt-badge-h26-keeper .mt-shop-badge{color:#f1c38e;border-color:#d5a16466;}.mt-badge-h26-bat .mt-shop-badge{color:#cbb6eb;border-color:#ac88dd66;}
@media(max-width:599px){.mt-halloween-quests{grid-template-columns:1fr;}.mt-halloween-hero{padding:26px 20px;}}

/* A shelf for discovering stories outside the personal library. */
.mt-catalog-page{width:100%;min-width:0;padding:28px 22px 120px;}
.mt-catalog-heading{padding:12px 0 24px;}
.mt-catalog-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0 0 22px;}
.mt-catalog-heading h1{font:36px/1.1 Georgia,serif;margin:10px 0 0;letter-spacing:-1px;}
.mt-catalog-heading .mt-section-eyebrow{font-size:8px;letter-spacing:1.5px;}
.mt-catalog-source{border:1px solid #ffffff18;border-radius:20px;padding:8px 12px;font-size:10px;color:#b5a9c2;background:#ffffff04;text-decoration:none;}
.mt-catalog-source span{color:#d2bfea;margin-left:7px;}
.mt-catalog-heading h1{font:42px/1.1 Georgia,serif;margin:18px 0;letter-spacing:-1px;}
.mt-catalog-heading h1 span{display:block;font-size:24px;color:var(--pink);font-style:italic;margin-top:12px;}
.mt-catalog-heading p,.mt-catalog-credit{color:var(--text-muted);font-size:12px;line-height:1.7;}
.mt-catalog-search{display:flex;gap:8px;}
.mt-catalog-search .mt-input{flex:1;min-width:0;margin:0;font-size:13px;}
.mt-catalog-search button{flex:0 0 auto;width:auto;font-size:12px;padding:12px 16px;}
.mt-catalog-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 10px;margin:18px 0;}
.mt-catalog-filters label,.mt-catalog-add label{font-size:11px;color:var(--text-muted);min-width:0;}
.mt-catalog-filters .mt-input,.mt-catalog-add .mt-input{width:100%;min-width:0;margin:7px 0 0;font-size:12px;}
.mt-catalog-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px 10px;margin:24px 0;}
.mt-catalog-card{position:relative;display:flex;flex-direction:column;align-items:stretch;min-width:0;padding:0;border:0;text-align:left;background:none;color:var(--text);cursor:pointer;transition:transform .2s;}
.mt-catalog-card:hover{transform:translateY(-4px);}
.mt-catalog-card>img,.mt-catalog-card>.mt-journey-placeholder{width:100%;aspect-ratio:2/3;object-fit:cover;border-radius:12px;background:#282230;}
.mt-catalog-card>strong{font-size:12px;line-height:1.5;margin:9px 0 5px;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow-wrap:anywhere;}
.mt-catalog-card>small{font-size:10px;color:var(--text-muted);}
.mt-catalog-score{position:absolute;top:6px;left:6px;background:#17121ee8;border:1px solid #ffffff20;border-radius:7px;padding:4px 6px;font-size:10px;color:#ecd6a3;}
.mt-catalog-owned{font-size:9px;color:#a9d5bc;line-height:1.4;margin-top:6px;}
.mt-catalog-message{padding:25px 16px;background:#292130;border-radius:16px;font-size:13px;line-height:1.7;}
.mt-catalog-message button{display:block;margin-top:12px;}
#catalog-more{width:100%;}
.mt-catalog-credit{margin-top:26px;font-size:10px;}
.mt-catalog-credit a{color:var(--pink);}
.mt-catalog-detail{margin-top:22px;}
.mt-catalog-detail-top{display:grid;grid-template-columns:100px minmax(0,1fr);gap:18px;align-items:start;}
.mt-catalog-detail-top>img,.mt-catalog-detail-top>.mt-journey-placeholder{width:100%;aspect-ratio:2/3;object-fit:cover;border-radius:14px;}
.mt-catalog-detail h1{font:26px/1.2 Georgia,serif;overflow-wrap:anywhere;margin:12px 0;}
.mt-catalog-detail-top p{font-size:11px;line-height:1.6;color:var(--text-muted);overflow-wrap:anywhere;}
.mt-catalog-detail-top strong{font-size:11px;color:#ecd6a3;}
.mt-catalog-facts,.mt-catalog-genres{display:flex;flex-wrap:wrap;gap:8px;margin:20px 0;}
.mt-catalog-facts span,.mt-catalog-genres span{padding:7px 10px;border:1px solid #ffffff16;border-radius:9px;font-size:11px;color:var(--text-muted);}
.mt-catalog-add{padding:20px;background:linear-gradient(130deg,#392c46,#241e2b);border:1px solid #c4b2ed30;border-radius:19px;margin:24px 0;}
.mt-catalog-add button{width:100%;margin-top:14px;font-size:13px;}
.mt-catalog-add p{font-size:13px;color:#a9d5bc;}
.mt-catalog-detail h2{font:26px Georgia,serif;}
.mt-catalog-description{white-space:pre-line;overflow-wrap:anywhere;line-height:1.85;font-size:14px;color:var(--text-muted);}
@media(min-width:850px){.mt-catalog-page{padding:30px 0 100px;}.mt-catalog-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:24px 16px;}.mt-catalog-filters{grid-template-columns:repeat(4,minmax(0,1fr));}.mt-catalog-detail-top{grid-template-columns:170px minmax(0,1fr);}.mt-catalog-detail h1{font-size:38px;}}
@media(max-width:359px){.mt-catalog-page{padding-left:16px;padding-right:16px;}.mt-catalog-card>strong{font-size:11px;}.mt-catalog-detail-top{grid-template-columns:80px minmax(0,1fr);gap:12px;}.mt-catalog-detail h1{font-size:23px;}}

/* Compact catalogue controls and cover-led shelf. */
.mt-catalog-heading h1{font-size:36px;margin:10px 0 0;}
.mt-catalog-controls{padding:0;margin:0;}
.mt-catalog-search{position:relative;border:1px solid #cdb5e625;border-radius:16px;background:#211c28;padding:5px;gap:5px;}
.mt-catalog-search .mt-input{border:0!important;background:transparent!important;box-shadow:none!important;padding:10px 12px;min-height:38px;font-size:13px;}
.mt-catalog-search:focus-within{border-color:#c8afe6;box-shadow:0 0 0 3px #b996db12;}
.mt-catalog-search button{width:40px;height:40px;min-height:40px;display:grid;place-items:center;padding:10px;border-radius:11px;}
.mt-catalog-search svg{width:20px;height:20px;}
.mt-catalog-toolbar{display:flex;gap:10px;margin:12px 0 0;align-items:stretch;}
.mt-catalog-sort-label{display:flex;align-items:center;gap:9px;min-width:0;flex:1;border:1px solid #ffffff14;border-radius:13px;background:#211c26;padding:0 12px;}
.mt-catalog-sort-label>span{font-size:20px;color:#c6b4d5;}
.mt-catalog-sort-label .mt-input{margin:0;padding:12px 0;width:100%;min-width:0;border:0;background:transparent;font-size:12px;box-shadow:none;}
.mt-catalog-filter-toggle{display:flex;align-items:center;justify-content:center;gap:8px;padding:11px 14px;border:1px solid #c7a7e044;border-radius:13px;background:#362a41;color:#e4cdf8;font:600 12px Manrope,sans-serif;cursor:pointer;}
.mt-catalog-filter-toggle[aria-expanded=true]{background:#d3bce9;color:#302039;}
.mt-catalog-filter-toggle svg{width:17px;height:17px;}
.mt-catalog-filter-toggle b{display:grid;place-items:center;min-width:18px;height:18px;border-radius:50%;background:#c8ace8;color:#2a1c35;font-size:10px;}
#catalog-filter-panel{padding:18px;margin-top:12px;border:1px solid #c9afe32b;border-radius:17px;background:linear-gradient(140deg,#2c2234,#201b27);}
#catalog-filter-panel[hidden]{display:none;}
.mt-catalog-filter-heading{display:flex;justify-content:space-between;gap:8px;align-items:center;}
.mt-catalog-filter-heading strong{font-size:12px;font-weight:600;}
#catalog-reset{font-size:11px;color:#ceb3e7;background:none;border:0;padding:8px;cursor:pointer;}
.mt-catalog-filters{margin:14px 0;gap:12px;}
.mt-catalog-filters label:last-child{grid-column:1/-1;}
#catalog-filter-panel p{font-size:10px;line-height:1.7;color:#b8a8c7;margin-bottom:14px;}
#catalog-filters-done{width:100%;font-size:12px;padding:11px;}
.mt-catalog-chips{display:flex;flex-wrap:wrap;gap:7px;margin:14px 0 0;}
.mt-catalog-chips button{border:1px solid #cbb0e129;border-radius:20px;background:#b390d110;color:#cdb8df;font-size:10px;padding:7px 10px;cursor:pointer;}
.mt-catalog-chips button>span:first-child{margin-left:6px;color:#e8d5fa;font-size:13px;}
.mt-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}
.mt-catalog-results-heading{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin:25px 0 14px;}
.mt-catalog-results-heading h2{font:19px/1.25 Georgia,serif;margin:0;}
.mt-catalog-results-heading>span{font-size:9px;color:#998ca8;white-space:nowrap;}
.mt-catalog-grid{gap:20px 10px;margin:0 0 24px;}
.mt-catalog-cover{position:relative;display:block;isolation:isolate;aspect-ratio:2/3;width:100%;overflow:hidden;border-radius:13px;background:linear-gradient(140deg,#3a2d47,#221b2b);box-shadow:0 5px 16px #0003;}
.mt-catalog-cover>img,.mt-catalog-cover>.mt-journey-placeholder{display:block;width:100%;height:100%;object-fit:cover;transition:transform .35s ease;}
.mt-catalog-cover>.mt-journey-placeholder{display:grid;place-items:center;color:#bfa3d5;font:28px Georgia,serif;background:radial-gradient(at top right,#8868a244,transparent);}
.mt-catalog-cover-shade{position:absolute;inset:45% 0 0;background:linear-gradient(transparent,#0c0b1270);pointer-events:none;}
.mt-catalog-cover-meta{position:absolute;bottom:6px;left:5px;right:5px;display:flex;gap:3px;justify-content:space-between;align-items:center;}
.mt-catalog-cover-meta>span{display:block;padding:4px 5px;border-radius:6px;background:#110e19e8;font-size:9px;line-height:1.2;white-space:nowrap;color:#eee5f5;}
.mt-catalog-cover-meta .mt-catalog-score{position:static;border:0;color:#a9d5bc;font-size:9px;font-weight:700;}
.mt-catalog-cover .mt-catalog-owned{position:absolute;top:7px;right:7px;display:grid;place-items:center;margin:0;width:23px;height:23px;border-radius:8px;border:1px solid #d1f1db55;background:#193c30ed;color:#c7ead7;font-size:13px;}
.mt-catalog-card>strong{min-height:3em;margin:8px 0 0;font-size:12px;font-weight:500;line-height:1.5;color:#e3dce9;}
.mt-catalog-card .mt-catalog-saved-label{font-size:9px;color:#a9c9b8;margin-top:3px;}
.mt-catalog-card:focus-visible{outline:2px solid #d1b5ed;outline-offset:5px;border-radius:12px;}
@media(hover:hover){.mt-catalog-card:hover .mt-catalog-cover>img{transform:scale(1.045);}}
.mt-catalog-skeleton>span{display:block;aspect-ratio:2/3;border-radius:13px;background:#302737;}
.mt-catalog-skeleton i{display:block;height:9px;background:#302737;border-radius:5px;margin-top:10px;width:95%;}
.mt-catalog-skeleton i:last-child{width:65%;margin-top:6px;}
.mt-catalog-skeleton{animation:catalogPulse 1.4s ease-in-out infinite alternate;}
@keyframes catalogPulse{to{opacity:.4;}}
.mt-catalog-message>strong{display:block;font:23px Georgia,serif;margin-bottom:12px;}
.mt-catalog-message p{color:#b9abc6;font-size:12px;}
.mt-catalog-detail-top{padding:20px;border:1px solid #c5a6e324;border-radius:22px;background:radial-gradient(at top right,#80609424,transparent),#211b28;grid-template-columns:90px minmax(0,1fr);gap:16px;}
.mt-catalog-detail h1{font-size:25px;}
@media(min-width:850px){.mt-catalog-filters{grid-template-columns:repeat(3,minmax(0,1fr));}.mt-catalog-filters label:last-child{grid-column:auto;}.mt-catalog-controls{max-width:700px;}.mt-catalog-cover-meta>span,.mt-catalog-cover-meta .mt-catalog-score{font-size:11px;}.mt-catalog-detail-top{grid-template-columns:170px minmax(0,1fr);padding:28px;}.mt-catalog-detail h1{font-size:36px;}}
@media(max-width:359px){.mt-catalog-page{padding-left:14px;padding-right:14px;}.mt-catalog-grid{gap:17px 8px;}.mt-catalog-cover-meta{left:3px;right:3px;gap:2px;}.mt-catalog-cover-meta>span,.mt-catalog-cover-meta .mt-catalog-score{font-size:8px;padding:4px 3px;}.mt-catalog-detail-top{padding:14px;grid-template-columns:74px minmax(0,1fr);}.mt-catalog-detail h1{font-size:22px;}}
@media(prefers-reduced-motion:reduce){.mt-catalog-skeleton{animation:none;}.mt-catalog-card,.mt-catalog-cover>img{transition:none;}}
.mt-reduce-motion .mt-catalog-skeleton{animation:none;}

/* Chapter impressions */
.mt-chapter-journal,.mt-chapter-sheet{--chapter-accent:#c6b2ee;--chapter-soft:#c6b2ee14;}
.mt-halloween-site .mt-chapter-journal,.mt-halloween-site .mt-chapter-sheet{--chapter-accent:#e9bc7e;--chapter-soft:#e9bc7e14;}
.mt-chapter-journal #chapter-form{padding:18px;border:1px solid #ffffff12;border-radius:20px;background:#ffffff03;}
.mt-chapter-journal #chapter-form>label{font-size:12px;line-height:1.5;}
.mt-chapter-slider{padding:20px 16px;background:radial-gradient(ellipse at top right,var(--chapter-soft),transparent 80%),#ffffff03;border-color:#ffffff12;border-radius:18px;}
.mt-chapter-slider-heading{gap:12px;color:#d5ccdE;font-size:12px;}
.mt-chapter-slider output{font-size:26px;line-height:1.2;letter-spacing:-1px;color:var(--chapter-accent);}
.mt-chapter-slider input[type=range]{appearance:none;-webkit-appearance:none;height:8px;margin:25px 0 20px;border-radius:20px;background:linear-gradient(to right,var(--chapter-accent) var(--chapter-fill,0%),#ffffff16 var(--chapter-fill,0%));}
.mt-chapter-slider input[type=range]::-webkit-slider-thumb{appearance:none;width:25px;height:25px;border-radius:50%;background:var(--chapter-accent);border:5px solid #25212e;box-shadow:0 0 0 1px var(--chapter-accent),0 3px 12px #0005;}
.mt-chapter-slider input[type=range]::-moz-range-thumb{width:15px;height:15px;border-radius:50%;background:var(--chapter-accent);border:5px solid #25212e;box-shadow:0 0 0 1px var(--chapter-accent);}
/* Exact chapter rating: tenths via typing or ±0.1 */
.mt-chapter-fine{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:10px;align-items:center;margin:2px 0 14px;}
.mt-chapter-fine .mt-ghost-btn{min-height:44px;padding:0 14px;white-space:nowrap;font-variant-numeric:tabular-nums;}
.mt-chapter-fine .mt-input{min-height:44px;width:100%;text-align:center;font-size:18px;font-weight:700;font-variant-numeric:tabular-nums;}
.mt-chapter-slider input:focus-visible{outline:2px solid var(--chapter-accent);outline-offset:9px;}
.mt-chapter-slider .mt-chapter-mood{font-size:13px;margin:0 0 14px;color:var(--chapter-accent);line-height:1.5;}
.mt-chapter-slider-scale{font-size:10px;letter-spacing:.2px;}
.mt-journal-list{display:grid;gap:14px;margin-top:24px;}
.mt-journal-list article{min-width:0;margin:0;padding:18px;border:1px solid #ffffff12;border-radius:20px;background:linear-gradient(135deg,var(--chapter-soft),#ffffff02 75%);}
.mt-journal-list header{align-items:center;padding-bottom:14px;border-bottom:1px solid #ffffff0c;}
.mt-journal-list header b{font-size:14px;font-weight:600;}
.mt-journal-list time{font-size:10px;white-space:nowrap;}
.mt-journal-list p{font-size:13px;line-height:1.7;}
.mt-journal-list p:empty{display:none;}
.mt-journal-list [data-journal-delete]{display:block;margin:14px 0 0 auto;padding:6px 0;font-size:10px;min-height:36px;opacity:.65;}
.mt-journal-list [data-journal-delete]:hover{opacity:1;color:#f2a8ac;}
@media(max-width:359px){.mt-chapter-journal #chapter-form,.mt-journal-list article{padding:13px;}}
/* Reading workspace: compact navigation and a connected chapter diary. */
.mt-reading-card {flex:0 0 94%;min-width:0;overflow:hidden;border:1px solid #c4b2ed26;border-radius:20px;background:#232029;}
.mt-reading-card:only-child {flex-basis:100%;}
.mt-reading-card .mt-continue-card {width:100%;border:0;border-radius:0;box-sizing:border-box;}
.mt-reading-actions,.mt-reading-panel-actions {display:flex;flex-wrap:wrap;gap:8px;}
.mt-reading-actions {padding:0 14px 14px;}
.mt-reading-panel {margin:0;min-width:0;padding:20px;border:1px solid #ffffff18;border-radius:20px;background:linear-gradient(135deg,#a68ac516,#ffffff03);}
.mt-reading-panel h3 {margin:8px 0;font-size:20px;}
.mt-reading-panel>div:first-child {display:grid;gap:7px;margin-bottom:14px;}
.mt-reading-panel>div:first-child strong {font-size:22px;}
.mt-reading-panel>div:first-child small {color:#aaa2b7;font-size:12px;}
.mt-reading-panel .mt-reading-actions {padding:0;}
.mt-reading-panel p,.mt-chapter-chart p {color:#aaa2b7;font-size:12px;line-height:1.6;}
.mt-reading-panel details {margin-top:16px;}
.mt-reading-panel summary,.mt-chapter-chart summary {cursor:pointer;font-size:12px;padding:8px 0;}
#reading-form {display:grid;gap:12px;margin-top:12px;}
#reading-form label,.mt-journal-toolbar label {display:grid;gap:7px;font-size:12px;min-width:0;}
.mt-journal-toolbar {display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:24px 0 16px;}
.mt-journal-toolbar .mt-input {width:100%;box-sizing:border-box;min-width:0;}
.mt-chapter-chart {margin:22px 0;padding:16px;border:1px solid #ffffff15;border-radius:18px;background:#ffffff03;}
.mt-chapter-chart h3 {font-size:15px;margin:0;}
.mt-chart-scroll svg {display:block;width:100%;height:auto;}
.mt-chart-scroll text {fill:#aca4ba;font:10px sans-serif;}
.mt-chart-grid {stroke:#ffffff14;stroke-dasharray:3 4;}
.mt-chart-line {stroke:#c4b2ed;stroke-width:2;fill:none;}
.mt-chart-dot {fill:#dfd2fa;stroke:#30263c;stroke-width:2;}
.mt-chart-scroll a:hover .mt-chart-dot,.mt-chart-scroll a:focus .mt-chart-dot {stroke:#fff;stroke-width:3;}
.mt-chart-points {display:flex;flex-wrap:wrap;gap:8px;max-height:240px;overflow:auto;padding:8px 0;}
.mt-journal-list article {scroll-margin-top:24px;}
.mt-journal-list article:focus {outline:2px solid #c4b2ed;outline-offset:3px;}
.mt-rating-confirm {display:flex;align-items:flex-start;gap:10px;padding:14px;margin:16px 0;border:1px solid #c4b2ed44;border-radius:12px;font-size:13px;line-height:1.6;}
.mt-rating-confirm input {margin-top:4px;accent-color:#c4b2ed;width:18px;height:18px;flex-shrink:0;}
#rating-confirm-error,#chapter-error,#reading-error {font-size:12px;color:#efb3b3;}
.mt-discovery-feedback {display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 18px;}
.mt-discovery-feedback button {flex:1 1 110px;font-size:12px;}
.mt-feedback-notice {padding:12px;margin:12px 0;font-size:12px;line-height:1.6;border-radius:12px;background:#ffffff06;color:#bcb3c8;}
.mt-feedback-notice button {display:block;margin-top:8px;}
.mt-journey-page .mt-journey-heading {padding:12px 4px 18px;}
.mt-journey-page .mt-journey-heading h1 {font-size:32px;line-height:1.2;letter-spacing:-.8px;margin:8px 0;}
.mt-journey-heading h1 span {display:inline;font:inherit;color:#c4b2ed;}
.mt-journey-page .mt-journey-heading p {margin:6px 0;font-size:12px;}
.mt-journey-page .mt-journey-orbit {display:none;}
.mt-journey-page .mt-journey-nav {display:flex;overflow-x:auto;gap:4px;border-radius:16px;scrollbar-width:thin;}
.mt-journey-page .mt-journey-nav button {flex:0 0 auto;white-space:nowrap;padding:12px;font-size:12px;min-height:44px;}
.mt-journey-page .mt-journey-nav small {display:none;}
@media(min-width:700px) {.mt-reading-card {flex-basis:65%;}.mt-journey-page .mt-journey-nav button {flex:1;}}

/* Shared page gutters; nested sections inherit the page's content edges. */
.mt-shell {--page-gutter:22px;min-width:0;}
.mt-shell .mt-header,
.mt-shell .mt-featured-slot,
.mt-shell .mt-library-controls,
.mt-shell .mt-list,
.mt-shell .mt-detail-head,
.mt-shell .mt-detail-status,
.mt-shell .mt-detail-body,
.mt-shell .mt-journey-page,
.mt-shell .mt-catalog-page,
.mt-shell .mt-shop-page,
.mt-shell .mt-settings-page.mt-account-settings {
  padding-left:var(--page-gutter);
  padding-right:var(--page-gutter);
  min-width:0;
}
.mt-shell .mt-journey-page,
.mt-shell .mt-catalog-page,
.mt-shell .mt-shop-page,
.mt-shell .mt-settings-page.mt-account-settings {width:100%;max-width:none;box-sizing:border-box;}
.mt-shell .mt-profile-page .mt-hero,
.mt-shell .mt-season-header {margin-left:var(--page-gutter);margin-right:var(--page-gutter);}
.mt-shell .mt-journey-page .mt-achievement-page .mt-header,
.mt-shell .mt-journey-page .mt-achievement-page .mt-list,
.mt-shell .mt-journey-page .mt-halloween {padding-left:0;padding-right:0;}
.mt-journey-stage,.mt-detail-body>* {min-width:0;}
.mt-shell .mt-journey-page .mt-journey-heading {padding-left:0;padding-right:0;}
@media(max-width:359px) {.mt-shell {--page-gutter:16px;}}

/* Personal shelves, reading passes and showcase. */
.mt-library-tools {display:grid;gap:14px;padding:16px;border:1px solid #c4b2ed24;border-radius:20px;background:linear-gradient(135deg,#c4b2ed0c,#ffffff02);}
.mt-tools-row {display:flex;flex-wrap:wrap;align-items:end;gap:8px;}
.mt-tools-row>label {flex:1 1 140px;min-width:0;}
.mt-tools-row>input {flex:1 1 140px;width:0;min-width:100px;}
.mt-library-tools label,.mt-compare-pickers label,.mt-showcase-editor label {display:grid;gap:7px;font-size:12px;color:var(--text-muted);min-width:0;}
.mt-library-tools .mt-input,.mt-compare-page .mt-input,.mt-showcase-editor .mt-input {width:100%;min-width:0;margin:0;}
.mt-library-tools summary,.mt-title-tools summary,.mt-showcase-editor summary {cursor:pointer;font-size:13px;line-height:1.5;padding:5px 0;}
.mt-library-tools details>form {margin:12px 0;}
.mt-collection-manage {display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:6px;margin:10px 0;}
.mt-collection-manage button {font-size:11px;padding:9px;}
.mt-bulk-panel {display:grid;gap:10px;border:1px solid #c4b2ed40;background:#c4b2ed0b;border-radius:14px;padding:14px;}
.mt-grid-card .mt-select-title {width:100%;min-height:36px;border-radius:9px;margin-bottom:8px;border:1px solid #c4b2ed50;color:var(--text-primary);background:#25212d;font:600 10px Manrope,sans-serif;cursor:pointer;}
.mt-grid-card .mt-select-title[aria-pressed=true] {background:#c4b2ed;color:#21162d;}
.mt-trash article {border-top:1px solid #ffffff15;padding:14px 0;display:grid;gap:9px;}
.mt-trash strong {font-size:13px;overflow-wrap:anywhere;}
.mt-trash small {color:var(--text-muted);font-size:10px;}
.mt-extras-undo {margin:12px var(--page-gutter);padding:12px;display:flex;align-items:center;gap:8px;flex-wrap:wrap;border:1px solid #c4b2ed55;border-radius:14px;background:#292133;font-size:12px;}
.mt-extras-undo span {flex:1;min-width:120px;}
.mt-title-collections {display:grid;gap:12px;margin:16px 0;}
.mt-title-collections label {font-size:13px;overflow-wrap:anywhere;}
.mt-title-collections input {accent-color:#c4b2ed;}
.mt-title-tools p,.mt-reading-history p {font-size:12px;line-height:1.7;color:var(--text-muted);}
.mt-reading-history {margin-top:22px;}
.mt-reading-history h3 {font-size:15px;}
.mt-reading-history>details {padding:12px 0;border-top:1px solid #ffffff15;}
.mt-reading-history article {padding:12px;margin:10px 0;border-radius:12px;background:#ffffff05;font-size:12px;overflow-wrap:anywhere;}
.mt-compare-page {padding:24px var(--page-gutter) 120px;min-width:0;}
.mt-compare-page h1 {font:32px/1.2 Georgia,serif;}
.mt-compare-pickers,.mt-compare-covers {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:24px 0;}
.mt-compare-covers article {min-width:0;padding:12px;border:1px solid #c4b2ed25;border-radius:16px;background:#ffffff04;}
.mt-compare-covers img,.mt-compare-covers .mt-journey-placeholder {width:100%;aspect-ratio:2/3;object-fit:cover;border-radius:10px;display:grid;place-items:center;}
.mt-compare-covers h2 {font-size:14px;overflow-wrap:anywhere;line-height:1.5;}
.mt-compare-covers strong {font-size:16px;color:#d3c2ef;}
.mt-compare-covers p {font-size:10px;line-height:1.7;color:var(--text-muted);overflow-wrap:anywhere;}
.mt-compare-table {border:1px solid #ffffff18;border-radius:14px;overflow:hidden;}
.mt-compare-row {display:grid;grid-template-columns:minmax(0,1.3fr) repeat(2,minmax(0,1fr));gap:8px;padding:14px 10px;font-size:11px;align-items:center;border-bottom:1px solid #ffffff0d;overflow-wrap:anywhere;}
.mt-compare-row>:not(:first-child) {text-align:center;}
.mt-compare-row:first-child {background:#c4b2ed12;color:#c4b2ed;}
.mt-showcase h2 {font:25px/1.2 Georgia,serif;margin:12px 0 20px;}
.mt-showcase p {font-size:12px;line-height:1.7;color:var(--text-muted);}
.mt-showcase-books {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;}
.mt-showcase-books button {min-width:0;background:none;border:0;color:var(--text-primary);padding:0;text-align:left;cursor:pointer;}
.mt-showcase-books img,.mt-showcase-books .mt-journey-placeholder {width:100%;aspect-ratio:2/3;display:grid;place-items:center;object-fit:cover;border-radius:5px 12px 12px 5px;}
.mt-showcase-books strong {display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:10px;line-height:1.5;margin-top:9px;overflow-wrap:anywhere;}
.mt-showcase-treasures {display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:10px;margin-top:16px;}
.mt-showcase-treasures article {border:1px solid #d7c2ed25;padding:14px;border-radius:14px;background:linear-gradient(145deg,#c4b2ed10,transparent);display:grid;gap:10px;}
.mt-showcase-treasures small {font-size:8px;color:var(--text-muted);letter-spacing:1px;}
.mt-showcase-treasures strong {font-size:12px;overflow-wrap:anywhere;}
.mt-showcase-treasures img {width:56px;height:56px;object-fit:contain;}
.mt-showcase-editor {margin:20px 0;padding:16px;border:1px solid #c4b2ed30;border-radius:16px;}
.mt-showcase-editor label {margin:14px 0;}

/* Quieter library and focused editing. */
.mt-library-tools {position:relative;padding:0;border:0;background:none;gap:10px;}
.mt-shelf-strip {display:flex;gap:7px;overflow:auto;padding:3px 0 8px;scrollbar-width:thin;}
.mt-shelf-strip button {flex:0 0 auto;white-space:nowrap;font-size:12px;border-radius:24px;}
.mt-shelf-strip button[aria-pressed=true] {background:#c4b2ed;color:#23192e;border-color:transparent;}
.mt-library-tools .mt-shelf-select {display:none;}
.mt-library-controls .mt-subrow-actions {flex-wrap:wrap;justify-content:flex-end;gap:10px;}
.mt-library-controls .mt-sort-group {margin-right:auto;flex:1 1 175px;}
.mt-library-controls .mt-sort-btn {padding-left:7px;padding-right:7px;}
.mt-library-utility {display:flex;align-items:center;gap:8px;position:relative;flex:0 0 auto;}
.mt-library-utility #toggle-search {width:42px;height:42px;flex:0 0 42px;}
.mt-library-menu {position:relative;flex:0 0 auto;}
.mt-library-menu>summary {position:static;display:flex;align-items:center;justify-content:center;gap:7px;min-height:42px;padding:0 13px;list-style:none;cursor:pointer;border:1px solid #c4b2ed40;border-radius:14px;background:linear-gradient(140deg,#c4b2ed20,#ffffff04);color:var(--text-primary);font:700 12px Manrope,sans-serif;transition:background .2s,border-color .2s;}
.mt-library-menu>summary::-webkit-details-marker {display:none;}
.mt-library-menu>summary svg {width:20px;height:20px;flex:0 0 20px;color:#c4b2ed;}
.mt-library-menu[open]>summary {background:#c4b2ed25;border-color:#c4b2ed88;}
.mt-library-menu-content {position:absolute;right:0;top:calc(100% + 10px);z-index:35;width:min(350px,calc(100vw - 32px));max-height:65dvh;overflow:auto;padding:18px;border:1px solid #c4b2ed40;border-radius:20px;background:#211d29;box-shadow:0 18px 55px #0009;isolation:isolate;}
.mt-library-menu-content>.mt-section-eyebrow {display:block;margin:0 0 14px;}
.mt-menu-actions {display:grid;gap:8px;margin-bottom:14px;}
.mt-menu-actions button {text-align:left;padding:13px 14px;border-radius:12px;}
.mt-library-menu-content>details {border-top:1px solid #ffffff14;padding:12px 0;}
.mt-library-menu-content>details>summary {cursor:pointer;font-size:12px;font-weight:600;padding:5px 0;line-height:1.5;}
.mt-library-menu-content .mt-input {min-width:0;width:100%;}
.mt-library-menu-content form {margin:12px 0;}
.mt-library-menu-content .mt-continue-strip {display:grid;gap:10px;padding-top:12px;}
.mt-library-menu-content .mt-continue-card {min-height:110px;padding:12px;gap:12px;}
.mt-library-menu-content .mt-continue-card img,.mt-library-menu-content .mt-continue-placeholder {width:54px;height:80px;flex-basis:54px;}
.mt-library-menu-content .mt-continue-card strong {font-size:12px;}
.mt-library-menu-content .mt-continue-copy {margin:0;}
.mt-library-menu-content .mt-reading-actions button,.mt-library-menu-content .mt-reading-actions a {font-size:10px;}
.mt-collection-filter-hint {font-size:10px;line-height:1.5;color:var(--text-muted);margin:0;}
.mt-library-menu>summary:focus-visible {outline:2px solid var(--pink);outline-offset:3px;}
.mt-bulk-dock {position:fixed;bottom:calc(84px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:calc(100% - 32px);max-width:550px;z-index:28;display:flex;align-items:start;gap:8px;padding:10px;border:1px solid #c4b2ed77;border-radius:18px;background:#25202ef5;box-shadow:0 8px 30px #0008;backdrop-filter:blur(16px);}
.mt-bulk-dock>details {flex:1;min-width:0;}
.mt-bulk-dock summary {font-weight:700;padding:10px;cursor:pointer;}
.mt-bulk-panel {max-height:48dvh;overflow:auto;border:0;background:none;padding:10px 3px 3px;}
.mt-grid-card[data-bulk-selected=true] .mt-cover {outline:3px solid #c4b2ed;outline-offset:3px;}
.mt-grid-card[data-bulk-selected=false] .mt-cover {opacity:.7;}
.mt-select-title {pointer-events:auto;}
.mt-chapter-sheet {width:min(100% - 24px,500px);max-height:85dvh;margin:auto auto 12px;padding:20px;border:1px solid #c4b2ed55;border-radius:24px;color:var(--text-primary);background:#231f2c;box-shadow:0 20px 90px #0009;overflow:auto;}
.mt-chapter-sheet::backdrop {background:#0c0911b8;backdrop-filter:blur(5px);}
.mt-chapter-sheet header {display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px;}
.mt-chapter-sheet h2 {font:25px/1.2 Georgia,serif;margin:0;}
.mt-chapter-sheet form {display:grid;gap:14px;}
.mt-chapter-sheet form>label {display:grid;gap:8px;font-size:12px;}
.mt-chapter-sheet .mt-spoiler-check {display:flex;align-items:center;}
.mt-chapter-sheet textarea {min-height:90px;}
.mt-draft-notice {margin:16px 0;padding:12px;background:#c4b2ed0a;border:1px solid #c4b2ed25;border-radius:12px;}
.mt-draft-notice p {font-size:11px;}
.mt-draft-notice button {font-size:11px;}
.mt-run-selector {padding:16px;margin:20px 0;border:1px solid #c4b2ed30;border-radius:15px;background:#ffffff03;}
.mt-run-selector label {display:grid;gap:10px;font-size:12px;}
.mt-run-selector p,.mt-score-change {font-size:12px;line-height:1.7;color:var(--text-muted);}
.mt-score-change b {color:#d3c2ef;}
.mt-compare-table {overflow:visible;}
.mt-compare-sticky {position:sticky;top:0;z-index:5;background:#282231!important;border-radius:14px 14px 0 0;}
.mt-compare-row small {display:block;margin-top:5px;font-size:9px;color:var(--text-muted);}
.mt-compare-row .mt-compare-higher {padding:8px 4px;border-radius:9px;background:#7fbf9b1a;color:#9cdbb5;}
.mt-compare-row .mt-compare-higher small {color:#9cdbb5;}
.mt-compare-lower {opacity:.65;}
.mt-compare-insight {padding:14px;border:1px solid #c4b2ed30;border-radius:15px;background:#c4b2ed08;margin-bottom:20px;font-size:12px;line-height:1.7;}
.mt-showcase-order {display:flex;gap:7px;}
.mt-showcase-order button {font-size:10px;flex:1;min-width:0;padding:10px 6px;}
#showcase-preview {margin:16px 0;pointer-events:none;}
#showcase-preview .mt-showcase {padding:16px;}
.mt-shop-card-actions {display:grid;gap:8px;margin-top:auto;}
.mt-shop-card-actions .mt-shop-owned {font-size:10px;color:#9cdbb5;text-align:center;padding:9px 0;}
@media(min-width:850px){.mt-bulk-dock{left:calc(50% + 105px);bottom:24px;}.mt-chapter-sheet{margin:auto;}}

/* Personal gallery and a compact profile studio. */
.mt-showcase.mt-paper {position:relative;overflow:hidden;padding:24px;border:1px solid #c4b2ed38;border-radius:26px;background:radial-gradient(ellipse at 90% 0,#b9a4df20,transparent 65%),linear-gradient(160deg,#262231,#17151e);box-shadow:0 12px 35px #0002;}
.mt-showcase-heading {display:flex;align-items:center;justify-content:space-between;gap:12px;}
.mt-showcase-heading>span:last-child {font-size:26px;color:#dcc394;}
.mt-showcase h2 {font:32px/1.12 Georgia,serif;letter-spacing:-.7px;margin:12px 0;}
.mt-showcase h2 em {color:#c9b5e9;font-weight:normal;}
.mt-showcase .mt-showcase-caption {margin:0 0 25px;font-size:11px;}
.mt-showcase-books {gap:12px;align-items:start;padding-bottom:20px;border-bottom:1px solid #ffffff14;}
.mt-showcase-books button {transition:transform .2s;opacity:1;}
.mt-showcase-books button:enabled:hover {transform:translateY(-5px);}
.mt-showcase-cover {position:relative;display:block;filter:drop-shadow(0 8px 8px #0005);}
.mt-showcase-cover img,.mt-showcase-cover .mt-journey-placeholder {border:1px solid #ffffff28;border-radius:6px 12px 12px 6px;aspect-ratio:2/3;height:auto;}
.mt-showcase-number {position:absolute;left:7px;bottom:7px;display:grid;place-items:center;min-width:24px;height:24px;border:1px solid #ffffff40;border-radius:8px;background:#181320cf;color:#eee1ff;font:600 10px Manrope,sans-serif;backdrop-filter:blur(8px);}
.mt-showcase-books strong {font-size:11px;line-height:1.45;margin-top:12px;}
.mt-showcase-treasures article {position:relative;background:#ffffff04;padding:14px;gap:10px;}
.mt-showcase-treasures article:first-child:before {content:'✧';font-size:28px;color:#e7c593;}
.mt-showcase-treasures small {font-size:8px;line-height:1.6;}
.mt-showcase-treasures img {width:48px;height:48px;}
.mt-showcase-treasures strong {font-size:11px;line-height:1.5;}
.mt-showcase-edit {margin-top:18px;width:100%;border-radius:12px;font-size:11px;}
.mt-showcase-empty {text-align:center;}
.mt-showcase-spark {display:block;color:#dcc394;font-size:40px;margin:6px 0 16px;}
.mt-showcase-empty p {max-width:280px;margin:16px auto 22px;}
.mt-editor {padding:20px!important;}
.mt-editor .mt-editor-title {font-size:11px;letter-spacing:1.5px;margin-bottom:20px;}
.mt-editor .mt-editor-avatar {gap:16px;margin-bottom:16px;}
.mt-editor .mt-editor-preview {font-size:64px;}
.mt-editor .mt-editor-photo button {font-size:11px;padding:10px 12px;}
.mt-editor .mt-editor-label {font-size:10px;letter-spacing:1px;margin:12px 0 7px;}
.mt-editor .mt-input {font-size:12px;min-height:42px;padding:11px 12px;border-radius:12px;}
.mt-editor-fold {margin:14px 0;padding:0 14px;border:1px solid #c4b2ed28;border-radius:16px;background:#ffffff03;min-width:0;}
.mt-editor-fold>summary {display:flex;align-items:center;gap:8px;list-style:none;cursor:pointer;padding:15px 0;font-size:12px;font-weight:700;line-height:1.5;}
.mt-editor-fold>summary::-webkit-details-marker {display:none;}
.mt-editor-fold>summary:after {content:'+';margin-left:auto;color:#c4b2ed;font-size:18px;font-weight:400;}
.mt-editor-fold[open]>summary:after {content:'−';}
.mt-editor-fold>summary small {color:var(--text-muted);font-size:9px;font-weight:400;}
.mt-editor-fold[open] {padding-bottom:14px;}
.mt-editor .mt-emoji-grid {display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px;}
.mt-editor .mt-emoji-btn {width:100%;height:36px;font-size:20px;}
.mt-editor .mt-swatch-row {gap:6px;flex-wrap:wrap;}
.mt-editor .mt-owned-styles {margin-top:18px;padding-top:8px;}
.mt-editor .mt-owned-styles>.mt-feature-hint {font-size:10px;margin:6px 0 12px;}
.mt-editor .mt-owned-styles .mt-shop-preview {margin:12px 0;padding:16px;min-height:115px;border-radius:18px;}
.mt-editor .mt-owned-styles .mt-shop-avatar {font-size:52px;}
.mt-editor .mt-owned-styles .mt-shop-preview-person {gap:14px;}
.mt-editor .mt-owned-styles .mt-shop-preview-person strong {font-size:17px;}
.mt-editor .mt-owned-field {display:grid;grid-template-columns:58px minmax(0,1fr);align-items:center;gap:10px;margin-top:9px;font-size:11px;}
.mt-editor .mt-owned-field .mt-input {margin:0;}
.mt-outfits .mt-editor-label {display:none;}
.mt-outfits .mt-outfit-save {display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px;}
.mt-outfits .mt-outfit-save button {font-size:10px;padding:8px;}
.mt-showcase-editor #showcase-preview {pointer-events:none;}
.mt-showcase-editor #showcase-preview .mt-showcase {margin:0 0 14px;padding:16px;border-radius:18px;}
#showcase-preview .mt-showcase h2 {font-size:24px;}
#showcase-preview .mt-showcase-caption {display:none;}
#showcase-preview .mt-showcase-books {margin-top:18px;gap:8px;}
#showcase-preview .mt-showcase-books strong {font-size:9px;}
.mt-showcase-editor label {margin:12px 0;font-size:10px;}
.mt-showcase-order {justify-content:flex-end;gap:6px;}
.mt-showcase-order button {flex:0 1 auto;padding:6px 10px;font-size:9px;}
#showcase-save {width:100%;margin-top:10px;font-size:12px;}
.mt-editor>.mt-form-row {position:relative;padding:10px;background:#211d29f5;border:1px solid #c4b2ed30;border-radius:16px;box-shadow:0 8px 25px #0004;}
.mt-editor>.mt-form-row button {font-size:12px;min-height:42px;padding:10px;}
@media(prefers-reduced-motion:reduce){.mt-showcase-books button{transition:none;}}

.mt-profile-studio {padding-bottom:120px;}

/* v108: everyday reading, fewer taps. */
.mt-collection-heading {gap:10px;}
.mt-collection-heading>div {flex:1;min-width:0;}
.mt-layout-toggle {border:1px solid #c4b2ed40;border-radius:12px;min-width:40px;height:40px;font-size:24px;color:var(--text-primary);}
.mt-grid-card {position:relative;}
.mt-title-more {margin-top:7px;width:100%;height:25px;border:1px solid #ffffff12;border-radius:8px;background:#ffffff04;color:var(--text-muted);font-size:12px;letter-spacing:2px;cursor:pointer;}
.mt-grid-card .mt-cover {touch-action:pan-y;-webkit-touch-callout:none;}
.mt-library-list {display:grid!important;grid-template-columns:1fr!important;gap:10px!important;}
.mt-library-list .mt-grid-card {display:grid;grid-template-columns:58px minmax(0,1fr) 36px;grid-template-rows:1fr 1fr;gap:4px 14px;align-items:center;padding:12px;background:#ffffff04;border:1px solid #c4b2ed22;border-radius:17px;}
.mt-library-list .mt-cover {grid-row:1/3;height:82px;aspect-ratio:auto;border-radius:8px;}
.mt-library-list .mt-cover-status,.mt-library-list .mt-cover-top-row,.mt-library-list .mt-cover-trophy {display:none;}
.mt-library-list .mt-cover-score {font-size:10px;right:4px;bottom:4px;}
.mt-library-list .mt-cover-title {grid-column:2;align-self:end;font-size:13px;margin:0;line-height:1.45;-webkit-line-clamp:2;}
.mt-library-list .mt-cover-type-line {grid-column:2;align-self:start;font-size:10px;margin:0;}
.mt-library-list .mt-title-more {grid-column:3;grid-row:1/3;width:36px;height:40px;margin:0;}
.mt-library-list .mt-select-title {position:absolute;right:10px;top:8px;}
.mt-detail-overview {display:flex;align-items:center;gap:20px;padding:18px;border:1px solid #c4b2ed28;border-radius:24px;background:linear-gradient(120deg,#c4b2ed12,transparent);margin-bottom:16px;}
.mt-detail-overview img,.mt-detail-overview .mt-journey-placeholder {width:72px;height:105px;object-fit:cover;border-radius:8px 14px 14px 8px;box-shadow:0 8px 20px #0005;display:grid;place-items:center;}
.mt-detail-overview>div:last-child {display:grid;gap:9px;}
.mt-detail-overview strong {font:30px/1.2 Georgia,serif;}
.mt-detail-overview small {color:var(--text-muted);font-size:11px;}
.mt-detail-nav {display:flex;position:relative;gap:5px;padding:4px;margin:16px 0;background:var(--card-bg,#25212e);border:1px solid var(--diary-line,#8883);border-radius:14px;}
.mt-detail-nav button {flex:1;min-width:0;min-height:44px;padding:10px 4px;background:none;border:0;border-radius:10px;color:var(--text-muted);font:600 14px/1.5 Manrope,sans-serif;cursor:pointer;}
.mt-detail-nav button[aria-pressed=true] {background:var(--pink,#c4b2ed);color:#22182c;}
[data-detail-panel][hidden] {display:none!important;}
[data-detail-panel] {min-width:0;animation:mt-soft-appear .22s ease;}
.mt-action-sheet {width:min(440px,calc(100% - 24px));max-height:85dvh;overflow:auto;margin:auto auto 18px;padding:24px;border:1px solid #c4b2ed45;border-radius:26px;background:#211d29;color:var(--text-primary);box-shadow:0 25px 100px #0009;}
.mt-action-sheet::backdrop {background:#0b0913b8;backdrop-filter:blur(5px);}
.mt-action-sheet header {display:flex;align-items:start;gap:12px;}
.mt-action-sheet header>div {flex:1;min-width:0;}
.mt-action-sheet h2 {font:24px/1.25 Georgia,serif;margin:12px 0;overflow-wrap:anywhere;}
.mt-action-sheet p {font-size:12px;color:var(--text-muted);line-height:1.6;}
.mt-action-sheet label {display:grid;gap:8px;font-size:11px;margin:16px 0;}
.mt-action-sheet .mt-input {width:100%;min-width:0;}
.mt-action-sheet>button,.mt-action-sheet #title-quick-content>a,.mt-action-sheet #title-quick-content>button {display:block;width:100%;margin-top:10px;text-align:center;text-decoration:none;}
.mt-quick-grid {display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:18px;}
.mt-quick-grid button {font-size:12px;min-height:48px;}
.mt-toast {position:fixed;z-index:100;bottom:110px;left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100% - 36px);padding:12px 20px;border:1px solid #c4b2ed55;border-radius:15px;background:#2c2639;color:#f1e8ff;box-shadow:0 10px 30px #0005;font-size:12px;pointer-events:none;}
.mt-toast[hidden] {display:none;}
.mt-catalog-hide {display:flex;align-items:center;gap:10px;font-size:12px;color:var(--text-muted);margin:18px 0;padding:12px 14px;border:1px solid #ffffff14;border-radius:13px;background:#ffffff03;}
.mt-catalog-hide input {accent-color:#c4b2ed;width:17px;height:17px;}
.mt-journey-heading {padding-bottom:14px!important;}
.mt-journey-orbit {display:none!important;}
.mt-journey-nav {display:flex!important;overflow-x:auto;gap:7px;padding:6px 0 12px!important;scrollbar-width:thin;position:sticky;top:0;z-index:10;background:var(--bg,#17141e);}
.mt-journey-nav button {flex:0 0 auto!important;width:auto!important;padding:12px 15px!important;border-radius:13px!important;font-size:11px!important;}
.mt-journey-nav small {display:none!important;}
.mt-style-category {margin:18px 0 0;min-width:0;}
.mt-style-category h3 {display:flex;justify-content:space-between;align-items:center;font-size:12px;margin:0 0 10px;}
.mt-style-category h3 small {font-size:9px;color:var(--text-muted);font-weight:400;}
.mt-style-choices {display:flex;gap:9px;overflow:auto;padding:3px 2px 12px;scroll-snap-type:x proximity;scrollbar-width:thin;}
.mt-style-choice {position:relative;flex:0 0 96px;min-width:0;padding:7px;border:1px solid #c4b2ed22;border-radius:15px;background:#ffffff03;color:var(--text-primary);text-align:left;cursor:pointer;scroll-snap-align:start;}
.mt-style-choice[aria-pressed=true] {border-color:#c4b2ed;background:#c4b2ed16;box-shadow:0 0 0 1px #c4b2ed44;}
.mt-style-choice[aria-pressed=true]:after {content:'✓';position:absolute;right:5px;top:5px;width:20px;height:20px;border-radius:50%;display:grid;place-items:center;background:#c4b2ed;color:#21182a;font-size:11px;}
.mt-style-thumb {height:64px;border-radius:10px;display:grid;place-items:center;overflow:hidden;background:linear-gradient(145deg,#77638c44,#211a2d);}
.mt-style-thumb img {width:100%;height:100%;object-fit:contain;}
.mt-style-thumb>span {font-size:26px;}
.mt-style-choice strong {display:block;font-size:10px;line-height:1.4;margin:8px 0 4px;overflow-wrap:anywhere;}
.mt-style-choice small {font-size:8px;color:var(--text-muted);}
@keyframes mt-soft-appear {from{opacity:.5;transform:translateY(5px);}to{opacity:1;transform:none;}}
@media(prefers-reduced-motion:reduce){[data-detail-panel]{animation:none;}}
.mt-library-list .mt-list-continue {grid-column:2/4;justify-self:start;padding:6px 10px;border:1px solid #c4b2ed30;border-radius:8px;background:#c4b2ed10;color:var(--text-primary);text-decoration:none;font-size:10px;cursor:pointer;}.mt-library-list .mt-cover {grid-row:1/4;}.mt-library-list .mt-title-more {grid-row:1/4;}

/* v109: clear boundaries inside the two title sections. */
[data-detail-panel] {display:flex;flex-direction:column;gap:18px;width:100%;min-width:0;}
.mt-shell [data-detail-panel]>.mt-paper {width:100%;max-width:none;margin:0;box-sizing:border-box;border-radius:20px;}
[data-detail-panel]>.mt-form-row {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0;}
[data-detail-panel]>button,[data-detail-panel]>.mt-form-row>button {width:100%;min-width:0;min-height:46px;margin:0;padding:12px 14px;box-sizing:border-box;font-size:12px;line-height:1.5;border-radius:14px;white-space:normal;}
[data-detail-panel]>.mt-ceremony-hint {margin:0!important;font-size:11px;line-height:1.7;}
.mt-detail-body .mt-criteria-panel {gap:22px;padding:22px;}
.mt-detail-body .mt-bar-row {display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px 12px;align-items:center;}
.mt-detail-body .mt-bar-name {grid-column:1;grid-row:1;min-width:0;width:auto;font-size:12px;white-space:normal;overflow-wrap:anywhere;}
.mt-detail-body .mt-bar-value {grid-column:2;grid-row:1;font-size:11px;}
.mt-detail-body .mt-bar-track {grid-column:1/-1;grid-row:2;width:100%;min-width:0;height:5px;}
.mt-detail-body .mt-radar-panel {padding:22px;overflow:hidden;}
.mt-detail-body .mt-radar-panel svg {max-width:100%;height:auto;}
.mt-library-list .mt-grid-card {grid-template-columns:58px minmax(0,1fr);grid-template-rows:1fr 1fr;}
.mt-library-list .mt-cover {grid-row:1/3;}
.mt-journey-nav {overflow:visible!important;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));}
.mt-journey-nav button {width:100%!important;min-width:0;padding:12px 5px!important;font-size:11px!important;}

/* v110: compact library, equal journey tabs and monthly award details. */
.mt-library-intro.mt-library-intro-compact {padding:12px 0 0;margin:0;}
.mt-library-intro-compact .mt-library-stats {margin-top:0;}
.mt-journey-page .mt-journey-nav {gap:6px;padding:6px!important;align-items:stretch;}
.mt-journey-page .mt-journey-nav button {grid-column:auto;grid-row:auto;min-height:48px;height:100%;margin:0;box-sizing:border-box;border:1px solid transparent;line-height:1.3;}
.mt-journey-page .mt-journey-nav [data-journey-section=halloween] {grid-column:auto;background:transparent;color:var(--text-muted);border-color:transparent;}
.mt-journey-page .mt-journey-nav button[aria-pressed=true] {background:var(--pink);color:#241a30;border-color:transparent;box-shadow:0 3px 10px #0002;}
.mt-halloween-site .mt-journey-page .mt-journey-nav button[aria-pressed=true] {background:linear-gradient(110deg,#e9bb84,#c69360);color:#332116;}
.mt-month-awards .mt-award-months {grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
.mt-month-awards .mt-award-month {min-width:0;min-height:74px;padding:15px 16px;justify-content:center;border-radius:16px;background:linear-gradient(135deg,#ffffff07,#ffffff02);transition:background .2s,border-color .2s;}
.mt-month-awards .mt-award-month strong {font:700 13px/1.5 Manrope,sans-serif;}
.mt-month-awards .mt-award-month span {font-size:10px;line-height:1.5;}
.mt-month-awards .mt-award-month.active {border-color:var(--amber);background:linear-gradient(125deg,#c9bfa81f,#c9bfa807);box-shadow:inset 3px 0 var(--amber);}
.mt-month-awards .mt-award-month.active span {color:var(--amber);}
.mt-month-awards>.mt-paper {padding:22px;border-radius:22px;background:linear-gradient(145deg,#c9bfa80b,transparent 65%),var(--surface,#201e26);}
.mt-month-awards .mt-panel-title {font-size:15px;line-height:1.5;margin-bottom:8px;}
.mt-month-awards .mt-ceremony-hint {line-height:1.7;margin-bottom:18px;}
.mt-month-awards .mt-category-chip-row {gap:8px;}
.mt-month-awards .mt-category-chip {min-height:40px;padding:10px 13px;border-radius:12px;font-size:11px;line-height:1.4;}
.mt-month-awards .mt-nominee-row {gap:12px;padding:15px 12px;margin:8px 0;border:1px solid #ffffff0d;border-radius:14px;background:#ffffff03;}
.mt-month-awards .mt-nominee-row.picked,.mt-month-awards .mt-nominee-row.confirming {border-color:var(--amber);background:#c9bfa80d;}
.mt-month-awards .mt-nominee-title {font-size:13px;line-height:1.5;overflow-wrap:anywhere;}
.mt-month-awards .mt-nominee-score {font-size:17px;font-weight:700;flex-shrink:0;}
.mt-month-awards .mt-winner-cover {border-radius:18px;box-shadow:0 8px 24px #0003;}
.mt-month-awards .mt-winner-category {letter-spacing:.08em;line-height:1.6;}
@media(min-width:700px){.mt-month-awards .mt-award-months{grid-template-columns:repeat(4,minmax(0,1fr));}}

/* Compact library toolbar with small, consistent text gaps. */
.mt-library-intro.mt-library-intro-compact {padding-bottom:8px;}
.mt-library-controls .mt-subrow-actions {flex-wrap:nowrap;gap:8px;}
.mt-library-controls .mt-sort-group {flex:1 1 0;min-width:0;flex-wrap:nowrap;gap:2px;overflow-x:auto;scrollbar-width:none;}
.mt-library-controls .mt-sort-group::-webkit-scrollbar {display:none;}
.mt-library-controls .mt-sort-btn {flex:0 0 auto;min-height:42px;padding:11px 6px;font-size:10px;line-height:1.4;white-space:nowrap;}
.mt-library-controls .mt-filter-row {margin-top:10px;}
.mt-library-controls .mt-library-utility {gap:6px;}
.mt-library-controls .mt-library-menu>summary {padding:0 9px;gap:5px;font-size:11px;}
@media(max-width:360px){
  .mt-library-controls .mt-sort-btn {padding-left:4px;padding-right:4px;font-size:9px;}
  .mt-library-controls .mt-library-utility #toggle-search {width:36px;flex-basis:36px;}
  .mt-library-controls .mt-library-menu>summary {padding:0 7px;gap:3px;}
  .mt-library-controls .mt-library-menu>summary svg {width:16px;height:16px;flex-basis:16px;}
}

/* v111: everyday actions */
.mt-active-filters{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0;}
.mt-active-filters button{max-width:100%;white-space:normal;overflow-wrap:anywhere;min-height:44px;text-align:left;}
.mt-data-status{color:var(--muted,#aca5b5);font-size:11px;line-height:1.6;padding:18px var(--page-gutter,20px);overflow-wrap:anywhere;}
.mt-update-notice{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin:12px var(--page-gutter,20px) 24px;padding:16px;border:1px solid var(--amber,#d7b979);border-radius:14px;background:var(--surface,#242027);font-size:13px;}
.mt-update-notice span{flex:1 1 180px;}.mt-update-notice button{min-height:44px;}
/* The update notice follows the page's own bottom padding. Reserve space
   here too, so the fixed mobile navigation cannot cover its last lines. */
@media(max-width:849px){
  .mt-shell-tabs #update-notice:not(:empty){padding-bottom:calc(100px + env(safe-area-inset-bottom));}
}
.mt-award-help{margin:18px 0;padding:14px 16px;border:1px solid #ffffff24;border-radius:14px;font-size:13px;line-height:1.65;text-align:center;}
.mt-award-help summary{cursor:pointer;min-height:32px;list-style:none;display:flex;align-items:center;justify-content:center;gap:8px;}.mt-award-help summary::-webkit-details-marker{display:none;}.mt-award-help summary::before{content:"▸";flex-shrink:0;}.mt-award-help[open] summary::before{content:"▾";}.mt-award-help p{color:var(--muted,#bcb4c7);}
.mt-preview-composition{font-size:12px;line-height:1.8;overflow-wrap:anywhere;margin:14px 0;}

/* Chapter diary: touch-sized scoring, one focused composer, compact history. */
.mt-journal-add{width:100%;min-height:50px;margin-bottom:16px;}
.mt-chapter-journal .mt-journal-heading{margin:0 0 18px;padding:0;border:0;}
.mt-chapter-journal .mt-journal-heading h2{font:28px/1.2 Georgia,serif;margin:8px 0 0;}
.mt-journal-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:20px 0;}
.mt-journal-stats>div{display:grid;gap:5px;padding:14px 8px;background:#ffffff05;border:1px solid #ffffff12;border-radius:14px;text-align:center;}
.mt-journal-stats strong{font-size:23px;font-weight:600;color:var(--pink);font-variant-numeric:tabular-nums;}
.mt-journal-stats span{font-size:10px;color:var(--text-muted);}
.mt-chapter-journal .mt-draft-notice{display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:space-between;margin:16px 0;padding:15px;border:1px solid #c4b2ed40;border-radius:14px;background:#c4b2ed08;}
.mt-chapter-journal .mt-draft-notice[hidden],#chapter-form-home[hidden]{display:none!important;}
.mt-draft-notice strong{font-size:13px;}.mt-draft-notice p{margin:5px 0!important;font-size:11px!important;}
.mt-draft-notice button{min-height:44px;}.mt-journal-saved{padding:12px 14px;border-left:3px solid var(--green);color:var(--text-primary)!important;background:#7fbf9b0b;border-radius:8px;font-size:12px!important;}
.mt-journal-chart-fold{border-top:1px solid #ffffff16;border-bottom:1px solid #ffffff16;margin:20px 0;}
.mt-journal-chart-fold>summary{padding:16px 0;cursor:pointer;font-size:13px;}.mt-journal-chart-fold>summary span{color:var(--text-muted);font-size:11px;margin-left:8px;}
.mt-journal-chart-fold .mt-chapter-chart{margin:0 0 16px;border:0;padding:0;background:none;}
.mt-journal-list article{padding:16px;border-radius:16px;background:#ffffff03;}
.mt-journal-list article header{padding-bottom:10px;}.mt-entry-score{display:flex;align-items:center;gap:14px;margin:14px 0;}
.mt-entry-score>strong{font-size:25px;color:var(--pink);font-weight:600;white-space:nowrap;}.mt-entry-score small{font-size:12px;color:var(--text-muted);font-weight:400;}
.mt-entry-score>span{font-size:12px;color:var(--text-muted);}.mt-journal-list [data-journal-delete]{min-height:44px;padding:8px 12px;margin-top:6px;font-size:11px;}
.mt-journal-empty{padding:28px 16px;border:1px dashed #ffffff24;border-radius:16px;text-align:center;color:var(--text-muted);}
.mt-chapter-sheet{width:min(calc(100% - 20px),480px);max-height:calc(100dvh - 20px);padding:20px 18px 0;border-radius:24px;background:var(--card-bg);margin:auto auto max(10px,env(safe-area-inset-bottom));}
.mt-chapter-sheet>header{position:sticky;top:-20px;z-index:2;background:var(--card-bg);padding:14px 0;margin:0 0 10px;}
.mt-chapter-sheet>header h2{font-size:24px;}.mt-chapter-sheet #chapter-sheet-close{min-width:44px;min-height:44px;font-size:22px;}
.mt-chapter-sheet form{gap:16px;}.mt-chapter-number-row{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:8px 16px;}
.mt-chapter-number-row>label{font-size:15px;font-weight:600;}.mt-chapter-number-row>span{grid-column:1/-1;font-size:11px;color:var(--text-muted);}
.mt-chapter-stepper{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;gap:6px;}
.mt-chapter-stepper button{min-height:46px;background:#ffffff08;border:1px solid #ffffff22;border-radius:12px;color:var(--text-primary);font-size:22px;cursor:pointer;}
.mt-chapter-stepper .mt-input{width:100%;min-width:0;text-align:center;font-size:22px;margin:0;padding:10px 4px;font-variant-numeric:tabular-nums;}
.mt-chapter-sheet .mt-score-picker{min-width:0;margin:0;padding:0;border:0;background:none;}
.mt-score-picker legend{padding:0;font-size:13px;font-weight:600;margin-bottom:12px;}
.mt-score-picker-heading{display:flex;align-items:baseline;flex-wrap:wrap;gap:6px 12px;margin-bottom:14px;}
.mt-score-picker-heading output{font-size:24px;font-weight:600;color:var(--pink);}.mt-score-picker .mt-chapter-mood{font-size:11px;margin:0;color:var(--text-muted);}
.mt-note-only{min-height:44px;padding:8px 0;background:none;border:0;color:var(--text-muted);font-size:12px;text-align:left;text-decoration:underline;text-underline-offset:4px;cursor:pointer;}
.mt-note-only[aria-pressed=true]{color:var(--pink);}.mt-score-picker #chapter-existing{font-size:12px;line-height:1.5;color:var(--amber);margin:8px 0 0;}.mt-score-picker #chapter-existing:empty{display:none;}
.mt-chapter-note-label{display:block!important;font-size:13px!important;}.mt-chapter-note-label>span{font-size:11px;color:var(--text-muted);margin-left:6px;}
.mt-chapter-sheet .mt-chapter-note-label textarea{width:100%;min-height:76px;resize:vertical;margin-top:8px;box-sizing:border-box;}
.mt-chapter-sheet .mt-spoiler-check{font-size:12px;gap:10px;min-height:36px;margin:0;}.mt-spoiler-check input{width:18px;height:18px;accent-color:var(--pink);}
.mt-chapter-sheet .mt-composer-hint{font-size:10px;line-height:1.6;color:var(--text-muted);margin:0;}
.mt-chapter-sheet #chapter-error{margin:0;font-size:12px;line-height:1.5;}.mt-chapter-sheet #chapter-error:empty{display:none;}
.mt-chapter-submit{position:sticky;bottom:0;display:grid;grid-template-columns:1fr;gap:8px;padding:12px 0 max(16px,env(safe-area-inset-bottom));background:var(--card-bg);border-top:1px solid #ffffff16;z-index:1;}
.mt-chapter-submit button{width:100%;min-height:44px;margin:0!important;font-size:13px;white-space:normal;}
@media(min-width:850px){.mt-chapter-sheet{margin:auto;}}
.mt-records-toggle{width:100%;min-height:48px;margin:16px 0;text-align:center;}
#journal-records[hidden]{display:none!important;}
.mt-quick-notes{border:1px solid #ffffff18;border-radius:12px;padding:0 12px;}
.mt-quick-notes summary{padding:13px 0;cursor:pointer;font-size:12px;}
.mt-quick-notes p{font-size:11px;color:var(--text-muted);margin:0 0 10px;}
.mt-quick-notes>div{display:flex;flex-wrap:wrap;gap:7px;padding-bottom:12px;}
.mt-quick-notes button{min-height:40px;max-width:100%;padding:8px 10px;white-space:normal;text-align:left;background:#ffffff06;border:1px solid #ffffff20;border-radius:10px;color:var(--text-primary);font-size:11px;cursor:pointer;}
.mt-quick-notes button:hover{border-color:var(--pink);color:var(--pink);}
.mt-score-picker input[type=range]{width:100%;box-sizing:border-box;margin:20px 0;cursor:pointer;}

/* Diary finish: one accent, quiet surfaces and a composer with separate scrolling. */
.mt-chapter-journal,.mt-chapter-sheet{--diary-accent:var(--pink);--diary-line:color-mix(in srgb,var(--pink) 18%,transparent);--diary-wash:color-mix(in srgb,var(--pink) 7%,transparent);}
.mt-journey-panel.mt-chapter-journal{padding:24px 0;margin:0;background:none;border:0;box-shadow:none;scroll-margin-top:90px;}
.mt-chapter-journal .mt-journal-heading{padding:0 4px 8px;}.mt-chapter-journal .mt-section-eyebrow{font-size:9px;letter-spacing:.18em;color:var(--diary-accent);}
.mt-chapter-journal .mt-journal-heading h2{font-size:32px;letter-spacing:-.6px;font-weight:400;}
.mt-journal-add{border:1px solid var(--diary-line);border-radius:16px;box-shadow:0 6px 22px #0002;font-weight:700;letter-spacing:.01em;}
.mt-chapter-journal .mt-run-selector{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;padding:16px 18px;margin:12px 0 0;border:1px solid var(--diary-line);border-radius:18px;background:var(--diary-wash);}
.mt-run-selector label{gap:6px;font-size:10px;text-transform:uppercase;letter-spacing:.08em;color:var(--text-muted);}
.mt-run-selector .mt-input{font-size:13px;letter-spacing:normal;margin:0;min-height:44px;border:0;background:#0002;border-radius:10px;}
.mt-run-selector p{font-size:11px;margin:0;}.mt-run-selector p b{color:var(--text-primary);}
.mt-journal-stats{gap:0;margin:16px 0 24px;border:1px solid var(--diary-line);border-radius:18px;overflow:hidden;background:linear-gradient(120deg,var(--diary-wash),transparent);}
.mt-journal-stats>div{background:none;border:0;border-radius:0;padding:18px 6px;gap:7px;}
.mt-journal-stats>div+div{border-left:1px solid var(--diary-line);}.mt-journal-stats strong{font:500 29px/1.1 'Space Mono',monospace;letter-spacing:-1px;}.mt-journal-stats span{font-size:10px;line-height:1.5;}
.mt-chapter-journal .mt-chapter-chart{background:linear-gradient(155deg,var(--diary-wash),#ffffff02);border:1px solid var(--diary-line);border-radius:22px;padding:20px 16px;margin:22px 0;overflow:hidden;}
.mt-chapter-chart h3{font:400 21px/1.3 Georgia,serif;letter-spacing:-.2px;}.mt-chapter-chart p{font-size:11px;line-height:1.65;margin:8px 0 18px;color:var(--text-muted);}
.mt-chapter-chart .mt-chart-area{fill:var(--diary-accent);opacity:.09;}.mt-chapter-chart .mt-chart-line{stroke:var(--diary-accent);stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round;}
.mt-chapter-chart .mt-chart-dot{fill:var(--diary-accent);stroke:var(--card-bg);stroke-width:2;}.mt-chapter-chart svg text{fill:var(--text-muted);font-size:10px;}
.mt-chapter-chart>details{border-top:1px solid var(--diary-line);padding-top:8px;}.mt-chapter-chart summary{font-size:11px;color:var(--text-muted);min-height:40px;}
.mt-records-toggle{display:block;border:1px solid var(--diary-line);border-radius:14px;background:var(--diary-wash);padding:15px 18px;font-size:13px;letter-spacing:.02em;color:var(--text-primary);}
.mt-records-toggle[aria-expanded=true]{background:#ffffff03;color:var(--text-muted);}.mt-journal-toolbar{margin:20px 0 12px;gap:12px;}.mt-journal-toolbar label{font-size:11px;color:var(--text-muted);}
.mt-journal-list{gap:12px;margin-top:18px;}.mt-journal-list article{position:relative;padding:18px;border:1px solid var(--diary-line);border-radius:18px;background:linear-gradient(125deg,var(--diary-wash),#ffffff02);}
.mt-journal-list article header{gap:12px;border-color:var(--diary-line);}.mt-journal-list article header b{font-size:15px;}.mt-journal-list time{color:var(--text-muted);font-size:10px;}
.mt-entry-score{gap:16px;margin:16px 0;}.mt-entry-score>strong{font:500 32px/1.2 'Space Mono',monospace;letter-spacing:-1px;}.mt-entry-score>span{font-size:12px;line-height:1.5;}
.mt-journal-list article>p,.mt-journal-list article details p{white-space:pre-line;overflow-wrap:anywhere;line-height:1.8;font-size:13px;}
.mt-journal-list article details{border:1px solid var(--diary-line);border-radius:10px;padding:0 12px;}.mt-journal-list article details summary{min-height:44px;padding:12px 0;font-size:11px;cursor:pointer;}
.mt-journal-list [data-journal-delete]{border:0;opacity:1;color:var(--text-muted);font-size:10px;}
dialog.mt-chapter-sheet{padding:0;overflow:hidden;width:min(calc(100% - 20px),500px);max-height:calc(100dvh - 24px);border:1px solid var(--diary-line);border-radius:26px;background:var(--card-bg);box-shadow:0 24px 100px #0009;}
dialog.mt-chapter-sheet[open]{display:flex;flex-direction:column;}
.mt-chapter-sheet>header{position:static;flex-shrink:0;margin:0;padding:22px 22px 18px;border-bottom:1px solid var(--diary-line);background:linear-gradient(125deg,var(--diary-wash),transparent);}
.mt-composer-eyebrow{display:block;color:var(--pink);font-size:8px;letter-spacing:.14em;line-height:1.7;margin-bottom:7px;}
.mt-chapter-sheet>header h2{font:400 29px/1.15 Georgia,serif;letter-spacing:-.5px;}.mt-chapter-sheet #chapter-sheet-close{padding:0;flex:0 0 42px;min-width:42px;min-height:42px;border-radius:50%;background:#ffffff04;border:1px solid var(--diary-line);font-size:20px;color:var(--text-muted);}
#chapter-sheet-body{min-height:0;display:flex;flex-direction:column;overflow:hidden;}
.mt-chapter-sheet #chapter-form{min-height:0;display:flex;flex-direction:column;gap:0;overflow:hidden;}
.mt-composer-fields{min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--diary-line) transparent;display:grid;gap:20px;padding:20px 22px 24px;}
.mt-chapter-number-row{padding:0 0 18px;border-bottom:1px solid var(--diary-line);column-gap:22px;}.mt-chapter-number-row>label{font-size:13px;color:var(--text-muted);}.mt-chapter-number-row>span{font-size:10px;color:var(--text-faint);}
.mt-chapter-stepper{background:#0002;border:1px solid var(--diary-line);border-radius:14px;padding:3px;gap:0;grid-template-columns:40px minmax(0,1fr) 40px;}.mt-chapter-stepper button{background:none;border:0;min-height:44px;font-size:21px;color:var(--pink);}.mt-chapter-stepper .mt-input{background:none;border:0;font:500 23px/1.2 'Space Mono',monospace;padding:8px 0;box-shadow:none;}
.mt-chapter-sheet .mt-score-picker{background:linear-gradient(155deg,var(--diary-wash),transparent);padding:18px 16px 8px;border:1px solid var(--diary-line);border-radius:20px;}
.mt-score-picker legend{font-size:11px;letter-spacing:.02em;padding:0 7px;margin:0;color:var(--text-muted);}
.mt-score-picker-heading{display:grid;gap:8px;margin:0;text-align:center;min-height:86px;align-content:center;}.mt-score-picker-heading output{font:500 40px/1.15 'Space Mono',monospace;letter-spacing:-2px;color:var(--pink);}.mt-score-picker .mt-chapter-mood{font-size:12px;line-height:1.5;color:var(--text-primary);}
.mt-score-picker input[type=range]{height:6px;margin:26px 0 12px;background:linear-gradient(to right,var(--pink) var(--chapter-fill,0%),#ffffff12 var(--chapter-fill,0%));border-radius:8px;touch-action:pan-y;}
.mt-score-picker input[type=range]::-webkit-slider-thumb{width:26px;height:26px;background:var(--pink);border:5px solid var(--card-bg);box-shadow:0 0 0 1px var(--pink),0 3px 12px #0005;}
.mt-score-picker input[type=range]::-moz-range-thumb{width:16px;height:16px;background:var(--pink);border:5px solid var(--card-bg);box-shadow:0 0 0 1px var(--pink);}
.mt-score-ruler{display:flex;justify-content:space-between;margin:0 0 9px;font:10px/1.5 'Space Mono',monospace;color:var(--text-faint);}
.mt-note-only{display:block;width:100%;min-height:40px;text-align:center;font-size:10px;text-decoration:none;letter-spacing:.02em;}.mt-note-only[aria-pressed=true]{color:var(--pink);}
.mt-chapter-note-label{font-size:12px!important;}.mt-chapter-sheet .mt-chapter-note-label textarea{padding:13px 14px;min-height:92px;background:#0002;border:1px solid var(--diary-line);border-radius:14px;line-height:1.7;font-size:13px;margin-top:10px;}
.mt-quick-notes{background:#ffffff02;border:1px solid var(--diary-line);border-radius:14px;padding:0 14px;}.mt-quick-notes summary{font-size:12px;min-height:46px;padding:14px 0;color:var(--text-primary);}.mt-quick-notes p{font-size:10px;line-height:1.6;}
.mt-quick-notes>div{gap:7px;}.mt-quick-notes button{font-size:11px;line-height:1.5;min-height:44px;border-radius:12px;background:var(--diary-wash);border:1px solid var(--diary-line);padding:9px 11px;}
.mt-quick-notes button:active{background:var(--pink);color:var(--bg);}.mt-chapter-sheet .mt-spoiler-check{display:flex;align-items:center;gap:10px;font-size:11px;color:var(--text-muted);margin:0;min-height:40px;}
.mt-chapter-submit{position:static;flex-shrink:0;padding:14px 22px max(16px,env(safe-area-inset-bottom));border-top:1px solid var(--diary-line);gap:7px;background:var(--card-bg);box-shadow:0 -12px 25px #0001;}
.mt-chapter-submit button{min-height:46px;border-radius:13px;font-size:12px;}.mt-chapter-submit .mt-primary-btn{background:var(--pink);color:#201a28;border:0;font-weight:700;box-shadow:0 4px 18px var(--diary-wash);}.mt-chapter-submit .mt-ghost-btn{border:0;background:none;color:var(--text-muted);min-height:38px;}
@media(max-width:359px){.mt-composer-fields{padding:16px;gap:17px;}.mt-chapter-sheet>header{padding:18px 16px 15px;}.mt-chapter-submit{padding:12px 16px max(12px,env(safe-area-inset-bottom));}.mt-composer-eyebrow{font-size:7px;}.mt-chapter-sheet>header h2{font-size:26px;}.mt-score-picker-heading output{font-size:35px;}.mt-journal-stats span{font-size:9px;}}

/* Readable composer typography and a single, uninterrupted chapter control. */
.mt-chapter-sheet{font-family:'Manrope',sans-serif;font-size:14px;line-height:1.55;}
.mt-chapter-sheet>header h2{font-family:inherit;font-size:25px;font-weight:700;line-height:1.25;letter-spacing:-.4px;}
.mt-chapter-sheet .mt-composer-eyebrow{font-size:10px;letter-spacing:.06em;line-height:1.6;}
.mt-chapter-sheet .mt-chapter-number-row>label,
.mt-chapter-sheet .mt-score-picker legend,
.mt-chapter-sheet .mt-chapter-mood,
.mt-chapter-sheet .mt-quick-notes summary,
.mt-chapter-sheet .mt-spoiler-check,
.mt-chapter-sheet .mt-note-only,
.mt-chapter-sheet .mt-chapter-submit button{font-size:14px;line-height:1.55;}
.mt-chapter-sheet .mt-chapter-note-label{font-size:14px!important;}
.mt-chapter-sheet .mt-chapter-number-row>span,
.mt-chapter-sheet .mt-chapter-note-label>span,
.mt-chapter-sheet .mt-quick-notes p,
.mt-chapter-sheet .mt-composer-hint,
.mt-chapter-sheet .mt-score-ruler{font-family:inherit;font-size:12px;line-height:1.65;color:var(--text-muted);}
.mt-chapter-sheet .mt-quick-notes button{font-size:13px;line-height:1.5;}
.mt-chapter-sheet .mt-chapter-note-label textarea{font-family:inherit;font-size:15px;line-height:1.65;}
.mt-chapter-sheet .mt-score-picker-heading output{font-family:inherit;font-weight:600;letter-spacing:-1px;}
.mt-chapter-sheet .mt-chapter-stepper input.mt-input,
.mt-chapter-sheet .mt-chapter-stepper input.mt-input:focus{background:transparent;border:0;box-shadow:none;border-radius:0;font-family:inherit;font-size:24px;font-weight:600;line-height:1.25;appearance:textfield;}
.mt-chapter-stepper input::-webkit-inner-spin-button,
.mt-chapter-stepper input::-webkit-outer-spin-button{appearance:none;margin:0;}
.mt-chapter-sheet .mt-chapter-stepper:focus-within{outline:2px solid var(--pink);outline-offset:3px;}
.mt-chapter-sheet .mt-chapter-stepper input:focus-visible{outline:none;}

/* Personal chapter ratings: compact, readable heatmap. */
.mt-map-highlight{display:grid;gap:7px;margin:18px 0;padding:16px;border:1px solid var(--diary-line);border-radius:14px;background:var(--diary-wash);text-align:center;}
.mt-map-highlight strong{font-size:23px;line-height:1.3;}
.mt-map-highlight span{font-size:12px;color:var(--text-muted);}
.mt-chart-range{display:grid;gap:6px;margin:16px 0;font-size:12px;}
.mt-chart-selection{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;min-height:48px;padding:10px;border:1px solid var(--diary-line);border-radius:12px;}
dialog.mt-export-preview{box-sizing:border-box;width:min(680px,calc(100% - 24px));max-height:calc(var(--app-visible-height,100dvh) - 24px);overflow:auto;padding:20px;border:1px solid #8884;border-radius:22px;background:var(--card-bg,#222);color:var(--text-primary);overscroll-behavior:contain;}
.mt-export-preview::backdrop{background:#080710bb;backdrop-filter:blur(5px);}
.mt-export-preview header,.mt-export-preview footer{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;}
.mt-export-preview h2{font:700 23px/1.3 Manrope,sans-serif;margin:0;}
.mt-export-preview label{display:grid;gap:8px;margin:16px 0;font-size:13px;}
.mt-export-preview img{display:block;width:100%;height:auto;border-radius:12px;margin:16px 0;}
.mt-export-preview footer{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;}
.mt-export-preview footer>button{min-width:0;margin:0;display:flex;align-items:center;justify-content:center;}
.mt-export-preview #export-status{font-size:13px;line-height:1.5;}
:root body .mt-journey-panel.mt-chapter-journal{width:100%;box-sizing:border-box;padding:24px 0;margin:0;}
/* Shared type, spacing and controls across the two appearances. */
:root{--ui-font:'Manrope',sans-serif;--ui-radius:14px;--ui-panel-radius:22px;--ui-control-height:44px;--ui-space:20px;}
:root body{font-family:var(--ui-font);line-height:1.55;}
:root body :is(button,input,textarea,select){font-family:var(--ui-font);}
:root body :is(.mt-primary-btn,.mt-ghost-btn){min-height:var(--ui-control-height);border-radius:var(--ui-radius);font-size:14px;line-height:1.4;padding:11px 16px;}
:root body .mt-input{border-radius:12px;min-height:44px;font-size:15px;line-height:1.5;}
:root body :is(.mt-settings-card,.mt-journey-panel,.mt-profile-backup){border-radius:var(--ui-panel-radius);padding:var(--ui-space);}
:root body :is(.mt-settings-card,.mt-journey-panel,.mt-profile-backup) h2{font-family:var(--ui-font);font-size:24px;font-weight:700;line-height:1.25;letter-spacing:-.5px;}
:root body :is(.mt-feature-hint,.mt-backup-text,.mt-settings-card>p){font-size:13px;line-height:1.65;}
:root body :is(.mt-panel-title){font-family:var(--ui-font);font-size:14px;line-height:1.5;}
:root body :is(button,a,input,select,textarea):focus-visible{outline:2px solid var(--pink,#c4b2ed);outline-offset:3px;}
.mt-map-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:20px 0;}
.mt-map-summary>div{display:flex;flex-direction:column;gap:5px;min-width:0;padding:12px 8px;border:1px solid var(--diary-line,#8883);border-radius:12px;}
.mt-map-summary strong{font-size:21px;line-height:1.25;overflow-wrap:anywhere;}
.mt-map-summary span{font-size:12px;color:var(--text-muted);}
.mt-map-tools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:end;}
.mt-map-tools label{display:grid;gap:6px;font-size:12px;min-width:0;margin:0;}
:root body .mt-map-tools :is(select.mt-input,button.mt-ghost-btn){box-sizing:border-box;width:100%;min-width:0;height:48px;min-height:48px;margin:0;padding:8px 10px;border-radius:12px;font-size:14px;line-height:1.3;}
.mt-rating-block[hidden]{display:none;}
.mt-data-health{margin:0;display:grid;gap:0;}
.mt-data-health>div{padding:14px 0;border-bottom:1px solid #8883;}
.mt-data-health dt{font-size:12px;color:var(--text-muted);}
.mt-data-health dd{margin:5px 0 0;font-size:14px;font-weight:600;overflow-wrap:anywhere;}
dialog.mt-backup-preview{width:min(560px,calc(100% - 24px));max-height:calc(var(--app-visible-height,100dvh) - 24px);padding:24px;border-radius:22px;background:var(--card-bg,#22212a);color:var(--text,#eee);border:1px solid #8885;overflow:auto;overscroll-behavior:contain;}
.mt-backup-preview::backdrop{background:#080710bb;backdrop-filter:blur(5px);}
.mt-backup-preview h2{font-size:24px;line-height:1.25;}
.mt-backup-preview p,.mt-backup-preview li{font-size:14px;line-height:1.65;overflow-wrap:anywhere;}
.mt-backup-preview header p{margin-bottom:4px;}
.mt-backup-preview small{color:var(--text-muted);}
.mt-backup-preview details{margin:18px 0;}
.mt-backup-preview details ul{max-height:180px;overflow:auto;}
.mt-restore-check{display:flex;gap:10px;align-items:start;margin:20px 0;font-size:14px;}
.mt-restore-check input{width:20px;height:20px;flex-shrink:0;}
.mt-backup-preview footer{display:flex;justify-content:flex-end;gap:10px;}
:root body button:disabled{cursor:not-allowed;opacity:.5;}
html{scroll-padding-top:90px;scroll-padding-bottom:100px;}
[id^="journal-entry-"],.mt-rating-block{scroll-margin-top:100px;}
.mt-composer-fields{overscroll-behavior:contain;scroll-padding-block:16px;-webkit-overflow-scrolling:touch;}
:root body dialog.mt-chapter-sheet{max-height:calc(var(--app-visible-height,100dvh) - 24px);}
@media(max-width:600px){
  :root{--ui-space:16px;--ui-panel-radius:18px;}
  :root body :is(input.mt-input,textarea.mt-input,select.mt-input){font-size:16px;}

  .mt-map-summary strong{font-size:18px;}
  .mt-map-summary span{font-size:11px;}
  .mt-backup-preview footer{flex-wrap:wrap;}
  .mt-backup-preview footer button{flex:1;}
  html.mt-keyboard-open .mt-tabbar{visibility:hidden;pointer-events:none;}
  html.mt-keyboard-open dialog.mt-chapter-sheet{position:fixed;top:var(--app-visible-top,0px);bottom:auto;margin:12px auto;}
}
.mt-chapter-journal .mt-map-toggle{margin-top:8px;border-style:dashed;}
.mt-rating-map{margin-top:16px;padding:22px;border:1px solid var(--diary-line);border-radius:20px;background:var(--diary-wash);}
.mt-rating-map[hidden]{display:none;}
.mt-rating-map h3{margin:5px 0 8px;font-size:24px;letter-spacing:-.5px;}
.mt-rating-map header p,.mt-rating-map-footnote{color:var(--text-muted);font-size:13px;line-height:1.6;}
.mt-rating-legend{display:flex;flex-wrap:wrap;gap:10px 16px;list-style:none;padding:16px 0;margin:14px 0;border-block:1px solid var(--diary-line);}
.mt-rating-legend li{display:flex;align-items:center;gap:7px;font-size:12px;color:var(--text-muted);}
.mt-rating-legend i{width:9px;height:9px;border-radius:50%;background:var(--rating-color);flex-shrink:0;}
.mt-rating-legend b{color:var(--text);font-variant-numeric:tabular-nums;}
.mt-rating-masterpiece{--rating-color:#36ba91;}
.mt-rating-great{--rating-color:#8bd071;}
.mt-rating-good{--rating-color:#f0d46d;}
.mt-rating-mixed{--rating-color:#f0ac64;}
.mt-rating-weak{--rating-color:#eb8585;}
.mt-rating-poor{--rating-color:#bc9add;}
.mt-rating-block h4{font-size:13px;font-weight:600;color:var(--text-muted);margin:22px 0 10px;}
.mt-rating-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(66px,1fr));gap:8px;}
.mt-rating-grid .mt-rating-tile{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-width:0;min-height:66px;padding:8px 3px;border:1px solid #ffffff26;border-radius:10px;background:var(--rating-color);color:#18231e;cursor:pointer;font-family:inherit;box-shadow:inset 0 1px 0 #ffffff40;transition:transform .15s,filter .15s;}
.mt-rating-tile span{font-size:11px;font-weight:600;overflow-wrap:anywhere;}
.mt-rating-tile strong{font-size:22px;line-height:1.2;letter-spacing:-.5px;font-variant-numeric:tabular-nums;}
.mt-rating-tile:hover{filter:brightness(1.1);transform:translateY(-2px);}
.mt-rating-tile:focus-visible{outline:3px solid var(--text);outline-offset:3px;}
.mt-rating-map-footnote{margin:20px 0 0;font-size:12px;}
@media(max-width:480px){.mt-rating-map{padding:14px;border-radius:16px;}.mt-rating-grid{grid-template-columns:repeat(auto-fill,minmax(54px,1fr));gap:6px;}.mt-rating-grid .mt-rating-tile{min-height:61px;border-radius:8px;}.mt-rating-legend{gap:9px 12px;}.mt-rating-legend li{font-size:11px;}}
