/* Tool pages use a reading rhythm: a query, a quiet summary, then the result. */
html[data-ui="mobile"] .m-tools-page{display:grid;gap:24px;min-width:0}
html[data-ui="mobile"] .m-tool-mode{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:16px;border-bottom:1px solid rgba(var(--ui-source-f01699af519fb4-rgb, 223, 227, 216), var(--ui-source-f01699af519fb4-alpha, 1))}
html[data-ui="mobile"] .m-tool-mode>div{display:grid;gap:4px;min-width:0}
html[data-ui="mobile"] .m-tool-mode strong{font-size:1.25rem;font-weight:600}
html[data-ui="mobile"] .m-tool-search{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:end}
html[data-ui="mobile"] .m-tool-search>.m-control{margin-bottom:0;max-width:7em}
html[data-ui="mobile"] .m-tool-search .m-field{margin:0}
html[data-ui="mobile"] .m-tool-hint{font-size:.875rem;line-height:1.55;color:rgba(var(--ui-source-1232620ea56a32-rgb, 86, 102, 92), var(--ui-source-1232620ea56a32-alpha, 1));margin:0;overflow-wrap:anywhere}
html[data-ui="mobile"] .m-tool-search+.m-tool-hint{margin-top:-16px}
html[data-ui="mobile"] .m-tool-list-meta{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 12px;min-width:0}
html[data-ui="mobile"] .m-tool-list-meta>p{margin:0;color:rgba(var(--ui-source-fa6d6951ac5cc7-rgb, 86, 102, 92), var(--ui-source-fa6d6951ac5cc7-alpha, 1));font-size:.875rem;flex:1 1 8rem;overflow-wrap:anywhere}
html[data-ui="mobile"] .m-tool-list-meta .m-actions{gap:8px}
html[data-ui="mobile"] .m-tool-character-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(7rem,100%),1fr));gap:12px}
html[data-ui="mobile"] .m-tool-character-grid .m-control{display:block;min-width:0}
html[data-ui="mobile"] .m-tool-character-grid .m-button{display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;height:100%;padding:16px 8px;gap:4px;border-color:rgba(var(--ui-source-fdf61c372ee32a-rgb, 120, 137, 121), var(--ui-source-fdf61c372ee32a-alpha, 1));background:rgba(var(--ui-source-0a75744f389765-rgb, 255, 254, 250), var(--ui-source-0a75744f389765-alpha, 1));font-weight:400;min-width:0}
html[data-ui="mobile"] .m-tool-character-grid small{font-size:.875rem;color:rgba(var(--ui-source-1232620ea56a32-rgb, 86, 102, 92), var(--ui-source-1232620ea56a32-alpha, 1));font-weight:400}
html[data-ui="mobile"] .m-tool-reading{font-size:.875rem;color:rgba(var(--ui-source-fa6d6951ac5cc7-rgb, 86, 102, 92), var(--ui-source-fa6d6951ac5cc7-alpha, 1));overflow-wrap:anywhere}
html[data-ui="mobile"] .m-tool-glyph{font-family:NameHuiwenMincho,"Songti SC","Noto Serif CJK SC",serif;font-size:2rem;line-height:1.4;font-weight:400}
html[data-ui="mobile"] .m-tool-character-hero{display:flex;align-items:center;gap:16px;padding-block:8px 20px;border-bottom:1px solid rgba(var(--ui-source-077b777d8d840d-rgb, 223, 227, 216), var(--ui-source-077b777d8d840d-alpha, 1));flex-wrap:wrap}
html[data-ui="mobile"] .m-tool-character-hero>.m-tool-glyph{font-size:3rem;min-width:1.4em}
html[data-ui="mobile"] .m-tool-character-hero>div{flex:1;min-width:7rem}
html[data-ui="mobile"] .m-tool-character-hero p{margin:4px 0 0;color:rgba(var(--ui-source-fa6d6951ac5cc7-rgb, 86, 102, 92), var(--ui-source-fa6d6951ac5cc7-alpha, 1))}
html[data-ui="mobile"] .m-tool-checks{display:flex;flex-wrap:wrap;gap:8px 16px}
html[data-ui="mobile"] .m-tool-checks .m-field{margin:0;min-width:4rem}
html[data-ui="mobile"] .m-tool-pager{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:20px;padding-top:12px;border-top:1px solid rgba(var(--ui-source-e6876c51162d48-rgb, 223, 227, 216), var(--ui-source-e6876c51162d48-alpha, 1));font-size:.875rem}
html[data-ui="mobile"] .m-tool-pager>span{min-width:0;text-align:center}
html[data-ui="mobile"] .m-tool-directory{display:grid;min-width:0}
html[data-ui="mobile"] .m-tool-directory>.m-control{display:block;border-bottom:1px solid rgba(var(--ui-source-f01699af519fb4-rgb, 223, 227, 216), var(--ui-source-f01699af519fb4-alpha, 1))}
html[data-ui="mobile"] .m-tool-directory>.m-control:last-child{border-bottom:0}
html[data-ui="mobile"] .m-tool-directory .m-button{position:relative;width:100%;text-align:start;display:flex;flex-direction:column;align-items:flex-start;gap:4px;padding:14px 8px;font-weight:500}
html[data-ui="mobile"] .m-tool-directory .m-button>small{font-size:.875rem;color:rgba(var(--ui-source-1232620ea56a32-rgb, 86, 102, 92), var(--ui-source-1232620ea56a32-alpha, 1));font-weight:400;text-align:start}
html[data-ui="mobile"] .m-tool-directory .m-button>span[aria-hidden]{position:absolute;right:8px;top:14px}
html[data-ui="mobile"] .m-tool-directory .m-button:has(>span[aria-hidden]){padding-right:28px}
html[data-ui="mobile"] .m-tool-list-head{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:12px}
html[data-ui="mobile"] .m-tool-records,html[data-ui="mobile"] .m-material-records{display:grid;gap:0}
html[data-ui="mobile"] .m-tool-record,html[data-ui="mobile"] .m-material-record{padding:18px 0;border-bottom:1px solid rgba(var(--ui-source-f01699af519fb4-rgb, 223, 227, 216), var(--ui-source-f01699af519fb4-alpha, 1));min-width:0}
html[data-ui="mobile"] .m-tool-record{display:flex;align-items:center;justify-content:space-between;gap:8px}
html[data-ui="mobile"] .m-tool-record>div{min-width:0}
html[data-ui="mobile"] .m-tool-record h2{font:600 1.125rem/1.5 system-ui;margin:0;overflow-wrap:anywhere}
html[data-ui="mobile"] .m-tool-record p{font-size:.875rem;color:rgba(var(--ui-source-fa6d6951ac5cc7-rgb, 86, 102, 92), var(--ui-source-fa6d6951ac5cc7-alpha, 1));margin:4px 0}
html[data-ui="mobile"] .m-material-record{display:grid;gap:8px}
html[data-ui="mobile"] .m-material-record-title{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap}
html[data-ui="mobile"] .m-material-record-title h3{margin:0;font-size:1.25rem;line-height:1.5;overflow-wrap:anywhere}
html[data-ui="mobile"] .m-material-record-actions{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
html[data-ui="mobile"] .m-material-record-actions .m-field{margin:0}
html[data-ui="mobile"] .m-material-record-actions .m-actions{gap:4px}

html[data-ui="mobile"] .m-tool-two-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(9rem,100%),1fr));gap:12px}
html[data-ui="mobile"] .m-tool-task-list{display:grid;gap:24px}
html[data-ui="mobile"] .m-tool-task{display:grid;gap:12px;padding-bottom:20px;border-bottom:1px solid rgba(var(--ui-source-f01699af519fb4-rgb, 223, 227, 216), var(--ui-source-f01699af519fb4-alpha, 1));min-width:0}
html[data-ui="mobile"] .m-tool-task:last-child{border-bottom:0}
html[data-ui="mobile"] .m-tool-task>p{margin:0;overflow-wrap:anywhere}
html[data-ui="mobile"] [data-m-tools-page="tasks"] .m-tool-two-fields>.m-semantic{display:contents}
html[data-ui="mobile"] [data-m-tools-page="tasks"] .m-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(6rem,100%),1fr));gap:16px}
html[data-ui="mobile"] [data-m-tools-page="tasks"] .m-metrics>div{min-width:0}

