:root{--mobile-ui-ready:1}
.mobile-brand,.mobile-nav,.mobile-sheet{display:none}
@media(max-width:850px){
  body{--mobile-nav-height:70px}
  .sidebar{display:none}
  .workspace{margin-left:0}
  .topbar{position:sticky;top:0;z-index:20;height:64px;padding:0 16px;gap:8px;background:#101117f5;backdrop-filter:blur(16px)}
  .crumb{display:none}
  .mobile-brand{display:flex}
  .top-actions{gap:5px}
  #notifications{width:40px;height:44px;display:flex;align-items:center;justify-content:center;position:relative;padding:0}
  #notice-count[data-empty]{display:none}
  #account-balance{font-size:12px;gap:5px;padding:7px 10px;min-height:34px}
  #account-balance>span:last-child{display:none}
  #account-access.signed-in{padding:4px;min-width:40px;min-height:44px}
  #account-access:not(.signed-in){font-size:11px;padding:8px}
  main{padding:22px 16px calc(var(--mobile-nav-height) + env(safe-area-inset-bottom) + 24px);min-height:calc(100dvh - 64px)}
  .workspace>footer{display:none}
  .mobile-nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));position:fixed;z-index:30;bottom:0;left:0;right:0;padding:7px 12px calc(7px + env(safe-area-inset-bottom));height:calc(var(--mobile-nav-height) + env(safe-area-inset-bottom));background:#161820f5;border-top:1px solid #2b2d37;backdrop-filter:blur(16px)}
  .mobile-nav a,.mobile-nav button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:48px;border:0;border-radius:10px;background:none;color:var(--muted);font-size:10px;font-weight:500;padding:5px;position:relative;text-decoration:none}
  .mobile-nav svg{width:21px;height:21px;stroke-width:1.6}
  .mobile-nav [aria-current=page],.mobile-nav [aria-expanded=true]{color:var(--mint);background:#b6e2c50b}
  .mobile-nav [aria-current=page]:before{content:'';position:absolute;top:-7px;width:22px;height:2px;background:var(--mint);border-radius:3px}
  .page-heading{margin-bottom:18px;gap:10px}
  h1{font-size:24px;letter-spacing:-.7px}
  .page-heading p{font-size:12px;line-height:1.6}
  .tour-profile-header{display:grid;grid-template-columns:54px minmax(0,1fr);margin:12px 0 18px;gap:6px 12px;align-items:center}
  .profile-identity{display:contents}
  .tour-profile-header>.profile-avatar{grid-row:1/3;width:50px;height:50px;min-width:0;align-self:center}
  .profile-name-row{grid-column:2}
  .tour-profile-header .profile-title-stack{grid-column:2;margin:0}
  .tour-profile-header .profile-last-tour,.tour-profile-header .profile-meta,.tour-profile-header .profile-aliases{grid-column:1/-1}
  .tour-profile-header .profile-last-tour{margin:8px 0 0;font-size:11px;gap:4px 8px}
  .tour-profile-header .profile-meta{margin:0;gap:6px 12px}
  .tour-profile-header h1{font-size:21px;margin:0}
  .profile-name-row{align-items:center;gap:8px}
  .profile-name-row>button{padding:6px;font-size:10px;max-width:75px;min-height:40px;line-height:1.4}
  .profile-aliases{font-size:11px}
  .profile-id{margin-top:5px;font-size:10px}
  .profile-title-stack{margin:6px 0;gap:5px}
  .equipped-title{font-size:10px;padding:4px 7px}
  .profile-stat-toolbar{margin:0 0 14px!important;justify-content:stretch}
  .profile-stat-mode-toggle{display:flex;width:100%;padding:3px;border-radius:9px;background:var(--panel);border:1px solid var(--border)}
  .profile-stat-mode-toggle a{flex:1;text-align:center;min-height:36px;display:flex;justify-content:center;align-items:center;border-radius:6px}
  .metrics{gap:10px;margin-bottom:12px}
  .metric,.profile-metrics .metric,.profile-milestones .metric{padding:14px!important;min-height:85px!important;border-radius:10px}
  .metric-label{font-size:10px!important;letter-spacing:0;line-height:1.4}
  .metric strong{font-size:24px!important;margin-top:9px!important;line-height:1.15}
  .profile-milestones{gap:10px;margin-bottom:16px}
  .metrics.profile-metrics,.profile-highlights{gap:0;border:1px solid var(--border);border-radius:12px;background:var(--panel);overflow:hidden}
  .profile-metrics .metric,.profile-highlights .metric{background:none;border:0;border-radius:0!important;min-height:74px!important;padding:12px 14px!important}
  .profile-metrics .metric:nth-child(odd),.profile-highlights .metric:nth-child(odd){border-right:1px solid var(--border)}
  .profile-metrics .metric:nth-child(-n+2),.profile-highlights .metric:nth-child(-n+2){border-bottom:1px solid var(--border)}
  .profile-highlights .metric strong{font-size:21px!important}
  .panel{border-radius:12px;margin-bottom:14px}
  .panel-head{padding:14px 16px;gap:10px}
  .panel-head h2{font-size:14px}
  .panel-body{padding:16px}
  .tab-row{gap:4px;flex-wrap:nowrap;overflow:auto;scrollbar-width:none;margin-bottom:16px}
  .tab-row a,.tab-row button{white-space:nowrap;min-height:40px;padding:10px 12px;font-size:11px}
  .tour-browser-filters{gap:8px}
  input,select,textarea{font-size:16px;min-height:42px}
  .table-wrap{scrollbar-width:thin}
  .tour-card{padding:16px;gap:12px}
  .tour-card h3{font-size:16px}
  .workflow-steps{flex-wrap:nowrap;overflow:auto;scrollbar-width:none}
  .workflow-steps li{flex:0 0 110px}
  .mobile-sheet[open]{display:flex;flex-direction:column;position:fixed;inset:auto 0 0;width:100%;max-width:600px;max-height:88dvh;margin:0 auto;border:1px solid #353843;border-bottom:0;border-radius:22px 22px 0 0;padding:10px 20px calc(20px + env(safe-area-inset-bottom));background:#191b23;color:var(--text);box-shadow:0 -16px 64px #0005;overflow:hidden}
  .mobile-sheet::backdrop{background:#05060bb3;backdrop-filter:blur(3px)}
  .sheet-handle{width:32px;height:3px;border-radius:3px;background:#555963;margin:0 auto 14px;flex-shrink:0}
  .sheet-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}
  .sheet-heading h2{font-size:21px;letter-spacing:-.5px;margin:0}
  .sheet-heading button{border:1px solid var(--border);border-radius:50%;width:36px;height:36px;display:grid;place-items:center;background:var(--panel2);color:var(--muted);padding:8px}
  .sheet-heading svg{width:18px;height:18px}
  .sheet-tabs{display:flex;padding:3px;background:#101117;border-radius:9px;border:1px solid var(--border);margin-bottom:16px;flex-shrink:0}
  .sheet-tabs button{flex:1;min-height:40px;font-size:12px;background:none;color:var(--muted);border:0;border-radius:6px;padding:8px}
  .sheet-tabs button[aria-selected=true]{background:#30333d;color:var(--text)}
  .sheet-scroll{overflow:auto;overscroll-behavior:contain;scrollbar-width:none}
  .sheet-links{border:1px solid var(--border);border-radius:12px;overflow:hidden;background:#161820}
  .sheet-links a{display:flex;align-items:center;gap:13px;min-height:53px;margin:0 14px;padding:12px 2px;border-bottom:1px solid var(--border);font-size:13px;color:var(--text);text-decoration:none}
  .sheet-links a:last-child{border:0}
  .sheet-links a>svg{width:20px;height:20px;color:var(--muted);flex-shrink:0}
  .sheet-links a:after{content:'›';color:#717583;margin-left:auto;font-size:20px;font-weight:400}
  .sheet-links a[aria-current=page]{color:var(--mint)}
  .sheet-links a[aria-current=page]>svg{color:var(--mint)}
  .sheet-gacha{margin-top:14px;min-height:48px;padding:12px 14px;border:1px solid var(--border);border-radius:10px;display:flex;justify-content:space-between;align-items:center;color:var(--mint);font-size:13px;background:#b6e2c506}
  .sheet-footnote{font-size:10px;text-align:center;color:#7e8494;margin:16px 0 0}
  button:focus-visible,a:focus-visible{outline:2px solid var(--mint);outline-offset:3px}
}
@media(prefers-reduced-motion:no-preference){.mobile-sheet[open]{animation:sheet-enter .2s ease-out}@keyframes sheet-enter{from{transform:translateY(32px);opacity:0}to{transform:none;opacity:1}}}
