/* TapetIdle Mobile layout (desktop untouched) */
.tt-mobile{
  background: transparent;
}
.mShell{
  padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
}

/* Top */
.mTop{
  position: sticky;
  top: 0;
  z-index: 40;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap:10px;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 12px 10px;
  background: linear-gradient(180deg, rgba(7,10,20,.92), rgba(7,10,20,.55));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.mTopBtn{
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  font-weight: 850;
  font-size: 13px;
  white-space: nowrap;
}
.mTopMid{ display:flex; align-items:center; gap:10px; min-width:0; }
.mLogo{ width: 34px; height:34px; border-radius: 12px; }
.mName{ min-width:0; }
.mTitle{ font-weight: 950; line-height:1; }
.mSub{ font-size: 12px; color: rgba(255,255,255,.65); margin-top: 2px; }

/* HUD */
.mHud{
  margin: 10px 12px 0;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
}
.mHudMain{
  display:flex;
  align-items:baseline;
  justify-content: space-between;
  gap:10px;
  margin-bottom: 10px;
}
.mHudLabel{ font-size: 12px; color: rgba(255,255,255,.65); font-weight: 800; }
.mHudMini{
  display:flex;
  gap:10px;
  overflow-x:auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.mHudMini::-webkit-scrollbar{ display:none; }
.mHudMini .hudItem{
  min-width: 86px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  padding: 8px 10px;
}

/* Main area */
.mMain{
  padding: 12px;
  display:grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.mPanel{
  padding: 12px;
}
.textBox{
  min-height: 46vh;
}
.stackInner{
  font-size: clamp(22px, 6.4vw, 34px);
  line-height: 1.35;
}

/* Cards stack */
.mStack{
  display:grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.mLinks{
  display:flex;
  flex-direction: column;
  gap: 10px;
}
.mLinks a{
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  font-weight: 850;
}

/* Dock */
.mDock{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display:flex;
  gap: 10px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(0deg, rgba(7,10,20,.96), rgba(7,10,20,.55));
  border-top: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(10px);
}
.mDockBtn{
  flex:1;
  padding: 12px 0;
  border-radius: 16px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.95);
  font-weight: 950;
  font-size: 16px;
}

/* Modals: near-fullscreen */
.modalCard, .modalCardWide{
  width: min(96vw, 920px);
  max-height: 86vh;
}

/* Avoid zoom on focus */
input, textarea, select, button{ font-size: 16px; }