/* Subpages retain the same reading scale; detail forms are separate tasks. */
html[data-ui="mobile"] .m-tools-page .m-metrics{grid-template-columns:repeat(auto-fit,minmax(min(6rem,100%),1fr))}
html[data-ui="mobile"] .m-tools-page .m-details>.m-semantic,
html[data-ui="mobile"] .m-layer-content .m-details>.m-semantic{margin-top:12px}
html[data-ui="mobile"] .m-material-record>h3{margin:0;font-size:1.125rem;line-height:1.5;font-weight:600}
html[data-ui="mobile"] .m-favorable-result{display:grid;gap:16px}
html[data-ui="mobile"] .m-favorable-result .nf-empty>span{display:none}
html[data-ui="mobile"] .m-favorable-result .nf-empty h2{font-size:1.125rem}
html[data-ui="mobile"] .m-favorable-result .nf-empty p,
html[data-ui="mobile"] .m-favorable-result .nf-result-note{font-size:.875rem;color:rgba(var(--ui-source-fa6d6951ac5cc7-rgb, 86, 102, 92), var(--ui-source-fa6d6951ac5cc7-alpha, 1))}
html[data-ui="mobile"] .m-favorable-result .nf-conclusion{display:flex;gap:12px;padding:16px 0;border-block:1px solid rgba(var(--ui-source-e6876c51162d48-rgb, 223, 227, 216), var(--ui-source-e6876c51162d48-alpha, 1))}
html[data-ui="mobile"] .m-favorable-result .nf-conclusion-mark{color:rgba(var(--ui-source-e6a87dd0bbd1f1-rgb, 49, 94, 75), var(--ui-source-e6a87dd0bbd1f1-alpha, 1));font-size:1.5rem}
html[data-ui="mobile"] .m-favorable-result .nf-conclusion small{color:rgba(var(--ui-source-1232620ea56a32-rgb, 86, 102, 92), var(--ui-source-1232620ea56a32-alpha, 1))}
html[data-ui="mobile"] .m-favorable-result .nf-char-list{display:grid}
html[data-ui="mobile"] .m-favorable-result .nf-char{display:grid;grid-template-columns:2rem minmax(0,1fr);gap:12px;padding:16px 0;border-bottom:1px solid rgba(var(--ui-source-077b777d8d840d-rgb, 223, 227, 216), var(--ui-source-077b777d8d840d-alpha, 1))}
html[data-ui="mobile"] .m-favorable-result .nf-char>b{font-size:1.75rem;font-weight:400}
html[data-ui="mobile"] .m-favorable-result .nf-char>div{display:grid;gap:4px}
html[data-ui="mobile"] .m-favorable-result .nf-char-state{grid-column:2;color:rgba(var(--ui-source-fa6d6951ac5cc7-rgb, 86, 102, 92), var(--ui-source-fa6d6951ac5cc7-alpha, 1));font-size:.875rem}
html[data-ui="mobile"] .m-tool-record>.m-control{flex:0 0 auto;max-width:7rem}
html[data-ui="mobile"] .m-tool-record .m-button{white-space:normal}
html[data-ui="mobile"] .m-layer-content .m-tool-records+.m-button{margin-top:16px}
html[data-ui="mobile"] #nf-error:empty{display:none}
html[data-ui="mobile"] [data-m-tools-page="globalSearch"] .m-tool-checks{gap:8px}
html[data-ui="mobile"] [data-m-tools-page="globalSearch"] .m-tool-checks .m-field{min-width:3.25rem}
html[data-ui="mobile"] .m-tool-permissions{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(9rem,100%),1fr))}

