.app-mobile-nav { display:none; }
.app-text-hero { padding:clamp(3rem, 9vw, 8rem) 1rem; text-align:center; background:radial-gradient(ellipse at 50% 105%,#253e60,transparent 65%),#090f19; }
.app-text-hero h1 { color:var(--gold); }
.app-text-hero p { font-size:clamp(1rem, 2vw, 1.4rem); }
.install-guide button { font:inherit; background:var(--gold); color:#090f19; border:0; border-radius:.35rem; padding:.6rem 1rem; cursor:pointer; }
.install-guide section { margin-block:1.75rem; }
@media (max-width: 767px) {
  body:has(.app-mobile-nav) { padding-bottom:calc(4.5rem + env(safe-area-inset-bottom)); }
  html { scroll-padding-bottom:calc(4.5rem + env(safe-area-inset-bottom)); }
  .app-mobile-nav { position:fixed; z-index:20; inset:auto 0 0; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:0; padding:0 env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); background:#090f19; border-top:1px solid var(--rule); }
  .app-mobile-nav a { min-height:3.8rem; padding:.4rem .15rem; display:flex; flex-direction:column; justify-content:center; align-items:center; color:var(--ink); text-align:center; font-size:.8rem; line-height:1.25; text-decoration:none; }
  .app-mobile-nav a span { font-size:1.2rem; color:var(--gold); }
  .app-mobile-nav a[aria-current] { color:var(--gold); background:#162338; }
}
.app-mobile-nav a[hidden] { display:none; }

.mobile-dashboard { display:none; }
.ecosystem-home main > .desktop-home { width:100%; }
.desktop-home > :not(.ecosystem) { width:min(100% - 2rem,74rem); margin-inline:auto; }
.app-mobile-nav svg { width:23px; height:23px; color:var(--gold); margin-bottom:3px; }
@media (max-width: 767px) {
  .ecosystem-home .masthead,
  .ecosystem-home .desktop-home,
  .ecosystem-home footer { display:none; }
  .ecosystem-home:has(.desktop-home :target) .desktop-home,
  .ecosystem-home:has(.desktop-home :target) footer { display:block; }
  .ecosystem-home main > .mobile-dashboard {
    display:block; width:min(100%,34rem); padding:0 16px 16px;
    margin-inline:auto; color:#f8f3e8;
  }
  .ecosystem-home main { padding-bottom:0; }
  .dashboard-header {
    display:flex; align-items:center; justify-content:space-between;
    min-height:calc(66px + env(safe-area-inset-top)); padding-top:env(safe-area-inset-top);
    border-bottom:1px solid #263148;
  }
  .dashboard-brand {
    color:#efca7f; text-decoration:none; font-family:Georgia,serif;
    font-weight:700; font-size:25px; letter-spacing:.04em;
  }
  .dashboard-actions { display:flex; align-items:center; gap:6px; }
  .dashboard-popover { position:relative; }
  .dashboard-popover summary {
    display:flex; align-items:center; justify-content:center; gap:6px;
    min-width:44px; min-height:44px; padding:0 9px; list-style:none;
    cursor:pointer; color:#f6e3b8; font-size:14px;
  }
  .dashboard-popover summary::-webkit-details-marker { display:none; }
  .dashboard-popover summary svg { width:21px; height:21px; color:#efca7f; }
  .dashboard-popover > nav, .dashboard-popover > div {
    position:absolute; right:0; top:46px; min-width:126px;
    z-index:25; display:grid; padding:6px; background:#172438;
    border:1px solid #786340; border-radius:12px; box-shadow:0 10px 25px #0008;
  }
  .dashboard-popover nav a { padding:9px 10px; white-space:nowrap; }
  .dashboard-popover nav a[aria-current] { color:var(--gold); }
  .dashboard-popover > div { min-width:156px; padding:12px; }
  .dashboard-popover p { margin:.25rem 0 0; font-size:14px; }
  .dashboard-hero {
    display:grid; justify-items:center; align-content:center; gap:12px;
    min-height:204px; padding:12px 0 17px; text-align:center;
    background:radial-gradient(ellipse at 50% 42%,#45362455,transparent 59%);
  }
  .dashboard-hero img {
    display:block; width:144px; height:144px; border-radius:50%; object-fit:cover;
    border:1px solid #947845; box-shadow:0 0 22px #d9a55338;
  }
  .dashboard-motto {
    margin:0; color:#ffdf9b; font-family:Georgia,"Noto Serif CJK TC",serif;
    font-size:clamp(19px,5.4vw,24px); font-weight:700; letter-spacing:.06em;
  }
  .dashboard-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:9px; }
  .dashboard-grid .dashboard-tile {
    display:flex; flex-direction:column; justify-content:center; align-items:center;
    gap:6px; min-height:100px; padding:8px 3px; border-radius:14px; position:relative;
    border:1px solid #34425a; background:linear-gradient(155deg,#16243b,#101b2d);
    color:#fff6e5; font-size:clamp(14px,4vw,17px); font-weight:650;
    line-height:1.25; text-align:center; text-decoration:none;
  }
  .dashboard-tile svg { width:28px; height:28px; color:#f1ca7c; }
  .dashboard-tile small { color:#e4c37f; font-size:11px; font-weight:500; }
  .dashboard-member {
    display:grid; grid-template-columns:32px minmax(0,1fr) auto 14px; align-items:center; gap:8px;
    margin-top:15px; padding:12px 10px; min-height:79px; border:1px solid #8c7143; border-radius:15px;
    color:#fff0ca; background:linear-gradient(110deg,#352a1d,#1c232f 71%);
    text-decoration:none;
  }
  .dashboard-member > svg:first-child { width:29px; height:29px; color:#f0ca7b; }
  .dashboard-member > svg:last-child { width:14px; height:14px; color:#f0ca7b; }
  .dashboard-member strong { display:block; font-size:17px; }
  .dashboard-member small { display:block; font-size:12px; line-height:1.35; color:#e0d4b7; margin-top:3px; }
  .dashboard-status { font-size:11px; color:#ffdc94; border:1px solid #8c7143; border-radius:20px; padding:3px 6px; white-space:nowrap; }
  .dashboard-utilities { display:flex; justify-content:center; gap:25px; margin-top:5px; }
  .dashboard-utilities a { display:inline-flex; align-items:center; min-height:44px; font-size:14px; color:#d8cbb0; }
  .dashboard-utilities a[hidden] { display:none; }
  .app-mobile-nav a { font-size:13px; }
  :lang(en) .dashboard-grid .dashboard-tile { font-size:14px; }
  :lang(en) .dashboard-motto { font-size:clamp(18px,4.8vw,22px); letter-spacing:0; }
}

.mobile-member-about { display:none; }

@media (max-width: 767px) {
  .mobile-member-about { display:block; }
  .mobile-member-about a { display:inline-flex; align-items:center; min-height:44px; }
  .ecosystem-home {
    background:
      radial-gradient(ellipse at 50% 150px,#142138 0,transparent 320px),
      linear-gradient(170deg,#080e18,#060a12 70%);
  }
  .ecosystem-home main > .mobile-dashboard {
    background-image:
      radial-gradient(circle at 7% 17%,#d7b4776b 0 1px,transparent 1.5px),
      radial-gradient(circle at 86% 11%,#d0d9ee66 0 1px,transparent 1.5px),
      radial-gradient(circle at 92% 26%,#a4b3d060 0 .6px,transparent 1.4px),
      radial-gradient(circle at 15% 29%,#a4b3d05e 0 .7px,transparent 1.4px),
      radial-gradient(circle at 27% 13%,#a4b3d052 0 .6px,transparent 1.4px),
      radial-gradient(circle at 74% 24%,#d7b47765 0 .8px,transparent 1.5px);
  }
  .dashboard-header { min-height:calc(57px + env(safe-area-inset-top)); border-color:#c1a7772b; }
  .dashboard-brand, .dashboard-popover summary svg { color:#eed2a0; }
  .dashboard-hero {
    min-height:0; padding:11px 0 12px; gap:4px;
    background:radial-gradient(ellipse 115px 80px at 50% 39%,#c8944734,transparent);
  }
  .dashboard-hero img {
    width:132px; height:132px; border:0; box-shadow:none;
    mask-image:radial-gradient(circle closest-side,#000 86%,transparent);
  }
  .dashboard-motto { color:#f3d49f; line-height:1.32; }
  .dashboard-philosophy {
    margin:0; color:#dfd5c4; font-size:15px; line-height:1.4;
    text-wrap:balance;
  }
  .dashboard-grid, .dashboard-liferegen-tiles {
    display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px;
  }
  .dashboard-liferegen, .dashboard-explore { grid-column:1 / -1; min-width:0; }
  .dashboard-liferegen h2, .dashboard-explore {
    margin:0; color:#f1d5a5; font-size:17px; line-height:1.28; font-weight:700;
  }
  .dashboard-liferegen h2 a, .dashboard-explore {
    display:flex; align-items:center; color:inherit; padding-inline:3px;
  }
  .dashboard-liferegen h2 a {
    min-height:44px; justify-content:space-between; gap:6px; text-decoration:none;
  }
  .dashboard-liferegen h2 small { font-size:13px; font-weight:500; }
  .dashboard-explore { min-height:28px; margin-top:4px; }
  .dashboard-grid .dashboard-tile {
    height:86px; min-height:0; gap:5px; border-radius:13px;
    border-color:#bda16d60; background:linear-gradient(152deg,#182840,#0c1424 83%);
    box-shadow:inset 0 1px #fff3cb0b,0 3px 7px #0004;
  }
  .dashboard-tile svg { width:26px; height:26px; flex:none; color:#ecc686; }
  .dashboard-tile small { color:#efd19d; font-size:12px; }
  .dashboard-member {
    margin-top:13px; min-height:72px; border-color:#b18d53;
    background:radial-gradient(ellipse at 0 0,#70532e62,transparent 65%),linear-gradient(136deg,#211b17,#0d1018 73%);
    box-shadow:inset 0 1px #f6ce8630,0 5px 14px #0005;
  }
  .dashboard-member > svg:first-child { color:#e9c58a; }
  .dashboard-member small { font-size:13px; }
  .dashboard-status { font-size:12px; }
  .ecosystem-home .app-mobile-nav { background:#0a101b; border-color:#ad8c5445; }
  .ecosystem-home .app-mobile-nav a[aria-current] { color:#f3d49f; background:#172135; }
}

@media (max-width: 767px) {
  .ecosystem-home { background:#041420; }
  .ecosystem-home main > .mobile-dashboard {
    width:min(100%,34rem); padding-inline:clamp(15px,4.6vw,24px); background:none;
  }
  .dashboard-header {
    min-height:calc(48px + env(safe-area-inset-top)); position:relative; z-index:2;
    border-bottom:1px solid #bca88180; margin-inline:calc(-1 * clamp(15px,4.6vw,24px));
    padding-inline:clamp(17px,5vw,26px);
  }
  .dashboard-brand {
    color:#ffe0a8; font-size:clamp(25px,7.4vw,37px);
    line-height:.87; letter-spacing:.01em; font-style:italic;
  }
  .dashboard-brand span {
    display:block; margin-top:4px; color:#f5deb2;
    font-size:9px; font-weight:500; letter-spacing:.11em;
  }
  .dashboard-hero {
    isolation:isolate; position:relative; margin-inline:calc(-1 * clamp(15px,4.6vw,24px));
    padding:5px 12px 14px; gap:4px; background:none;
  }
  .dashboard-hero::before {
    content:""; position:absolute; z-index:-1; inset:0 0 auto;
    height:min(28vw,151px);
    background:url('/assets/mobile-visual-reference.webp') center max(-10.6vw,-58px) / 100% auto no-repeat;
    mask-image:linear-gradient(#000 88%,transparent);
  }
  .dashboard-hero img {
    width:clamp(100px,29vw,151px); height:auto; aspect-ratio:1;
    mask-image:none; border:1px solid #e9ba65;
    box-shadow:0 0 15px #efb145a0,0 0 4px #ffdc8a; background:#0d1117;
  }
  .dashboard-motto {
    color:#ffdfa2; font-size:clamp(21px,5.7vw,29px); letter-spacing:.055em;
    font-style:italic; text-shadow:0 2px 8px #000,0 0 12px #d6a04f44;
  }
  .dashboard-philosophy { font-size:clamp(12px,3.65vw,16px); color:#faf6eb; }
  .dashboard-philosophy::before,.dashboard-philosophy::after {
    content:""; display:inline-block; width:clamp(15px,7vw,36px); margin:0 8px;
    height:1px; vertical-align:middle; background:linear-gradient(90deg,transparent,#e5c382,transparent);
  }
  :lang(en) .dashboard-philosophy::before,:lang(en) .dashboard-philosophy::after { display:none; }
  .dashboard-grid { gap:7px; }
  .dashboard-liferegen-tiles { grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; }
  .dashboard-liferegen h2,.dashboard-explore { color:#ffe1a7; font-size:18px; font-family:Georgia,"Noto Sans CJK TC",serif; }
  .dashboard-liferegen h2 a { min-height:44px; justify-content:flex-start; }
  .dashboard-liferegen h2 small { margin-inline-start:auto; color:#f2e4cd; }
  .dashboard-liferegen h2 a::before,.dashboard-explore::before {
    content:""; width:5px; height:17px; border-radius:2px; margin-inline-end:3px;
    background:linear-gradient(#fff0bf,#c99837); box-shadow:0 0 6px #e8b95655;
  }
  .dashboard-explore { gap:8px; min-height:29px; margin-top:2px; }
  .dashboard-grid .dashboard-tile,.dashboard-member {
    border:1px solid transparent; border-radius:11px;
    background:
      radial-gradient(ellipse 42px 6px at 39% 0,#f6cc8379,transparent) padding-box,
      radial-gradient(ellipse at 95% 90%,#17324666,transparent 60%) padding-box,
      linear-gradient(145deg,#102434,#081722 64%,#0f2431) padding-box,
      linear-gradient(155deg,#fff0c6,#9a7441 46%,#e8c58a) border-box;
  }
  .dashboard-grid .dashboard-tile { height:86px; font-size:16px; gap:3px; }
  .dashboard-tile svg,.dashboard-member > svg:first-child {
    color:#ffdc91; width:33px;height:33px;
    filter:drop-shadow(0 1px 2px #8a5c29) drop-shadow(0 0 6px #f3cb784a);
  }
  .dashboard-liferegen .dashboard-tile {
    height:73px; flex-direction:row; text-align:start; justify-content:flex-start;
    gap:10px; padding-inline:11px 6px;
  }
  .dashboard-liferegen .dashboard-tile svg { width:34px;height:34px; }
  .dashboard-topic-label { min-width:0; }
  .dashboard-topic-label > span {
    display:block; color:#ede6da; font-size:12px; line-height:1.22; font-weight:400; margin-top:3px;
  }
  :lang(en) .dashboard-liferegen .dashboard-tile { gap:6px;padding-inline:6px; font-size:13px; }
  :lang(en) .dashboard-topic-label > span { font-size:10px; }
  .dashboard-tile small {
    color:#1d150d; background:linear-gradient(#ffedbe,#cc9e53);
    border-radius:20px; padding:0 7px; font-size:10px; font-weight:700;
  }
  .dashboard-member {
    min-height:74px; margin-top:15px; grid-template-columns:38px minmax(0,1fr) auto 13px;
    background:
      radial-gradient(ellipse 105px 17px at 20% 110%,#ecab5777,transparent) padding-box,
      radial-gradient(ellipse 76px 7px at 43% 0,#f6cc8379,transparent) padding-box,
      linear-gradient(130deg,#34291e,#17191c 60%,#262015) padding-box,
      linear-gradient(135deg,#fff0ba,#95652e 55%,#f1ce8a) border-box;
  }
  .dashboard-member strong { color:#ffe5b4; }
  .dashboard-member small { font-size:12px; }
  .ecosystem-home .app-mobile-nav { background:#061622; border-color:#c5a97a80; }
  .ecosystem-home .app-mobile-nav a { min-height:74px; font-size:14px; }
  .ecosystem-home .app-mobile-nav svg { width:26px; height:26px; }
  .ecosystem-home .app-mobile-nav a[aria-current] {
    background:radial-gradient(ellipse at 50% 107%,#b1934f53,transparent 63%);
    box-shadow:inset 0 -2px 0 #c79c53;
  }
}
