/* Swift PDF mobile home (m.html). Builds on site.css tokens. */
body{background:var(--canvas);min-height:100vh;min-height:100dvh;display:flex;flex-direction:column}
.m-top{position:sticky;top:0;z-index:50;height:60px;padding:0 10px 0 16px;padding-top:env(safe-area-inset-top);display:flex;align-items:center;gap:10px;background:var(--panel);border-bottom:1px solid var(--border)}
.m-brand{display:flex;align-items:center;gap:10px;flex:1;font-size:17px;font-weight:600;letter-spacing:-.01em}
.m-brand img{width:26px;height:29px;object-fit:contain}
.m-brand b{font-weight:600;color:var(--accent-ink)}
.m-icon{width:44px;height:44px;border-radius:12px}
.m-icon .i{width:20px;height:20px}
.m-main{flex:1;width:100%;max-width:560px;margin:0 auto;padding:20px 16px 28px;display:flex;flex-direction:column;gap:22px}
.m-hero{display:flex;flex-direction:column;gap:12px}
.m-hero h1{font-size:26px;line-height:1.15;letter-spacing:-.03em}
.m-hero h1 em{font-style:normal;color:var(--accent-ink)}
.m-chip{align-self:flex-start;display:inline-flex;align-items:center;gap:6px;height:28px;padding:0 11px;border-radius:999px;background:var(--accent-soft);color:var(--accent-ink);font-size:12px;font-weight:500}
.m-chip .i{width:13px;height:13px;stroke-width:2}
.m-search{display:flex;align-items:center;gap:10px;height:48px;padding:0 14px;border-radius:14px;background:var(--panel);border:1px solid var(--border);color:var(--text-3)}
.m-search:focus-within{border-color:var(--accent-ink)}
.m-search .i{width:18px;height:18px}
.m-search input{flex:1;min-width:0;height:100%;border:none;outline:none;background:transparent;font-size:16px;color:var(--text)}
.m-search input::-webkit-search-cancel-button{-webkit-appearance:none}
.m-group{display:flex;flex-direction:column;gap:10px}
.m-group h2{font-size:13px;font-weight:600;color:var(--text-2);letter-spacing:.01em}
.m-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.m-tile{display:flex;flex-direction:column;align-items:center;gap:9px;padding:16px 6px 13px;border-radius:16px;background:var(--panel);border:1px solid var(--border);color:var(--text);font-size:12.5px;font-weight:500;line-height:1.3;text-align:center;-webkit-tap-highlight-color:transparent;transition:transform .12s var(--ease),border-color .12s}
.m-tile:hover{border-color:var(--border-strong)}
.m-tile:active{transform:scale(.97)}
.m-tile[hidden]{display:none}
.m-ic{width:46px;height:46px;border-radius:13px;display:grid;place-items:center}
.m-ic .i{width:22px;height:22px;stroke-width:1.7}
.t1 .m-ic{background:var(--accent-soft);color:var(--accent-ink)}
.t2 .m-ic{background:#ddf3ec;color:#0b6b5c}
.t3 .m-ic{background:#fbf0d6;color:#7a5300}
[data-theme=dark] .t2 .m-ic{background:rgba(45,190,160,.16);color:#5fd9bd}
[data-theme=dark] .t3 .m-ic{background:rgba(236,180,60,.16);color:#f0c45a}
.m-none{padding:12px 4px;color:var(--text-2);font-size:14px;text-align:center}
.m-card{margin-top:4px;padding:16px;border-radius:16px;background:var(--panel);border:1px solid var(--border);display:flex;flex-direction:column;gap:6px}
.m-card h2{font-size:14px;letter-spacing:-.01em}
.m-card p{color:var(--text-2);font-size:13px;line-height:1.55}
.m-desktop{align-self:center;min-height:44px;display:inline-flex;align-items:center;font-size:13px;font-weight:500;color:var(--accent-ink);text-decoration:underline;text-underline-offset:3px}
.m-foot{padding:16px 16px calc(20px + env(safe-area-inset-bottom));border-top:1px solid var(--border);background:var(--panel);display:flex;flex-wrap:wrap;gap:6px 16px;justify-content:center;font-size:12px;color:var(--text-2)}
.m-foot a{color:var(--text);text-decoration:underline;text-underline-offset:3px}
@media(min-width:600px){.m-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:340px){.m-grid{gap:8px}.m-tile{font-size:11.5px;padding:14px 4px 11px}}
.m-install{position:relative;display:flex;gap:12px;align-items:flex-start;padding:14px 44px 14px 14px;border-radius:16px;background:var(--panel);border:1.5px solid var(--accent-ink)}
.m-install[hidden]{display:none}
.m-install img{width:48px;height:48px;border-radius:12px;box-shadow:0 0 0 1px var(--border);flex-shrink:0}
.m-install-txt{display:flex;flex-direction:column;gap:4px;min-width:0}
.m-install h2{font-size:15px;letter-spacing:-.01em}
.m-install p{font-size:13px;line-height:1.5;color:var(--text-2)}
.m-install-steps b{color:var(--text);font-weight:600}
.m-install-steps .i{display:inline-block;width:15px;height:15px;vertical-align:-3px;color:var(--accent-ink)}
.m-install-btn{align-self:flex-start;margin-top:6px;height:40px}
.m-install-x{position:absolute;top:6px;right:6px;width:36px;height:36px}