/* Five short element choices share a row at ordinary size and reflow with text. */
html[data-ui="mobile"] .m-tool-elements{display:grid;grid-template-columns:repeat(auto-fit,minmax(3.75rem,1fr));gap:4px}
html[data-ui="mobile"] .m-tool-elements .m-field--check{grid-template-columns:44px minmax(0,1fr);gap:0;min-width:0}

html[data-ui="mobile"] .m-tools-layer{display:flex;flex-direction:column;gap:16px;min-width:0}
html[data-ui="mobile"] .m-tools-layer>.m-tool-checks{gap:8px}
html[data-ui="mobile"] .m-semantic[data-m-view="materials"] .m-flow:has(>.m-control+.m-control),
html[data-ui="mobile"] .m-semantic[data-m-view="users"] .m-flow:has(>.m-control+.m-control){display:flex;flex-wrap:wrap;gap:8px;align-items:center}

html[data-ui="mobile"] [data-tools-dialog] .m-flow:has(>.m-control+.m-control){display:flex;flex-wrap:wrap;gap:8px;align-items:center}
html[data-ui="mobile"] [data-tools-dialog] .m-flow:has(>.m-stack>.m-field){display:grid;gap:12px}
html[data-ui="mobile"] [data-tools-dialog] .m-field+.m-field{margin-top:12px}
html[data-ui="mobile"] .m-tools-layer .m-semantic[data-m-view="poetry"] pre{font:inherit;line-height:1.8;white-space:pre-wrap}

