/* Homepage mobile skin. Scoped to this route and layout; desktop and tools are unchanged. */
html:not([data-home-layout="mobile"]) .mh-only, .mh-layout-switch[hidden] { display:none !important; }
html[data-home-layout="mobile"] body[data-page="/"] {
    color-scheme: dark;
    --mh-bg:#041017; --mh-panel:#0b222c; --mh-panel-dark:#071923;
    --mh-border:#254653; --mh-text:#f5f8fa; --mh-muted:#c3d4df;
    --mh-accent:#61ff85; --mh-accent-deep:#08752c; --mh-accent-rgb:73 255 116;
    --canvas:var(--mh-bg); --paper:var(--mh-panel); --ink:var(--mh-text); --muted:var(--mh-muted);
    --green:var(--mh-accent); --green-dark:var(--mh-accent); --green-soft:#0e352a; --line:var(--mh-border);
    min-width:0; margin:0; background:var(--mh-bg); color:var(--mh-text);
    font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
    zoom:1; padding-bottom:calc(76px + env(safe-area-inset-bottom,0px));
    overflow-wrap:anywhere; scroll-padding-top:78px;
}
html[data-home-layout="mobile"][data-extratools-theme="blue"] body[data-page="/"] { --mh-accent:#65d4ff; --mh-accent-deep:#07548f; --mh-accent-rgb:65 190 255; --green:var(--mh-accent); --green-dark:var(--mh-accent); --green-soft:#0d2d47; }
html[data-home-layout="mobile"][data-extratools-theme="red"] body[data-page="/"] { --mh-accent:#ff858c; --mh-accent-deep:#a6253e; --mh-accent-rgb:255 90 110; --green:var(--mh-accent); --green-dark:var(--mh-accent); --green-soft:#401d29; }
html[data-home-layout="mobile"] { scroll-padding-top:78px; }
html[data-home-layout="mobile"] body[data-page="/"] *,html[data-home-layout="mobile"] body[data-page="/"] *::before,html[data-home-layout="mobile"] body[data-page="/"] *::after { box-sizing:border-box; }

html[data-home-layout="mobile"] body[data-page="/"] .mh-only[hidden],html[data-home-layout="mobile"] body[data-page="/"] [hidden] { display:none !important; }
html[data-home-layout="mobile"] body[data-page="/"] .mh-popover:not(.mh-open) { display:none !important; }
html[data-home-layout="mobile"] body[data-page="/"] :is(.site-header,.quick-nav,.home-floating-panel,.mh-desktop-title,#homepage-popular-slot,.hero .eyebrow,.hero .hero-copy,.hero .hero-seo-copy) { display:none !important; }
html[data-home-layout="mobile"] body[data-page="/"] > main.shell,
html[data-home-layout="mobile"] body[data-page="/"] .site-footer .shell { width:min(100% - 24px,1120px); max-width:none; margin-inline:auto; }
html[data-home-layout="mobile"] body[data-page="/"] > main.shell { display:flex; flex-direction:column; gap:clamp(19px,3vw,32px); padding:0; }
html[data-home-layout="mobile"] body[data-page="/"] :is(.home-intro-layout,.home-intro-aside) { display:contents; }
html[data-home-layout="mobile"] body[data-page="/"] .home-intro-aside > .site-preferences { display:none; }
html[data-home-layout="mobile"] body[data-page="/"] :is(a,button,input):focus-visible { outline:2px solid var(--mh-accent); outline-offset:3px; }
html[data-home-layout="mobile"] body[data-page="/"] button { font:inherit; cursor:pointer; }
html[data-home-layout="mobile"] body[data-page="/"] .mh-header { position:sticky; top:0; z-index:80; display:flex !important; gap:clamp(5px,2vw,16px); align-items:center; min-height:58px; padding:calc(7px + env(safe-area-inset-top,0px)) max(12px,env(safe-area-inset-right,0px)) 7px max(12px,env(safe-area-inset-left,0px)); background:radial-gradient(ellipse at 30% 110%,rgb(var(--mh-accent-rgb)/14%),transparent 65%),#041117; border-bottom:1px solid rgb(var(--mh-accent-rgb)/35%); }
.mh-brand { display:flex; align-items:center; gap:9px; flex:1 1 auto; min-width:0; color:#fff !important; font-weight:800; font-size:clamp(17px,4.4vw,32px); letter-spacing:-.05em; text-decoration:none; white-space:nowrap; }
.mh-logo { display:flex; align-items:end; justify-content:center; gap:3px; width:32px; height:32px; flex:none; border-radius:9px; padding:6px; background:linear-gradient(155deg,var(--mh-accent),var(--mh-accent-deep) 55%,#06331f); box-shadow:inset 0 1px 2px #ffffff45,0 3px 12px #0005; }
.mh-logo i { display:block; flex:1; background:#fff; border-radius:2px; height:55%; }
.mh-logo i:nth-child(2){height:100%}.mh-logo i:nth-child(3){height:73%}
html[data-home-layout="mobile"] body[data-page="/"] .mh-icon-button { display:grid; place-items:center; width:40px; min-width:36px; height:44px; padding:7px; flex:none; border:0; background:transparent; color:var(--mh-text); border-radius:9px; }
.mh-icon-button svg { width:24px;height:24px; }
.mh-lang { display:flex; flex:none; border:1px solid #244552; border-radius:999px; overflow:hidden; background:#071b25; }
.mh-lang a { display:grid; place-items:center; min-width:33px; min-height:34px; padding:0 8px; border-radius:999px; text-decoration:none; font-size:12px; font-weight:750; color:var(--mh-text); }
.mh-lang a[aria-current="page"] { color:#041a12; background:linear-gradient(155deg,#c0ffd0,var(--mh-accent) 52%,var(--mh-accent)); box-shadow:0 0 15px rgb(var(--mh-accent-rgb)/24%); }
html[data-home-layout="mobile"] body[data-page="/"] .home-intro-layout .hero { order:0; position:relative; display:block; isolation:isolate; margin:0; padding:clamp(17px,3vw,35px) 0 0; width:100%; min-width:0; }
html[data-home-layout="mobile"] body[data-page="/"] .hero h1 { position:relative; z-index:1; max-width:67%; margin:0 0 10px; font-size:clamp(23px,5.5vw,51px); line-height:1.04; letter-spacing:-.045em; color:var(--mh-text); font-weight:800; }
html[data-home-layout="mobile"] body[data-page="/"] .mh-mobile-title { display:inline !important; color:var(--mh-text) !important; }
.mh-mobile-title strong { display:block; color:var(--mh-accent); font-weight:inherit; }
html[data-home-layout="mobile"] body[data-page="/"] .mh-lead { position:relative; z-index:1; max-width:60%; margin:0 0 16px; color:var(--mh-muted); font-size:clamp(12.5px,2.35vw,23px); line-height:1.36; }
html[data-home-layout="mobile"] body[data-page="/"] .mh-hero-art { position:absolute; top:3px; right:-9px; width:42%; height:clamp(125px,28vw,290px); background:url('home-mobile-hero.webp') center right/contain no-repeat; z-index:-1; pointer-events:none; -webkit-mask-image:linear-gradient(to right,transparent,#000 13%,#000 95%,transparent); mask-image:linear-gradient(to right,transparent,#000 13%,#000 95%,transparent); }
html[data-extratools-theme="blue"] .mh-hero-art { filter:hue-rotate(70deg); }html[data-extratools-theme="red"] .mh-hero-art { filter:hue-rotate(225deg); }
html[data-home-layout="mobile"] body[data-page="/"] .home-intro-layout .search-box { display:flex; align-items:center; gap:8px; position:relative; max-width:none; width:100%; min-height:54px; margin:0; padding:4px 10px 4px 13px; background:linear-gradient(145deg,#183b47,#081e29 58%,#0f2833); border:1px solid #4b7886; border-radius:17px; box-shadow:inset 0 0 14px #7bd4f01a,0 7px 18px #0004; }
html[data-home-layout="mobile"] body[data-page="/"] .search-icon { border-color:var(--mh-accent); color:var(--mh-accent); flex:0 0 19px; width:19px; height:19px; }
html[data-home-layout="mobile"] body[data-page="/"] .search-icon::after { background:var(--mh-accent); }
html[data-home-layout="mobile"] body[data-page="/"] #tool-search { color:var(--mh-text); min-width:0; flex:1; background:transparent; padding:12px 0 12px 2px; font-size:16px; border:0; }
html[data-home-layout="mobile"] body[data-page="/"] #tool-search::placeholder { color:#b6cbd6; opacity:1; }
html[data-home-layout="mobile"] body[data-page="/"] .mh-filter { display:grid !important; place-items:center; width:42px;height:42px;flex:none; border:0; background:transparent;color:var(--mh-accent);border-radius:8px; }
.mh-filter svg { width:24px;height:24px; }
html[data-home-layout="mobile"] body[data-page="/"] #clear-search { position:static; transform:none; background:transparent; color:var(--mh-text); width:32px; height:36px; border:0; }
html[data-home-layout="mobile"] body[data-page="/"] #search-status { color:var(--mh-muted); margin:8px 0 0; font-size:12px; }
html[data-home-layout="mobile"] body[data-page="/"]:not(.mh-searching) #search-status { position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0); }
.mh-categories { order:1; min-width:0; }.mh-popular { order:2; min-width:0; }
.mh-section-head { display:flex; align-items:center; justify-content:space-between; gap:8px; margin:0 0 12px; }
.mh-section-head h2 { display:flex; align-items:center; gap:8px; font-size:clamp(17px,3.6vw,32px); letter-spacing:-.04em; line-height:1.12; color:var(--mh-text); margin:0; font-weight:800; }
.mh-section-head h2 svg { color:var(--mh-accent); width:clamp(22px,4vw,36px); height:clamp(22px,4vw,36px); flex:none; }
.mh-section-head button,.mh-section-head a { color:var(--mh-accent); border:0; background:transparent; font-size:clamp(12px,2.1vw,21px); font-weight:700; padding:8px 0 8px 3px; text-decoration:none; min-height:44px; text-align:right; flex:none; }
.mh-category-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.mh-tone-green { --tile-tone:113 255 148; }.mh-tone-blue { --tile-tone:64 200 255; }.mh-tone-purple { --tile-tone:204 139 255; }.mh-tone-pink { --tile-tone:255 125 150; }.mh-tone-yellow { --tile-tone:255 214 72; }.mh-tone-cyan { --tile-tone:78 239 231; }.mh-tone-magenta { --tile-tone:245 132 240; }
.mh-category,.mh-popular-card { min-width:0; color:var(--mh-text) !important; text-decoration:none; border:1px solid #294b58; border-radius:14px; background:radial-gradient(ellipse at 3% 5%,rgb(var(--tile-tone,113 255 148)/20%),transparent 60%),linear-gradient(155deg,#122d38,#071b24 78%,#0b2631); box-shadow:inset 0 1px 8px #a5d9ff08,0 3px 8px #0003; }
.mh-category { display:grid; grid-template-columns:clamp(25px,5.8vw,65px) minmax(0,1fr) 12px; align-items:center; gap:7px; min-height:clamp(78px,10vw,112px); padding:10px 8px; }
.mh-art { display:grid; place-items:center; color:rgb(var(--tile-tone,113 255 148)); filter:drop-shadow(0 0 8px rgb(var(--tile-tone,113 255 148)/55%)); }
.mh-art svg { width:100%; height:auto; max-width:62px; aspect-ratio:1; }
.mh-category-copy { display:flex; flex-direction:column; gap:3px; }
.mh-category strong { font-size:clamp(12px,2.45vw,24px); line-height:1.12; letter-spacing:-.025em; }
.mh-category small { font-size:clamp(10.5px,1.95vw,19px); line-height:1.25; color:var(--mh-muted); }
.mh-chevron { color:#a4c0cf; }.mh-chevron svg { width:15px;height:15px; }
.mh-category:active,.mh-popular-card:active { border-color:var(--mh-accent); }
.mh-category-grid:not(.mh-expanded) .mh-category:nth-child(n+9) { display:none; }
.mh-popular-grid { display:grid; grid-auto-flow:column; grid-auto-columns:clamp(106px,28%,175px); gap:9px; overflow-x:auto; overscroll-behavior-inline:contain; scroll-snap-type:x proximity; padding:4px 2px 9px; scrollbar-width:thin; scrollbar-color:#31505b transparent; }
.mh-popular-card { display:flex; flex-direction:column; align-items:center; justify-content:center; min-height:112px; padding:10px 6px; gap:8px; text-align:center; scroll-snap-align:start; }
.mh-popular-card .mh-art { width:clamp(32px,6vw,59px); }
.mh-popular-card strong { font-size:clamp(12px,2.2vw,20px); line-height:1.15; }
.mh-popular-card:first-child { border-color:var(--mh-accent); box-shadow:inset 0 0 15px rgb(var(--mh-accent-rgb)/14%),0 0 12px rgb(var(--mh-accent-rgb)/20%); }
html[data-home-layout="mobile"] body[data-page="/"] .about-section { order:3; max-width:none; margin:0; padding:15px; border:1px solid #28505a; border-radius:14px; background:radial-gradient(ellipse at 100% 0%,rgb(var(--mh-accent-rgb)/13%),transparent 55%),#0b2530; color:var(--mh-text); }
html[data-home-layout="mobile"] body[data-page="/"] .about-section .section-index { display:none; }
html[data-home-layout="mobile"] body[data-page="/"] .about-section h2 { color:var(--mh-text); font-size:clamp(18px,3vw,28px); margin:0 0 9px; line-height:1.2; letter-spacing:-.025em; }
html[data-home-layout="mobile"] body[data-page="/"] .about-section p { color:var(--mh-muted); font-size:clamp(13px,2.05vw,19px); line-height:1.48; margin:0 0 10px; }
html[data-home-layout="mobile"] body[data-page="/"] .about-section p:last-child { margin-bottom:0; }
html[data-home-layout="mobile"] body[data-page="/"] .category-directory { order:4; min-width:0; margin:0; padding:0; }
html[data-home-layout="mobile"] body[data-page="/"] .home-tasks { order:5; margin:0; padding:0; }
html[data-home-layout="mobile"] body[data-page="/"] .site-news { order:6; margin:0; }
html[data-home-layout="mobile"] body[data-page="/"] #homepage-stats-slot { order:7; }
html[data-home-layout="mobile"] body[data-page="/"] .category-directory-heading { display:flex; flex-wrap:wrap; align-items:start; gap:10px; margin:0 0 12px; }
html[data-home-layout="mobile"] body[data-page="/"] :is(.category-directory-heading,.home-section-heading) h2 { font-size:clamp(20px,3.5vw,32px); color:var(--mh-text); }
html[data-home-layout="mobile"] body[data-page="/"] :is(.category-directory-heading,.home-section-heading) p { color:var(--mh-muted); }
html[data-home-layout="mobile"] body[data-page="/"] .categories { display:grid; grid-template-columns:minmax(0,1fr); gap:9px; }
html[data-home-layout="mobile"] body[data-page="/"] .category-section { min-width:0; min-height:0; display:block; padding:12px; margin:0; border:1px solid var(--mh-border); border-radius:14px; background:#0b202b; box-shadow:none; }
html[data-home-layout="mobile"] body[data-page="/"] .category-heading { display:flex; flex-wrap:wrap; align-items:center; gap:9px; margin:0; padding:0; min-height:0; }
html[data-home-layout="mobile"] body[data-page="/"] .category-title-wrap { flex:1 1 160px; min-width:0; gap:9px; }
html[data-home-layout="mobile"] body[data-page="/"] .category-title-wrap h2 { color:var(--mh-text); font-size:17px; line-height:1.25; }
html[data-home-layout="mobile"] body[data-page="/"] .category-description { color:var(--mh-muted); font-size:12px; }
html[data-home-layout="mobile"] body[data-page="/"] .category-mark { display:none; }
html[data-home-layout="mobile"] body[data-page="/"] .category-heading-actions { display:flex; flex-wrap:wrap; align-items:center; gap:8px; justify-content:space-between; width:100%; }
html[data-home-layout="mobile"] body[data-page="/"] :is(.category-toggle,.category-toggle-all) { background:#142f3b; border:1px solid #3c626f; border-radius:9px; color:var(--mh-accent); min-height:44px; padding:8px 12px; font-size:13px; }
html[data-home-layout="mobile"] body[data-page="/"] .category-count { background:transparent; color:var(--mh-muted); border:0; }
html[data-home-layout="mobile"] body[data-page="/"] .tool-grid { grid-template-columns:minmax(0,1fr); gap:8px; margin-top:12px; }
html[data-home-layout="mobile"] body[data-page="/"] .category-section.is-collapsed .tool-grid { display:none; }
html[data-home-layout="mobile"] body[data-page="/"] .mh-card-wrap { position:relative; min-width:0; }
.mh-card-wrap { display:contents; }
html[data-home-layout="mobile"] body[data-page="/"] .mh-card-wrap { display:block; }
html[data-home-layout="mobile"] body[data-page="/"] .mh-card-wrap:has(> a[hidden]) { display:none; }
html[data-home-layout="mobile"] body[data-page="/"] .category-section .tool-tile { position:relative; display:flex; flex-direction:row; min-width:0; min-height:84px; padding:0 43px 0 0; margin:0; background:#102a35; border:1px solid var(--mh-border); color:var(--mh-text); box-shadow:none; border-radius:11px; transform:none; }
html[data-home-layout="mobile"] body[data-page="/"] .category-section .tile-preview { display:none; }
html[data-home-layout="mobile"] body[data-page="/"] .category-section .tile-content { padding:11px 9px; width:100%; min-height:0; }
html[data-home-layout="mobile"] body[data-page="/"] .tile-name { color:var(--mh-text); font-size:15px; line-height:1.25; }
html[data-home-layout="mobile"] body[data-page="/"] :is(.tile-description,.tile-features span) { color:var(--mh-muted); font-size:12px; line-height:1.35; }
html[data-home-layout="mobile"] body[data-page="/"] .tile-features { display:none; }
html[data-home-layout="mobile"] body[data-page="/"] .tile-arrow { display:none; }
html[data-home-layout="mobile"] body[data-page="/"] .mh-favorite { position:absolute; top:7px; right:5px; display:grid; place-items:center; width:39px; min-height:44px; border:0; border-radius:9px; background:transparent; font-size:23px; color:#bcd0d9; }
html[data-home-layout="mobile"] body[data-page="/"] .mh-favorite[aria-pressed="true"] { color:var(--mh-accent); }
.mh-favorite { display:none; }
html[data-home-layout="mobile"] body[data-page="/"] .home-task-grid { display:grid; grid-template-columns:minmax(0,1fr); gap:8px; }
html[data-home-layout="mobile"] body[data-page="/"] .home-task-card { color:var(--mh-text); background:#0b222c; border:1px solid var(--mh-border); box-shadow:none; min-height:0; }
html[data-home-layout="mobile"] body[data-page="/"] :is(.home-task-title,.home-task-number,.home-task-arrow) { color:var(--mh-text); }
html[data-home-layout="mobile"] body[data-page="/"] .home-task-description { color:var(--mh-muted); }
html[data-home-layout="mobile"] body[data-page="/"] :is(.site-news,.homepage-stats,.homepage-bottom,.page-faq) { border-color:var(--mh-border); background:var(--mh-panel); color:var(--mh-text); box-shadow:none; border-radius:14px; }
html[data-home-layout="mobile"] body[data-page="/"] :is(.site-news-heading,.site-news-body,.site-news-scroll,.site-news-list,.site-news-list > li) { background:transparent; color:var(--mh-muted); border-color:var(--mh-border); }
html[data-home-layout="mobile"] body[data-page="/"] :is(.site-news-heading h2,.site-news-list time,.site-news-content,.site-news-content a,.site-news-empty) { color:var(--mh-text); }
html[data-home-layout="mobile"] body[data-page="/"] .site-news-body.is-enhanced { display:block; height:auto; }
html[data-home-layout="mobile"] body[data-page="/"] .site-news-scroll { max-height:340px; height:auto; overflow-y:auto; }
html[data-home-layout="mobile"] body[data-page="/"] .site-news-scrollbar { display:none; }
html[data-home-layout="mobile"] body[data-page="/"] .site-footer { margin:24px 0 0; padding:18px 0; background:#071c25; color:var(--mh-muted); border-top:1px solid var(--mh-border); }
html[data-home-layout="mobile"] body[data-page="/"] .footer-grid { display:grid; grid-template-columns:minmax(0,1fr); gap:16px; }
html[data-home-layout="mobile"] body[data-page="/"] :is(.footer-copy,.footer-bottom,.footer-seo a,.footer-bottom-links a,.site-footer h2,.site-footer .brand-name) { color:var(--mh-muted); }
html[data-home-layout="mobile"] body[data-page="/"] .footer-seo ul { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:5px; }
html[data-home-layout="mobile"] body[data-page="/"] .mh-bottom { display:grid !important; position:fixed; z-index:90; grid-template-columns:repeat(4,minmax(0,1fr)); gap:4px; bottom:calc(5px + env(safe-area-inset-bottom,0px)); left:max(7px,env(safe-area-inset-left,0px)); right:max(7px,env(safe-area-inset-right,0px)); padding:6px; border:1px solid #24434d; border-radius:18px; background:linear-gradient(155deg,#09252d,#05161e); box-shadow:0 -6px 24px #0005; }
html[data-home-layout="mobile"] body[data-page="/"] .mh-bottom button { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px; min-height:53px; min-width:0; padding:5px 2px; color:var(--mh-text); background:transparent; border:1px solid transparent; border-radius:13px; font-weight:600; line-height:1.1; font-size:clamp(10px,2.7vw,15px); white-space:normal; }
.mh-bottom svg { width:23px; height:23px; flex:none; }
html[data-home-layout="mobile"] body[data-page="/"] .mh-bottom button[aria-current="page"] { color:#fff; background:linear-gradient(155deg,var(--mh-accent-deep),#072a20); border-color:rgb(var(--mh-accent-rgb)/65%); box-shadow:inset 0 1px 11px rgb(var(--mh-accent-rgb)/33%),0 0 10px rgb(var(--mh-accent-rgb)/12%); }
html[data-home-layout="mobile"] body[data-page="/"] .mh-popover { position:fixed; z-index:110; inset:auto; top:calc(64px + env(safe-area-inset-top,0px)); right:12px; left:auto; width:min(330px,calc(100vw - 24px)); max-height:calc(100vh - 150px); max-height:calc(100dvh - 150px); overflow:auto; overscroll-behavior:contain; margin:0; padding:12px; color:var(--mh-text); background:#102a35; border:1px solid #3b6875; border-radius:16px; box-shadow:0 14px 40px #0009; }
html[data-home-layout="mobile"] body[data-page="/"] .mh-popover.mh-library { top:auto; bottom:calc(86px + env(safe-area-inset-bottom,0px)); right:12px; width:min(490px,calc(100vw - 24px)); }
html[data-home-layout="mobile"] body[data-page="/"] .mh-panel-head { display:flex; align-items:center; justify-content:space-between; gap:8px; padding-bottom:8px; border-bottom:1px solid var(--mh-border); font-size:18px; }
html[data-home-layout="mobile"] body[data-page="/"] .mh-popover > :is(button,a):not([hidden]) { display:flex; width:100%; min-height:44px; align-items:center; gap:10px; text-align:left; padding:10px; border:0; border-bottom:1px solid var(--mh-border); border-radius:7px; color:var(--mh-text); background:transparent; text-decoration:none; }
.mh-popover > a svg,.mh-popover > button svg { width:20px;height:20px; color:var(--mh-accent); flex:none; }
.mh-theme-choice span { width:20px;height:20px;border-radius:50%;background:#61ff85; }.mh-theme-blue span{background:#65d4ff}.mh-theme-red span{background:#ff858c}
html[data-home-layout="mobile"] body[data-page="/"] .mh-theme-choice[aria-pressed="true"] { outline:1px solid var(--mh-accent); outline-offset:-1px; }
html[data-home-layout="mobile"] body[data-page="/"] #mh-account-slot .site-preferences { width:100%; margin:8px 0; align-items:flex-start; gap:8px; }
html[data-home-layout="mobile"] body[data-page="/"] #mh-account-slot :is(.language-switch,.site-theme-dots) { display:none; }
.mh-library-note { font-size:12px; color:var(--mh-muted); }
.mh-library-row { display:flex; align-items:center; gap:8px; min-height:48px; border-bottom:1px solid var(--mh-border); }
.mh-library-row a { flex:1; color:var(--mh-text); text-decoration:none; padding:12px 0; }
.mh-library-row button { flex:none; width:44px;height:44px; border:0; border-radius:8px; background:#1a3b47; color:var(--mh-accent); font-size:20px; }
html[data-home-layout="mobile"] body[data-page="/"].mh-searching :is(.mh-categories,.mh-popular,.about-section,.home-tasks,.site-news) { display:none !important; }
html[data-home-layout="mobile"] body[data-page="/"].mh-searching .category-directory { order:1; }
html[data-home-layout="mobile"] body[data-page="/"] .no-results { color:var(--mh-text); background:var(--mh-panel); border-color:var(--mh-border); }
.mh-layout-switch button { border:1px solid currentColor; color:inherit; background:transparent; min-height:44px; border-radius:8px; padding:6px 12px; cursor:pointer; }
/* Native popover anchors where implemented; fixed geometry remains the fallback. */
@supports (position-anchor: --mh-theme-anchor) and (position-area: bottom span-left) {
    #mh-theme-button { anchor-name:--mh-theme-anchor; }
    html[data-home-layout="mobile"] body[data-page="/"] #mh-theme:popover-open { position-anchor:--mh-theme-anchor; position-area:bottom span-left; position-try-fallbacks:flip-inline; inset:auto; margin:5px 0; }
}
@media (min-width:600px) {
    .mh-category { gap:14px;padding:13px 17px;grid-template-columns:clamp(38px,6vw,65px) minmax(0,1fr) 20px; }
    .mh-popular-grid { grid-auto-columns:minmax(0,1fr); grid-template-columns:repeat(6,minmax(0,1fr)); }
    .mh-logo { width:44px;height:44px; padding:8px; }
    .mh-lang a { min-width:48px; min-height:42px; font-size:15px; }
    html[data-home-layout="mobile"] body[data-page="/"] .tool-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    html[data-home-layout="mobile"] body[data-page="/"] .mh-bottom { max-width:1120px; margin-inline:auto; }
}
@media (max-width:359px) {
    .mh-brand { gap:5px; font-size:16px; }.mh-logo{width:26px;height:26px;padding:5px;}
    .mh-category { grid-template-columns:26px minmax(0,1fr); gap:6px;padding:9px 7px; }.mh-chevron{display:none;}
    .mh-section-head h2 { font-size:16px; }.mh-section-head button,.mh-section-head a{font-size:11px;}
    html[data-home-layout="mobile"] body[data-page="/"] .mh-header { gap:4px; padding-inline:6px; }
    html[data-home-layout="mobile"] body[data-page="/"] .mh-icon-button { width:36px; }
    .mh-lang a { min-width:30px;padding:0 6px; }
}
@media (prefers-reduced-motion:reduce) {
    html[data-home-layout="mobile"],html[data-home-layout="mobile"] body[data-page="/"] { scroll-behavior:auto; }
    html[data-home-layout="mobile"] body[data-page="/"] * { animation-duration:.01ms !important; transition-duration:.01ms !important; }
}

@media (min-width:360px) and (max-width:479px) {
    .mh-category { grid-template-columns:25px minmax(0,1fr); gap:7px; }
    .mh-chevron { display:none; }
}
@media (min-width:600px) and (max-width:899px) {
    .mh-popular-grid { grid-template-columns:none; grid-auto-columns:clamp(112px,18%,175px); }
    .mh-popular-card strong { font-size:clamp(12px,1.8vw,20px); }
}

/* Revision: match the reference dashboard while keeping the full catalog below it. */
html[data-home-layout="mobile"] body[data-page="/"] {
    --mh-gutter: clamp(12px,2.5vw,26px);
    --mh-header-height:clamp(58px,8vw,82px);
    --mh-nav-height:clamp(66px,12.5vw,128px);
    padding-bottom:calc(var(--mh-nav-height) + 18px + env(safe-area-inset-bottom,0px));
    background:radial-gradient(ellipse at 70% 7%,#08272a 0,transparent 35%),#020f15;
    scroll-padding-bottom:calc(var(--mh-nav-height) + 15px);
}
html[data-home-layout="mobile"] body[data-page="/"] > main.shell,
html[data-home-layout="mobile"] body[data-page="/"] .site-footer .shell {
    width:min(calc(100% - 2 * max(var(--mh-gutter),env(safe-area-inset-left,0px),env(safe-area-inset-right,0px))),1120px);
}
html[data-home-layout="mobile"] body[data-page="/"] > main.shell {gap:clamp(17px,2.55vw,28px)}
html[data-home-layout="mobile"] body[data-page="/"] .mh-header {min-height:var(--mh-header-height);padding-inline:max(var(--mh-gutter),env(safe-area-inset-left,0px),env(safe-area-inset-right,0px));}
html[data-home-layout="mobile"] body[data-page="/"] .mh-header .mh-icon-button {width:clamp(36px,5.6vw,58px);height:clamp(44px,6vw,62px)}
.mh-header .mh-icon-button svg {width:clamp(24px,3.8vw,40px);height:auto}
.mh-logo {width:clamp(29px,5.3vw,54px);height:clamp(29px,5.3vw,54px);padding:clamp(5px,1vw,10px);border-radius:clamp(8px,1.5vw,15px);gap:clamp(3px,.45vw,5px)}
.mh-brand {font-size:clamp(17px,3.4vw,35px);gap:clamp(7px,1.6vw,16px)}
.mh-lang a {min-height:clamp(34px,4.5vw,46px);min-width:clamp(33px,7.2vw,74px);font-size:clamp(12px,2.2vw,23px)}
html[data-home-layout="mobile"] body[data-page="/"] .home-intro-layout .hero {padding:clamp(15px,2.1vw,23px) clamp(0px,1vw,12px) 0;}
html[data-home-layout="mobile"] body[data-page="/"] .hero h1 {font-size:clamp(24px,4.7vw,49px);line-height:1.08;max-width:68%;margin-bottom:clamp(10px,1.7vw,18px)}
html[data-home-layout="mobile"] body[data-page="/"] .mh-lead {max-width:59%;font-size:clamp(13px,2.23vw,23px);line-height:1.28;margin-bottom:clamp(17px,2.6vw,28px)}
html[data-home-layout="mobile"] body[data-page="/"] .mh-hero-art {width:40%;top:12px;right:0;height:clamp(135px,25vw,256px)}
html[data-home-layout="mobile"] body[data-page="/"] .home-intro-layout .search-box {min-height:clamp(54px,7.25vw,75px);border-radius:clamp(15px,2.5vw,26px);padding-inline:clamp(13px,3vw,30px);gap:clamp(9px,2vw,22px);box-shadow:inset 0 0 16px #85d8e728,0 5px 15px #0005}
html[data-home-layout="mobile"] body[data-page="/"] #tool-search {font-size:clamp(16px,2.6vw,27px)}
html[data-home-layout="mobile"] body[data-page="/"] .search-icon {width:clamp(19px,2.7vw,28px);height:clamp(19px,2.7vw,28px);flex-basis:clamp(19px,2.7vw,28px)}
.mh-filter svg {width:clamp(24px,3.5vw,36px);height:auto}
.mh-section-head {margin-bottom:clamp(6px,1.2vw,13px)}
.mh-section-head h2 {font-size:clamp(17px,3.1vw,32px)}
.mh-category-grid {gap:clamp(8px,1.05vw,12px) clamp(8px,1.7vw,18px)}
.mh-category {border-radius:clamp(13px,2.4vw,25px);min-height:clamp(92px,10.2vw,110px);background:radial-gradient(ellipse at 11% 12%,rgb(var(--tile-tone)/33%),transparent 48%),linear-gradient(135deg,#16313b,#081b24 70%,#0b2530);box-shadow:inset 0 1px 8px #b0ecff12,0 5px 10px #0003}
.mh-category strong {font-size:clamp(13px,2.4vw,25px);line-height:1.12;letter-spacing:-.035em}
.mh-category small {font-size:clamp(11px,1.9vw,19px);line-height:1.25}
.mh-category-copy {gap:4px}
.mh-popular-grid {gap:clamp(9px,1.5vw,16px)}
.mh-popular-card {min-height:clamp(108px,14vw,145px);border-radius:clamp(14px,2.5vw,26px);background:radial-gradient(ellipse at 50% 0%,rgb(var(--tile-tone)/20%),transparent 68%),linear-gradient(160deg,#132e38,#071a23 75%,#0b252c);}
.mh-popular-card:first-child {background:radial-gradient(ellipse at 5% 0%,#1fbd55,transparent 45%),linear-gradient(145deg,#104b2c,#042617);border-color:var(--mh-accent);box-shadow:inset 0 0 18px rgb(var(--mh-accent-rgb)/35%),0 0 11px rgb(var(--mh-accent-rgb)/35%)}
.mh-about {order:3;position:relative;overflow:hidden;isolation:isolate;border:1px solid #2b626b;border-radius:clamp(15px,2.4vw,25px);padding:clamp(15px,2.2vw,24px) clamp(14px,3.3vw,34px);background:linear-gradient(130deg,#0b3039,#061c25 65%,#062e25);}
.mh-about::before {content:"";position:absolute;z-index:-1;right:-5%;top:-55%;width:40%;height:180%;border-radius:45%;transform:rotate(35deg);background:linear-gradient(90deg,transparent,rgb(var(--mh-accent-rgb)/15%) 80%,rgb(var(--mh-accent-rgb)/55%));box-shadow:0 15px 0 rgb(var(--mh-accent-rgb)/6%)}
.mh-about h2 {display:flex;align-items:center;gap:clamp(8px,2vw,20px);font-size:clamp(17px,2.65vw,28px);line-height:1.2;color:var(--mh-text);margin:0 0 8px;letter-spacing:-.035em}
.mh-about h2 svg {width:clamp(25px,3.5vw,35px);height:auto;flex:none;color:var(--mh-accent)}
.mh-about p {font-size:clamp(13px,2.05vw,21px);color:var(--mh-muted);line-height:1.3;margin:0}
.mh-about-more {display:inline-block;margin-top:8px;color:var(--mh-accent);font-size:clamp(12px,1.5vw,15px)}
html[data-home-layout="mobile"] body[data-page="/"] .about-section {order:8}
html[data-home-layout="mobile"] body[data-page="/"] #homepage-popular-slot {display:block !important;order:6;min-width:0}
html[data-home-layout="mobile"] body[data-page="/"] #homepage-popular-slot:empty {display:none !important}
html[data-home-layout="mobile"] body[data-page="/"] .site-news {order:7}
html[data-home-layout="mobile"] body[data-page="/"] #homepage-stats-slot {order:9}
html[data-home-layout="mobile"] body[data-page="/"] .popular-section {background:var(--mh-panel);border-color:var(--mh-border);color:var(--mh-text);box-shadow:none}
html[data-home-layout="mobile"] body[data-page="/"] .popular-tool-grid {grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr))}
html[data-home-layout="mobile"] body[data-page="/"] :is(.popular-heading h2,.homepage-stats h2,.homepage-stats-summary dd,.homepage-stats-list) {color:var(--mh-text)}
html[data-home-layout="mobile"] body[data-page="/"] :is(.popular-heading p,.homepage-stats-summary dt,.popular-period) {color:var(--mh-muted)}
html[data-home-layout="mobile"] body[data-page="/"] .popular-tool {background:#102a35;border-color:var(--mh-border);color:var(--mh-text)}
html[data-home-layout="mobile"] body[data-page="/"] .tile-features {display:flex;flex-wrap:wrap}
html[data-home-layout="mobile"] body[data-page="/"] .tile-features > span {background:#0b202b;border-color:#355561;color:var(--mh-muted)}
html[data-home-layout="mobile"] body[data-page="/"] .mh-bottom {left:max(9px,1.55vw,env(safe-area-inset-left,0px));right:max(9px,1.55vw,env(safe-area-inset-right,0px));bottom:calc(clamp(6px,1.15vw,12px) + env(safe-area-inset-bottom,0px));padding:clamp(5px,1.1vw,12px) clamp(6px,2.75vw,28px);border-radius:clamp(18px,3vw,32px);gap:clamp(5px,1.5vw,16px)}
html[data-home-layout="mobile"] body[data-page="/"] .mh-bottom button {min-height:clamp(55px,10vw,105px);font-size:clamp(11px,2.15vw,23px);border-radius:clamp(12px,2.4vw,25px);gap:clamp(4px,1vw,10px)}
.mh-bottom svg {width:clamp(23px,4.2vw,43px);height:auto}
html[data-home-layout="mobile"] body[data-page="/"] .mh-bottom button[aria-current="page"] {background:radial-gradient(ellipse at 25% 0%,rgb(var(--mh-accent-rgb)/60%),transparent 65%),linear-gradient(155deg,var(--mh-accent-deep),#032417);box-shadow:inset 0 0 18px rgb(var(--mh-accent-rgb)/40%),0 0 10px rgb(var(--mh-accent-rgb)/12%)}
html[data-home-layout="mobile"] body[data-page="/"] .mh-popover {top:calc(var(--mh-header-height) + 5px + env(safe-area-inset-top,0px));max-height:calc(100dvh - var(--mh-header-height) - var(--mh-nav-height) - 36px)}
html[data-home-layout="mobile"] body[data-page="/"] .mh-popover.mh-library {top:auto;bottom:calc(var(--mh-nav-height) + 20px + env(safe-area-inset-bottom,0px))}
html[data-home-layout="mobile"] body[data-page="/"].mh-searching :is(.mh-about,#homepage-popular-slot) {display:none !important}
html[data-home-layout="mobile"] body[data-page="/"] #mh-account-slot .site-preferences :is(a,button) {color:var(--mh-text);background:#13303a;border-color:var(--mh-border)}
@media (min-width:900px) {
    .mh-category {grid-template-columns:clamp(55px,9vw,100px) minmax(0,1fr) 22px;gap:clamp(12px,2vw,20px);padding:10px 17px}
    .mh-art svg {max-width:60px}
}
@media (max-width:599px) {
    .mh-category {grid-template-columns:clamp(27px,7vw,40px) minmax(0,1fr);padding:10px 8px;gap:7px;align-items:start}
    .mh-category .mh-art {align-self:center}
    .mh-chevron {display:none}
    html[data-home-layout="mobile"] body[data-page="/"] .hero h1 {max-width:68%}
    html[data-home-layout="mobile"] body[data-page="/"] .mh-lead {max-width:67%}
    html[data-home-layout="mobile"] body[data-page="/"] .mh-hero-art {width:37%;top:35px}
}
@media (max-width:359px) {
    .mh-brand {font-size:16px;gap:5px}
    .mh-logo {width:26px;height:26px;padding:5px}
    .mh-lang a {min-width:29px;padding-inline:5px}
    html[data-home-layout="mobile"] body[data-page="/"] .mh-header {padding-inline:6px;gap:4px}
    .mh-section-head h2 {font-size:15px}
    .mh-category {grid-template-columns:22px minmax(0,1fr);gap:5px;padding-inline:6px}
}
@media (max-height:480px) and (orientation:landscape) {
    html[data-home-layout="mobile"] body[data-page="/"] {--mh-header-height:50px;--mh-nav-height:55px}
    html[data-home-layout="mobile"] body[data-page="/"] .mh-bottom {padding-block:3px}
    html[data-home-layout="mobile"] body[data-page="/"] .mh-bottom button {flex-direction:row;min-height:40px;font-size:13px}
    .mh-bottom svg {width:22px}
}
/* Final reference alignment and small-screen legibility. */
html[data-home-layout="mobile"] body[data-page="/"] .mh-section-head :is(button,a) {font-size:clamp(12px,2.1vw,21px);font-weight:700;line-height:1.15;white-space:nowrap}
html[data-home-layout="mobile"] body[data-page="/"] .search-icon {border-width:clamp(2px,.35vw,4px)}
html[data-home-layout="mobile"] body[data-page="/"] .search-icon::after {height:clamp(2px,.35vw,4px)}
html[data-home-layout="mobile"] body[data-page="/"] .mh-hero-art {mask-image:radial-gradient(ellipse 75% 75% at 55% 54%,#000 60%,transparent 100%)}
@media (min-width:900px) {
  .mh-category {grid-template-columns:clamp(64px,8vw,84px) minmax(0,1fr) 18px;gap:clamp(9px,1.35vw,14px);padding:9px 13px;min-height:clamp(100px,10.2vw,106px)}
  .mh-category small {font-size:clamp(15px,1.82vw,18.5px);line-height:1.2}
  .mh-category .mh-chevron svg {width:21px;height:21px}
  .mh-popular-card {min-height:clamp(125px,14vw,145px)}
}
@media (max-width:599px) {
  html[data-home-layout="mobile"] body[data-page="/"] .mh-section-head :is(button,a) {font-size:12px}
  html[data-home-layout="mobile"] body[data-page="/"] .mh-hero-art {top:30px;right:-3px;mask-image:radial-gradient(ellipse 74% 70% at 56% 52%,#000 55%,transparent 100%)}
}
@media (max-width:319px) {
  .mh-category-grid {grid-template-columns:minmax(0,1fr)}
  html[data-home-layout="mobile"] body[data-page="/"] .mh-header .mh-icon-button {width:32px;min-width:32px;padding:5px}
  .mh-brand {font-size:15px;gap:4px}
  .mh-lang a {min-width:27px;padding-inline:4px}
}


/* Desktop-site mode on compact tablets (typically 600–820 CSS px).
   Keep the full desktop content, but prevent the desktop grid from overflowing. */
@media (min-width:540px) and (max-width:820px) {
    html[data-home-layout="desktop"] body[data-page="/"] {
        overflow-x:clip;
    }
    html[data-home-layout="desktop"] body[data-page="/"] .shell,
    html[data-home-layout="desktop"] body[data-page="/"] .site-footer .shell {
        width:calc(100% - 32px);
        max-width:none;
        margin-inline:auto;
    }
    html[data-home-layout="desktop"] body[data-page="/"] .header-top {
        gap:12px;
        min-width:0;
    }
    html[data-home-layout="desktop"] body[data-page="/"] .header-note {
        display:none;
    }
    html[data-home-layout="desktop"] body[data-page="/"] .mh-layout-switch:not([hidden]) {
        display:flex;
        flex:0 0 auto;
        align-items:center;
        gap:5px;
        margin-inline-start:auto;
    }
    html[data-home-layout="desktop"] body[data-page="/"] .mh-layout-switch button {
        min-height:34px;
        padding:6px 9px;
        border:1px solid #cbd9ca;
        border-radius:9px;
        background:#fff;
        color:#254c37;
        font:600 12px/1.2 Inter,Arial,sans-serif;
        white-space:nowrap;
    }
    html[data-home-layout="desktop"] body[data-page="/"] .quick-nav-inner {
        max-width:100%;
        overflow-x:auto;
        overscroll-behavior-inline:contain;
    }
    html[data-home-layout="desktop"] body[data-page="/"] .home-intro-layout {
        grid-template-columns:minmax(0,1fr);
        gap:10px;
    }
    html[data-home-layout="desktop"] body[data-page="/"] .home-intro-layout .hero {
        grid-column:1;
        grid-row:1;
        padding-block:30px 12px;
    }
    html[data-home-layout="desktop"] body[data-page="/"] .home-intro-aside {
        grid-column:1;
        grid-row:2;
        grid-template-columns:minmax(0,1fr);
        padding-top:0;
    }
    html[data-home-layout="desktop"] body[data-page="/"] .home-intro-layout .site-news {
        width:100%;
        min-width:0;
        margin:0 0 16px;
    }
    html[data-home-layout="desktop"] body[data-page="/"] .categories {
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:24px 18px;
    }
    html[data-home-layout="desktop"] body[data-page="/"] .tool-grid {
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:10px;
    }
    html[data-home-layout="desktop"] body[data-page="/"] .home-task-grid {
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
    html[data-home-layout="desktop"] body[data-page="/"] .category-heading {
        align-items:flex-start;
        flex-wrap:wrap;
        gap:8px;
    }
    html[data-home-layout="desktop"] body[data-page="/"] .category-title-wrap {
        flex:1 1 100%;
        min-width:0;
    }
    html[data-home-layout="desktop"] body[data-page="/"] .category-title-wrap h2 {
        min-width:0;
        overflow-wrap:anywhere;
    }
    html[data-home-layout="desktop"] body[data-page="/"] .category-heading-actions {
        flex:1 1 100%;
        justify-content:flex-start;
        max-width:100%;
    }
    html[data-home-layout="desktop"] body[data-page="/"] .category-toggle {
        max-width:100%;
        text-align:left;
    }
    html[data-home-layout="desktop"] body[data-page="/"] .home-section-heading,
    html[data-home-layout="desktop"] body[data-page="/"] .category-directory-heading {
        align-items:flex-start;
        flex-wrap:wrap;
        gap:8px;
    }
    html[data-home-layout="desktop"] body[data-page="/"] .home-floating-panel {
        right:6px;
        width:44px;
        gap:4px;
        padding:4px;
    }
    html[data-home-layout="desktop"] body[data-page="/"] .home-floating-panel__control {
        width:34px;
        height:34px;
    }
}

/* Catalogue and saved tools use the same glass/neon design as the hero cards. */
html[data-home-layout="mobile"] body[data-page="/"] {
    -webkit-text-size-adjust:100%; text-size-adjust:100%;
}
html[data-home-layout="mobile"] body[data-page="/"] .category-section { --tile-tone:113 255 148; background:linear-gradient(155deg,#0c2630,#061821); border-color:#294b58; border-radius:clamp(14px,2vw,22px); padding:clamp(10px,1.7vw,18px); }
html[data-home-layout="mobile"] body[data-page="/"] :is(#graphic-tools,#utility-tools,#video-tools) {--tile-tone:64 200 255}
html[data-home-layout="mobile"] body[data-page="/"] :is(#programmer-tools,#crypto-tools) {--tile-tone:204 139 255}
html[data-home-layout="mobile"] body[data-page="/"] #pdf-tools {--tile-tone:255 125 150}
html[data-home-layout="mobile"] body[data-page="/"] :is(#calculations,#measurement-tools) {--tile-tone:255 214 72}
html[data-home-layout="mobile"] body[data-page="/"] :is(#seo,#audio-tools) {--tile-tone:78 239 231}
html[data-home-layout="mobile"] body[data-page="/"] #entertainment {--tile-tone:245 132 240}
html[data-home-layout="mobile"] body[data-page="/"] .category-title-wrap {display:flex;align-items:center;gap:12px}
html[data-home-layout="mobile"] body[data-page="/"] .mh-directory-art {display:grid;place-items:center;flex:0 0 42px;width:42px;height:48px; color:#72fca2; color:rgb(var(--tile-tone,113 255 148));}
html[data-home-layout="mobile"] body[data-page="/"] .mh-directory-art svg {width:32px;height:32px;max-width:100%;}
html[data-home-layout="mobile"] body[data-page="/"] .category-title-wrap h2 {font-size:clamp(17px,2.35vw,24px);font-weight:800;letter-spacing:-.025em;}
html[data-home-layout="mobile"] body[data-page="/"] .category-section .tool-tile {height:100%;min-height:100px;align-items:flex-start;gap:2px;padding:12px 45px 12px 10px;border-radius:clamp(12px,1.7vw,18px);border-color:#355564;background:#102a35;background:radial-gradient(ellipse at 0% 0%,rgb(var(--tile-tone)/19%),transparent 58%),linear-gradient(145deg,#16313b,#081b24 76%,#0b2530);box-shadow:inset 0 1px 8px #b0ecff12,0 4px 9px #0003;}
html[data-home-layout="mobile"] body[data-page="/"] .category-section .tile-content {flex:1;min-width:0;width:auto;padding:0;}
html[data-home-layout="mobile"] body[data-page="/"] .tile-heading {display:flex;align-items:flex-start;flex-wrap:wrap;gap:4px;min-width:0;}
html[data-home-layout="mobile"] body[data-page="/"] .tile-name {font-size:clamp(15px,1.9vw,19px);font-weight:750;overflow-wrap:anywhere;}
html[data-home-layout="mobile"] body[data-page="/"] .tile-description {font-size:clamp(12px,1.5vw,15px);margin-top:4px;}
html[data-home-layout="mobile"] body[data-page="/"] .tile-features {gap:4px;margin-top:8px;}
html[data-home-layout="mobile"] body[data-page="/"] .tile-features > span {font-size:11px;border-radius:7px;white-space:normal;}
html[data-home-layout="mobile"] body[data-page="/"] .mh-card-wrap {height:100%;min-width:0;}
html[data-home-layout="mobile"] body[data-page="/"] .mh-favorite {top:5px;right:3px;width:44px;height:44px;min-height:44px;padding:8px;touch-action:manipulation;}
html[data-home-layout="mobile"] body[data-page="/"] .mh-favorite svg {width:23px;height:23px;pointer-events:none;}
html[data-home-layout="mobile"] body[data-page="/"] .mh-favorite[aria-pressed="true"] svg {fill:currentColor;filter:drop-shadow(0 0 5px currentColor);}
html[data-home-layout="mobile"] body[data-page="/"] .mh-popular-wrap .mh-popular-card {height:100%;padding-top:28px;}
html[data-home-layout="mobile"] body[data-page="/"] .mh-popular-wrap .mh-favorite {top:0;right:0;width:44px;height:44px;}
/* First shortcut remains the only featured tile after adding star wrappers. */
html[data-home-layout="mobile"] body[data-page="/"] .mh-popular-wrap:not(:first-child) .mh-popular-card {background:radial-gradient(ellipse at 50% 0%,rgb(var(--tile-tone)/20%),transparent 68%),linear-gradient(160deg,#132e38,#071a23 75%,#0b252c);border-color:#294b58;box-shadow:inset 0 1px 8px #a5d9ff08,0 3px 8px #0003;}
html[data-home-layout="mobile"] body[data-page="/"] .mh-library-row {display:flex;align-items:center;gap:10px;background:linear-gradient(145deg,#16313b,#081b24);border:1px solid #355564;border-radius:12px;padding:6px 8px 6px 12px;min-height:56px;}
html[data-home-layout="mobile"] body[data-page="/"] .mh-library-row a {flex:1;min-width:0;color:var(--mh-text);}
html[data-home-layout="mobile"] body[data-page="/"] .mh-library-row .mh-favorite {position:static;flex:none;color:var(--mh-accent);}
html[data-home-layout="mobile"] body[data-page="/"] #feedback-dialog {color-scheme:dark;background:#0b222c;color:var(--mh-text);border-color:#355564;max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);overscroll-behavior:contain;}
html[data-home-layout="mobile"] body[data-page="/"] #feedback-dialog .feedback-form__submit {color:#061710;background:var(--mh-accent);border-color:var(--mh-accent);}
html[data-home-layout="mobile"] body[data-page="/"] #feedback-dialog .feedback-form__status[data-state="error"] {color:#ff9ca3;}
html[data-home-layout="mobile"] body[data-page="/"] #feedback-dialog :is(input,textarea,select) {font-size:16px;}
html[data-home-layout="mobile"] body[data-page="/"] .mh-bottom button {overflow-wrap:normal;word-break:normal;}
@media(max-width:359px){
 html[data-home-layout="mobile"] body[data-page="/"] .category-section .tool-tile {padding-left:6px;gap:0;}
 html[data-home-layout="mobile"] body[data-page="/"] .mh-directory-art {flex-basis:30px;width:30px;}
 html[data-home-layout="mobile"] body[data-page="/"] .mh-directory-art svg {width:25px;height:25px;}
 html[data-home-layout="mobile"] body[data-page="/"] .mh-bottom button {font-size:10px;}
}
@media(min-width:900px){html[data-home-layout="mobile"] body[data-page="/"] .category-section .tool-grid {grid-template-columns:repeat(2,minmax(0,1fr));}}
/* Keep full tool descriptions readable on touch screens, without hover. */
html[data-home-layout="mobile"] body[data-page="/"] .category-section :is(.category-description,.tile-description) {display:block;overflow:visible;min-height:0;max-height:none;-webkit-line-clamp:unset;white-space:normal;}
html[data-home-layout="mobile"] body[data-page="/"] .mh-popular-wrap {scroll-snap-align:start;}
html[data-home-layout="mobile"] body[data-page="/"] .mh-popular-wrap:not(:first-child) .mh-popular-card {box-shadow:inset 0 1px 8px #a5d9ff08,0 3px 8px #0003;}
@media(max-width:359px){
 html[data-home-layout="mobile"] body[data-page="/"] .hero h1 {max-width:100%;font-size:23px;}
 html[data-home-layout="mobile"] body[data-page="/"] .mh-hero-art {top:88px;right:-3px;width:35%;height:112px;}
 html[data-home-layout="mobile"] body[data-page="/"] .mh-lead {max-width:66%;}
}

/* Narrow landscape and older engines: retain safe viewport fallbacks. */
html[data-home-layout="mobile"] body[data-page="/"] .mh-popover {
    max-height:calc(100vh - var(--mh-header-height) - var(--mh-nav-height) - 36px);
    max-height:calc(100dvh - var(--mh-header-height) - var(--mh-nav-height) - 36px);
}
html[data-home-layout="mobile"] body[data-page="/"] .mh-library-row a {overflow-wrap:anywhere;}
html[data-home-layout="mobile"] body[data-page="/"] #popular-tools .mh-card-wrap > a {height:100%;padding-inline-end:46px;}
html[data-home-layout="mobile"] body[data-page="/"] :is(button,a,input,select,textarea):focus-visible {outline:2px solid var(--mh-accent);outline-offset:2px;}

/* R7: one shared monthly ranking, no editorial or duplicate mobile cards. */
html[data-home-layout="mobile"] body[data-page="/"] #homepage-popular-slot {display:none !important;}
html[data-home-layout="mobile"] body[data-page="/"] #mh-popular-slot {order:2;min-width:0;}
html[data-home-layout="mobile"] body[data-page="/"] #mh-popular-slot[hidden] {display:none !important;}
html[data-home-layout="mobile"] body[data-page="/"] .mh-popular-grid {grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-flow:row;grid-auto-columns:auto;overflow:visible;}
html[data-home-layout="mobile"] body[data-page="/"] .mh-popular-period {color:var(--mh-muted);font-size:clamp(11px,1.7vw,15px);text-align:right;}
html[data-home-layout="mobile"] body[data-page="/"] .mh-popular-rank {position:absolute;top:12px;left:12px;font-weight:700;color:var(--mh-accent);font-size:13px;}
html[data-home-layout="mobile"] body[data-page="/"] .mh-popular-card {position:relative;min-width:0;overflow-wrap:anywhere;}
@media (min-width:600px) {html[data-home-layout="mobile"] body[data-page="/"] .mh-popular-grid {grid-template-columns:repeat(4,minmax(0,1fr));}}

/* R11 — mobile feedback only. */
:is(html[data-home-layout="mobile"] body[data-page="/"],html[data-tool-layout="mobile"][data-tool-ui="ready"] body[data-page]) #feedback-dialog{--fb-bg:#142633;--fb-field:#102532;--fb-button:#243e4d;--fb-ink:#f5f8fa;--fb-muted:#b9cbd5;--fb-border:#547082;--fb-accent:var(--tm-accent,var(--mh-accent,#76ff84));color-scheme:dark!important;background:var(--fb-bg)!important;color:var(--fb-ink)!important;border:1px solid var(--fb-border)!important;max-height:calc(100vh - 24px)!important;max-height:calc(100dvh - 24px)!important;overscroll-behavior:contain;}
:is(html[data-home-layout="mobile"] body[data-page="/"],html[data-tool-layout="mobile"][data-tool-ui="ready"] body[data-page]) #feedback-dialog .feedback-dialog__panel{background:transparent!important;color:var(--fb-ink)!important;max-width:none!important;max-height:none!important;overflow:visible!important;box-sizing:border-box!important;}
:is(html[data-home-layout="mobile"] body[data-page="/"],html[data-tool-layout="mobile"][data-tool-ui="ready"] body[data-page]) #feedback-dialog :is(.feedback-dialog__close,.feedback-form__refresh,.feedback-form__cancel){background:var(--fb-button)!important;color:var(--fb-ink)!important;border:1px solid var(--fb-border)!important;box-shadow:none!important;opacity:1;}
:is(html[data-home-layout="mobile"] body[data-page="/"],html[data-tool-layout="mobile"][data-tool-ui="ready"] body[data-page]) #feedback-dialog .feedback-dialog__close svg,:is(html[data-home-layout="mobile"] body[data-page="/"],html[data-tool-layout="mobile"][data-tool-ui="ready"] body[data-page]) #feedback-dialog .feedback-dialog__close svg path{color:var(--fb-ink)!important;stroke:currentColor!important;}
:is(html[data-home-layout="mobile"] body[data-page="/"],html[data-tool-layout="mobile"][data-tool-ui="ready"] body[data-page]) #feedback-dialog :is(.feedback-dialog__close,.feedback-form__refresh,.feedback-form__cancel):hover{background:#335366!important;color:#fff!important;}
:is(html[data-home-layout="mobile"] body[data-page="/"],html[data-tool-layout="mobile"][data-tool-ui="ready"] body[data-page]) #feedback-dialog :is(.feedback-dialog__close,.feedback-form__refresh,.feedback-form__cancel):focus-visible{outline:2px solid var(--fb-accent)!important;outline-offset:2px;}
:is(html[data-home-layout="mobile"] body[data-page="/"],html[data-tool-layout="mobile"][data-tool-ui="ready"] body[data-page]) #feedback-dialog :is(input:not([type="hidden"]),select,textarea){background:var(--fb-field)!important;color:var(--fb-ink)!important;border-color:var(--fb-border)!important;font-size:16px!important;}
:is(html[data-home-layout="mobile"] body[data-page="/"],html[data-tool-layout="mobile"][data-tool-ui="ready"] body[data-page]) #feedback-dialog :is(h2,label,span,strong){color:var(--fb-ink)!important;}
:is(html[data-home-layout="mobile"] body[data-page="/"],html[data-tool-layout="mobile"][data-tool-ui="ready"] body[data-page]) #feedback-dialog small{color:var(--fb-muted)!important;}
:is(html[data-home-layout="mobile"] body[data-page="/"],html[data-tool-layout="mobile"][data-tool-ui="ready"] body[data-page]) #feedback-dialog .feedback-form__actions .feedback-form__submit{background:var(--fb-accent)!important;color:#071a12!important;border-color:var(--fb-accent)!important;}
:is(html[data-home-layout="mobile"] body[data-page="/"],html[data-tool-layout="mobile"][data-tool-ui="ready"] body[data-page]) #feedback-dialog .feedback-form__submit:disabled{opacity:.55!important;}
:is(html[data-home-layout="mobile"] body[data-page="/"],html[data-tool-layout="mobile"][data-tool-ui="ready"] body[data-page]) #feedback-dialog .feedback-form__status[data-state="error"]{color:#ffb3b8!important;}
:is(html[data-home-layout="mobile"] body[data-page="/"],html[data-tool-layout="mobile"][data-tool-ui="ready"] body[data-page]) #feedback-dialog .feedback-form__status[data-state="success"]{color:#a8ffb6!important;}
:is(html[data-home-layout="mobile"] body[data-page="/"],html[data-tool-layout="mobile"][data-tool-ui="ready"] body[data-page]) #feedback-dialog .feedback-form__captcha{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;}
:is(html[data-home-layout="mobile"] body[data-page="/"],html[data-tool-layout="mobile"][data-tool-ui="ready"] body[data-page]) #feedback-dialog .feedback-form__captcha label{grid-column:1/-1;}
:is(html[data-home-layout="mobile"] body[data-page="/"],html[data-tool-layout="mobile"][data-tool-ui="ready"] body[data-page]) #feedback-dialog .feedback-form__refresh{white-space:normal;overflow-wrap:anywhere;}