/* Each tool groups its own query, result and editing regions. */
html[data-ui="mobile"] .m-tools-page{display:flex;flex-direction:column;gap:16px}
html[data-ui="mobile"] .m-tools-page>.m-section{margin:0}
html[data-ui="mobile"] .m-tool-query-block{display:grid;gap:10px;padding-bottom:12px;border-bottom:1px solid rgba(var(--ui-source-f01699af519fb4-rgb, 223, 227, 216), var(--ui-source-f01699af519fb4-alpha, 1))}
html[data-ui="mobile"] .m-tool-query-block .m-field{margin:0}
html[data-ui="mobile"] .m-tool-mode{padding-bottom:10px}
html[data-ui="mobile"] .m-tool-mode>div{display:flex;gap:10px;align-items:baseline;flex-wrap:wrap}
html[data-ui="mobile"] .m-tool-mode strong{font-size:1rem;font-weight:600}
html[data-ui="mobile"] .m-tool-results{display:grid;gap:12px;min-width:0}
html[data-ui="mobile"] .m-tool-property-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(9rem,100%),1fr));gap:12px}
html[data-ui="mobile"] .m-form-section{display:grid;gap:14px}
html[data-ui="mobile"] .m-form-section .m-field{margin:0}
html[data-ui="mobile"] .m-task-summary{display:flex;align-items:center;gap:16px;flex-wrap:wrap;color:rgba(var(--ui-source-fa6d6951ac5cc7-rgb, 86, 102, 92), var(--ui-source-fa6d6951ac5cc7-alpha, 1));font-size:.875rem}
html[data-ui="mobile"] .m-task-summary b{font-size:1.25rem;color:var(--m-text);font-variant-numeric:tabular-nums;font-weight:600}
html[data-ui="mobile"] .m-task-summary>.m-control{margin-left:auto}
html[data-ui="mobile"] .m-task-feed{display:grid}
html[data-ui="mobile"] .m-task-row{padding:14px 0;border-bottom:1px solid rgba(var(--ui-source-f01699af519fb4-rgb, 223, 227, 216), var(--ui-source-f01699af519fb4-alpha, 1));min-width:0}
html[data-ui="mobile"] .m-task-row>.m-control{display:block}
html[data-ui="mobile"] .m-task-row .m-button{width:100%;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 12px;text-align:left;padding:0;font-weight:500}
html[data-ui="mobile"] .m-task-row small{grid-column:1/-1;font-size:.875rem;font-weight:400;color:rgba(var(--ui-source-1232620ea56a32-rgb, 86, 102, 92), var(--ui-source-1232620ea56a32-alpha, 1));overflow-wrap:anywhere}
html[data-ui="mobile"] .m-task-state{font-size:.875rem;font-weight:400;color:rgba(var(--ui-source-fa6d6951ac5cc7-rgb, 86, 102, 92), var(--ui-source-fa6d6951ac5cc7-alpha, 1))}
html[data-ui="mobile"] .m-task-state.is-error,html[data-ui="mobile"] .m-task-row .m-task-error{color:rgba(var(--ui-source-d36c95b1b03dbd-rgb, 161, 45, 51), var(--ui-source-d36c95b1b03dbd-alpha, 1))}
html[data-ui="mobile"] .m-material-tools{display:flex;gap:8px;flex-wrap:wrap;padding-bottom:8px;border-bottom:1px solid rgba(var(--ui-source-f01699af519fb4-rgb, 223, 227, 216), var(--ui-source-f01699af519fb4-alpha, 1))}
html[data-ui="mobile"] .m-material-tools .m-button{padding:6px 8px;font-size:.875rem}
html[data-ui="mobile"] .m-material-record>.m-control{display:block}
html[data-ui="mobile"] .m-material-record>.m-control>.m-button{width:100%;display:flex;flex-direction:column;align-items:flex-start;text-align:left;padding:0;gap:6px;font-size:1.125rem}
html[data-ui="mobile"] .m-material-record>.m-control small{font-size:.875rem;color:rgba(var(--ui-source-1232620ea56a32-rgb, 86, 102, 92), var(--ui-source-1232620ea56a32-alpha, 1));font-weight:400;line-height:1.5}
html[data-ui="mobile"] .m-material-choice-detail{display:flex;align-items:center;justify-content:space-between;gap:8px}
html[data-ui="mobile"] .m-definition-head{display:flex;gap:16px;align-items:center;padding:8px 0 16px;border-bottom:1px solid rgba(var(--ui-source-f01699af519fb4-rgb, 223, 227, 216), var(--ui-source-f01699af519fb4-alpha, 1))}
html[data-ui="mobile"] .m-seasonal-context{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:4px 0 12px;border-bottom:1px solid rgba(var(--ui-source-b06890d6f50be8-rgb, 223, 227, 216), var(--ui-source-b06890d6f50be8-alpha, 1))}
html[data-ui="mobile"] .m-seasonal-context>div{min-width:0;flex:1}
html[data-ui="mobile"] .m-seasonal-context h2{font:500 1.375rem/1.5 var(--m-heading-font);margin:6px 0 0}
html[data-ui="mobile"] .m-seasonal-context>.m-control{flex:0 0 auto;max-width:7em}
html[data-ui="mobile"] .m-poetry-names{display:grid;gap:0}
html[data-ui="mobile"] .m-poetry-name{padding:18px 0;border-bottom:1px solid rgba(var(--ui-source-077b777d8d840d-rgb, 223, 227, 216), var(--ui-source-077b777d8d840d-alpha, 1));display:grid;gap:10px;min-width:0}
html[data-ui="mobile"] .m-poetry-name-head{display:flex;align-items:center;gap:12px;justify-content:space-between;flex-wrap:wrap}
html[data-ui="mobile"] .m-poetry-name-head .m-button--name{padding:0;text-align:start;font-size:1.75rem}
html[data-ui="mobile"] .m-poetry-source-line{font:400 1rem/1.7 var(--m-heading-font);margin:0;color:var(--m-text)}
html[data-ui="mobile"] .m-poetry-source-line:empty{display:none}
html[data-ui="mobile"] .m-poetry-name-footer{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
html[data-ui="mobile"] .m-poetry-name-footer>.m-tool-hint{flex:1 1 8rem}
html[data-ui="mobile"] .m-poetry-name-footer .m-button{padding:6px 12px}
html[data-ui="mobile"] .m-tool-native-editor{display:grid;gap:20px}
html[data-ui="mobile"] .m-tool-native-editor .m-editor-fields{display:grid;gap:12px}
html[data-ui="mobile"] .m-tool-native-editor .m-editor-fields>.m-field{margin:0}
html[data-ui="mobile"] .m-tool-native-editor .m-editor-note{font-size:.875rem;line-height:1.6;color:rgba(var(--ui-source-fa6d6951ac5cc7-rgb, 86, 102, 92), var(--ui-source-fa6d6951ac5cc7-alpha, 1));white-space:pre-wrap;overflow-wrap:anywhere}
html[data-ui="mobile"] .m-zodiac-art-list{display:grid;gap:0}
html[data-ui="mobile"] .m-zodiac-art-item{display:grid;grid-template-columns:72px minmax(0,1fr);gap:14px;align-items:center;padding:14px 0;border-bottom:1px solid rgba(var(--ui-source-f01699af519fb4-rgb, 223, 227, 216), var(--ui-source-f01699af519fb4-alpha, 1))}
html[data-ui="mobile"] .m-zodiac-art-thumb{aspect-ratio:3/4;border-radius:6px;background:rgba(var(--ui-source-0e3d693f818f5d-rgb, 233, 238, 229), var(--ui-source-0e3d693f818f5d-alpha, 1));display:grid;place-items:center;overflow:hidden;color:rgba(var(--ui-source-fa6d6951ac5cc7-rgb, 86, 102, 92), var(--ui-source-fa6d6951ac5cc7-alpha, 1));font-size:1.75rem}
html[data-ui="mobile"] .m-zodiac-art-thumb img{width:100%;height:100%;object-fit:contain}
html[data-ui="mobile"] .m-zodiac-art-item .m-button{width:100%;text-align:start;display:grid;justify-items:start;gap:6px;padding:0}
html[data-ui="mobile"] .m-zodiac-art-item small{font-size:.875rem;color:rgba(var(--ui-source-1232620ea56a32-rgb, 86, 102, 92), var(--ui-source-1232620ea56a32-alpha, 1));font-weight:400}
html[data-ui="mobile"] .m-zodiac-preview{margin:0;text-align:center;background:rgba(var(--ui-source-0e3d693f818f5d-rgb, 233, 238, 229), var(--ui-source-0e3d693f818f5d-alpha, 1));border-radius:8px;overflow:hidden}
html[data-ui="mobile"] .m-zodiac-preview img{max-width:100%;max-height:300px;object-fit:contain}
html[data-ui="mobile"] .m-zodiac-preview>span{display:block;padding:40px;font-size:2rem}
/* Reading and review surfaces have their own rhythm, without nested cards. */
html[data-ui="mobile"] .m-tool-records>.m-control{display:block;border-bottom:1px solid rgba(var(--ui-source-f01699af519fb4-rgb, 223, 227, 216), var(--ui-source-f01699af519fb4-alpha, 1))}
html[data-ui="mobile"] .m-tool-records>.m-control:last-child{border-bottom:0}
html[data-ui="mobile"] .m-tool-records .m-button--row{padding:14px 0}
html[data-ui="mobile"] .m-tool-selection-list{display:grid;gap:6px}
html[data-ui="mobile"] .m-review-choice{padding:12px 0;border-bottom:1px solid rgba(var(--ui-source-f01699af519fb4-rgb, 223, 227, 216), var(--ui-source-f01699af519fb4-alpha, 1))}
html[data-ui="mobile"] .m-review-choice .m-field{margin:0}
html[data-ui="mobile"] .m-review-choice>.m-tool-hint{padding-left:52px}
html[data-ui="mobile"] .m-tool-character-grid [aria-pressed="true"]{background:rgba(var(--ui-source-aad48039359c97-rgb, 49, 94, 75), var(--ui-source-aad48039359c97-alpha, 1));color:rgba(var(--ui-source-05208d6a33511d-rgb, 255, 255, 255), var(--ui-source-05208d6a33511d-alpha, 1));border-color:rgba(var(--ui-source-b2e8db235435f5-rgb, 49, 94, 75), var(--ui-source-b2e8db235435f5-alpha, 1))}
html[data-ui="mobile"] .m-tool-character-grid [aria-pressed="true"] small{color:inherit}
html[data-ui="mobile"] .m-poetry-reading h2{font:500 1.5rem/1.5 var(--m-heading-font);margin:8px 0}
html[data-ui="mobile"] .m-poem-text{white-space:pre-wrap;font:400 1.0625rem/1.9 var(--m-heading-font);padding:20px 0;overflow-wrap:anywhere}
html[data-ui="mobile"] .m-poetry-reading>.m-section{margin-top:20px}
html[data-ui="mobile"] .m-ocr-candidate{padding:16px 0;border-bottom:1px solid rgba(var(--ui-source-f01699af519fb4-rgb, 223, 227, 216), var(--ui-source-f01699af519fb4-alpha, 1));display:grid;gap:8px}
html[data-ui="mobile"] .m-ocr-candidate>.m-field{margin:0}
html[data-ui="mobile"] .m-ocr-candidate>.m-field label{font-size:1.125rem}
html[data-ui="mobile"] .m-ocr-image{position:relative;margin:12px 0}
html[data-ui="mobile"] .m-ocr-image img{display:block;width:100%;height:auto}
html[data-ui="mobile"] .m-ocr-box{position:absolute;border:1px solid rgba(var(--ui-source-dfc162808e0331-rgb, 176, 68, 51), var(--ui-source-dfc162808e0331-alpha, 1));pointer-events:none;box-sizing:border-box}
html[data-ui="mobile"] .m-compare-result{padding:14px 0;border-bottom:1px solid rgba(var(--ui-source-077b777d8d840d-rgb, 223, 227, 216), var(--ui-source-077b777d8d840d-alpha, 1));display:grid;gap:10px}
html[data-ui="mobile"] .m-compare-result>.m-control{display:block}
html[data-ui="mobile"] .m-compare-result .m-row-label{font-family:var(--m-heading-font);font-size:1.5rem}
html[data-ui="mobile"] .m-compare-element-line{display:flex;gap:20px;flex-wrap:wrap;color:rgba(var(--ui-source-fa6d6951ac5cc7-rgb, 86, 102, 92), var(--ui-source-fa6d6951ac5cc7-alpha, 1));font-size:.875rem}
html[data-ui="mobile"] .m-compare-element-line b{font-size:1.125rem;font-weight:500;color:var(--m-text)}
html[data-ui="mobile"] .m-release-current{padding-bottom:16px;border-bottom:1px solid rgba(var(--ui-source-f01699af519fb4-rgb, 223, 227, 216), var(--ui-source-f01699af519fb4-alpha, 1))}
html[data-ui="mobile"] .m-release-current h2{font-size:1.75rem;margin:8px 0}
html[data-ui="mobile"] .m-release-current p{margin:0;color:rgba(var(--ui-source-fa6d6951ac5cc7-rgb, 86, 102, 92), var(--ui-source-fa6d6951ac5cc7-alpha, 1))}
html[data-ui="mobile"] .m-tools-layer>.m-section{margin:0}
html[data-ui="mobile"] .m-tools-layer .m-details>div{margin-top:12px}
html[data-ui="mobile"] .m-tools-layer pre.m-reading{white-space:pre-wrap;font:inherit;overflow-wrap:anywhere}

/* Group spacing is owned by the native editor, without stacked section margins. */
.m-tool-native-editor > .m-section { margin:0; }

.m-ocr-review-fields { border:0; padding:0; margin:0; min-width:0; display:grid; gap:16px; }
.m-ocr-review-fields > legend { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }

.m-seasonal-name-actions { display:flex; gap:8px; flex-wrap:wrap; align-items:center; }

.m-admin-overview .m-metrics { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px 16px; }
.m-admin-rule-count { display:flex; align-items:baseline; justify-content:space-between; flex-wrap:wrap; gap:8px; margin:0; padding:12px 0; border-bottom:1px solid rgba(var(--ui-source-f01699af519fb4-rgb, 223, 227, 216), var(--ui-source-f01699af519fb4-alpha, 1)); color:rgba(var(--ui-source-fa6d6951ac5cc7-rgb, 86, 102, 92), var(--ui-source-fa6d6951ac5cc7-alpha, 1)); }
.m-admin-rule-count strong { color:var(--m-text); font-weight:500; font-variant-numeric:tabular-nums; }

/* V3.38: task-specific mobile compositions using the shared theme and type. */
html[data-ui="mobile"] .m-tools-page .m-section>h2,
html[data-ui="mobile"] .m-tools-layer .m-section>h2{margin-block:0 10px}
html[data-ui="mobile"] .m-tool-record h2{font-family:inherit;font-weight:400}
html[data-ui="mobile"] .m-tool-glyph{font-family:inherit}
html[data-ui="mobile"] .m-tool-directory{grid-template-columns:repeat(auto-fit,minmax(min(9rem,100%),1fr));gap:10px}
html[data-ui="mobile"] .m-tool-directory>.m-control{border:0;min-width:0}
html[data-ui="mobile"] .m-tool-directory .m-button{height:100%;padding:14px 12px;background:rgba(var(--ui-source-9b98279008816d-rgb, 255, 254, 250), var(--ui-source-9b98279008816d-alpha, 1));border:1px solid rgba(var(--ui-source-b8347785fb9745-rgb, 223, 227, 216), var(--ui-source-b8347785fb9745-alpha, 1));border-radius:10px;justify-content:center;min-height:64px}
html[data-ui="mobile"] .m-tool-directory .m-button>span[aria-hidden]{display:none}
html[data-ui="mobile"] .m-tool-directory .m-button:has(>span[aria-hidden]){padding-right:12px}
html[data-ui="mobile"] .m-tool-mode{border-bottom:0;padding:10px 12px;background:rgba(var(--ui-source-0e3d693f818f5d-rgb, 233, 238, 229), var(--ui-source-0e3d693f818f5d-alpha, 1));border-radius:10px;align-items:center}
html[data-ui="mobile"] .m-tool-mode .m-label{font-size:.8125rem}
html[data-ui="mobile"] .m-tool-mode strong{font-size:1.0625rem}
html[data-ui="mobile"] .m-tool-mode .m-button{padding:8px;min-width:48px}
html[data-ui="mobile"] .m-admin-dashboard{display:grid;gap:14px;padding:18px;border:1px solid rgba(var(--ui-source-e6876c51162d48-rgb, 223, 227, 216), var(--ui-source-e6876c51162d48-alpha, 1));border-radius:16px;background:rgba(var(--ui-source-fbdd7b606ac8f8-rgb, 255, 254, 250), var(--ui-source-fbdd7b606ac8f8-alpha, 1))}
html[data-ui="mobile"] .m-admin-hero{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-bottom:12px;border-bottom:1px solid rgba(var(--ui-source-f01699af519fb4-rgb, 223, 227, 216), var(--ui-source-f01699af519fb4-alpha, 1))}
html[data-ui="mobile"] .m-admin-hero>div{min-width:0;display:grid;gap:4px}
html[data-ui="mobile"] .m-admin-hero strong{font-size:2.375rem;line-height:1.3;color:rgba(var(--ui-source-e6a87dd0bbd1f1-rgb, 49, 94, 75), var(--ui-source-e6a87dd0bbd1f1-alpha, 1));font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
html[data-ui="mobile"] .m-admin-hero p{margin:0;font-size:.875rem;color:rgba(var(--ui-source-fa6d6951ac5cc7-rgb, 86, 102, 92), var(--ui-source-fa6d6951ac5cc7-alpha, 1))}
html[data-ui="mobile"] .m-admin-seal{display:grid;place-content:center;text-align:center;flex:0 0 auto;min-width:64px;min-height:74px;padding:8px 10px;border:1px solid rgba(var(--ui-source-e6876c51162d48-rgb, 223, 227, 216), var(--ui-source-e6876c51162d48-alpha, 1));outline:1px solid rgba(var(--ui-source-e6876c51162d48-rgb, 223, 227, 216), var(--ui-source-e6876c51162d48-alpha, 1));outline-offset:-5px;border-radius:5px;color:rgba(var(--ui-source-e6a87dd0bbd1f1-rgb, 49, 94, 75), var(--ui-source-e6a87dd0bbd1f1-alpha, 1));background:rgba(var(--ui-source-0e3d693f818f5d-rgb, 233, 238, 229), var(--ui-source-0e3d693f818f5d-alpha, 1));font-size:1.25rem;line-height:1.6}
html[data-ui="mobile"] .m-admin-dashboard .m-metrics{grid-template-columns:repeat(auto-fit,minmax(min(5rem,100%),1fr));gap:10px;margin:0}
html[data-ui="mobile"] .m-admin-dashboard .m-metrics>div{padding:0;border:0;background:transparent}
html[data-ui="mobile"] .m-admin-dashboard .m-metrics strong{font-size:1.25rem}
html[data-ui="mobile"] .m-management-showcase{display:grid;gap:24px;min-width:0}
html[data-ui="mobile"] .m-management-showcase>.m-section{margin:0}
html[data-ui="mobile"] .m-management-accounts,
html[data-ui="mobile"] .m-management-content{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
html[data-ui="mobile"] .m-management-showcase .m-control{min-width:0;display:block}
html[data-ui="mobile"] .m-management-showcase .m-button--feature{width:100%;height:100%;text-align:left;display:grid;align-content:start;justify-items:start;gap:12px;padding:16px 14px;background:rgba(var(--ui-source-9b98279008816d-rgb, 255, 254, 250), var(--ui-source-9b98279008816d-alpha, 1));border:1px solid rgba(var(--ui-source-b8347785fb9745-rgb, 223, 227, 216), var(--ui-source-b8347785fb9745-alpha, 1));border-radius:14px;color:rgba(var(--ui-source-035ff2d84dd55e-rgb, 44, 59, 51), var(--ui-source-035ff2d84dd55e-alpha, 1));box-shadow:0 3px 12px rgba(var(--ui-source-e2c383f5264307-rgb, 23, 44, 32), var(--ui-source-e2c383f5264307-alpha, 0.0196078431))}
html[data-ui="mobile"] .m-management-showcase .m-feature-copy{display:grid;gap:6px;min-width:0}
html[data-ui="mobile"] .m-management-showcase .m-feature-copy strong{font-size:1.125rem;line-height:1.45}
html[data-ui="mobile"] .m-management-showcase .m-feature-copy small{font-size:.875rem;line-height:1.5;color:rgba(var(--ui-source-1232620ea56a32-rgb, 86, 102, 92), var(--ui-source-1232620ea56a32-alpha, 1))}
html[data-ui="mobile"] .m-management-showcase .m-feature-art{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:rgba(var(--ui-source-8f67db8c5dc606-rgb, 233, 238, 229), var(--ui-source-8f67db8c5dc606-alpha, 1));color:rgba(var(--ui-source-e6a87dd0bbd1f1-rgb, 49, 94, 75), var(--ui-source-e6a87dd0bbd1f1-alpha, 1))}
html[data-ui="mobile"] .m-management-accounts .m-button--feature{min-height:144px}
html[data-ui="mobile"] .m-management-accounts .is-account{background:rgba(var(--ui-source-2f740ba3b4e49d-rgb, 49, 94, 75), var(--ui-source-2f740ba3b4e49d-alpha, 1));color:rgba(var(--ui-source-4d251514031dea-rgb, 255, 254, 250), var(--ui-source-4d251514031dea-alpha, 1))}
html[data-ui="mobile"] .m-management-accounts .is-account .m-feature-copy small{color:inherit;opacity:.95}
html[data-ui="mobile"] .m-management-accounts .is-account .m-feature-art{background:transparent;color:inherit;border:1px solid currentColor}
html[data-ui="mobile"] .m-management-content .m-button--feature{gap:10px;min-height:136px}
html[data-ui="mobile"] .m-management-content .is-library{background:rgba(var(--ui-source-0e3d693f818f5d-rgb, 233, 238, 229), var(--ui-source-0e3d693f818f5d-alpha, 1))}
html[data-ui="mobile"] .m-management-running .m-button--feature{grid-template-columns:auto minmax(0,1fr);align-items:center;padding:16px;gap:14px}
html[data-ui="mobile"] .m-management-running .m-feature-copy strong{font-size:1rem}
html[data-ui="mobile"] .m-tool-collection+.m-tool-collection{margin-top:6px}
html[data-ui="mobile"] .m-tool-result-cell{position:relative}
html[data-ui="mobile"] .m-tool-result-mark{position:absolute;right:2px;top:1px;display:grid;place-items:center;width:15px;height:15px;border-radius:50%;font-size:.75rem;line-height:1;color:rgba(var(--ui-source-58fbdf12bb4e30-rgb, 121, 87, 29), var(--ui-source-58fbdf12bb4e30-alpha, 1));background:rgba(var(--ui-source-0e3d693f818f5d-rgb, 233, 238, 229), var(--ui-source-0e3d693f818f5d-alpha, 1))}
html[data-ui="mobile"] .m-tool-warning-key{font-size:.875rem;line-height:1.5;color:rgba(var(--ui-source-5f156466d3f2b4-rgb, 121, 87, 29), var(--ui-source-5f156466d3f2b4-alpha, 1));margin:0 0 10px}
html[data-ui="mobile"] .m-tool-warning-key>span{display:inline-grid;place-items:center;border:1px solid currentColor;border-radius:50%;width:18px;height:18px;margin-right:4px}
html[data-ui="mobile"] .m-tool-frequency-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(2.75rem,100%),1fr));gap:5px}
html[data-ui="mobile"] .m-tool-frequency-grid>.m-control{min-width:0}
html[data-ui="mobile"] .m-tool-frequency-grid .m-button{display:grid;justify-items:center;gap:2px;padding:8px 2px;min-width:0;width:100%;height:100%;background:rgba(var(--ui-source-0a75744f389765-rgb, 255, 254, 250), var(--ui-source-0a75744f389765-alpha, 1));border:1px solid rgba(var(--ui-source-077b777d8d840d-rgb, 223, 227, 216), var(--ui-source-077b777d8d840d-alpha, 1));border-radius:7px;color:rgba(var(--ui-source-5e7292553b46bd-rgb, 49, 94, 75), var(--ui-source-5e7292553b46bd-alpha, 1))}
html[data-ui="mobile"] .m-tool-frequency-grid .m-tool-glyph{font-size:1.625rem;line-height:1.4}
html[data-ui="mobile"] .m-tool-frequency-grid small{font-size:.75rem;color:rgba(var(--ui-source-1232620ea56a32-rgb, 86, 102, 92), var(--ui-source-1232620ea56a32-alpha, 1))}
html[data-ui="mobile"] .m-compare-results{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(9rem,100%),1fr));gap:10px}
html[data-ui="mobile"] .m-compare-result{padding:12px;background:rgba(var(--ui-source-fbdd7b606ac8f8-rgb, 255, 254, 250), var(--ui-source-fbdd7b606ac8f8-alpha, 1));border:1px solid rgba(var(--ui-source-077b777d8d840d-rgb, 223, 227, 216), var(--ui-source-077b777d8d840d-alpha, 1));border-radius:10px;align-content:start}
html[data-ui="mobile"] .m-compare-result>.m-control{height:100%}
html[data-ui="mobile"] .m-compare-result .m-button{display:grid;justify-items:start;align-content:start;text-align:left;gap:8px;padding:0;width:100%;height:100%;font-size:1.25rem}
html[data-ui="mobile"] .m-compare-verdict{font-size:.875rem;color:rgba(var(--ui-source-035ff2d84dd55e-rgb, 44, 59, 51), var(--ui-source-035ff2d84dd55e-alpha, 1));line-height:1.6;overflow-wrap:anywhere}
html[data-ui="mobile"] .m-task-feed{gap:10px}
html[data-ui="mobile"] .m-task-row{border:1px solid rgba(var(--ui-source-e6876c51162d48-rgb, 223, 227, 216), var(--ui-source-e6876c51162d48-alpha, 1));background:rgba(var(--ui-source-fbdd7b606ac8f8-rgb, 255, 254, 250), var(--ui-source-fbdd7b606ac8f8-alpha, 1));border-radius:10px;padding:14px}
html[data-ui="mobile"] .m-task-state{padding:2px 6px;background:rgba(var(--ui-source-0e3d693f818f5d-rgb, 233, 238, 229), var(--ui-source-0e3d693f818f5d-alpha, 1));border-radius:5px;align-self:start}
html[data-ui="mobile"] .m-seasonal-context{padding:16px;background:rgba(var(--ui-source-f24f8ee0cbcbbe-rgb, 233, 238, 229), var(--ui-source-f24f8ee0cbcbbe-alpha, 1));border:1px solid rgba(var(--ui-source-b06890d6f50be8-rgb, 223, 227, 216), var(--ui-source-b06890d6f50be8-alpha, 1));border-radius:12px;align-items:center}
html[data-ui="mobile"] .m-seasonal-context h2{font-size:1.375rem;line-height:1.5}
html[data-ui="mobile"] .m-zodiac-art-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(9rem,100%),1fr));gap:12px}
html[data-ui="mobile"] .m-zodiac-art-item{display:flex;flex-direction:column;align-items:stretch;gap:10px;padding:10px;background:rgba(var(--ui-source-fbdd7b606ac8f8-rgb, 255, 254, 250), var(--ui-source-fbdd7b606ac8f8-alpha, 1));border:1px solid rgba(var(--ui-source-e6876c51162d48-rgb, 223, 227, 216), var(--ui-source-e6876c51162d48-alpha, 1));border-radius:10px}
html[data-ui="mobile"] .m-zodiac-art-thumb{width:100%;max-height:220px}
html[data-ui="mobile"] .m-zodiac-art-item .m-button{min-height:48px}
html[data-ui="mobile"].m-large-type .m-management-accounts,
html[data-ui="mobile"].m-large-type .m-management-content{grid-template-columns:1fr}
@media(max-width:340px){html[data-ui="mobile"] .m-management-showcase .m-button--feature{padding:12px 10px}html[data-ui="mobile"] .m-admin-dashboard{padding:14px}}

html[data-ui="mobile"] .m-tool-frequency-grid[data-m-collection]>.m-control>.m-button{flex-direction:column;gap:2px;padding:6px 2px}

html[data-ui="mobile"] .m-management-showcase>.m-section+.m-section,
html[data-ui="mobile"] .m-tools-page>.m-section+.m-section,
html[data-ui="mobile"] .m-tools-layer>.m-section+.m-section{margin-top:0!important}
html[data-ui="mobile"] [data-m-tools-page="seasonal"],
html[data-ui="mobile"] [data-m-tools-page="reference"]{gap:10px}
html[data-ui="mobile"] [data-m-tools-page="seasonal"] .m-seasonal-context{padding:8px 14px}
html[data-ui="mobile"] [data-m-tools-page="seasonal"] .m-tool-results,
html[data-ui="mobile"] [data-m-tools-page="reference"] .m-tool-results{gap:8px}
html[data-ui="mobile"] [data-m-tools-page="reference"] .m-tool-query-block{padding-bottom:4px;gap:8px}
html[data-ui="mobile"] .m-reference-results-head{display:flex;align-items:stretch;gap:6px;min-width:0}
html[data-ui="mobile"] .m-reference-results-head .m-tabs{flex:1;min-width:0;margin:0}
html[data-ui="mobile"] .m-reference-results-head>.m-control{flex:0 0 auto;max-width:6rem}
html[data-ui="mobile"] .m-reference-results-head>.m-control>.m-button{padding:8px 4px;height:100%;min-height:48px;font-size:.875rem}
html[data-ui="mobile"].m-large-type .m-reference-results-head{flex-wrap:wrap}

html[data-ui="mobile"] .m-tool-collection>.m-control>.m-button:has(.m-tool-result-rank){flex-direction:column;gap:2px}
html[data-ui="mobile"] .m-tool-result-rank{font-size:.75rem;line-height:1.4;color:rgba(var(--ui-source-fa6d6951ac5cc7-rgb, 86, 102, 92), var(--ui-source-fa6d6951ac5cc7-alpha, 1))}
